@savvy-web/silk 3.5.0 → 3.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -399,7 +399,7 @@ const trimTrailingSlashes = (s) => {
399
399
  return s.slice(0, end);
400
400
  };
401
401
  //#endregion
402
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/limits.js
402
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/limits.js
403
403
  /** Hard cap on pattern length. Upstream minimatch's MAX_PATTERN_LENGTH (64KB). */
404
404
  const MAX_PATTERN_LENGTH = 65536;
405
405
  /** Default brace-expansion output budget. Upstream brace-expansion's EXPANSION_MAX. */
@@ -433,7 +433,7 @@ const assertCap = (name, value) => {
433
433
  return value;
434
434
  };
435
435
  //#endregion
436
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/unescape.js
436
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/unescape.js
437
437
  /**
438
438
  * Un-escape a string that has been escaped with `escape`.
439
439
  *
@@ -456,11 +456,11 @@ const unescapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = true
456
456
  return windowsPathsNoEscape ? s.replace(/\[([^/\\{}])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\{}])\]/g, "$1$2").replace(/\\([^/{}])/g, "$1");
457
457
  };
458
458
  //#endregion
459
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/types.js
459
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/types.js
460
460
  /** The globstar marker in a compiled pattern set. */
461
461
  const GLOBSTAR = Symbol("globstar **");
462
462
  //#endregion
