wgsl-test 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -27,16 +27,18 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
27
27
  var __getOwnPropNames = Object.getOwnPropertyNames;
28
28
  var __getProtoOf = Object.getPrototypeOf;
29
29
  var __hasOwnProp = Object.prototype.hasOwnProperty;
30
- var __commonJS = (cb, mod) => function() {
31
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
32
- };
30
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
31
  var __copyProps = (to, from, except, desc) => {
34
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
35
- key = keys[i];
36
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
37
- get: ((k) => from[k]).bind(null, key),
38
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
39
- });
32
+ if (from && typeof from === "object" || typeof from === "function") {
33
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
34
+ key = keys[i];
35
+ if (!__hasOwnProp.call(to, key) && key !== except) {
36
+ __defProp(to, key, {
37
+ get: ((k) => from[k]).bind(null, key),
38
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
39
+ });
40
+ }
41
+ }
40
42
  }
41
43
  return to;
42
44
  };
@@ -326,7 +328,7 @@ function expand_(str, isTop) {
326
328
  }
327
329
 
328
330
  //#endregion
329
- //#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/assert-valid-pattern.js
331
+ //#region ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js
330
332
  const MAX_PATTERN_LENGTH = 1024 * 64;
331
333
  const assertValidPattern = (pattern) => {
332
334
  if (typeof pattern !== "string") throw new TypeError("invalid pattern");
@@ -334,7 +336,7 @@ const assertValidPattern = (pattern) => {
334
336
  };
335
337
 
336
338
  //#endregion
337
- //#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/brace-expressions.js
339
+ //#region ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/brace-expressions.js
338
340
  const posixClasses = {
339
341
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
340
342
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -456,27 +458,33 @@ const parseClass = (glob$1, position) => {
456
458
  };
457
459
 
458
460
  //#endregion
459
- //#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/unescape.js
461
+ //#region ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/unescape.js
460
462
  /**
461
463
  * Un-escape a string that has been escaped with {@link escape}.
462
464
  *
463
- * If the {@link windowsPathsNoEscape} option is used, then square-brace
464
- * escapes are removed, but not backslash escapes. For example, it will turn
465
- * the string `'[*]'` into `*`, but it will not turn `'\\*'` into `'*'`,
466
- * becuase `\` is a path separator in `windowsPathsNoEscape` mode.
465
+ * If the {@link MinimatchOptions.windowsPathsNoEscape} option is used, then
466
+ * square-bracket escapes are removed, but not backslash escapes.
467
+ *
468
+ * For example, it will turn the string `'[*]'` into `*`, but it will not
469
+ * turn `'\\*'` into `'*'`, because `\` is a path separator in
470
+ * `windowsPathsNoEscape` mode.
467
471
  *
468
- * When `windowsPathsNoEscape` is not set, then both brace escapes and
472
+ * When `windowsPathsNoEscape` is not set, then both square-bracket escapes and
469
473
  * backslash escapes are removed.
470
474
  *
471
475
  * Slashes (and backslashes in `windowsPathsNoEscape` mode) cannot be escaped
472
476
  * or unescaped.
477
+ *
478
+ * When `magicalBraces` is not set, escapes of braces (`{` and `}`) will not be
479
+ * unescaped.
473
480
  */
474
- const unescape = (s, { windowsPathsNoEscape = false } = {}) => {
475
- return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
481
+ const unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
482
+ if (magicalBraces) return windowsPathsNoEscape ? s.replace(/\[([^\/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
483
+ return windowsPathsNoEscape ? s.replace(/\[([^\/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^\/\\{}])\]/g, "$1$2").replace(/\\([^\/{}])/g, "$1");
476
484
  };
477
485
 
478
486
  //#endregion
479
- //#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/ast.js
487
+ //#region ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/ast.js
480
488
  const types = new Set([
481
489
  "!",
482
490
  "?",
@@ -721,7 +729,7 @@ var AST = class AST {
721
729
  const dot = allowDot ?? !!this.#options.dot;
722
730
  if (this.#root === this) this.#fillNegs();
723
731
  if (!this.type) {
724
- const noEmpty = this.isStart() && this.isEnd();
732
+ const noEmpty = this.isStart() && this.isEnd() && !this.#parts.some((s) => typeof s !== "string");
725
733
  const src = this.#parts.map((p) => {
726
734
  const [re, _, hasMagic$1, uflag] = typeof p === "string" ? AST.#parseGlob(p, this.#hasMagic, noEmpty) : p.toRegExpSource(allowDot);
727
735
  this.#hasMagic = this.#hasMagic || hasMagic$1;
@@ -816,8 +824,7 @@ var AST = class AST {
816
824
  }
817
825
  }
818
826
  if (c === "*") {
819
- if (noEmpty && glob$1 === "*") re += starNoEmpty;
820
- else re += star$1;
827
+ re += noEmpty && glob$1 === "*" ? starNoEmpty : star$1;
821
828
  hasMagic$1 = true;
822
829
  continue;
823
830
  }
@@ -838,22 +845,26 @@ var AST = class AST {
838
845
  };
839
846
 
840
847
  //#endregion
841
- //#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/escape.js
848
+ //#region ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/escape.js
842
849
  /**
843
850
  * Escape all magic characters in a glob pattern.
844
851
  *
845
- * If the {@link windowsPathsNoEscape | GlobOptions.windowsPathsNoEscape}
852
+ * If the {@link MinimatchOptions.windowsPathsNoEscape}
846
853
  * option is used, then characters are escaped by wrapping in `[]`, because
847
854
  * a magic character wrapped in a character class can only be satisfied by
848
855
  * that exact character. In this mode, `\` is _not_ escaped, because it is
849
856
  * not interpreted as a magic character, but instead as a path separator.
857
+ *
858
+ * If the {@link MinimatchOptions.magicalBraces} option is used,
859
+ * then braces (`{` and `}`) will be escaped.
850
860
  */
851
- const escape = (s, { windowsPathsNoEscape = false } = {}) => {
861
+ const escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
862
+ if (magicalBraces) return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
852
863
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
853
864
  };
854
865
 
855
866
  //#endregion
856
- //#region ../../node_modules/.pnpm/minimatch@10.0.3/node_modules/minimatch/dist/esm/index.js
867
+ //#region ../../node_modules/.pnpm/minimatch@10.1.1/node_modules/minimatch/dist/esm/index.js
857
868
  const minimatch = (p, pattern, options = {}) => {
858
869
  assertValidPattern(pattern);
859
870
  if (!options.nocomment && pattern.charAt(0) === "#") return false;
@@ -1360,16 +1371,23 @@ var Minimatch = class {
1360
1371
  if (p !== GLOBSTAR || prev === GLOBSTAR) return;
1361
1372
  if (prev === void 0) if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = "(?:\\/|" + twoStar + "\\/)?" + next;
1362
1373
  else pp[i] = twoStar;
1363
- else if (next === void 0) pp[i - 1] = prev + "(?:\\/|" + twoStar + ")?";
1374
+ else if (next === void 0) pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + ")?";
1364
1375
  else if (next !== GLOBSTAR) {
1365
1376
  pp[i - 1] = prev + "(?:\\/|\\/" + twoStar + "\\/)" + next;
1366
1377
  pp[i + 1] = GLOBSTAR;
1367
1378
  }
1368
1379
  });
1369
- return pp.filter((p) => p !== GLOBSTAR).join("/");
1380
+ const filtered = pp.filter((p) => p !== GLOBSTAR);
1381
+ if (this.partial && filtered.length >= 1) {
1382
+ const prefixes = [];
1383
+ for (let i = 1; i <= filtered.length; i++) prefixes.push(filtered.slice(0, i).join("/"));
1384
+ return "(?:" + prefixes.join("|") + ")";
1385
+ }
1386
+ return filtered.join("/");
1370
1387
  }).join("|");
1371
1388
  const [open, close] = set.length > 1 ? ["(?:", ")"] : ["", ""];
1372
1389
  re = "^" + open + re + close + "$";
1390
+ if (this.partial) re = "^(?:\\/|" + open + re.slice(1, -1) + close + ")$";
1373
1391
  if (this.negate) re = "^(?!" + re + ").+$";
1374
1392
  try {
1375
1393
  this.regexp = new RegExp(re, [...flags].join(""));
@@ -1420,7 +1438,7 @@ minimatch.escape = escape;
1420
1438
  minimatch.unescape = unescape;
1421
1439
 
1422
1440
  //#endregion
1423
- //#region ../../node_modules/.pnpm/lru-cache@11.2.2/node_modules/lru-cache/dist/esm/index.js
1441
+ //#region ../../node_modules/.pnpm/lru-cache@11.2.4/node_modules/lru-cache/dist/esm/index.js
1424
1442
  /**
1425
1443
  * @module LRUCache
1426
1444
  */
@@ -1607,6 +1625,7 @@ var LRUCache = class LRUCache {
1607
1625
  #sizes;
1608
1626
  #starts;
1609
1627
  #ttls;
1628
+ #autopurgeTimers;
1610
1629
  #hasDispose;
1611
1630
  #hasFetchMethod;
1612
1631
  #hasDisposeAfter;
@@ -1624,6 +1643,7 @@ var LRUCache = class LRUCache {
1624
1643
  return {
1625
1644
  starts: c.#starts,
1626
1645
  ttls: c.#ttls,
1646
+ autopurgeTimers: c.#autopurgeTimers,
1627
1647
  sizes: c.#sizes,
1628
1648
  keyMap: c.#keyMap,
1629
1649
  keyList: c.#keyList,
@@ -1785,15 +1805,23 @@ var LRUCache = class LRUCache {
1785
1805
  const starts = new ZeroArray(this.#max);
1786
1806
  this.#ttls = ttls;
1787
1807
  this.#starts = starts;
1808
+ const purgeTimers = this.ttlAutopurge ? new Array(this.#max) : void 0;
1809
+ this.#autopurgeTimers = purgeTimers;
1788
1810
  this.#setItemTTL = (index, ttl, start = this.#perf.now()) => {
1789
1811
  starts[index] = ttl !== 0 ? start : 0;
1790
1812
  ttls[index] = ttl;
1791
- if (ttl !== 0 && this.ttlAutopurge) {
1813
+ if (purgeTimers?.[index]) {
1814
+ clearTimeout(purgeTimers[index]);
1815
+ purgeTimers[index] = void 0;
1816
+ }
1817
+ if (ttl !== 0 && purgeTimers) {
1792
1818
  const t = setTimeout(() => {
1793
1819
  if (this.#isStale(index)) this.#delete(this.#keyList[index], "expire");
1794
1820
  }, ttl + 1);
1795
1821
  /* c8 ignore start */
1796
1822
  if (t.unref) t.unref();
1823
+ /* c8 ignore stop */
1824
+ purgeTimers[index] = t;
1797
1825
  }
1798
1826
  };
1799
1827
  this.#updateItemAge = (index) => {
@@ -2242,6 +2270,10 @@ var LRUCache = class LRUCache {
2242
2270
  ]);
2243
2271
  }
2244
2272
  this.#removeItemSize(head);
2273
+ if (this.#autopurgeTimers?.[head]) {
2274
+ clearTimeout(this.#autopurgeTimers[head]);
2275
+ this.#autopurgeTimers[head] = void 0;
2276
+ }
2245
2277
  if (free) {
2246
2278
  this.#keyList[head] = void 0;
2247
2279
  this.#valList[head] = void 0;
@@ -2455,7 +2487,7 @@ var LRUCache = class LRUCache {
2455
2487
  memo(k, memoOptions = {}) {
2456
2488
  const memoMethod = this.#memoMethod;
2457
2489
  if (!memoMethod) throw new Error("no memoMethod provided to constructor");
2458
- const { context, forceRefresh,...options } = memoOptions;
2490
+ const { context, forceRefresh, ...options } = memoOptions;
2459
2491
  const v = this.get(k, options);
2460
2492
  if (!forceRefresh && v !== void 0) return v;
2461
2493
  const vv = memoMethod(k, v, {
@@ -2522,6 +2554,10 @@ var LRUCache = class LRUCache {
2522
2554
  if (this.#size !== 0) {
2523
2555
  const index = this.#keyMap.get(k);
2524
2556
  if (index !== void 0) {
2557
+ if (this.#autopurgeTimers?.[index]) {
2558
+ clearTimeout(this.#autopurgeTimers?.[index]);
2559
+ this.#autopurgeTimers[index] = void 0;
2560
+ }
2525
2561
  deleted = true;
2526
2562
  if (this.#size === 1) this.#clear(reason);
2527
2563
  else {
@@ -2585,6 +2621,8 @@ var LRUCache = class LRUCache {
2585
2621
  if (this.#ttls && this.#starts) {
2586
2622
  this.#ttls.fill(0);
2587
2623
  this.#starts.fill(0);
2624
+ for (const t of this.#autopurgeTimers ?? []) if (t !== void 0) clearTimeout(t);
2625
+ this.#autopurgeTimers?.fill(void 0);
2588
2626
  }
2589
2627
  if (this.#sizes) this.#sizes.fill(0);
2590
2628
  this.#head = 0;
@@ -3419,7 +3457,7 @@ while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length);
3419
3457
  };
3420
3458
 
3421
3459
  //#endregion
3422
- //#region ../../node_modules/.pnpm/path-scurry@2.0.0/node_modules/path-scurry/dist/esm/index.js
3460
+ //#region ../../node_modules/.pnpm/path-scurry@2.0.1/node_modules/path-scurry/dist/esm/index.js
3423
3461
  const realpathSync$2 = realpathSync$1.native;
3424
3462
  const defaultFS = {
3425
3463
  lstatSync,
@@ -3464,7 +3502,7 @@ const ENOREALPATH = 512;
3464
3502
  const ENOCHILD = ENOENT | 576;
3465
3503
  const TYPEMASK = 1023;
3466
3504
  const entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
3467
- const normalizeCache = /* @__PURE__ */ new Map();
3505
+ const normalizeCache = new LRUCache({ max: 2 ** 12 });
3468
3506
  const normalize = (s) => {
3469
3507
  const c = normalizeCache.get(s);
3470
3508
  if (c) return c;
@@ -3472,7 +3510,7 @@ const normalize = (s) => {
3472
3510
  normalizeCache.set(s, n);
3473
3511
  return n;
3474
3512
  };
3475
- const normalizeNocaseCache = /* @__PURE__ */ new Map();
3513
+ const normalizeNocaseCache = new LRUCache({ max: 2 ** 12 });
3476
3514
  const normalizeNocase = (s) => {
3477
3515
  const c = normalizeNocaseCache.get(s);
3478
3516
  if (c) return c;
@@ -3646,6 +3684,7 @@ var PathBase = class {
3646
3684
  get parentPath() {
3647
3685
  return (this.parent || this).fullpath();
3648
3686
  }
3687
+ /* c8 ignore start */
3649
3688
  /**
3650
3689
  * Deprecated alias for Dirent['parentPath'] Somewhat counterintuitively,
3651
3690
  * this property refers to the *parent* path, not the path object itself.
@@ -3655,6 +3694,7 @@ var PathBase = class {
3655
3694
  get path() {
3656
3695
  return this.parentPath;
3657
3696
  }
3697
+ /* c8 ignore stop */
3658
3698
  /**
3659
3699
  * Do not create new Path objects directly. They should always be accessed
3660
3700
  * via the PathScurry class or other methods on the Path class.
@@ -4983,7 +5023,7 @@ const Path = process.platform === "win32" ? PathWin32 : PathPosix;
4983
5023
  const PathScurry = process.platform === "win32" ? PathScurryWin32 : process.platform === "darwin" ? PathScurryDarwin : PathScurryPosix;
4984
5024
 
4985
5025
  //#endregion
4986
- //#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/pattern.js
5026
+ //#region ../../node_modules/.pnpm/glob@13.0.0/node_modules/glob/dist/esm/pattern.js
4987
5027
  const isPatternList = (pl) => pl.length >= 1;
4988
5028
  const isGlobList = (gl) => gl.length >= 1;
4989
5029
  /**
@@ -5146,7 +5186,7 @@ var Pattern = class Pattern {
5146
5186
  };
5147
5187
 
5148
5188
  //#endregion
5149
- //#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/ignore.js
5189
+ //#region ../../node_modules/.pnpm/glob@13.0.0/node_modules/glob/dist/esm/ignore.js
5150
5190
  const defaultPlatform$1 = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
5151
5191
  /**
5152
5192
  * Class used to process ignored patterns
@@ -5218,7 +5258,7 @@ var Ignore = class {
5218
5258
  };
5219
5259
 
5220
5260
  //#endregion
5221
- //#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/processor.js
5261
+ //#region ../../node_modules/.pnpm/glob@13.0.0/node_modules/glob/dist/esm/processor.js
5222
5262
  /**
5223
5263
  * A cache of which patterns have been processed for a given Path
5224
5264
  */
@@ -5411,7 +5451,13 @@ var Processor = class Processor {
5411
5451
  };
5412
5452
 
5413
5453
  //#endregion
5414
- //#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/walker.js
5454
+ //#region ../../node_modules/.pnpm/glob@13.0.0/node_modules/glob/dist/esm/walker.js
5455
+ /**
5456
+ * Single-use utility classes to provide functionality to the {@link Glob}
5457
+ * methods.
5458
+ *
5459
+ * @module
5460
+ */
5415
5461
  const makeIgnore = (ignore, opts) => typeof ignore === "string" ? new Ignore([ignore], opts) : Array.isArray(ignore) ? new Ignore(ignore, opts) : ignore;
5416
5462
  /**
5417
5463
  * basic walking utilities that all the glob walker types use
@@ -5690,7 +5736,7 @@ var GlobStream = class extends GlobUtil {
5690
5736
  };
5691
5737
 
5692
5738
  //#endregion
5693
- //#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/glob.js
5739
+ //#region ../../node_modules/.pnpm/glob@13.0.0/node_modules/glob/dist/esm/glob.js
5694
5740
  const defaultPlatform = typeof process === "object" && process && typeof process.platform === "string" ? process.platform : "linux";
5695
5741
  /**
5696
5742
  * An object that can perform glob pattern traversals.
@@ -5877,7 +5923,7 @@ var Glob = class {
5877
5923
  };
5878
5924
 
5879
5925
  //#endregion
5880
- //#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/has-magic.js
5926
+ //#region ../../node_modules/.pnpm/glob@13.0.0/node_modules/glob/dist/esm/has-magic.js
5881
5927
  /**
5882
5928
  * Return true if the patterns provided contain any magic glob characters,
5883
5929
  * given the options provided.
@@ -5896,7 +5942,7 @@ const hasMagic = (pattern, options = {}) => {
5896
5942
  };
5897
5943
 
5898
5944
  //#endregion
5899
- //#region ../../node_modules/.pnpm/glob@11.0.3/node_modules/glob/dist/esm/index.js
5945
+ //#region ../../node_modules/.pnpm/glob@13.0.0/node_modules/glob/dist/esm/index.js
5900
5946
  function globStreamSync(pattern, options = {}) {
5901
5947
  return new Glob(pattern, options).streamSync();
5902
5948
  }
@@ -5944,7 +5990,7 @@ glob.glob = glob;
5944
5990
 
5945
5991
  //#endregion
5946
5992
  //#region ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/parser.js
5947
- var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/parser.js": ((exports, module) => {
5993
+ var require_parser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
5948
5994
  module.exports = (function() {
5949
5995
  function peg$subclass(child, parent) {
5950
5996
  function ctor() {
@@ -9579,11 +9625,11 @@ var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml
9579
9625
  parse
9580
9626
  };
9581
9627
  })();
9582
- }) });
9628
+ }));
9583
9629
 
9584
9630
  //#endregion
9585
9631
  //#region ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/compiler.js
9586
- var require_compiler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/compiler.js": ((exports, module) => {
9632
+ var require_compiler = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9587
9633
  function compile(nodes) {
9588
9634
  var assignedPaths = [];
9589
9635
  var valueAssignments = [];
@@ -9707,18 +9753,18 @@ var require_compiler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/to
9707
9753
  }
9708
9754
  }
9709
9755
  module.exports = { compile };
9710
- }) });
9756
+ }));
9711
9757
 
9712
9758
  //#endregion
9713
9759
  //#region ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/index.js
9714
- var require_toml = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/index.js": ((exports, module) => {
9760
+ var require_toml = /* @__PURE__ */ __commonJSMin(((exports, module) => {
9715
9761
  var parser = require_parser();
9716
9762
  var compiler = require_compiler();
9717
9763
  module.exports = { parse: function(input) {
9718
9764
  var nodes = parser.parse(input.toString());
9719
9765
  return compiler.compile(nodes);
9720
9766
  } };
9721
- }) });
9767
+ }));
9722
9768
 
9723
9769
  //#endregion
9724
9770
  //#region ../wesl-tooling/src/LoadWeslToml.ts
@@ -9780,6 +9826,19 @@ async function findWeslToml(projectDir, specifiedToml) {
9780
9826
 
9781
9827
  //#endregion
9782
9828
  //#region ../../node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/errors.js
9829
+ /**
9830
+ * @typedef ErrnoExceptionFields
9831
+ * @property {number | undefined} [errnode]
9832
+ * @property {string | undefined} [code]
9833
+ * @property {string | undefined} [path]
9834
+ * @property {string | undefined} [syscall]
9835
+ * @property {string | undefined} [url]
9836
+ *
9837
+ * @typedef {Error & ErrnoExceptionFields} ErrnoException
9838
+ */
9839
+ /**
9840
+ * @typedef {(...parameters: Array<any>) => string} MessageFunction
9841
+ */
9783
9842
  const own$1 = {}.hasOwnProperty;
9784
9843
  const classRegExp = /^([A-Z][a-z\d]*)+$/;
9785
9844
  const kTypes = new Set([
@@ -10104,6 +10163,20 @@ function determineSpecificType(value) {
10104
10163
 
10105
10164
  //#endregion
10106
10165
  //#region ../../node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/package-json-reader.js
10166
+ /**
10167
+ * @typedef {import('./errors.js').ErrnoException} ErrnoException
10168
+ *
10169
+ * @typedef {'commonjs' | 'module' | 'none'} PackageType
10170
+ *
10171
+ * @typedef PackageConfig
10172
+ * @property {string} pjsonPath
10173
+ * @property {boolean} exists
10174
+ * @property {string | undefined} [main]
10175
+ * @property {string | undefined} [name]
10176
+ * @property {PackageType} type
10177
+ * @property {Record<string, unknown> | undefined} [exports]
10178
+ * @property {Record<string, unknown> | undefined} [imports]
10179
+ */
10107
10180
  const hasOwnProperty$1 = {}.hasOwnProperty;
10108
10181
  const { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
10109
10182
  /** @type {Map<string, PackageConfig>} */
@@ -10319,6 +10392,11 @@ function getConditionsSet(conditions) {
10319
10392
 
10320
10393
  //#endregion
10321
10394
  //#region ../../node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/resolve.js
10395
+ /**
10396
+ * @typedef {import('node:fs').Stats} Stats
10397
+ * @typedef {import('./errors.js').ErrnoException} ErrnoException
10398
+ * @typedef {import('./package-json-reader.js').PackageConfig} PackageConfig
10399
+ */
10322
10400
  const RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
10323
10401
  const { ERR_NETWORK_IMPORT_DISALLOWED, ERR_INVALID_MODULE_SPECIFIER, ERR_INVALID_PACKAGE_CONFIG, ERR_INVALID_PACKAGE_TARGET, ERR_MODULE_NOT_FOUND, ERR_PACKAGE_IMPORT_NOT_DEFINED, ERR_PACKAGE_PATH_NOT_EXPORTED, ERR_UNSUPPORTED_DIR_IMPORT, ERR_UNSUPPORTED_RESOLVE_REQUEST } = codes;
10324
10402
  const own = {}.hasOwnProperty;
@@ -10975,6 +11053,9 @@ function defaultResolve(specifier, context = {}) {
10975
11053
  //#endregion
10976
11054
  //#region ../../node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/index.js
10977
11055
  /**
11056
+ * @typedef {import('./lib/errors.js').ErrnoException} ErrnoException
11057
+ */
11058
+ /**
10978
11059
  * Match `import.meta.resolve` except that `parent` is required (you can pass
10979
11060
  * `import.meta.url`).
10980
11061
  *