@sap/ux-ui5-tooling 1.7.0 → 1.7.1

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.
@@ -4556,7 +4556,7 @@ var require_yaml = __commonJS({
4556
4556
  }
4557
4557
  var directiveHandlers = {
4558
4558
  YAML: function handleYamlDirective(state, name2, args) {
4559
- var match, major, minor;
4559
+ var match, major2, minor2;
4560
4560
  if (state.version !== null) {
4561
4561
  throwError(state, "duplication of %YAML directive");
4562
4562
  }
@@ -4567,14 +4567,14 @@ var require_yaml = __commonJS({
4567
4567
  if (match === null) {
4568
4568
  throwError(state, "ill-formed argument of the YAML directive");
4569
4569
  }
4570
- major = parseInt(match[1], 10);
4571
- minor = parseInt(match[2], 10);
4572
- if (major !== 1) {
4570
+ major2 = parseInt(match[1], 10);
4571
+ minor2 = parseInt(match[2], 10);
4572
+ if (major2 !== 1) {
4573
4573
  throwError(state, "unacceptable YAML version of the document");
4574
4574
  }
4575
4575
  state.version = args[0];
4576
- state.checkLineBreaks = minor < 2;
4577
- if (minor !== 1 && minor !== 2) {
4576
+ state.checkLineBreaks = minor2 < 2;
4577
+ if (minor2 !== 1 && minor2 !== 2) {
4578
4578
  throwWarning(state, "unsupported YAML version of the document");
4579
4579
  }
4580
4580
  },
@@ -12479,19 +12479,19 @@ var require_axios = __commonJS({
12479
12479
  };
12480
12480
  return instance;
12481
12481
  }
12482
- var axios = createInstance(defaults);
12483
- axios.Axios = Axios;
12484
- axios.Cancel = require_Cancel();
12485
- axios.CancelToken = require_CancelToken();
12486
- axios.isCancel = require_isCancel();
12487
- axios.VERSION = require_data().version;
12488
- axios.all = function all(promises3) {
12482
+ var axios2 = createInstance(defaults);
12483
+ axios2.Axios = Axios;
12484
+ axios2.Cancel = require_Cancel();
12485
+ axios2.CancelToken = require_CancelToken();
12486
+ axios2.isCancel = require_isCancel();
12487
+ axios2.VERSION = require_data().version;
12488
+ axios2.all = function all(promises3) {
12489
12489
  return Promise.all(promises3);
12490
12490
  };
12491
- axios.spread = require_spread();
12492
- axios.isAxiosError = require_isAxiosError();
12493
- module2.exports = axios;
12494
- module2.exports.default = axios;
12491
+ axios2.spread = require_spread();
12492
+ axios2.isAxiosError = require_isAxiosError();
12493
+ module2.exports = axios2;
12494
+ module2.exports.default = axios2;
12495
12495
  }
12496
12496
  });
12497
12497
 
@@ -25919,7 +25919,7 @@ var require_lodash = __commonJS({
25919
25919
  function eq(value, other) {
25920
25920
  return value === other || value !== value && other !== other;
25921
25921
  }
25922
- var gt = createRelationalOperation(baseGt);
25922
+ var gt2 = createRelationalOperation(baseGt);
25923
25923
  var gte = createRelationalOperation(function(value, other) {
25924
25924
  return value >= other;
25925
25925
  });
@@ -27055,7 +27055,7 @@ var require_lodash = __commonJS({
27055
27055
  lodash.forOwn = forOwn;
27056
27056
  lodash.forOwnRight = forOwnRight;
27057
27057
  lodash.get = get5;
27058
- lodash.gt = gt;
27058
+ lodash.gt = gt2;
27059
27059
  lodash.gte = gte;
27060
27060
  lodash.has = has;
27061
27061
  lodash.hasIn = hasIn;
@@ -31262,27 +31262,27 @@ var require_utils7 = __commonJS({
31262
31262
  return isValid;
31263
31263
  }
31264
31264
  exports2.isSystemNameValid = isSystemNameValid;
31265
- async function isSapSystemConnected(sapSystem) {
31265
+ async function hasServices(sapSystem) {
31266
31266
  const versions = [__1.ODataVersion.v2, __1.ODataVersion.v4];
31267
31267
  const result2 = {};
31268
31268
  let error5;
31269
31269
  for (const version of versions) {
31270
31270
  try {
31271
31271
  const catalog = await sapSystem.getCatalog(version);
31272
- const services = await catalog.listServices(true);
31273
- result2[version] = services.length !== 0;
31272
+ const services = await catalog.listServices();
31273
+ result2[version] = services.length;
31274
31274
  } catch (e) {
31275
- result2[version] = false;
31275
+ result2[version] = 0;
31276
31276
  error5 = e.message;
31277
31277
  }
31278
31278
  }
31279
31279
  return {
31280
- v2: result2[__1.ODataVersion.v2],
31281
- v4: result2[__1.ODataVersion.v4],
31280
+ v2Count: result2[__1.ODataVersion.v2],
31281
+ v4Count: result2[__1.ODataVersion.v4],
31282
31282
  error: error5
31283
31283
  };
31284
31284
  }
31285
- exports2.isSapSystemConnected = isSapSystemConnected;
31285
+ exports2.hasServices = hasServices;
31286
31286
  }
31287
31287
  });
31288
31288
 
@@ -39868,12 +39868,12 @@ var require_semver = __commonJS({
39868
39868
  function rcompareIdentifiers(a, b) {
39869
39869
  return compareIdentifiers(b, a);
39870
39870
  }
39871
- exports2.major = major;
39872
- function major(a, loose) {
39871
+ exports2.major = major2;
39872
+ function major2(a, loose) {
39873
39873
  return new SemVer(a, loose).major;
39874
39874
  }
39875
- exports2.minor = minor;
39876
- function minor(a, loose) {
39875
+ exports2.minor = minor2;
39876
+ function minor2(a, loose) {
39877
39877
  return new SemVer(a, loose).minor;
39878
39878
  }
39879
39879
  exports2.patch = patch;
@@ -39904,8 +39904,8 @@ var require_semver = __commonJS({
39904
39904
  return exports2.rcompare(a, b, loose);
39905
39905
  });
39906
39906
  }
39907
- exports2.gt = gt;
39908
- function gt(a, b, loose) {
39907
+ exports2.gt = gt2;
39908
+ function gt2(a, b, loose) {
39909
39909
  return compare(a, b, loose) > 0;
39910
39910
  }
39911
39911
  exports2.lt = lt;
@@ -39950,7 +39950,7 @@ var require_semver = __commonJS({
39950
39950
  case "!=":
39951
39951
  return neq(a, b, loose);
39952
39952
  case ">":
39953
- return gt(a, b, loose);
39953
+ return gt2(a, b, loose);
39954
39954
  case ">=":
39955
39955
  return gte(a, b, loose);
39956
39956
  case "<":
@@ -40356,8 +40356,8 @@ var require_semver = __commonJS({
40356
40356
  }
40357
40357
  return range.test(version);
40358
40358
  }
40359
- exports2.maxSatisfying = maxSatisfying;
40360
- function maxSatisfying(versions, range, options2) {
40359
+ exports2.maxSatisfying = maxSatisfying2;
40360
+ function maxSatisfying2(versions, range, options2) {
40361
40361
  var max = null;
40362
40362
  var maxSV = null;
40363
40363
  try {
@@ -40420,7 +40420,7 @@ var require_semver = __commonJS({
40420
40420
  compver.raw = compver.format();
40421
40421
  case "":
40422
40422
  case ">=":
40423
- if (!minver || gt(minver, compver)) {
40423
+ if (!minver || gt2(minver, compver)) {
40424
40424
  minver = compver;
40425
40425
  }
40426
40426
  break;
@@ -40460,7 +40460,7 @@ var require_semver = __commonJS({
40460
40460
  var gtfn, ltefn, ltfn, comp, ecomp;
40461
40461
  switch (hilo) {
40462
40462
  case ">":
40463
- gtfn = gt;
40463
+ gtfn = gt2;
40464
40464
  ltefn = lte;
40465
40465
  ltfn = lt;
40466
40466
  comp = ">";
@@ -40469,7 +40469,7 @@ var require_semver = __commonJS({
40469
40469
  case "<":
40470
40470
  gtfn = lt;
40471
40471
  ltefn = gte;
40472
- ltfn = gt;
40472
+ ltfn = gt2;
40473
40473
  comp = "<";
40474
40474
  ecomp = "<=";
40475
40475
  break;
@@ -42182,12 +42182,12 @@ var require_semver2 = __commonJS({
42182
42182
  function rcompareIdentifiers(a, b) {
42183
42183
  return compareIdentifiers(b, a);
42184
42184
  }
42185
- exports2.major = major;
42186
- function major(a, loose) {
42185
+ exports2.major = major2;
42186
+ function major2(a, loose) {
42187
42187
  return new SemVer(a, loose).major;
42188
42188
  }
42189
- exports2.minor = minor;
42190
- function minor(a, loose) {
42189
+ exports2.minor = minor2;
42190
+ function minor2(a, loose) {
42191
42191
  return new SemVer(a, loose).minor;
42192
42192
  }
42193
42193
  exports2.patch = patch;
@@ -42218,8 +42218,8 @@ var require_semver2 = __commonJS({
42218
42218
  return exports2.rcompare(a, b, loose);
42219
42219
  });
42220
42220
  }
42221
- exports2.gt = gt;
42222
- function gt(a, b, loose) {
42221
+ exports2.gt = gt2;
42222
+ function gt2(a, b, loose) {
42223
42223
  return compare(a, b, loose) > 0;
42224
42224
  }
42225
42225
  exports2.lt = lt;
@@ -42264,7 +42264,7 @@ var require_semver2 = __commonJS({
42264
42264
  case "!=":
42265
42265
  return neq(a, b, loose);
42266
42266
  case ">":
42267
- return gt(a, b, loose);
42267
+ return gt2(a, b, loose);
42268
42268
  case ">=":
42269
42269
  return gte(a, b, loose);
42270
42270
  case "<":
@@ -42670,8 +42670,8 @@ var require_semver2 = __commonJS({
42670
42670
  }
42671
42671
  return range.test(version);
42672
42672
  }
42673
- exports2.maxSatisfying = maxSatisfying;
42674
- function maxSatisfying(versions, range, options2) {
42673
+ exports2.maxSatisfying = maxSatisfying2;
42674
+ function maxSatisfying2(versions, range, options2) {
42675
42675
  var max = null;
42676
42676
  var maxSV = null;
42677
42677
  try {
@@ -42734,7 +42734,7 @@ var require_semver2 = __commonJS({
42734
42734
  compver.raw = compver.format();
42735
42735
  case "":
42736
42736
  case ">=":
42737
- if (!minver || gt(minver, compver)) {
42737
+ if (!minver || gt2(minver, compver)) {
42738
42738
  minver = compver;
42739
42739
  }
42740
42740
  break;
@@ -42774,7 +42774,7 @@ var require_semver2 = __commonJS({
42774
42774
  var gtfn, ltefn, ltfn, comp, ecomp;
42775
42775
  switch (hilo) {
42776
42776
  case ">":
42777
- gtfn = gt;
42777
+ gtfn = gt2;
42778
42778
  ltefn = lte;
42779
42779
  ltfn = lt;
42780
42780
  comp = ">";
@@ -42783,7 +42783,7 @@ var require_semver2 = __commonJS({
42783
42783
  case "<":
42784
42784
  gtfn = lt;
42785
42785
  ltefn = gte;
42786
- ltfn = gt;
42786
+ ltfn = gt2;
42787
42787
  comp = "<";
42788
42788
  ecomp = "<=";
42789
42789
  break;
@@ -44709,12 +44709,12 @@ var require_semver3 = __commonJS({
44709
44709
  function rcompareIdentifiers(a, b) {
44710
44710
  return compareIdentifiers(b, a);
44711
44711
  }
44712
- exports2.major = major;
44713
- function major(a, loose) {
44712
+ exports2.major = major2;
44713
+ function major2(a, loose) {
44714
44714
  return new SemVer(a, loose).major;
44715
44715
  }
44716
- exports2.minor = minor;
44717
- function minor(a, loose) {
44716
+ exports2.minor = minor2;
44717
+ function minor2(a, loose) {
44718
44718
  return new SemVer(a, loose).minor;
44719
44719
  }
44720
44720
  exports2.patch = patch;
@@ -44745,8 +44745,8 @@ var require_semver3 = __commonJS({
44745
44745
  return exports2.rcompare(a, b, loose);
44746
44746
  });
44747
44747
  }
44748
- exports2.gt = gt;
44749
- function gt(a, b, loose) {
44748
+ exports2.gt = gt2;
44749
+ function gt2(a, b, loose) {
44750
44750
  return compare(a, b, loose) > 0;
44751
44751
  }
44752
44752
  exports2.lt = lt;
@@ -44791,7 +44791,7 @@ var require_semver3 = __commonJS({
44791
44791
  case "!=":
44792
44792
  return neq(a, b, loose);
44793
44793
  case ">":
44794
- return gt(a, b, loose);
44794
+ return gt2(a, b, loose);
44795
44795
  case ">=":
44796
44796
  return gte(a, b, loose);
44797
44797
  case "<":
@@ -45197,8 +45197,8 @@ var require_semver3 = __commonJS({
45197
45197
  }
45198
45198
  return range.test(version);
45199
45199
  }
45200
- exports2.maxSatisfying = maxSatisfying;
45201
- function maxSatisfying(versions, range, options2) {
45200
+ exports2.maxSatisfying = maxSatisfying2;
45201
+ function maxSatisfying2(versions, range, options2) {
45202
45202
  var max = null;
45203
45203
  var maxSV = null;
45204
45204
  try {
@@ -45261,7 +45261,7 @@ var require_semver3 = __commonJS({
45261
45261
  compver.raw = compver.format();
45262
45262
  case "":
45263
45263
  case ">=":
45264
- if (!minver || gt(minver, compver)) {
45264
+ if (!minver || gt2(minver, compver)) {
45265
45265
  minver = compver;
45266
45266
  }
45267
45267
  break;
@@ -45301,7 +45301,7 @@ var require_semver3 = __commonJS({
45301
45301
  var gtfn, ltefn, ltfn, comp, ecomp;
45302
45302
  switch (hilo) {
45303
45303
  case ">":
45304
- gtfn = gt;
45304
+ gtfn = gt2;
45305
45305
  ltefn = lte;
45306
45306
  ltfn = lt;
45307
45307
  comp = ">";
@@ -45310,7 +45310,7 @@ var require_semver3 = __commonJS({
45310
45310
  case "<":
45311
45311
  gtfn = lt;
45312
45312
  ltefn = gte;
45313
- ltfn = gt;
45313
+ ltfn = gt2;
45314
45314
  comp = "<";
45315
45315
  ecomp = "<=";
45316
45316
  break;
@@ -51097,7 +51097,7 @@ var require_package5 = __commonJS({
51097
51097
  "../lib/telemetry/dist/package.json"(exports2, module2) {
51098
51098
  module2.exports = {
51099
51099
  name: "@sap/ux-telemetry",
51100
- version: "1.7.0",
51100
+ version: "1.7.1",
51101
51101
  description: "SAP Fiori tools telemetry library",
51102
51102
  main: "dist/src/index.js",
51103
51103
  author: "SAP SE",
@@ -51122,10 +51122,10 @@ var require_package5 = __commonJS({
51122
51122
  },
51123
51123
  dependencies: {
51124
51124
  "@sap-ux/store": "0.3.0",
51125
- "@sap/ux-cds": "1.7.0",
51126
- "@sap/ux-common-utils": "1.7.0",
51127
- "@sap/ux-feature-toggle": "1.7.0",
51128
- "@sap/ux-project-access": "1.7.0",
51125
+ "@sap/ux-cds": "1.7.1",
51126
+ "@sap/ux-common-utils": "1.7.1",
51127
+ "@sap/ux-feature-toggle": "1.7.1",
51128
+ "@sap/ux-project-access": "1.7.1",
51129
51129
  applicationinsights: "1.4.1",
51130
51130
  "performance-now": "2.1.0",
51131
51131
  yaml: "2.0.0-10"
@@ -55129,8 +55129,8 @@ var require_diff = __commonJS({
55129
55129
  var require_major = __commonJS({
55130
55130
  "../lib/ui5-info/core/node_modules/semver/functions/major.js"(exports2, module2) {
55131
55131
  var SemVer = require_semver4();
55132
- var major = (a, loose) => new SemVer(a, loose).major;
55133
- module2.exports = major;
55132
+ var major2 = (a, loose) => new SemVer(a, loose).major;
55133
+ module2.exports = major2;
55134
55134
  }
55135
55135
  });
55136
55136
 
@@ -55138,8 +55138,8 @@ var require_major = __commonJS({
55138
55138
  var require_minor = __commonJS({
55139
55139
  "../lib/ui5-info/core/node_modules/semver/functions/minor.js"(exports2, module2) {
55140
55140
  var SemVer = require_semver4();
55141
- var minor = (a, loose) => new SemVer(a, loose).minor;
55142
- module2.exports = minor;
55141
+ var minor2 = (a, loose) => new SemVer(a, loose).minor;
55142
+ module2.exports = minor2;
55143
55143
  }
55144
55144
  });
55145
55145
 
@@ -55217,8 +55217,8 @@ var require_rsort = __commonJS({
55217
55217
  var require_gt = __commonJS({
55218
55218
  "../lib/ui5-info/core/node_modules/semver/functions/gt.js"(exports2, module2) {
55219
55219
  var compare = require_compare();
55220
- var gt = (a, b, loose) => compare(a, b, loose) > 0;
55221
- module2.exports = gt;
55220
+ var gt2 = (a, b, loose) => compare(a, b, loose) > 0;
55221
+ module2.exports = gt2;
55222
55222
  }
55223
55223
  });
55224
55224
 
@@ -55263,7 +55263,7 @@ var require_cmp = __commonJS({
55263
55263
  "../lib/ui5-info/core/node_modules/semver/functions/cmp.js"(exports2, module2) {
55264
55264
  var eq = require_eq();
55265
55265
  var neq = require_neq();
55266
- var gt = require_gt();
55266
+ var gt2 = require_gt();
55267
55267
  var gte = require_gte();
55268
55268
  var lt = require_lt();
55269
55269
  var lte = require_lte();
@@ -55288,7 +55288,7 @@ var require_cmp = __commonJS({
55288
55288
  case "!=":
55289
55289
  return neq(a, b, loose);
55290
55290
  case ">":
55291
- return gt(a, b, loose);
55291
+ return gt2(a, b, loose);
55292
55292
  case ">=":
55293
55293
  return gte(a, b, loose);
55294
55294
  case "<":
@@ -56472,7 +56472,7 @@ var require_max_satisfying = __commonJS({
56472
56472
  "../lib/ui5-info/core/node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
56473
56473
  var SemVer = require_semver4();
56474
56474
  var Range = require_range();
56475
- var maxSatisfying = (versions, range, options2) => {
56475
+ var maxSatisfying2 = (versions, range, options2) => {
56476
56476
  let max = null;
56477
56477
  let maxSV = null;
56478
56478
  let rangeObj = null;
@@ -56491,7 +56491,7 @@ var require_max_satisfying = __commonJS({
56491
56491
  });
56492
56492
  return max;
56493
56493
  };
56494
- module2.exports = maxSatisfying;
56494
+ module2.exports = maxSatisfying2;
56495
56495
  }
56496
56496
  });
56497
56497
 
@@ -56528,7 +56528,7 @@ var require_min_version = __commonJS({
56528
56528
  "../lib/ui5-info/core/node_modules/semver/ranges/min-version.js"(exports2, module2) {
56529
56529
  var SemVer = require_semver4();
56530
56530
  var Range = require_range();
56531
- var gt = require_gt();
56531
+ var gt2 = require_gt();
56532
56532
  var minVersion = (range, loose) => {
56533
56533
  range = new Range(range, loose);
56534
56534
  let minver = new SemVer("0.0.0");
@@ -56555,7 +56555,7 @@ var require_min_version = __commonJS({
56555
56555
  compver.raw = compver.format();
56556
56556
  case "":
56557
56557
  case ">=":
56558
- if (!setMin || gt(compver, setMin)) {
56558
+ if (!setMin || gt2(compver, setMin)) {
56559
56559
  setMin = compver;
56560
56560
  }
56561
56561
  break;
@@ -56566,7 +56566,7 @@ var require_min_version = __commonJS({
56566
56566
  throw new Error(`Unexpected operation: ${comparator.operator}`);
56567
56567
  }
56568
56568
  });
56569
- if (setMin && (!minver || gt(minver, setMin)))
56569
+ if (setMin && (!minver || gt2(minver, setMin)))
56570
56570
  minver = setMin;
56571
56571
  }
56572
56572
  if (minver && range.test(minver)) {
@@ -56601,7 +56601,7 @@ var require_outside = __commonJS({
56601
56601
  var { ANY } = Comparator;
56602
56602
  var Range = require_range();
56603
56603
  var satisfies = require_satisfies();
56604
- var gt = require_gt();
56604
+ var gt2 = require_gt();
56605
56605
  var lt = require_lt();
56606
56606
  var lte = require_lte();
56607
56607
  var gte = require_gte();
@@ -56611,7 +56611,7 @@ var require_outside = __commonJS({
56611
56611
  let gtfn, ltefn, ltfn, comp, ecomp;
56612
56612
  switch (hilo) {
56613
56613
  case ">":
56614
- gtfn = gt;
56614
+ gtfn = gt2;
56615
56615
  ltefn = lte;
56616
56616
  ltfn = lt;
56617
56617
  comp = ">";
@@ -56620,7 +56620,7 @@ var require_outside = __commonJS({
56620
56620
  case "<":
56621
56621
  gtfn = lt;
56622
56622
  ltefn = gte;
56623
- ltfn = gt;
56623
+ ltfn = gt2;
56624
56624
  comp = "<";
56625
56625
  ecomp = "<=";
56626
56626
  break;
@@ -56783,10 +56783,10 @@ var require_subset = __commonJS({
56783
56783
  dom = [new Comparator(">=0.0.0")];
56784
56784
  }
56785
56785
  const eqSet = /* @__PURE__ */ new Set();
56786
- let gt, lt;
56786
+ let gt2, lt;
56787
56787
  for (const c of sub) {
56788
56788
  if (c.operator === ">" || c.operator === ">=")
56789
- gt = higherGT(gt, c, options2);
56789
+ gt2 = higherGT(gt2, c, options2);
56790
56790
  else if (c.operator === "<" || c.operator === "<=")
56791
56791
  lt = lowerLT(lt, c, options2);
56792
56792
  else
@@ -56795,15 +56795,15 @@ var require_subset = __commonJS({
56795
56795
  if (eqSet.size > 1)
56796
56796
  return null;
56797
56797
  let gtltComp;
56798
- if (gt && lt) {
56799
- gtltComp = compare(gt.semver, lt.semver, options2);
56798
+ if (gt2 && lt) {
56799
+ gtltComp = compare(gt2.semver, lt.semver, options2);
56800
56800
  if (gtltComp > 0)
56801
56801
  return null;
56802
- else if (gtltComp === 0 && (gt.operator !== ">=" || lt.operator !== "<="))
56802
+ else if (gtltComp === 0 && (gt2.operator !== ">=" || lt.operator !== "<="))
56803
56803
  return null;
56804
56804
  }
56805
56805
  for (const eq of eqSet) {
56806
- if (gt && !satisfies(eq, String(gt), options2))
56806
+ if (gt2 && !satisfies(eq, String(gt2), options2))
56807
56807
  return null;
56808
56808
  if (lt && !satisfies(eq, String(lt), options2))
56809
56809
  return null;
@@ -56816,24 +56816,24 @@ var require_subset = __commonJS({
56816
56816
  let higher, lower;
56817
56817
  let hasDomLT, hasDomGT;
56818
56818
  let needDomLTPre = lt && !options2.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
56819
- let needDomGTPre = gt && !options2.includePrerelease && gt.semver.prerelease.length ? gt.semver : false;
56819
+ let needDomGTPre = gt2 && !options2.includePrerelease && gt2.semver.prerelease.length ? gt2.semver : false;
56820
56820
  if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
56821
56821
  needDomLTPre = false;
56822
56822
  }
56823
56823
  for (const c of dom) {
56824
56824
  hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
56825
56825
  hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
56826
- if (gt) {
56826
+ if (gt2) {
56827
56827
  if (needDomGTPre) {
56828
56828
  if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
56829
56829
  needDomGTPre = false;
56830
56830
  }
56831
56831
  }
56832
56832
  if (c.operator === ">" || c.operator === ">=") {
56833
- higher = higherGT(gt, c, options2);
56834
- if (higher === c && higher !== gt)
56833
+ higher = higherGT(gt2, c, options2);
56834
+ if (higher === c && higher !== gt2)
56835
56835
  return false;
56836
- } else if (gt.operator === ">=" && !satisfies(gt.semver, String(c), options2))
56836
+ } else if (gt2.operator === ">=" && !satisfies(gt2.semver, String(c), options2))
56837
56837
  return false;
56838
56838
  }
56839
56839
  if (lt) {
@@ -56849,12 +56849,12 @@ var require_subset = __commonJS({
56849
56849
  } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options2))
56850
56850
  return false;
56851
56851
  }
56852
- if (!c.operator && (lt || gt) && gtltComp !== 0)
56852
+ if (!c.operator && (lt || gt2) && gtltComp !== 0)
56853
56853
  return false;
56854
56854
  }
56855
- if (gt && hasDomLT && !lt && gtltComp !== 0)
56855
+ if (gt2 && hasDomLT && !lt && gtltComp !== 0)
56856
56856
  return false;
56857
- if (lt && hasDomGT && !gt && gtltComp !== 0)
56857
+ if (lt && hasDomGT && !gt2 && gtltComp !== 0)
56858
56858
  return false;
56859
56859
  if (needDomGTPre || needDomLTPre)
56860
56860
  return false;
@@ -56934,17 +56934,16 @@ var require_types3 = __commonJS({
56934
56934
  "../lib/ui5-info/core/dist/types.js"(exports2) {
56935
56935
  "use strict";
56936
56936
  Object.defineProperty(exports2, "__esModule", { value: true });
56937
- var UI5Info;
56938
- (function(UI5Info2) {
56939
- UI5Info2["OfficialUrl"] = "https://ui5.sap.com";
56940
- UI5Info2["SnapshotUrl"] = "https://sapui5preview-sapui5.dispatcher.int.sap.eu2.hana.ondemand.com";
56941
- UI5Info2["VersionsFile"] = "neo-app.json";
56942
- UI5Info2["DefaultVersion"] = "Latest";
56943
- UI5Info2["DefaultTheme"] = "sap_fiori_3";
56944
- UI5Info2["LatestVersionString"] = "Latest";
56945
- UI5Info2["VersionsOverview"] = "versionoverview.json";
56946
- UI5Info2["VersionExternalFile"] = "version.json";
56947
- })(UI5Info = exports2.UI5Info || (exports2.UI5Info = {}));
56937
+ var UI5Info2;
56938
+ (function(UI5Info3) {
56939
+ UI5Info3["OfficialUrl"] = "https://ui5.sap.com";
56940
+ UI5Info3["SnapshotUrl"] = "https://sapui5preview-sapui5.dispatcher.int.sap.eu2.hana.ondemand.com";
56941
+ UI5Info3["VersionsFile"] = "neo-app.json";
56942
+ UI5Info3["DefaultVersion"] = "Latest";
56943
+ UI5Info3["LatestVersionString"] = "Latest";
56944
+ UI5Info3["VersionsOverview"] = "versionoverview.json";
56945
+ UI5Info3["VersionExternalFile"] = "version.json";
56946
+ })(UI5Info2 = exports2.UI5Info || (exports2.UI5Info = {}));
56948
56947
  var FioriElementsVersion;
56949
56948
  (function(FioriElementsVersion2) {
56950
56949
  FioriElementsVersion2["v2"] = "v2";
@@ -57089,6 +57088,16 @@ var require_ui5_info = __commonJS({
57089
57088
  { version: "1.22.*", support: "Out of maintenance" },
57090
57089
  { version: "*", support: "Out of maintenance" }
57091
57090
  ];
57091
+ var ThemeIds;
57092
+ (function(ThemeIds2) {
57093
+ ThemeIds2["SAP_BELIZE"] = "sap_belize";
57094
+ ThemeIds2["SAP_FIORI_3"] = "sap_fiori_3";
57095
+ ThemeIds2["SAP_FIORI_3_DARK"] = "sap_fiori_3_dark";
57096
+ ThemeIds2["SAP_HORIZON"] = "sap_horizon";
57097
+ ThemeIds2["SAP_HORIZON_DARK"] = "sap_horizon_dark";
57098
+ ThemeIds2["SAP_HORIZON_CONTRAST"] = "sap_horizon_hcw";
57099
+ ThemeIds2["SAP_HORIZON_CONTRAST_DARK"] = "sap_horizon_hcb";
57100
+ })(ThemeIds = exports2.ThemeIds || (exports2.ThemeIds = {}));
57092
57101
  var THEMES = [
57093
57102
  {
57094
57103
  themeid: "sap_belize",
@@ -57316,7 +57325,7 @@ var require_ui5_info = __commonJS({
57316
57325
  return (filterOptions == null ? void 0 : filterOptions.removeDuplicateVersions) === true ? [...new Set(versions)] : versions;
57317
57326
  }
57318
57327
  exports2.retrieveUI5Versions = retrieveUI5Versions;
57319
- async function getUI5VersionsEnhanced(filterOptions) {
57328
+ async function getUI5VersionsEnhanced2(filterOptions) {
57320
57329
  let filteredUI5Versions;
57321
57330
  try {
57322
57331
  filteredUI5Versions = await retrieveUI5Versions(filterOptions, void 0, true);
@@ -57351,7 +57360,7 @@ var require_ui5_info = __commonJS({
57351
57360
  return ui5Version;
57352
57361
  });
57353
57362
  }
57354
- exports2.getUI5VersionsEnhanced = getUI5VersionsEnhanced;
57363
+ exports2.getUI5VersionsEnhanced = getUI5VersionsEnhanced2;
57355
57364
  function getUi5Themes(ui5Version = "Latest") {
57356
57365
  let filteredUi5Version = ui5Version.replace("snapshot-", "");
57357
57366
  filteredUi5Version = zeroExtendUI5Version(filteredUi5Version);
@@ -57377,10 +57386,12 @@ var require_ui5_info = __commonJS({
57377
57386
  }
57378
57387
  exports2.getUi5Themes = getUi5Themes;
57379
57388
  function getDefaultTheme(ui5Version) {
57380
- if (ui5Version && semver_compare_1.default(ui5Version, MIN_UI5_VERSION_HORIZON_THEME) > -1) {
57381
- return "sap_horizon";
57389
+ if (ui5Version) {
57390
+ if (semver_1.coerce(ui5Version) && semver_1.lt(ui5Version, MIN_UI5_VERSION_HORIZON_THEME)) {
57391
+ return "sap_fiori_3";
57392
+ }
57382
57393
  }
57383
- return "sap_fiori_3";
57394
+ return "sap_horizon";
57384
57395
  }
57385
57396
  exports2.getDefaultTheme = getDefaultTheme;
57386
57397
  function zeroExtendUI5Version(ui5Version) {
@@ -80125,264 +80136,1883 @@ var require_api = __commonJS({
80125
80136
  const entry = PerformanceMeasurementAPI.getEntriesByNameType(name2, types_1.EntryType.MEASUREMENT).slice(-1)[0];
80126
80137
  return entry.getDurationTime();
80127
80138
  }
80128
- static clearEntries() {
80129
- PerformanceMeasurementAPI.entries = [];
80139
+ static clearEntries() {
80140
+ PerformanceMeasurementAPI.entries = [];
80141
+ }
80142
+ };
80143
+ exports2.PerformanceMeasurementAPI = PerformanceMeasurementAPI;
80144
+ PerformanceMeasurementAPI.now = performanceNow;
80145
+ PerformanceMeasurementAPI.entries = [];
80146
+ PerformanceMeasurementAPI.initialize();
80147
+ }
80148
+ });
80149
+
80150
+ // ../lib/telemetry/dist/src/util/paramProcessing.js
80151
+ var require_paramProcessing = __commonJS({
80152
+ "../lib/telemetry/dist/src/util/paramProcessing.js"(exports2) {
80153
+ "use strict";
80154
+ Object.defineProperty(exports2, "__esModule", { value: true });
80155
+ var ParamRecordConfigField = class {
80156
+ constructor(path) {
80157
+ this.path = path;
80158
+ }
80159
+ };
80160
+ exports2.ParamRecordConfigField = ParamRecordConfigField;
80161
+ var ParamRecordConfig = class {
80162
+ constructor(key = void 0, value = void 0, paramIndex = void 0) {
80163
+ this.key = key;
80164
+ this.value = value;
80165
+ this.paramIndex = paramIndex;
80166
+ }
80167
+ };
80168
+ exports2.ParamRecordConfig = ParamRecordConfig;
80169
+ exports2.wrongPathErr = (field, index) => new Error(`Wrong path for '${field}' field is specified in instructions with index - ${index}`);
80170
+ exports2.getValue = (obj, path, field, paramIndex) => {
80171
+ const pathArr = path.split("/");
80172
+ let node = obj, i = 0;
80173
+ while (i < pathArr.length) {
80174
+ node = node[pathArr[i]];
80175
+ if (node === void 0) {
80176
+ throw exports2.wrongPathErr(field, paramIndex);
80177
+ }
80178
+ i++;
80179
+ }
80180
+ return node;
80181
+ };
80182
+ exports2.paramsProcessing = (params, instructions) => {
80183
+ const processedDimensions = {};
80184
+ const processedMeasurements = {};
80185
+ let param = null;
80186
+ if (instructions.paramIndex !== void 0) {
80187
+ param = params[instructions.paramIndex];
80188
+ }
80189
+ const key = instructions.key ? instructions.key : "data";
80190
+ let val = "";
80191
+ if (typeof instructions.value === "string") {
80192
+ val = instructions.value;
80193
+ } else if (instructions.value !== void 0 && instructions.paramIndex !== void 0) {
80194
+ val = exports2.getValue(param, instructions.value.path, "val", instructions.paramIndex);
80195
+ } else {
80196
+ val = param;
80197
+ }
80198
+ if (!isNaN(val)) {
80199
+ processedMeasurements[key] = val;
80200
+ } else {
80201
+ processedDimensions[key] = val;
80202
+ }
80203
+ return [processedDimensions, processedMeasurements];
80204
+ };
80205
+ exports2.getParamsData = (params, instructions) => {
80206
+ let processedDimensions, processedMeasurements;
80207
+ let customDimensions = {};
80208
+ let customMeasurements = {};
80209
+ if (Array.isArray(instructions)) {
80210
+ for (const instruction of instructions) {
80211
+ [processedDimensions, processedMeasurements] = exports2.paramsProcessing(params, instruction);
80212
+ customDimensions = {
80213
+ ...customDimensions,
80214
+ ...processedDimensions
80215
+ };
80216
+ customMeasurements = {
80217
+ ...customMeasurements,
80218
+ ...processedMeasurements
80219
+ };
80220
+ }
80221
+ } else {
80222
+ [customDimensions, customMeasurements] = exports2.paramsProcessing(params, instructions);
80223
+ }
80224
+ return [customDimensions, customMeasurements];
80225
+ };
80226
+ }
80227
+ });
80228
+
80229
+ // ../lib/telemetry/dist/src/interceptor/index.js
80230
+ var require_interceptor = __commonJS({
80231
+ "../lib/telemetry/dist/src/interceptor/index.js"(exports2) {
80232
+ "use strict";
80233
+ Object.defineProperty(exports2, "__esModule", { value: true });
80234
+ var client_1 = require_client3();
80235
+ var api_1 = require_api();
80236
+ var paramProcessing_1 = require_paramProcessing();
80237
+ exports2.notify = (target, originalFn, evtName, sampleRate) => {
80238
+ return (...args) => {
80239
+ const result2 = originalFn.apply(target, args);
80240
+ const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80241
+ appinsightClient.report(evtName, {}, {}, sampleRate);
80242
+ return result2;
80243
+ };
80244
+ };
80245
+ exports2.notifyAsync = (target, originalFn, evtName, sampleRate) => {
80246
+ return async (...args) => {
80247
+ const result2 = await originalFn.apply(target, args);
80248
+ const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80249
+ appinsightClient.report(evtName, {}, {}, sampleRate);
80250
+ return result2;
80251
+ };
80252
+ };
80253
+ exports2.duration = (target, originalFn, evtName, sampleRate) => {
80254
+ return (...args) => {
80255
+ const markName = api_1.PerformanceMeasurementAPI.startMark("mark");
80256
+ const result2 = originalFn.apply(target, args);
80257
+ api_1.PerformanceMeasurementAPI.endMark(markName);
80258
+ api_1.PerformanceMeasurementAPI.measure(markName);
80259
+ const duration = api_1.PerformanceMeasurementAPI.getMeasurementDuration(markName);
80260
+ const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80261
+ appinsightClient.report(evtName, {}, { ms: duration }, sampleRate);
80262
+ return result2;
80263
+ };
80264
+ };
80265
+ exports2.durationAsync = (target, originalFn, evtName, sampleRate) => {
80266
+ return async (...args) => {
80267
+ const markName = api_1.PerformanceMeasurementAPI.startMark("mark");
80268
+ const result2 = await originalFn.apply(target, args);
80269
+ api_1.PerformanceMeasurementAPI.endMark(markName);
80270
+ api_1.PerformanceMeasurementAPI.measure(markName);
80271
+ const duration = api_1.PerformanceMeasurementAPI.getMeasurementDuration(markName);
80272
+ const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80273
+ appinsightClient.report(evtName, {}, { ms: duration }, sampleRate);
80274
+ return result2;
80275
+ };
80276
+ };
80277
+ exports2.captureParam = (target, originalFn, evtName, sampleRate, instructions) => {
80278
+ return (...args) => {
80279
+ const result2 = originalFn.apply(target, args);
80280
+ const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
80281
+ const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80282
+ appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
80283
+ return result2;
80284
+ };
80285
+ };
80286
+ exports2.captureParamAsync = (target, originalFn, evtName, sampleRate, instructions) => {
80287
+ return async (...args) => {
80288
+ const result2 = await originalFn.apply(target, args);
80289
+ const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
80290
+ const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80291
+ appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
80292
+ return result2;
80293
+ };
80294
+ };
80295
+ }
80296
+ });
80297
+
80298
+ // ../lib/telemetry/dist/src/interceptor/config.js
80299
+ var require_config4 = __commonJS({
80300
+ "../lib/telemetry/dist/src/interceptor/config.js"(exports2) {
80301
+ "use strict";
80302
+ var __importStar = exports2 && exports2.__importStar || function(mod) {
80303
+ if (mod && mod.__esModule)
80304
+ return mod;
80305
+ var result2 = {};
80306
+ if (mod != null) {
80307
+ for (var k in mod)
80308
+ if (Object.hasOwnProperty.call(mod, k))
80309
+ result2[k] = mod[k];
80310
+ }
80311
+ result2["default"] = mod;
80312
+ return result2;
80313
+ };
80314
+ Object.defineProperty(exports2, "__esModule", { value: true });
80315
+ var interceptors = __importStar(require_interceptor());
80316
+ var interceptorTypes;
80317
+ (function(interceptorTypes2) {
80318
+ interceptorTypes2["NOTIFICATION"] = "notify";
80319
+ interceptorTypes2["DURATION"] = "duration";
80320
+ interceptorTypes2["CAPTURE_PARAM"] = "captureParam";
80321
+ })(interceptorTypes = exports2.interceptorTypes || (exports2.interceptorTypes = {}));
80322
+ var interceptorTypesMapping = /* @__PURE__ */ new Map();
80323
+ exports2.interceptorTypesMapping = interceptorTypesMapping;
80324
+ interceptorTypesMapping.set(interceptorTypes.NOTIFICATION, interceptors.notify);
80325
+ interceptorTypesMapping.set(interceptorTypes.DURATION, interceptors.duration);
80326
+ interceptorTypesMapping.set(interceptorTypes.CAPTURE_PARAM, interceptors.captureParam);
80327
+ var asyncInterceptorTypesMapping = /* @__PURE__ */ new Map();
80328
+ exports2.asyncInterceptorTypesMapping = asyncInterceptorTypesMapping;
80329
+ asyncInterceptorTypesMapping.set(interceptorTypes.NOTIFICATION, interceptors.notifyAsync);
80330
+ asyncInterceptorTypesMapping.set(interceptorTypes.DURATION, interceptors.durationAsync);
80331
+ asyncInterceptorTypesMapping.set(interceptorTypes.CAPTURE_PARAM, interceptors.captureParamAsync);
80332
+ }
80333
+ });
80334
+
80335
+ // ../lib/telemetry/dist/src/decorator/index.js
80336
+ var require_decorator = __commonJS({
80337
+ "../lib/telemetry/dist/src/decorator/index.js"(exports2) {
80338
+ "use strict";
80339
+ Object.defineProperty(exports2, "__esModule", { value: true });
80340
+ var config_1 = require_config4();
80341
+ var decorCommon = (isAsync, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
80342
+ const originalMethod = descriptor.value;
80343
+ const interceptorTypesMap = isAsync ? config_1.asyncInterceptorTypesMapping : config_1.interceptorTypesMapping;
80344
+ const interceptor = interceptorTypesMap.get(interceptorType);
80345
+ descriptor.value = interceptor(target, originalMethod, evtName, sampleRate, paramsCapturingInstructions);
80346
+ };
80347
+ exports2.logTelemetry = (evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
80348
+ return (target, functionName, descriptor) => {
80349
+ decorCommon(false, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions);
80350
+ };
80351
+ };
80352
+ exports2.logTelemetryAsync = (evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
80353
+ return (target, functionName, descriptor) => {
80354
+ decorCommon(true, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions);
80355
+ };
80356
+ };
80357
+ }
80358
+ });
80359
+
80360
+ // ../lib/telemetry/dist/src/index.js
80361
+ var require_src7 = __commonJS({
80362
+ "../lib/telemetry/dist/src/index.js"(exports2) {
80363
+ "use strict";
80364
+ Object.defineProperty(exports2, "__esModule", { value: true });
80365
+ var index_1 = require_client3();
80366
+ exports2.ClientFactory = index_1.ClientFactory;
80367
+ var client_1 = require_client2();
80368
+ exports2.Client = client_1.Client;
80369
+ var ClientType_1 = require_ClientType();
80370
+ exports2.ClientType = ClientType_1.ClientType;
80371
+ var appInsightClient_1 = require_appInsightClient();
80372
+ exports2.ApplicationInsightClient = appInsightClient_1.ApplicationInsightClient;
80373
+ var system_1 = require_system3();
80374
+ exports2.TelemetrySystem = system_1.TelemetrySystem;
80375
+ var EventHeader_1 = require_EventHeader();
80376
+ exports2.EventHeader = EventHeader_1.EventHeader;
80377
+ var EventName_1 = require_EventName();
80378
+ exports2.EventName = EventName_1.EventName;
80379
+ var SampleRate_1 = require_SampleRate();
80380
+ exports2.SampleRate = SampleRate_1.SampleRate;
80381
+ var config_1 = require_config4();
80382
+ exports2.interceptorTypes = config_1.interceptorTypes;
80383
+ var api_1 = require_api();
80384
+ exports2.PerformanceMeasurementAPI = api_1.PerformanceMeasurementAPI;
80385
+ var paramProcessing_1 = require_paramProcessing();
80386
+ exports2.ParamRecordConfig = paramProcessing_1.ParamRecordConfig;
80387
+ exports2.ParamRecordConfigField = paramProcessing_1.ParamRecordConfigField;
80388
+ var decorator_1 = require_decorator();
80389
+ exports2.logTelemetry = decorator_1.logTelemetry;
80390
+ exports2.logTelemetryAsync = decorator_1.logTelemetryAsync;
80391
+ var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
80392
+ exports2.initTelemetrySettings = toolsSuiteTelemetry_1.initTelemetrySettings;
80393
+ exports2.ToolsSuiteTelemetryClient = toolsSuiteTelemetry_1.ToolsSuiteTelemetryClient;
80394
+ exports2.setEnableTelemetry = toolsSuiteTelemetry_1.setEnableTelemetry;
80395
+ exports2.getTelemetrySetting = toolsSuiteTelemetry_1.getTelemetrySetting;
80396
+ exports2.TelemetrySettings = {};
80397
+ }
80398
+ });
80399
+
80400
+ // node_modules/semver/internal/constants.js
80401
+ var require_constants7 = __commonJS({
80402
+ "node_modules/semver/internal/constants.js"(exports2, module2) {
80403
+ var SEMVER_SPEC_VERSION = "2.0.0";
80404
+ var MAX_LENGTH = 256;
80405
+ var MAX_SAFE_INTEGER = Number.MAX_SAFE_INTEGER || 9007199254740991;
80406
+ var MAX_SAFE_COMPONENT_LENGTH = 16;
80407
+ module2.exports = {
80408
+ SEMVER_SPEC_VERSION,
80409
+ MAX_LENGTH,
80410
+ MAX_SAFE_INTEGER,
80411
+ MAX_SAFE_COMPONENT_LENGTH
80412
+ };
80413
+ }
80414
+ });
80415
+
80416
+ // node_modules/semver/internal/debug.js
80417
+ var require_debug3 = __commonJS({
80418
+ "node_modules/semver/internal/debug.js"(exports2, module2) {
80419
+ var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
80420
+ };
80421
+ module2.exports = debug;
80422
+ }
80423
+ });
80424
+
80425
+ // node_modules/semver/internal/re.js
80426
+ var require_re2 = __commonJS({
80427
+ "node_modules/semver/internal/re.js"(exports2, module2) {
80428
+ var { MAX_SAFE_COMPONENT_LENGTH } = require_constants7();
80429
+ var debug = require_debug3();
80430
+ exports2 = module2.exports = {};
80431
+ var re = exports2.re = [];
80432
+ var src = exports2.src = [];
80433
+ var t = exports2.t = {};
80434
+ var R = 0;
80435
+ var createToken = (name2, value, isGlobal) => {
80436
+ const index = R++;
80437
+ debug(index, value);
80438
+ t[name2] = index;
80439
+ src[index] = value;
80440
+ re[index] = new RegExp(value, isGlobal ? "g" : void 0);
80441
+ };
80442
+ createToken("NUMERICIDENTIFIER", "0|[1-9]\\d*");
80443
+ createToken("NUMERICIDENTIFIERLOOSE", "[0-9]+");
80444
+ createToken("NONNUMERICIDENTIFIER", "\\d*[a-zA-Z-][a-zA-Z0-9-]*");
80445
+ createToken("MAINVERSION", `(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})\\.(${src[t.NUMERICIDENTIFIER]})`);
80446
+ createToken("MAINVERSIONLOOSE", `(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})\\.(${src[t.NUMERICIDENTIFIERLOOSE]})`);
80447
+ createToken("PRERELEASEIDENTIFIER", `(?:${src[t.NUMERICIDENTIFIER]}|${src[t.NONNUMERICIDENTIFIER]})`);
80448
+ createToken("PRERELEASEIDENTIFIERLOOSE", `(?:${src[t.NUMERICIDENTIFIERLOOSE]}|${src[t.NONNUMERICIDENTIFIER]})`);
80449
+ createToken("PRERELEASE", `(?:-(${src[t.PRERELEASEIDENTIFIER]}(?:\\.${src[t.PRERELEASEIDENTIFIER]})*))`);
80450
+ createToken("PRERELEASELOOSE", `(?:-?(${src[t.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${src[t.PRERELEASEIDENTIFIERLOOSE]})*))`);
80451
+ createToken("BUILDIDENTIFIER", "[0-9A-Za-z-]+");
80452
+ createToken("BUILD", `(?:\\+(${src[t.BUILDIDENTIFIER]}(?:\\.${src[t.BUILDIDENTIFIER]})*))`);
80453
+ createToken("FULLPLAIN", `v?${src[t.MAINVERSION]}${src[t.PRERELEASE]}?${src[t.BUILD]}?`);
80454
+ createToken("FULL", `^${src[t.FULLPLAIN]}$`);
80455
+ createToken("LOOSEPLAIN", `[v=\\s]*${src[t.MAINVERSIONLOOSE]}${src[t.PRERELEASELOOSE]}?${src[t.BUILD]}?`);
80456
+ createToken("LOOSE", `^${src[t.LOOSEPLAIN]}$`);
80457
+ createToken("GTLT", "((?:<|>)?=?)");
80458
+ createToken("XRANGEIDENTIFIERLOOSE", `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);
80459
+ createToken("XRANGEIDENTIFIER", `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`);
80460
+ createToken("XRANGEPLAIN", `[v=\\s]*(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:\\.(${src[t.XRANGEIDENTIFIER]})(?:${src[t.PRERELEASE]})?${src[t.BUILD]}?)?)?`);
80461
+ createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t.XRANGEIDENTIFIERLOOSE]})(?:${src[t.PRERELEASELOOSE]})?${src[t.BUILD]}?)?)?`);
80462
+ createToken("XRANGE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAIN]}$`);
80463
+ createToken("XRANGELOOSE", `^${src[t.GTLT]}\\s*${src[t.XRANGEPLAINLOOSE]}$`);
80464
+ createToken("COERCE", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:$|[^\\d])`);
80465
+ createToken("COERCERTL", src[t.COERCE], true);
80466
+ createToken("LONETILDE", "(?:~>?)");
80467
+ createToken("TILDETRIM", `(\\s*)${src[t.LONETILDE]}\\s+`, true);
80468
+ exports2.tildeTrimReplace = "$1~";
80469
+ createToken("TILDE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAIN]}$`);
80470
+ createToken("TILDELOOSE", `^${src[t.LONETILDE]}${src[t.XRANGEPLAINLOOSE]}$`);
80471
+ createToken("LONECARET", "(?:\\^)");
80472
+ createToken("CARETTRIM", `(\\s*)${src[t.LONECARET]}\\s+`, true);
80473
+ exports2.caretTrimReplace = "$1^";
80474
+ createToken("CARET", `^${src[t.LONECARET]}${src[t.XRANGEPLAIN]}$`);
80475
+ createToken("CARETLOOSE", `^${src[t.LONECARET]}${src[t.XRANGEPLAINLOOSE]}$`);
80476
+ createToken("COMPARATORLOOSE", `^${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]})$|^$`);
80477
+ createToken("COMPARATOR", `^${src[t.GTLT]}\\s*(${src[t.FULLPLAIN]})$|^$`);
80478
+ createToken("COMPARATORTRIM", `(\\s*)${src[t.GTLT]}\\s*(${src[t.LOOSEPLAIN]}|${src[t.XRANGEPLAIN]})`, true);
80479
+ exports2.comparatorTrimReplace = "$1$2$3";
80480
+ createToken("HYPHENRANGE", `^\\s*(${src[t.XRANGEPLAIN]})\\s+-\\s+(${src[t.XRANGEPLAIN]})\\s*$`);
80481
+ createToken("HYPHENRANGELOOSE", `^\\s*(${src[t.XRANGEPLAINLOOSE]})\\s+-\\s+(${src[t.XRANGEPLAINLOOSE]})\\s*$`);
80482
+ createToken("STAR", "(<|>)?=?\\s*\\*");
80483
+ createToken("GTE0", "^\\s*>=\\s*0.0.0\\s*$");
80484
+ createToken("GTE0PRE", "^\\s*>=\\s*0.0.0-0\\s*$");
80485
+ }
80486
+ });
80487
+
80488
+ // node_modules/semver/internal/parse-options.js
80489
+ var require_parse_options2 = __commonJS({
80490
+ "node_modules/semver/internal/parse-options.js"(exports2, module2) {
80491
+ var opts = ["includePrerelease", "loose", "rtl"];
80492
+ var parseOptions = (options2) => !options2 ? {} : typeof options2 !== "object" ? { loose: true } : opts.filter((k) => options2[k]).reduce((options3, k) => {
80493
+ options3[k] = true;
80494
+ return options3;
80495
+ }, {});
80496
+ module2.exports = parseOptions;
80497
+ }
80498
+ });
80499
+
80500
+ // node_modules/semver/internal/identifiers.js
80501
+ var require_identifiers2 = __commonJS({
80502
+ "node_modules/semver/internal/identifiers.js"(exports2, module2) {
80503
+ var numeric = /^[0-9]+$/;
80504
+ var compareIdentifiers = (a, b) => {
80505
+ const anum = numeric.test(a);
80506
+ const bnum = numeric.test(b);
80507
+ if (anum && bnum) {
80508
+ a = +a;
80509
+ b = +b;
80510
+ }
80511
+ return a === b ? 0 : anum && !bnum ? -1 : bnum && !anum ? 1 : a < b ? -1 : 1;
80512
+ };
80513
+ var rcompareIdentifiers = (a, b) => compareIdentifiers(b, a);
80514
+ module2.exports = {
80515
+ compareIdentifiers,
80516
+ rcompareIdentifiers
80517
+ };
80518
+ }
80519
+ });
80520
+
80521
+ // node_modules/semver/classes/semver.js
80522
+ var require_semver6 = __commonJS({
80523
+ "node_modules/semver/classes/semver.js"(exports2, module2) {
80524
+ var debug = require_debug3();
80525
+ var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants7();
80526
+ var { re, t } = require_re2();
80527
+ var parseOptions = require_parse_options2();
80528
+ var { compareIdentifiers } = require_identifiers2();
80529
+ var SemVer = class {
80530
+ constructor(version, options2) {
80531
+ options2 = parseOptions(options2);
80532
+ if (version instanceof SemVer) {
80533
+ if (version.loose === !!options2.loose && version.includePrerelease === !!options2.includePrerelease) {
80534
+ return version;
80535
+ } else {
80536
+ version = version.version;
80537
+ }
80538
+ } else if (typeof version !== "string") {
80539
+ throw new TypeError(`Invalid Version: ${version}`);
80540
+ }
80541
+ if (version.length > MAX_LENGTH) {
80542
+ throw new TypeError(`version is longer than ${MAX_LENGTH} characters`);
80543
+ }
80544
+ debug("SemVer", version, options2);
80545
+ this.options = options2;
80546
+ this.loose = !!options2.loose;
80547
+ this.includePrerelease = !!options2.includePrerelease;
80548
+ const m = version.trim().match(options2.loose ? re[t.LOOSE] : re[t.FULL]);
80549
+ if (!m) {
80550
+ throw new TypeError(`Invalid Version: ${version}`);
80551
+ }
80552
+ this.raw = version;
80553
+ this.major = +m[1];
80554
+ this.minor = +m[2];
80555
+ this.patch = +m[3];
80556
+ if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
80557
+ throw new TypeError("Invalid major version");
80558
+ }
80559
+ if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
80560
+ throw new TypeError("Invalid minor version");
80561
+ }
80562
+ if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
80563
+ throw new TypeError("Invalid patch version");
80564
+ }
80565
+ if (!m[4]) {
80566
+ this.prerelease = [];
80567
+ } else {
80568
+ this.prerelease = m[4].split(".").map((id) => {
80569
+ if (/^[0-9]+$/.test(id)) {
80570
+ const num = +id;
80571
+ if (num >= 0 && num < MAX_SAFE_INTEGER) {
80572
+ return num;
80573
+ }
80574
+ }
80575
+ return id;
80576
+ });
80577
+ }
80578
+ this.build = m[5] ? m[5].split(".") : [];
80579
+ this.format();
80580
+ }
80581
+ format() {
80582
+ this.version = `${this.major}.${this.minor}.${this.patch}`;
80583
+ if (this.prerelease.length) {
80584
+ this.version += `-${this.prerelease.join(".")}`;
80585
+ }
80586
+ return this.version;
80587
+ }
80588
+ toString() {
80589
+ return this.version;
80590
+ }
80591
+ compare(other) {
80592
+ debug("SemVer.compare", this.version, this.options, other);
80593
+ if (!(other instanceof SemVer)) {
80594
+ if (typeof other === "string" && other === this.version) {
80595
+ return 0;
80596
+ }
80597
+ other = new SemVer(other, this.options);
80598
+ }
80599
+ if (other.version === this.version) {
80600
+ return 0;
80601
+ }
80602
+ return this.compareMain(other) || this.comparePre(other);
80603
+ }
80604
+ compareMain(other) {
80605
+ if (!(other instanceof SemVer)) {
80606
+ other = new SemVer(other, this.options);
80607
+ }
80608
+ return compareIdentifiers(this.major, other.major) || compareIdentifiers(this.minor, other.minor) || compareIdentifiers(this.patch, other.patch);
80609
+ }
80610
+ comparePre(other) {
80611
+ if (!(other instanceof SemVer)) {
80612
+ other = new SemVer(other, this.options);
80613
+ }
80614
+ if (this.prerelease.length && !other.prerelease.length) {
80615
+ return -1;
80616
+ } else if (!this.prerelease.length && other.prerelease.length) {
80617
+ return 1;
80618
+ } else if (!this.prerelease.length && !other.prerelease.length) {
80619
+ return 0;
80620
+ }
80621
+ let i = 0;
80622
+ do {
80623
+ const a = this.prerelease[i];
80624
+ const b = other.prerelease[i];
80625
+ debug("prerelease compare", i, a, b);
80626
+ if (a === void 0 && b === void 0) {
80627
+ return 0;
80628
+ } else if (b === void 0) {
80629
+ return 1;
80630
+ } else if (a === void 0) {
80631
+ return -1;
80632
+ } else if (a === b) {
80633
+ continue;
80634
+ } else {
80635
+ return compareIdentifiers(a, b);
80636
+ }
80637
+ } while (++i);
80638
+ }
80639
+ compareBuild(other) {
80640
+ if (!(other instanceof SemVer)) {
80641
+ other = new SemVer(other, this.options);
80642
+ }
80643
+ let i = 0;
80644
+ do {
80645
+ const a = this.build[i];
80646
+ const b = other.build[i];
80647
+ debug("prerelease compare", i, a, b);
80648
+ if (a === void 0 && b === void 0) {
80649
+ return 0;
80650
+ } else if (b === void 0) {
80651
+ return 1;
80652
+ } else if (a === void 0) {
80653
+ return -1;
80654
+ } else if (a === b) {
80655
+ continue;
80656
+ } else {
80657
+ return compareIdentifiers(a, b);
80658
+ }
80659
+ } while (++i);
80660
+ }
80661
+ inc(release, identifier) {
80662
+ switch (release) {
80663
+ case "premajor":
80664
+ this.prerelease.length = 0;
80665
+ this.patch = 0;
80666
+ this.minor = 0;
80667
+ this.major++;
80668
+ this.inc("pre", identifier);
80669
+ break;
80670
+ case "preminor":
80671
+ this.prerelease.length = 0;
80672
+ this.patch = 0;
80673
+ this.minor++;
80674
+ this.inc("pre", identifier);
80675
+ break;
80676
+ case "prepatch":
80677
+ this.prerelease.length = 0;
80678
+ this.inc("patch", identifier);
80679
+ this.inc("pre", identifier);
80680
+ break;
80681
+ case "prerelease":
80682
+ if (this.prerelease.length === 0) {
80683
+ this.inc("patch", identifier);
80684
+ }
80685
+ this.inc("pre", identifier);
80686
+ break;
80687
+ case "major":
80688
+ if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
80689
+ this.major++;
80690
+ }
80691
+ this.minor = 0;
80692
+ this.patch = 0;
80693
+ this.prerelease = [];
80694
+ break;
80695
+ case "minor":
80696
+ if (this.patch !== 0 || this.prerelease.length === 0) {
80697
+ this.minor++;
80698
+ }
80699
+ this.patch = 0;
80700
+ this.prerelease = [];
80701
+ break;
80702
+ case "patch":
80703
+ if (this.prerelease.length === 0) {
80704
+ this.patch++;
80705
+ }
80706
+ this.prerelease = [];
80707
+ break;
80708
+ case "pre":
80709
+ if (this.prerelease.length === 0) {
80710
+ this.prerelease = [0];
80711
+ } else {
80712
+ let i = this.prerelease.length;
80713
+ while (--i >= 0) {
80714
+ if (typeof this.prerelease[i] === "number") {
80715
+ this.prerelease[i]++;
80716
+ i = -2;
80717
+ }
80718
+ }
80719
+ if (i === -1) {
80720
+ this.prerelease.push(0);
80721
+ }
80722
+ }
80723
+ if (identifier) {
80724
+ if (this.prerelease[0] === identifier) {
80725
+ if (isNaN(this.prerelease[1])) {
80726
+ this.prerelease = [identifier, 0];
80727
+ }
80728
+ } else {
80729
+ this.prerelease = [identifier, 0];
80730
+ }
80731
+ }
80732
+ break;
80733
+ default:
80734
+ throw new Error(`invalid increment argument: ${release}`);
80735
+ }
80736
+ this.format();
80737
+ this.raw = this.version;
80738
+ return this;
80739
+ }
80740
+ };
80741
+ module2.exports = SemVer;
80742
+ }
80743
+ });
80744
+
80745
+ // node_modules/semver/functions/parse.js
80746
+ var require_parse4 = __commonJS({
80747
+ "node_modules/semver/functions/parse.js"(exports2, module2) {
80748
+ var { MAX_LENGTH } = require_constants7();
80749
+ var { re, t } = require_re2();
80750
+ var SemVer = require_semver6();
80751
+ var parseOptions = require_parse_options2();
80752
+ var parse2 = (version, options2) => {
80753
+ options2 = parseOptions(options2);
80754
+ if (version instanceof SemVer) {
80755
+ return version;
80756
+ }
80757
+ if (typeof version !== "string") {
80758
+ return null;
80759
+ }
80760
+ if (version.length > MAX_LENGTH) {
80761
+ return null;
80762
+ }
80763
+ const r = options2.loose ? re[t.LOOSE] : re[t.FULL];
80764
+ if (!r.test(version)) {
80765
+ return null;
80766
+ }
80767
+ try {
80768
+ return new SemVer(version, options2);
80769
+ } catch (er) {
80770
+ return null;
80771
+ }
80772
+ };
80773
+ module2.exports = parse2;
80774
+ }
80775
+ });
80776
+
80777
+ // node_modules/semver/functions/valid.js
80778
+ var require_valid3 = __commonJS({
80779
+ "node_modules/semver/functions/valid.js"(exports2, module2) {
80780
+ var parse2 = require_parse4();
80781
+ var valid = (version, options2) => {
80782
+ const v = parse2(version, options2);
80783
+ return v ? v.version : null;
80784
+ };
80785
+ module2.exports = valid;
80786
+ }
80787
+ });
80788
+
80789
+ // node_modules/semver/functions/clean.js
80790
+ var require_clean2 = __commonJS({
80791
+ "node_modules/semver/functions/clean.js"(exports2, module2) {
80792
+ var parse2 = require_parse4();
80793
+ var clean = (version, options2) => {
80794
+ const s = parse2(version.trim().replace(/^[=v]+/, ""), options2);
80795
+ return s ? s.version : null;
80796
+ };
80797
+ module2.exports = clean;
80798
+ }
80799
+ });
80800
+
80801
+ // node_modules/semver/functions/inc.js
80802
+ var require_inc2 = __commonJS({
80803
+ "node_modules/semver/functions/inc.js"(exports2, module2) {
80804
+ var SemVer = require_semver6();
80805
+ var inc = (version, release, options2, identifier) => {
80806
+ if (typeof options2 === "string") {
80807
+ identifier = options2;
80808
+ options2 = void 0;
80809
+ }
80810
+ try {
80811
+ return new SemVer(version, options2).inc(release, identifier).version;
80812
+ } catch (er) {
80813
+ return null;
80814
+ }
80815
+ };
80816
+ module2.exports = inc;
80817
+ }
80818
+ });
80819
+
80820
+ // node_modules/semver/functions/compare.js
80821
+ var require_compare2 = __commonJS({
80822
+ "node_modules/semver/functions/compare.js"(exports2, module2) {
80823
+ var SemVer = require_semver6();
80824
+ var compare = (a, b, loose) => new SemVer(a, loose).compare(new SemVer(b, loose));
80825
+ module2.exports = compare;
80826
+ }
80827
+ });
80828
+
80829
+ // node_modules/semver/functions/eq.js
80830
+ var require_eq3 = __commonJS({
80831
+ "node_modules/semver/functions/eq.js"(exports2, module2) {
80832
+ var compare = require_compare2();
80833
+ var eq = (a, b, loose) => compare(a, b, loose) === 0;
80834
+ module2.exports = eq;
80835
+ }
80836
+ });
80837
+
80838
+ // node_modules/semver/functions/diff.js
80839
+ var require_diff2 = __commonJS({
80840
+ "node_modules/semver/functions/diff.js"(exports2, module2) {
80841
+ var parse2 = require_parse4();
80842
+ var eq = require_eq3();
80843
+ var diff = (version1, version2) => {
80844
+ if (eq(version1, version2)) {
80845
+ return null;
80846
+ } else {
80847
+ const v1 = parse2(version1);
80848
+ const v2 = parse2(version2);
80849
+ const hasPre = v1.prerelease.length || v2.prerelease.length;
80850
+ const prefix = hasPre ? "pre" : "";
80851
+ const defaultResult = hasPre ? "prerelease" : "";
80852
+ for (const key in v1) {
80853
+ if (key === "major" || key === "minor" || key === "patch") {
80854
+ if (v1[key] !== v2[key]) {
80855
+ return prefix + key;
80856
+ }
80857
+ }
80858
+ }
80859
+ return defaultResult;
80860
+ }
80861
+ };
80862
+ module2.exports = diff;
80863
+ }
80864
+ });
80865
+
80866
+ // node_modules/semver/functions/major.js
80867
+ var require_major2 = __commonJS({
80868
+ "node_modules/semver/functions/major.js"(exports2, module2) {
80869
+ var SemVer = require_semver6();
80870
+ var major2 = (a, loose) => new SemVer(a, loose).major;
80871
+ module2.exports = major2;
80872
+ }
80873
+ });
80874
+
80875
+ // node_modules/semver/functions/minor.js
80876
+ var require_minor2 = __commonJS({
80877
+ "node_modules/semver/functions/minor.js"(exports2, module2) {
80878
+ var SemVer = require_semver6();
80879
+ var minor2 = (a, loose) => new SemVer(a, loose).minor;
80880
+ module2.exports = minor2;
80881
+ }
80882
+ });
80883
+
80884
+ // node_modules/semver/functions/patch.js
80885
+ var require_patch2 = __commonJS({
80886
+ "node_modules/semver/functions/patch.js"(exports2, module2) {
80887
+ var SemVer = require_semver6();
80888
+ var patch = (a, loose) => new SemVer(a, loose).patch;
80889
+ module2.exports = patch;
80890
+ }
80891
+ });
80892
+
80893
+ // node_modules/semver/functions/prerelease.js
80894
+ var require_prerelease2 = __commonJS({
80895
+ "node_modules/semver/functions/prerelease.js"(exports2, module2) {
80896
+ var parse2 = require_parse4();
80897
+ var prerelease = (version, options2) => {
80898
+ const parsed = parse2(version, options2);
80899
+ return parsed && parsed.prerelease.length ? parsed.prerelease : null;
80900
+ };
80901
+ module2.exports = prerelease;
80902
+ }
80903
+ });
80904
+
80905
+ // node_modules/semver/functions/rcompare.js
80906
+ var require_rcompare2 = __commonJS({
80907
+ "node_modules/semver/functions/rcompare.js"(exports2, module2) {
80908
+ var compare = require_compare2();
80909
+ var rcompare = (a, b, loose) => compare(b, a, loose);
80910
+ module2.exports = rcompare;
80911
+ }
80912
+ });
80913
+
80914
+ // node_modules/semver/functions/compare-loose.js
80915
+ var require_compare_loose2 = __commonJS({
80916
+ "node_modules/semver/functions/compare-loose.js"(exports2, module2) {
80917
+ var compare = require_compare2();
80918
+ var compareLoose = (a, b) => compare(a, b, true);
80919
+ module2.exports = compareLoose;
80920
+ }
80921
+ });
80922
+
80923
+ // node_modules/semver/functions/compare-build.js
80924
+ var require_compare_build2 = __commonJS({
80925
+ "node_modules/semver/functions/compare-build.js"(exports2, module2) {
80926
+ var SemVer = require_semver6();
80927
+ var compareBuild = (a, b, loose) => {
80928
+ const versionA = new SemVer(a, loose);
80929
+ const versionB = new SemVer(b, loose);
80930
+ return versionA.compare(versionB) || versionA.compareBuild(versionB);
80931
+ };
80932
+ module2.exports = compareBuild;
80933
+ }
80934
+ });
80935
+
80936
+ // node_modules/semver/functions/sort.js
80937
+ var require_sort2 = __commonJS({
80938
+ "node_modules/semver/functions/sort.js"(exports2, module2) {
80939
+ var compareBuild = require_compare_build2();
80940
+ var sort = (list, loose) => list.sort((a, b) => compareBuild(a, b, loose));
80941
+ module2.exports = sort;
80942
+ }
80943
+ });
80944
+
80945
+ // node_modules/semver/functions/rsort.js
80946
+ var require_rsort2 = __commonJS({
80947
+ "node_modules/semver/functions/rsort.js"(exports2, module2) {
80948
+ var compareBuild = require_compare_build2();
80949
+ var rsort = (list, loose) => list.sort((a, b) => compareBuild(b, a, loose));
80950
+ module2.exports = rsort;
80951
+ }
80952
+ });
80953
+
80954
+ // node_modules/semver/functions/gt.js
80955
+ var require_gt2 = __commonJS({
80956
+ "node_modules/semver/functions/gt.js"(exports2, module2) {
80957
+ var compare = require_compare2();
80958
+ var gt2 = (a, b, loose) => compare(a, b, loose) > 0;
80959
+ module2.exports = gt2;
80960
+ }
80961
+ });
80962
+
80963
+ // node_modules/semver/functions/lt.js
80964
+ var require_lt2 = __commonJS({
80965
+ "node_modules/semver/functions/lt.js"(exports2, module2) {
80966
+ var compare = require_compare2();
80967
+ var lt = (a, b, loose) => compare(a, b, loose) < 0;
80968
+ module2.exports = lt;
80969
+ }
80970
+ });
80971
+
80972
+ // node_modules/semver/functions/neq.js
80973
+ var require_neq2 = __commonJS({
80974
+ "node_modules/semver/functions/neq.js"(exports2, module2) {
80975
+ var compare = require_compare2();
80976
+ var neq = (a, b, loose) => compare(a, b, loose) !== 0;
80977
+ module2.exports = neq;
80978
+ }
80979
+ });
80980
+
80981
+ // node_modules/semver/functions/gte.js
80982
+ var require_gte2 = __commonJS({
80983
+ "node_modules/semver/functions/gte.js"(exports2, module2) {
80984
+ var compare = require_compare2();
80985
+ var gte = (a, b, loose) => compare(a, b, loose) >= 0;
80986
+ module2.exports = gte;
80987
+ }
80988
+ });
80989
+
80990
+ // node_modules/semver/functions/lte.js
80991
+ var require_lte2 = __commonJS({
80992
+ "node_modules/semver/functions/lte.js"(exports2, module2) {
80993
+ var compare = require_compare2();
80994
+ var lte = (a, b, loose) => compare(a, b, loose) <= 0;
80995
+ module2.exports = lte;
80996
+ }
80997
+ });
80998
+
80999
+ // node_modules/semver/functions/cmp.js
81000
+ var require_cmp2 = __commonJS({
81001
+ "node_modules/semver/functions/cmp.js"(exports2, module2) {
81002
+ var eq = require_eq3();
81003
+ var neq = require_neq2();
81004
+ var gt2 = require_gt2();
81005
+ var gte = require_gte2();
81006
+ var lt = require_lt2();
81007
+ var lte = require_lte2();
81008
+ var cmp = (a, op, b, loose) => {
81009
+ switch (op) {
81010
+ case "===":
81011
+ if (typeof a === "object")
81012
+ a = a.version;
81013
+ if (typeof b === "object")
81014
+ b = b.version;
81015
+ return a === b;
81016
+ case "!==":
81017
+ if (typeof a === "object")
81018
+ a = a.version;
81019
+ if (typeof b === "object")
81020
+ b = b.version;
81021
+ return a !== b;
81022
+ case "":
81023
+ case "=":
81024
+ case "==":
81025
+ return eq(a, b, loose);
81026
+ case "!=":
81027
+ return neq(a, b, loose);
81028
+ case ">":
81029
+ return gt2(a, b, loose);
81030
+ case ">=":
81031
+ return gte(a, b, loose);
81032
+ case "<":
81033
+ return lt(a, b, loose);
81034
+ case "<=":
81035
+ return lte(a, b, loose);
81036
+ default:
81037
+ throw new TypeError(`Invalid operator: ${op}`);
81038
+ }
81039
+ };
81040
+ module2.exports = cmp;
81041
+ }
81042
+ });
81043
+
81044
+ // node_modules/semver/functions/coerce.js
81045
+ var require_coerce2 = __commonJS({
81046
+ "node_modules/semver/functions/coerce.js"(exports2, module2) {
81047
+ var SemVer = require_semver6();
81048
+ var parse2 = require_parse4();
81049
+ var { re, t } = require_re2();
81050
+ var coerce = (version, options2) => {
81051
+ if (version instanceof SemVer) {
81052
+ return version;
81053
+ }
81054
+ if (typeof version === "number") {
81055
+ version = String(version);
81056
+ }
81057
+ if (typeof version !== "string") {
81058
+ return null;
81059
+ }
81060
+ options2 = options2 || {};
81061
+ let match = null;
81062
+ if (!options2.rtl) {
81063
+ match = version.match(re[t.COERCE]);
81064
+ } else {
81065
+ let next;
81066
+ while ((next = re[t.COERCERTL].exec(version)) && (!match || match.index + match[0].length !== version.length)) {
81067
+ if (!match || next.index + next[0].length !== match.index + match[0].length) {
81068
+ match = next;
81069
+ }
81070
+ re[t.COERCERTL].lastIndex = next.index + next[1].length + next[2].length;
81071
+ }
81072
+ re[t.COERCERTL].lastIndex = -1;
81073
+ }
81074
+ if (match === null)
81075
+ return null;
81076
+ return parse2(`${match[2]}.${match[3] || "0"}.${match[4] || "0"}`, options2);
81077
+ };
81078
+ module2.exports = coerce;
81079
+ }
81080
+ });
81081
+
81082
+ // node_modules/semver/classes/range.js
81083
+ var require_range2 = __commonJS({
81084
+ "node_modules/semver/classes/range.js"(exports2, module2) {
81085
+ var Range = class {
81086
+ constructor(range, options2) {
81087
+ options2 = parseOptions(options2);
81088
+ if (range instanceof Range) {
81089
+ if (range.loose === !!options2.loose && range.includePrerelease === !!options2.includePrerelease) {
81090
+ return range;
81091
+ } else {
81092
+ return new Range(range.raw, options2);
81093
+ }
81094
+ }
81095
+ if (range instanceof Comparator) {
81096
+ this.raw = range.value;
81097
+ this.set = [[range]];
81098
+ this.format();
81099
+ return this;
81100
+ }
81101
+ this.options = options2;
81102
+ this.loose = !!options2.loose;
81103
+ this.includePrerelease = !!options2.includePrerelease;
81104
+ this.raw = range;
81105
+ this.set = range.split(/\s*\|\|\s*/).map((range2) => this.parseRange(range2.trim())).filter((c) => c.length);
81106
+ if (!this.set.length) {
81107
+ throw new TypeError(`Invalid SemVer Range: ${range}`);
81108
+ }
81109
+ if (this.set.length > 1) {
81110
+ const first = this.set[0];
81111
+ this.set = this.set.filter((c) => !isNullSet(c[0]));
81112
+ if (this.set.length === 0)
81113
+ this.set = [first];
81114
+ else if (this.set.length > 1) {
81115
+ for (const c of this.set) {
81116
+ if (c.length === 1 && isAny(c[0])) {
81117
+ this.set = [c];
81118
+ break;
81119
+ }
81120
+ }
81121
+ }
81122
+ }
81123
+ this.format();
81124
+ }
81125
+ format() {
81126
+ this.range = this.set.map((comps) => {
81127
+ return comps.join(" ").trim();
81128
+ }).join("||").trim();
81129
+ return this.range;
81130
+ }
81131
+ toString() {
81132
+ return this.range;
81133
+ }
81134
+ parseRange(range) {
81135
+ range = range.trim();
81136
+ const memoOpts = Object.keys(this.options).join(",");
81137
+ const memoKey = `parseRange:${memoOpts}:${range}`;
81138
+ const cached = cache.get(memoKey);
81139
+ if (cached)
81140
+ return cached;
81141
+ const loose = this.options.loose;
81142
+ const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE];
81143
+ range = range.replace(hr, hyphenReplace(this.options.includePrerelease));
81144
+ debug("hyphen replace", range);
81145
+ range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace);
81146
+ debug("comparator trim", range, re[t.COMPARATORTRIM]);
81147
+ range = range.replace(re[t.TILDETRIM], tildeTrimReplace);
81148
+ range = range.replace(re[t.CARETTRIM], caretTrimReplace);
81149
+ range = range.split(/\s+/).join(" ");
81150
+ const compRe = loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
81151
+ const rangeList = range.split(" ").map((comp) => parseComparator(comp, this.options)).join(" ").split(/\s+/).map((comp) => replaceGTE0(comp, this.options)).filter(this.options.loose ? (comp) => !!comp.match(compRe) : () => true).map((comp) => new Comparator(comp, this.options));
81152
+ const l = rangeList.length;
81153
+ const rangeMap = /* @__PURE__ */ new Map();
81154
+ for (const comp of rangeList) {
81155
+ if (isNullSet(comp))
81156
+ return [comp];
81157
+ rangeMap.set(comp.value, comp);
81158
+ }
81159
+ if (rangeMap.size > 1 && rangeMap.has(""))
81160
+ rangeMap.delete("");
81161
+ const result2 = [...rangeMap.values()];
81162
+ cache.set(memoKey, result2);
81163
+ return result2;
81164
+ }
81165
+ intersects(range, options2) {
81166
+ if (!(range instanceof Range)) {
81167
+ throw new TypeError("a Range is required");
81168
+ }
81169
+ return this.set.some((thisComparators) => {
81170
+ return isSatisfiable(thisComparators, options2) && range.set.some((rangeComparators) => {
81171
+ return isSatisfiable(rangeComparators, options2) && thisComparators.every((thisComparator) => {
81172
+ return rangeComparators.every((rangeComparator) => {
81173
+ return thisComparator.intersects(rangeComparator, options2);
81174
+ });
81175
+ });
81176
+ });
81177
+ });
81178
+ }
81179
+ test(version) {
81180
+ if (!version) {
81181
+ return false;
81182
+ }
81183
+ if (typeof version === "string") {
81184
+ try {
81185
+ version = new SemVer(version, this.options);
81186
+ } catch (er) {
81187
+ return false;
81188
+ }
81189
+ }
81190
+ for (let i = 0; i < this.set.length; i++) {
81191
+ if (testSet(this.set[i], version, this.options)) {
81192
+ return true;
81193
+ }
81194
+ }
81195
+ return false;
81196
+ }
81197
+ };
81198
+ module2.exports = Range;
81199
+ var LRU = require_lru_cache();
81200
+ var cache = new LRU({ max: 1e3 });
81201
+ var parseOptions = require_parse_options2();
81202
+ var Comparator = require_comparator2();
81203
+ var debug = require_debug3();
81204
+ var SemVer = require_semver6();
81205
+ var {
81206
+ re,
81207
+ t,
81208
+ comparatorTrimReplace,
81209
+ tildeTrimReplace,
81210
+ caretTrimReplace
81211
+ } = require_re2();
81212
+ var isNullSet = (c) => c.value === "<0.0.0-0";
81213
+ var isAny = (c) => c.value === "";
81214
+ var isSatisfiable = (comparators, options2) => {
81215
+ let result2 = true;
81216
+ const remainingComparators = comparators.slice();
81217
+ let testComparator = remainingComparators.pop();
81218
+ while (result2 && remainingComparators.length) {
81219
+ result2 = remainingComparators.every((otherComparator) => {
81220
+ return testComparator.intersects(otherComparator, options2);
81221
+ });
81222
+ testComparator = remainingComparators.pop();
81223
+ }
81224
+ return result2;
81225
+ };
81226
+ var parseComparator = (comp, options2) => {
81227
+ debug("comp", comp, options2);
81228
+ comp = replaceCarets(comp, options2);
81229
+ debug("caret", comp);
81230
+ comp = replaceTildes(comp, options2);
81231
+ debug("tildes", comp);
81232
+ comp = replaceXRanges(comp, options2);
81233
+ debug("xrange", comp);
81234
+ comp = replaceStars(comp, options2);
81235
+ debug("stars", comp);
81236
+ return comp;
81237
+ };
81238
+ var isX = (id) => !id || id.toLowerCase() === "x" || id === "*";
81239
+ var replaceTildes = (comp, options2) => comp.trim().split(/\s+/).map((comp2) => {
81240
+ return replaceTilde(comp2, options2);
81241
+ }).join(" ");
81242
+ var replaceTilde = (comp, options2) => {
81243
+ const r = options2.loose ? re[t.TILDELOOSE] : re[t.TILDE];
81244
+ return comp.replace(r, (_89, M, m, p, pr) => {
81245
+ debug("tilde", comp, _89, M, m, p, pr);
81246
+ let ret;
81247
+ if (isX(M)) {
81248
+ ret = "";
81249
+ } else if (isX(m)) {
81250
+ ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
81251
+ } else if (isX(p)) {
81252
+ ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
81253
+ } else if (pr) {
81254
+ debug("replaceTilde pr", pr);
81255
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
81256
+ } else {
81257
+ ret = `>=${M}.${m}.${p} <${M}.${+m + 1}.0-0`;
81258
+ }
81259
+ debug("tilde return", ret);
81260
+ return ret;
81261
+ });
81262
+ };
81263
+ var replaceCarets = (comp, options2) => comp.trim().split(/\s+/).map((comp2) => {
81264
+ return replaceCaret(comp2, options2);
81265
+ }).join(" ");
81266
+ var replaceCaret = (comp, options2) => {
81267
+ debug("caret", comp, options2);
81268
+ const r = options2.loose ? re[t.CARETLOOSE] : re[t.CARET];
81269
+ const z = options2.includePrerelease ? "-0" : "";
81270
+ return comp.replace(r, (_89, M, m, p, pr) => {
81271
+ debug("caret", comp, _89, M, m, p, pr);
81272
+ let ret;
81273
+ if (isX(M)) {
81274
+ ret = "";
81275
+ } else if (isX(m)) {
81276
+ ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
81277
+ } else if (isX(p)) {
81278
+ if (M === "0") {
81279
+ ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
81280
+ } else {
81281
+ ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`;
81282
+ }
81283
+ } else if (pr) {
81284
+ debug("replaceCaret pr", pr);
81285
+ if (M === "0") {
81286
+ if (m === "0") {
81287
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${m}.${+p + 1}-0`;
81288
+ } else {
81289
+ ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
81290
+ }
81291
+ } else {
81292
+ ret = `>=${M}.${m}.${p}-${pr} <${+M + 1}.0.0-0`;
81293
+ }
81294
+ } else {
81295
+ debug("no pr");
81296
+ if (M === "0") {
81297
+ if (m === "0") {
81298
+ ret = `>=${M}.${m}.${p}${z} <${M}.${m}.${+p + 1}-0`;
81299
+ } else {
81300
+ ret = `>=${M}.${m}.${p}${z} <${M}.${+m + 1}.0-0`;
81301
+ }
81302
+ } else {
81303
+ ret = `>=${M}.${m}.${p} <${+M + 1}.0.0-0`;
81304
+ }
81305
+ }
81306
+ debug("caret return", ret);
81307
+ return ret;
81308
+ });
81309
+ };
81310
+ var replaceXRanges = (comp, options2) => {
81311
+ debug("replaceXRanges", comp, options2);
81312
+ return comp.split(/\s+/).map((comp2) => {
81313
+ return replaceXRange(comp2, options2);
81314
+ }).join(" ");
81315
+ };
81316
+ var replaceXRange = (comp, options2) => {
81317
+ comp = comp.trim();
81318
+ const r = options2.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
81319
+ return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
81320
+ debug("xRange", comp, ret, gtlt, M, m, p, pr);
81321
+ const xM = isX(M);
81322
+ const xm = xM || isX(m);
81323
+ const xp = xm || isX(p);
81324
+ const anyX = xp;
81325
+ if (gtlt === "=" && anyX) {
81326
+ gtlt = "";
81327
+ }
81328
+ pr = options2.includePrerelease ? "-0" : "";
81329
+ if (xM) {
81330
+ if (gtlt === ">" || gtlt === "<") {
81331
+ ret = "<0.0.0-0";
81332
+ } else {
81333
+ ret = "*";
81334
+ }
81335
+ } else if (gtlt && anyX) {
81336
+ if (xm) {
81337
+ m = 0;
81338
+ }
81339
+ p = 0;
81340
+ if (gtlt === ">") {
81341
+ gtlt = ">=";
81342
+ if (xm) {
81343
+ M = +M + 1;
81344
+ m = 0;
81345
+ p = 0;
81346
+ } else {
81347
+ m = +m + 1;
81348
+ p = 0;
81349
+ }
81350
+ } else if (gtlt === "<=") {
81351
+ gtlt = "<";
81352
+ if (xm) {
81353
+ M = +M + 1;
81354
+ } else {
81355
+ m = +m + 1;
81356
+ }
81357
+ }
81358
+ if (gtlt === "<")
81359
+ pr = "-0";
81360
+ ret = `${gtlt + M}.${m}.${p}${pr}`;
81361
+ } else if (xm) {
81362
+ ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`;
81363
+ } else if (xp) {
81364
+ ret = `>=${M}.${m}.0${pr} <${M}.${+m + 1}.0-0`;
81365
+ }
81366
+ debug("xRange return", ret);
81367
+ return ret;
81368
+ });
81369
+ };
81370
+ var replaceStars = (comp, options2) => {
81371
+ debug("replaceStars", comp, options2);
81372
+ return comp.trim().replace(re[t.STAR], "");
81373
+ };
81374
+ var replaceGTE0 = (comp, options2) => {
81375
+ debug("replaceGTE0", comp, options2);
81376
+ return comp.trim().replace(re[options2.includePrerelease ? t.GTE0PRE : t.GTE0], "");
81377
+ };
81378
+ var hyphenReplace = (incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr, tb) => {
81379
+ if (isX(fM)) {
81380
+ from = "";
81381
+ } else if (isX(fm)) {
81382
+ from = `>=${fM}.0.0${incPr ? "-0" : ""}`;
81383
+ } else if (isX(fp)) {
81384
+ from = `>=${fM}.${fm}.0${incPr ? "-0" : ""}`;
81385
+ } else if (fpr) {
81386
+ from = `>=${from}`;
81387
+ } else {
81388
+ from = `>=${from}${incPr ? "-0" : ""}`;
81389
+ }
81390
+ if (isX(tM)) {
81391
+ to = "";
81392
+ } else if (isX(tm)) {
81393
+ to = `<${+tM + 1}.0.0-0`;
81394
+ } else if (isX(tp)) {
81395
+ to = `<${tM}.${+tm + 1}.0-0`;
81396
+ } else if (tpr) {
81397
+ to = `<=${tM}.${tm}.${tp}-${tpr}`;
81398
+ } else if (incPr) {
81399
+ to = `<${tM}.${tm}.${+tp + 1}-0`;
81400
+ } else {
81401
+ to = `<=${to}`;
81402
+ }
81403
+ return `${from} ${to}`.trim();
81404
+ };
81405
+ var testSet = (set, version, options2) => {
81406
+ for (let i = 0; i < set.length; i++) {
81407
+ if (!set[i].test(version)) {
81408
+ return false;
81409
+ }
81410
+ }
81411
+ if (version.prerelease.length && !options2.includePrerelease) {
81412
+ for (let i = 0; i < set.length; i++) {
81413
+ debug(set[i].semver);
81414
+ if (set[i].semver === Comparator.ANY) {
81415
+ continue;
81416
+ }
81417
+ if (set[i].semver.prerelease.length > 0) {
81418
+ const allowed = set[i].semver;
81419
+ if (allowed.major === version.major && allowed.minor === version.minor && allowed.patch === version.patch) {
81420
+ return true;
81421
+ }
81422
+ }
81423
+ }
81424
+ return false;
81425
+ }
81426
+ return true;
81427
+ };
81428
+ }
81429
+ });
81430
+
81431
+ // node_modules/semver/classes/comparator.js
81432
+ var require_comparator2 = __commonJS({
81433
+ "node_modules/semver/classes/comparator.js"(exports2, module2) {
81434
+ var ANY = Symbol("SemVer ANY");
81435
+ var Comparator = class {
81436
+ static get ANY() {
81437
+ return ANY;
81438
+ }
81439
+ constructor(comp, options2) {
81440
+ options2 = parseOptions(options2);
81441
+ if (comp instanceof Comparator) {
81442
+ if (comp.loose === !!options2.loose) {
81443
+ return comp;
81444
+ } else {
81445
+ comp = comp.value;
81446
+ }
81447
+ }
81448
+ debug("comparator", comp, options2);
81449
+ this.options = options2;
81450
+ this.loose = !!options2.loose;
81451
+ this.parse(comp);
81452
+ if (this.semver === ANY) {
81453
+ this.value = "";
81454
+ } else {
81455
+ this.value = this.operator + this.semver.version;
81456
+ }
81457
+ debug("comp", this);
81458
+ }
81459
+ parse(comp) {
81460
+ const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR];
81461
+ const m = comp.match(r);
81462
+ if (!m) {
81463
+ throw new TypeError(`Invalid comparator: ${comp}`);
81464
+ }
81465
+ this.operator = m[1] !== void 0 ? m[1] : "";
81466
+ if (this.operator === "=") {
81467
+ this.operator = "";
81468
+ }
81469
+ if (!m[2]) {
81470
+ this.semver = ANY;
81471
+ } else {
81472
+ this.semver = new SemVer(m[2], this.options.loose);
81473
+ }
81474
+ }
81475
+ toString() {
81476
+ return this.value;
81477
+ }
81478
+ test(version) {
81479
+ debug("Comparator.test", version, this.options.loose);
81480
+ if (this.semver === ANY || version === ANY) {
81481
+ return true;
81482
+ }
81483
+ if (typeof version === "string") {
81484
+ try {
81485
+ version = new SemVer(version, this.options);
81486
+ } catch (er) {
81487
+ return false;
81488
+ }
81489
+ }
81490
+ return cmp(version, this.operator, this.semver, this.options);
81491
+ }
81492
+ intersects(comp, options2) {
81493
+ if (!(comp instanceof Comparator)) {
81494
+ throw new TypeError("a Comparator is required");
81495
+ }
81496
+ if (!options2 || typeof options2 !== "object") {
81497
+ options2 = {
81498
+ loose: !!options2,
81499
+ includePrerelease: false
81500
+ };
81501
+ }
81502
+ if (this.operator === "") {
81503
+ if (this.value === "") {
81504
+ return true;
81505
+ }
81506
+ return new Range(comp.value, options2).test(this.value);
81507
+ } else if (comp.operator === "") {
81508
+ if (comp.value === "") {
81509
+ return true;
81510
+ }
81511
+ return new Range(this.value, options2).test(comp.semver);
81512
+ }
81513
+ const sameDirectionIncreasing = (this.operator === ">=" || this.operator === ">") && (comp.operator === ">=" || comp.operator === ">");
81514
+ const sameDirectionDecreasing = (this.operator === "<=" || this.operator === "<") && (comp.operator === "<=" || comp.operator === "<");
81515
+ const sameSemVer = this.semver.version === comp.semver.version;
81516
+ const differentDirectionsInclusive = (this.operator === ">=" || this.operator === "<=") && (comp.operator === ">=" || comp.operator === "<=");
81517
+ const oppositeDirectionsLessThan = cmp(this.semver, "<", comp.semver, options2) && (this.operator === ">=" || this.operator === ">") && (comp.operator === "<=" || comp.operator === "<");
81518
+ const oppositeDirectionsGreaterThan = cmp(this.semver, ">", comp.semver, options2) && (this.operator === "<=" || this.operator === "<") && (comp.operator === ">=" || comp.operator === ">");
81519
+ return sameDirectionIncreasing || sameDirectionDecreasing || sameSemVer && differentDirectionsInclusive || oppositeDirectionsLessThan || oppositeDirectionsGreaterThan;
81520
+ }
81521
+ };
81522
+ module2.exports = Comparator;
81523
+ var parseOptions = require_parse_options2();
81524
+ var { re, t } = require_re2();
81525
+ var cmp = require_cmp2();
81526
+ var debug = require_debug3();
81527
+ var SemVer = require_semver6();
81528
+ var Range = require_range2();
81529
+ }
81530
+ });
81531
+
81532
+ // node_modules/semver/functions/satisfies.js
81533
+ var require_satisfies2 = __commonJS({
81534
+ "node_modules/semver/functions/satisfies.js"(exports2, module2) {
81535
+ var Range = require_range2();
81536
+ var satisfies = (version, range, options2) => {
81537
+ try {
81538
+ range = new Range(range, options2);
81539
+ } catch (er) {
81540
+ return false;
81541
+ }
81542
+ return range.test(version);
81543
+ };
81544
+ module2.exports = satisfies;
81545
+ }
81546
+ });
81547
+
81548
+ // node_modules/semver/ranges/to-comparators.js
81549
+ var require_to_comparators2 = __commonJS({
81550
+ "node_modules/semver/ranges/to-comparators.js"(exports2, module2) {
81551
+ var Range = require_range2();
81552
+ var toComparators = (range, options2) => new Range(range, options2).set.map((comp) => comp.map((c) => c.value).join(" ").trim().split(" "));
81553
+ module2.exports = toComparators;
81554
+ }
81555
+ });
81556
+
81557
+ // node_modules/semver/ranges/max-satisfying.js
81558
+ var require_max_satisfying2 = __commonJS({
81559
+ "node_modules/semver/ranges/max-satisfying.js"(exports2, module2) {
81560
+ var SemVer = require_semver6();
81561
+ var Range = require_range2();
81562
+ var maxSatisfying2 = (versions, range, options2) => {
81563
+ let max = null;
81564
+ let maxSV = null;
81565
+ let rangeObj = null;
81566
+ try {
81567
+ rangeObj = new Range(range, options2);
81568
+ } catch (er) {
81569
+ return null;
81570
+ }
81571
+ versions.forEach((v) => {
81572
+ if (rangeObj.test(v)) {
81573
+ if (!max || maxSV.compare(v) === -1) {
81574
+ max = v;
81575
+ maxSV = new SemVer(max, options2);
81576
+ }
81577
+ }
81578
+ });
81579
+ return max;
81580
+ };
81581
+ module2.exports = maxSatisfying2;
81582
+ }
81583
+ });
81584
+
81585
+ // node_modules/semver/ranges/min-satisfying.js
81586
+ var require_min_satisfying2 = __commonJS({
81587
+ "node_modules/semver/ranges/min-satisfying.js"(exports2, module2) {
81588
+ var SemVer = require_semver6();
81589
+ var Range = require_range2();
81590
+ var minSatisfying = (versions, range, options2) => {
81591
+ let min = null;
81592
+ let minSV = null;
81593
+ let rangeObj = null;
81594
+ try {
81595
+ rangeObj = new Range(range, options2);
81596
+ } catch (er) {
81597
+ return null;
81598
+ }
81599
+ versions.forEach((v) => {
81600
+ if (rangeObj.test(v)) {
81601
+ if (!min || minSV.compare(v) === 1) {
81602
+ min = v;
81603
+ minSV = new SemVer(min, options2);
81604
+ }
81605
+ }
81606
+ });
81607
+ return min;
81608
+ };
81609
+ module2.exports = minSatisfying;
81610
+ }
81611
+ });
81612
+
81613
+ // node_modules/semver/ranges/min-version.js
81614
+ var require_min_version2 = __commonJS({
81615
+ "node_modules/semver/ranges/min-version.js"(exports2, module2) {
81616
+ var SemVer = require_semver6();
81617
+ var Range = require_range2();
81618
+ var gt2 = require_gt2();
81619
+ var minVersion = (range, loose) => {
81620
+ range = new Range(range, loose);
81621
+ let minver = new SemVer("0.0.0");
81622
+ if (range.test(minver)) {
81623
+ return minver;
81624
+ }
81625
+ minver = new SemVer("0.0.0-0");
81626
+ if (range.test(minver)) {
81627
+ return minver;
81628
+ }
81629
+ minver = null;
81630
+ for (let i = 0; i < range.set.length; ++i) {
81631
+ const comparators = range.set[i];
81632
+ let setMin = null;
81633
+ comparators.forEach((comparator) => {
81634
+ const compver = new SemVer(comparator.semver.version);
81635
+ switch (comparator.operator) {
81636
+ case ">":
81637
+ if (compver.prerelease.length === 0) {
81638
+ compver.patch++;
81639
+ } else {
81640
+ compver.prerelease.push(0);
81641
+ }
81642
+ compver.raw = compver.format();
81643
+ case "":
81644
+ case ">=":
81645
+ if (!setMin || gt2(compver, setMin)) {
81646
+ setMin = compver;
81647
+ }
81648
+ break;
81649
+ case "<":
81650
+ case "<=":
81651
+ break;
81652
+ default:
81653
+ throw new Error(`Unexpected operation: ${comparator.operator}`);
81654
+ }
81655
+ });
81656
+ if (setMin && (!minver || gt2(minver, setMin)))
81657
+ minver = setMin;
81658
+ }
81659
+ if (minver && range.test(minver)) {
81660
+ return minver;
80130
81661
  }
81662
+ return null;
80131
81663
  };
80132
- exports2.PerformanceMeasurementAPI = PerformanceMeasurementAPI;
80133
- PerformanceMeasurementAPI.now = performanceNow;
80134
- PerformanceMeasurementAPI.entries = [];
80135
- PerformanceMeasurementAPI.initialize();
81664
+ module2.exports = minVersion;
80136
81665
  }
80137
81666
  });
80138
81667
 
80139
- // ../lib/telemetry/dist/src/util/paramProcessing.js
80140
- var require_paramProcessing = __commonJS({
80141
- "../lib/telemetry/dist/src/util/paramProcessing.js"(exports2) {
80142
- "use strict";
80143
- Object.defineProperty(exports2, "__esModule", { value: true });
80144
- var ParamRecordConfigField = class {
80145
- constructor(path) {
80146
- this.path = path;
80147
- }
80148
- };
80149
- exports2.ParamRecordConfigField = ParamRecordConfigField;
80150
- var ParamRecordConfig = class {
80151
- constructor(key = void 0, value = void 0, paramIndex = void 0) {
80152
- this.key = key;
80153
- this.value = value;
80154
- this.paramIndex = paramIndex;
80155
- }
80156
- };
80157
- exports2.ParamRecordConfig = ParamRecordConfig;
80158
- exports2.wrongPathErr = (field, index) => new Error(`Wrong path for '${field}' field is specified in instructions with index - ${index}`);
80159
- exports2.getValue = (obj, path, field, paramIndex) => {
80160
- const pathArr = path.split("/");
80161
- let node = obj, i = 0;
80162
- while (i < pathArr.length) {
80163
- node = node[pathArr[i]];
80164
- if (node === void 0) {
80165
- throw exports2.wrongPathErr(field, paramIndex);
80166
- }
80167
- i++;
81668
+ // node_modules/semver/ranges/valid.js
81669
+ var require_valid4 = __commonJS({
81670
+ "node_modules/semver/ranges/valid.js"(exports2, module2) {
81671
+ var Range = require_range2();
81672
+ var validRange = (range, options2) => {
81673
+ try {
81674
+ return new Range(range, options2).range || "*";
81675
+ } catch (er) {
81676
+ return null;
80168
81677
  }
80169
- return node;
80170
81678
  };
80171
- exports2.paramsProcessing = (params, instructions) => {
80172
- const processedDimensions = {};
80173
- const processedMeasurements = {};
80174
- let param = null;
80175
- if (instructions.paramIndex !== void 0) {
80176
- param = params[instructions.paramIndex];
80177
- }
80178
- const key = instructions.key ? instructions.key : "data";
80179
- let val = "";
80180
- if (typeof instructions.value === "string") {
80181
- val = instructions.value;
80182
- } else if (instructions.value !== void 0 && instructions.paramIndex !== void 0) {
80183
- val = exports2.getValue(param, instructions.value.path, "val", instructions.paramIndex);
80184
- } else {
80185
- val = param;
81679
+ module2.exports = validRange;
81680
+ }
81681
+ });
81682
+
81683
+ // node_modules/semver/ranges/outside.js
81684
+ var require_outside2 = __commonJS({
81685
+ "node_modules/semver/ranges/outside.js"(exports2, module2) {
81686
+ var SemVer = require_semver6();
81687
+ var Comparator = require_comparator2();
81688
+ var { ANY } = Comparator;
81689
+ var Range = require_range2();
81690
+ var satisfies = require_satisfies2();
81691
+ var gt2 = require_gt2();
81692
+ var lt = require_lt2();
81693
+ var lte = require_lte2();
81694
+ var gte = require_gte2();
81695
+ var outside = (version, range, hilo, options2) => {
81696
+ version = new SemVer(version, options2);
81697
+ range = new Range(range, options2);
81698
+ let gtfn, ltefn, ltfn, comp, ecomp;
81699
+ switch (hilo) {
81700
+ case ">":
81701
+ gtfn = gt2;
81702
+ ltefn = lte;
81703
+ ltfn = lt;
81704
+ comp = ">";
81705
+ ecomp = ">=";
81706
+ break;
81707
+ case "<":
81708
+ gtfn = lt;
81709
+ ltefn = gte;
81710
+ ltfn = gt2;
81711
+ comp = "<";
81712
+ ecomp = "<=";
81713
+ break;
81714
+ default:
81715
+ throw new TypeError('Must provide a hilo val of "<" or ">"');
80186
81716
  }
80187
- if (!isNaN(val)) {
80188
- processedMeasurements[key] = val;
80189
- } else {
80190
- processedDimensions[key] = val;
81717
+ if (satisfies(version, range, options2)) {
81718
+ return false;
80191
81719
  }
80192
- return [processedDimensions, processedMeasurements];
80193
- };
80194
- exports2.getParamsData = (params, instructions) => {
80195
- let processedDimensions, processedMeasurements;
80196
- let customDimensions = {};
80197
- let customMeasurements = {};
80198
- if (Array.isArray(instructions)) {
80199
- for (const instruction of instructions) {
80200
- [processedDimensions, processedMeasurements] = exports2.paramsProcessing(params, instruction);
80201
- customDimensions = {
80202
- ...customDimensions,
80203
- ...processedDimensions
80204
- };
80205
- customMeasurements = {
80206
- ...customMeasurements,
80207
- ...processedMeasurements
80208
- };
81720
+ for (let i = 0; i < range.set.length; ++i) {
81721
+ const comparators = range.set[i];
81722
+ let high = null;
81723
+ let low = null;
81724
+ comparators.forEach((comparator) => {
81725
+ if (comparator.semver === ANY) {
81726
+ comparator = new Comparator(">=0.0.0");
81727
+ }
81728
+ high = high || comparator;
81729
+ low = low || comparator;
81730
+ if (gtfn(comparator.semver, high.semver, options2)) {
81731
+ high = comparator;
81732
+ } else if (ltfn(comparator.semver, low.semver, options2)) {
81733
+ low = comparator;
81734
+ }
81735
+ });
81736
+ if (high.operator === comp || high.operator === ecomp) {
81737
+ return false;
81738
+ }
81739
+ if ((!low.operator || low.operator === comp) && ltefn(version, low.semver)) {
81740
+ return false;
81741
+ } else if (low.operator === ecomp && ltfn(version, low.semver)) {
81742
+ return false;
80209
81743
  }
80210
- } else {
80211
- [customDimensions, customMeasurements] = exports2.paramsProcessing(params, instructions);
80212
81744
  }
80213
- return [customDimensions, customMeasurements];
81745
+ return true;
80214
81746
  };
81747
+ module2.exports = outside;
80215
81748
  }
80216
81749
  });
80217
81750
 
80218
- // ../lib/telemetry/dist/src/interceptor/index.js
80219
- var require_interceptor = __commonJS({
80220
- "../lib/telemetry/dist/src/interceptor/index.js"(exports2) {
80221
- "use strict";
80222
- Object.defineProperty(exports2, "__esModule", { value: true });
80223
- var client_1 = require_client3();
80224
- var api_1 = require_api();
80225
- var paramProcessing_1 = require_paramProcessing();
80226
- exports2.notify = (target, originalFn, evtName, sampleRate) => {
80227
- return (...args) => {
80228
- const result2 = originalFn.apply(target, args);
80229
- const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80230
- appinsightClient.report(evtName, {}, {}, sampleRate);
80231
- return result2;
80232
- };
80233
- };
80234
- exports2.notifyAsync = (target, originalFn, evtName, sampleRate) => {
80235
- return async (...args) => {
80236
- const result2 = await originalFn.apply(target, args);
80237
- const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80238
- appinsightClient.report(evtName, {}, {}, sampleRate);
80239
- return result2;
80240
- };
80241
- };
80242
- exports2.duration = (target, originalFn, evtName, sampleRate) => {
80243
- return (...args) => {
80244
- const markName = api_1.PerformanceMeasurementAPI.startMark("mark");
80245
- const result2 = originalFn.apply(target, args);
80246
- api_1.PerformanceMeasurementAPI.endMark(markName);
80247
- api_1.PerformanceMeasurementAPI.measure(markName);
80248
- const duration = api_1.PerformanceMeasurementAPI.getMeasurementDuration(markName);
80249
- const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80250
- appinsightClient.report(evtName, {}, { ms: duration }, sampleRate);
80251
- return result2;
80252
- };
80253
- };
80254
- exports2.durationAsync = (target, originalFn, evtName, sampleRate) => {
80255
- return async (...args) => {
80256
- const markName = api_1.PerformanceMeasurementAPI.startMark("mark");
80257
- const result2 = await originalFn.apply(target, args);
80258
- api_1.PerformanceMeasurementAPI.endMark(markName);
80259
- api_1.PerformanceMeasurementAPI.measure(markName);
80260
- const duration = api_1.PerformanceMeasurementAPI.getMeasurementDuration(markName);
80261
- const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80262
- appinsightClient.report(evtName, {}, { ms: duration }, sampleRate);
80263
- return result2;
80264
- };
80265
- };
80266
- exports2.captureParam = (target, originalFn, evtName, sampleRate, instructions) => {
80267
- return (...args) => {
80268
- const result2 = originalFn.apply(target, args);
80269
- const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
80270
- const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80271
- appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
80272
- return result2;
80273
- };
80274
- };
80275
- exports2.captureParamAsync = (target, originalFn, evtName, sampleRate, instructions) => {
80276
- return async (...args) => {
80277
- const result2 = await originalFn.apply(target, args);
80278
- const [customDimensions, customMeasurements] = paramProcessing_1.getParamsData(args, instructions);
80279
- const appinsightClient = client_1.ClientFactory.getTelemetryClient();
80280
- appinsightClient.report(evtName, customDimensions, customMeasurements, sampleRate);
80281
- return result2;
80282
- };
81751
+ // node_modules/semver/ranges/gtr.js
81752
+ var require_gtr2 = __commonJS({
81753
+ "node_modules/semver/ranges/gtr.js"(exports2, module2) {
81754
+ var outside = require_outside2();
81755
+ var gtr = (version, range, options2) => outside(version, range, ">", options2);
81756
+ module2.exports = gtr;
81757
+ }
81758
+ });
81759
+
81760
+ // node_modules/semver/ranges/ltr.js
81761
+ var require_ltr2 = __commonJS({
81762
+ "node_modules/semver/ranges/ltr.js"(exports2, module2) {
81763
+ var outside = require_outside2();
81764
+ var ltr = (version, range, options2) => outside(version, range, "<", options2);
81765
+ module2.exports = ltr;
81766
+ }
81767
+ });
81768
+
81769
+ // node_modules/semver/ranges/intersects.js
81770
+ var require_intersects2 = __commonJS({
81771
+ "node_modules/semver/ranges/intersects.js"(exports2, module2) {
81772
+ var Range = require_range2();
81773
+ var intersects = (r1, r2, options2) => {
81774
+ r1 = new Range(r1, options2);
81775
+ r2 = new Range(r2, options2);
81776
+ return r1.intersects(r2);
80283
81777
  };
81778
+ module2.exports = intersects;
80284
81779
  }
80285
81780
  });
80286
81781
 
80287
- // ../lib/telemetry/dist/src/interceptor/config.js
80288
- var require_config4 = __commonJS({
80289
- "../lib/telemetry/dist/src/interceptor/config.js"(exports2) {
80290
- "use strict";
80291
- var __importStar = exports2 && exports2.__importStar || function(mod) {
80292
- if (mod && mod.__esModule)
80293
- return mod;
80294
- var result2 = {};
80295
- if (mod != null) {
80296
- for (var k in mod)
80297
- if (Object.hasOwnProperty.call(mod, k))
80298
- result2[k] = mod[k];
81782
+ // node_modules/semver/ranges/simplify.js
81783
+ var require_simplify2 = __commonJS({
81784
+ "node_modules/semver/ranges/simplify.js"(exports2, module2) {
81785
+ var satisfies = require_satisfies2();
81786
+ var compare = require_compare2();
81787
+ module2.exports = (versions, range, options2) => {
81788
+ const set = [];
81789
+ let min = null;
81790
+ let prev = null;
81791
+ const v = versions.sort((a, b) => compare(a, b, options2));
81792
+ for (const version of v) {
81793
+ const included = satisfies(version, range, options2);
81794
+ if (included) {
81795
+ prev = version;
81796
+ if (!min)
81797
+ min = version;
81798
+ } else {
81799
+ if (prev) {
81800
+ set.push([min, prev]);
81801
+ }
81802
+ prev = null;
81803
+ min = null;
81804
+ }
80299
81805
  }
80300
- result2["default"] = mod;
80301
- return result2;
81806
+ if (min)
81807
+ set.push([min, null]);
81808
+ const ranges = [];
81809
+ for (const [min2, max] of set) {
81810
+ if (min2 === max)
81811
+ ranges.push(min2);
81812
+ else if (!max && min2 === v[0])
81813
+ ranges.push("*");
81814
+ else if (!max)
81815
+ ranges.push(`>=${min2}`);
81816
+ else if (min2 === v[0])
81817
+ ranges.push(`<=${max}`);
81818
+ else
81819
+ ranges.push(`${min2} - ${max}`);
81820
+ }
81821
+ const simplified = ranges.join(" || ");
81822
+ const original = typeof range.raw === "string" ? range.raw : String(range);
81823
+ return simplified.length < original.length ? simplified : range;
80302
81824
  };
80303
- Object.defineProperty(exports2, "__esModule", { value: true });
80304
- var interceptors = __importStar(require_interceptor());
80305
- var interceptorTypes;
80306
- (function(interceptorTypes2) {
80307
- interceptorTypes2["NOTIFICATION"] = "notify";
80308
- interceptorTypes2["DURATION"] = "duration";
80309
- interceptorTypes2["CAPTURE_PARAM"] = "captureParam";
80310
- })(interceptorTypes = exports2.interceptorTypes || (exports2.interceptorTypes = {}));
80311
- var interceptorTypesMapping = /* @__PURE__ */ new Map();
80312
- exports2.interceptorTypesMapping = interceptorTypesMapping;
80313
- interceptorTypesMapping.set(interceptorTypes.NOTIFICATION, interceptors.notify);
80314
- interceptorTypesMapping.set(interceptorTypes.DURATION, interceptors.duration);
80315
- interceptorTypesMapping.set(interceptorTypes.CAPTURE_PARAM, interceptors.captureParam);
80316
- var asyncInterceptorTypesMapping = /* @__PURE__ */ new Map();
80317
- exports2.asyncInterceptorTypesMapping = asyncInterceptorTypesMapping;
80318
- asyncInterceptorTypesMapping.set(interceptorTypes.NOTIFICATION, interceptors.notifyAsync);
80319
- asyncInterceptorTypesMapping.set(interceptorTypes.DURATION, interceptors.durationAsync);
80320
- asyncInterceptorTypesMapping.set(interceptorTypes.CAPTURE_PARAM, interceptors.captureParamAsync);
80321
81825
  }
80322
81826
  });
80323
81827
 
80324
- // ../lib/telemetry/dist/src/decorator/index.js
80325
- var require_decorator = __commonJS({
80326
- "../lib/telemetry/dist/src/decorator/index.js"(exports2) {
80327
- "use strict";
80328
- Object.defineProperty(exports2, "__esModule", { value: true });
80329
- var config_1 = require_config4();
80330
- var decorCommon = (isAsync, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
80331
- const originalMethod = descriptor.value;
80332
- const interceptorTypesMap = isAsync ? config_1.asyncInterceptorTypesMapping : config_1.interceptorTypesMapping;
80333
- const interceptor = interceptorTypesMap.get(interceptorType);
80334
- descriptor.value = interceptor(target, originalMethod, evtName, sampleRate, paramsCapturingInstructions);
81828
+ // node_modules/semver/ranges/subset.js
81829
+ var require_subset2 = __commonJS({
81830
+ "node_modules/semver/ranges/subset.js"(exports2, module2) {
81831
+ var Range = require_range2();
81832
+ var Comparator = require_comparator2();
81833
+ var { ANY } = Comparator;
81834
+ var satisfies = require_satisfies2();
81835
+ var compare = require_compare2();
81836
+ var subset = (sub, dom, options2 = {}) => {
81837
+ if (sub === dom)
81838
+ return true;
81839
+ sub = new Range(sub, options2);
81840
+ dom = new Range(dom, options2);
81841
+ let sawNonNull = false;
81842
+ OUTER:
81843
+ for (const simpleSub of sub.set) {
81844
+ for (const simpleDom of dom.set) {
81845
+ const isSub = simpleSubset(simpleSub, simpleDom, options2);
81846
+ sawNonNull = sawNonNull || isSub !== null;
81847
+ if (isSub)
81848
+ continue OUTER;
81849
+ }
81850
+ if (sawNonNull)
81851
+ return false;
81852
+ }
81853
+ return true;
80335
81854
  };
80336
- exports2.logTelemetry = (evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
80337
- return (target, functionName, descriptor) => {
80338
- decorCommon(false, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions);
80339
- };
81855
+ var simpleSubset = (sub, dom, options2) => {
81856
+ if (sub === dom)
81857
+ return true;
81858
+ if (sub.length === 1 && sub[0].semver === ANY) {
81859
+ if (dom.length === 1 && dom[0].semver === ANY)
81860
+ return true;
81861
+ else if (options2.includePrerelease)
81862
+ sub = [new Comparator(">=0.0.0-0")];
81863
+ else
81864
+ sub = [new Comparator(">=0.0.0")];
81865
+ }
81866
+ if (dom.length === 1 && dom[0].semver === ANY) {
81867
+ if (options2.includePrerelease)
81868
+ return true;
81869
+ else
81870
+ dom = [new Comparator(">=0.0.0")];
81871
+ }
81872
+ const eqSet = /* @__PURE__ */ new Set();
81873
+ let gt2, lt;
81874
+ for (const c of sub) {
81875
+ if (c.operator === ">" || c.operator === ">=")
81876
+ gt2 = higherGT(gt2, c, options2);
81877
+ else if (c.operator === "<" || c.operator === "<=")
81878
+ lt = lowerLT(lt, c, options2);
81879
+ else
81880
+ eqSet.add(c.semver);
81881
+ }
81882
+ if (eqSet.size > 1)
81883
+ return null;
81884
+ let gtltComp;
81885
+ if (gt2 && lt) {
81886
+ gtltComp = compare(gt2.semver, lt.semver, options2);
81887
+ if (gtltComp > 0)
81888
+ return null;
81889
+ else if (gtltComp === 0 && (gt2.operator !== ">=" || lt.operator !== "<="))
81890
+ return null;
81891
+ }
81892
+ for (const eq of eqSet) {
81893
+ if (gt2 && !satisfies(eq, String(gt2), options2))
81894
+ return null;
81895
+ if (lt && !satisfies(eq, String(lt), options2))
81896
+ return null;
81897
+ for (const c of dom) {
81898
+ if (!satisfies(eq, String(c), options2))
81899
+ return false;
81900
+ }
81901
+ return true;
81902
+ }
81903
+ let higher, lower;
81904
+ let hasDomLT, hasDomGT;
81905
+ let needDomLTPre = lt && !options2.includePrerelease && lt.semver.prerelease.length ? lt.semver : false;
81906
+ let needDomGTPre = gt2 && !options2.includePrerelease && gt2.semver.prerelease.length ? gt2.semver : false;
81907
+ if (needDomLTPre && needDomLTPre.prerelease.length === 1 && lt.operator === "<" && needDomLTPre.prerelease[0] === 0) {
81908
+ needDomLTPre = false;
81909
+ }
81910
+ for (const c of dom) {
81911
+ hasDomGT = hasDomGT || c.operator === ">" || c.operator === ">=";
81912
+ hasDomLT = hasDomLT || c.operator === "<" || c.operator === "<=";
81913
+ if (gt2) {
81914
+ if (needDomGTPre) {
81915
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomGTPre.major && c.semver.minor === needDomGTPre.minor && c.semver.patch === needDomGTPre.patch) {
81916
+ needDomGTPre = false;
81917
+ }
81918
+ }
81919
+ if (c.operator === ">" || c.operator === ">=") {
81920
+ higher = higherGT(gt2, c, options2);
81921
+ if (higher === c && higher !== gt2)
81922
+ return false;
81923
+ } else if (gt2.operator === ">=" && !satisfies(gt2.semver, String(c), options2))
81924
+ return false;
81925
+ }
81926
+ if (lt) {
81927
+ if (needDomLTPre) {
81928
+ if (c.semver.prerelease && c.semver.prerelease.length && c.semver.major === needDomLTPre.major && c.semver.minor === needDomLTPre.minor && c.semver.patch === needDomLTPre.patch) {
81929
+ needDomLTPre = false;
81930
+ }
81931
+ }
81932
+ if (c.operator === "<" || c.operator === "<=") {
81933
+ lower = lowerLT(lt, c, options2);
81934
+ if (lower === c && lower !== lt)
81935
+ return false;
81936
+ } else if (lt.operator === "<=" && !satisfies(lt.semver, String(c), options2))
81937
+ return false;
81938
+ }
81939
+ if (!c.operator && (lt || gt2) && gtltComp !== 0)
81940
+ return false;
81941
+ }
81942
+ if (gt2 && hasDomLT && !lt && gtltComp !== 0)
81943
+ return false;
81944
+ if (lt && hasDomGT && !gt2 && gtltComp !== 0)
81945
+ return false;
81946
+ if (needDomGTPre || needDomLTPre)
81947
+ return false;
81948
+ return true;
80340
81949
  };
80341
- exports2.logTelemetryAsync = (evtName, interceptorType, sampleRate, paramsCapturingInstructions) => {
80342
- return (target, functionName, descriptor) => {
80343
- decorCommon(true, target, descriptor, evtName, interceptorType, sampleRate, paramsCapturingInstructions);
80344
- };
81950
+ var higherGT = (a, b, options2) => {
81951
+ if (!a)
81952
+ return b;
81953
+ const comp = compare(a.semver, b.semver, options2);
81954
+ return comp > 0 ? a : comp < 0 ? b : b.operator === ">" && a.operator === ">=" ? b : a;
81955
+ };
81956
+ var lowerLT = (a, b, options2) => {
81957
+ if (!a)
81958
+ return b;
81959
+ const comp = compare(a.semver, b.semver, options2);
81960
+ return comp < 0 ? a : comp > 0 ? b : b.operator === "<" && a.operator === "<=" ? b : a;
80345
81961
  };
81962
+ module2.exports = subset;
80346
81963
  }
80347
81964
  });
80348
81965
 
80349
- // ../lib/telemetry/dist/src/index.js
80350
- var require_src7 = __commonJS({
80351
- "../lib/telemetry/dist/src/index.js"(exports2) {
80352
- "use strict";
80353
- Object.defineProperty(exports2, "__esModule", { value: true });
80354
- var index_1 = require_client3();
80355
- exports2.ClientFactory = index_1.ClientFactory;
80356
- var client_1 = require_client2();
80357
- exports2.Client = client_1.Client;
80358
- var ClientType_1 = require_ClientType();
80359
- exports2.ClientType = ClientType_1.ClientType;
80360
- var appInsightClient_1 = require_appInsightClient();
80361
- exports2.ApplicationInsightClient = appInsightClient_1.ApplicationInsightClient;
80362
- var system_1 = require_system3();
80363
- exports2.TelemetrySystem = system_1.TelemetrySystem;
80364
- var EventHeader_1 = require_EventHeader();
80365
- exports2.EventHeader = EventHeader_1.EventHeader;
80366
- var EventName_1 = require_EventName();
80367
- exports2.EventName = EventName_1.EventName;
80368
- var SampleRate_1 = require_SampleRate();
80369
- exports2.SampleRate = SampleRate_1.SampleRate;
80370
- var config_1 = require_config4();
80371
- exports2.interceptorTypes = config_1.interceptorTypes;
80372
- var api_1 = require_api();
80373
- exports2.PerformanceMeasurementAPI = api_1.PerformanceMeasurementAPI;
80374
- var paramProcessing_1 = require_paramProcessing();
80375
- exports2.ParamRecordConfig = paramProcessing_1.ParamRecordConfig;
80376
- exports2.ParamRecordConfigField = paramProcessing_1.ParamRecordConfigField;
80377
- var decorator_1 = require_decorator();
80378
- exports2.logTelemetry = decorator_1.logTelemetry;
80379
- exports2.logTelemetryAsync = decorator_1.logTelemetryAsync;
80380
- var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
80381
- exports2.initTelemetrySettings = toolsSuiteTelemetry_1.initTelemetrySettings;
80382
- exports2.ToolsSuiteTelemetryClient = toolsSuiteTelemetry_1.ToolsSuiteTelemetryClient;
80383
- exports2.setEnableTelemetry = toolsSuiteTelemetry_1.setEnableTelemetry;
80384
- exports2.getTelemetrySetting = toolsSuiteTelemetry_1.getTelemetrySetting;
80385
- exports2.TelemetrySettings = {};
81966
+ // node_modules/semver/index.js
81967
+ var require_semver7 = __commonJS({
81968
+ "node_modules/semver/index.js"(exports2, module2) {
81969
+ var internalRe = require_re2();
81970
+ module2.exports = {
81971
+ re: internalRe.re,
81972
+ src: internalRe.src,
81973
+ tokens: internalRe.t,
81974
+ SEMVER_SPEC_VERSION: require_constants7().SEMVER_SPEC_VERSION,
81975
+ SemVer: require_semver6(),
81976
+ compareIdentifiers: require_identifiers2().compareIdentifiers,
81977
+ rcompareIdentifiers: require_identifiers2().rcompareIdentifiers,
81978
+ parse: require_parse4(),
81979
+ valid: require_valid3(),
81980
+ clean: require_clean2(),
81981
+ inc: require_inc2(),
81982
+ diff: require_diff2(),
81983
+ major: require_major2(),
81984
+ minor: require_minor2(),
81985
+ patch: require_patch2(),
81986
+ prerelease: require_prerelease2(),
81987
+ compare: require_compare2(),
81988
+ rcompare: require_rcompare2(),
81989
+ compareLoose: require_compare_loose2(),
81990
+ compareBuild: require_compare_build2(),
81991
+ sort: require_sort2(),
81992
+ rsort: require_rsort2(),
81993
+ gt: require_gt2(),
81994
+ lt: require_lt2(),
81995
+ eq: require_eq3(),
81996
+ neq: require_neq2(),
81997
+ gte: require_gte2(),
81998
+ lte: require_lte2(),
81999
+ cmp: require_cmp2(),
82000
+ coerce: require_coerce2(),
82001
+ Comparator: require_comparator2(),
82002
+ Range: require_range2(),
82003
+ satisfies: require_satisfies2(),
82004
+ toComparators: require_to_comparators2(),
82005
+ maxSatisfying: require_max_satisfying2(),
82006
+ minSatisfying: require_min_satisfying2(),
82007
+ minVersion: require_min_version2(),
82008
+ validRange: require_valid4(),
82009
+ outside: require_outside2(),
82010
+ gtr: require_gtr2(),
82011
+ ltr: require_ltr2(),
82012
+ intersects: require_intersects2(),
82013
+ simplifyRange: require_simplify2(),
82014
+ subset: require_subset2()
82015
+ };
80386
82016
  }
80387
82017
  });
80388
82018
 
@@ -82083,7 +83713,7 @@ var require_expand = __commonJS({
82083
83713
  });
82084
83714
 
82085
83715
  // ../../node_modules/braces/lib/constants.js
82086
- var require_constants7 = __commonJS({
83716
+ var require_constants8 = __commonJS({
82087
83717
  "../../node_modules/braces/lib/constants.js"(exports2, module2) {
82088
83718
  "use strict";
82089
83719
  module2.exports = {
@@ -82137,7 +83767,7 @@ var require_constants7 = __commonJS({
82137
83767
  });
82138
83768
 
82139
83769
  // ../../node_modules/braces/lib/parse.js
82140
- var require_parse4 = __commonJS({
83770
+ var require_parse5 = __commonJS({
82141
83771
  "../../node_modules/braces/lib/parse.js"(exports2, module2) {
82142
83772
  "use strict";
82143
83773
  var stringify = require_stringify4();
@@ -82157,7 +83787,7 @@ var require_parse4 = __commonJS({
82157
83787
  CHAR_SINGLE_QUOTE,
82158
83788
  CHAR_NO_BREAK_SPACE,
82159
83789
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
82160
- } = require_constants7();
83790
+ } = require_constants8();
82161
83791
  var parse2 = (input, options2 = {}) => {
82162
83792
  if (typeof input !== "string") {
82163
83793
  throw new TypeError("Expected a string");
@@ -82375,7 +84005,7 @@ var require_braces = __commonJS({
82375
84005
  var stringify = require_stringify4();
82376
84006
  var compile = require_compile();
82377
84007
  var expand = require_expand();
82378
- var parse2 = require_parse4();
84008
+ var parse2 = require_parse5();
82379
84009
  var braces = (input, options2 = {}) => {
82380
84010
  let output5 = [];
82381
84011
  if (Array.isArray(input)) {
@@ -82432,7 +84062,7 @@ var require_braces = __commonJS({
82432
84062
  });
82433
84063
 
82434
84064
  // ../../node_modules/picomatch/lib/constants.js
82435
- var require_constants8 = __commonJS({
84065
+ var require_constants9 = __commonJS({
82436
84066
  "../../node_modules/picomatch/lib/constants.js"(exports2, module2) {
82437
84067
  "use strict";
82438
84068
  var path = require("path");
@@ -82585,7 +84215,7 @@ var require_utils13 = __commonJS({
82585
84215
  REGEX_REMOVE_BACKSLASH,
82586
84216
  REGEX_SPECIAL_CHARS,
82587
84217
  REGEX_SPECIAL_CHARS_GLOBAL
82588
- } = require_constants8();
84218
+ } = require_constants9();
82589
84219
  exports2.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
82590
84220
  exports2.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
82591
84221
  exports2.isRegexChar = (str) => str.length === 1 && exports2.hasRegexChars(str);
@@ -82658,7 +84288,7 @@ var require_scan = __commonJS({
82658
84288
  CHAR_RIGHT_CURLY_BRACE,
82659
84289
  CHAR_RIGHT_PARENTHESES,
82660
84290
  CHAR_RIGHT_SQUARE_BRACKET
82661
- } = require_constants8();
84291
+ } = require_constants9();
82662
84292
  var isPathSeparator = (code) => {
82663
84293
  return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
82664
84294
  };
@@ -82950,10 +84580,10 @@ var require_scan = __commonJS({
82950
84580
  });
82951
84581
 
82952
84582
  // ../../node_modules/picomatch/lib/parse.js
82953
- var require_parse5 = __commonJS({
84583
+ var require_parse6 = __commonJS({
82954
84584
  "../../node_modules/picomatch/lib/parse.js"(exports2, module2) {
82955
84585
  "use strict";
82956
- var constants = require_constants8();
84586
+ var constants = require_constants9();
82957
84587
  var utils = require_utils13();
82958
84588
  var {
82959
84589
  MAX_LENGTH,
@@ -83731,9 +85361,9 @@ var require_picomatch = __commonJS({
83731
85361
  "use strict";
83732
85362
  var path = require("path");
83733
85363
  var scan = require_scan();
83734
- var parse2 = require_parse5();
85364
+ var parse2 = require_parse6();
83735
85365
  var utils = require_utils13();
83736
- var constants = require_constants8();
85366
+ var constants = require_constants9();
83737
85367
  var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
83738
85368
  var picomatch = (glob, options2, returnState = false) => {
83739
85369
  if (Array.isArray(glob)) {
@@ -88043,7 +89673,7 @@ var require_dist12 = __commonJS({
88043
89673
  });
88044
89674
 
88045
89675
  // ../../node_modules/@sap-ux/ui5-proxy-middleware/dist/base/constants.js
88046
- var require_constants9 = __commonJS({
89676
+ var require_constants10 = __commonJS({
88047
89677
  "../../node_modules/@sap-ux/ui5-proxy-middleware/dist/base/constants.js"(exports2) {
88048
89678
  "use strict";
88049
89679
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -88169,7 +89799,7 @@ var require_utils14 = __commonJS({
88169
89799
  var ui5_config_1 = require_dist12();
88170
89800
  var fs_1 = require("fs");
88171
89801
  var path_1 = require("path");
88172
- var constants_1 = require_constants9();
89802
+ var constants_1 = require_constants10();
88173
89803
  var i18n_1 = require_i18n6();
88174
89804
  exports2.proxyResponseHandler = (proxyRes, etag) => {
88175
89805
  proxyRes.headers["Etag"] = etag;
@@ -89256,7 +90886,7 @@ var require_base = __commonJS({
89256
90886
  Object.defineProperty(exports2, "ui5Proxy", { enumerable: true, get: function() {
89257
90887
  return proxy_1.ui5Proxy;
89258
90888
  } });
89259
- __exportStar(require_constants9(), exports2);
90889
+ __exportStar(require_constants10(), exports2);
89260
90890
  __exportStar(require_types9(), exports2);
89261
90891
  __exportStar(require_utils14(), exports2);
89262
90892
  }
@@ -93017,7 +94647,7 @@ var require_stringify5 = __commonJS({
93017
94647
  });
93018
94648
 
93019
94649
  // ../../node_modules/@sap-ux/axios-extension/node_modules/qs/lib/parse.js
93020
- var require_parse6 = __commonJS({
94650
+ var require_parse7 = __commonJS({
93021
94651
  "../../node_modules/@sap-ux/axios-extension/node_modules/qs/lib/parse.js"(exports2, module2) {
93022
94652
  "use strict";
93023
94653
  var utils = require_utils16();
@@ -93205,7 +94835,7 @@ var require_lib3 = __commonJS({
93205
94835
  "../../node_modules/@sap-ux/axios-extension/node_modules/qs/lib/index.js"(exports2, module2) {
93206
94836
  "use strict";
93207
94837
  var stringify = require_stringify5();
93208
- var parse2 = require_parse6();
94838
+ var parse2 = require_parse7();
93209
94839
  var formats = require_formats2();
93210
94840
  module2.exports = {
93211
94841
  formats,
@@ -101679,7 +103309,7 @@ var require_i18n7 = __commonJS({
101679
103309
  });
101680
103310
 
101681
103311
  // ../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/@sap-ux/store/dist/constants.js
101682
- var require_constants10 = __commonJS({
103312
+ var require_constants11 = __commonJS({
101683
103313
  "../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/@sap-ux/store/dist/constants.js"(exports2) {
101684
103314
  "use strict";
101685
103315
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -102585,7 +104215,7 @@ var require_backend_system7 = __commonJS({
102585
104215
  });
102586
104216
 
102587
104217
  // ../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/@sap-ux/store/dist/data-provider/constants.js
102588
- var require_constants11 = __commonJS({
104218
+ var require_constants12 = __commonJS({
102589
104219
  "../../node_modules/@sap-ux/backend-proxy-middleware/node_modules/@sap-ux/store/dist/data-provider/constants.js"(exports2) {
102590
104220
  "use strict";
102591
104221
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -102635,7 +104265,7 @@ var require_backend_system8 = __commonJS({
102635
104265
  exports2.SystemDataProvider = void 0;
102636
104266
  var hybrid_1 = require_hybrid3();
102637
104267
  var backend_system_1 = require_backend_system7();
102638
- var constants_1 = require_constants11();
104268
+ var constants_1 = require_constants12();
102639
104269
  exports2.SystemDataProvider = class {
102640
104270
  constructor(logger, options2 = {}) {
102641
104271
  this.entityName = constants_1.Entities.BackendSystem;
@@ -102835,7 +104465,7 @@ var require_telemetry_setting5 = __commonJS({
102835
104465
  exports2.TelemetryDataProvider = void 0;
102836
104466
  var filesystem_1 = require_filesystem3();
102837
104467
  var telemetry_setting_1 = require_telemetry_setting4();
102838
- var constants_1 = require_constants11();
104468
+ var constants_1 = require_constants12();
102839
104469
  exports2.TelemetryDataProvider = class {
102840
104470
  constructor(logger) {
102841
104471
  this.entityName = constants_1.Entities.TelemetrySetting;
@@ -102986,7 +104616,7 @@ var require_api_hub6 = __commonJS({
102986
104616
  Object.defineProperty(exports2, "__esModule", { value: true });
102987
104617
  exports2.ApiHubSettingsProvider = void 0;
102988
104618
  var hybrid_1 = require_hybrid3();
102989
- var constants_1 = require_constants11();
104619
+ var constants_1 = require_constants12();
102990
104620
  var api_hub_1 = require_api_hub5();
102991
104621
  exports2.ApiHubSettingsProvider = class {
102992
104622
  constructor(logger, options2 = {}) {
@@ -103292,7 +104922,7 @@ var require_dist18 = __commonJS({
103292
104922
  };
103293
104923
  Object.defineProperty(exports2, "__esModule", { value: true });
103294
104924
  exports2.Entity = exports2.getFilesystemWatcherFor = exports2.getService = void 0;
103295
- var constants_1 = require_constants10();
104925
+ var constants_1 = require_constants11();
103296
104926
  Object.defineProperty(exports2, "Entity", { enumerable: true, get: function() {
103297
104927
  return constants_1.Entity;
103298
104928
  } });
@@ -109238,7 +110868,9 @@ var i18n_default = {
109238
110868
  TARGET_SYSTEM_UI5_VERSION: "Target System SAPUI5 version",
109239
110869
  PREV_DEPLOY_DIFFERENT_APP_ID: "An app in the same repository with different sap app id found:",
109240
110870
  REQUIRE_OVERWRITE_DEPLOY: "Do you want to overwrite (Y/n)?",
109241
- ERROR_READING_MANIFEST_JSON: "Error reading manifest.json from '{{manifestPath}}'. Error was : '{{message}}'."
110871
+ ERROR_READING_MANIFEST_JSON: "Error reading manifest.json from '{{manifestPath}}'. Error was : '{{message}}'.",
110872
+ REMOVED_VERSION_INFO: "Version {{oldVersion}} is not available on the SAPUI5 SDK, using version {{newVersion}} instead.",
110873
+ ABAP_DEPLOYMENT_404_WARNING: "Request failed with status code 404. Guided Answers troubleshooting guide available at https://ga.support.sap.com/dtp/viewer/index.html#/tree/3046/actions/45995:45996:45999:46000:46002"
109242
110874
  };
109243
110875
 
109244
110876
  // src/i18n.ts
@@ -109282,6 +110914,9 @@ var import_chalk = __toESM(require_source());
109282
110914
  var import_fs2 = require("@ui5/fs");
109283
110915
  var import_project_spec = __toESM(require_dist5());
109284
110916
  var import_ux_telemetry = __toESM(require_src7());
110917
+ var import_ux_ui5_info = __toESM(require_dist6());
110918
+ var import_semver = __toESM(require_semver7());
110919
+ var import_axios = __toESM(require_axios2());
109285
110920
  var getHtmlFile = (url) => {
109286
110921
  let html = url;
109287
110922
  if (html.indexOf("?") !== -1) {
@@ -109364,9 +110999,29 @@ async function setUI5Version(version, log5) {
109364
110999
  }
109365
111000
  function parseUI5Version(version) {
109366
111001
  const versionParts = version ? version.replace(/snapshot-untested|snapshot-|snapshot/, "").split(".") : [];
109367
- const major = parseInt(versionParts[0], 10);
109368
- const minor = parseInt(versionParts[1], 10);
109369
- return { major, minor };
111002
+ const major2 = parseInt(versionParts[0], 10);
111003
+ const minor2 = parseInt(versionParts[1], 10);
111004
+ return { major: major2, minor: minor2 };
111005
+ }
111006
+ async function isUI5VersionRemoved(ui5Version) {
111007
+ if (ui5Version && !isNaN(parseFloat(ui5Version))) {
111008
+ try {
111009
+ const response = await import_axios.default.get(`${import_ux_ui5_info.UI5Info.OfficialUrl}/${ui5Version}/resources/sap-ui-core.js`);
111010
+ return response.status === 404;
111011
+ } catch (err) {
111012
+ return err.response.status === 404;
111013
+ }
111014
+ }
111015
+ return false;
111016
+ }
111017
+ async function getNearestMaintenanceVersion(ui5Version) {
111018
+ const maintainedVersions = (await (0, import_ux_ui5_info.getUI5VersionsEnhanced)({
111019
+ useCache: true,
111020
+ groupUI5Versions: true,
111021
+ removeDuplicateVersions: true
111022
+ })).filter((elem) => elem.version.maintained === true).map((version) => version.value).reverse();
111023
+ const gtVersion = maintainedVersions.find((version) => (0, import_semver.gt)(version, ui5Version));
111024
+ return (0, import_semver.maxSatisfying)(maintainedVersions, `${(0, import_semver.major)(gtVersion)}.${(0, import_semver.minor)(gtVersion)}.x`);
109370
111025
  }
109371
111026
 
109372
111027
  // src/middlewares/proxy/utils.ts
@@ -109577,6 +111232,11 @@ var getUI5Config = async (yamlOptions, log5) => {
109577
111232
  if (yamlOptions.ui5) {
109578
111233
  directLoad = !!yamlOptions.ui5.directLoad;
109579
111234
  ui5Version = await setUI5Version(yamlOptions.ui5.version, log5);
111235
+ if (await isUI5VersionRemoved(ui5Version)) {
111236
+ const oldVersion = ui5Version;
111237
+ ui5Version = await getNearestMaintenanceVersion(ui5Version);
111238
+ log5.info(i18next_default.t("REMOVED_VERSION_INFO", { oldVersion, newVersion: ui5Version }));
111239
+ }
109580
111240
  const ui5ConfigSection = yamlOptions.ui5;
109581
111241
  if ("path" in ui5ConfigSection) {
109582
111242
  for (const ui5Path of ui5ConfigSection.path) {