@piedata/pieui 1.1.21 → 1.1.22

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
@@ -183791,19 +183791,19 @@ var ce = (n, t) => {
183791
183791
  return e ? e[0] : null;
183792
183792
  };
183793
183793
  var ss = (n, t, e) => {
183794
- let s, i, r, o, h, a = e.indexOf(n), l = e.indexOf(t, a + 1), f = a;
183794
+ let s, i, r, o, h, a = e.indexOf(n), l = e.indexOf(t, a + 1), u = a;
183795
183795
  if (a >= 0 && l > 0) {
183796
183796
  if (n === t)
183797
183797
  return [a, l];
183798
- for (s = [], r = e.length;f >= 0 && !h; ) {
183799
- if (f === a)
183800
- s.push(f), a = e.indexOf(n, f + 1);
183798
+ for (s = [], r = e.length;u >= 0 && !h; ) {
183799
+ if (u === a)
183800
+ s.push(u), a = e.indexOf(n, u + 1);
183801
183801
  else if (s.length === 1) {
183802
183802
  let c = s.pop();
183803
183803
  c !== undefined && (h = [c, l]);
183804
183804
  } else
183805
- i = s.pop(), i !== undefined && i < r && (r = i, o = l), l = e.indexOf(t, f + 1);
183806
- f = a < l && a >= 0 ? a : l;
183805
+ i = s.pop(), i !== undefined && i < r && (r = i, o = l), l = e.indexOf(t, u + 1);
183806
+ u = a < l && a >= 0 ? a : l;
183807
183807
  }
183808
183808
  s.length && o !== undefined && (h = [r, o]);
183809
183809
  }
@@ -183874,21 +183874,21 @@ function ht(n, t, e) {
183874
183874
  s.push(a);
183875
183875
  }
183876
183876
  else {
183877
- let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body), a = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body), l = h || a, f = i.body.indexOf(",") >= 0;
183878
- if (!l && !f)
183877
+ let h = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body), a = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body), l = h || a, u = i.body.indexOf(",") >= 0;
183878
+ if (!l && !u)
183879
183879
  return i.post.match(/,(?!,).*\}/) ? (n = i.pre + "{" + i.body + qt + i.post, ht(n, t, true)) : [n];
183880
183880
  let c;
183881
183881
  if (l)
183882
183882
  c = i.body.split(/\.\./);
183883
183883
  else if (c = me(i.body), c.length === 1 && c[0] !== undefined && (c = ht(c[0], t, false).map(gs), c.length === 1))
183884
- return o.map((u) => i.pre + c[0] + u);
183884
+ return o.map((f) => i.pre + c[0] + f);
183885
183885
  let d;
