@html-validate/eslint-config 5.11.12 → 5.12.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
@@ -1,4 +1,3 @@
1
- #!/usr/bin/env node
2
1
  "use strict";
3
2
  var __create = Object.create;
4
3
  var __defProp = Object.defineProperty;
@@ -347,9 +346,9 @@ var require_argparse = __commonJS({
347
346
  var _UNRECOGNIZED_ARGS_ATTR = "_unrecognized_args";
348
347
  var assert = require("assert");
349
348
  var util = require("util");
350
- var fs3 = require("fs");
349
+ var fs4 = require("fs");
351
350
  var sub = require_sub();
352
- var path3 = require("path");
351
+ var path5 = require("path");
353
352
  var repr = util.inspect;
354
353
  function get_argv() {
355
354
  return process.argv.slice(1);
@@ -1854,7 +1853,7 @@ var require_argparse = __commonJS({
1854
1853
  start,
1855
1854
  end,
1856
1855
  highWaterMark,
1857
- fs4
1856
+ fs5
1858
1857
  ] = _parse_opts(arguments, {
1859
1858
  flags: "r",
1860
1859
  encoding: void 0,
@@ -1894,8 +1893,8 @@ var require_argparse = __commonJS({
1894
1893
  this._options.end = end;
1895
1894
  if (highWaterMark !== void 0)
1896
1895
  this._options.highWaterMark = highWaterMark;
1897
- if (fs4 !== void 0)
1898
- this._options.fs = fs4;
1896
+ if (fs5 !== void 0)
1897
+ this._options.fs = fs5;
1899
1898
  }
1900
1899
  call(string) {
1901
1900
  if (string === "-") {
@@ -1910,7 +1909,7 @@ var require_argparse = __commonJS({
1910
1909
  }
1911
1910
  let fd;
1912
1911
  try {
1913
- fd = fs3.openSync(string, this._flags, this._options.mode);
1912
+ fd = fs4.openSync(string, this._flags, this._options.mode);
1914
1913
  } catch (e) {
1915
1914
  let args2 = { filename: string, error: e.message };
1916
1915
  let message = "can't open '%(filename)s': %(error)s";
@@ -1918,9 +1917,9 @@ var require_argparse = __commonJS({
1918
1917
  }
1919
1918
  let options = Object.assign({ fd, flags: this._flags }, this._options);
1920
1919
  if (this._flags.includes("r")) {
1921
- return fs3.createReadStream(void 0, options);
1920
+ return fs4.createReadStream(void 0, options);
1922
1921
  } else if (this._flags.includes("w")) {
1923
- return fs3.createWriteStream(void 0, options);
1922
+ return fs4.createWriteStream(void 0, options);
1924
1923
  } else {
1925
1924
  let msg = sub('argument "%s" with mode %r', string, this._flags);
1926
1925
  throw new TypeError(msg);
@@ -2404,7 +2403,7 @@ var require_argparse = __commonJS({
2404
2403
  conflict_handler
2405
2404
  });
2406
2405
  if (prog === void 0) {
2407
- prog = path3.basename(get_argv()[0] || "");
2406
+ prog = path5.basename(get_argv()[0] || "");
2408
2407
  }
2409
2408
  this.prog = prog;
2410
2409
  this.usage = usage;
@@ -2780,7 +2779,7 @@ var require_argparse = __commonJS({
2780
2779
  new_arg_strings.push(arg_string);
2781
2780
  } else {
2782
2781
  try {
2783
- let args_file = fs3.readFileSync(arg_string.slice(1), "utf8");
2782
+ let args_file = fs4.readFileSync(arg_string.slice(1), "utf8");
2784
2783
  let arg_strings2 = [];
2785
2784
  for (let arg_line of splitlines(args_file)) {
2786
2785
  for (let arg of this.convert_arg_line_to_args(arg_line)) {
@@ -3229,321 +3228,6 @@ var require_argparse = __commonJS({
3229
3228
  }
3230
3229
  });
3231
3230
 
3232
- // ../../node_modules/yocto-queue/index.js
3233
- var require_yocto_queue = __commonJS({
3234
- "../../node_modules/yocto-queue/index.js"(exports, module2) {
3235
- var Node = class {
3236
- /// value;
3237
- /// next;
3238
- constructor(value) {
3239
- this.value = value;
3240
- this.next = void 0;
3241
- }
3242
- };
3243
- var Queue = class {
3244
- // TODO: Use private class fields when targeting Node.js 12.
3245
- // #_head;
3246
- // #_tail;
3247
- // #_size;
3248
- constructor() {
3249
- this.clear();
3250
- }
3251
- enqueue(value) {
3252
- const node = new Node(value);
3253
- if (this._head) {
3254
- this._tail.next = node;
3255
- this._tail = node;
3256
- } else {
3257
- this._head = node;
3258
- this._tail = node;
3259
- }
3260
- this._size++;
3261
- }
3262
- dequeue() {
3263
- const current = this._head;
3264
- if (!current) {
3265
- return;
3266
- }
3267
- this._head = this._head.next;
3268
- this._size--;
3269
- return current.value;
3270
- }
3271
- clear() {
3272
- this._head = void 0;
3273
- this._tail = void 0;
3274
- this._size = 0;
3275
- }
3276
- get size() {
3277
- return this._size;
3278
- }
3279
- *[Symbol.iterator]() {
3280
- let current = this._head;
3281
- while (current) {
3282
- yield current.value;
3283
- current = current.next;
3284
- }
3285
- }
3286
- };
3287
- module2.exports = Queue;
3288
- }
3289
- });
3290
-
3291
- // ../../node_modules/p-limit/index.js
3292
- var require_p_limit = __commonJS({
3293
- "../../node_modules/p-limit/index.js"(exports, module2) {
3294
- "use strict";
3295
- var Queue = require_yocto_queue();
3296
- var pLimit = (concurrency) => {
3297
- if (!((Number.isInteger(concurrency) || concurrency === Infinity) && concurrency > 0)) {
3298
- throw new TypeError("Expected `concurrency` to be a number from 1 and up");
3299
- }
3300
- const queue = new Queue();
3301
- let activeCount = 0;
3302
- const next = () => {
3303
- activeCount--;
3304
- if (queue.size > 0) {
3305
- queue.dequeue()();
3306
- }
3307
- };
3308
- const run2 = async (fn, resolve, ...args2) => {
3309
- activeCount++;
3310
- const result = (async () => fn(...args2))();
3311
- resolve(result);
3312
- try {
3313
- await result;
3314
- } catch {
3315
- }
3316
- next();
3317
- };
3318
- const enqueue = (fn, resolve, ...args2) => {
3319
- queue.enqueue(run2.bind(null, fn, resolve, ...args2));
3320
- (async () => {
3321
- await Promise.resolve();
3322
- if (activeCount < concurrency && queue.size > 0) {
3323
- queue.dequeue()();
3324
- }
3325
- })();
3326
- };
3327
- const generator = (fn, ...args2) => new Promise((resolve) => {
3328
- enqueue(fn, resolve, ...args2);
3329
- });
3330
- Object.defineProperties(generator, {
3331
- activeCount: {
3332
- get: () => activeCount
3333
- },
3334
- pendingCount: {
3335
- get: () => queue.size
3336
- },
3337
- clearQueue: {
3338
- value: () => {
3339
- queue.clear();
3340
- }
3341
- }
3342
- });
3343
- return generator;
3344
- };
3345
- module2.exports = pLimit;
3346
- }
3347
- });
3348
-
3349
- // ../../node_modules/p-locate/index.js
3350
- var require_p_locate = __commonJS({
3351
- "../../node_modules/p-locate/index.js"(exports, module2) {
3352
- "use strict";
3353
- var pLimit = require_p_limit();
3354
- var EndError = class extends Error {
3355
- constructor(value) {
3356
- super();
3357
- this.value = value;
3358
- }
3359
- };
3360
- var testElement = async (element, tester) => tester(await element);
3361
- var finder = async (element) => {
3362
- const values = await Promise.all(element);
3363
- if (values[1] === true) {
3364
- throw new EndError(values[0]);
3365
- }
3366
- return false;
3367
- };
3368
- var pLocate = async (iterable, tester, options) => {
3369
- options = {
3370
- concurrency: Infinity,
3371
- preserveOrder: true,
3372
- ...options
3373
- };
3374
- const limit = pLimit(options.concurrency);
3375
- const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
3376
- const checkLimit = pLimit(options.preserveOrder ? 1 : Infinity);
3377
- try {
3378
- await Promise.all(items.map((element) => checkLimit(finder, element)));
3379
- } catch (error) {
3380
- if (error instanceof EndError) {
3381
- return error.value;
3382
- }
3383
- throw error;
3384
- }
3385
- };
3386
- module2.exports = pLocate;
3387
- }
3388
- });
3389
-
3390
- // ../../node_modules/locate-path/index.js
3391
- var require_locate_path = __commonJS({
3392
- "../../node_modules/locate-path/index.js"(exports, module2) {
3393
- "use strict";
3394
- var path3 = require("path");
3395
- var fs3 = require("fs");
3396
- var { promisify: promisify2 } = require("util");
3397
- var pLocate = require_p_locate();
3398
- var fsStat = promisify2(fs3.stat);
3399
- var fsLStat = promisify2(fs3.lstat);
3400
- var typeMappings = {
3401
- directory: "isDirectory",
3402
- file: "isFile"
3403
- };
3404
- function checkType({ type }) {
3405
- if (type in typeMappings) {
3406
- return;
3407
- }
3408
- throw new Error(`Invalid type specified: ${type}`);
3409
- }
3410
- var matchType = (type, stat) => type === void 0 || stat[typeMappings[type]]();
3411
- module2.exports = async (paths, options) => {
3412
- options = {
3413
- cwd: process.cwd(),
3414
- type: "file",
3415
- allowSymlinks: true,
3416
- ...options
3417
- };
3418
- checkType(options);
3419
- const statFn = options.allowSymlinks ? fsStat : fsLStat;
3420
- return pLocate(paths, async (path_) => {
3421
- try {
3422
- const stat = await statFn(path3.resolve(options.cwd, path_));
3423
- return matchType(options.type, stat);
3424
- } catch {
3425
- return false;
3426
- }
3427
- }, options);
3428
- };
3429
- module2.exports.sync = (paths, options) => {
3430
- options = {
3431
- cwd: process.cwd(),
3432
- allowSymlinks: true,
3433
- type: "file",
3434
- ...options
3435
- };
3436
- checkType(options);
3437
- const statFn = options.allowSymlinks ? fs3.statSync : fs3.lstatSync;
3438
- for (const path_ of paths) {
3439
- try {
3440
- const stat = statFn(path3.resolve(options.cwd, path_));
3441
- if (matchType(options.type, stat)) {
3442
- return path_;
3443
- }
3444
- } catch {
3445
- }
3446
- }
3447
- };
3448
- }
3449
- });
3450
-
3451
- // ../../node_modules/path-exists/index.js
3452
- var require_path_exists = __commonJS({
3453
- "../../node_modules/path-exists/index.js"(exports, module2) {
3454
- "use strict";
3455
- var fs3 = require("fs");
3456
- var { promisify: promisify2 } = require("util");
3457
- var pAccess = promisify2(fs3.access);
3458
- module2.exports = async (path3) => {
3459
- try {
3460
- await pAccess(path3);
3461
- return true;
3462
- } catch (_) {
3463
- return false;
3464
- }
3465
- };
3466
- module2.exports.sync = (path3) => {
3467
- try {
3468
- fs3.accessSync(path3);
3469
- return true;
3470
- } catch (_) {
3471
- return false;
3472
- }
3473
- };
3474
- }
3475
- });
3476
-
3477
- // ../../node_modules/find-up/index.js
3478
- var require_find_up = __commonJS({
3479
- "../../node_modules/find-up/index.js"(exports, module2) {
3480
- "use strict";
3481
- var path3 = require("path");
3482
- var locatePath = require_locate_path();
3483
- var pathExists = require_path_exists();
3484
- var stop = Symbol("findUp.stop");
3485
- module2.exports = async (name, options = {}) => {
3486
- let directory = path3.resolve(options.cwd || "");
3487
- const { root } = path3.parse(directory);
3488
- const paths = [].concat(name);
3489
- const runMatcher = async (locateOptions) => {
3490
- if (typeof name !== "function") {
3491
- return locatePath(paths, locateOptions);
3492
- }
3493
- const foundPath = await name(locateOptions.cwd);
3494
- if (typeof foundPath === "string") {
3495
- return locatePath([foundPath], locateOptions);
3496
- }
3497
- return foundPath;
3498
- };
3499
- while (true) {
3500
- const foundPath = await runMatcher({ ...options, cwd: directory });
3501
- if (foundPath === stop) {
3502
- return;
3503
- }
3504
- if (foundPath) {
3505
- return path3.resolve(directory, foundPath);
3506
- }
3507
- if (directory === root) {
3508
- return;
3509
- }
3510
- directory = path3.dirname(directory);
3511
- }
3512
- };
3513
- module2.exports.sync = (name, options = {}) => {
3514
- let directory = path3.resolve(options.cwd || "");
3515
- const { root } = path3.parse(directory);
3516
- const paths = [].concat(name);
3517
- const runMatcher = (locateOptions) => {
3518
- if (typeof name !== "function") {
3519
- return locatePath.sync(paths, locateOptions);
3520
- }
3521
- const foundPath = name(locateOptions.cwd);
3522
- if (typeof foundPath === "string") {
3523
- return locatePath.sync([foundPath], locateOptions);
3524
- }
3525
- return foundPath;
3526
- };
3527
- while (true) {
3528
- const foundPath = runMatcher({ ...options, cwd: directory });
3529
- if (foundPath === stop) {
3530
- return;
3531
- }
3532
- if (foundPath) {
3533
- return path3.resolve(directory, foundPath);
3534
- }
3535
- if (directory === root) {
3536
- return;
3537
- }
3538
- directory = path3.dirname(directory);
3539
- }
3540
- };
3541
- module2.exports.exists = pathExists;
3542
- module2.exports.sync.exists = pathExists.sync;
3543
- module2.exports.stop = stop;
3544
- }
3545
- });
3546
-
3547
3231
  // ../../node_modules/nunjucks/src/lib.js
3548
3232
  var require_lib = __commonJS({
3549
3233
  "../../node_modules/nunjucks/src/lib.js"(exports, module2) {
@@ -3567,11 +3251,11 @@ var require_lib = __commonJS({
3567
3251
  function lookupEscape(ch) {
3568
3252
  return escapeMap[ch];
3569
3253
  }
3570
- function _prettifyError(path3, withInternals, err) {
3254
+ function _prettifyError(path5, withInternals, err) {
3571
3255
  if (!err.Update) {
3572
3256
  err = new _exports.TemplateError(err);
3573
3257
  }
3574
- err.Update(path3);
3258
+ err.Update(path5);
3575
3259
  if (!withInternals) {
3576
3260
  var old = err;
3577
3261
  err = new Error(old.message);
@@ -3632,8 +3316,8 @@ var require_lib = __commonJS({
3632
3316
  err.lineno = lineno;
3633
3317
  err.colno = colno;
3634
3318
  err.firstUpdate = true;
3635
- err.Update = function Update(path3) {
3636
- var msg = "(" + (path3 || "unknown path") + ")";
3319
+ err.Update = function Update(path5) {
3320
+ var msg = "(" + (path5 || "unknown path") + ")";
3637
3321
  if (this.firstUpdate) {
3638
3322
  if (this.lineno && this.colno) {
3639
3323
  msg += " [Line " + this.lineno + ", Column " + this.colno + "]";
@@ -4645,16 +4329,16 @@ var require_nodes = __commonJS({
4645
4329
  if (obj instanceof type) {
4646
4330
  results.push(obj);
4647
4331
  }
4648
- if (obj instanceof Node) {
4332
+ if (obj instanceof Node2) {
4649
4333
  obj.findAll(type, results);
4650
4334
  }
4651
4335
  }
4652
- var Node = /* @__PURE__ */ function(_Obj) {
4653
- _inheritsLoose(Node2, _Obj);
4654
- function Node2() {
4336
+ var Node2 = /* @__PURE__ */ function(_Obj) {
4337
+ _inheritsLoose(Node3, _Obj);
4338
+ function Node3() {
4655
4339
  return _Obj.apply(this, arguments) || this;
4656
4340
  }
4657
- var _proto = Node2.prototype;
4341
+ var _proto = Node3.prototype;
4658
4342
  _proto.init = function init(lineno, colno) {
4659
4343
  var _arguments = arguments, _this = this;
4660
4344
  for (var _len = arguments.length, args2 = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
@@ -4690,7 +4374,7 @@ var require_nodes = __commonJS({
4690
4374
  func(_this3[field], field);
4691
4375
  });
4692
4376
  };
4693
- return Node2;
4377
+ return Node3;
4694
4378
  }(Obj);
4695
4379
  var Value = /* @__PURE__ */ function(_Node) {
4696
4380
  _inheritsLoose(Value2, _Node);
@@ -4709,7 +4393,7 @@ var require_nodes = __commonJS({
4709
4393
  }
4710
4394
  }]);
4711
4395
  return Value2;
4712
- }(Node);
4396
+ }(Node2);
4713
4397
  var NodeList = /* @__PURE__ */ function(_Node2) {
4714
4398
  _inheritsLoose(NodeList2, _Node2);
4715
4399
  function NodeList2() {
@@ -4734,36 +4418,36 @@ var require_nodes = __commonJS({
4734
4418
  }
4735
4419
  }]);
4736
4420
  return NodeList2;
4737
- }(Node);
4421
+ }(Node2);
4738
4422
  var Root = NodeList.extend("Root");
4739
4423
  var Literal = Value.extend("Literal");
4740
4424
  var _Symbol = Value.extend("Symbol");
4741
4425
  var Group = NodeList.extend("Group");
4742
4426
  var ArrayNode = NodeList.extend("Array");
4743
- var Pair = Node.extend("Pair", {
4427
+ var Pair = Node2.extend("Pair", {
4744
4428
  fields: ["key", "value"]
4745
4429
  });
4746
4430
  var Dict = NodeList.extend("Dict");
4747
- var LookupVal = Node.extend("LookupVal", {
4431
+ var LookupVal = Node2.extend("LookupVal", {
4748
4432
  fields: ["target", "val"]
4749
4433
  });
4750
- var If = Node.extend("If", {
4434
+ var If = Node2.extend("If", {
4751
4435
  fields: ["cond", "body", "else_"]
4752
4436
  });
4753
4437
  var IfAsync = If.extend("IfAsync");
4754
- var InlineIf = Node.extend("InlineIf", {
4438
+ var InlineIf = Node2.extend("InlineIf", {
4755
4439
  fields: ["cond", "body", "else_"]
4756
4440
  });
4757
- var For = Node.extend("For", {
4441
+ var For = Node2.extend("For", {
4758
4442
  fields: ["arr", "name", "body", "else_"]
4759
4443
  });
4760
4444
  var AsyncEach = For.extend("AsyncEach");
4761
4445
  var AsyncAll = For.extend("AsyncAll");
4762
- var Macro = Node.extend("Macro", {
4446
+ var Macro = Node2.extend("Macro", {
4763
4447
  fields: ["name", "args", "body"]
4764
4448
  });
4765
4449
  var Caller = Macro.extend("Caller");
4766
- var Import = Node.extend("Import", {
4450
+ var Import = Node2.extend("Import", {
4767
4451
  fields: ["template", "target", "withContext"]
4768
4452
  });
4769
4453
  var FromImport = /* @__PURE__ */ function(_Node3) {
@@ -4787,8 +4471,8 @@ var require_nodes = __commonJS({
4787
4471
  }
4788
4472
  }]);
4789
4473
  return FromImport2;
4790
- }(Node);
4791
- var FunCall = Node.extend("FunCall", {
4474
+ }(Node2);
4475
+ var FunCall = Node2.extend("FunCall", {
4792
4476
  fields: ["name", "args"]
4793
4477
  });
4794
4478
  var Filter = FunCall.extend("Filter");
@@ -4796,37 +4480,37 @@ var require_nodes = __commonJS({
4796
4480
  fields: ["name", "args", "symbol"]
4797
4481
  });
4798
4482
  var KeywordArgs = Dict.extend("KeywordArgs");
4799
- var Block = Node.extend("Block", {
4483
+ var Block = Node2.extend("Block", {
4800
4484
  fields: ["name", "body"]
4801
4485
  });
4802
- var Super = Node.extend("Super", {
4486
+ var Super = Node2.extend("Super", {
4803
4487
  fields: ["blockName", "symbol"]
4804
4488
  });
4805
- var TemplateRef = Node.extend("TemplateRef", {
4489
+ var TemplateRef = Node2.extend("TemplateRef", {
4806
4490
  fields: ["template"]
4807
4491
  });
4808
4492
  var Extends = TemplateRef.extend("Extends");
4809
- var Include = Node.extend("Include", {
4493
+ var Include = Node2.extend("Include", {
4810
4494
  fields: ["template", "ignoreMissing"]
4811
4495
  });
4812
- var Set2 = Node.extend("Set", {
4496
+ var Set2 = Node2.extend("Set", {
4813
4497
  fields: ["targets", "value"]
4814
4498
  });
4815
- var Switch = Node.extend("Switch", {
4499
+ var Switch = Node2.extend("Switch", {
4816
4500
  fields: ["expr", "cases", "default"]
4817
4501
  });
4818
- var Case = Node.extend("Case", {
4502
+ var Case = Node2.extend("Case", {
4819
4503
  fields: ["cond", "body"]
4820
4504
  });
4821
4505
  var Output = NodeList.extend("Output");
4822
- var Capture = Node.extend("Capture", {
4506
+ var Capture = Node2.extend("Capture", {
4823
4507
  fields: ["body"]
4824
4508
  });
4825
4509
  var TemplateData = Literal.extend("TemplateData");
4826
- var UnaryOp = Node.extend("UnaryOp", {
4510
+ var UnaryOp = Node2.extend("UnaryOp", {
4827
4511
  fields: ["target"]
4828
4512
  });
4829
- var BinOp = Node.extend("BinOp", {
4513
+ var BinOp = Node2.extend("BinOp", {
4830
4514
  fields: ["left", "right"]
4831
4515
  });
4832
4516
  var In = BinOp.extend("In");
@@ -4844,13 +4528,13 @@ var require_nodes = __commonJS({
4844
4528
  var Pow = BinOp.extend("Pow");
4845
4529
  var Neg = UnaryOp.extend("Neg");
4846
4530
  var Pos = UnaryOp.extend("Pos");
4847
- var Compare = Node.extend("Compare", {
4531
+ var Compare = Node2.extend("Compare", {
4848
4532
  fields: ["expr", "ops"]
4849
4533
  });
4850
- var CompareOperand = Node.extend("CompareOperand", {
4534
+ var CompareOperand = Node2.extend("CompareOperand", {
4851
4535
  fields: ["expr", "type"]
4852
4536
  });
4853
- var CallExtension = Node.extend("CallExtension", {
4537
+ var CallExtension = Node2.extend("CallExtension", {
4854
4538
  init: function init(ext, prop, args2, contentArgs) {
4855
4539
  this.parent();
4856
4540
  this.extName = ext.__name || ext;
@@ -4894,7 +4578,7 @@ var require_nodes = __commonJS({
4894
4578
  var nodes = [];
4895
4579
  var props = null;
4896
4580
  node.iterFields(function(val, fieldName) {
4897
- if (val instanceof Node) {
4581
+ if (val instanceof Node2) {
4898
4582
  nodes.push([fieldName, val]);
4899
4583
  } else {
4900
4584
  props = props || {};
@@ -4914,7 +4598,7 @@ var require_nodes = __commonJS({
4914
4598
  }
4915
4599
  }
4916
4600
  module2.exports = {
4917
- Node,
4601
+ Node: Node2,
4918
4602
  Root,
4919
4603
  NodeList,
4920
4604
  Value,
@@ -7843,7 +7527,7 @@ var require_loader = __commonJS({
7843
7527
  };
7844
7528
  return _setPrototypeOf(o, p);
7845
7529
  }
7846
- var path3 = require("path");
7530
+ var path5 = require("path");
7847
7531
  var _require = require_object();
7848
7532
  var EmitterObj = _require.EmitterObj;
7849
7533
  module2.exports = /* @__PURE__ */ function(_EmitterObj) {
@@ -7853,7 +7537,7 @@ var require_loader = __commonJS({
7853
7537
  }
7854
7538
  var _proto = Loader.prototype;
7855
7539
  _proto.resolve = function resolve(from, to) {
7856
- return path3.resolve(path3.dirname(from), to);
7540
+ return path5.resolve(path5.dirname(from), to);
7857
7541
  };
7858
7542
  _proto.isRelative = function isRelative(filename) {
7859
7543
  return filename.indexOf("./") === 0 || filename.indexOf("../") === 0;
@@ -7913,7 +7597,7 @@ var require_precompiled_loader = __commonJS({
7913
7597
  var require_constants = __commonJS({
7914
7598
  "../../node_modules/picomatch/lib/constants.js"(exports, module2) {
7915
7599
  "use strict";
7916
- var path3 = require("path");
7600
+ var path5 = require("path");
7917
7601
  var WIN_SLASH = "\\\\/";
7918
7602
  var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
7919
7603
  var DOT_LITERAL = "\\.";
@@ -8083,7 +7767,7 @@ var require_constants = __commonJS({
8083
7767
  /* | */
8084
7768
  CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
8085
7769
  /* \uFEFF */
8086
- SEP: path3.sep,
7770
+ SEP: path5.sep,
8087
7771
  /**
8088
7772
  * Create EXTGLOB_CHARS
8089
7773
  */
@@ -8110,7 +7794,7 @@ var require_constants = __commonJS({
8110
7794
  var require_utils = __commonJS({
8111
7795
  "../../node_modules/picomatch/lib/utils.js"(exports) {
8112
7796
  "use strict";
8113
- var path3 = require("path");
7797
+ var path5 = require("path");
8114
7798
  var win32 = process.platform === "win32";
8115
7799
  var {
8116
7800
  REGEX_BACKSLASH,
@@ -8139,7 +7823,7 @@ var require_utils = __commonJS({
8139
7823
  if (options && typeof options.windows === "boolean") {
8140
7824
  return options.windows;
8141
7825
  }
8142
- return win32 === true || path3.sep === "\\";
7826
+ return win32 === true || path5.sep === "\\";
8143
7827
  };
8144
7828
  exports.escapeLast = (input, char, lastIdx) => {
8145
7829
  const idx = input.lastIndexOf(char, lastIdx);
@@ -9287,7 +8971,7 @@ var require_parse = __commonJS({
9287
8971
  var require_picomatch = __commonJS({
9288
8972
  "../../node_modules/picomatch/lib/picomatch.js"(exports, module2) {
9289
8973
  "use strict";
9290
- var path3 = require("path");
8974
+ var path5 = require("path");
9291
8975
  var scan = require_scan();
9292
8976
  var parse = require_parse();
9293
8977
  var utils = require_utils();
@@ -9373,7 +9057,7 @@ var require_picomatch = __commonJS({
9373
9057
  };
9374
9058
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
9375
9059
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
9376
- return regex.test(path3.basename(input));
9060
+ return regex.test(path5.basename(input));
9377
9061
  };
9378
9062
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
9379
9063
  picomatch.parse = (pattern, options) => {
@@ -9439,15 +9123,15 @@ var require_picomatch2 = __commonJS({
9439
9123
  var require_readdirp = __commonJS({
9440
9124
  "../../node_modules/readdirp/index.js"(exports, module2) {
9441
9125
  "use strict";
9442
- var fs3 = require("fs");
9126
+ var fs4 = require("fs");
9443
9127
  var { Readable } = require("stream");
9444
9128
  var sysPath = require("path");
9445
9129
  var { promisify: promisify2 } = require("util");
9446
9130
  var picomatch = require_picomatch2();
9447
- var readdir = promisify2(fs3.readdir);
9448
- var stat = promisify2(fs3.stat);
9449
- var lstat = promisify2(fs3.lstat);
9450
- var realpath = promisify2(fs3.realpath);
9131
+ var readdir = promisify2(fs4.readdir);
9132
+ var stat = promisify2(fs4.stat);
9133
+ var lstat = promisify2(fs4.lstat);
9134
+ var realpath = promisify2(fs4.realpath);
9451
9135
  var BANG = "!";
9452
9136
  var RECURSIVE_ERROR_CODE = "READDIRP_RECURSIVE_ERROR";
9453
9137
  var NORMAL_FLOW_ERRORS = /* @__PURE__ */ new Set(["ENOENT", "EPERM", "EACCES", "ELOOP", RECURSIVE_ERROR_CODE]);
@@ -9493,8 +9177,8 @@ var require_readdirp = __commonJS({
9493
9177
  return {
9494
9178
  root: ".",
9495
9179
  /* eslint-disable no-unused-vars */
9496
- fileFilter: (path3) => true,
9497
- directoryFilter: (path3) => true,
9180
+ fileFilter: (path5) => true,
9181
+ directoryFilter: (path5) => true,
9498
9182
  /* eslint-enable no-unused-vars */
9499
9183
  type: FILE_TYPE,
9500
9184
  lstat: false,
@@ -9514,7 +9198,7 @@ var require_readdirp = __commonJS({
9514
9198
  this._directoryFilter = normalizeFilter(opts.directoryFilter);
9515
9199
  const statMethod = opts.lstat ? lstat : stat;
9516
9200
  if (wantBigintFsStats) {
9517
- this._stat = (path3) => statMethod(path3, { bigint: true });
9201
+ this._stat = (path5) => statMethod(path5, { bigint: true });
9518
9202
  } else {
9519
9203
  this._stat = statMethod;
9520
9204
  }
@@ -9523,7 +9207,7 @@ var require_readdirp = __commonJS({
9523
9207
  this._wantsFile = [FILE_TYPE, FILE_DIR_TYPE, EVERYTHING_TYPE].includes(type);
9524
9208
  this._wantsEverything = type === EVERYTHING_TYPE;
9525
9209
  this._root = sysPath.resolve(root);
9526
- this._isDirent = "Dirent" in fs3 && !opts.alwaysStat;
9210
+ this._isDirent = "Dirent" in fs4 && !opts.alwaysStat;
9527
9211
  this._statsProp = this._isDirent ? "dirent" : "stats";
9528
9212
  this._rdOptions = { encoding: "utf8", withFileTypes: this._isDirent };
9529
9213
  this.parents = [this._exploreDir(root, 1)];
@@ -9536,9 +9220,9 @@ var require_readdirp = __commonJS({
9536
9220
  this.reading = true;
9537
9221
  try {
9538
9222
  while (!this.destroyed && batch > 0) {
9539
- const { path: path3, depth, files = [] } = this.parent || {};
9223
+ const { path: path5, depth, files = [] } = this.parent || {};
9540
9224
  if (files.length > 0) {
9541
- const slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path3));
9225
+ const slice = files.splice(0, batch).map((dirent) => this._formatEntry(dirent, path5));
9542
9226
  for (const entry of await Promise.all(slice)) {
9543
9227
  if (this.destroyed)
9544
9228
  return;
@@ -9575,20 +9259,20 @@ var require_readdirp = __commonJS({
9575
9259
  this.reading = false;
9576
9260
  }
9577
9261
  }
9578
- async _exploreDir(path3, depth) {
9262
+ async _exploreDir(path5, depth) {
9579
9263
  let files;
9580
9264
  try {
9581
- files = await readdir(path3, this._rdOptions);
9265
+ files = await readdir(path5, this._rdOptions);
9582
9266
  } catch (error) {
9583
9267
  this._onError(error);
9584
9268
  }
9585
- return { files, depth, path: path3 };
9269
+ return { files, depth, path: path5 };
9586
9270
  }
9587
- async _formatEntry(dirent, path3) {
9271
+ async _formatEntry(dirent, path5) {
9588
9272
  let entry;
9589
9273
  try {
9590
9274
  const basename = this._isDirent ? dirent.name : dirent;
9591
- const fullPath = sysPath.resolve(sysPath.join(path3, basename));
9275
+ const fullPath = sysPath.resolve(sysPath.join(path5, basename));
9592
9276
  entry = { path: sysPath.relative(this._root, fullPath), fullPath, basename };
9593
9277
  entry[this._statsProp] = this._isDirent ? dirent : await this._stat(fullPath);
9594
9278
  } catch (err) {
@@ -9675,24 +9359,24 @@ var require_readdirp = __commonJS({
9675
9359
  // ../../node_modules/normalize-path/index.js
9676
9360
  var require_normalize_path = __commonJS({
9677
9361
  "../../node_modules/normalize-path/index.js"(exports, module2) {
9678
- module2.exports = function(path3, stripTrailing) {
9679
- if (typeof path3 !== "string") {
9362
+ module2.exports = function(path5, stripTrailing) {
9363
+ if (typeof path5 !== "string") {
9680
9364
  throw new TypeError("expected path to be a string");
9681
9365
  }
9682
- if (path3 === "\\" || path3 === "/")
9366
+ if (path5 === "\\" || path5 === "/")
9683
9367
  return "/";
9684
- var len = path3.length;
9368
+ var len = path5.length;
9685
9369
  if (len <= 1)
9686
- return path3;
9370
+ return path5;
9687
9371
  var prefix = "";
9688
- if (len > 4 && path3[3] === "\\") {
9689
- var ch = path3[2];
9690
- if ((ch === "?" || ch === ".") && path3.slice(0, 2) === "\\\\") {
9691
- path3 = path3.slice(2);
9372
+ if (len > 4 && path5[3] === "\\") {
9373
+ var ch = path5[2];
9374
+ if ((ch === "?" || ch === ".") && path5.slice(0, 2) === "\\\\") {
9375
+ path5 = path5.slice(2);
9692
9376
  prefix = "//";
9693
9377
  }
9694
9378
  }
9695
- var segs = path3.split(/[/\\]+/);
9379
+ var segs = path5.split(/[/\\]+/);
9696
9380
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
9697
9381
  segs.pop();
9698
9382
  }
@@ -9730,17 +9414,17 @@ var require_anymatch = __commonJS({
9730
9414
  if (!isList && typeof _path !== "string") {
9731
9415
  throw new TypeError("anymatch: second argument must be a string: got " + Object.prototype.toString.call(_path));
9732
9416
  }
9733
- const path3 = normalizePath(_path);
9417
+ const path5 = normalizePath(_path);
9734
9418
  for (let index = 0; index < negPatterns.length; index++) {
9735
9419
  const nglob = negPatterns[index];
9736
- if (nglob(path3)) {
9420
+ if (nglob(path5)) {
9737
9421
  return returnIndex ? -1 : false;
9738
9422
  }
9739
9423
  }
9740
- const applied = isList && [path3].concat(args2.slice(1));
9424
+ const applied = isList && [path5].concat(args2.slice(1));
9741
9425
  for (let index = 0; index < patterns.length; index++) {
9742
9426
  const pattern = patterns[index];
9743
- if (isList ? pattern(...applied) : pattern(path3)) {
9427
+ if (isList ? pattern(...applied) : pattern(path5)) {
9744
9428
  return returnIndex ? index : true;
9745
9429
  }
9746
9430
  }
@@ -11328,10 +11012,10 @@ var require_binary_extensions2 = __commonJS({
11328
11012
  var require_is_binary_path = __commonJS({
11329
11013
  "../../node_modules/is-binary-path/index.js"(exports, module2) {
11330
11014
  "use strict";
11331
- var path3 = require("path");
11015
+ var path5 = require("path");
11332
11016
  var binaryExtensions = require_binary_extensions2();
11333
11017
  var extensions = new Set(binaryExtensions);
11334
- module2.exports = (filePath) => extensions.has(path3.extname(filePath).slice(1).toLowerCase());
11018
+ module2.exports = (filePath) => extensions.has(path5.extname(filePath).slice(1).toLowerCase());
11335
11019
  }
11336
11020
  });
11337
11021
 
@@ -11402,7 +11086,7 @@ var require_constants3 = __commonJS({
11402
11086
  var require_nodefs_handler = __commonJS({
11403
11087
  "../../node_modules/chokidar/lib/nodefs-handler.js"(exports, module2) {
11404
11088
  "use strict";
11405
- var fs3 = require("fs");
11089
+ var fs4 = require("fs");
11406
11090
  var sysPath = require("path");
11407
11091
  var { promisify: promisify2 } = require("util");
11408
11092
  var isBinaryPath = require_is_binary_path();
@@ -11425,11 +11109,11 @@ var require_nodefs_handler = __commonJS({
11425
11109
  STAR
11426
11110
  } = require_constants3();
11427
11111
  var THROTTLE_MODE_WATCH = "watch";
11428
- var open = promisify2(fs3.open);
11429
- var stat = promisify2(fs3.stat);
11430
- var lstat = promisify2(fs3.lstat);
11431
- var close = promisify2(fs3.close);
11432
- var fsrealpath = promisify2(fs3.realpath);
11112
+ var open = promisify2(fs4.open);
11113
+ var stat = promisify2(fs4.stat);
11114
+ var lstat = promisify2(fs4.lstat);
11115
+ var close = promisify2(fs4.close);
11116
+ var fsrealpath = promisify2(fs4.realpath);
11433
11117
  var statMethods = { lstat, stat };
11434
11118
  var foreach = (val, fn) => {
11435
11119
  if (val instanceof Set) {
@@ -11463,20 +11147,20 @@ var require_nodefs_handler = __commonJS({
11463
11147
  };
11464
11148
  var isEmptySet = (val) => val instanceof Set ? val.size === 0 : !val;
11465
11149
  var FsWatchInstances = /* @__PURE__ */ new Map();
11466
- function createFsWatchInstance(path3, options, listener, errHandler, emitRaw) {
11150
+ function createFsWatchInstance(path5, options, listener, errHandler, emitRaw) {
11467
11151
  const handleEvent = (rawEvent, evPath) => {
11468
- listener(path3);
11469
- emitRaw(rawEvent, evPath, { watchedPath: path3 });
11470
- if (evPath && path3 !== evPath) {
11152
+ listener(path5);
11153
+ emitRaw(rawEvent, evPath, { watchedPath: path5 });
11154
+ if (evPath && path5 !== evPath) {
11471
11155
  fsWatchBroadcast(
11472
- sysPath.resolve(path3, evPath),
11156
+ sysPath.resolve(path5, evPath),
11473
11157
  KEY_LISTENERS,
11474
- sysPath.join(path3, evPath)
11158
+ sysPath.join(path5, evPath)
11475
11159
  );
11476
11160
  }
11477
11161
  };
11478
11162
  try {
11479
- return fs3.watch(path3, options, handleEvent);
11163
+ return fs4.watch(path5, options, handleEvent);
11480
11164
  } catch (error) {
11481
11165
  errHandler(error);
11482
11166
  }
@@ -11489,13 +11173,13 @@ var require_nodefs_handler = __commonJS({
11489
11173
  listener(val1, val2, val3);
11490
11174
  });
11491
11175
  };
11492
- var setFsWatchListener = (path3, fullPath, options, handlers) => {
11176
+ var setFsWatchListener = (path5, fullPath, options, handlers) => {
11493
11177
  const { listener, errHandler, rawEmitter } = handlers;
11494
11178
  let cont = FsWatchInstances.get(fullPath);
11495
11179
  let watcher;
11496
11180
  if (!options.persistent) {
11497
11181
  watcher = createFsWatchInstance(
11498
- path3,
11182
+ path5,
11499
11183
  options,
11500
11184
  listener,
11501
11185
  errHandler,
@@ -11509,7 +11193,7 @@ var require_nodefs_handler = __commonJS({
11509
11193
  addAndConvert(cont, KEY_RAW, rawEmitter);
11510
11194
  } else {
11511
11195
  watcher = createFsWatchInstance(
11512
- path3,
11196
+ path5,
11513
11197
  options,
11514
11198
  fsWatchBroadcast.bind(null, fullPath, KEY_LISTENERS),
11515
11199
  errHandler,
@@ -11523,7 +11207,7 @@ var require_nodefs_handler = __commonJS({
11523
11207
  cont.watcherUnusable = true;
11524
11208
  if (isWindows && error.code === "EPERM") {
11525
11209
  try {
11526
- const fd = await open(path3, "r");
11210
+ const fd = await open(path5, "r");
11527
11211
  await close(fd);
11528
11212
  broadcastErr(error);
11529
11213
  } catch (err) {
@@ -11554,7 +11238,7 @@ var require_nodefs_handler = __commonJS({
11554
11238
  };
11555
11239
  };
11556
11240
  var FsWatchFileInstances = /* @__PURE__ */ new Map();
11557
- var setFsWatchFileListener = (path3, fullPath, options, handlers) => {
11241
+ var setFsWatchFileListener = (path5, fullPath, options, handlers) => {
11558
11242
  const { listener, rawEmitter } = handlers;
11559
11243
  let cont = FsWatchFileInstances.get(fullPath);
11560
11244
  let listeners = /* @__PURE__ */ new Set();
@@ -11563,7 +11247,7 @@ var require_nodefs_handler = __commonJS({
11563
11247
  if (copts && (copts.persistent < options.persistent || copts.interval > options.interval)) {
11564
11248
  listeners = cont.listeners;
11565
11249
  rawEmitters = cont.rawEmitters;
11566
- fs3.unwatchFile(fullPath);
11250
+ fs4.unwatchFile(fullPath);
11567
11251
  cont = void 0;
11568
11252
  }
11569
11253
  if (cont) {
@@ -11574,13 +11258,13 @@ var require_nodefs_handler = __commonJS({
11574
11258
  listeners: listener,
11575
11259
  rawEmitters: rawEmitter,
11576
11260
  options,
11577
- watcher: fs3.watchFile(fullPath, options, (curr, prev) => {
11261
+ watcher: fs4.watchFile(fullPath, options, (curr, prev) => {
11578
11262
  foreach(cont.rawEmitters, (rawEmitter2) => {
11579
11263
  rawEmitter2(EV_CHANGE, fullPath, { curr, prev });
11580
11264
  });
11581
11265
  const currmtime = curr.mtimeMs;
11582
11266
  if (curr.size !== prev.size || currmtime > prev.mtimeMs || currmtime === 0) {
11583
- foreach(cont.listeners, (listener2) => listener2(path3, curr));
11267
+ foreach(cont.listeners, (listener2) => listener2(path5, curr));
11584
11268
  }
11585
11269
  })
11586
11270
  };
@@ -11591,7 +11275,7 @@ var require_nodefs_handler = __commonJS({
11591
11275
  delFromSet(cont, KEY_RAW, rawEmitter);
11592
11276
  if (isEmptySet(cont.listeners)) {
11593
11277
  FsWatchFileInstances.delete(fullPath);
11594
- fs3.unwatchFile(fullPath);
11278
+ fs4.unwatchFile(fullPath);
11595
11279
  cont.options = cont.watcher = void 0;
11596
11280
  Object.freeze(cont);
11597
11281
  }
@@ -11611,25 +11295,25 @@ var require_nodefs_handler = __commonJS({
11611
11295
  * @param {Function} listener on fs change
11612
11296
  * @returns {Function} closer for the watcher instance
11613
11297
  */
11614
- _watchWithNodeFs(path3, listener) {
11298
+ _watchWithNodeFs(path5, listener) {
11615
11299
  const opts = this.fsw.options;
11616
- const directory = sysPath.dirname(path3);
11617
- const basename = sysPath.basename(path3);
11300
+ const directory = sysPath.dirname(path5);
11301
+ const basename = sysPath.basename(path5);
11618
11302
  const parent = this.fsw._getWatchedDir(directory);
11619
11303
  parent.add(basename);
11620
- const absolutePath = sysPath.resolve(path3);
11304
+ const absolutePath = sysPath.resolve(path5);
11621
11305
  const options = { persistent: opts.persistent };
11622
11306
  if (!listener)
11623
11307
  listener = EMPTY_FN;
11624
11308
  let closer;
11625
11309
  if (opts.usePolling) {
11626
11310
  options.interval = opts.enableBinaryInterval && isBinaryPath(basename) ? opts.binaryInterval : opts.interval;
11627
- closer = setFsWatchFileListener(path3, absolutePath, options, {
11311
+ closer = setFsWatchFileListener(path5, absolutePath, options, {
11628
11312
  listener,
11629
11313
  rawEmitter: this.fsw._emitRaw
11630
11314
  });
11631
11315
  } else {
11632
- closer = setFsWatchListener(path3, absolutePath, options, {
11316
+ closer = setFsWatchListener(path5, absolutePath, options, {
11633
11317
  listener,
11634
11318
  errHandler: this._boundHandleError,
11635
11319
  rawEmitter: this.fsw._emitRaw
@@ -11654,7 +11338,7 @@ var require_nodefs_handler = __commonJS({
11654
11338
  let prevStats = stats;
11655
11339
  if (parent.has(basename))
11656
11340
  return;
11657
- const listener = async (path3, newStats) => {
11341
+ const listener = async (path5, newStats) => {
11658
11342
  if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5))
11659
11343
  return;
11660
11344
  if (!newStats || newStats.mtimeMs === 0) {
@@ -11668,9 +11352,9 @@ var require_nodefs_handler = __commonJS({
11668
11352
  this.fsw._emit(EV_CHANGE, file, newStats2);
11669
11353
  }
11670
11354
  if (isLinux && prevStats.ino !== newStats2.ino) {
11671
- this.fsw._closeFile(path3);
11355
+ this.fsw._closeFile(path5);
11672
11356
  prevStats = newStats2;
11673
- this.fsw._addPathCloser(path3, this._watchWithNodeFs(file, listener));
11357
+ this.fsw._addPathCloser(path5, this._watchWithNodeFs(file, listener));
11674
11358
  } else {
11675
11359
  prevStats = newStats2;
11676
11360
  }
@@ -11702,7 +11386,7 @@ var require_nodefs_handler = __commonJS({
11702
11386
  * @param {String} item basename of this item
11703
11387
  * @returns {Promise<Boolean>} true if no more processing is needed for this entry.
11704
11388
  */
11705
- async _handleSymlink(entry, directory, path3, item) {
11389
+ async _handleSymlink(entry, directory, path5, item) {
11706
11390
  if (this.fsw.closed) {
11707
11391
  return;
11708
11392
  }
@@ -11712,7 +11396,7 @@ var require_nodefs_handler = __commonJS({
11712
11396
  this.fsw._incrReadyCount();
11713
11397
  let linkPath;
11714
11398
  try {
11715
- linkPath = await fsrealpath(path3);
11399
+ linkPath = await fsrealpath(path5);
11716
11400
  } catch (e) {
11717
11401
  this.fsw._emitReady();
11718
11402
  return true;
@@ -11722,12 +11406,12 @@ var require_nodefs_handler = __commonJS({
11722
11406
  if (dir.has(item)) {
11723
11407
  if (this.fsw._symlinkPaths.get(full) !== linkPath) {
11724
11408
  this.fsw._symlinkPaths.set(full, linkPath);
11725
- this.fsw._emit(EV_CHANGE, path3, entry.stats);
11409
+ this.fsw._emit(EV_CHANGE, path5, entry.stats);
11726
11410
  }
11727
11411
  } else {
11728
11412
  dir.add(item);
11729
11413
  this.fsw._symlinkPaths.set(full, linkPath);
11730
- this.fsw._emit(EV_ADD, path3, entry.stats);
11414
+ this.fsw._emit(EV_ADD, path5, entry.stats);
11731
11415
  }
11732
11416
  this.fsw._emitReady();
11733
11417
  return true;
@@ -11756,9 +11440,9 @@ var require_nodefs_handler = __commonJS({
11756
11440
  return;
11757
11441
  }
11758
11442
  const item = entry.path;
11759
- let path3 = sysPath.join(directory, item);
11443
+ let path5 = sysPath.join(directory, item);
11760
11444
  current.add(item);
11761
- if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path3, item)) {
11445
+ if (entry.stats.isSymbolicLink() && await this._handleSymlink(entry, directory, path5, item)) {
11762
11446
  return;
11763
11447
  }
11764
11448
  if (this.fsw.closed) {
@@ -11767,8 +11451,8 @@ var require_nodefs_handler = __commonJS({
11767
11451
  }
11768
11452
  if (item === target || !target && !previous.has(item)) {
11769
11453
  this.fsw._incrReadyCount();
11770
- path3 = sysPath.join(dir, sysPath.relative(dir, path3));
11771
- this._addToNodeFs(path3, initialAdd, wh, depth + 1);
11454
+ path5 = sysPath.join(dir, sysPath.relative(dir, path5));
11455
+ this._addToNodeFs(path5, initialAdd, wh, depth + 1);
11772
11456
  }
11773
11457
  }).on(EV_ERROR, this._boundHandleError);
11774
11458
  return new Promise(
@@ -11842,13 +11526,13 @@ var require_nodefs_handler = __commonJS({
11842
11526
  * @param {String=} target Child path actually targeted for watch
11843
11527
  * @returns {Promise}
11844
11528
  */
11845
- async _addToNodeFs(path3, initialAdd, priorWh, depth, target) {
11529
+ async _addToNodeFs(path5, initialAdd, priorWh, depth, target) {
11846
11530
  const ready = this.fsw._emitReady;
11847
- if (this.fsw._isIgnored(path3) || this.fsw.closed) {
11531
+ if (this.fsw._isIgnored(path5) || this.fsw.closed) {
11848
11532
  ready();
11849
11533
  return false;
11850
11534
  }
11851
- const wh = this.fsw._getWatchHelpers(path3, depth);
11535
+ const wh = this.fsw._getWatchHelpers(path5, depth);
11852
11536
  if (!wh.hasGlob && priorWh) {
11853
11537
  wh.hasGlob = priorWh.hasGlob;
11854
11538
  wh.globFilter = priorWh.globFilter;
@@ -11863,11 +11547,11 @@ var require_nodefs_handler = __commonJS({
11863
11547
  ready();
11864
11548
  return false;
11865
11549
  }
11866
- const follow = this.fsw.options.followSymlinks && !path3.includes(STAR) && !path3.includes(BRACE_START);
11550
+ const follow = this.fsw.options.followSymlinks && !path5.includes(STAR) && !path5.includes(BRACE_START);
11867
11551
  let closer;
11868
11552
  if (stats.isDirectory()) {
11869
- const absPath = sysPath.resolve(path3);
11870
- const targetPath = follow ? await fsrealpath(path3) : path3;
11553
+ const absPath = sysPath.resolve(path5);
11554
+ const targetPath = follow ? await fsrealpath(path5) : path5;
11871
11555
  if (this.fsw.closed)
11872
11556
  return;
11873
11557
  closer = await this._handleDir(wh.watchPath, stats, initialAdd, depth, target, wh, targetPath);
@@ -11877,28 +11561,28 @@ var require_nodefs_handler = __commonJS({
11877
11561
  this.fsw._symlinkPaths.set(absPath, targetPath);
11878
11562
  }
11879
11563
  } else if (stats.isSymbolicLink()) {
11880
- const targetPath = follow ? await fsrealpath(path3) : path3;
11564
+ const targetPath = follow ? await fsrealpath(path5) : path5;
11881
11565
  if (this.fsw.closed)
11882
11566
  return;
11883
11567
  const parent = sysPath.dirname(wh.watchPath);
11884
11568
  this.fsw._getWatchedDir(parent).add(wh.watchPath);
11885
11569
  this.fsw._emit(EV_ADD, wh.watchPath, stats);
11886
- closer = await this._handleDir(parent, stats, initialAdd, depth, path3, wh, targetPath);
11570
+ closer = await this._handleDir(parent, stats, initialAdd, depth, path5, wh, targetPath);
11887
11571
  if (this.fsw.closed)
11888
11572
  return;
11889
11573
  if (targetPath !== void 0) {
11890
- this.fsw._symlinkPaths.set(sysPath.resolve(path3), targetPath);
11574
+ this.fsw._symlinkPaths.set(sysPath.resolve(path5), targetPath);
11891
11575
  }
11892
11576
  } else {
11893
11577
  closer = this._handleFile(wh.watchPath, stats, initialAdd);
11894
11578
  }
11895
11579
  ready();
11896
- this.fsw._addPathCloser(path3, closer);
11580
+ this.fsw._addPathCloser(path5, closer);
11897
11581
  return false;
11898
11582
  } catch (error) {
11899
11583
  if (this.fsw._handleError(error)) {
11900
11584
  ready();
11901
- return path3;
11585
+ return path5;
11902
11586
  }
11903
11587
  }
11904
11588
  }
@@ -11911,7 +11595,7 @@ var require_nodefs_handler = __commonJS({
11911
11595
  var require_fsevents_handler = __commonJS({
11912
11596
  "../../node_modules/chokidar/lib/fsevents-handler.js"(exports, module2) {
11913
11597
  "use strict";
11914
- var fs3 = require("fs");
11598
+ var fs4 = require("fs");
11915
11599
  var sysPath = require("path");
11916
11600
  var { promisify: promisify2 } = require("util");
11917
11601
  var fsevents;
@@ -11956,9 +11640,9 @@ var require_fsevents_handler = __commonJS({
11956
11640
  IDENTITY_FN
11957
11641
  } = require_constants3();
11958
11642
  var Depth = (value) => isNaN(value) ? {} : { depth: value };
11959
- var stat = promisify2(fs3.stat);
11960
- var lstat = promisify2(fs3.lstat);
11961
- var realpath = promisify2(fs3.realpath);
11643
+ var stat = promisify2(fs4.stat);
11644
+ var lstat = promisify2(fs4.lstat);
11645
+ var realpath = promisify2(fs4.realpath);
11962
11646
  var statMethods = { stat, lstat };
11963
11647
  var FSEventsWatchers = /* @__PURE__ */ new Map();
11964
11648
  var consolidateThreshhold = 10;
@@ -11972,18 +11656,18 @@ var require_fsevents_handler = __commonJS({
11972
11656
  131840,
11973
11657
  262912
11974
11658
  ]);
11975
- var createFSEventsInstance = (path3, callback) => {
11976
- const stop = fsevents.watch(path3, callback);
11659
+ var createFSEventsInstance = (path5, callback) => {
11660
+ const stop = fsevents.watch(path5, callback);
11977
11661
  return { stop };
11978
11662
  };
11979
- function setFSEventsListener(path3, realPath, listener, rawEmitter) {
11663
+ function setFSEventsListener(path5, realPath, listener, rawEmitter) {
11980
11664
  let watchPath = sysPath.extname(realPath) ? sysPath.dirname(realPath) : realPath;
11981
11665
  const parentPath = sysPath.dirname(watchPath);
11982
11666
  let cont = FSEventsWatchers.get(watchPath);
11983
11667
  if (couldConsolidate(parentPath)) {
11984
11668
  watchPath = parentPath;
11985
11669
  }
11986
- const resolvedPath = sysPath.resolve(path3);
11670
+ const resolvedPath = sysPath.resolve(path5);
11987
11671
  const hasSymlink = resolvedPath !== realPath;
11988
11672
  const filteredListener = (fullPath, flags, info) => {
11989
11673
  if (hasSymlink)
@@ -12031,10 +11715,10 @@ var require_fsevents_handler = __commonJS({
12031
11715
  }
12032
11716
  };
12033
11717
  }
12034
- var couldConsolidate = (path3) => {
11718
+ var couldConsolidate = (path5) => {
12035
11719
  let count = 0;
12036
11720
  for (const watchPath of FSEventsWatchers.keys()) {
12037
- if (watchPath.indexOf(path3) === 0) {
11721
+ if (watchPath.indexOf(path5) === 0) {
12038
11722
  count++;
12039
11723
  if (count >= consolidateThreshhold) {
12040
11724
  return true;
@@ -12044,9 +11728,9 @@ var require_fsevents_handler = __commonJS({
12044
11728
  return false;
12045
11729
  };
12046
11730
  var canUse = () => fsevents && FSEventsWatchers.size < 128;
12047
- var calcDepth = (path3, root) => {
11731
+ var calcDepth = (path5, root) => {
12048
11732
  let i = 0;
12049
- while (!path3.indexOf(root) && (path3 = sysPath.dirname(path3)) !== root)
11733
+ while (!path5.indexOf(root) && (path5 = sysPath.dirname(path5)) !== root)
12050
11734
  i++;
12051
11735
  return i;
12052
11736
  };
@@ -12058,42 +11742,42 @@ var require_fsevents_handler = __commonJS({
12058
11742
  constructor(fsw) {
12059
11743
  this.fsw = fsw;
12060
11744
  }
12061
- checkIgnored(path3, stats) {
11745
+ checkIgnored(path5, stats) {
12062
11746
  const ipaths = this.fsw._ignoredPaths;
12063
- if (this.fsw._isIgnored(path3, stats)) {
12064
- ipaths.add(path3);
11747
+ if (this.fsw._isIgnored(path5, stats)) {
11748
+ ipaths.add(path5);
12065
11749
  if (stats && stats.isDirectory()) {
12066
- ipaths.add(path3 + ROOT_GLOBSTAR);
11750
+ ipaths.add(path5 + ROOT_GLOBSTAR);
12067
11751
  }
12068
11752
  return true;
12069
11753
  }
12070
- ipaths.delete(path3);
12071
- ipaths.delete(path3 + ROOT_GLOBSTAR);
11754
+ ipaths.delete(path5);
11755
+ ipaths.delete(path5 + ROOT_GLOBSTAR);
12072
11756
  }
12073
- addOrChange(path3, fullPath, realPath, parent, watchedDir, item, info, opts) {
11757
+ addOrChange(path5, fullPath, realPath, parent, watchedDir, item, info, opts) {
12074
11758
  const event = watchedDir.has(item) ? EV_CHANGE : EV_ADD;
12075
- this.handleEvent(event, path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11759
+ this.handleEvent(event, path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12076
11760
  }
12077
- async checkExists(path3, fullPath, realPath, parent, watchedDir, item, info, opts) {
11761
+ async checkExists(path5, fullPath, realPath, parent, watchedDir, item, info, opts) {
12078
11762
  try {
12079
- const stats = await stat(path3);
11763
+ const stats = await stat(path5);
12080
11764
  if (this.fsw.closed)
12081
11765
  return;
12082
11766
  if (sameTypes(info, stats)) {
12083
- this.addOrChange(path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11767
+ this.addOrChange(path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12084
11768
  } else {
12085
- this.handleEvent(EV_UNLINK, path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11769
+ this.handleEvent(EV_UNLINK, path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12086
11770
  }
12087
11771
  } catch (error) {
12088
11772
  if (error.code === "EACCES") {
12089
- this.addOrChange(path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11773
+ this.addOrChange(path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12090
11774
  } else {
12091
- this.handleEvent(EV_UNLINK, path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11775
+ this.handleEvent(EV_UNLINK, path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12092
11776
  }
12093
11777
  }
12094
11778
  }
12095
- handleEvent(event, path3, fullPath, realPath, parent, watchedDir, item, info, opts) {
12096
- if (this.fsw.closed || this.checkIgnored(path3))
11779
+ handleEvent(event, path5, fullPath, realPath, parent, watchedDir, item, info, opts) {
11780
+ if (this.fsw.closed || this.checkIgnored(path5))
12097
11781
  return;
12098
11782
  if (event === EV_UNLINK) {
12099
11783
  const isDirectory = info.type === FSEVENT_TYPE_DIRECTORY;
@@ -12103,17 +11787,17 @@ var require_fsevents_handler = __commonJS({
12103
11787
  } else {
12104
11788
  if (event === EV_ADD) {
12105
11789
  if (info.type === FSEVENT_TYPE_DIRECTORY)
12106
- this.fsw._getWatchedDir(path3);
11790
+ this.fsw._getWatchedDir(path5);
12107
11791
  if (info.type === FSEVENT_TYPE_SYMLINK && opts.followSymlinks) {
12108
11792
  const curDepth = opts.depth === void 0 ? void 0 : calcDepth(fullPath, realPath) + 1;
12109
- return this._addToFsEvents(path3, false, true, curDepth);
11793
+ return this._addToFsEvents(path5, false, true, curDepth);
12110
11794
  }
12111
11795
  this.fsw._getWatchedDir(parent).add(item);
12112
11796
  }
12113
11797
  const eventName = info.type === FSEVENT_TYPE_DIRECTORY ? event + DIR_SUFFIX : event;
12114
- this.fsw._emit(eventName, path3);
11798
+ this.fsw._emit(eventName, path5);
12115
11799
  if (eventName === EV_ADD_DIR)
12116
- this._addToFsEvents(path3, false, true);
11800
+ this._addToFsEvents(path5, false, true);
12117
11801
  }
12118
11802
  }
12119
11803
  /**
@@ -12133,44 +11817,44 @@ var require_fsevents_handler = __commonJS({
12133
11817
  return;
12134
11818
  if (opts.depth !== void 0 && calcDepth(fullPath, realPath) > opts.depth)
12135
11819
  return;
12136
- const path3 = transform(sysPath.join(
11820
+ const path5 = transform(sysPath.join(
12137
11821
  watchPath,
12138
11822
  sysPath.relative(watchPath, fullPath)
12139
11823
  ));
12140
- if (globFilter && !globFilter(path3))
11824
+ if (globFilter && !globFilter(path5))
12141
11825
  return;
12142
- const parent = sysPath.dirname(path3);
12143
- const item = sysPath.basename(path3);
11826
+ const parent = sysPath.dirname(path5);
11827
+ const item = sysPath.basename(path5);
12144
11828
  const watchedDir = this.fsw._getWatchedDir(
12145
- info.type === FSEVENT_TYPE_DIRECTORY ? path3 : parent
11829
+ info.type === FSEVENT_TYPE_DIRECTORY ? path5 : parent
12146
11830
  );
12147
11831
  if (wrongEventFlags.has(flags) || info.event === FSEVENT_UNKNOWN) {
12148
11832
  if (typeof opts.ignored === FUNCTION_TYPE) {
12149
11833
  let stats;
12150
11834
  try {
12151
- stats = await stat(path3);
11835
+ stats = await stat(path5);
12152
11836
  } catch (error) {
12153
11837
  }
12154
11838
  if (this.fsw.closed)
12155
11839
  return;
12156
- if (this.checkIgnored(path3, stats))
11840
+ if (this.checkIgnored(path5, stats))
12157
11841
  return;
12158
11842
  if (sameTypes(info, stats)) {
12159
- this.addOrChange(path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11843
+ this.addOrChange(path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12160
11844
  } else {
12161
- this.handleEvent(EV_UNLINK, path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11845
+ this.handleEvent(EV_UNLINK, path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12162
11846
  }
12163
11847
  } else {
12164
- this.checkExists(path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11848
+ this.checkExists(path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12165
11849
  }
12166
11850
  } else {
12167
11851
  switch (info.event) {
12168
11852
  case FSEVENT_CREATED:
12169
11853
  case FSEVENT_MODIFIED:
12170
- return this.addOrChange(path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11854
+ return this.addOrChange(path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12171
11855
  case FSEVENT_DELETED:
12172
11856
  case FSEVENT_MOVED:
12173
- return this.checkExists(path3, fullPath, realPath, parent, watchedDir, item, info, opts);
11857
+ return this.checkExists(path5, fullPath, realPath, parent, watchedDir, item, info, opts);
12174
11858
  }
12175
11859
  }
12176
11860
  };
@@ -12204,12 +11888,12 @@ var require_fsevents_handler = __commonJS({
12204
11888
  return this.fsw._emitReady();
12205
11889
  }
12206
11890
  this.fsw._incrReadyCount();
12207
- this._addToFsEvents(linkTarget || linkPath, (path3) => {
11891
+ this._addToFsEvents(linkTarget || linkPath, (path5) => {
12208
11892
  let aliasedPath = linkPath;
12209
11893
  if (linkTarget && linkTarget !== DOT_SLASH) {
12210
- aliasedPath = path3.replace(linkTarget, linkPath);
12211
- } else if (path3 !== DOT_SLASH) {
12212
- aliasedPath = sysPath.join(linkPath, path3);
11894
+ aliasedPath = path5.replace(linkTarget, linkPath);
11895
+ } else if (path5 !== DOT_SLASH) {
11896
+ aliasedPath = sysPath.join(linkPath, path5);
12213
11897
  }
12214
11898
  return transform(aliasedPath);
12215
11899
  }, false, curDepth);
@@ -12238,7 +11922,7 @@ var require_fsevents_handler = __commonJS({
12238
11922
  this.fsw._emit(isDir ? EV_ADD_DIR : EV_ADD, pp, stats);
12239
11923
  }
12240
11924
  }
12241
- initWatch(realPath, path3, wh, processPath) {
11925
+ initWatch(realPath, path5, wh, processPath) {
12242
11926
  if (this.fsw.closed)
12243
11927
  return;
12244
11928
  const closer = this._watchWithFsEvents(
@@ -12247,7 +11931,7 @@ var require_fsevents_handler = __commonJS({
12247
11931
  processPath,
12248
11932
  wh.globFilter
12249
11933
  );
12250
- this.fsw._addPathCloser(path3, closer);
11934
+ this.fsw._addPathCloser(path5, closer);
12251
11935
  }
12252
11936
  /**
12253
11937
  * Handle added path with fsevents
@@ -12257,13 +11941,13 @@ var require_fsevents_handler = __commonJS({
12257
11941
  * @param {Number=} priorDepth Level of subdirectories already traversed.
12258
11942
  * @returns {Promise<void>}
12259
11943
  */
12260
- async _addToFsEvents(path3, transform, forceAdd, priorDepth) {
11944
+ async _addToFsEvents(path5, transform, forceAdd, priorDepth) {
12261
11945
  if (this.fsw.closed) {
12262
11946
  return;
12263
11947
  }
12264
11948
  const opts = this.fsw.options;
12265
11949
  const processPath = typeof transform === FUNCTION_TYPE ? transform : IDENTITY_FN;
12266
- const wh = this.fsw._getWatchHelpers(path3);
11950
+ const wh = this.fsw._getWatchHelpers(path5);
12267
11951
  try {
12268
11952
  const stats = await statMethods[wh.statMethod](wh.watchPath);
12269
11953
  if (this.fsw.closed)
@@ -12273,7 +11957,7 @@ var require_fsevents_handler = __commonJS({
12273
11957
  }
12274
11958
  if (stats.isDirectory()) {
12275
11959
  if (!wh.globFilter)
12276
- this.emitAdd(processPath(path3), stats, processPath, opts, forceAdd);
11960
+ this.emitAdd(processPath(path5), stats, processPath, opts, forceAdd);
12277
11961
  if (priorDepth && priorDepth > opts.depth)
12278
11962
  return;
12279
11963
  this.fsw._readdirp(wh.watchPath, {
@@ -12309,14 +11993,14 @@ var require_fsevents_handler = __commonJS({
12309
11993
  }
12310
11994
  if (opts.persistent && forceAdd !== true) {
12311
11995
  if (typeof transform === FUNCTION_TYPE) {
12312
- this.initWatch(void 0, path3, wh, processPath);
11996
+ this.initWatch(void 0, path5, wh, processPath);
12313
11997
  } else {
12314
11998
  let realPath;
12315
11999
  try {
12316
12000
  realPath = await realpath(wh.watchPath);
12317
12001
  } catch (e) {
12318
12002
  }
12319
- this.initWatch(realPath, path3, wh, processPath);
12003
+ this.initWatch(realPath, path5, wh, processPath);
12320
12004
  }
12321
12005
  }
12322
12006
  }
@@ -12331,7 +12015,7 @@ var require_chokidar = __commonJS({
12331
12015
  "../../node_modules/chokidar/index.js"(exports) {
12332
12016
  "use strict";
12333
12017
  var { EventEmitter } = require("events");
12334
- var fs3 = require("fs");
12018
+ var fs4 = require("fs");
12335
12019
  var sysPath = require("path");
12336
12020
  var { promisify: promisify2 } = require("util");
12337
12021
  var readdirp = require_readdirp();
@@ -12376,8 +12060,8 @@ var require_chokidar = __commonJS({
12376
12060
  isMacos,
12377
12061
  isIBMi
12378
12062
  } = require_constants3();
12379
- var stat = promisify2(fs3.stat);
12380
- var readdir = promisify2(fs3.readdir);
12063
+ var stat = promisify2(fs4.stat);
12064
+ var readdir = promisify2(fs4.readdir);
12381
12065
  var arrify = (value = []) => Array.isArray(value) ? value : [value];
12382
12066
  var flatten = (list, result = []) => {
12383
12067
  list.forEach((item) => {
@@ -12410,20 +12094,20 @@ var require_chokidar = __commonJS({
12410
12094
  }
12411
12095
  return str;
12412
12096
  };
12413
- var normalizePathToUnix = (path3) => toUnix(sysPath.normalize(toUnix(path3)));
12414
- var normalizeIgnored = (cwd = EMPTY_STR) => (path3) => {
12415
- if (typeof path3 !== STRING_TYPE)
12416
- return path3;
12417
- return normalizePathToUnix(sysPath.isAbsolute(path3) ? path3 : sysPath.join(cwd, path3));
12097
+ var normalizePathToUnix = (path5) => toUnix(sysPath.normalize(toUnix(path5)));
12098
+ var normalizeIgnored = (cwd = EMPTY_STR) => (path5) => {
12099
+ if (typeof path5 !== STRING_TYPE)
12100
+ return path5;
12101
+ return normalizePathToUnix(sysPath.isAbsolute(path5) ? path5 : sysPath.join(cwd, path5));
12418
12102
  };
12419
- var getAbsolutePath = (path3, cwd) => {
12420
- if (sysPath.isAbsolute(path3)) {
12421
- return path3;
12103
+ var getAbsolutePath = (path5, cwd) => {
12104
+ if (sysPath.isAbsolute(path5)) {
12105
+ return path5;
12422
12106
  }
12423
- if (path3.startsWith(BANG)) {
12424
- return BANG + sysPath.join(cwd, path3.slice(1));
12107
+ if (path5.startsWith(BANG)) {
12108
+ return BANG + sysPath.join(cwd, path5.slice(1));
12425
12109
  }
12426
- return sysPath.join(cwd, path3);
12110
+ return sysPath.join(cwd, path5);
12427
12111
  };
12428
12112
  var undef = (opts, key) => opts[key] === void 0;
12429
12113
  var DirEntry = class {
@@ -12485,17 +12169,17 @@ var require_chokidar = __commonJS({
12485
12169
  var STAT_METHOD_F = "stat";
12486
12170
  var STAT_METHOD_L = "lstat";
12487
12171
  var WatchHelper = class {
12488
- constructor(path3, watchPath, follow, fsw) {
12172
+ constructor(path5, watchPath, follow, fsw) {
12489
12173
  this.fsw = fsw;
12490
- this.path = path3 = path3.replace(REPLACER_RE, EMPTY_STR);
12174
+ this.path = path5 = path5.replace(REPLACER_RE, EMPTY_STR);
12491
12175
  this.watchPath = watchPath;
12492
12176
  this.fullWatchPath = sysPath.resolve(watchPath);
12493
- this.hasGlob = watchPath !== path3;
12494
- if (path3 === EMPTY_STR)
12177
+ this.hasGlob = watchPath !== path5;
12178
+ if (path5 === EMPTY_STR)
12495
12179
  this.hasGlob = false;
12496
12180
  this.globSymlink = this.hasGlob && follow ? void 0 : false;
12497
- this.globFilter = this.hasGlob ? anymatch(path3, void 0, ANYMATCH_OPTS) : false;
12498
- this.dirParts = this.getDirParts(path3);
12181
+ this.globFilter = this.hasGlob ? anymatch(path5, void 0, ANYMATCH_OPTS) : false;
12182
+ this.dirParts = this.getDirParts(path5);
12499
12183
  this.dirParts.forEach((parts) => {
12500
12184
  if (parts.length > 1)
12501
12185
  parts.pop();
@@ -12526,13 +12210,13 @@ var require_chokidar = __commonJS({
12526
12210
  const matchesGlob = this.hasGlob && typeof this.globFilter === FUNCTION_TYPE ? this.globFilter(resolvedPath) : true;
12527
12211
  return matchesGlob && this.fsw._isntIgnored(resolvedPath, stats) && this.fsw._hasReadPermissions(stats);
12528
12212
  }
12529
- getDirParts(path3) {
12213
+ getDirParts(path5) {
12530
12214
  if (!this.hasGlob)
12531
12215
  return [];
12532
12216
  const parts = [];
12533
- const expandedPath = path3.includes(BRACE_START) ? braces.expand(path3) : [path3];
12534
- expandedPath.forEach((path4) => {
12535
- parts.push(sysPath.relative(this.watchPath, path4).split(SLASH_OR_BACK_SLASH_RE));
12217
+ const expandedPath = path5.includes(BRACE_START) ? braces.expand(path5) : [path5];
12218
+ expandedPath.forEach((path6) => {
12219
+ parts.push(sysPath.relative(this.watchPath, path6).split(SLASH_OR_BACK_SLASH_RE));
12536
12220
  });
12537
12221
  return parts;
12538
12222
  }
@@ -12656,21 +12340,21 @@ var require_chokidar = __commonJS({
12656
12340
  this.closed = false;
12657
12341
  let paths = unifyPaths(paths_);
12658
12342
  if (cwd) {
12659
- paths = paths.map((path3) => {
12660
- const absPath = getAbsolutePath(path3, cwd);
12661
- if (disableGlobbing || !isGlob(path3)) {
12343
+ paths = paths.map((path5) => {
12344
+ const absPath = getAbsolutePath(path5, cwd);
12345
+ if (disableGlobbing || !isGlob(path5)) {
12662
12346
  return absPath;
12663
12347
  }
12664
12348
  return normalizePath(absPath);
12665
12349
  });
12666
12350
  }
12667
- paths = paths.filter((path3) => {
12668
- if (path3.startsWith(BANG)) {
12669
- this._ignoredPaths.add(path3.slice(1));
12351
+ paths = paths.filter((path5) => {
12352
+ if (path5.startsWith(BANG)) {
12353
+ this._ignoredPaths.add(path5.slice(1));
12670
12354
  return false;
12671
12355
  }
12672
- this._ignoredPaths.delete(path3);
12673
- this._ignoredPaths.delete(path3 + SLASH_GLOBSTAR);
12356
+ this._ignoredPaths.delete(path5);
12357
+ this._ignoredPaths.delete(path5 + SLASH_GLOBSTAR);
12674
12358
  this._userIgnored = void 0;
12675
12359
  return true;
12676
12360
  });
@@ -12679,14 +12363,14 @@ var require_chokidar = __commonJS({
12679
12363
  this._readyCount = paths.length;
12680
12364
  if (this.options.persistent)
12681
12365
  this._readyCount *= 2;
12682
- paths.forEach((path3) => this._fsEventsHandler._addToFsEvents(path3));
12366
+ paths.forEach((path5) => this._fsEventsHandler._addToFsEvents(path5));
12683
12367
  } else {
12684
12368
  if (!this._readyCount)
12685
12369
  this._readyCount = 0;
12686
12370
  this._readyCount += paths.length;
12687
12371
  Promise.all(
12688
- paths.map(async (path3) => {
12689
- const res = await this._nodeFsHandler._addToNodeFs(path3, !_internal, 0, 0, _origAdd);
12372
+ paths.map(async (path5) => {
12373
+ const res = await this._nodeFsHandler._addToNodeFs(path5, !_internal, 0, 0, _origAdd);
12690
12374
  if (res)
12691
12375
  this._emitReady();
12692
12376
  return res;
@@ -12711,16 +12395,16 @@ var require_chokidar = __commonJS({
12711
12395
  return this;
12712
12396
  const paths = unifyPaths(paths_);
12713
12397
  const { cwd } = this.options;
12714
- paths.forEach((path3) => {
12715
- if (!sysPath.isAbsolute(path3) && !this._closers.has(path3)) {
12398
+ paths.forEach((path5) => {
12399
+ if (!sysPath.isAbsolute(path5) && !this._closers.has(path5)) {
12716
12400
  if (cwd)
12717
- path3 = sysPath.join(cwd, path3);
12718
- path3 = sysPath.resolve(path3);
12401
+ path5 = sysPath.join(cwd, path5);
12402
+ path5 = sysPath.resolve(path5);
12719
12403
  }
12720
- this._closePath(path3);
12721
- this._ignoredPaths.add(path3);
12722
- if (this._watched.has(path3)) {
12723
- this._ignoredPaths.add(path3 + SLASH_GLOBSTAR);
12404
+ this._closePath(path5);
12405
+ this._ignoredPaths.add(path5);
12406
+ if (this._watched.has(path5)) {
12407
+ this._ignoredPaths.add(path5 + SLASH_GLOBSTAR);
12724
12408
  }
12725
12409
  this._userIgnored = void 0;
12726
12410
  });
@@ -12781,15 +12465,15 @@ var require_chokidar = __commonJS({
12781
12465
  * @param {*=} val3
12782
12466
  * @returns the error if defined, otherwise the value of the FSWatcher instance's `closed` flag
12783
12467
  */
12784
- async _emit(event, path3, val1, val2, val3) {
12468
+ async _emit(event, path5, val1, val2, val3) {
12785
12469
  if (this.closed)
12786
12470
  return;
12787
12471
  const opts = this.options;
12788
12472
  if (isWindows)
12789
- path3 = sysPath.normalize(path3);
12473
+ path5 = sysPath.normalize(path5);
12790
12474
  if (opts.cwd)
12791
- path3 = sysPath.relative(opts.cwd, path3);
12792
- const args2 = [event, path3];
12475
+ path5 = sysPath.relative(opts.cwd, path5);
12476
+ const args2 = [event, path5];
12793
12477
  if (val3 !== void 0)
12794
12478
  args2.push(val1, val2, val3);
12795
12479
  else if (val2 !== void 0)
@@ -12798,25 +12482,25 @@ var require_chokidar = __commonJS({
12798
12482
  args2.push(val1);
12799
12483
  const awf = opts.awaitWriteFinish;
12800
12484
  let pw;
12801
- if (awf && (pw = this._pendingWrites.get(path3))) {
12485
+ if (awf && (pw = this._pendingWrites.get(path5))) {
12802
12486
  pw.lastChange = /* @__PURE__ */ new Date();
12803
12487
  return this;
12804
12488
  }
12805
12489
  if (opts.atomic) {
12806
12490
  if (event === EV_UNLINK) {
12807
- this._pendingUnlinks.set(path3, args2);
12491
+ this._pendingUnlinks.set(path5, args2);
12808
12492
  setTimeout(() => {
12809
- this._pendingUnlinks.forEach((entry, path4) => {
12493
+ this._pendingUnlinks.forEach((entry, path6) => {
12810
12494
  this.emit(...entry);
12811
12495
  this.emit(EV_ALL, ...entry);
12812
- this._pendingUnlinks.delete(path4);
12496
+ this._pendingUnlinks.delete(path6);
12813
12497
  });
12814
12498
  }, typeof opts.atomic === "number" ? opts.atomic : 100);
12815
12499
  return this;
12816
12500
  }
12817
- if (event === EV_ADD && this._pendingUnlinks.has(path3)) {
12501
+ if (event === EV_ADD && this._pendingUnlinks.has(path5)) {
12818
12502
  event = args2[0] = EV_CHANGE;
12819
- this._pendingUnlinks.delete(path3);
12503
+ this._pendingUnlinks.delete(path5);
12820
12504
  }
12821
12505
  }
12822
12506
  if (awf && (event === EV_ADD || event === EV_CHANGE) && this._readyEmitted) {
@@ -12834,16 +12518,16 @@ var require_chokidar = __commonJS({
12834
12518
  this.emitWithAll(event, args2);
12835
12519
  }
12836
12520
  };
12837
- this._awaitWriteFinish(path3, awf.stabilityThreshold, event, awfEmit);
12521
+ this._awaitWriteFinish(path5, awf.stabilityThreshold, event, awfEmit);
12838
12522
  return this;
12839
12523
  }
12840
12524
  if (event === EV_CHANGE) {
12841
- const isThrottled = !this._throttle(EV_CHANGE, path3, 50);
12525
+ const isThrottled = !this._throttle(EV_CHANGE, path5, 50);
12842
12526
  if (isThrottled)
12843
12527
  return this;
12844
12528
  }
12845
12529
  if (opts.alwaysStat && val1 === void 0 && (event === EV_ADD || event === EV_ADD_DIR || event === EV_CHANGE)) {
12846
- const fullPath = opts.cwd ? sysPath.join(opts.cwd, path3) : path3;
12530
+ const fullPath = opts.cwd ? sysPath.join(opts.cwd, path5) : path5;
12847
12531
  let stats;
12848
12532
  try {
12849
12533
  stats = await stat(fullPath);
@@ -12875,21 +12559,21 @@ var require_chokidar = __commonJS({
12875
12559
  * @param {Number} timeout duration of time to suppress duplicate actions
12876
12560
  * @returns {Object|false} tracking object or false if action should be suppressed
12877
12561
  */
12878
- _throttle(actionType, path3, timeout) {
12562
+ _throttle(actionType, path5, timeout) {
12879
12563
  if (!this._throttled.has(actionType)) {
12880
12564
  this._throttled.set(actionType, /* @__PURE__ */ new Map());
12881
12565
  }
12882
12566
  const action = this._throttled.get(actionType);
12883
- const actionPath = action.get(path3);
12567
+ const actionPath = action.get(path5);
12884
12568
  if (actionPath) {
12885
12569
  actionPath.count++;
12886
12570
  return false;
12887
12571
  }
12888
12572
  let timeoutObject;
12889
12573
  const clear = () => {
12890
- const item = action.get(path3);
12574
+ const item = action.get(path5);
12891
12575
  const count = item ? item.count : 0;
12892
- action.delete(path3);
12576
+ action.delete(path5);
12893
12577
  clearTimeout(timeoutObject);
12894
12578
  if (item)
12895
12579
  clearTimeout(item.timeoutObject);
@@ -12897,7 +12581,7 @@ var require_chokidar = __commonJS({
12897
12581
  };
12898
12582
  timeoutObject = setTimeout(clear, timeout);
12899
12583
  const thr = { timeoutObject, clear, count: 0 };
12900
- action.set(path3, thr);
12584
+ action.set(path5, thr);
12901
12585
  return thr;
12902
12586
  }
12903
12587
  _incrReadyCount() {
@@ -12911,28 +12595,28 @@ var require_chokidar = __commonJS({
12911
12595
  * @param {EventName} event
12912
12596
  * @param {Function} awfEmit Callback to be called when ready for event to be emitted.
12913
12597
  */
12914
- _awaitWriteFinish(path3, threshold, event, awfEmit) {
12598
+ _awaitWriteFinish(path5, threshold, event, awfEmit) {
12915
12599
  let timeoutHandler;
12916
- let fullPath = path3;
12917
- if (this.options.cwd && !sysPath.isAbsolute(path3)) {
12918
- fullPath = sysPath.join(this.options.cwd, path3);
12600
+ let fullPath = path5;
12601
+ if (this.options.cwd && !sysPath.isAbsolute(path5)) {
12602
+ fullPath = sysPath.join(this.options.cwd, path5);
12919
12603
  }
12920
12604
  const now = /* @__PURE__ */ new Date();
12921
12605
  const awaitWriteFinish = (prevStat) => {
12922
- fs3.stat(fullPath, (err, curStat) => {
12923
- if (err || !this._pendingWrites.has(path3)) {
12606
+ fs4.stat(fullPath, (err, curStat) => {
12607
+ if (err || !this._pendingWrites.has(path5)) {
12924
12608
  if (err && err.code !== "ENOENT")
12925
12609
  awfEmit(err);
12926
12610
  return;
12927
12611
  }
12928
12612
  const now2 = Number(/* @__PURE__ */ new Date());
12929
12613
  if (prevStat && curStat.size !== prevStat.size) {
12930
- this._pendingWrites.get(path3).lastChange = now2;
12614
+ this._pendingWrites.get(path5).lastChange = now2;
12931
12615
  }
12932
- const pw = this._pendingWrites.get(path3);
12616
+ const pw = this._pendingWrites.get(path5);
12933
12617
  const df = now2 - pw.lastChange;
12934
12618
  if (df >= threshold) {
12935
- this._pendingWrites.delete(path3);
12619
+ this._pendingWrites.delete(path5);
12936
12620
  awfEmit(void 0, curStat);
12937
12621
  } else {
12938
12622
  timeoutHandler = setTimeout(
@@ -12943,11 +12627,11 @@ var require_chokidar = __commonJS({
12943
12627
  }
12944
12628
  });
12945
12629
  };
12946
- if (!this._pendingWrites.has(path3)) {
12947
- this._pendingWrites.set(path3, {
12630
+ if (!this._pendingWrites.has(path5)) {
12631
+ this._pendingWrites.set(path5, {
12948
12632
  lastChange: now,
12949
12633
  cancelWait: () => {
12950
- this._pendingWrites.delete(path3);
12634
+ this._pendingWrites.delete(path5);
12951
12635
  clearTimeout(timeoutHandler);
12952
12636
  return event;
12953
12637
  }
@@ -12967,21 +12651,21 @@ var require_chokidar = __commonJS({
12967
12651
  * @param {fs.Stats=} stats result of fs.stat
12968
12652
  * @returns {Boolean}
12969
12653
  */
12970
- _isIgnored(path3, stats) {
12971
- if (this.options.atomic && DOT_RE.test(path3))
12654
+ _isIgnored(path5, stats) {
12655
+ if (this.options.atomic && DOT_RE.test(path5))
12972
12656
  return true;
12973
12657
  if (!this._userIgnored) {
12974
12658
  const { cwd } = this.options;
12975
12659
  const ign = this.options.ignored;
12976
12660
  const ignored = ign && ign.map(normalizeIgnored(cwd));
12977
- const paths = arrify(ignored).filter((path4) => typeof path4 === STRING_TYPE && !isGlob(path4)).map((path4) => path4 + SLASH_GLOBSTAR);
12661
+ const paths = arrify(ignored).filter((path6) => typeof path6 === STRING_TYPE && !isGlob(path6)).map((path6) => path6 + SLASH_GLOBSTAR);
12978
12662
  const list = this._getGlobIgnored().map(normalizeIgnored(cwd)).concat(ignored, paths);
12979
12663
  this._userIgnored = anymatch(list, void 0, ANYMATCH_OPTS);
12980
12664
  }
12981
- return this._userIgnored([path3, stats]);
12665
+ return this._userIgnored([path5, stats]);
12982
12666
  }
12983
- _isntIgnored(path3, stat2) {
12984
- return !this._isIgnored(path3, stat2);
12667
+ _isntIgnored(path5, stat2) {
12668
+ return !this._isIgnored(path5, stat2);
12985
12669
  }
12986
12670
  /**
12987
12671
  * Provides a set of common helpers and properties relating to symlink and glob handling.
@@ -12989,10 +12673,10 @@ var require_chokidar = __commonJS({
12989
12673
  * @param {Number=} depth at any depth > 0, this isn't a glob
12990
12674
  * @returns {WatchHelper} object containing helpers for this path
12991
12675
  */
12992
- _getWatchHelpers(path3, depth) {
12993
- const watchPath = depth || this.options.disableGlobbing || !isGlob(path3) ? path3 : globParent(path3);
12676
+ _getWatchHelpers(path5, depth) {
12677
+ const watchPath = depth || this.options.disableGlobbing || !isGlob(path5) ? path5 : globParent(path5);
12994
12678
  const follow = this.options.followSymlinks;
12995
- return new WatchHelper(path3, watchPath, follow, this);
12679
+ return new WatchHelper(path5, watchPath, follow, this);
12996
12680
  }
12997
12681
  // Directory helpers
12998
12682
  // -----------------
@@ -13034,72 +12718,72 @@ var require_chokidar = __commonJS({
13034
12718
  * @returns {void}
13035
12719
  */
13036
12720
  _remove(directory, item, isDirectory) {
13037
- const path3 = sysPath.join(directory, item);
13038
- const fullPath = sysPath.resolve(path3);
13039
- isDirectory = isDirectory != null ? isDirectory : this._watched.has(path3) || this._watched.has(fullPath);
13040
- if (!this._throttle("remove", path3, 100))
12721
+ const path5 = sysPath.join(directory, item);
12722
+ const fullPath = sysPath.resolve(path5);
12723
+ isDirectory = isDirectory != null ? isDirectory : this._watched.has(path5) || this._watched.has(fullPath);
12724
+ if (!this._throttle("remove", path5, 100))
13041
12725
  return;
13042
12726
  if (!isDirectory && !this.options.useFsEvents && this._watched.size === 1) {
13043
12727
  this.add(directory, item, true);
13044
12728
  }
13045
- const wp = this._getWatchedDir(path3);
12729
+ const wp = this._getWatchedDir(path5);
13046
12730
  const nestedDirectoryChildren = wp.getChildren();
13047
- nestedDirectoryChildren.forEach((nested) => this._remove(path3, nested));
12731
+ nestedDirectoryChildren.forEach((nested) => this._remove(path5, nested));
13048
12732
  const parent = this._getWatchedDir(directory);
13049
12733
  const wasTracked = parent.has(item);
13050
12734
  parent.remove(item);
13051
12735
  if (this._symlinkPaths.has(fullPath)) {
13052
12736
  this._symlinkPaths.delete(fullPath);
13053
12737
  }
13054
- let relPath = path3;
12738
+ let relPath = path5;
13055
12739
  if (this.options.cwd)
13056
- relPath = sysPath.relative(this.options.cwd, path3);
12740
+ relPath = sysPath.relative(this.options.cwd, path5);
13057
12741
  if (this.options.awaitWriteFinish && this._pendingWrites.has(relPath)) {
13058
12742
  const event = this._pendingWrites.get(relPath).cancelWait();
13059
12743
  if (event === EV_ADD)
13060
12744
  return;
13061
12745
  }
13062
- this._watched.delete(path3);
12746
+ this._watched.delete(path5);
13063
12747
  this._watched.delete(fullPath);
13064
12748
  const eventName = isDirectory ? EV_UNLINK_DIR : EV_UNLINK;
13065
- if (wasTracked && !this._isIgnored(path3))
13066
- this._emit(eventName, path3);
12749
+ if (wasTracked && !this._isIgnored(path5))
12750
+ this._emit(eventName, path5);
13067
12751
  if (!this.options.useFsEvents) {
13068
- this._closePath(path3);
12752
+ this._closePath(path5);
13069
12753
  }
13070
12754
  }
13071
12755
  /**
13072
12756
  * Closes all watchers for a path
13073
12757
  * @param {Path} path
13074
12758
  */
13075
- _closePath(path3) {
13076
- this._closeFile(path3);
13077
- const dir = sysPath.dirname(path3);
13078
- this._getWatchedDir(dir).remove(sysPath.basename(path3));
12759
+ _closePath(path5) {
12760
+ this._closeFile(path5);
12761
+ const dir = sysPath.dirname(path5);
12762
+ this._getWatchedDir(dir).remove(sysPath.basename(path5));
13079
12763
  }
13080
12764
  /**
13081
12765
  * Closes only file-specific watchers
13082
12766
  * @param {Path} path
13083
12767
  */
13084
- _closeFile(path3) {
13085
- const closers = this._closers.get(path3);
12768
+ _closeFile(path5) {
12769
+ const closers = this._closers.get(path5);
13086
12770
  if (!closers)
13087
12771
  return;
13088
12772
  closers.forEach((closer) => closer());
13089
- this._closers.delete(path3);
12773
+ this._closers.delete(path5);
13090
12774
  }
13091
12775
  /**
13092
12776
  *
13093
12777
  * @param {Path} path
13094
12778
  * @param {Function} closer
13095
12779
  */
13096
- _addPathCloser(path3, closer) {
12780
+ _addPathCloser(path5, closer) {
13097
12781
  if (!closer)
13098
12782
  return;
13099
- let list = this._closers.get(path3);
12783
+ let list = this._closers.get(path5);
13100
12784
  if (!list) {
13101
12785
  list = [];
13102
- this._closers.set(path3, list);
12786
+ this._closers.set(path5, list);
13103
12787
  }
13104
12788
  list.push(closer);
13105
12789
  }
@@ -13147,8 +12831,8 @@ var require_node_loaders = __commonJS({
13147
12831
  };
13148
12832
  return _setPrototypeOf(o, p);
13149
12833
  }
13150
- var fs3 = require("fs");
13151
- var path3 = require("path");
12834
+ var fs4 = require("fs");
12835
+ var path5 = require("path");
13152
12836
  var Loader = require_loader();
13153
12837
  var _require = require_precompiled_loader();
13154
12838
  var PrecompiledLoader = _require.PrecompiledLoader;
@@ -13166,7 +12850,7 @@ var require_node_loaders = __commonJS({
13166
12850
  _this.noCache = !!opts.noCache;
13167
12851
  if (searchPaths) {
13168
12852
  searchPaths = Array.isArray(searchPaths) ? searchPaths : [searchPaths];
13169
- _this.searchPaths = searchPaths.map(path3.normalize);
12853
+ _this.searchPaths = searchPaths.map(path5.normalize);
13170
12854
  } else {
13171
12855
  _this.searchPaths = ["."];
13172
12856
  }
@@ -13176,10 +12860,10 @@ var require_node_loaders = __commonJS({
13176
12860
  } catch (e) {
13177
12861
  throw new Error("watch requires chokidar to be installed");
13178
12862
  }
13179
- var paths = _this.searchPaths.filter(fs3.existsSync);
12863
+ var paths = _this.searchPaths.filter(fs4.existsSync);
13180
12864
  var watcher = chokidar.watch(paths);
13181
12865
  watcher.on("all", function(event, fullname) {
13182
- fullname = path3.resolve(fullname);
12866
+ fullname = path5.resolve(fullname);
13183
12867
  if (event === "change" && fullname in _this.pathsToNames) {
13184
12868
  _this.emit("update", _this.pathsToNames[fullname], fullname);
13185
12869
  }
@@ -13195,9 +12879,9 @@ var require_node_loaders = __commonJS({
13195
12879
  var fullpath = null;
13196
12880
  var paths = this.searchPaths;
13197
12881
  for (var i = 0; i < paths.length; i++) {
13198
- var basePath = path3.resolve(paths[i]);
13199
- var p = path3.resolve(paths[i], name);
13200
- if (p.indexOf(basePath) === 0 && fs3.existsSync(p)) {
12882
+ var basePath = path5.resolve(paths[i]);
12883
+ var p = path5.resolve(paths[i], name);
12884
+ if (p.indexOf(basePath) === 0 && fs4.existsSync(p)) {
13201
12885
  fullpath = p;
13202
12886
  break;
13203
12887
  }
@@ -13207,7 +12891,7 @@ var require_node_loaders = __commonJS({
13207
12891
  }
13208
12892
  this.pathsToNames[fullpath] = name;
13209
12893
  var source = {
13210
- src: fs3.readFileSync(fullpath, "utf-8"),
12894
+ src: fs4.readFileSync(fullpath, "utf-8"),
13211
12895
  path: fullpath,
13212
12896
  noCache: this.noCache
13213
12897
  };
@@ -13259,7 +12943,7 @@ var require_node_loaders = __commonJS({
13259
12943
  }
13260
12944
  this.pathsToNames[fullpath] = name;
13261
12945
  var source = {
13262
- src: fs3.readFileSync(fullpath, "utf-8"),
12946
+ src: fs4.readFileSync(fullpath, "utf-8"),
13263
12947
  path: fullpath,
13264
12948
  noCache: this.noCache
13265
12949
  };
@@ -13462,13 +13146,13 @@ var require_globals = __commonJS({
13462
13146
  var require_express_app = __commonJS({
13463
13147
  "../../node_modules/nunjucks/src/express-app.js"(exports, module2) {
13464
13148
  "use strict";
13465
- var path3 = require("path");
13149
+ var path5 = require("path");
13466
13150
  module2.exports = function express(env, app) {
13467
13151
  function NunjucksView(name, opts) {
13468
13152
  this.name = name;
13469
13153
  this.path = name;
13470
13154
  this.defaultEngine = opts.defaultEngine;
13471
- this.ext = path3.extname(name);
13155
+ this.ext = path5.extname(name);
13472
13156
  if (!this.ext && !this.defaultEngine) {
13473
13157
  throw new Error("No default engine was specified and no extension was provided.");
13474
13158
  }
@@ -13848,7 +13532,7 @@ var require_environment = __commonJS({
13848
13532
  return _Obj2.apply(this, arguments) || this;
13849
13533
  }
13850
13534
  var _proto3 = Template2.prototype;
13851
- _proto3.init = function init(src, env, path3, eagerCompile) {
13535
+ _proto3.init = function init(src, env, path5, eagerCompile) {
13852
13536
  this.env = env || new Environment();
13853
13537
  if (lib.isObject(src)) {
13854
13538
  switch (src.type) {
@@ -13866,7 +13550,7 @@ var require_environment = __commonJS({
13866
13550
  } else {
13867
13551
  throw new Error("src must be a string or an object describing the source");
13868
13552
  }
13869
- this.path = path3;
13553
+ this.path = path5;
13870
13554
  if (eagerCompile) {
13871
13555
  try {
13872
13556
  this._compile();
@@ -14016,8 +13700,8 @@ var require_precompile_global = __commonJS({
14016
13700
  var require_precompile = __commonJS({
14017
13701
  "../../node_modules/nunjucks/src/precompile.js"(exports, module2) {
14018
13702
  "use strict";
14019
- var fs3 = require("fs");
14020
- var path3 = require("path");
13703
+ var fs4 = require("fs");
13704
+ var path5 = require("path");
14021
13705
  var _require = require_lib();
14022
13706
  var _prettifyError = _require._prettifyError;
14023
13707
  var compiler = require_compiler();
@@ -14049,14 +13733,14 @@ var require_precompile = __commonJS({
14049
13733
  if (opts.isString) {
14050
13734
  return precompileString(input, opts);
14051
13735
  }
14052
- var pathStats = fs3.existsSync(input) && fs3.statSync(input);
13736
+ var pathStats = fs4.existsSync(input) && fs4.statSync(input);
14053
13737
  var precompiled = [];
14054
13738
  var templates = [];
14055
13739
  function addTemplates(dir) {
14056
- fs3.readdirSync(dir).forEach(function(file) {
14057
- var filepath = path3.join(dir, file);
14058
- var subpath = filepath.substr(path3.join(input, "/").length);
14059
- var stat = fs3.statSync(filepath);
13740
+ fs4.readdirSync(dir).forEach(function(file) {
13741
+ var filepath = path5.join(dir, file);
13742
+ var subpath = filepath.substr(path5.join(input, "/").length);
13743
+ var stat = fs4.statSync(filepath);
14060
13744
  if (stat && stat.isDirectory()) {
14061
13745
  subpath += "/";
14062
13746
  if (!match(subpath, opts.exclude)) {
@@ -14068,13 +13752,13 @@ var require_precompile = __commonJS({
14068
13752
  });
14069
13753
  }
14070
13754
  if (pathStats.isFile()) {
14071
- precompiled.push(_precompile(fs3.readFileSync(input, "utf-8"), opts.name || input, env));
13755
+ precompiled.push(_precompile(fs4.readFileSync(input, "utf-8"), opts.name || input, env));
14072
13756
  } else if (pathStats.isDirectory()) {
14073
13757
  addTemplates(input);
14074
13758
  for (var i = 0; i < templates.length; i++) {
14075
- var name = templates[i].replace(path3.join(input, "/"), "");
13759
+ var name = templates[i].replace(path5.join(input, "/"), "");
14076
13760
  try {
14077
- precompiled.push(_precompile(fs3.readFileSync(templates[i], "utf-8"), name, env));
13761
+ precompiled.push(_precompile(fs4.readFileSync(templates[i], "utf-8"), name, env));
14078
13762
  } catch (e) {
14079
13763
  if (opts.force) {
14080
13764
  console.error(e);
@@ -14451,11 +14135,11 @@ var require_nunjucks = __commonJS({
14451
14135
  reset: function reset() {
14452
14136
  e = void 0;
14453
14137
  },
14454
- compile: function compile(src, env, path3, eagerCompile) {
14138
+ compile: function compile(src, env, path5, eagerCompile) {
14455
14139
  if (!e) {
14456
14140
  configure();
14457
14141
  }
14458
- return new Template(src, env, path3, eagerCompile);
14142
+ return new Template(src, env, path5, eagerCompile);
14459
14143
  },
14460
14144
  render: function render(name, ctx, cb) {
14461
14145
  if (!e) {
@@ -14480,7 +14164,7 @@ var require_package = __commonJS({
14480
14164
  "package.json"(exports, module2) {
14481
14165
  module2.exports = {
14482
14166
  name: "@html-validate/eslint-config",
14483
- version: "5.11.11",
14167
+ version: "5.12.0",
14484
14168
  description: "Eslint sharable config used by the various HTML-validate packages",
14485
14169
  keywords: [
14486
14170
  "eslint"
@@ -14510,11 +14194,11 @@ var require_package = __commonJS({
14510
14194
  ],
14511
14195
  scripts: {
14512
14196
  prebuild: "tsc",
14513
- build: "esbuild src/cli.ts --bundle --sourcemap --platform=node --target=node12.22 --external:prettier --outdir=dist"
14197
+ build: "esbuild src/cli.ts --bundle --sourcemap --platform=node --target=node16 --external:prettier --outdir=dist"
14514
14198
  },
14515
14199
  dependencies: {
14516
14200
  "@rushstack/eslint-patch": "1.6.0",
14517
- eslint: "8.54.0",
14201
+ eslint: "8.55.0",
14518
14202
  "eslint-config-prettier": "9.0.0",
14519
14203
  "eslint-config-sidvind": "1.3.2",
14520
14204
  "eslint-formatter-gitlab": "5.1.0",
@@ -14530,15 +14214,15 @@ var require_package = __commonJS({
14530
14214
  },
14531
14215
  devDependencies: {
14532
14216
  argparse: "2.0.1",
14533
- "find-up": "5.0.0",
14534
- "internal-prettier": "5.11.11",
14217
+ "find-up": "7.0.0",
14218
+ "internal-prettier": "5.12.0",
14535
14219
  nunjucks: "3.2.4"
14536
14220
  },
14537
14221
  peerDependencies: {
14538
14222
  prettier: "^3"
14539
14223
  },
14540
14224
  engines: {
14541
- node: ">= 12.22",
14225
+ node: ">= 16.10",
14542
14226
  npm: ">= 7"
14543
14227
  },
14544
14228
  publishConfig: {
@@ -14554,7 +14238,228 @@ var import_child_process = __toESM(require("child_process"));
14554
14238
  var import_util = require("util");
14555
14239
  var import_path2 = __toESM(require("path"));
14556
14240
  var import_argparse = __toESM(require_argparse());
14557
- var import_find_up = __toESM(require_find_up());
14241
+
14242
+ // node_modules/find-up/index.js
14243
+ var import_node_path2 = __toESM(require("node:path"), 1);
14244
+
14245
+ // node_modules/locate-path/index.js
14246
+ var import_node_process = __toESM(require("node:process"), 1);
14247
+ var import_node_path = __toESM(require("node:path"), 1);
14248
+ var import_node_fs = __toESM(require("node:fs"), 1);
14249
+ var import_node_url = require("node:url");
14250
+
14251
+ // node_modules/yocto-queue/index.js
14252
+ var Node = class {
14253
+ value;
14254
+ next;
14255
+ constructor(value) {
14256
+ this.value = value;
14257
+ }
14258
+ };
14259
+ var Queue = class {
14260
+ #head;
14261
+ #tail;
14262
+ #size;
14263
+ constructor() {
14264
+ this.clear();
14265
+ }
14266
+ enqueue(value) {
14267
+ const node = new Node(value);
14268
+ if (this.#head) {
14269
+ this.#tail.next = node;
14270
+ this.#tail = node;
14271
+ } else {
14272
+ this.#head = node;
14273
+ this.#tail = node;
14274
+ }
14275
+ this.#size++;
14276
+ }
14277
+ dequeue() {
14278
+ const current = this.#head;
14279
+ if (!current) {
14280
+ return;
14281
+ }
14282
+ this.#head = this.#head.next;
14283
+ this.#size--;
14284
+ return current.value;
14285
+ }
14286
+ clear() {
14287
+ this.#head = void 0;
14288
+ this.#tail = void 0;
14289
+ this.#size = 0;
14290
+ }
14291
+ get size() {
14292
+ return this.#size;
14293
+ }
14294
+ *[Symbol.iterator]() {
14295
+ let current = this.#head;
14296
+ while (current) {
14297
+ yield current.value;
14298
+ current = current.next;
14299
+ }
14300
+ }
14301
+ };
14302
+
14303
+ // node_modules/p-limit/index.js
14304
+ function pLimit(concurrency) {
14305
+ if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
14306
+ throw new TypeError("Expected `concurrency` to be a number from 1 and up");
14307
+ }
14308
+ const queue = new Queue();
14309
+ let activeCount = 0;
14310
+ const next = () => {
14311
+ activeCount--;
14312
+ if (queue.size > 0) {
14313
+ queue.dequeue()();
14314
+ }
14315
+ };
14316
+ const run2 = async (fn, resolve, args2) => {
14317
+ activeCount++;
14318
+ const result = (async () => fn(...args2))();
14319
+ resolve(result);
14320
+ try {
14321
+ await result;
14322
+ } catch {
14323
+ }
14324
+ next();
14325
+ };
14326
+ const enqueue = (fn, resolve, args2) => {
14327
+ queue.enqueue(run2.bind(void 0, fn, resolve, args2));
14328
+ (async () => {
14329
+ await Promise.resolve();
14330
+ if (activeCount < concurrency && queue.size > 0) {
14331
+ queue.dequeue()();
14332
+ }
14333
+ })();
14334
+ };
14335
+ const generator = (fn, ...args2) => new Promise((resolve) => {
14336
+ enqueue(fn, resolve, args2);
14337
+ });
14338
+ Object.defineProperties(generator, {
14339
+ activeCount: {
14340
+ get: () => activeCount
14341
+ },
14342
+ pendingCount: {
14343
+ get: () => queue.size
14344
+ },
14345
+ clearQueue: {
14346
+ value: () => {
14347
+ queue.clear();
14348
+ }
14349
+ }
14350
+ });
14351
+ return generator;
14352
+ }
14353
+
14354
+ // node_modules/p-locate/index.js
14355
+ var EndError = class extends Error {
14356
+ constructor(value) {
14357
+ super();
14358
+ this.value = value;
14359
+ }
14360
+ };
14361
+ var testElement = async (element, tester) => tester(await element);
14362
+ var finder = async (element) => {
14363
+ const values = await Promise.all(element);
14364
+ if (values[1] === true) {
14365
+ throw new EndError(values[0]);
14366
+ }
14367
+ return false;
14368
+ };
14369
+ async function pLocate(iterable, tester, {
14370
+ concurrency = Number.POSITIVE_INFINITY,
14371
+ preserveOrder = true
14372
+ } = {}) {
14373
+ const limit = pLimit(concurrency);
14374
+ const items = [...iterable].map((element) => [element, limit(testElement, element, tester)]);
14375
+ const checkLimit = pLimit(preserveOrder ? 1 : Number.POSITIVE_INFINITY);
14376
+ try {
14377
+ await Promise.all(items.map((element) => checkLimit(finder, element)));
14378
+ } catch (error) {
14379
+ if (error instanceof EndError) {
14380
+ return error.value;
14381
+ }
14382
+ throw error;
14383
+ }
14384
+ }
14385
+
14386
+ // node_modules/locate-path/index.js
14387
+ var typeMappings = {
14388
+ directory: "isDirectory",
14389
+ file: "isFile"
14390
+ };
14391
+ function checkType(type) {
14392
+ if (Object.hasOwnProperty.call(typeMappings, type)) {
14393
+ return;
14394
+ }
14395
+ throw new Error(`Invalid type specified: ${type}`);
14396
+ }
14397
+ var matchType = (type, stat) => stat[typeMappings[type]]();
14398
+ var toPath = (urlOrPath) => urlOrPath instanceof URL ? (0, import_node_url.fileURLToPath)(urlOrPath) : urlOrPath;
14399
+ async function locatePath(paths, {
14400
+ cwd = import_node_process.default.cwd(),
14401
+ type = "file",
14402
+ allowSymlinks = true,
14403
+ concurrency,
14404
+ preserveOrder
14405
+ } = {}) {
14406
+ checkType(type);
14407
+ cwd = toPath(cwd);
14408
+ const statFunction = allowSymlinks ? import_node_fs.promises.stat : import_node_fs.promises.lstat;
14409
+ return pLocate(paths, async (path_) => {
14410
+ try {
14411
+ const stat = await statFunction(import_node_path.default.resolve(cwd, path_));
14412
+ return matchType(type, stat);
14413
+ } catch {
14414
+ return false;
14415
+ }
14416
+ }, { concurrency, preserveOrder });
14417
+ }
14418
+
14419
+ // ../../node_modules/unicorn-magic/node.js
14420
+ var import_node_url2 = require("node:url");
14421
+ function toPath2(urlOrPath) {
14422
+ return urlOrPath instanceof URL ? (0, import_node_url2.fileURLToPath)(urlOrPath) : urlOrPath;
14423
+ }
14424
+
14425
+ // node_modules/find-up/index.js
14426
+ var findUpStop = Symbol("findUpStop");
14427
+ async function findUpMultiple(name, options = {}) {
14428
+ let directory = import_node_path2.default.resolve(toPath2(options.cwd) ?? "");
14429
+ const { root } = import_node_path2.default.parse(directory);
14430
+ const stopAt = import_node_path2.default.resolve(directory, toPath2(options.stopAt ?? root));
14431
+ const limit = options.limit ?? Number.POSITIVE_INFINITY;
14432
+ const paths = [name].flat();
14433
+ const runMatcher = async (locateOptions) => {
14434
+ if (typeof name !== "function") {
14435
+ return locatePath(paths, locateOptions);
14436
+ }
14437
+ const foundPath = await name(locateOptions.cwd);
14438
+ if (typeof foundPath === "string") {
14439
+ return locatePath([foundPath], locateOptions);
14440
+ }
14441
+ return foundPath;
14442
+ };
14443
+ const matches = [];
14444
+ while (true) {
14445
+ const foundPath = await runMatcher({ ...options, cwd: directory });
14446
+ if (foundPath === findUpStop) {
14447
+ break;
14448
+ }
14449
+ if (foundPath) {
14450
+ matches.push(import_node_path2.default.resolve(directory, foundPath));
14451
+ }
14452
+ if (directory === stopAt || matches.length >= limit) {
14453
+ break;
14454
+ }
14455
+ directory = import_node_path2.default.dirname(directory);
14456
+ }
14457
+ return matches;
14458
+ }
14459
+ async function findUp(name, options = {}) {
14460
+ const matches = await findUpMultiple(name, { ...options, limit: 1 });
14461
+ return matches[0];
14462
+ }
14558
14463
 
14559
14464
  // src/render.ts
14560
14465
  var import_fs = __toESM(require("fs"));
@@ -14587,7 +14492,7 @@ var exec = (0, import_util.promisify)(import_child_process.default.exec);
14587
14492
  var templateDir = import_path2.default.join(__dirname, "../template");
14588
14493
  var PACKAGE_JSON = "package.json";
14589
14494
  async function getRootDir() {
14590
- const pkgFile = await (0, import_find_up.default)(PACKAGE_JSON);
14495
+ const pkgFile = await findUp(PACKAGE_JSON);
14591
14496
  if (!pkgFile) {
14592
14497
  console.error("Failed to locate project root");
14593
14498
  process.exit(1);
@@ -14750,19 +14655,18 @@ async function writeConfig(options, features) {
14750
14655
  return options.changes === 0;
14751
14656
  }
14752
14657
  async function getFeatures(options, args2) {
14753
- var _a, _b, _c, _d, _e, _f, _g;
14754
14658
  const dst = import_path2.default.join(options.rootDir, PACKAGE_JSON);
14755
14659
  const data = import_fs2.default.readFileSync(dst, "utf-8");
14756
14660
  const pkg2 = JSON.parse(data);
14757
14661
  const deps = { ...pkg2.dependencies, ...pkg2.devDependencies };
14758
14662
  return {
14759
- angularjs: (_a = args2.angularjs) != null ? _a : Boolean(deps.angular),
14760
- cypress: (_b = args2.cypress) != null ? _b : Boolean(deps.cypress),
14761
- jest: (_c = args2.jest) != null ? _c : Boolean(deps.jest),
14762
- protractor: (_d = args2.protractor) != null ? _d : Boolean(deps.protractor),
14763
- typeinfo: (_e = args2.typeinfo) != null ? _e : deps.typescript ? "./tsconfig.json" : false,
14764
- typescript: (_f = args2.typescript) != null ? _f : Boolean(deps.typescript),
14765
- vue: (_g = args2.vue) != null ? _g : Boolean(deps.vue)
14663
+ angularjs: args2.angularjs ?? Boolean(deps.angular),
14664
+ cypress: args2.cypress ?? Boolean(deps.cypress),
14665
+ jest: args2.jest ?? Boolean(deps.jest),
14666
+ protractor: args2.protractor ?? Boolean(deps.protractor),
14667
+ typeinfo: args2.typeinfo ?? (deps.typescript ? "./tsconfig.json" : false),
14668
+ typescript: args2.typescript ?? Boolean(deps.typescript),
14669
+ vue: args2.vue ?? Boolean(deps.vue)
14766
14670
  };
14767
14671
  }
14768
14672
  async function run(args2) {