@html-validate/eslint-config 5.19.0 → 5.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -33,27 +33,21 @@ var require_sub = __commonJS({
33
33
  module2.exports = function sub(pattern, ...values) {
34
34
  let regex = /%(?:(%)|(-)?(\*)?(?:\((\w+)\))?([A-Za-z]))/g;
35
35
  let result = pattern.replace(regex, function(_, is_literal, is_left_align, is_padded, name, format) {
36
- if (is_literal)
37
- return "%";
36
+ if (is_literal) return "%";
38
37
  let padded_count = 0;
39
38
  if (is_padded) {
40
- if (values.length === 0)
41
- throw new TypeError("not enough arguments for format string");
39
+ if (values.length === 0) throw new TypeError("not enough arguments for format string");
42
40
  padded_count = values.shift();
43
- if (!Number.isInteger(padded_count))
44
- throw new TypeError("* wants int");
41
+ if (!Number.isInteger(padded_count)) throw new TypeError("* wants int");
45
42
  }
46
43
  let str;
47
44
  if (name !== void 0) {
48
45
  let dict = values[0];
49
- if (typeof dict !== "object" || dict === null)
50
- throw new TypeError("format requires a mapping");
51
- if (!(name in dict))
52
- throw new TypeError(`no such key: '${name}'`);
46
+ if (typeof dict !== "object" || dict === null) throw new TypeError("format requires a mapping");
47
+ if (!(name in dict)) throw new TypeError(`no such key: '${name}'`);
53
48
  str = dict[name];
54
49
  } else {
55
- if (values.length === 0)
56
- throw new TypeError("not enough arguments for format string");
50
+ if (values.length === 0) throw new TypeError("not enough arguments for format string");
57
51
  str = values.shift();
58
52
  }
59
53
  switch (format) {
@@ -368,28 +362,23 @@ var require_argparse = __commonJS({
368
362
  object[name] = value;
369
363
  }
370
364
  function setdefault(object, name, value) {
371
- if (!hasattr(object, name))
372
- object[name] = value;
365
+ if (!hasattr(object, name)) object[name] = value;
373
366
  return object[name];
374
367
  }
375
368
  function delattr(object, name) {
376
369
  delete object[name];
377
370
  }
378
371
  function range(from, to, step = 1) {
379
- if (arguments.length === 1)
380
- [to, from] = [from, 0];
372
+ if (arguments.length === 1) [to, from] = [from, 0];
381
373
  if (typeof from !== "number" || typeof to !== "number" || typeof step !== "number") {
382
374
  throw new TypeError("argument cannot be interpreted as an integer");
383
375
  }
384
- if (step === 0)
385
- throw new TypeError("range() arg 3 must not be zero");
376
+ if (step === 0) throw new TypeError("range() arg 3 must not be zero");
386
377
  let result = [];
387
378
  if (step > 0) {
388
- for (let i = from; i < to; i += step)
389
- result.push(i);
379
+ for (let i = from; i < to; i += step) result.push(i);
390
380
  } else {
391
- for (let i = from; i > to; i += step)
392
- result.push(i);
381
+ for (let i = from; i > to; i += step) result.push(i);
393
382
  }
394
383
  return result;
395
384
  }
@@ -404,14 +393,12 @@ var require_argparse = __commonJS({
404
393
  result.push(parts[i] + (i + 1 < parts.length ? parts[i + 1] : ""));
405
394
  }
406
395
  }
407
- if (!result[result.length - 1])
408
- result.pop();
396
+ if (!result[result.length - 1]) result.pop();
409
397
  return result;
410
398
  }
411
399
  function _string_lstrip(string, prefix_chars) {
412
400
  let idx = 0;
413
- while (idx < string.length && prefix_chars.includes(string[idx]))
414
- idx++;
401
+ while (idx < string.length && prefix_chars.includes(string[idx])) idx++;
415
402
  return idx ? string.slice(idx) : string;
416
403
  }
417
404
  function _string_split(string, sep, maxsplit) {
@@ -422,18 +409,15 @@ var require_argparse = __commonJS({
422
409
  return result;
423
410
  }
424
411
  function _array_equal(array1, array2) {
425
- if (array1.length !== array2.length)
426
- return false;
412
+ if (array1.length !== array2.length) return false;
427
413
  for (let i = 0; i < array1.length; i++) {
428
- if (array1[i] !== array2[i])
429
- return false;
414
+ if (array1[i] !== array2[i]) return false;
430
415
  }
431
416
  return true;
432
417
  }
433
418
  function _array_remove(array, item) {
434
419
  let idx = array.indexOf(item);
435
- if (idx === -1)
436
- throw new TypeError(sub("%r not in list", item));
420
+ if (idx === -1) throw new TypeError(sub("%r not in list", item));
437
421
  array.splice(idx, 1);
438
422
  }
439
423
  function _choices_to_array(choices) {
@@ -480,24 +464,19 @@ var require_argparse = __commonJS({
480
464
  function _camelcase_alias(_class) {
481
465
  for (let name of Object.getOwnPropertyNames(_class.prototype)) {
482
466
  let camelcase = name.replace(/\w_[a-z]/g, (s) => s[0] + s[2].toUpperCase());
483
- if (camelcase !== name)
484
- _alias(_class.prototype, camelcase, name);
467
+ if (camelcase !== name) _alias(_class.prototype, camelcase, name);
485
468
  }
486
469
  return _class;
487
470
  }
488
471
  function _to_legacy_name(key) {
489
472
  key = key.replace(/\w_[a-z]/g, (s) => s[0] + s[2].toUpperCase());
490
- if (key === "default")
491
- key = "defaultValue";
492
- if (key === "const")
493
- key = "constant";
473
+ if (key === "default") key = "defaultValue";
474
+ if (key === "const") key = "constant";
494
475
  return key;
495
476
  }
496
477
  function _to_new_name(key) {
497
- if (key === "defaultValue")
498
- key = "default";
499
- if (key === "constant")
500
- key = "const";
478
+ if (key === "defaultValue") key = "default";
479
+ if (key === "constant") key = "const";
501
480
  key = key.replace(/[A-Z]/g, (c) => "_" + c.toLowerCase());
502
481
  return key;
503
482
  }
@@ -505,10 +484,8 @@ var require_argparse = __commonJS({
505
484
  function _parse_opts(args2, descriptor) {
506
485
  function get_name() {
507
486
  let stack = new Error().stack.split("\n").map((x) => x.match(/^ at (.*) \(.*\)$/)).filter(Boolean).map((m) => m[1]).map((fn) => fn.match(/[^ .]*$/)[0]);
508
- if (stack.length && stack[0] === get_name.name)
509
- stack.shift();
510
- if (stack.length && stack[0] === _parse_opts.name)
511
- stack.shift();
487
+ if (stack.length && stack[0] === get_name.name) stack.shift();
488
+ if (stack.length && stack[0] === _parse_opts.name) stack.shift();
512
489
  return stack.length ? stack[0] : "";
513
490
  }
514
491
  args2 = Array.from(args2);
@@ -603,8 +580,7 @@ var require_argparse = __commonJS({
603
580
  }
604
581
  if (missing_positionals.length) {
605
582
  let strs = missing_positionals.map(repr);
606
- if (strs.length > 1)
607
- strs[strs.length - 1] = "and " + strs[strs.length - 1];
583
+ if (strs.length > 1) strs[strs.length - 1] = "and " + strs[strs.length - 1];
608
584
  let str_joined = strs.join(strs.length === 2 ? "" : ", ");
609
585
  throw new TypeError(sub(
610
586
  "%s() missing %i required positional argument%s: %s",
@@ -1879,22 +1855,14 @@ var require_argparse = __commonJS({
1879
1855
  });
1880
1856
  this._flags = flags;
1881
1857
  this._options = {};
1882
- if (encoding !== void 0)
1883
- this._options.encoding = encoding;
1884
- if (mode !== void 0)
1885
- this._options.mode = mode;
1886
- if (autoClose !== void 0)
1887
- this._options.autoClose = autoClose;
1888
- if (emitClose !== void 0)
1889
- this._options.emitClose = emitClose;
1890
- if (start !== void 0)
1891
- this._options.start = start;
1892
- if (end !== void 0)
1893
- this._options.end = end;
1894
- if (highWaterMark !== void 0)
1895
- this._options.highWaterMark = highWaterMark;
1896
- if (fs5 !== void 0)
1897
- this._options.fs = fs5;
1858
+ if (encoding !== void 0) this._options.encoding = encoding;
1859
+ if (mode !== void 0) this._options.mode = mode;
1860
+ if (autoClose !== void 0) this._options.autoClose = autoClose;
1861
+ if (emitClose !== void 0) this._options.emitClose = emitClose;
1862
+ if (start !== void 0) this._options.start = start;
1863
+ if (end !== void 0) this._options.end = end;
1864
+ if (highWaterMark !== void 0) this._options.highWaterMark = highWaterMark;
1865
+ if (fs5 !== void 0) this._options.fs = fs5;
1898
1866
  }
1899
1867
  call(string) {
1900
1868
  if (string === "-") {
@@ -1928,10 +1896,9 @@ var require_argparse = __commonJS({
1928
1896
  [util.inspect.custom]() {
1929
1897
  let args2 = [this._flags];
1930
1898
  let kwargs = Object.entries(this._options).map(([k, v]) => {
1931
- if (k === "mode")
1932
- v = { value: v, [util.inspect.custom]() {
1933
- return "0o" + this.value.toString(8);
1934
- } };
1899
+ if (k === "mode") v = { value: v, [util.inspect.custom]() {
1900
+ return "0o" + this.value.toString(8);
1901
+ } };
1935
1902
  return [k, v];
1936
1903
  });
1937
1904
  let args_str = [].concat(args2.filter((arg) => arg !== -1).map(repr)).concat(kwargs.filter(([, arg]) => arg !== void 0).map(([kw, arg]) => sub("%s=%r", kw, arg))).join(", ");
@@ -3149,19 +3116,16 @@ var require_argparse = __commonJS({
3149
3116
  // Help-printing methods
3150
3117
  // =====================
3151
3118
  print_usage(file = void 0) {
3152
- if (file === void 0)
3153
- file = process.stdout;
3119
+ if (file === void 0) file = process.stdout;
3154
3120
  this._print_message(this.format_usage(), file);
3155
3121
  }
3156
3122
  print_help(file = void 0) {
3157
- if (file === void 0)
3158
- file = process.stdout;
3123
+ if (file === void 0) file = process.stdout;
3159
3124
  this._print_message(this.format_help(), file);
3160
3125
  }
3161
3126
  _print_message(message, file = void 0) {
3162
3127
  if (message) {
3163
- if (file === void 0)
3164
- file = process.stderr;
3128
+ if (file === void 0) file = process.stderr;
3165
3129
  file.write(message);
3166
3130
  }
3167
3131
  }
@@ -3175,8 +3139,7 @@ var require_argparse = __commonJS({
3175
3139
  process.exit(status);
3176
3140
  }
3177
3141
  error(message) {
3178
- if (this.debug === true)
3179
- throw new Error(message);
3142
+ if (this.debug === true) throw new Error(message);
3180
3143
  this.print_usage(process.stderr);
3181
3144
  let args2 = { prog: this.prog, message };
3182
3145
  this.exit(2, sub("%(prog)s: error: %(message)s\n", args2));
@@ -4141,16 +4104,13 @@ var require_object = __commonJS({
4141
4104
  var descriptor = props[i];
4142
4105
  descriptor.enumerable = descriptor.enumerable || false;
4143
4106
  descriptor.configurable = true;
4144
- if ("value" in descriptor)
4145
- descriptor.writable = true;
4107
+ if ("value" in descriptor) descriptor.writable = true;
4146
4108
  Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
4147
4109
  }
4148
4110
  }
4149
4111
  function _createClass(Constructor, protoProps, staticProps) {
4150
- if (protoProps)
4151
- _defineProperties(Constructor.prototype, protoProps);
4152
- if (staticProps)
4153
- _defineProperties(Constructor, staticProps);
4112
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
4113
+ if (staticProps) _defineProperties(Constructor, staticProps);
4154
4114
  Object.defineProperty(Constructor, "prototype", { writable: false });
4155
4115
  return Constructor;
4156
4116
  }
@@ -4159,13 +4119,11 @@ var require_object = __commonJS({
4159
4119
  return typeof key === "symbol" ? key : String(key);
4160
4120
  }
4161
4121
  function _toPrimitive(input, hint) {
4162
- if (typeof input !== "object" || input === null)
4163
- return input;
4122
+ if (typeof input !== "object" || input === null) return input;
4164
4123
  var prim = input[Symbol.toPrimitive];
4165
4124
  if (prim !== void 0) {
4166
4125
  var res = prim.call(input, hint || "default");
4167
- if (typeof res !== "object")
4168
- return res;
4126
+ if (typeof res !== "object") return res;
4169
4127
  throw new TypeError("@@toPrimitive must return a primitive value.");
4170
4128
  }
4171
4129
  return (hint === "string" ? String : Number)(input);
@@ -4282,16 +4240,13 @@ var require_nodes = __commonJS({
4282
4240
  var descriptor = props[i];
4283
4241
  descriptor.enumerable = descriptor.enumerable || false;
4284
4242
  descriptor.configurable = true;
4285
- if ("value" in descriptor)
4286
- descriptor.writable = true;
4243
+ if ("value" in descriptor) descriptor.writable = true;
4287
4244
  Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
4288
4245
  }
4289
4246
  }
4290
4247
  function _createClass(Constructor, protoProps, staticProps) {
4291
- if (protoProps)
4292
- _defineProperties(Constructor.prototype, protoProps);
4293
- if (staticProps)
4294
- _defineProperties(Constructor, staticProps);
4248
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
4249
+ if (staticProps) _defineProperties(Constructor, staticProps);
4295
4250
  Object.defineProperty(Constructor, "prototype", { writable: false });
4296
4251
  return Constructor;
4297
4252
  }
@@ -4300,13 +4255,11 @@ var require_nodes = __commonJS({
4300
4255
  return typeof key === "symbol" ? key : String(key);
4301
4256
  }
4302
4257
  function _toPrimitive(input, hint) {
4303
- if (typeof input !== "object" || input === null)
4304
- return input;
4258
+ if (typeof input !== "object" || input === null) return input;
4305
4259
  var prim = input[Symbol.toPrimitive];
4306
4260
  if (prim !== void 0) {
4307
4261
  var res = prim.call(input, hint || "default");
4308
- if (typeof res !== "object")
4309
- return res;
4262
+ if (typeof res !== "object") return res;
4310
4263
  throw new TypeError("@@toPrimitive must return a primitive value.");
4311
4264
  }
4312
4265
  return (hint === "string" ? String : Number)(input);
@@ -7827,10 +7780,8 @@ var require_utils = __commonJS({
7827
7780
  };
7828
7781
  exports2.escapeLast = (input, char, lastIdx) => {
7829
7782
  const idx = input.lastIndexOf(char, lastIdx);
7830
- if (idx === -1)
7831
- return input;
7832
- if (input[idx - 1] === "\\")
7833
- return exports2.escapeLast(input, char, idx - 1);
7783
+ if (idx === -1) return input;
7784
+ if (input[idx - 1] === "\\") return exports2.escapeLast(input, char, idx - 1);
7834
7785
  return `${input.slice(0, idx)}\\${input.slice(idx)}`;
7835
7786
  };
7836
7787
  exports2.removePrefix = (input, state = {}) => {
@@ -7989,8 +7940,7 @@ var require_scan = __commonJS({
7989
7940
  slashes.push(index);
7990
7941
  tokens.push(token);
7991
7942
  token = { value: "", depth: 0, isGlob: false };
7992
- if (finished === true)
7993
- continue;
7943
+ if (finished === true) continue;
7994
7944
  if (prev === CHAR_DOT && index === start + 1) {
7995
7945
  start += 2;
7996
7946
  continue;
@@ -8026,8 +7976,7 @@ var require_scan = __commonJS({
8026
7976
  }
8027
7977
  }
8028
7978
  if (code === CHAR_ASTERISK) {
8029
- if (prev === CHAR_ASTERISK)
8030
- isGlobstar = token.isGlobstar = true;
7979
+ if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
8031
7980
  isGlob = token.isGlob = true;
8032
7981
  finished = true;
8033
7982
  if (scanToEnd === true) {
@@ -8120,8 +8069,7 @@ var require_scan = __commonJS({
8120
8069
  }
8121
8070
  }
8122
8071
  if (opts.unescape === true) {
8123
- if (glob)
8124
- glob = utils.removeBackslashes(glob);
8072
+ if (glob) glob = utils.removeBackslashes(glob);
8125
8073
  if (base && backslashes === true) {
8126
8074
  base = utils.removeBackslashes(base);
8127
8075
  }
@@ -8331,8 +8279,7 @@ var require_parse = __commonJS({
8331
8279
  if (extglobs.length && tok.type !== "paren") {
8332
8280
  extglobs[extglobs.length - 1].inner += tok.value;
8333
8281
  }
8334
- if (tok.value || tok.output)
8335
- append(tok);
8282
+ if (tok.value || tok.output) append(tok);
8336
8283
  if (prev && prev.type === "text" && tok.type === "text") {
8337
8284
  prev.value += tok.value;
8338
8285
  prev.output = (prev.output || "") + tok.value;
@@ -8647,8 +8594,7 @@ var require_parse = __commonJS({
8647
8594
  }
8648
8595
  if (value === ".") {
8649
8596
  if (state.braces > 0 && prev.type === "dot") {
8650
- if (prev.value === ".")
8651
- prev.output = DOT_LITERAL;
8597
+ if (prev.value === ".") prev.output = DOT_LITERAL;
8652
8598
  const brace = braces[braces.length - 1];
8653
8599
  prev.type = "dots";
8654
8600
  prev.output += value;
@@ -8863,20 +8809,17 @@ var require_parse = __commonJS({
8863
8809
  push(token);
8864
8810
  }
8865
8811
  while (state.brackets > 0) {
8866
- if (opts.strictBrackets === true)
8867
- throw new SyntaxError(syntaxError("closing", "]"));
8812
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
8868
8813
  state.output = utils.escapeLast(state.output, "[");
8869
8814
  decrement("brackets");
8870
8815
  }
8871
8816
  while (state.parens > 0) {
8872
- if (opts.strictBrackets === true)
8873
- throw new SyntaxError(syntaxError("closing", ")"));
8817
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
8874
8818
  state.output = utils.escapeLast(state.output, "(");
8875
8819
  decrement("parens");
8876
8820
  }
8877
8821
  while (state.braces > 0) {
8878
- if (opts.strictBrackets === true)
8879
- throw new SyntaxError(syntaxError("closing", "}"));
8822
+ if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
8880
8823
  state.output = utils.escapeLast(state.output, "{");
8881
8824
  decrement("braces");
8882
8825
  }
@@ -8923,8 +8866,7 @@ var require_parse = __commonJS({
8923
8866
  star = `(${star})`;
8924
8867
  }
8925
8868
  const globstar = (opts2) => {
8926
- if (opts2.noglobstar === true)
8927
- return star;
8869
+ if (opts2.noglobstar === true) return star;
8928
8870
  return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
8929
8871
  };
8930
8872
  const create = (str) => {
@@ -8947,11 +8889,9 @@ var require_parse = __commonJS({
8947
8889
  return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
8948
8890
  default: {
8949
8891
  const match = /^(.*?)\.(\w+)$/.exec(str);
8950
- if (!match)
8951
- return;
8892
+ if (!match) return;
8952
8893
  const source2 = create(match[1]);
8953
- if (!source2)
8954
- return;
8894
+ if (!source2) return;
8955
8895
  return source2 + DOT_LITERAL + match[2];
8956
8896
  }
8957
8897
  }
@@ -8983,8 +8923,7 @@ var require_picomatch = __commonJS({
8983
8923
  const arrayMatcher = (str) => {
8984
8924
  for (const isMatch of fns) {
8985
8925
  const state2 = isMatch(str);
8986
- if (state2)
8987
- return state2;
8926
+ if (state2) return state2;
8988
8927
  }
8989
8928
  return false;
8990
8929
  };
@@ -9061,8 +9000,7 @@ var require_picomatch = __commonJS({
9061
9000
  };
9062
9001
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
9063
9002
  picomatch.parse = (pattern, options) => {
9064
- if (Array.isArray(pattern))
9065
- return pattern.map((p) => picomatch.parse(p, options));
9003
+ if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
9066
9004
  return parse(pattern, { ...options, fastpaths: false });
9067
9005
  };
9068
9006
  picomatch.scan = (input, options) => scan(input, options);
@@ -9101,8 +9039,7 @@ var require_picomatch = __commonJS({
9101
9039
  const opts = options || {};
9102
9040
  return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
9103
9041
  } catch (err) {
9104
- if (options && options.debug === true)
9105
- throw err;
9042
+ if (options && options.debug === true) throw err;
9106
9043
  return /$^/;
9107
9044
  }
9108
9045
  };
@@ -9144,10 +9081,8 @@ var require_readdirp = __commonJS({
9144
9081
  var [maj, min] = process.versions.node.split(".").slice(0, 2).map((n) => Number.parseInt(n, 10));
9145
9082
  var wantBigintFsStats = process.platform === "win32" && (maj > 10 || maj === 10 && min >= 5);
9146
9083
  var normalizeFilter = (filter) => {
9147
- if (filter === void 0)
9148
- return;
9149
- if (typeof filter === "function")
9150
- return filter;
9084
+ if (filter === void 0) return;
9085
+ if (typeof filter === "function") return filter;
9151
9086
  if (typeof filter === "string") {
9152
9087
  const glob = picomatch(filter.trim());
9153
9088
  return (entry) => glob(entry.basename);
@@ -9215,8 +9150,7 @@ var require_readdirp = __commonJS({
9215
9150
  this.parent = void 0;
9216
9151
  }
9217
9152
  async _read(batch) {
9218
- if (this.reading)
9219
- return;
9153
+ if (this.reading) return;
9220
9154
  this.reading = true;
9221
9155
  try {
9222
9156
  while (!this.destroyed && batch > 0) {
@@ -9224,8 +9158,7 @@ var require_readdirp = __commonJS({
9224
9158
  if (files.length > 0) {
9225
9159
  const slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path5));
9226
9160
  for (const entry of await Promise.all(slice)) {
9227
- if (this.destroyed)
9228
- return;
9161
+ if (this.destroyed) return;
9229
9162
  const entryType = await this._getEntryType(entry);
9230
9163
  if (entryType === "directory" && this._directoryFilter(entry)) {
9231
9164
  if (depth <= this._maxDepth) {
@@ -9249,8 +9182,7 @@ var require_readdirp = __commonJS({
9249
9182
  break;
9250
9183
  }
9251
9184
  this.parent = await parent;
9252
- if (this.destroyed)
9253
- return;
9185
+ if (this.destroyed) return;
9254
9186
  }
9255
9187
  }
9256
9188
  } catch (error) {
@@ -9329,10 +9261,8 @@ var require_readdirp = __commonJS({
9329
9261
  };
9330
9262
  var readdirp = (root, options = {}) => {
9331
9263
  let type = options.entryType || options.type;
9332
- if (type === "both")
9333
- type = FILE_DIR_TYPE;
9334
- if (type)
9335
- options.type = type;
9264
+ if (type === "both") type = FILE_DIR_TYPE;
9265
+ if (type) options.type = type;
9336
9266
  if (!root) {
9337
9267
  throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");
9338
9268
  } else if (typeof root !== "string") {
@@ -9363,11 +9293,9 @@ var require_normalize_path = __commonJS({
9363
9293
  if (typeof path5 !== "string") {
9364
9294
  throw new TypeError("expected path to be a string");
9365
9295
  }
9366
- if (path5 === "\\" || path5 === "/")
9367
- return "/";
9296
+ if (path5 === "\\" || path5 === "/") return "/";
9368
9297
  var len = path5.length;
9369
- if (len <= 1)
9370
- return path5;
9298
+ if (len <= 1) return path5;
9371
9299
  var prefix = "";
9372
9300
  if (len > 4 && path5[3] === "\\") {
9373
9301
  var ch = path5[2];
@@ -9461,8 +9389,7 @@ var require_is_extglob = __commonJS({
9461
9389
  }
9462
9390
  var match;
9463
9391
  while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
9464
- if (match[2])
9465
- return true;
9392
+ if (match[2]) return true;
9466
9393
  str = str.slice(match.index + match[0].length);
9467
9394
  }
9468
9395
  return false;
@@ -9645,16 +9572,13 @@ var require_utils2 = __commonJS({
9645
9572
  };
9646
9573
  exports2.find = (node, type) => node.nodes.find((node2) => node2.type === type);
9647
9574
  exports2.exceedsLimit = (min, max, step = 1, limit) => {
9648
- if (limit === false)
9649
- return false;
9650
- if (!exports2.isInteger(min) || !exports2.isInteger(max))
9651
- return false;
9575
+ if (limit === false) return false;
9576
+ if (!exports2.isInteger(min) || !exports2.isInteger(max)) return false;
9652
9577
  return (Number(max) - Number(min)) / Number(step) >= limit;
9653
9578
  };
9654
9579
  exports2.escapeNode = (block, n = 0, type) => {
9655
9580
  let node = block.nodes[n];
9656
- if (!node)
9657
- return;
9581
+ if (!node) return;
9658
9582
  if (type && node.type === type || node.type === "open" || node.type === "close") {
9659
9583
  if (node.escaped !== true) {
9660
9584
  node.value = "\\" + node.value;
@@ -9663,8 +9587,7 @@ var require_utils2 = __commonJS({
9663
9587
  }
9664
9588
  };
9665
9589
  exports2.encloseBrace = (node) => {
9666
- if (node.type !== "brace")
9667
- return false;
9590
+ if (node.type !== "brace") return false;
9668
9591
  if (node.commas >> 0 + node.ranges >> 0 === 0) {
9669
9592
  node.invalid = true;
9670
9593
  return true;
@@ -9672,10 +9595,8 @@ var require_utils2 = __commonJS({
9672
9595
  return false;
9673
9596
  };
9674
9597
  exports2.isInvalidBrace = (block) => {
9675
- if (block.type !== "brace")
9676
- return false;
9677
- if (block.invalid === true || block.dollar)
9678
- return true;
9598
+ if (block.type !== "brace") return false;
9599
+ if (block.invalid === true || block.dollar) return true;
9679
9600
  if (block.commas >> 0 + block.ranges >> 0 === 0) {
9680
9601
  block.invalid = true;
9681
9602
  return true;
@@ -9693,10 +9614,8 @@ var require_utils2 = __commonJS({
9693
9614
  return node.open === true || node.close === true;
9694
9615
  };
9695
9616
  exports2.reduce = (nodes) => nodes.reduce((acc, node) => {
9696
- if (node.type === "text")
9697
- acc.push(node.value);
9698
- if (node.type === "range")
9699
- node.type = "text";
9617
+ if (node.type === "text") acc.push(node.value);
9618
+ if (node.type === "range") node.type = "text";
9700
9619
  return acc;
9701
9620
  }, []);
9702
9621
  exports2.flatten = (...args2) => {
@@ -9920,8 +9839,7 @@ var require_to_regex_range = __commonJS({
9920
9839
  }
9921
9840
  function zip(a, b) {
9922
9841
  let arr = [];
9923
- for (let i = 0; i < a.length; i++)
9924
- arr.push([a[i], b[i]]);
9842
+ for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
9925
9843
  return arr;
9926
9844
  }
9927
9845
  function compare(a, b) {
@@ -9990,12 +9908,9 @@ var require_fill_range = __commonJS({
9990
9908
  var zeros = (input) => {
9991
9909
  let value = `${input}`;
9992
9910
  let index = -1;
9993
- if (value[0] === "-")
9994
- value = value.slice(1);
9995
- if (value === "0")
9996
- return false;
9997
- while (value[++index] === "0")
9998
- ;
9911
+ if (value[0] === "-") value = value.slice(1);
9912
+ if (value === "0") return false;
9913
+ while (value[++index] === "0") ;
9999
9914
  return index > 0;
10000
9915
  };
10001
9916
  var stringify = (start, end, options) => {
@@ -10007,8 +9922,7 @@ var require_fill_range = __commonJS({
10007
9922
  var pad = (input, maxLength, toNumber) => {
10008
9923
  if (maxLength > 0) {
10009
9924
  let dash = input[0] === "-" ? "-" : "";
10010
- if (dash)
10011
- input = input.slice(1);
9925
+ if (dash) input = input.slice(1);
10012
9926
  input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
10013
9927
  }
10014
9928
  if (toNumber === false) {
@@ -10022,8 +9936,7 @@ var require_fill_range = __commonJS({
10022
9936
  input = input.slice(1);
10023
9937
  maxLength--;
10024
9938
  }
10025
- while (input.length < maxLength)
10026
- input = "0" + input;
9939
+ while (input.length < maxLength) input = "0" + input;
10027
9940
  return negative ? "-" + input : input;
10028
9941
  };
10029
9942
  var toSequence = (parts, options) => {
@@ -10054,8 +9967,7 @@ var require_fill_range = __commonJS({
10054
9967
  return toRegexRange(a, b, { wrap: false, ...options });
10055
9968
  }
10056
9969
  let start = String.fromCharCode(a);
10057
- if (a === b)
10058
- return start;
9970
+ if (a === b) return start;
10059
9971
  let stop = String.fromCharCode(b);
10060
9972
  return `[${start}-${stop}]`;
10061
9973
  };
@@ -10071,8 +9983,7 @@ var require_fill_range = __commonJS({
10071
9983
  return new RangeError("Invalid range arguments: " + util.inspect(...args2));
10072
9984
  };
10073
9985
  var invalidRange = (start, end, options) => {
10074
- if (options.strictRanges === true)
10075
- throw rangeError([start, end]);
9986
+ if (options.strictRanges === true) throw rangeError([start, end]);
10076
9987
  return [];
10077
9988
  };
10078
9989
  var invalidStep = (step, options) => {
@@ -10085,14 +9996,11 @@ var require_fill_range = __commonJS({
10085
9996
  let a = Number(start);
10086
9997
  let b = Number(end);
10087
9998
  if (!Number.isInteger(a) || !Number.isInteger(b)) {
10088
- if (options.strictRanges === true)
10089
- throw rangeError([start, end]);
9999
+ if (options.strictRanges === true) throw rangeError([start, end]);
10090
10000
  return [];
10091
10001
  }
10092
- if (a === 0)
10093
- a = 0;
10094
- if (b === 0)
10095
- b = 0;
10002
+ if (a === 0) a = 0;
10003
+ if (b === 0) b = 0;
10096
10004
  let descending = a > b;
10097
10005
  let startString = String(start);
10098
10006
  let endString = String(end);
@@ -10162,12 +10070,10 @@ var require_fill_range = __commonJS({
10162
10070
  return fill(start, end, 0, step);
10163
10071
  }
10164
10072
  let opts = { ...options };
10165
- if (opts.capture === true)
10166
- opts.wrap = true;
10073
+ if (opts.capture === true) opts.wrap = true;
10167
10074
  step = step || opts.step || 1;
10168
10075
  if (!isNumber(step)) {
10169
- if (step != null && !isObject(step))
10170
- return invalidStep(step, opts);
10076
+ if (step != null && !isObject(step)) return invalidStep(step, opts);
10171
10077
  return fill(start, end, 1, step);
10172
10078
  }
10173
10079
  if (isNumber(start) && isNumber(end)) {
@@ -10241,8 +10147,7 @@ var require_expand = __commonJS({
10241
10147
  let result = [];
10242
10148
  queue = [].concat(queue);
10243
10149
  stash = [].concat(stash);
10244
- if (!stash.length)
10245
- return queue;
10150
+ if (!stash.length) return queue;
10246
10151
  if (!queue.length) {
10247
10152
  return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
10248
10153
  }
@@ -10253,8 +10158,7 @@ var require_expand = __commonJS({
10253
10158
  }
10254
10159
  } else {
10255
10160
  for (let ele of stash) {
10256
- if (enclose === true && typeof ele === "string")
10257
- ele = `{${ele}}`;
10161
+ if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
10258
10162
  result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
10259
10163
  }
10260
10164
  }
@@ -10302,8 +10206,7 @@ var require_expand = __commonJS({
10302
10206
  for (let i = 0; i < node.nodes.length; i++) {
10303
10207
  let child = node.nodes[i];
10304
10208
  if (child.type === "comma" && node.type === "brace") {
10305
- if (i === 1)
10306
- queue.push("");
10209
+ if (i === 1) queue.push("");
10307
10210
  queue.push("");
10308
10211
  continue;
10309
10212
  }
@@ -10563,8 +10466,7 @@ var require_parse2 = __commonJS({
10563
10466
  continue;
10564
10467
  }
10565
10468
  if (next === open) {
10566
- if (options.keepQuotes === true)
10567
- value += next;
10469
+ if (options.keepQuotes === true) value += next;
10568
10470
  break;
10569
10471
  }
10570
10472
  value += next;
@@ -10651,12 +10553,9 @@ var require_parse2 = __commonJS({
10651
10553
  if (block.type !== "root") {
10652
10554
  block.nodes.forEach((node) => {
10653
10555
  if (!node.nodes) {
10654
- if (node.type === "open")
10655
- node.isOpen = true;
10656
- if (node.type === "close")
10657
- node.isClose = true;
10658
- if (!node.nodes)
10659
- node.type = "text";
10556
+ if (node.type === "open") node.isOpen = true;
10557
+ if (node.type === "close") node.isClose = true;
10558
+ if (!node.nodes) node.type = "text";
10660
10559
  node.invalid = true;
10661
10560
  }
10662
10561
  });
@@ -11167,8 +11066,7 @@ var require_nodefs_handler = __commonJS({
11167
11066
  }
11168
11067
  var fsWatchBroadcast = (fullPath, type, val1, val2, val3) => {
11169
11068
  const cont = FsWatchInstances.get(fullPath);
11170
- if (!cont)
11171
- return;
11069
+ if (!cont) return;
11172
11070
  foreach(cont[type], (listener) => {
11173
11071
  listener(val1, val2, val3);
11174
11072
  });
@@ -11200,8 +11098,7 @@ var require_nodefs_handler = __commonJS({
11200
11098
  // no need to use broadcast here
11201
11099
  fsWatchBroadcast.bind(null, fullPath, KEY_RAW)
11202
11100
  );
11203
- if (!watcher)
11204
- return;
11101
+ if (!watcher) return;
11205
11102
  watcher.on(EV_ERROR, async (error) => {
11206
11103
  const broadcastErr = fsWatchBroadcast.bind(null, fullPath, KEY_ERR);
11207
11104
  cont.watcherUnusable = true;
@@ -11303,8 +11200,7 @@ var require_nodefs_handler = __commonJS({
11303
11200
  parent.add(basename);
11304
11201
  const absolutePath = sysPath.resolve(path5);
11305
11202
  const options = { persistent: opts.persistent };
11306
- if (!listener)
11307
- listener = EMPTY_FN;
11203
+ if (!listener) listener = EMPTY_FN;
11308
11204
  let closer;
11309
11205
  if (opts.usePolling) {
11310
11206
  options.interval = opts.enableBinaryInterval && isBinaryPath(basename) ? opts.binaryInterval : opts.interval;
@@ -11336,16 +11232,13 @@ var require_nodefs_handler = __commonJS({
11336
11232
  const basename = sysPath.basename(file);
11337
11233
  const parent = this.fsw._getWatchedDir(dirname);
11338
11234
  let prevStats = stats;
11339
- if (parent.has(basename))
11340
- return;
11235
+ if (parent.has(basename)) return;
11341
11236
  const listener = async (path5, newStats) => {
11342
- if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5))
11343
- return;
11237
+ if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5)) return;
11344
11238
  if (!newStats || newStats.mtimeMs === 0) {
11345
11239
  try {
11346
11240
  const newStats2 = await stat(file);
11347
- if (this.fsw.closed)
11348
- return;
11241
+ if (this.fsw.closed) return;
11349
11242
  const at = newStats2.atimeMs;
11350
11243
  const mt = newStats2.mtimeMs;
11351
11244
  if (!at || at <= mt || mt !== prevStats.mtimeMs) {
@@ -11372,8 +11265,7 @@ var require_nodefs_handler = __commonJS({
11372
11265
  };
11373
11266
  const closer = this._watchWithNodeFs(file, listener);
11374
11267
  if (!(initialAdd && this.fsw.options.ignoreInitial) && this.fsw._isntIgnored(file)) {
11375
- if (!this.fsw._throttle(EV_ADD, file, 0))
11376
- return;
11268
+ if (!this.fsw._throttle(EV_ADD, file, 0)) return;
11377
11269
  this.fsw._emit(EV_ADD, file, stats);
11378
11270
  }
11379
11271
  return closer;
@@ -11401,8 +11293,7 @@ var require_nodefs_handler = __commonJS({
11401
11293
  this.fsw._emitReady();
11402
11294
  return true;
11403
11295
  }
11404
- if (this.fsw.closed)
11405
- return;
11296
+ if (this.fsw.closed) return;
11406
11297
  if (dir.has(item)) {
11407
11298
  if (this.fsw._symlinkPaths.get(full) !== linkPath) {
11408
11299
  this.fsw._symlinkPaths.set(full, linkPath);
@@ -11425,8 +11316,7 @@ var require_nodefs_handler = __commonJS({
11425
11316
  directory = sysPath.join(directory, EMPTY_STR);
11426
11317
  if (!wh.hasGlob) {
11427
11318
  throttler = this.fsw._throttle("readdir", directory, 1e3);
11428
- if (!throttler)
11429
- return;
11319
+ if (!throttler) return;
11430
11320
  }
11431
11321
  const previous = this.fsw._getWatchedDir(wh.path);
11432
11322
  const current = /* @__PURE__ */ new Set();
@@ -11474,8 +11364,7 @@ var require_nodefs_handler = __commonJS({
11474
11364
  this.fsw._remove(directory, item);
11475
11365
  });
11476
11366
  stream = void 0;
11477
- if (wasThrottled)
11478
- this._handleRead(directory, false, wh, target, dir, depth, throttler);
11367
+ if (wasThrottled) this._handleRead(directory, false, wh, target, dir, depth, throttler);
11479
11368
  })
11480
11369
  );
11481
11370
  }
@@ -11494,8 +11383,7 @@ var require_nodefs_handler = __commonJS({
11494
11383
  const parentDir = this.fsw._getWatchedDir(sysPath.dirname(dir));
11495
11384
  const tracked = parentDir.has(sysPath.basename(dir));
11496
11385
  if (!(initialAdd && this.fsw.options.ignoreInitial) && !target && !tracked) {
11497
- if (!wh.hasGlob || wh.globFilter(dir))
11498
- this.fsw._emit(EV_ADD_DIR, dir, stats);
11386
+ if (!wh.hasGlob || wh.globFilter(dir)) this.fsw._emit(EV_ADD_DIR, dir, stats);
11499
11387
  }
11500
11388
  parentDir.add(sysPath.basename(dir));
11501
11389
  this.fsw._getWatchedDir(dir);
@@ -11505,12 +11393,10 @@ var require_nodefs_handler = __commonJS({
11505
11393
  if ((oDepth == null || depth <= oDepth) && !this.fsw._symlinkPaths.has(realpath)) {
11506
11394
  if (!target) {
11507
11395
  await this._handleRead(dir, initialAdd, wh, target, dir, depth, throttler);
11508
- if (this.fsw.closed)
11509
- return;
11396
+ if (this.fsw.closed) return;
11510
11397
  }
11511
11398
  closer = this._watchWithNodeFs(dir, (dirPath, stats2) => {
11512
- if (stats2 && stats2.mtimeMs === 0)
11513
- return;
11399
+ if (stats2 && stats2.mtimeMs === 0) return;
11514
11400
  this._handleRead(dirPath, false, wh, target, dir, depth, throttler);
11515
11401
  });
11516
11402
  }
@@ -11541,8 +11427,7 @@ var require_nodefs_handler = __commonJS({
11541
11427
  }
11542
11428
  try {
11543
11429
  const stats = await statMethods[wh.statMethod](wh.watchPath);
11544
- if (this.fsw.closed)
11545
- return;
11430
+ if (this.fsw.closed) return;
11546
11431
  if (this.fsw._isIgnored(wh.watchPath, stats)) {
11547
11432
  ready();
11548
11433
  return false;
@@ -11552,24 +11437,20 @@ var require_nodefs_handler = __commonJS({
11552
11437
  if (stats.isDirectory()) {
11553
11438
  const absPath = sysPath.resolve(path5);
11554
11439
  const targetPath = follow ? await fsrealpath(path5) : path5;
11555
- if (this.fsw.closed)
11556
- return;
11440
+ if (this.fsw.closed) return;
11557
11441
  closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
11558
- if (this.fsw.closed)
11559
- return;
11442
+ if (this.fsw.closed) return;
11560
11443
  if (absPath !== targetPath && targetPath !== void 0) {
11561
11444
  this.fsw._symlinkPaths.set(absPath, targetPath);
11562
11445
  }
11563
11446
  } else if (stats.isSymbolicLink()) {
11564
11447
  const targetPath = follow ? await fsrealpath(path5) : path5;
11565
- if (this.fsw.closed)
11566
- return;
11448
+ if (this.fsw.closed) return;
11567
11449
  const parent = sysPath.dirname(wh.watchPath);
11568
11450
  this.fsw._getWatchedDir(parent).add(wh.watchPath);
11569
11451
  this.fsw._emit(EV_ADD, wh.watchPath, stats);
11570
11452
  closer = await this._handleDir(parent, stats, initialAdd, depth, path5, wh, targetPath);
11571
- if (this.fsw.closed)
11572
- return;
11453
+ if (this.fsw.closed) return;
11573
11454
  if (targetPath !== void 0) {
11574
11455
  this.fsw._symlinkPaths.set(sysPath.resolve(path5), targetPath);
11575
11456
  }
@@ -11602,8 +11483,7 @@ var require_fsevents_handler = __commonJS({
11602
11483
  try {
11603
11484
  fsevents = require("fsevents");
11604
11485
  } catch (error) {
11605
- if (process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR)
11606
- console.error(error);
11486
+ if (process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR) console.error(error);
11607
11487
  }
11608
11488
  if (fsevents) {
11609
11489
  const mtch = process.version.match(/v(\d+)\.(\d+)/);
@@ -11670,10 +11550,8 @@ var require_fsevents_handler = __commonJS({
11670
11550
  const resolvedPath = sysPath.resolve(path5);
11671
11551
  const hasSymlink = resolvedPath !== realPath;
11672
11552
  const filteredListener = (fullPath, flags, info) => {
11673
- if (hasSymlink)
11674
- fullPath = fullPath.replace(realPath, resolvedPath);
11675
- if (fullPath === resolvedPath || !fullPath.indexOf(resolvedPath + sysPath.sep))
11676
- listener(fullPath, flags, info);
11553
+ if (hasSymlink) fullPath = fullPath.replace(realPath, resolvedPath);
11554
+ if (fullPath === resolvedPath || !fullPath.indexOf(resolvedPath + sysPath.sep)) listener(fullPath, flags, info);
11677
11555
  };
11678
11556
  let watchedParent = false;
11679
11557
  for (const watchedPath of FSEventsWatchers.keys()) {
@@ -11691,8 +11569,7 @@ var require_fsevents_handler = __commonJS({
11691
11569
  listeners: /* @__PURE__ */ new Set([filteredListener]),
11692
11570
  rawEmitter,
11693
11571
  watcher: createFSEventsInstance(watchPath, (fullPath, flags) => {
11694
- if (!cont.listeners.size)
11695
- return;
11572
+ if (!cont.listeners.size) return;
11696
11573
  const info = fsevents.getInfo(fullPath, flags);
11697
11574
  cont.listeners.forEach((list) => {
11698
11575
  list(fullPath, flags, info);
@@ -11707,11 +11584,10 @@ var require_fsevents_handler = __commonJS({
11707
11584
  lst.delete(filteredListener);
11708
11585
  if (!lst.size) {
11709
11586
  FSEventsWatchers.delete(watchPath);
11710
- if (cont.watcher)
11711
- return cont.watcher.stop().then(() => {
11712
- cont.rawEmitter = cont.watcher = void 0;
11713
- Object.freeze(cont);
11714
- });
11587
+ if (cont.watcher) return cont.watcher.stop().then(() => {
11588
+ cont.rawEmitter = cont.watcher = void 0;
11589
+ Object.freeze(cont);
11590
+ });
11715
11591
  }
11716
11592
  };
11717
11593
  }
@@ -11730,8 +11606,7 @@ var require_fsevents_handler = __commonJS({
11730
11606
  var canUse = () => fsevents && FSEventsWatchers.size < 128;
11731
11607
  var calcDepth = (path5, root) => {
11732
11608
  let i = 0;
11733
- while (!path5.indexOf(root) && (path5 = sysPath.dirname(path5)) !== root)
11734
- i++;
11609
+ while (!path5.indexOf(root) && (path5 = sysPath.dirname(path5)) !== root) i++;
11735
11610
  return i;
11736
11611
  };
11737
11612
  var sameTypes = (info, stats) => info.type === FSEVENT_TYPE_DIRECTORY && stats.isDirectory() || info.type === FSEVENT_TYPE_SYMLINK && stats.isSymbolicLink() || info.type === FSEVENT_TYPE_FILE && stats.isFile();
@@ -11761,8 +11636,7 @@ var require_fsevents_handler = __commonJS({
11761
11636
  async checkExists(path5, fullPath, realPath, parent, watchedDir, item, info, opts) {
11762
11637
  try {
11763
11638
  const stats = await stat(path5);
11764
- if (this.fsw.closed)
11765
- return;
11639
+ if (this.fsw.closed) return;
11766
11640
  if (sameTypes(info, stats)) {
11767
11641
  this.addOrChange(path5, fullPath, realPath, parent, watchedDir, item, info, opts);
11768
11642
  } else {
@@ -11777,8 +11651,7 @@ var require_fsevents_handler = __commonJS({
11777
11651
  }
11778
11652
  }
11779
11653
  handleEvent(event, path5, fullPath, realPath, parent, watchedDir, item, info, opts) {
11780
- if (this.fsw.closed || this.checkIgnored(path5))
11781
- return;
11654
+ if (this.fsw.closed || this.checkIgnored(path5)) return;
11782
11655
  if (event === EV_UNLINK) {
11783
11656
  const isDirectory = info.type === FSEVENT_TYPE_DIRECTORY;
11784
11657
  if (isDirectory || watchedDir.has(item)) {
@@ -11786,8 +11659,7 @@ var require_fsevents_handler = __commonJS({
11786
11659
  }
11787
11660
  } else {
11788
11661
  if (event === EV_ADD) {
11789
- if (info.type === FSEVENT_TYPE_DIRECTORY)
11790
- this.fsw._getWatchedDir(path5);
11662
+ if (info.type === FSEVENT_TYPE_DIRECTORY) this.fsw._getWatchedDir(path5);
11791
11663
  if (info.type === FSEVENT_TYPE_SYMLINK && opts.followSymlinks) {
11792
11664
  const curDepth = opts.depth === void 0 ? void 0 : calcDepth(fullPath, realPath) + 1;
11793
11665
  return this._addToFsEvents(path5, false, true, curDepth);
@@ -11796,8 +11668,7 @@ var require_fsevents_handler = __commonJS({
11796
11668
  }
11797
11669
  const eventName = info.type === FSEVENT_TYPE_DIRECTORY ? event + DIR_SUFFIX : event;
11798
11670
  this.fsw._emit(eventName, path5);
11799
- if (eventName === EV_ADD_DIR)
11800
- this._addToFsEvents(path5, false, true);
11671
+ if (eventName === EV_ADD_DIR) this._addToFsEvents(path5, false, true);
11801
11672
  }
11802
11673
  }
11803
11674
  /**
@@ -11809,20 +11680,16 @@ var require_fsevents_handler = __commonJS({
11809
11680
  * @returns {Function} closer for the watcher instance
11810
11681
  */
11811
11682
  _watchWithFsEvents(watchPath, realPath, transform, globFilter) {
11812
- if (this.fsw.closed || this.fsw._isIgnored(watchPath))
11813
- return;
11683
+ if (this.fsw.closed || this.fsw._isIgnored(watchPath)) return;
11814
11684
  const opts = this.fsw.options;
11815
11685
  const watchCallback = async (fullPath, flags, info) => {
11816
- if (this.fsw.closed)
11817
- return;
11818
- if (opts.depth !== void 0 && calcDepth(fullPath, realPath) > opts.depth)
11819
- return;
11686
+ if (this.fsw.closed) return;
11687
+ if (opts.depth !== void 0 && calcDepth(fullPath, realPath) > opts.depth) return;
11820
11688
  const path5 = transform(sysPath.join(
11821
11689
  watchPath,
11822
11690
  sysPath.relative(watchPath, fullPath)
11823
11691
  ));
11824
- if (globFilter && !globFilter(path5))
11825
- return;
11692
+ if (globFilter && !globFilter(path5)) return;
11826
11693
  const parent = sysPath.dirname(path5);
11827
11694
  const item = sysPath.basename(path5);
11828
11695
  const watchedDir = this.fsw._getWatchedDir(
@@ -11835,10 +11702,8 @@ var require_fsevents_handler = __commonJS({
11835
11702
  stats = await stat(path5);
11836
11703
  } catch (error) {
11837
11704
  }
11838
- if (this.fsw.closed)
11839
- return;
11840
- if (this.checkIgnored(path5, stats))
11841
- return;
11705
+ if (this.fsw.closed) return;
11706
+ if (this.checkIgnored(path5, stats)) return;
11842
11707
  if (sameTypes(info, stats)) {
11843
11708
  this.addOrChange(path5, fullPath, realPath, parent, watchedDir, item, info, opts);
11844
11709
  } else {
@@ -11876,14 +11741,12 @@ var require_fsevents_handler = __commonJS({
11876
11741
  * @returns {Promise<void>}
11877
11742
  */
11878
11743
  async _handleFsEventsSymlink(linkPath, fullPath, transform, curDepth) {
11879
- if (this.fsw.closed || this.fsw._symlinkPaths.has(fullPath))
11880
- return;
11744
+ if (this.fsw.closed || this.fsw._symlinkPaths.has(fullPath)) return;
11881
11745
  this.fsw._symlinkPaths.set(fullPath, true);
11882
11746
  this.fsw._incrReadyCount();
11883
11747
  try {
11884
11748
  const linkTarget = await realpath(linkPath);
11885
- if (this.fsw.closed)
11886
- return;
11749
+ if (this.fsw.closed) return;
11887
11750
  if (this.fsw._isIgnored(linkTarget)) {
11888
11751
  return this.fsw._emitReady();
11889
11752
  }
@@ -11913,18 +11776,15 @@ var require_fsevents_handler = __commonJS({
11913
11776
  const isDir = stats.isDirectory();
11914
11777
  const dirObj = this.fsw._getWatchedDir(sysPath.dirname(pp));
11915
11778
  const base = sysPath.basename(pp);
11916
- if (isDir)
11917
- this.fsw._getWatchedDir(pp);
11918
- if (dirObj.has(base))
11919
- return;
11779
+ if (isDir) this.fsw._getWatchedDir(pp);
11780
+ if (dirObj.has(base)) return;
11920
11781
  dirObj.add(base);
11921
11782
  if (!opts.ignoreInitial || forceAdd === true) {
11922
11783
  this.fsw._emit(isDir ? EV_ADD_DIR : EV_ADD, pp, stats);
11923
11784
  }
11924
11785
  }
11925
11786
  initWatch(realPath, path5, wh, processPath) {
11926
- if (this.fsw.closed)
11927
- return;
11787
+ if (this.fsw.closed) return;
11928
11788
  const closer = this._watchWithFsEvents(
11929
11789
  wh.watchPath,
11930
11790
  sysPath.resolve(realPath || wh.watchPath),
@@ -11950,16 +11810,13 @@ var require_fsevents_handler = __commonJS({
11950
11810
  const wh = this.fsw._getWatchHelpers(path5);
11951
11811
  try {
11952
11812
  const stats = await statMethods[wh.statMethod](wh.watchPath);
11953
- if (this.fsw.closed)
11954
- return;
11813
+ if (this.fsw.closed) return;
11955
11814
  if (this.fsw._isIgnored(wh.watchPath, stats)) {
11956
11815
  throw null;
11957
11816
  }
11958
11817
  if (stats.isDirectory()) {
11959
- if (!wh.globFilter)
11960
- this.emitAdd(processPath(path5), stats, processPath, opts, forceAdd);
11961
- if (priorDepth && priorDepth > opts.depth)
11962
- return;
11818
+ if (!wh.globFilter) this.emitAdd(processPath(path5), stats, processPath, opts, forceAdd);
11819
+ if (priorDepth && priorDepth > opts.depth) return;
11963
11820
  this.fsw._readdirp(wh.watchPath, {
11964
11821
  fileFilter: (entry) => wh.filterPath(entry),
11965
11822
  directoryFilter: (entry) => wh.filterDir(entry),
@@ -11968,8 +11825,7 @@ var require_fsevents_handler = __commonJS({
11968
11825
  if (this.fsw.closed) {
11969
11826
  return;
11970
11827
  }
11971
- if (entry.stats.isDirectory() && !wh.filterPath(entry))
11972
- return;
11828
+ if (entry.stats.isDirectory() && !wh.filterPath(entry)) return;
11973
11829
  const joinedPath = sysPath.join(wh.watchPath, entry.path);
11974
11830
  const { fullPath } = entry;
11975
11831
  if (wh.followSymlinks && entry.stats.isSymbolicLink()) {
@@ -12096,8 +11952,7 @@ var require_chokidar = __commonJS({
12096
11952
  };
12097
11953
  var normalizePathToUnix = (path5) => toUnix(sysPath.normalize(toUnix(path5)));
12098
11954
  var normalizeIgnored = (cwd = EMPTY_STR) => (path5) => {
12099
- if (typeof path5 !== STRING_TYPE)
12100
- return path5;
11955
+ if (typeof path5 !== STRING_TYPE) return path5;
12101
11956
  return normalizePathToUnix(sysPath.isAbsolute(path5) ? path5 : sysPath.join(cwd, path5));
12102
11957
  };
12103
11958
  var getAbsolutePath = (path5, cwd) => {
@@ -12122,18 +11977,14 @@ var require_chokidar = __commonJS({
12122
11977
  }
12123
11978
  add(item) {
12124
11979
  const { items } = this;
12125
- if (!items)
12126
- return;
12127
- if (item !== ONE_DOT && item !== TWO_DOTS)
12128
- items.add(item);
11980
+ if (!items) return;
11981
+ if (item !== ONE_DOT && item !== TWO_DOTS) items.add(item);
12129
11982
  }
12130
11983
  async remove(item) {
12131
11984
  const { items } = this;
12132
- if (!items)
12133
- return;
11985
+ if (!items) return;
12134
11986
  items.delete(item);
12135
- if (items.size > 0)
12136
- return;
11987
+ if (items.size > 0) return;
12137
11988
  const dir = this.path;
12138
11989
  try {
12139
11990
  await readdir(dir);
@@ -12145,8 +11996,7 @@ var require_chokidar = __commonJS({
12145
11996
  }
12146
11997
  has(item) {
12147
11998
  const { items } = this;
12148
- if (!items)
12149
- return;
11999
+ if (!items) return;
12150
12000
  return items.has(item);
12151
12001
  }
12152
12002
  /**
@@ -12154,8 +12004,7 @@ var require_chokidar = __commonJS({
12154
12004
  */
12155
12005
  getChildren() {
12156
12006
  const { items } = this;
12157
- if (!items)
12158
- return;
12007
+ if (!items) return;
12159
12008
  return [...items.values()];
12160
12009
  }
12161
12010
  dispose() {
@@ -12175,14 +12024,12 @@ var require_chokidar = __commonJS({
12175
12024
  this.watchPath = watchPath;
12176
12025
  this.fullWatchPath = sysPath.resolve(watchPath);
12177
12026
  this.hasGlob = watchPath !== path5;
12178
- if (path5 === EMPTY_STR)
12179
- this.hasGlob = false;
12027
+ if (path5 === EMPTY_STR) this.hasGlob = false;
12180
12028
  this.globSymlink = this.hasGlob && follow ? void 0 : false;
12181
12029
  this.globFilter = this.hasGlob ? anymatch(path5, void 0, ANYMATCH_OPTS) : false;
12182
12030
  this.dirParts = this.getDirParts(path5);
12183
12031
  this.dirParts.forEach((parts) => {
12184
- if (parts.length > 1)
12185
- parts.pop();
12032
+ if (parts.length > 1) parts.pop();
12186
12033
  });
12187
12034
  this.followSymlinks = follow;
12188
12035
  this.statMethod = follow ? STAT_METHOD_F : STAT_METHOD_L;
@@ -12204,15 +12051,13 @@ var require_chokidar = __commonJS({
12204
12051
  }
12205
12052
  filterPath(entry) {
12206
12053
  const { stats } = entry;
12207
- if (stats && stats.isSymbolicLink())
12208
- return this.filterDir(entry);
12054
+ if (stats && stats.isSymbolicLink()) return this.filterDir(entry);
12209
12055
  const resolvedPath = this.entryPath(entry);
12210
12056
  const matchesGlob = this.hasGlob && typeof this.globFilter === FUNCTION_TYPE ? this.globFilter(resolvedPath) : true;
12211
12057
  return matchesGlob && this.fsw._isntIgnored(resolvedPath, stats) && this.fsw._hasReadPermissions(stats);
12212
12058
  }
12213
12059
  getDirParts(path5) {
12214
- if (!this.hasGlob)
12215
- return [];
12060
+ if (!this.hasGlob) return [];
12216
12061
  const parts = [];
12217
12062
  const expandedPath = path5.includes(BRACE_START) ? braces.expand(path5) : [path5];
12218
12063
  expandedPath.forEach((path6) => {
@@ -12226,8 +12071,7 @@ var require_chokidar = __commonJS({
12226
12071
  let globstar = false;
12227
12072
  this.unmatchedGlob = !this.dirParts.some((parts) => {
12228
12073
  return parts.every((part, i) => {
12229
- if (part === GLOBSTAR)
12230
- globstar = true;
12074
+ if (part === GLOBSTAR) globstar = true;
12231
12075
  return globstar || !entryParts[0][i] || anymatch(part, entryParts[0][i], ANYMATCH_OPTS);
12232
12076
  });
12233
12077
  });
@@ -12240,8 +12084,7 @@ var require_chokidar = __commonJS({
12240
12084
  constructor(_opts) {
12241
12085
  super();
12242
12086
  const opts = {};
12243
- if (_opts)
12244
- Object.assign(opts, _opts);
12087
+ if (_opts) Object.assign(opts, _opts);
12245
12088
  this._watched = /* @__PURE__ */ new Map();
12246
12089
  this._closers = /* @__PURE__ */ new Map();
12247
12090
  this._ignoredPaths = /* @__PURE__ */ new Set();
@@ -12249,24 +12092,16 @@ var require_chokidar = __commonJS({
12249
12092
  this._symlinkPaths = /* @__PURE__ */ new Map();
12250
12093
  this._streams = /* @__PURE__ */ new Set();
12251
12094
  this.closed = false;
12252
- if (undef(opts, "persistent"))
12253
- opts.persistent = true;
12254
- if (undef(opts, "ignoreInitial"))
12255
- opts.ignoreInitial = false;
12256
- if (undef(opts, "ignorePermissionErrors"))
12257
- opts.ignorePermissionErrors = false;
12258
- if (undef(opts, "interval"))
12259
- opts.interval = 100;
12260
- if (undef(opts, "binaryInterval"))
12261
- opts.binaryInterval = 300;
12262
- if (undef(opts, "disableGlobbing"))
12263
- opts.disableGlobbing = false;
12095
+ if (undef(opts, "persistent")) opts.persistent = true;
12096
+ if (undef(opts, "ignoreInitial")) opts.ignoreInitial = false;
12097
+ if (undef(opts, "ignorePermissionErrors")) opts.ignorePermissionErrors = false;
12098
+ if (undef(opts, "interval")) opts.interval = 100;
12099
+ if (undef(opts, "binaryInterval")) opts.binaryInterval = 300;
12100
+ if (undef(opts, "disableGlobbing")) opts.disableGlobbing = false;
12264
12101
  opts.enableBinaryInterval = opts.binaryInterval !== opts.interval;
12265
- if (undef(opts, "useFsEvents"))
12266
- opts.useFsEvents = !opts.usePolling;
12102
+ if (undef(opts, "useFsEvents")) opts.useFsEvents = !opts.usePolling;
12267
12103
  const canUseFsEvents = FsEventsHandler.canUse();
12268
- if (!canUseFsEvents)
12269
- opts.useFsEvents = false;
12104
+ if (!canUseFsEvents) opts.useFsEvents = false;
12270
12105
  if (undef(opts, "usePolling") && !opts.useFsEvents) {
12271
12106
  opts.usePolling = isMacos;
12272
12107
  }
@@ -12288,26 +12123,18 @@ var require_chokidar = __commonJS({
12288
12123
  if (envInterval) {
12289
12124
  opts.interval = Number.parseInt(envInterval, 10);
12290
12125
  }
12291
- if (undef(opts, "atomic"))
12292
- opts.atomic = !opts.usePolling && !opts.useFsEvents;
12293
- if (opts.atomic)
12294
- this._pendingUnlinks = /* @__PURE__ */ new Map();
12295
- if (undef(opts, "followSymlinks"))
12296
- opts.followSymlinks = true;
12297
- if (undef(opts, "awaitWriteFinish"))
12298
- opts.awaitWriteFinish = false;
12299
- if (opts.awaitWriteFinish === true)
12300
- opts.awaitWriteFinish = {};
12126
+ if (undef(opts, "atomic")) opts.atomic = !opts.usePolling && !opts.useFsEvents;
12127
+ if (opts.atomic) this._pendingUnlinks = /* @__PURE__ */ new Map();
12128
+ if (undef(opts, "followSymlinks")) opts.followSymlinks = true;
12129
+ if (undef(opts, "awaitWriteFinish")) opts.awaitWriteFinish = false;
12130
+ if (opts.awaitWriteFinish === true) opts.awaitWriteFinish = {};
12301
12131
  const awf = opts.awaitWriteFinish;
12302
12132
  if (awf) {
12303
- if (!awf.stabilityThreshold)
12304
- awf.stabilityThreshold = 2e3;
12305
- if (!awf.pollInterval)
12306
- awf.pollInterval = 100;
12133
+ if (!awf.stabilityThreshold) awf.stabilityThreshold = 2e3;
12134
+ if (!awf.pollInterval) awf.pollInterval = 100;
12307
12135
  this._pendingWrites = /* @__PURE__ */ new Map();
12308
12136
  }
12309
- if (opts.ignored)
12310
- opts.ignored = arrify(opts.ignored);
12137
+ if (opts.ignored) opts.ignored = arrify(opts.ignored);
12311
12138
  let readyCalls = 0;
12312
12139
  this._emitReady = () => {
12313
12140
  readyCalls++;
@@ -12359,25 +12186,20 @@ var require_chokidar = __commonJS({
12359
12186
  return true;
12360
12187
  });
12361
12188
  if (this.options.useFsEvents && this._fsEventsHandler) {
12362
- if (!this._readyCount)
12363
- this._readyCount = paths.length;
12364
- if (this.options.persistent)
12365
- this._readyCount *= 2;
12189
+ if (!this._readyCount) this._readyCount = paths.length;
12190
+ if (this.options.persistent) this._readyCount *= 2;
12366
12191
  paths.forEach((path5) => this._fsEventsHandler._addToFsEvents(path5));
12367
12192
  } else {
12368
- if (!this._readyCount)
12369
- this._readyCount = 0;
12193
+ if (!this._readyCount) this._readyCount = 0;
12370
12194
  this._readyCount += paths.length;
12371
12195
  Promise.all(
12372
12196
  paths.map(async (path5) => {
12373
12197
  const res = await this._nodeFsHandler._addToNodeFs(path5, !_internal, 0, 0, _origAdd);
12374
- if (res)
12375
- this._emitReady();
12198
+ if (res) this._emitReady();
12376
12199
  return res;
12377
12200
  })
12378
12201
  ).then((results) => {
12379
- if (this.closed)
12380
- return;
12202
+ if (this.closed) return;
12381
12203
  results.filter((item) => item).forEach((item) => {
12382
12204
  this.add(sysPath.dirname(item), sysPath.basename(_origAdd || item));
12383
12205
  });
@@ -12391,14 +12213,12 @@ var require_chokidar = __commonJS({
12391
12213
  * @returns {FSWatcher} for chaining
12392
12214
  */
12393
12215
  unwatch(paths_) {
12394
- if (this.closed)
12395
- return this;
12216
+ if (this.closed) return this;
12396
12217
  const paths = unifyPaths(paths_);
12397
12218
  const { cwd } = this.options;
12398
12219
  paths.forEach((path5) => {
12399
12220
  if (!sysPath.isAbsolute(path5) && !this._closers.has(path5)) {
12400
- if (cwd)
12401
- path5 = sysPath.join(cwd, path5);
12221
+ if (cwd) path5 = sysPath.join(cwd, path5);
12402
12222
  path5 = sysPath.resolve(path5);
12403
12223
  }
12404
12224
  this._closePath(path5);
@@ -12415,15 +12235,13 @@ var require_chokidar = __commonJS({
12415
12235
  * @returns {Promise<void>}.
12416
12236
  */
12417
12237
  close() {
12418
- if (this.closed)
12419
- return this._closePromise;
12238
+ if (this.closed) return this._closePromise;
12420
12239
  this.closed = true;
12421
12240
  this.removeAllListeners();
12422
12241
  const closers = [];
12423
12242
  this._closers.forEach((closerList) => closerList.forEach((closer) => {
12424
12243
  const promise = closer();
12425
- if (promise instanceof Promise)
12426
- closers.push(promise);
12244
+ if (promise instanceof Promise) closers.push(promise);
12427
12245
  }));
12428
12246
  this._streams.forEach((stream) => stream.destroy());
12429
12247
  this._userIgnored = void 0;
@@ -12450,8 +12268,7 @@ var require_chokidar = __commonJS({
12450
12268
  }
12451
12269
  emitWithAll(event, args2) {
12452
12270
  this.emit(...args2);
12453
- if (event !== EV_ERROR)
12454
- this.emit(EV_ALL, ...args2);
12271
+ if (event !== EV_ERROR) this.emit(EV_ALL, ...args2);
12455
12272
  }
12456
12273
  // Common helpers
12457
12274
  // --------------
@@ -12466,20 +12283,14 @@ var require_chokidar = __commonJS({
12466
12283
  * @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
12467
12284
  */
12468
12285
  async _emit(event, path5, val1, val2, val3) {
12469
- if (this.closed)
12470
- return;
12286
+ if (this.closed) return;
12471
12287
  const opts = this.options;
12472
- if (isWindows)
12473
- path5 = sysPath.normalize(path5);
12474
- if (opts.cwd)
12475
- path5 = sysPath.relative(opts.cwd, path5);
12288
+ if (isWindows) path5 = sysPath.normalize(path5);
12289
+ if (opts.cwd) path5 = sysPath.relative(opts.cwd, path5);
12476
12290
  const args2 = [event, path5];
12477
- if (val3 !== void 0)
12478
- args2.push(val1, val2, val3);
12479
- else if (val2 !== void 0)
12480
- args2.push(val1, val2);
12481
- else if (val1 !== void 0)
12482
- args2.push(val1);
12291
+ if (val3 !== void 0) args2.push(val1, val2, val3);
12292
+ else if (val2 !== void 0) args2.push(val1, val2);
12293
+ else if (val1 !== void 0) args2.push(val1);
12483
12294
  const awf = opts.awaitWriteFinish;
12484
12295
  let pw;
12485
12296
  if (awf && (pw = this._pendingWrites.get(path5))) {
@@ -12523,8 +12334,7 @@ var require_chokidar = __commonJS({
12523
12334
  }
12524
12335
  if (event === EV_CHANGE) {
12525
12336
  const isThrottled = !this._throttle(EV_CHANGE, path5, 50);
12526
- if (isThrottled)
12527
- return this;
12337
+ if (isThrottled) return this;
12528
12338
  }
12529
12339
  if (opts.alwaysStat && val1 === void 0 && (event === EV_ADD || event === EV_ADD_DIR || event === EV_CHANGE)) {
12530
12340
  const fullPath = opts.cwd ? sysPath.join(opts.cwd, path5) : path5;
@@ -12533,8 +12343,7 @@ var require_chokidar = __commonJS({
12533
12343
  stats = await stat(fullPath);
12534
12344
  } catch (err) {
12535
12345
  }
12536
- if (!stats || this.closed)
12537
- return;
12346
+ if (!stats || this.closed) return;
12538
12347
  args2.push(stats);
12539
12348
  }
12540
12349
  this.emitWithAll(event, args2);
@@ -12575,8 +12384,7 @@ var require_chokidar = __commonJS({
12575
12384
  const count = item ? item.count : 0;
12576
12385
  action.delete(path5);
12577
12386
  clearTimeout(timeoutObject);
12578
- if (item)
12579
- clearTimeout(item.timeoutObject);
12387
+ if (item) clearTimeout(item.timeoutObject);
12580
12388
  return count;
12581
12389
  };
12582
12390
  timeoutObject = setTimeout(clear, timeout);
@@ -12605,8 +12413,7 @@ var require_chokidar = __commonJS({
12605
12413
  const awaitWriteFinish = (prevStat) => {
12606
12414
  fs4.stat(fullPath, (err, curStat) => {
12607
12415
  if (err || !this._pendingWrites.has(path5)) {
12608
- if (err && err.code !== "ENOENT")
12609
- awfEmit(err);
12416
+ if (err && err.code !== "ENOENT") awfEmit(err);
12610
12417
  return;
12611
12418
  }
12612
12419
  const now2 = Number(/* @__PURE__ */ new Date());
@@ -12652,8 +12459,7 @@ var require_chokidar = __commonJS({
12652
12459
  * @returns {Boolean}
12653
12460
  */
12654
12461
  _isIgnored(path5, stats) {
12655
- if (this.options.atomic && DOT_RE.test(path5))
12656
- return true;
12462
+ if (this.options.atomic && DOT_RE.test(path5)) return true;
12657
12463
  if (!this._userIgnored) {
12658
12464
  const { cwd } = this.options;
12659
12465
  const ign = this.options.ignored;
@@ -12686,11 +12492,9 @@ var require_chokidar = __commonJS({
12686
12492
  * @returns {DirEntry} the directory's tracking object
12687
12493
  */
12688
12494
  _getWatchedDir(directory) {
12689
- if (!this._boundRemove)
12690
- this._boundRemove = this._remove.bind(this);
12495
+ if (!this._boundRemove) this._boundRemove = this._remove.bind(this);
12691
12496
  const dir = sysPath.resolve(directory);
12692
- if (!this._watched.has(dir))
12693
- this._watched.set(dir, new DirEntry(dir, this._boundRemove));
12497
+ if (!this._watched.has(dir)) this._watched.set(dir, new DirEntry(dir, this._boundRemove));
12694
12498
  return this._watched.get(dir);
12695
12499
  }
12696
12500
  // File helpers
@@ -12702,8 +12506,7 @@ var require_chokidar = __commonJS({
12702
12506
  * @returns {Boolean} indicates whether the file can be read
12703
12507
  */
12704
12508
  _hasReadPermissions(stats) {
12705
- if (this.options.ignorePermissionErrors)
12706
- return true;
12509
+ if (this.options.ignorePermissionErrors) return true;
12707
12510
  const md = stats && Number.parseInt(stats.mode, 10);
12708
12511
  const st = md & 511;
12709
12512
  const it = Number.parseInt(st.toString(8)[0], 10);
@@ -12721,8 +12524,7 @@ var require_chokidar = __commonJS({
12721
12524
  const path5 = sysPath.join(directory, item);
12722
12525
  const fullPath = sysPath.resolve(path5);
12723
12526
  isDirectory = isDirectory != null ? isDirectory : this._watched.has(path5) || this._watched.has(fullPath);
12724
- if (!this._throttle("remove", path5, 100))
12725
- return;
12527
+ if (!this._throttle("remove", path5, 100)) return;
12726
12528
  if (!isDirectory && !this.options.useFsEvents && this._watched.size === 1) {
12727
12529
  this.add(directory, item, true);
12728
12530
  }
@@ -12736,18 +12538,15 @@ var require_chokidar = __commonJS({
12736
12538
  this._symlinkPaths.delete(fullPath);
12737
12539
  }
12738
12540
  let relPath = path5;
12739
- if (this.options.cwd)
12740
- relPath = sysPath.relative(this.options.cwd, path5);
12541
+ if (this.options.cwd) relPath = sysPath.relative(this.options.cwd, path5);
12741
12542
  if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
12742
12543
  const event = this._pendingWrites.get(relPath).cancelWait();
12743
- if (event === EV_ADD)
12744
- return;
12544
+ if (event === EV_ADD) return;
12745
12545
  }
12746
12546
  this._watched.delete(path5);
12747
12547
  this._watched.delete(fullPath);
12748
12548
  const eventName = isDirectory ? EV_UNLINK_DIR : EV_UNLINK;
12749
- if (wasTracked && !this._isIgnored(path5))
12750
- this._emit(eventName, path5);
12549
+ if (wasTracked && !this._isIgnored(path5)) this._emit(eventName, path5);
12751
12550
  if (!this.options.useFsEvents) {
12752
12551
  this._closePath(path5);
12753
12552
  }
@@ -12767,8 +12566,7 @@ var require_chokidar = __commonJS({
12767
12566
  */
12768
12567
  _closeFile(path5) {
12769
12568
  const closers = this._closers.get(path5);
12770
- if (!closers)
12771
- return;
12569
+ if (!closers) return;
12772
12570
  closers.forEach((closer) => closer());
12773
12571
  this._closers.delete(path5);
12774
12572
  }
@@ -12778,8 +12576,7 @@ var require_chokidar = __commonJS({
12778
12576
  * @param {Function} closer
12779
12577
  */
12780
12578
  _addPathCloser(path5, closer) {
12781
- if (!closer)
12782
- return;
12579
+ if (!closer) return;
12783
12580
  let list = this._closers.get(path5);
12784
12581
  if (!list) {
12785
12582
  list = [];
@@ -12788,8 +12585,7 @@ var require_chokidar = __commonJS({
12788
12585
  list.push(closer);
12789
12586
  }
12790
12587
  _readdirp(root, opts) {
12791
- if (this.closed)
12792
- return;
12588
+ if (this.closed) return;
12793
12589
  const options = { type: EV_ALL, alwaysStat: true, lstat: true, ...opts };
12794
12590
  let stream = readdirp(root, options);
12795
12591
  this._streams.add(stream);
@@ -14164,7 +13960,7 @@ var require_package = __commonJS({
14164
13960
  "package.json"(exports2, module2) {
14165
13961
  module2.exports = {
14166
13962
  name: "@html-validate/eslint-config",
14167
- version: "5.18.0",
13963
+ version: "5.20.0",
14168
13964
  description: "Eslint sharable config used by the various HTML-validate packages",
14169
13965
  keywords: [
14170
13966
  "eslint"
@@ -14210,7 +14006,7 @@ var require_package = __commonJS({
14210
14006
  "eslint-plugin-array-func": "4.0.0",
14211
14007
  "eslint-plugin-eslint-comments": "3.2.0",
14212
14008
  "eslint-plugin-import": "2.29.1",
14213
- "eslint-plugin-n": "17.2.1",
14009
+ "eslint-plugin-n": "17.6.0",
14214
14010
  "eslint-plugin-prettier": "5.1.3",
14215
14011
  "eslint-plugin-security": "3.0.0",
14216
14012
  "eslint-plugin-sonarjs": "0.25.1"
@@ -14218,7 +14014,7 @@ var require_package = __commonJS({
14218
14014
  devDependencies: {
14219
14015
  argparse: "2.0.1",
14220
14016
  "find-up": "7.0.0",
14221
- "internal-prettier": "5.18.0",
14017
+ "internal-prettier": "5.20.0",
14222
14018
  nunjucks: "3.2.4"
14223
14019
  },
14224
14020
  peerDependencies: {