463
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/escape.js
463
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/escape.js
464
464
  /**
465
465
  * Escape all magic characters in a glob pattern.
466
466
  *
@@ -478,13 +478,13 @@ const escapePattern = (s, { windowsPathsNoEscape = false, magicalBraces = false
478
478
  return windowsPathsNoEscape ? s.replace(/[?*()[\]]/g, "[$&]") : s.replace(/[?*()[\]\\]/g, "\\$&");
479
479
  };
480
480
  //#endregion
481
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/assertValidPattern.js
481
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/assertValidPattern.js
482
482
  const assertValidPattern = (pattern) => {
483
483
  if (typeof pattern !== "string") throw new TypeError("invalid pattern");
484
484
  if (pattern.length > 65536) throw new GuardExceeded("PatternTooLong", MAX_PATTERN_LENGTH, pattern.length);
485
485
  };
486
486
  //#endregion
487
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/braceExpressions.js
487
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/braceExpressions.js
488
488
  const posixClasses = {
489
489
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
490
490
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -607,7 +607,7 @@ const parseClass = (glob, position) => {
607
607
  ];
608
608
  };
609
609
  //#endregion
610
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/ast.js
610
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/ast.js
611
611
  const types = /* @__PURE__ */ new Set([
612
612
  "!",
613
613
  "?",
@@ -1124,7 +1124,7 @@ var AST = class AST {
1124
1124
  }
1125
1125
  };
1126
1126
  //#endregion
1127
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/balancedMatch.js
1127
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/balancedMatch.js
1128
1128
  const maybeMatch = (reg, str) => {
1129
1129
  const m = str.match(reg);
1130
1130
  return m ? m[0] : null;
@@ -1182,7 +1182,7 @@ const range = (a, b, str) => {
1182
1182
  return result;
1183
1183
  };
1184
1184
  //#endregion
1185
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/braceExpansion.js
1185
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/braceExpansion.js
1186
1186
  const escSlash = `\0SLASH${Math.random()}\0`;
1187
1187
  const escOpen = `\0OPEN${Math.random()}\0`;
1188
1188
  const escClose = `\0CLOSE${Math.random()}\0`;
@@ -1329,7 +1329,7 @@ function expand_(str, max, isTopInput, depth) {
1329
1329
  }
1330
1330
  }
1331
1331
  //#endregion
1332
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/internal/minimatch.js
1332
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/internal/minimatch.js
1333
1333
  const starDotExtRE = /^\*+([^+@!?*[(]*)$/;
1334
1334
  const starDotExtTest = (ext) => (f) => !f.startsWith(".") && f.endsWith(ext);
1335
1335
  const starDotExtTestDot = (ext) => (f) => f.endsWith(ext);
@@ -1842,9 +1842,10 @@ var Minimatch = class {
1842
1842
  const next = pp[i + 1];
1843
1843
  const prev = pp[i - 1];
1844
1844
  if (p !== GLOBSTAR || prev === GLOBSTAR) return;
1845
- if (prev === void 0) if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = `(?:\\/|${twoStar}\\/)?${next}`;
1846
- else pp[i] = twoStar;
1847
- else if (next === void 0) pp[i - 1] = `${prev}(?:\\/|\\/${twoStar})?`;
1845
+ if (prev === void 0) {
1846
+ if (next !== void 0 && next !== GLOBSTAR) pp[i + 1] = `(?:\\/|${twoStar}\\/)?${next}`;
1847
+ else pp[i] = twoStar;
1848
+ } else if (next === void 0) pp[i - 1] = `${prev}(?:\\/|\\/${twoStar})?`;
1848
1849
  else if (next !== GLOBSTAR) {
1849
1850
  pp[i - 1] = `${prev}(?:\\/|\\/${twoStar}\\/)${next}`;
1850
1851
  pp[i + 1] = GLOBSTAR;
@@ -1901,7 +1902,7 @@ var Minimatch = class {
1901
1902
  }
1902
1903
  };
1903
1904
  //#endregion
1904
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/GlobPattern.js
1905
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/GlobPattern.js
1905
1906
  /**
1906
1907
  * Typed failure raised when a glob pattern trips a compile-time guard:
1907
1908
  * over-length, brace-expansion budget exhaustion, or nesting past the depth
@@ -1911,7 +1912,7 @@ var Minimatch = class {
1911
1912
  *
1912
1913
  * @public
1913
1914
  */
1914
- var GlobPatternError = class extends effect.Schema.TaggedErrorClass()("GlobPatternError", {
1915
+ var GlobPatternError = class extends effect.Schema.TaggedError()("GlobPatternError", {
1915
1916
  pattern: effect.Schema.String,
1916
1917
  reason: effect.Schema.Literals([
1917
1918
  "PatternTooLong",
@@ -2180,7 +2181,7 @@ var GlobPattern = class GlobPattern extends effect.Schema.Class("GlobPattern")(e
2180
2181
  })));
2181
2182
  };
2182
2183
  //#endregion
2183
- //#region ../../node_modules/.pnpm/@effected+glob@0.2.2_effect@4.0.0-beta.101/node_modules/@effected/glob/GlobSet.js
2184
+ //#region ../../node_modules/.pnpm/@effected+glob@0.3.0_effect@4.0.0-beta.107/node_modules/@effected/glob/GlobSet.js
2184
2185
  const exclusionTarget = (pattern) => pattern.startsWith("!") ? pattern.slice(1) : void 0;
2185
2186
  const allCompileUnderDefaults = (patterns) => {
2186
2187
  for (const pattern of patterns) {
@@ -2334,7 +2335,7 @@ var GlobSet = class GlobSet extends effect.Schema.Class("GlobSet")(effect.Schema
2334
2335
  }
2335
2336
  };
2336
2337
  //#endregion
2337
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/BunExtension.js
2338
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/BunExtension.js
2338
2339
  /**
2339
2340
  * Extension data specific to bun lockfiles, attached to `Lockfile.extension`
2340
2341
  * when the format is `"bun"`.
@@ -2355,7 +2356,7 @@ var BunExtension = class extends effect.Schema.Class("BunExtension")({
2355
2356
  trustedDependencies: effect.Schema.optionalKey(effect.Schema.Array(effect.Schema.String))
2356
2357
  }) {};
2357
2358
  //#endregion
2358
- //#region ../../node_modules/.pnpm/@effected+npm@0.8.3_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/CatalogResolver.js
2359
+ //#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/CatalogResolver.js
2359
2360
  /**
2360
2361
  * Contract for resolving pnpm `catalog:` dependency specifiers to concrete
2361
2362
  * version ranges.
@@ -2401,7 +2402,7 @@ var CatalogResolver = class CatalogResolver extends effect.Context.Service()("@e
2401
2402
  static noop = effect.Layer.succeed(CatalogResolver, { rangeOf: () => effect.Effect.succeed(effect.Option.none()) });
2402
2403
  };
2403
2404
  //#endregion
2404
- //#region ../../node_modules/.pnpm/@effected+npm@0.8.3_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/WorkspaceResolver.js
2405
+ //#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/WorkspaceResolver.js
2405
2406
  /**
2406
2407
  * Raised when a `catalog:` or `workspace:` specifier cannot be resolved
2407
2408
  * because the resolution mechanism itself failed — not for an ordinary
@@ -2415,7 +2416,7 @@ var CatalogResolver = class CatalogResolver extends effect.Context.Service()("@e
2415
2416
  *
2416
2417
  * @public
2417
2418
  */
2418
- var DependencyResolutionError = class extends effect.Schema.TaggedErrorClass()("DependencyResolutionError", {
2419
+ var DependencyResolutionError = class extends effect.Schema.TaggedError()("DependencyResolutionError", {
2419
2420
  specifier: effect.Schema.String,
2420
2421
  cause: effect.Schema.Defect()
2421
2422
  }) {
@@ -2462,7 +2463,7 @@ var WorkspaceResolver = class WorkspaceResolver extends effect.Context.Service()
2462
2463
  static noop = effect.Layer.succeed(WorkspaceResolver, { versionOf: () => effect.Effect.succeed(effect.Option.none()) });
2463
2464
  };
2464
2465
  //#endregion
2465
- //#region ../../node_modules/.pnpm/@effected+npm@0.8.3_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/CatalogAssemblyError.js
2466
+ //#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/CatalogAssemblyError.js
2466
2467
  /**
2467
2468
  * Raised when a workspace's catalogs cannot be assembled — a `pnpm-workspace.yaml`
2468
2469
  * that is unreadable or not valid YAML, a root `package.json` `workspaces` field
@@ -2484,7 +2485,7 @@ var WorkspaceResolver = class WorkspaceResolver extends effect.Context.Service()
2484
2485
  *
2485
2486
  * @public
2486
2487
  */
2487
- var CatalogAssemblyError = class extends effect.Schema.TaggedErrorClass()("CatalogAssemblyError", {
2488
+ var CatalogAssemblyError = class extends effect.Schema.TaggedError()("CatalogAssemblyError", {
2488
2489
  /**
2489
2490
  * Which input failed: `manifest` for a file-level or top-level shape problem,
2490
2491
  * `catalog` for a malformed catalog block or the double-default duplication,
@@ -2506,7 +2507,7 @@ var CatalogAssemblyError = class extends effect.Schema.TaggedErrorClass()("Catal
2506
2507
  }
2507
2508
  };
2508
2509
  //#endregion
2509
- //#region ../../node_modules/.pnpm/@effected+npm@0.8.3_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/DependencySection.js
2510
+ //#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/DependencySection.js
2510
2511
  /**
2511
2512
  * The short dependency kind: which dependency map an entry came from, named the
2512
2513
  * way consumers branch on it.
@@ -2538,7 +2539,7 @@ Object.fromEntries(Object.entries({
2538
2539
  optional: "optionalDependencies"
2539
2540
  }).map(([kind, field]) => [field, kind]));
2540
2541
  //#endregion
2541
- //#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/desugar.js
2542
+ //#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/desugar.js
2542
2543
  const sv = (major, minor, patch, prerelease = [], build = []) => ({
2543
2544
  major,
2544
2545
  minor,
@@ -2627,7 +2628,7 @@ const desugarHyphen = (lower, upper) => {
2627
2628
  return [comp(">=", lowerVersion)];
2628
2629
  };
2629
2630
  //#endregion
2630
- //#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/grammar.js
2631
+ //#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/grammar.js
2631
2632
  /** Private control-flow exception; never escapes the entry points. */
2632
2633
  var ParseFailure = class {
2633
2634
  position;
@@ -3027,7 +3028,7 @@ const formatComparator = (c) => {
3027
3028
  /** Print comparator sets as `a b || c d`. */
3028
3029
  const formatRange = (sets) => sets.map((set) => set.map(formatComparator).join(" ")).join(" || ");
3029
3030
  //#endregion
3030
- //#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/order.js
3031
+ //#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/order.js
3031
3032
  /**
3032
3033
  * Compare two prerelease identifiers per SemVer 2.0.0 §11: numeric
3033
3034
  * identifiers always have lower precedence than alphanumeric ones; numerics
@@ -3080,7 +3081,7 @@ const compareBuild = (a, b) => {
3080
3081
  return 0;
3081
3082
  };
3082
3083
  //#endregion
3083
- //#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/SemVer.js
3084
+ //#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/SemVer.js
3084
3085
  /**
3085
3086
  * Indicates that a string could not be parsed as a valid SemVer 2.0.0 version.
3086
3087
  *
@@ -3092,7 +3093,7 @@ const compareBuild = (a, b) => {
3092
3093
  * @see {@link https://semver.org | SemVer 2.0.0 Specification}
3093
3094
  * @public
3094
3095
  */
3095
- var InvalidVersionError = class extends effect.Schema.TaggedErrorClass()("InvalidVersionError", {
3096
+ var InvalidVersionError = class extends effect.Schema.TaggedError()("InvalidVersionError", {
3096
3097
  /** The raw input string that failed to parse. */
3097
3098
  input: effect.Schema.String,
3098
3099
  /** The character position where parsing failed, if available. */
@@ -3156,7 +3157,7 @@ var SemVer = class SemVer extends effect.Schema.Class("SemVer")({
3156
3157
  static FromString = effect.Schema.String.pipe(effect.Schema.decodeTo(SemVer, effect.SchemaTransformation.transformOrFail({
3157
3158
  decode: (input) => {
3158
3159
  const result = parseVersion(input);
3159
- return result.ok ? effect.Effect.succeed(result.value) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message: `Invalid version string: "${result.input}" at position ${result.position}` }));
3160
+ return result.ok ? effect.Effect.succeed(result.value) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: `Invalid version string: "${result.input}" at position ${result.position}` }, input));
3160
3161
  },
3161
3162
  encode: (parts) => effect.Effect.succeed(formatVersion(parts))
3162
3163
  })));
@@ -3591,7 +3592,7 @@ var SemVerBump = class {
3591
3592
  }
3592
3593
  };
3593
3594
  //#endregion
3594
- //#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/Comparator.js
3595
+ //#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/Comparator.js
3595
3596
  /**
3596
3597
  * Indicates that a string could not be parsed as a single comparator.
3597
3598
  *
@@ -3601,7 +3602,7 @@ var SemVerBump = class {
3601
3602
  *
3602
3603
  * @public
3603
3604
  */
3604
- var InvalidComparatorError = class extends effect.Schema.TaggedErrorClass()("InvalidComparatorError", {
3605
+ var InvalidComparatorError = class extends effect.Schema.TaggedError()("InvalidComparatorError", {
3605
3606
  /** The raw input string that failed to parse. */
3606
3607
  input: effect.Schema.String,
3607
3608
  /** The character position where parsing failed, if available. */
@@ -3654,7 +3655,7 @@ var Comparator = class Comparator extends effect.Schema.Class("Comparator")({
3654
3655
  static FromString = effect.Schema.String.pipe(effect.Schema.decodeTo(Comparator, effect.SchemaTransformation.transformOrFail({
3655
3656
  decode: (input) => {
3656
3657
  const result = parseComparator(input);
3657
- return result.ok ? effect.Effect.succeed(result.value) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message: `Invalid comparator: "${result.input}" at position ${result.position}` }));
3658
+ return result.ok ? effect.Effect.succeed(result.value) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: `Invalid comparator: "${result.input}" at position ${result.position}` }, input));
3658
3659
  },
3659
3660
  encode: (parts) => effect.Effect.succeed(formatComparator(parts))
3660
3661
  })));
@@ -3725,7 +3726,7 @@ var Comparator = class Comparator extends effect.Schema.Class("Comparator")({
3725
3726
  }
3726
3727
  };
3727
3728
  //#endregion
3728
- //#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/internal/normalize.js
3729
+ //#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/internal/normalize.js
3729
3730
  const operatorWeight = (op) => {
3730
3731
  switch (op) {
3731
3732
  case ">=": return 0;
@@ -3756,7 +3757,7 @@ const normalizeComparatorSet = (set) => sortComparators(removeDuplicates(set));
3756
3757
  /** Normalize every comparator set in a range: sort and deduplicate each independently. */
3757
3758
  const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
3758
3759
  //#endregion
3759
- //#region ../../node_modules/.pnpm/@effected+semver@0.3.2_effect@4.0.0-beta.101/node_modules/@effected/semver/Range.js
3760
+ //#region ../../node_modules/.pnpm/@effected+semver@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/semver/Range.js
3760
3761
  /**
3761
3762
  * Indicates that a string could not be parsed as a range expression.
3762
3763
  *
@@ -3767,7 +3768,7 @@ const normalizeSets = (sets) => sets.map(normalizeComparatorSet);
3767
3768
  *
3768
3769
  * @public
3769
3770
  */
3770
- var InvalidRangeError = class extends effect.Schema.TaggedErrorClass()("InvalidRangeError", {
3771
+ var InvalidRangeError = class extends effect.Schema.TaggedError()("InvalidRangeError", {
3771
3772
  /** The raw input string that failed to parse. */
3772
3773
  input: effect.Schema.String,
3773
3774
  /** The character position where parsing failed, if available. */
@@ -3812,7 +3813,7 @@ sets: effect.Schema.Array(effect.Schema.Array(Comparator)) }) {
3812
3813
  static FromString = effect.Schema.String.pipe(effect.Schema.decodeTo(Range, effect.SchemaTransformation.transformOrFail({
3813
3814
  decode: (input) => {
3814
3815
  const result = parseRange$1(input);
3815
- return result.ok ? effect.Effect.succeed({ sets: normalizeSets(result.value) }) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message: `Invalid range expression: "${result.input}" at position ${result.position}` }));
3816
+ return result.ok ? effect.Effect.succeed({ sets: normalizeSets(result.value) }) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: `Invalid range expression: "${result.input}" at position ${result.position}` }, input));
3816
3817
  },
3817
3818
  encode: (parts) => effect.Effect.succeed(formatRange(parts.sets))
3818
3819
  })));
@@ -4034,7 +4035,7 @@ sets: effect.Schema.Array(effect.Schema.Array(Comparator)) }) {
4034
4035
  *
4035
4036
  * @public
4036
4037
  */
4037
- var UnsatisfiableConstraintError = class extends effect.Schema.TaggedErrorClass()("UnsatisfiableConstraintError", {
4038
+ var UnsatisfiableConstraintError = class extends effect.Schema.TaggedError()("UnsatisfiableConstraintError", {
4038
4039
  /** The ranges whose intersection is empty. */
4039
4040
  constraints: effect.Schema.Array(Range$2) }) {
4040
4041
  get message() {
@@ -4121,7 +4122,7 @@ const isComparatorSetSubset = (sub, sup) => {
4121
4122
  return true;
4122
4123
  };
4123
4124
  //#endregion
4124
- //#region ../../node_modules/.pnpm/@effected+npm@0.8.3_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/DependencySpecifier.js
4125
+ //#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/DependencySpecifier.js
4125
4126
  /**
4126
4127
  * Indicates that a string could not be parsed as a valid dependency specifier.
4127
4128
  *
@@ -4130,7 +4131,7 @@ const isComparatorSetSubset = (sub, sup) => {
4130
4131
  *
4131
4132
  * @public
4132
4133
  */
4133
- var InvalidDependencySpecifierError = class extends effect.Schema.TaggedErrorClass()("InvalidDependencySpecifierError", {
4134
+ var InvalidDependencySpecifierError = class extends effect.Schema.TaggedError()("InvalidDependencySpecifierError", {
4134
4135
  /** The raw input string that failed validation. */
4135
4136
  input: effect.Schema.String }) {
4136
4137
  get message() {
@@ -4293,7 +4294,7 @@ const classify$1 = (value) => {
4293
4294
  return RawSpecifier.make({ raw: value });
4294
4295
  };
4295
4296
  const fromString = effect.Schema.String.pipe(effect.Schema.decodeTo(Classified, effect.SchemaTransformation.transformOrFail({
4296
- decode: (input) => isValidDependencySpecifier(input) ? effect.Effect.succeed(classify$1(input)) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message: `Invalid dependency specifier: "${input}"` })),
4297
+ decode: (input) => isValidDependencySpecifier(input) ? effect.Effect.succeed(classify$1(input)) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: `Invalid dependency specifier: "${input}"` }, input)),
4297
4298
  encode: (classified) => effect.Effect.succeed(classified.raw)
4298
4299
  })));
4299
4300
  const brandedSpecifier = effect.Schema.String.pipe(effect.Schema.check(effect.Schema.makeFilter((value) => isValidDependencySpecifier(value) ? void 0 : "Expected a valid dependency specifier")), effect.Schema.brand("DependencySpecifier"));
@@ -4328,7 +4329,7 @@ const DependencySpecifier = Object.assign(brandedSpecifier, {
4328
4329
  FromString: fromString
4329
4330
  });
4330
4331
  //#endregion
4331
- //#region ../../node_modules/.pnpm/@effected+npm@0.8.3_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/IntegrityHash.js
4332
+ //#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/IntegrityHash.js
4332
4333
  const SRI_RE = /^(sha1|sha256|sha384|sha512)-[A-Za-z0-9+/]+={0,2}$/;
4333
4334
  const COREPACK_RE = /^(sha1|sha224|sha256|sha384|sha512)\.[0-9a-f]+$/;
4334
4335
  const YARN_RE = /^[0-9]+(c[0-9]+)?\/[0-9a-f]+$/;
@@ -4355,7 +4356,7 @@ const algorithmOf = (value) => {
4355
4356
  *
4356
4357
  * @public
4357
4358
  */
4358
- var InvalidIntegrityHashError = class extends effect.Schema.TaggedErrorClass()("InvalidIntegrityHashError", {
4359
+ var InvalidIntegrityHashError = class extends effect.Schema.TaggedError()("InvalidIntegrityHashError", {
4359
4360
  /** The raw input string that failed validation. */
4360
4361
  input: effect.Schema.String }) {
4361
4362
  get message() {
@@ -4538,7 +4539,7 @@ var ExecContext = class extends effect.Schema.Class("ExecContext")({
4538
4539
  *
4539
4540
  * @public
4540
4541
  */
4541
- var LocalExecError = class extends effect.Schema.TaggedErrorClass()("LocalExecError", {
4542
+ var LocalExecError = class extends effect.Schema.TaggedError()("LocalExecError", {
4542
4543
  /** The directory whose context could not be determined, when one is known. */
4543
4544
  directory: effect.Schema.optionalKey(effect.Schema.String),
4544
4545
  /** The underlying failure. */
@@ -4627,7 +4628,7 @@ var LocalExec = class LocalExec extends effect.Context.Service()("@effected/comm
4627
4628
  static layerTest = (overrides = {}) => effect.Layer.succeed(LocalExec, LocalExec.makeTest(overrides));
4628
4629
  };
4629
4630
  //#endregion
4630
- //#region ../../node_modules/.pnpm/@effected+commands@0.3.1_effect@4.0.0-beta.101/node_modules/@effected/commands/Redaction.js
4631
+ //#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/Redaction.js
4631
4632
  /**
4632
4633
  * Argument tokens whose *following* positional (or `=`-joined value) is a
4633
4634
  * secret. Lowercase; matching is case-insensitive.
@@ -4750,7 +4751,7 @@ var Redaction = class {
4750
4751
  static SECRET_FLAGS = SECRET_FLAGS;
4751
4752
  };
4752
4753
  //#endregion
4753
- //#region ../../node_modules/.pnpm/@effected+commands@0.3.1_effect@4.0.0-beta.101/node_modules/@effected/commands/internal/capture.js
4754
+ //#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/internal/capture.js
4754
4755
  /**
4755
4756
  * Raised when a captured stream exceeds its byte budget.
4756
4757
  *
@@ -4777,7 +4778,7 @@ const collectBounded = (stream, limit) => effect.Effect.gen(function* () {
4777
4778
  return yield* effect.Stream.mkString(effect.Stream.decodeText(bounded));
4778
4779
  });
4779
4780
  //#endregion
4780
- //#region ../../node_modules/.pnpm/@effected+commands@0.3.1_effect@4.0.0-beta.101/node_modules/@effected/commands/Run.js
4781
+ //#region ../../node_modules/.pnpm/@effected+commands@0.4.0_effect@4.0.0-beta.107/node_modules/@effected/commands/Run.js
4781
4782
  /**
4782
4783
  * Default ceiling on captured bytes per stream (16 MiB).
4783
4784
  *
@@ -4846,7 +4847,7 @@ const tail = (text) => {
4846
4847
  *
4847
4848
  * @public
4848
4849
  */
4849
- var CommandFailedError = class CommandFailedError extends effect.Schema.TaggedErrorClass()("CommandFailedError", {
4850
+ var CommandFailedError = class CommandFailedError extends effect.Schema.TaggedError()("CommandFailedError", {
4850
4851
  /** Why it failed. */
4851
4852
  kind: effect.Schema.Literals([
4852
4853
  "nonZero",
@@ -4932,7 +4933,7 @@ var CommandFailedError = class CommandFailedError extends effect.Schema.TaggedEr
4932
4933
  *
4933
4934
  * @public
4934
4935
  */
4935
- var CommandOutputError = class extends effect.Schema.TaggedErrorClass()("CommandOutputError", {
4936
+ var CommandOutputError = class extends effect.Schema.TaggedError()("CommandOutputError", {
4936
4937
  /** Which way the output was unusable. */
4937
4938
  kind: effect.Schema.Literals([
4938
4939
  "notJson",
@@ -5298,7 +5299,7 @@ var Run = class {
5298
5299
  static REDACTED = "***";
5299
5300
  };
5300
5301
  //#endregion
5301
- //#region ../../node_modules/.pnpm/@effected+npm@0.8.3_@effected+semver@0.3.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/npm/ReleaseAgeGate.js
5302
+ //#region ../../node_modules/.pnpm/@effected+npm@0.9.0_@effected+semver@0.4.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/npm/ReleaseAgeGate.js
5302
5303
  const MS_PER_MINUTE = 6e4;
5303
5304
  /**
5304
5305
  * A source's partial contribution to a {@link ReleaseAgeGate}: the effective
@@ -5468,7 +5469,7 @@ var ReleaseAgeGate = class ReleaseAgeGate extends effect.Schema.Class("ReleaseAg
5468
5469
  }
5469
5470
  };
5470
5471
  //#endregion
5471
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/ImporterDependency.js
5472
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/ImporterDependency.js
5472
5473
  /**
5473
5474
  * One declared dependency of one workspace importer, as the lockfile records it.
5474
5475
  *
@@ -5506,7 +5507,7 @@ var ImporterDependency = class extends effect.Schema.Class("ImporterDependency")
5506
5507
  depType: DependencyField
5507
5508
  }) {};
5508
5509
  //#endregion
5509
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/LockfileImporter.js
5510
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/LockfileImporter.js
5510
5511
  /**
5511
5512
  * One workspace importer's declared dependencies, as the lockfile records them.
5512
5513
  *
@@ -5530,7 +5531,7 @@ var LockfileImporter = class extends effect.Schema.Class("LockfileImporter")({
5530
5531
  dependencies: effect.Schema.Array(ImporterDependency)
5531
5532
  }) {};
5532
5533
  //#endregion
5533
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/ResolvedPackage.js
5534
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/ResolvedPackage.js
5534
5535
  const EMPTY_DEPENDENCIES = {};
5535
5536
  /**
5536
5537
  * A package resolved from a lockfile.
@@ -5565,7 +5566,7 @@ var ResolvedPackage = class extends effect.Schema.Class("ResolvedPackage")({
5565
5566
  dependencies: effect.Schema.Record(effect.Schema.String, effect.Schema.String).pipe(effect.Schema.withDecodingDefaultKey(effect.Effect.succeed(EMPTY_DEPENDENCIES)), effect.Schema.withConstructorDefault(effect.Effect.succeed(EMPTY_DEPENDENCIES)))
5566
5567
  }) {};
5567
5568
  //#endregion
5568
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/WorkspaceDependency.js
5569
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/WorkspaceDependency.js
5569
5570
  /**
5570
5571
  * A directed dependency edge between two workspace packages as recorded in
5571
5572
  * the lockfile.
@@ -5587,7 +5588,7 @@ var WorkspaceDependency = class extends effect.Schema.Class("WorkspaceDependency
5587
5588
  constraint: effect.Schema.String
5588
5589
  }) {};
5589
5590
  //#endregion
5590
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/PnpmExtension.js
5591
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/PnpmExtension.js
5591
5592
  /**
5592
5593
  * Extension data specific to pnpm lockfiles, attached to `Lockfile.extension`
5593
5594
  * when the format is `"pnpm"`.
@@ -5612,7 +5613,7 @@ var PnpmExtension = class extends effect.Schema.Class("PnpmExtension")({
5612
5613
  }))
5613
5614
  }) {};
5614
5615
  //#endregion
5615
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/LockfileFormat.js
5616
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/LockfileFormat.js
5616
5617
  /**
5617
5618
  * The lockfile formats this package parses: bun's `bun.lock` (JSONC), npm's
5618
5619
  * `package-lock.json` (v2/v3 JSON), pnpm's `pnpm-lock.yaml` and yarn Berry's
@@ -5650,7 +5651,7 @@ const FILENAMES = {
5650
5651
  */
5651
5652
  const filenameFor = (format) => FILENAMES[format][0];
5652
5653
  //#endregion
5653
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/internal/shared.js
5654
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/shared.js
5654
5655
  /**
5655
5656
  * The four dependency sections of a manifest, in a stable order — the shared
5656
5657
  * dependency-sections table (v3's `DEP_SECTIONS`). Each entry is both the
@@ -5808,7 +5809,7 @@ const extractWorkspaceDeps = (workspaces, workspaceNames) => {
5808
5809
  return deps;
5809
5810
  };
5810
5811
  //#endregion
5811
- //#region ../../node_modules/.pnpm/@effected+jsonc@0.5.2_effect@4.0.0-beta.101/node_modules/@effected/jsonc/JsoncNode.js
5812
+ //#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/JsoncNode.js
5812
5813
  /**
5813
5814
  * Discriminator values for JSONC AST node types: the JSON value types
5814
5815
  * (`string`/`number`/`boolean`/`null`), the structural types
@@ -5983,7 +5984,7 @@ function evaluateNode(node, depth) {
5983
5984
  }
5984
5985
  }
5985
5986
  //#endregion
5986
- //#region ../../node_modules/.pnpm/@effected+jsonc@0.5.2_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/scanner.js
5987
+ //#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/scanner.js
5987
5988
  const isWhitespace = (ch) => ch === 32 || ch === 9 || ch === 11 || ch === 12 || ch === 160 || ch === 65279;
5988
5989
  const isLineBreak$1 = (ch) => ch === 10 || ch === 13 || ch === 8232 || ch === 8233;
5989
5990
  const isDigit$1 = (ch) => ch >= 48 && ch <= 57;
@@ -6277,7 +6278,7 @@ const createScanner$2 = (text, ignoreTrivia = false) => {
6277
6278
  };
6278
6279
  };
6279
6280
  //#endregion
6280
- //#region ../../node_modules/.pnpm/@effected+jsonc@0.5.2_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/skip.js
6281
+ //#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/skip.js
6281
6282
  /**
6282
6283
  * Iteratively consume the value beginning at the cursor's current token and
6283
6284
  * return its tight end offset (excludes trailing whitespace/comments).
@@ -6307,7 +6308,7 @@ const skipBalancedValue = (cursor) => {
6307
6308
  return end;
6308
6309
  };
6309
6310
  //#endregion
6310
- //#region ../../node_modules/.pnpm/@effected+jsonc@0.5.2_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/parser.js
6311
+ //#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/parser.js
6311
6312
  /**
6312
6313
  * The public parse-error code vocabulary. The facade builds its `@public`
6313
6314
  * `JsoncParseErrorCode` schema from this array; the parser produces these codes
@@ -6720,7 +6721,7 @@ const parseTree$2 = (text, flags) => {
6720
6721
  };
6721
6722
  };
6722
6723
  //#endregion
6723
- //#region ../../node_modules/.pnpm/@effected+jsonc@0.5.2_effect@4.0.0-beta.101/node_modules/@effected/jsonc/Jsonc.js
6724
+ //#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/Jsonc.js
6724
6725
  /**
6725
6726
  * The single public parse-error code vocabulary, appearing as the `code` field
6726
6727
  * of {@link JsoncParseErrorDetail}.
@@ -6750,7 +6751,7 @@ var JsoncParseErrorDetail = class extends effect.Schema.Class("JsoncParseErrorDe
6750
6751
  *
6751
6752
  * @public
6752
6753
  */
6753
- var JsoncParseError = class extends effect.Schema.TaggedErrorClass()("JsoncParseError", {
6754
+ var JsoncParseError = class extends effect.Schema.TaggedError()("JsoncParseError", {
6754
6755
  errors: effect.Schema.Array(JsoncParseErrorDetail),
6755
6756
  input: effect.Schema.String
6756
6757
  }) {
@@ -6797,7 +6798,7 @@ effect.Schema.Class("JsoncStringifyOptions")({
6797
6798
  *
6798
6799
  * @public
6799
6800
  */
6800
- var JsoncStringifyError = class extends effect.Schema.TaggedErrorClass()("JsoncStringifyError", {
6801
+ var JsoncStringifyError = class extends effect.Schema.TaggedError()("JsoncStringifyError", {
6801
6802
  code: JsoncStringifyErrorCode,
6802
6803
  detail: effect.Schema.String,
6803
6804
  value: effect.Schema.Unknown
@@ -7188,11 +7189,11 @@ var Jsonc = class Jsonc {
7188
7189
  errors: toDetails(input, errors),
7189
7190
  input
7190
7191
  });
7191
- return effect.Effect.fail(new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message: aggregate.message }));
7192
+ return effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: aggregate.message }, input));
7192
7193
  }
7193
7194
  return effect.Effect.succeed(value);
7194
7195
  },
7195
- encode: (value) => effect.Effect.fromResult(Jsonc.stringifyResult(value)).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(effect.Option.some(value), { message: error.message })))
7196
+ encode: (value) => effect.Effect.fromResult(Jsonc.stringifyResult(value)).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, value)))
7196
7197
  })));
7197
7198
  }
7198
7199
  /**
@@ -7324,7 +7325,7 @@ var JsoncEdit = class extends effect.Schema.Class("JsoncEdit")({
7324
7325
  }
7325
7326
  };
7326
7327
  //#endregion
7327
- //#region ../../node_modules/.pnpm/@effected+jsonc@0.5.2_effect@4.0.0-beta.101/node_modules/@effected/jsonc/internal/navigate.js
7328
+ //#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/internal/navigate.js
7328
7329
  /**
7329
7330
  * Resolve `path` against `text`, returning where the target is (or where it
7330
7331
  * would be inserted). `path` must be non-empty — the whole-document case is
@@ -7451,7 +7452,7 @@ function navigate(text, path) {
7451
7452
  return { _tag: "NoOp" };
7452
7453
  }
7453
7454
  //#endregion
7454
- //#region ../../node_modules/.pnpm/@effected+jsonc@0.5.2_effect@4.0.0-beta.101/node_modules/@effected/jsonc/JsoncModifier.js
7455
+ //#region ../../node_modules/.pnpm/@effected+jsonc@0.6.0_effect@4.0.0-beta.107/node_modules/@effected/jsonc/JsoncModifier.js
7455
7456
  /**
7456
7457
  * Raised when `JsoncModifier.modify` cannot navigate the requested path: the
7457
7458
  * value at `depth` is not the container kind (`expected`) the next path segment
@@ -7475,7 +7476,7 @@ function navigate(text, path) {
7475
7476
  *
7476
7477
  * @public
7477
7478
  */
7478
- var JsoncModificationError = class extends effect.Schema.TaggedErrorClass()("JsoncModificationError", {
7479
+ var JsoncModificationError = class extends effect.Schema.TaggedError()("JsoncModificationError", {
7479
7480
  path: effect.Schema.Array(effect.Schema.Union([effect.Schema.String, effect.Schema.Number])),
7480
7481
  expected: effect.Schema.Literals(["object", "array"]),
7481
7482
  depth: effect.Schema.Number,
@@ -7579,7 +7580,7 @@ var JsoncModifier = class {
7579
7580
  });
7580
7581
  };
7581
7582
  //#endregion
7582
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/internal/bun.js
7583
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/bun.js
7583
7584
  const DepRecord$2 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
7584
7585
  const BunWorkspaceEntry = effect.Schema.Struct({
7585
7586
  name: effect.Schema.optionalKey(effect.Schema.String),
@@ -7672,7 +7673,7 @@ const toFields$3 = (raw) => effect.Effect.gen(function* () {
7672
7673
  };
7673
7674
  });
7674
7675
  //#endregion
7675
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/internal/npm.js
7676
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/npm.js
7676
7677
  const DepRecord$1 = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
7677
7678
  const NpmPackageEntry = effect.Schema.Struct({
7678
7679
  name: effect.Schema.optionalKey(effect.Schema.String),
@@ -7770,7 +7771,7 @@ const toFields$2 = (raw) => effect.Effect.gen(function* () {
7770
7771
  };
7771
7772
  });
7772
7773
  //#endregion
7773
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/YamlNode.js
7774
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/YamlNode.js
7774
7775
  /**
7775
7776
  * YAML scalar presentation styles.
7776
7777
  *
@@ -8172,7 +8173,7 @@ function nodeToValue(node, anchors, budget, counting = false) {
8172
8173
  return null;
8173
8174
  }
8174
8175
  //#endregion
8175
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/diagnostics.js
8176
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/diagnostics.js
8176
8177
  /** Error codes emitted by the lexer stage. */
8177
8178
  const YAML_LEX_ERROR_CODES = [
8178
8179
  "UnexpectedCharacter",
@@ -8250,7 +8251,7 @@ function isFatalCode(code) {
8250
8251
  return FATAL_CODES.has(code);
8251
8252
  }
8252
8253
  //#endregion
8253
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/YamlDiagnostic.js
8254
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/YamlDiagnostic.js
8254
8255
  /**
8255
8256
  * Error codes emitted by the lexer stage.
8256
8257
  *
@@ -8371,7 +8372,7 @@ function lineChar(text, offset) {
8371
8372
  };
8372
8373
  }
8373
8374
  //#endregion
8374
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/anchors.js
8375
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/anchors.js
8375
8376
  /**
8376
8377
  * Check if a pending anchor is being applied to an alias node (invalid in YAML 1.2 §3.2.2).
8377
8378
  * Aliases represent references to existing anchored nodes and cannot have their own anchors.
@@ -8464,7 +8465,7 @@ function collectAnchors(node, anchors) {
8464
8465
  }
8465
8466
  }
8466
8467
  //#endregion
8467
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/lexer.js
8468
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/lexer.js
8468
8469
  /**
8469
8470
  * Create a new YAML scanner for the given source text.
8470
8471
  *
@@ -8682,14 +8683,15 @@ function createScanner$1(text) {
8682
8683
  let value = "";
8683
8684
  while (pos < text.length) {
8684
8685
  const ch = peek();
8685
- if (ch === "'") if (peek(1) === "'") {
8686
- value += "'";
8687
- advance(2);
8688
- } else {
8689
- advance();
8690
- return makeToken("scalar", value, start, sLine, sCol, pos - start);
8691
- }
8692
- else if (ch === "\n" || ch === "\r" && peek(1) === "\n") {
8686
+ if (ch === "'") {
8687
+ if (peek(1) === "'") {
8688
+ value += "'";
8689
+ advance(2);
8690
+ } else {
8691
+ advance();
8692
+ return makeToken("scalar", value, start, sLine, sCol, pos - start);
8693
+ }
8694
+ } else if (ch === "\n" || ch === "\r" && peek(1) === "\n") {
8693
8695
  value += " ";
8694
8696
  if (ch === "\r") advance(2);
8695
8697
  else advance();
@@ -8868,13 +8870,17 @@ function createScanner$1(text) {
8868
8870
  hadHeaderWhitespace = true;
8869
8871
  advance();
8870
8872
  }
8871
- if (pos < text.length && !isNewline(peek()) && peek() !== "") if (peek() === "#" && hadHeaderWhitespace) while (pos < text.length && !isNewline(peek())) advance();
8872
- else {
8873
- while (pos < text.length && !isNewline(peek())) advance();
8874
- return makeToken("error", text.slice(start, pos), start, sLine, sCol);
8873
+ if (pos < text.length && !isNewline(peek()) && peek() !== "") {
8874
+ if (peek() === "#" && hadHeaderWhitespace) while (pos < text.length && !isNewline(peek())) advance();
8875
+ else {
8876
+ while (pos < text.length && !isNewline(peek())) advance();
8877
+ return makeToken("error", text.slice(start, pos), start, sLine, sCol);
8878
+ }
8879
+ }
8880
+ if (pos < text.length && isNewline(peek())) {
8881
+ if (peek() === "\r" && peek(1) === "\n") advance(2);
8882
+ else advance();
8875
8883
  }
8876
- if (pos < text.length && isNewline(peek())) if (peek() === "\r" && peek(1) === "\n") advance(2);
8877
- else advance();
8878
8884
  let contentIndent = explicitIndent;
8879
8885
  let foundContent = explicitIndent > 0;
8880
8886
  if (explicitIndent > 0) {
@@ -9030,9 +9036,10 @@ function createScanner$1(text) {
9030
9036
  prevMoreIndented = isMoreIndented;
9031
9037
  hadContent = true;
9032
9038
  } else {
9033
- if (result[result.length - 1] === "\n") if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
9034
- else result += ln;
9035
- else if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
9039
+ if (result[result.length - 1] === "\n") {
9040
+ if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
9041
+ else result += ln;
9042
+ } else if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
9036
9043
  else result += ` ${ln}`;
9037
9044
  prevMoreIndented = isMoreIndented;
9038
9045
  }
@@ -9421,7 +9428,7 @@ function lexAll(text) {
9421
9428
  return tokens;
9422
9429
  }
9423
9430
  //#endregion
9424
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/cst-parser.js
9431
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/cst-parser.js
9425
9432
  /**
9426
9433
  * Hardening: cap CST nesting so hostile inputs cannot overflow the stack
9427
9434
  * while the tree is being BUILT. Set slightly above the composer's
@@ -9707,12 +9714,14 @@ function parseBlockMappingInner(state, indent) {
9707
9714
  continue;
9708
9715
  }
9709
9716
  if (token.kind === "block-map-key") {
9717
+ if (token.column < indent && children.length > 0) break;
9710
9718
  sawExplicitKey = true;
9711
9719
  const leaf = consumeLeafToken(state);
9712
9720
  if (leaf) children.push(leaf);
9713
9721
  continue;
9714
9722
  }
9715
9723
  if (token.kind === "block-map-value") {
9724
+ if (token.column < indent && children.length > 0) break;
9716
9725
  const leaf = consumeLeafToken(state);
9717
9726
  if (leaf) children.push(leaf);
9718
9727
  children.push(...parseBlockValue(state, indent, sawExplicitKey));
@@ -9778,7 +9787,7 @@ function parseBlockMappingInner(state, indent) {
9778
9787
  /**
9779
9788
  * Parse the value part after a ":" in a block mapping.
9780
9789
  */
9781
- function parseBlockValue(state, _parentIndent, explicitKey = false) {
9790
+ function parseBlockValue(state, parentIndent, explicitKey = false) {
9782
9791
  const nodes = [];
9783
9792
  while (!atEnd(state)) {
9784
9793
  const token = peek(state);
@@ -9806,6 +9815,10 @@ function parseBlockValue(state, _parentIndent, explicitKey = false) {
9806
9815
  nodes.push(parseBlockSequence(state, seqIndent));
9807
9816
  break;
9808
9817
  }
9818
+ if (explicitKey && token.kind === "scalar" && !isBlockScalarToken(state) && hasImplicitMapAhead(state, parentIndent)) {
9819
+ nodes.push(parseImplicitBlockMapping(state, parentIndent));
9820
+ break;
9821
+ }
9809
9822
  if (token.kind === "scalar" || token.kind === "anchor" || token.kind === "alias" || token.kind === "tag") {
9810
9823
  const leaf = consumeLeafToken(state);
9811
9824
  if (leaf) nodes.push(leaf);
@@ -9961,11 +9974,13 @@ function parseImplicitBlockMappingInner(state, seqIndent) {
9961
9974
  if (!token) break;
9962
9975
  if (isDocumentBoundary(token)) break;
9963
9976
  if (token.kind === "block-seq-entry" && token.column <= seqIndent) break;
9977
+ if (token.kind === "block-map-key" && token.column <= seqIndent) break;
9964
9978
  if (isTrivia(token)) {
9965
9979
  children.push(...consumeTrivia(state));
9966
9980
  continue;
9967
9981
  }
9968
9982
  if (token.kind === "block-map-value") {
9983
+ if (token.column <= seqIndent && children.length > 0) break;
9969
9984
  const leaf = consumeLeafToken(state);
9970
9985
  if (leaf) children.push(leaf);
9971
9986
  children.push(...parseBlockValue(state, seqIndent));
@@ -10133,7 +10148,7 @@ function parseCSTAll(text) {
10133
10148
  return parseDocuments(lexAll(text), text);
10134
10149
  }
10135
10150
  //#endregion
10136
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/state.js
10151
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/state.js
10137
10152
  let lineStartsText;
10138
10153
  let lineStartsCache = [];
10139
10154
  function getLineStarts(text) {
@@ -10239,7 +10254,7 @@ function exitNesting(state) {
10239
10254
  state.depth--;
10240
10255
  }
10241
10256
  //#endregion
10242
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/tags.js
10257
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/tags.js
10243
10258
  /**
10244
10259
  * Resolve a tag shorthand using the document's %TAG directives.
10245
10260
  * For example, with `%TAG !! tag:example.com,2000:app/`, the tag `!!int`
@@ -10325,7 +10340,7 @@ function validateTagHandlesInDocument(docCst, state) {
10325
10340
  }
10326
10341
  }
10327
10342
  //#endregion
10328
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/scalars.js
10343
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/scalars.js
10329
10344
  const NULL_RE$1 = /^(?:null|Null|NULL|~)$/;
10330
10345
  const TRUE_RE$1 = /^(?:true|True|TRUE)$/;
10331
10346
  const FALSE_RE$1 = /^(?:false|False|FALSE)$/;
@@ -10587,10 +10602,11 @@ function foldFlowLines(text) {
10587
10602
  }
10588
10603
  const isLast = i === lines.length - 1;
10589
10604
  const trimmed = isLast ? line.trimStart() : line.trim();
10590
- if (trimmed === "") if (isLast) {
10591
- if (result.length === 0 || result[result.length - 1] !== "\n") result += " ";
10592
- } else result += "\n";
10593
- else {
10605
+ if (trimmed === "") {
10606
+ if (isLast) {
10607
+ if (result.length === 0 || result[result.length - 1] !== "\n") result += " ";
10608
+ } else result += "\n";
10609
+ } else {
10594
10610
  if (result.length > 0 && result[result.length - 1] !== "\n") result += " ";
10595
10611
  result += trimmed;
10596
10612
  }
@@ -11003,8 +11019,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
11003
11019
  } else break;
11004
11020
  }
11005
11021
  while (i < raw.length && raw[i] !== "\n" && raw[i] !== "\r") i++;
11006
- if (i < raw.length) if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
11007
- else i++;
11022
+ if (i < raw.length) {
11023
+ if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
11024
+ else i++;
11025
+ }
11008
11026
  let contentIndent = explicitIndent;
11009
11027
  let foundContent = explicitIndent > 0;
11010
11028
  if (explicitIndent > 0 && fullText !== void 0 && nodeOffset !== void 0) {
@@ -11067,8 +11085,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
11067
11085
  trailingNewlines.length = 0;
11068
11086
  lines.push(" ".repeat(spaces - contentIndent));
11069
11087
  } else trailingNewlines.push("");
11070
- if (i < raw.length) if (raw[i] === "\r" && i + 1 < raw.length && raw[i + 1] === "\n") i += 2;
11071
- else i++;
11088
+ if (i < raw.length) {
11089
+ if (raw[i] === "\r" && i + 1 < raw.length && raw[i + 1] === "\n") i += 2;
11090
+ else i++;
11091
+ }
11072
11092
  continue;
11073
11093
  }
11074
11094
  if (spaces < contentIndent) break;
@@ -11078,8 +11098,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
11078
11098
  const contentStart = i;
11079
11099
  while (i < raw.length && raw[i] !== "\n" && raw[i] !== "\r") i++;
11080
11100
  lines.push(extra + raw.slice(contentStart, i));
11081
- if (i < raw.length) if (raw[i] === "\r" && i + 1 < raw.length && raw[i + 1] === "\n") i += 2;
11082
- else i++;
11101
+ if (i < raw.length) {
11102
+ if (raw[i] === "\r" && i + 1 < raw.length && raw[i + 1] === "\n") i += 2;
11103
+ else i++;
11104
+ }
11083
11105
  }
11084
11106
  let value;
11085
11107
  if (isFolded) {
@@ -11095,9 +11117,10 @@ function decodeBlockScalar(raw, fullText, nodeOffset) {
11095
11117
  prevMoreIndented = isMoreIndented;
11096
11118
  hadContent = true;
11097
11119
  } else {
11098
- if (result[result.length - 1] === "\n") if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
11099
- else result += ln;
11100
- else if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
11120
+ if (result[result.length - 1] === "\n") {
11121
+ if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
11122
+ else result += ln;
11123
+ } else if (isMoreIndented || prevMoreIndented) result += `\n${ln}`;
11101
11124
  else result += ` ${ln}`;
11102
11125
  prevMoreIndented = isMoreIndented;
11103
11126
  }
@@ -11131,8 +11154,10 @@ function validateBlockScalarLeadingEmpties(cst, state) {
11131
11154
  const raw = cst.source;
11132
11155
  let i = 0;
11133
11156
  while (i < raw.length && raw[i] !== "\n" && raw[i] !== "\r") i++;
11134
- if (i < raw.length) if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
11135
- else i++;
11157
+ if (i < raw.length) {
11158
+ if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
11159
+ else i++;
11160
+ }
11136
11161
  const emptyIndents = [];
11137
11162
  while (i < raw.length) {
11138
11163
  const lineStart = i;
@@ -11146,8 +11171,10 @@ function validateBlockScalarLeadingEmpties(cst, state) {
11146
11171
  indent: spaces,
11147
11172
  offsetInRaw: lineStart
11148
11173
  });
11149
- if (i < raw.length) if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
11150
- else i++;
11174
+ if (i < raw.length) {
11175
+ if (raw[i] === "\r" && raw[i + 1] === "\n") i += 2;
11176
+ else i++;
11177
+ }
11151
11178
  continue;
11152
11179
  }
11153
11180
  const contentIndent = spaces;
@@ -11203,7 +11230,7 @@ function shouldPreserveRaw(rawValue, value) {
11203
11230
  return false;
11204
11231
  }
11205
11232
  //#endregion
11206
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/block.js
11233
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/block.js
11207
11234
  /**
11208
11235
  * Compose a block map from its CST children, with an optional external first key.
11209
11236
  *
@@ -11701,7 +11728,7 @@ function buildPairs(items, pairs, text) {
11701
11728
  const nullKey = new YamlScalar({
11702
11729
  value: null,
11703
11730
  style: "plain",
11704
- offset: 0,
11731
+ offset: valueSepOffset,
11705
11732
  length: 0
11706
11733
  });
11707
11734
  pairs.push(new YamlPair({
@@ -11713,7 +11740,7 @@ function buildPairs(items, pairs, text) {
11713
11740
  const nullKey = new YamlScalar({
11714
11741
  value: null,
11715
11742
  style: "plain",
11716
- offset: 0,
11743
+ offset: valueSepOffset,
11717
11744
  length: 0
11718
11745
  });
11719
11746
  pairs.push(new YamlPair({
@@ -12351,7 +12378,7 @@ function composeFlatBlockMap(children, startIdx, parentCst, state, externalFirst
12351
12378
  return map;
12352
12379
  }
12353
12380
  //#endregion
12354
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/flow.js
12381
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/flow.js
12355
12382
  /**
12356
12383
  * Validate that flow collection entries are separated by commas.
12357
12384
  *
@@ -12743,7 +12770,7 @@ function composeFlowSeqInner(cst, state, meta, parentBlockColumn) {
12743
12770
  return seq;
12744
12771
  }
12745
12772
  //#endregion
12746
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/composer/document.js
12773
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/composer/document.js
12747
12774
  /** The flow-composer dispatch wired into every state this module creates. */
12748
12775
  const FLOW = {
12749
12776
  composeFlowMap,
@@ -13409,7 +13436,7 @@ function composeAllDocuments(text, options) {
13409
13436
  };
13410
13437
  }
13411
13438
  //#endregion
13412
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/fold.js
13439
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/fold.js
13413
13440
  /**
13414
13441
  * Column-based line folding for a single logical scalar line (YAML 1.2 flow
13415
13442
  * folding, §7.3 / §8.2.1). Breaks the content at "safe" single-space
@@ -13645,7 +13672,7 @@ function renderBlockFolded(s, indent) {
13645
13672
  return `>${indentIndicator}${chomp}\n${outputLines.join("\n")}`;
13646
13673
  }
13647
13674
  //#endregion
13648
- //#region ../../node_modules/.pnpm/@effected+yaml@0.6.1_effect@4.0.0-beta.101/node_modules/@effected/yaml/internal/stringifier.js
13675
+ //#region ../../node_modules/.pnpm/@effected+yaml@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/yaml/internal/stringifier.js
13649
13676
  /**
13650
13677
  * Thrown by the stringifier on its failure paths (circular references). The
13651
13678
  * facade catches this and materializes the public stringify error.
@@ -13742,10 +13769,12 @@ function requiresQuoting(s, ignoreType = false) {
13742
13769
  if (!ignoreType && wouldBeResolved(s)) return true;
13743
13770
  const first = s[0];
13744
13771
  if (first === " " || first === " ") return true;
13745
- if (first !== void 0 && INDICATOR_CHARS.has(first)) if (first === ":" || first === "?" || first === "-") {
13746
- const second = s[1];
13747
- if (s.length === 1 || second === " " || second === " ") return true;
13748
- } else return true;
13772
+ if (first !== void 0 && INDICATOR_CHARS.has(first)) {
13773
+ if (first === ":" || first === "?" || first === "-") {
13774
+ const second = s[1];
13775
+ if (s.length === 1 || second === " " || second === " ") return true;
13776
+ } else return true;
13777
+ }
13749
13778
  if (s.startsWith("---") || s.startsWith("...")) return true;
13750
13779
  if (s.includes(": ") || s.includes(": ") || s.endsWith(":")) return true;
13751
13780
  if (s.includes(" #") || s.includes(" #")) return true;
@@ -13776,14 +13805,15 @@ function renderDoubleQuoted(s, canonical = false) {
13776
13805
  let result = "";
13777
13806
  for (let i = 0; i < escaped.length; i++) {
13778
13807
  const code = escaped.charCodeAt(i);
13779
- if (isControlChar(code)) if (code === 0) result += "\\0";
13780
- else if (code === 7) result += "\\a";
13781
- else if (code === 8) result += "\\b";
13782
- else if (code === 11) result += "\\v";
13783
- else if (code === 12) result += "\\f";
13784
- else if (code === 27) result += "\\e";
13785
- else result += `\\x${code.toString(16).padStart(2, "0")}`;
13786
- else if (canonical && code > 126) {
13808
+ if (isControlChar(code)) {
13809
+ if (code === 0) result += "\\0";
13810
+ else if (code === 7) result += "\\a";
13811
+ else if (code === 8) result += "\\b";
13812
+ else if (code === 11) result += "\\v";
13813
+ else if (code === 12) result += "\\f";
13814
+ else if (code === 27) result += "\\e";
13815
+ else result += `\\x${code.toString(16).padStart(2, "0")}`;
13816
+ } else if (canonical && code > 126) {
13787
13817
  if (code >= 55296 && code <= 56319 && i + 1 < escaped.length) {
13788
13818
  const low = escaped.charCodeAt(i + 1);
13789
13819
  if (low >= 56320 && low <= 57343) {
@@ -14063,7 +14093,7 @@ effect.Schema.Class("YamlStringifyOptions")({
14063
14093
  *
14064
14094
  * @public
14065
14095
  */
14066
- var YamlParseError = class extends effect.Schema.TaggedErrorClass()("YamlParseError", {
14096
+ var YamlParseError = class extends effect.Schema.TaggedError()("YamlParseError", {
14067
14097
  diagnostics: effect.Schema.Array(YamlDiagnostic),
14068
14098
  input: effect.Schema.String
14069
14099
  }) {
@@ -14081,7 +14111,7 @@ var YamlParseError = class extends effect.Schema.TaggedErrorClass()("YamlParseEr
14081
14111
  *
14082
14112
  * @public
14083
14113
  */
14084
- var YamlStringifyError = class extends effect.Schema.TaggedErrorClass()("YamlStringifyError", {
14114
+ var YamlStringifyError = class extends effect.Schema.TaggedError()("YamlStringifyError", {
14085
14115
  diagnostics: effect.Schema.Array(YamlDiagnostic),
14086
14116
  value: effect.Schema.Unknown
14087
14117
  }) {
@@ -14453,8 +14483,8 @@ var Yaml = class Yaml {
14453
14483
  */
14454
14484
  static fromString(options) {
14455
14485
  return effect.Schema.String.pipe(effect.Schema.decodeTo(effect.Schema.Unknown, effect.SchemaTransformation.transformOrFail({
14456
- decode: (input) => Yaml.parse(input, options).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message: error.message }))),
14457
- encode: (value) => stringifyOrFail(value).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(effect.Option.some(value), { message: error.message })))
14486
+ decode: (input) => Yaml.parse(input, options).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, input))),
14487
+ encode: (value) => stringifyOrFail(value).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, value)))
14458
14488
  })));
14459
14489
  }
14460
14490
  /**
@@ -14473,12 +14503,12 @@ var Yaml = class Yaml {
14473
14503
  */
14474
14504
  static allFromString(options) {
14475
14505
  return effect.Schema.String.pipe(effect.Schema.decodeTo(effect.Schema.Array(effect.Schema.Unknown), effect.SchemaTransformation.transformOrFail({
14476
- decode: (input) => Yaml.parseAll(input, options).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message: error.message }))),
14506
+ decode: (input) => Yaml.parseAll(input, options).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, input))),
14477
14507
  encode: (values) => effect.Effect.gen(function* () {
14478
14508
  if (values.length === 0) return "";
14479
14509
  const parts = [];
14480
14510
  for (let index = 0; index < values.length; index++) {
14481
- const yaml = yield* stringifyOrFail(values[index]).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue(effect.Option.some(values), { message: error.message })));
14511
+ const yaml = yield* stringifyOrFail(values[index]).pipe(effect.Effect.mapError((error) => new effect.SchemaIssue.InvalidValue({ message: error.message }, values)));
14482
14512
  parts.push(index > 0 ? `---\n${yaml}` : yaml);
14483
14513
  }
14484
14514
  return parts.join("");
@@ -14594,7 +14624,7 @@ function deepEqualValues(a, b) {
14594
14624
  return false;
14595
14625
  }
14596
14626
  //#endregion
14597
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/internal/documents.js
14627
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/documents.js
14598
14628
  /**
14599
14629
  * An empty YAML document composes to `null` (`Yaml.parseAll("")` is `[null]`,
14600
14630
  * and the trailing document of an env-only `pnpm-lock.yaml` is `null` too).
@@ -14664,7 +14694,7 @@ const selectSoleDocument = (content) => effect.Effect.gen(function* () {
14664
14694
  };
14665
14695
  });
14666
14696
  //#endregion
14667
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/internal/pnpm.js
14697
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/pnpm.js
14668
14698
  const PnpmImporterDeps = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.Struct({
14669
14699
  specifier: effect.Schema.String,
14670
14700
  version: effect.Schema.String
@@ -14789,7 +14819,7 @@ const toFields$1 = (raw) => effect.Effect.gen(function* () {
14789
14819
  };
14790
14820
  });
14791
14821
  //#endregion
14792
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/internal/yarn.js
14822
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/internal/yarn.js
14793
14823
  const YarnLockfileRaw = effect.Schema.Record(effect.Schema.String, effect.Schema.Unknown);
14794
14824
  const DepRecord = effect.Schema.optionalKey(effect.Schema.Record(effect.Schema.String, effect.Schema.String));
14795
14825
  const YarnEntry = effect.Schema.Struct({
@@ -14912,7 +14942,7 @@ const cleanYarnDeps = (deps) => {
14912
14942
  return Object.fromEntries(Object.entries(deps).map(([name, value]) => [name, value.startsWith("npm:") ? value.slice(4) : value]));
14913
14943
  };
14914
14944
  //#endregion
14915
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/Lockfile.js
14945
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/Lockfile.js
14916
14946
  const EMPTY_IMPORTERS = [];
14917
14947
  /**
14918
14948
  * Failure of `Lockfile.parse`: the given content is not a valid lockfile of
@@ -14932,7 +14962,7 @@ const EMPTY_IMPORTERS = [];
14932
14962
  *
14933
14963
  * @public
14934
14964
  */
14935
- var LockfileParseError = class extends effect.Schema.TaggedErrorClass()("LockfileParseError", {
14965
+ var LockfileParseError = class extends effect.Schema.TaggedError()("LockfileParseError", {
14936
14966
  format: LockfileFormat,
14937
14967
  stage: effect.Schema.Literals(["syntax", "validation"]),
14938
14968
  cause: effect.Schema.Defect()
@@ -14973,7 +15003,7 @@ var LockfileParseError = class extends effect.Schema.TaggedErrorClass()("Lockfil
14973
15003
  *
14974
15004
  * @public
14975
15005
  */
14976
- var LockfileFramingError = class extends effect.Schema.TaggedErrorClass()("LockfileFramingError", {
15006
+ var LockfileFramingError = class extends effect.Schema.TaggedError()("LockfileFramingError", {
14977
15007
  format: LockfileFormat,
14978
15008
  reason: effect.Schema.Literals([
14979
15009
  "noLockfileDocument",
@@ -15156,7 +15186,7 @@ var Lockfile = class Lockfile extends effect.Schema.Class("Lockfile")({
15156
15186
  }
15157
15187
  };
15158
15188
  //#endregion
15159
- //#region ../../node_modules/.pnpm/@effected+lockfiles@0.3.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+npm@0._3c1784fba62fde9a5bac4cf15387fd04/node_modules/@effected/lockfiles/LockfileIntegrity.js
15189
+ //#region ../../node_modules/.pnpm/@effected+lockfiles@0.4.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+npm@0._83da5ef372786d059bed7f4a907143ef/node_modules/@effected/lockfiles/LockfileIntegrity.js
15160
15190
  /**
15161
15191
  * The minimal manifest shape {@link LockfileIntegrity.compare} checks a
15162
15192
  * lockfile against: a package name plus the four optional dependency maps.
@@ -15272,7 +15302,7 @@ var LockfileIntegrity = class LockfileIntegrity extends effect.Schema.Class("Loc
15272
15302
  }
15273
15303
  };
15274
15304
  //#endregion
15275
- //#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Dependency.js
15305
+ //#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Dependency.js
15276
15306
  /**
15277
15307
  * A resolved dependency entry pairing a package name with its version
15278
15308
  * specifier and the `kind` of map it came from (`@effected/npm`'s
@@ -15336,7 +15366,7 @@ var Dependency = class extends effect.Schema.Class("Dependency")({
15336
15366
  }
15337
15367
  };
15338
15368
  //#endregion
15339
- //#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/DevEngines.js
15369
+ //#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/DevEngines.js
15340
15370
  /**
15341
15371
  * A single `devEngines` constraint with a name and optional `version` / `onFail`.
15342
15372
  *
@@ -15374,7 +15404,7 @@ const DevEnginesSchema = effect.Schema.Struct({
15374
15404
  libc: effect.Schema.optionalKey(DevEngineOrArray)
15375
15405
  });
15376
15406
  //#endregion
15377
- //#region ../../node_modules/.pnpm/@effected+spdx@0.1.2_effect@4.0.0-beta.101/node_modules/@effected/spdx/internal/licenseIds.js
15407
+ //#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/internal/licenseIds.js
15378
15408
  /** @internal */
15379
15409
  const ACTIVE_LICENSE_IDS = [
15380
15410
  "0BSD",
@@ -16107,7 +16137,7 @@ const LICENSE_IDS = new Set(ACTIVE_LICENSE_IDS);
16107
16137
  /** @internal */
16108
16138
  const DEPRECATED_LICENSE_IDS = new Set(DEPRECATED_LICENSE_ID_LIST);
16109
16139
  //#endregion
16110
- //#region ../../node_modules/.pnpm/@effected+spdx@0.1.2_effect@4.0.0-beta.101/node_modules/@effected/spdx/License.js
16140
+ //#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/License.js
16111
16141
  /**
16112
16142
  * Indicates that a string is not a valid SPDX expression fragment: an
16113
16143
  * unrecognized license or exception identifier, or a malformed
@@ -16122,7 +16152,7 @@ const DEPRECATED_LICENSE_IDS = new Set(DEPRECATED_LICENSE_ID_LIST);
16122
16152
  * @see {@link https://spdx.github.io/spdx-spec/v2.3/SPDX-license-expressions/ | SPDX License Expressions}
16123
16153
  * @public
16124
16154
  */
16125
- var InvalidSpdxExpressionError = class extends effect.Schema.TaggedErrorClass()("InvalidSpdxExpressionError", {
16155
+ var InvalidSpdxExpressionError = class extends effect.Schema.TaggedError()("InvalidSpdxExpressionError", {
16126
16156
  /** The raw input string that failed to validate. */
16127
16157
  input: effect.Schema.String }) {
16128
16158
  get message() {
@@ -16276,7 +16306,7 @@ var License = class License extends effect.Schema.Class("License")({
16276
16306
  }
16277
16307
  };
16278
16308
  //#endregion
16279
- //#region ../../node_modules/.pnpm/@effected+spdx@0.1.2_effect@4.0.0-beta.101/node_modules/@effected/spdx/internal/exceptions.js
16309
+ //#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/internal/exceptions.js
16280
16310
  /** @internal */
16281
16311
  const ACTIVE_EXCEPTION_IDS = [
16282
16312
  "389-exception",
@@ -16353,7 +16383,7 @@ const EXCEPTION_IDS = new Set(ACTIVE_EXCEPTION_IDS);
16353
16383
  /** @internal */
16354
16384
  const DEPRECATED_EXCEPTION_IDS = new Set(DEPRECATED_EXCEPTION_ID_LIST);
16355
16385
  //#endregion
16356
- //#region ../../node_modules/.pnpm/@effected+spdx@0.1.2_effect@4.0.0-beta.101/node_modules/@effected/spdx/LicenseException.js
16386
+ //#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/LicenseException.js
16357
16387
  /**
16358
16388
  * A validated SPDX license-exception identifier: an Effect `Schema.Class` whose
16359
16389
  * `id` is a member of the SPDX exception list. The class doubles as its own
@@ -16473,7 +16503,7 @@ var LicenseException = class LicenseException extends effect.Schema.Class("Licen
16473
16503
  }
16474
16504
  };
16475
16505
  //#endregion
16476
- //#region ../../node_modules/.pnpm/@effected+spdx@0.1.2_effect@4.0.0-beta.101/node_modules/@effected/spdx/internal/parser.js
16506
+ //#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/internal/parser.js
16477
16507
  const TOKEN_OPEN_PAREN = 0;
16478
16508
  const TOKEN_CLOSE_PAREN = 1;
16479
16509
  const TOKEN_PLUS = 2;
@@ -16702,7 +16732,7 @@ function parse$2(input) {
16702
16732
  return node;
16703
16733
  }
16704
16734
  //#endregion
16705
- //#region ../../node_modules/.pnpm/@effected+spdx@0.1.2_effect@4.0.0-beta.101/node_modules/@effected/spdx/SpdxExpression.js
16735
+ //#region ../../node_modules/.pnpm/@effected+spdx@0.2.0_effect@4.0.0-beta.107/node_modules/@effected/spdx/SpdxExpression.js
16706
16736
  /**
16707
16737
  * Serialize a tagged SPDX AST node — a class instance OR its encoded POJO — to
16708
16738
  * the canonical, fully-parenthesized SPDX string. This is the single source of
@@ -16886,12 +16916,12 @@ effect.Effect.fn("SpdxExpression.parse")((input) => effect.Effect.fromResult(par
16886
16916
  effect.Schema.String.pipe(effect.Schema.decodeTo(SpdxExpressionUnion, effect.SchemaTransformation.transformOrFail({
16887
16917
  decode: (input) => {
16888
16918
  const result = parseResult(input);
16889
- return effect.Result.isSuccess(result) ? effect.Effect.succeed(result.success) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message: result.failure.message }));
16919
+ return effect.Result.isSuccess(result) ? effect.Effect.succeed(result.success) : effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message: result.failure.message }, input));
16890
16920
  },
16891
16921
  encode: (expression) => effect.Effect.succeed(serialize$1(expression))
16892
16922
  })));
16893
16923
  //#endregion
16894
- //#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/License.js
16924
+ //#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/License.js
16895
16925
  /**
16896
16926
  * Indicates that a string is not a valid SPDX license identifier or expression.
16897
16927
  *
@@ -16900,7 +16930,7 @@ effect.Schema.String.pipe(effect.Schema.decodeTo(SpdxExpressionUnion, effect.Sch
16900
16930
  *
16901
16931
  * @public
16902
16932
  */
16903
- var InvalidSpdxLicenseError = class extends effect.Schema.TaggedErrorClass()("InvalidSpdxLicenseError", {
16933
+ var InvalidSpdxLicenseError = class extends effect.Schema.TaggedError()("InvalidSpdxLicenseError", {
16904
16934
  /** The raw input string that failed validation. */
16905
16935
  input: effect.Schema.String }) {
16906
16936
  get message() {
@@ -16926,9 +16956,9 @@ const isValidSpdx = (value) => {
16926
16956
  */
16927
16957
  const SpdxLicense = effect.Schema.String.pipe(effect.Schema.check(effect.Schema.makeFilter((value) => isValidSpdx(value) ? void 0 : "Expected a valid SPDX license expression")), effect.Schema.brand("SpdxLicense"));
16928
16958
  //#endregion
16929
- //#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageManager.js
16959
+ //#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageManager.js
16930
16960
  const PACKAGE_MANAGER_NAME_RE = /^[a-z]+$/;
16931
- const invalid$1 = (input, message) => effect.Effect.fail(new effect.SchemaIssue.InvalidValue(effect.Option.some(input), { message }));
16961
+ const invalid$1 = (input, message) => effect.Effect.fail(new effect.SchemaIssue.InvalidValue({ message }, input));
16932
16962
  /**
16933
16963
  * A structured `packageManager` value with `name`, `version` and an optional
16934
16964
  * `integrity` hash.
@@ -17037,7 +17067,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
17037
17067
  }
17038
17068
  };
17039
17069
  //#endregion
17040
- //#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/PackageName.js
17070
+ //#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/PackageName.js
17041
17071
  /**
17042
17072
  * Indicates that a string could not be used as a valid npm package name.
17043
17073
  *
@@ -17046,7 +17076,7 @@ var PackageManager = class PackageManager extends effect.Schema.Class("PackageMa
17046
17076
  *
17047
17077
  * @public
17048
17078
  */
17049
- var InvalidPackageNameError = class extends effect.Schema.TaggedErrorClass()("InvalidPackageNameError", {
17079
+ var InvalidPackageNameError = class extends effect.Schema.TaggedError()("InvalidPackageNameError", {
17050
17080
  /** The raw input string that failed validation. */
17051
17081
  input: effect.Schema.String }) {
17052
17082
  get message() {
@@ -17095,7 +17125,7 @@ const PackageName = Object.assign(effect.Schema.Union([ScopedPackageName, Unscop
17095
17125
  isScoped
17096
17126
  });
17097
17127
  //#endregion
17098
- //#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Person.js
17128
+ //#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Person.js
17099
17129
  const parsePersonString = (input) => {
17100
17130
  const emailMatch = input.match(/<([^>]+)>/);
17101
17131
  const urlMatch = input.match(/\(([^)]+)\)/);
@@ -17241,7 +17271,7 @@ var Person = class Person extends effect.Schema.Class("Person")({
17241
17271
  }
17242
17272
  };
17243
17273
  //#endregion
17244
- //#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Repository.js
17274
+ //#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Repository.js
17245
17275
  /** The shorthand hosts npm resolves without a scheme. */
17246
17276
  const SHORTHAND_HOSTS = /* @__PURE__ */ new Map([
17247
17277
  ["github", "https://github.com"],
@@ -17416,7 +17446,7 @@ var Bugs = class Bugs extends effect.Schema.Class("Bugs")({
17416
17446
  })));
17417
17447
  };
17418
17448
  //#endregion
17419
- //#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/internal/format.js
17449
+ //#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/internal/format.js
17420
17450
  const KEY_INDEX = new Map([
17421
17451
  "$schema",
17422
17452
  "name",
@@ -17639,7 +17669,7 @@ const renderJson = (raw, options) => {
17639
17669
  return options.newline ? `${json}\n` : json;
17640
17670
  };
17641
17671
  //#endregion
17642
- //#region ../../node_modules/.pnpm/@effected+package-json@0.7.3_effect@4.0.0-beta.101/node_modules/@effected/package-json/Package.js
17672
+ //#region ../../node_modules/.pnpm/@effected+package-json@0.8.0_effect@4.0.0-beta.107/node_modules/@effected/package-json/Package.js
17643
17673
  const toHashMap = effect.SchemaTransformation.transform({
17644
17674
  decode: (record) => effect.HashMap.fromIterable(Object.entries(record)),
17645
17675
  encode: (map) => Object.fromEntries(effect.HashMap.toEntries(map))
@@ -17699,7 +17729,7 @@ effect.Schema.Union([effect.Schema.String, effect.Schema.Record(effect.Schema.St
17699
17729
  *
17700
17730
  * @public
17701
17731
  */
17702
- var PackageDecodeError = class extends effect.Schema.TaggedErrorClass()("PackageDecodeError", {
17732
+ var PackageDecodeError = class extends effect.Schema.TaggedError()("PackageDecodeError", {
17703
17733
  /** The underlying `SchemaError`, preserved structurally rather than stringified. */
17704
17734
  cause: effect.Schema.Defect() }) {
17705
17735
  get message() {
@@ -17955,7 +17985,7 @@ var Package = class Package extends effect.Schema.Class("Package")({
17955
17985
  }
17956
17986
  };
17957
17987
  //#endregion
17958
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/WorkspacePackage.js
17988
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspacePackage.js
17959
17989
  const EMPTY$1 = Object.freeze(Object.create(null));
17960
17990
  const EMPTY_MANIFEST = Object.freeze(Object.create(null));
17961
17991
  /**
@@ -17999,7 +18029,7 @@ const DependencyMap$1 = effect.Schema.Record(effect.Schema.String, effect.Schema
17999
18029
  *
18000
18030
  * @public
18001
18031
  */
18002
- var WorkspaceManifestError = class extends effect.Schema.TaggedErrorClass()("WorkspaceManifestError", {
18032
+ var WorkspaceManifestError = class extends effect.Schema.TaggedError()("WorkspaceManifestError", {
18003
18033
  /** Absolute path to the `package.json` that failed. */
18004
18034
  packageJsonPath: effect.Schema.String,
18005
18035
  /** Whether the file could not be read, or read but not decoded. */
@@ -18234,7 +18264,7 @@ var WorkspacePackage = class WorkspacePackage extends effect.Schema.Class("Works
18234
18264
  }
18235
18265
  };
18236
18266
  //#endregion
18237
- //#region ../../node_modules/.pnpm/@effected+walker@0.3.4_@effected+glob@0.2.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/walker/Descend.js
18267
+ //#region ../../node_modules/.pnpm/@effected+walker@0.4.0_@effected+glob@0.3.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/walker/Descend.js
18238
18268
  /**
18239
18269
  * Typed failure raised by {@link descend}: a directory mid-walk was unreadable
18240
18270
  * (under `onUnreadable: "fail"`), or the walk descended past `maxDepth`. Depth
@@ -18243,7 +18273,7 @@ var WorkspacePackage = class WorkspacePackage extends effect.Schema.Class("Works
18243
18273
  *
18244
18274
  * @public
18245
18275
  */
18246
- var DescendError = class extends effect.Schema.TaggedErrorClass()("DescendError", {
18276
+ var DescendError = class extends effect.Schema.TaggedError()("DescendError", {
18247
18277
  /** The glob pattern's source text. */
18248
18278
  pattern: effect.Schema.String,
18249
18279
  reason: effect.Schema.Literals(["unreadableDirectory", "depthExceeded"]),
@@ -18369,7 +18399,7 @@ const descend = effect.Effect.fn("Walker.descend")(function* (pattern, options)
18369
18399
  return results;
18370
18400
  });
18371
18401
  //#endregion
18372
- //#region ../../node_modules/.pnpm/@effected+walker@0.3.4_@effected+glob@0.2.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/walker/Expand.js
18402
+ //#region ../../node_modules/.pnpm/@effected+walker@0.4.0_@effected+glob@0.3.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/walker/Expand.js
18373
18403
  /**
18374
18404
  * Typed failure raised by {@link compileAndExpand}: the single error the
18375
18405
  * compile+expand recipe fails with, so a caller catches one tag rather than
@@ -18388,7 +18418,7 @@ const descend = effect.Effect.fn("Walker.descend")(function* (pattern, options)
18388
18418
  *
18389
18419
  * @public
18390
18420
  */
18391
- var GlobExpansionError = class extends effect.Schema.TaggedErrorClass()("GlobExpansionError", {
18421
+ var GlobExpansionError = class extends effect.Schema.TaggedError()("GlobExpansionError", {
18392
18422
  /** The glob pattern's source text, as handed to {@link compileAndExpand}. */
18393
18423
  pattern: effect.Schema.String,
18394
18424
  /** The underlying typed failure, intact: a compile guard trip or a descent failure. */
@@ -18459,7 +18489,7 @@ const compileAndExpand = effect.Effect.fn("Walker.compileAndExpand")(function* (
18459
18489
  })));
18460
18490
  });
18461
18491
  //#endregion
18462
- //#region ../../node_modules/.pnpm/@effected+walker@0.3.4_@effected+glob@0.2.2_effect@4.0.0-beta.101__effect@4.0.0-beta.101/node_modules/@effected/walker/Walker.js
18492
+ //#region ../../node_modules/.pnpm/@effected+walker@0.4.0_@effected+glob@0.3.0_effect@4.0.0-beta.107__effect@4.0.0-beta.107/node_modules/@effected/walker/Walker.js
18463
18493
  const ascend = (start, options) => effect.Effect.gen(function* () {
18464
18494
  const path = yield* effect.Path.Path;
18465
18495
  const maxDepth = options?.maxDepth ?? 256;
@@ -18553,7 +18583,7 @@ var Walker$1 = class {
18553
18583
  static findRoot = findRoot$1;
18554
18584
  };
18555
18585
  //#endregion
18556
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/WorkspaceRoot.js
18586
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceRoot.js
18557
18587
  /**
18558
18588
  * The marker filenames {@link WorkspaceRoot} probes for, in priority order.
18559
18589
  *
@@ -18569,7 +18599,7 @@ const WORKSPACE_MARKERS = ["pnpm-workspace.yaml", "package.json"];
18569
18599
  *
18570
18600
  * @public
18571
18601
  */
18572
- var WorkspaceRootNotFoundError = class extends effect.Schema.TaggedErrorClass()("WorkspaceRootNotFoundError", {
18602
+ var WorkspaceRootNotFoundError = class extends effect.Schema.TaggedError()("WorkspaceRootNotFoundError", {
18573
18603
  /** The directory the ascent started from. */
18574
18604
  searchPath: effect.Schema.String,
18575
18605
  /** The marker filenames probed at each ancestor. */
@@ -18740,7 +18770,7 @@ var WorkspaceRoot = class WorkspaceRoot extends effect.Context.Service()("@effec
18740
18770
  static layerTest = (root) => effect.Layer.effect(WorkspaceRoot, WorkspaceRoot.makeTest(root)).pipe(effect.Layer.provide(effect.Path.layer));
18741
18771
  };
18742
18772
  //#endregion
18743
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/internal/limits.js
18773
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/limits.js
18744
18774
  /**
18745
18775
  * Hard ceiling on directories the enumerator will visit for one pattern set.
18746
18776
  * Guards the pathological case a depth cap alone does not: a wide, shallow
@@ -18758,7 +18788,7 @@ const MAX_ENUMERATION_ENTRIES = 1e5;
18758
18788
  */
18759
18789
  const PRUNED_DIRECTORIES = /* @__PURE__ */ new Set([".git", "node_modules"]);
18760
18790
  //#endregion
18761
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/internal/traverse.js
18791
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/traverse.js
18762
18792
  /** Directory names never descended into. */
18763
18793
  const isPruned = (entry) => PRUNED_DIRECTORIES.has(entry);
18764
18794
  /** Join root-relative POSIX segments; `""` is the root itself. */
@@ -18848,7 +18878,7 @@ var Traversal = class {
18848
18878
  }
18849
18879
  };
18850
18880
  //#endregion
18851
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/internal/enumerate.js
18881
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/enumerate.js
18852
18882
  /** Strip a trailing slash from `GlobPattern.enumerationPrefix` to get a relative directory. */
18853
18883
  const baseOf = (pattern) => pattern.enumerationPrefix.replace(/\/$/, "");
18854
18884
  /**
@@ -18918,7 +18948,7 @@ const enumerate = (root, globs, options) => effect.Effect.gen(function* () {
18918
18948
  return results;
18919
18949
  });
18920
18950
  //#endregion
18921
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/internal/patterns.js
18951
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/patterns.js
18922
18952
  const stringsOf = (value) => Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : void 0;
18923
18953
  /** The `packages:` list of a `pnpm-workspace.yaml` document. Total on a parsed document. */
18924
18954
  const pnpmPatternsOf = (document) => {
@@ -18975,7 +19005,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
18975
19005
  return manifestPatternsOf(manifest);
18976
19006
  });
18977
19007
  //#endregion
18978
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/WorkspaceDiscovery.js
19008
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceDiscovery.js
18979
19009
  /**
18980
19010
  * Raised when a workspace member's `package.json` cannot be read, parsed, or
18981
19011
  * used — it is missing, malformed, or lacks a `name` or `version`.
@@ -18986,7 +19016,7 @@ const readPatterns = (root) => effect.Effect.gen(function* () {
18986
19016
  *
18987
19017
  * @public
18988
19018
  */
18989
- var WorkspaceDiscoveryError = class extends effect.Schema.TaggedErrorClass()("WorkspaceDiscoveryError", {
19019
+ var WorkspaceDiscoveryError = class extends effect.Schema.TaggedError()("WorkspaceDiscoveryError", {
18990
19020
  /** The workspace root discovery was running against. */
18991
19021
  root: effect.Schema.String,
18992
19022
  /** The file that failed. */
@@ -19015,7 +19045,7 @@ var WorkspaceDiscoveryError = class extends effect.Schema.TaggedErrorClass()("Wo
19015
19045
  *
19016
19046
  * @public
19017
19047
  */
19018
- var WorkspacePatternError = class extends effect.Schema.TaggedErrorClass()("WorkspacePatternError", {
19048
+ var WorkspacePatternError = class extends effect.Schema.TaggedError()("WorkspacePatternError", {
19019
19049
  /** The workspace root the patterns were expanded against. */
19020
19050
  root: effect.Schema.String,
19021
19051
  /** The offending pattern, verbatim. */
@@ -19045,7 +19075,7 @@ var WorkspacePatternError = class extends effect.Schema.TaggedErrorClass()("Work
19045
19075
  *
19046
19076
  * @public
19047
19077
  */
19048
- var PackageNotFoundError = class extends effect.Schema.TaggedErrorClass()("PackageNotFoundError", {
19078
+ var PackageNotFoundError = class extends effect.Schema.TaggedError()("PackageNotFoundError", {
19049
19079
  /** The name that was requested. */
19050
19080
  name: effect.Schema.String,
19051
19081
  /** Every workspace package name that does exist. */
@@ -19431,7 +19461,7 @@ var WorkspaceDiscovery = class WorkspaceDiscovery extends effect.Context.Service
19431
19461
  };
19432
19462
  const isStringRecord$2 = (value) => value !== null && typeof value === "object" && !Array.isArray(value) && Object.values(value).every((entry) => typeof entry === "string");
19433
19463
  //#endregion
19434
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/DependencyGraph.js
19464
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/DependencyGraph.js
19435
19465
  /**
19436
19466
  * Raised when the workspace dependency graph cannot be topologically ordered
19437
19467
  * because it contains a cycle.
@@ -19443,7 +19473,7 @@ const isStringRecord$2 = (value) => value !== null && typeof value === "object"
19443
19473
  *
19444
19474
  * @public
19445
19475
  */
19446
- var CyclicDependencyError = class extends effect.Schema.TaggedErrorClass()("CyclicDependencyError", {
19476
+ var CyclicDependencyError = class extends effect.Schema.TaggedError()("CyclicDependencyError", {
19447
19477
  /** The packages participating in the cycle. */
19448
19478
  cycle: effect.Schema.Array(effect.Schema.String) }) {
19449
19479
  /** Renders the cycle members into a one-line message. */
@@ -19664,7 +19694,7 @@ const kahn = (edges) => {
19664
19694
  };
19665
19695
  };
19666
19696
  //#endregion
19667
- //#region ../../node_modules/.pnpm/@effected+git@0.6.0_effect@4.0.0-beta.101/node_modules/@effected/git/GitCommand.js
19697
+ //#region ../../node_modules/.pnpm/@effected+git@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/git/GitCommand.js
19668
19698
  /** The mask every whole-value sensitive positional is replaced with. */
19669
19699
  const REDACTED = "<redacted>";
19670
19700
  const secretValue = (value) => ({
@@ -20747,7 +20777,7 @@ var GitCommand = class {
20747
20777
  static lsFiles = lsFiles;
20748
20778
  };
20749
20779
  //#endregion
20750
- //#region ../../node_modules/.pnpm/@effected+git@0.6.0_effect@4.0.0-beta.101/node_modules/@effected/git/internal/run.js
20780
+ //#region ../../node_modules/.pnpm/@effected+git@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/git/internal/run.js
20751
20781
  /**
20752
20782
  * Spawns `command` and collects its stdout, stderr, and exit code as a single
20753
20783
  * triple.
@@ -20774,7 +20804,7 @@ const runCollected = (command) => effect.Effect.scoped(effect.Effect.gen(functio
20774
20804
  };
20775
20805
  }));
20776
20806
  //#endregion
20777
- //#region ../../node_modules/.pnpm/@effected+git@0.6.0_effect@4.0.0-beta.101/node_modules/@effected/git/Git.js
20807
+ //#region ../../node_modules/.pnpm/@effected+git@0.7.0_effect@4.0.0-beta.107/node_modules/@effected/git/Git.js
20778
20808
  /** git's own ceiling: a run that has not answered in 30s is not going to. */
20779
20809
  const GIT_TIMEOUT = effect.Duration.seconds(30);
20780
20810
  /**
@@ -20793,7 +20823,7 @@ const GIT_TIMEOUT = effect.Duration.seconds(30);
20793
20823
  *
20794
20824
  * @public
20795
20825
  */
20796
- var GitCommandError = class extends effect.Schema.TaggedErrorClass()("GitCommandError", {
20826
+ var GitCommandError = class extends effect.Schema.TaggedError()("GitCommandError", {
20797
20827
  /**
20798
20828
  * Discriminates a pre-spawn guard rejection from a genuine git failure.
20799
20829
  * `"refused"` — a pre-spawn guard (an option-like ref) rejected the
@@ -20832,7 +20862,7 @@ var GitCommandError = class extends effect.Schema.TaggedErrorClass()("GitCommand
20832
20862
  *
20833
20863
  * @public
20834
20864
  */
20835
- var NotARepositoryError = class extends effect.Schema.TaggedErrorClass()("NotARepositoryError", {
20865
+ var NotARepositoryError = class extends effect.Schema.TaggedError()("NotARepositoryError", {
20836
20866
  /** The working directory that is not a git repository. */
20837
20867
  cwd: effect.Schema.String }) {
20838
20868
  /** Renders the failing directory into a one-line message. */
@@ -20845,7 +20875,7 @@ cwd: effect.Schema.String }) {
20845
20875
  *
20846
20876
  * @public
20847
20877
  */
20848
- var UnknownRefError = class extends effect.Schema.TaggedErrorClass()("UnknownRefError", {
20878
+ var UnknownRefError = class extends effect.Schema.TaggedError()("UnknownRefError", {
20849
20879
  /** The ref (or ref range) that failed to resolve. */
20850
20880
  ref: effect.Schema.String,
20851
20881
  /** The working directory the ref was resolved against. */
@@ -20868,7 +20898,7 @@ var UnknownRefError = class extends effect.Schema.TaggedErrorClass()("UnknownRef
20868
20898
  *
20869
20899
  * @public
20870
20900
  */
20871
- var NonFastForwardError = class extends effect.Schema.TaggedErrorClass()("NonFastForwardError", {
20901
+ var NonFastForwardError = class extends effect.Schema.TaggedError()("NonFastForwardError", {
20872
20902
  /** The working directory the push ran in. */
20873
20903
  cwd: effect.Schema.String,
20874
20904
  /** The refspec that was rejected, when the caller passed one. */
@@ -20892,7 +20922,7 @@ var NonFastForwardError = class extends effect.Schema.TaggedErrorClass()("NonFas
20892
20922
  *
20893
20923
  * @public
20894
20924
  */
20895
- var MergeConflictError = class extends effect.Schema.TaggedErrorClass()("MergeConflictError", {
20925
+ var MergeConflictError = class extends effect.Schema.TaggedError()("MergeConflictError", {
20896
20926
  /** The working directory the merge ran in. */
20897
20927
  cwd: effect.Schema.String }) {
20898
20928
  /** Renders the conflicted merge into a one-line message. */
@@ -20913,7 +20943,7 @@ cwd: effect.Schema.String }) {
20913
20943
  *
20914
20944
  * @public
20915
20945
  */
20916
- var DirtyWorktreeError = class extends effect.Schema.TaggedErrorClass()("DirtyWorktreeError", {
20946
+ var DirtyWorktreeError = class extends effect.Schema.TaggedError()("DirtyWorktreeError", {
20917
20947
  /** The working directory whose local changes blocked the operation. */
20918
20948
  cwd: effect.Schema.String }) {
20919
20949
  /** Renders the blocked operation into a one-line message. */
@@ -22923,7 +22953,7 @@ var Git = class Git extends effect.Context.Service()("@effected/git/Git") {
22923
22953
  static layerTest = (overrides = {}) => effect.Layer.succeed(Git, Git.makeTest(overrides));
22924
22954
  };
22925
22955
  //#endregion
22926
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/ChangeDetector.js
22956
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/ChangeDetector.js
22927
22957
  /**
22928
22958
  * Which git refs to compare, and whether to fold in the working tree.
22929
22959
  *
@@ -22958,7 +22988,7 @@ var ChangeDetectionOptions = class extends effect.Schema.Class("ChangeDetectionO
22958
22988
  */
22959
22989
  includeUncommitted: effect.Schema.Boolean.pipe(effect.Schema.withDecodingDefaultKey(effect.Effect.succeed(false)), effect.Schema.withConstructorDefault(effect.Effect.succeed(false)))
22960
22990
  }) {};
22961
- effect.Schema.TaggedErrorClass()("ChangeDetectionError", {
22991
+ effect.Schema.TaggedError()("ChangeDetectionError", {
22962
22992
  /** The operation that could not run. */
22963
22993
  operation: effect.Schema.String,
22964
22994
  /** The originating failure. */
@@ -23179,7 +23209,7 @@ function resolveFromCatalog(catalogs, wantedDependency) {
23179
23209
  };
23180
23210
  }
23181
23211
  //#endregion
23182
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/internal/catalogs.js
23212
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/catalogs.js
23183
23213
  /** Project a pnpm-workspace manifest's `catalog` / `catalogs` fields into a `Catalogs` map. */
23184
23214
  const inlineCatalogs = (manifest) => {
23185
23215
  if (manifest.catalog === void 0 && manifest.catalogs === void 0) return {};
@@ -23243,7 +23273,7 @@ const rangeOf = (catalogs, dependency, specifier) => {
23243
23273
  });
23244
23274
  };
23245
23275
  //#endregion
23246
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/ConfigDependencyHooks.js
23276
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/ConfigDependencyHooks.js
23247
23277
  /** Whether `value` is a non-null, non-array object. */
23248
23278
  const isObject$2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
23249
23279
  /**
@@ -23654,7 +23684,7 @@ var ConfigDependencyHooks = class ConfigDependencyHooks extends effect.Context.S
23654
23684
  }));
23655
23685
  };
23656
23686
  //#endregion
23657
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/PackageManagerName.js
23687
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/PackageManagerName.js
23658
23688
  /**
23659
23689
  * The four package managers this package understands.
23660
23690
  *
@@ -23738,7 +23768,7 @@ const corepackHint = (manifest) => {
23738
23768
  *
23739
23769
  * @public
23740
23770
  */
23741
- var PackageManagerDetectionError = class extends effect.Schema.TaggedErrorClass()("PackageManagerDetectionError", {
23771
+ var PackageManagerDetectionError = class extends effect.Schema.TaggedError()("PackageManagerDetectionError", {
23742
23772
  /** The workspace root that was probed. */
23743
23773
  root: effect.Schema.String,
23744
23774
  /** The marker files probed, in the order they were probed. */
@@ -23982,7 +24012,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
23982
24012
  static layerTest = (overrides = {}) => effect.Layer.succeed(PackageManagerDetector, PackageManagerDetector.makeTest(overrides));
23983
24013
  };
23984
24014
  //#endregion
23985
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/LockfileReader.js
24015
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/LockfileReader.js
23986
24016
  /**
23987
24017
  * Raised when the workspace's lockfile cannot be read off disk.
23988
24018
  *
@@ -23992,7 +24022,7 @@ var PackageManagerDetector = class PackageManagerDetector extends effect.Context
23992
24022
  *
23993
24023
  * @public
23994
24024
  */
23995
- var LockfileReadError = class extends effect.Schema.TaggedErrorClass()("LockfileReadError", {
24025
+ var LockfileReadError = class extends effect.Schema.TaggedError()("LockfileReadError", {
23996
24026
  /** Absolute path to the lockfile that could not be read. */
23997
24027
  lockfilePath: effect.Schema.String,
23998
24028
  /** The format the detected package manager implies. */
@@ -24162,7 +24192,7 @@ var LockfileReader = class LockfileReader extends effect.Context.Service()("@eff
24162
24192
  static layerTest = (overrides = {}) => effect.Layer.succeed(LockfileReader, LockfileReader.makeTest(overrides));
24163
24193
  };
24164
24194
  //#endregion
24165
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/Publishability.js
24195
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/Publishability.js
24166
24196
  /** The public npm registry, used when `publishConfig.registry` says nothing. */
24167
24197
  const DEFAULT_REGISTRY = "https://registry.npmjs.org/";
24168
24198
  /**
@@ -24321,7 +24351,7 @@ var PublishabilityDetector = class extends effect.Context.Service()("@effected/w
24321
24351
  static layerNone = effect.Layer.succeed(this, this.none);
24322
24352
  };
24323
24353
  //#endregion
24324
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/internal/importerVersions.js
24354
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/internal/importerVersions.js
24325
24355
  /**
24326
24356
  * Strip pnpm's peer-disambiguation suffix from a recorded importer version.
24327
24357
  *
@@ -24407,7 +24437,7 @@ const unanimousVersionOf = (index, dependency) => {
24407
24437
  return agreed;
24408
24438
  };
24409
24439
  //#endregion
24410
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/WorkspaceCatalogs.js
24440
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceCatalogs.js
24411
24441
  /**
24412
24442
  * An immutable, fully-normalized catalog collection — the one catalog
24413
24443
  * resolution semantic in the package.
@@ -24934,7 +24964,7 @@ var WorkspaceCatalogs = class WorkspaceCatalogs extends effect.Context.Service()
24934
24964
  }));
24935
24965
  };
24936
24966
  //#endregion
24937
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/WorkspaceStateSnapshot.js
24967
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceStateSnapshot.js
24938
24968
  const EMPTY = Object.freeze(Object.create(null));
24939
24969
  const DependencyMap = effect.Schema.Record(effect.Schema.String, effect.Schema.String).pipe(effect.Schema.withDecodingDefaultKey(effect.Effect.succeed(EMPTY)), effect.Schema.withConstructorDefault(effect.Effect.succeed(EMPTY)));
24940
24970
  /**
@@ -25157,7 +25187,7 @@ var WorkspaceStateSnapshot = class extends effect.Schema.Class("WorkspaceStateSn
25157
25187
  }
25158
25188
  };
25159
25189
  //#endregion
25160
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/WorkspaceSnapshots.js
25190
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/WorkspaceSnapshots.js
25161
25191
  /** Whether `value` is a non-null, non-array object. */
25162
25192
  const isObject = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
25163
25193
  /** Whether every value in a record is a string — a usable dependency map. */
@@ -25434,7 +25464,7 @@ var WorkspaceSnapshots = class WorkspaceSnapshots extends effect.Context.Service
25434
25464
  static layerTest = (overrides = {}) => effect.Layer.succeed(WorkspaceSnapshots, WorkspaceSnapshots.makeTest(overrides));
25435
25465
  };
25436
25466
  //#endregion
25437
- //#region ../../node_modules/.pnpm/@effected+workspaces@0.10.2_@effected+jsonc@0.5.2_effect@4.0.0-beta.101__@effected+semv_feff9e309e6abeafa28f7ea259b8a9bf/node_modules/@effected/workspaces/Workspaces.js
25467
+ //#region ../../node_modules/.pnpm/@effected+workspaces@0.11.0_@effected+jsonc@0.6.0_effect@4.0.0-beta.107__@effected+semv_5ce79e6ba86c98d431ee3b93095bc1a7/node_modules/@effected/workspaces/Workspaces.js
25438
25468
  const compose = (options, catalogsFactory) => {
25439
25469
  const roots = WorkspaceRoot.layer;
25440
25470
  const detector = PackageManagerDetector.layer;
@@ -29912,14 +29942,15 @@ function markdownTable(table, options) {
29912
29942
  const size = longestCellByColumn[columnIndex] - (sizes[columnIndex] || 0);
29913
29943
  const code = alignments[columnIndex];
29914
29944
  if (code === 114) before = " ".repeat(size);
29915
- else if (code === 99) if (size % 2) {
29916
- before = " ".repeat(size / 2 + .5);
29917
- after = " ".repeat(size / 2 - .5);
29918
- } else {
29919
- before = " ".repeat(size / 2);
29920
- after = before;
29921
- }
29922
- else after = " ".repeat(size);
29945
+ else if (code === 99) {
29946
+ if (size % 2) {
29947
+ before = " ".repeat(size / 2 + .5);
29948
+ after = " ".repeat(size / 2 - .5);
29949
+ } else {
29950
+ before = " ".repeat(size / 2);
29951
+ after = before;
29952
+ }
29953
+ } else after = " ".repeat(size);
29923
29954
  }
29924
29955
  if (settings.delimiterStart !== false && !columnIndex) line.push("|");
29925
29956
  if (settings.padding !== false && !(settings.alignDelimiters === false && cell === "") && (settings.delimiterStart !== false || columnIndex)) line.push(" ");
@@ -42777,19 +42808,21 @@ function resolveTable(events, context) {
42777
42808
  }
42778
42809
  cell[2] = index;
42779
42810
  }
42780
- } else if (token.type === "tableCellDivider") if (inFirstCellAwaitingPipe) inFirstCellAwaitingPipe = false;
42781
- else {
42782
- if (lastCell[1] !== 0) {
42783
- cell[0] = cell[1];
42784
- currentCell = flushCell(map, context, lastCell, rowKind, void 0, currentCell);
42811
+ } else if (token.type === "tableCellDivider") {
42812
+ if (inFirstCellAwaitingPipe) inFirstCellAwaitingPipe = false;
42813
+ else {
42814
+ if (lastCell[1] !== 0) {
42815
+ cell[0] = cell[1];
42816
+ currentCell = flushCell(map, context, lastCell, rowKind, void 0, currentCell);
42817
+ }
42818
+ lastCell = cell;
42819
+ cell = [
42820
+ lastCell[1],
42821
+ index,
42822
+ 0,
42823
+ 0
42824
+ ];
42785
42825
  }
42786
- lastCell = cell;
42787
- cell = [
42788
- lastCell[1],
42789
- index,
42790
- 0,
42791
- 0
42792
- ];
42793
42826
  }
42794
42827
  } else if (token.type === "tableHead") {
42795
42828
  afterHeadAwaitingFirstBodyRow = true;
@@ -44599,8 +44632,10 @@ function compiler(options) {
44599
44632
  /** @type {Array<number>} */
44600
44633
  const listStack = [];
44601
44634
  let index = -1;
44602
- while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") if (events[index][0] === "enter") listStack.push(index);
44603
- else index = prepareList(events, listStack.pop(), index);
44635
+ while (++index < events.length) if (events[index][1].type === "listOrdered" || events[index][1].type === "listUnordered") {
44636
+ if (events[index][0] === "enter") listStack.push(index);
44637
+ else index = prepareList(events, listStack.pop(), index);
44638
+ }
44604
44639
  index = -1;
44605
44640
  while (++index < events.length) {
44606
44641
  const handler = config[events[index][0]];
@@ -44790,8 +44825,10 @@ function compiler(options) {
44790
44825
  start: token.start,
44791
44826
  end: token.end
44792
44827
  }) + "): it’s not open");
44793
- else if (open[0].type !== token.type) if (onExitError) onExitError.call(this, token, open[0]);
44794
- else (open[1] || defaultOnError).call(this, token, open[0]);
44828
+ else if (open[0].type !== token.type) {
44829
+ if (onExitError) onExitError.call(this, token, open[0]);
44830
+ else (open[1] || defaultOnError).call(this, token, open[0]);
44831
+ }
44795
44832
  node.position.end = point(token.end);
44796
44833
  }
44797
44834
  /**
@@ -45642,9 +45679,11 @@ function wrap(middleware, callback) {
45642
45679
  if (fnExpectsCallback && called) throw exception;
45643
45680
  return done(exception);
45644
45681
  }
45645
- if (!fnExpectsCallback) if (result && result.then && typeof result.then === "function") result.then(then, done);
45646
- else if (result instanceof Error) done(result);
45647
- else then(result);
45682
+ if (!fnExpectsCallback) {
45683
+ if (result && result.then && typeof result.then === "function") result.then(then, done);
45684
+ else if (result instanceof Error) done(result);
45685
+ else then(result);
45686
+ }
45648
45687
  }
45649
45688
  /**
45650
45689
  * Call `callback`, only once.
@@ -45756,13 +45795,15 @@ var VFileMessage = class extends Error {
45756
45795
  /** @type {Options} */
45757
45796
  let options = {};
45758
45797
  let legacyCause = false;
45759
- if (optionsOrParentOrPlace) if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
45760
- else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
45761
- else if ("type" in optionsOrParentOrPlace) options = {
45762
- ancestors: [optionsOrParentOrPlace],
45763
- place: optionsOrParentOrPlace.position
45764
- };
45765
- else options = { ...optionsOrParentOrPlace };
45798
+ if (optionsOrParentOrPlace) {
45799
+ if ("line" in optionsOrParentOrPlace && "column" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
45800
+ else if ("start" in optionsOrParentOrPlace && "end" in optionsOrParentOrPlace) options = { place: optionsOrParentOrPlace };
45801
+ else if ("type" in optionsOrParentOrPlace) options = {
45802
+ ancestors: [optionsOrParentOrPlace],
45803
+ place: optionsOrParentOrPlace.position
45804
+ };
45805
+ else options = { ...optionsOrParentOrPlace };
45806
+ }
45766
45807
  if (typeof causeOrReason === "string") reason = causeOrReason;
45767
45808
  else if (!options.cause && causeOrReason) {
45768
45809
  legacyCause = true;
@@ -47405,9 +47446,10 @@ const unified = new class Processor extends CallableInstance {
47405
47446
  const namespace = this.namespace;
47406
47447
  assertUnfrozen("use", this.frozen);
47407
47448
  if (value === null || value === void 0) {} else if (typeof value === "function") addPlugin(value, parameters);
47408
- else if (typeof value === "object") if (Array.isArray(value)) addList(value);
47409
- else addPreset(value);
47410
- else throw new TypeError("Expected usable value, not `" + value + "`");
47449
+ else if (typeof value === "object") {
47450
+ if (Array.isArray(value)) addList(value);
47451
+ else addPreset(value);
47452
+ } else throw new TypeError("Expected usable value, not `" + value + "`");
47411
47453
  return this;
47412
47454
  /**
47413
47455
  * @param {Pluggable} value
@@ -47415,11 +47457,12 @@ const unified = new class Processor extends CallableInstance {
47415
47457
  */
47416
47458
  function add(value) {
47417
47459
  if (typeof value === "function") addPlugin(value, []);
47418
- else if (typeof value === "object") if (Array.isArray(value)) {
47419
- const [plugin, ...parameters] = value;
47420
- addPlugin(plugin, parameters);
47421
- } else addPreset(value);
47422
- else throw new TypeError("Expected usable value, not `" + value + "`");
47460
+ else if (typeof value === "object") {
47461
+ if (Array.isArray(value)) {
47462
+ const [plugin, ...parameters] = value;
47463
+ addPlugin(plugin, parameters);
47464
+ } else addPreset(value);
47465
+ } else throw new TypeError("Expected usable value, not `" + value + "`");
47423
47466
  }
47424
47467
  /**
47425
47468
  * @param {Preset} result
@@ -48742,10 +48785,12 @@ function formatChangelogEntry(entry, options) {
48742
48785
  */
48743
48786
  function formatPRAndUserAttribution(pr, user, links) {
48744
48787
  let prReference = "";
48745
- if (pr) if (links?.pull) {
48746
- const pullUrl = extractUrlFromMarkdown(links.pull);
48747
- prReference = ` [#${String(pr)}](${pullUrl})`;
48748
- } else prReference = ` (#${String(pr)})`;
48788
+ if (pr) {
48789
+ if (links?.pull) {
48790
+ const pullUrl = extractUrlFromMarkdown(links.pull);
48791
+ prReference = ` [#${String(pr)}](${pullUrl})`;
48792
+ } else prReference = ` (#${String(pr)})`;
48793
+ }
48749
48794
  if (user) {
48750
48795
  if (links?.user) {
48751
48796
  const userUrl = extractUrlFromMarkdown(links.user);
@@ -53822,10 +53867,12 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
53822
53867
  }
53823
53868
  return esc ? m : `\\${m}`;
53824
53869
  });
53825
- if (backslashes === true) if (opts.unescape === true) output = output.replace(/\\/g, "");
53826
- else output = output.replace(/\\+/g, (m) => {
53827
- return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
53828
- });
53870
+ if (backslashes === true) {
53871
+ if (opts.unescape === true) output = output.replace(/\\/g, "");
53872
+ else output = output.replace(/\\+/g, (m) => {
53873
+ return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
53874
+ });
53875
+ }
53829
53876
  if (output === input && opts.contains === true) {
53830
53877
  state.output = input;
53831
53878
  return state;
@@ -54596,8 +54643,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
54596
54643
  output = format ? format(input) : input;
54597
54644
  match = output === glob;
54598
54645
  }
54599
- if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
54600
- else match = regex.exec(output);
54646
+ if (match === false || opts.capture === true) {
54647
+ if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
54648
+ else match = regex.exec(output);
54649
+ }
54601
54650
  return {
54602
54651
  isMatch: Boolean(match),
54603
54652
  match,
@@ -55300,9 +55349,10 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
55300
55349
  function replaceNode(key, path, node) {
55301
55350
  const parent = path[path.length - 1];
55302
55351
  if (identity.isCollection(parent)) parent.items[key] = node;
55303
- else if (identity.isPair(parent)) if (key === "key") parent.key = node;
55304
- else parent.value = node;
55305
- else if (identity.isDocument(parent)) parent.contents = node;
55352
+ else if (identity.isPair(parent)) {
55353
+ if (key === "key") parent.key = node;
55354
+ else parent.value = node;
55355
+ } else if (identity.isDocument(parent)) parent.contents = node;
55306
55356
  else {
55307
55357
  const pt = identity.isAlias(parent) ? "alias" : "scalar";
55308
55358
  throw new Error(`Cannot replace node with ${pt} parent`);
@@ -55553,30 +55603,32 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
55553
55603
  * Includes extensions for handling Map and Set objects.
55554
55604
  */
55555
55605
  function applyReviver(reviver, obj, key, val) {
55556
- if (val && typeof val === "object") if (Array.isArray(val)) for (let i = 0, len = val.length; i < len; ++i) {
55557
- const v0 = val[i];
55558
- const v1 = applyReviver(reviver, val, String(i), v0);
55559
- if (v1 === void 0) delete val[i];
55560
- else if (v1 !== v0) val[i] = v1;
55561
- }
55562
- else if (val instanceof Map) for (const k of Array.from(val.keys())) {
55563
- const v0 = val.get(k);
55564
- const v1 = applyReviver(reviver, val, k, v0);
55565
- if (v1 === void 0) val.delete(k);
55566
- else if (v1 !== v0) val.set(k, v1);
55567
- }
55568
- else if (val instanceof Set) for (const v0 of Array.from(val)) {
55569
- const v1 = applyReviver(reviver, val, v0, v0);
55570
- if (v1 === void 0) val.delete(v0);
55571
- else if (v1 !== v0) {
55572
- val.delete(v0);
55573
- val.add(v1);
55574
- }
55575
- }
55576
- else for (const [k, v0] of Object.entries(val)) {
55577
- const v1 = applyReviver(reviver, val, k, v0);
55578
- if (v1 === void 0) delete val[k];
55579
- else if (v1 !== v0) val[k] = v1;
55606
+ if (val && typeof val === "object") {
55607
+ if (Array.isArray(val)) for (let i = 0, len = val.length; i < len; ++i) {
55608
+ const v0 = val[i];
55609
+ const v1 = applyReviver(reviver, val, String(i), v0);
55610
+ if (v1 === void 0) delete val[i];
55611
+ else if (v1 !== v0) val[i] = v1;
55612
+ }
55613
+ else if (val instanceof Map) for (const k of Array.from(val.keys())) {
55614
+ const v0 = val.get(k);
55615
+ const v1 = applyReviver(reviver, val, k, v0);
55616
+ if (v1 === void 0) val.delete(k);
55617
+ else if (v1 !== v0) val.set(k, v1);
55618
+ }
55619
+ else if (val instanceof Set) for (const v0 of Array.from(val)) {
55620
+ const v1 = applyReviver(reviver, val, v0, v0);
55621
+ if (v1 === void 0) val.delete(v0);
55622
+ else if (v1 !== v0) {
55623
+ val.delete(v0);
55624
+ val.add(v1);
55625
+ }
55626
+ }
55627
+ else for (const [k, v0] of Object.entries(val)) {
55628
+ const v1 = applyReviver(reviver, val, k, v0);
55629
+ if (v1 === void 0) delete val[k];
55630
+ else if (v1 !== v0) val[k] = v1;
55631
+ }
55580
55632
  }
55581
55633
  return reviver.call(obj, key, val);
55582
55634
  }
@@ -55997,8 +56049,10 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
55997
56049
  const folds = [];
55998
56050
  const escapedFolds = {};
55999
56051
  let end = lineWidth - indent.length;
56000
- if (typeof indentAtStart === "number") if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);
56001
- else end = lineWidth - indentAtStart;
56052
+ if (typeof indentAtStart === "number") {
56053
+ if (indentAtStart > lineWidth - Math.max(2, minContentWidth)) folds.push(0);
56054
+ else end = lineWidth - indentAtStart;
56055
+ }
56002
56056
  let split = void 0;
56003
56057
  let prev = void 0;
56004
56058
  let overflow = false;
@@ -56035,23 +56089,25 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
56035
56089
  const next = text[i + 1];
56036
56090
  if (next && next !== " " && next !== "\n" && next !== " ") split = i;
56037
56091
  }
56038
- if (i >= end) if (split) {
56039
- folds.push(split);
56040
- end = split + endStep;
56041
- split = void 0;
56042
- } else if (mode === FOLD_QUOTED) {
56043
- while (prev === " " || prev === " ") {
56044
- prev = ch;
56045
- ch = text[i += 1];
56046
- overflow = true;
56047
- }
56048
- const j = i > escEnd + 1 ? i - 2 : escStart - 1;
56049
- if (escapedFolds[j]) return text;
56050
- folds.push(j);
56051
- escapedFolds[j] = true;
56052
- end = j + endStep;
56053
- split = void 0;
56054
- } else overflow = true;
56092
+ if (i >= end) {
56093
+ if (split) {
56094
+ folds.push(split);
56095
+ end = split + endStep;
56096
+ split = void 0;
56097
+ } else if (mode === FOLD_QUOTED) {
56098
+ while (prev === " " || prev === " ") {
56099
+ prev = ch;
56100
+ ch = text[i += 1];
56101
+ overflow = true;
56102
+ }
56103
+ const j = i > escEnd + 1 ? i - 2 : escStart - 1;
56104
+ if (escapedFolds[j]) return text;
56105
+ folds.push(j);
56106
+ escapedFolds[j] = true;
56107
+ end = j + endStep;
56108
+ split = void 0;
56109
+ } else overflow = true;
56110
+ }
56055
56111
  }
56056
56112
  prev = ch;
56057
56113
  }
@@ -56531,8 +56587,10 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
56531
56587
  if (logLevel === "debug") console.log(...messages);
56532
56588
  }
56533
56589
  function warn(logLevel, warning) {
56534
- if (logLevel === "debug" || logLevel === "warn") if (typeof node_process$3.emitWarning === "function") node_process$3.emitWarning(warning);
56535
- else console.warn(warning);
56590
+ if (logLevel === "debug" || logLevel === "warn") {
56591
+ if (typeof node_process$3.emitWarning === "function") node_process$3.emitWarning(warning);
56592
+ else console.warn(warning);
56593
+ }
56536
56594
  }
56537
56595
  exports.debug = debug;
56538
56596
  exports.warn = warn;
@@ -57359,11 +57417,12 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
57359
57417
  if (iterable && Symbol.iterator in Object(iterable)) for (let it of iterable) {
57360
57418
  if (typeof replacer === "function") it = replacer.call(iterable, String(i++), it);
57361
57419
  let key, value;
57362
- if (Array.isArray(it)) if (it.length === 2) {
57363
- key = it[0];
57364
- value = it[1];
57365
- } else throw new TypeError(`Expected [key, value] tuple: ${it}`);
57366
- else if (it && it instanceof Object) {
57420
+ if (Array.isArray(it)) {
57421
+ if (it.length === 2) {
57422
+ key = it[0];
57423
+ value = it[1];
57424
+ } else throw new TypeError(`Expected [key, value] tuple: ${it}`);
57425
+ } else if (it && it instanceof Object) {
57367
57426
  const keys = Object.keys(it);
57368
57427
  if (keys.length === 1) {
57369
57428
  key = keys[0];
@@ -57439,8 +57498,10 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
57439
57498
  resolve(seq, onError) {
57440
57499
  const pairs$1 = pairs.resolvePairs(seq, onError);
57441
57500
  const seenKeys = [];
57442
- for (const { key } of pairs$1.items) if (identity.isScalar(key)) if (seenKeys.includes(key.value)) onError(`Ordered maps must not include duplicate keys: ${key.value}`);
57443
- else seenKeys.push(key.value);
57501
+ for (const { key } of pairs$1.items) if (identity.isScalar(key)) {
57502
+ if (seenKeys.includes(key.value)) onError(`Ordered maps must not include duplicate keys: ${key.value}`);
57503
+ else seenKeys.push(key.value);
57504
+ }
57444
57505
  return Object.assign(new YAMLOMap(), pairs$1);
57445
57506
  },
57446
57507
  createNode: (schema, iterable, ctx) => YAMLOMap.from(schema, iterable, ctx)
@@ -57651,9 +57712,10 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
57651
57712
  tag: "tag:yaml.org,2002:set",
57652
57713
  createNode: (schema, iterable, ctx) => YAMLSet.from(schema, iterable, ctx),
57653
57714
  resolve(map, onError) {
57654
- if (identity.isMap(map)) if (map.hasAllNullValues(true)) return Object.assign(new YAMLSet(), map);
57655
- else onError("Set items must all have null values");
57656
- else onError("Expected a mapping for this tag");
57715
+ if (identity.isMap(map)) {
57716
+ if (map.hasAllNullValues(true)) return Object.assign(new YAMLSet(), map);
57717
+ else onError("Set items must all have null values");
57718
+ } else onError("Expected a mapping for this tag");
57657
57719
  return map;
57658
57720
  }
57659
57721
  };
@@ -57845,10 +57907,12 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
57845
57907
  const schemaTags = schemas.get(schemaName);
57846
57908
  if (schemaTags && !customTags) return addMergeTag && !schemaTags.includes(merge.merge) ? schemaTags.concat(merge.merge) : schemaTags.slice();
57847
57909
  let tags = schemaTags;
57848
- if (!tags) if (Array.isArray(customTags)) tags = [];
57849
- else {
57850
- const keys = Array.from(schemas.keys()).filter((key) => key !== "yaml11").map((key) => JSON.stringify(key)).join(", ");
57851
- throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
57910
+ if (!tags) {
57911
+ if (Array.isArray(customTags)) tags = [];
57912
+ else {
57913
+ const keys = Array.from(schemas.keys()).filter((key) => key !== "yaml11").map((key) => JSON.stringify(key)).join(", ");
57914
+ throw new Error(`Unknown schema "${schemaName}"; use one of ${keys} or define customTags array`);
57915
+ }
57852
57916
  }
57853
57917
  if (Array.isArray(customTags)) for (const tag of customTags) tags = tags.concat(tag);
57854
57918
  else if (typeof customTags === "function") tags = customTags(tags.slice());
@@ -57937,14 +58001,15 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
57937
58001
  if ((body[0] === "|" || body[0] === ">") && lines[lines.length - 1] === "---") lines[lines.length - 1] = `--- ${body}`;
57938
58002
  else lines.push(body);
57939
58003
  } else lines.push(stringify.stringify(doc.contents, ctx));
57940
- if (doc.directives?.docEnd) if (doc.comment) {
57941
- const cs = commentString(doc.comment);
57942
- if (cs.includes("\n")) {
57943
- lines.push("...");
57944
- lines.push(stringifyComment.indentComment(cs, ""));
57945
- } else lines.push(`... ${cs}`);
57946
- } else lines.push("...");
57947
- else {
58004
+ if (doc.directives?.docEnd) {
58005
+ if (doc.comment) {
58006
+ const cs = commentString(doc.comment);
58007
+ if (cs.includes("\n")) {
58008
+ lines.push("...");
58009
+ lines.push(stringifyComment.indentComment(cs, ""));
58010
+ } else lines.push(`... ${cs}`);
58011
+ } else lines.push("...");
58012
+ } else {
57948
58013
  let dc = doc.comment;
57949
58014
  if (dc && chompKeep) dc = dc.replace(/^\n+/, "");
57950
58015
  if (dc) {
@@ -58483,8 +58548,10 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
58483
58548
  }
58484
58549
  if (!keyProps.anchor && !keyProps.tag && !sep) {
58485
58550
  commentEnd = keyProps.end;
58486
- if (keyProps.comment) if (map.comment) map.comment += "\n" + keyProps.comment;
58487
- else map.comment = keyProps.comment;
58551
+ if (keyProps.comment) {
58552
+ if (map.comment) map.comment += "\n" + keyProps.comment;
58553
+ else map.comment = keyProps.comment;
58554
+ }
58488
58555
  continue;
58489
58556
  }
58490
58557
  if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key)) onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
@@ -58517,8 +58584,10 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
58517
58584
  map.items.push(pair);
58518
58585
  } else {
58519
58586
  if (implicitKey) onError(keyNode.range, "MISSING_CHAR", "Implicit map keys need to be followed by map values");
58520
- if (valueProps.comment) if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
58521
- else keyNode.comment = valueProps.comment;
58587
+ if (valueProps.comment) {
58588
+ if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
58589
+ else keyNode.comment = valueProps.comment;
58590
+ }
58522
58591
  const pair = new Pair.Pair(keyNode);
58523
58592
  if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
58524
58593
  map.items.push(pair);
@@ -58555,12 +58624,15 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
58555
58624
  parentIndent: bs.indent,
58556
58625
  startOnNewline: true
58557
58626
  });
58558
- if (!props.found) if (props.anchor || props.tag || value) if (value?.type === "block-seq") onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
58559
- else onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
58560
- else {
58561
- commentEnd = props.end;
58562
- if (props.comment) seq.comment = props.comment;
58563
- continue;
58627
+ if (!props.found) {
58628
+ if (props.anchor || props.tag || value) {
58629
+ if (value?.type === "block-seq") onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
58630
+ else onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
58631
+ } else {
58632
+ commentEnd = props.end;
58633
+ if (props.comment) seq.comment = props.comment;
58634
+ continue;
58635
+ }
58564
58636
  }
58565
58637
  const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError);
58566
58638
  if (ctx.schema.compat) utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError);
@@ -58652,8 +58724,10 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
58652
58724
  if (!props.anchor && !props.tag && !sep && !value) {
58653
58725
  if (i === 0 && props.comma) onError(props.comma, "UNEXPECTED_TOKEN", `Unexpected , in ${fcName}`);
58654
58726
  else if (i < fc.items.length - 1) onError(props.start, "UNEXPECTED_TOKEN", `Unexpected empty item in ${fcName}`);
58655
- if (props.comment) if (coll.comment) coll.comment += "\n" + props.comment;
58656
- else coll.comment = props.comment;
58727
+ if (props.comment) {
58728
+ if (coll.comment) coll.comment += "\n" + props.comment;
58729
+ else coll.comment = props.comment;
58730
+ }
58657
58731
  offset = props.end;
58658
58732
  continue;
58659
58733
  }
@@ -58713,13 +58787,17 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
58713
58787
  }
58714
58788
  if (props.start < valueProps.found.offset - 1024) onError(valueProps.found, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");
58715
58789
  }
58716
- } else if (value) if ("source" in value && value.source?.[0] === ":") onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
58717
- else onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
58790
+ } else if (value) {
58791
+ if ("source" in value && value.source?.[0] === ":") onError(value, "MISSING_CHAR", `Missing space after : in ${fcName}`);
58792
+ else onError(valueProps.start, "MISSING_CHAR", `Missing , or : between ${fcName} items`);
58793
+ }
58718
58794
  const valueNode = value ? composeNode(ctx, value, valueProps, onError) : valueProps.found ? composeEmptyNode(ctx, valueProps.end, sep, null, valueProps, onError) : null;
58719
58795
  if (valueNode) {
58720
58796
  if (isBlock(value)) onError(valueNode.range, "BLOCK_IN_FLOW", blockMsg);
58721
- } else if (valueProps.comment) if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
58722
- else keyNode.comment = valueProps.comment;
58797
+ } else if (valueProps.comment) {
58798
+ if (keyNode.comment) keyNode.comment += "\n" + valueProps.comment;
58799
+ else keyNode.comment = valueProps.comment;
58800
+ }
58723
58801
  const pair = new Pair.Pair(keyNode, valueNode);
58724
58802
  if (ctx.options.keepSourceTokens) pair.srcToken = collItem;
58725
58803
  if (isMap) {
@@ -58753,8 +58831,10 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
58753
58831
  }
58754
58832
  if (ee.length > 0) {
58755
58833
  const end = resolveEnd.resolveEnd(ee, cePos, ctx.options.strict, onError);
58756
- if (end.comment) if (coll.comment) coll.comment += "\n" + end.comment;
58757
- else coll.comment = end.comment;
58834
+ if (end.comment) {
58835
+ if (coll.comment) coll.comment += "\n" + end.comment;
58836
+ else coll.comment = end.comment;
58837
+ }
58758
58838
  coll.range = [
58759
58839
  fc.offset,
58760
58840
  cePos,
@@ -58902,9 +58982,10 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
58902
58982
  value += sep + indent.slice(trimIndent) + content;
58903
58983
  sep = "\n";
58904
58984
  prevMoreIndented = true;
58905
- } else if (content === "") if (sep === "\n") value += "\n";
58906
- else sep = "\n";
58907
- else {
58985
+ } else if (content === "") {
58986
+ if (sep === "\n") value += "\n";
58987
+ else sep = "\n";
58988
+ } else {
58908
58989
  value += sep + content;
58909
58990
  sep = " ";
58910
58991
  prevMoreIndented = false;
@@ -59097,9 +59178,10 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
59097
59178
  let pos = first.lastIndex;
59098
59179
  line.lastIndex = pos;
59099
59180
  while (match = line.exec(source)) {
59100
- if (match[1] === "") if (sep === "\n") res += sep;
59101
- else sep = "\n";
59102
- else {
59181
+ if (match[1] === "") {
59182
+ if (sep === "\n") res += sep;
59183
+ else sep = "\n";
59184
+ } else {
59103
59185
  res += sep + match[1];
59104
59186
  sep = " ";
59105
59187
  }
@@ -59235,8 +59317,10 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
59235
59317
  function findScalarTagByName(schema, value, tagName, tagToken, onError) {
59236
59318
  if (tagName === "!") return schema[identity.SCALAR];
59237
59319
  const matchWithTest = [];
59238
- for (const tag of schema.tags) if (!tag.collection && tag.tag === tagName) if (tag.default && tag.test) matchWithTest.push(tag);
59239
- else return tag;
59320
+ for (const tag of schema.tags) if (!tag.collection && tag.tag === tagName) {
59321
+ if (tag.default && tag.test) matchWithTest.push(tag);
59322
+ else return tag;
59323
+ }
59240
59324
  for (const tag of matchWithTest) if (tag.test?.test(value)) return tag;
59241
59325
  const kt = schema.knownTags[tagName];
59242
59326
  if (kt && !kt.collection) {
@@ -59334,8 +59418,10 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
59334
59418
  if (anchor && node.anchor === "") onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
59335
59419
  if (atKey && ctx.options.stringKeys && (!identity.isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) onError(tag ?? token, "NON_STRING_KEY", "With stringKeys, all keys must be strings");
59336
59420
  if (spaceBefore) node.spaceBefore = true;
59337
- if (comment) if (token.type === "scalar" && token.source === "") node.comment = comment;
59338
- else node.commentBefore = comment;
59421
+ if (comment) {
59422
+ if (token.type === "scalar" && token.source === "") node.comment = comment;
59423
+ else node.commentBefore = comment;
59424
+ }
59339
59425
  if (ctx.options.keepSourceTokens && isSrcToken) node.srcToken = token;
59340
59426
  return node;
59341
59427
  }
@@ -60524,11 +60610,13 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
60524
60610
  end = i;
60525
60611
  } else if (isEmpty(ch)) {
60526
60612
  let next = this.buffer[i + 1];
60527
- if (ch === "\r") if (next === "\n") {
60528
- i += 1;
60529
- ch = "\n";
60530
- next = this.buffer[i + 1];
60531
- } else end = i;
60613
+ if (ch === "\r") {
60614
+ if (next === "\n") {
60615
+ i += 1;
60616
+ ch = "\n";
60617
+ next = this.buffer[i + 1];
60618
+ } else end = i;
60619
+ }
60532
60620
  if (next === "#" || inFlow && flowIndicatorChars.has(next)) break;
60533
60621
  if (ch === "\n") {
60534
60622
  const cs = this.continueScalar(i + 1);
@@ -60745,9 +60833,10 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
60745
60833
  for (const it of fc.items) if (it.sep && !it.value && !includesToken(it.start, "explicit-key-ind") && !includesToken(it.sep, "map-value-ind")) {
60746
60834
  if (it.key) it.value = it.key;
60747
60835
  delete it.key;
60748
- if (isFlowToken(it.value)) if (it.value.end) arrayPushArray(it.value.end, it.sep);
60749
- else it.value.end = it.sep;
60750
- else arrayPushArray(it.start, it.sep);
60836
+ if (isFlowToken(it.value)) {
60837
+ if (it.value.end) arrayPushArray(it.value.end, it.sep);
60838
+ else it.value.end = it.sep;
60839
+ } else arrayPushArray(it.start, it.sep);
60751
60840
  delete it.sep;
60752
60841
  }
60753
60842
  }
@@ -61182,58 +61271,60 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
61182
61271
  this.onKeyLine = true;
61183
61272
  return;
61184
61273
  case "map-value-ind":
61185
- if (it.explicitKey) if (!it.sep) if (includesToken(it.start, "newline")) Object.assign(it, {
61186
- key: null,
61187
- sep: [this.sourceToken]
61188
- });
61189
- else {
61190
- const start = getFirstKeyStartProps(it.start);
61191
- this.stack.push({
61192
- type: "block-map",
61193
- offset: this.offset,
61194
- indent: this.indent,
61195
- items: [{
61196
- start,
61274
+ if (it.explicitKey) {
61275
+ if (!it.sep) {
61276
+ if (includesToken(it.start, "newline")) Object.assign(it, {
61197
61277
  key: null,
61198
61278
  sep: [this.sourceToken]
61199
- }]
61200
- });
61201
- }
61202
- else if (it.value) map.items.push({
61203
- start: [],
61204
- key: null,
61205
- sep: [this.sourceToken]
61206
- });
61207
- else if (includesToken(it.sep, "map-value-ind")) this.stack.push({
61208
- type: "block-map",
61209
- offset: this.offset,
61210
- indent: this.indent,
61211
- items: [{
61212
- start,
61279
+ });
61280
+ else {
61281
+ const start = getFirstKeyStartProps(it.start);
61282
+ this.stack.push({
61283
+ type: "block-map",
61284
+ offset: this.offset,
61285
+ indent: this.indent,
61286
+ items: [{
61287
+ start,
61288
+ key: null,
61289
+ sep: [this.sourceToken]
61290
+ }]
61291
+ });
61292
+ }
61293
+ } else if (it.value) map.items.push({
61294
+ start: [],
61213
61295
  key: null,
61214
61296
  sep: [this.sourceToken]
61215
- }]
61216
- });
61217
- else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
61218
- const start = getFirstKeyStartProps(it.start);
61219
- const key = it.key;
61220
- const sep = it.sep;
61221
- sep.push(this.sourceToken);
61222
- delete it.key;
61223
- delete it.sep;
61224
- this.stack.push({
61297
+ });
61298
+ else if (includesToken(it.sep, "map-value-ind")) this.stack.push({
61225
61299
  type: "block-map",
61226
61300
  offset: this.offset,
61227
61301
  indent: this.indent,
61228
61302
  items: [{
61229
61303
  start,
61230
- key,
61231
- sep
61304
+ key: null,
61305
+ sep: [this.sourceToken]
61232
61306
  }]
61233
61307
  });
61234
- } else if (start.length > 0) it.sep = it.sep.concat(start, this.sourceToken);
61235
- else it.sep.push(this.sourceToken);
61236
- else if (!it.sep) Object.assign(it, {
61308
+ else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
61309
+ const start = getFirstKeyStartProps(it.start);
61310
+ const key = it.key;
61311
+ const sep = it.sep;
61312
+ sep.push(this.sourceToken);
61313
+ delete it.key;
61314
+ delete it.sep;
61315
+ this.stack.push({
61316
+ type: "block-map",
61317
+ offset: this.offset,
61318
+ indent: this.indent,
61319
+ items: [{
61320
+ start,
61321
+ key,
61322
+ sep
61323
+ }]
61324
+ });
61325
+ } else if (start.length > 0) it.sep = it.sep.concat(start, this.sourceToken);
61326
+ else it.sep.push(this.sourceToken);
61327
+ } else if (!it.sep) Object.assign(it, {
61237
61328
  key: null,
61238
61329
  sep: [this.sourceToken]
61239
61330
  });
@@ -61606,8 +61697,10 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
61606
61697
  const doc = parseDocument(src, options);
61607
61698
  if (!doc) return null;
61608
61699
  doc.warnings.forEach((warning) => log.warn(doc.options.logLevel, warning));
61609
- if (doc.errors.length > 0) if (doc.options.logLevel !== "silent") throw doc.errors[0];
61610
- else doc.errors = [];
61700
+ if (doc.errors.length > 0) {
61701
+ if (doc.options.logLevel !== "silent") throw doc.errors[0];
61702
+ else doc.errors = [];
61703
+ }
61611
61704
  return doc.toJS(Object.assign({ reviver: _reviver }, options));
61612
61705
  }
61613
61706
  function stringify(value, replacer, options) {
@@ -62054,12 +62147,13 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62054
62147
  chr = String.fromCharCode(parseInt(input.substr(position + 1, 4), 16));
62055
62148
  position += 5;
62056
62149
  }
62057
- if (result.length) if (Uni.isIdentifierPart(chr)) result += chr;
62058
- else {
62059
- position--;
62060
- return result;
62061
- }
62062
- else if (Uni.isIdentifierStart(chr)) result += chr;
62150
+ if (result.length) {
62151
+ if (Uni.isIdentifierPart(chr)) result += chr;
62152
+ else {
62153
+ position--;
62154
+ return result;
62155
+ }
62156
+ } else if (Uni.isIdentifierStart(chr)) result += chr;
62063
62157
  else return;
62064
62158
  }
62065
62159
  fail();
@@ -62188,9 +62282,10 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62188
62282
  if (!Uni.isIdentifierPart(key[i])) return _stringify_str(key);
62189
62283
  } else if (!Uni.isIdentifierStart(key[i])) return _stringify_str(key);
62190
62284
  var chr = key.charCodeAt(i);
62191
- if (options.ascii) if (chr < 128) result += key[i];
62192
- else result += "\\u" + ("0000" + chr.toString(16)).slice(-4);
62193
- else if (escapable.exec(key[i])) result += "\\u" + ("0000" + chr.toString(16)).slice(-4);
62285
+ if (options.ascii) {
62286
+ if (chr < 128) result += key[i];
62287
+ else result += "\\u" + ("0000" + chr.toString(16)).slice(-4);
62288
+ } else if (escapable.exec(key[i])) result += "\\u" + ("0000" + chr.toString(16)).slice(-4);
62194
62289
  else result += key[i];
62195
62290
  }
62196
62291
  return result;
@@ -62201,22 +62296,27 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62201
62296
  var result = "";
62202
62297
  for (var i = 0; i < key.length; i++) {
62203
62298
  var chr = key.charCodeAt(i);
62204
- if (chr < 16) if (chr === 0 && json5) result += "\\0";
62205
- else if (chr >= 8 && chr <= 13 && (json5 || chr !== 11)) result += special_chars[chr];
62206
- else if (json5) result += "\\x0" + chr.toString(16);
62207
- else result += "\\u000" + chr.toString(16);
62208
- else if (chr < 32) if (json5) result += "\\x" + chr.toString(16);
62209
- else result += "\\u00" + chr.toString(16);
62210
- else if (chr >= 32 && chr < 128) if (chr === 47 && i && key[i - 1] === "<") result += "\\" + key[i];
62211
- else if (chr === 92) result += "\\\\";
62212
- else if (chr === quoteChr) result += "\\" + quote;
62213
- else result += key[i];
62214
- else if (options.ascii || Uni.isLineTerminator(key[i]) || escapable.exec(key[i])) if (chr < 256) if (json5) result += "\\x" + chr.toString(16);
62215
- else result += "\\u00" + chr.toString(16);
62216
- else if (chr < 4096) result += "\\u0" + chr.toString(16);
62217
- else if (chr < 65536) result += "\\u" + chr.toString(16);
62218
- else throw Error("weird codepoint");
62219
- else result += key[i];
62299
+ if (chr < 16) {
62300
+ if (chr === 0 && json5) result += "\\0";
62301
+ else if (chr >= 8 && chr <= 13 && (json5 || chr !== 11)) result += special_chars[chr];
62302
+ else if (json5) result += "\\x0" + chr.toString(16);
62303
+ else result += "\\u000" + chr.toString(16);
62304
+ } else if (chr < 32) {
62305
+ if (json5) result += "\\x" + chr.toString(16);
62306
+ else result += "\\u00" + chr.toString(16);
62307
+ } else if (chr >= 32 && chr < 128) {
62308
+ if (chr === 47 && i && key[i - 1] === "<") result += "\\" + key[i];
62309
+ else if (chr === 92) result += "\\\\";
62310
+ else if (chr === quoteChr) result += "\\" + quote;
62311
+ else result += key[i];
62312
+ } else if (options.ascii || Uni.isLineTerminator(key[i]) || escapable.exec(key[i])) {
62313
+ if (chr < 256) {
62314
+ if (json5) result += "\\x" + chr.toString(16);
62315
+ else result += "\\u00" + chr.toString(16);
62316
+ } else if (chr < 4096) result += "\\u0" + chr.toString(16);
62317
+ else if (chr < 65536) result += "\\u" + chr.toString(16);
62318
+ else throw Error("weird codepoint");
62319
+ } else result += key[i];
62220
62320
  }
62221
62321
  return quote + result + quote;
62222
62322
  }
@@ -62312,9 +62412,10 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62312
62412
  if (typeof options.indent === "object") {
62313
62413
  if (options.indent.constructor === Number || options.indent.constructor === Boolean || options.indent.constructor === String) options.indent = options.indent.valueOf();
62314
62414
  }
62315
- if (typeof options.indent === "number") if (options.indent >= 0) options.indent = Array(Math.min(~~options.indent, 10) + 1).join(" ");
62316
- else options.indent = false;
62317
- else if (typeof options.indent === "string") options.indent = options.indent.substr(0, 10);
62415
+ if (typeof options.indent === "number") {
62416
+ if (options.indent >= 0) options.indent = Array(Math.min(~~options.indent, 10) + 1).join(" ");
62417
+ else options.indent = false;
62418
+ } else if (typeof options.indent === "string") options.indent = options.indent.substr(0, 10);
62318
62419
  if (options._splitMin == null) options._splitMin = 50;
62319
62420
  if (options._splitMax == null) options._splitMax = 70;
62320
62421
  return _stringify(object, options, 0, "");
@@ -62489,13 +62590,14 @@ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62489
62590
  return Error("You can't " + (is_unset ? "unset" : "set") + " key '" + key + "'" + add);
62490
62591
  }
62491
62592
  if (!isObject(object)) throw error(" of an non-object");
62492
- if (Array.isArray(object)) if (String(key).match(/^\d+$/)) {
62493
- key = Number(String(key));
62494
- if (object.length < key || is_unset && object.length === key) throw error(", out of bounds");
62495
- else if (is_unset && object.length !== key + 1) throw error(" in the middle of an array");
62496
- else return true;
62497
- } else throw error(" of an array");
62498
- else return true;
62593
+ if (Array.isArray(object)) {
62594
+ if (String(key).match(/^\d+$/)) {
62595
+ key = Number(String(key));
62596
+ if (object.length < key || is_unset && object.length === key) throw error(", out of bounds");
62597
+ else if (is_unset && object.length !== key + 1) throw error(" in the middle of an array");
62598
+ else return true;
62599
+ } else throw error(" of an array");
62600
+ } else return true;
62499
62601
  }
62500
62602
  Document.prototype.set = function(path, value) {
62501
62603
  path = arg_to_path(path);
@@ -62511,9 +62613,10 @@ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62511
62613
  }
62512
62614
  if (i === path.length - 1) check_if_can_be_placed(path[i], data, value === void 0);
62513
62615
  var new_key = !(path[i] in data);
62514
- if (value === void 0) if (Array.isArray(data)) data.pop();
62515
- else delete data[path[i]];
62516
- else data[path[i]] = value;
62616
+ if (value === void 0) {
62617
+ if (Array.isArray(data)) data.pop();
62618
+ else delete data[path[i]];
62619
+ } else data[path[i]] = value;
62517
62620
  }
62518
62621
  if (!this._tokens.length) this._tokens = [{
62519
62622
  raw: "",
@@ -62624,17 +62727,18 @@ var require_document = /* @__PURE__ */ __commonJSMin(((exports, module) => {
62624
62727
  if (!isObject(new_data) || !isObject(old_data)) {
62625
62728
  if (new_data !== old_data) self.set(path, new_data);
62626
62729
  } else if (Array.isArray(new_data) != Array.isArray(old_data)) self.set(path, new_data);
62627
- else if (Array.isArray(new_data)) if (new_data.length > old_data.length) for (var i = 0; i < new_data.length; i++) {
62628
- path.push(String(i));
62629
- change(path, old_data[i], new_data[i]);
62630
- path.pop();
62631
- }
62632
- else for (var i = old_data.length - 1; i >= 0; i--) {
62633
- path.push(String(i));
62634
- change(path, old_data[i], new_data[i]);
62635
- path.pop();
62636
- }
62637
- else {
62730
+ else if (Array.isArray(new_data)) {
62731
+ if (new_data.length > old_data.length) for (var i = 0; i < new_data.length; i++) {
62732
+ path.push(String(i));
62733
+ change(path, old_data[i], new_data[i]);
62734
+ path.pop();
62735
+ }
62736
+ else for (var i = old_data.length - 1; i >= 0; i--) {
62737
+ path.push(String(i));
62738
+ change(path, old_data[i], new_data[i]);
62739
+ path.pop();
62740
+ }
62741
+ } else {
62638
62742
  for (var i in new_data) {
62639
62743
  path.push(String(i));
62640
62744
  change(path, old_data[i], new_data[i]);
@@ -65901,10 +66005,12 @@ codes.ERR_INVALID_ARG_TYPE = createError(
65901
66005
  message += `an instance of ${formatList(instances, "or")}`;
65902
66006
  if (other.length > 0) message += " or ";
65903
66007
  }
65904
- if (other.length > 0) if (other.length > 1) message += `one of ${formatList(other, "or")}`;
65905
- else {
65906
- if (other[0].toLowerCase() !== other[0]) message += "an ";
65907
- message += `${other[0]}`;
66008
+ if (other.length > 0) {
66009
+ if (other.length > 1) message += `one of ${formatList(other, "or")}`;
66010
+ else {
66011
+ if (other[0].toLowerCase() !== other[0]) message += "an ";
66012
+ message += `${other[0]}`;
66013
+ }
65908
66014
  }
65909
66015
  message += `. Received ${determineSpecificType(actual)}`;
65910
66016
  return message;
@@ -66599,12 +66705,14 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
66599
66705
  }
66600
66706
  throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
66601
66707
  }
66602
- if (invalidSegmentRegEx.exec(target.slice(2)) !== null) if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
66603
- if (!isPathMap) {
66604
- const request = pattern ? match.replace("*", () => subpath) : match + subpath;
66605
- emitInvalidSegmentDeprecation(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target, request, match, packageJsonUrl, internal, base, true);
66606
- }
66607
- } else throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
66708
+ if (invalidSegmentRegEx.exec(target.slice(2)) !== null) {
66709
+ if (deprecatedInvalidSegmentRegEx.exec(target.slice(2)) === null) {
66710
+ if (!isPathMap) {
66711
+ const request = pattern ? match.replace("*", () => subpath) : match + subpath;
66712
+ emitInvalidSegmentDeprecation(pattern ? RegExpPrototypeSymbolReplace.call(patternRegEx, target, () => subpath) : target, request, match, packageJsonUrl, internal, base, true);
66713
+ }
66714
+ } else throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
66715
+ }
66608
66716
  const resolved = new URL(target, packageJsonUrl);
66609
66717
  const resolvedPath = resolved.pathname;
66610
66718
  const packagePath = new URL(".", packageJsonUrl).pathname;
@@ -66798,29 +66906,31 @@ function packageImportsResolve(name, base, conditions) {
66798
66906
  if (packageConfig.exists) {
66799
66907
  packageJsonUrl = (0, node_url.pathToFileURL)(packageConfig.pjsonPath);
66800
66908
  const imports = packageConfig.imports;
66801
- if (imports) if (own.call(imports, name) && !name.includes("*")) {
66802
- const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], "", name, base, false, true, false, conditions);
66803
- if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
66804
- } else {
66805
- let bestMatch = "";
66806
- let bestMatchSubpath = "";
66807
- const keys = Object.getOwnPropertyNames(imports);
66808
- let i = -1;
66809
- while (++i < keys.length) {
66810
- const key = keys[i];
66811
- const patternIndex = key.indexOf("*");
66812
- if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) {
66813
- const patternTrailer = key.slice(patternIndex + 1);
66814
- if (name.length >= key.length && name.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && key.lastIndexOf("*") === patternIndex) {
66815
- bestMatch = key;
66816
- bestMatchSubpath = name.slice(patternIndex, name.length - patternTrailer.length);
66909
+ if (imports) {
66910
+ if (own.call(imports, name) && !name.includes("*")) {
66911
+ const resolveResult = resolvePackageTarget(packageJsonUrl, imports[name], "", name, base, false, true, false, conditions);
66912
+ if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
66913
+ } else {
66914
+ let bestMatch = "";
66915
+ let bestMatchSubpath = "";
66916
+ const keys = Object.getOwnPropertyNames(imports);
66917
+ let i = -1;
66918
+ while (++i < keys.length) {
66919
+ const key = keys[i];
66920
+ const patternIndex = key.indexOf("*");
66921
+ if (patternIndex !== -1 && name.startsWith(key.slice(0, -1))) {
66922
+ const patternTrailer = key.slice(patternIndex + 1);
66923
+ if (name.length >= key.length && name.endsWith(patternTrailer) && patternKeyCompare(bestMatch, key) === 1 && key.lastIndexOf("*") === patternIndex) {
66924
+ bestMatch = key;
66925
+ bestMatchSubpath = name.slice(patternIndex, name.length - patternTrailer.length);
66926
+ }
66817
66927
  }
66818
66928
  }
66819
- }
66820
- if (bestMatch) {
66821
- const target = imports[bestMatch];
66822
- const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions);
66823
- if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
66929
+ if (bestMatch) {
66930
+ const target = imports[bestMatch];
66931
+ const resolveResult = resolvePackageTarget(packageJsonUrl, target, bestMatchSubpath, bestMatch, base, true, true, false, conditions);
66932
+ if (resolveResult !== null && resolveResult !== void 0) return resolveResult;
66933
+ }
66824
66934
  }
66825
66935
  }
66826
66936
  }
@@ -67178,11 +67288,13 @@ function createScanner(text, ignoreTrivia = false) {
67178
67288
  start = pos;
67179
67289
  continue;
67180
67290
  }
67181
- if (ch >= 0 && ch <= 31) if (isLineBreak(ch)) {
67182
- result += text.substring(start, pos);
67183
- scanError = 2;
67184
- break;
67185
- } else scanError = 6;
67291
+ if (ch >= 0 && ch <= 31) {
67292
+ if (isLineBreak(ch)) {
67293
+ result += text.substring(start, pos);
67294
+ scanError = 2;
67295
+ break;
67296
+ } else scanError = 6;
67297
+ }
67186
67298
  pos++;
67187
67299
  }
67188
67300
  return result;