@purescraps/purehtml 0.4.1 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/src/index.js CHANGED
@@ -29,9 +29,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  ));
30
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
31
 
32
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/codegen/code.js
32
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js
33
33
  var require_code = __commonJS({
34
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/codegen/code.js"(exports2) {
34
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/code.js"(exports2) {
35
35
  "use strict";
36
36
  Object.defineProperty(exports2, "__esModule", { value: true });
37
37
  exports2.regexpCode = exports2.getEsmExportName = exports2.getProperty = exports2.safeStringify = exports2.stringify = exports2.strConcat = exports2.addCodeArg = exports2.str = exports2._ = exports2.nil = exports2._Code = exports2.Name = exports2.IDENTIFIER = exports2._CodeOrName = void 0;
@@ -183,9 +183,9 @@ var require_code = __commonJS({
183
183
  }
184
184
  });
185
185
 
186
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/codegen/scope.js
186
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js
187
187
  var require_scope = __commonJS({
188
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports2) {
188
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/scope.js"(exports2) {
189
189
  "use strict";
190
190
  Object.defineProperty(exports2, "__esModule", { value: true });
191
191
  exports2.ValueScope = exports2.ValueScopeName = exports2.Scope = exports2.varKinds = exports2.UsedValueState = void 0;
@@ -200,7 +200,7 @@ var require_scope = __commonJS({
200
200
  (function(UsedValueState2) {
201
201
  UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
202
202
  UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
203
- })(UsedValueState = exports2.UsedValueState || (exports2.UsedValueState = {}));
203
+ })(UsedValueState || (exports2.UsedValueState = UsedValueState = {}));
204
204
  exports2.varKinds = {
205
205
  const: new code_1.Name("const"),
206
206
  let: new code_1.Name("let"),
@@ -328,9 +328,9 @@ var require_scope = __commonJS({
328
328
  }
329
329
  });
330
330
 
331
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/codegen/index.js
331
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js
332
332
  var require_codegen = __commonJS({
333
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/codegen/index.js"(exports2) {
333
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/codegen/index.js"(exports2) {
334
334
  "use strict";
335
335
  Object.defineProperty(exports2, "__esModule", { value: true });
336
336
  exports2.or = exports2.and = exports2.not = exports2.CodeGen = exports2.operators = exports2.varKinds = exports2.ValueScopeName = exports2.ValueScope = exports2.Scope = exports2.Name = exports2.regexpCode = exports2.stringify = exports2.getProperty = exports2.nil = exports2.strConcat = exports2.str = exports2._ = void 0;
@@ -1048,9 +1048,9 @@ var require_codegen = __commonJS({
1048
1048
  }
1049
1049
  });
1050
1050
 
1051
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/util.js
1051
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js
1052
1052
  var require_util = __commonJS({
1053
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/util.js"(exports2) {
1053
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/util.js"(exports2) {
1054
1054
  "use strict";
1055
1055
  Object.defineProperty(exports2, "__esModule", { value: true });
1056
1056
  exports2.checkStrictMode = exports2.getErrorPath = exports2.Type = exports2.useFunc = exports2.setEvaluated = exports2.evaluatedPropsToName = exports2.mergeEvaluated = exports2.eachItem = exports2.unescapeJsonPointer = exports2.escapeJsonPointer = exports2.escapeFragment = exports2.unescapeFragment = exports2.schemaRefOrVal = exports2.schemaHasRulesButRef = exports2.schemaHasRules = exports2.checkUnknownRules = exports2.alwaysValidSchema = exports2.toHash = void 0;
@@ -1194,7 +1194,7 @@ var require_util = __commonJS({
1194
1194
  (function(Type2) {
1195
1195
  Type2[Type2["Num"] = 0] = "Num";
1196
1196
  Type2[Type2["Str"] = 1] = "Str";
1197
- })(Type = exports2.Type || (exports2.Type = {}));
1197
+ })(Type || (exports2.Type = Type = {}));
1198
1198
  function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
1199
1199
  if (dataProp instanceof codegen_1.Name) {
1200
1200
  const isNumber = dataPropType === Type.Num;
@@ -1215,25 +1215,31 @@ var require_util = __commonJS({
1215
1215
  }
1216
1216
  });
1217
1217
 
1218
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/names.js
1218
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js
1219
1219
  var require_names = __commonJS({
1220
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/names.js"(exports2) {
1220
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/names.js"(exports2) {
1221
1221
  "use strict";
1222
1222
  Object.defineProperty(exports2, "__esModule", { value: true });
1223
1223
  var codegen_1 = require_codegen();
1224
1224
  var names = {
1225
1225
  // validation function arguments
1226
1226
  data: new codegen_1.Name("data"),
1227
+ // data passed to validation function
1227
1228
  // args passed from referencing schema
1228
1229
  valCxt: new codegen_1.Name("valCxt"),
1230
+ // validation/data context - should not be used directly, it is destructured to the names below
1229
1231
  instancePath: new codegen_1.Name("instancePath"),
1230
1232
  parentData: new codegen_1.Name("parentData"),
1231
1233
  parentDataProperty: new codegen_1.Name("parentDataProperty"),
1232
1234
  rootData: new codegen_1.Name("rootData"),
1235
+ // root data - same as the data passed to the first/top validation function
1233
1236
  dynamicAnchors: new codegen_1.Name("dynamicAnchors"),
1237
+ // used to support recursiveRef and dynamicRef
1234
1238
  // function scoped variables
1235
1239
  vErrors: new codegen_1.Name("vErrors"),
1240
+ // null or array of validation errors
1236
1241
  errors: new codegen_1.Name("errors"),
1242
+ // counter of validation errors
1237
1243
  this: new codegen_1.Name("this"),
1238
1244
  // "globals"
1239
1245
  self: new codegen_1.Name("self"),
@@ -1248,9 +1254,9 @@ var require_names = __commonJS({
1248
1254
  }
1249
1255
  });
1250
1256
 
1251
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/errors.js
1257
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js
1252
1258
  var require_errors = __commonJS({
1253
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/errors.js"(exports2) {
1259
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/errors.js"(exports2) {
1254
1260
  "use strict";
1255
1261
  Object.defineProperty(exports2, "__esModule", { value: true });
1256
1262
  exports2.extendErrors = exports2.resetErrorsCount = exports2.reportExtraError = exports2.reportError = exports2.keyword$DataError = exports2.keywordError = void 0;
@@ -1321,6 +1327,7 @@ var require_errors = __commonJS({
1321
1327
  var E = {
1322
1328
  keyword: new codegen_1.Name("keyword"),
1323
1329
  schemaPath: new codegen_1.Name("schemaPath"),
1330
+ // also used in JTD errors
1324
1331
  params: new codegen_1.Name("params"),
1325
1332
  propertyName: new codegen_1.Name("propertyName"),
1326
1333
  message: new codegen_1.Name("message"),
@@ -1369,9 +1376,9 @@ var require_errors = __commonJS({
1369
1376
  }
1370
1377
  });
1371
1378
 
1372
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/boolSchema.js
1379
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js
1373
1380
  var require_boolSchema = __commonJS({
1374
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports2) {
1381
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports2) {
1375
1382
  "use strict";
1376
1383
  Object.defineProperty(exports2, "__esModule", { value: true });
1377
1384
  exports2.boolOrEmptySchema = exports2.topBoolOrEmptySchema = void 0;
@@ -1420,9 +1427,9 @@ var require_boolSchema = __commonJS({
1420
1427
  }
1421
1428
  });
1422
1429
 
1423
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/rules.js
1430
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js
1424
1431
  var require_rules = __commonJS({
1425
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/rules.js"(exports2) {
1432
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/rules.js"(exports2) {
1426
1433
  "use strict";
1427
1434
  Object.defineProperty(exports2, "__esModule", { value: true });
1428
1435
  exports2.getRules = exports2.isJSONType = void 0;
@@ -1451,9 +1458,9 @@ var require_rules = __commonJS({
1451
1458
  }
1452
1459
  });
1453
1460
 
1454
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/applicability.js
1461
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js
1455
1462
  var require_applicability = __commonJS({
1456
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports2) {
1463
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/applicability.js"(exports2) {
1457
1464
  "use strict";
1458
1465
  Object.defineProperty(exports2, "__esModule", { value: true });
1459
1466
  exports2.shouldUseRule = exports2.shouldUseGroup = exports2.schemaHasRulesForType = void 0;
@@ -1474,9 +1481,9 @@ var require_applicability = __commonJS({
1474
1481
  }
1475
1482
  });
1476
1483
 
1477
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/dataType.js
1484
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js
1478
1485
  var require_dataType = __commonJS({
1479
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports2) {
1486
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/dataType.js"(exports2) {
1480
1487
  "use strict";
1481
1488
  Object.defineProperty(exports2, "__esModule", { value: true });
1482
1489
  exports2.reportTypeError = exports2.checkDataTypes = exports2.checkDataType = exports2.coerceAndCheckDataType = exports2.getJSONTypes = exports2.getSchemaTypes = exports2.DataType = void 0;
@@ -1489,7 +1496,7 @@ var require_dataType = __commonJS({
1489
1496
  (function(DataType2) {
1490
1497
  DataType2[DataType2["Correct"] = 0] = "Correct";
1491
1498
  DataType2[DataType2["Wrong"] = 1] = "Wrong";
1492
- })(DataType = exports2.DataType || (exports2.DataType = {}));
1499
+ })(DataType || (exports2.DataType = DataType = {}));
1493
1500
  function getSchemaTypes(schema) {
1494
1501
  const types = getJSONTypes(schema.type);
1495
1502
  const hasNull = types.includes("null");
@@ -1658,9 +1665,9 @@ var require_dataType = __commonJS({
1658
1665
  }
1659
1666
  });
1660
1667
 
1661
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/defaults.js
1668
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js
1662
1669
  var require_defaults = __commonJS({
1663
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports2) {
1670
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/defaults.js"(exports2) {
1664
1671
  "use strict";
1665
1672
  Object.defineProperty(exports2, "__esModule", { value: true });
1666
1673
  exports2.assignDefaults = void 0;
@@ -1695,9 +1702,9 @@ var require_defaults = __commonJS({
1695
1702
  }
1696
1703
  });
1697
1704
 
1698
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/code.js
1705
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js
1699
1706
  var require_code2 = __commonJS({
1700
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/code.js"(exports2) {
1707
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/code.js"(exports2) {
1701
1708
  "use strict";
1702
1709
  Object.defineProperty(exports2, "__esModule", { value: true });
1703
1710
  exports2.validateUnion = exports2.validateArray = exports2.usePattern = exports2.callValidateCode = exports2.schemaProperties = exports2.allSchemaProperties = exports2.noPropertyInData = exports2.propertyInData = exports2.isOwnProperty = exports2.hasPropFunc = exports2.reportMissingProp = exports2.checkMissingProp = exports2.checkReportMissingProp = void 0;
@@ -1828,9 +1835,9 @@ var require_code2 = __commonJS({
1828
1835
  }
1829
1836
  });
1830
1837
 
1831
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/keyword.js
1838
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js
1832
1839
  var require_keyword = __commonJS({
1833
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports2) {
1840
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/keyword.js"(exports2) {
1834
1841
  "use strict";
1835
1842
  Object.defineProperty(exports2, "__esModule", { value: true });
1836
1843
  exports2.validateKeywordUsage = exports2.validSchemaType = exports2.funcKeywordCode = exports2.macroKeywordCode = void 0;
@@ -1946,9 +1953,9 @@ var require_keyword = __commonJS({
1946
1953
  }
1947
1954
  });
1948
1955
 
1949
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/subschema.js
1956
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js
1950
1957
  var require_subschema = __commonJS({
1951
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports2) {
1958
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/subschema.js"(exports2) {
1952
1959
  "use strict";
1953
1960
  Object.defineProperty(exports2, "__esModule", { value: true });
1954
1961
  exports2.extendSubschemaMode = exports2.extendSubschemaData = exports2.getSubschema = void 0;
@@ -2034,38 +2041,28 @@ var require_fast_deep_equal = __commonJS({
2034
2041
  "node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports2, module2) {
2035
2042
  "use strict";
2036
2043
  module2.exports = function equal(a, b) {
2037
- if (a === b)
2038
- return true;
2044
+ if (a === b) return true;
2039
2045
  if (a && b && typeof a == "object" && typeof b == "object") {
2040
- if (a.constructor !== b.constructor)
2041
- return false;
2046
+ if (a.constructor !== b.constructor) return false;
2042
2047
  var length, i, keys;
2043
2048
  if (Array.isArray(a)) {
2044
2049
  length = a.length;
2045
- if (length != b.length)
2046
- return false;
2050
+ if (length != b.length) return false;
2047
2051
  for (i = length; i-- !== 0; )
2048
- if (!equal(a[i], b[i]))
2049
- return false;
2052
+ if (!equal(a[i], b[i])) return false;
2050
2053
  return true;
2051
2054
  }
2052
- if (a.constructor === RegExp)
2053
- return a.source === b.source && a.flags === b.flags;
2054
- if (a.valueOf !== Object.prototype.valueOf)
2055
- return a.valueOf() === b.valueOf();
2056
- if (a.toString !== Object.prototype.toString)
2057
- return a.toString() === b.toString();
2055
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
2056
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
2057
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
2058
2058
  keys = Object.keys(a);
2059
2059
  length = keys.length;
2060
- if (length !== Object.keys(b).length)
2061
- return false;
2060
+ if (length !== Object.keys(b).length) return false;
2062
2061
  for (i = length; i-- !== 0; )
2063
- if (!Object.prototype.hasOwnProperty.call(b, keys[i]))
2064
- return false;
2062
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
2065
2063
  for (i = length; i-- !== 0; ) {
2066
2064
  var key = keys[i];
2067
- if (!equal(a[key], b[key]))
2068
- return false;
2065
+ if (!equal(a[key], b[key])) return false;
2069
2066
  }
2070
2067
  return true;
2071
2068
  }
@@ -2162,9 +2159,9 @@ var require_json_schema_traverse = __commonJS({
2162
2159
  }
2163
2160
  });
2164
2161
 
2165
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/resolve.js
2162
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js
2166
2163
  var require_resolve = __commonJS({
2167
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/resolve.js"(exports2) {
2164
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/resolve.js"(exports2) {
2168
2165
  "use strict";
2169
2166
  Object.defineProperty(exports2, "__esModule", { value: true });
2170
2167
  exports2.getSchemaRefs = exports2.resolveUrl = exports2.normalizeId = exports2._getFullPath = exports2.getFullPath = exports2.inlineRef = void 0;
@@ -2270,15 +2267,15 @@ var require_resolve = __commonJS({
2270
2267
  if (parentJsonPtr === void 0)
2271
2268
  return;
2272
2269
  const fullPath = pathPrefix + jsonPtr;
2273
- let baseId2 = baseIds[parentJsonPtr];
2270
+ let innerBaseId = baseIds[parentJsonPtr];
2274
2271
  if (typeof sch[schemaId] == "string")
2275
- baseId2 = addRef.call(this, sch[schemaId]);
2272
+ innerBaseId = addRef.call(this, sch[schemaId]);
2276
2273
  addAnchor.call(this, sch.$anchor);
2277
2274
  addAnchor.call(this, sch.$dynamicAnchor);
2278
- baseIds[jsonPtr] = baseId2;
2275
+ baseIds[jsonPtr] = innerBaseId;
2279
2276
  function addRef(ref) {
2280
2277
  const _resolve = this.opts.uriResolver.resolve;
2281
- ref = normalizeId(baseId2 ? _resolve(baseId2, ref) : ref);
2278
+ ref = normalizeId(innerBaseId ? _resolve(innerBaseId, ref) : ref);
2282
2279
  if (schemaRefs.has(ref))
2283
2280
  throw ambiguos(ref);
2284
2281
  schemaRefs.add(ref);
@@ -2318,9 +2315,9 @@ var require_resolve = __commonJS({
2318
2315
  }
2319
2316
  });
2320
2317
 
2321
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/index.js
2318
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js
2322
2319
  var require_validate = __commonJS({
2323
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/validate/index.js"(exports2) {
2320
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/validate/index.js"(exports2) {
2324
2321
  "use strict";
2325
2322
  Object.defineProperty(exports2, "__esModule", { value: true });
2326
2323
  exports2.getData = exports2.KeywordCxt = exports2.validateFunctionCode = void 0;
@@ -2826,9 +2823,9 @@ var require_validate = __commonJS({
2826
2823
  }
2827
2824
  });
2828
2825
 
2829
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/runtime/validation_error.js
2826
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js
2830
2827
  var require_validation_error = __commonJS({
2831
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/runtime/validation_error.js"(exports2) {
2828
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/validation_error.js"(exports2) {
2832
2829
  "use strict";
2833
2830
  Object.defineProperty(exports2, "__esModule", { value: true });
2834
2831
  var ValidationError = class extends Error {
@@ -2842,9 +2839,9 @@ var require_validation_error = __commonJS({
2842
2839
  }
2843
2840
  });
2844
2841
 
2845
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/ref_error.js
2842
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js
2846
2843
  var require_ref_error = __commonJS({
2847
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/ref_error.js"(exports2) {
2844
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/ref_error.js"(exports2) {
2848
2845
  "use strict";
2849
2846
  Object.defineProperty(exports2, "__esModule", { value: true });
2850
2847
  var resolve_1 = require_resolve();
@@ -2859,9 +2856,9 @@ var require_ref_error = __commonJS({
2859
2856
  }
2860
2857
  });
2861
2858
 
2862
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/index.js
2859
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js
2863
2860
  var require_compile = __commonJS({
2864
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/compile/index.js"(exports2) {
2861
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/compile/index.js"(exports2) {
2865
2862
  "use strict";
2866
2863
  Object.defineProperty(exports2, "__esModule", { value: true });
2867
2864
  exports2.resolveSchema = exports2.getCompilingSchema = exports2.resolveRef = exports2.compileSchema = exports2.SchemaEnv = void 0;
@@ -2916,6 +2913,7 @@ var require_compile = __commonJS({
2916
2913
  parentDataProperty: names_1.default.parentDataProperty,
2917
2914
  dataNames: [names_1.default.data],
2918
2915
  dataPathArr: [codegen_1.nil],
2916
+ // TODO can its length be used as dataLevel if nil is removed?
2919
2917
  dataLevel: 0,
2920
2918
  dataTypes: [],
2921
2919
  definedProperties: /* @__PURE__ */ new Set(),
@@ -3082,9 +3080,9 @@ var require_compile = __commonJS({
3082
3080
  }
3083
3081
  });
3084
3082
 
3085
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/refs/data.json
3083
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json
3086
3084
  var require_data = __commonJS({
3087
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/refs/data.json"(exports2, module2) {
3085
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/data.json"(exports2, module2) {
3088
3086
  module2.exports = {
3089
3087
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
3090
3088
  description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
@@ -3101,1056 +3099,687 @@ var require_data = __commonJS({
3101
3099
  }
3102
3100
  });
3103
3101
 
3104
- // node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js
3105
- var require_uri_all = __commonJS({
3106
- "node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js"(exports2, module2) {
3107
- (function(global, factory) {
3108
- typeof exports2 === "object" && typeof module2 !== "undefined" ? factory(exports2) : typeof define === "function" && define.amd ? define(["exports"], factory) : factory(global.URI = global.URI || {});
3109
- })(exports2, function(exports3) {
3110
- "use strict";
3111
- function merge() {
3112
- for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
3113
- sets[_key] = arguments[_key];
3114
- }
3115
- if (sets.length > 1) {
3116
- sets[0] = sets[0].slice(0, -1);
3117
- var xl = sets.length - 1;
3118
- for (var x = 1; x < xl; ++x) {
3119
- sets[x] = sets[x].slice(1, -1);
3120
- }
3121
- sets[xl] = sets[xl].slice(1);
3122
- return sets.join("");
3123
- } else {
3124
- return sets[0];
3125
- }
3126
- }
3127
- function subexp(str) {
3128
- return "(?:" + str + ")";
3129
- }
3130
- function typeOf(o) {
3131
- return o === void 0 ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
3132
- }
3133
- function toUpperCase(str) {
3134
- return str.toUpperCase();
3135
- }
3136
- function toArray(obj) {
3137
- return obj !== void 0 && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
3138
- }
3139
- function assign(target, source) {
3140
- var obj = target;
3141
- if (source) {
3142
- for (var key in source) {
3143
- obj[key] = source[key];
3144
- }
3145
- }
3146
- return obj;
3102
+ // node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/scopedChars.js
3103
+ var require_scopedChars = __commonJS({
3104
+ "node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/scopedChars.js"(exports2, module2) {
3105
+ "use strict";
3106
+ var HEX = {
3107
+ 0: 0,
3108
+ 1: 1,
3109
+ 2: 2,
3110
+ 3: 3,
3111
+ 4: 4,
3112
+ 5: 5,
3113
+ 6: 6,
3114
+ 7: 7,
3115
+ 8: 8,
3116
+ 9: 9,
3117
+ a: 10,
3118
+ A: 10,
3119
+ b: 11,
3120
+ B: 11,
3121
+ c: 12,
3122
+ C: 12,
3123
+ d: 13,
3124
+ D: 13,
3125
+ e: 14,
3126
+ E: 14,
3127
+ f: 15,
3128
+ F: 15
3129
+ };
3130
+ module2.exports = {
3131
+ HEX
3132
+ };
3133
+ }
3134
+ });
3135
+
3136
+ // node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/utils.js
3137
+ var require_utils = __commonJS({
3138
+ "node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/utils.js"(exports2, module2) {
3139
+ "use strict";
3140
+ var { HEX } = require_scopedChars();
3141
+ function normalizeIPv4(host) {
3142
+ if (findToken(host, ".") < 3) {
3143
+ return { host, isIPV4: false };
3144
+ }
3145
+ const matches = host.match(/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/u) || [];
3146
+ const [address] = matches;
3147
+ if (address) {
3148
+ return { host: stripLeadingZeros(address, "."), isIPV4: true };
3149
+ } else {
3150
+ return { host, isIPV4: false };
3147
3151
  }
3148
- function buildExps(isIRI2) {
3149
- var ALPHA$$ = "[A-Za-z]", CR$ = "[\\x0D]", DIGIT$$ = "[0-9]", DQUOTE$$ = "[\\x22]", HEXDIG$$2 = merge(DIGIT$$, "[A-Fa-f]"), LF$$ = "[\\x0A]", SP$$ = "[\\x20]", PCT_ENCODED$2 = subexp(subexp("%[EFef]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$2 + "%" + HEXDIG$$2 + HEXDIG$$2) + "|" + subexp("%" + HEXDIG$$2 + HEXDIG$$2)), GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]", SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]", RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$), UCSCHAR$$ = isIRI2 ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]", IPRIVATE$$ = isIRI2 ? "[\\uE000-\\uF8FF]" : "[]", UNRESERVED$$2 = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$), SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"), USERINFO$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]")) + "*"), DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$), DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$), IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$), H16$ = subexp(HEXDIG$$2 + "{1,4}"), LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$), IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$), IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$), IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$), IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$), IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$), IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$), IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$), IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$), IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"), IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")), ZONEID$ = subexp(subexp(UNRESERVED$$2 + "|" + PCT_ENCODED$2) + "+"), IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$), IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + ZONEID$), IPVFUTURE$ = subexp("[vV]" + HEXDIG$$2 + "+\\." + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:]") + "+"), IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"), REG_NAME$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$)) + "*"), HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")|" + REG_NAME$), PORT$ = subexp(DIGIT$$ + "*"), AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"), PCHAR$ = subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@]")), SEGMENT$ = subexp(PCHAR$ + "*"), SEGMENT_NZ$ = subexp(PCHAR$ + "+"), SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$2 + "|" + merge(UNRESERVED$$2, SUB_DELIMS$$, "[\\@]")) + "+"), PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"), PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"), PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$), PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$), PATH_EMPTY$ = "(?!" + PCHAR$ + ")", PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"), FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"), HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$), URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$), RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"), URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$), ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"), GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$", SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$", AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
3150
- return {
3151
- NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
3152
- NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
3153
- NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
3154
- NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
3155
- NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
3156
- NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
3157
- NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$2, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
3158
- ESCAPE: new RegExp(merge("[^]", UNRESERVED$$2, SUB_DELIMS$$), "g"),
3159
- UNRESERVED: new RegExp(UNRESERVED$$2, "g"),
3160
- OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$2, RESERVED$$), "g"),
3161
- PCT_ENCODED: new RegExp(PCT_ENCODED$2, "g"),
3162
- IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
3163
- IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$2 + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$")
3164
- //RFC 6874, with relaxed parsing rules
3165
- };
3152
+ }
3153
+ function stringArrayToHexStripped(input, keepZero = false) {
3154
+ let acc = "";
3155
+ let strip = true;
3156
+ for (const c of input) {
3157
+ if (HEX[c] === void 0) return void 0;
3158
+ if (c !== "0" && strip === true) strip = false;
3159
+ if (!strip) acc += c;
3166
3160
  }
3167
- var URI_PROTOCOL = buildExps(false);
3168
- var IRI_PROTOCOL = buildExps(true);
3169
- var slicedToArray = /* @__PURE__ */ function() {
3170
- function sliceIterator(arr, i) {
3171
- var _arr = [];
3172
- var _n = true;
3173
- var _d = false;
3174
- var _e = void 0;
3175
- try {
3176
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
3177
- _arr.push(_s.value);
3178
- if (i && _arr.length === i)
3179
- break;
3180
- }
3181
- } catch (err) {
3182
- _d = true;
3183
- _e = err;
3184
- } finally {
3185
- try {
3186
- if (!_n && _i["return"])
3187
- _i["return"]();
3188
- } finally {
3189
- if (_d)
3190
- throw _e;
3191
- }
3192
- }
3193
- return _arr;
3194
- }
3195
- return function(arr, i) {
3196
- if (Array.isArray(arr)) {
3197
- return arr;
3198
- } else if (Symbol.iterator in Object(arr)) {
3199
- return sliceIterator(arr, i);
3200
- } else {
3201
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
3202
- }
3203
- };
3204
- }();
3205
- var toConsumableArray = function(arr) {
3206
- if (Array.isArray(arr)) {
3207
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
3208
- arr2[i] = arr[i];
3209
- return arr2;
3210
- } else {
3211
- return Array.from(arr);
3212
- }
3213
- };
3214
- var maxInt = 2147483647;
3215
- var base = 36;
3216
- var tMin = 1;
3217
- var tMax = 26;
3218
- var skew = 38;
3219
- var damp = 700;
3220
- var initialBias = 72;
3221
- var initialN = 128;
3222
- var delimiter = "-";
3223
- var regexPunycode = /^xn--/;
3224
- var regexNonASCII = /[^\0-\x7E]/;
3225
- var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g;
3226
- var errors = {
3227
- "overflow": "Overflow: input needs wider integers to process",
3228
- "not-basic": "Illegal input >= 0x80 (not a basic code point)",
3229
- "invalid-input": "Invalid input"
3230
- };
3231
- var baseMinusTMin = base - tMin;
3232
- var floor = Math.floor;
3233
- var stringFromCharCode = String.fromCharCode;
3234
- function error$1(type2) {
3235
- throw new RangeError(errors[type2]);
3236
- }
3237
- function map(array, fn) {
3238
- var result = [];
3239
- var length = array.length;
3240
- while (length--) {
3241
- result[length] = fn(array[length]);
3242
- }
3243
- return result;
3244
- }
3245
- function mapDomain(string, fn) {
3246
- var parts = string.split("@");
3247
- var result = "";
3248
- if (parts.length > 1) {
3249
- result = parts[0] + "@";
3250
- string = parts[1];
3251
- }
3252
- string = string.replace(regexSeparators, ".");
3253
- var labels = string.split(".");
3254
- var encoded = map(labels, fn).join(".");
3255
- return result + encoded;
3256
- }
3257
- function ucs2decode(string) {
3258
- var output = [];
3259
- var counter = 0;
3260
- var length = string.length;
3261
- while (counter < length) {
3262
- var value = string.charCodeAt(counter++);
3263
- if (value >= 55296 && value <= 56319 && counter < length) {
3264
- var extra = string.charCodeAt(counter++);
3265
- if ((extra & 64512) == 56320) {
3266
- output.push(((value & 1023) << 10) + (extra & 1023) + 65536);
3161
+ if (keepZero && acc.length === 0) acc = "0";
3162
+ return acc;
3163
+ }
3164
+ function getIPV6(input) {
3165
+ let tokenCount = 0;
3166
+ const output = { error: false, address: "", zone: "" };
3167
+ const address = [];
3168
+ const buffer = [];
3169
+ let isZone = false;
3170
+ let endipv6Encountered = false;
3171
+ let endIpv6 = false;
3172
+ function consume() {
3173
+ if (buffer.length) {
3174
+ if (isZone === false) {
3175
+ const hex = stringArrayToHexStripped(buffer);
3176
+ if (hex !== void 0) {
3177
+ address.push(hex);
3267
3178
  } else {
3268
- output.push(value);
3269
- counter--;
3179
+ output.error = true;
3180
+ return false;
3270
3181
  }
3271
- } else {
3272
- output.push(value);
3273
3182
  }
3183
+ buffer.length = 0;
3274
3184
  }
3275
- return output;
3185
+ return true;
3276
3186
  }
3277
- var ucs2encode = function ucs2encode2(array) {
3278
- return String.fromCodePoint.apply(String, toConsumableArray(array));
3279
- };
3280
- var basicToDigit = function basicToDigit2(codePoint) {
3281
- if (codePoint - 48 < 10) {
3282
- return codePoint - 22;
3283
- }
3284
- if (codePoint - 65 < 26) {
3285
- return codePoint - 65;
3286
- }
3287
- if (codePoint - 97 < 26) {
3288
- return codePoint - 97;
3187
+ for (let i = 0; i < input.length; i++) {
3188
+ const cursor = input[i];
3189
+ if (cursor === "[" || cursor === "]") {
3190
+ continue;
3289
3191
  }
3290
- return base;
3291
- };
3292
- var digitToBasic = function digitToBasic2(digit, flag) {
3293
- return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
3294
- };
3295
- var adapt = function adapt2(delta, numPoints, firstTime) {
3296
- var k = 0;
3297
- delta = firstTime ? floor(delta / damp) : delta >> 1;
3298
- delta += floor(delta / numPoints);
3299
- for (
3300
- ;
3301
- /* no initialization */
3302
- delta > baseMinusTMin * tMax >> 1;
3303
- k += base
3304
- ) {
3305
- delta = floor(delta / baseMinusTMin);
3306
- }
3307
- return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
3308
- };
3309
- var decode = function decode2(input) {
3310
- var output = [];
3311
- var inputLength = input.length;
3312
- var i = 0;
3313
- var n = initialN;
3314
- var bias = initialBias;
3315
- var basic = input.lastIndexOf(delimiter);
3316
- if (basic < 0) {
3317
- basic = 0;
3318
- }
3319
- for (var j = 0; j < basic; ++j) {
3320
- if (input.charCodeAt(j) >= 128) {
3321
- error$1("not-basic");
3192
+ if (cursor === ":") {
3193
+ if (endipv6Encountered === true) {
3194
+ endIpv6 = true;
3322
3195
  }
3323
- output.push(input.charCodeAt(j));
3324
- }
3325
- for (var index = basic > 0 ? basic + 1 : 0; index < inputLength; ) {
3326
- var oldi = i;
3327
- for (
3328
- var w = 1, k = base;
3329
- ;
3330
- /* no condition */
3331
- k += base
3332
- ) {
3333
- if (index >= inputLength) {
3334
- error$1("invalid-input");
3335
- }
3336
- var digit = basicToDigit(input.charCodeAt(index++));
3337
- if (digit >= base || digit > floor((maxInt - i) / w)) {
3338
- error$1("overflow");
3339
- }
3340
- i += digit * w;
3341
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
3342
- if (digit < t) {
3343
- break;
3344
- }
3345
- var baseMinusT = base - t;
3346
- if (w > floor(maxInt / baseMinusT)) {
3347
- error$1("overflow");
3348
- }
3349
- w *= baseMinusT;
3196
+ if (!consume()) {
3197
+ break;
3350
3198
  }
3351
- var out = output.length + 1;
3352
- bias = adapt(i - oldi, out, oldi == 0);
3353
- if (floor(i / out) > maxInt - n) {
3354
- error$1("overflow");
3199
+ tokenCount++;
3200
+ address.push(":");
3201
+ if (tokenCount > 7) {
3202
+ output.error = true;
3203
+ break;
3355
3204
  }
3356
- n += floor(i / out);
3357
- i %= out;
3358
- output.splice(i++, 0, n);
3359
- }
3360
- return String.fromCodePoint.apply(String, output);
3361
- };
3362
- var encode = function encode2(input) {
3363
- var output = [];
3364
- input = ucs2decode(input);
3365
- var inputLength = input.length;
3366
- var n = initialN;
3367
- var delta = 0;
3368
- var bias = initialBias;
3369
- var _iteratorNormalCompletion = true;
3370
- var _didIteratorError = false;
3371
- var _iteratorError = void 0;
3372
- try {
3373
- for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
3374
- var _currentValue2 = _step.value;
3375
- if (_currentValue2 < 128) {
3376
- output.push(stringFromCharCode(_currentValue2));
3377
- }
3205
+ if (i - 1 >= 0 && input[i - 1] === ":") {
3206
+ endipv6Encountered = true;
3378
3207
  }
3379
- } catch (err) {
3380
- _didIteratorError = true;
3381
- _iteratorError = err;
3382
- } finally {
3383
- try {
3384
- if (!_iteratorNormalCompletion && _iterator.return) {
3385
- _iterator.return();
3386
- }
3387
- } finally {
3388
- if (_didIteratorError) {
3389
- throw _iteratorError;
3390
- }
3208
+ continue;
3209
+ } else if (cursor === "%") {
3210
+ if (!consume()) {
3211
+ break;
3391
3212
  }
3213
+ isZone = true;
3214
+ } else {
3215
+ buffer.push(cursor);
3216
+ continue;
3392
3217
  }
3393
- var basicLength = output.length;
3394
- var handledCPCount = basicLength;
3395
- if (basicLength) {
3396
- output.push(delimiter);
3218
+ }
3219
+ if (buffer.length) {
3220
+ if (isZone) {
3221
+ output.zone = buffer.join("");
3222
+ } else if (endIpv6) {
3223
+ address.push(buffer.join(""));
3224
+ } else {
3225
+ address.push(stringArrayToHexStripped(buffer));
3397
3226
  }
3398
- while (handledCPCount < inputLength) {
3399
- var m = maxInt;
3400
- var _iteratorNormalCompletion2 = true;
3401
- var _didIteratorError2 = false;
3402
- var _iteratorError2 = void 0;
3403
- try {
3404
- for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
3405
- var currentValue = _step2.value;
3406
- if (currentValue >= n && currentValue < m) {
3407
- m = currentValue;
3408
- }
3409
- }
3410
- } catch (err) {
3411
- _didIteratorError2 = true;
3412
- _iteratorError2 = err;
3413
- } finally {
3414
- try {
3415
- if (!_iteratorNormalCompletion2 && _iterator2.return) {
3416
- _iterator2.return();
3417
- }
3418
- } finally {
3419
- if (_didIteratorError2) {
3420
- throw _iteratorError2;
3421
- }
3422
- }
3423
- }
3424
- var handledCPCountPlusOne = handledCPCount + 1;
3425
- if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
3426
- error$1("overflow");
3427
- }
3428
- delta += (m - n) * handledCPCountPlusOne;
3429
- n = m;
3430
- var _iteratorNormalCompletion3 = true;
3431
- var _didIteratorError3 = false;
3432
- var _iteratorError3 = void 0;
3433
- try {
3434
- for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
3435
- var _currentValue = _step3.value;
3436
- if (_currentValue < n && ++delta > maxInt) {
3437
- error$1("overflow");
3438
- }
3439
- if (_currentValue == n) {
3440
- var q = delta;
3441
- for (
3442
- var k = base;
3443
- ;
3444
- /* no condition */
3445
- k += base
3446
- ) {
3447
- var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
3448
- if (q < t) {
3449
- break;
3450
- }
3451
- var qMinusT = q - t;
3452
- var baseMinusT = base - t;
3453
- output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
3454
- q = floor(qMinusT / baseMinusT);
3455
- }
3456
- output.push(stringFromCharCode(digitToBasic(q, 0)));
3457
- bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
3458
- delta = 0;
3459
- ++handledCPCount;
3460
- }
3461
- }
3462
- } catch (err) {
3463
- _didIteratorError3 = true;
3464
- _iteratorError3 = err;
3465
- } finally {
3466
- try {
3467
- if (!_iteratorNormalCompletion3 && _iterator3.return) {
3468
- _iterator3.return();
3469
- }
3470
- } finally {
3471
- if (_didIteratorError3) {
3472
- throw _iteratorError3;
3473
- }
3474
- }
3475
- }
3476
- ++delta;
3477
- ++n;
3227
+ }
3228
+ output.address = address.join("");
3229
+ return output;
3230
+ }
3231
+ function normalizeIPv6(host, opts = {}) {
3232
+ if (findToken(host, ":") < 2) {
3233
+ return { host, isIPV6: false };
3234
+ }
3235
+ const ipv6 = getIPV6(host);
3236
+ if (!ipv6.error) {
3237
+ let newHost = ipv6.address;
3238
+ let escapedHost = ipv6.address;
3239
+ if (ipv6.zone) {
3240
+ newHost += "%" + ipv6.zone;
3241
+ escapedHost += "%25" + ipv6.zone;
3478
3242
  }
3479
- return output.join("");
3480
- };
3481
- var toUnicode = function toUnicode2(input) {
3482
- return mapDomain(input, function(string) {
3483
- return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
3484
- });
3485
- };
3486
- var toASCII = function toASCII2(input) {
3487
- return mapDomain(input, function(string) {
3488
- return regexNonASCII.test(string) ? "xn--" + encode(string) : string;
3489
- });
3490
- };
3491
- var punycode = {
3492
- /**
3493
- * A string representing the current Punycode.js version number.
3494
- * @memberOf punycode
3495
- * @type String
3496
- */
3497
- "version": "2.1.0",
3498
- /**
3499
- * An object of methods to convert from JavaScript's internal character
3500
- * representation (UCS-2) to Unicode code points, and back.
3501
- * @see <https://mathiasbynens.be/notes/javascript-encoding>
3502
- * @memberOf punycode
3503
- * @type Object
3504
- */
3505
- "ucs2": {
3506
- "decode": ucs2decode,
3507
- "encode": ucs2encode
3508
- },
3509
- "decode": decode,
3510
- "encode": encode,
3511
- "toASCII": toASCII,
3512
- "toUnicode": toUnicode
3513
- };
3514
- var SCHEMES = {};
3515
- function pctEncChar(chr) {
3516
- var c = chr.charCodeAt(0);
3517
- var e = void 0;
3518
- if (c < 16)
3519
- e = "%0" + c.toString(16).toUpperCase();
3520
- else if (c < 128)
3521
- e = "%" + c.toString(16).toUpperCase();
3522
- else if (c < 2048)
3523
- e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
3524
- else
3525
- e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
3526
- return e;
3527
- }
3528
- function pctDecChars(str) {
3529
- var newStr = "";
3530
- var i = 0;
3531
- var il = str.length;
3532
- while (i < il) {
3533
- var c = parseInt(str.substr(i + 1, 2), 16);
3534
- if (c < 128) {
3535
- newStr += String.fromCharCode(c);
3536
- i += 3;
3537
- } else if (c >= 194 && c < 224) {
3538
- if (il - i >= 6) {
3539
- var c2 = parseInt(str.substr(i + 4, 2), 16);
3540
- newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
3541
- } else {
3542
- newStr += str.substr(i, 6);
3543
- }
3544
- i += 6;
3545
- } else if (c >= 224) {
3546
- if (il - i >= 9) {
3547
- var _c = parseInt(str.substr(i + 4, 2), 16);
3548
- var c3 = parseInt(str.substr(i + 7, 2), 16);
3549
- newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);
3550
- } else {
3551
- newStr += str.substr(i, 9);
3552
- }
3553
- i += 9;
3554
- } else {
3555
- newStr += str.substr(i, 3);
3556
- i += 3;
3243
+ return { host: newHost, escapedHost, isIPV6: true };
3244
+ } else {
3245
+ return { host, isIPV6: false };
3246
+ }
3247
+ }
3248
+ function stripLeadingZeros(str, token) {
3249
+ let out = "";
3250
+ let skip = true;
3251
+ const l = str.length;
3252
+ for (let i = 0; i < l; i++) {
3253
+ const c = str[i];
3254
+ if (c === "0" && skip) {
3255
+ if (i + 1 <= l && str[i + 1] === token || i + 1 === l) {
3256
+ out += c;
3257
+ skip = false;
3557
3258
  }
3558
- }
3559
- return newStr;
3560
- }
3561
- function _normalizeComponentEncoding(components, protocol) {
3562
- function decodeUnreserved2(str) {
3563
- var decStr = pctDecChars(str);
3564
- return !decStr.match(protocol.UNRESERVED) ? str : decStr;
3565
- }
3566
- if (components.scheme)
3567
- components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_SCHEME, "");
3568
- if (components.userinfo !== void 0)
3569
- components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
3570
- if (components.host !== void 0)
3571
- components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved2).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
3572
- if (components.path !== void 0)
3573
- components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
3574
- if (components.query !== void 0)
3575
- components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
3576
- if (components.fragment !== void 0)
3577
- components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved2).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
3578
- return components;
3579
- }
3580
- function _stripLeadingZeros(str) {
3581
- return str.replace(/^0*(.*)/, "$1") || "0";
3582
- }
3583
- function _normalizeIPv4(host, protocol) {
3584
- var matches = host.match(protocol.IPV4ADDRESS) || [];
3585
- var _matches = slicedToArray(matches, 2), address = _matches[1];
3586
- if (address) {
3587
- return address.split(".").map(_stripLeadingZeros).join(".");
3588
3259
  } else {
3589
- return host;
3590
- }
3591
- }
3592
- function _normalizeIPv6(host, protocol) {
3593
- var matches = host.match(protocol.IPV6ADDRESS) || [];
3594
- var _matches2 = slicedToArray(matches, 3), address = _matches2[1], zone = _matches2[2];
3595
- if (address) {
3596
- var _address$toLowerCase$ = address.toLowerCase().split("::").reverse(), _address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2), last = _address$toLowerCase$2[0], first = _address$toLowerCase$2[1];
3597
- var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
3598
- var lastFields = last.split(":").map(_stripLeadingZeros);
3599
- var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
3600
- var fieldCount = isLastFieldIPv4Address ? 7 : 8;
3601
- var lastFieldsStart = lastFields.length - fieldCount;
3602
- var fields = Array(fieldCount);
3603
- for (var x = 0; x < fieldCount; ++x) {
3604
- fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || "";
3605
- }
3606
- if (isLastFieldIPv4Address) {
3607
- fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
3608
- }
3609
- var allZeroFields = fields.reduce(function(acc, field, index) {
3610
- if (!field || field === "0") {
3611
- var lastLongest = acc[acc.length - 1];
3612
- if (lastLongest && lastLongest.index + lastLongest.length === index) {
3613
- lastLongest.length++;
3614
- } else {
3615
- acc.push({ index, length: 1 });
3616
- }
3617
- }
3618
- return acc;
3619
- }, []);
3620
- var longestZeroFields = allZeroFields.sort(function(a, b) {
3621
- return b.length - a.length;
3622
- })[0];
3623
- var newHost = void 0;
3624
- if (longestZeroFields && longestZeroFields.length > 1) {
3625
- var newFirst = fields.slice(0, longestZeroFields.index);
3626
- var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
3627
- newHost = newFirst.join(":") + "::" + newLast.join(":");
3260
+ if (c === token) {
3261
+ skip = true;
3628
3262
  } else {
3629
- newHost = fields.join(":");
3263
+ skip = false;
3630
3264
  }
3631
- if (zone) {
3632
- newHost += "%" + zone;
3633
- }
3634
- return newHost;
3265
+ out += c;
3266
+ }
3267
+ }
3268
+ return out;
3269
+ }
3270
+ function findToken(str, token) {
3271
+ let ind = 0;
3272
+ for (let i = 0; i < str.length; i++) {
3273
+ if (str[i] === token) ind++;
3274
+ }
3275
+ return ind;
3276
+ }
3277
+ var RDS1 = /^\.\.?\//u;
3278
+ var RDS2 = /^\/\.(?:\/|$)/u;
3279
+ var RDS3 = /^\/\.\.(?:\/|$)/u;
3280
+ var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/u;
3281
+ function removeDotSegments(input) {
3282
+ const output = [];
3283
+ while (input.length) {
3284
+ if (input.match(RDS1)) {
3285
+ input = input.replace(RDS1, "");
3286
+ } else if (input.match(RDS2)) {
3287
+ input = input.replace(RDS2, "/");
3288
+ } else if (input.match(RDS3)) {
3289
+ input = input.replace(RDS3, "/");
3290
+ output.pop();
3291
+ } else if (input === "." || input === "..") {
3292
+ input = "";
3635
3293
  } else {
3636
- return host;
3637
- }
3638
- }
3639
- var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
3640
- var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === void 0;
3641
- function parse2(uriString) {
3642
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3643
- var components = {};
3644
- var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
3645
- if (options.reference === "suffix")
3646
- uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
3647
- var matches = uriString.match(URI_PARSE);
3648
- if (matches) {
3649
- if (NO_MATCH_IS_UNDEFINED) {
3650
- components.scheme = matches[1];
3651
- components.userinfo = matches[3];
3652
- components.host = matches[4];
3653
- components.port = parseInt(matches[5], 10);
3654
- components.path = matches[6] || "";
3655
- components.query = matches[7];
3656
- components.fragment = matches[8];
3657
- if (isNaN(components.port)) {
3658
- components.port = matches[5];
3659
- }
3660
- } else {
3661
- components.scheme = matches[1] || void 0;
3662
- components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : void 0;
3663
- components.host = uriString.indexOf("//") !== -1 ? matches[4] : void 0;
3664
- components.port = parseInt(matches[5], 10);
3665
- components.path = matches[6] || "";
3666
- components.query = uriString.indexOf("?") !== -1 ? matches[7] : void 0;
3667
- components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : void 0;
3668
- if (isNaN(components.port)) {
3669
- components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : void 0;
3670
- }
3671
- }
3672
- if (components.host) {
3673
- components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
3674
- }
3675
- if (components.scheme === void 0 && components.userinfo === void 0 && components.host === void 0 && components.port === void 0 && !components.path && components.query === void 0) {
3676
- components.reference = "same-document";
3677
- } else if (components.scheme === void 0) {
3678
- components.reference = "relative";
3679
- } else if (components.fragment === void 0) {
3680
- components.reference = "absolute";
3681
- } else {
3682
- components.reference = "uri";
3683
- }
3684
- if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
3685
- components.error = components.error || "URI is not a " + options.reference + " reference.";
3686
- }
3687
- var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
3688
- if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
3689
- if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
3690
- try {
3691
- components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
3692
- } catch (e) {
3693
- components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
3694
- }
3695
- }
3696
- _normalizeComponentEncoding(components, URI_PROTOCOL);
3294
+ const im = input.match(RDS5);
3295
+ if (im) {
3296
+ const s = im[0];
3297
+ input = input.slice(s.length);
3298
+ output.push(s);
3697
3299
  } else {
3698
- _normalizeComponentEncoding(components, protocol);
3699
- }
3700
- if (schemeHandler && schemeHandler.parse) {
3701
- schemeHandler.parse(components, options);
3300
+ throw new Error("Unexpected dot segment condition");
3702
3301
  }
3302
+ }
3303
+ }
3304
+ return output.join("");
3305
+ }
3306
+ function normalizeComponentEncoding(components, esc) {
3307
+ const func = esc !== true ? escape : unescape;
3308
+ if (components.scheme !== void 0) {
3309
+ components.scheme = func(components.scheme);
3310
+ }
3311
+ if (components.userinfo !== void 0) {
3312
+ components.userinfo = func(components.userinfo);
3313
+ }
3314
+ if (components.host !== void 0) {
3315
+ components.host = func(components.host);
3316
+ }
3317
+ if (components.path !== void 0) {
3318
+ components.path = func(components.path);
3319
+ }
3320
+ if (components.query !== void 0) {
3321
+ components.query = func(components.query);
3322
+ }
3323
+ if (components.fragment !== void 0) {
3324
+ components.fragment = func(components.fragment);
3325
+ }
3326
+ return components;
3327
+ }
3328
+ function recomposeAuthority(components, options) {
3329
+ const uriTokens = [];
3330
+ if (components.userinfo !== void 0) {
3331
+ uriTokens.push(components.userinfo);
3332
+ uriTokens.push("@");
3333
+ }
3334
+ if (components.host !== void 0) {
3335
+ let host = unescape(components.host);
3336
+ const ipV4res = normalizeIPv4(host);
3337
+ if (ipV4res.isIPV4) {
3338
+ host = ipV4res.host;
3703
3339
  } else {
3704
- components.error = components.error || "URI can not be parsed.";
3705
- }
3706
- return components;
3707
- }
3708
- function _recomposeAuthority(components, options) {
3709
- var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
3710
- var uriTokens = [];
3711
- if (components.userinfo !== void 0) {
3712
- uriTokens.push(components.userinfo);
3713
- uriTokens.push("@");
3714
- }
3715
- if (components.host !== void 0) {
3716
- uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function(_, $1, $2) {
3717
- return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
3718
- }));
3719
- }
3720
- if (typeof components.port === "number" || typeof components.port === "string") {
3721
- uriTokens.push(":");
3722
- uriTokens.push(String(components.port));
3723
- }
3724
- return uriTokens.length ? uriTokens.join("") : void 0;
3725
- }
3726
- var RDS1 = /^\.\.?\//;
3727
- var RDS2 = /^\/\.(\/|$)/;
3728
- var RDS3 = /^\/\.\.(\/|$)/;
3729
- var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
3730
- function removeDotSegments(input) {
3731
- var output = [];
3732
- while (input.length) {
3733
- if (input.match(RDS1)) {
3734
- input = input.replace(RDS1, "");
3735
- } else if (input.match(RDS2)) {
3736
- input = input.replace(RDS2, "/");
3737
- } else if (input.match(RDS3)) {
3738
- input = input.replace(RDS3, "/");
3739
- output.pop();
3740
- } else if (input === "." || input === "..") {
3741
- input = "";
3340
+ const ipV6res = normalizeIPv6(ipV4res.host, { isIPV4: false });
3341
+ if (ipV6res.isIPV6 === true) {
3342
+ host = `[${ipV6res.escapedHost}]`;
3742
3343
  } else {
3743
- var im = input.match(RDS5);
3744
- if (im) {
3745
- var s = im[0];
3746
- input = input.slice(s.length);
3747
- output.push(s);
3748
- } else {
3749
- throw new Error("Unexpected dot segment condition");
3750
- }
3344
+ host = components.host;
3751
3345
  }
3752
3346
  }
3753
- return output.join("");
3754
- }
3755
- function serialize(components) {
3756
- var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
3757
- var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
3758
- var uriTokens = [];
3759
- var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
3760
- if (schemeHandler && schemeHandler.serialize)
3761
- schemeHandler.serialize(components, options);
3762
- if (components.host) {
3763
- if (protocol.IPV6ADDRESS.test(components.host)) {
3764
- } else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
3765
- try {
3766
- components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
3767
- } catch (e) {
3768
- components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
3769
- }
3770
- }
3771
- }
3772
- _normalizeComponentEncoding(components, protocol);
3773
- if (options.reference !== "suffix" && components.scheme) {
3774
- uriTokens.push(components.scheme);
3775
- uriTokens.push(":");
3776
- }
3777
- var authority = _recomposeAuthority(components, options);
3778
- if (authority !== void 0) {
3779
- if (options.reference !== "suffix") {
3780
- uriTokens.push("//");
3781
- }
3782
- uriTokens.push(authority);
3783
- if (components.path && components.path.charAt(0) !== "/") {
3784
- uriTokens.push("/");
3785
- }
3786
- }
3787
- if (components.path !== void 0) {
3788
- var s = components.path;
3789
- if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3790
- s = removeDotSegments(s);
3791
- }
3792
- if (authority === void 0) {
3793
- s = s.replace(/^\/\//, "/%2F");
3794
- }
3795
- uriTokens.push(s);
3796
- }
3797
- if (components.query !== void 0) {
3798
- uriTokens.push("?");
3799
- uriTokens.push(components.query);
3800
- }
3801
- if (components.fragment !== void 0) {
3802
- uriTokens.push("#");
3803
- uriTokens.push(components.fragment);
3804
- }
3805
- return uriTokens.join("");
3347
+ uriTokens.push(host);
3806
3348
  }
3807
- function resolveComponents(base2, relative) {
3808
- var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
3809
- var skipNormalization = arguments[3];
3810
- var target = {};
3811
- if (!skipNormalization) {
3812
- base2 = parse2(serialize(base2, options), options);
3813
- relative = parse2(serialize(relative, options), options);
3349
+ if (typeof components.port === "number" || typeof components.port === "string") {
3350
+ uriTokens.push(":");
3351
+ uriTokens.push(String(components.port));
3352
+ }
3353
+ return uriTokens.length ? uriTokens.join("") : void 0;
3354
+ }
3355
+ module2.exports = {
3356
+ recomposeAuthority,
3357
+ normalizeComponentEncoding,
3358
+ removeDotSegments,
3359
+ normalizeIPv4,
3360
+ normalizeIPv6,
3361
+ stringArrayToHexStripped
3362
+ };
3363
+ }
3364
+ });
3365
+
3366
+ // node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/schemes.js
3367
+ var require_schemes = __commonJS({
3368
+ "node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/lib/schemes.js"(exports2, module2) {
3369
+ "use strict";
3370
+ var UUID_REG = /^[\da-f]{8}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{4}\b-[\da-f]{12}$/iu;
3371
+ var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
3372
+ function isSecure(wsComponents) {
3373
+ return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
3374
+ }
3375
+ function httpParse(components) {
3376
+ if (!components.host) {
3377
+ components.error = components.error || "HTTP URIs must have a host.";
3378
+ }
3379
+ return components;
3380
+ }
3381
+ function httpSerialize(components) {
3382
+ const secure = String(components.scheme).toLowerCase() === "https";
3383
+ if (components.port === (secure ? 443 : 80) || components.port === "") {
3384
+ components.port = void 0;
3385
+ }
3386
+ if (!components.path) {
3387
+ components.path = "/";
3388
+ }
3389
+ return components;
3390
+ }
3391
+ function wsParse(wsComponents) {
3392
+ wsComponents.secure = isSecure(wsComponents);
3393
+ wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
3394
+ wsComponents.path = void 0;
3395
+ wsComponents.query = void 0;
3396
+ return wsComponents;
3397
+ }
3398
+ function wsSerialize(wsComponents) {
3399
+ if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
3400
+ wsComponents.port = void 0;
3401
+ }
3402
+ if (typeof wsComponents.secure === "boolean") {
3403
+ wsComponents.scheme = wsComponents.secure ? "wss" : "ws";
3404
+ wsComponents.secure = void 0;
3405
+ }
3406
+ if (wsComponents.resourceName) {
3407
+ const [path, query] = wsComponents.resourceName.split("?");
3408
+ wsComponents.path = path && path !== "/" ? path : void 0;
3409
+ wsComponents.query = query;
3410
+ wsComponents.resourceName = void 0;
3411
+ }
3412
+ wsComponents.fragment = void 0;
3413
+ return wsComponents;
3414
+ }
3415
+ function urnParse(urnComponents, options) {
3416
+ if (!urnComponents.path) {
3417
+ urnComponents.error = "URN can not be parsed";
3418
+ return urnComponents;
3419
+ }
3420
+ const matches = urnComponents.path.match(URN_REG);
3421
+ if (matches) {
3422
+ const scheme = options.scheme || urnComponents.scheme || "urn";
3423
+ urnComponents.nid = matches[1].toLowerCase();
3424
+ urnComponents.nss = matches[2];
3425
+ const urnScheme = `${scheme}:${options.nid || urnComponents.nid}`;
3426
+ const schemeHandler = SCHEMES[urnScheme];
3427
+ urnComponents.path = void 0;
3428
+ if (schemeHandler) {
3429
+ urnComponents = schemeHandler.parse(urnComponents, options);
3814
3430
  }
3815
- options = options || {};
3816
- if (!options.tolerant && relative.scheme) {
3817
- target.scheme = relative.scheme;
3431
+ } else {
3432
+ urnComponents.error = urnComponents.error || "URN can not be parsed.";
3433
+ }
3434
+ return urnComponents;
3435
+ }
3436
+ function urnSerialize(urnComponents, options) {
3437
+ const scheme = options.scheme || urnComponents.scheme || "urn";
3438
+ const nid = urnComponents.nid.toLowerCase();
3439
+ const urnScheme = `${scheme}:${options.nid || nid}`;
3440
+ const schemeHandler = SCHEMES[urnScheme];
3441
+ if (schemeHandler) {
3442
+ urnComponents = schemeHandler.serialize(urnComponents, options);
3443
+ }
3444
+ const uriComponents = urnComponents;
3445
+ const nss = urnComponents.nss;
3446
+ uriComponents.path = `${nid || options.nid}:${nss}`;
3447
+ options.skipEscape = true;
3448
+ return uriComponents;
3449
+ }
3450
+ function urnuuidParse(urnComponents, options) {
3451
+ const uuidComponents = urnComponents;
3452
+ uuidComponents.uuid = uuidComponents.nss;
3453
+ uuidComponents.nss = void 0;
3454
+ if (!options.tolerant && (!uuidComponents.uuid || !UUID_REG.test(uuidComponents.uuid))) {
3455
+ uuidComponents.error = uuidComponents.error || "UUID is not valid.";
3456
+ }
3457
+ return uuidComponents;
3458
+ }
3459
+ function urnuuidSerialize(uuidComponents) {
3460
+ const urnComponents = uuidComponents;
3461
+ urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
3462
+ return urnComponents;
3463
+ }
3464
+ var http = {
3465
+ scheme: "http",
3466
+ domainHost: true,
3467
+ parse: httpParse,
3468
+ serialize: httpSerialize
3469
+ };
3470
+ var https = {
3471
+ scheme: "https",
3472
+ domainHost: http.domainHost,
3473
+ parse: httpParse,
3474
+ serialize: httpSerialize
3475
+ };
3476
+ var ws = {
3477
+ scheme: "ws",
3478
+ domainHost: true,
3479
+ parse: wsParse,
3480
+ serialize: wsSerialize
3481
+ };
3482
+ var wss = {
3483
+ scheme: "wss",
3484
+ domainHost: ws.domainHost,
3485
+ parse: ws.parse,
3486
+ serialize: ws.serialize
3487
+ };
3488
+ var urn = {
3489
+ scheme: "urn",
3490
+ parse: urnParse,
3491
+ serialize: urnSerialize,
3492
+ skipNormalize: true
3493
+ };
3494
+ var urnuuid = {
3495
+ scheme: "urn:uuid",
3496
+ parse: urnuuidParse,
3497
+ serialize: urnuuidSerialize,
3498
+ skipNormalize: true
3499
+ };
3500
+ var SCHEMES = {
3501
+ http,
3502
+ https,
3503
+ ws,
3504
+ wss,
3505
+ urn,
3506
+ "urn:uuid": urnuuid
3507
+ };
3508
+ module2.exports = SCHEMES;
3509
+ }
3510
+ });
3511
+
3512
+ // node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/index.js
3513
+ var require_fast_uri = __commonJS({
3514
+ "node_modules/.pnpm/fast-uri@3.0.3/node_modules/fast-uri/index.js"(exports2, module2) {
3515
+ "use strict";
3516
+ var { normalizeIPv6, normalizeIPv4, removeDotSegments, recomposeAuthority, normalizeComponentEncoding } = require_utils();
3517
+ var SCHEMES = require_schemes();
3518
+ function normalize(uri, options) {
3519
+ if (typeof uri === "string") {
3520
+ uri = serialize(parse2(uri, options), options);
3521
+ } else if (typeof uri === "object") {
3522
+ uri = parse2(serialize(uri, options), options);
3523
+ }
3524
+ return uri;
3525
+ }
3526
+ function resolve(baseURI, relativeURI, options) {
3527
+ const schemelessOptions = Object.assign({ scheme: "null" }, options);
3528
+ const resolved = resolveComponents(parse2(baseURI, schemelessOptions), parse2(relativeURI, schemelessOptions), schemelessOptions, true);
3529
+ return serialize(resolved, { ...schemelessOptions, skipEscape: true });
3530
+ }
3531
+ function resolveComponents(base, relative, options, skipNormalization) {
3532
+ const target = {};
3533
+ if (!skipNormalization) {
3534
+ base = parse2(serialize(base, options), options);
3535
+ relative = parse2(serialize(relative, options), options);
3536
+ }
3537
+ options = options || {};
3538
+ if (!options.tolerant && relative.scheme) {
3539
+ target.scheme = relative.scheme;
3540
+ target.userinfo = relative.userinfo;
3541
+ target.host = relative.host;
3542
+ target.port = relative.port;
3543
+ target.path = removeDotSegments(relative.path || "");
3544
+ target.query = relative.query;
3545
+ } else {
3546
+ if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
3818
3547
  target.userinfo = relative.userinfo;
3819
3548
  target.host = relative.host;
3820
3549
  target.port = relative.port;
3821
3550
  target.path = removeDotSegments(relative.path || "");
3822
3551
  target.query = relative.query;
3823
3552
  } else {
3824
- if (relative.userinfo !== void 0 || relative.host !== void 0 || relative.port !== void 0) {
3825
- target.userinfo = relative.userinfo;
3826
- target.host = relative.host;
3827
- target.port = relative.port;
3828
- target.path = removeDotSegments(relative.path || "");
3829
- target.query = relative.query;
3553
+ if (!relative.path) {
3554
+ target.path = base.path;
3555
+ if (relative.query !== void 0) {
3556
+ target.query = relative.query;
3557
+ } else {
3558
+ target.query = base.query;
3559
+ }
3830
3560
  } else {
3831
- if (!relative.path) {
3832
- target.path = base2.path;
3833
- if (relative.query !== void 0) {
3834
- target.query = relative.query;
3835
- } else {
3836
- target.query = base2.query;
3837
- }
3561
+ if (relative.path.charAt(0) === "/") {
3562
+ target.path = removeDotSegments(relative.path);
3838
3563
  } else {
3839
- if (relative.path.charAt(0) === "/") {
3840
- target.path = removeDotSegments(relative.path);
3564
+ if ((base.userinfo !== void 0 || base.host !== void 0 || base.port !== void 0) && !base.path) {
3565
+ target.path = "/" + relative.path;
3566
+ } else if (!base.path) {
3567
+ target.path = relative.path;
3841
3568
  } else {
3842
- if ((base2.userinfo !== void 0 || base2.host !== void 0 || base2.port !== void 0) && !base2.path) {
3843
- target.path = "/" + relative.path;
3844
- } else if (!base2.path) {
3845
- target.path = relative.path;
3846
- } else {
3847
- target.path = base2.path.slice(0, base2.path.lastIndexOf("/") + 1) + relative.path;
3848
- }
3849
- target.path = removeDotSegments(target.path);
3569
+ target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
3850
3570
  }
3851
- target.query = relative.query;
3571
+ target.path = removeDotSegments(target.path);
3852
3572
  }
3853
- target.userinfo = base2.userinfo;
3854
- target.host = base2.host;
3855
- target.port = base2.port;
3573
+ target.query = relative.query;
3856
3574
  }
3857
- target.scheme = base2.scheme;
3575
+ target.userinfo = base.userinfo;
3576
+ target.host = base.host;
3577
+ target.port = base.port;
3578
+ }
3579
+ target.scheme = base.scheme;
3580
+ }
3581
+ target.fragment = relative.fragment;
3582
+ return target;
3583
+ }
3584
+ function equal(uriA, uriB, options) {
3585
+ if (typeof uriA === "string") {
3586
+ uriA = unescape(uriA);
3587
+ uriA = serialize(normalizeComponentEncoding(parse2(uriA, options), true), { ...options, skipEscape: true });
3588
+ } else if (typeof uriA === "object") {
3589
+ uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
3590
+ }
3591
+ if (typeof uriB === "string") {
3592
+ uriB = unescape(uriB);
3593
+ uriB = serialize(normalizeComponentEncoding(parse2(uriB, options), true), { ...options, skipEscape: true });
3594
+ } else if (typeof uriB === "object") {
3595
+ uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
3596
+ }
3597
+ return uriA.toLowerCase() === uriB.toLowerCase();
3598
+ }
3599
+ function serialize(cmpts, opts) {
3600
+ const components = {
3601
+ host: cmpts.host,
3602
+ scheme: cmpts.scheme,
3603
+ userinfo: cmpts.userinfo,
3604
+ port: cmpts.port,
3605
+ path: cmpts.path,
3606
+ query: cmpts.query,
3607
+ nid: cmpts.nid,
3608
+ nss: cmpts.nss,
3609
+ uuid: cmpts.uuid,
3610
+ fragment: cmpts.fragment,
3611
+ reference: cmpts.reference,
3612
+ resourceName: cmpts.resourceName,
3613
+ secure: cmpts.secure,
3614
+ error: ""
3615
+ };
3616
+ const options = Object.assign({}, opts);
3617
+ const uriTokens = [];
3618
+ const schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
3619
+ if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
3620
+ if (components.path !== void 0) {
3621
+ if (!options.skipEscape) {
3622
+ components.path = escape(components.path);
3623
+ if (components.scheme !== void 0) {
3624
+ components.path = components.path.split("%3A").join(":");
3625
+ }
3626
+ } else {
3627
+ components.path = unescape(components.path);
3858
3628
  }
3859
- target.fragment = relative.fragment;
3860
- return target;
3861
3629
  }
3862
- function resolve(baseURI, relativeURI, options) {
3863
- var schemelessOptions = assign({ scheme: "null" }, options);
3864
- return serialize(resolveComponents(parse2(baseURI, schemelessOptions), parse2(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
3630
+ if (options.reference !== "suffix" && components.scheme) {
3631
+ uriTokens.push(components.scheme, ":");
3865
3632
  }
3866
- function normalize(uri, options) {
3867
- if (typeof uri === "string") {
3868
- uri = serialize(parse2(uri, options), options);
3869
- } else if (typeOf(uri) === "object") {
3870
- uri = parse2(serialize(uri, options), options);
3633
+ const authority = recomposeAuthority(components, options);
3634
+ if (authority !== void 0) {
3635
+ if (options.reference !== "suffix") {
3636
+ uriTokens.push("//");
3637
+ }
3638
+ uriTokens.push(authority);
3639
+ if (components.path && components.path.charAt(0) !== "/") {
3640
+ uriTokens.push("/");
3871
3641
  }
3872
- return uri;
3873
3642
  }
3874
- function equal(uriA, uriB, options) {
3875
- if (typeof uriA === "string") {
3876
- uriA = serialize(parse2(uriA, options), options);
3877
- } else if (typeOf(uriA) === "object") {
3878
- uriA = serialize(uriA, options);
3643
+ if (components.path !== void 0) {
3644
+ let s = components.path;
3645
+ if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
3646
+ s = removeDotSegments(s);
3879
3647
  }
3880
- if (typeof uriB === "string") {
3881
- uriB = serialize(parse2(uriB, options), options);
3882
- } else if (typeOf(uriB) === "object") {
3883
- uriB = serialize(uriB, options);
3648
+ if (authority === void 0) {
3649
+ s = s.replace(/^\/\//u, "/%2F");
3884
3650
  }
3885
- return uriA === uriB;
3651
+ uriTokens.push(s);
3886
3652
  }
3887
- function escapeComponent(str, options) {
3888
- return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);
3653
+ if (components.query !== void 0) {
3654
+ uriTokens.push("?", components.query);
3889
3655
  }
3890
- function unescapeComponent(str, options) {
3891
- return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
3656
+ if (components.fragment !== void 0) {
3657
+ uriTokens.push("#", components.fragment);
3892
3658
  }
3893
- var handler = {
3894
- scheme: "http",
3895
- domainHost: true,
3896
- parse: function parse3(components, options) {
3897
- if (!components.host) {
3898
- components.error = components.error || "HTTP URIs must have a host.";
3899
- }
3900
- return components;
3901
- },
3902
- serialize: function serialize2(components, options) {
3903
- var secure = String(components.scheme).toLowerCase() === "https";
3904
- if (components.port === (secure ? 443 : 80) || components.port === "") {
3905
- components.port = void 0;
3906
- }
3907
- if (!components.path) {
3908
- components.path = "/";
3909
- }
3910
- return components;
3659
+ return uriTokens.join("");
3660
+ }
3661
+ var hexLookUp = Array.from({ length: 127 }, (v, k) => /[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(k)));
3662
+ function nonSimpleDomain(value) {
3663
+ let code = 0;
3664
+ for (let i = 0, len = value.length; i < len; ++i) {
3665
+ code = value.charCodeAt(i);
3666
+ if (code > 126 || hexLookUp[code]) {
3667
+ return true;
3911
3668
  }
3669
+ }
3670
+ return false;
3671
+ }
3672
+ var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
3673
+ function parse2(uri, opts) {
3674
+ const options = Object.assign({}, opts);
3675
+ const parsed = {
3676
+ scheme: void 0,
3677
+ userinfo: void 0,
3678
+ host: "",
3679
+ port: void 0,
3680
+ path: "",
3681
+ query: void 0,
3682
+ fragment: void 0
3912
3683
  };
3913
- var handler$1 = {
3914
- scheme: "https",
3915
- domainHost: handler.domainHost,
3916
- parse: handler.parse,
3917
- serialize: handler.serialize
3918
- };
3919
- function isSecure(wsComponents) {
3920
- return typeof wsComponents.secure === "boolean" ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
3921
- }
3922
- var handler$2 = {
3923
- scheme: "ws",
3924
- domainHost: true,
3925
- parse: function parse3(components, options) {
3926
- var wsComponents = components;
3927
- wsComponents.secure = isSecure(wsComponents);
3928
- wsComponents.resourceName = (wsComponents.path || "/") + (wsComponents.query ? "?" + wsComponents.query : "");
3929
- wsComponents.path = void 0;
3930
- wsComponents.query = void 0;
3931
- return wsComponents;
3932
- },
3933
- serialize: function serialize2(wsComponents, options) {
3934
- if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
3935
- wsComponents.port = void 0;
3936
- }
3937
- if (typeof wsComponents.secure === "boolean") {
3938
- wsComponents.scheme = wsComponents.secure ? "wss" : "ws";
3939
- wsComponents.secure = void 0;
3940
- }
3941
- if (wsComponents.resourceName) {
3942
- var _wsComponents$resourc = wsComponents.resourceName.split("?"), _wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2), path = _wsComponents$resourc2[0], query = _wsComponents$resourc2[1];
3943
- wsComponents.path = path && path !== "/" ? path : void 0;
3944
- wsComponents.query = query;
3945
- wsComponents.resourceName = void 0;
3684
+ const gotEncoding = uri.indexOf("%") !== -1;
3685
+ let isIP = false;
3686
+ if (options.reference === "suffix") uri = (options.scheme ? options.scheme + ":" : "") + "//" + uri;
3687
+ const matches = uri.match(URI_PARSE);
3688
+ if (matches) {
3689
+ parsed.scheme = matches[1];
3690
+ parsed.userinfo = matches[3];
3691
+ parsed.host = matches[4];
3692
+ parsed.port = parseInt(matches[5], 10);
3693
+ parsed.path = matches[6] || "";
3694
+ parsed.query = matches[7];
3695
+ parsed.fragment = matches[8];
3696
+ if (isNaN(parsed.port)) {
3697
+ parsed.port = matches[5];
3698
+ }
3699
+ if (parsed.host) {
3700
+ const ipv4result = normalizeIPv4(parsed.host);
3701
+ if (ipv4result.isIPV4 === false) {
3702
+ const ipv6result = normalizeIPv6(ipv4result.host, { isIPV4: false });
3703
+ parsed.host = ipv6result.host.toLowerCase();
3704
+ isIP = ipv6result.isIPV6;
3705
+ } else {
3706
+ parsed.host = ipv4result.host;
3707
+ isIP = true;
3946
3708
  }
3947
- wsComponents.fragment = void 0;
3948
- return wsComponents;
3949
3709
  }
3950
- };
3951
- var handler$3 = {
3952
- scheme: "wss",
3953
- domainHost: handler$2.domainHost,
3954
- parse: handler$2.parse,
3955
- serialize: handler$2.serialize
3956
- };
3957
- var O = {};
3958
- var isIRI = true;
3959
- var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
3960
- var HEXDIG$$ = "[0-9A-Fa-f]";
3961
- var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$));
3962
- var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
3963
- var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
3964
- var VCHAR$$ = merge(QTEXT$$, '[\\"\\\\]');
3965
- var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
3966
- var UNRESERVED = new RegExp(UNRESERVED$$, "g");
3967
- var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
3968
- var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
3969
- var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
3970
- var NOT_HFVALUE = NOT_HFNAME;
3971
- function decodeUnreserved(str) {
3972
- var decStr = pctDecChars(str);
3973
- return !decStr.match(UNRESERVED) ? str : decStr;
3974
- }
3975
- var handler$4 = {
3976
- scheme: "mailto",
3977
- parse: function parse$$1(components, options) {
3978
- var mailtoComponents = components;
3979
- var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
3980
- mailtoComponents.path = void 0;
3981
- if (mailtoComponents.query) {
3982
- var unknownHeaders = false;
3983
- var headers = {};
3984
- var hfields = mailtoComponents.query.split("&");
3985
- for (var x = 0, xl = hfields.length; x < xl; ++x) {
3986
- var hfield = hfields[x].split("=");
3987
- switch (hfield[0]) {
3988
- case "to":
3989
- var toAddrs = hfield[1].split(",");
3990
- for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
3991
- to.push(toAddrs[_x]);
3992
- }
3993
- break;
3994
- case "subject":
3995
- mailtoComponents.subject = unescapeComponent(hfield[1], options);
3996
- break;
3997
- case "body":
3998
- mailtoComponents.body = unescapeComponent(hfield[1], options);
3999
- break;
4000
- default:
4001
- unknownHeaders = true;
4002
- headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
4003
- break;
4004
- }
4005
- }
4006
- if (unknownHeaders)
4007
- mailtoComponents.headers = headers;
4008
- }
4009
- mailtoComponents.query = void 0;
4010
- for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
4011
- var addr = to[_x2].split("@");
4012
- addr[0] = unescapeComponent(addr[0]);
4013
- if (!options.unicodeSupport) {
4014
- try {
4015
- addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
4016
- } catch (e) {
4017
- mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
4018
- }
4019
- } else {
4020
- addr[1] = unescapeComponent(addr[1], options).toLowerCase();
3710
+ if (parsed.scheme === void 0 && parsed.userinfo === void 0 && parsed.host === void 0 && parsed.port === void 0 && !parsed.path && parsed.query === void 0) {
3711
+ parsed.reference = "same-document";
3712
+ } else if (parsed.scheme === void 0) {
3713
+ parsed.reference = "relative";
3714
+ } else if (parsed.fragment === void 0) {
3715
+ parsed.reference = "absolute";
3716
+ } else {
3717
+ parsed.reference = "uri";
3718
+ }
3719
+ if (options.reference && options.reference !== "suffix" && options.reference !== parsed.reference) {
3720
+ parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
3721
+ }
3722
+ const schemeHandler = SCHEMES[(options.scheme || parsed.scheme || "").toLowerCase()];
3723
+ if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
3724
+ if (parsed.host && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
3725
+ try {
3726
+ parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
3727
+ } catch (e) {
3728
+ parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
4021
3729
  }
4022
- to[_x2] = addr.join("@");
4023
3730
  }
4024
- return mailtoComponents;
4025
- },
4026
- serialize: function serialize$$1(mailtoComponents, options) {
4027
- var components = mailtoComponents;
4028
- var to = toArray(mailtoComponents.to);
4029
- if (to) {
4030
- for (var x = 0, xl = to.length; x < xl; ++x) {
4031
- var toAddr = String(to[x]);
4032
- var atIdx = toAddr.lastIndexOf("@");
4033
- var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
4034
- var domain = toAddr.slice(atIdx + 1);
4035
- try {
4036
- domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
4037
- } catch (e) {
4038
- components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
4039
- }
4040
- to[x] = localPart + "@" + domain;
4041
- }
4042
- components.path = to.join(",");
3731
+ }
3732
+ if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
3733
+ if (gotEncoding && parsed.scheme !== void 0) {
3734
+ parsed.scheme = unescape(parsed.scheme);
4043
3735
  }
4044
- var headers = mailtoComponents.headers = mailtoComponents.headers || {};
4045
- if (mailtoComponents.subject)
4046
- headers["subject"] = mailtoComponents.subject;
4047
- if (mailtoComponents.body)
4048
- headers["body"] = mailtoComponents.body;
4049
- var fields = [];
4050
- for (var name in headers) {
4051
- if (headers[name] !== O[name]) {
4052
- fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
4053
- }
3736
+ if (gotEncoding && parsed.host !== void 0) {
3737
+ parsed.host = unescape(parsed.host);
4054
3738
  }
4055
- if (fields.length) {
4056
- components.query = fields.join("&");
3739
+ if (parsed.path !== void 0 && parsed.path.length) {
3740
+ parsed.path = escape(unescape(parsed.path));
4057
3741
  }
4058
- return components;
4059
- }
4060
- };
4061
- var URN_PARSE = /^([^\:]+)\:(.*)/;
4062
- var handler$5 = {
4063
- scheme: "urn",
4064
- parse: function parse$$1(components, options) {
4065
- var matches = components.path && components.path.match(URN_PARSE);
4066
- var urnComponents = components;
4067
- if (matches) {
4068
- var scheme = options.scheme || urnComponents.scheme || "urn";
4069
- var nid = matches[1].toLowerCase();
4070
- var nss = matches[2];
4071
- var urnScheme = scheme + ":" + (options.nid || nid);
4072
- var schemeHandler = SCHEMES[urnScheme];
4073
- urnComponents.nid = nid;
4074
- urnComponents.nss = nss;
4075
- urnComponents.path = void 0;
4076
- if (schemeHandler) {
4077
- urnComponents = schemeHandler.parse(urnComponents, options);
4078
- }
4079
- } else {
4080
- urnComponents.error = urnComponents.error || "URN can not be parsed.";
4081
- }
4082
- return urnComponents;
4083
- },
4084
- serialize: function serialize$$1(urnComponents, options) {
4085
- var scheme = options.scheme || urnComponents.scheme || "urn";
4086
- var nid = urnComponents.nid;
4087
- var urnScheme = scheme + ":" + (options.nid || nid);
4088
- var schemeHandler = SCHEMES[urnScheme];
4089
- if (schemeHandler) {
4090
- urnComponents = schemeHandler.serialize(urnComponents, options);
3742
+ if (parsed.fragment !== void 0 && parsed.fragment.length) {
3743
+ parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
4091
3744
  }
4092
- var uriComponents = urnComponents;
4093
- var nss = urnComponents.nss;
4094
- uriComponents.path = (nid || options.nid) + ":" + nss;
4095
- return uriComponents;
4096
3745
  }
4097
- };
4098
- var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
4099
- var handler$6 = {
4100
- scheme: "urn:uuid",
4101
- parse: function parse3(urnComponents, options) {
4102
- var uuidComponents = urnComponents;
4103
- uuidComponents.uuid = uuidComponents.nss;
4104
- uuidComponents.nss = void 0;
4105
- if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
4106
- uuidComponents.error = uuidComponents.error || "UUID is not valid.";
4107
- }
4108
- return uuidComponents;
4109
- },
4110
- serialize: function serialize2(uuidComponents, options) {
4111
- var urnComponents = uuidComponents;
4112
- urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
4113
- return urnComponents;
3746
+ if (schemeHandler && schemeHandler.parse) {
3747
+ schemeHandler.parse(parsed, options);
4114
3748
  }
4115
- };
4116
- SCHEMES[handler.scheme] = handler;
4117
- SCHEMES[handler$1.scheme] = handler$1;
4118
- SCHEMES[handler$2.scheme] = handler$2;
4119
- SCHEMES[handler$3.scheme] = handler$3;
4120
- SCHEMES[handler$4.scheme] = handler$4;
4121
- SCHEMES[handler$5.scheme] = handler$5;
4122
- SCHEMES[handler$6.scheme] = handler$6;
4123
- exports3.SCHEMES = SCHEMES;
4124
- exports3.pctEncChar = pctEncChar;
4125
- exports3.pctDecChars = pctDecChars;
4126
- exports3.parse = parse2;
4127
- exports3.removeDotSegments = removeDotSegments;
4128
- exports3.serialize = serialize;
4129
- exports3.resolveComponents = resolveComponents;
4130
- exports3.resolve = resolve;
4131
- exports3.normalize = normalize;
4132
- exports3.equal = equal;
4133
- exports3.escapeComponent = escapeComponent;
4134
- exports3.unescapeComponent = unescapeComponent;
4135
- Object.defineProperty(exports3, "__esModule", { value: true });
4136
- });
3749
+ } else {
3750
+ parsed.error = parsed.error || "URI can not be parsed.";
3751
+ }
3752
+ return parsed;
3753
+ }
3754
+ var fastUri = {
3755
+ SCHEMES,
3756
+ normalize,
3757
+ resolve,
3758
+ resolveComponents,
3759
+ equal,
3760
+ serialize,
3761
+ parse: parse2
3762
+ };
3763
+ module2.exports = fastUri;
3764
+ module2.exports.default = fastUri;
3765
+ module2.exports.fastUri = fastUri;
4137
3766
  }
4138
3767
  });
4139
3768
 
4140
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/runtime/uri.js
3769
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js
4141
3770
  var require_uri = __commonJS({
4142
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/runtime/uri.js"(exports2) {
3771
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/uri.js"(exports2) {
4143
3772
  "use strict";
4144
3773
  Object.defineProperty(exports2, "__esModule", { value: true });
4145
- var uri = require_uri_all();
3774
+ var uri = require_fast_uri();
4146
3775
  uri.code = 'require("ajv/dist/runtime/uri").default';
4147
3776
  exports2.default = uri;
4148
3777
  }
4149
3778
  });
4150
3779
 
4151
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/core.js
3780
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js
4152
3781
  var require_core = __commonJS({
4153
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/core.js"(exports2) {
3782
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js"(exports2) {
4154
3783
  "use strict";
4155
3784
  Object.defineProperty(exports2, "__esModule", { value: true });
4156
3785
  exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
@@ -4626,9 +4255,9 @@ var require_core = __commonJS({
4626
4255
  }
4627
4256
  }
4628
4257
  };
4629
- exports2.default = Ajv2;
4630
4258
  Ajv2.ValidationError = validation_error_1.default;
4631
4259
  Ajv2.MissingRefError = ref_error_1.default;
4260
+ exports2.default = Ajv2;
4632
4261
  function checkOptions(checkOpts, options, msg, log = "error") {
4633
4262
  for (const key in checkOpts) {
4634
4263
  const opt = key;
@@ -4759,9 +4388,9 @@ var require_core = __commonJS({
4759
4388
  }
4760
4389
  });
4761
4390
 
4762
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/core/id.js
4391
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js
4763
4392
  var require_id = __commonJS({
4764
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports2) {
4393
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/id.js"(exports2) {
4765
4394
  "use strict";
4766
4395
  Object.defineProperty(exports2, "__esModule", { value: true });
4767
4396
  var def = {
@@ -4774,9 +4403,9 @@ var require_id = __commonJS({
4774
4403
  }
4775
4404
  });
4776
4405
 
4777
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/core/ref.js
4406
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js
4778
4407
  var require_ref = __commonJS({
4779
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
4408
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/ref.js"(exports2) {
4780
4409
  "use strict";
4781
4410
  Object.defineProperty(exports2, "__esModule", { value: true });
4782
4411
  exports2.callRef = exports2.getValidate = void 0;
@@ -4896,9 +4525,9 @@ var require_ref = __commonJS({
4896
4525
  }
4897
4526
  });
4898
4527
 
4899
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/core/index.js
4528
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js
4900
4529
  var require_core2 = __commonJS({
4901
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
4530
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
4902
4531
  "use strict";
4903
4532
  Object.defineProperty(exports2, "__esModule", { value: true });
4904
4533
  var id_1 = require_id();
@@ -4917,9 +4546,9 @@ var require_core2 = __commonJS({
4917
4546
  }
4918
4547
  });
4919
4548
 
4920
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4549
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4921
4550
  var require_limitNumber = __commonJS({
4922
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports2) {
4551
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports2) {
4923
4552
  "use strict";
4924
4553
  Object.defineProperty(exports2, "__esModule", { value: true });
4925
4554
  var codegen_1 = require_codegen();
@@ -4949,9 +4578,9 @@ var require_limitNumber = __commonJS({
4949
4578
  }
4950
4579
  });
4951
4580
 
4952
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4581
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4953
4582
  var require_multipleOf = __commonJS({
4954
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports2) {
4583
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports2) {
4955
4584
  "use strict";
4956
4585
  Object.defineProperty(exports2, "__esModule", { value: true });
4957
4586
  var codegen_1 = require_codegen();
@@ -4977,9 +4606,9 @@ var require_multipleOf = __commonJS({
4977
4606
  }
4978
4607
  });
4979
4608
 
4980
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/runtime/ucs2length.js
4609
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js
4981
4610
  var require_ucs2length = __commonJS({
4982
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports2) {
4611
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/ucs2length.js"(exports2) {
4983
4612
  "use strict";
4984
4613
  Object.defineProperty(exports2, "__esModule", { value: true });
4985
4614
  function ucs2length(str) {
@@ -5003,9 +4632,9 @@ var require_ucs2length = __commonJS({
5003
4632
  }
5004
4633
  });
5005
4634
 
5006
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
4635
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js
5007
4636
  var require_limitLength = __commonJS({
5008
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports2) {
4637
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports2) {
5009
4638
  "use strict";
5010
4639
  Object.defineProperty(exports2, "__esModule", { value: true });
5011
4640
  var codegen_1 = require_codegen();
@@ -5035,9 +4664,9 @@ var require_limitLength = __commonJS({
5035
4664
  }
5036
4665
  });
5037
4666
 
5038
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
4667
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js
5039
4668
  var require_pattern = __commonJS({
5040
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports2) {
4669
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports2) {
5041
4670
  "use strict";
5042
4671
  Object.defineProperty(exports2, "__esModule", { value: true });
5043
4672
  var code_1 = require_code2();
@@ -5063,9 +4692,9 @@ var require_pattern = __commonJS({
5063
4692
  }
5064
4693
  });
5065
4694
 
5066
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4695
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
5067
4696
  var require_limitProperties = __commonJS({
5068
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports2) {
4697
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports2) {
5069
4698
  "use strict";
5070
4699
  Object.defineProperty(exports2, "__esModule", { value: true });
5071
4700
  var codegen_1 = require_codegen();
@@ -5092,9 +4721,9 @@ var require_limitProperties = __commonJS({
5092
4721
  }
5093
4722
  });
5094
4723
 
5095
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/required.js
4724
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js
5096
4725
  var require_required = __commonJS({
5097
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports2) {
4726
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/required.js"(exports2) {
5098
4727
  "use strict";
5099
4728
  Object.defineProperty(exports2, "__esModule", { value: true });
5100
4729
  var code_1 = require_code2();
@@ -5174,9 +4803,9 @@ var require_required = __commonJS({
5174
4803
  }
5175
4804
  });
5176
4805
 
5177
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
4806
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js
5178
4807
  var require_limitItems = __commonJS({
5179
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports2) {
4808
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports2) {
5180
4809
  "use strict";
5181
4810
  Object.defineProperty(exports2, "__esModule", { value: true });
5182
4811
  var codegen_1 = require_codegen();
@@ -5203,9 +4832,9 @@ var require_limitItems = __commonJS({
5203
4832
  }
5204
4833
  });
5205
4834
 
5206
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/runtime/equal.js
4835
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js
5207
4836
  var require_equal = __commonJS({
5208
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/runtime/equal.js"(exports2) {
4837
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/runtime/equal.js"(exports2) {
5209
4838
  "use strict";
5210
4839
  Object.defineProperty(exports2, "__esModule", { value: true });
5211
4840
  var equal = require_fast_deep_equal();
@@ -5214,9 +4843,9 @@ var require_equal = __commonJS({
5214
4843
  }
5215
4844
  });
5216
4845
 
5217
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4846
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
5218
4847
  var require_uniqueItems = __commonJS({
5219
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports2) {
4848
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports2) {
5220
4849
  "use strict";
5221
4850
  Object.defineProperty(exports2, "__esModule", { value: true });
5222
4851
  var dataType_1 = require_dataType();
@@ -5281,9 +4910,9 @@ var require_uniqueItems = __commonJS({
5281
4910
  }
5282
4911
  });
5283
4912
 
5284
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/const.js
4913
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js
5285
4914
  var require_const = __commonJS({
5286
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports2) {
4915
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/const.js"(exports2) {
5287
4916
  "use strict";
5288
4917
  Object.defineProperty(exports2, "__esModule", { value: true });
5289
4918
  var codegen_1 = require_codegen();
@@ -5310,9 +4939,9 @@ var require_const = __commonJS({
5310
4939
  }
5311
4940
  });
5312
4941
 
5313
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/enum.js
4942
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js
5314
4943
  var require_enum = __commonJS({
5315
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports2) {
4944
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports2) {
5316
4945
  "use strict";
5317
4946
  Object.defineProperty(exports2, "__esModule", { value: true });
5318
4947
  var codegen_1 = require_codegen();
@@ -5359,9 +4988,9 @@ var require_enum = __commonJS({
5359
4988
  }
5360
4989
  });
5361
4990
 
5362
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/index.js
4991
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js
5363
4992
  var require_validation = __commonJS({
5364
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports2) {
4993
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/validation/index.js"(exports2) {
5365
4994
  "use strict";
5366
4995
  Object.defineProperty(exports2, "__esModule", { value: true });
5367
4996
  var limitNumber_1 = require_limitNumber();
@@ -5397,9 +5026,9 @@ var require_validation = __commonJS({
5397
5026
  }
5398
5027
  });
5399
5028
 
5400
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5029
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5401
5030
  var require_additionalItems = __commonJS({
5402
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports2) {
5031
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports2) {
5403
5032
  "use strict";
5404
5033
  Object.defineProperty(exports2, "__esModule", { value: true });
5405
5034
  exports2.validateAdditionalItems = void 0;
@@ -5450,9 +5079,9 @@ var require_additionalItems = __commonJS({
5450
5079
  }
5451
5080
  });
5452
5081
 
5453
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/items.js
5082
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js
5454
5083
  var require_items = __commonJS({
5455
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports2) {
5084
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports2) {
5456
5085
  "use strict";
5457
5086
  Object.defineProperty(exports2, "__esModule", { value: true });
5458
5087
  exports2.validateTuple = void 0;
@@ -5507,9 +5136,9 @@ var require_items = __commonJS({
5507
5136
  }
5508
5137
  });
5509
5138
 
5510
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5139
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5511
5140
  var require_prefixItems = __commonJS({
5512
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports2) {
5141
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports2) {
5513
5142
  "use strict";
5514
5143
  Object.defineProperty(exports2, "__esModule", { value: true });
5515
5144
  var items_1 = require_items();
@@ -5524,9 +5153,9 @@ var require_prefixItems = __commonJS({
5524
5153
  }
5525
5154
  });
5526
5155
 
5527
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
5156
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js
5528
5157
  var require_items2020 = __commonJS({
5529
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports2) {
5158
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports2) {
5530
5159
  "use strict";
5531
5160
  Object.defineProperty(exports2, "__esModule", { value: true });
5532
5161
  var codegen_1 = require_codegen();
@@ -5559,9 +5188,9 @@ var require_items2020 = __commonJS({
5559
5188
  }
5560
5189
  });
5561
5190
 
5562
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
5191
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js
5563
5192
  var require_contains = __commonJS({
5564
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports2) {
5193
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports2) {
5565
5194
  "use strict";
5566
5195
  Object.defineProperty(exports2, "__esModule", { value: true });
5567
5196
  var codegen_1 = require_codegen();
@@ -5653,9 +5282,9 @@ var require_contains = __commonJS({
5653
5282
  }
5654
5283
  });
5655
5284
 
5656
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5285
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5657
5286
  var require_dependencies = __commonJS({
5658
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports2) {
5287
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports2) {
5659
5288
  "use strict";
5660
5289
  Object.defineProperty(exports2, "__esModule", { value: true });
5661
5290
  exports2.validateSchemaDeps = exports2.validatePropertyDeps = exports2.error = void 0;
@@ -5747,9 +5376,9 @@ var require_dependencies = __commonJS({
5747
5376
  }
5748
5377
  });
5749
5378
 
5750
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5379
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5751
5380
  var require_propertyNames = __commonJS({
5752
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports2) {
5381
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports2) {
5753
5382
  "use strict";
5754
5383
  Object.defineProperty(exports2, "__esModule", { value: true });
5755
5384
  var codegen_1 = require_codegen();
@@ -5790,9 +5419,9 @@ var require_propertyNames = __commonJS({
5790
5419
  }
5791
5420
  });
5792
5421
 
5793
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5422
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5794
5423
  var require_additionalProperties = __commonJS({
5795
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports2) {
5424
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports2) {
5796
5425
  "use strict";
5797
5426
  Object.defineProperty(exports2, "__esModule", { value: true });
5798
5427
  var code_1 = require_code2();
@@ -5896,9 +5525,9 @@ var require_additionalProperties = __commonJS({
5896
5525
  }
5897
5526
  });
5898
5527
 
5899
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
5528
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js
5900
5529
  var require_properties = __commonJS({
5901
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports2) {
5530
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports2) {
5902
5531
  "use strict";
5903
5532
  Object.defineProperty(exports2, "__esModule", { value: true });
5904
5533
  var validate_1 = require_validate();
@@ -5954,9 +5583,9 @@ var require_properties = __commonJS({
5954
5583
  }
5955
5584
  });
5956
5585
 
5957
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5586
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5958
5587
  var require_patternProperties = __commonJS({
5959
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports2) {
5588
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports2) {
5960
5589
  "use strict";
5961
5590
  Object.defineProperty(exports2, "__esModule", { value: true });
5962
5591
  var code_1 = require_code2();
@@ -6028,9 +5657,9 @@ var require_patternProperties = __commonJS({
6028
5657
  }
6029
5658
  });
6030
5659
 
6031
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/not.js
5660
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js
6032
5661
  var require_not = __commonJS({
6033
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports2) {
5662
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports2) {
6034
5663
  "use strict";
6035
5664
  Object.defineProperty(exports2, "__esModule", { value: true });
6036
5665
  var util_1 = require_util();
@@ -6059,9 +5688,9 @@ var require_not = __commonJS({
6059
5688
  }
6060
5689
  });
6061
5690
 
6062
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5691
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
6063
5692
  var require_anyOf = __commonJS({
6064
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports2) {
5693
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports2) {
6065
5694
  "use strict";
6066
5695
  Object.defineProperty(exports2, "__esModule", { value: true });
6067
5696
  var code_1 = require_code2();
@@ -6076,9 +5705,9 @@ var require_anyOf = __commonJS({
6076
5705
  }
6077
5706
  });
6078
5707
 
6079
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5708
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
6080
5709
  var require_oneOf = __commonJS({
6081
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports2) {
5710
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports2) {
6082
5711
  "use strict";
6083
5712
  Object.defineProperty(exports2, "__esModule", { value: true });
6084
5713
  var codegen_1 = require_codegen();
@@ -6134,9 +5763,9 @@ var require_oneOf = __commonJS({
6134
5763
  }
6135
5764
  });
6136
5765
 
6137
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
5766
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js
6138
5767
  var require_allOf = __commonJS({
6139
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports2) {
5768
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports2) {
6140
5769
  "use strict";
6141
5770
  Object.defineProperty(exports2, "__esModule", { value: true });
6142
5771
  var util_1 = require_util();
@@ -6161,9 +5790,9 @@ var require_allOf = __commonJS({
6161
5790
  }
6162
5791
  });
6163
5792
 
6164
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/if.js
5793
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js
6165
5794
  var require_if = __commonJS({
6166
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports2) {
5795
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports2) {
6167
5796
  "use strict";
6168
5797
  Object.defineProperty(exports2, "__esModule", { value: true });
6169
5798
  var codegen_1 = require_codegen();
@@ -6230,9 +5859,9 @@ var require_if = __commonJS({
6230
5859
  }
6231
5860
  });
6232
5861
 
6233
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5862
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
6234
5863
  var require_thenElse = __commonJS({
6235
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports2) {
5864
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports2) {
6236
5865
  "use strict";
6237
5866
  Object.defineProperty(exports2, "__esModule", { value: true });
6238
5867
  var util_1 = require_util();
@@ -6248,9 +5877,9 @@ var require_thenElse = __commonJS({
6248
5877
  }
6249
5878
  });
6250
5879
 
6251
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/index.js
5880
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js
6252
5881
  var require_applicator = __commonJS({
6253
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports2) {
5882
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports2) {
6254
5883
  "use strict";
6255
5884
  Object.defineProperty(exports2, "__esModule", { value: true });
6256
5885
  var additionalItems_1 = require_additionalItems();
@@ -6296,9 +5925,9 @@ var require_applicator = __commonJS({
6296
5925
  }
6297
5926
  });
6298
5927
 
6299
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/format/format.js
5928
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js
6300
5929
  var require_format = __commonJS({
6301
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports2) {
5930
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/format.js"(exports2) {
6302
5931
  "use strict";
6303
5932
  Object.defineProperty(exports2, "__esModule", { value: true });
6304
5933
  var codegen_1 = require_codegen();
@@ -6386,9 +6015,9 @@ var require_format = __commonJS({
6386
6015
  }
6387
6016
  });
6388
6017
 
6389
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/format/index.js
6018
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js
6390
6019
  var require_format2 = __commonJS({
6391
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports2) {
6020
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/format/index.js"(exports2) {
6392
6021
  "use strict";
6393
6022
  Object.defineProperty(exports2, "__esModule", { value: true });
6394
6023
  var format_1 = require_format();
@@ -6397,9 +6026,9 @@ var require_format2 = __commonJS({
6397
6026
  }
6398
6027
  });
6399
6028
 
6400
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/metadata.js
6029
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js
6401
6030
  var require_metadata = __commonJS({
6402
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports2) {
6031
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/metadata.js"(exports2) {
6403
6032
  "use strict";
6404
6033
  Object.defineProperty(exports2, "__esModule", { value: true });
6405
6034
  exports2.contentVocabulary = exports2.metadataVocabulary = void 0;
@@ -6420,9 +6049,9 @@ var require_metadata = __commonJS({
6420
6049
  }
6421
6050
  });
6422
6051
 
6423
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/draft7.js
6052
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js
6424
6053
  var require_draft7 = __commonJS({
6425
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports2) {
6054
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js"(exports2) {
6426
6055
  "use strict";
6427
6056
  Object.defineProperty(exports2, "__esModule", { value: true });
6428
6057
  var core_1 = require_core2();
@@ -6442,9 +6071,9 @@ var require_draft7 = __commonJS({
6442
6071
  }
6443
6072
  });
6444
6073
 
6445
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
6074
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js
6446
6075
  var require_types = __commonJS({
6447
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports2) {
6076
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports2) {
6448
6077
  "use strict";
6449
6078
  Object.defineProperty(exports2, "__esModule", { value: true });
6450
6079
  exports2.DiscrError = void 0;
@@ -6452,18 +6081,19 @@ var require_types = __commonJS({
6452
6081
  (function(DiscrError2) {
6453
6082
  DiscrError2["Tag"] = "tag";
6454
6083
  DiscrError2["Mapping"] = "mapping";
6455
- })(DiscrError = exports2.DiscrError || (exports2.DiscrError = {}));
6084
+ })(DiscrError || (exports2.DiscrError = DiscrError = {}));
6456
6085
  }
6457
6086
  });
6458
6087
 
6459
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
6088
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js
6460
6089
  var require_discriminator = __commonJS({
6461
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports2) {
6090
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports2) {
6462
6091
  "use strict";
6463
6092
  Object.defineProperty(exports2, "__esModule", { value: true });
6464
6093
  var codegen_1 = require_codegen();
6465
6094
  var types_1 = require_types();
6466
6095
  var compile_1 = require_compile();
6096
+ var ref_error_1 = require_ref_error();
6467
6097
  var util_1 = require_util();
6468
6098
  var error = {
6469
6099
  message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag ? `tag "${tagName}" must be string` : `value of tag "${tagName}" must be in oneOf`,
@@ -6516,9 +6146,12 @@ var require_discriminator = __commonJS({
6516
6146
  for (let i = 0; i < oneOf2.length; i++) {
6517
6147
  let sch = oneOf2[i];
6518
6148
  if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
6519
- sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, sch === null || sch === void 0 ? void 0 : sch.$ref);
6149
+ const ref = sch.$ref;
6150
+ sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
6520
6151
  if (sch instanceof compile_1.SchemaEnv)
6521
6152
  sch = sch.schema;
6153
+ if (sch === void 0)
6154
+ throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
6522
6155
  }
6523
6156
  const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
6524
6157
  if (typeof propSch != "object") {
@@ -6557,9 +6190,9 @@ var require_discriminator = __commonJS({
6557
6190
  }
6558
6191
  });
6559
6192
 
6560
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
6193
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/json-schema-draft-07.json
6561
6194
  var require_json_schema_draft_07 = __commonJS({
6562
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports2, module2) {
6195
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports2, module2) {
6563
6196
  module2.exports = {
6564
6197
  $schema: "http://json-schema.org/draft-07/schema#",
6565
6198
  $id: "http://json-schema.org/draft-07/schema#",
@@ -6714,12 +6347,12 @@ var require_json_schema_draft_07 = __commonJS({
6714
6347
  }
6715
6348
  });
6716
6349
 
6717
- // node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/ajv.js
6350
+ // node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js
6718
6351
  var require_ajv = __commonJS({
6719
- "node_modules/.pnpm/ajv@8.12.0/node_modules/ajv/dist/ajv.js"(exports2, module2) {
6352
+ "node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/ajv.js"(exports2, module2) {
6720
6353
  "use strict";
6721
6354
  Object.defineProperty(exports2, "__esModule", { value: true });
6722
- exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = void 0;
6355
+ exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = exports2.Ajv = void 0;
6723
6356
  var core_1 = require_core();
6724
6357
  var draft7_1 = require_draft7();
6725
6358
  var discriminator_1 = require_discriminator();
@@ -6745,7 +6378,9 @@ var require_ajv = __commonJS({
6745
6378
  return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
6746
6379
  }
6747
6380
  };
6381
+ exports2.Ajv = Ajv2;
6748
6382
  module2.exports = exports2 = Ajv2;
6383
+ module2.exports.Ajv = Ajv2;
6749
6384
  Object.defineProperty(exports2, "__esModule", { value: true });
6750
6385
  exports2.default = Ajv2;
6751
6386
  var validate_1 = require_validate();
@@ -7650,9 +7285,4 @@ function extract(backend, $, config, url) {
7650
7285
  cheerio,
7651
7286
  extract
7652
7287
  });
7653
- /*! Bundled license information:
7654
-
7655
- uri-js/dist/es5/uri.all.js:
7656
- (** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js *)
7657
- */
7658
7288
  //# sourceMappingURL=index.js.map