vite-plugin-vue-devtools 8.0.1 → 8.0.3

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.
Files changed (33) hide show
  1. package/client/assets/IconTitle.vue_vue_type_script_setup_true_lang-Enp_Ksfn.js +1 -0
  2. package/client/assets/SectionBlock-BTPkVZM2.js +1 -0
  3. package/client/assets/assets-D3XLNB-6.js +12 -0
  4. package/client/assets/components-Dza6_XRl.js +1 -0
  5. package/client/assets/custom-inspector-tab-view-_L81oF56.js +1 -0
  6. package/client/assets/{custom-tab-view-CM9Q_lnb.js → custom-tab-view-CmLn18C4.js} +1 -1
  7. package/client/assets/graph-fTuEulvH.js +1020 -0
  8. package/client/assets/{index-iOTou63J.js → index-DH8HZ7DP.js} +225 -221
  9. package/client/assets/{index-SYP6buex.css → index-DVOrYgP_.css} +1 -1
  10. package/client/assets/index-lUvZHcVj.css +1 -0
  11. package/client/assets/overview-DFLns6CN.js +1 -0
  12. package/client/assets/pages-yIVwEfZL.js +1 -0
  13. package/client/assets/pinia-Cq2YPuZV.js +1 -0
  14. package/client/assets/{router-CjEa9MSq.js → router-Drkf543k.js} +1 -1
  15. package/client/assets/settings-DyJW_A0F.js +1 -0
  16. package/client/assets/timeline-R3j-Lp7H.js +1 -0
  17. package/client/index.html +2 -2
  18. package/dist/vite.cjs +221 -214
  19. package/dist/vite.js +201 -204
  20. package/package.json +8 -9
  21. package/src/overlay/devtools-overlay.mjs +4 -4
  22. package/client/assets/IconTitle.vue_vue_type_script_setup_true_lang-BKb_WVnP.js +0 -1
  23. package/client/assets/SectionBlock-CLZFQW91.js +0 -1
  24. package/client/assets/assets-B7zubrMs.js +0 -12
  25. package/client/assets/components-BvbJYQUf.js +0 -1
  26. package/client/assets/custom-inspector-tab-view--RVvY-O-.js +0 -1
  27. package/client/assets/graph-Buqn8Jbv.js +0 -1073
  28. package/client/assets/index-ENvNlo7R.css +0 -1
  29. package/client/assets/overview-Cm_cmE96.js +0 -1
  30. package/client/assets/pages-cKsoKw9g.js +0 -1
  31. package/client/assets/pinia-CydCddd0.js +0 -1
  32. package/client/assets/settings-Dfia6tsi.js +0 -1
  33. package/client/assets/timeline-CWTKEViw.js +0 -1
package/dist/vite.cjs CHANGED
@@ -24,16 +24,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  }) : target, mod));
25
25
 
26
26
  //#endregion
27
- const node_fs = __toESM(require("node:fs"));
28
- const node_path = __toESM(require("node:path"));
29
- const node_url = __toESM(require("node:url"));
30
- const __vue_devtools_core = __toESM(require("@vue/devtools-core"));
31
- const __vue_devtools_kit = __toESM(require("@vue/devtools-kit"));
32
- const sirv = __toESM(require("sirv"));
33
- const vite = __toESM(require("vite"));
34
- const vite_plugin_inspect = __toESM(require("vite-plugin-inspect"));
35
- const vite_plugin_vue_inspector = __toESM(require("vite-plugin-vue-inspector"));
36
- const node_fs_promises = __toESM(require("node:fs/promises"));
27
+ let node_fs = require("node:fs");
28
+ node_fs = __toESM(node_fs);
29
+ let node_path = require("node:path");
30
+ node_path = __toESM(node_path);
31
+ let node_url = require("node:url");
32
+ node_url = __toESM(node_url);
33
+ let __vue_devtools_core = require("@vue/devtools-core");
34
+ __vue_devtools_core = __toESM(__vue_devtools_core);
35
+ let __vue_devtools_kit = require("@vue/devtools-kit");
36
+ __vue_devtools_kit = __toESM(__vue_devtools_kit);
37
+ let sirv = require("sirv");
38
+ sirv = __toESM(sirv);
39
+ let vite = require("vite");
40
+ vite = __toESM(vite);
41
+ let vite_plugin_inspect = require("vite-plugin-inspect");
42
+ vite_plugin_inspect = __toESM(vite_plugin_inspect);
43
+ let vite_plugin_vue_inspector = require("vite-plugin-vue-inspector");
44
+ vite_plugin_vue_inspector = __toESM(vite_plugin_vue_inspector);
45
+ let node_fs_promises = require("node:fs/promises");
46
+ node_fs_promises = __toESM(node_fs_promises);
37
47
 
38
48
  //#region ../../node_modules/.pnpm/kolorist@1.8.0/node_modules/kolorist/dist/esm/index.mjs
39
49
  let enabled = true;
@@ -124,7 +134,6 @@ const DIR_CLIENT = (0, node_path.resolve)(DIR_DIST, "../client");
124
134
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
125
135
  var require_array = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js": ((exports) => {
126
136
  Object.defineProperty(exports, "__esModule", { value: true });
127
- exports.splitWhen = exports.flatten = void 0;
128
137
  function flatten(items) {
129
138
  return items.reduce((collection, item) => [].concat(collection, item), []);
130
139
  }
@@ -145,7 +154,6 @@ var require_array = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
145
154
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
146
155
  var require_errno = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js": ((exports) => {
147
156
  Object.defineProperty(exports, "__esModule", { value: true });
148
- exports.isEnoentCodeError = void 0;
149
157
  function isEnoentCodeError(error) {
150
158
  return error.code === "ENOENT";
151
159
  }
@@ -156,7 +164,6 @@ var require_errno = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
156
164
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
157
165
  var require_fs$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js": ((exports) => {
158
166
  Object.defineProperty(exports, "__esModule", { value: true });
