@hot-updater/plugin-core 0.16.2 → 0.16.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1121,7 +1121,7 @@ var __webpack_modules__ = {
1121
1121
  function encodedMappings(map) {
1122
1122
  var _a;
1123
1123
  var _b;
1124
- return null !== (_a = (_b = cast(map))._encoded) && void 0 !== _a ? _a : _b._encoded = sourcemapCodec.encode(cast(map)._decoded);
1124
+ return null != (_a = (_b = cast(map))._encoded) ? _a : _b._encoded = sourcemapCodec.encode(cast(map)._decoded);
1125
1125
  }
1126
1126
  function decodedMappings(map) {
1127
1127
  var _a;
@@ -1345,10 +1345,7 @@ var __webpack_modules__ = {
1345
1345
  const settings_1 = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js");
1346
1346
  exports.Settings = settings_1.default;
1347
1347
  function scandir(path, optionsOrSettingsOrCallback, callback) {
1348
- if ('function' == typeof optionsOrSettingsOrCallback) {
1349
- async.read(path, getSettings(), optionsOrSettingsOrCallback);
1350
- return;
1351
- }
1348
+ if ('function' == typeof optionsOrSettingsOrCallback) return void async.read(path, getSettings(), optionsOrSettingsOrCallback);
1352
1349
  async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
1353
1350
  }
1354
1351
  exports.scandir = scandir;
@@ -1373,10 +1370,7 @@ var __webpack_modules__ = {
1373
1370
  const utils = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js");
1374
1371
  const common = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js");
1375
1372
  function read(directory, settings, callback) {
1376
- if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
1377
- readdirWithFileTypes(directory, settings, callback);
1378
- return;
1379
- }
1373
+ if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return void readdirWithFileTypes(directory, settings, callback);
1380
1374
  readdir(directory, settings, callback);
1381
1375
  }
1382
1376
  exports.read = read;
@@ -1384,25 +1378,16 @@ var __webpack_modules__ = {
1384
1378
  settings.fs.readdir(directory, {
1385
1379
  withFileTypes: true
1386
1380
  }, (readdirError, dirents)=>{
1387
- if (null !== readdirError) {
1388
- callFailureCallback(callback, readdirError);
1389
- return;
1390
- }
1381
+ if (null !== readdirError) return void callFailureCallback(callback, readdirError);
1391
1382
  const entries = dirents.map((dirent)=>({
1392
1383
  dirent,
1393
1384
  name: dirent.name,
1394
1385
  path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
1395
1386
  }));
1396
- if (!settings.followSymbolicLinks) {
1397
- callSuccessCallback(callback, entries);
1398
- return;
1399
- }
1387
+ if (!settings.followSymbolicLinks) return void callSuccessCallback(callback, entries);
1400
1388
  const tasks = entries.map((entry)=>makeRplTaskEntry(entry, settings));
1401
1389
  rpl(tasks, (rplError, rplEntries)=>{
1402
- if (null !== rplError) {
1403
- callFailureCallback(callback, rplError);
1404
- return;
1405
- }
1390
+ if (null !== rplError) return void callFailureCallback(callback, rplError);
1406
1391
  callSuccessCallback(callback, rplEntries);
1407
1392
  });
1408
1393
  });
@@ -1410,16 +1395,10 @@ var __webpack_modules__ = {
1410
1395
  exports.readdirWithFileTypes = readdirWithFileTypes;
1411
1396
  function makeRplTaskEntry(entry, settings) {
1412
1397
  return (done)=>{
1413
- if (!entry.dirent.isSymbolicLink()) {
1414
- done(null, entry);
1415
- return;
1416
- }
1398
+ if (!entry.dirent.isSymbolicLink()) return void done(null, entry);
1417
1399
  settings.fs.stat(entry.path, (statError, stats)=>{
1418
1400
  if (null !== statError) {
1419
- if (settings.throwErrorOnBrokenSymbolicLink) {
1420
- done(statError);
1421
- return;
1422
- }
1401
+ if (settings.throwErrorOnBrokenSymbolicLink) return void done(statError);
1423
1402
  done(null, entry);
1424
1403
  return;
1425
1404
  }
@@ -1430,18 +1409,12 @@ var __webpack_modules__ = {
1430
1409
  }
1431
1410
  function readdir(directory, settings, callback) {
1432
1411
  settings.fs.readdir(directory, (readdirError, names)=>{
1433
- if (null !== readdirError) {
1434
- callFailureCallback(callback, readdirError);
1435
- return;
1436
- }
1412
+ if (null !== readdirError) return void callFailureCallback(callback, readdirError);
1437
1413
  const tasks = names.map((name)=>{
1438
1414
  const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
1439
1415
  return (done)=>{
1440
1416
  fsStat.stat(path, settings.fsStatSettings, (error, stats)=>{
1441
- if (null !== error) {
1442
- done(error);
1443
- return;
1444
- }
1417
+ if (null !== error) return void done(error);
1445
1418
  const entry = {
1446
1419
  name,
1447
1420
  path,
@@ -1453,10 +1426,7 @@ var __webpack_modules__ = {
1453
1426
  };
1454
1427
  });
1455
1428
  rpl(tasks, (rplError, entries)=>{
1456
- if (null !== rplError) {
1457
- callFailureCallback(callback, rplError);
1458
- return;
1459
- }
1429
+ if (null !== rplError) return void callFailureCallback(callback, rplError);
1460
1430
  callSuccessCallback(callback, entries);
1461
1431
  });
1462
1432
  });
@@ -1615,10 +1585,7 @@ var __webpack_modules__ = {
1615
1585
  const settings_1 = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js");
1616
1586
  exports.Settings = settings_1.default;
1617
1587
  function stat(path, optionsOrSettingsOrCallback, callback) {
1618
- if ('function' == typeof optionsOrSettingsOrCallback) {
1619
- async.read(path, getSettings(), optionsOrSettingsOrCallback);
1620
- return;
1621
- }
1588
+ if ('function' == typeof optionsOrSettingsOrCallback) return void async.read(path, getSettings(), optionsOrSettingsOrCallback);
1622
1589
  async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
1623
1590
  }
1624
1591
  exports.stat = stat;
@@ -1639,20 +1606,11 @@ var __webpack_modules__ = {
1639
1606
  exports.read = void 0;
1640
1607
  function read(path, settings, callback) {
1641
1608
  settings.fs.lstat(path, (lstatError, lstat)=>{
1642
- if (null !== lstatError) {
1643
- callFailureCallback(callback, lstatError);
1644
- return;
1645
- }
1646
- if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
1647
- callSuccessCallback(callback, lstat);
1648
- return;
1649
- }
1609
+ if (null !== lstatError) return void callFailureCallback(callback, lstatError);
1610
+ if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return void callSuccessCallback(callback, lstat);
1650
1611
  settings.fs.stat(path, (statError, stat)=>{
1651
1612
  if (null !== statError) {
1652
- if (settings.throwErrorOnBrokenSymbolicLink) {
1653
- callFailureCallback(callback, statError);
1654
- return;
1655
- }
1613
+ if (settings.throwErrorOnBrokenSymbolicLink) return void callFailureCallback(callback, statError);
1656
1614
  callSuccessCallback(callback, lstat);
1657
1615
  return;
1658
1616
  }
@@ -1718,10 +1676,7 @@ var __webpack_modules__ = {
1718
1676
  const settings_1 = __webpack_require__("../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js");
1719
1677
  exports.Settings = settings_1.default;
1720
1678
  function walk(directory, optionsOrSettingsOrCallback, callback) {
1721
- if ('function' == typeof optionsOrSettingsOrCallback) {
1722
- new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
1723
- return;
1724
- }
1679
+ if ('function' == typeof optionsOrSettingsOrCallback) return void new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
1725
1680
  new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
1726
1681
  }
1727
1682
  exports.walk = walk;
@@ -1885,10 +1840,7 @@ var __webpack_modules__ = {
1885
1840
  }
1886
1841
  _worker(item, done) {
1887
1842
  this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries)=>{
1888
- if (null !== error) {
1889
- done(error, void 0);
1890
- return;
1891
- }
1843
+ if (null !== error) return void done(error, void 0);
1892
1844
  for (const entry of entries)this._handleEntry(entry, item.base);
1893
1845
  done(null, void 0);
1894
1846
  });
@@ -2384,10 +2336,7 @@ var __webpack_modules__ = {
2384
2336
  const src = data.src, dest = data.dest;
2385
2337
  const onFresh = data.onFresh || noop;
2386
2338
  const onDone = data.onDone || noop;
2387
- if (files.has(dest.toLowerCase())) {
2388
- onDone();
2389
- return;
2390
- }
2339
+ if (files.has(dest.toLowerCase())) return void onDone();
2391
2340
  files.add(dest.toLowerCase());
2392
2341
  if (events.ignoreBasenames.indexOf((_path || _load_path()).default.basename(src)) >= 0) return;
2393
2342
  const srcStat = yield lstat(src);
@@ -3539,10 +3488,9 @@ var __webpack_modules__ = {
3539
3488
  SafeBuffer.alloc = function(size, fill, encoding) {
3540
3489
  if ('number' != typeof size) throw new TypeError('Argument must be a number');
3541
3490
  var buf = Buffer1(size);
3542
- if (void 0 !== fill) {
3543
- if ('string' == typeof encoding) buf.fill(fill, encoding);
3544
- else buf.fill(fill);
3545
- } else buf.fill(0);
3491
+ if (void 0 !== fill) if ('string' == typeof encoding) buf.fill(fill, encoding);
3492
+ else buf.fill(fill);
3493
+ else buf.fill(0);
3546
3494
  return buf;
3547
3495
  };
3548
3496
  SafeBuffer.allocUnsafe = function(size) {
@@ -3934,12 +3882,10 @@ var __webpack_modules__ = {
3934
3882
  function checkData(data, sri, opts) {
3935
3883
  opts = opts || {};
3936
3884
  sri = parse(sri, opts);
3937
- if (!Object.keys(sri).length) {
3938
- if (!opts.error) return false;
3939
- throw Object.assign(new Error('No valid integrity hashes to check against'), {
3940
- code: 'EINTEGRITY'
3941
- });
3942
- }
3885
+ if (!Object.keys(sri).length) if (!opts.error) return false;
3886
+ else throw Object.assign(new Error('No valid integrity hashes to check against'), {
3887
+ code: 'EINTEGRITY'
3888
+ });
3943
3889
  const algorithm = sri.pickAlgorithm(opts);
3944
3890
  const digest = crypto.createHash(algorithm).update(data).digest('base64');
3945
3891
  const newSri = parse({
@@ -4794,12 +4740,10 @@ var __webpack_modules__ = {
4794
4740
  sync = false;
4795
4741
  function done() {
4796
4742
  --self1._processing;
4797
- if (self1._processing <= 0) {
4798
- if (sync) process.nextTick(function() {
4799
- self1._finish();
4800
- });
4801
- else self1._finish();
4802
- }
4743
+ if (self1._processing <= 0) if (sync) process.nextTick(function() {
4744
+ self1._finish();
4745
+ });
4746
+ else self1._finish();
4803
4747
  }
4804
4748
  }
4805
4749
  Glob.prototype._finish = function() {
@@ -4831,10 +4775,9 @@ var __webpack_modules__ = {
4831
4775
  found.forEach(function(p, i) {
4832
4776
  p = self1._makeAbs(p);
4833
4777
  rp.realpath(p, self1.realpathCache, function(er, real) {
4834
- if (er) {
4835
- if ('stat' === er.syscall) set[p] = true;
4836
- else self1.emit('error', er);
4837
- } else set[real] = true;
4778
+ if (er) if ('stat' === er.syscall) set[p] = true;
4779
+ else self1.emit('error', er);
4780
+ else set[real] = true;
4838
4781
  if (0 === --n) {
4839
4782
  self1.matches[index] = set;
4840
4783
  cb();
@@ -4886,15 +4829,12 @@ var __webpack_modules__ = {
4886
4829
  assert('function' == typeof cb);
4887
4830
  if (this.aborted) return;
4888
4831
  this._processing++;
4889
- if (this.paused) {
4890
- this._processQueue.push([
4891
- pattern,
4892
- index,
4893
- inGlobStar,
4894
- cb
4895
- ]);
4896
- return;
4897
- }
4832
+ if (this.paused) return void this._processQueue.push([
4833
+ pattern,
4834
+ index,
4835
+ inGlobStar,
4836
+ cb
4837
+ ]);
4898
4838
  var n = 0;
4899
4839
  while('string' == typeof pattern[n])n++;
4900
4840
  var prefix;
@@ -4968,13 +4908,10 @@ var __webpack_modules__ = {
4968
4908
  Glob.prototype._emitMatch = function(index, e) {
4969
4909
  if (this.aborted) return;
4970
4910
  if (isIgnored(this, e)) return;
4971
- if (this.paused) {
4972
- this._emitQueue.push([
4973
- index,
4974
- e
4975
- ]);
4976
- return;
4977
- }
4911
+ if (this.paused) return void this._emitQueue.push([
4912
+ index,
4913
+ e
4914
+ ]);
4978
4915
  var abs = isAbsolute(e) ? e : this._makeAbs(e);
4979
4916
  if (this.mark) e = this._mark(e);
4980
4917
  if (this.absolute) e = abs;
@@ -5085,7 +5022,7 @@ var __webpack_modules__ = {
5085
5022
  if (isSym && inGlobStar) return cb();
5086
5023
  for(var i = 0; i < len; i++){
5087
5024
  var e = entries[i];
5088
- if ('.' !== e.charAt(0) || !!this.dot) {
5025
+ if ('.' !== e.charAt(0) || this.dot) {
5089
5026
  var instead = gspref.concat(entries[i], remainWithoutGlobStar);
5090
5027
  this._process(instead, index, true, cb);
5091
5028
  var below = gspref.concat(entries[i], remain);
@@ -5126,8 +5063,8 @@ var __webpack_modules__ = {
5126
5063
  if (needDir && 'FILE' === c) return cb();
5127
5064
  }
5128
5065
  var stat = this.statCache[abs];
5129
- if (void 0 !== stat) {
5130
- if (false === stat) return cb(null, stat);
5066
+ if (void 0 !== stat) if (false === stat) return cb(null, stat);
5067
+ else {
5131
5068
  var type = stat.isDirectory() ? 'DIR' : 'FILE';
5132
5069
  if (needDir && 'FILE' === type) return cb();
5133
5070
  return cb(null, type, stat);
@@ -5271,15 +5208,14 @@ var __webpack_modules__ = {
5271
5208
  chop++;
5272
5209
  }
5273
5210
  yield buildToken(TOKEN_TYPES.comment, val);
5274
- } else if (' ' === input[0]) {
5275
- if (lastNewline) {
5276
- let indent = '';
5277
- for(let i = 0; ' ' === input[i]; i++)indent += input[i];
5278
- if (indent.length % 2) throw new TypeError('Invalid number of spaces');
5279
- chop = indent.length;
5280
- yield buildToken(TOKEN_TYPES.indent, indent.length / 2);
5281
- } else chop++;
5282
- } else if ('"' === input[0]) {
5211
+ } else if (' ' === input[0]) if (lastNewline) {
5212
+ let indent = '';
5213
+ for(let i = 0; ' ' === input[i]; i++)indent += input[i];
5214
+ if (indent.length % 2) throw new TypeError('Invalid number of spaces');
5215
+ chop = indent.length;
5216
+ yield buildToken(TOKEN_TYPES.indent, indent.length / 2);
5217
+ } else chop++;
5218
+ else if ('"' === input[0]) {
5283
5219
  let val = '';
5284
5220
  for(let i = 0;; i++){
5285
5221
  const currentChar = input[i];
@@ -5378,10 +5314,9 @@ var __webpack_modules__ = {
5378
5314
  if (nextToken.type !== TOKEN_TYPES.indent) break;
5379
5315
  if (nextToken.value === indent) this.next();
5380
5316
  else break;
5381
- } else if (propToken.type === TOKEN_TYPES.indent) {
5382
- if (propToken.value === indent) this.next();
5383
- else break;
5384
- } else if (propToken.type === TOKEN_TYPES.eof) break;
5317
+ } else if (propToken.type === TOKEN_TYPES.indent) if (propToken.value === indent) this.next();
5318
+ else break;
5319
+ else if (propToken.type === TOKEN_TYPES.eof) break;
5385
5320
  else if (propToken.type === TOKEN_TYPES.string) {
5386
5321
  const key = propToken.value;
5387
5322
  (0, (_invariant || _load_invariant()).default)(key, 'Expected a key');
@@ -5942,7 +5877,7 @@ var __webpack_modules__ = {
5942
5877
  var i;
5943
5878
  var split = ('string' == typeof namespaces ? namespaces : '').split(/[\s,]+/);
5944
5879
  var len = split.length;
5945
- for(i = 0; i < len; i++)if (!!split[i]) {
5880
+ for(i = 0; i < len; i++)if (split[i]) {
5946
5881
  namespaces = split[i].replace(/\*/g, '.*?');
5947
5882
  if ('-' === namespaces[0]) exports.skips.push(new RegExp('^' + namespaces.substr(1) + '$'));
5948
5883
  else exports.names.push(new RegExp('^' + namespaces + '$'));
@@ -8064,7 +7999,7 @@ var __webpack_modules__ = {
8064
7999
  function missingCallback(err) {
8065
8000
  if (err) {
8066
8001
  if (process.throwDeprecation) throw err;
8067
- if (!process.noDeprecation) {
8002
+ else if (!process.noDeprecation) {
8068
8003
  var msg = 'fs: missing callback ' + (err.stack || err.message);
8069
8004
  if (process.traceDeprecation) console.trace(msg);
8070
8005
  else console.error(msg);
@@ -8421,7 +8356,7 @@ var __webpack_modules__ = {
8421
8356
  if (isSym && inGlobStar) return;
8422
8357
  for(var i = 0; i < len; i++){
8423
8358
  var e = entries[i];
8424
- if ('.' !== e.charAt(0) || !!this.dot) {
8359
+ if ('.' !== e.charAt(0) || this.dot) {
8425
8360
  var instead = gspref.concat(entries[i], remainWithoutGlobStar);
8426
8361
  this._process(instead, index, true);
8427
8362
  var below = gspref.concat(entries[i], remain);
@@ -8977,15 +8912,15 @@ var __webpack_modules__ = {
8977
8912
  return new RegExp(pattern, onlyFirst ? void 0 : 'g');
8978
8913
  };
8979
8914
  },
8980
- "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
8981
- const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js");
8982
- const compile = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js");
8983
- const expand = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js");
8984
- const parse = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js");
8915
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
8916
+ const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
8917
+ const compile = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js");
8918
+ const expand = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js");
8919
+ const parse = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js");
8985
8920
  const braces = (input, options = {})=>{
8986
8921
  let output = [];
8987
- if (Array.isArray(input)) for (let pattern of input){
8988
- let result = braces.create(pattern, options);
8922
+ if (Array.isArray(input)) for (const pattern of input){
8923
+ const result = braces.create(pattern, options);
8989
8924
  if (Array.isArray(result)) output.push(...result);
8990
8925
  else output.push(result);
8991
8926
  }
@@ -9021,41 +8956,45 @@ var __webpack_modules__ = {
9021
8956
  };
9022
8957
  module.exports = braces;
9023
8958
  },
9024
- "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js": function(module, __unused_webpack_exports, __webpack_require__) {
9025
- const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.js");
9026
- const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js");
8959
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js": function(module, __unused_webpack_exports, __webpack_require__) {
8960
+ const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js");
8961
+ const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
9027
8962
  const compile = (ast, options = {})=>{
9028
- let walk = (node, parent = {})=>{
9029
- let invalidBlock = utils.isInvalidBrace(parent);
9030
- let invalidNode = true === node.invalid && true === options.escapeInvalid;
9031
- let invalid = true === invalidBlock || true === invalidNode;
9032
- let prefix = true === options.escapeInvalid ? '\\' : '';
8963
+ const walk = (node, parent = {})=>{
8964
+ const invalidBlock = utils.isInvalidBrace(parent);
8965
+ const invalidNode = true === node.invalid && true === options.escapeInvalid;
8966
+ const invalid = true === invalidBlock || true === invalidNode;
8967
+ const prefix = true === options.escapeInvalid ? '\\' : '';
9033
8968
  let output = '';
9034
8969
  if (true === node.isOpen) return prefix + node.value;
9035
- if (true === node.isClose) return prefix + node.value;
8970
+ if (true === node.isClose) {
8971
+ console.log('node.isClose', prefix, node.value);
8972
+ return prefix + node.value;
8973
+ }
9036
8974
  if ('open' === node.type) return invalid ? prefix + node.value : '(';
9037
8975
  if ('close' === node.type) return invalid ? prefix + node.value : ')';
9038
8976
  if ('comma' === node.type) return 'comma' === node.prev.type ? '' : invalid ? node.value : '|';
9039
8977
  if (node.value) return node.value;
9040
8978
  if (node.nodes && node.ranges > 0) {
9041
- let args = utils.reduce(node.nodes);
9042
- let range = fill(...args, {
8979
+ const args = utils.reduce(node.nodes);
8980
+ const range = fill(...args, {
9043
8981
  ...options,
9044
8982
  wrap: false,
9045
- toRegex: true
8983
+ toRegex: true,
8984
+ strictZeros: true
9046
8985
  });
9047
8986
  if (0 !== range.length) return args.length > 1 && range.length > 1 ? `(${range})` : range;
9048
8987
  }
9049
- if (node.nodes) for (let child of node.nodes)output += walk(child, node);
8988
+ if (node.nodes) for (const child of node.nodes)output += walk(child, node);
9050
8989
  return output;
9051
8990
  };
9052
8991
  return walk(ast);
9053
8992
  };
9054
8993
  module.exports = compile;
9055
8994
  },
9056
- "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js": function(module) {
8995
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js": function(module) {
9057
8996
  module.exports = {
9058
- MAX_LENGTH: 65536,
8997
+ MAX_LENGTH: 10000,
9059
8998
  CHAR_0: '0',
9060
8999
  CHAR_9: '9',
9061
9000
  CHAR_UPPERCASE_A: 'A',
@@ -9102,17 +9041,17 @@ var __webpack_modules__ = {
9102
9041
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: '\uFEFF'
9103
9042
  };
9104
9043
  },
9105
- "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js": function(module, __unused_webpack_exports, __webpack_require__) {
9106
- const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.js");
9107
- const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js");
9108
- const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js");
9044
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js": function(module, __unused_webpack_exports, __webpack_require__) {
9045
+ const fill = __webpack_require__("../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js");
9046
+ const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
9047
+ const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
9109
9048
  const append = (queue = '', stash = '', enclose = false)=>{
9110
- let result = [];
9049
+ const result = [];
9111
9050
  queue = [].concat(queue);
9112
9051
  stash = [].concat(stash);
9113
9052
  if (!stash.length) return queue;
9114
9053
  if (!queue.length) return enclose ? utils.flatten(stash).map((ele)=>`{${ele}}`) : stash;
9115
- for (let item of queue)if (Array.isArray(item)) for (let value1 of item)result.push(append(value1, stash, enclose));
9054
+ for (const item of queue)if (Array.isArray(item)) for (const value1 of item)result.push(append(value1, stash, enclose));
9116
9055
  else for (let ele of stash){
9117
9056
  if (true === enclose && 'string' == typeof ele) ele = `{${ele}}`;
9118
9057
  result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
@@ -9120,8 +9059,8 @@ var __webpack_modules__ = {
9120
9059
  return utils.flatten(result);
9121
9060
  };
9122
9061
  const expand = (ast, options = {})=>{
9123
- let rangeLimit = void 0 === options.rangeLimit ? 1000 : options.rangeLimit;
9124
- let walk = (node, parent = {})=>{
9062
+ const rangeLimit = void 0 === options.rangeLimit ? 1000 : options.rangeLimit;
9063
+ const walk = (node, parent = {})=>{
9125
9064
  node.queue = [];
9126
9065
  let p = parent;
9127
9066
  let q = parent.queue;
@@ -9129,18 +9068,12 @@ var __webpack_modules__ = {
9129
9068
  p = p.parent;
9130
9069
  q = p.queue;
9131
9070
  }
9132
- if (node.invalid || node.dollar) {
9133
- q.push(append(q.pop(), stringify(node, options)));
9134
- return;
9135
- }
9136
- if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) {
9137
- q.push(append(q.pop(), [
9138
- '{}'
9139
- ]));
9140
- return;
9141
- }
9071
+ if (node.invalid || node.dollar) return void q.push(append(q.pop(), stringify(node, options)));
9072
+ if ('brace' === node.type && true !== node.invalid && 2 === node.nodes.length) return void q.push(append(q.pop(), [
9073
+ '{}'
9074
+ ]));
9142
9075
  if (node.nodes && node.ranges > 0) {
9143
- let args = utils.reduce(node.nodes);
9076
+ const args = utils.reduce(node.nodes);
9144
9077
  if (utils.exceedsLimit(...args, options.step, rangeLimit)) throw new RangeError('expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.');
9145
9078
  let range = fill(...args, options);
9146
9079
  if (0 === range.length) range = stringify(node, options);
@@ -9148,7 +9081,7 @@ var __webpack_modules__ = {
9148
9081
  node.nodes = [];
9149
9082
  return;
9150
9083
  }
9151
- let enclose = utils.encloseBrace(node);
9084
+ const enclose = utils.encloseBrace(node);
9152
9085
  let queue = node.queue;
9153
9086
  let block = node;
9154
9087
  while('brace' !== block.type && 'root' !== block.type && block.parent){
@@ -9156,7 +9089,7 @@ var __webpack_modules__ = {
9156
9089
  queue = block.queue;
9157
9090
  }
9158
9091
  for(let i = 0; i < node.nodes.length; i++){
9159
- let child = node.nodes[i];
9092
+ const child = node.nodes[i];
9160
9093
  if ('comma' === child.type && 'brace' === node.type) {
9161
9094
  if (1 === i) queue.push('');
9162
9095
  queue.push('');
@@ -9178,26 +9111,26 @@ var __webpack_modules__ = {
9178
9111
  };
9179
9112
  module.exports = expand;
9180
9113
  },
9181
- "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
9182
- const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js");
9183
- const { MAX_LENGTH, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA, CHAR_DOT, CHAR_LEFT_PARENTHESES, CHAR_RIGHT_PARENTHESES, CHAR_LEFT_CURLY_BRACE, CHAR_RIGHT_CURLY_BRACE, CHAR_LEFT_SQUARE_BRACKET, CHAR_RIGHT_SQUARE_BRACKET, CHAR_DOUBLE_QUOTE, CHAR_SINGLE_QUOTE, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js");
9114
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js": function(module, __unused_webpack_exports, __webpack_require__) {
9115
+ const stringify = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js");
9116
+ const { MAX_LENGTH, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA, CHAR_DOT, CHAR_LEFT_PARENTHESES, CHAR_RIGHT_PARENTHESES, CHAR_LEFT_CURLY_BRACE, CHAR_RIGHT_CURLY_BRACE, CHAR_LEFT_SQUARE_BRACKET, CHAR_RIGHT_SQUARE_BRACKET, CHAR_DOUBLE_QUOTE, CHAR_SINGLE_QUOTE, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js");
9184
9117
  const parse = (input, options = {})=>{
9185
9118
  if ('string' != typeof input) throw new TypeError('Expected a string');
9186
- let opts = options || {};
9187
- let max = 'number' == typeof opts.maxLength ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
9119
+ const opts = options || {};
9120
+ const max = 'number' == typeof opts.maxLength ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
9188
9121
  if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
9189
- let ast = {
9122
+ const ast = {
9190
9123
  type: 'root',
9191
9124
  input,
9192
9125
  nodes: []
9193
9126
  };
9194
- let stack = [
9127
+ const stack = [
9195
9128
  ast
9196
9129
  ];
9197
9130
  let block = ast;
9198
9131
  let prev = ast;
9199
9132
  let brackets = 0;
9200
- let length = input.length;
9133
+ const length = input.length;
9201
9134
  let index = 0;
9202
9135
  let depth = 0;
9203
9136
  let value1;
@@ -9288,7 +9221,7 @@ var __webpack_modules__ = {
9288
9221
  continue;
9289
9222
  }
9290
9223
  if (value1 === CHAR_DOUBLE_QUOTE || value1 === CHAR_SINGLE_QUOTE || value1 === CHAR_BACKTICK) {
9291
- let open = value1;
9224
+ const open = value1;
9292
9225
  let next;
9293
9226
  if (true !== options.keepQuotes) value1 = '';
9294
9227
  while(index < length && (next = advance())){
@@ -9310,8 +9243,8 @@ var __webpack_modules__ = {
9310
9243
  }
9311
9244
  if (value1 === CHAR_LEFT_CURLY_BRACE) {
9312
9245
  depth++;
9313
- let dollar = prev.value && '$' === prev.value.slice(-1) || true === block.dollar;
9314
- let brace = {
9246
+ const dollar = prev.value && '$' === prev.value.slice(-1) || true === block.dollar;
9247
+ const brace = {
9315
9248
  type: 'brace',
9316
9249
  open: true,
9317
9250
  close: false,
@@ -9337,7 +9270,7 @@ var __webpack_modules__ = {
9337
9270
  });
9338
9271
  continue;
9339
9272
  }
9340
- let type = 'close';
9273
+ const type = 'close';
9341
9274
  block = stack.pop();
9342
9275
  block.close = true;
9343
9276
  push({
@@ -9351,7 +9284,7 @@ var __webpack_modules__ = {
9351
9284
  if (value1 === CHAR_COMMA && depth > 0) {
9352
9285
  if (block.ranges > 0) {
9353
9286
  block.ranges = 0;
9354
- let open = block.nodes.shift();
9287
+ const open = block.nodes.shift();
9355
9288
  block.nodes = [
9356
9289
  open,
9357
9290
  {
@@ -9368,7 +9301,7 @@ var __webpack_modules__ = {
9368
9301
  continue;
9369
9302
  }
9370
9303
  if (value1 === CHAR_DOT && depth > 0 && 0 === block.commas) {
9371
- let siblings = block.nodes;
9304
+ const siblings = block.nodes;
9372
9305
  if (0 === depth || 0 === siblings.length) {
9373
9306
  push({
9374
9307
  type: 'text',
@@ -9392,7 +9325,7 @@ var __webpack_modules__ = {
9392
9325
  }
9393
9326
  if ('range' === prev.type) {
9394
9327
  siblings.pop();
9395
- let before = siblings[siblings.length - 1];
9328
+ const before = siblings[siblings.length - 1];
9396
9329
  before.value += prev.value + value1;
9397
9330
  prev = before;
9398
9331
  block.ranges--;
@@ -9420,8 +9353,8 @@ var __webpack_modules__ = {
9420
9353
  node.invalid = true;
9421
9354
  }
9422
9355
  });
9423
- let parent = stack[stack.length - 1];
9424
- let index = parent.nodes.indexOf(block);
9356
+ const parent = stack[stack.length - 1];
9357
+ const index = parent.nodes.indexOf(block);
9425
9358
  parent.nodes.splice(index, 1, ...block.nodes);
9426
9359
  }
9427
9360
  }while (stack.length > 0);
@@ -9432,25 +9365,25 @@ var __webpack_modules__ = {
9432
9365
  };
9433
9366
  module.exports = parse;
9434
9367
  },
9435
- "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js": function(module, __unused_webpack_exports, __webpack_require__) {
9436
- const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js");
9368
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js": function(module, __unused_webpack_exports, __webpack_require__) {
9369
+ const utils = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js");
9437
9370
  module.exports = (ast, options = {})=>{
9438
- let stringify = (node, parent = {})=>{
9439
- let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
9440
- let invalidNode = true === node.invalid && true === options.escapeInvalid;
9371
+ const stringify = (node, parent = {})=>{
9372
+ const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
9373
+ const invalidNode = true === node.invalid && true === options.escapeInvalid;
9441
9374
  let output = '';
9442
9375
  if (node.value) {
9443
9376
  if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) return '\\' + node.value;
9444
9377
  return node.value;
9445
9378
  }
9446
9379
  if (node.value) return node.value;
9447
- if (node.nodes) for (let child of node.nodes)output += stringify(child);
9380
+ if (node.nodes) for (const child of node.nodes)output += stringify(child);
9448
9381
  return output;
9449
9382
  };
9450
9383
  return stringify(ast);
9451
9384
  };
9452
9385
  },
9453
- "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js": function(__unused_webpack_module, exports) {
9386
+ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js": function(__unused_webpack_module, exports) {
9454
9387
  exports.isInteger = (num)=>{
9455
9388
  if ('number' == typeof num) return Number.isInteger(num);
9456
9389
  if ('string' == typeof num && '' !== num.trim()) return Number.isInteger(Number(num));
@@ -9463,7 +9396,7 @@ var __webpack_modules__ = {
9463
9396
  return (Number(max) - Number(min)) / Number(step) >= limit;
9464
9397
  };
9465
9398
  exports.escapeNode = (block, n = 0, type)=>{
9466
- let node = block.nodes[n];
9399
+ const node = block.nodes[n];
9467
9400
  if (!node) return;
9468
9401
  if (type && node.type === type || 'open' === node.type || 'close' === node.type) {
9469
9402
  if (true !== node.escaped) {
@@ -9506,8 +9439,12 @@ var __webpack_modules__ = {
9506
9439
  const result = [];
9507
9440
  const flat = (arr)=>{
9508
9441
  for(let i = 0; i < arr.length; i++){
9509
- let ele = arr[i];
9510
- Array.isArray(ele) ? flat(ele, result) : void 0 !== ele && result.push(ele);
9442
+ const ele = arr[i];
9443
+ if (Array.isArray(ele)) {
9444
+ flat(ele);
9445
+ continue;
9446
+ }
9447
+ if (void 0 !== ele) result.push(ele);
9511
9448
  }
9512
9449
  return result;
9513
9450
  };
@@ -9826,16 +9763,15 @@ var __webpack_modules__ = {
9826
9763
  let templateIndex = 0;
9827
9764
  let starIndex = -1;
9828
9765
  let matchIndex = 0;
9829
- while(searchIndex < search.length)if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || '*' === template[templateIndex])) {
9830
- if ('*' === template[templateIndex]) {
9831
- starIndex = templateIndex;
9832
- matchIndex = searchIndex;
9833
- templateIndex++;
9834
- } else {
9835
- searchIndex++;
9836
- templateIndex++;
9837
- }
9766
+ while(searchIndex < search.length)if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || '*' === template[templateIndex])) if ('*' === template[templateIndex]) {
9767
+ starIndex = templateIndex;
9768
+ matchIndex = searchIndex;
9769
+ templateIndex++;
9838
9770
  } else {
9771
+ searchIndex++;
9772
+ templateIndex++;
9773
+ }
9774
+ else {
9839
9775
  if (-1 === starIndex) return false;
9840
9776
  templateIndex = starIndex + 1;
9841
9777
  matchIndex++;
@@ -10676,7 +10612,7 @@ var __webpack_modules__ = {
10676
10612
  for (const pattern of patterns){
10677
10613
  const filepath = this._getFullEntryPath(pattern);
10678
10614
  const entry = this._getEntry(filepath, pattern, options);
10679
- if (null !== entry && !!options.entryFilter(entry)) entries.push(entry);
10615
+ if (null !== entry && options.entryFilter(entry)) entries.push(entry);
10680
10616
  }
10681
10617
  return entries;
10682
10618
  }
@@ -10877,7 +10813,7 @@ var __webpack_modules__ = {
10877
10813
  exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
10878
10814
  const path = __webpack_require__("path");
10879
10815
  const globParent = __webpack_require__("../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js");
10880
- const micromatch = __webpack_require__("../../node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js");
10816
+ const micromatch = __webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js");
10881
10817
  const GLOBSTAR = '**';
10882
10818
  const ESCAPE_SYMBOL = '\\';
10883
10819
  const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
@@ -11116,16 +11052,15 @@ var __webpack_modules__ = {
11116
11052
  current.value = value1;
11117
11053
  current.callback = done || noop;
11118
11054
  current.errorHandler = errorHandler;
11119
- if (_running === self1.concurrency || self1.paused) {
11120
- if (queueTail) {
11121
- queueTail.next = current;
11122
- queueTail = current;
11123
- } else {
11124
- queueHead = current;
11125
- queueTail = current;
11126
- self1.saturated();
11127
- }
11055
+ if (_running === self1.concurrency || self1.paused) if (queueTail) {
11056
+ queueTail.next = current;
11057
+ queueTail = current;
11128
11058
  } else {
11059
+ queueHead = current;
11060
+ queueTail = current;
11061
+ self1.saturated();
11062
+ }
11063
+ else {
11129
11064
  _running++;
11130
11065
  worker.call(context, current.value, current.worked);
11131
11066
  }
@@ -11136,16 +11071,15 @@ var __webpack_modules__ = {
11136
11071
  current.release = release;
11137
11072
  current.value = value1;
11138
11073
  current.callback = done || noop;
11139
- if (_running === self1.concurrency || self1.paused) {
11140
- if (queueHead) {
11141
- current.next = queueHead;
11142
- queueHead = current;
11143
- } else {
11144
- queueHead = current;
11145
- queueTail = current;
11146
- self1.saturated();
11147
- }
11074
+ if (_running === self1.concurrency || self1.paused) if (queueHead) {
11075
+ current.next = queueHead;
11076
+ queueHead = current;
11148
11077
  } else {
11078
+ queueHead = current;
11079
+ queueTail = current;
11080
+ self1.saturated();
11081
+ }
11082
+ else {
11149
11083
  _running++;
11150
11084
  worker.call(context, current.value, current.worked);
11151
11085
  }
@@ -11153,16 +11087,15 @@ var __webpack_modules__ = {
11153
11087
  function release(holder) {
11154
11088
  if (holder) cache.release(holder);
11155
11089
  var next = queueHead;
11156
- if (next) {
11157
- if (self1.paused) _running--;
11158
- else {
11159
- if (queueTail === queueHead) queueTail = null;
11160
- queueHead = next.next;
11161
- next.next = null;
11162
- worker.call(context, next.value, next.worked);
11163
- if (null === queueTail) self1.empty();
11164
- }
11165
- } else if (0 === --_running) self1.drain();
11090
+ if (next) if (self1.paused) _running--;
11091
+ else {
11092
+ if (queueTail === queueHead) queueTail = null;
11093
+ queueHead = next.next;
11094
+ next.next = null;
11095
+ worker.call(context, next.value, next.worked);
11096
+ if (null === queueTail) self1.empty();
11097
+ }
11098
+ else if (0 === --_running) self1.drain();
11166
11099
  }
11167
11100
  function kill() {
11168
11101
  queueHead = null;
@@ -11220,10 +11153,7 @@ var __webpack_modules__ = {
11220
11153
  function push(value1) {
11221
11154
  var p = new Promise(function(resolve, reject) {
11222
11155
  pushCb(value1, function(err, result) {
11223
- if (err) {
11224
- reject(err);
11225
- return;
11226
- }
11156
+ if (err) return void reject(err);
11227
11157
  resolve(result);
11228
11158
  });
11229
11159
  });
@@ -11233,10 +11163,7 @@ var __webpack_modules__ = {
11233
11163
  function unshift(value1) {
11234
11164
  var p = new Promise(function(resolve, reject) {
11235
11165
  unshiftCb(value1, function(err, result) {
11236
- if (err) {
11237
- reject(err);
11238
- return;
11239
- }
11166
+ if (err) return void reject(err);
11240
11167
  resolve(result);
11241
11168
  });
11242
11169
  });
@@ -11260,7 +11187,7 @@ var __webpack_modules__ = {
11260
11187
  module.exports = fastqueue;
11261
11188
  module.exports.promise = queueAsPromised;
11262
11189
  },
11263
- "../../node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
11190
+ "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
11264
11191
  /*!
11265
11192
  * fill-range <https://github.com/jonschlinkert/fill-range>
11266
11193
  *
@@ -11302,15 +11229,15 @@ var __webpack_modules__ = {
11302
11229
  while(input.length < maxLength)input = '0' + input;
11303
11230
  return negative ? '-' + input : input;
11304
11231
  };
11305
- const toSequence = (parts, options)=>{
11232
+ const toSequence = (parts, options, maxLen)=>{
11306
11233
  parts.negatives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
11307
11234
  parts.positives.sort((a, b)=>a < b ? -1 : a > b ? 1 : 0);
11308
11235
  let prefix = options.capture ? '' : '?:';
11309
11236
  let positives = '';
11310
11237
  let negatives = '';
11311
11238
  let result;
11312
- if (parts.positives.length) positives = parts.positives.join('|');
11313
- if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.join('|')})`;
11239
+ if (parts.positives.length) positives = parts.positives.map((v)=>toMaxLen(String(v), maxLen)).join('|');
11240
+ if (parts.negatives.length) negatives = `-(${prefix}${parts.negatives.map((v)=>toMaxLen(String(v), maxLen)).join('|')})`;
11314
11241
  result = positives && negatives ? `${positives}|${negatives}` : positives || negatives;
11315
11242
  if (options.wrap) return `(${prefix}${result})`;
11316
11243
  return result;
@@ -11380,7 +11307,7 @@ var __webpack_modules__ = {
11380
11307
  a = descending ? a - step : a + step;
11381
11308
  index++;
11382
11309
  }
11383
- if (true === options.toRegex) return step > 1 ? toSequence(parts, options) : toRegex(range, null, {
11310
+ if (true === options.toRegex) return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, {
11384
11311
  wrap: false,
11385
11312
  ...options
11386
11313
  });
@@ -11432,7 +11359,7 @@ var __webpack_modules__ = {
11432
11359
  module.exports = fill;
11433
11360
  },
11434
11361
  "../../node_modules/.pnpm/git-up@7.0.0/node_modules/git-up/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
11435
- var parseUrl = __webpack_require__("../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js"), isSsh = __webpack_require__("../../node_modules/.pnpm/is-ssh@1.4.0/node_modules/is-ssh/lib/index.js");
11362
+ var parseUrl = __webpack_require__("../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js"), isSsh = __webpack_require__("../../node_modules/.pnpm/is-ssh@1.4.1/node_modules/is-ssh/lib/index.js");
11436
11363
  function gitUp(input) {
11437
11364
  var output = parseUrl(input);
11438
11365
  output.token = "";
@@ -11694,37 +11621,36 @@ var __webpack_modules__ = {
11694
11621
  "../../node_modules/.pnpm/immediate@3.0.6/node_modules/immediate/lib/index.js": function(module) {
11695
11622
  var Mutation = global.MutationObserver || global.WebKitMutationObserver;
11696
11623
  var scheduleDrain;
11697
- if (process.browser) {
11698
- if (Mutation) {
11699
- var called = 0;
11700
- var observer = new Mutation(nextTick);
11701
- var element = global.document.createTextNode('');
11702
- observer.observe(element, {
11703
- characterData: true
11704
- });
11705
- scheduleDrain = function() {
11706
- element.data = called = ++called % 2;
11707
- };
11708
- } else if (global.setImmediate || void 0 === global.MessageChannel) scheduleDrain = 'document' in global && 'onreadystatechange' in global.document.createElement("script") ? function() {
11709
- var scriptEl = global.document.createElement("script");
11710
- scriptEl.onreadystatechange = function() {
11711
- nextTick();
11712
- scriptEl.onreadystatechange = null;
11713
- scriptEl.parentNode.removeChild(scriptEl);
11714
- scriptEl = null;
11715
- };
11716
- global.document.documentElement.appendChild(scriptEl);
11717
- } : function() {
11718
- setTimeout(nextTick, 0);
11624
+ if (process.browser) if (Mutation) {
11625
+ var called = 0;
11626
+ var observer = new Mutation(nextTick);
11627
+ var element = global.document.createTextNode('');
11628
+ observer.observe(element, {
11629
+ characterData: true
11630
+ });
11631
+ scheduleDrain = function() {
11632
+ element.data = called = ++called % 2;
11633
+ };
11634
+ } else if (global.setImmediate || void 0 === global.MessageChannel) scheduleDrain = 'document' in global && 'onreadystatechange' in global.document.createElement("script") ? function() {
11635
+ var scriptEl = global.document.createElement("script");
11636
+ scriptEl.onreadystatechange = function() {
11637
+ nextTick();
11638
+ scriptEl.onreadystatechange = null;
11639
+ scriptEl.parentNode.removeChild(scriptEl);
11640
+ scriptEl = null;
11641
+ };
11642
+ global.document.documentElement.appendChild(scriptEl);
11643
+ } : function() {
11644
+ setTimeout(nextTick, 0);
11645
+ };
11646
+ else {
11647
+ var channel = new global.MessageChannel();
11648
+ channel.port1.onmessage = nextTick;
11649
+ scheduleDrain = function() {
11650
+ channel.port2.postMessage(0);
11719
11651
  };
11720
- else {
11721
- var channel = new global.MessageChannel();
11722
- channel.port1.onmessage = nextTick;
11723
- scheduleDrain = function() {
11724
- channel.port2.postMessage(0);
11725
- };
11726
- }
11727
- } else scheduleDrain = function() {
11652
+ }
11653
+ else scheduleDrain = function() {
11728
11654
  process.nextTick(nextTick);
11729
11655
  };
11730
11656
  var draining;
@@ -11911,8 +11837,8 @@ var __webpack_modules__ = {
11911
11837
  return false;
11912
11838
  };
11913
11839
  },
11914
- "../../node_modules/.pnpm/is-ssh@1.4.0/node_modules/is-ssh/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
11915
- var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.1/node_modules/protocols/lib/index.js");
11840
+ "../../node_modules/.pnpm/is-ssh@1.4.1/node_modules/is-ssh/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
11841
+ var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js");
11916
11842
  function isSsh(input) {
11917
11843
  if (Array.isArray(input)) return -1 !== input.indexOf("ssh") || -1 !== input.indexOf("rsync");
11918
11844
  if ("string" != typeof input) return false;
@@ -12145,10 +12071,9 @@ var __webpack_modules__ = {
12145
12071
  }
12146
12072
  if (i === path.length - 1) check_if_can_be_placed(path[i], data, void 0 === value1);
12147
12073
  var new_key = !(path[i] in data);
12148
- if (void 0 === value1) {
12149
- if (Array.isArray(data)) data.pop();
12150
- else delete data[path[i]];
12151
- } else data[path[i]] = value1;
12074
+ if (void 0 === value1) if (Array.isArray(data)) data.pop();
12075
+ else delete data[path[i]];
12076
+ else data[path[i]] = value1;
12152
12077
  }
12153
12078
  if (!this._tokens.length) this._tokens = [
12154
12079
  {
@@ -12261,32 +12186,30 @@ var __webpack_modules__ = {
12261
12186
  change([], self1._data, value1);
12262
12187
  return self1;
12263
12188
  function change(path, old_data, new_data) {
12264
- if (isObject(new_data) && isObject(old_data)) {
12265
- if (Array.isArray(new_data) != Array.isArray(old_data)) self1.set(path, new_data);
12266
- else if (Array.isArray(new_data)) {
12267
- if (new_data.length > old_data.length) for(var i = 0; i < new_data.length; i++){
12268
- path.push(String(i));
12269
- change(path, old_data[i], new_data[i]);
12270
- path.pop();
12271
- }
12272
- else for(var i = old_data.length - 1; i >= 0; i--){
12273
- path.push(String(i));
12274
- change(path, old_data[i], new_data[i]);
12275
- path.pop();
12276
- }
12277
- } else {
12278
- for(var i in new_data){
12279
- path.push(String(i));
12280
- change(path, old_data[i], new_data[i]);
12281
- path.pop();
12282
- }
12283
- for(var i in old_data)if (!(i in new_data)) {
12284
- path.push(String(i));
12285
- change(path, old_data[i], new_data[i]);
12286
- path.pop();
12287
- }
12189
+ if (isObject(new_data) && isObject(old_data)) if (Array.isArray(new_data) != Array.isArray(old_data)) self1.set(path, new_data);
12190
+ else if (Array.isArray(new_data)) if (new_data.length > old_data.length) for(var i = 0; i < new_data.length; i++){
12191
+ path.push(String(i));
12192
+ change(path, old_data[i], new_data[i]);
12193
+ path.pop();
12194
+ }
12195
+ else for(var i = old_data.length - 1; i >= 0; i--){
12196
+ path.push(String(i));
12197
+ change(path, old_data[i], new_data[i]);
12198
+ path.pop();
12199
+ }
12200
+ else {
12201
+ for(var i in new_data){
12202
+ path.push(String(i));
12203
+ change(path, old_data[i], new_data[i]);
12204
+ path.pop();
12288
12205
  }
12289
- } else if (new_data !== old_data) self1.set(path, new_data);
12206
+ for(var i in old_data)if (!(i in new_data)) {
12207
+ path.push(String(i));
12208
+ change(path, old_data[i], new_data[i]);
12209
+ path.pop();
12210
+ }
12211
+ }
12212
+ else if (new_data !== old_data) self1.set(path, new_data);
12290
12213
  }
12291
12214
  };
12292
12215
  Document.prototype.toString = function() {
@@ -12325,7 +12248,7 @@ var __webpack_modules__ = {
12325
12248
  var result = msg + ' at ' + (lineno + 1) + ':' + (column + 1), tmppos = position - column - 1, srcline = '', underline = '';
12326
12249
  var isLineTerminator = json5 ? Uni.isLineTerminator : Uni.isLineTerminatorJSON;
12327
12250
  if (tmppos < position - 70) tmppos = position - 70;
12328
- while(true){
12251
+ while(1){
12329
12252
  var chr = input[++tmppos];
12330
12253
  if (isLineTerminator(chr) || tmppos === input.length) {
12331
12254
  if (position >= tmppos) underline += '^';
@@ -12475,16 +12398,10 @@ var __webpack_modules__ = {
12475
12398
  while(position < length){
12476
12399
  var chr = input[position++];
12477
12400
  if (isLineTerminator(chr)) {
12478
- if (!multi) {
12479
- position--;
12480
- return;
12481
- }
12401
+ if (!multi) return void position--;
12482
12402
  newline(chr);
12483
12403
  } else if ('*' === chr && multi) {
12484
- if ('/' === input[position]) {
12485
- position++;
12486
- return;
12487
- }
12404
+ if ('/' === input[position]) return void position++;
12488
12405
  }
12489
12406
  }
12490
12407
  if (multi) fail('Unclosed multiline comment');
@@ -12650,13 +12567,12 @@ var __webpack_modules__ = {
12650
12567
  chr = String.fromCharCode(parseInt(input.substr(position + 1, 4), 16));
12651
12568
  position += 5;
12652
12569
  }
12653
- if (result.length) {
12654
- if (Uni.isIdentifierPart(chr)) result += chr;
12655
- else {
12656
- position--;
12657
- return result;
12658
- }
12659
- } else {
12570
+ if (result.length) if (Uni.isIdentifierPart(chr)) result += chr;
12571
+ else {
12572
+ position--;
12573
+ return result;
12574
+ }
12575
+ else {
12660
12576
  if (!Uni.isIdentifierStart(chr)) return;
12661
12577
  result += chr;
12662
12578
  }
@@ -12791,10 +12707,9 @@ var __webpack_modules__ = {
12791
12707
  if (!Uni.isIdentifierPart(key[i])) return _stringify_str(key);
12792
12708
  } else if (!Uni.isIdentifierStart(key[i])) return _stringify_str(key);
12793
12709
  var chr = key.charCodeAt(i);
12794
- if (options.ascii) {
12795
- if (chr < 0x80) result += key[i];
12796
- else result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
12797
- } else if (escapable.exec(key[i])) result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
12710
+ if (options.ascii) if (chr < 0x80) result += key[i];
12711
+ else result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
12712
+ else if (escapable.exec(key[i])) result += '\\u' + ('0000' + chr.toString(16)).slice(-4);
12798
12713
  else result += key[i];
12799
12714
  }
12800
12715
  return result;
@@ -12805,27 +12720,22 @@ var __webpack_modules__ = {
12805
12720
  var result = '';
12806
12721
  for(var i = 0; i < key.length; i++){
12807
12722
  var chr = key.charCodeAt(i);
12808
- if (chr < 0x10) {
12809
- if (0 === chr && json5) result += '\\0';
12810
- else if (chr >= 8 && chr <= 13 && (json5 || 11 !== chr)) result += special_chars[chr];
12811
- else if (json5) result += '\\x0' + chr.toString(16);
12812
- else result += '\\u000' + chr.toString(16);
12813
- } else if (chr < 0x20) {
12814
- if (json5) result += '\\x' + chr.toString(16);
12815
- else result += '\\u00' + chr.toString(16);
12816
- } else if (chr >= 0x20 && chr < 0x80) {
12817
- if (47 === chr && i && '<' === key[i - 1]) result += '\\' + key[i];
12818
- else if (92 === chr) result += '\\\\';
12819
- else if (chr === quoteChr) result += '\\' + quote;
12820
- else result += key[i];
12821
- } else if (options.ascii || Uni.isLineTerminator(key[i]) || escapable.exec(key[i])) {
12822
- if (chr < 0x100) {
12823
- if (json5) result += '\\x' + chr.toString(16);
12824
- else result += '\\u00' + chr.toString(16);
12825
- } else if (chr < 0x1000) result += '\\u0' + chr.toString(16);
12826
- else if (chr < 0x10000) result += '\\u' + chr.toString(16);
12827
- else throw Error('weird codepoint');
12828
- } else result += key[i];
12723
+ if (chr < 0x10) if (0 === chr && json5) result += '\\0';
12724
+ else if (chr >= 8 && chr <= 13 && (json5 || 11 !== chr)) result += special_chars[chr];
12725
+ else if (json5) result += '\\x0' + chr.toString(16);
12726
+ else result += '\\u000' + chr.toString(16);
12727
+ else if (chr < 0x20) if (json5) result += '\\x' + chr.toString(16);
12728
+ else result += '\\u00' + chr.toString(16);
12729
+ else if (chr >= 0x20 && chr < 0x80) if (47 === chr && i && '<' === key[i - 1]) result += '\\' + key[i];
12730
+ else if (92 === chr) result += '\\\\';
12731
+ else if (chr === quoteChr) result += '\\' + quote;
12732
+ else result += key[i];
12733
+ else if (options.ascii || Uni.isLineTerminator(key[i]) || escapable.exec(key[i])) if (chr < 0x100) if (json5) result += '\\x' + chr.toString(16);
12734
+ else result += '\\u00' + chr.toString(16);
12735
+ else if (chr < 0x1000) result += '\\u0' + chr.toString(16);
12736
+ else if (chr < 0x10000) result += '\\u' + chr.toString(16);
12737
+ else throw Error('weird codepoint');
12738
+ else result += key[i];
12829
12739
  }
12830
12740
  return quote + result + quote;
12831
12741
  }
@@ -12925,10 +12835,9 @@ var __webpack_modules__ = {
12925
12835
  if ('object' == typeof options.indent) {
12926
12836
  if (options.indent.constructor === Number || options.indent.constructor === Boolean || options.indent.constructor === String) options.indent = options.indent.valueOf();
12927
12837
  }
12928
- if ('number' == typeof options.indent) {
12929
- if (options.indent >= 0) options.indent = Array(Math.min(~~options.indent, 10) + 1).join(' ');
12930
- else options.indent = false;
12931
- } else if ('string' == typeof options.indent) options.indent = options.indent.substr(0, 10);
12838
+ if ('number' == typeof options.indent) if (options.indent >= 0) options.indent = Array(Math.min(~~options.indent, 10) + 1).join(' ');
12839
+ else options.indent = false;
12840
+ else if ('string' == typeof options.indent) options.indent = options.indent.substr(0, 10);
12932
12841
  if (null == options._splitMin) options._splitMin = 50;
12933
12842
  if (null == options._splitMax) options._splitMax = 70;
12934
12843
  return _stringify(object, options, 0, '');
@@ -13433,10 +13342,10 @@ var __webpack_modules__ = {
13433
13342
  objectKey = objectKeyList[index];
13434
13343
  objectValue = object[objectKey];
13435
13344
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
13436
- if (!!writeNode(state, level, objectKey, false, false)) {
13345
+ if (writeNode(state, level, objectKey, false, false)) {
13437
13346
  if (state.dump.length > 1024) pairBuffer += '? ';
13438
13347
  pairBuffer += state.dump + (state.condenseFlow ? '"' : '') + ':' + (state.condenseFlow ? '' : ' ');
13439
- if (!!writeNode(state, level, objectValue, false, false)) {
13348
+ if (writeNode(state, level, objectValue, false, false)) {
13440
13349
  pairBuffer += state.dump;
13441
13350
  _result += pairBuffer;
13442
13351
  }
@@ -13456,15 +13365,13 @@ var __webpack_modules__ = {
13456
13365
  objectKey = objectKeyList[index];
13457
13366
  objectValue = object[objectKey];
13458
13367
  if (state.replacer) objectValue = state.replacer.call(object, objectKey, objectValue);
13459
- if (!!writeNode(state, level + 1, objectKey, true, true, true)) {
13368
+ if (writeNode(state, level + 1, objectKey, true, true, true)) {
13460
13369
  explicitPair = null !== state.tag && '?' !== state.tag || state.dump && state.dump.length > 1024;
13461
- if (explicitPair) {
13462
- if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += '?';
13463
- else pairBuffer += '? ';
13464
- }
13370
+ if (explicitPair) if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += '?';
13371
+ else pairBuffer += '? ';
13465
13372
  pairBuffer += state.dump;
13466
13373
  if (explicitPair) pairBuffer += generateNextLine(state, level);
13467
- if (!!writeNode(state, level + 1, objectValue, true, explicitPair)) {
13374
+ if (writeNode(state, level + 1, objectValue, true, explicitPair)) {
13468
13375
  if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) pairBuffer += ':';
13469
13376
  else pairBuffer += ': ';
13470
13377
  pairBuffer += state.dump;
@@ -13481,10 +13388,9 @@ var __webpack_modules__ = {
13481
13388
  for(index = 0, length = typeList.length; index < length; index += 1){
13482
13389
  type = typeList[index];
13483
13390
  if ((type.instanceOf || type.predicate) && (!type.instanceOf || 'object' == typeof object && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
13484
- if (explicit) {
13485
- if (type.multi && type.representName) state.tag = type.representName(object);
13486
- else state.tag = type.tag;
13487
- } else state.tag = '?';
13391
+ if (explicit) if (type.multi && type.representName) state.tag = type.representName(object);
13392
+ else state.tag = type.tag;
13393
+ else state.tag = '?';
13488
13394
  if (type.represent) {
13489
13395
  style = state.styleMap[type.tag] || type.defaultStyle;
13490
13396
  if ('[object Function]' === _toString.call(type.represent)) _result = type.represent(object, style);
@@ -13514,23 +13420,21 @@ var __webpack_modules__ = {
13514
13420
  if (duplicate && state.usedDuplicates[duplicateIndex]) state.dump = '*ref_' + duplicateIndex;
13515
13421
  else {
13516
13422
  if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) state.usedDuplicates[duplicateIndex] = true;
13517
- if ('[object Object]' === type) {
13518
- if (block && 0 !== Object.keys(state.dump).length) {
13519
- writeBlockMapping(state, level, state.dump, compact);
13520
- if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
13521
- } else {
13522
- writeFlowMapping(state, level, state.dump);
13523
- if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
13524
- }
13525
- } else if ('[object Array]' === type) {
13526
- if (block && 0 !== state.dump.length) {
13527
- state.noArrayIndent && !isblockseq && level > 0 ? writeBlockSequence(state, level - 1, state.dump, compact) : writeBlockSequence(state, level, state.dump, compact);
13528
- if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
13529
- } else {
13530
- writeFlowSequence(state, level, state.dump);
13531
- if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
13532
- }
13533
- } else if ('[object String]' === type) {
13423
+ if ('[object Object]' === type) if (block && 0 !== Object.keys(state.dump).length) {
13424
+ writeBlockMapping(state, level, state.dump, compact);
13425
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
13426
+ } else {
13427
+ writeFlowMapping(state, level, state.dump);
13428
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
13429
+ }
13430
+ else if ('[object Array]' === type) if (block && 0 !== state.dump.length) {
13431
+ state.noArrayIndent && !isblockseq && level > 0 ? writeBlockSequence(state, level - 1, state.dump, compact) : writeBlockSequence(state, level, state.dump, compact);
13432
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + state.dump;
13433
+ } else {
13434
+ writeFlowSequence(state, level, state.dump);
13435
+ if (duplicate) state.dump = '&ref_' + duplicateIndex + ' ' + state.dump;
13436
+ }
13437
+ else if ('[object String]' === type) {
13534
13438
  if ('?' !== state.tag) writeScalar(state, state.dump, level, iskey, inblock);
13535
13439
  } else {
13536
13440
  if ('[object Undefined]' === type) return false;
@@ -13769,10 +13673,9 @@ var __webpack_modules__ = {
13769
13673
  if ('object' == typeof keyNode && '[object Object]' === _class(keyNode)) keyNode = '[object Object]';
13770
13674
  keyNode = String(keyNode);
13771
13675
  if (null === _result) _result = {};
13772
- if ('tag:yaml.org,2002:merge' === keyTag) {
13773
- if (Array.isArray(valueNode)) for(index = 0, quantity = valueNode.length; index < quantity; index += 1)mergeMappings(state, _result, valueNode[index], overridableKeys);
13774
- else mergeMappings(state, _result, valueNode, overridableKeys);
13775
- } else {
13676
+ if ('tag:yaml.org,2002:merge' === keyTag) if (Array.isArray(valueNode)) for(index = 0, quantity = valueNode.length; index < quantity; index += 1)mergeMappings(state, _result, valueNode[index], overridableKeys);
13677
+ else mergeMappings(state, _result, valueNode, overridableKeys);
13678
+ else {
13776
13679
  if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
13777
13680
  state.line = startLine || state.line;
13778
13681
  state.lineStart = startLineStart || state.lineStart;
@@ -13924,40 +13827,37 @@ var __webpack_modules__ = {
13924
13827
  state.result = '';
13925
13828
  state.position++;
13926
13829
  captureStart = captureEnd = state.position;
13927
- while(0 !== (ch = state.input.charCodeAt(state.position))){
13928
- if (0x22 === ch) {
13929
- captureSegment(state, captureStart, state.position, true);
13830
+ while(0 !== (ch = state.input.charCodeAt(state.position)))if (0x22 === ch) {
13831
+ captureSegment(state, captureStart, state.position, true);
13832
+ state.position++;
13833
+ return true;
13834
+ } else if (0x5C === ch) {
13835
+ captureSegment(state, captureStart, state.position, true);
13836
+ ch = state.input.charCodeAt(++state.position);
13837
+ if (is_EOL(ch)) skipSeparationSpace(state, false, nodeIndent);
13838
+ else if (ch < 256 && simpleEscapeCheck[ch]) {
13839
+ state.result += simpleEscapeMap[ch];
13930
13840
  state.position++;
13931
- return true;
13932
- }
13933
- if (0x5C === ch) {
13934
- captureSegment(state, captureStart, state.position, true);
13935
- ch = state.input.charCodeAt(++state.position);
13936
- if (is_EOL(ch)) skipSeparationSpace(state, false, nodeIndent);
13937
- else if (ch < 256 && simpleEscapeCheck[ch]) {
13938
- state.result += simpleEscapeMap[ch];
13939
- state.position++;
13940
- } else if ((tmp = escapedHexLen(ch)) > 0) {
13941
- hexLength = tmp;
13942
- hexResult = 0;
13943
- for(; hexLength > 0; hexLength--){
13944
- ch = state.input.charCodeAt(++state.position);
13945
- if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
13946
- else throwError(state, 'expected hexadecimal character');
13947
- }
13948
- state.result += charFromCodepoint(hexResult);
13949
- state.position++;
13950
- } else throwError(state, 'unknown escape sequence');
13951
- captureStart = captureEnd = state.position;
13952
- } else if (is_EOL(ch)) {
13953
- captureSegment(state, captureStart, captureEnd, true);
13954
- writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
13955
- captureStart = captureEnd = state.position;
13956
- } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, 'unexpected end of the document within a double quoted scalar');
13957
- else {
13841
+ } else if ((tmp = escapedHexLen(ch)) > 0) {
13842
+ hexLength = tmp;
13843
+ hexResult = 0;
13844
+ for(; hexLength > 0; hexLength--){
13845
+ ch = state.input.charCodeAt(++state.position);
13846
+ if ((tmp = fromHexCode(ch)) >= 0) hexResult = (hexResult << 4) + tmp;
13847
+ else throwError(state, 'expected hexadecimal character');
13848
+ }
13849
+ state.result += charFromCodepoint(hexResult);
13958
13850
  state.position++;
13959
- captureEnd = state.position;
13960
- }
13851
+ } else throwError(state, 'unknown escape sequence');
13852
+ captureStart = captureEnd = state.position;
13853
+ } else if (is_EOL(ch)) {
13854
+ captureSegment(state, captureStart, captureEnd, true);
13855
+ writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
13856
+ captureStart = captureEnd = state.position;
13857
+ } else if (state.position === state.lineStart && testDocumentSeparator(state)) throwError(state, 'unexpected end of the document within a double quoted scalar');
13858
+ else {
13859
+ state.position++;
13860
+ captureEnd = state.position;
13961
13861
  }
13962
13862
  throwError(state, 'unexpected end of the stream within a double quoted scalar');
13963
13863
  }
@@ -14039,17 +13939,15 @@ var __webpack_modules__ = {
14039
13939
  state.result = '';
14040
13940
  while(0 !== ch){
14041
13941
  ch = state.input.charCodeAt(++state.position);
14042
- if (0x2B === ch || 0x2D === ch) {
14043
- if (CHOMPING_CLIP === chomping) chomping = 0x2B === ch ? CHOMPING_KEEP : CHOMPING_STRIP;
14044
- else throwError(state, 'repeat of a chomping mode identifier');
14045
- } else if ((tmp = fromDecimalCode(ch)) >= 0) {
14046
- if (0 === tmp) throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
14047
- else if (detectedIndent) throwError(state, 'repeat of an indentation width identifier');
14048
- else {
14049
- textIndent = nodeIndent + tmp - 1;
14050
- detectedIndent = true;
14051
- }
14052
- } else break;
13942
+ if (0x2B === ch || 0x2D === ch) if (CHOMPING_CLIP === chomping) chomping = 0x2B === ch ? CHOMPING_KEEP : CHOMPING_STRIP;
13943
+ else throwError(state, 'repeat of a chomping mode identifier');
13944
+ else if ((tmp = fromDecimalCode(ch)) >= 0) if (0 === tmp) throwError(state, 'bad explicit indentation width of a block scalar; it cannot be less than one');
13945
+ else if (detectedIndent) throwError(state, 'repeat of an indentation width identifier');
13946
+ else {
13947
+ textIndent = nodeIndent + tmp - 1;
13948
+ detectedIndent = true;
13949
+ }
13950
+ else break;
14053
13951
  }
14054
13952
  if (is_WHITE_SPACE(ch)) {
14055
13953
  do ch = state.input.charCodeAt(++state.position);
@@ -14077,17 +13975,16 @@ var __webpack_modules__ = {
14077
13975
  }
14078
13976
  break;
14079
13977
  }
14080
- if (folding) {
14081
- if (is_WHITE_SPACE(ch)) {
14082
- atMoreIndented = true;
14083
- state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
14084
- } else if (atMoreIndented) {
14085
- atMoreIndented = false;
14086
- state.result += common.repeat('\n', emptyLines + 1);
14087
- } else if (0 === emptyLines) {
14088
- if (didReadContent) state.result += ' ';
14089
- } else state.result += common.repeat('\n', emptyLines);
14090
- } else state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
13978
+ if (folding) if (is_WHITE_SPACE(ch)) {
13979
+ atMoreIndented = true;
13980
+ state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
13981
+ } else if (atMoreIndented) {
13982
+ atMoreIndented = false;
13983
+ state.result += common.repeat('\n', emptyLines + 1);
13984
+ } else if (0 === emptyLines) {
13985
+ if (didReadContent) state.result += ' ';
13986
+ } else state.result += common.repeat('\n', emptyLines);
13987
+ else state.result += common.repeat('\n', didReadContent ? 1 + emptyLines : emptyLines);
14091
13988
  didReadContent = true;
14092
13989
  detectedIndent = true;
14093
13990
  emptyLines = 0;
@@ -14202,10 +14099,8 @@ var __webpack_modules__ = {
14202
14099
  _keyLineStart = state.lineStart;
14203
14100
  _keyPos = state.position;
14204
14101
  }
14205
- if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
14206
- if (atExplicitKey) keyNode = state.result;
14207
- else valueNode = state.result;
14208
- }
14102
+ if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) if (atExplicitKey) keyNode = state.result;
14103
+ else valueNode = state.result;
14209
14104
  if (!atExplicitKey) {
14210
14105
  storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
14211
14106
  keyTag = keyNode = valueNode = null;
@@ -14249,14 +14144,12 @@ var __webpack_modules__ = {
14249
14144
  } else throwError(state, 'unexpected end of the stream within a verbatim tag');
14250
14145
  } else {
14251
14146
  while(0 !== ch && !is_WS_OR_EOL(ch)){
14252
- if (0x21 === ch) {
14253
- if (isNamed) throwError(state, 'tag suffix cannot contain exclamation marks');
14254
- else {
14255
- tagHandle = state.input.slice(_position - 1, state.position + 1);
14256
- if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, 'named tag handle cannot contain such characters');
14257
- isNamed = true;
14258
- _position = state.position + 1;
14259
- }
14147
+ if (0x21 === ch) if (isNamed) throwError(state, 'tag suffix cannot contain exclamation marks');
14148
+ else {
14149
+ tagHandle = state.input.slice(_position - 1, state.position + 1);
14150
+ if (!PATTERN_TAG_HANDLE.test(tagHandle)) throwError(state, 'named tag handle cannot contain such characters');
14151
+ isNamed = true;
14152
+ _position = state.position + 1;
14260
14153
  }
14261
14154
  ch = state.input.charCodeAt(++state.position);
14262
14155
  }
@@ -14329,20 +14222,19 @@ var __webpack_modules__ = {
14329
14222
  if (1 === indentStatus || CONTEXT_BLOCK_OUT === nodeContext) {
14330
14223
  flowIndent = CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext ? parentIndent : parentIndent + 1;
14331
14224
  blockIndent = state.position - state.lineStart;
14332
- if (1 === indentStatus) {
14333
- if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
14334
- else {
14335
- if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
14336
- else if (readAlias(state)) {
14337
- hasContent = true;
14338
- if (null !== state.tag || null !== state.anchor) throwError(state, 'alias node should not have any properties');
14339
- } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
14340
- hasContent = true;
14341
- if (null === state.tag) state.tag = '?';
14342
- }
14343
- if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
14225
+ if (1 === indentStatus) if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) hasContent = true;
14226
+ else {
14227
+ if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) hasContent = true;
14228
+ else if (readAlias(state)) {
14229
+ hasContent = true;
14230
+ if (null !== state.tag || null !== state.anchor) throwError(state, 'alias node should not have any properties');
14231
+ } else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
14232
+ hasContent = true;
14233
+ if (null === state.tag) state.tag = '?';
14344
14234
  }
14345
- } else if (0 === indentStatus) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
14235
+ if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
14236
+ }
14237
+ else if (0 === indentStatus) hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
14346
14238
  }
14347
14239
  if (null === state.tag) {
14348
14240
  if (null !== state.anchor) state.anchorMap[state.anchor] = state.result;
@@ -15050,10 +14942,8 @@ var __webpack_modules__ = {
15050
14942
  pair = object[index];
15051
14943
  pairHasKey = false;
15052
14944
  if ('[object Object]' !== _toString.call(pair)) return false;
15053
- for(pairKey in pair)if (_hasOwnProperty.call(pair, pairKey)) {
15054
- if (pairHasKey) return false;
15055
- pairHasKey = true;
15056
- }
14945
+ for(pairKey in pair)if (_hasOwnProperty.call(pair, pairKey)) if (pairHasKey) return false;
14946
+ else pairHasKey = true;
15057
14947
  if (!pairHasKey) return false;
15058
14948
  if (-1 !== objectKeys.indexOf(pairKey)) return false;
15059
14949
  objectKeys.push(pairKey);
@@ -16084,13 +15974,12 @@ var __webpack_modules__ = {
16084
15974
  return result;
16085
15975
  },
16086
15976
  file: function(name, data, o) {
16087
- if (1 === arguments.length) {
16088
- if (isRegExp(name)) {
16089
- var regexp = name;
16090
- return this.filter(function(relativePath, file) {
16091
- return !file.dir && regexp.test(relativePath);
16092
- });
16093
- }
15977
+ if (1 === arguments.length) if (isRegExp(name)) {
15978
+ var regexp = name;
15979
+ return this.filter(function(relativePath, file) {
15980
+ return !file.dir && regexp.test(relativePath);
15981
+ });
15982
+ } else {
16094
15983
  var obj = this.files[this.root + name];
16095
15984
  if (obj && !obj.dir) return obj;
16096
15985
  return null;
@@ -16542,7 +16431,7 @@ var __webpack_modules__ = {
16542
16431
  return this;
16543
16432
  },
16544
16433
  mergeStreamInfo: function() {
16545
- for(var key in this.extraStreamInfo)if (!!Object.prototype.hasOwnProperty.call(this.extraStreamInfo, key)) this.streamInfo[key] = this.extraStreamInfo[key];
16434
+ for(var key in this.extraStreamInfo)if (Object.prototype.hasOwnProperty.call(this.extraStreamInfo, key)) this.streamInfo[key] = this.extraStreamInfo[key];
16546
16435
  },
16547
16436
  lock: function() {
16548
16437
  if (this.isLocked) throw new Error("The stream '" + this + "' has already been used.");
@@ -16798,10 +16687,8 @@ var __webpack_modules__ = {
16798
16687
  utf16buf[out++] = 0xdc00 | 0x3ff & c;
16799
16688
  }
16800
16689
  }
16801
- if (utf16buf.length !== out) {
16802
- if (utf16buf.subarray) utf16buf = utf16buf.subarray(0, out);
16803
- else utf16buf.length = out;
16804
- }
16690
+ if (utf16buf.length !== out) if (utf16buf.subarray) utf16buf = utf16buf.subarray(0, out);
16691
+ else utf16buf.length = out;
16805
16692
  return utils.applyFromCharCode(utf16buf);
16806
16693
  };
16807
16694
  exports.utf8encode = function(str) {
@@ -16831,14 +16718,12 @@ var __webpack_modules__ = {
16831
16718
  }
16832
16719
  var nextBoundary = utf8border(data);
16833
16720
  var usableData = data;
16834
- if (nextBoundary !== data.length) {
16835
- if (support.uint8array) {
16836
- usableData = data.subarray(0, nextBoundary);
16837
- this.leftOver = data.subarray(nextBoundary, data.length);
16838
- } else {
16839
- usableData = data.slice(0, nextBoundary);
16840
- this.leftOver = data.slice(nextBoundary, data.length);
16841
- }
16721
+ if (nextBoundary !== data.length) if (support.uint8array) {
16722
+ usableData = data.subarray(0, nextBoundary);
16723
+ this.leftOver = data.subarray(nextBoundary, data.length);
16724
+ } else {
16725
+ usableData = data.slice(0, nextBoundary);
16726
+ this.leftOver = data.slice(nextBoundary, data.length);
16842
16727
  }
16843
16728
  this.push({
16844
16729
  data: exports.utf8decode(usableData),
@@ -17036,10 +16921,8 @@ var __webpack_modules__ = {
17036
16921
  var result = [];
17037
16922
  for(var index = 0; index < parts.length; index++){
17038
16923
  var part = parts[index];
17039
- if ("." !== part && ("" !== part || 0 === index || index === parts.length - 1)) {
17040
- if (".." === part) result.pop();
17041
- else result.push(part);
17042
- }
16924
+ if ("." !== part && ("" !== part || 0 === index || index === parts.length - 1)) if (".." === part) result.pop();
16925
+ else result.push(part);
17043
16926
  }
17044
16927
  return result.join("/");
17045
16928
  };
@@ -17261,7 +17144,7 @@ var __webpack_modules__ = {
17261
17144
  var MADE_BY_DOS = 0x00;
17262
17145
  var MADE_BY_UNIX = 0x03;
17263
17146
  var findCompression = function(compressionMethod) {
17264
- for(var method in compressions)if (!!Object.prototype.hasOwnProperty.call(compressions, method)) {
17147
+ for(var method in compressions)if (Object.prototype.hasOwnProperty.call(compressions, method)) {
17265
17148
  if (compressions[method].magic === compressionMethod) return compressions[method];
17266
17149
  }
17267
17150
  return null;
@@ -17700,10 +17583,7 @@ var __webpack_modules__ = {
17700
17583
  if (merging) return;
17701
17584
  merging = true;
17702
17585
  let streams = streamsQueue.shift();
17703
- if (!streams) {
17704
- process.nextTick(endStream);
17705
- return;
17706
- }
17586
+ if (!streams) return void process.nextTick(endStream);
17707
17587
  if (!Array.isArray(streams)) streams = [
17708
17588
  streams
17709
17589
  ];
@@ -17758,12 +17638,16 @@ var __webpack_modules__ = {
17758
17638
  return streams;
17759
17639
  }
17760
17640
  },
17761
- "../../node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
17641
+ "../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
17762
17642
  const util = __webpack_require__("util");
17763
- const braces = __webpack_require__("../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js");
17643
+ const braces = __webpack_require__("../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js");
17764
17644
  const picomatch = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js");
17765
17645
  const utils = __webpack_require__("../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js");
17766
- const isEmptyString = (val)=>'' === val || './' === val;
17646
+ const isEmptyString = (v)=>'' === v || './' === v;
17647
+ const hasBraces = (v)=>{
17648
+ const index = v.indexOf('{');
17649
+ return index > -1 && v.indexOf('}', index) > -1;
17650
+ };
17767
17651
  const micromatch = (list, patterns, options)=>{
17768
17652
  patterns = [].concat(patterns);
17769
17653
  list = [].concat(list);
@@ -17785,12 +17669,10 @@ var __webpack_modules__ = {
17785
17669
  for (let item of list){
17786
17670
  let matched = isMatch(item, true);
17787
17671
  let match = negated ? !matched.isMatch : matched.isMatch;
17788
- if (!!match) {
17789
- if (negated) omit.add(matched.output);
17790
- else {
17791
- omit.delete(matched.output);
17792
- keep.add(matched.output);
17793
- }
17672
+ if (match) if (negated) omit.add(matched.output);
17673
+ else {
17674
+ omit.delete(matched.output);
17675
+ keep.add(matched.output);
17794
17676
  }
17795
17677
  }
17796
17678
  }
@@ -17884,7 +17766,7 @@ var __webpack_modules__ = {
17884
17766
  };
17885
17767
  micromatch.braces = (pattern, options)=>{
17886
17768
  if ('string' != typeof pattern) throw new TypeError('Expected a string');
17887
- if (options && true === options.nobrace || !/\{.*\}/.test(pattern)) return [
17769
+ if (options && true === options.nobrace || !hasBraces(pattern)) return [
17888
17770
  pattern
17889
17771
  ];
17890
17772
  return braces(pattern, options);
@@ -17896,6 +17778,7 @@ var __webpack_modules__ = {
17896
17778
  expand: true
17897
17779
  });
17898
17780
  };
17781
+ micromatch.hasBraces = hasBraces;
17899
17782
  module.exports = micromatch;
17900
17783
  },
17901
17784
  "../../node_modules/.pnpm/ms@2.1.3/node_modules/ms/index.js": function(module) {
@@ -18061,10 +17944,8 @@ var __webpack_modules__ = {
18061
17944
  this.ended = true;
18062
17945
  return false;
18063
17946
  }
18064
- if (0 === strm.avail_out || 0 === strm.avail_in && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH)) {
18065
- if ('string' === this.options.to) this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));
18066
- else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
18067
- }
17947
+ if (0 === strm.avail_out || 0 === strm.avail_in && (_mode === Z_FINISH || _mode === Z_SYNC_FLUSH)) if ('string' === this.options.to) this.onData(strings.buf2binstring(utils.shrinkBuf(strm.output, strm.next_out)));
17948
+ else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
18068
17949
  }while ((strm.avail_in > 0 || 0 === strm.avail_out) && status !== Z_STREAM_END);
18069
17950
  if (_mode === Z_FINISH) {
18070
17951
  status = zlib_deflate.deflateEnd(this.strm);
@@ -18082,10 +17963,8 @@ var __webpack_modules__ = {
18082
17963
  this.chunks.push(chunk);
18083
17964
  };
18084
17965
  Deflate.prototype.onEnd = function(status) {
18085
- if (status === Z_OK) {
18086
- if ('string' === this.options.to) this.result = this.chunks.join('');
18087
- else this.result = utils.flattenChunks(this.chunks);
18088
- }
17966
+ if (status === Z_OK) if ('string' === this.options.to) this.result = this.chunks.join('');
17967
+ else this.result = utils.flattenChunks(this.chunks);
18089
17968
  this.chunks = [];
18090
17969
  this.err = status;
18091
17970
  this.msg = this.strm.msg;
@@ -18187,17 +18066,15 @@ var __webpack_modules__ = {
18187
18066
  return false;
18188
18067
  }
18189
18068
  if (strm.next_out) {
18190
- if (0 === strm.avail_out || status === c.Z_STREAM_END || 0 === strm.avail_in && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH)) {
18191
- if ('string' === this.options.to) {
18192
- next_out_utf8 = strings.utf8border(strm.output, strm.next_out);
18193
- tail = strm.next_out - next_out_utf8;
18194
- utf8str = strings.buf2string(strm.output, next_out_utf8);
18195
- strm.next_out = tail;
18196
- strm.avail_out = chunkSize - tail;
18197
- if (tail) utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0);
18198
- this.onData(utf8str);
18199
- } else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
18200
- }
18069
+ if (0 === strm.avail_out || status === c.Z_STREAM_END || 0 === strm.avail_in && (_mode === c.Z_FINISH || _mode === c.Z_SYNC_FLUSH)) if ('string' === this.options.to) {
18070
+ next_out_utf8 = strings.utf8border(strm.output, strm.next_out);
18071
+ tail = strm.next_out - next_out_utf8;
18072
+ utf8str = strings.buf2string(strm.output, next_out_utf8);
18073
+ strm.next_out = tail;
18074
+ strm.avail_out = chunkSize - tail;
18075
+ if (tail) utils.arraySet(strm.output, strm.output, next_out_utf8, tail, 0);
18076
+ this.onData(utf8str);
18077
+ } else this.onData(utils.shrinkBuf(strm.output, strm.next_out));
18201
18078
  }
18202
18079
  if (0 === strm.avail_in && 0 === strm.avail_out) allowBufError = true;
18203
18080
  }while ((strm.avail_in > 0 || 0 === strm.avail_out) && status !== c.Z_STREAM_END);
@@ -18218,10 +18095,8 @@ var __webpack_modules__ = {
18218
18095
  this.chunks.push(chunk);
18219
18096
  };
18220
18097
  Inflate.prototype.onEnd = function(status) {
18221
- if (status === c.Z_OK) {
18222
- if ('string' === this.options.to) this.result = this.chunks.join('');
18223
- else this.result = utils.flattenChunks(this.chunks);
18224
- }
18098
+ if (status === c.Z_OK) if ('string' === this.options.to) this.result = this.chunks.join('');
18099
+ else this.result = utils.flattenChunks(this.chunks);
18225
18100
  this.chunks = [];
18226
18101
  this.err = status;
18227
18102
  this.msg = this.strm.msg;
@@ -18265,10 +18140,7 @@ var __webpack_modules__ = {
18265
18140
  };
18266
18141
  var fnTyped = {
18267
18142
  arraySet: function(dest, src, src_offs, len, dest_offs) {
18268
- if (src.subarray && dest.subarray) {
18269
- dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
18270
- return;
18271
- }
18143
+ if (src.subarray && dest.subarray) return void dest.set(src.subarray(src_offs, src_offs + len), dest_offs);
18272
18144
  for(var i = 0; i < len; i++)dest[dest_offs + i] = src[src_offs + i];
18273
18145
  },
18274
18146
  flattenChunks: function(chunks) {
@@ -19088,127 +18960,117 @@ var __webpack_modules__ = {
19088
18960
  s.strm = strm;
19089
18961
  old_flush = s.last_flush;
19090
18962
  s.last_flush = flush;
19091
- if (s.status === INIT_STATE) {
19092
- if (2 === s.wrap) {
19093
- strm.adler = 0;
19094
- put_byte(s, 31);
19095
- put_byte(s, 139);
19096
- put_byte(s, 8);
19097
- if (s.gzhead) {
19098
- put_byte(s, (s.gzhead.text ? 1 : 0) + (s.gzhead.hcrc ? 2 : 0) + (s.gzhead.extra ? 4 : 0) + (s.gzhead.name ? 8 : 0) + (s.gzhead.comment ? 16 : 0));
19099
- put_byte(s, 0xff & s.gzhead.time);
19100
- put_byte(s, s.gzhead.time >> 8 & 0xff);
19101
- put_byte(s, s.gzhead.time >> 16 & 0xff);
19102
- put_byte(s, s.gzhead.time >> 24 & 0xff);
19103
- put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
19104
- put_byte(s, 0xff & s.gzhead.os);
19105
- if (s.gzhead.extra && s.gzhead.extra.length) {
19106
- put_byte(s, 0xff & s.gzhead.extra.length);
19107
- put_byte(s, s.gzhead.extra.length >> 8 & 0xff);
19108
- }
19109
- if (s.gzhead.hcrc) strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
19110
- s.gzindex = 0;
19111
- s.status = EXTRA_STATE;
19112
- } else {
19113
- put_byte(s, 0);
19114
- put_byte(s, 0);
19115
- put_byte(s, 0);
19116
- put_byte(s, 0);
19117
- put_byte(s, 0);
19118
- put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
19119
- put_byte(s, OS_CODE);
19120
- s.status = BUSY_STATE;
19121
- }
18963
+ if (s.status === INIT_STATE) if (2 === s.wrap) {
18964
+ strm.adler = 0;
18965
+ put_byte(s, 31);
18966
+ put_byte(s, 139);
18967
+ put_byte(s, 8);
18968
+ if (s.gzhead) {
18969
+ put_byte(s, (s.gzhead.text ? 1 : 0) + (s.gzhead.hcrc ? 2 : 0) + (s.gzhead.extra ? 4 : 0) + (s.gzhead.name ? 8 : 0) + (s.gzhead.comment ? 16 : 0));
18970
+ put_byte(s, 0xff & s.gzhead.time);
18971
+ put_byte(s, s.gzhead.time >> 8 & 0xff);
18972
+ put_byte(s, s.gzhead.time >> 16 & 0xff);
18973
+ put_byte(s, s.gzhead.time >> 24 & 0xff);
18974
+ put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
18975
+ put_byte(s, 0xff & s.gzhead.os);
18976
+ if (s.gzhead.extra && s.gzhead.extra.length) {
18977
+ put_byte(s, 0xff & s.gzhead.extra.length);
18978
+ put_byte(s, s.gzhead.extra.length >> 8 & 0xff);
18979
+ }
18980
+ if (s.gzhead.hcrc) strm.adler = crc32(strm.adler, s.pending_buf, s.pending, 0);
18981
+ s.gzindex = 0;
18982
+ s.status = EXTRA_STATE;
19122
18983
  } else {
19123
- var header = Z_DEFLATED + (s.w_bits - 8 << 4) << 8;
19124
- var level_flags = -1;
19125
- level_flags = s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 0 : s.level < 6 ? 1 : 6 === s.level ? 2 : 3;
19126
- header |= level_flags << 6;
19127
- if (0 !== s.strstart) header |= PRESET_DICT;
19128
- header += 31 - header % 31;
18984
+ put_byte(s, 0);
18985
+ put_byte(s, 0);
18986
+ put_byte(s, 0);
18987
+ put_byte(s, 0);
18988
+ put_byte(s, 0);
18989
+ put_byte(s, 9 === s.level ? 2 : s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 4 : 0);
18990
+ put_byte(s, OS_CODE);
19129
18991
  s.status = BUSY_STATE;
19130
- putShortMSB(s, header);
19131
- if (0 !== s.strstart) {
19132
- putShortMSB(s, strm.adler >>> 16);
19133
- putShortMSB(s, 0xffff & strm.adler);
19134
- }
19135
- strm.adler = 1;
19136
18992
  }
19137
- }
19138
- if (s.status === EXTRA_STATE) {
19139
- if (s.gzhead.extra) {
19140
- beg = s.pending;
19141
- while(s.gzindex < (0xffff & s.gzhead.extra.length)){
18993
+ } else {
18994
+ var header = Z_DEFLATED + (s.w_bits - 8 << 4) << 8;
18995
+ var level_flags = -1;
18996
+ level_flags = s.strategy >= Z_HUFFMAN_ONLY || s.level < 2 ? 0 : s.level < 6 ? 1 : 6 === s.level ? 2 : 3;
18997
+ header |= level_flags << 6;
18998
+ if (0 !== s.strstart) header |= PRESET_DICT;
18999
+ header += 31 - header % 31;
19000
+ s.status = BUSY_STATE;
19001
+ putShortMSB(s, header);
19002
+ if (0 !== s.strstart) {
19003
+ putShortMSB(s, strm.adler >>> 16);
19004
+ putShortMSB(s, 0xffff & strm.adler);
19005
+ }
19006
+ strm.adler = 1;
19007
+ }
19008
+ if (s.status === EXTRA_STATE) if (s.gzhead.extra) {
19009
+ beg = s.pending;
19010
+ while(s.gzindex < (0xffff & s.gzhead.extra.length)){
19011
+ if (s.pending === s.pending_buf_size) {
19012
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19013
+ flush_pending(strm);
19014
+ beg = s.pending;
19015
+ if (s.pending === s.pending_buf_size) break;
19016
+ }
19017
+ put_byte(s, 0xff & s.gzhead.extra[s.gzindex]);
19018
+ s.gzindex++;
19019
+ }
19020
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19021
+ if (s.gzindex === s.gzhead.extra.length) {
19022
+ s.gzindex = 0;
19023
+ s.status = NAME_STATE;
19024
+ }
19025
+ } else s.status = NAME_STATE;
19026
+ if (s.status === NAME_STATE) if (s.gzhead.name) {
19027
+ beg = s.pending;
19028
+ do {
19029
+ if (s.pending === s.pending_buf_size) {
19030
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19031
+ flush_pending(strm);
19032
+ beg = s.pending;
19142
19033
  if (s.pending === s.pending_buf_size) {
19143
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19144
- flush_pending(strm);
19145
- beg = s.pending;
19146
- if (s.pending === s.pending_buf_size) break;
19034
+ val = 1;
19035
+ break;
19147
19036
  }
19148
- put_byte(s, 0xff & s.gzhead.extra[s.gzindex]);
19149
- s.gzindex++;
19150
- }
19151
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19152
- if (s.gzindex === s.gzhead.extra.length) {
19153
- s.gzindex = 0;
19154
- s.status = NAME_STATE;
19155
19037
  }
19156
- } else s.status = NAME_STATE;
19157
- }
19158
- if (s.status === NAME_STATE) {
19159
- if (s.gzhead.name) {
19160
- beg = s.pending;
19161
- do {
19162
- if (s.pending === s.pending_buf_size) {
19163
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19164
- flush_pending(strm);
19165
- beg = s.pending;
19166
- if (s.pending === s.pending_buf_size) {
19167
- val = 1;
19168
- break;
19169
- }
19170
- }
19171
- val = s.gzindex < s.gzhead.name.length ? 0xff & s.gzhead.name.charCodeAt(s.gzindex++) : 0;
19172
- put_byte(s, val);
19173
- }while (0 !== val);
19174
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19175
- if (0 === val) {
19176
- s.gzindex = 0;
19177
- s.status = COMMENT_STATE;
19178
- }
19179
- } else s.status = COMMENT_STATE;
19180
- }
19181
- if (s.status === COMMENT_STATE) {
19182
- if (s.gzhead.comment) {
19183
- beg = s.pending;
19184
- do {
19038
+ val = s.gzindex < s.gzhead.name.length ? 0xff & s.gzhead.name.charCodeAt(s.gzindex++) : 0;
19039
+ put_byte(s, val);
19040
+ }while (0 !== val);
19041
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19042
+ if (0 === val) {
19043
+ s.gzindex = 0;
19044
+ s.status = COMMENT_STATE;
19045
+ }
19046
+ } else s.status = COMMENT_STATE;
19047
+ if (s.status === COMMENT_STATE) if (s.gzhead.comment) {
19048
+ beg = s.pending;
19049
+ do {
19050
+ if (s.pending === s.pending_buf_size) {
19051
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19052
+ flush_pending(strm);
19053
+ beg = s.pending;
19185
19054
  if (s.pending === s.pending_buf_size) {
19186
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19187
- flush_pending(strm);
19188
- beg = s.pending;
19189
- if (s.pending === s.pending_buf_size) {
19190
- val = 1;
19191
- break;
19192
- }
19055
+ val = 1;
19056
+ break;
19193
19057
  }
19194
- val = s.gzindex < s.gzhead.comment.length ? 0xff & s.gzhead.comment.charCodeAt(s.gzindex++) : 0;
19195
- put_byte(s, val);
19196
- }while (0 !== val);
19197
- if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19198
- if (0 === val) s.status = HCRC_STATE;
19199
- } else s.status = HCRC_STATE;
19200
- }
19201
- if (s.status === HCRC_STATE) {
19202
- if (s.gzhead.hcrc) {
19203
- if (s.pending + 2 > s.pending_buf_size) flush_pending(strm);
19204
- if (s.pending + 2 <= s.pending_buf_size) {
19205
- put_byte(s, 0xff & strm.adler);
19206
- put_byte(s, strm.adler >> 8 & 0xff);
19207
- strm.adler = 0;
19208
- s.status = BUSY_STATE;
19209
- }
19210
- } else s.status = BUSY_STATE;
19211
- }
19058
+ }
19059
+ val = s.gzindex < s.gzhead.comment.length ? 0xff & s.gzhead.comment.charCodeAt(s.gzindex++) : 0;
19060
+ put_byte(s, val);
19061
+ }while (0 !== val);
19062
+ if (s.gzhead.hcrc && s.pending > beg) strm.adler = crc32(strm.adler, s.pending_buf, s.pending - beg, beg);
19063
+ if (0 === val) s.status = HCRC_STATE;
19064
+ } else s.status = HCRC_STATE;
19065
+ if (s.status === HCRC_STATE) if (s.gzhead.hcrc) {
19066
+ if (s.pending + 2 > s.pending_buf_size) flush_pending(strm);
19067
+ if (s.pending + 2 <= s.pending_buf_size) {
19068
+ put_byte(s, 0xff & strm.adler);
19069
+ put_byte(s, strm.adler >> 8 & 0xff);
19070
+ strm.adler = 0;
19071
+ s.status = BUSY_STATE;
19072
+ }
19073
+ } else s.status = BUSY_STATE;
19212
19074
  if (0 !== s.pending) {
19213
19075
  flush_pending(strm);
19214
19076
  if (0 === strm.avail_out) {
@@ -21510,8 +21372,8 @@ var __webpack_modules__ = {
21510
21372
  }
21511
21373
  module.exports = ZStream;
21512
21374
  },
21513
- "../../node_modules/.pnpm/parse-path@7.0.0/node_modules/parse-path/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
21514
- var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.1/node_modules/protocols/lib/index.js");
21375
+ "../../node_modules/.pnpm/parse-path@7.0.1/node_modules/parse-path/lib/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
21376
+ var protocols = __webpack_require__("../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js");
21515
21377
  function parsePath(url) {
21516
21378
  var output = {
21517
21379
  protocols: [],
@@ -21562,7 +21424,7 @@ var __webpack_modules__ = {
21562
21424
  module.exports = parsePath;
21563
21425
  },
21564
21426
  "../../node_modules/.pnpm/parse-url@8.1.0/node_modules/parse-url/dist/index.js": function(module, __unused_webpack_exports, __webpack_require__) {
21565
- var parsePath = __webpack_require__("../../node_modules/.pnpm/parse-path@7.0.0/node_modules/parse-path/lib/index.js");
21427
+ var parsePath = __webpack_require__("../../node_modules/.pnpm/parse-path@7.0.1/node_modules/parse-path/lib/index.js");
21566
21428
  function _interopDefaultLegacy(e) {
21567
21429
  return e && 'object' == typeof e && 'default' in e ? e : {
21568
21430
  default: e
@@ -23267,7 +23129,7 @@ var __webpack_modules__ = {
23267
23129
  }
23268
23130
  }
23269
23131
  },
23270
- "../../node_modules/.pnpm/protocols@2.0.1/node_modules/protocols/lib/index.js": function(module) {
23132
+ "../../node_modules/.pnpm/protocols@2.0.2/node_modules/protocols/lib/index.js": function(module) {
23271
23133
  module.exports = function(input, first) {
23272
23134
  if (true === first) first = 0;
23273
23135
  var prots = "";
@@ -23395,13 +23257,12 @@ var __webpack_modules__ = {
23395
23257
  ];
23396
23258
  function prependListener(emitter, event, fn) {
23397
23259
  if ('function' == typeof emitter.prependListener) return emitter.prependListener(event, fn);
23398
- if (emitter._events && emitter._events[event]) {
23399
- if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);
23400
- else emitter._events[event] = [
23401
- fn,
23402
- emitter._events[event]
23403
- ];
23404
- } else emitter.on(event, fn);
23260
+ if (emitter._events && emitter._events[event]) if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);
23261
+ else emitter._events[event] = [
23262
+ fn,
23263
+ emitter._events[event]
23264
+ ];
23265
+ else emitter.on(event, fn);
23405
23266
  }
23406
23267
  function ReadableState(options, stream) {
23407
23268
  Duplex = Duplex || __webpack_require__("../../node_modules/.pnpm/readable-stream@2.3.8/node_modules/readable-stream/lib/_stream_duplex.js");
@@ -23496,10 +23357,9 @@ var __webpack_modules__ = {
23496
23357
  if (er) stream.emit('error', er);
23497
23358
  else if (state.objectMode || chunk && chunk.length > 0) {
23498
23359
  if ('string' != typeof chunk && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer1.prototype) chunk = _uint8ArrayToBuffer(chunk);
23499
- if (addToFront) {
23500
- if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));
23501
- else addChunk(stream, state, chunk, true);
23502
- } else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
23360
+ if (addToFront) if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));
23361
+ else addChunk(stream, state, chunk, true);
23362
+ else if (state.ended) stream.emit('error', new Error('stream.push() after EOF'));
23503
23363
  else {
23504
23364
  state.reading = false;
23505
23365
  if (state.decoder && !encoding) {
@@ -23558,10 +23418,8 @@ var __webpack_modules__ = {
23558
23418
  function howMuchToRead(n, state) {
23559
23419
  if (n <= 0 || 0 === state.length && state.ended) return 0;
23560
23420
  if (state.objectMode) return 1;
23561
- if (n !== n) {
23562
- if (state.flowing && state.length) return state.buffer.head.data.length;
23563
- return state.length;
23564
- }
23421
+ if (n !== n) if (state.flowing && state.length) return state.buffer.head.data.length;
23422
+ else return state.length;
23565
23423
  if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);
23566
23424
  if (n <= state.length) return n;
23567
23425
  if (!state.ended) {
@@ -24441,15 +24299,13 @@ var __webpack_modules__ = {
24441
24299
  });
24442
24300
  }
24443
24301
  function prefinish(stream, state) {
24444
- if (!state.prefinished && !state.finalCalled) {
24445
- if ('function' == typeof stream._final) {
24446
- state.pendingcb++;
24447
- state.finalCalled = true;
24448
- pna.nextTick(callFinal, stream, state);
24449
- } else {
24450
- state.prefinished = true;
24451
- stream.emit('prefinish');
24452
- }
24302
+ if (!state.prefinished && !state.finalCalled) if ('function' == typeof stream._final) {
24303
+ state.pendingcb++;
24304
+ state.finalCalled = true;
24305
+ pna.nextTick(callFinal, stream, state);
24306
+ } else {
24307
+ state.prefinished = true;
24308
+ stream.emit('prefinish');
24453
24309
  }
24454
24310
  }
24455
24311
  function finishMaybe(stream, state) {
@@ -24466,10 +24322,8 @@ var __webpack_modules__ = {
24466
24322
  function endWritable(stream, state, cb) {
24467
24323
  state.ending = true;
24468
24324
  finishMaybe(stream, state);
24469
- if (cb) {
24470
- if (state.finished) pna.nextTick(cb);
24471
- else stream.once('finish', cb);
24472
- }
24325
+ if (cb) if (state.finished) pna.nextTick(cb);
24326
+ else stream.once('finish', cb);
24473
24327
  state.ended = true;
24474
24328
  stream.writable = false;
24475
24329
  }
@@ -24584,27 +24438,24 @@ var __webpack_modules__ = {
24584
24438
  var writableDestroyed = this._writableState && this._writableState.destroyed;
24585
24439
  if (readableDestroyed || writableDestroyed) {
24586
24440
  if (cb) cb(err);
24587
- else if (err) {
24588
- if (this._writableState) {
24589
- if (!this._writableState.errorEmitted) {
24590
- this._writableState.errorEmitted = true;
24591
- pna.nextTick(emitErrorNT, this, err);
24592
- }
24593
- } else pna.nextTick(emitErrorNT, this, err);
24594
- }
24441
+ else if (err) if (this._writableState) {
24442
+ if (!this._writableState.errorEmitted) {
24443
+ this._writableState.errorEmitted = true;
24444
+ pna.nextTick(emitErrorNT, this, err);
24445
+ }
24446
+ } else pna.nextTick(emitErrorNT, this, err);
24595
24447
  return this;
24596
24448
  }
24597
24449
  if (this._readableState) this._readableState.destroyed = true;
24598
24450
  if (this._writableState) this._writableState.destroyed = true;
24599
24451
  this._destroy(err || null, function(err) {
24600
- if (!cb && err) {
24601
- if (_this._writableState) {
24602
- if (!_this._writableState.errorEmitted) {
24603
- _this._writableState.errorEmitted = true;
24604
- pna.nextTick(emitErrorNT, _this, err);
24605
- }
24606
- } else pna.nextTick(emitErrorNT, _this, err);
24607
- } else if (cb) cb(err);
24452
+ if (!cb && err) if (_this._writableState) {
24453
+ if (!_this._writableState.errorEmitted) {
24454
+ _this._writableState.errorEmitted = true;
24455
+ pna.nextTick(emitErrorNT, _this, err);
24456
+ }
24457
+ } else pna.nextTick(emitErrorNT, _this, err);
24458
+ else if (cb) cb(err);
24608
24459
  });
24609
24460
  return this;
24610
24461
  }
@@ -24708,18 +24559,17 @@ var __webpack_modules__ = {
24708
24559
  results[i] = result;
24709
24560
  if (0 === --pending || err) done(err);
24710
24561
  }
24711
- if (pending) {
24712
- if (keys) keys.forEach(function(key) {
24713
- tasks[key](function(err, result) {
24714
- each(key, err, result);
24715
- });
24562
+ if (pending) if (keys) keys.forEach(function(key) {
24563
+ tasks[key](function(err, result) {
24564
+ each(key, err, result);
24716
24565
  });
24717
- else tasks.forEach(function(task, i) {
24718
- task(function(err, result) {
24719
- each(i, err, result);
24720
- });
24566
+ });
24567
+ else tasks.forEach(function(task, i) {
24568
+ task(function(err, result) {
24569
+ each(i, err, result);
24721
24570
  });
24722
- } else done(null);
24571
+ });
24572
+ else done(null);
24723
24573
  isSync = false;
24724
24574
  }
24725
24575
  },
@@ -24745,10 +24595,9 @@ var __webpack_modules__ = {
24745
24595
  SafeBuffer.alloc = function(size, fill, encoding) {
24746
24596
  if ('number' != typeof size) throw new TypeError('Argument must be a number');
24747
24597
  var buf = Buffer1(size);
24748
- if (void 0 !== fill) {
24749
- if ('string' == typeof encoding) buf.fill(fill, encoding);
24750
- else buf.fill(fill);
24751
- } else buf.fill(0);
24598
+ if (void 0 !== fill) if ('string' == typeof encoding) buf.fill(fill, encoding);
24599
+ else buf.fill(fill);
24600
+ else buf.fill(0);
24752
24601
  return buf;
24753
24602
  };
24754
24603
  SafeBuffer.allocUnsafe = function(size) {
@@ -25039,10 +24888,8 @@ var __webpack_modules__ = {
25039
24888
  if (--j < i || -2 === nb) return 0;
25040
24889
  nb = utf8CheckByte(buf[j]);
25041
24890
  if (nb >= 0) {
25042
- if (nb > 0) {
25043
- if (2 === nb) nb = 0;
25044
- else self1.lastNeed = nb - 3;
25045
- }
24891
+ if (nb > 0) if (2 === nb) nb = 0;
24892
+ else self1.lastNeed = nb - 3;
25046
24893
  return nb;
25047
24894
  }
25048
24895
  return 0;
@@ -26257,7 +26104,7 @@ var __webpack_modules__ = {
26257
26104
  });
26258
26105
  exports.createPackageGraph = void 0;
26259
26106
  const createDependencyMap_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/graph/createDependencyMap.js");
26260
- const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js"));
26107
+ const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
26261
26108
  function createPackageGraph(packages, filters) {
26262
26109
  const packageSet = new Set();
26263
26110
  const edges = [];
@@ -26846,7 +26693,7 @@ var __webpack_modules__ = {
26846
26693
  value: true
26847
26694
  });
26848
26695
  exports.getScopedPackages = void 0;
26849
- const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js"));
26696
+ const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
26850
26697
  function getScopedPackages(search, packages) {
26851
26698
  const packageNames = Array.isArray(packages) ? packages : Object.keys(packages);
26852
26699
  const results = new Set();
@@ -26983,7 +26830,7 @@ var __webpack_modules__ = {
26983
26830
  value: true
26984
26831
  });
26985
26832
  exports.getPackagesByFiles = void 0;
26986
- const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js"));
26833
+ const micromatch_1 = __importDefault(__webpack_require__("../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"));
26987
26834
  const path_1 = __importDefault(__webpack_require__("path"));
26988
26835
  const getWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/getWorkspaces.js");
26989
26836
  function getPackagesByFiles(workspaceRoot, files, ignoreGlobs = [], returnAllPackagesOnNoMatch = false) {
@@ -27073,7 +26920,7 @@ var __webpack_modules__ = {
27073
26920
  const utils = (0, implementations_1.getWorkspaceUtilities)(cwd);
27074
26921
  if (!utils) return [];
27075
26922
  if (!utils.getWorkspacePackagePathsAsync) {
27076
- const managerName = implementations_1.getWorkspaceManagerAndRoot(cwd)?.manager;
26923
+ const managerName = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
27077
26924
  throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
27078
26925
  }
27079
26926
  return utils.getWorkspacePackagePathsAsync(cwd);
@@ -27087,7 +26934,7 @@ var __webpack_modules__ = {
27087
26934
  exports.getWorkspaceRoot = void 0;
27088
26935
  const implementations_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/index.js");
27089
26936
  function getWorkspaceRoot(cwd, preferredManager) {
27090
- return implementations_1.getWorkspaceManagerAndRoot(cwd, void 0, preferredManager)?.root;
26937
+ return (0, implementations_1.getWorkspaceManagerAndRoot)(cwd, void 0, preferredManager)?.root;
27091
26938
  }
27092
26939
  exports.getWorkspaceRoot = getWorkspaceRoot;
27093
26940
  },
@@ -27106,7 +26953,7 @@ var __webpack_modules__ = {
27106
26953
  const utils = (0, implementations_1.getWorkspaceUtilities)(cwd);
27107
26954
  if (!utils) return [];
27108
26955
  if (!utils.getWorkspacesAsync) {
27109
- const managerName = implementations_1.getWorkspaceManagerAndRoot(cwd)?.manager;
26956
+ const managerName = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
27110
26957
  throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
27111
26958
  }
27112
26959
  return utils.getWorkspacesAsync(cwd);
@@ -27162,7 +27009,7 @@ var __webpack_modules__ = {
27162
27009
  exports.getWorkspaceUtilities = void 0;
27163
27010
  const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
27164
27011
  function getWorkspaceUtilities(cwd) {
27165
- const manager = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd)?.manager;
27012
+ const manager = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
27166
27013
  switch(manager){
27167
27014
  case "yarn":
27168
27015
  return __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/yarn.js");
@@ -27216,7 +27063,7 @@ var __webpack_modules__ = {
27216
27063
  const logging_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/logging.js");
27217
27064
  const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
27218
27065
  function getLernaWorkspaceRoot(cwd) {
27219
- const root = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd, void 0, "lerna")?.root;
27066
+ const root = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "lerna")?.root;
27220
27067
  if (!root) throw new Error("Could not find lerna workspace root from " + cwd);
27221
27068
  return root;
27222
27069
  }
@@ -27263,7 +27110,7 @@ var __webpack_modules__ = {
27263
27110
  const _1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/index.js");
27264
27111
  const packageJsonWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/packageJsonWorkspaces.js");
27265
27112
  function getNpmWorkspaceRoot(cwd) {
27266
- const root = _1.getWorkspaceManagerAndRoot(cwd, void 0, "npm")?.root;
27113
+ const root = (0, _1.getWorkspaceManagerAndRoot)(cwd, void 0, "npm")?.root;
27267
27114
  if (!root) throw new Error("Could not find npm workspace root from " + cwd);
27268
27115
  return root;
27269
27116
  }
@@ -27376,7 +27223,7 @@ var __webpack_modules__ = {
27376
27223
  const logging_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/logging.js");
27377
27224
  const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
27378
27225
  function getPnpmWorkspaceRoot(cwd) {
27379
- const root = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd, void 0, "pnpm")?.root;
27226
+ const root = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "pnpm")?.root;
27380
27227
  if (!root) throw new Error("Could not find pnpm workspace root from " + cwd);
27381
27228
  return root;
27382
27229
  }
@@ -27433,7 +27280,7 @@ var __webpack_modules__ = {
27433
27280
  const logging_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/logging.js");
27434
27281
  const getWorkspaceManagerAndRoot_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/getWorkspaceManagerAndRoot.js");
27435
27282
  function getRushWorkspaceRoot(cwd) {
27436
- const root = getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot(cwd, void 0, "rush")?.root;
27283
+ const root = (0, getWorkspaceManagerAndRoot_1.getWorkspaceManagerAndRoot)(cwd, void 0, "rush")?.root;
27437
27284
  if (!root) throw new Error("Could not find rush workspace root from " + cwd);
27438
27285
  return root;
27439
27286
  }
@@ -27482,7 +27329,7 @@ var __webpack_modules__ = {
27482
27329
  const _1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/index.js");
27483
27330
  const packageJsonWorkspaces_1 = __webpack_require__("../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/workspaces/implementations/packageJsonWorkspaces.js");
27484
27331
  function getYarnWorkspaceRoot(cwd) {
27485
- const root = _1.getWorkspaceManagerAndRoot(cwd, void 0, "yarn")?.root;
27332
+ const root = (0, _1.getWorkspaceManagerAndRoot)(cwd, void 0, "yarn")?.root;
27486
27333
  if (!root) throw new Error("Could not find yarn workspace root from " + cwd);
27487
27334
  return root;
27488
27335
  }
@@ -27652,33 +27499,31 @@ var __webpack_modules__ = {
27652
27499
  const markerLines = {};
27653
27500
  if (lineDiff) for(let i = 0; i <= lineDiff; i++){
27654
27501
  const lineNumber = i + startLine;
27655
- if (startColumn) {
27656
- if (0 === i) {
27657
- const sourceLength = source[lineNumber - 1].length;
27658
- markerLines[lineNumber] = [
27659
- startColumn,
27660
- sourceLength - startColumn + 1
27661
- ];
27662
- } else if (i === lineDiff) markerLines[lineNumber] = [
27502
+ if (startColumn) if (0 === i) {
27503
+ const sourceLength = source[lineNumber - 1].length;
27504
+ markerLines[lineNumber] = [
27505
+ startColumn,
27506
+ sourceLength - startColumn + 1
27507
+ ];
27508
+ } else if (i === lineDiff) markerLines[lineNumber] = [
27509
+ 0,
27510
+ endColumn
27511
+ ];
27512
+ else {
27513
+ const sourceLength = source[lineNumber - i].length;
27514
+ markerLines[lineNumber] = [
27663
27515
  0,
27664
- endColumn
27516
+ sourceLength
27665
27517
  ];
27666
- else {
27667
- const sourceLength = source[lineNumber - i].length;
27668
- markerLines[lineNumber] = [
27669
- 0,
27670
- sourceLength
27671
- ];
27672
- }
27673
- } else markerLines[lineNumber] = true;
27518
+ }
27519
+ else markerLines[lineNumber] = true;
27674
27520
  }
27675
- else if (startColumn === endColumn) {
27676
- if (startColumn) markerLines[startLine] = [
27677
- startColumn,
27678
- 0
27679
- ];
27680
- else markerLines[startLine] = true;
27681
- } else markerLines[startLine] = [
27521
+ else if (startColumn === endColumn) if (startColumn) markerLines[startLine] = [
27522
+ startColumn,
27523
+ 0
27524
+ ];
27525
+ else markerLines[startLine] = true;
27526
+ else markerLines[startLine] = [
27682
27527
  startColumn,
27683
27528
  endColumn - startColumn
27684
27529
  ];
@@ -27968,10 +27813,7 @@ var __webpack_modules__ = {
27968
27813
  return 0 !== this._queueCursor || !!this._last;
27969
27814
  }
27970
27815
  exactSource(loc, cb) {
27971
- if (!this._map) {
27972
- cb();
27973
- return;
27974
- }
27816
+ if (!this._map) return void cb();
27975
27817
  this.source("start", loc);
27976
27818
  const identifierName = loc.identifierName;
27977
27819
  const sourcePos = this._sourcePosition;
@@ -28076,15 +27918,11 @@ var __webpack_modules__ = {
28076
27918
  const unescapedDoubleQuoteRE = /(?:^|[^\\])(?:\\\\)*"/;
28077
27919
  function DirectiveLiteral(node) {
28078
27920
  const raw = this.getPossibleRaw(node);
28079
- if (!this.format.minified && void 0 !== raw) {
28080
- this.token(raw);
28081
- return;
28082
- }
27921
+ if (!this.format.minified && void 0 !== raw) return void this.token(raw);
28083
27922
  const { value: value1 } = node;
28084
- if (unescapedDoubleQuoteRE.test(value1)) {
28085
- if (unescapedSingleQuoteRE.test(value1)) throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");
28086
- this.token(`'${value1}'`);
28087
- } else this.token(`"${value1}"`);
27923
+ if (unescapedDoubleQuoteRE.test(value1)) if (unescapedSingleQuoteRE.test(value1)) throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");
27924
+ else this.token(`'${value1}'`);
27925
+ else this.token(`"${value1}"`);
28088
27926
  }
28089
27927
  function InterpreterDirective(node) {
28090
27928
  this.token(`#!${node.value}`);
@@ -28299,10 +28137,7 @@ var __webpack_modules__ = {
28299
28137
  },
28300
28138
  DecimalLiteral (node) {
28301
28139
  const raw = this.getPossibleRaw(node);
28302
- if (!this.format.minified && void 0 !== raw) {
28303
- this.word(raw);
28304
- return;
28305
- }
28140
+ if (!this.format.minified && void 0 !== raw) return void this.word(raw);
28306
28141
  this.word(node.value + "m");
28307
28142
  }
28308
28143
  };
@@ -29660,10 +29495,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
29660
29495
  const useAssertKeyword = "assert" === importAttributesKeyword || !importAttributesKeyword && assertions;
29661
29496
  this.word(useAssertKeyword ? "assert" : "with");
29662
29497
  this.space();
29663
- if (!useAssertKeyword && "with" !== importAttributesKeyword) {
29664
- this.printList(attributes || assertions);
29665
- return;
29666
- }
29498
+ if (!useAssertKeyword && "with" !== importAttributesKeyword) return void this.printList(attributes || assertions);
29667
29499
  const occurrenceCount = hasPreviousBrace ? 1 : 0;
29668
29500
  this.token("{", null, occurrenceCount);
29669
29501
  this.space();
@@ -30212,10 +30044,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
30212
30044
  this.print(node.key);
30213
30045
  this.tokenChar(93);
30214
30046
  } else {
30215
- if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) {
30216
- this.print(node.value);
30217
- return;
30218
- }
30047
+ if (isAssignmentPattern(node.value) && isIdentifier(node.key) && node.key.name === node.value.left.name) return void this.print(node.value);
30219
30048
  this.print(node.key);
30220
30049
  if (node.shorthand && isIdentifier(node.key) && isIdentifier(node.value) && node.key.name === node.value.name) return;
30221
30050
  }
@@ -30303,19 +30132,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
30303
30132
  }
30304
30133
  function StringLiteral(node) {
30305
30134
  const raw = this.getPossibleRaw(node);
30306
- if (!this.format.minified && void 0 !== raw) {
30307
- this.token(raw);
30308
- return;
30309
- }
30135
+ if (!this.format.minified && void 0 !== raw) return void this.token(raw);
30310
30136
  const val = _jsesc(node.value, this.format.jsescOption);
30311
30137
  this.token(val);
30312
30138
  }
30313
30139
  function BigIntLiteral(node) {
30314
30140
  const raw = this.getPossibleRaw(node);
30315
- if (!this.format.minified && void 0 !== raw) {
30316
- this.word(raw);
30317
- return;
30318
- }
30141
+ if (!this.format.minified && void 0 !== raw) return void this.word(raw);
30319
30142
  this.word(node.value + "n");
30320
30143
  }
30321
30144
  const validTopicTokenSet = new Set([
@@ -30489,10 +30312,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
30489
30312
  maybePrintTrailingCommaOrSemicolon(this, node);
30490
30313
  }
30491
30314
  function maybePrintTrailingCommaOrSemicolon(printer, node) {
30492
- if (!printer.tokenMap || !node.start || !node.end) {
30493
- printer.semicolon();
30494
- return;
30495
- }
30315
+ if (!printer.tokenMap || !node.start || !node.end) return void printer.semicolon();
30496
30316
  if (printer.tokenMap.endMatches(node, ",")) printer.token(",");
30497
30317
  else if (printer.tokenMap.endMatches(node, ";")) printer.semicolon();
30498
30318
  }
@@ -30865,10 +30685,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
30865
30685
  this.space();
30866
30686
  }
30867
30687
  this.print(id);
30868
- if (!node.body) {
30869
- this.semicolon();
30870
- return;
30871
- }
30688
+ if (!node.body) return void this.semicolon();
30872
30689
  let body = node.body;
30873
30690
  while("TSModuleDeclaration" === body.type){
30874
30691
  this.tokenChar(46);
@@ -31765,10 +31582,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
31765
31582
  if (i <= 0) return;
31766
31583
  if (!force) {
31767
31584
  if (this.format.retainLines || this.format.compact) return;
31768
- if (this.format.concise) {
31769
- this.space();
31770
- return;
31771
- }
31585
+ if (this.format.concise) return void this.space();
31772
31586
  }
31773
31587
  if (i > 2) i = 2;
31774
31588
  i -= this._buf.getNewlineCount();
@@ -31787,10 +31601,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
31787
31601
  this._buf.removeTrailingNewline();
31788
31602
  }
31789
31603
  exactSource(loc, cb) {
31790
- if (!loc) {
31791
- cb();
31792
- return;
31793
- }
31604
+ if (!loc) return void cb();
31794
31605
  this._catchUp("start", loc);
31795
31606
  this._buf.exactSource(loc, cb);
31796
31607
  }
@@ -32014,7 +31825,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32014
31825
  const len = nodes.length;
32015
31826
  for(let i = 0; i < len; i++){
32016
31827
  const node = nodes[i];
32017
- if (!!node) {
31828
+ if (node) {
32018
31829
  if (statement) this._printNewline(0 === i, newlineOpts);
32019
31830
  this.print(node, void 0, trailingCommentsLineOffset || 0);
32020
31831
  null == iterator || iterator(node, i);
@@ -32096,19 +31907,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32096
31907
  _printNewline(newLine, opts) {
32097
31908
  const format = this.format;
32098
31909
  if (format.retainLines || format.compact) return;
32099
- if (format.concise) {
32100
- this.space();
32101
- return;
32102
- }
31910
+ if (format.concise) return void this.space();
32103
31911
  if (!newLine) return;
32104
31912
  const startLine = opts.nextNodeStartLine;
32105
31913
  const lastCommentLine = this._lastCommentLine;
32106
31914
  if (startLine > 0 && lastCommentLine > 0) {
32107
31915
  const offset = startLine - lastCommentLine;
32108
- if (offset >= 0) {
32109
- this.newline(offset || 1);
32110
- return;
32111
- }
31916
+ if (offset >= 0) return void this.newline(offset || 1);
32112
31917
  }
32113
31918
  if (this._buf.hasContent()) this.newline(1);
32114
31919
  }
@@ -32284,22 +32089,20 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32284
32089
  var _originalMapping;
32285
32090
  this._rawMappings = void 0;
32286
32091
  let originalMapping;
32287
- if (null != line) {
32288
- if (this._inputMap) {
32289
- originalMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, {
32290
- line,
32291
- column
32292
- });
32293
- if (!originalMapping.name && identifierNamePos) {
32294
- const originalIdentifierMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, identifierNamePos);
32295
- if (originalIdentifierMapping.name) identifierName = originalIdentifierMapping.name;
32296
- }
32297
- } else originalMapping = {
32298
- source: (null == filename ? void 0 : filename.replace(/\\/g, "/")) || this._sourceFileName,
32299
- line: line,
32300
- column: column
32301
- };
32302
- }
32092
+ if (null != line) if (this._inputMap) {
32093
+ originalMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, {
32094
+ line,
32095
+ column
32096
+ });
32097
+ if (!originalMapping.name && identifierNamePos) {
32098
+ const originalIdentifierMapping = (0, _traceMapping.originalPositionFor)(this._inputMap, identifierNamePos);
32099
+ if (originalIdentifierMapping.name) identifierName = originalIdentifierMapping.name;
32100
+ }
32101
+ } else originalMapping = {
32102
+ source: (null == filename ? void 0 : filename.replace(/\\/g, "/")) || this._sourceFileName,
32103
+ line: line,
32104
+ column: column
32105
+ };
32303
32106
  (0, _genMapping.maybeAddMapping)(this._map, {
32304
32107
  name: identifierName,
32305
32108
  generated,
@@ -32472,10 +32275,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32472
32275
  const keys = VISITOR_KEYS[node.type];
32473
32276
  for (const key of keys){
32474
32277
  const child = node[key];
32475
- if (!!child) {
32476
- if (Array.isArray(child)) yield* child;
32477
- else yield child;
32478
- }
32278
+ if (child) if (Array.isArray(child)) yield* child;
32279
+ else yield child;
32479
32280
  }
32480
32281
  }
32481
32282
  },
@@ -32547,15 +32348,14 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32547
32348
  ++pos;
32548
32349
  ++curLine;
32549
32350
  lineStart = pos;
32550
- } else if (10 === ch || 13 === ch) {
32551
- if ("template" === type) {
32552
- out += input.slice(chunkStart, pos) + "\n";
32553
- ++pos;
32554
- if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
32555
- ++curLine;
32556
- chunkStart = lineStart = pos;
32557
- } else errors.unterminated(initialPos, initialLineStart, initialCurLine);
32558
- } else ++pos;
32351
+ } else if (10 === ch || 13 === ch) if ("template" === type) {
32352
+ out += input.slice(chunkStart, pos) + "\n";
32353
+ ++pos;
32354
+ if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
32355
+ ++curLine;
32356
+ chunkStart = lineStart = pos;
32357
+ } else errors.unterminated(initialPos, initialLineStart, initialCurLine);
32358
+ else ++pos;
32559
32359
  }
32560
32360
  return {
32561
32361
  pos,
@@ -32629,10 +32429,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32629
32429
  }
32630
32430
  pos += octalStr.length - 1;
32631
32431
  const next = input.charCodeAt(pos);
32632
- if ("0" !== octalStr || 56 === next || 57 === next) {
32633
- if (inTemplate) return res(null);
32634
- errors.strictNumericEscape(startPos, lineStart, curLine);
32635
- }
32432
+ if ("0" !== octalStr || 56 === next || 57 === next) if (inTemplate) return res(null);
32433
+ else errors.strictNumericEscape(startPos, lineStart, curLine);
32636
32434
  return res(String.fromCharCode(octal));
32637
32435
  }
32638
32436
  return res(String.fromCharCode(ch));
@@ -32642,10 +32440,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32642
32440
  const initialPos = pos;
32643
32441
  let n;
32644
32442
  ({ n, pos } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
32645
- if (null === n) {
32646
- if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
32647
- else pos = initialPos - 1;
32648
- }
32443
+ if (null === n) if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
32444
+ else pos = initialPos - 1;
32649
32445
  return {
32650
32446
  code: n,
32651
32447
  pos
@@ -32682,17 +32478,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32682
32478
  continue;
32683
32479
  }
32684
32480
  val = code >= 97 ? code - 97 + 10 : code >= 65 ? code - 65 + 10 : _isDigit(code) ? code - 48 : 1 / 0;
32685
- if (val >= radix) {
32686
- if (val <= 9 && bailOnError) return {
32687
- n: null,
32688
- pos
32689
- };
32690
- if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
32691
- else if (forceLen) {
32692
- val = 0;
32693
- invalid = true;
32694
- } else break;
32695
- }
32481
+ if (val >= radix) if (val <= 9 && bailOnError) return {
32482
+ n: null,
32483
+ pos
32484
+ };
32485
+ else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
32486
+ else if (forceLen) {
32487
+ val = 0;
32488
+ invalid = true;
32489
+ } else break;
32696
32490
  ++pos;
32697
32491
  total = total * radix + val;
32698
32492
  }
@@ -32712,13 +32506,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
32712
32506
  ++pos;
32713
32507
  ({ code, pos } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
32714
32508
  ++pos;
32715
- if (null !== code && code > 0x10ffff) {
32716
- if (!throwOnInvalid) return {
32717
- code: null,
32718
- pos
32719
- };
32720
- errors.invalidCodePoint(pos, lineStart, curLine);
32721
- }
32509
+ if (null !== code && code > 0x10ffff) if (!throwOnInvalid) return {
32510
+ code: null,
32511
+ pos
32512
+ };
32513
+ else errors.invalidCodePoint(pos, lineStart, curLine);
32722
32514
  } else ({ code, pos } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
32723
32515
  return {
32724
32516
  code,
@@ -36704,15 +36496,14 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
36704
36496
  ++pos;
36705
36497
  ++curLine;
36706
36498
  lineStart = pos;
36707
- } else if (10 === ch || 13 === ch) {
36708
- if ("template" === type) {
36709
- out += input.slice(chunkStart, pos) + "\n";
36710
- ++pos;
36711
- if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
36712
- ++curLine;
36713
- chunkStart = lineStart = pos;
36714
- } else errors.unterminated(initialPos, initialLineStart, initialCurLine);
36715
- } else ++pos;
36499
+ } else if (10 === ch || 13 === ch) if ("template" === type) {
36500
+ out += input.slice(chunkStart, pos) + "\n";
36501
+ ++pos;
36502
+ if (13 === ch && 10 === input.charCodeAt(pos)) ++pos;
36503
+ ++curLine;
36504
+ chunkStart = lineStart = pos;
36505
+ } else errors.unterminated(initialPos, initialLineStart, initialCurLine);
36506
+ else ++pos;
36716
36507
  }
36717
36508
  return {
36718
36509
  pos,
@@ -36786,10 +36577,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
36786
36577
  }
36787
36578
  pos += octalStr.length - 1;
36788
36579
  const next = input.charCodeAt(pos);
36789
- if ("0" !== octalStr || 56 === next || 57 === next) {
36790
- if (inTemplate) return res(null);
36791
- errors.strictNumericEscape(startPos, lineStart, curLine);
36792
- }
36580
+ if ("0" !== octalStr || 56 === next || 57 === next) if (inTemplate) return res(null);
36581
+ else errors.strictNumericEscape(startPos, lineStart, curLine);
36793
36582
  return res(String.fromCharCode(octal));
36794
36583
  }
36795
36584
  return res(String.fromCharCode(ch));
@@ -36799,10 +36588,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
36799
36588
  const initialPos = pos;
36800
36589
  let n;
36801
36590
  ({ n, pos } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
36802
- if (null === n) {
36803
- if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
36804
- else pos = initialPos - 1;
36805
- }
36591
+ if (null === n) if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
36592
+ else pos = initialPos - 1;
36806
36593
  return {
36807
36594
  code: n,
36808
36595
  pos
@@ -36839,17 +36626,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
36839
36626
  continue;
36840
36627
  }
36841
36628
  val = code >= 97 ? code - 97 + 10 : code >= 65 ? code - 65 + 10 : _isDigit(code) ? code - 48 : 1 / 0;
36842
- if (val >= radix) {
36843
- if (val <= 9 && bailOnError) return {
36844
- n: null,
36845
- pos
36846
- };
36847
- if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
36848
- else if (forceLen) {
36849
- val = 0;
36850
- invalid = true;
36851
- } else break;
36852
- }
36629
+ if (val >= radix) if (val <= 9 && bailOnError) return {
36630
+ n: null,
36631
+ pos
36632
+ };
36633
+ else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
36634
+ else if (forceLen) {
36635
+ val = 0;
36636
+ invalid = true;
36637
+ } else break;
36853
36638
  ++pos;
36854
36639
  total = total * radix + val;
36855
36640
  }
@@ -36869,13 +36654,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
36869
36654
  ++pos;
36870
36655
  ({ code, pos } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
36871
36656
  ++pos;
36872
- if (null !== code && code > 0x10ffff) {
36873
- if (!throwOnInvalid) return {
36874
- code: null,
36875
- pos
36876
- };
36877
- errors.invalidCodePoint(pos, lineStart, curLine);
36878
- }
36657
+ if (null !== code && code > 0x10ffff) if (!throwOnInvalid) return {
36658
+ code: null,
36659
+ pos
36660
+ };
36661
+ else errors.invalidCodePoint(pos, lineStart, curLine);
36879
36662
  } else ({ code, pos } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
36880
36663
  return {
36881
36664
  code,
@@ -37036,10 +36819,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37036
36819
  this.skipSpace();
37037
36820
  this.state.start = this.state.pos;
37038
36821
  if (!this.isLookahead) this.state.startLoc = this.state.curPosition();
37039
- if (this.state.pos >= this.length) {
37040
- this.finishToken(140);
37041
- return;
37042
- }
36822
+ if (this.state.pos >= this.length) return void this.finishToken(140);
37043
36823
  this.getTokenFromCode(this.codePointAtPos(this.state.pos));
37044
36824
  }
37045
36825
  skipBlockComment(commentEnd) {
@@ -37197,10 +36977,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37197
36977
  }
37198
36978
  readToken_dot() {
37199
36979
  const next = this.input.charCodeAt(this.state.pos + 1);
37200
- if (next >= 48 && next <= 57) {
37201
- this.readNumber(true);
37202
- return;
37203
- }
36980
+ if (next >= 48 && next <= 57) return void this.readNumber(true);
37204
36981
  if (46 === next && 46 === this.input.charCodeAt(this.state.pos + 2)) {
37205
36982
  this.state.pos += 3;
37206
36983
  this.finishToken(21);
@@ -37248,10 +37025,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37248
37025
  return;
37249
37026
  }
37250
37027
  if (124 === code) {
37251
- if (62 === next) {
37252
- this.finishOp(39, 2);
37253
- return;
37254
- }
37028
+ if (62 === next) return void this.finishOp(39, 2);
37255
37029
  if (this.hasPlugin("recordAndTuple") && 125 === next) {
37256
37030
  if ("bar" !== this.getPluginOption("recordAndTuple", "syntaxType")) throw this.raise(Errors.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
37257
37031
  this.state.pos += 2;
@@ -37265,27 +37039,23 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37265
37039
  return;
37266
37040
  }
37267
37041
  }
37268
- if (61 === next) {
37269
- this.finishOp(30, 2);
37270
- return;
37271
- }
37042
+ if (61 === next) return void this.finishOp(30, 2);
37272
37043
  this.finishOp(124 === code ? 43 : 45, 1);
37273
37044
  }
37274
37045
  readToken_caret() {
37275
37046
  const next = this.input.charCodeAt(this.state.pos + 1);
37276
- if (61 !== next || this.state.inType) {
37277
- if (94 === next && this.hasPlugin([
37278
- "pipelineOperator",
37279
- {
37280
- proposal: "hack",
37281
- topicToken: "^^"
37282
- }
37283
- ])) {
37284
- this.finishOp(37, 2);
37285
- const lookaheadCh = this.input.codePointAt(this.state.pos);
37286
- if (94 === lookaheadCh) this.unexpected();
37287
- } else this.finishOp(44, 1);
37288
- } else this.finishOp(32, 2);
37047
+ if (61 !== next || this.state.inType) if (94 === next && this.hasPlugin([
37048
+ "pipelineOperator",
37049
+ {
37050
+ proposal: "hack",
37051
+ topicToken: "^^"
37052
+ }
37053
+ ])) {
37054
+ this.finishOp(37, 2);
37055
+ const lookaheadCh = this.input.codePointAt(this.state.pos);
37056
+ if (94 === lookaheadCh) this.unexpected();
37057
+ } else this.finishOp(44, 1);
37058
+ else this.finishOp(32, 2);
37289
37059
  }
37290
37060
  readToken_atSign() {
37291
37061
  const next = this.input.charCodeAt(this.state.pos + 1);
@@ -37300,10 +37070,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37300
37070
  }
37301
37071
  readToken_plus_min(code) {
37302
37072
  const next = this.input.charCodeAt(this.state.pos + 1);
37303
- if (next === code) {
37304
- this.finishOp(34, 2);
37305
- return;
37306
- }
37073
+ if (next === code) return void this.finishOp(34, 2);
37307
37074
  if (61 === next) this.finishOp(30, 2);
37308
37075
  else this.finishOp(53, 1);
37309
37076
  }
@@ -37311,17 +37078,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37311
37078
  const { pos } = this.state;
37312
37079
  const next = this.input.charCodeAt(pos + 1);
37313
37080
  if (60 === next) {
37314
- if (61 === this.input.charCodeAt(pos + 2)) {
37315
- this.finishOp(30, 3);
37316
- return;
37317
- }
37081
+ if (61 === this.input.charCodeAt(pos + 2)) return void this.finishOp(30, 3);
37318
37082
  this.finishOp(51, 2);
37319
37083
  return;
37320
37084
  }
37321
- if (61 === next) {
37322
- this.finishOp(49, 2);
37323
- return;
37324
- }
37085
+ if (61 === next) return void this.finishOp(49, 2);
37325
37086
  this.finishOp(47, 1);
37326
37087
  }
37327
37088
  readToken_gt() {
@@ -37329,25 +37090,16 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37329
37090
  const next = this.input.charCodeAt(pos + 1);
37330
37091
  if (62 === next) {
37331
37092
  const size = 62 === this.input.charCodeAt(pos + 2) ? 3 : 2;
37332
- if (61 === this.input.charCodeAt(pos + size)) {
37333
- this.finishOp(30, size + 1);
37334
- return;
37335
- }
37093
+ if (61 === this.input.charCodeAt(pos + size)) return void this.finishOp(30, size + 1);
37336
37094
  this.finishOp(52, size);
37337
37095
  return;
37338
37096
  }
37339
- if (61 === next) {
37340
- this.finishOp(49, 2);
37341
- return;
37342
- }
37097
+ if (61 === next) return void this.finishOp(49, 2);
37343
37098
  this.finishOp(48, 1);
37344
37099
  }
37345
37100
  readToken_eq_excl(code) {
37346
37101
  const next = this.input.charCodeAt(this.state.pos + 1);
37347
- if (61 === next) {
37348
- this.finishOp(46, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2);
37349
- return;
37350
- }
37102
+ if (61 === next) return void this.finishOp(46, 61 === this.input.charCodeAt(this.state.pos + 2) ? 3 : 2);
37351
37103
  if (61 === code && 62 === next) {
37352
37104
  this.state.pos += 2;
37353
37105
  this.finishToken(19);
@@ -37358,10 +37110,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37358
37110
  readToken_question() {
37359
37111
  const next = this.input.charCodeAt(this.state.pos + 1);
37360
37112
  const next2 = this.input.charCodeAt(this.state.pos + 2);
37361
- if (63 === next) {
37362
- if (61 === next2) this.finishOp(30, 3);
37363
- else this.finishOp(40, 2);
37364
- } else if (46 !== next || next2 >= 48 && next2 <= 57) {
37113
+ if (63 === next) if (61 === next2) this.finishOp(30, 3);
37114
+ else this.finishOp(40, 2);
37115
+ else if (46 !== next || next2 >= 48 && next2 <= 57) {
37365
37116
  ++this.state.pos;
37366
37117
  this.finishToken(17);
37367
37118
  } else {
@@ -37434,18 +37185,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37434
37185
  case 48:
37435
37186
  {
37436
37187
  const next = this.input.charCodeAt(this.state.pos + 1);
37437
- if (120 === next || 88 === next) {
37438
- this.readRadixNumber(16);
37439
- return;
37440
- }
37441
- if (111 === next || 79 === next) {
37442
- this.readRadixNumber(8);
37443
- return;
37444
- }
37445
- if (98 === next || 66 === next) {
37446
- this.readRadixNumber(2);
37447
- return;
37448
- }
37188
+ if (120 === next || 88 === next) return void this.readRadixNumber(16);
37189
+ if (111 === next || 79 === next) return void this.readRadixNumber(8);
37190
+ if (98 === next || 66 === next) return void this.readRadixNumber(2);
37449
37191
  }
37450
37192
  case 49:
37451
37193
  case 50:
@@ -37503,10 +37245,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37503
37245
  this.readWord();
37504
37246
  return;
37505
37247
  default:
37506
- if (isIdentifierStart(code)) {
37507
- this.readWord(code);
37508
- return;
37509
- }
37248
+ if (isIdentifierStart(code)) return void this.readWord(code);
37510
37249
  }
37511
37250
  throw this.raise(Errors.InvalidOrUnexpectedToken, this.state.curPosition(), {
37512
37251
  unexpected: String.fromCodePoint(code)
@@ -37632,14 +37371,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
37632
37371
  }
37633
37372
  if (isIdentifierStart(this.codePointAtPos(this.state.pos))) throw this.raise(Errors.NumberIdentifier, this.state.curPosition());
37634
37373
  const str = this.input.slice(start, this.state.pos).replace(/[_mn]/g, "");
37635
- if (isBigInt) {
37636
- this.finishToken(136, str);
37637
- return;
37638
- }
37639
- if (isDecimal) {
37640
- this.finishToken(137, str);
37641
- return;
37642
- }
37374
+ if (isBigInt) return void this.finishToken(136, str);
37375
+ if (isDecimal) return void this.finishToken(137, str);
37643
37376
  const val = isOctal ? parseInt(str, 8) : parseFloat(str);
37644
37377
  this.finishToken(135, val);
37645
37378
  }
@@ -38340,11 +38073,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38340
38073
  addComment(comment) {
38341
38074
  if (void 0 === this.flowPragma) {
38342
38075
  const matches = FLOW_PRAGMA_REGEX.exec(comment.value);
38343
- if (matches) {
38344
- if ("flow" === matches[1]) this.flowPragma = "flow";
38345
- else if ("noflow" === matches[1]) this.flowPragma = "noflow";
38346
- else throw new Error("Unexpected flow pragma");
38347
- }
38076
+ if (matches) if ("flow" === matches[1]) this.flowPragma = "flow";
38077
+ else if ("noflow" === matches[1]) this.flowPragma = "noflow";
38078
+ else throw new Error("Unexpected flow pragma");
38348
38079
  }
38349
38080
  super.addComment(comment);
38350
38081
  }
@@ -38416,8 +38147,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
38416
38147
  if (this.match(80)) return this.flowParseDeclareClass(node);
38417
38148
  if (this.match(68)) return this.flowParseDeclareFunction(node);
38418
38149
  if (this.match(74)) return this.flowParseDeclareVariable(node);
38419
- if (this.eatContextual(127)) {
38420
- if (this.match(16)) return this.flowParseDeclareModuleExports(node);
38150
+ if (this.eatContextual(127)) if (this.match(16)) return this.flowParseDeclareModuleExports(node);
38151
+ else {
38421
38152
  if (insideModule) this.raise(FlowErrors.NestedDeclareModule, this.state.lastTokStartLoc);
38422
38153
  return this.flowParseDeclareModule(node);
38423
38154
  }
@@ -39040,12 +38771,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
39040
38771
  {
39041
38772
  const node = this.startNode();
39042
38773
  this.next();
39043
- if (!this.match(11) && !this.match(21)) {
39044
- if (tokenIsIdentifier(this.state.type) || this.match(78)) {
39045
- const token = this.lookahead().type;
39046
- isGroupedType = 17 !== token && 14 !== token;
39047
- } else isGroupedType = true;
39048
- }
38774
+ if (!this.match(11) && !this.match(21)) if (tokenIsIdentifier(this.state.type) || this.match(78)) {
38775
+ const token = this.lookahead().type;
38776
+ isGroupedType = 17 !== token && 14 !== token;
38777
+ } else isGroupedType = true;
39049
38778
  if (isGroupedType) {
39050
38779
  this.state.noAnonFunctionType = false;
39051
38780
  type = this.flowParseType();
@@ -39226,10 +38955,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
39226
38955
  return variance;
39227
38956
  }
39228
38957
  parseFunctionBody(node, allowExpressionBody, isMethod = false) {
39229
- if (allowExpressionBody) {
39230
- this.forwardNoArrowParamsConversionAt(node, ()=>super.parseFunctionBody(node, true, isMethod));
39231
- return;
39232
- }
38958
+ if (allowExpressionBody) return void this.forwardNoArrowParamsConversionAt(node, ()=>super.parseFunctionBody(node, true, isMethod));
39233
38959
  super.parseFunctionBody(node, false, isMethod);
39234
38960
  }
39235
38961
  parseFunctionBodyAndFinish(node, type, isMethod = false) {
@@ -39263,8 +38989,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
39263
38989
  if (this.match(80) || tokenIsIdentifier(this.state.type) || this.match(68) || this.match(74) || this.match(82)) return this.flowParseDeclare(node);
39264
38990
  } else if (tokenIsIdentifier(this.state.type)) {
39265
38991
  if ("interface" === expr.name) return this.flowParseInterface(node);
39266
- if ("type" === expr.name) return this.flowParseTypeAlias(node);
39267
- if ("opaque" === expr.name) return this.flowParseOpaqueType(node, false);
38992
+ else if ("type" === expr.name) return this.flowParseTypeAlias(node);
38993
+ else if ("opaque" === expr.name) return this.flowParseOpaqueType(node, false);
39268
38994
  }
39269
38995
  }
39270
38996
  return super.parseExpressionStatement(node, expr, decorators);
@@ -39475,10 +39201,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
39475
39201
  const next = this.input.charCodeAt(this.state.pos + 1);
39476
39202
  if (123 === code && 124 === next) this.finishOp(6, 2);
39477
39203
  else if (this.state.inType && (62 === code || 60 === code)) this.finishOp(62 === code ? 48 : 47, 1);
39478
- else if (this.state.inType && 63 === code) {
39479
- if (46 === next) this.finishOp(18, 2);
39480
- else this.finishOp(17, 1);
39481
- } else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) {
39204
+ else if (this.state.inType && 63 === code) if (46 === next) this.finishOp(18, 2);
39205
+ else this.finishOp(17, 1);
39206
+ else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) {
39482
39207
  this.state.pos += 2;
39483
39208
  this.readIterator();
39484
39209
  } else super.getTokenFromCode(code);
@@ -39875,10 +39600,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
39875
39600
  }
39876
39601
  readToken_pipe_amp(code) {
39877
39602
  const next = this.input.charCodeAt(this.state.pos + 1);
39878
- if (124 === code && 125 === next) {
39879
- this.finishOp(9, 2);
39880
- return;
39881
- }
39603
+ if (124 === code && 125 === next) return void this.finishOp(9, 2);
39882
39604
  super.readToken_pipe_amp(code);
39883
39605
  }
39884
39606
  parseTopLevel(file, program) {
@@ -40145,22 +39867,21 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
40145
39867
  const strsLen = members.stringMembers.length;
40146
39868
  const defaultedLen = members.defaultedMembers.length;
40147
39869
  if (!boolsLen && !numsLen && !strsLen && !defaultedLen) return empty();
40148
- if (boolsLen || numsLen) {
40149
- if (numsLen || strsLen || !(boolsLen >= defaultedLen)) {
40150
- if (boolsLen || strsLen || !(numsLen >= defaultedLen)) {
40151
- this.raise(FlowErrors.EnumInconsistentMemberValues, nameLoc, {
40152
- enumName
40153
- });
40154
- return empty();
40155
- }
40156
- for (const member of members.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(member.loc.start, {
40157
- enumName,
40158
- memberName: member.id.name
40159
- });
40160
- node.members = members.numberMembers;
40161
- this.expect(8);
40162
- return this.finishNode(node, "EnumNumberBody");
40163
- }
39870
+ if (boolsLen || numsLen) if (numsLen || strsLen || !(boolsLen >= defaultedLen)) if (boolsLen || strsLen || !(numsLen >= defaultedLen)) {
39871
+ this.raise(FlowErrors.EnumInconsistentMemberValues, nameLoc, {
39872
+ enumName
39873
+ });
39874
+ return empty();
39875
+ } else {
39876
+ for (const member of members.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(member.loc.start, {
39877
+ enumName,
39878
+ memberName: member.id.name
39879
+ });
39880
+ node.members = members.numberMembers;
39881
+ this.expect(8);
39882
+ return this.finishNode(node, "EnumNumberBody");
39883
+ }
39884
+ else {
40164
39885
  for (const member of members.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(member.loc.start, {
40165
39886
  enumName,
40166
39887
  memberName: member.id.name
@@ -40777,24 +40498,15 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
40777
40498
  }
40778
40499
  getTokenFromCode(code) {
40779
40500
  const context = this.curContext();
40780
- if (context === types.j_expr) {
40781
- this.jsxReadToken();
40782
- return;
40783
- }
40501
+ if (context === types.j_expr) return void this.jsxReadToken();
40784
40502
  if (context === types.j_oTag || context === types.j_cTag) {
40785
- if (isIdentifierStart(code)) {
40786
- this.jsxReadWord();
40787
- return;
40788
- }
40503
+ if (isIdentifierStart(code)) return void this.jsxReadWord();
40789
40504
  if (62 === code) {
40790
40505
  ++this.state.pos;
40791
40506
  this.finishToken(144);
40792
40507
  return;
40793
40508
  }
40794
- if ((34 === code || 39 === code) && context === types.j_oTag) {
40795
- this.jsxReadString(code);
40796
- return;
40797
- }
40509
+ if ((34 === code || 39 === code) && context === types.j_oTag) return void this.jsxReadString(code);
40798
40510
  }
40799
40511
  if (60 === code && this.state.canStartJSXElement && 33 !== this.input.charCodeAt(this.state.pos + 1)) {
40800
40512
  ++this.state.pos;
@@ -40891,10 +40603,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
40891
40603
  }
40892
40604
  return true;
40893
40605
  }
40894
- if (128 & bindingType && (8 & type) > 0) {
40895
- if (2 & scope.names.get(name)) return !!(1 & bindingType);
40896
- return false;
40897
- }
40606
+ if (128 & bindingType && (8 & type) > 0) if (2 & scope.names.get(name)) return !!(1 & bindingType);
40607
+ else return false;
40898
40608
  if (2 & bindingType && (1 & type) > 0) return true;
40899
40609
  return super.isRedeclaredInScope(scope, name, bindingType);
40900
40610
  }
@@ -40977,7 +40687,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
40977
40687
  const end = exprList.length - 1;
40978
40688
  for(let i = 0; i <= end; i++){
40979
40689
  const elt = exprList[i];
40980
- if (!!elt) {
40690
+ if (elt) {
40981
40691
  if ("SpreadElement" === elt.type) {
40982
40692
  elt.type = "RestElement";
40983
40693
  const arg = elt.argument;
@@ -41156,10 +40866,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
41156
40866
  if ("Identifier" === type) {
41157
40867
  this.checkIdentifier(expression, binding, strictModeChanged);
41158
40868
  const { name } = expression;
41159
- if (checkClashes) {
41160
- if (checkClashes.has(name)) this.raise(Errors.ParamDupe, expression);
41161
- else checkClashes.add(name);
41162
- }
40869
+ if (checkClashes) if (checkClashes.has(name)) this.raise(Errors.ParamDupe, expression);
40870
+ else checkClashes.add(name);
41163
40871
  return;
41164
40872
  }
41165
40873
  const validity = this.isValidLVal(type, !(hasParenthesizedAncestor || null != (_expression$extra = expression.extra) && _expression$extra.parenthesized) && "AssignmentExpression" === ancestor.type, binding);
@@ -41185,14 +40893,12 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
41185
40893
  } else if (val) this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression);
41186
40894
  }
41187
40895
  checkIdentifier(at, bindingType, strictModeChanged = false) {
41188
- if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) {
41189
- if (64 === bindingType) this.raise(Errors.StrictEvalArguments, at, {
41190
- referenceName: at.name
41191
- });
41192
- else this.raise(Errors.StrictEvalArgumentsBinding, at, {
41193
- bindingName: at.name
41194
- });
41195
- }
40896
+ if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) if (64 === bindingType) this.raise(Errors.StrictEvalArguments, at, {
40897
+ referenceName: at.name
40898
+ });
40899
+ else this.raise(Errors.StrictEvalArgumentsBinding, at, {
40900
+ bindingName: at.name
40901
+ });
41196
40902
  if (8192 & bindingType && "let" === at.name) this.raise(Errors.LetInLexicalBinding, at);
41197
40903
  if (!(64 & bindingType)) this.declareNameFromIdentifier(at, bindingType);
41198
40904
  }
@@ -41420,17 +41126,16 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
41420
41126
  const { startLoc } = this.state;
41421
41127
  const modifier = this.tsParseModifier(allowedModifiers.concat(null != disallowedModifiers ? disallowedModifiers : []), stopOnStartOfClassStaticBlock);
41422
41128
  if (!modifier) break;
41423
- if (tsIsAccessModifier(modifier)) {
41424
- if (modified.accessibility) this.raise(TSErrors.DuplicateAccessibilityModifier, startLoc, {
41425
- modifier
41426
- });
41427
- else {
41428
- enforceOrder(startLoc, modifier, modifier, "override");
41429
- enforceOrder(startLoc, modifier, modifier, "static");
41430
- enforceOrder(startLoc, modifier, modifier, "readonly");
41431
- modified.accessibility = modifier;
41432
- }
41433
- } else if (tsIsVarianceAnnotations(modifier)) {
41129
+ if (tsIsAccessModifier(modifier)) if (modified.accessibility) this.raise(TSErrors.DuplicateAccessibilityModifier, startLoc, {
41130
+ modifier
41131
+ });
41132
+ else {
41133
+ enforceOrder(startLoc, modifier, modifier, "override");
41134
+ enforceOrder(startLoc, modifier, modifier, "static");
41135
+ enforceOrder(startLoc, modifier, modifier, "readonly");
41136
+ modified.accessibility = modifier;
41137
+ }
41138
+ else if (tsIsVarianceAnnotations(modifier)) {
41434
41139
  if (modified[modifier]) this.raise(TSErrors.DuplicateModifier, startLoc, {
41435
41140
  modifier
41436
41141
  });
@@ -41497,10 +41202,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
41497
41202
  return result;
41498
41203
  }
41499
41204
  tsParseBracketedList(kind, parseElement, bracket, skipFirstToken, refTrailingCommaPos) {
41500
- if (!skipFirstToken) {
41501
- if (bracket) this.expect(0);
41502
- else this.expect(47);
41503
- }
41205
+ if (!skipFirstToken) if (bracket) this.expect(0);
41206
+ else this.expect(47);
41504
41207
  const result = this.tsParseDelimitedList(kind, parseElement, refTrailingCommaPos);
41505
41208
  if (bracket) this.expect(3);
41506
41209
  else this.expect(48);
@@ -41526,14 +41229,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
41526
41229
  }
41527
41230
  tsParseEntityName(flags) {
41528
41231
  let entity;
41529
- if (1 & flags && this.match(78)) {
41530
- if (2 & flags) entity = this.parseIdentifier(true);
41531
- else {
41532
- const node = this.startNode();
41533
- this.next();
41534
- entity = this.finishNode(node, "ThisExpression");
41535
- }
41536
- } else entity = this.parseIdentifier(!!(1 & flags));
41232
+ if (1 & flags && this.match(78)) if (2 & flags) entity = this.parseIdentifier(true);
41233
+ else {
41234
+ const node = this.startNode();
41235
+ this.next();
41236
+ entity = this.finishNode(node, "ThisExpression");
41237
+ }
41238
+ else entity = this.parseIdentifier(!!(1 & flags));
41537
41239
  while(this.eat(16)){
41538
41240
  const node = this.startNodeAtNode(entity);
41539
41241
  node.left = entity;
@@ -42446,7 +42148,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
42446
42148
  case "module":
42447
42149
  if (this.tsCheckLineTerminator(next)) {
42448
42150
  if (this.match(134)) return this.tsParseAmbientExternalModuleDeclaration(node);
42449
- if (tokenIsIdentifier(this.state.type)) {
42151
+ else if (tokenIsIdentifier(this.state.type)) {
42450
42152
  node.kind = "module";
42451
42153
  return this.tsParseModuleOrNamespaceDeclaration(node);
42452
42154
  }
@@ -42754,7 +42456,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
42754
42456
  const { isAmbientContext } = this.state;
42755
42457
  const declaration = super.parseVarStatement(node, kind, allowMissingInitializer || isAmbientContext);
42756
42458
  if (!isAmbientContext) return declaration;
42757
- for (const { id, init } of declaration.declarations)if (!!init) {
42459
+ for (const { id, init } of declaration.declarations)if (init) {
42758
42460
  if ("const" !== kind || id.typeAnnotation) this.raise(TSErrors.InitializerNotAllowedInAmbientContext, init);
42759
42461
  else if (!isValidAmbientConstInitializer(init, this.hasPlugin("estree"))) this.raise(TSErrors.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference, init);
42760
42462
  }
@@ -43168,14 +42870,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
43168
42870
  }
43169
42871
  getTokenFromCode(code) {
43170
42872
  if (this.state.inType) {
43171
- if (62 === code) {
43172
- this.finishOp(48, 1);
43173
- return;
43174
- }
43175
- if (60 === code) {
43176
- this.finishOp(47, 1);
43177
- return;
43178
- }
42873
+ if (62 === code) return void this.finishOp(48, 1);
42874
+ if (60 === code) return void this.finishOp(47, 1);
43179
42875
  }
43180
42876
  super.getTokenFromCode(code);
43181
42877
  }
@@ -43484,14 +43180,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
43484
43180
  this.next();
43485
43181
  const oldStrict = this.state.strict;
43486
43182
  const placeholder = this.parsePlaceholder("Identifier");
43487
- if (placeholder) {
43488
- if (this.match(81) || this.match(133) || this.match(5)) node.id = placeholder;
43489
- else if (optionalId || !isStatement) {
43490
- node.id = null;
43491
- node.body = this.finishPlaceholder(placeholder, "ClassBody");
43492
- return this.finishNode(node, type);
43493
- } else throw this.raise(PlaceholderErrors.ClassNameIsRequired, this.state.startLoc);
43494
- } else this.parseClassId(node, isStatement, optionalId);
43183
+ if (placeholder) if (this.match(81) || this.match(133) || this.match(5)) node.id = placeholder;
43184
+ else if (optionalId || !isStatement) {
43185
+ node.id = null;
43186
+ node.body = this.finishPlaceholder(placeholder, "ClassBody");
43187
+ return this.finishNode(node, type);
43188
+ } else throw this.raise(PlaceholderErrors.ClassNameIsRequired, this.state.startLoc);
43189
+ else this.parseClassId(node, isStatement, optionalId);
43495
43190
  super.parseClassSuper(node);
43496
43191
  node.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!node.superClass, oldStrict);
43497
43192
  return this.finishNode(node, type);
@@ -43670,15 +43365,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
43670
43365
  const key = prop.key;
43671
43366
  const name = "Identifier" === key.type ? key.name : key.value;
43672
43367
  if ("__proto__" === name) {
43673
- if (isRecord) {
43674
- this.raise(Errors.RecordNoProto, key);
43675
- return;
43676
- }
43677
- if (protoRef.used) {
43678
- if (refExpressionErrors) {
43679
- if (null === refExpressionErrors.doubleProtoLoc) refExpressionErrors.doubleProtoLoc = key.loc.start;
43680
- } else this.raise(Errors.DuplicateProto, key);
43681
- }
43368
+ if (isRecord) return void this.raise(Errors.RecordNoProto, key);
43369
+ if (protoRef.used) if (refExpressionErrors) {
43370
+ if (null === refExpressionErrors.doubleProtoLoc) refExpressionErrors.doubleProtoLoc = key.loc.start;
43371
+ } else this.raise(Errors.DuplicateProto, key);
43682
43372
  protoRef.used = true;
43683
43373
  }
43684
43374
  }
@@ -44096,10 +43786,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
44096
43786
  node = this.startNode();
44097
43787
  this.next();
44098
43788
  if (this.match(16)) return this.parseImportMetaProperty(node);
44099
- if (this.match(10)) {
44100
- if (256 & this.optionFlags) return this.parseImportCall(node);
44101
- return this.finishNode(node, "Import");
44102
- }
43789
+ if (this.match(10)) if (256 & this.optionFlags) return this.parseImportCall(node);
43790
+ else return this.finishNode(node, "Import");
44103
43791
  this.raise(Errors.UnsupportedImport, this.state.lastTokStartLoc);
44104
43792
  return this.finishNode(node, "Import");
44105
43793
  case 78:
@@ -44205,10 +43893,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
44205
43893
  this.next();
44206
43894
  return this.parseAsyncFunctionExpression(this.startNodeAtNode(id));
44207
43895
  }
44208
- if (tokenIsIdentifier(type)) {
44209
- if (61 === this.lookaheadCharCode()) return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id));
44210
- return id;
44211
- }
43896
+ if (tokenIsIdentifier(type)) if (61 === this.lookaheadCharCode()) return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id));
43897
+ else return id;
44212
43898
  if (90 === type) {
44213
43899
  this.resetPreviousNodeTrailingComments(id);
44214
43900
  return this.parseDo(this.startNodeAtNode(id), true);
@@ -44245,12 +43931,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
44245
43931
  return this.finishTopicReference(node, startLoc, pipeProposal, tokenType);
44246
43932
  }
44247
43933
  finishTopicReference(node, startLoc, pipeProposal, tokenType) {
44248
- if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) {
44249
- if ("hack" === pipeProposal) {
44250
- if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PipeTopicUnbound, startLoc);
44251
- this.registerTopicReference();
44252
- return this.finishNode(node, "TopicReference");
44253
- }
43934
+ if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) if ("hack" === pipeProposal) {
43935
+ if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PipeTopicUnbound, startLoc);
43936
+ this.registerTopicReference();
43937
+ return this.finishNode(node, "TopicReference");
43938
+ } else {
44254
43939
  if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PrimaryTopicNotAllowed, startLoc);
44255
43940
  this.registerTopicReference();
44256
43941
  return this.finishNode(node, "PipelinePrimaryTopicReference");
@@ -44872,39 +44557,21 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
44872
44557
  checkReservedWord(word, startLoc, checkKeywords, isBinding) {
44873
44558
  if (word.length > 10) return;
44874
44559
  if (!canBeReservedWord(word)) return;
44875
- if (checkKeywords && isKeyword(word)) {
44876
- this.raise(Errors.UnexpectedKeyword, startLoc, {
44877
- keyword: word
44878
- });
44879
- return;
44880
- }
44560
+ if (checkKeywords && isKeyword(word)) return void this.raise(Errors.UnexpectedKeyword, startLoc, {
44561
+ keyword: word
44562
+ });
44881
44563
  const reservedTest = this.state.strict ? isBinding ? isStrictBindReservedWord : isStrictReservedWord : isReservedWord;
44882
- if (reservedTest(word, this.inModule)) {
44883
- this.raise(Errors.UnexpectedReservedWord, startLoc, {
44884
- reservedWord: word
44885
- });
44886
- return;
44887
- }
44564
+ if (reservedTest(word, this.inModule)) return void this.raise(Errors.UnexpectedReservedWord, startLoc, {
44565
+ reservedWord: word
44566
+ });
44888
44567
  if ("yield" === word) {
44889
- if (this.prodParam.hasYield) {
44890
- this.raise(Errors.YieldBindingIdentifier, startLoc);
44891
- return;
44892
- }
44568
+ if (this.prodParam.hasYield) return void this.raise(Errors.YieldBindingIdentifier, startLoc);
44893
44569
  } else if ("await" === word) {
44894
- if (this.prodParam.hasAwait) {
44895
- this.raise(Errors.AwaitBindingIdentifier, startLoc);
44896
- return;
44897
- }
44898
- if (this.scope.inStaticBlock) {
44899
- this.raise(Errors.AwaitBindingIdentifierInStaticBlock, startLoc);
44900
- return;
44901
- }
44570
+ if (this.prodParam.hasAwait) return void this.raise(Errors.AwaitBindingIdentifier, startLoc);
44571
+ if (this.scope.inStaticBlock) return void this.raise(Errors.AwaitBindingIdentifierInStaticBlock, startLoc);
44902
44572
  this.expressionScope.recordAsyncArrowParametersError(startLoc);
44903
44573
  } else if ("arguments" === word) {
44904
- if (this.scope.inClassAndNotInNonArrowFunction) {
44905
- this.raise(Errors.ArgumentsInClass, startLoc);
44906
- return;
44907
- }
44574
+ if (this.scope.inClassAndNotInNonArrowFunction) return void this.raise(Errors.ArgumentsInClass, startLoc);
44908
44575
  }
44909
44576
  }
44910
44577
  recordAwaitIfAllowed() {
@@ -44916,10 +44583,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
44916
44583
  const node = this.startNodeAt(startLoc);
44917
44584
  this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter, node);
44918
44585
  if (this.eat(55)) this.raise(Errors.ObsoleteAwaitStar, node);
44919
- if (!this.scope.inFunction && !(1 & this.optionFlags)) {
44920
- if (this.isAmbiguousAwait()) this.ambiguousScriptDifferentAst = true;
44921
- else this.sawUnambiguousESM = true;
44922
- }
44586
+ if (!this.scope.inFunction && !(1 & this.optionFlags)) if (this.isAmbiguousAwait()) this.ambiguousScriptDifferentAst = true;
44587
+ else this.sawUnambiguousESM = true;
44923
44588
  if (!this.state.soloAwait) node.argument = this.parseMaybeUnary(null, true);
44924
44589
  return this.finishNode(node, "AwaitExpression");
44925
44590
  }
@@ -45833,15 +45498,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
45833
45498
  const decl = this.startNode();
45834
45499
  this.parseVarId(decl, kind);
45835
45500
  decl.init = this.eat(29) ? isFor ? this.parseMaybeAssignDisallowIn() : this.parseMaybeAssignAllowIn() : null;
45836
- if (null === decl.init && !allowMissingInitializer) {
45837
- if ("Identifier" === decl.id.type || isFor && (this.match(58) || this.isContextual(102))) {
45838
- if (("const" === kind || "using" === kind || "await using" === kind) && !(this.match(58) || this.isContextual(102))) this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
45839
- kind
45840
- });
45841
- } else this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
45842
- kind: "destructuring"
45501
+ if (null === decl.init && !allowMissingInitializer) if ("Identifier" === decl.id.type || isFor && (this.match(58) || this.isContextual(102))) {
45502
+ if (("const" === kind || "using" === kind || "await using" === kind) && !(this.match(58) || this.isContextual(102))) this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
45503
+ kind
45843
45504
  });
45844
- }
45505
+ } else this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
45506
+ kind: "destructuring"
45507
+ });
45845
45508
  declarations.push(this.finishNode(decl, "VariableDeclarator"));
45846
45509
  if (!this.eat(12)) break;
45847
45510
  }
@@ -45983,10 +45646,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
45983
45646
  const isStatic = this.isContextual(106);
45984
45647
  if (isStatic) {
45985
45648
  if (this.parseClassMemberFromModifier(classBody, member)) return;
45986
- if (this.eat(5)) {
45987
- this.parseClassStaticBlock(classBody, member);
45988
- return;
45989
- }
45649
+ if (this.eat(5)) return void this.parseClassStaticBlock(classBody, member);
45990
45650
  }
45991
45651
  this.parseClassMemberWithIsStatic(classBody, member, state, isStatic);
45992
45652
  }
@@ -46004,10 +45664,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
46004
45664
  method.kind = "method";
46005
45665
  const isPrivateName = this.match(139);
46006
45666
  this.parseClassElementName(method);
46007
- if (isPrivateName) {
46008
- this.pushClassPrivateMethod(classBody, privateMethod, true, false);
46009
- return;
46010
- }
45667
+ if (isPrivateName) return void this.pushClassPrivateMethod(classBody, privateMethod, true, false);
46011
45668
  if (this.isNonstaticConstructor(publicMethod)) this.raise(Errors.ConstructorIsGenerator, publicMethod.key);
46012
45669
  this.pushClassMethod(classBody, publicMethod, true, false, false, false);
46013
45670
  return;
@@ -46020,10 +45677,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
46020
45677
  this.parsePostMemberNameModifiers(publicMember);
46021
45678
  if (this.isClassMethod()) {
46022
45679
  method.kind = "method";
46023
- if (isPrivate) {
46024
- this.pushClassPrivateMethod(classBody, privateMethod, false, false);
46025
- return;
46026
- }
45680
+ if (isPrivate) return void this.pushClassPrivateMethod(classBody, privateMethod, false, false);
46027
45681
  const isConstructor = this.isNonstaticConstructor(publicMethod);
46028
45682
  let allowsDirectSuper = false;
46029
45683
  if (isConstructor) {
@@ -46034,36 +45688,31 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
46034
45688
  allowsDirectSuper = state.hadSuperClass;
46035
45689
  }
46036
45690
  this.pushClassMethod(classBody, publicMethod, false, false, isConstructor, allowsDirectSuper);
46037
- } else if (this.isClassProperty()) {
46038
- if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
46039
- else this.pushClassProperty(classBody, publicProp);
46040
- } else if ("async" !== maybeContextualKw || this.isLineTerminator()) {
46041
- if ("get" !== maybeContextualKw && "set" !== maybeContextualKw || this.match(55) && this.isLineTerminator()) {
46042
- if ("accessor" !== maybeContextualKw || this.isLineTerminator()) {
46043
- if (this.isLineTerminator()) {
46044
- if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
46045
- else this.pushClassProperty(classBody, publicProp);
46046
- } else this.unexpected();
46047
- } else {
46048
- this.expectPlugin("decoratorAutoAccessors");
46049
- this.resetPreviousNodeTrailingComments(key);
46050
- const isPrivate = this.match(139);
46051
- this.parseClassElementName(publicProp);
46052
- this.pushClassAccessorProperty(classBody, accessorProp, isPrivate);
46053
- }
46054
- } else {
46055
- this.resetPreviousNodeTrailingComments(key);
46056
- method.kind = maybeContextualKw;
46057
- const isPrivate = this.match(139);
46058
- this.parseClassElementName(publicMethod);
46059
- if (isPrivate) this.pushClassPrivateMethod(classBody, privateMethod, false, false);
46060
- else {
46061
- if (this.isNonstaticConstructor(publicMethod)) this.raise(Errors.ConstructorIsAccessor, publicMethod.key);
46062
- this.pushClassMethod(classBody, publicMethod, false, false, false, false);
46063
- }
46064
- this.checkGetterSetterParams(publicMethod);
45691
+ } else if (this.isClassProperty()) if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
45692
+ else this.pushClassProperty(classBody, publicProp);
45693
+ else if ("async" !== maybeContextualKw || this.isLineTerminator()) if ("get" !== maybeContextualKw && "set" !== maybeContextualKw || this.match(55) && this.isLineTerminator()) if ("accessor" !== maybeContextualKw || this.isLineTerminator()) if (this.isLineTerminator()) if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
45694
+ else this.pushClassProperty(classBody, publicProp);
45695
+ else this.unexpected();
45696
+ else {
45697
+ this.expectPlugin("decoratorAutoAccessors");
45698
+ this.resetPreviousNodeTrailingComments(key);
45699
+ const isPrivate = this.match(139);
45700
+ this.parseClassElementName(publicProp);
45701
+ this.pushClassAccessorProperty(classBody, accessorProp, isPrivate);
45702
+ }
45703
+ else {
45704
+ this.resetPreviousNodeTrailingComments(key);
45705
+ method.kind = maybeContextualKw;
45706
+ const isPrivate = this.match(139);
45707
+ this.parseClassElementName(publicMethod);
45708
+ if (isPrivate) this.pushClassPrivateMethod(classBody, privateMethod, false, false);
45709
+ else {
45710
+ if (this.isNonstaticConstructor(publicMethod)) this.raise(Errors.ConstructorIsAccessor, publicMethod.key);
45711
+ this.pushClassMethod(classBody, publicMethod, false, false, false, false);
46065
45712
  }
46066
- } else {
45713
+ this.checkGetterSetterParams(publicMethod);
45714
+ }
45715
+ else {
46067
45716
  this.resetPreviousNodeTrailingComments(key);
46068
45717
  const isGenerator = this.eat(55);
46069
45718
  if (publicMember.optional) this.unexpected(maybeQuestionTokenStartLoc);
@@ -46393,12 +46042,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
46393
46042
  else if ("AssignmentPattern" === node.type) this.checkDeclaration(node.left);
46394
46043
  }
46395
46044
  checkDuplicateExports(node, exportName) {
46396
- if (this.exportedIdentifiers.has(exportName)) {
46397
- if ("default" === exportName) this.raise(Errors.DuplicateDefaultExport, node);
46398
- else this.raise(Errors.DuplicateExport, node, {
46399
- exportName
46400
- });
46401
- }
46045
+ if (this.exportedIdentifiers.has(exportName)) if ("default" === exportName) this.raise(Errors.DuplicateDefaultExport, node);
46046
+ else this.raise(Errors.DuplicateExport, node, {
46047
+ exportName
46048
+ });
46402
46049
  this.exportedIdentifiers.add(exportName);
46403
46050
  }
46404
46051
  parseExportSpecifiers(isInTypeExport) {
@@ -47157,13 +46804,12 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47157
46804
  if ("string" == typeof replacement) replacement = stringLiteral(replacement);
47158
46805
  if (!replacement || !isStringLiteral(replacement)) throw new Error("Expected string substitution");
47159
46806
  } else if ("statement" === placeholder.type) {
47160
- if (void 0 === index) {
47161
- if (replacement) {
47162
- if (Array.isArray(replacement)) replacement = blockStatement(replacement);
47163
- else if ("string" == typeof replacement) replacement = expressionStatement(identifier(replacement));
47164
- else if (!isStatement(replacement)) replacement = expressionStatement(replacement);
47165
- } else replacement = emptyStatement();
47166
- } else if (replacement && !Array.isArray(replacement)) {
46807
+ if (void 0 === index) if (replacement) {
46808
+ if (Array.isArray(replacement)) replacement = blockStatement(replacement);
46809
+ else if ("string" == typeof replacement) replacement = expressionStatement(identifier(replacement));
46810
+ else if (!isStatement(replacement)) replacement = expressionStatement(replacement);
46811
+ } else replacement = emptyStatement();
46812
+ else if (replacement && !Array.isArray(replacement)) {
47167
46813
  if ("string" == typeof replacement) replacement = identifier(replacement);
47168
46814
  if (!isStatement(replacement)) replacement = expressionStatement(replacement);
47169
46815
  }
@@ -47188,11 +46834,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47188
46834
  set(parent, key, replacement);
47189
46835
  } else {
47190
46836
  const items = parent[key].slice();
47191
- if ("statement" === placeholder.type || "param" === placeholder.type) {
47192
- if (null == replacement) items.splice(index, 1);
47193
- else if (Array.isArray(replacement)) items.splice(index, 1, ...replacement);
47194
- else set(items, index, replacement);
47195
- } else set(items, index, replacement);
46837
+ if ("statement" === placeholder.type || "param" === placeholder.type) if (null == replacement) items.splice(index, 1);
46838
+ else if (Array.isArray(replacement)) items.splice(index, 1, ...replacement);
46839
+ else set(items, index, replacement);
46840
+ else set(items, index, replacement);
47196
46841
  validate(parent, key, items);
47197
46842
  parent[key] = items;
47198
46843
  }
@@ -47291,10 +46936,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47291
46936
  });
47292
46937
  }
47293
46938
  maybeQueue(path, notPriority) {
47294
- if (this.queue) {
47295
- if (notPriority) this.queue.push(path);
47296
- else this.priorityQueue.push(path);
47297
- }
46939
+ if (this.queue) if (notPriority) this.queue.push(path);
46940
+ else this.priorityQueue.push(path);
47298
46941
  }
47299
46942
  visitMultiple(container, parent, listKey) {
47300
46943
  if (0 === container.length) return false;
@@ -47531,10 +47174,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47531
47174
  lastCommonIndex = i;
47532
47175
  lastCommon = shouldMatch;
47533
47176
  }
47534
- if (lastCommon) {
47535
- if (filter) return filter(lastCommon, lastCommonIndex, ancestries);
47536
- return lastCommon;
47537
- }
47177
+ if (lastCommon) if (filter) return filter(lastCommon, lastCommonIndex, ancestries);
47178
+ else return lastCommon;
47538
47179
  throw new Error("Couldn't find intersection");
47539
47180
  }
47540
47181
  function getAncestry() {
@@ -47734,14 +47375,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47734
47375
  if (!this.container) return;
47735
47376
  if (this.node === this.container[this.key]) return;
47736
47377
  if (Array.isArray(this.container)) {
47737
- for(let i = 0; i < this.container.length; i++)if (this.container[i] === this.node) {
47738
- setKey.call(this, i);
47739
- return;
47740
- }
47741
- } else for (const key of Object.keys(this.container))if (this.container[key] === this.node) {
47742
- setKey.call(this, key);
47743
- return;
47744
- }
47378
+ for(let i = 0; i < this.container.length; i++)if (this.container[i] === this.node) return void setKey.call(this, i);
47379
+ } else for (const key of Object.keys(this.container))if (this.container[key] === this.node) return void setKey.call(this, key);
47745
47380
  this.key = null;
47746
47381
  }
47747
47382
  function _resyncList() {
@@ -47910,14 +47545,12 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
47910
47545
  const inConstructor = thisEnvFn.isClassMethod({
47911
47546
  kind: "constructor"
47912
47547
  });
47913
- if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty()) {
47914
- if (arrowParent) thisEnvFn = arrowParent;
47915
- else if (allowInsertArrow) {
47916
- fnPath.replaceWith(callExpression(arrowFunctionExpression([], toExpression(fnPath.node)), []));
47917
- thisEnvFn = fnPath.get("callee");
47918
- fnPath = thisEnvFn.get("body");
47919
- } else throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");
47920
- }
47548
+ if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty()) if (arrowParent) thisEnvFn = arrowParent;
47549
+ else if (allowInsertArrow) {
47550
+ fnPath.replaceWith(callExpression(arrowFunctionExpression([], toExpression(fnPath.node)), []));
47551
+ thisEnvFn = fnPath.get("callee");
47552
+ fnPath = thisEnvFn.get("body");
47553
+ } else throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property");
47921
47554
  const { thisPaths, argumentsPaths, newTargetPaths, superProps, superCalls } = getScopeInformation(fnPath);
47922
47555
  if (inConstructor && superCalls.length > 0) {
47923
47556
  if (!allowInsertArrow) throw superCalls[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");
@@ -48150,10 +47783,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48150
47783
  })) return;
48151
47784
  let curr = child.scope;
48152
47785
  do {
48153
- if (curr.hasOwnBinding("arguments")) {
48154
- curr.rename("arguments");
48155
- return;
48156
- }
47786
+ if (curr.hasOwnBinding("arguments")) return void curr.rename("arguments");
48157
47787
  if (curr.path.isFunction() && !curr.path.isArrowFunctionExpression()) break;
48158
47788
  }while (curr = curr.parent);
48159
47789
  argumentsPaths.push(child);
@@ -48356,8 +47986,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48356
47986
  if (seen.has(node)) {
48357
47987
  const existing = seen.get(node);
48358
47988
  if (existing.resolved) return existing.value;
48359
- deopt(path, state);
48360
- return;
47989
+ return void deopt(path, state);
48361
47990
  }
48362
47991
  {
48363
47992
  const item = {
@@ -48413,10 +48042,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48413
48042
  if (path.isReferencedIdentifier()) {
48414
48043
  const binding = path.scope.getBinding(path.node.name);
48415
48044
  if (binding) {
48416
- if (binding.constantViolations.length > 0 || path.node.start < binding.path.node.end) {
48417
- deopt(binding.path, state);
48418
- return;
48419
- }
48045
+ if (binding.constantViolations.length > 0 || path.node.start < binding.path.node.end) return void deopt(binding.path, state);
48420
48046
  if (binding.hasValue) return binding.value;
48421
48047
  }
48422
48048
  const name = path.node.name;
@@ -48426,9 +48052,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48426
48052
  return;
48427
48053
  }
48428
48054
  const resolved = path.resolve();
48429
- if (resolved !== path) return evaluateCached(resolved, state);
48430
- deopt(path, state);
48431
- return;
48055
+ if (resolved === path) return void deopt(path, state);
48056
+ return evaluateCached(resolved, state);
48432
48057
  }
48433
48058
  if (path.isUnaryExpression({
48434
48059
  prefix: true
@@ -48456,11 +48081,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48456
48081
  const elems = path.get("elements");
48457
48082
  for (const elem of elems){
48458
48083
  const elemValue = elem.evaluate();
48459
- if (elemValue.confident) arr.push(elemValue.value);
48460
- else {
48461
- deopt(elemValue.deopt, state);
48462
- return;
48463
- }
48084
+ if (!elemValue.confident) return void deopt(elemValue.deopt, state);
48085
+ arr.push(elemValue.value);
48464
48086
  }
48465
48087
  return arr;
48466
48088
  }
@@ -48468,26 +48090,17 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48468
48090
  const obj = {};
48469
48091
  const props = path.get("properties");
48470
48092
  for (const prop of props){
48471
- if (prop.isObjectMethod() || prop.isSpreadElement()) {
48472
- deopt(prop, state);
48473
- return;
48474
- }
48093
+ if (prop.isObjectMethod() || prop.isSpreadElement()) return void deopt(prop, state);
48475
48094
  const keyPath = prop.get("key");
48476
48095
  let key;
48477
48096
  if (prop.node.computed) {
48478
48097
  key = keyPath.evaluate();
48479
- if (!key.confident) {
48480
- deopt(key.deopt, state);
48481
- return;
48482
- }
48098
+ if (!key.confident) return void deopt(key.deopt, state);
48483
48099
  key = key.value;
48484
48100
  } else key = keyPath.isIdentifier() ? keyPath.node.name : keyPath.node.value;
48485
48101
  const valuePath = prop.get("value");
48486
48102
  let value1 = valuePath.evaluate();
48487
- if (!value1.confident) {
48488
- deopt(value1.deopt, state);
48489
- return;
48490
- }
48103
+ if (!value1.confident) return void deopt(value1.deopt, state);
48491
48104
  value1 = value1.value;
48492
48105
  obj[key] = value1;
48493
48106
  }
@@ -48691,10 +48304,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
48691
48304
  completions.forEach((c)=>{
48692
48305
  if (c.path.isBreakStatement({
48693
48306
  label: null
48694
- })) {
48695
- if (reachable) c.path.replaceWith(unaryExpression("void", numericLiteral(0)));
48696
- else c.path.remove();
48697
- }
48307
+ })) if (reachable) c.path.replaceWith(unaryExpression("void", numericLiteral(0)));
48308
+ else c.path.remove();
48698
48309
  });
48699
48310
  }
48700
48311
  function getStatementListCompletion(paths, context) {
@@ -49181,15 +48792,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49181
48792
  const typeAnnotationInferringNodes = new WeakSet();
49182
48793
  function _getTypeAnnotation() {
49183
48794
  const node = this.node;
49184
- if (!node) {
49185
- if (!("init" === this.key && this.parentPath.isVariableDeclarator())) return;
49186
- {
49187
- const declar = this.parentPath.parentPath;
49188
- const declarParent = declar.parentPath;
49189
- if ("left" === declar.key && declarParent.isForInStatement()) return stringTypeAnnotation();
49190
- if ("left" === declar.key && declarParent.isForOfStatement()) return anyTypeAnnotation();
49191
- return voidTypeAnnotation();
49192
- }
48795
+ if (!node) if (!("init" === this.key && this.parentPath.isVariableDeclarator())) return;
48796
+ else {
48797
+ const declar = this.parentPath.parentPath;
48798
+ const declarParent = declar.parentPath;
48799
+ if ("left" === declar.key && declarParent.isForInStatement()) return stringTypeAnnotation();
48800
+ if ("left" === declar.key && declarParent.isForOfStatement()) return anyTypeAnnotation();
48801
+ return voidTypeAnnotation();
49193
48802
  }
49194
48803
  if (node.typeAnnotation) return node.typeAnnotation;
49195
48804
  if (typeAnnotationInferringNodes.has(node)) return;
@@ -49213,10 +48822,10 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49213
48822
  if ("boolean" === baseName) return isBooleanTypeAnnotation(type);
49214
48823
  if ("any" === baseName) return isAnyTypeAnnotation(type);
49215
48824
  if ("mixed" === baseName) return isMixedTypeAnnotation(type);
49216
- if ("empty" === baseName) return isEmptyTypeAnnotation(type);
49217
- if ("void" === baseName) return isVoidTypeAnnotation(type);
49218
- if (soft) return false;
49219
- throw new Error(`Unknown base type ${baseName}`);
48825
+ else if ("empty" === baseName) return isEmptyTypeAnnotation(type);
48826
+ else if ("void" === baseName) return isVoidTypeAnnotation(type);
48827
+ else if (soft) return false;
48828
+ else throw new Error(`Unknown base type ${baseName}`);
49220
48829
  }
49221
48830
  function couldBeBaseType(name) {
49222
48831
  const type = this.getTypeAnnotation();
@@ -49254,10 +48863,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49254
48863
  function _default(node) {
49255
48864
  if (!this.isReferenced()) return;
49256
48865
  const binding = this.scope.getBinding(node.name);
49257
- if (binding) {
49258
- if (binding.identifier.typeAnnotation) return binding.identifier.typeAnnotation;
49259
- return getTypeAnnotationBindingConstantViolations(binding, this, node.name);
49260
- }
48866
+ if (binding) if (binding.identifier.typeAnnotation) return binding.identifier.typeAnnotation;
48867
+ else return getTypeAnnotationBindingConstantViolations(binding, this, node.name);
49261
48868
  if ("undefined" === node.name) return voidTypeAnnotation();
49262
48869
  if ("NaN" === node.name || "Infinity" === node.name) return numberTypeAnnotation();
49263
48870
  node.name;
@@ -49529,10 +49136,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49529
49136
  callee = callee.resolve();
49530
49137
  if (callee.isFunction()) {
49531
49138
  const { node } = callee;
49532
- if (node.async) {
49533
- if (node.generator) return genericTypeAnnotation(identifier("AsyncIterator"));
49534
- return genericTypeAnnotation(identifier("Promise"));
49535
- }
49139
+ if (node.async) if (node.generator) return genericTypeAnnotation(identifier("AsyncIterator"));
49140
+ else return genericTypeAnnotation(identifier("Promise"));
49536
49141
  if (node.generator) return genericTypeAnnotation(identifier("Iterator"));
49537
49142
  if (callee.node.returnType) return callee.node.returnType;
49538
49143
  }
@@ -49948,14 +49553,13 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
49948
49553
  const scopes = this.scopes;
49949
49554
  const scope = scopes.pop();
49950
49555
  if (!scope) return;
49951
- if (scope.path.isFunction()) {
49952
- if (!this.hasOwnParamBindings(scope)) return this.getNextScopeAttachmentParent();
49953
- {
49954
- if (this.scope === scope) return;
49955
- const bodies = scope.path.get("body").get("body");
49956
- for(let i = 0; i < bodies.length; i++)if (!bodies[i].node._blockHoist) return bodies[i];
49957
- }
49958
- } else if (scope.path.isProgram()) return this.getNextScopeAttachmentParent();
49556
+ if (scope.path.isFunction()) if (!this.hasOwnParamBindings(scope)) return this.getNextScopeAttachmentParent();
49557
+ else {
49558
+ if (this.scope === scope) return;
49559
+ const bodies = scope.path.get("body").get("body");
49560
+ for(let i = 0; i < bodies.length; i++)if (!bodies[i].node._blockHoist) return bodies[i];
49561
+ }
49562
+ else if (scope.path.isProgram()) return this.getNextScopeAttachmentParent();
49959
49563
  }
49960
49564
  getNextScopeAttachmentParent() {
49961
49565
  const scope = this.scopes.pop();
@@ -50060,7 +49664,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
50060
49664
  const { node, parent } = this;
50061
49665
  if (!isIdentifier(node, opts) && !isJSXMemberExpression(parent, opts)) {
50062
49666
  if (!isJSXIdentifier(node, opts)) return false;
50063
- if (isCompatTag(node.name)) return false;
49667
+ else if (isCompatTag(node.name)) return false;
50064
49668
  }
50065
49669
  return nodeIsReferenced(node, parent, this.parentPath.parent);
50066
49670
  }
@@ -50331,12 +49935,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
50331
49935
  for(let i = 0; i < nodes.length; i++){
50332
49936
  const node = nodes[i];
50333
49937
  let msg;
50334
- if (node) {
50335
- if ("object" != typeof node) msg = "contains a non-object node";
50336
- else if (node.type) {
50337
- if (node instanceof _index.default) msg = "has a NodePath when it expected a raw object";
50338
- } else msg = "without a type";
50339
- } else msg = "has falsy node";
49938
+ if (node) if ("object" != typeof node) msg = "contains a non-object node";
49939
+ else if (node.type) {
49940
+ if (node instanceof _index.default) msg = "has a NodePath when it expected a raw object";
49941
+ } else msg = "without a type";
49942
+ else msg = "has falsy node";
50340
49943
  if (msg) {
50341
49944
  const type = Array.isArray(node) ? "array" : typeof node;
50342
49945
  throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`);
@@ -50396,10 +49999,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
50396
49999
  var _this$opts;
50397
50000
  _assertUnremoved.call(this);
50398
50001
  _context.resync.call(this);
50399
- if (_callRemovalHooks.call(this)) {
50400
- _markRemoved.call(this);
50401
- return;
50402
- }
50002
+ if (_callRemovalHooks.call(this)) return void _markRemoved.call(this);
50403
50003
  if (!(null != (_this$opts = this.opts) && _this$opts.noScope)) _removeFromScope.call(this);
50404
50004
  this.shareCommentsWithSiblings();
50405
50005
  _remove.call(this);
@@ -51478,10 +51078,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
51478
51078
  Scope (path, state) {
51479
51079
  if (!path.scope.bindingIdentifierEquals(state.oldName, state.binding.identifier)) {
51480
51080
  path.skip();
51481
- if (path.isMethod()) {
51482
- if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
51483
- else _context.requeueComputedKeyAndDecorators.call(path);
51484
- }
51081
+ if (path.isMethod()) if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
51082
+ else _context.requeueComputedKeyAndDecorators.call(path);
51485
51083
  }
51486
51084
  },
51487
51085
  ObjectProperty ({ node, scope }, state) {
@@ -51697,7 +51295,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
51697
51295
  "exit"
51698
51296
  ]){
51699
51297
  let fns = oldVisitor[phase];
51700
- if (!!Array.isArray(fns)) {
51298
+ if (Array.isArray(fns)) {
51701
51299
  fns = fns.map(function(fn) {
51702
51300
  let newFn = fn;
51703
51301
  if (state) newFn = function(path) {
@@ -51749,16 +51347,14 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
51749
51347
  for (const phase of [
51750
51348
  "enter",
51751
51349
  "exit"
51752
- ])if (!!src[phase]) dest[phase] = [].concat(dest[phase] || [], src[phase]);
51350
+ ])if (src[phase]) dest[phase] = [].concat(dest[phase] || [], src[phase]);
51753
51351
  }
51754
51352
  const _environmentVisitor = {
51755
51353
  FunctionParent (path) {
51756
51354
  if (path.isArrowFunctionExpression()) return;
51757
51355
  path.skip();
51758
- if (path.isMethod()) {
51759
- if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
51760
- else _context.requeueComputedKeyAndDecorators.call(path);
51761
- }
51356
+ if (path.isMethod()) if (path.requeueComputedKeyAndDecorators) path.requeueComputedKeyAndDecorators();
51357
+ else _context.requeueComputedKeyAndDecorators.call(path);
51762
51358
  },
51763
51359
  Property (path) {
51764
51360
  if (path.isObjectProperty()) return;
@@ -57559,15 +57155,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
57559
57155
  if (hasOwn(node, "typeAnnotation")) newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
57560
57156
  if (hasOwn(node, "decorators")) newNode.decorators = deep ? cloneIfNodeOrArray(node.decorators, true, withoutLoc, commentsCache) : node.decorators;
57561
57157
  } else if (hasOwn(_index.NODE_FIELDS, type)) {
57562
- for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field)) {
57563
- if (deep) newNode[field] = (0, _index2.isFile)(node) && "comments" === field ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
57564
- else newNode[field] = node[field];
57565
- }
57158
+ for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field)) if (deep) newNode[field] = (0, _index2.isFile)(node) && "comments" === field ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
57159
+ else newNode[field] = node[field];
57566
57160
  } else throw new Error(`Unknown node type: "${type}"`);
57567
- if (hasOwn(node, "loc")) {
57568
- if (withoutLoc) newNode.loc = null;
57569
- else newNode.loc = node.loc;
57570
- }
57161
+ if (hasOwn(node, "loc")) if (withoutLoc) newNode.loc = null;
57162
+ else newNode.loc = node.loc;
57571
57163
  if (hasOwn(node, "leadingComments")) newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
57572
57164
  if (hasOwn(node, "innerComments")) newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
57573
57165
  if (hasOwn(node, "trailingComments")) newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
@@ -57624,10 +57216,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
57624
57216
  function addComments(node, type, comments) {
57625
57217
  if (!comments || !node) return node;
57626
57218
  const key = `${type}Comments`;
57627
- if (node[key]) {
57628
- if ("leading" === type) node[key] = comments.concat(node[key]);
57629
- else node[key].push(...comments);
57630
- } else node[key] = comments;
57219
+ if (node[key]) if ("leading" === type) node[key] = comments.concat(node[key]);
57220
+ else node[key].push(...comments);
57221
+ else node[key] = comments;
57631
57222
  return node;
57632
57223
  }
57633
57224
  },
@@ -58052,10 +57643,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
58052
57643
  newType = "FunctionDeclaration";
58053
57644
  } else if ((0, _index.isAssignmentExpression)(node)) return (0, _index2.expressionStatement)(node);
58054
57645
  if (mustHaveId && !node.id) newType = false;
58055
- if (!newType) {
58056
- if (ignore) return false;
58057
- throw new Error(`cannot turn ${node.type} to a statement`);
58058
- }
57646
+ if (!newType) if (ignore) return false;
57647
+ else throw new Error(`cannot turn ${node.type} to a statement`);
58059
57648
  node.type = newType;
58060
57649
  return node;
58061
57650
  }
@@ -62681,10 +62270,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
62681
62270
  }
62682
62271
  function assertNodeType(...types) {
62683
62272
  function validate(node, key, val) {
62684
- for (const type of types)if ((0, _is.default)(type, val)) {
62685
- (0, _validate.validateChild)(node, key, val);
62686
- return;
62687
- }
62273
+ for (const type of types)if ((0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
62688
62274
  throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null == val ? void 0 : val.type)}`);
62689
62275
  }
62690
62276
  validate.oneOfNodeTypes = types;
@@ -62692,10 +62278,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
62692
62278
  }
62693
62279
  function assertNodeOrValueType(...types) {
62694
62280
  function validate(node, key, val) {
62695
- for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) {
62696
- (0, _validate.validateChild)(node, key, val);
62697
- return;
62698
- }
62281
+ for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
62699
62282
  throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null == val ? void 0 : val.type)}`);
62700
62283
  }
62701
62284
  validate.oneOfNodeOrValueTypes = types;
@@ -63450,36 +63033,37 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
63450
63033
  const types = [];
63451
63034
  for(let i = 0; i < nodes.length; i++){
63452
63035
  const node = nodes[i];
63453
- if (!!node) {
63454
- if (types.includes(node)) continue;
63455
- if ((0, _index.isAnyTypeAnnotation)(node)) return [
63456
- node
63457
- ];
63458
- if ((0, _index.isFlowBaseAnnotation)(node)) {
63459
- bases.set(node.type, node);
63460
- continue;
63461
- }
63462
- if ((0, _index.isUnionTypeAnnotation)(node)) {
63463
- if (!typeGroups.has(node.types)) {
63464
- nodes.push(...node.types);
63465
- typeGroups.add(node.types);
63036
+ if (node) {
63037
+ if (!types.includes(node)) {
63038
+ if ((0, _index.isAnyTypeAnnotation)(node)) return [
63039
+ node
63040
+ ];
63041
+ if ((0, _index.isFlowBaseAnnotation)(node)) {
63042
+ bases.set(node.type, node);
63043
+ continue;
63466
63044
  }
63467
- continue;
63468
- }
63469
- if ((0, _index.isGenericTypeAnnotation)(node)) {
63470
- const name = getQualifiedName(node.id);
63471
- if (generics.has(name)) {
63472
- let existing = generics.get(name);
63473
- if (existing.typeParameters) {
63474
- if (node.typeParameters) {
63475
- existing.typeParameters.params.push(...node.typeParameters.params);
63476
- existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
63477
- }
63478
- } else existing = node.typeParameters;
63479
- } else generics.set(name, node);
63480
- continue;
63045
+ if ((0, _index.isUnionTypeAnnotation)(node)) {
63046
+ if (!typeGroups.has(node.types)) {
63047
+ nodes.push(...node.types);
63048
+ typeGroups.add(node.types);
63049
+ }
63050
+ continue;
63051
+ }
63052
+ if ((0, _index.isGenericTypeAnnotation)(node)) {
63053
+ const name = getQualifiedName(node.id);
63054
+ if (generics.has(name)) {
63055
+ let existing = generics.get(name);
63056
+ if (existing.typeParameters) {
63057
+ if (node.typeParameters) {
63058
+ existing.typeParameters.params.push(...node.typeParameters.params);
63059
+ existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
63060
+ }
63061
+ } else existing = node.typeParameters;
63062
+ } else generics.set(name, node);
63063
+ continue;
63064
+ }
63065
+ types.push(node);
63481
63066
  }
63482
- types.push(node);
63483
63067
  }
63484
63068
  }
63485
63069
  for (const [, baseType] of bases)types.push(baseType);
@@ -63572,36 +63156,37 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
63572
63156
  const types = [];
63573
63157
  for(let i = 0; i < nodes.length; i++){
63574
63158
  const node = nodes[i];
63575
- if (!!node) {
63576
- if (types.includes(node)) continue;
63577
- if ((0, _index.isTSAnyKeyword)(node)) return [
63578
- node
63579
- ];
63580
- if ((0, _index.isTSBaseType)(node)) {
63581
- bases.set(node.type, node);
63582
- continue;
63583
- }
63584
- if ((0, _index.isTSUnionType)(node)) {
63585
- if (!typeGroups.has(node.types)) {
63586
- nodes.push(...node.types);
63587
- typeGroups.add(node.types);
63159
+ if (node) {
63160
+ if (!types.includes(node)) {
63161
+ if ((0, _index.isTSAnyKeyword)(node)) return [
63162
+ node
63163
+ ];
63164
+ if ((0, _index.isTSBaseType)(node)) {
63165
+ bases.set(node.type, node);
63166
+ continue;
63588
63167
  }
63589
- continue;
63590
- }
63591
- if ((0, _index.isTSTypeReference)(node) && node.typeParameters) {
63592
- const name = getQualifiedName(node.typeName);
63593
- if (generics.has(name)) {
63594
- let existing = generics.get(name);
63595
- if (existing.typeParameters) {
63596
- if (node.typeParameters) {
63597
- existing.typeParameters.params.push(...node.typeParameters.params);
63598
- existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
63599
- }
63600
- } else existing = node.typeParameters;
63601
- } else generics.set(name, node);
63602
- continue;
63168
+ if ((0, _index.isTSUnionType)(node)) {
63169
+ if (!typeGroups.has(node.types)) {
63170
+ nodes.push(...node.types);
63171
+ typeGroups.add(node.types);
63172
+ }
63173
+ continue;
63174
+ }
63175
+ if ((0, _index.isTSTypeReference)(node) && node.typeParameters) {
63176
+ const name = getQualifiedName(node.typeName);
63177
+ if (generics.has(name)) {
63178
+ let existing = generics.get(name);
63179
+ if (existing.typeParameters) {
63180
+ if (node.typeParameters) {
63181
+ existing.typeParameters.params.push(...node.typeParameters.params);
63182
+ existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
63183
+ }
63184
+ } else existing = node.typeParameters;
63185
+ } else generics.set(name, node);
63186
+ continue;
63187
+ }
63188
+ types.push(node);
63603
63189
  }
63604
- types.push(node);
63605
63190
  }
63606
63191
  }
63607
63192
  for (const [, baseType] of bases)types.push(baseType);
@@ -63688,10 +63273,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
63688
63273
  if (keys) for(let i = 0; i < keys.length; i++){
63689
63274
  const key = keys[i];
63690
63275
  const nodes = id[key];
63691
- if (nodes) {
63692
- if (Array.isArray(nodes)) search.push(...nodes);
63693
- else search.push(nodes);
63694
- }
63276
+ if (nodes) if (Array.isArray(nodes)) search.push(...nodes);
63277
+ else search.push(nodes);
63695
63278
  }
63696
63279
  }
63697
63280
  return ids;
@@ -63897,7 +63480,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
63897
63480
  const subNode = node[key];
63898
63481
  if (Array.isArray(subNode)) for(let i = 0; i < subNode.length; i++){
63899
63482
  const child = subNode[i];
63900
- if (!!child) {
63483
+ if (child) {
63901
63484
  ancestors.push({
63902
63485
  node,
63903
63486
  key,
@@ -73042,15 +72625,11 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
73042
72625
  if (hasOwn(node, "typeAnnotation")) newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
73043
72626
  if (hasOwn(node, "decorators")) newNode.decorators = deep ? cloneIfNodeOrArray(node.decorators, true, withoutLoc, commentsCache) : node.decorators;
73044
72627
  } else if (hasOwn(_index.NODE_FIELDS, type)) {
73045
- for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field)) {
73046
- if (deep) newNode[field] = (0, _index2.isFile)(node) && "comments" === field ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
73047
- else newNode[field] = node[field];
73048
- }
72628
+ for (const field of Object.keys(_index.NODE_FIELDS[type]))if (hasOwn(node, field)) if (deep) newNode[field] = (0, _index2.isFile)(node) && "comments" === field ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
72629
+ else newNode[field] = node[field];
73049
72630
  } else throw new Error(`Unknown node type: "${type}"`);
73050
- if (hasOwn(node, "loc")) {
73051
- if (withoutLoc) newNode.loc = null;
73052
- else newNode.loc = node.loc;
73053
- }
72631
+ if (hasOwn(node, "loc")) if (withoutLoc) newNode.loc = null;
72632
+ else newNode.loc = node.loc;
73054
72633
  if (hasOwn(node, "leadingComments")) newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
73055
72634
  if (hasOwn(node, "innerComments")) newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
73056
72635
  if (hasOwn(node, "trailingComments")) newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
@@ -73107,10 +72686,9 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
73107
72686
  function addComments(node, type, comments) {
73108
72687
  if (!comments || !node) return node;
73109
72688
  const key = `${type}Comments`;
73110
- if (node[key]) {
73111
- if ("leading" === type) node[key] = comments.concat(node[key]);
73112
- else node[key].push(...comments);
73113
- } else node[key] = comments;
72689
+ if (node[key]) if ("leading" === type) node[key] = comments.concat(node[key]);
72690
+ else node[key].push(...comments);
72691
+ else node[key] = comments;
73114
72692
  return node;
73115
72693
  }
73116
72694
  },
@@ -73538,10 +73116,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
73538
73116
  newType = "FunctionDeclaration";
73539
73117
  } else if ((0, _index.isAssignmentExpression)(node)) return (0, _index2.expressionStatement)(node);
73540
73118
  if (mustHaveId && !node.id) newType = false;
73541
- if (!newType) {
73542
- if (ignore) return false;
73543
- throw new Error(`cannot turn ${node.type} to a statement`);
73544
- }
73119
+ if (!newType) if (ignore) return false;
73120
+ else throw new Error(`cannot turn ${node.type} to a statement`);
73545
73121
  node.type = newType;
73546
73122
  return node;
73547
73123
  }
@@ -78239,10 +77815,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
78239
77815
  }
78240
77816
  function assertNodeType(...types) {
78241
77817
  function validate(node, key, val) {
78242
- for (const type of types)if ((0, _is.default)(type, val)) {
78243
- (0, _validate.validateChild)(node, key, val);
78244
- return;
78245
- }
77818
+ for (const type of types)if ((0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
78246
77819
  throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null == val ? void 0 : val.type)}`);
78247
77820
  }
78248
77821
  validate.oneOfNodeTypes = types;
@@ -78250,10 +77823,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
78250
77823
  }
78251
77824
  function assertNodeOrValueType(...types) {
78252
77825
  function validate(node, key, val) {
78253
- for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) {
78254
- (0, _validate.validateChild)(node, key, val);
78255
- return;
78256
- }
77826
+ for (const type of types)if (getType(val) === type || (0, _is.default)(type, val)) return void (0, _validate.validateChild)(node, key, val);
78257
77827
  throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(null == val ? void 0 : val.type)}`);
78258
77828
  }
78259
77829
  validate.oneOfNodeOrValueTypes = types;
@@ -78997,36 +78567,37 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
78997
78567
  const types = [];
78998
78568
  for(let i = 0; i < nodes.length; i++){
78999
78569
  const node = nodes[i];
79000
- if (!!node) {
79001
- if (types.includes(node)) continue;
79002
- if ((0, _index.isAnyTypeAnnotation)(node)) return [
79003
- node
79004
- ];
79005
- if ((0, _index.isFlowBaseAnnotation)(node)) {
79006
- bases.set(node.type, node);
79007
- continue;
79008
- }
79009
- if ((0, _index.isUnionTypeAnnotation)(node)) {
79010
- if (!typeGroups.has(node.types)) {
79011
- nodes.push(...node.types);
79012
- typeGroups.add(node.types);
78570
+ if (node) {
78571
+ if (!types.includes(node)) {
78572
+ if ((0, _index.isAnyTypeAnnotation)(node)) return [
78573
+ node
78574
+ ];
78575
+ if ((0, _index.isFlowBaseAnnotation)(node)) {
78576
+ bases.set(node.type, node);
78577
+ continue;
79013
78578
  }
79014
- continue;
79015
- }
79016
- if ((0, _index.isGenericTypeAnnotation)(node)) {
79017
- const name = getQualifiedName(node.id);
79018
- if (generics.has(name)) {
79019
- let existing = generics.get(name);
79020
- if (existing.typeParameters) {
79021
- if (node.typeParameters) {
79022
- existing.typeParameters.params.push(...node.typeParameters.params);
79023
- existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
79024
- }
79025
- } else existing = node.typeParameters;
79026
- } else generics.set(name, node);
79027
- continue;
78579
+ if ((0, _index.isUnionTypeAnnotation)(node)) {
78580
+ if (!typeGroups.has(node.types)) {
78581
+ nodes.push(...node.types);
78582
+ typeGroups.add(node.types);
78583
+ }
78584
+ continue;
78585
+ }
78586
+ if ((0, _index.isGenericTypeAnnotation)(node)) {
78587
+ const name = getQualifiedName(node.id);
78588
+ if (generics.has(name)) {
78589
+ let existing = generics.get(name);
78590
+ if (existing.typeParameters) {
78591
+ if (node.typeParameters) {
78592
+ existing.typeParameters.params.push(...node.typeParameters.params);
78593
+ existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params);
78594
+ }
78595
+ } else existing = node.typeParameters;
78596
+ } else generics.set(name, node);
78597
+ continue;
78598
+ }
78599
+ types.push(node);
79028
78600
  }
79029
- types.push(node);
79030
78601
  }
79031
78602
  }
79032
78603
  for (const [, baseType] of bases)types.push(baseType);
@@ -79235,10 +78806,8 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
79235
78806
  if (keys) for(let i = 0; i < keys.length; i++){
79236
78807
  const key = keys[i];
79237
78808
  const nodes = id[key];
79238
- if (nodes) {
79239
- if (Array.isArray(nodes)) search.push(...nodes);
79240
- else search.push(nodes);
79241
- }
78809
+ if (nodes) if (Array.isArray(nodes)) search.push(...nodes);
78810
+ else search.push(nodes);
79242
78811
  }
79243
78812
  }
79244
78813
  return ids;
@@ -79447,7 +79016,7 @@ Please specify the "importAttributesKeyword" generator option, whose value can b
79447
79016
  const subNode = node[key];
79448
79017
  if (Array.isArray(subNode)) for(let i = 0; i < subNode.length; i++){
79449
79018
  const child = subNode[i];
79450
- if (!!child) {
79019
+ if (child) {
79451
79020
  ancestors.push({
79452
79021
  node,
79453
79022
  key,
@@ -82818,13 +82387,11 @@ function merge(target, source) {
82818
82387
  const key = sourceKeys[i];
82819
82388
  const sourceValue = source[key];
82820
82389
  const targetValue = target[key];
82821
- if (Array.isArray(sourceValue)) {
82822
- if (Array.isArray(targetValue)) target[key] = merge(targetValue, sourceValue);
82823
- else target[key] = merge([], sourceValue);
82824
- } else if (isPlainObject(sourceValue)) {
82825
- if (isPlainObject(targetValue)) target[key] = merge(targetValue, sourceValue);
82826
- else target[key] = merge({}, sourceValue);
82827
- } else if (void 0 === targetValue || void 0 !== sourceValue) target[key] = sourceValue;
82390
+ if (Array.isArray(sourceValue)) if (Array.isArray(targetValue)) target[key] = merge(targetValue, sourceValue);
82391
+ else target[key] = merge([], sourceValue);
82392
+ else if (isPlainObject(sourceValue)) if (isPlainObject(targetValue)) target[key] = merge(targetValue, sourceValue);
82393
+ else target[key] = merge({}, sourceValue);
82394
+ else if (void 0 === targetValue || void 0 !== sourceValue) target[key] = sourceValue;
82828
82395
  }
82829
82396
  return target;
82830
82397
  }
@@ -84416,12 +83983,10 @@ const makeEnv = async (newEnvVars, filePath = ".env")=>{
84416
83983
  } else updatedLines.push(line);
84417
83984
  } else updatedLines.push(line);
84418
83985
  }
84419
- for (const [key, val] of Object.entries(newEnvVars))if (!processedKeys.has(key)) {
84420
- if ("object" == typeof val && null !== val) {
84421
- updatedLines.push(`# ${val.comment}`);
84422
- updatedLines.push(`${key}=${val.value}`);
84423
- } else updatedLines.push(`${key}=${val}`);
84424
- }
83986
+ for (const [key, val] of Object.entries(newEnvVars))if (!processedKeys.has(key)) if ("object" == typeof val && null !== val) {
83987
+ updatedLines.push(`# ${val.comment}`);
83988
+ updatedLines.push(`${key}=${val.value}`);
83989
+ } else updatedLines.push(`${key}=${val}`);
84425
83990
  const updatedContent = updatedLines.join("\n");
84426
83991
  await promises_["default"].writeFile(filePath, updatedContent, "utf-8");
84427
83992
  return updatedContent;
@@ -84511,4 +84076,198 @@ const createZip = async ({ outfile, targetDir, excludeExts = [] })=>{
84511
84076
  await promises_["default"].writeFile(outfile, content);
84512
84077
  return outfile;
84513
84078
  };
84514
- export { banner, copyDirToTmp, createDatabasePlugin, createZip, createZipTargetFiles, getCwd, banner_link as link, loadConfig, loadConfigSync, log, makeEnv, printBanner, transformEnv, transformTemplate, transformTsEnv };
84079
+ function compareValues(a, b, order) {
84080
+ if (a < b) return 'asc' === order ? -1 : 1;
84081
+ if (a > b) return 'asc' === order ? 1 : -1;
84082
+ return 0;
84083
+ }
84084
+ function orderBy(arr, criteria, orders) {
84085
+ return arr.slice().sort((a, b)=>{
84086
+ const ordersLength = orders.length;
84087
+ for(let i = 0; i < criteria.length; i++){
84088
+ const order = ordersLength > i ? orders[i] : orders[ordersLength - 1];
84089
+ const criterion = criteria[i];
84090
+ const criterionIsFunction = 'function' == typeof criterion;
84091
+ const valueA = criterionIsFunction ? criterion(a) : a[criterion];
84092
+ const valueB = criterionIsFunction ? criterion(b) : b[criterion];
84093
+ const result = compareValues(valueA, valueB, order);
84094
+ if (0 !== result) return result;
84095
+ }
84096
+ return 0;
84097
+ });
84098
+ }
84099
+ function removeBundleInternalKeys(bundle) {
84100
+ const { _updateJsonKey, _oldUpdateJsonKey, ...pureBundle } = bundle;
84101
+ return pureBundle;
84102
+ }
84103
+ const createBlobDatabasePlugin = ({ name, listObjects, loadObject, uploadObject, deleteObject, invalidatePaths, hooks })=>{
84104
+ const bundlesMap = new Map();
84105
+ const pendingBundlesMap = new Map();
84106
+ const PLATFORMS = [
84107
+ "ios",
84108
+ "android"
84109
+ ];
84110
+ async function reloadBundles() {
84111
+ bundlesMap.clear();
84112
+ const platformPromises = PLATFORMS.map(async (platform)=>{
84113
+ const keys = await listUpdateJsonKeys(platform);
84114
+ const filePromises = keys.map(async (key)=>{
84115
+ const bundlesData = await loadObject(key) ?? [];
84116
+ return bundlesData.map((bundle)=>({
84117
+ ...bundle,
84118
+ _updateJsonKey: key
84119
+ }));
84120
+ });
84121
+ const results = await Promise.all(filePromises);
84122
+ return results.flat();
84123
+ });
84124
+ const allBundles = (await Promise.all(platformPromises)).flat();
84125
+ for (const bundle of allBundles)bundlesMap.set(bundle.id, bundle);
84126
+ for (const [id, bundle] of pendingBundlesMap.entries())bundlesMap.set(id, bundle);
84127
+ return orderBy(allBundles, [
84128
+ (v)=>v.id
84129
+ ], [
84130
+ "desc"
84131
+ ]);
84132
+ }
84133
+ async function updateTargetVersionsForPlatform(platform) {
84134
+ const pattern = new RegExp(`^[^/]+/${platform}/[^/]+/update\\.json$`);
84135
+ const keys = (await listObjects("")).filter((key)=>pattern.test(key));
84136
+ const keysByChannel = keys.reduce((acc, key)=>{
84137
+ const parts = key.split("/");
84138
+ const channel = parts[0];
84139
+ acc[channel] = acc[channel] || [];
84140
+ acc[channel].push(key);
84141
+ return acc;
84142
+ }, {});
84143
+ const updatedTargetFiles = new Set();
84144
+ for (const channel of Object.keys(keysByChannel)){
84145
+ const updateKeys = keysByChannel[channel];
84146
+ const targetKey = `${channel}/${platform}/target-app-versions.json`;
84147
+ const currentVersions = updateKeys.map((key)=>key.split("/")[2]);
84148
+ const oldTargetVersions = await loadObject(targetKey) ?? [];
84149
+ const newTargetVersions = oldTargetVersions.filter((v)=>currentVersions.includes(v));
84150
+ for (const v of currentVersions)if (!newTargetVersions.includes(v)) newTargetVersions.push(v);
84151
+ if (JSON.stringify(oldTargetVersions) !== JSON.stringify(newTargetVersions)) {
84152
+ await uploadObject(targetKey, newTargetVersions);
84153
+ updatedTargetFiles.add(`/${targetKey}`);
84154
+ }
84155
+ }
84156
+ return updatedTargetFiles;
84157
+ }
84158
+ async function listUpdateJsonKeys(platform, channel) {
84159
+ const prefix = channel ? platform ? `${channel}/${platform}/` : `${channel}/` : "";
84160
+ const pattern = channel ? platform ? new RegExp(`^${channel}/${platform}/[^/]+/update\\.json$`) : new RegExp(`^${channel}/[^/]+/[^/]+/update\\.json$`) : platform ? new RegExp(`^[^/]+/${platform}/[^/]+/update\\.json$`) : /^[^\/]+\/[^\/]+\/[^\/]+\/update\.json$/;
84161
+ return listObjects(prefix).then((keys)=>keys.filter((key)=>pattern.test(key)));
84162
+ }
84163
+ return createDatabasePlugin(name, {
84164
+ async getBundleById (bundleId) {
84165
+ const pendingBundle = pendingBundlesMap.get(bundleId);
84166
+ if (pendingBundle) return removeBundleInternalKeys(pendingBundle);
84167
+ const bundle = bundlesMap.get(bundleId);
84168
+ if (bundle) return removeBundleInternalKeys(bundle);
84169
+ const bundles = await reloadBundles();
84170
+ return bundles.find((bundle)=>bundle.id === bundleId) ?? null;
84171
+ },
84172
+ async getBundles (options) {
84173
+ let bundles = await reloadBundles();
84174
+ const { where, limit, offset = 0 } = options ?? {};
84175
+ if (where) bundles = bundles.filter((bundle)=>Object.entries(where).every(([key, value1])=>null == value1 || bundle[key] === value1));
84176
+ if (offset > 0) bundles = bundles.slice(offset);
84177
+ if (limit) bundles = bundles.slice(0, limit);
84178
+ return bundles.map(removeBundleInternalKeys);
84179
+ },
84180
+ async getChannels () {
84181
+ const allBundles = await this.getBundles();
84182
+ return [
84183
+ ...new Set(allBundles.map((bundle)=>bundle.channel))
84184
+ ];
84185
+ },
84186
+ async commitBundle ({ changedSets }) {
84187
+ if (0 === changedSets.length) return;
84188
+ const changedBundlesByKey = {};
84189
+ const removalsByKey = {};
84190
+ const pathsToInvalidate = new Set();
84191
+ for (const { operation, data } of changedSets){
84192
+ if ("insert" === operation) {
84193
+ const key = `${data.channel}/${data.platform}/${data.targetAppVersion}/update.json`;
84194
+ const bundleWithKey = {
84195
+ ...data,
84196
+ _updateJsonKey: key
84197
+ };
84198
+ bundlesMap.set(data.id, bundleWithKey);
84199
+ pendingBundlesMap.set(data.id, bundleWithKey);
84200
+ changedBundlesByKey[key] = changedBundlesByKey[key] || [];
84201
+ changedBundlesByKey[key].push(removeBundleInternalKeys(bundleWithKey));
84202
+ pathsToInvalidate.add(`/${key}`);
84203
+ continue;
84204
+ }
84205
+ let bundle = pendingBundlesMap.get(data.id);
84206
+ if (!bundle) bundle = bundlesMap.get(data.id);
84207
+ if (!bundle) throw new Error("targetBundleId not found");
84208
+ if ("update" === operation) {
84209
+ const newChannel = void 0 !== data.channel ? data.channel : bundle.channel;
84210
+ const newPlatform = void 0 !== data.platform ? data.platform : bundle.platform;
84211
+ const newTargetAppVersion = void 0 !== data.targetAppVersion ? data.targetAppVersion : bundle.targetAppVersion;
84212
+ const newKey = `${newChannel}/${newPlatform}/${newTargetAppVersion}/update.json`;
84213
+ if (newKey !== bundle._updateJsonKey) {
84214
+ const oldKey = bundle._updateJsonKey;
84215
+ removalsByKey[oldKey] = removalsByKey[oldKey] || [];
84216
+ removalsByKey[oldKey].push(bundle.id);
84217
+ changedBundlesByKey[newKey] = changedBundlesByKey[newKey] || [];
84218
+ const updatedBundle = {
84219
+ ...bundle,
84220
+ ...data
84221
+ };
84222
+ updatedBundle._oldUpdateJsonKey = oldKey;
84223
+ updatedBundle._updateJsonKey = newKey;
84224
+ bundlesMap.set(data.id, updatedBundle);
84225
+ pendingBundlesMap.set(data.id, updatedBundle);
84226
+ changedBundlesByKey[newKey].push(removeBundleInternalKeys(updatedBundle));
84227
+ pathsToInvalidate.add(`/${oldKey}`);
84228
+ pathsToInvalidate.add(`/${newKey}`);
84229
+ continue;
84230
+ }
84231
+ const currentKey = bundle._updateJsonKey;
84232
+ const updatedBundle = {
84233
+ ...bundle,
84234
+ ...data
84235
+ };
84236
+ bundlesMap.set(data.id, updatedBundle);
84237
+ pendingBundlesMap.set(data.id, updatedBundle);
84238
+ changedBundlesByKey[currentKey] = changedBundlesByKey[currentKey] || [];
84239
+ changedBundlesByKey[currentKey].push(removeBundleInternalKeys(updatedBundle));
84240
+ pathsToInvalidate.add(`/${currentKey}`);
84241
+ }
84242
+ }
84243
+ for (const oldKey of Object.keys(removalsByKey))await (async ()=>{
84244
+ const currentBundles = await loadObject(oldKey) ?? [];
84245
+ const updatedBundles = currentBundles.filter((b)=>!removalsByKey[oldKey].includes(b.id));
84246
+ updatedBundles.sort((a, b)=>b.id.localeCompare(a.id));
84247
+ if (0 === updatedBundles.length) await deleteObject(oldKey);
84248
+ else await uploadObject(oldKey, updatedBundles);
84249
+ })();
84250
+ for (const key of Object.keys(changedBundlesByKey))await (async ()=>{
84251
+ const currentBundles = await loadObject(key) ?? [];
84252
+ const pureBundles = changedBundlesByKey[key].map((bundle)=>bundle);
84253
+ for (const changedBundle of pureBundles){
84254
+ const index = currentBundles.findIndex((b)=>b.id === changedBundle.id);
84255
+ if (index >= 0) currentBundles[index] = changedBundle;
84256
+ else currentBundles.push(changedBundle);
84257
+ }
84258
+ currentBundles.sort((a, b)=>b.id.localeCompare(a.id));
84259
+ await uploadObject(key, currentBundles);
84260
+ })();
84261
+ const updatedTargetFilePaths = new Set();
84262
+ for (const platform of PLATFORMS){
84263
+ const updatedPaths = await updateTargetVersionsForPlatform(platform);
84264
+ for (const path of updatedPaths)updatedTargetFilePaths.add(path);
84265
+ }
84266
+ for (const path of updatedTargetFilePaths)pathsToInvalidate.add(path);
84267
+ await invalidatePaths(Array.from(pathsToInvalidate));
84268
+ pendingBundlesMap.clear();
84269
+ hooks?.onDatabaseUpdated?.();
84270
+ }
84271
+ }, hooks);
84272
+ };
84273
+ export { banner, copyDirToTmp, createBlobDatabasePlugin, createDatabasePlugin, createZip, createZipTargetFiles, getCwd, banner_link as link, loadConfig, loadConfigSync, log, makeEnv, printBanner, transformEnv, transformTemplate, transformTsEnv };