@agentproto/adapter-pi 0.3.11 → 0.3.14

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.
@@ -52,17 +52,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
52
52
 
53
53
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
54
54
  var require_code = __commonJS({
55
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(exports$1) {
56
- Object.defineProperty(exports$1, "__esModule", { value: true });
57
- 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;
55
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
56
+ Object.defineProperty(exports, "__esModule", { value: true });
57
+ 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;
58
58
  var _CodeOrName = class {
59
59
  };
60
- exports$1._CodeOrName = _CodeOrName;
61
- exports$1.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
60
+ exports._CodeOrName = _CodeOrName;
61
+ exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
62
62
  var Name = class extends _CodeOrName {
63
63
  constructor(s) {
64
64
  super();
65
- if (!exports$1.IDENTIFIER.test(s))
65
+ if (!exports.IDENTIFIER.test(s))
66
66
  throw new Error("CodeGen: name must be a valid identifier");
67
67
  this.str = s;
68
68
  }
@@ -76,7 +76,7 @@ var require_code = __commonJS({
76
76
  return { [this.str]: 1 };
77
77
  }
78
78
  };
79
- exports$1.Name = Name;
79
+ exports.Name = Name;
80
80
  var _Code = class extends _CodeOrName {
81
81
  constructor(code) {
82
82
  super();
@@ -104,8 +104,8 @@ var require_code = __commonJS({
104
104
  }, {});
105
105
  }
106
106
  };
107
- exports$1._Code = _Code;
108
- exports$1.nil = new _Code("");
107
+ exports._Code = _Code;
108
+ exports.nil = new _Code("");
109
109
  function _(strs, ...args) {
110
110
  const code = [strs[0]];
111
111
  let i = 0;
@@ -115,7 +115,7 @@ var require_code = __commonJS({
115
115
  }
116
116
  return new _Code(code);
117
117
  }
118
- exports$1._ = _;
118
+ exports._ = _;
119
119
  var plus = new _Code("+");
120
120
  function str(strs, ...args) {
121
121
  const expr = [safeStringify2(strs[0])];
@@ -128,7 +128,7 @@ var require_code = __commonJS({
128
128
  optimize(expr);
129
129
  return new _Code(expr);
130
130
  }
131
- exports$1.str = str;
131
+ exports.str = str;
132
132
  function addCodeArg(code, arg) {
133
133
  if (arg instanceof _Code)
134
134
  code.push(...arg._items);
@@ -137,7 +137,7 @@ var require_code = __commonJS({
137
137
  else
138
138
  code.push(interpolate(arg));
139
139
  }
140
- exports$1.addCodeArg = addCodeArg;
140
+ exports.addCodeArg = addCodeArg;
141
141
  function optimize(expr) {
142
142
  let i = 1;
143
143
  while (i < expr.length - 1) {
@@ -173,41 +173,41 @@ var require_code = __commonJS({
173
173
  function strConcat(c1, c2) {
174
174
  return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
175
175
  }
176
- exports$1.strConcat = strConcat;
176
+ exports.strConcat = strConcat;
177
177
  function interpolate(x) {
178
178
  return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify2(Array.isArray(x) ? x.join(",") : x);
179
179
  }
180
180
  function stringify(x) {
181
181
  return new _Code(safeStringify2(x));
182
182
  }
183
- exports$1.stringify = stringify;
183
+ exports.stringify = stringify;
184
184
  function safeStringify2(x) {
185
185
  return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
186
186
  }
187
- exports$1.safeStringify = safeStringify2;
187
+ exports.safeStringify = safeStringify2;
188
188
  function getProperty(key) {
189
- return typeof key == "string" && exports$1.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
189
+ return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
190
190
  }
191
- exports$1.getProperty = getProperty;
191
+ exports.getProperty = getProperty;
192
192
  function getEsmExportName(key) {
193
- if (typeof key == "string" && exports$1.IDENTIFIER.test(key)) {
193
+ if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
194
194
  return new _Code(`${key}`);
195
195
  }
196
196
  throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
197
197
  }
198
- exports$1.getEsmExportName = getEsmExportName;
198
+ exports.getEsmExportName = getEsmExportName;
199
199
  function regexpCode(rx) {
200
200
  return new _Code(rx.toString());
201
201
  }
202
- exports$1.regexpCode = regexpCode;
202
+ exports.regexpCode = regexpCode;
203
203
  }
204
204
  });
205
205
 
206
206
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
207
207
  var require_scope = __commonJS({
208
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports$1) {
209
- Object.defineProperty(exports$1, "__esModule", { value: true });
210
- exports$1.ValueScope = exports$1.ValueScopeName = exports$1.Scope = exports$1.varKinds = exports$1.UsedValueState = void 0;
208
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
209
+ Object.defineProperty(exports, "__esModule", { value: true });
210
+ exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
211
211
  var code_1 = require_code();
212
212
  var ValueError = class extends Error {
213
213
  constructor(name) {
@@ -219,8 +219,8 @@ var require_scope = __commonJS({
219
219
  (function(UsedValueState2) {
220
220
  UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
221
221
  UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
222
- })(UsedValueState || (exports$1.UsedValueState = UsedValueState = {}));
223
- exports$1.varKinds = {
222
+ })(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
223
+ exports.varKinds = {
224
224
  const: new code_1.Name("const"),
225
225
  let: new code_1.Name("let"),
226
226
  var: new code_1.Name("var")
@@ -249,7 +249,7 @@ var require_scope = __commonJS({
249
249
  return this._names[prefix] = { prefix, index: 0 };
250
250
  }
251
251
  };
252
- exports$1.Scope = Scope;
252
+ exports.Scope = Scope;
253
253
  var ValueScopeName = class extends code_1.Name {
254
254
  constructor(prefix, nameStr) {
255
255
  super(nameStr);
@@ -260,7 +260,7 @@ var require_scope = __commonJS({
260
260
  this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
261
261
  }
262
262
  };
263
- exports$1.ValueScopeName = ValueScopeName;
263
+ exports.ValueScopeName = ValueScopeName;
264
264
  var line = (0, code_1._)`\n`;
265
265
  var ValueScope = class extends Scope {
266
266
  constructor(opts) {
@@ -330,7 +330,7 @@ var require_scope = __commonJS({
330
330
  nameSet.set(name, UsedValueState.Started);
331
331
  let c = valueCode(name);
332
332
  if (c) {
333
- const def = this.opts.es5 ? exports$1.varKinds.var : exports$1.varKinds.const;
333
+ const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
334
334
  code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`;
335
335
  } else if (c = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
336
336
  code = (0, code_1._)`${code}${c}${this.opts._n}`;
@@ -343,56 +343,56 @@ var require_scope = __commonJS({
343
343
  return code;
344
344
  }
345
345
  };
346
- exports$1.ValueScope = ValueScope;
346
+ exports.ValueScope = ValueScope;
347
347
  }
348
348
  });
349
349
 
350
350
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
351
351
  var require_codegen = __commonJS({
352
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(exports$1) {
353
- Object.defineProperty(exports$1, "__esModule", { value: true });
354
- 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;
352
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
353
+ Object.defineProperty(exports, "__esModule", { value: true });
354
+ 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;
355
355
  var code_1 = require_code();
356
356
  var scope_1 = require_scope();
357
357
  var code_2 = require_code();
358
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
358
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
359
359
  return code_2._;
360
360
  } });
361
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
361
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
362
362
  return code_2.str;
363
363
  } });
364
- Object.defineProperty(exports$1, "strConcat", { enumerable: true, get: function() {
364
+ Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() {
365
365
  return code_2.strConcat;
366
366
  } });
367
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
367
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
368
368
  return code_2.nil;
369
369
  } });
370
- Object.defineProperty(exports$1, "getProperty", { enumerable: true, get: function() {
370
+ Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() {
371
371
  return code_2.getProperty;
372
372
  } });
373
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
373
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
374
374
  return code_2.stringify;
375
375
  } });
376
- Object.defineProperty(exports$1, "regexpCode", { enumerable: true, get: function() {
376
+ Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() {
377
377
  return code_2.regexpCode;
378
378
  } });
379
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
379
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
380
380
  return code_2.Name;
381
381
  } });
382
382
  var scope_2 = require_scope();
383
- Object.defineProperty(exports$1, "Scope", { enumerable: true, get: function() {
383
+ Object.defineProperty(exports, "Scope", { enumerable: true, get: function() {
384
384
  return scope_2.Scope;
385
385
  } });
386
- Object.defineProperty(exports$1, "ValueScope", { enumerable: true, get: function() {
386
+ Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() {
387
387
  return scope_2.ValueScope;
388
388
  } });
389
- Object.defineProperty(exports$1, "ValueScopeName", { enumerable: true, get: function() {
389
+ Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() {
390
390
  return scope_2.ValueScopeName;
391
391
  } });
392
- Object.defineProperty(exports$1, "varKinds", { enumerable: true, get: function() {
392
+ Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() {
393
393
  return scope_2.varKinds;
394
394
  } });
395
- exports$1.operators = {
395
+ exports.operators = {
396
396
  GT: new code_1._Code(">"),
397
397
  GTE: new code_1._Code(">="),
398
398
  LT: new code_1._Code("<"),
@@ -805,7 +805,7 @@ var require_codegen = __commonJS({
805
805
  }
806
806
  // `+=` code
807
807
  add(lhs, rhs) {
808
- return this._leafNode(new AssignOp(lhs, exports$1.operators.ADD, rhs));
808
+ return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
809
809
  }
810
810
  // appends passed SafeExpr to code or executes Block
811
811
  code(c) {
@@ -1005,7 +1005,7 @@ var require_codegen = __commonJS({
1005
1005
  ns[ns.length - 1] = node2;
1006
1006
  }
1007
1007
  };
1008
- exports$1.CodeGen = CodeGen;
1008
+ exports.CodeGen = CodeGen;
1009
1009
  function addNames(names, from) {
1010
1010
  for (const n in from)
1011
1011
  names[n] = (names[n] || 0) + (from[n] || 0);
@@ -1046,17 +1046,17 @@ var require_codegen = __commonJS({
1046
1046
  function not(x) {
1047
1047
  return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
1048
1048
  }
1049
- exports$1.not = not;
1050
- var andCode = mappend(exports$1.operators.AND);
1049
+ exports.not = not;
1050
+ var andCode = mappend(exports.operators.AND);
1051
1051
  function and(...args) {
1052
1052
  return args.reduce(andCode);
1053
1053
  }
1054
- exports$1.and = and;
1055
- var orCode = mappend(exports$1.operators.OR);
1054
+ exports.and = and;
1055
+ var orCode = mappend(exports.operators.OR);
1056
1056
  function or(...args) {
1057
1057
  return args.reduce(orCode);
1058
1058
  }
1059
- exports$1.or = or;
1059
+ exports.or = or;
1060
1060
  function mappend(op) {
1061
1061
  return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
1062
1062
  }
@@ -1068,9 +1068,9 @@ var require_codegen = __commonJS({
1068
1068
 
1069
1069
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
1070
1070
  var require_util = __commonJS({
1071
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(exports$1) {
1072
- Object.defineProperty(exports$1, "__esModule", { value: true });
1073
- exports$1.checkStrictMode = exports$1.getErrorPath = exports$1.Type = exports$1.useFunc = exports$1.setEvaluated = exports$1.evaluatedPropsToName = exports$1.mergeEvaluated = exports$1.eachItem = exports$1.unescapeJsonPointer = exports$1.escapeJsonPointer = exports$1.escapeFragment = exports$1.unescapeFragment = exports$1.schemaRefOrVal = exports$1.schemaHasRulesButRef = exports$1.schemaHasRules = exports$1.checkUnknownRules = exports$1.alwaysValidSchema = exports$1.toHash = void 0;
1071
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(exports) {
1072
+ Object.defineProperty(exports, "__esModule", { value: true });
1073
+ 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 = void 0;
1074
1074
  var codegen_1 = require_codegen();
1075
1075
  var code_1 = require_code();
1076
1076
  function toHash(arr) {
@@ -1079,7 +1079,7 @@ var require_util = __commonJS({
1079
1079
  hash[item] = true;
1080
1080
  return hash;
1081
1081
  }
1082
- exports$1.toHash = toHash;
1082
+ exports.toHash = toHash;
1083
1083
  function alwaysValidSchema(it, schema) {
1084
1084
  if (typeof schema == "boolean")
1085
1085
  return schema;
@@ -1088,7 +1088,7 @@ var require_util = __commonJS({
1088
1088
  checkUnknownRules(it, schema);
1089
1089
  return !schemaHasRules(schema, it.self.RULES.all);
1090
1090
  }
1091
- exports$1.alwaysValidSchema = alwaysValidSchema;
1091
+ exports.alwaysValidSchema = alwaysValidSchema;
1092
1092
  function checkUnknownRules(it, schema = it.schema) {
1093
1093
  const { opts, self } = it;
1094
1094
  if (!opts.strictSchema)
@@ -1101,7 +1101,7 @@ var require_util = __commonJS({
1101
1101
  checkStrictMode(it, `unknown keyword: "${key}"`);
1102
1102
  }
1103
1103
  }
1104
- exports$1.checkUnknownRules = checkUnknownRules;
1104
+ exports.checkUnknownRules = checkUnknownRules;
1105
1105
  function schemaHasRules(schema, rules) {
1106
1106
  if (typeof schema == "boolean")
1107
1107
  return !schema;
@@ -1110,7 +1110,7 @@ var require_util = __commonJS({
1110
1110
  return true;
1111
1111
  return false;
1112
1112
  }
1113
- exports$1.schemaHasRules = schemaHasRules;
1113
+ exports.schemaHasRules = schemaHasRules;
1114
1114
  function schemaHasRulesButRef(schema, RULES) {
1115
1115
  if (typeof schema == "boolean")
1116
1116
  return !schema;
@@ -1119,7 +1119,7 @@ var require_util = __commonJS({
1119
1119
  return true;
1120
1120
  return false;
1121
1121
  }
1122
- exports$1.schemaHasRulesButRef = schemaHasRulesButRef;
1122
+ exports.schemaHasRulesButRef = schemaHasRulesButRef;
1123
1123
  function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {
1124
1124
  if (!$data) {
1125
1125
  if (typeof schema == "number" || typeof schema == "boolean")
@@ -1129,25 +1129,25 @@ var require_util = __commonJS({
1129
1129
  }
1130
1130
  return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
1131
1131
  }
1132
- exports$1.schemaRefOrVal = schemaRefOrVal;
1132
+ exports.schemaRefOrVal = schemaRefOrVal;
1133
1133
  function unescapeFragment(str) {
1134
1134
  return unescapeJsonPointer(decodeURIComponent(str));
1135
1135
  }
1136
- exports$1.unescapeFragment = unescapeFragment;
1136
+ exports.unescapeFragment = unescapeFragment;
1137
1137
  function escapeFragment(str) {
1138
1138
  return encodeURIComponent(escapeJsonPointer(str));
1139
1139
  }
1140
- exports$1.escapeFragment = escapeFragment;
1140
+ exports.escapeFragment = escapeFragment;
1141
1141
  function escapeJsonPointer(str) {
1142
1142
  if (typeof str == "number")
1143
1143
  return `${str}`;
1144
1144
  return str.replace(/~/g, "~0").replace(/\//g, "~1");
1145
1145
  }
1146
- exports$1.escapeJsonPointer = escapeJsonPointer;
1146
+ exports.escapeJsonPointer = escapeJsonPointer;
1147
1147
  function unescapeJsonPointer(str) {
1148
1148
  return str.replace(/~1/g, "/").replace(/~0/g, "~");
1149
1149
  }
1150
- exports$1.unescapeJsonPointer = unescapeJsonPointer;
1150
+ exports.unescapeJsonPointer = unescapeJsonPointer;
1151
1151
  function eachItem(xs, f) {
1152
1152
  if (Array.isArray(xs)) {
1153
1153
  for (const x of xs)
@@ -1156,14 +1156,14 @@ var require_util = __commonJS({
1156
1156
  f(xs);
1157
1157
  }
1158
1158
  }
1159
- exports$1.eachItem = eachItem;
1159
+ exports.eachItem = eachItem;
1160
1160
  function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues2, resultToName }) {
1161
1161
  return (gen, from, to, toName) => {
1162
1162
  const res = to === void 0 ? 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);
1163
1163
  return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
1164
1164
  };
1165
1165
  }
1166
- exports$1.mergeEvaluated = {
1166
+ exports.mergeEvaluated = {
1167
1167
  props: makeMergeEvaluated({
1168
1168
  mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
1169
1169
  gen.if((0, codegen_1._)`${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._)`${to} || {}`).code((0, codegen_1._)`Object.assign(${to}, ${from})`));
@@ -1194,11 +1194,11 @@ var require_util = __commonJS({
1194
1194
  setEvaluated(gen, props, ps);
1195
1195
  return props;
1196
1196
  }
1197
- exports$1.evaluatedPropsToName = evaluatedPropsToName;
1197
+ exports.evaluatedPropsToName = evaluatedPropsToName;
1198
1198
  function setEvaluated(gen, props, ps) {
1199
1199
  Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true));
1200
1200
  }
1201
- exports$1.setEvaluated = setEvaluated;
1201
+ exports.setEvaluated = setEvaluated;
1202
1202
  var snippets = {};
1203
1203
  function useFunc(gen, f) {
1204
1204
  return gen.scopeValue("func", {
@@ -1206,12 +1206,12 @@ var require_util = __commonJS({
1206
1206
  code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code))
1207
1207
  });
1208
1208
  }
1209
- exports$1.useFunc = useFunc;
1209
+ exports.useFunc = useFunc;
1210
1210
  var Type;
1211
1211
  (function(Type2) {
1212
1212
  Type2[Type2["Num"] = 0] = "Num";
1213
1213
  Type2[Type2["Str"] = 1] = "Str";
1214
- })(Type || (exports$1.Type = Type = {}));
1214
+ })(Type || (exports.Type = Type = {}));
1215
1215
  function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
1216
1216
  if (dataProp instanceof codegen_1.Name) {
1217
1217
  const isNumber = dataPropType === Type.Num;
@@ -1219,7 +1219,7 @@ var require_util = __commonJS({
1219
1219
  }
1220
1220
  return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
1221
1221
  }
1222
- exports$1.getErrorPath = getErrorPath;
1222
+ exports.getErrorPath = getErrorPath;
1223
1223
  function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
1224
1224
  if (!mode)
1225
1225
  return;
@@ -1228,14 +1228,14 @@ var require_util = __commonJS({
1228
1228
  throw new Error(msg);
1229
1229
  it.self.logger.warn(msg);
1230
1230
  }
1231
- exports$1.checkStrictMode = checkStrictMode;
1231
+ exports.checkStrictMode = checkStrictMode;
1232
1232
  }
1233
1233
  });
1234
1234
 
1235
1235
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
1236
1236
  var require_names = __commonJS({
1237
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(exports$1) {
1238
- Object.defineProperty(exports$1, "__esModule", { value: true });
1237
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(exports) {
1238
+ Object.defineProperty(exports, "__esModule", { value: true });
1239
1239
  var codegen_1 = require_codegen();
1240
1240
  var names = {
1241
1241
  // validation function arguments
@@ -1266,25 +1266,25 @@ var require_names = __commonJS({
1266
1266
  jsonLen: new codegen_1.Name("jsonLen"),
1267
1267
  jsonPart: new codegen_1.Name("jsonPart")
1268
1268
  };
1269
- exports$1.default = names;
1269
+ exports.default = names;
1270
1270
  }
1271
1271
  });
1272
1272
 
1273
1273
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
1274
1274
  var require_errors = __commonJS({
1275
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(exports$1) {
1276
- Object.defineProperty(exports$1, "__esModule", { value: true });
1277
- exports$1.extendErrors = exports$1.resetErrorsCount = exports$1.reportExtraError = exports$1.reportError = exports$1.keyword$DataError = exports$1.keywordError = void 0;
1275
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(exports) {
1276
+ Object.defineProperty(exports, "__esModule", { value: true });
1277
+ exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
1278
1278
  var codegen_1 = require_codegen();
1279
1279
  var util_1 = require_util();
1280
1280
  var names_1 = require_names();
1281
- exports$1.keywordError = {
1281
+ exports.keywordError = {
1282
1282
  message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation`
1283
1283
  };
1284
- exports$1.keyword$DataError = {
1284
+ exports.keyword$DataError = {
1285
1285
  message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
1286
1286
  };
1287
- function reportError(cxt, error2 = exports$1.keywordError, errorPaths, overrideAllErrors) {
1287
+ function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) {
1288
1288
  const { it } = cxt;
1289
1289
  const { gen, compositeRule, allErrors } = it;
1290
1290
  const errObj = errorObjectCode(cxt, error2, errorPaths);
@@ -1294,8 +1294,8 @@ var require_errors = __commonJS({
1294
1294
  returnErrors(it, (0, codegen_1._)`[${errObj}]`);
1295
1295
  }
1296
1296
  }
1297
- exports$1.reportError = reportError;
1298
- function reportExtraError(cxt, error2 = exports$1.keywordError, errorPaths) {
1297
+ exports.reportError = reportError;
1298
+ function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) {
1299
1299
  const { it } = cxt;
1300
1300
  const { gen, compositeRule, allErrors } = it;
1301
1301
  const errObj = errorObjectCode(cxt, error2, errorPaths);
@@ -1304,12 +1304,12 @@ var require_errors = __commonJS({
1304
1304
  returnErrors(it, names_1.default.vErrors);
1305
1305
  }
1306
1306
  }
1307
- exports$1.reportExtraError = reportExtraError;
1307
+ exports.reportExtraError = reportExtraError;
1308
1308
  function resetErrorsCount(gen, errsCount) {
1309
1309
  gen.assign(names_1.default.errors, errsCount);
1310
1310
  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)));
1311
1311
  }
1312
- exports$1.resetErrorsCount = resetErrorsCount;
1312
+ exports.resetErrorsCount = resetErrorsCount;
1313
1313
  function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) {
1314
1314
  if (errsCount === void 0)
1315
1315
  throw new Error("ajv implementation error");
@@ -1324,7 +1324,7 @@ var require_errors = __commonJS({
1324
1324
  }
1325
1325
  });
1326
1326
  }
1327
- exports$1.extendErrors = extendErrors;
1327
+ exports.extendErrors = extendErrors;
1328
1328
  function addError(gen, errObj) {
1329
1329
  const err = gen.const("err", errObj);
1330
1330
  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})`);
@@ -1393,9 +1393,9 @@ var require_errors = __commonJS({
1393
1393
 
1394
1394
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
1395
1395
  var require_boolSchema = __commonJS({
1396
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports$1) {
1397
- Object.defineProperty(exports$1, "__esModule", { value: true });
1398
- exports$1.boolOrEmptySchema = exports$1.topBoolOrEmptySchema = void 0;
1396
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
1397
+ Object.defineProperty(exports, "__esModule", { value: true });
1398
+ exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
1399
1399
  var errors_1 = require_errors();
1400
1400
  var codegen_1 = require_codegen();
1401
1401
  var names_1 = require_names();
@@ -1413,7 +1413,7 @@ var require_boolSchema = __commonJS({
1413
1413
  gen.return(true);
1414
1414
  }
1415
1415
  }
1416
- exports$1.topBoolOrEmptySchema = topBoolOrEmptySchema;
1416
+ exports.topBoolOrEmptySchema = topBoolOrEmptySchema;
1417
1417
  function boolOrEmptySchema(it, valid) {
1418
1418
  const { gen, schema } = it;
1419
1419
  if (schema === false) {
@@ -1423,7 +1423,7 @@ var require_boolSchema = __commonJS({
1423
1423
  gen.var(valid, true);
1424
1424
  }
1425
1425
  }
1426
- exports$1.boolOrEmptySchema = boolOrEmptySchema;
1426
+ exports.boolOrEmptySchema = boolOrEmptySchema;
1427
1427
  function falseSchemaError(it, overrideAllErrors) {
1428
1428
  const { gen, data } = it;
1429
1429
  const cxt = {
@@ -1443,15 +1443,15 @@ var require_boolSchema = __commonJS({
1443
1443
 
1444
1444
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
1445
1445
  var require_rules = __commonJS({
1446
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(exports$1) {
1447
- Object.defineProperty(exports$1, "__esModule", { value: true });
1448
- exports$1.getRules = exports$1.isJSONType = void 0;
1446
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(exports) {
1447
+ Object.defineProperty(exports, "__esModule", { value: true });
1448
+ exports.getRules = exports.isJSONType = void 0;
1449
1449
  var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
1450
1450
  var jsonTypes = new Set(_jsonTypes);
1451
1451
  function isJSONType(x) {
1452
1452
  return typeof x == "string" && jsonTypes.has(x);
1453
1453
  }
1454
- exports$1.isJSONType = isJSONType;
1454
+ exports.isJSONType = isJSONType;
1455
1455
  function getRules() {
1456
1456
  const groups = {
1457
1457
  number: { type: "number", rules: [] },
@@ -1467,37 +1467,37 @@ var require_rules = __commonJS({
1467
1467
  keywords: {}
1468
1468
  };
1469
1469
  }
1470
- exports$1.getRules = getRules;
1470
+ exports.getRules = getRules;
1471
1471
  }
1472
1472
  });
1473
1473
 
1474
1474
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
1475
1475
  var require_applicability = __commonJS({
1476
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports$1) {
1477
- Object.defineProperty(exports$1, "__esModule", { value: true });
1478
- exports$1.shouldUseRule = exports$1.shouldUseGroup = exports$1.schemaHasRulesForType = void 0;
1476
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
1477
+ Object.defineProperty(exports, "__esModule", { value: true });
1478
+ exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
1479
1479
  function schemaHasRulesForType({ schema, self }, type) {
1480
1480
  const group = self.RULES.types[type];
1481
1481
  return group && group !== true && shouldUseGroup(schema, group);
1482
1482
  }
1483
- exports$1.schemaHasRulesForType = schemaHasRulesForType;
1483
+ exports.schemaHasRulesForType = schemaHasRulesForType;
1484
1484
  function shouldUseGroup(schema, group) {
1485
1485
  return group.rules.some((rule) => shouldUseRule(schema, rule));
1486
1486
  }
1487
- exports$1.shouldUseGroup = shouldUseGroup;
1487
+ exports.shouldUseGroup = shouldUseGroup;
1488
1488
  function shouldUseRule(schema, rule) {
1489
1489
  var _a3;
1490
1490
  return schema[rule.keyword] !== void 0 || ((_a3 = rule.definition.implements) === null || _a3 === void 0 ? void 0 : _a3.some((kwd) => schema[kwd] !== void 0));
1491
1491
  }
1492
- exports$1.shouldUseRule = shouldUseRule;
1492
+ exports.shouldUseRule = shouldUseRule;
1493
1493
  }
1494
1494
  });
1495
1495
 
1496
1496
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
1497
1497
  var require_dataType = __commonJS({
1498
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports$1) {
1499
- Object.defineProperty(exports$1, "__esModule", { value: true });
1500
- exports$1.reportTypeError = exports$1.checkDataTypes = exports$1.checkDataType = exports$1.coerceAndCheckDataType = exports$1.getJSONTypes = exports$1.getSchemaTypes = exports$1.DataType = void 0;
1498
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
1499
+ Object.defineProperty(exports, "__esModule", { value: true });
1500
+ exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
1501
1501
  var rules_1 = require_rules();
1502
1502
  var applicability_1 = require_applicability();
1503
1503
  var errors_1 = require_errors();
@@ -1507,7 +1507,7 @@ var require_dataType = __commonJS({
1507
1507
  (function(DataType2) {
1508
1508
  DataType2[DataType2["Correct"] = 0] = "Correct";
1509
1509
  DataType2[DataType2["Wrong"] = 1] = "Wrong";
1510
- })(DataType || (exports$1.DataType = DataType = {}));
1510
+ })(DataType || (exports.DataType = DataType = {}));
1511
1511
  function getSchemaTypes(schema) {
1512
1512
  const types = getJSONTypes(schema.type);
1513
1513
  const hasNull = types.includes("null");
@@ -1523,14 +1523,14 @@ var require_dataType = __commonJS({
1523
1523
  }
1524
1524
  return types;
1525
1525
  }
1526
- exports$1.getSchemaTypes = getSchemaTypes;
1526
+ exports.getSchemaTypes = getSchemaTypes;
1527
1527
  function getJSONTypes(ts) {
1528
1528
  const types = Array.isArray(ts) ? ts : ts ? [ts] : [];
1529
1529
  if (types.every(rules_1.isJSONType))
1530
1530
  return types;
1531
1531
  throw new Error("type must be JSONType or JSONType[]: " + types.join(","));
1532
1532
  }
1533
- exports$1.getJSONTypes = getJSONTypes;
1533
+ exports.getJSONTypes = getJSONTypes;
1534
1534
  function coerceAndCheckDataType(it, types) {
1535
1535
  const { gen, data, opts } = it;
1536
1536
  const coerceTo = coerceToTypes(types, opts.coerceTypes);
@@ -1546,7 +1546,7 @@ var require_dataType = __commonJS({
1546
1546
  }
1547
1547
  return checkTypes;
1548
1548
  }
1549
- exports$1.coerceAndCheckDataType = coerceAndCheckDataType;
1549
+ exports.coerceAndCheckDataType = coerceAndCheckDataType;
1550
1550
  var COERCIBLE = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
1551
1551
  function coerceToTypes(types, coerceTypes) {
1552
1552
  return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : [];
@@ -1626,7 +1626,7 @@ var require_dataType = __commonJS({
1626
1626
  return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil);
1627
1627
  }
1628
1628
  }
1629
- exports$1.checkDataType = checkDataType;
1629
+ exports.checkDataType = checkDataType;
1630
1630
  function checkDataTypes(dataTypes, data, strictNums, correct) {
1631
1631
  if (dataTypes.length === 1) {
1632
1632
  return checkDataType(dataTypes[0], data, strictNums, correct);
@@ -1648,7 +1648,7 @@ var require_dataType = __commonJS({
1648
1648
  cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
1649
1649
  return cond;
1650
1650
  }
1651
- exports$1.checkDataTypes = checkDataTypes;
1651
+ exports.checkDataTypes = checkDataTypes;
1652
1652
  var typeError = {
1653
1653
  message: ({ schema }) => `must be ${schema}`,
1654
1654
  params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}`
@@ -1657,7 +1657,7 @@ var require_dataType = __commonJS({
1657
1657
  const cxt = getTypeErrorContext(it);
1658
1658
  (0, errors_1.reportError)(cxt, typeError);
1659
1659
  }
1660
- exports$1.reportTypeError = reportTypeError;
1660
+ exports.reportTypeError = reportTypeError;
1661
1661
  function getTypeErrorContext(it) {
1662
1662
  const { gen, data, schema } = it;
1663
1663
  const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type");
@@ -1678,9 +1678,9 @@ var require_dataType = __commonJS({
1678
1678
 
1679
1679
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
1680
1680
  var require_defaults = __commonJS({
1681
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports$1) {
1682
- Object.defineProperty(exports$1, "__esModule", { value: true });
1683
- exports$1.assignDefaults = void 0;
1681
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
1682
+ Object.defineProperty(exports, "__esModule", { value: true });
1683
+ exports.assignDefaults = void 0;
1684
1684
  var codegen_1 = require_codegen();
1685
1685
  var util_1 = require_util();
1686
1686
  function assignDefaults(it, ty) {
@@ -1693,7 +1693,7 @@ var require_defaults = __commonJS({
1693
1693
  items.forEach((sch, i) => assignDefault(it, i, sch.default));
1694
1694
  }
1695
1695
  }
1696
- exports$1.assignDefaults = assignDefaults;
1696
+ exports.assignDefaults = assignDefaults;
1697
1697
  function assignDefault(it, prop, defaultValue) {
1698
1698
  const { gen, compositeRule, data, opts } = it;
1699
1699
  if (defaultValue === void 0)
@@ -1714,9 +1714,9 @@ var require_defaults = __commonJS({
1714
1714
 
1715
1715
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
1716
1716
  var require_code2 = __commonJS({
1717
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(exports$1) {
1718
- Object.defineProperty(exports$1, "__esModule", { value: true });
1719
- exports$1.validateUnion = exports$1.validateArray = exports$1.usePattern = exports$1.callValidateCode = exports$1.schemaProperties = exports$1.allSchemaProperties = exports$1.noPropertyInData = exports$1.propertyInData = exports$1.isOwnProperty = exports$1.hasPropFunc = exports$1.reportMissingProp = exports$1.checkMissingProp = exports$1.checkReportMissingProp = void 0;
1717
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(exports) {
1718
+ Object.defineProperty(exports, "__esModule", { value: true });
1719
+ 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 = void 0;
1720
1720
  var codegen_1 = require_codegen();
1721
1721
  var util_1 = require_util();
1722
1722
  var names_1 = require_names();
@@ -1728,16 +1728,16 @@ var require_code2 = __commonJS({
1728
1728
  cxt.error();
1729
1729
  });
1730
1730
  }
1731
- exports$1.checkReportMissingProp = checkReportMissingProp;
1731
+ exports.checkReportMissingProp = checkReportMissingProp;
1732
1732
  function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
1733
1733
  return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`)));
1734
1734
  }
1735
- exports$1.checkMissingProp = checkMissingProp;
1735
+ exports.checkMissingProp = checkMissingProp;
1736
1736
  function reportMissingProp(cxt, missing) {
1737
1737
  cxt.setParams({ missingProperty: missing }, true);
1738
1738
  cxt.error();
1739
1739
  }
1740
- exports$1.reportMissingProp = reportMissingProp;
1740
+ exports.reportMissingProp = reportMissingProp;
1741
1741
  function hasPropFunc(gen) {
1742
1742
  return gen.scopeValue("func", {
1743
1743
  // eslint-disable-next-line @typescript-eslint/unbound-method
@@ -1745,29 +1745,29 @@ var require_code2 = __commonJS({
1745
1745
  code: (0, codegen_1._)`Object.prototype.hasOwnProperty`
1746
1746
  });
1747
1747
  }
1748
- exports$1.hasPropFunc = hasPropFunc;
1748
+ exports.hasPropFunc = hasPropFunc;
1749
1749
  function isOwnProperty(gen, data, property) {
1750
1750
  return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`;
1751
1751
  }
1752
- exports$1.isOwnProperty = isOwnProperty;
1752
+ exports.isOwnProperty = isOwnProperty;
1753
1753
  function propertyInData(gen, data, property, ownProperties) {
1754
1754
  const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
1755
1755
  return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond;
1756
1756
  }
1757
- exports$1.propertyInData = propertyInData;
1757
+ exports.propertyInData = propertyInData;
1758
1758
  function noPropertyInData(gen, data, property, ownProperties) {
1759
1759
  const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`;
1760
1760
  return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
1761
1761
  }
1762
- exports$1.noPropertyInData = noPropertyInData;
1762
+ exports.noPropertyInData = noPropertyInData;
1763
1763
  function allSchemaProperties(schemaMap) {
1764
1764
  return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
1765
1765
  }
1766
- exports$1.allSchemaProperties = allSchemaProperties;
1766
+ exports.allSchemaProperties = allSchemaProperties;
1767
1767
  function schemaProperties(it, schemaMap) {
1768
1768
  return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
1769
1769
  }
1770
- exports$1.schemaProperties = schemaProperties;
1770
+ exports.schemaProperties = schemaProperties;
1771
1771
  function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
1772
1772
  const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
1773
1773
  const valCxt = [
@@ -1781,7 +1781,7 @@ var require_code2 = __commonJS({
1781
1781
  const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
1782
1782
  return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`;
1783
1783
  }
1784
- exports$1.callValidateCode = callValidateCode;
1784
+ exports.callValidateCode = callValidateCode;
1785
1785
  var newRegExp = (0, codegen_1._)`new RegExp`;
1786
1786
  function usePattern({ gen, it: { opts } }, pattern) {
1787
1787
  const u = opts.unicodeRegExp ? "u" : "";
@@ -1793,7 +1793,7 @@ var require_code2 = __commonJS({
1793
1793
  code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
1794
1794
  });
1795
1795
  }
1796
- exports$1.usePattern = usePattern;
1796
+ exports.usePattern = usePattern;
1797
1797
  function validateArray(cxt) {
1798
1798
  const { gen, data, keyword, it } = cxt;
1799
1799
  const valid = gen.name("valid");
@@ -1817,7 +1817,7 @@ var require_code2 = __commonJS({
1817
1817
  });
1818
1818
  }
1819
1819
  }
1820
- exports$1.validateArray = validateArray;
1820
+ exports.validateArray = validateArray;
1821
1821
  function validateUnion(cxt) {
1822
1822
  const { gen, schema, keyword, it } = cxt;
1823
1823
  if (!Array.isArray(schema))
@@ -1840,15 +1840,15 @@ var require_code2 = __commonJS({
1840
1840
  }));
1841
1841
  cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
1842
1842
  }
1843
- exports$1.validateUnion = validateUnion;
1843
+ exports.validateUnion = validateUnion;
1844
1844
  }
1845
1845
  });
1846
1846
 
1847
1847
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
1848
1848
  var require_keyword = __commonJS({
1849
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports$1) {
1850
- Object.defineProperty(exports$1, "__esModule", { value: true });
1851
- exports$1.validateKeywordUsage = exports$1.validSchemaType = exports$1.funcKeywordCode = exports$1.macroKeywordCode = void 0;
1849
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
1850
+ Object.defineProperty(exports, "__esModule", { value: true });
1851
+ exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
1852
1852
  var codegen_1 = require_codegen();
1853
1853
  var names_1 = require_names();
1854
1854
  var code_1 = require_code2();
@@ -1869,7 +1869,7 @@ var require_keyword = __commonJS({
1869
1869
  }, valid);
1870
1870
  cxt.pass(valid, () => cxt.error(true));
1871
1871
  }
1872
- exports$1.macroKeywordCode = macroKeywordCode;
1872
+ exports.macroKeywordCode = macroKeywordCode;
1873
1873
  function funcKeywordCode(cxt, def) {
1874
1874
  var _a3;
1875
1875
  const { gen, keyword, schema, parentSchema, $data, it } = cxt;
@@ -1913,7 +1913,7 @@ var require_keyword = __commonJS({
1913
1913
  gen.if((0, codegen_1.not)((_a4 = def.valid) !== null && _a4 !== void 0 ? _a4 : valid), errors);
1914
1914
  }
1915
1915
  }
1916
- exports$1.funcKeywordCode = funcKeywordCode;
1916
+ exports.funcKeywordCode = funcKeywordCode;
1917
1917
  function modifyData(cxt) {
1918
1918
  const { gen, data, it } = cxt;
1919
1919
  gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`));
@@ -1937,7 +1937,7 @@ var require_keyword = __commonJS({
1937
1937
  function validSchemaType(schema, schemaType, allowUndefined = false) {
1938
1938
  return !schemaType.length || schemaType.some((st) => st === "array" ? Array.isArray(schema) : st === "object" ? schema && typeof schema == "object" && !Array.isArray(schema) : typeof schema == st || allowUndefined && typeof schema == "undefined");
1939
1939
  }
1940
- exports$1.validSchemaType = validSchemaType;
1940
+ exports.validSchemaType = validSchemaType;
1941
1941
  function validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) {
1942
1942
  if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {
1943
1943
  throw new Error("ajv implementation error");
@@ -1957,15 +1957,15 @@ var require_keyword = __commonJS({
1957
1957
  }
1958
1958
  }
1959
1959
  }
1960
- exports$1.validateKeywordUsage = validateKeywordUsage;
1960
+ exports.validateKeywordUsage = validateKeywordUsage;
1961
1961
  }
1962
1962
  });
1963
1963
 
1964
1964
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
1965
1965
  var require_subschema = __commonJS({
1966
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports$1) {
1967
- Object.defineProperty(exports$1, "__esModule", { value: true });
1968
- exports$1.extendSubschemaMode = exports$1.extendSubschemaData = exports$1.getSubschema = void 0;
1966
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
1967
+ Object.defineProperty(exports, "__esModule", { value: true });
1968
+ exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
1969
1969
  var codegen_1 = require_codegen();
1970
1970
  var util_1 = require_util();
1971
1971
  function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {
@@ -1997,7 +1997,7 @@ var require_subschema = __commonJS({
1997
1997
  }
1998
1998
  throw new Error('either "keyword" or "schema" must be passed');
1999
1999
  }
2000
- exports$1.getSubschema = getSubschema;
2000
+ exports.getSubschema = getSubschema;
2001
2001
  function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
2002
2002
  if (data !== void 0 && dataProp !== void 0) {
2003
2003
  throw new Error('both "data" and "dataProp" passed, only one allowed');
@@ -2028,7 +2028,7 @@ var require_subschema = __commonJS({
2028
2028
  subschema.dataNames = [...it.dataNames, _nextData];
2029
2029
  }
2030
2030
  }
2031
- exports$1.extendSubschemaData = extendSubschemaData;
2031
+ exports.extendSubschemaData = extendSubschemaData;
2032
2032
  function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {
2033
2033
  if (compositeRule !== void 0)
2034
2034
  subschema.compositeRule = compositeRule;
@@ -2039,13 +2039,13 @@ var require_subschema = __commonJS({
2039
2039
  subschema.jtdDiscriminator = jtdDiscriminator;
2040
2040
  subschema.jtdMetadata = jtdMetadata;
2041
2041
  }
2042
- exports$1.extendSubschemaMode = extendSubschemaMode;
2042
+ exports.extendSubschemaMode = extendSubschemaMode;
2043
2043
  }
2044
2044
  });
2045
2045
 
2046
2046
  // ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
2047
2047
  var require_fast_deep_equal = __commonJS({
2048
- "../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports$1, module) {
2048
+ "../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
2049
2049
  module.exports = function equal(a, b) {
2050
2050
  if (a === b) return true;
2051
2051
  if (a && b && typeof a == "object" && typeof b == "object") {
@@ -2079,7 +2079,7 @@ var require_fast_deep_equal = __commonJS({
2079
2079
 
2080
2080
  // ../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
2081
2081
  var require_json_schema_traverse = __commonJS({
2082
- "../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports$1, module) {
2082
+ "../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports, module) {
2083
2083
  var traverse = module.exports = function(schema, opts, cb) {
2084
2084
  if (typeof opts == "function") {
2085
2085
  cb = opts;
@@ -2166,9 +2166,9 @@ var require_json_schema_traverse = __commonJS({
2166
2166
 
2167
2167
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
2168
2168
  var require_resolve = __commonJS({
2169
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(exports$1) {
2170
- Object.defineProperty(exports$1, "__esModule", { value: true });
2171
- exports$1.getSchemaRefs = exports$1.resolveUrl = exports$1.normalizeId = exports$1._getFullPath = exports$1.getFullPath = exports$1.inlineRef = void 0;
2169
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(exports) {
2170
+ Object.defineProperty(exports, "__esModule", { value: true });
2171
+ exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
2172
2172
  var util_1 = require_util();
2173
2173
  var equal = require_fast_deep_equal();
2174
2174
  var traverse = require_json_schema_traverse();
@@ -2199,7 +2199,7 @@ var require_resolve = __commonJS({
2199
2199
  return false;
2200
2200
  return countKeys(schema) <= limit;
2201
2201
  }
2202
- exports$1.inlineRef = inlineRef;
2202
+ exports.inlineRef = inlineRef;
2203
2203
  var REF_KEYWORDS = /* @__PURE__ */ new Set([
2204
2204
  "$ref",
2205
2205
  "$recursiveRef",
@@ -2241,22 +2241,22 @@ var require_resolve = __commonJS({
2241
2241
  const p = resolver.parse(id);
2242
2242
  return _getFullPath(resolver, p);
2243
2243
  }
2244
- exports$1.getFullPath = getFullPath;
2244
+ exports.getFullPath = getFullPath;
2245
2245
  function _getFullPath(resolver, p) {
2246
2246
  const serialized = resolver.serialize(p);
2247
2247
  return serialized.split("#")[0] + "#";
2248
2248
  }
2249
- exports$1._getFullPath = _getFullPath;
2249
+ exports._getFullPath = _getFullPath;
2250
2250
  var TRAILING_SLASH_HASH = /#\/?$/;
2251
2251
  function normalizeId(id) {
2252
2252
  return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
2253
2253
  }
2254
- exports$1.normalizeId = normalizeId;
2254
+ exports.normalizeId = normalizeId;
2255
2255
  function resolveUrl(resolver, baseId, id) {
2256
2256
  id = normalizeId(id);
2257
2257
  return resolver.resolve(baseId, id);
2258
2258
  }
2259
- exports$1.resolveUrl = resolveUrl;
2259
+ exports.resolveUrl = resolveUrl;
2260
2260
  var ANCHOR = /^[a-z_][-a-z0-9._]*$/i;
2261
2261
  function getSchemaRefs(schema, baseId) {
2262
2262
  if (typeof schema == "boolean")
@@ -2315,15 +2315,15 @@ var require_resolve = __commonJS({
2315
2315
  return new Error(`reference "${ref}" resolves to more than one schema`);
2316
2316
  }
2317
2317
  }
2318
- exports$1.getSchemaRefs = getSchemaRefs;
2318
+ exports.getSchemaRefs = getSchemaRefs;
2319
2319
  }
2320
2320
  });
2321
2321
 
2322
2322
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
2323
2323
  var require_validate = __commonJS({
2324
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(exports$1) {
2325
- Object.defineProperty(exports$1, "__esModule", { value: true });
2326
- exports$1.getData = exports$1.KeywordCxt = exports$1.validateFunctionCode = void 0;
2324
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(exports) {
2325
+ Object.defineProperty(exports, "__esModule", { value: true });
2326
+ exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
2327
2327
  var boolSchema_1 = require_boolSchema();
2328
2328
  var dataType_1 = require_dataType();
2329
2329
  var applicability_1 = require_applicability();
@@ -2346,7 +2346,7 @@ var require_validate = __commonJS({
2346
2346
  }
2347
2347
  validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
2348
2348
  }
2349
- exports$1.validateFunctionCode = validateFunctionCode;
2349
+ exports.validateFunctionCode = validateFunctionCode;
2350
2350
  function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
2351
2351
  if (opts.code.es5) {
2352
2352
  gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {
@@ -2766,7 +2766,7 @@ var require_validate = __commonJS({
2766
2766
  }
2767
2767
  }
2768
2768
  };
2769
- exports$1.KeywordCxt = KeywordCxt;
2769
+ exports.KeywordCxt = KeywordCxt;
2770
2770
  function keywordCode(it, keyword, def, ruleType) {
2771
2771
  const cxt = new KeywordCxt(it, def, keyword);
2772
2772
  if ("code" in def) {
@@ -2821,14 +2821,14 @@ var require_validate = __commonJS({
2821
2821
  return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
2822
2822
  }
2823
2823
  }
2824
- exports$1.getData = getData;
2824
+ exports.getData = getData;
2825
2825
  }
2826
2826
  });
2827
2827
 
2828
2828
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
2829
2829
  var require_validation_error = __commonJS({
2830
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(exports$1) {
2831
- Object.defineProperty(exports$1, "__esModule", { value: true });
2830
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
2831
+ Object.defineProperty(exports, "__esModule", { value: true });
2832
2832
  var ValidationError = class extends Error {
2833
2833
  constructor(errors) {
2834
2834
  super("validation failed");
@@ -2836,14 +2836,14 @@ var require_validation_error = __commonJS({
2836
2836
  this.ajv = this.validation = true;
2837
2837
  }
2838
2838
  };
2839
- exports$1.default = ValidationError;
2839
+ exports.default = ValidationError;
2840
2840
  }
2841
2841
  });
2842
2842
 
2843
2843
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
2844
2844
  var require_ref_error = __commonJS({
2845
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(exports$1) {
2846
- Object.defineProperty(exports$1, "__esModule", { value: true });
2845
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(exports) {
2846
+ Object.defineProperty(exports, "__esModule", { value: true });
2847
2847
  var resolve_1 = require_resolve();
2848
2848
  var MissingRefError = class extends Error {
2849
2849
  constructor(resolver, baseId, ref, msg) {
@@ -2852,15 +2852,15 @@ var require_ref_error = __commonJS({
2852
2852
  this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
2853
2853
  }
2854
2854
  };
2855
- exports$1.default = MissingRefError;
2855
+ exports.default = MissingRefError;
2856
2856
  }
2857
2857
  });
2858
2858
 
2859
2859
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
2860
2860
  var require_compile = __commonJS({
2861
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(exports$1) {
2862
- Object.defineProperty(exports$1, "__esModule", { value: true });
2863
- exports$1.resolveSchema = exports$1.getCompilingSchema = exports$1.resolveRef = exports$1.compileSchema = exports$1.SchemaEnv = void 0;
2861
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(exports) {
2862
+ Object.defineProperty(exports, "__esModule", { value: true });
2863
+ exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
2864
2864
  var codegen_1 = require_codegen();
2865
2865
  var validation_error_1 = require_validation_error();
2866
2866
  var names_1 = require_names();
@@ -2886,7 +2886,7 @@ var require_compile = __commonJS({
2886
2886
  this.refs = {};
2887
2887
  }
2888
2888
  };
2889
- exports$1.SchemaEnv = SchemaEnv;
2889
+ exports.SchemaEnv = SchemaEnv;
2890
2890
  function compileSchema(sch) {
2891
2891
  const _sch = getCompilingSchema.call(this, sch);
2892
2892
  if (_sch)
@@ -2972,7 +2972,7 @@ var require_compile = __commonJS({
2972
2972
  this._compilations.delete(sch);
2973
2973
  }
2974
2974
  }
2975
- exports$1.compileSchema = compileSchema;
2975
+ exports.compileSchema = compileSchema;
2976
2976
  function resolveRef(root, baseId, ref) {
2977
2977
  var _a3;
2978
2978
  ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
@@ -2990,7 +2990,7 @@ var require_compile = __commonJS({
2990
2990
  return;
2991
2991
  return root.refs[ref] = inlineOrCompile.call(this, _sch);
2992
2992
  }
2993
- exports$1.resolveRef = resolveRef;
2993
+ exports.resolveRef = resolveRef;
2994
2994
  function inlineOrCompile(sch) {
2995
2995
  if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))
2996
2996
  return sch.schema;
@@ -3002,7 +3002,7 @@ var require_compile = __commonJS({
3002
3002
  return sch;
3003
3003
  }
3004
3004
  }
3005
- exports$1.getCompilingSchema = getCompilingSchema;
3005
+ exports.getCompilingSchema = getCompilingSchema;
3006
3006
  function sameSchemaEnv(s1, s2) {
3007
3007
  return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
3008
3008
  }
@@ -3041,7 +3041,7 @@ var require_compile = __commonJS({
3041
3041
  }
3042
3042
  return getJsonPointer.call(this, p, schOrRef);
3043
3043
  }
3044
- exports$1.resolveSchema = resolveSchema;
3044
+ exports.resolveSchema = resolveSchema;
3045
3045
  var PREVENT_SCOPE_CHANGE = /* @__PURE__ */ new Set([
3046
3046
  "properties",
3047
3047
  "patternProperties",
@@ -3081,7 +3081,7 @@ var require_compile = __commonJS({
3081
3081
 
3082
3082
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
3083
3083
  var require_data = __commonJS({
3084
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(exports$1, module) {
3084
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(exports, module) {
3085
3085
  module.exports = {
3086
3086
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
3087
3087
  description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
@@ -3098,11 +3098,33 @@ var require_data = __commonJS({
3098
3098
  }
3099
3099
  });
3100
3100
 
3101
- // ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js
3101
+ // ../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/utils.js
3102
3102
  var require_utils = __commonJS({
3103
- "../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js"(exports$1, module) {
3103
+ "../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/utils.js"(exports, module) {
3104
3104
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3105
3105
  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);
3106
+ var isPort = RegExp.prototype.test.bind(/^\d*$/u);
3107
+ var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3108
+ var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3109
+ var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
3110
+ var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
3111
+ var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
3112
+ var BYTE_HEX = new Array(256);
3113
+ {
3114
+ const HEX_DIGITS = "0123456789ABCDEF";
3115
+ for (let i = 0; i < 256; i++) {
3116
+ BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
3117
+ }
3118
+ }
3119
+ function percentEncodeNonAscii(cp) {
3120
+ if (cp < 2048) {
3121
+ return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
3122
+ }
3123
+ if (cp < 65536) {
3124
+ return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3125
+ }
3126
+ return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
3127
+ }
3106
3128
  function stringArrayToHexStripped(input) {
3107
3129
  let acc = "";
3108
3130
  let code = 0;
@@ -3127,91 +3149,105 @@ var require_utils = __commonJS({
3127
3149
  }
3128
3150
  return acc;
3129
3151
  }
3152
+ var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
3153
+ var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
3154
+ var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
3130
3155
  var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
3131
- function consumeIsZone(buffer) {
3132
- buffer.length = 0;
3133
- return true;
3134
- }
3135
- function consumeHextets(buffer, address, output) {
3136
- if (buffer.length) {
3137
- const hex = stringArrayToHexStripped(buffer);
3138
- if (hex !== "") {
3139
- address.push(hex);
3140
- } else {
3141
- output.error = true;
3142
- return false;
3156
+ function isZoneIdentifier(zone) {
3157
+ if (zone.length === 0) return false;
3158
+ for (let i = 0; i < zone.length; i++) {
3159
+ if (isZoneCharacter(zone[i])) continue;
3160
+ if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
3161
+ i += 2;
3162
+ continue;
3143
3163
  }
3144
- buffer.length = 0;
3164
+ return false;
3145
3165
  }
3146
3166
  return true;
3147
3167
  }
3148
- function getIPV6(input) {
3149
- let tokenCount = 0;
3150
- const output = { error: false, address: "", zone: "" };
3151
- const address = [];
3152
- const buffer = [];
3153
- let endipv6Encountered = false;
3154
- let endIpv6 = false;
3155
- let consume = consumeHextets;
3156
- for (let i = 0; i < input.length; i++) {
3157
- const cursor = input[i];
3158
- if (cursor === "[" || cursor === "]") {
3159
- continue;
3160
- }
3161
- if (cursor === ":") {
3162
- if (endipv6Encountered === true) {
3163
- endIpv6 = true;
3164
- }
3165
- if (!consume(buffer, address, output)) {
3166
- break;
3167
- }
3168
- if (++tokenCount > 7) {
3169
- output.error = true;
3170
- break;
3171
- }
3172
- if (i > 0 && input[i - 1] === ":") {
3173
- endipv6Encountered = true;
3174
- }
3175
- address.push(":");
3176
- continue;
3177
- } else if (cursor === "%") {
3178
- if (!consume(buffer, address, output)) {
3179
- break;
3168
+ function compressIPv6ZeroRun(hextets) {
3169
+ let bestStart = -1;
3170
+ let bestLength = 0;
3171
+ let runStart = -1;
3172
+ let runLength = 0;
3173
+ for (let i = 0; i < hextets.length; i++) {
3174
+ if (hextets[i] === "0") {
3175
+ if (runStart === -1) runStart = i;
3176
+ runLength++;
3177
+ if (runLength > bestLength) {
3178
+ bestLength = runLength;
3179
+ bestStart = runStart;
3180
3180
  }
3181
- consume = consumeIsZone;
3182
3181
  } else {
3183
- buffer.push(cursor);
3182
+ runStart = -1;
3183
+ runLength = 0;
3184
+ }
3185
+ }
3186
+ if (bestLength < 2) return hextets.join(":");
3187
+ const head = hextets.slice(0, bestStart).join(":");
3188
+ const tail = hextets.slice(bestStart + bestLength).join(":");
3189
+ return head + "::" + tail;
3190
+ }
3191
+ function normalizeIPv6Address(input) {
3192
+ const compression = input.indexOf("::");
3193
+ if (compression !== -1 && input.indexOf("::", compression + 1) !== -1) return void 0;
3194
+ const left = compression === -1 ? input.split(":") : input.slice(0, compression).split(":");
3195
+ const right = compression === -1 ? [] : input.slice(compression + 2).split(":");
3196
+ if (compression !== -1) {
3197
+ if (left.length === 1 && left[0] === "") left.length = 0;
3198
+ if (right.length === 1 && right[0] === "") right.length = 0;
3199
+ }
3200
+ const parts = left.concat(right);
3201
+ let hextetCount = 0;
3202
+ for (let i = 0; i < parts.length; i++) {
3203
+ const part = parts[i];
3204
+ if (part === "") return void 0;
3205
+ if (part.indexOf(".") !== -1) {
3206
+ if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part)) return void 0;
3207
+ hextetCount += 2;
3184
3208
  continue;
3185
3209
  }
3210
+ if (!isHextet(part)) return void 0;
3211
+ parts[i] = parseInt(part, 16).toString(16);
3212
+ hextetCount++;
3186
3213
  }
3187
- if (buffer.length) {
3188
- if (consume === consumeIsZone) {
3189
- output.zone = buffer.join("");
3190
- } else if (endIpv6) {
3191
- address.push(buffer.join(""));
3192
- } else {
3193
- address.push(stringArrayToHexStripped(buffer));
3194
- }
3214
+ if (compression === -1) {
3215
+ if (hextetCount !== 8) return void 0;
3216
+ return compressIPv6ZeroRun(parts);
3195
3217
  }
3196
- output.address = address.join("");
3197
- return output;
3218
+ if (hextetCount >= 8) return void 0;
3219
+ const expanded = parts.slice(0, left.length);
3220
+ for (let i = hextetCount; i < 8; i++) expanded.push("0");
3221
+ for (let i = left.length; i < parts.length; i++) expanded.push(parts[i]);
3222
+ return compressIPv6ZeroRun(expanded);
3198
3223
  }
3199
3224
  function normalizeIPv6(host) {
3200
- if (findToken(host, ":") < 2) {
3201
- return { host, isIPV6: false };
3202
- }
3203
- const ipv62 = getIPV6(host);
3204
- if (!ipv62.error) {
3205
- let newHost = ipv62.address;
3206
- let escapedHost = ipv62.address;
3207
- if (ipv62.zone) {
3208
- newHost += "%" + ipv62.zone;
3209
- escapedHost += "%25" + ipv62.zone;
3210
- }
3211
- return { host: newHost, isIPV6: true, escapedHost };
3212
- } else {
3213
- return { host, isIPV6: false };
3214
- }
3225
+ const bracketed = host[0] === "[" && host[host.length - 1] === "]";
3226
+ const hasBracket = host[0] === "[" || host[host.length - 1] === "]";
3227
+ if (hasBracket && !bracketed) return { host, isIPV6: false, error: true };
3228
+ let input = bracketed ? host.slice(1, -1) : host;
3229
+ if (bracketed && isIPvFuture(input)) {
3230
+ input = input.toLowerCase();
3231
+ return { host: `[${input}]`, escapedHost: input, isIPV6: false, isIPVFuture: true };
3232
+ }
3233
+ if (findToken(input, ":") < 2) {
3234
+ return { host, isIPV6: false, error: bracketed };
3235
+ }
3236
+ let zoneIdentifier = "";
3237
+ const zoneSeparator = input.indexOf("%");
3238
+ if (zoneSeparator !== -1) {
3239
+ const separatorLength = input.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
3240
+ zoneIdentifier = input.slice(zoneSeparator + separatorLength);
3241
+ if (!isZoneIdentifier(zoneIdentifier)) return { host, isIPV6: false, error: true };
3242
+ input = input.slice(0, zoneSeparator);
3243
+ }
3244
+ const address = normalizeIPv6Address(input);
3245
+ if (address === void 0) return { host, isIPV6: false, error: true };
3246
+ return {
3247
+ host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
3248
+ escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
3249
+ isIPV6: true
3250
+ };
3215
3251
  }
3216
3252
  function findToken(str, token) {
3217
3253
  let ind = 0;
@@ -3295,56 +3331,265 @@ var require_utils = __commonJS({
3295
3331
  }
3296
3332
  return output.join("");
3297
3333
  }
3298
- function normalizeComponentEncoding(component, esc2) {
3299
- const func = esc2 !== true ? escape : unescape;
3300
- if (component.scheme !== void 0) {
3301
- component.scheme = func(component.scheme);
3334
+ var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
3335
+ var HOST_DELIM_RE = /[@/?#:]/g;
3336
+ var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
3337
+ function reescapeHostDelimiters(host, isIP) {
3338
+ const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
3339
+ re.lastIndex = 0;
3340
+ return host.replace(re, (ch) => HOST_DELIMS[ch]);
3341
+ }
3342
+ function normalizePercentEncoding(input, decodeUnreserved = false) {
3343
+ if (input.indexOf("%") === -1) {
3344
+ return input;
3302
3345
  }
3303
- if (component.userinfo !== void 0) {
3304
- component.userinfo = func(component.userinfo);
3346
+ let output = "";
3347
+ for (let i = 0; i < input.length; i++) {
3348
+ if (input[i] === "%" && i + 2 < input.length) {
3349
+ const hex = input.slice(i + 1, i + 3);
3350
+ if (isHexPair(hex)) {
3351
+ const normalizedHex = hex.toUpperCase();
3352
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3353
+ if (decodeUnreserved && isUnreserved(decoded)) {
3354
+ output += decoded;
3355
+ } else {
3356
+ output += "%" + normalizedHex;
3357
+ }
3358
+ i += 2;
3359
+ continue;
3360
+ }
3361
+ }
3362
+ output += input[i];
3305
3363
  }
3306
- if (component.host !== void 0) {
3307
- component.host = func(component.host);
3364
+ return output;
3365
+ }
3366
+ function normalizePathEncoding(input) {
3367
+ let output = "";
3368
+ for (let i = 0; i < input.length; i++) {
3369
+ const ch = input[i];
3370
+ if (ch === "%" && i + 2 < input.length) {
3371
+ const hex = input.slice(i + 1, i + 3);
3372
+ if (isHexPair(hex)) {
3373
+ const normalizedHex = hex.toUpperCase();
3374
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3375
+ if (decoded !== "." && isUnreserved(decoded)) {
3376
+ output += decoded;
3377
+ } else {
3378
+ output += "%" + normalizedHex;
3379
+ }
3380
+ i += 2;
3381
+ continue;
3382
+ }
3383
+ }
3384
+ if (isPathCharacter(ch)) {
3385
+ output += ch;
3386
+ } else {
3387
+ const code = input.charCodeAt(i);
3388
+ if (code < 128) {
3389
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3390
+ } else if (code < 55296 || code > 57343) {
3391
+ output += percentEncodeNonAscii(code);
3392
+ } else if (code <= 56319 && i + 1 < input.length) {
3393
+ const low = input.charCodeAt(i + 1);
3394
+ if (low >= 56320 && low <= 57343) {
3395
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3396
+ i++;
3397
+ } else {
3398
+ output += percentEncodeNonAscii(65533);
3399
+ }
3400
+ } else {
3401
+ output += percentEncodeNonAscii(65533);
3402
+ }
3403
+ }
3308
3404
  }
3309
- if (component.path !== void 0) {
3310
- component.path = func(component.path);
3405
+ return output;
3406
+ }
3407
+ function serializePathEncoding(input, pathNoScheme = false) {
3408
+ let output = "";
3409
+ let firstSegment = pathNoScheme && input[0] !== "/";
3410
+ for (let i = 0; i < input.length; i++) {
3411
+ const ch = input[i];
3412
+ if (ch === "%" && i + 2 < input.length) {
3413
+ const hex = input.slice(i + 1, i + 3);
3414
+ if (isHexPair(hex)) {
3415
+ output += "%" + hex.toUpperCase();
3416
+ i += 2;
3417
+ continue;
3418
+ }
3419
+ }
3420
+ if (ch === "/") {
3421
+ firstSegment = false;
3422
+ }
3423
+ if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) {
3424
+ output += ch;
3425
+ } else {
3426
+ const code = input.charCodeAt(i);
3427
+ if (code < 128) {
3428
+ output += BYTE_HEX[code];
3429
+ } else if (code < 55296 || code > 57343) {
3430
+ output += percentEncodeNonAscii(code);
3431
+ } else if (code <= 56319 && i + 1 < input.length) {
3432
+ const low = input.charCodeAt(i + 1);
3433
+ if (low >= 56320 && low <= 57343) {
3434
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3435
+ i++;
3436
+ } else {
3437
+ output += percentEncodeNonAscii(65533);
3438
+ }
3439
+ } else {
3440
+ output += percentEncodeNonAscii(65533);
3441
+ }
3442
+ }
3311
3443
  }
3312
- if (component.query !== void 0) {
3313
- component.query = func(component.query);
3444
+ return output;
3445
+ }
3446
+ function encodeComponent(input, isAllowed) {
3447
+ let output = "";
3448
+ for (let i = 0; i < input.length; i++) {
3449
+ const ch = input[i];
3450
+ if (ch === "%" && i + 2 < input.length) {
3451
+ const hex = input.slice(i + 1, i + 3);
3452
+ if (isHexPair(hex)) {
3453
+ output += "%" + hex.toUpperCase();
3454
+ i += 2;
3455
+ continue;
3456
+ }
3457
+ }
3458
+ if (isAllowed(ch)) {
3459
+ output += ch;
3460
+ } else {
3461
+ const code = input.charCodeAt(i);
3462
+ if (code < 128) {
3463
+ output += BYTE_HEX[code];
3464
+ } else if (code < 55296 || code > 57343) {
3465
+ output += percentEncodeNonAscii(code);
3466
+ } else if (code <= 56319 && i + 1 < input.length) {
3467
+ const low = input.charCodeAt(i + 1);
3468
+ if (low >= 56320 && low <= 57343) {
3469
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3470
+ i++;
3471
+ } else {
3472
+ output += percentEncodeNonAscii(65533);
3473
+ }
3474
+ } else {
3475
+ output += percentEncodeNonAscii(65533);
3476
+ }
3477
+ }
3314
3478
  }
3315
- if (component.fragment !== void 0) {
3316
- component.fragment = func(component.fragment);
3479
+ return output;
3480
+ }
3481
+ function encodeUserinfo(input) {
3482
+ return encodeComponent(input, isUserinfoCharacter);
3483
+ }
3484
+ function encodeQuery(input) {
3485
+ return encodeComponent(input, isQueryFragmentCharacter);
3486
+ }
3487
+ function encodeFragment(input) {
3488
+ return encodeComponent(input, isQueryFragmentCharacter);
3489
+ }
3490
+ function isEscapeSafe(cp) {
3491
+ return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
3492
+ }
3493
+ function normalizeQueryFragmentEncoding(input) {
3494
+ let output = "";
3495
+ for (let i = 0; i < input.length; i++) {
3496
+ const ch = input[i];
3497
+ if (ch === "%" && i + 2 < input.length) {
3498
+ const hex = input.slice(i + 1, i + 3);
3499
+ if (isHexPair(hex)) {
3500
+ const normalizedHex = hex.toUpperCase();
3501
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3502
+ if (isUnreserved(decoded)) {
3503
+ output += decoded;
3504
+ } else {
3505
+ output += "%" + normalizedHex;
3506
+ }
3507
+ i += 2;
3508
+ continue;
3509
+ }
3510
+ }
3511
+ if (isQueryFragmentCharacter(ch)) {
3512
+ output += ch;
3513
+ } else {
3514
+ const code = input.charCodeAt(i);
3515
+ if (code < 128) {
3516
+ output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
3517
+ } else if (code < 55296 || code > 57343) {
3518
+ output += percentEncodeNonAscii(code);
3519
+ } else if (code <= 56319 && i + 1 < input.length) {
3520
+ const low = input.charCodeAt(i + 1);
3521
+ if (low >= 56320 && low <= 57343) {
3522
+ output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
3523
+ i++;
3524
+ } else {
3525
+ output += percentEncodeNonAscii(65533);
3526
+ }
3527
+ } else {
3528
+ output += percentEncodeNonAscii(65533);
3529
+ }
3530
+ }
3317
3531
  }
3318
- return component;
3532
+ return output;
3533
+ }
3534
+ function escapePreservingEscapes(input) {
3535
+ let output = "";
3536
+ for (let i = 0; i < input.length; i++) {
3537
+ if (input[i] === "%" && i + 2 < input.length) {
3538
+ const hex = input.slice(i + 1, i + 3);
3539
+ if (isHexPair(hex)) {
3540
+ output += "%" + hex.toUpperCase();
3541
+ i += 2;
3542
+ continue;
3543
+ }
3544
+ }
3545
+ output += escape(input[i]);
3546
+ }
3547
+ return output;
3319
3548
  }
3320
3549
  function recomposeAuthority(component) {
3321
3550
  const uriTokens = [];
3322
3551
  if (component.userinfo !== void 0) {
3323
- uriTokens.push(component.userinfo);
3552
+ uriTokens.push(encodeUserinfo(component.userinfo));
3324
3553
  uriTokens.push("@");
3325
3554
  }
3326
3555
  if (component.host !== void 0) {
3327
- let host = unescape(component.host);
3556
+ let host = component.host;
3328
3557
  if (!isIPv4(host)) {
3329
- const ipV6res = normalizeIPv6(host);
3330
- if (ipV6res.isIPV6 === true) {
3558
+ let ipV6res = normalizeIPv6(host);
3559
+ if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
3560
+ host = normalizePercentEncoding(host, true);
3561
+ ipV6res = normalizeIPv6(host);
3562
+ }
3563
+ if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
3331
3564
  host = `[${ipV6res.escapedHost}]`;
3332
3565
  } else {
3333
- host = component.host;
3566
+ host = reescapeHostDelimiters(host, false);
3334
3567
  }
3335
3568
  }
3336
3569
  uriTokens.push(host);
3337
3570
  }
3338
3571
  if (typeof component.port === "number" || typeof component.port === "string") {
3572
+ const port = String(component.port);
3573
+ if (!isPort(port)) {
3574
+ throw new TypeError("URI port is malformed.");
3575
+ }
3339
3576
  uriTokens.push(":");
3340
- uriTokens.push(String(component.port));
3577
+ uriTokens.push(port);
3341
3578
  }
3342
3579
  return uriTokens.length ? uriTokens.join("") : void 0;
3343
3580
  }
3344
3581
  module.exports = {
3345
3582
  nonSimpleDomain,
3346
3583
  recomposeAuthority,
3347
- normalizeComponentEncoding,
3584
+ reescapeHostDelimiters,
3585
+ normalizePercentEncoding,
3586
+ normalizePathEncoding,
3587
+ serializePathEncoding,
3588
+ normalizeQueryFragmentEncoding,
3589
+ encodeUserinfo,
3590
+ encodeQuery,
3591
+ encodeFragment,
3592
+ escapePreservingEscapes,
3348
3593
  removeDotSegments,
3349
3594
  isIPv4,
3350
3595
  isUUID,
@@ -3354,11 +3599,11 @@ var require_utils = __commonJS({
3354
3599
  }
3355
3600
  });
3356
3601
 
3357
- // ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js
3602
+ // ../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/schemes.js
3358
3603
  var require_schemes = __commonJS({
3359
- "../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js"(exports$1, module) {
3604
+ "../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/schemes.js"(exports, module) {
3360
3605
  var { isUUID } = require_utils();
3361
- var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3606
+ var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
3362
3607
  var supportedSchemeNames = (
3363
3608
  /** @type {const} */
3364
3609
  [
@@ -3419,9 +3664,10 @@ var require_schemes = __commonJS({
3419
3664
  wsComponent.secure = void 0;
3420
3665
  }
3421
3666
  if (wsComponent.resourceName) {
3422
- const [path, query] = wsComponent.resourceName.split("?");
3667
+ const queryIndex = wsComponent.resourceName.indexOf("?");
3668
+ const path = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
3423
3669
  wsComponent.path = path && path !== "/" ? path : void 0;
3424
- wsComponent.query = query;
3670
+ wsComponent.query = queryIndex === -1 ? void 0 : wsComponent.resourceName.slice(queryIndex + 1);
3425
3671
  wsComponent.resourceName = void 0;
3426
3672
  }
3427
3673
  wsComponent.fragment = void 0;
@@ -3433,7 +3679,7 @@ var require_schemes = __commonJS({
3433
3679
  return urnComponent;
3434
3680
  }
3435
3681
  const matches = urnComponent.path.match(URN_REG);
3436
- if (matches) {
3682
+ if (matches && matches[0] === urnComponent.path) {
3437
3683
  const scheme = options.scheme || urnComponent.scheme || "urn";
3438
3684
  urnComponent.nid = matches[1].toLowerCase();
3439
3685
  urnComponent.nss = matches[2];
@@ -3563,15 +3809,24 @@ var require_schemes = __commonJS({
3563
3809
  }
3564
3810
  });
3565
3811
 
3566
- // ../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js
3812
+ // ../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/index.js
3567
3813
  var require_fast_uri = __commonJS({
3568
- "../../node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js"(exports$1, module) {
3569
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
3814
+ "../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/index.js"(exports, module) {
3815
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3570
3816
  var { SCHEMES, getSchemeHandler } = require_schemes();
3817
+ var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
3818
+ var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
3819
+ function decodeValidScheme(scheme) {
3820
+ const decodedScheme = unescape(String(scheme));
3821
+ if (!VALID_SCHEME.test(decodedScheme)) {
3822
+ throw new TypeError(MALFORMED_SCHEME_ERROR);
3823
+ }
3824
+ return decodedScheme;
3825
+ }
3571
3826
  function normalize(uri, options) {
3572
3827
  if (typeof uri === "string") {
3573
3828
  uri = /** @type {T} */
3574
- serialize(parse3(uri, options), options);
3829
+ normalizeString(uri, options);
3575
3830
  } else if (typeof uri === "object") {
3576
3831
  uri = /** @type {T} */
3577
3832
  parse3(serialize(uri, options), options);
@@ -3580,7 +3835,34 @@ var require_fast_uri = __commonJS({
3580
3835
  }
3581
3836
  function resolve(baseURI, relativeURI, options) {
3582
3837
  const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
3583
- const resolved = resolveComponent(parse3(baseURI, schemelessOptions), parse3(relativeURI, schemelessOptions), schemelessOptions, true);
3838
+ const {
3839
+ parsed: baseParsed,
3840
+ malformedAuthorityOrPort: baseMalformed,
3841
+ malformedPercentEncoding: baseMalformedPercentEncoding,
3842
+ malformedSchemeSpecific: baseMalformedSchemeSpecific,
3843
+ malformedHost: baseMalformedHost,
3844
+ malformedScheme: baseMalformedScheme
3845
+ } = parseWithStatus(baseURI, schemelessOptions);
3846
+ const {
3847
+ parsed: relativeParsed,
3848
+ malformedAuthorityOrPort: relativeMalformed,
3849
+ malformedPercentEncoding: relativeMalformedPercentEncoding,
3850
+ malformedSchemeSpecific: relativeMalformedSchemeSpecific,
3851
+ malformedHost: relativeMalformedHost,
3852
+ malformedScheme: relativeMalformedScheme
3853
+ } = parseWithStatus(relativeURI, schemelessOptions);
3854
+ if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
3855
+ throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
3856
+ }
3857
+ const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
3858
+ const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
3859
+ const resolvedHost = resolved.host;
3860
+ const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
3861
+ canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
3862
+ const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
3863
+ if (resolved.error && !encodedASCIIHost) {
3864
+ throw new Error(resolved.error);
3865
+ }
3584
3866
  schemelessOptions.skipEscape = true;
3585
3867
  return serialize(resolved, schemelessOptions);
3586
3868
  }
@@ -3638,19 +3920,9 @@ var require_fast_uri = __commonJS({
3638
3920
  return target;
3639
3921
  }
3640
3922
  function equal(uriA, uriB, options) {
3641
- if (typeof uriA === "string") {
3642
- uriA = unescape(uriA);
3643
- uriA = serialize(normalizeComponentEncoding(parse3(uriA, options), true), { ...options, skipEscape: true });
3644
- } else if (typeof uriA === "object") {
3645
- uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
3646
- }
3647
- if (typeof uriB === "string") {
3648
- uriB = unescape(uriB);
3649
- uriB = serialize(normalizeComponentEncoding(parse3(uriB, options), true), { ...options, skipEscape: true });
3650
- } else if (typeof uriB === "object") {
3651
- uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
3652
- }
3653
- return uriA.toLowerCase() === uriB.toLowerCase();
3923
+ const normalizedA = normalizeComparableURI(uriA, options);
3924
+ const normalizedB = normalizeComparableURI(uriB, options);
3925
+ return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA === normalizedB;
3654
3926
  }
3655
3927
  function serialize(cmpts, opts) {
3656
3928
  const component = {
@@ -3671,19 +3943,22 @@ var require_fast_uri = __commonJS({
3671
3943
  };
3672
3944
  const options = Object.assign({}, opts);
3673
3945
  const uriTokens = [];
3946
+ if (component.scheme) {
3947
+ component.scheme = decodeValidScheme(component.scheme);
3948
+ }
3674
3949
  const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
3675
3950
  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
3951
+ const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
3952
+ const pathNoScheme = !options.skipEscape && component.scheme === void 0 && !hasAuthority;
3676
3953
  if (component.path !== void 0) {
3677
3954
  if (!options.skipEscape) {
3678
- component.path = escape(component.path);
3679
- if (component.scheme !== void 0) {
3680
- component.path = component.path.split("%3A").join(":");
3681
- }
3955
+ component.path = serializePathEncoding(component.path, pathNoScheme);
3682
3956
  } else {
3683
- component.path = unescape(component.path);
3957
+ component.path = normalizePercentEncoding(component.path);
3684
3958
  }
3685
3959
  }
3686
3960
  if (options.reference !== "suffix" && component.scheme) {
3961
+ component.scheme = decodeValidScheme(component.scheme);
3687
3962
  uriTokens.push(component.scheme, ":");
3688
3963
  }
3689
3964
  const authority = recomposeAuthority(component);
@@ -3701,21 +3976,64 @@ var require_fast_uri = __commonJS({
3701
3976
  if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3702
3977
  s = removeDotSegments(s);
3703
3978
  }
3979
+ if (pathNoScheme) {
3980
+ s = serializePathEncoding(s, true);
3981
+ }
3704
3982
  if (authority === void 0 && s[0] === "/" && s[1] === "/") {
3705
3983
  s = "/%2F" + s.slice(2);
3706
3984
  }
3707
3985
  uriTokens.push(s);
3708
3986
  }
3709
3987
  if (component.query !== void 0) {
3710
- uriTokens.push("?", component.query);
3988
+ uriTokens.push("?", encodeQuery(component.query));
3711
3989
  }
3712
3990
  if (component.fragment !== void 0) {
3713
- uriTokens.push("#", component.fragment);
3991
+ uriTokens.push("#", encodeFragment(component.fragment));
3714
3992
  }
3715
3993
  return uriTokens.join("");
3716
3994
  }
3717
3995
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
3718
- function parse3(uri, opts) {
3996
+ var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
3997
+ var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
3998
+ function getParseError(parsed, matches) {
3999
+ if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
4000
+ return 'URI path must start with "/" when authority is present.';
4001
+ }
4002
+ if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
4003
+ return "URI port is malformed.";
4004
+ }
4005
+ return void 0;
4006
+ }
4007
+ function hasMalformedPercentEncoding(component) {
4008
+ if (component === void 0) return false;
4009
+ let percent = component.indexOf("%");
4010
+ while (percent !== -1) {
4011
+ if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {
4012
+ return true;
4013
+ }
4014
+ percent = component.indexOf("%", percent + 3);
4015
+ }
4016
+ return false;
4017
+ }
4018
+ function isIPLiteral(host) {
4019
+ return host[0] === "[" && host[host.length - 1] === "]";
4020
+ }
4021
+ function hasMalformedComponentPercentEncoding(matches) {
4022
+ const host = matches[4];
4023
+ return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
4024
+ }
4025
+ function canonicalizeHost(parsed, options, schemeHandler, isIP) {
4026
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
4027
+ try {
4028
+ parsed.host = new URL("http://" + parsed.host).hostname;
4029
+ } catch (e) {
4030
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
4031
+ return true;
4032
+ }
4033
+ }
4034
+ return false;
4035
+ }
4036
+ function parseWithStatus(uri, opts) {
3719
4037
  const options = Object.assign({}, opts);
3720
4038
  const parsed = {
3721
4039
  scheme: void 0,
@@ -3726,6 +4044,12 @@ var require_fast_uri = __commonJS({
3726
4044
  query: void 0,
3727
4045
  fragment: void 0
3728
4046
  };
4047
+ let malformedAuthorityOrPort = false;
4048
+ let malformedPercentEncoding = false;
4049
+ let malformedSchemeSpecific = false;
4050
+ let malformedHost = false;
4051
+ let malformedIPLiteral = false;
4052
+ let malformedScheme = false;
3729
4053
  let isIP = false;
3730
4054
  if (options.reference === "suffix") {
3731
4055
  if (options.scheme) {
@@ -3734,6 +4058,25 @@ var require_fast_uri = __commonJS({
3734
4058
  uri = "//" + uri;
3735
4059
  }
3736
4060
  }
4061
+ const authorityMatch = uri.match(AUTHORITY_PREFIX);
4062
+ if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
4063
+ parsed.error = "URI authority must not contain a literal backslash.";
4064
+ malformedAuthorityOrPort = true;
4065
+ }
4066
+ const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
4067
+ if (introducerMatch !== null) {
4068
+ const region = introducerMatch[1];
4069
+ const normalizedRegion = region.replace(/[\t\n\r]/g, "");
4070
+ if (normalizedRegion.length >= 2) {
4071
+ if (normalizedRegion.slice(0, 2) !== "//") {
4072
+ parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
4073
+ malformedAuthorityOrPort = true;
4074
+ } else if (region.length !== normalizedRegion.length) {
4075
+ parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
4076
+ malformedAuthorityOrPort = true;
4077
+ }
4078
+ }
4079
+ }
3737
4080
  const matches = uri.match(URI_PARSE);
3738
4081
  if (matches) {
3739
4082
  parsed.scheme = matches[1];
@@ -3743,15 +4086,40 @@ var require_fast_uri = __commonJS({
3743
4086
  parsed.path = matches[6] || "";
3744
4087
  parsed.query = matches[7];
3745
4088
  parsed.fragment = matches[8];
4089
+ if (parsed.scheme !== void 0) {
4090
+ const decodedScheme = unescape(parsed.scheme);
4091
+ if (VALID_SCHEME.test(decodedScheme)) {
4092
+ parsed.scheme = decodedScheme.toLowerCase();
4093
+ } else {
4094
+ parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
4095
+ malformedScheme = true;
4096
+ }
4097
+ }
4098
+ malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
4099
+ if (malformedPercentEncoding) {
4100
+ parsed.error = parsed.error || "URI contains malformed percent-encoding.";
4101
+ }
3746
4102
  if (isNaN(parsed.port)) {
3747
4103
  parsed.port = matches[5];
3748
4104
  }
4105
+ const parseError = getParseError(parsed, matches);
4106
+ if (parseError !== void 0) {
4107
+ parsed.error = parsed.error || parseError;
4108
+ malformedAuthorityOrPort = true;
4109
+ }
3749
4110
  if (parsed.host) {
3750
4111
  const ipv4result = isIPv4(parsed.host);
3751
4112
  if (ipv4result === false) {
4113
+ const bracketedIPLiteral = isIPLiteral(parsed.host);
4114
+ const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
3752
4115
  const ipv6result = normalizeIPv6(parsed.host);
3753
- parsed.host = ipv6result.host.toLowerCase();
3754
- isIP = ipv6result.isIPV6;
4116
+ isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
4117
+ malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
4118
+ parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
4119
+ if (malformedIPLiteral) {
4120
+ parsed.error = parsed.error || "URI host is malformed.";
4121
+ malformedAuthorityOrPort = true;
4122
+ }
3755
4123
  } else {
3756
4124
  isIP = true;
3757
4125
  }
@@ -3769,38 +4137,66 @@ var require_fast_uri = __commonJS({
3769
4137
  parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
3770
4138
  }
3771
4139
  const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
3772
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
3773
- if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3774
- try {
3775
- parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
3776
- } catch (e) {
3777
- parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
3778
- }
3779
- }
4140
+ if (!malformedIPLiteral) {
4141
+ malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
3780
4142
  }
3781
4143
  if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
3782
4144
  if (uri.indexOf("%") !== -1) {
3783
- if (parsed.scheme !== void 0) {
3784
- parsed.scheme = unescape(parsed.scheme);
3785
- }
3786
- if (parsed.host !== void 0) {
3787
- parsed.host = unescape(parsed.host);
4145
+ if (parsed.host !== void 0 && !malformedIPLiteral) {
4146
+ const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
4147
+ parsed.host = reescapeHostDelimiters(host, isIP);
3788
4148
  }
3789
4149
  }
3790
4150
  if (parsed.path) {
3791
- parsed.path = escape(unescape(parsed.path));
4151
+ parsed.path = normalizePathEncoding(parsed.path);
4152
+ }
4153
+ if (parsed.query) {
4154
+ parsed.query = normalizeQueryFragmentEncoding(parsed.query);
3792
4155
  }
3793
4156
  if (parsed.fragment) {
3794
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
4157
+ parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
3795
4158
  }
3796
4159
  }
3797
4160
  if (schemeHandler && schemeHandler.parse) {
3798
4161
  schemeHandler.parse(parsed, options);
4162
+ if (schemeHandler === SCHEMES.urn && parsed.nid === void 0) {
4163
+ malformedSchemeSpecific = true;
4164
+ }
3799
4165
  }
3800
4166
  } else {
3801
4167
  parsed.error = parsed.error || "URI can not be parsed.";
3802
4168
  }
3803
- return parsed;
4169
+ return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
4170
+ }
4171
+ function parse3(uri, opts) {
4172
+ return parseWithStatus(uri, opts).parsed;
4173
+ }
4174
+ function normalizeString(uri, opts) {
4175
+ return normalizeStringWithStatus(uri, opts).normalized;
4176
+ }
4177
+ function normalizeStringWithStatus(uri, opts) {
4178
+ const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
4179
+ return {
4180
+ normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
4181
+ malformedAuthorityOrPort,
4182
+ malformedPercentEncoding,
4183
+ malformedSchemeSpecific,
4184
+ malformedHost,
4185
+ malformedScheme
4186
+ };
4187
+ }
4188
+ function normalizeComparableURI(uri, opts) {
4189
+ if (typeof uri !== "string" && typeof uri !== "object") {
4190
+ return void 0;
4191
+ }
4192
+ let value;
4193
+ try {
4194
+ value = typeof uri === "string" ? uri : serialize(uri, opts);
4195
+ } catch {
4196
+ return void 0;
4197
+ }
4198
+ const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
4199
+ return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? void 0 : normalized;
3804
4200
  }
3805
4201
  var fastUri = {
3806
4202
  SCHEMES,
@@ -3819,40 +4215,40 @@ var require_fast_uri = __commonJS({
3819
4215
 
3820
4216
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
3821
4217
  var require_uri = __commonJS({
3822
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(exports$1) {
3823
- Object.defineProperty(exports$1, "__esModule", { value: true });
4218
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(exports) {
4219
+ Object.defineProperty(exports, "__esModule", { value: true });
3824
4220
  var uri = require_fast_uri();
3825
4221
  uri.code = 'require("ajv/dist/runtime/uri").default';
3826
- exports$1.default = uri;
4222
+ exports.default = uri;
3827
4223
  }
3828
4224
  });
3829
4225
 
3830
4226
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js
3831
4227
  var require_core = __commonJS({
3832
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(exports$1) {
3833
- Object.defineProperty(exports$1, "__esModule", { value: true });
3834
- exports$1.CodeGen = exports$1.Name = exports$1.nil = exports$1.stringify = exports$1.str = exports$1._ = exports$1.KeywordCxt = void 0;
4228
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(exports) {
4229
+ Object.defineProperty(exports, "__esModule", { value: true });
4230
+ exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
3835
4231
  var validate_1 = require_validate();
3836
- Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
4232
+ Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
3837
4233
  return validate_1.KeywordCxt;
3838
4234
  } });
3839
4235
  var codegen_1 = require_codegen();
3840
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
4236
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
3841
4237
  return codegen_1._;
3842
4238
  } });
3843
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
4239
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
3844
4240
  return codegen_1.str;
3845
4241
  } });
3846
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
4242
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
3847
4243
  return codegen_1.stringify;
3848
4244
  } });
3849
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
4245
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
3850
4246
  return codegen_1.nil;
3851
4247
  } });
3852
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
4248
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
3853
4249
  return codegen_1.Name;
3854
4250
  } });
3855
- Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
4251
+ Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
3856
4252
  return codegen_1.CodeGen;
3857
4253
  } });
3858
4254
  var validation_error_1 = require_validation_error();
@@ -4306,7 +4702,7 @@ var require_core = __commonJS({
4306
4702
  };
4307
4703
  Ajv2.ValidationError = validation_error_1.default;
4308
4704
  Ajv2.MissingRefError = ref_error_1.default;
4309
- exports$1.default = Ajv2;
4705
+ exports.default = Ajv2;
4310
4706
  function checkOptions(checkOpts, options, msg, log = "error") {
4311
4707
  for (const key in checkOpts) {
4312
4708
  const opt = key;
@@ -4439,23 +4835,23 @@ var require_core = __commonJS({
4439
4835
 
4440
4836
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
4441
4837
  var require_id = __commonJS({
4442
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports$1) {
4443
- Object.defineProperty(exports$1, "__esModule", { value: true });
4838
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
4839
+ Object.defineProperty(exports, "__esModule", { value: true });
4444
4840
  var def = {
4445
4841
  keyword: "id",
4446
4842
  code() {
4447
4843
  throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
4448
4844
  }
4449
4845
  };
4450
- exports$1.default = def;
4846
+ exports.default = def;
4451
4847
  }
4452
4848
  });
4453
4849
 
4454
4850
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
4455
4851
  var require_ref = __commonJS({
4456
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports$1) {
4457
- Object.defineProperty(exports$1, "__esModule", { value: true });
4458
- exports$1.callRef = exports$1.getValidate = void 0;
4852
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
4853
+ Object.defineProperty(exports, "__esModule", { value: true });
4854
+ exports.callRef = exports.getValidate = void 0;
4459
4855
  var ref_error_1 = require_ref_error();
4460
4856
  var code_1 = require_code2();
4461
4857
  var codegen_1 = require_codegen();
@@ -4506,7 +4902,7 @@ var require_ref = __commonJS({
4506
4902
  const { gen } = cxt;
4507
4903
  return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
4508
4904
  }
4509
- exports$1.getValidate = getValidate;
4905
+ exports.getValidate = getValidate;
4510
4906
  function callRef(cxt, v, sch, $async) {
4511
4907
  const { gen, it } = cxt;
4512
4908
  const { allErrors, schemaEnv: env, opts } = it;
@@ -4567,15 +4963,15 @@ var require_ref = __commonJS({
4567
4963
  }
4568
4964
  }
4569
4965
  }
4570
- exports$1.callRef = callRef;
4571
- exports$1.default = def;
4966
+ exports.callRef = callRef;
4967
+ exports.default = def;
4572
4968
  }
4573
4969
  });
4574
4970
 
4575
4971
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
4576
4972
  var require_core2 = __commonJS({
4577
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports$1) {
4578
- Object.defineProperty(exports$1, "__esModule", { value: true });
4973
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
4974
+ Object.defineProperty(exports, "__esModule", { value: true });
4579
4975
  var id_1 = require_id();
4580
4976
  var ref_1 = require_ref();
4581
4977
  var core = [
@@ -4588,14 +4984,14 @@ var require_core2 = __commonJS({
4588
4984
  id_1.default,
4589
4985
  ref_1.default
4590
4986
  ];
4591
- exports$1.default = core;
4987
+ exports.default = core;
4592
4988
  }
4593
4989
  });
4594
4990
 
4595
4991
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4596
4992
  var require_limitNumber = __commonJS({
4597
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports$1) {
4598
- Object.defineProperty(exports$1, "__esModule", { value: true });
4993
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
4994
+ Object.defineProperty(exports, "__esModule", { value: true });
4599
4995
  var codegen_1 = require_codegen();
4600
4996
  var ops = codegen_1.operators;
4601
4997
  var KWDs = {
@@ -4619,14 +5015,14 @@ var require_limitNumber = __commonJS({
4619
5015
  cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
4620
5016
  }
4621
5017
  };
4622
- exports$1.default = def;
5018
+ exports.default = def;
4623
5019
  }
4624
5020
  });
4625
5021
 
4626
5022
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4627
5023
  var require_multipleOf = __commonJS({
4628
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports$1) {
4629
- Object.defineProperty(exports$1, "__esModule", { value: true });
5024
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
5025
+ Object.defineProperty(exports, "__esModule", { value: true });
4630
5026
  var codegen_1 = require_codegen();
4631
5027
  var error2 = {
4632
5028
  message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
@@ -4646,14 +5042,14 @@ var require_multipleOf = __commonJS({
4646
5042
  cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
4647
5043
  }
4648
5044
  };
4649
- exports$1.default = def;
5045
+ exports.default = def;
4650
5046
  }
4651
5047
  });
4652
5048
 
4653
5049
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
4654
5050
  var require_ucs2length = __commonJS({
4655
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports$1) {
4656
- Object.defineProperty(exports$1, "__esModule", { value: true });
5051
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
5052
+ Object.defineProperty(exports, "__esModule", { value: true });
4657
5053
  function ucs2length(str) {
4658
5054
  const len = str.length;
4659
5055
  let length = 0;
@@ -4670,15 +5066,15 @@ var require_ucs2length = __commonJS({
4670
5066
  }
4671
5067
  return length;
4672
5068
  }
4673
- exports$1.default = ucs2length;
5069
+ exports.default = ucs2length;
4674
5070
  ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
4675
5071
  }
4676
5072
  });
4677
5073
 
4678
5074
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
4679
5075
  var require_limitLength = __commonJS({
4680
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports$1) {
4681
- Object.defineProperty(exports$1, "__esModule", { value: true });
5076
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
5077
+ Object.defineProperty(exports, "__esModule", { value: true });
4682
5078
  var codegen_1 = require_codegen();
4683
5079
  var util_1 = require_util();
4684
5080
  var ucs2length_1 = require_ucs2length();
@@ -4702,14 +5098,14 @@ var require_limitLength = __commonJS({
4702
5098
  cxt.fail$data((0, codegen_1._)`${len} ${op} ${schemaCode}`);
4703
5099
  }
4704
5100
  };
4705
- exports$1.default = def;
5101
+ exports.default = def;
4706
5102
  }
4707
5103
  });
4708
5104
 
4709
5105
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
4710
5106
  var require_pattern = __commonJS({
4711
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports$1) {
4712
- Object.defineProperty(exports$1, "__esModule", { value: true });
5107
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
5108
+ Object.defineProperty(exports, "__esModule", { value: true });
4713
5109
  var code_1 = require_code2();
4714
5110
  var util_1 = require_util();
4715
5111
  var codegen_1 = require_codegen();
@@ -4738,14 +5134,14 @@ var require_pattern = __commonJS({
4738
5134
  }
4739
5135
  }
4740
5136
  };
4741
- exports$1.default = def;
5137
+ exports.default = def;
4742
5138
  }
4743
5139
  });
4744
5140
 
4745
5141
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4746
5142
  var require_limitProperties = __commonJS({
4747
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports$1) {
4748
- Object.defineProperty(exports$1, "__esModule", { value: true });
5143
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
5144
+ Object.defineProperty(exports, "__esModule", { value: true });
4749
5145
  var codegen_1 = require_codegen();
4750
5146
  var error2 = {
4751
5147
  message({ keyword, schemaCode }) {
@@ -4766,14 +5162,14 @@ var require_limitProperties = __commonJS({
4766
5162
  cxt.fail$data((0, codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`);
4767
5163
  }
4768
5164
  };
4769
- exports$1.default = def;
5165
+ exports.default = def;
4770
5166
  }
4771
5167
  });
4772
5168
 
4773
5169
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
4774
5170
  var require_required = __commonJS({
4775
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports$1) {
4776
- Object.defineProperty(exports$1, "__esModule", { value: true });
5171
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
5172
+ Object.defineProperty(exports, "__esModule", { value: true });
4777
5173
  var code_1 = require_code2();
4778
5174
  var codegen_1 = require_codegen();
4779
5175
  var util_1 = require_util();
@@ -4847,14 +5243,14 @@ var require_required = __commonJS({
4847
5243
  }
4848
5244
  }
4849
5245
  };
4850
- exports$1.default = def;
5246
+ exports.default = def;
4851
5247
  }
4852
5248
  });
4853
5249
 
4854
5250
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
4855
5251
  var require_limitItems = __commonJS({
4856
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports$1) {
4857
- Object.defineProperty(exports$1, "__esModule", { value: true });
5252
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
5253
+ Object.defineProperty(exports, "__esModule", { value: true });
4858
5254
  var codegen_1 = require_codegen();
4859
5255
  var error2 = {
4860
5256
  message({ keyword, schemaCode }) {
@@ -4875,24 +5271,24 @@ var require_limitItems = __commonJS({
4875
5271
  cxt.fail$data((0, codegen_1._)`${data}.length ${op} ${schemaCode}`);
4876
5272
  }
4877
5273
  };
4878
- exports$1.default = def;
5274
+ exports.default = def;
4879
5275
  }
4880
5276
  });
4881
5277
 
4882
5278
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
4883
5279
  var require_equal = __commonJS({
4884
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports$1) {
4885
- Object.defineProperty(exports$1, "__esModule", { value: true });
5280
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
5281
+ Object.defineProperty(exports, "__esModule", { value: true });
4886
5282
  var equal = require_fast_deep_equal();
4887
5283
  equal.code = 'require("ajv/dist/runtime/equal").default';
4888
- exports$1.default = equal;
5284
+ exports.default = equal;
4889
5285
  }
4890
5286
  });
4891
5287
 
4892
5288
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4893
5289
  var require_uniqueItems = __commonJS({
4894
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports$1) {
4895
- Object.defineProperty(exports$1, "__esModule", { value: true });
5290
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
5291
+ Object.defineProperty(exports, "__esModule", { value: true });
4896
5292
  var dataType_1 = require_dataType();
4897
5293
  var codegen_1 = require_codegen();
4898
5294
  var util_1 = require_util();
@@ -4951,14 +5347,14 @@ var require_uniqueItems = __commonJS({
4951
5347
  }
4952
5348
  }
4953
5349
  };
4954
- exports$1.default = def;
5350
+ exports.default = def;
4955
5351
  }
4956
5352
  });
4957
5353
 
4958
5354
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
4959
5355
  var require_const = __commonJS({
4960
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports$1) {
4961
- Object.defineProperty(exports$1, "__esModule", { value: true });
5356
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
5357
+ Object.defineProperty(exports, "__esModule", { value: true });
4962
5358
  var codegen_1 = require_codegen();
4963
5359
  var util_1 = require_util();
4964
5360
  var equal_1 = require_equal();
@@ -4979,14 +5375,14 @@ var require_const = __commonJS({
4979
5375
  }
4980
5376
  }
4981
5377
  };
4982
- exports$1.default = def;
5378
+ exports.default = def;
4983
5379
  }
4984
5380
  });
4985
5381
 
4986
5382
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
4987
5383
  var require_enum = __commonJS({
4988
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports$1) {
4989
- Object.defineProperty(exports$1, "__esModule", { value: true });
5384
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
5385
+ Object.defineProperty(exports, "__esModule", { value: true });
4990
5386
  var codegen_1 = require_codegen();
4991
5387
  var util_1 = require_util();
4992
5388
  var equal_1 = require_equal();
@@ -5027,14 +5423,14 @@ var require_enum = __commonJS({
5027
5423
  }
5028
5424
  }
5029
5425
  };
5030
- exports$1.default = def;
5426
+ exports.default = def;
5031
5427
  }
5032
5428
  });
5033
5429
 
5034
5430
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
5035
5431
  var require_validation = __commonJS({
5036
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports$1) {
5037
- Object.defineProperty(exports$1, "__esModule", { value: true });
5432
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
5433
+ Object.defineProperty(exports, "__esModule", { value: true });
5038
5434
  var limitNumber_1 = require_limitNumber();
5039
5435
  var multipleOf_1 = require_multipleOf();
5040
5436
  var limitLength_1 = require_limitLength();
@@ -5064,15 +5460,15 @@ var require_validation = __commonJS({
5064
5460
  const_1.default,
5065
5461
  enum_1.default
5066
5462
  ];
5067
- exports$1.default = validation;
5463
+ exports.default = validation;
5068
5464
  }
5069
5465
  });
5070
5466
 
5071
5467
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5072
5468
  var require_additionalItems = __commonJS({
5073
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports$1) {
5074
- Object.defineProperty(exports$1, "__esModule", { value: true });
5075
- exports$1.validateAdditionalItems = void 0;
5469
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
5470
+ Object.defineProperty(exports, "__esModule", { value: true });
5471
+ exports.validateAdditionalItems = void 0;
5076
5472
  var codegen_1 = require_codegen();
5077
5473
  var util_1 = require_util();
5078
5474
  var error2 = {
@@ -5115,16 +5511,16 @@ var require_additionalItems = __commonJS({
5115
5511
  });
5116
5512
  }
5117
5513
  }
5118
- exports$1.validateAdditionalItems = validateAdditionalItems;
5119
- exports$1.default = def;
5514
+ exports.validateAdditionalItems = validateAdditionalItems;
5515
+ exports.default = def;
5120
5516
  }
5121
5517
  });
5122
5518
 
5123
5519
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
5124
5520
  var require_items = __commonJS({
5125
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports$1) {
5126
- Object.defineProperty(exports$1, "__esModule", { value: true });
5127
- exports$1.validateTuple = void 0;
5521
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
5522
+ Object.defineProperty(exports, "__esModule", { value: true });
5523
+ exports.validateTuple = void 0;
5128
5524
  var codegen_1 = require_codegen();
5129
5525
  var util_1 = require_util();
5130
5526
  var code_1 = require_code2();
@@ -5171,15 +5567,15 @@ var require_items = __commonJS({
5171
5567
  }
5172
5568
  }
5173
5569
  }
5174
- exports$1.validateTuple = validateTuple;
5175
- exports$1.default = def;
5570
+ exports.validateTuple = validateTuple;
5571
+ exports.default = def;
5176
5572
  }
5177
5573
  });
5178
5574
 
5179
5575
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5180
5576
  var require_prefixItems = __commonJS({
5181
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports$1) {
5182
- Object.defineProperty(exports$1, "__esModule", { value: true });
5577
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
5578
+ Object.defineProperty(exports, "__esModule", { value: true });
5183
5579
  var items_1 = require_items();
5184
5580
  var def = {
5185
5581
  keyword: "prefixItems",
@@ -5188,14 +5584,14 @@ var require_prefixItems = __commonJS({
5188
5584
  before: "uniqueItems",
5189
5585
  code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
5190
5586
  };
5191
- exports$1.default = def;
5587
+ exports.default = def;
5192
5588
  }
5193
5589
  });
5194
5590
 
5195
5591
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
5196
5592
  var require_items2020 = __commonJS({
5197
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports$1) {
5198
- Object.defineProperty(exports$1, "__esModule", { value: true });
5593
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
5594
+ Object.defineProperty(exports, "__esModule", { value: true });
5199
5595
  var codegen_1 = require_codegen();
5200
5596
  var util_1 = require_util();
5201
5597
  var code_1 = require_code2();
@@ -5222,14 +5618,14 @@ var require_items2020 = __commonJS({
5222
5618
  cxt.ok((0, code_1.validateArray)(cxt));
5223
5619
  }
5224
5620
  };
5225
- exports$1.default = def;
5621
+ exports.default = def;
5226
5622
  }
5227
5623
  });
5228
5624
 
5229
5625
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
5230
5626
  var require_contains = __commonJS({
5231
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports$1) {
5232
- Object.defineProperty(exports$1, "__esModule", { value: true });
5627
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
5628
+ Object.defineProperty(exports, "__esModule", { value: true });
5233
5629
  var codegen_1 = require_codegen();
5234
5630
  var util_1 = require_util();
5235
5631
  var error2 = {
@@ -5315,19 +5711,19 @@ var require_contains = __commonJS({
5315
5711
  }
5316
5712
  }
5317
5713
  };
5318
- exports$1.default = def;
5714
+ exports.default = def;
5319
5715
  }
5320
5716
  });
5321
5717
 
5322
5718
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5323
5719
  var require_dependencies = __commonJS({
5324
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports$1) {
5325
- Object.defineProperty(exports$1, "__esModule", { value: true });
5326
- exports$1.validateSchemaDeps = exports$1.validatePropertyDeps = exports$1.error = void 0;
5720
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
5721
+ Object.defineProperty(exports, "__esModule", { value: true });
5722
+ exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
5327
5723
  var codegen_1 = require_codegen();
5328
5724
  var util_1 = require_util();
5329
5725
  var code_1 = require_code2();
5330
- exports$1.error = {
5726
+ exports.error = {
5331
5727
  message: ({ params: { property, depsCount, deps } }) => {
5332
5728
  const property_ies = depsCount === 1 ? "property" : "properties";
5333
5729
  return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
@@ -5342,7 +5738,7 @@ var require_dependencies = __commonJS({
5342
5738
  keyword: "dependencies",
5343
5739
  type: "object",
5344
5740
  schemaType: "object",
5345
- error: exports$1.error,
5741
+ error: exports.error,
5346
5742
  code(cxt) {
5347
5743
  const [propDeps, schDeps] = splitDependencies(cxt);
5348
5744
  validatePropertyDeps(cxt, propDeps);
@@ -5388,7 +5784,7 @@ var require_dependencies = __commonJS({
5388
5784
  }
5389
5785
  }
5390
5786
  }
5391
- exports$1.validatePropertyDeps = validatePropertyDeps;
5787
+ exports.validatePropertyDeps = validatePropertyDeps;
5392
5788
  function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
5393
5789
  const { gen, data, keyword, it } = cxt;
5394
5790
  const valid = gen.name("valid");
@@ -5407,15 +5803,15 @@ var require_dependencies = __commonJS({
5407
5803
  cxt.ok(valid);
5408
5804
  }
5409
5805
  }
5410
- exports$1.validateSchemaDeps = validateSchemaDeps;
5411
- exports$1.default = def;
5806
+ exports.validateSchemaDeps = validateSchemaDeps;
5807
+ exports.default = def;
5412
5808
  }
5413
5809
  });
5414
5810
 
5415
5811
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5416
5812
  var require_propertyNames = __commonJS({
5417
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports$1) {
5418
- Object.defineProperty(exports$1, "__esModule", { value: true });
5813
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
5814
+ Object.defineProperty(exports, "__esModule", { value: true });
5419
5815
  var codegen_1 = require_codegen();
5420
5816
  var util_1 = require_util();
5421
5817
  var error2 = {
@@ -5450,14 +5846,14 @@ var require_propertyNames = __commonJS({
5450
5846
  cxt.ok(valid);
5451
5847
  }
5452
5848
  };
5453
- exports$1.default = def;
5849
+ exports.default = def;
5454
5850
  }
5455
5851
  });
5456
5852
 
5457
5853
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5458
5854
  var require_additionalProperties = __commonJS({
5459
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports$1) {
5460
- Object.defineProperty(exports$1, "__esModule", { value: true });
5855
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
5856
+ Object.defineProperty(exports, "__esModule", { value: true });
5461
5857
  var code_1 = require_code2();
5462
5858
  var codegen_1 = require_codegen();
5463
5859
  var names_1 = require_names();
@@ -5555,14 +5951,14 @@ var require_additionalProperties = __commonJS({
5555
5951
  }
5556
5952
  }
5557
5953
  };
5558
- exports$1.default = def;
5954
+ exports.default = def;
5559
5955
  }
5560
5956
  });
5561
5957
 
5562
5958
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
5563
5959
  var require_properties = __commonJS({
5564
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports$1) {
5565
- Object.defineProperty(exports$1, "__esModule", { value: true });
5960
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
5961
+ Object.defineProperty(exports, "__esModule", { value: true });
5566
5962
  var validate_1 = require_validate();
5567
5963
  var code_1 = require_code2();
5568
5964
  var util_1 = require_util();
@@ -5612,14 +6008,14 @@ var require_properties = __commonJS({
5612
6008
  }
5613
6009
  }
5614
6010
  };
5615
- exports$1.default = def;
6011
+ exports.default = def;
5616
6012
  }
5617
6013
  });
5618
6014
 
5619
6015
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5620
6016
  var require_patternProperties = __commonJS({
5621
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports$1) {
5622
- Object.defineProperty(exports$1, "__esModule", { value: true });
6017
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
6018
+ Object.defineProperty(exports, "__esModule", { value: true });
5623
6019
  var code_1 = require_code2();
5624
6020
  var codegen_1 = require_codegen();
5625
6021
  var util_1 = require_util();
@@ -5685,14 +6081,14 @@ var require_patternProperties = __commonJS({
5685
6081
  }
5686
6082
  }
5687
6083
  };
5688
- exports$1.default = def;
6084
+ exports.default = def;
5689
6085
  }
5690
6086
  });
5691
6087
 
5692
6088
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
5693
6089
  var require_not = __commonJS({
5694
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports$1) {
5695
- Object.defineProperty(exports$1, "__esModule", { value: true });
6090
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
6091
+ Object.defineProperty(exports, "__esModule", { value: true });
5696
6092
  var util_1 = require_util();
5697
6093
  var def = {
5698
6094
  keyword: "not",
@@ -5715,14 +6111,14 @@ var require_not = __commonJS({
5715
6111
  },
5716
6112
  error: { message: "must NOT be valid" }
5717
6113
  };
5718
- exports$1.default = def;
6114
+ exports.default = def;
5719
6115
  }
5720
6116
  });
5721
6117
 
5722
6118
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5723
6119
  var require_anyOf = __commonJS({
5724
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports$1) {
5725
- Object.defineProperty(exports$1, "__esModule", { value: true });
6120
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
6121
+ Object.defineProperty(exports, "__esModule", { value: true });
5726
6122
  var code_1 = require_code2();
5727
6123
  var def = {
5728
6124
  keyword: "anyOf",
@@ -5731,14 +6127,14 @@ var require_anyOf = __commonJS({
5731
6127
  code: code_1.validateUnion,
5732
6128
  error: { message: "must match a schema in anyOf" }
5733
6129
  };
5734
- exports$1.default = def;
6130
+ exports.default = def;
5735
6131
  }
5736
6132
  });
5737
6133
 
5738
6134
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5739
6135
  var require_oneOf = __commonJS({
5740
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports$1) {
5741
- Object.defineProperty(exports$1, "__esModule", { value: true });
6136
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
6137
+ Object.defineProperty(exports, "__esModule", { value: true });
5742
6138
  var codegen_1 = require_codegen();
5743
6139
  var util_1 = require_util();
5744
6140
  var error2 = {
@@ -5788,14 +6184,14 @@ var require_oneOf = __commonJS({
5788
6184
  }
5789
6185
  }
5790
6186
  };
5791
- exports$1.default = def;
6187
+ exports.default = def;
5792
6188
  }
5793
6189
  });
5794
6190
 
5795
6191
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
5796
6192
  var require_allOf = __commonJS({
5797
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports$1) {
5798
- Object.defineProperty(exports$1, "__esModule", { value: true });
6193
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
6194
+ Object.defineProperty(exports, "__esModule", { value: true });
5799
6195
  var util_1 = require_util();
5800
6196
  var def = {
5801
6197
  keyword: "allOf",
@@ -5814,14 +6210,14 @@ var require_allOf = __commonJS({
5814
6210
  });
5815
6211
  }
5816
6212
  };
5817
- exports$1.default = def;
6213
+ exports.default = def;
5818
6214
  }
5819
6215
  });
5820
6216
 
5821
6217
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
5822
6218
  var require_if = __commonJS({
5823
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports$1) {
5824
- Object.defineProperty(exports$1, "__esModule", { value: true });
6219
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
6220
+ Object.defineProperty(exports, "__esModule", { value: true });
5825
6221
  var codegen_1 = require_codegen();
5826
6222
  var util_1 = require_util();
5827
6223
  var error2 = {
@@ -5882,14 +6278,14 @@ var require_if = __commonJS({
5882
6278
  const schema = it.schema[keyword];
5883
6279
  return schema !== void 0 && !(0, util_1.alwaysValidSchema)(it, schema);
5884
6280
  }
5885
- exports$1.default = def;
6281
+ exports.default = def;
5886
6282
  }
5887
6283
  });
5888
6284
 
5889
6285
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5890
6286
  var require_thenElse = __commonJS({
5891
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports$1) {
5892
- Object.defineProperty(exports$1, "__esModule", { value: true });
6287
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
6288
+ Object.defineProperty(exports, "__esModule", { value: true });
5893
6289
  var util_1 = require_util();
5894
6290
  var def = {
5895
6291
  keyword: ["then", "else"],
@@ -5899,14 +6295,14 @@ var require_thenElse = __commonJS({
5899
6295
  (0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`);
5900
6296
  }
5901
6297
  };
5902
- exports$1.default = def;
6298
+ exports.default = def;
5903
6299
  }
5904
6300
  });
5905
6301
 
5906
6302
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
5907
6303
  var require_applicator = __commonJS({
5908
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports$1) {
5909
- Object.defineProperty(exports$1, "__esModule", { value: true });
6304
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
6305
+ Object.defineProperty(exports, "__esModule", { value: true });
5910
6306
  var additionalItems_1 = require_additionalItems();
5911
6307
  var prefixItems_1 = require_prefixItems();
5912
6308
  var items_1 = require_items();
@@ -5946,14 +6342,14 @@ var require_applicator = __commonJS({
5946
6342
  applicator.push(contains_1.default);
5947
6343
  return applicator;
5948
6344
  }
5949
- exports$1.default = getApplicator;
6345
+ exports.default = getApplicator;
5950
6346
  }
5951
6347
  });
5952
6348
 
5953
6349
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
5954
6350
  var require_format = __commonJS({
5955
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports$1) {
5956
- Object.defineProperty(exports$1, "__esModule", { value: true });
6351
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
6352
+ Object.defineProperty(exports, "__esModule", { value: true });
5957
6353
  var codegen_1 = require_codegen();
5958
6354
  var error2 = {
5959
6355
  message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
@@ -6035,26 +6431,26 @@ var require_format = __commonJS({
6035
6431
  }
6036
6432
  }
6037
6433
  };
6038
- exports$1.default = def;
6434
+ exports.default = def;
6039
6435
  }
6040
6436
  });
6041
6437
 
6042
6438
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
6043
6439
  var require_format2 = __commonJS({
6044
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports$1) {
6045
- Object.defineProperty(exports$1, "__esModule", { value: true });
6440
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
6441
+ Object.defineProperty(exports, "__esModule", { value: true });
6046
6442
  var format_1 = require_format();
6047
6443
  var format = [format_1.default];
6048
- exports$1.default = format;
6444
+ exports.default = format;
6049
6445
  }
6050
6446
  });
6051
6447
 
6052
6448
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
6053
6449
  var require_metadata = __commonJS({
6054
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports$1) {
6055
- Object.defineProperty(exports$1, "__esModule", { value: true });
6056
- exports$1.contentVocabulary = exports$1.metadataVocabulary = void 0;
6057
- exports$1.metadataVocabulary = [
6450
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
6451
+ Object.defineProperty(exports, "__esModule", { value: true });
6452
+ exports.contentVocabulary = exports.metadataVocabulary = void 0;
6453
+ exports.metadataVocabulary = [
6058
6454
  "title",
6059
6455
  "description",
6060
6456
  "default",
@@ -6063,7 +6459,7 @@ var require_metadata = __commonJS({
6063
6459
  "writeOnly",
6064
6460
  "examples"
6065
6461
  ];
6066
- exports$1.contentVocabulary = [
6462
+ exports.contentVocabulary = [
6067
6463
  "contentMediaType",
6068
6464
  "contentEncoding",
6069
6465
  "contentSchema"
@@ -6073,8 +6469,8 @@ var require_metadata = __commonJS({
6073
6469
 
6074
6470
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
6075
6471
  var require_draft7 = __commonJS({
6076
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports$1) {
6077
- Object.defineProperty(exports$1, "__esModule", { value: true });
6472
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
6473
+ Object.defineProperty(exports, "__esModule", { value: true });
6078
6474
  var core_1 = require_core2();
6079
6475
  var validation_1 = require_validation();
6080
6476
  var applicator_1 = require_applicator();
@@ -6088,27 +6484,27 @@ var require_draft7 = __commonJS({
6088
6484
  metadata_1.metadataVocabulary,
6089
6485
  metadata_1.contentVocabulary
6090
6486
  ];
6091
- exports$1.default = draft7Vocabularies;
6487
+ exports.default = draft7Vocabularies;
6092
6488
  }
6093
6489
  });
6094
6490
 
6095
6491
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
6096
6492
  var require_types = __commonJS({
6097
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports$1) {
6098
- Object.defineProperty(exports$1, "__esModule", { value: true });
6099
- exports$1.DiscrError = void 0;
6493
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
6494
+ Object.defineProperty(exports, "__esModule", { value: true });
6495
+ exports.DiscrError = void 0;
6100
6496
  var DiscrError;
6101
6497
  (function(DiscrError2) {
6102
6498
  DiscrError2["Tag"] = "tag";
6103
6499
  DiscrError2["Mapping"] = "mapping";
6104
- })(DiscrError || (exports$1.DiscrError = DiscrError = {}));
6500
+ })(DiscrError || (exports.DiscrError = DiscrError = {}));
6105
6501
  }
6106
6502
  });
6107
6503
 
6108
6504
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
6109
6505
  var require_discriminator = __commonJS({
6110
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports$1) {
6111
- Object.defineProperty(exports$1, "__esModule", { value: true });
6506
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
6507
+ Object.defineProperty(exports, "__esModule", { value: true });
6112
6508
  var codegen_1 = require_codegen();
6113
6509
  var types_1 = require_types();
6114
6510
  var compile_1 = require_compile();
@@ -6205,13 +6601,13 @@ var require_discriminator = __commonJS({
6205
6601
  }
6206
6602
  }
6207
6603
  };
6208
- exports$1.default = def;
6604
+ exports.default = def;
6209
6605
  }
6210
6606
  });
6211
6607
 
6212
6608
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
6213
6609
  var require_json_schema_draft_07 = __commonJS({
6214
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports$1, module) {
6610
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
6215
6611
  module.exports = {
6216
6612
  $schema: "http://json-schema.org/draft-07/schema#",
6217
6613
  $id: "http://json-schema.org/draft-07/schema#",
@@ -6368,9 +6764,9 @@ var require_json_schema_draft_07 = __commonJS({
6368
6764
 
6369
6765
  // ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js
6370
6766
  var require_ajv = __commonJS({
6371
- "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(exports$1, module) {
6372
- Object.defineProperty(exports$1, "__esModule", { value: true });
6373
- 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;
6767
+ "../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(exports, module) {
6768
+ Object.defineProperty(exports, "__esModule", { value: true });
6769
+ exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
6374
6770
  var core_1 = require_core();
6375
6771
  var draft7_1 = require_draft7();
6376
6772
  var discriminator_1 = require_discriminator();
@@ -6396,40 +6792,40 @@ var require_ajv = __commonJS({
6396
6792
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
6397
6793
  }
6398
6794
  };
6399
- exports$1.Ajv = Ajv2;
6400
- module.exports = exports$1 = Ajv2;
6795
+ exports.Ajv = Ajv2;
6796
+ module.exports = exports = Ajv2;
6401
6797
  module.exports.Ajv = Ajv2;
6402
- Object.defineProperty(exports$1, "__esModule", { value: true });
6403
- exports$1.default = Ajv2;
6798
+ Object.defineProperty(exports, "__esModule", { value: true });
6799
+ exports.default = Ajv2;
6404
6800
  var validate_1 = require_validate();
6405
- Object.defineProperty(exports$1, "KeywordCxt", { enumerable: true, get: function() {
6801
+ Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
6406
6802
  return validate_1.KeywordCxt;
6407
6803
  } });
6408
6804
  var codegen_1 = require_codegen();
6409
- Object.defineProperty(exports$1, "_", { enumerable: true, get: function() {
6805
+ Object.defineProperty(exports, "_", { enumerable: true, get: function() {
6410
6806
  return codegen_1._;
6411
6807
  } });
6412
- Object.defineProperty(exports$1, "str", { enumerable: true, get: function() {
6808
+ Object.defineProperty(exports, "str", { enumerable: true, get: function() {
6413
6809
  return codegen_1.str;
6414
6810
  } });
6415
- Object.defineProperty(exports$1, "stringify", { enumerable: true, get: function() {
6811
+ Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
6416
6812
  return codegen_1.stringify;
6417
6813
  } });
6418
- Object.defineProperty(exports$1, "nil", { enumerable: true, get: function() {
6814
+ Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
6419
6815
  return codegen_1.nil;
6420
6816
  } });
6421
- Object.defineProperty(exports$1, "Name", { enumerable: true, get: function() {
6817
+ Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
6422
6818
  return codegen_1.Name;
6423
6819
  } });
6424
- Object.defineProperty(exports$1, "CodeGen", { enumerable: true, get: function() {
6820
+ Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
6425
6821
  return codegen_1.CodeGen;
6426
6822
  } });
6427
6823
  var validation_error_1 = require_validation_error();
6428
- Object.defineProperty(exports$1, "ValidationError", { enumerable: true, get: function() {
6824
+ Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() {
6429
6825
  return validation_error_1.default;
6430
6826
  } });
6431
6827
  var ref_error_1 = require_ref_error();
6432
- Object.defineProperty(exports$1, "MissingRefError", { enumerable: true, get: function() {
6828
+ Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() {
6433
6829
  return ref_error_1.default;
6434
6830
  } });
6435
6831
  }
@@ -6437,13 +6833,13 @@ var require_ajv = __commonJS({
6437
6833
 
6438
6834
  // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js
6439
6835
  var require_formats = __commonJS({
6440
- "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports$1) {
6441
- Object.defineProperty(exports$1, "__esModule", { value: true });
6442
- exports$1.formatNames = exports$1.fastFormats = exports$1.fullFormats = void 0;
6836
+ "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports) {
6837
+ Object.defineProperty(exports, "__esModule", { value: true });
6838
+ exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
6443
6839
  function fmtDef(validate2, compare) {
6444
6840
  return { validate: validate2, compare };
6445
6841
  }
6446
- exports$1.fullFormats = {
6842
+ exports.fullFormats = {
6447
6843
  // date: http://tools.ietf.org/html/rfc3339#section-5.6
6448
6844
  date: fmtDef(date4, compareDate),
6449
6845
  // date-time: http://tools.ietf.org/html/rfc3339#section-5.6
@@ -6490,8 +6886,8 @@ var require_formats = __commonJS({
6490
6886
  // unchecked string payload
6491
6887
  binary: true
6492
6888
  };
6493
- exports$1.fastFormats = {
6494
- ...exports$1.fullFormats,
6889
+ exports.fastFormats = {
6890
+ ...exports.fullFormats,
6495
6891
  date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
6496
6892
  time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
6497
6893
  "date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
@@ -6505,7 +6901,7 @@ var require_formats = __commonJS({
6505
6901
  // http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
6506
6902
  email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
6507
6903
  };
6508
- exports$1.formatNames = Object.keys(exports$1.fullFormats);
6904
+ exports.formatNames = Object.keys(exports.fullFormats);
6509
6905
  function isLeapYear(year) {
6510
6906
  return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
6511
6907
  }
@@ -6639,9 +7035,9 @@ var require_formats = __commonJS({
6639
7035
 
6640
7036
  // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js
6641
7037
  var require_limit = __commonJS({
6642
- "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(exports$1) {
6643
- Object.defineProperty(exports$1, "__esModule", { value: true });
6644
- exports$1.formatLimitDefinition = void 0;
7038
+ "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(exports) {
7039
+ Object.defineProperty(exports, "__esModule", { value: true });
7040
+ exports.formatLimitDefinition = void 0;
6645
7041
  var ajv_1 = require_ajv();
6646
7042
  var codegen_1 = require_codegen();
6647
7043
  var ops = codegen_1.operators;
@@ -6655,7 +7051,7 @@ var require_limit = __commonJS({
6655
7051
  message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
6656
7052
  params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
6657
7053
  };
6658
- exports$1.formatLimitDefinition = {
7054
+ exports.formatLimitDefinition = {
6659
7055
  keyword: Object.keys(KWDs),
6660
7056
  type: "string",
6661
7057
  schemaType: "string",
@@ -6701,17 +7097,17 @@ var require_limit = __commonJS({
6701
7097
  dependencies: ["format"]
6702
7098
  };
6703
7099
  var formatLimitPlugin = (ajv) => {
6704
- ajv.addKeyword(exports$1.formatLimitDefinition);
7100
+ ajv.addKeyword(exports.formatLimitDefinition);
6705
7101
  return ajv;
6706
7102
  };
6707
- exports$1.default = formatLimitPlugin;
7103
+ exports.default = formatLimitPlugin;
6708
7104
  }
6709
7105
  });
6710
7106
 
6711
7107
  // ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js
6712
7108
  var require_dist = __commonJS({
6713
- "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(exports$1, module) {
6714
- Object.defineProperty(exports$1, "__esModule", { value: true });
7109
+ "../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(exports, module) {
7110
+ Object.defineProperty(exports, "__esModule", { value: true });
6715
7111
  var formats_1 = require_formats();
6716
7112
  var limit_1 = require_limit();
6717
7113
  var codegen_1 = require_codegen();
@@ -6743,15 +7139,15 @@ var require_dist = __commonJS({
6743
7139
  for (const f of list)
6744
7140
  ajv.addFormat(f, fs[f]);
6745
7141
  }
6746
- module.exports = exports$1 = formatsPlugin;
6747
- Object.defineProperty(exports$1, "__esModule", { value: true });
6748
- exports$1.default = formatsPlugin;
7142
+ module.exports = exports = formatsPlugin;
7143
+ Object.defineProperty(exports, "__esModule", { value: true });
7144
+ exports.default = formatsPlugin;
6749
7145
  }
6750
7146
  });
6751
7147
 
6752
7148
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
6753
7149
  var require_windows = __commonJS({
6754
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports$1, module) {
7150
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
6755
7151
  module.exports = isexe;
6756
7152
  isexe.sync = sync;
6757
7153
  var fs = __require("fs");
@@ -6791,7 +7187,7 @@ var require_windows = __commonJS({
6791
7187
 
6792
7188
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
6793
7189
  var require_mode = __commonJS({
6794
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports$1, module) {
7190
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
6795
7191
  module.exports = isexe;
6796
7192
  isexe.sync = sync;
6797
7193
  var fs = __require("fs");
@@ -6824,7 +7220,7 @@ var require_mode = __commonJS({
6824
7220
 
6825
7221
  // ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
6826
7222
  var require_isexe = __commonJS({
6827
- "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports$1, module) {
7223
+ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
6828
7224
  __require("fs");
6829
7225
  var core;
6830
7226
  if (process.platform === "win32" || global.TESTING_WINDOWS) {
@@ -6879,7 +7275,7 @@ var require_isexe = __commonJS({
6879
7275
 
6880
7276
  // ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
6881
7277
  var require_which = __commonJS({
6882
- "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports$1, module) {
7278
+ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
6883
7279
  var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
6884
7280
  var path = __require("path");
6885
7281
  var COLON = isWindows ? ";" : ":";
@@ -6975,7 +7371,7 @@ var require_which = __commonJS({
6975
7371
 
6976
7372
  // ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
6977
7373
  var require_path_key = __commonJS({
6978
- "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports$1, module) {
7374
+ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
6979
7375
  var pathKey = (options = {}) => {
6980
7376
  const environment = options.env || process.env;
6981
7377
  const platform = options.platform || process.platform;
@@ -6991,7 +7387,7 @@ var require_path_key = __commonJS({
6991
7387
 
6992
7388
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
6993
7389
  var require_resolveCommand = __commonJS({
6994
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports$1, module) {
7390
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
6995
7391
  var path = __require("path");
6996
7392
  var which = require_which();
6997
7393
  var getPathKey = require_path_key();
@@ -7032,7 +7428,7 @@ var require_resolveCommand = __commonJS({
7032
7428
 
7033
7429
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
7034
7430
  var require_escape = __commonJS({
7035
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports$1, module) {
7431
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
7036
7432
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
7037
7433
  function escapeCommand(arg) {
7038
7434
  arg = arg.replace(metaCharsRegExp, "^$1");
@@ -7056,14 +7452,14 @@ var require_escape = __commonJS({
7056
7452
 
7057
7453
  // ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
7058
7454
  var require_shebang_regex = __commonJS({
7059
- "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports$1, module) {
7455
+ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
7060
7456
  module.exports = /^#!(.*)/;
7061
7457
  }
7062
7458
  });
7063
7459
 
7064
7460
  // ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
7065
7461
  var require_shebang_command = __commonJS({
7066
- "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports$1, module) {
7462
+ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
7067
7463
  var shebangRegex = require_shebang_regex();
7068
7464
  module.exports = (string4 = "") => {
7069
7465
  const match = string4.match(shebangRegex);
@@ -7082,7 +7478,7 @@ var require_shebang_command = __commonJS({
7082
7478
 
7083
7479
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
7084
7480
  var require_readShebang = __commonJS({
7085
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports$1, module) {
7481
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
7086
7482
  var fs = __require("fs");
7087
7483
  var shebangCommand = require_shebang_command();
7088
7484
  function readShebang(command) {
@@ -7103,7 +7499,7 @@ var require_readShebang = __commonJS({
7103
7499
 
7104
7500
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
7105
7501
  var require_parse = __commonJS({
7106
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports$1, module) {
7502
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
7107
7503
  var path = __require("path");
7108
7504
  var resolveCommand = require_resolveCommand();
7109
7505
  var escape2 = require_escape();
@@ -7164,7 +7560,7 @@ var require_parse = __commonJS({
7164
7560
 
7165
7561
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
7166
7562
  var require_enoent = __commonJS({
7167
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports$1, module) {
7563
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
7168
7564
  var isWin = process.platform === "win32";
7169
7565
  function notFoundError(original, syscall) {
7170
7566
  return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
@@ -7213,7 +7609,7 @@ var require_enoent = __commonJS({
7213
7609
 
7214
7610
  // ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
7215
7611
  var require_cross_spawn = __commonJS({
7216
- "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports$1, module) {
7612
+ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
7217
7613
  var cp = __require("child_process");
7218
7614
  var parse3 = require_parse();
7219
7615
  var enoent = require_enoent();
@@ -7239,15 +7635,15 @@ var require_cross_spawn = __commonJS({
7239
7635
 
7240
7636
  // ../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js
7241
7637
  var require_content_type = __commonJS({
7242
- "../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js"(exports$1) {
7638
+ "../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js"(exports) {
7243
7639
  var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
7244
7640
  var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
7245
7641
  var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
7246
7642
  var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
7247
7643
  var QUOTE_REGEXP = /([\\"])/g;
7248
7644
  var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
7249
- exports$1.format = format;
7250
- exports$1.parse = parse3;
7645
+ exports.format = format;
7646
+ exports.parse = parse3;
7251
7647
  function format(obj) {
7252
7648
  if (!obj || typeof obj !== "object") {
7253
7649
  throw new TypeError("argument obj is required");