183886
183886
  if (l && c[0] !== undefined && c[1] !== undefined) {
183887
- let u = Ht(c[0]), m = Ht(c[1]), p = Math.max(c[0].length, c[1].length), w = c.length === 3 && c[2] !== undefined ? Math.abs(Ht(c[2])) : 1, g = ys;
183888
- m < u && (w *= -1, g = bs);
183887
+ let f = Ht(c[0]), m = Ht(c[1]), p = Math.max(c[0].length, c[1].length), w = c.length === 3 && c[2] !== undefined ? Math.abs(Ht(c[2])) : 1, g = ys;
183888
+ m < f && (w *= -1, g = bs);
183889
183889
  let E = c.some(ws);
183890
183890
  d = [];
183891
- for (let y = u;g(y, m); y += w) {
183891
+ for (let y = f;g(y, m); y += w) {
183892
183892
  let b;
183893
183893
  if (a)
183894
183894
  b = String.fromCharCode(y), b === "\\" && (b = "");
@@ -183903,12 +183903,12 @@ function ht(n, t, e) {
183903
183903
  }
183904
183904
  } else {
183905
183905
  d = [];
183906
- for (let u = 0;u < c.length; u++)
183907
- d.push.apply(d, ht(c[u], t, false));
183906
+ for (let f = 0;f < c.length; f++)
183907
+ d.push.apply(d, ht(c[f], t, false));
183908
183908
  }
183909
- for (let u = 0;u < d.length; u++)
183909
+ for (let f = 0;f < d.length; f++)
183910
183910
  for (let m = 0;m < o.length && s.length < t; m++) {
183911
- let p = r + d[u] + o[m];
183911
+ let p = r + d[f] + o[m];
183912
183912
  (!e || l || p) && s.push(p);
183913
183913
  }
183914
183914
  }
@@ -183928,7 +183928,7 @@ var ye = (n, t) => {
183928
183928
  let e = t;
183929
183929
  if (n.charAt(e) !== "[")
183930
183930
  throw new Error("not in a brace expression");
183931
- let s = [], i = [], r = e + 1, o = false, h = false, a = false, l = false, f = e, c = "";
183931
+ let s = [], i = [], r = e + 1, o = false, h = false, a = false, l = false, u = e, c = "";
183932
183932
  t:
183933
183933
  for (;r < n.length; ) {
183934
183934
  let p = n.charAt(r);
@@ -183937,7 +183937,7 @@ var ye = (n, t) => {
183937
183937
  continue;
183938
183938
  }
183939
183939
  if (p === "]" && o && !a) {
183940
- f = r + 1;
183940
+ u = r + 1;
183941
183941
  break;
183942
183942
  }
183943
183943
  if (o = true, p === "\\" && !a) {
@@ -183967,16 +183967,16 @@ var ye = (n, t) => {
183967
183967
  }
183968
183968
  s.push(lt(p)), r++;
183969
183969
  }
183970
- if (f < r)
183970
+ if (u < r)
183971
183971
  return ["", false, 0, false];
183972
183972
  if (!s.length && !i.length)
183973
183973
  return ["$.", false, n.length - e, true];
183974
183974
  if (i.length === 0 && s.length === 1 && /^\\?.$/.test(s[0]) && !l) {
183975
183975
  let p = s[0].length === 2 ? s[0].slice(-1) : s[0];
183976
- return [Es(p), false, f - e, false];
183976
+ return [Es(p), false, u - e, false];
183977
183977
  }
183978
- let d = "[" + (l ? "^" : "") + we(s) + "]", u = "[" + (l ? "" : "^") + we(i) + "]";
183979
- return [s.length && i.length ? "(" + d + "|" + u + ")" : s.length ? d : u, h, f - e, true];
183978
+ let d = "[" + (l ? "^" : "") + we(s) + "]", f = "[" + (l ? "" : "^") + we(i) + "]";
183979
+ return [s.length && i.length ? "(" + d + "|" + f + ")" : s.length ? d : f, h, u - e, true];
183980
183980
  };
183981
183981
  var W = (n, { windowsPathsNoEscape: t = false, magicalBraces: e = true } = {}) => e ? t ? n.replace(/\[([^\/\\])\]/g, "$1") : n.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1") : t ? n.replace(/\[([^\/\\{}])\]/g, "$1") : n.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
183982
183982
  var xs = new Set(["!", "?", "+", "*", "@"]);
@@ -184089,57 +184089,57 @@ var Q = class n {
184089
184089
  static #i(t, e, s, i) {
184090
184090
  let r = false, o = false, h = -1, a = false;
184091
184091
  if (e.type === null) {
184092
- let u = s, m = "";
184093
- for (;u < t.length; ) {
184094
- let p = t.charAt(u++);
184092
+ let f = s, m = "";
184093
+ for (;f < t.length; ) {
184094
+ let p = t.charAt(f++);
184095
184095
  if (r || p === "\\") {
184096
184096
  r = !r, m += p;
184097
184097
  continue;
184098
184098
  }
184099
184099
  if (o) {
184100
- u === h + 1 ? (p === "^" || p === "!") && (a = true) : p === "]" && !(u === h + 2 && a) && (o = false), m += p;
184100
+ f === h + 1 ? (p === "^" || p === "!") && (a = true) : p === "]" && !(f === h + 2 && a) && (o = false), m += p;
184101
184101
  continue;
184102
184102
  } else if (p === "[") {
184103
- o = true, h = u, a = false, m += p;
184103
+ o = true, h = f, a = false, m += p;
184104
184104
  continue;
184105
184105
  }
184106
- if (!i.noext && be(p) && t.charAt(u) === "(") {
184106
+ if (!i.noext && be(p) && t.charAt(f) === "(") {
184107
184107
  e.push(m), m = "";
184108
184108
  let w = new n(p, e);
184109
- u = n.#i(t, w, u, i), e.push(w);
184109
+ f = n.#i(t, w, f, i), e.push(w);
184110
184110
  continue;
184111
184111
  }
184112
184112
  m += p;
184113
184113
  }
184114
- return e.push(m), u;
184114
+ return e.push(m), f;
184115
184115
  }
184116
- let l = s + 1, f = new n(null, e), c = [], d = "";
184116
+ let l = s + 1, u = new n(null, e), c = [], d = "";
184117
184117
  for (;l < t.length; ) {
184118
- let u = t.charAt(l++);
184119
- if (r || u === "\\") {
184120
- r = !r, d += u;
184118
+ let f = t.charAt(l++);
184119
+ if (r || f === "\\") {
184120
+ r = !r, d += f;
184121
184121
  continue;
184122
184122
  }
184123
184123
  if (o) {
184124
- l === h + 1 ? (u === "^" || u === "!") && (a = true) : u === "]" && !(l === h + 2 && a) && (o = false), d += u;
184124
+ l === h + 1 ? (f === "^" || f === "!") && (a = true) : f === "]" && !(l === h + 2 && a) && (o = false), d += f;
184125
184125
  continue;
184126
- } else if (u === "[") {
184127
- o = true, h = l, a = false, d += u;
184126
+ } else if (f === "[") {
184127
+ o = true, h = l, a = false, d += f;
184128
184128
  continue;
184129
184129
  }
184130
- if (be(u) && t.charAt(l) === "(") {
184131
- f.push(d), d = "";
184132
- let m = new n(u, f);
184133
- f.push(m), l = n.#i(t, m, l, i);
184130
+ if (be(f) && t.charAt(l) === "(") {
184131
+ u.push(d), d = "";
184132
+ let m = new n(f, u);
184133
+ u.push(m), l = n.#i(t, m, l, i);
184134
184134
  continue;
184135
184135
  }
184136
- if (u === "|") {
184137
- f.push(d), d = "", c.push(f), f = new n(null, e);
184136
+ if (f === "|") {
184137
+ u.push(d), d = "", c.push(u), u = new n(null, e);
184138
184138
  continue;
184139
184139
  }
184140
- if (u === ")")
184141
- return d === "" && e.#r.length === 0 && (e.#f = true), f.push(d), d = "", e.push(...c, f), l;
184142
- d += u;
184140
+ if (f === ")")
184141
+ return d === "" && e.#r.length === 0 && (e.#f = true), u.push(d), d = "", e.push(...c, u), l;
184142
+ d += f;
184143
184143
  }
184144
184144
  return e.type = null, e.#s = undefined, e.#r = [t.substring(s - 1)], l;
184145
184145
  }
@@ -184162,16 +184162,16 @@ var Q = class n {
184162
184162
  toRegExpSource(t) {
184163
184163
  let e = t ?? !!this.#h.dot;
184164
184164
  if (this.#t === this && this.#a(), !this.type) {
184165
- let a = this.isStart() && this.isEnd() && !this.#r.some((u) => typeof u != "string"), l = this.#r.map((u) => {
184166
- let [m, p, w, g] = typeof u == "string" ? n.#E(u, this.#s, a) : u.toRegExpSource(t);
184165
+ let a = this.isStart() && this.isEnd() && !this.#r.some((f) => typeof f != "string"), l = this.#r.map((f) => {
184166
+ let [m, p, w, g] = typeof f == "string" ? n.#E(f, this.#s, a) : f.toRegExpSource(t);
184167
184167
  return this.#s = this.#s || w, this.#n = this.#n || g, m;
184168
- }).join(""), f = "";
184168
+ }).join(""), u = "";
184169
184169
  if (this.isStart() && typeof this.#r[0] == "string" && !(this.#r.length === 1 && Ts.has(this.#r[0]))) {
184170
184170
  let m = Cs, p = e && m.has(l.charAt(0)) || l.startsWith("\\.") && m.has(l.charAt(2)) || l.startsWith("\\.\\.") && m.has(l.charAt(4)), w = !e && !t && m.has(l.charAt(0));
184171
- f = p ? vs : w ? Ct : "";
184171
+ u = p ? vs : w ? Ct : "";
184172
184172
  }
184173
184173
  let c = "";
184174
- return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c = "(?:$|\\/)"), [f + l + c, W(l), this.#s = !!this.#s, this.#n];
184174
+ return this.isEnd() && this.#t.#c && this.#o?.type === "!" && (c = "(?:$|\\/)"), [u + l + c, W(l), this.#s = !!this.#s, this.#n];
184175
184175
  }
184176
184176
  let s = this.type === "*" || this.type === "+", i = this.type === "!" ? "(?:(?!(?:" : "(?:", r = this.#d(e);
184177
184177
  if (this.isStart() && this.isEnd() && !r && this.type !== "!") {
@@ -184198,33 +184198,36 @@ var Q = class n {
184198
184198
  }).filter((e) => !(this.isStart() && this.isEnd()) || !!e).join("|");
184199
184199
  }
184200
184200
  static #E(t, e, s = false) {
184201
- let i = false, r = "", o = false;
184202
- for (let h = 0;h < t.length; h++) {
184203
- let a = t.charAt(h);
184201
+ let i = false, r = "", o = false, h = false;
184202
+ for (let a = 0;a < t.length; a++) {
184203
+ let l = t.charAt(a);
184204
184204
  if (i) {
184205
- i = false, r += (As.has(a) ? "\\" : "") + a;
184205
+ i = false, r += (As.has(l) ? "\\" : "") + l;
184206
184206
  continue;
184207
184207
  }
184208
- if (a === "\\") {
184209
- h === t.length - 1 ? r += "\\\\" : i = true;
184208
+ if (l === "*") {
184209
+ if (h)
184210
+ continue;
184211
+ h = true, r += s && /^[*]+$/.test(t) ? Ee : Se, e = true;
184212
+ continue;
184213
+ } else
184214
+ h = false;
184215
+ if (l === "\\") {
184216
+ a === t.length - 1 ? r += "\\\\" : i = true;
184210
184217
  continue;
184211
184218
  }
184212
- if (a === "[") {
184213
- let [l, f, c, d] = ye(t, h);
184214
- if (c) {
184215
- r += l, o = o || f, h += c - 1, e = e || d;
184219
+ if (l === "[") {
184220
+ let [u, c, d, f] = ye(t, a);
184221
+ if (d) {
184222
+ r += u, o = o || c, a += d - 1, e = e || f;
184216
184223
  continue;
184217
184224
  }
184218
184225
  }
184219
- if (a === "*") {
184220
- r += s && t === "*" ? Ee : Se, e = true;
184221
- continue;
184222
- }
184223
- if (a === "?") {
184226
+ if (l === "?") {
184224
184227
  r += Kt, e = true;
184225
184228
  continue;
184226
184229
  }
184227
- r += ks(a);
184230
+ r += ks(l);
184228
184231
  }
184229
184232
  return [r, W(t), !!e, o];
184230
184233
  }
@@ -184364,9 +184367,9 @@ var D = class {
184364
184367
  if (this.isWindows && this.windowsNoMagicRoot) {
184365
184368
  let a = r[0] === "" && r[1] === "" && (r[2] === "?" || !ve.test(r[2])) && !ve.test(r[3]), l = /^[a-z]:/i.test(r[0]);
184366
184369
  if (a)
184367
- return [...r.slice(0, 4), ...r.slice(4).map((f) => this.parse(f))];
184370
+ return [...r.slice(0, 4), ...r.slice(4).map((u) => this.parse(u))];
184368
184371
  if (l)
184369
- return [r[0], ...r.slice(1).map((f) => this.parse(f))];
184372
+ return [r[0], ...r.slice(1).map((u) => this.parse(u))];
184370
184373
  }
184371
184374
  return r.map((a) => this.parse(a));
184372
184375
  });
@@ -184437,8 +184440,8 @@ var D = class {
184437
184440
  if (h !== ".." || !a || a === "." || a === ".." || !l || l === "." || l === "..")
184438
184441
  continue;
184439
184442
  e = true, s.splice(i, 1);
184440
- let f = s.slice(0);
184441
- f[i] = "**", t.push(f), i--;
184443
+ let u = s.slice(0);
184444
+ u[i] = "**", t.push(u), i--;
184442
184445
  }
184443
184446
  if (!this.preserveMultipleSlashes) {
184444
184447
  for (let o = 1;o < s.length - 1; o++) {
@@ -184513,13 +184516,13 @@ var D = class {
184513
184516
  r >= 2 && (t = this.levelTwoFileOptimize(t)), this.debug("matchOne", this, { file: t, pattern: e }), this.debug("matchOne", t.length, e.length);
184514
184517
  for (var o = 0, h = 0, a = t.length, l = e.length;o < a && h < l; o++, h++) {
184515
184518
  this.debug("matchOne loop");
184516
- var f = e[h], c = t[o];
184517
- if (this.debug(e, f, c), f === false)
184519
+ var u = e[h], c = t[o];
184520
+ if (this.debug(e, u, c), u === false)
184518
184521
  return false;
184519
- if (f === A) {
184520
- this.debug("GLOBSTAR", [e, f, c]);
184521
- var d = o, u = h + 1;
184522
- if (u === l) {
184522
+ if (u === A) {
184523
+ this.debug("GLOBSTAR", [e, u, c]);
184524
+ var d = o, f = h + 1;
184525
+ if (f === l) {
184523
184526
  for (this.debug("** at the end");o < a; o++)
184524
184527
  if (t[o] === "." || t[o] === ".." || !i.dot && t[o].charAt(0) === ".")
184525
184528
  return false;
@@ -184528,19 +184531,19 @@ var D = class {
184528
184531
  for (;d < a; ) {
184529
184532
  var m = t[d];
184530
184533
  if (this.debug(`
184531
- globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s))
184534
+ globstar while`, t, d, e, f, m), this.matchOne(t.slice(d), e.slice(f), s))
184532
184535
  return this.debug("globstar found match!", d, a, m), true;
184533
184536
  if (m === "." || m === ".." || !i.dot && m.charAt(0) === ".") {
184534
- this.debug("dot detected!", t, d, e, u);
184537
+ this.debug("dot detected!", t, d, e, f);
184535
184538
  break;
184536
184539
  }
184537
184540
  this.debug("globstar swallow a segment, and continue"), d++;
184538
184541
  }
184539
184542
  return !!(s && (this.debug(`
184540
- >>> no match, partial?`, t, d, e, u), d === a));
184543
+ >>> no match, partial?`, t, d, e, f), d === a));
184541
184544
  }
184542
184545
  let p;
184543
- if (typeof f == "string" ? (p = c === f, this.debug("string match", f, c, p)) : (p = f.test(c), this.debug("pattern match", f, c, p)), !p)
184546
+ if (typeof u == "string" ? (p = c === u, this.debug("string match", u, c, p)) : (p = u.test(c), this.debug("pattern match", u, c, p)), !p)
184544
184547
  return false;
184545
184548
  }
184546
184549
  if (o === a && h === l)
@@ -184580,17 +184583,17 @@ globstar while`, t, d, e, u, m), this.matchOne(t.slice(d), e.slice(u), s))
184580
184583
  return typeof c == "string" ? ei(c) : c === A ? A : c._src;
184581
184584
  });
184582
184585
  l.forEach((c, d) => {
184583
- let u = l[d + 1], m = l[d - 1];
184584
- c !== A || m === A || (m === undefined ? u !== undefined && u !== A ? l[d + 1] = "(?:\\/|" + s + "\\/)?" + u : l[d] = s : u === undefined ? l[d - 1] = m + "(?:\\/|\\/" + s + ")?" : u !== A && (l[d - 1] = m + "(?:\\/|\\/" + s + "\\/)" + u, l[d + 1] = A));
184586
+ let f = l[d + 1], m = l[d - 1];
184587
+ c !== A || m === A || (m === undefined ? f !== undefined && f !== A ? l[d + 1] = "(?:\\/|" + s + "\\/)?" + f : l[d] = s : f === undefined ? l[d - 1] = m + "(?:\\/|\\/" + s + ")?" : f !== A && (l[d - 1] = m + "(?:\\/|\\/" + s + "\\/)" + f, l[d + 1] = A));
184585
184588
  });
184586
- let f = l.filter((c) => c !== A);
184587
- if (this.partial && f.length >= 1) {
184589
+ let u = l.filter((c) => c !== A);
184590
+ if (this.partial && u.length >= 1) {
184588
184591
  let c = [];
184589
- for (let d = 1;d <= f.length; d++)
184590
- c.push(f.slice(0, d).join("/"));
184592
+ for (let d = 1;d <= u.length; d++)
184593
+ c.push(u.slice(0, d).join("/"));
184591
184594
  return "(?:" + c.join("|") + ")";
184592
184595
  }
184593
- return f.join("/");
184596
+ return u.join("/");
184594
184597
  }).join("|"), [o, h] = t.length > 1 ? ["(?:", ")"] : ["", ""];
184595
184598
  r = "^" + o + r + h + "$", this.partial && (r = "^(?:\\/|" + o + r.slice(1, -1) + h + ")$"), this.negate && (r = "^(?!" + r + ").+$");
184596
184599
  try {
@@ -184783,7 +184786,7 @@ var ft = class Me {
184783
184786
  return this.#o;
184784
184787
  }
184785
184788
  constructor(t) {
184786
- let { max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a, dispose: l, onInsert: f, disposeAfter: c, noDisposeOnSet: d, noUpdateTTL: u, maxSize: m = 0, maxEntrySize: p = 0, sizeCalculation: w, fetchMethod: g, memoMethod: S, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y, allowStaleOnFetchRejection: b, allowStaleOnFetchAbort: z, ignoreFetchAbort: $, perf: J } = t;
184789
+ let { max: e = 0, ttl: s, ttlResolution: i = 1, ttlAutopurge: r, updateAgeOnGet: o, updateAgeOnHas: h, allowStale: a, dispose: l, onInsert: u, disposeAfter: c, noDisposeOnSet: d, noUpdateTTL: f, maxSize: m = 0, maxEntrySize: p = 0, sizeCalculation: w, fetchMethod: g, memoMethod: S, noDeleteOnFetchRejection: E, noDeleteOnStaleGet: y, allowStaleOnFetchRejection: b, allowStaleOnFetchAbort: z, ignoreFetchAbort: $, perf: J } = t;
184787
184790
  if (J !== undefined && typeof J?.now != "function")
184788
184791
  throw new TypeError("perf option must have a now() method if specified");
184789
184792
  if (this.#c = J ?? si, e !== 0 && !q(e))
@@ -184801,7 +184804,7 @@ var ft = class Me {
184801
184804
  throw new TypeError("memoMethod must be a function if defined");
184802
184805
  if (this.#w = S, g !== undefined && typeof g != "function")
184803
184806
  throw new TypeError("fetchMethod must be a function if specified");
184804
- if (this.#S = g, this.#A = !!g, this.#f = new Map, this.#a = new Array(e).fill(undefined), this.#i = new Array(e).fill(undefined), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof f == "function" && (this.#r = f), typeof c == "function" ? (this.#o = c, this.#m = []) : (this.#o = undefined, this.#m = undefined), this.#x = !!this.#n, this.#_ = !!this.#r, this.#e = !!this.#o, this.noDisposeOnSet = !!d, this.noUpdateTTL = !!u, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!b, this.allowStaleOnFetchAbort = !!z, this.ignoreFetchAbort = !!$, this.maxEntrySize !== 0) {
184807
+ if (this.#S = g, this.#A = !!g, this.#f = new Map, this.#a = new Array(e).fill(undefined), this.#i = new Array(e).fill(undefined), this.#d = new Z(e), this.#E = new Z(e), this.#b = 0, this.#p = 0, this.#R = ri.create(e), this.#h = 0, this.#u = 0, typeof l == "function" && (this.#n = l), typeof u == "function" && (this.#r = u), typeof c == "function" ? (this.#o = c, this.#m = []) : (this.#o = undefined, this.#m = undefined), this.#x = !!this.#n, this.#_ = !!this.#r, this.#e = !!this.#o, this.noDisposeOnSet = !!d, this.noUpdateTTL = !!f, this.noDeleteOnFetchRejection = !!E, this.allowStaleOnFetchRejection = !!b, this.allowStaleOnFetchAbort = !!z, this.ignoreFetchAbort = !!$, this.maxEntrySize !== 0) {
184805
184808
  if (this.#s !== 0 && !q(this.#s))
184806
184809
  throw new TypeError("maxSize must be a positive integer if specified");
184807
184810
  if (!q(this.maxEntrySize))
@@ -184842,8 +184845,8 @@ var ft = class Me {
184842
184845
  if (!a || !l)
184843
184846
  return;
184844
184847
  o.ttl = a, o.start = l, o.now = i || r();
184845
- let f = o.now - l;
184846
- o.remainingTTL = a - f;
184848
+ let u = o.now - l;
184849
+ o.remainingTTL = a - u;
184847
184850
  }
184848
184851
  };
184849
184852
  let i = 0, r = () => {
@@ -184862,8 +184865,8 @@ var ft = class Me {
184862
184865
  let a = t[h], l = e[h];
184863
184866
  if (!a || !l)
184864
184867
  return 1 / 0;
184865
- let f = (i || r()) - l;
184866
- return a - f;
184868
+ let u = (i || r()) - l;
184869
+ return a - u;
184867
184870
  }, this.#v = (o) => {
184868
184871
  let h = e[o], a = t[o];
184869
184872
  return !!a && !!h && (i || r()) - h > a;
@@ -185021,35 +185024,35 @@ var ft = class Me {
185021
185024
  set(t, e, s = {}) {
185022
185025
  if (e === undefined)
185023
185026
  return this.delete(t), this;
185024
- let { ttl: i = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, f = this.#I(t, e, s.size || 0, h);
185025
- if (this.maxEntrySize && f > this.maxEntrySize)
185027
+ let { ttl: i = this.ttl, start: r, noDisposeOnSet: o = this.noDisposeOnSet, sizeCalculation: h = this.sizeCalculation, status: a } = s, { noUpdateTTL: l = this.noUpdateTTL } = s, u = this.#I(t, e, s.size || 0, h);
185028
+ if (this.maxEntrySize && u > this.maxEntrySize)
185026
185029
  return a && (a.set = "miss", a.maxEntrySizeExceeded = true), this.#O(t, "set"), this;
185027
185030
  let c = this.#h === 0 ? undefined : this.#f.get(t);
185028
185031
  if (c === undefined)
185029
- c = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(false) : this.#h, this.#a[c] = t, this.#i[c] = e, this.#f.set(t, c), this.#d[this.#p] = c, this.#E[c] = this.#p, this.#p = c, this.#h++, this.#L(c, f, a), a && (a.set = "add"), l = false, this.#_ && this.#r?.(e, t, "add");
185032
+ c = this.#h === 0 ? this.#p : this.#R.length !== 0 ? this.#R.pop() : this.#h === this.#t ? this.#B(false) : this.#h, this.#a[c] = t, this.#i[c] = e, this.#f.set(t, c), this.#d[this.#p] = c, this.#E[c] = this.#p, this.#p = c, this.#h++, this.#L(c, u, a), a && (a.set = "add"), l = false, this.#_ && this.#r?.(e, t, "add");
185030
185033
  else {
185031
185034
  this.#W(c);
185032
185035
  let d = this.#i[c];
185033
185036
  if (e !== d) {
185034
185037
  if (this.#A && this.#l(d)) {
185035
185038
  d.__abortController.abort(new Error("replaced"));
185036
- let { __staleWhileFetching: u } = d;
185037
- u !== undefined && !o && (this.#x && this.#n?.(u, t, "set"), this.#e && this.#m?.push([u, t, "set"]));
185039
+ let { __staleWhileFetching: f } = d;
185040
+ f !== undefined && !o && (this.#x && this.#n?.(f, t, "set"), this.#e && this.#m?.push([f, t, "set"]));
185038
185041
  } else
185039
185042
  o || (this.#x && this.#n?.(d, t, "set"), this.#e && this.#m?.push([d, t, "set"]));
185040
- if (this.#P(c), this.#L(c, f, a), this.#i[c] = e, a) {
185043
+ if (this.#P(c), this.#L(c, u, a), this.#i[c] = e, a) {
185041
185044
  a.set = "replace";
185042
- let u = d && this.#l(d) ? d.__staleWhileFetching : d;
185043
- u !== undefined && (a.oldValue = u);
185045
+ let f = d && this.#l(d) ? d.__staleWhileFetching : d;
185046
+ f !== undefined && (a.oldValue = f);
185044
185047
  }
185045
185048
  } else
185046
185049
  a && (a.set = "update");
185047
185050
  this.#_ && this.onInsert?.(e, t, e === d ? "update" : "replace");
185048
185051
  }
185049
185052
  if (i !== 0 && !this.#g && this.#M(), this.#g && (l || this.#j(c, i, r), a && this.#N(a, c)), !o && this.#e && this.#m) {
185050
- let d = this.#m, u;
185051
- for (;u = d?.shift(); )
185052
- this.#o?.(...u);
185053
+ let d = this.#m, f;
185054
+ for (;f = d?.shift(); )
185055
+ this.#o?.(...f);
185053
185056
  }
185054
185057
  return this;
185055
185058
  }
@@ -185106,11 +185109,11 @@ var ft = class Me {
185106
185109
  let { aborted: g } = o.signal, S = s.ignoreFetchAbort && p !== undefined, E = s.ignoreFetchAbort || !!(s.allowStaleOnFetchAbort && p !== undefined);
185107
185110
  if (s.status && (g && !w ? (s.status.fetchAborted = true, s.status.fetchError = o.signal.reason, S && (s.status.fetchAbortIgnored = true)) : s.status.fetchResolved = true), g && !S && !w)
185108
185111
  return c(o.signal.reason, E);
185109
- let y = u, b = this.#i[e];
185110
- return (b === u || S && w && b === undefined) && (p === undefined ? y.__staleWhileFetching !== undefined ? this.#i[e] = y.__staleWhileFetching : this.#O(t, "fetch") : (s.status && (s.status.fetchUpdated = true), this.set(t, p, a.options))), p;
185111
- }, f = (p) => (s.status && (s.status.fetchRejected = true, s.status.fetchError = p), c(p, false)), c = (p, w) => {
185112
- let { aborted: g } = o.signal, S = g && s.allowStaleOnFetchAbort, E = S || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, b = u;
185113
- if (this.#i[e] === u && (!y || !w && b.__staleWhileFetching === undefined ? this.#O(t, "fetch") : S || (this.#i[e] = b.__staleWhileFetching)), E)
185112
+ let y = f, b = this.#i[e];
185113
+ return (b === f || S && w && b === undefined) && (p === undefined ? y.__staleWhileFetching !== undefined ? this.#i[e] = y.__staleWhileFetching : this.#O(t, "fetch") : (s.status && (s.status.fetchUpdated = true), this.set(t, p, a.options))), p;
185114
+ }, u = (p) => (s.status && (s.status.fetchRejected = true, s.status.fetchError = p), c(p, false)), c = (p, w) => {
185115
+ let { aborted: g } = o.signal, S = g && s.allowStaleOnFetchAbort, E = S || s.allowStaleOnFetchRejection, y = E || s.noDeleteOnFetchRejection, b = f;
185116
+ if (this.#i[e] === f && (!y || !w && b.__staleWhileFetching === undefined ? this.#O(t, "fetch") : S || (this.#i[e] = b.__staleWhileFetching)), E)
185114
185117
  return s.status && b.__staleWhileFetching !== undefined && (s.status.returnedStale = true), b.__staleWhileFetching;
185115
185118
  if (b.__returned === b)
185116
185119
  throw p;
@@ -185121,7 +185124,7 @@ var ft = class Me {
185121
185124
  });
185122
185125
  };
185123
185126
  s.status && (s.status.fetchDispatched = true);
185124
- let u = new Promise(d).then(l, f), m = Object.assign(u, { __abortController: o, __staleWhileFetching: r, __returned: undefined });
185127
+ let f = new Promise(d).then(l, u), m = Object.assign(f, { __abortController: o, __staleWhileFetching: r, __returned: undefined });
185125
185128
  return e === undefined ? (this.set(t, m, { ...a.options, status: undefined }), e = this.#f.get(t)) : this.#i[e] = m, m;
185126
185129
  }
185127
185130
  #l(t) {
@@ -185131,10 +185134,10 @@ var ft = class Me {
185131
185134
  return !!e && e instanceof Promise && e.hasOwnProperty("__staleWhileFetching") && e.__abortController instanceof At;
185132
185135
  }
185133
185136
  async fetch(t, e = {}) {
185134
- let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: f = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d = this.allowStaleOnFetchRejection, ignoreFetchAbort: u = this.ignoreFetchAbort, allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort, context: p, forceRefresh: w = false, status: g, signal: S } = e;
185137
+ let { allowStale: s = this.allowStale, updateAgeOnGet: i = this.updateAgeOnGet, noDeleteOnStaleGet: r = this.noDeleteOnStaleGet, ttl: o = this.ttl, noDisposeOnSet: h = this.noDisposeOnSet, size: a = 0, sizeCalculation: l = this.sizeCalculation, noUpdateTTL: u = this.noUpdateTTL, noDeleteOnFetchRejection: c = this.noDeleteOnFetchRejection, allowStaleOnFetchRejection: d = this.allowStaleOnFetchRejection, ignoreFetchAbort: f = this.ignoreFetchAbort, allowStaleOnFetchAbort: m = this.allowStaleOnFetchAbort, context: p, forceRefresh: w = false, status: g, signal: S } = e;
185135
185138
  if (!this.#A)
185136
185139
  return g && (g.fetch = "get"), this.get(t, { allowStale: s, updateAgeOnGet: i, noDeleteOnStaleGet: r, status: g });
185137
- let E = { allowStale: s, updateAgeOnGet: i, noDeleteOnStaleGet: r, ttl: o, noDisposeOnSet: h, size: a, sizeCalculation: l, noUpdateTTL: f, noDeleteOnFetchRejection: c, allowStaleOnFetchRejection: d, allowStaleOnFetchAbort: m, ignoreFetchAbort: u, status: g, signal: S }, y = this.#f.get(t);
185140
+ let E = { allowStale: s, updateAgeOnGet: i, noDeleteOnStaleGet: r, ttl: o, noDisposeOnSet: h, size: a, sizeCalculation: l, noUpdateTTL: u, noDeleteOnFetchRejection: c, allowStaleOnFetchRejection: d, allowStaleOnFetchAbort: m, ignoreFetchAbort: f, status: g, signal: S }, y = this.#f.get(t);
185138
185141
  if (y === undefined) {
185139
185142
  g && (g.fetch = "miss");
185140
185143
  let b = this.#U(t, y, E, p);
@@ -185567,14 +185570,14 @@ var V = class extends import_node_events.EventEmitter {
185567
185570
  if (this[G])
185568
185571
  return e();
185569
185572
  let r, o, h = (c) => {
185570
- this.off("data", a), this.off("end", l), this.off(x, f), e(), o(c);
185573
+ this.off("data", a), this.off("end", l), this.off(x, u), e(), o(c);
185571
185574
  }, a = (c) => {
185572
- this.off("error", h), this.off("end", l), this.off(x, f), this.pause(), r({ value: c, done: !!this[G] });
185575
+ this.off("error", h), this.off("end", l), this.off(x, u), this.pause(), r({ value: c, done: !!this[G] });
185573
185576
  }, l = () => {
185574
- this.off("error", h), this.off("data", a), this.off(x, f), e(), r({ done: true, value: undefined });
185575
- }, f = () => h(new Error("stream destroyed"));
185577
+ this.off("error", h), this.off("data", a), this.off(x, u), e(), r({ done: true, value: undefined });
185578
+ }, u = () => h(new Error("stream destroyed"));
185576
185579
  return new Promise((c, d) => {
185577
- o = d, r = c, this.once(x, f), this.once("error", h), this.once("end", l), this.once("data", a);
185580
+ o = d, r = c, this.once(x, u), this.once("error", h), this.once("end", l), this.once("data", a);
185578
185581
  });
185579
185582
  }, throw: e, return: e, [Symbol.asyncIterator]() {
185580
185583
  return this;
@@ -185994,8 +185997,8 @@ var R = class {
185994
185997
  }
185995
185998
  }
185996
185999
  #$(t) {
185997
- let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: f, gid: c, ino: d, mode: u, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
185998
- this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = f, this.#S = c, this.#h = d, this.#n = u, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
186000
+ let { atime: e, atimeMs: s, birthtime: i, birthtimeMs: r, blksize: o, blocks: h, ctime: a, ctimeMs: l, dev: u, gid: c, ino: d, mode: f, mtime: m, mtimeMs: p, nlink: w, rdev: g, size: S, uid: E } = t;
186001
+ this.#b = e, this.#a = s, this.#m = i, this.#E = r, this.#c = o, this.#f = h, this.#R = a, this.#d = l, this.#s = u, this.#S = c, this.#h = d, this.#n = f, this.#p = m, this.#i = p, this.#r = w, this.#w = g, this.#u = S, this.#o = E;
185999
186002
  let y = ie(t);
186000
186003
  this.#e = this.#e & gt | y | je, y !== L && y !== U && y !== X && (this.#e |= yt);
186001
186004
  }
@@ -186172,10 +186175,10 @@ var It = class {
186172
186175
  if (a.length === 1 && !a[0] && a.pop(), i === undefined)
186173
186176
  throw new TypeError("must provide nocase setting to PathScurryBase ctor");
186174
186177
  this.nocase = i, this.root = this.newRoot(this.#r), this.roots[this.rootPath] = this.root;
186175
- let l = this.root, f = a.length - 1, c = e.sep, d = this.rootPath, u = false;
186178
+ let l = this.root, u = a.length - 1, c = e.sep, d = this.rootPath, f = false;
186176
186179
  for (let m of a) {
186177
- let p = f--;
186178
- l = l.child(m, { relative: new Array(p).fill("..").join(c), relativePosix: new Array(p).fill("..").join("/"), fullpath: d += (u ? "" : c) + m }), u = true;
186180
+ let p = u--;
186181
+ l = l.child(m, { relative: new Array(p).fill("..").join(c), relativePosix: new Array(p).fill("..").join("/"), fullpath: d += (f ? "" : c) + m }), f = true;
186179
186182
  }
186180
186183
  this.cwd = l;
186181
186184
  }
@@ -186268,9 +186271,9 @@ var It = class {
186268
186271
  let { withFileTypes: s = true, follow: i = false, filter: r, walkFilter: o } = e, h = [];
186269
186272
  (!r || r(t)) && h.push(s ? t : t.fullpath());
186270
186273
  let a = new Set, l = (c, d) => {
186271
- a.add(c), c.readdirCB((u, m) => {
186272
- if (u)
186273
- return d(u);
186274
+ a.add(c), c.readdirCB((f, m) => {
186275
+ if (f)
186276
+ return d(f);
186274
186277
  let p = m.length;
186275
186278
  if (!p)
186276
186279
  return d();
@@ -186280,11 +186283,11 @@ var It = class {
186280
186283
  for (let g of m)
186281
186284
  (!r || r(g)) && h.push(s ? g : g.fullpath()), i && g.isSymbolicLink() ? g.realpath().then((S) => S?.isUnknown() ? S.lstat() : S).then((S) => S?.shouldWalk(a, o) ? l(S, w) : w()) : g.shouldWalk(a, o) ? l(g, w) : w();
186282
186285
  }, true);
186283
- }, f = t;
186286
+ }, u = t;
186284
186287
  return new Promise((c, d) => {
186285
- l(f, (u) => {
186286
- if (u)
186287
- return d(u);
186288
+ l(u, (f) => {
186289
+ if (f)
186290
+ return d(f);
186288
186291
  c(h);
186289
186292
  });
186290
186293
  });
@@ -186295,8 +186298,8 @@ var It = class {
186295
186298
  (!r || r(t)) && h.push(s ? t : t.fullpath());
186296
186299
  let a = new Set([t]);
186297
186300
  for (let l of a) {
186298
- let f = l.readdirSync();
186299
- for (let c of f) {
186301
+ let u = l.readdirSync();
186302
+ for (let c of u) {
186300
186303
  (!r || r(c)) && h.push(s ? c : c.fullpath());
186301
186304
  let d = c;
186302
186305
  if (c.isSymbolicLink()) {
@@ -186325,11 +186328,11 @@ var It = class {
186325
186328
  let h = new Set([t]);
186326
186329
  for (let a of h) {
186327
186330
  let l = a.readdirSync();
186328
- for (let f of l) {
186329
- (!r || r(f)) && (yield s ? f : f.fullpath());
186330
- let c = f;
186331
- if (f.isSymbolicLink()) {
186332
- if (!(i && (c = f.realpathSync())))
186331
+ for (let u of l) {
186332
+ (!r || r(u)) && (yield s ? u : u.fullpath());
186333
+ let c = u;
186334
+ if (u.isSymbolicLink()) {
186335
+ if (!(i && (c = u.realpathSync())))
186333
186336
  continue;
186334
186337
  c.isUnknown() && c.lstatSync();
186335
186338
  }
@@ -186341,15 +186344,15 @@ var It = class {
186341
186344
  typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
186342
186345
  let { withFileTypes: s = true, follow: i = false, filter: r, walkFilter: o } = e, h = new V({ objectMode: true });
186343
186346
  (!r || r(t)) && h.write(s ? t : t.fullpath());
186344
- let a = new Set, l = [t], f = 0, c = () => {
186347
+ let a = new Set, l = [t], u = 0, c = () => {
186345
186348
  let d = false;
186346
186349
  for (;!d; ) {
186347
- let u = l.shift();
186348
- if (!u) {
186349
- f === 0 && h.end();
186350
+ let f = l.shift();
186351
+ if (!f) {
186352
+ u === 0 && h.end();
186350
186353
  return;
186351
186354
  }
186352
- f++, a.add(u);
186355
+ u++, a.add(f);
186353
186356
  let m = (w, g, S = false) => {
186354
186357
  if (w)
186355
186358
  return h.emit("error", w);
@@ -186364,14 +186367,14 @@ var It = class {
186364
186367
  }
186365
186368
  for (let E of g)
186366
186369
  E && (!r || r(E)) && (h.write(s ? E : E.fullpath()) || (d = true));
186367
- f--;
186370
+ u--;
186368
186371
  for (let E of g) {
186369
186372
  let y = E.realpathCached() || E;
186370
186373
  y.shouldWalk(a, o) && l.push(y);
186371
186374
  }
186372
186375
  d && !h.flowing ? h.once("drain", c) : p || c();
186373
186376
  }, p = true;
186374
- u.readdirCB(m, true), p = false;
186377
+ f.readdirCB(m, true), p = false;
186375
186378
  }
186376
186379
  };
186377
186380
  return c(), h;
@@ -186380,19 +186383,19 @@ var It = class {
186380
186383
  typeof t == "string" ? t = this.cwd.resolve(t) : t instanceof R || (e = t, t = this.cwd);
186381
186384
  let { withFileTypes: s = true, follow: i = false, filter: r, walkFilter: o } = e, h = new V({ objectMode: true }), a = new Set;
186382
186385
  (!r || r(t)) && h.write(s ? t : t.fullpath());
186383
- let l = [t], f = 0, c = () => {
186386
+ let l = [t], u = 0, c = () => {
186384
186387
  let d = false;
186385
186388
  for (;!d; ) {
186386
- let u = l.shift();
186387
- if (!u) {
186388
- f === 0 && h.end();
186389
+ let f = l.shift();
186390
+ if (!f) {
186391
+ u === 0 && h.end();
186389
186392
  return;
186390
186393
  }
186391
- f++, a.add(u);
186392
- let m = u.readdirSync();
186394
+ u++, a.add(f);
186395
+ let m = f.readdirSync();
186393
186396
  for (let p of m)
186394
186397
  (!r || r(p)) && (h.write(s ? p : p.fullpath()) || (d = true));
186395
- f--;
186398
+ u--;
186396
186399
  for (let p of m) {
186397
186400
  let w = p;
186398
186401
  if (p.isSymbolicLink()) {
@@ -186479,15 +186482,15 @@ var nt = class n4 {
186479
186482
  throw new TypeError("index out of range");
186480
186483
  if (this.#t = t, this.#s = e, this.#n = s, this.#r = i, this.#n === 0) {
186481
186484
  if (this.isUNC()) {
186482
- let [r, o, h, a, ...l] = this.#t, [f, c, d, u, ...m] = this.#s;
186485
+ let [r, o, h, a, ...l] = this.#t, [u, c, d, f, ...m] = this.#s;
186483
186486
  l[0] === "" && (l.shift(), m.shift());
186484
- let p = [r, o, h, a, ""].join("/"), w = [f, c, d, u, ""].join("/");
186487
+ let p = [r, o, h, a, ""].join("/"), w = [u, c, d, f, ""].join("/");
186485
186488
  this.#t = [p, ...l], this.#s = [w, ...m], this.length = this.#t.length;
186486
186489
  } else if (this.isDrive() || this.isAbsolute()) {
186487
186490
  let [r, ...o] = this.#t, [h, ...a] = this.#s;
186488
186491
  o[0] === "" && (o.shift(), a.shift());
186489
- let l = r + "/", f = h + "/";
186490
- this.#t = [l, ...o], this.#s = [f, ...a], this.length = this.#t.length;
186492
+ let l = r + "/", u = h + "/";
186493
+ this.#t = [l, ...o], this.#s = [u, ...a], this.length = this.#t.length;
186491
186494
  }
186492
186495
  }
186493
186496
  }
@@ -186657,10 +186660,10 @@ var Et = class n6 {
186657
186660
  }
186658
186661
  if (i.isENOENT())
186659
186662
  continue;
186660
- let a, l, f = false;
186663
+ let a, l, u = false;
186661
186664
  for (;typeof (a = r.pattern()) == "string" && (l = r.rest()); )
186662
- i = i.resolve(a), r = l, f = true;
186663
- if (a = r.pattern(), l = r.rest(), f) {
186665
+ i = i.resolve(a), r = l, u = true;
186666
+ if (a = r.pattern(), l = r.rest(), u) {
186664
186667
  if (this.hasWalkedCache.hasWalked(i, r))
186665
186668
  continue;
186666
186669
  this.hasWalkedCache.storeWalked(i, r);
@@ -186675,8 +186678,8 @@ var Et = class n6 {
186675
186678
  if (!l || (c === "" || c === ".") && !d)
186676
186679
  this.matches.add(i, h, c === "" || c === ".");
186677
186680
  else if (c === "..") {
186678
- let u = i.parent || i;
186679
- d ? this.hasWalkedCache.hasWalked(u, d) || this.subwalks.add(u, d) : this.matches.add(u, h, true);
186681
+ let f = i.parent || i;
186682
+ d ? this.hasWalkedCache.hasWalked(f, d) || this.subwalks.add(f, d) : this.matches.add(f, h, true);
186680
186683
  }
186681
186684
  } else
186682
186685
  a instanceof RegExp && this.subwalks.add(i, r);
@@ -186844,7 +186847,7 @@ var zt = class {
186844
186847
  continue;
186845
186848
  r++;
186846
186849
  let a = h.readdirCached();
186847
- h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, f) => this.walkCB3(h, f, s, o), true);
186850
+ h.calledReaddir() ? this.walkCB3(h, a, s, o) : h.readdirCB((l, u) => this.walkCB3(h, u, s, o), true);
186848
186851
  }
186849
186852
  o();
186850
186853
  }
@@ -186989,10 +186992,10 @@ var I = class {
186989
186992
  this.nocase = this.scurry.nocase;
186990
186993
  let s = this.platform === "darwin" || this.platform === "win32", i = { ...e, dot: this.dot, matchBase: this.matchBase, nobrace: this.nobrace, nocase: this.nocase, nocaseMagicOnly: s, nocomment: true, noext: this.noext, nonegate: true, optimizationLevel: 2, platform: this.platform, windowsPathsNoEscape: this.windowsPathsNoEscape, debug: !!this.opts.debug }, r = this.pattern.map((a) => new D(a, i)), [o, h] = r.reduce((a, l) => (a[0].push(...l.set), a[1].push(...l.globParts), a), [[], []]);
186991
186994
  this.patterns = o.map((a, l) => {
186992
- let f = h[l];
186993
- if (!f)
186995
+ let u = h[l];
186996
+ if (!u)
186994
186997
  throw new Error("invalid pattern object");
186995
- return new nt(a, f, 0, this.platform);
186998
+ return new nt(a, u, 0, this.platform);
186996
186999
  });
186997
187000
  }
186998
187001
  async walk() {