159
- exports.createDirentFromStats = void 0;
160
167
  var DirentFromStats$1 = class {
161
168
  constructor(name, stats) {
162
169
  this.name = name;
@@ -179,7 +186,6 @@ var require_fs$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
179
186
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
180
187
  var require_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js": ((exports) => {
181
188
  Object.defineProperty(exports, "__esModule", { value: true });
182
- exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
183
189
  const os$1 = require("os");
184
190
  const path$10 = require("path");
185
191
  const IS_WINDOWS_PLATFORM = os$1.platform() === "win32";
@@ -377,8 +383,7 @@ var require_glob_parent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
377
383
  * @returns {string}
378
384
  */
379
385
  module.exports = function globParent$1(str, opts) {
380
- var options$1 = Object.assign({ flipBackslashes: true }, opts);
381
- if (options$1.flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
386
+ if (Object.assign({ flipBackslashes: true }, opts).flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
382
387
  if (enclosure.test(str)) str += slash;
383
388
  str += "a";
384
389
  do
@@ -556,8 +561,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
556
561
  state.maxLen = String(state.max).length;
557
562
  }
558
563
  if (a < 0) {
559
- let newMin = b < 0 ? Math.abs(b) : 1;
560
- negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
564
+ negatives = splitToPatterns(b < 0 ? Math.abs(b) : 1, Math.abs(a), state, opts);
561
565
  a = state.a = 0;
562
566
  }
563
567
  if (b >= 0) positives = splitToPatterns(a, b, state, opts);
@@ -573,8 +577,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
573
577
  let onlyNegative = filterPatterns(neg, pos, "-", false, options$1) || [];
574
578
  let onlyPositive = filterPatterns(pos, neg, "", false, options$1) || [];
575
579
  let intersected = filterPatterns(neg, pos, "-?", true, options$1) || [];
576
- let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
577
- return subpatterns.join("|");
580
+ return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
578
581
  }
579
582
  function splitToRanges(min, max) {
580
583
  let nines = 1;
@@ -775,8 +778,7 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
775
778
  });
776
779
  let start = String.fromCharCode(a);
777
780
  if (a === b) return start;
778
- let stop = String.fromCharCode(b);
779
- return `[${start}-${stop}]`;
781
+ return `[${start}-${String.fromCharCode(b)}]`;
780
782
  };
781
783
  const toRegex = (start, end, options$1) => {
782
784
  if (Array.isArray(start)) {
@@ -1203,18 +1205,16 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
1203
1205
  */
1204
1206
  if (value === CHAR_LEFT_CURLY_BRACE$1) {
1205
1207
  depth$1++;
1206
- const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
1207
- const brace = {
1208
+ block = push({
1208
1209
  type: "brace",
1209
1210
  open: true,
1210
1211
  close: false,
1211
- dollar,
1212
+ dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === true,
1212
1213
  depth: depth$1,
1213
1214
  commas: 0,
1214
1215
  ranges: 0,
1215
1216
  nodes: []
1216
- };
1217
- block = push(brace);
1217
+ });
1218
1218
  stack.push(block);
1219
1219
  push({
1220
1220
  type: "open",
@@ -1250,8 +1250,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
1250
1250
  if (value === CHAR_COMMA$1 && depth$1 > 0) {
1251
1251
  if (block.ranges > 0) {
1252
1252
  block.ranges = 0;
1253
- const open = block.nodes.shift();
1254
- block.nodes = [open, {
1253
+ block.nodes = [block.nodes.shift(), {
1255
1254
  type: "text",
1256
1255
  value: stringify$1(block)
1257
1256
  }];
@@ -1479,12 +1478,6 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
1479
1478
  const END_ANCHOR = `(?:${SLASH_LITERAL}|$)`;
1480
1479
  const START_ANCHOR = `(?:^|${SLASH_LITERAL})`;
1481
1480
  const DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`;
1482
- const NO_DOT = `(?!${DOT_LITERAL})`;
1483
- const NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`;
1484
- const NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`;
1485
- const NO_DOTS_SLASH = `(?!${DOTS_SLASH})`;
1486
- const QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`;
1487
- const STAR = `${QMARK}*?`;
1488
1481
  const POSIX_CHARS = {
1489
1482
  DOT_LITERAL,
1490
1483
  PLUS_LITERAL,
@@ -1494,12 +1487,12 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
1494
1487
  QMARK,
1495
1488
  END_ANCHOR,
1496
1489
  DOTS_SLASH,
1497
- NO_DOT,
1498
- NO_DOTS,
1499
- NO_DOT_SLASH,
1500
- NO_DOTS_SLASH,
1501
- QMARK_NO_DOT,
1502
- STAR,
1490
+ NO_DOT: `(?!${DOT_LITERAL})`,
1491
+ NO_DOTS: `(?!${START_ANCHOR}${DOTS_SLASH})`,
1492
+ NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`,
1493
+ NO_DOTS_SLASH: `(?!${DOTS_SLASH})`,
1494
+ QMARK_NO_DOT: `[^.${SLASH_LITERAL}]`,
1495
+ STAR: `${QMARK}*?`,
1503
1496
  START_ANCHOR
1504
1497
  };
1505
1498
  /**
@@ -1671,9 +1664,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pic
1671
1664
  return output;
1672
1665
  };
1673
1666
  exports.wrapOutput = (input, state = {}, options$1 = {}) => {
1674
- const prepend = options$1.contains ? "" : "^";
1675
- const append$1 = options$1.contains ? "" : "$";
1676
- let output = `${prepend}(?:${input})${append$1}`;
1667
+ let output = `${options$1.contains ? "" : "^"}(?:${input})${options$1.contains ? "" : "$"}`;
1677
1668
  if (state.negated === true) output = `(?:^(?!${output}).*$)`;
1678
1669
  return output;
1679
1670
  };
@@ -1806,8 +1797,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
1806
1797
  continue;
1807
1798
  }
1808
1799
  if (opts.noext !== true) {
1809
- const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
1810
- if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
1800
+ if ((code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK) === true && peek() === CHAR_LEFT_PARENTHESES) {
1811
1801
  isGlob$1 = token.isGlob = true;
1812
1802
  isExtglob$1 = token.isExtglob = true;
1813
1803
  finished = true;
@@ -2020,13 +2010,13 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
2020
2010
  const win32$1 = utils$12.isWindows(options$1);
2021
2011
  const PLATFORM_CHARS = constants$1.globChars(win32$1);
2022
2012
  const EXTGLOB_CHARS = constants$1.extglobChars(PLATFORM_CHARS);
2023
- const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT: NO_DOT$1, NO_DOT_SLASH: NO_DOT_SLASH$1, NO_DOTS_SLASH: NO_DOTS_SLASH$1, QMARK: QMARK$1, QMARK_NO_DOT: QMARK_NO_DOT$1, STAR: STAR$1, START_ANCHOR: START_ANCHOR$1 } = PLATFORM_CHARS;
2013
+ const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK: QMARK$1, QMARK_NO_DOT, STAR, START_ANCHOR: START_ANCHOR$1 } = PLATFORM_CHARS;
2024
2014
  const globstar = (opts$1) => {
2025
2015
  return `(${capture}(?:(?!${START_ANCHOR$1}${opts$1.dot ? DOTS_SLASH$1 : DOT_LITERAL$1}).)*?)`;
2026
2016
  };
2027
- const nodot = opts.dot ? "" : NO_DOT$1;
2028
- const qmarkNoDot = opts.dot ? QMARK$1 : QMARK_NO_DOT$1;
2029
- let star = opts.bash === true ? globstar(opts) : STAR$1;
2017
+ const nodot = opts.dot ? "" : NO_DOT;
2018
+ const qmarkNoDot = opts.dot ? QMARK$1 : QMARK_NO_DOT;
2019
+ let star = opts.bash === true ? globstar(opts) : STAR;
2030
2020
  if (opts.capture) star = `(${star})`;
2031
2021
  if (typeof opts.noext === "boolean") opts.noextglob = opts.noext;
2032
2022
  const state = {
@@ -2149,13 +2139,10 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
2149
2139
  let extglobStar = star;
2150
2140
  if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
2151
2141
  if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
2152
- if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
2153
- const expression = parse$1(rest, {
2154
- ...options$1,
2155
- fastpaths: false
2156
- }).output;
2157
- output = token.close = `)${expression})${extglobStar})`;
2158
- }
2142
+ if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse$1(rest, {
2143
+ ...options$1,
2144
+ fastpaths: false
2145
+ }).output})${extglobStar})`;
2159
2146
  if (token.prev.type === "bos") state.negatedExtglob = true;
2160
2147
  }
2161
2148
  push({
@@ -2249,8 +2236,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
2249
2236
  if (inner.includes(":")) {
2250
2237
  const idx = prev.value.lastIndexOf("[");
2251
2238
  const pre = prev.value.slice(0, idx);
2252
- const rest$1 = prev.value.slice(idx + 2);
2253
- const posix = POSIX_REGEX_SOURCE[rest$1];
2239
+ const posix = POSIX_REGEX_SOURCE[prev.value.slice(idx + 2)];
2254
2240
  if (posix) {
2255
2241
  prev.value = pre + posix;
2256
2242
  state.backtrack = true;
@@ -2498,8 +2484,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
2498
2484
  * Question marks
2499
2485
  */
2500
2486
  if (value === "?") {
2501
- const isGroup = prev && prev.value === "(";
2502
- if (!isGroup && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
2487
+ if (!(prev && prev.value === "(") && opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
2503
2488
  extglobOpen("qmark", value);
2504
2489
  continue;
2505
2490
  }
@@ -2519,7 +2504,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
2519
2504
  push({
2520
2505
  type: "qmark",
2521
2506
  value,
2522
- output: QMARK_NO_DOT$1
2507
+ output: QMARK_NO_DOT
2523
2508
  });
2524
2509
  continue;
2525
2510
  }
@@ -2738,11 +2723,11 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
2738
2723
  }
2739
2724
  if (state.index === state.start || prev.type === "slash" || prev.type === "dot") {
2740
2725
  if (prev.type === "dot") {
2741
- state.output += NO_DOT_SLASH$1;
2742
- prev.output += NO_DOT_SLASH$1;
2726
+ state.output += NO_DOT_SLASH;
2727
+ prev.output += NO_DOT_SLASH;
2743
2728
  } else if (opts.dot === true) {
2744
- state.output += NO_DOTS_SLASH$1;
2745
- prev.output += NO_DOTS_SLASH$1;
2729
+ state.output += NO_DOTS_SLASH;
2730
+ prev.output += NO_DOTS_SLASH;
2746
2731
  } else {
2747
2732
  state.output += nodot;
2748
2733
  prev.output += nodot;
@@ -2795,15 +2780,15 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
2795
2780
  if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
2796
2781
  input = REPLACEMENTS[input] || input;
2797
2782
  const win32$1 = utils$12.isWindows(options$1);
2798
- const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT: NO_DOT$1, NO_DOTS: NO_DOTS$1, NO_DOTS_SLASH: NO_DOTS_SLASH$1, STAR: STAR$1, START_ANCHOR: START_ANCHOR$1 } = constants$1.globChars(win32$1);
2799
- const nodot = opts.dot ? NO_DOTS$1 : NO_DOT$1;
2800
- const slashDot = opts.dot ? NO_DOTS_SLASH$1 : NO_DOT$1;
2783
+ const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR: START_ANCHOR$1 } = constants$1.globChars(win32$1);
2784
+ const nodot = opts.dot ? NO_DOTS : NO_DOT;
2785
+ const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
2801
2786
  const capture = opts.capture ? "" : "?:";
2802
2787
  const state = {
2803
2788
  negated: false,
2804
2789
  prefix: ""
2805
2790
  };
2806
- let star = opts.bash === true ? ".*?" : STAR$1;
2791
+ let star = opts.bash === true ? ".*?" : STAR;
2807
2792
  if (opts.capture) star = `(${star})`;
2808
2793
  const globstar = (opts$1) => {
2809
2794
  if (opts$1.noglobstar === true) return star;
@@ -2828,8 +2813,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
2828
2813
  }
2829
2814
  }
2830
2815
  };
2831
- const output = utils$12.removePrefix(input, state);
2832
- let source = create(output);
2816
+ let source = create(utils$12.removePrefix(input, state));
2833
2817
  if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL$1}?`;
2834
2818
  return source;
2835
2819
  };
@@ -2978,8 +2962,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
2978
2962
  * @api public
2979
2963
  */
2980
2964
  picomatch$1.matchBase = (input, glob, options$1, posix = utils$11.isWindows(options$1)) => {
2981
- const regex = glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options$1);
2982
- return regex.test(path$7.basename(input));
2965
+ return (glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options$1)).test(path$7.basename(input));
2983
2966
  };
2984
2967
  /**
2985
2968
  * Returns true if **any** of the given glob `patterns` match the specified `string`.
@@ -3186,8 +3169,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
3186
3169
  if (negated) negatives++;
3187
3170
  for (let item of list) {
3188
3171
  let matched = isMatch(item, true);
3189
- let match = negated ? !matched.isMatch : matched.isMatch;
3190
- if (!match) continue;
3172
+ if (!(negated ? !matched.isMatch : matched.isMatch)) continue;
3191
3173
  if (negated) omit.add(matched.output);
3192
3174
  else {
3193
3175
  omit.delete(matched.output);
@@ -3195,8 +3177,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
3195
3177
  }
3196
3178
  }
3197
3179
  }
3198
- let result = negatives === patterns.length ? [...items] : [...keep];
3199
- let matches = result.filter((item) => !omit.has(item));
3180
+ let matches = (negatives === patterns.length ? [...items] : [...keep]).filter((item) => !omit.has(item));
3200
3181
  if (options$1 && matches.length === 0) {
3201
3182
  if (options$1.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
3202
3183
  if (options$1.nonull === true || options$1.nullglob === true) return options$1.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
@@ -3442,11 +3423,10 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
3442
3423
  */
3443
3424
  micromatch$1.capture = (glob, input, options$1) => {
3444
3425
  let posix = utils$10.isWindows(options$1);
3445
- let regex = picomatch.makeRe(String(glob), {
3426
+ let match = picomatch.makeRe(String(glob), {
3446
3427
  ...options$1,
3447
3428
  capture: true
3448
- });
3449
- let match = regex.exec(posix ? utils$10.toPosixSlashes(input) : input);
3429
+ }).exec(posix ? utils$10.toPosixSlashes(input) : input);
3450
3430
  if (match) return match.slice(1).map((v) => v === void 0 ? "" : v);
3451
3431
  };
3452
3432
  /**
@@ -3539,7 +3519,6 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
3539
3519
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
3540
3520
  var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js": ((exports) => {
3541
3521
  Object.defineProperty(exports, "__esModule", { value: true });
3542
- exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
3543
3522
  const path$6 = require("path");
3544
3523
  const globParent = require_glob_parent();
3545
3524
  const micromatch = require_micromatch();
@@ -3730,8 +3709,7 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
3730
3709
  //#endregion
3731
3710
  //#region ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
3732
3711
  var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js": ((exports, module) => {
3733
- const Stream = require("stream");
3734
- const PassThrough = Stream.PassThrough;
3712
+ const PassThrough = require("stream").PassThrough;
3735
3713
  const slice = Array.prototype.slice;
3736
3714
  module.exports = merge2$1;
3737
3715
  function merge2$1() {
@@ -3813,7 +3791,6 @@ var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merg
3813
3791
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
3814
3792
  var require_stream$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js": ((exports) => {
3815
3793
  Object.defineProperty(exports, "__esModule", { value: true });
3816
- exports.merge = void 0;
3817
3794
  const merge2 = require_merge2();
3818
3795
  function merge(streams) {
3819
3796
  const mergedStream = merge2(streams);
@@ -3834,7 +3811,6 @@ var require_stream$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
3834
3811
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
3835
3812
  var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js": ((exports) => {
3836
3813
  Object.defineProperty(exports, "__esModule", { value: true });
3837
- exports.isEmpty = exports.isString = void 0;
3838
3814
  function isString(input) {
3839
3815
  return typeof input === "string";
3840
3816
  }
@@ -3849,7 +3825,6 @@ var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
3849
3825
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
3850
3826
  var require_utils$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js": ((exports) => {
3851
3827
  Object.defineProperty(exports, "__esModule", { value: true });
3852
- exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
3853
3828
  const array = require_array();
3854
3829
  exports.array = array;
3855
3830
  const errno = require_errno();
@@ -3870,7 +3845,6 @@ var require_utils$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
3870
3845
  //#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
3871
3846
  var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js": ((exports) => {
3872
3847
  Object.defineProperty(exports, "__esModule", { value: true });
3873
- exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
3874
3848
  const utils$9 = require_utils$1();
3875
3849
  function generate(input, settings) {
3876
3850
  const patterns = processPatterns(input, settings);
@@ -3931,19 +3905,16 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
3931
3905
  }
3932
3906
  exports.getPositivePatterns = getPositivePatterns;
3933
3907
  function getNegativePatternsAsPositive(patterns, ignore) {
3934
- const negative = utils$9.pattern.getNegativePatterns(patterns).concat(ignore);
3935
- const positive = negative.map(utils$9.pattern.convertToPositivePattern);
3936
- return positive;
3908
+ return utils$9.pattern.getNegativePatterns(patterns).concat(ignore).map(utils$9.pattern.convertToPositivePattern);
3937
3909
  }
3938
3910
  exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
3939
3911
  function groupPatternsByBaseDirectory(patterns) {
3940
- const group = {};
3941
3912
  return patterns.reduce((collection, pattern$1) => {
3942
3913
  const base = utils$9.pattern.getBaseDirectory(pattern$1);
3943
3914
  if (base in collection) collection[base].push(pattern$1);
3944
3915
  else collection[base] = [pattern$1];
3945
3916
  return collection;
3946
- }, group);
3917
+ }, {});
3947
3918
  }
3948
3919
  exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
3949
3920
  function convertPatternGroupsToTasks(positive, negative, dynamic) {
@@ -3968,7 +3939,6 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
3968
3939
  //#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
3969
3940
  var require_async$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js": ((exports) => {
3970
3941
  Object.defineProperty(exports, "__esModule", { value: true });
3971
- exports.read = void 0;
3972
3942
  function read$3(path$11, settings, callback) {
3973
3943
  settings.fs.lstat(path$11, (lstatError, lstat) => {
3974
3944
  if (lstatError !== null) {
@@ -4006,7 +3976,6 @@ var require_async$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
4006
3976
  //#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
4007
3977
  var require_sync$5 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js": ((exports) => {
4008
3978
  Object.defineProperty(exports, "__esModule", { value: true });
4009
- exports.read = void 0;
4010
3979
  function read$2(path$11, settings) {
4011
3980
  const lstat = settings.fs.lstatSync(path$11);
4012
3981
  if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
@@ -4065,7 +4034,6 @@ var require_settings$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
4065
4034
  //#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
4066
4035
  var require_out$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js": ((exports) => {
4067
4036
  Object.defineProperty(exports, "__esModule", { value: true });
4068
- exports.statSync = exports.stat = exports.Settings = void 0;
4069
4037
  const async$1 = require_async$5();
4070
4038
  const sync$1 = require_sync$5();
4071
4039
  const settings_1$3 = require_settings$3();
@@ -4147,7 +4115,6 @@ var require_run_parallel = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
4147
4115
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
4148
4116
  var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js": ((exports) => {
4149
4117
  Object.defineProperty(exports, "__esModule", { value: true });
4150
- exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
4151
4118
  const NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
4152
4119
  if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
4153
4120
  const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
@@ -4166,7 +4133,6 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@
4166
4133
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
4167
4134
  var require_fs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js": ((exports) => {
4168
4135
  Object.defineProperty(exports, "__esModule", { value: true });
4169
- exports.createDirentFromStats = void 0;
4170
4136
  var DirentFromStats = class {
4171
4137
  constructor(name, stats) {
4172
4138
  this.name = name;
@@ -4189,7 +4155,6 @@ var require_fs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodel
4189
4155
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
4190
4156
  var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js": ((exports) => {
4191
4157
  Object.defineProperty(exports, "__esModule", { value: true });
4192
- exports.fs = void 0;
4193
4158
  const fs$4 = require_fs$1();
4194
4159
  exports.fs = fs$4;
4195
4160
  }) });
@@ -4198,7 +4163,6 @@ var require_utils = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@node
4198
4163
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
4199
4164
  var require_common$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js": ((exports) => {
4200
4165
  Object.defineProperty(exports, "__esModule", { value: true });
4201
- exports.joinPathSegments = void 0;
4202
4166
  function joinPathSegments$1(a, b, separator) {
4203
4167
  /**
4204
4168
  * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
@@ -4213,7 +4177,6 @@ var require_common$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@n
4213
4177
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
4214
4178
  var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js": ((exports) => {
4215
4179
  Object.defineProperty(exports, "__esModule", { value: true });
4216
- exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4217
4180
  const fsStat$5 = require_out$3();
4218
4181
  const rpl = require_run_parallel();
4219
4182
  const constants_1$1 = require_constants();
@@ -4242,8 +4205,7 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
4242
4205
  callSuccessCallback$1(callback, entries);
4243
4206
  return;
4244
4207
  }
4245
- const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
4246
- rpl(tasks, (rplError, rplEntries) => {
4208
+ rpl(entries.map((entry) => makeRplTaskEntry(entry, settings)), (rplError, rplEntries) => {
4247
4209
  if (rplError !== null) {
4248
4210
  callFailureCallback$1(callback, rplError);
4249
4211
  return;
@@ -4279,7 +4241,7 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
4279
4241
  callFailureCallback$1(callback, readdirError);
4280
4242
  return;
4281
4243
  }
4282
- const tasks = names.map((name) => {
4244
+ rpl(names.map((name) => {
4283
4245
  const path$11 = common$4.joinPathSegments(directory, name, settings.pathSegmentSeparator);
4284
4246
  return (done) => {
4285
4247
  fsStat$5.stat(path$11, settings.fsStatSettings, (error, stats) => {
@@ -4296,8 +4258,7 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
4296
4258
  done(null, entry);
4297
4259
  });
4298
4260
  };
4299
- });
4300
- rpl(tasks, (rplError, entries) => {
4261
+ }), (rplError, entries) => {
4301
4262
  if (rplError !== null) {
4302
4263
  callFailureCallback$1(callback, rplError);
4303
4264
  return;
@@ -4319,7 +4280,6 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
4319
4280
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
4320
4281
  var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js": ((exports) => {
4321
4282
  Object.defineProperty(exports, "__esModule", { value: true });
4322
- exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4323
4283
  const fsStat$4 = require_out$3();
4324
4284
  const constants_1 = require_constants();
4325
4285
  const utils$7 = require_utils();
@@ -4330,8 +4290,7 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
4330
4290
  }
4331
4291
  exports.read = read;
4332
4292
  function readdirWithFileTypes(directory, settings) {
4333
- const dirents = settings.fs.readdirSync(directory, { withFileTypes: true });
4334
- return dirents.map((dirent) => {
4293
+ return settings.fs.readdirSync(directory, { withFileTypes: true }).map((dirent) => {
4335
4294
  const entry = {
4336
4295
  dirent,
4337
4296
  name: dirent.name,
@@ -4348,8 +4307,7 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
4348
4307
  }
4349
4308
  exports.readdirWithFileTypes = readdirWithFileTypes;
4350
4309
  function readdir(directory, settings) {
4351
- const names = settings.fs.readdirSync(directory);
4352
- return names.map((name) => {
4310
+ return settings.fs.readdirSync(directory).map((name) => {
4353
4311
  const entryPath = common$3.joinPathSegments(directory, name, settings.pathSegmentSeparator);
4354
4312
  const stats = fsStat$4.statSync(entryPath, settings.fsStatSettings);
4355
4313
  const entry = {
@@ -4417,7 +4375,6 @@ var require_settings$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
4417
4375
  //#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
4418
4376
  var require_out$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js": ((exports) => {
4419
4377
  Object.defineProperty(exports, "__esModule", { value: true });
4420
- exports.Settings = exports.scandirSync = exports.scandir = void 0;
4421
4378
  const async = require_async$4();
4422
4379
  const sync = require_sync$4();
4423
4380
  const settings_1$2 = require_settings$2();
@@ -4687,7 +4644,7 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
4687
4644
  return p;
4688
4645
  }
4689
4646
  function drained() {
4690
- var p = new Promise(function(resolve$2) {
4647
+ return new Promise(function(resolve$2) {
4691
4648
  process.nextTick(function() {
4692
4649
  if (queue.idle()) resolve$2();
4693
4650
  else {
@@ -4700,7 +4657,6 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
4700
4657
  }
4701
4658
  });
4702
4659
  });
4703
- return p;
4704
4660
  }
4705
4661
  }
4706
4662
  module.exports = fastqueue;
@@ -4711,7 +4667,6 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
4711
4667
  //#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
4712
4668
  var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js": ((exports) => {
4713
4669
  Object.defineProperty(exports, "__esModule", { value: true });
4714
- exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
4715
4670
  function isFatalError(settings, error) {
4716
4671
  if (settings.errorFilter === null) return true;
4717
4672
  return !settings.errorFilter(error);
@@ -5012,7 +4967,6 @@ var require_settings$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
5012
4967
  //#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
5013
4968
  var require_out$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js": ((exports) => {
5014
4969
  Object.defineProperty(exports, "__esModule", { value: true });
5015
- exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
5016
4970
  const async_1$2 = require_async$2();
5017
4971
  const stream_1$4 = require_stream$2();
5018
4972
  const sync_1$2 = require_sync$2();
@@ -5028,14 +4982,12 @@ var require_out$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@node
5028
4982
  exports.walk = walk;
5029
4983
  function walkSync(directory, optionsOrSettings) {
5030
4984
  const settings = getSettings(optionsOrSettings);
5031
- const provider = new sync_1$2.default(directory, settings);
5032
- return provider.read();
4985
+ return new sync_1$2.default(directory, settings).read();
5033
4986
  }
5034
4987
  exports.walkSync = walkSync;
5035
4988
  function walkStream(directory, optionsOrSettings) {
5036
4989
  const settings = getSettings(optionsOrSettings);
5037
- const provider = new stream_1$4.default(directory, settings);
5038
- return provider.read();
4990
+ return new stream_1$4.default(directory, settings).read();
5039
4991
  }
5040
4992
  exports.walkStream = walkStream;
5041
4993
  function getSettings(settingsOrOptions = {}) {
@@ -5186,10 +5138,8 @@ var require_matcher = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
5186
5138
  }
5187
5139
  }
5188
5140
  _getPatternSegments(pattern$1) {
5189
- const parts = utils$5.pattern.getPatternParts(pattern$1, this._micromatchOptions);
5190
- return parts.map((part) => {
5191
- const dynamic = utils$5.pattern.isDynamicPattern(part, this._settings);
5192
- if (!dynamic) return {
5141
+ return utils$5.pattern.getPatternParts(pattern$1, this._micromatchOptions).map((part) => {
5142
+ if (!utils$5.pattern.isDynamicPattern(part, this._settings)) return {
5193
5143
  dynamic: false,
5194
5144
  pattern: part
5195
5145
  };
@@ -5227,13 +5177,12 @@ var require_partial = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
5227
5177
  * ^ true/false ^ always true
5228
5178
  */
5229
5179
  if (!pattern$1.complete && levels > section.length) return true;
5230
- const match = parts.every((part, index) => {
5180
+ if (parts.every((part, index) => {
5231
5181
  const segment = pattern$1.segments[index];
5232
5182
  if (segment.dynamic && segment.patternRe.test(part)) return true;
5233
5183
  if (!segment.dynamic && segment.pattern === part) return true;
5234
5184
  return false;
5235
- });
5236
- if (match) return true;
5185
+ })) return true;
5237
5186
  }
5238
5187
  return false;
5239
5188
  }
@@ -5281,8 +5230,7 @@ var require_deep = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
5281
5230
  _getEntryLevel(basePath, entryPath) {
5282
5231
  const entryPathDepth = entryPath.split("/").length;
5283
5232
  if (basePath === "") return entryPathDepth;
5284
- const basePathDepth = basePath.split("/").length;
5285
- return entryPathDepth - basePathDepth;
5233
+ return entryPathDepth - basePath.split("/").length;
5286
5234
  }
5287
5235
  _isSkippedSymbolicLink(entry) {
5288
5236
  return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
@@ -5340,12 +5288,9 @@ var require_entry$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
5340
5288
  return this._settings.onlyDirectories && !entry.dirent.isDirectory();
5341
5289
  }
5342
5290
  _isMatchToPatternsSet(filepath, patterns, isDirectory) {
5343
- const isMatched = this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory);
5344
- if (!isMatched) return false;
5345
- const isMatchedByRelativeNegative = this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory);
5346
- if (isMatchedByRelativeNegative) return false;
5347
- const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory);
5348
- if (isMatchedByAbsoluteNegative) return false;
5291
+ if (!this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory)) return false;
5292
+ if (this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory)) return false;
5293
+ if (this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory)) return false;
5349
5294
  return true;
5350
5295
  }
5351
5296
  _isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
@@ -5474,8 +5419,7 @@ var require_async = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
5474
5419
  async read(task) {
5475
5420
  const root = this._getRootDirectory(task);
5476
5421
  const options$1 = this._getReaderOptions(task);
5477
- const entries = await this.api(root, task, options$1);
5478
- return entries.map((entry) => options$1.transform(entry));
5422
+ return (await this.api(root, task, options$1)).map((entry) => options$1.transform(entry));
5479
5423
  }
5480
5424
  api(root, task, options$1) {
5481
5425
  if (task.dynamic) return this._reader.dynamic(root, options$1);
@@ -5573,8 +5517,7 @@ var require_sync = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
5573
5517
  read(task) {
5574
5518
  const root = this._getRootDirectory(task);
5575
5519
  const options$1 = this._getReaderOptions(task);
5576
- const entries = this.api(root, task, options$1);
5577
- return entries.map(options$1.transform);
5520
+ return this.api(root, task, options$1).map(options$1.transform);
5578
5521
  }
5579
5522
  api(root, task, options$1) {
5580
5523
  if (task.dynamic) return this._reader.dynamic(root, options$1);
@@ -5735,15 +5678,13 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
5735
5678
  return tasks.map(provider.read, provider);
5736
5679
  }
5737
5680
  function assertPatternsInput(input) {
5738
- const source = [].concat(input);
5739
- const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item));
5740
- if (!isValidSource) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
5681
+ if (![].concat(input).every((item) => utils.string.isString(item) && !utils.string.isEmpty(item))) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
5741
5682
  }
5742
5683
  module.exports = FastGlob;
5743
5684
  }) });
5744
5685
 
5745
5686
  //#endregion
5746
- //#region ../../node_modules/.pnpm/image-meta@0.2.1/node_modules/image-meta/dist/index.mjs
5687
+ //#region ../../node_modules/.pnpm/image-meta@0.2.2/node_modules/image-meta/dist/index.mjs
5747
5688
  var import_out = /* @__PURE__ */ __toESM(require_out(), 1);
5748
5689
  const decoder = new TextDecoder();
5749
5690
  const toUTF8String = (input, start = 0, end = input.length) => decoder.decode(input.slice(start, end));
@@ -5767,8 +5708,7 @@ const methods = {
5767
5708
  function readUInt(input, bits, offset, isBigEndian) {
5768
5709
  offset = offset || 0;
5769
5710
  const endian = isBigEndian ? "BE" : "LE";
5770
- const methodName = "readUInt" + bits + endian;
5771
- return methods[methodName](input, offset);
5711
+ return methods["readUInt" + bits + endian](input, offset);
5772
5712
  }
5773
5713
  const BMP = {
5774
5714
  validate: (input) => toUTF8String(input, 0, 2) === "BM",
@@ -5796,8 +5736,7 @@ const ICO = {
5796
5736
  const reserved = readUInt16LE(input, 0);
5797
5737
  const imageCount = readUInt16LE(input, 4);
5798
5738
  if (reserved !== 0 || imageCount === 0) return false;
5799
- const imageType = readUInt16LE(input, 2);
5800
- return imageType === TYPE_ICON;
5739
+ return readUInt16LE(input, 2) === TYPE_ICON;
5801
5740
  },
5802
5741
  calculate(input) {
5803
5742
  const nbImages = readUInt16LE(input, 4);
@@ -5818,8 +5757,7 @@ const CUR = {
5818
5757
  const reserved = readUInt16LE(input, 0);
5819
5758
  const imageCount = readUInt16LE(input, 4);
5820
5759
  if (reserved !== 0 || imageCount === 0) return false;
5821
- const imageType = readUInt16LE(input, 2);
5822
- return imageType === TYPE_CURSOR;
5760
+ return readUInt16LE(input, 2) === TYPE_CURSOR;
5823
5761
  },
5824
5762
  calculate: (input) => ICO.calculate(input)
5825
5763
  };
@@ -5838,6 +5776,66 @@ const GIF = {
5838
5776
  width: readUInt16LE(input, 6)
5839
5777
  })
5840
5778
  };
5779
+ const HEIC = {
5780
+ validate: (input) => {
5781
+ const ftypBox = findBox$1(input, "ftyp");
5782
+ if (!ftypBox) return false;
5783
+ const majorBrand = toUTF8String(input, ftypBox.offset + 8, ftypBox.offset + 12);
5784
+ return [
5785
+ "heic",
5786
+ "heix",
5787
+ "hevc",
5788
+ "hevx",
5789
+ "mif1",
5790
+ "msf1"
5791
+ ].includes(majorBrand);
5792
+ },
5793
+ calculate: (input) => {
5794
+ const metaBox = findBox$1(input, "meta");
5795
+ if (!metaBox) throw new TypeError("heic: meta box not found");
5796
+ const iprpBox = findBox$1(input, "iprp", metaBox.offset + 12, metaBox.offset + metaBox.size);
5797
+ if (!iprpBox) throw new TypeError("heic: iprp box not found");
5798
+ const ipcoBox = findBox$1(input, "ipco", iprpBox.offset + 8, iprpBox.offset + iprpBox.size);
5799
+ if (!ipcoBox) throw new TypeError("heic: ipco box not found");
5800
+ const dimensions = findAllBoxes(input, "ispe", ipcoBox.offset + 8, ipcoBox.offset + ipcoBox.size).map((box) => ({
5801
+ width: readUInt32BE(input, box.offset + 12),
5802
+ height: readUInt32BE(input, box.offset + 16)
5803
+ }));
5804
+ if (dimensions.length === 0) throw new TypeError("heic: ispe box not found");
5805
+ let largestDimension = dimensions[0];
5806
+ for (let i = 1; i < dimensions.length; i++) {
5807
+ const curr = dimensions[i];
5808
+ if (curr.width * curr.height > largestDimension.width * largestDimension.height) largestDimension = curr;
5809
+ }
5810
+ return largestDimension;
5811
+ }
5812
+ };
5813
+ function findBox$1(input, type, startOffset = 0, endOffset = input.length) {
5814
+ let offset = startOffset;
5815
+ while (offset < endOffset) {
5816
+ const size = readUInt32BE(input, offset);
5817
+ if (toUTF8String(input, offset + 4, offset + 8) === type) return {
5818
+ offset,
5819
+ size
5820
+ };
5821
+ if (size <= 0 || offset + size > endOffset) break;
5822
+ offset += size;
5823
+ }
5824
+ }
5825
+ function findAllBoxes(input, type, startOffset = 0, endOffset = input.length) {
5826
+ let offset = startOffset;
5827
+ const boxes = [];
5828
+ while (offset < endOffset) {
5829
+ const size = readUInt32BE(input, offset);
5830
+ if (toUTF8String(input, offset + 4, offset + 8) === type) boxes.push({
5831
+ offset,
5832
+ size
5833
+ });
5834
+ if (size <= 0 || offset + size > endOffset) break;
5835
+ offset += size;
5836
+ }
5837
+ return boxes;
5838
+ }
5841
5839
  const SIZE_HEADER = 8;
5842
5840
  const FILE_LENGTH_OFFSET = 4;
5843
5841
  const ENTRY_LENGTH_OFFSET = 4;
@@ -5919,20 +5917,16 @@ const J2C = {
5919
5917
  };
5920
5918
  const BoxTypes = {
5921
5919
  ftyp: "66747970",
5922
- ihdr: "69686472",
5923
5920
  jp2h: "6a703268",
5924
5921
  jp__: "6a502020",
5925
- rreq: "72726571",
5926
- xml_: "786d6c20"
5922
+ rreq: "72726571"
5927
5923
  };
5928
5924
  const calculateRREQLength = (box) => {
5929
5925
  const unit = box[0];
5930
5926
  let offset = 1 + 2 * unit;
5931
- const numStdFlags = readUInt16BE(box, offset);
5932
- const flagsLength = numStdFlags * (2 + unit);
5927
+ const flagsLength = readUInt16BE(box, offset) * (2 + unit);
5933
5928
  offset = offset + 2 + flagsLength;
5934
- const numVendorFeatures = readUInt16BE(box, offset);
5935
- const featuresLength = numVendorFeatures * (16 + unit);
5929
+ const featuresLength = readUInt16BE(box, offset) * (16 + unit);
5936
5930
  return offset + 2 + featuresLength;
5937
5931
  };
5938
5932
  const parseIHDR = (box) => {
@@ -5948,20 +5942,16 @@ const JP2 = {
5948
5942
  if (signature !== BoxTypes.jp__ || signatureLength < 1) return false;
5949
5943
  const ftypeBoxStart = signatureLength + 4;
5950
5944
  const ftypBoxLength = readUInt32BE(input, signatureLength);
5951
- const ftypBox = input.slice(ftypeBoxStart, ftypeBoxStart + ftypBoxLength);
5952
- return toHexString(ftypBox, 0, 4) === BoxTypes.ftyp;
5945
+ return toHexString(input.slice(ftypeBoxStart, ftypeBoxStart + ftypBoxLength), 0, 4) === BoxTypes.ftyp;
5953
5946
  },
5954
5947
  calculate(input) {
5955
5948
  const signatureLength = readUInt32BE(input, 0);
5956
5949
  const ftypBoxLength = readUInt16BE(input, signatureLength + 2);
5957
5950
  let offset = signatureLength + 4 + ftypBoxLength;
5958
- const nextBoxType = toHexString(input, offset, offset + 4);
5959
- switch (nextBoxType) {
5960
- case BoxTypes.rreq: {
5961
- const MAGIC = 4;
5962
- offset = offset + 4 + MAGIC + calculateRREQLength(input.slice(offset + 4));
5951
+ switch (toHexString(input, offset, offset + 4)) {
5952
+ case BoxTypes.rreq:
5953
+ offset = offset + 4 + 4 + calculateRREQLength(input.slice(offset + 4));
5963
5954
  return parseIHDR(input.slice(offset + 8, offset + 24));
5964
- }
5965
5955
  case BoxTypes.jp2h: return parseIHDR(input.slice(offset + 8, offset + 24));
5966
5956
  default: throw new TypeError("Unsupported header found: " + toUTF8String(input, offset, offset + 4));
5967
5957
  }
@@ -5985,20 +5975,16 @@ function extractSize(input, index) {
5985
5975
  };
5986
5976
  }
5987
5977
  function extractOrientation(exifBlock, isBigEndian) {
5988
- const idfOffset = 8;
5989
- const offset = EXIF_HEADER_BYTES + idfOffset;
5978
+ const offset = EXIF_HEADER_BYTES + 8;
5990
5979
  const idfDirectoryEntries = readUInt(exifBlock, 16, offset, isBigEndian);
5991
5980
  for (let directoryEntryNumber = 0; directoryEntryNumber < idfDirectoryEntries; directoryEntryNumber++) {
5992
5981
  const start = offset + NUM_DIRECTORY_ENTRIES_BYTES + directoryEntryNumber * IDF_ENTRY_BYTES;
5993
5982
  const end = start + IDF_ENTRY_BYTES;
5994
5983
  if (start > exifBlock.length) return;
5995
5984
  const block = exifBlock.slice(start, end);
5996
- const tagNumber = readUInt(block, 16, 0, isBigEndian);
5997
- if (tagNumber === 274) {
5998
- const dataFormat = readUInt(block, 16, 2, isBigEndian);
5999
- if (dataFormat !== 3) return;
6000
- const numberOfComponents = readUInt(block, 32, 4, isBigEndian);
6001
- if (numberOfComponents !== 1) return;
5985
+ if (readUInt(block, 16, 0, isBigEndian) === 274) {
5986
+ if (readUInt(block, 16, 2, isBigEndian) !== 3) return;
5987
+ if (readUInt(block, 32, 4, isBigEndian) !== 1) return;
6002
5988
  return readUInt(block, 16, 8, isBigEndian);
6003
5989
  }
6004
5990
  }
@@ -6007,8 +5993,7 @@ function validateExifBlock(input, index) {
6007
5993
  const exifBlock = input.slice(APP1_DATA_SIZE_BYTES, index);
6008
5994
  const byteAlign = toHexString(exifBlock, EXIF_HEADER_BYTES, EXIF_HEADER_BYTES + TIFF_BYTE_ALIGN_BYTES);
6009
5995
  const isBigEndian = byteAlign === BIG_ENDIAN_BYTE_ALIGN;
6010
- const isLittleEndian = byteAlign === LITTLE_ENDIAN_BYTE_ALIGN;
6011
- if (isBigEndian || isLittleEndian) return extractOrientation(exifBlock, isBigEndian);
5996
+ if (isBigEndian || byteAlign === LITTLE_ENDIAN_BYTE_ALIGN) return extractOrientation(exifBlock, isBigEndian);
6012
5997
  }
6013
5998
  function validateInput(input, index) {
6014
5999
  if (index > input.length) throw new TypeError("Corrupt JPG, exceeded buffer limits");
@@ -6114,11 +6099,9 @@ const handlers = {
6114
6099
  const PNM = {
6115
6100
  validate: (input) => toUTF8String(input, 0, 2) in PNMTypes,
6116
6101
  calculate(input) {
6117
- const signature = toUTF8String(input, 0, 2);
6118
- const type = PNMTypes[signature];
6102
+ const type = PNMTypes[toUTF8String(input, 0, 2)];
6119
6103
  const lines = toUTF8String(input, 3).split(/[\n\r]+/);
6120
- const handler = handlers[type] || handlers.default;
6121
- return handler(lines);
6104
+ return (handlers[type] || handlers.default)(lines);
6122
6105
  }
6123
6106
  };
6124
6107
  const PSD = {
@@ -6150,7 +6133,7 @@ const units = {
6150
6133
  const unitsReg = /* @__PURE__ */ new RegExp(`^([0-9.]+(?:e\\d+)?)(${Object.keys(units).join("|")})?$`);
6151
6134
  function parseLength(len) {
6152
6135
  const m = unitsReg.exec(len);
6153
- if (!m) return void 0;
6136
+ if (!m) return;
6154
6137
  return Math.round(Number(m[1]) * (units[m[2]] || 1));
6155
6138
  }
6156
6139
  function parseViewbox(viewbox) {
@@ -6223,8 +6206,7 @@ function readIFD(buffer, isBigEndian) {
6223
6206
  }
6224
6207
  function readValue(buffer, isBigEndian) {
6225
6208
  const low = readUInt(buffer, 16, 8, isBigEndian);
6226
- const high = readUInt(buffer, 16, 10, isBigEndian);
6227
- return (high << 16) + low;
6209
+ return (readUInt(buffer, 16, 10, isBigEndian) << 16) + low;
6228
6210
  }
6229
6211
  function nextTag(buffer) {
6230
6212
  if (buffer.length > 24) return buffer.slice(12);
@@ -6254,8 +6236,7 @@ const TIFF = {
6254
6236
  validate: (input) => signatures.has(toHexString(input, 0, 4)),
6255
6237
  calculate(input) {
6256
6238
  const isBigEndian = determineEndianness(input) === "BE";
6257
- const ifdBuffer = readIFD(input, isBigEndian);
6258
- const tags = extractTags(ifdBuffer, isBigEndian);
6239
+ const tags = extractTags(readIFD(input, isBigEndian), isBigEndian);
6259
6240
  const width = tags[256];
6260
6241
  const height = tags[257];
6261
6242
  if (!width || !height) throw new TypeError("Invalid Tiff. Missing tags");
@@ -6313,19 +6294,16 @@ const AVIF = {
6313
6294
  const iprpBox = findBox(input, "iprp", metaBox.offset + 12, metaBox.offset + metaBox.size);
6314
6295
  const ipcoBox = findBox(input, "ipco", iprpBox.offset + 8, iprpBox.offset + iprpBox.size);
6315
6296
  const ispeBox = findBox(input, "ispe", ipcoBox.offset + 8, ipcoBox.offset + ipcoBox.size);
6316
- const width = readUInt32BE(input, ispeBox.offset + 12);
6317
- const height = readUInt32BE(input, ispeBox.offset + 16);
6318
6297
  return {
6319
- width,
6320
- height
6298
+ width: readUInt32BE(input, ispeBox.offset + 12),
6299
+ height: readUInt32BE(input, ispeBox.offset + 16)
6321
6300
  };
6322
6301
  }
6323
6302
  };
6324
6303
  function findBox(input, type, startOffset = 0, endOffset = input.length) {
6325
6304
  for (let offset = startOffset; offset < endOffset;) {
6326
6305
  const size = readUInt32BE(input, offset);
6327
- const boxType = toUTF8String(input, offset + 4, offset + 8);
6328
- if (boxType === type) return {
6306
+ if (toUTF8String(input, offset + 4, offset + 8) === type) return {
6329
6307
  offset,
6330
6308
  size
6331
6309
  };
@@ -6339,6 +6317,7 @@ const typeHandlers = {
6339
6317
  cur: CUR,
6340
6318
  dds: DDS,
6341
6319
  gif: GIF,
6320
+ heic: HEIC,
6342
6321
  icns: ICNS,
6343
6322
  ico: ICO,
6344
6323
  j2c: J2C,
@@ -6425,8 +6404,7 @@ const join = function(...segments) {
6425
6404
  if (path$11.length > 0) {
6426
6405
  const pathTrailing = path$11[path$11.length - 1] === "/";
6427
6406
  const segLeading = seg[0] === "/";
6428
- const both = pathTrailing && segLeading;
6429
- if (both) path$11 += seg.slice(1);
6407
+ if (pathTrailing && segLeading) path$11 += seg.slice(1);
6430
6408
  else path$11 += pathTrailing || segLeading ? seg : `/${seg}`;
6431
6409
  } else path$11 += seg;
6432
6410
  }
@@ -6517,8 +6495,26 @@ const relative = function(from, to) {
6517
6495
  };
6518
6496
 
6519
6497
  //#endregion
6520
- //#region ../../node_modules/.pnpm/perfect-debounce@1.0.0/node_modules/perfect-debounce/dist/index.mjs
6498
+ //#region ../../node_modules/.pnpm/perfect-debounce@2.0.0/node_modules/perfect-debounce/dist/index.mjs
6521
6499
  const DEBOUNCE_DEFAULTS = { trailing: true };
6500
+ /**
6501
+ Debounce functions
6502
+ @param fn - Promise-returning/async function to debounce.
6503
+ @param wait - Milliseconds to wait before calling `fn`. Default value is 25ms
6504
+ @returns A function that delays calling `fn` until after `wait` milliseconds have elapsed since the last time it was called.
6505
+ @example
6506
+ ```
6507
+ import { debounce } from 'perfect-debounce';
6508
+ const expensiveCall = async input => input;
6509
+ const debouncedFn = debounce(expensiveCall, 200);
6510
+ for (const number of [1, 2, 3]) {
6511
+ console.log(await debouncedFn(number));
6512
+ }
6513
+ //=> 1
6514
+ //=> 2
6515
+ //=> 3
6516
+ ```
6517
+ */
6522
6518
  function debounce(fn, wait = 25, options$1 = {}) {
6523
6519
  options$1 = {
6524
6520
  ...DEBOUNCE_DEFAULTS,
@@ -6542,17 +6538,16 @@ function debounce(fn, wait = 25, options$1 = {}) {
6542
6538
  });
6543
6539
  return currentPromise;
6544
6540
  };
6545
- return function(...args) {
6546
- if (currentPromise) {
6547
- if (options$1.trailing) trailingArgs = args;
6548
- return currentPromise;
6549
- }
6541
+ const debounced = function(...args) {
6542
+ if (options$1.trailing) trailingArgs = args;
6543
+ if (currentPromise) return currentPromise;
6550
6544
  return new Promise((resolve$2) => {
6551
6545
  const shouldCallNow = !timeout && options$1.leading;
6552
6546
  clearTimeout(timeout);
6553
6547
  timeout = setTimeout(() => {
6554
6548
  timeout = null;
6555
6549
  const promise$1 = options$1.leading ? leadingValue : applyFn(this, args);
6550
+ trailingArgs = null;
6556
6551
  for (const _resolve of resolveList) _resolve(promise$1);
6557
6552
  resolveList = [];
6558
6553
  }, wait);
@@ -6562,6 +6557,26 @@ function debounce(fn, wait = 25, options$1 = {}) {
6562
6557
  } else resolveList.push(resolve$2);
6563
6558
  });
6564
6559
  };
6560
+ const _clearTimeout = (timer) => {
6561
+ if (timer) {
6562
+ clearTimeout(timer);
6563
+ timeout = null;
6564
+ }
6565
+ };
6566
+ debounced.isPending = () => !!timeout;
6567
+ debounced.cancel = () => {
6568
+ _clearTimeout(timeout);
6569
+ resolveList = [];
6570
+ trailingArgs = null;
6571
+ };
6572
+ debounced.flush = () => {
6573
+ _clearTimeout(timeout);
6574
+ if (!trailingArgs || currentPromise) return;
6575
+ const args = trailingArgs;
6576
+ trailingArgs = null;
6577
+ return applyFn(this, args);
6578
+ };
6579
+ return debounced;
6565
6580
  }
6566
6581
  async function _applyPromised(fn, _this, args) {
6567
6582
  return await fn.apply(_this, args);
@@ -6624,8 +6639,7 @@ function getAssetsFunctions(ctx) {
6624
6639
  }
6625
6640
  async function getAssetImporters(url) {
6626
6641
  const importers = [];
6627
- const moduleGraph = server.moduleGraph;
6628
- const module$1 = await moduleGraph.getModuleByUrl(url);
6642
+ const module$1 = await server.moduleGraph.getModuleByUrl(url);
6629
6643
  if (module$1) for (const importer of module$1.importers) importers.push({
6630
6644
  url: importer.url,
6631
6645
  id: importer.id
@@ -6655,16 +6669,15 @@ function getAssetsFunctions(ctx) {
6655
6669
  } catch (e) {
6656
6670
  _imageMetaCache.set(filepath, void 0);
6657
6671
  console.error(e);
6658
- return void 0;
6672
+ return;
6659
6673
  }
6660
6674
  },
6661
6675
  async getTextAssetContent(filepath, limit = 300) {
6662
6676
  try {
6663
- const content = await node_fs_promises.default.readFile(filepath, "utf-8");
6664
- return content.slice(0, limit);
6677
+ return (await node_fs_promises.default.readFile(filepath, "utf-8")).slice(0, limit);
6665
6678
  } catch (e) {
6666
6679
  console.error(e);
6667
- return void 0;
6680
+ return;
6668
6681
  }
6669
6682
  }
6670
6683
  };
@@ -6699,7 +6712,7 @@ function getGraphFunctions(ctx) {
6699
6712
  const filteredModules = modules.filter((m) => {
6700
6713
  return m.id.match(/\.(vue|js|ts|jsx|tsx|html|json)($|\?v=)/);
6701
6714
  });
6702
- const graph = filteredModules.map((i) => {
6715
+ return filteredModules.map((i) => {
6703
6716
  function searchForVueDeps(id, seen = /* @__PURE__ */ new Set()) {
6704
6717
  if (seen.has(id)) return [];
6705
6718
  seen.add(id);
@@ -6715,7 +6728,6 @@ function getGraphFunctions(ctx) {
6715
6728
  deps: searchForVueDeps(i.id)
6716
6729
  };
6717
6730
  });
6718
- return graph;
6719
6731
  } };
6720
6732
  }
6721
6733
 
@@ -6741,8 +6753,7 @@ function removeUrlQuery(url) {
6741
6753
  //#endregion
6742
6754
  //#region src/vite.ts
6743
6755
  function getVueDevtoolsPath() {
6744
- const pluginPath = (0, vite.normalizePath)(node_path.default.dirname((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href)));
6745
- return pluginPath.replace(/\/dist$/, "//src");
6756
+ return (0, vite.normalizePath)(node_path.default.dirname((0, node_url.fileURLToPath)(require("url").pathToFileURL(__filename).href))).replace(/\/dist$/, "//src");
6746
6757
  }
6747
6758
  const toggleComboKeysMap = {
6748
6759
  option: process.platform === "darwin" ? "Option(⌥)" : "Alt(⌥)",
@@ -6780,12 +6791,11 @@ function VitePluginVueDevTools(options$1) {
6780
6791
  }
6781
6792
  }));
6782
6793
  (0, __vue_devtools_kit.setViteServerContext)(server);
6783
- const rpcFunctions = getRpcFunctions({
6794
+ (0, __vue_devtools_core.createViteServerRpc)(getRpcFunctions({
6784
6795
  rpc: inspect.api.rpc,
6785
6796
  server,
6786
6797
  config
6787
- });
6788
- (0, __vue_devtools_core.createViteServerRpc)(rpcFunctions);
6798
+ }));
6789
6799
  const _printUrls = server.printUrls;
6790
6800
  const colorUrl = (url) => cyan(url.replace(/:(\d+)\//, (_, port) => `:${bold(port)}/`));
6791
6801
  server.printUrls = () => {
@@ -6813,10 +6823,7 @@ function VitePluginVueDevTools(options$1) {
6813
6823
  },
6814
6824
  async resolveId(importee) {
6815
6825
  if (importee === devtoolsOptionsImportee) return resolvedDevtoolsOptions;
6816
- else if (importee.startsWith("virtual:vue-devtools-path:")) {
6817
- const resolved = importee.replace("virtual:vue-devtools-path:", `${vueDevtoolsPath}/`);
6818
- return `${resolved}${devtoolsNextResourceSymbol}`;
6819
- }
6826
+ else if (importee.startsWith("virtual:vue-devtools-path:")) return `${importee.replace("virtual:vue-devtools-path:", `${vueDevtoolsPath}/`)}${devtoolsNextResourceSymbol}`;
6820
6827
  },
6821
6828
  async load(id) {
6822
6829
  if (id === resolvedDevtoolsOptions) return `export default ${JSON.stringify({