@rsbuild/plugin-source-build 0.7.6 → 0.7.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/dist/index.cjs +231 -197
  2. package/dist/index.js +233 -199
  3. package/package.json +8 -7
package/dist/index.js CHANGED
@@ -52,11 +52,11 @@ var __privateMethod = (obj, member, method) => {
52
52
  return method;
53
53
  };
54
54
 
55
- // ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
55
+ // ../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.5.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js
56
56
  import { fileURLToPath } from "url";
57
57
  import path from "path";
58
58
  var init_esm = __esm({
59
- "../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.4.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js"() {
59
+ "../../node_modules/.pnpm/@modern-js+module-tools@2.52.0_eslint@9.5.0_typescript@5.4.5/node_modules/@modern-js/module-tools/shims/esm.js"() {
60
60
  "use strict";
61
61
  }
62
62
  });
@@ -76,7 +76,7 @@ var init_constants = __esm({
76
76
  // src/utils.ts
77
77
  import path4 from "path";
78
78
  import { fse as fse2 } from "@rsbuild/shared";
79
- import json5 from "@rsbuild/shared/json5";
79
+ import json5 from "json5";
80
80
  var readPackageJson, readRushJson, readJson;
81
81
  var init_utils = __esm({
82
82
  "src/utils.ts"() {
@@ -237,9 +237,9 @@ var init_project = __esm({
237
237
  }
238
238
  });
239
239
 
240
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/identity.js
240
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js
241
241
  var require_identity = __commonJS({
242
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/identity.js"(exports) {
242
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js"(exports) {
243
243
  "use strict";
244
244
  init_esm();
245
245
  var ALIAS = Symbol.for("yaml.alias");
@@ -295,9 +295,9 @@ var require_identity = __commonJS({
295
295
  }
296
296
  });
297
297
 
298
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/visit.js
298
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js
299
299
  var require_visit = __commonJS({
300
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/visit.js"(exports) {
300
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js"(exports) {
301
301
  "use strict";
302
302
  init_esm();
303
303
  var identity = require_identity();
@@ -454,9 +454,9 @@ var require_visit = __commonJS({
454
454
  }
455
455
  });
456
456
 
457
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/directives.js
457
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js
458
458
  var require_directives = __commonJS({
459
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/directives.js"(exports) {
459
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js"(exports) {
460
460
  "use strict";
461
461
  init_esm();
462
462
  var identity = require_identity();
@@ -626,9 +626,9 @@ var require_directives = __commonJS({
626
626
  }
627
627
  });
628
628
 
629
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/anchors.js
629
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js
630
630
  var require_anchors = __commonJS({
631
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/anchors.js"(exports) {
631
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js"(exports) {
632
632
  "use strict";
633
633
  init_esm();
634
634
  var identity = require_identity();
@@ -698,9 +698,9 @@ var require_anchors = __commonJS({
698
698
  }
699
699
  });
700
700
 
701
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/applyReviver.js
701
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js
702
702
  var require_applyReviver = __commonJS({
703
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
703
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
704
704
  "use strict";
705
705
  init_esm();
706
706
  function applyReviver(reviver, obj, key, val) {
@@ -749,9 +749,9 @@ var require_applyReviver = __commonJS({
749
749
  }
750
750
  });
751
751
 
752
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/toJS.js
752
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js
753
753
  var require_toJS = __commonJS({
754
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/toJS.js"(exports) {
754
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js"(exports) {
755
755
  "use strict";
756
756
  init_esm();
757
757
  var identity = require_identity();
@@ -780,9 +780,9 @@ var require_toJS = __commonJS({
780
780
  }
781
781
  });
782
782
 
783
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Node.js
783
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js
784
784
  var require_Node = __commonJS({
785
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Node.js"(exports) {
785
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js"(exports) {
786
786
  "use strict";
787
787
  init_esm();
788
788
  var applyReviver = require_applyReviver();
@@ -822,9 +822,9 @@ var require_Node = __commonJS({
822
822
  }
823
823
  });
824
824
 
825
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Alias.js
825
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js
826
826
  var require_Alias = __commonJS({
827
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Alias.js"(exports) {
827
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js"(exports) {
828
828
  "use strict";
829
829
  init_esm();
830
830
  var anchors = require_anchors();
@@ -925,9 +925,9 @@ var require_Alias = __commonJS({
925
925
  }
926
926
  });
927
927
 
928
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Scalar.js
928
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js
929
929
  var require_Scalar = __commonJS({
930
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
930
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
931
931
  "use strict";
932
932
  init_esm();
933
933
  var identity = require_identity();
@@ -956,9 +956,9 @@ var require_Scalar = __commonJS({
956
956
  }
957
957
  });
958
958
 
959
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/createNode.js
959
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js
960
960
  var require_createNode = __commonJS({
961
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/createNode.js"(exports) {
961
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js"(exports) {
962
962
  "use strict";
963
963
  init_esm();
964
964
  var Alias = require_Alias();
@@ -1033,9 +1033,9 @@ var require_createNode = __commonJS({
1033
1033
  }
1034
1034
  });
1035
1035
 
1036
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Collection.js
1036
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js
1037
1037
  var require_Collection = __commonJS({
1038
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Collection.js"(exports) {
1038
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js"(exports) {
1039
1039
  "use strict";
1040
1040
  init_esm();
1041
1041
  var createNode = require_createNode();
@@ -1178,9 +1178,9 @@ var require_Collection = __commonJS({
1178
1178
  }
1179
1179
  });
1180
1180
 
1181
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyComment.js
1181
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js
1182
1182
  var require_stringifyComment = __commonJS({
1183
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
1183
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
1184
1184
  "use strict";
1185
1185
  init_esm();
1186
1186
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
@@ -1196,9 +1196,9 @@ var require_stringifyComment = __commonJS({
1196
1196
  }
1197
1197
  });
1198
1198
 
1199
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/foldFlowLines.js
1199
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js
1200
1200
  var require_foldFlowLines = __commonJS({
1201
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
1201
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
1202
1202
  "use strict";
1203
1203
  init_esm();
1204
1204
  var FOLD_FLOW = "flow";
@@ -1331,9 +1331,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
1331
1331
  }
1332
1332
  });
1333
1333
 
1334
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyString.js
1334
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js
1335
1335
  var require_stringifyString = __commonJS({
1336
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
1336
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
1337
1337
  "use strict";
1338
1338
  init_esm();
1339
1339
  var Scalar = require_Scalar();
@@ -1607,9 +1607,9 @@ ${indent}`);
1607
1607
  }
1608
1608
  });
1609
1609
 
1610
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringify.js
1610
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js
1611
1611
  var require_stringify = __commonJS({
1612
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringify.js"(exports) {
1612
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js"(exports) {
1613
1613
  "use strict";
1614
1614
  init_esm();
1615
1615
  var anchors = require_anchors();
@@ -1727,9 +1727,9 @@ ${ctx.indent}${str}`;
1727
1727
  }
1728
1728
  });
1729
1729
 
1730
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyPair.js
1730
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js
1731
1731
  var require_stringifyPair = __commonJS({
1732
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
1732
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
1733
1733
  "use strict";
1734
1734
  init_esm();
1735
1735
  var identity = require_identity();
@@ -1743,7 +1743,7 @@ var require_stringifyPair = __commonJS({
1743
1743
  if (keyComment) {
1744
1744
  throw new Error("With simple keys, key nodes cannot have comments");
1745
1745
  }
1746
- if (identity.isCollection(key)) {
1746
+ if (identity.isCollection(key) || !identity.isNode(key) && typeof key === "object") {
1747
1747
  const msg = "With simple keys, collection cannot be used as a key value";
1748
1748
  throw new Error(msg);
1749
1749
  }
@@ -1861,9 +1861,9 @@ ${ctx.indent}`;
1861
1861
  }
1862
1862
  });
1863
1863
 
1864
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/log.js
1864
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js
1865
1865
  var require_log = __commonJS({
1866
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/log.js"(exports) {
1866
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js"(exports) {
1867
1867
  "use strict";
1868
1868
  init_esm();
1869
1869
  function debug(logLevel, ...messages) {
@@ -1883,9 +1883,9 @@ var require_log = __commonJS({
1883
1883
  }
1884
1884
  });
1885
1885
 
1886
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/addPairToJSMap.js
1886
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js
1887
1887
  var require_addPairToJSMap = __commonJS({
1888
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
1888
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
1889
1889
  "use strict";
1890
1890
  init_esm();
1891
1891
  var log = require_log();
@@ -1978,9 +1978,9 @@ var require_addPairToJSMap = __commonJS({
1978
1978
  }
1979
1979
  });
1980
1980
 
1981
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Pair.js
1981
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js
1982
1982
  var require_Pair = __commonJS({
1983
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Pair.js"(exports) {
1983
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js"(exports) {
1984
1984
  "use strict";
1985
1985
  init_esm();
1986
1986
  var createNode = require_createNode();
@@ -2019,9 +2019,9 @@ var require_Pair = __commonJS({
2019
2019
  }
2020
2020
  });
2021
2021
 
2022
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyCollection.js
2022
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js
2023
2023
  var require_stringifyCollection = __commonJS({
2024
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
2024
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
2025
2025
  "use strict";
2026
2026
  init_esm();
2027
2027
  var identity = require_identity();
@@ -2164,9 +2164,9 @@ ${indent}${end}`;
2164
2164
  }
2165
2165
  });
2166
2166
 
2167
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/YAMLMap.js
2167
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js
2168
2168
  var require_YAMLMap = __commonJS({
2169
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
2169
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
2170
2170
  "use strict";
2171
2171
  init_esm();
2172
2172
  var stringifyCollection = require_stringifyCollection();
@@ -2309,9 +2309,9 @@ var require_YAMLMap = __commonJS({
2309
2309
  }
2310
2310
  });
2311
2311
 
2312
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/map.js
2312
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js
2313
2313
  var require_map = __commonJS({
2314
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/map.js"(exports) {
2314
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js"(exports) {
2315
2315
  "use strict";
2316
2316
  init_esm();
2317
2317
  var identity = require_identity();
@@ -2332,9 +2332,9 @@ var require_map = __commonJS({
2332
2332
  }
2333
2333
  });
2334
2334
 
2335
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/YAMLSeq.js
2335
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js
2336
2336
  var require_YAMLSeq = __commonJS({
2337
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
2337
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
2338
2338
  "use strict";
2339
2339
  init_esm();
2340
2340
  var createNode = require_createNode();
@@ -2449,9 +2449,9 @@ var require_YAMLSeq = __commonJS({
2449
2449
  }
2450
2450
  });
2451
2451
 
2452
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/seq.js
2452
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js
2453
2453
  var require_seq = __commonJS({
2454
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/seq.js"(exports) {
2454
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js"(exports) {
2455
2455
  "use strict";
2456
2456
  init_esm();
2457
2457
  var identity = require_identity();
@@ -2472,9 +2472,9 @@ var require_seq = __commonJS({
2472
2472
  }
2473
2473
  });
2474
2474
 
2475
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/string.js
2475
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js
2476
2476
  var require_string = __commonJS({
2477
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/string.js"(exports) {
2477
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js"(exports) {
2478
2478
  "use strict";
2479
2479
  init_esm();
2480
2480
  var stringifyString = require_stringifyString();
@@ -2492,9 +2492,9 @@ var require_string = __commonJS({
2492
2492
  }
2493
2493
  });
2494
2494
 
2495
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/null.js
2495
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js
2496
2496
  var require_null = __commonJS({
2497
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/null.js"(exports) {
2497
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js"(exports) {
2498
2498
  "use strict";
2499
2499
  init_esm();
2500
2500
  var Scalar = require_Scalar();
@@ -2511,9 +2511,9 @@ var require_null = __commonJS({
2511
2511
  }
2512
2512
  });
2513
2513
 
2514
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/bool.js
2514
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js
2515
2515
  var require_bool = __commonJS({
2516
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/bool.js"(exports) {
2516
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js"(exports) {
2517
2517
  "use strict";
2518
2518
  init_esm();
2519
2519
  var Scalar = require_Scalar();
@@ -2536,9 +2536,9 @@ var require_bool = __commonJS({
2536
2536
  }
2537
2537
  });
2538
2538
 
2539
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyNumber.js
2539
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js
2540
2540
  var require_stringifyNumber = __commonJS({
2541
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
2541
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
2542
2542
  "use strict";
2543
2543
  init_esm();
2544
2544
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
@@ -2564,9 +2564,9 @@ var require_stringifyNumber = __commonJS({
2564
2564
  }
2565
2565
  });
2566
2566
 
2567
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/float.js
2567
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js
2568
2568
  var require_float = __commonJS({
2569
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/float.js"(exports) {
2569
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js"(exports) {
2570
2570
  "use strict";
2571
2571
  init_esm();
2572
2572
  var Scalar = require_Scalar();
@@ -2575,7 +2575,7 @@ var require_float = __commonJS({
2575
2575
  identify: (value) => typeof value === "number",
2576
2576
  default: true,
2577
2577
  tag: "tag:yaml.org,2002:float",
2578
- test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,
2578
+ test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
2579
2579
  resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
2580
2580
  stringify: stringifyNumber.stringifyNumber
2581
2581
  };
@@ -2611,9 +2611,9 @@ var require_float = __commonJS({
2611
2611
  }
2612
2612
  });
2613
2613
 
2614
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/int.js
2614
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js
2615
2615
  var require_int = __commonJS({
2616
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/int.js"(exports) {
2616
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js"(exports) {
2617
2617
  "use strict";
2618
2618
  init_esm();
2619
2619
  var stringifyNumber = require_stringifyNumber();
@@ -2657,9 +2657,9 @@ var require_int = __commonJS({
2657
2657
  }
2658
2658
  });
2659
2659
 
2660
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/schema.js
2660
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js
2661
2661
  var require_schema = __commonJS({
2662
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/schema.js"(exports) {
2662
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js"(exports) {
2663
2663
  "use strict";
2664
2664
  init_esm();
2665
2665
  var map = require_map();
@@ -2686,9 +2686,9 @@ var require_schema = __commonJS({
2686
2686
  }
2687
2687
  });
2688
2688
 
2689
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/json/schema.js
2689
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js
2690
2690
  var require_schema2 = __commonJS({
2691
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/json/schema.js"(exports) {
2691
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js"(exports) {
2692
2692
  "use strict";
2693
2693
  init_esm();
2694
2694
  var Scalar = require_Scalar();
@@ -2754,9 +2754,9 @@ var require_schema2 = __commonJS({
2754
2754
  }
2755
2755
  });
2756
2756
 
2757
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2757
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2758
2758
  var require_binary = __commonJS({
2759
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
2759
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
2760
2760
  "use strict";
2761
2761
  init_esm();
2762
2762
  var Scalar = require_Scalar();
@@ -2819,9 +2819,9 @@ var require_binary = __commonJS({
2819
2819
  }
2820
2820
  });
2821
2821
 
2822
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2822
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2823
2823
  var require_pairs = __commonJS({
2824
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
2824
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
2825
2825
  "use strict";
2826
2826
  init_esm();
2827
2827
  var identity = require_identity();
@@ -2898,9 +2898,9 @@ ${cn.comment}` : item.comment;
2898
2898
  }
2899
2899
  });
2900
2900
 
2901
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2901
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2902
2902
  var require_omap = __commonJS({
2903
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
2903
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
2904
2904
  "use strict";
2905
2905
  init_esm();
2906
2906
  var identity = require_identity();
@@ -2977,9 +2977,9 @@ var require_omap = __commonJS({
2977
2977
  }
2978
2978
  });
2979
2979
 
2980
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2980
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2981
2981
  var require_bool2 = __commonJS({
2982
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
2982
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
2983
2983
  "use strict";
2984
2984
  init_esm();
2985
2985
  var Scalar = require_Scalar();
@@ -3010,9 +3010,9 @@ var require_bool2 = __commonJS({
3010
3010
  }
3011
3011
  });
3012
3012
 
3013
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/float.js
3013
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js
3014
3014
  var require_float2 = __commonJS({
3015
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
3015
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
3016
3016
  "use strict";
3017
3017
  init_esm();
3018
3018
  var Scalar = require_Scalar();
@@ -3021,7 +3021,7 @@ var require_float2 = __commonJS({
3021
3021
  identify: (value) => typeof value === "number",
3022
3022
  default: true,
3023
3023
  tag: "tag:yaml.org,2002:float",
3024
- test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,
3024
+ test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
3025
3025
  resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
3026
3026
  stringify: stringifyNumber.stringifyNumber
3027
3027
  };
@@ -3060,9 +3060,9 @@ var require_float2 = __commonJS({
3060
3060
  }
3061
3061
  });
3062
3062
 
3063
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/int.js
3063
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js
3064
3064
  var require_int2 = __commonJS({
3065
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
3065
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
3066
3066
  "use strict";
3067
3067
  init_esm();
3068
3068
  var stringifyNumber = require_stringifyNumber();
@@ -3140,9 +3140,9 @@ var require_int2 = __commonJS({
3140
3140
  }
3141
3141
  });
3142
3142
 
3143
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/set.js
3143
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js
3144
3144
  var require_set = __commonJS({
3145
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
3145
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
3146
3146
  "use strict";
3147
3147
  init_esm();
3148
3148
  var identity = require_identity();
@@ -3230,9 +3230,9 @@ var require_set = __commonJS({
3230
3230
  }
3231
3231
  });
3232
3232
 
3233
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3233
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
3234
3234
  var require_timestamp = __commonJS({
3235
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
3235
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
3236
3236
  "use strict";
3237
3237
  init_esm();
3238
3238
  var stringifyNumber = require_stringifyNumber();
@@ -3319,9 +3319,9 @@ var require_timestamp = __commonJS({
3319
3319
  }
3320
3320
  });
3321
3321
 
3322
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3322
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3323
3323
  var require_schema3 = __commonJS({
3324
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
3324
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
3325
3325
  "use strict";
3326
3326
  init_esm();
3327
3327
  var map = require_map();
@@ -3362,9 +3362,9 @@ var require_schema3 = __commonJS({
3362
3362
  }
3363
3363
  });
3364
3364
 
3365
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/tags.js
3365
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js
3366
3366
  var require_tags = __commonJS({
3367
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/tags.js"(exports) {
3367
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js"(exports) {
3368
3368
  "use strict";
3369
3369
  init_esm();
3370
3370
  var map = require_map();
@@ -3446,9 +3446,9 @@ var require_tags = __commonJS({
3446
3446
  }
3447
3447
  });
3448
3448
 
3449
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/Schema.js
3449
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js
3450
3450
  var require_Schema = __commonJS({
3451
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/Schema.js"(exports) {
3451
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js"(exports) {
3452
3452
  "use strict";
3453
3453
  init_esm();
3454
3454
  var identity = require_identity();
@@ -3480,9 +3480,9 @@ var require_Schema = __commonJS({
3480
3480
  }
3481
3481
  });
3482
3482
 
3483
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyDocument.js
3483
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js
3484
3484
  var require_stringifyDocument = __commonJS({
3485
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
3485
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
3486
3486
  "use strict";
3487
3487
  init_esm();
3488
3488
  var identity = require_identity();
@@ -3561,9 +3561,9 @@ var require_stringifyDocument = __commonJS({
3561
3561
  }
3562
3562
  });
3563
3563
 
3564
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/Document.js
3564
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js
3565
3565
  var require_Document = __commonJS({
3566
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/Document.js"(exports) {
3566
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js"(exports) {
3567
3567
  "use strict";
3568
3568
  init_esm();
3569
3569
  var Alias = require_Alias();
@@ -3870,9 +3870,9 @@ var require_Document = __commonJS({
3870
3870
  }
3871
3871
  });
3872
3872
 
3873
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/errors.js
3873
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js
3874
3874
  var require_errors = __commonJS({
3875
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/errors.js"(exports) {
3875
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js"(exports) {
3876
3876
  "use strict";
3877
3877
  init_esm();
3878
3878
  var YAMLError = class extends Error {
@@ -3936,12 +3936,12 @@ ${pointer}
3936
3936
  }
3937
3937
  });
3938
3938
 
3939
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-props.js
3939
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js
3940
3940
  var require_resolve_props = __commonJS({
3941
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
3941
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
3942
3942
  "use strict";
3943
3943
  init_esm();
3944
- function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnNewline }) {
3944
+ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3945
3945
  let spaceBefore = false;
3946
3946
  let atNewline = startOnNewline;
3947
3947
  let hasSpace = startOnNewline;
@@ -3950,6 +3950,7 @@ var require_resolve_props = __commonJS({
3950
3950
  let hasNewline = false;
3951
3951
  let hasNewlineAfterProp = false;
3952
3952
  let reqSpace = false;
3953
+ let tab = null;
3953
3954
  let anchor = null;
3954
3955
  let tag = null;
3955
3956
  let comma = null;
@@ -3961,10 +3962,17 @@ var require_resolve_props = __commonJS({
3961
3962
  onError(token.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
3962
3963
  reqSpace = false;
3963
3964
  }
3965
+ if (tab) {
3966
+ if (atNewline && token.type !== "comment" && token.type !== "newline") {
3967
+ onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
3968
+ }
3969
+ tab = null;
3970
+ }
3964
3971
  switch (token.type) {
3965
3972
  case "space":
3966
- if (!flow && atNewline && indicator !== "doc-start" && token.source[0] === " ")
3967
- onError(token, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
3973
+ if (!flow && (indicator !== "doc-start" || next?.type !== "flow-collection") && token.source.includes(" ")) {
3974
+ tab = token;
3975
+ }
3968
3976
  hasSpace = true;
3969
3977
  break;
3970
3978
  case "comment": {
@@ -4022,7 +4030,7 @@ var require_resolve_props = __commonJS({
4022
4030
  if (found)
4023
4031
  onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.source} in ${flow ?? "collection"}`);
4024
4032
  found = token;
4025
- atNewline = false;
4033
+ atNewline = indicator === "seq-item-ind" || indicator === "explicit-key-ind";
4026
4034
  hasSpace = false;
4027
4035
  break;
4028
4036
  case "comma":
@@ -4042,8 +4050,11 @@ var require_resolve_props = __commonJS({
4042
4050
  }
4043
4051
  const last = tokens[tokens.length - 1];
4044
4052
  const end = last ? last.offset + last.source.length : offset;
4045
- if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== ""))
4053
+ if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== "")) {
4046
4054
  onError(next.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
4055
+ }
4056
+ if (tab && (atNewline && tab.indent <= parentIndent || next?.type === "block-map" || next?.type === "block-seq"))
4057
+ onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
4047
4058
  return {
4048
4059
  comma,
4049
4060
  found,
@@ -4061,9 +4072,9 @@ var require_resolve_props = __commonJS({
4061
4072
  }
4062
4073
  });
4063
4074
 
4064
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-contains-newline.js
4075
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js
4065
4076
  var require_util_contains_newline = __commonJS({
4066
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
4077
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
4067
4078
  "use strict";
4068
4079
  init_esm();
4069
4080
  function containsNewline(key) {
@@ -4104,9 +4115,9 @@ var require_util_contains_newline = __commonJS({
4104
4115
  }
4105
4116
  });
4106
4117
 
4107
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-flow-indent-check.js
4118
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js
4108
4119
  var require_util_flow_indent_check = __commonJS({
4109
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
4120
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
4110
4121
  "use strict";
4111
4122
  init_esm();
4112
4123
  var utilContainsNewline = require_util_contains_newline();
@@ -4123,9 +4134,9 @@ var require_util_flow_indent_check = __commonJS({
4123
4134
  }
4124
4135
  });
4125
4136
 
4126
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-map-includes.js
4137
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js
4127
4138
  var require_util_map_includes = __commonJS({
4128
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
4139
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
4129
4140
  "use strict";
4130
4141
  init_esm();
4131
4142
  var identity = require_identity();
@@ -4140,9 +4151,9 @@ var require_util_map_includes = __commonJS({
4140
4151
  }
4141
4152
  });
4142
4153
 
4143
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-map.js
4154
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js
4144
4155
  var require_resolve_block_map = __commonJS({
4145
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
4156
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
4146
4157
  "use strict";
4147
4158
  init_esm();
4148
4159
  var Pair = require_Pair();
@@ -4166,6 +4177,7 @@ var require_resolve_block_map = __commonJS({
4166
4177
  next: key ?? sep?.[0],
4167
4178
  offset,
4168
4179
  onError,
4180
+ parentIndent: bm.indent,
4169
4181
  startOnNewline: true
4170
4182
  });
4171
4183
  const implicitKey = !keyProps.found;
@@ -4203,6 +4215,7 @@ var require_resolve_block_map = __commonJS({
4203
4215
  next: value,
4204
4216
  offset: keyNode.range[2],
4205
4217
  onError,
4218
+ parentIndent: bm.indent,
4206
4219
  startOnNewline: !key || key.type === "block-scalar"
4207
4220
  });
4208
4221
  offset = valueProps.end;
@@ -4245,9 +4258,9 @@ var require_resolve_block_map = __commonJS({
4245
4258
  }
4246
4259
  });
4247
4260
 
4248
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-seq.js
4261
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js
4249
4262
  var require_resolve_block_seq = __commonJS({
4250
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
4263
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
4251
4264
  "use strict";
4252
4265
  init_esm();
4253
4266
  var YAMLSeq = require_YAMLSeq();
@@ -4266,6 +4279,7 @@ var require_resolve_block_seq = __commonJS({
4266
4279
  next: value,
4267
4280
  offset,
4268
4281
  onError,
4282
+ parentIndent: bs.indent,
4269
4283
  startOnNewline: true
4270
4284
  });
4271
4285
  if (!props.found) {
@@ -4294,9 +4308,9 @@ var require_resolve_block_seq = __commonJS({
4294
4308
  }
4295
4309
  });
4296
4310
 
4297
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-end.js
4311
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js
4298
4312
  var require_resolve_end = __commonJS({
4299
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
4313
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
4300
4314
  "use strict";
4301
4315
  init_esm();
4302
4316
  function resolveEnd(end, offset, reqSpace, onError) {
@@ -4338,9 +4352,9 @@ var require_resolve_end = __commonJS({
4338
4352
  }
4339
4353
  });
4340
4354
 
4341
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-flow-collection.js
4355
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js
4342
4356
  var require_resolve_flow_collection = __commonJS({
4343
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
4357
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
4344
4358
  "use strict";
4345
4359
  init_esm();
4346
4360
  var identity = require_identity();
@@ -4372,6 +4386,7 @@ var require_resolve_flow_collection = __commonJS({
4372
4386
  next: key ?? sep?.[0],
4373
4387
  offset,
4374
4388
  onError,
4389
+ parentIndent: fc.indent,
4375
4390
  startOnNewline: false
4376
4391
  });
4377
4392
  if (!props.found) {
@@ -4447,6 +4462,7 @@ var require_resolve_flow_collection = __commonJS({
4447
4462
  next: value,
4448
4463
  offset: keyNode.range[2],
4449
4464
  onError,
4465
+ parentIndent: fc.indent,
4450
4466
  startOnNewline: false
4451
4467
  });
4452
4468
  if (valueProps.found) {
@@ -4526,9 +4542,9 @@ var require_resolve_flow_collection = __commonJS({
4526
4542
  }
4527
4543
  });
4528
4544
 
4529
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-collection.js
4545
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js
4530
4546
  var require_compose_collection = __commonJS({
4531
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
4547
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
4532
4548
  "use strict";
4533
4549
  init_esm();
4534
4550
  var identity = require_identity();
@@ -4583,15 +4599,15 @@ var require_compose_collection = __commonJS({
4583
4599
  }
4584
4600
  });
4585
4601
 
4586
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-scalar.js
4602
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js
4587
4603
  var require_resolve_block_scalar = __commonJS({
4588
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
4604
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
4589
4605
  "use strict";
4590
4606
  init_esm();
4591
4607
  var Scalar = require_Scalar();
4592
- function resolveBlockScalar(scalar, strict, onError) {
4608
+ function resolveBlockScalar(ctx, scalar, onError) {
4593
4609
  const start = scalar.offset;
4594
- const header = parseBlockScalarHeader(scalar, strict, onError);
4610
+ const header = parseBlockScalarHeader(scalar, ctx.options.strict, onError);
4595
4611
  if (!header)
4596
4612
  return { value: "", type: null, comment: "", range: [start, start, start] };
4597
4613
  const type = header.mode === ">" ? Scalar.Scalar.BLOCK_FOLDED : Scalar.Scalar.BLOCK_LITERAL;
@@ -4627,6 +4643,10 @@ var require_resolve_block_scalar = __commonJS({
4627
4643
  if (header.indent === 0)
4628
4644
  trimIndent = indent.length;
4629
4645
  contentStart = i;
4646
+ if (trimIndent === 0 && !ctx.atRoot) {
4647
+ const message = "Block scalar values in collections must be indented";
4648
+ onError(offset, "BAD_INDENT", message);
4649
+ }
4630
4650
  break;
4631
4651
  }
4632
4652
  offset += indent.length + content.length + 1;
@@ -4761,9 +4781,9 @@ var require_resolve_block_scalar = __commonJS({
4761
4781
  }
4762
4782
  });
4763
4783
 
4764
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4784
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4765
4785
  var require_resolve_flow_scalar = __commonJS({
4766
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
4786
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
4767
4787
  "use strict";
4768
4788
  init_esm();
4769
4789
  var Scalar = require_Scalar();
@@ -4979,9 +4999,9 @@ var require_resolve_flow_scalar = __commonJS({
4979
4999
  }
4980
5000
  });
4981
5001
 
4982
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-scalar.js
5002
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js
4983
5003
  var require_compose_scalar = __commonJS({
4984
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
5004
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
4985
5005
  "use strict";
4986
5006
  init_esm();
4987
5007
  var identity = require_identity();
@@ -4989,7 +5009,7 @@ var require_compose_scalar = __commonJS({
4989
5009
  var resolveBlockScalar = require_resolve_block_scalar();
4990
5010
  var resolveFlowScalar = require_resolve_flow_scalar();
4991
5011
  function composeScalar(ctx, token, tagToken, onError) {
4992
- const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(token, ctx.options.strict, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
5012
+ const { value, type, comment, range } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
4993
5013
  const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
4994
5014
  const tag = tagToken && tagName ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) : token.type === "scalar" ? findScalarTagByTest(ctx, value, token, onError) : ctx.schema[identity.SCALAR];
4995
5015
  let scalar;
@@ -5053,9 +5073,9 @@ var require_compose_scalar = __commonJS({
5053
5073
  }
5054
5074
  });
5055
5075
 
5056
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-empty-scalar-position.js
5076
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js
5057
5077
  var require_util_empty_scalar_position = __commonJS({
5058
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
5078
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
5059
5079
  "use strict";
5060
5080
  init_esm();
5061
5081
  function emptyScalarPosition(offset, before, pos) {
@@ -5085,9 +5105,9 @@ var require_util_empty_scalar_position = __commonJS({
5085
5105
  }
5086
5106
  });
5087
5107
 
5088
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-node.js
5108
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js
5089
5109
  var require_compose_node = __commonJS({
5090
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-node.js"(exports) {
5110
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js"(exports) {
5091
5111
  "use strict";
5092
5112
  init_esm();
5093
5113
  var Alias = require_Alias();
@@ -5181,9 +5201,9 @@ var require_compose_node = __commonJS({
5181
5201
  }
5182
5202
  });
5183
5203
 
5184
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-doc.js
5204
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js
5185
5205
  var require_compose_doc = __commonJS({
5186
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
5206
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
5187
5207
  "use strict";
5188
5208
  init_esm();
5189
5209
  var Document = require_Document();
@@ -5204,6 +5224,7 @@ var require_compose_doc = __commonJS({
5204
5224
  next: value ?? end?.[0],
5205
5225
  offset,
5206
5226
  onError,
5227
+ parentIndent: 0,
5207
5228
  startOnNewline: true
5208
5229
  });
5209
5230
  if (props.found) {
@@ -5223,9 +5244,9 @@ var require_compose_doc = __commonJS({
5223
5244
  }
5224
5245
  });
5225
5246
 
5226
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/composer.js
5247
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js
5227
5248
  var require_composer = __commonJS({
5228
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/composer.js"(exports) {
5249
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js"(exports) {
5229
5250
  "use strict";
5230
5251
  init_esm();
5231
5252
  var directives = require_directives();
@@ -5429,9 +5450,9 @@ ${end.comment}` : end.comment;
5429
5450
  }
5430
5451
  });
5431
5452
 
5432
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-scalar.js
5453
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js
5433
5454
  var require_cst_scalar = __commonJS({
5434
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
5455
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
5435
5456
  "use strict";
5436
5457
  init_esm();
5437
5458
  var resolveBlockScalar = require_resolve_block_scalar();
@@ -5453,7 +5474,7 @@ var require_cst_scalar = __commonJS({
5453
5474
  case "double-quoted-scalar":
5454
5475
  return resolveFlowScalar.resolveFlowScalar(token, strict, _onError);
5455
5476
  case "block-scalar":
5456
- return resolveBlockScalar.resolveBlockScalar(token, strict, _onError);
5477
+ return resolveBlockScalar.resolveBlockScalar({ options: { strict } }, token, _onError);
5457
5478
  }
5458
5479
  }
5459
5480
  return null;
@@ -5615,9 +5636,9 @@ var require_cst_scalar = __commonJS({
5615
5636
  }
5616
5637
  });
5617
5638
 
5618
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-stringify.js
5639
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js
5619
5640
  var require_cst_stringify = __commonJS({
5620
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
5641
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
5621
5642
  "use strict";
5622
5643
  init_esm();
5623
5644
  var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
@@ -5677,9 +5698,9 @@ var require_cst_stringify = __commonJS({
5677
5698
  }
5678
5699
  });
5679
5700
 
5680
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-visit.js
5701
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js
5681
5702
  var require_cst_visit = __commonJS({
5682
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
5703
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
5683
5704
  "use strict";
5684
5705
  init_esm();
5685
5706
  var BREAK = Symbol("break visit");
@@ -5740,9 +5761,9 @@ var require_cst_visit = __commonJS({
5740
5761
  }
5741
5762
  });
5742
5763
 
5743
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst.js
5764
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js
5744
5765
  var require_cst = __commonJS({
5745
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst.js"(exports) {
5766
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js"(exports) {
5746
5767
  "use strict";
5747
5768
  init_esm();
5748
5769
  var cstScalar = require_cst_scalar();
@@ -5843,9 +5864,9 @@ var require_cst = __commonJS({
5843
5864
  }
5844
5865
  });
5845
5866
 
5846
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/lexer.js
5867
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js
5847
5868
  var require_lexer = __commonJS({
5848
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/lexer.js"(exports) {
5869
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js"(exports) {
5849
5870
  "use strict";
5850
5871
  init_esm();
5851
5872
  var cst = require_cst();
@@ -5861,11 +5882,11 @@ var require_lexer = __commonJS({
5861
5882
  return false;
5862
5883
  }
5863
5884
  }
5864
- var hexDigits = "0123456789ABCDEFabcdef".split("");
5865
- var tagChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split("");
5866
- var invalidFlowScalarChars = ",[]{}".split("");
5867
- var invalidAnchorChars = " ,[]{}\n\r ".split("");
5868
- var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.includes(ch);
5885
+ var hexDigits = new Set("0123456789ABCDEFabcdef");
5886
+ var tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
5887
+ var flowIndicatorChars = new Set(",[]{}");
5888
+ var invalidAnchorChars = new Set(" ,[]{}\n\r ");
5889
+ var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.has(ch);
5869
5890
  var Lexer = class {
5870
5891
  constructor() {
5871
5892
  this.atEnd = false;
@@ -5888,6 +5909,8 @@ var require_lexer = __commonJS({
5888
5909
  */
5889
5910
  *lex(source, incomplete = false) {
5890
5911
  if (source) {
5912
+ if (typeof source !== "string")
5913
+ throw TypeError("source is not a string");
5891
5914
  this.buffer = this.buffer ? this.buffer + source : source;
5892
5915
  this.lineEndPos = null;
5893
5916
  }
@@ -5985,11 +6008,15 @@ var require_lexer = __commonJS({
5985
6008
  }
5986
6009
  if (line[0] === "%") {
5987
6010
  let dirEnd = line.length;
5988
- const cs = line.indexOf("#");
5989
- if (cs !== -1) {
6011
+ let cs = line.indexOf("#");
6012
+ while (cs !== -1) {
5990
6013
  const ch = line[cs - 1];
5991
- if (ch === " " || ch === " ")
6014
+ if (ch === " " || ch === " ") {
5992
6015
  dirEnd = cs - 1;
6016
+ break;
6017
+ } else {
6018
+ cs = line.indexOf("#", cs + 1);
6019
+ }
5993
6020
  }
5994
6021
  while (true) {
5995
6022
  const ch = line[dirEnd - 1];
@@ -6213,17 +6240,17 @@ var require_lexer = __commonJS({
6213
6240
  let indent = 0;
6214
6241
  let ch;
6215
6242
  loop:
6216
- for (let i = this.pos; ch = this.buffer[i]; ++i) {
6243
+ for (let i2 = this.pos; ch = this.buffer[i2]; ++i2) {
6217
6244
  switch (ch) {
6218
6245
  case " ":
6219
6246
  indent += 1;
6220
6247
  break;
6221
6248
  case "\n":
6222
- nl = i;
6249
+ nl = i2;
6223
6250
  indent = 0;
6224
6251
  break;
6225
6252
  case "\r": {
6226
- const next = this.buffer[i + 1];
6253
+ const next = this.buffer[i2 + 1];
6227
6254
  if (!next && !this.atEnd)
6228
6255
  return this.setNext("block-scalar");
6229
6256
  if (next === "\n")
@@ -6238,8 +6265,9 @@ var require_lexer = __commonJS({
6238
6265
  if (indent >= this.indentNext) {
6239
6266
  if (this.blockScalarIndent === -1)
6240
6267
  this.indentNext = indent;
6241
- else
6242
- this.indentNext += this.blockScalarIndent;
6268
+ else {
6269
+ this.indentNext = this.blockScalarIndent + (this.indentNext === 0 ? 1 : this.indentNext);
6270
+ }
6243
6271
  do {
6244
6272
  const cs = this.continueScalar(nl + 1);
6245
6273
  if (cs === -1)
@@ -6252,17 +6280,25 @@ var require_lexer = __commonJS({
6252
6280
  nl = this.buffer.length;
6253
6281
  }
6254
6282
  }
6255
- if (!this.blockScalarKeep) {
6283
+ let i = nl + 1;
6284
+ ch = this.buffer[i];
6285
+ while (ch === " ")
6286
+ ch = this.buffer[++i];
6287
+ if (ch === " ") {
6288
+ while (ch === " " || ch === " " || ch === "\r" || ch === "\n")
6289
+ ch = this.buffer[++i];
6290
+ nl = i - 1;
6291
+ } else if (!this.blockScalarKeep) {
6256
6292
  do {
6257
- let i = nl - 1;
6258
- let ch2 = this.buffer[i];
6293
+ let i2 = nl - 1;
6294
+ let ch2 = this.buffer[i2];
6259
6295
  if (ch2 === "\r")
6260
- ch2 = this.buffer[--i];
6261
- const lastChar = i;
6262
- while (ch2 === " " || ch2 === " ")
6263
- ch2 = this.buffer[--i];
6264
- if (ch2 === "\n" && i >= this.pos && i + 1 + indent > lastChar)
6265
- nl = i;
6296
+ ch2 = this.buffer[--i2];
6297
+ const lastChar = i2;
6298
+ while (ch2 === " ")
6299
+ ch2 = this.buffer[--i2];
6300
+ if (ch2 === "\n" && i2 >= this.pos && i2 + 1 + indent > lastChar)
6301
+ nl = i2;
6266
6302
  else
6267
6303
  break;
6268
6304
  } while (true);
@@ -6279,7 +6315,7 @@ var require_lexer = __commonJS({
6279
6315
  while (ch = this.buffer[++i]) {
6280
6316
  if (ch === ":") {
6281
6317
  const next = this.buffer[i + 1];
6282
- if (isEmpty(next) || inFlow && next === ",")
6318
+ if (isEmpty(next) || inFlow && flowIndicatorChars.has(next))
6283
6319
  break;
6284
6320
  end = i;
6285
6321
  } else if (isEmpty(ch)) {
@@ -6292,7 +6328,7 @@ var require_lexer = __commonJS({
6292
6328
  } else
6293
6329
  end = i;
6294
6330
  }
6295
- if (next === "#" || inFlow && invalidFlowScalarChars.includes(next))
6331
+ if (next === "#" || inFlow && flowIndicatorChars.has(next))
6296
6332
  break;
6297
6333
  if (ch === "\n") {
6298
6334
  const cs = this.continueScalar(i + 1);
@@ -6301,7 +6337,7 @@ var require_lexer = __commonJS({
6301
6337
  i = Math.max(i, cs - 2);
6302
6338
  }
6303
6339
  } else {
6304
- if (inFlow && invalidFlowScalarChars.includes(ch))
6340
+ if (inFlow && flowIndicatorChars.has(ch))
6305
6341
  break;
6306
6342
  end = i;
6307
6343
  }
@@ -6341,7 +6377,7 @@ var require_lexer = __commonJS({
6341
6377
  case ":": {
6342
6378
  const inFlow = this.flowLevel > 0;
6343
6379
  const ch1 = this.charAt(1);
6344
- if (isEmpty(ch1) || inFlow && invalidFlowScalarChars.includes(ch1)) {
6380
+ if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
6345
6381
  if (!inFlow)
6346
6382
  this.indentNext = this.indentValue + 1;
6347
6383
  else if (this.flowKey)
@@ -6363,9 +6399,9 @@ var require_lexer = __commonJS({
6363
6399
  let i = this.pos + 1;
6364
6400
  let ch = this.buffer[i];
6365
6401
  while (ch) {
6366
- if (tagChars.includes(ch))
6402
+ if (tagChars.has(ch))
6367
6403
  ch = this.buffer[++i];
6368
- else if (ch === "%" && hexDigits.includes(this.buffer[i + 1]) && hexDigits.includes(this.buffer[i + 2])) {
6404
+ else if (ch === "%" && hexDigits.has(this.buffer[i + 1]) && hexDigits.has(this.buffer[i + 2])) {
6369
6405
  ch = this.buffer[i += 3];
6370
6406
  } else
6371
6407
  break;
@@ -6407,9 +6443,9 @@ var require_lexer = __commonJS({
6407
6443
  }
6408
6444
  });
6409
6445
 
6410
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/line-counter.js
6446
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js
6411
6447
  var require_line_counter = __commonJS({
6412
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/line-counter.js"(exports) {
6448
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js"(exports) {
6413
6449
  "use strict";
6414
6450
  init_esm();
6415
6451
  var LineCounter = class {
@@ -6439,9 +6475,9 @@ var require_line_counter = __commonJS({
6439
6475
  }
6440
6476
  });
6441
6477
 
6442
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/parser.js
6478
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js
6443
6479
  var require_parser = __commonJS({
6444
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/parser.js"(exports) {
6480
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js"(exports) {
6445
6481
  "use strict";
6446
6482
  init_esm();
6447
6483
  var cst = require_cst();
@@ -6698,7 +6734,7 @@ var require_parser = __commonJS({
6698
6734
  it.value = token;
6699
6735
  } else {
6700
6736
  Object.assign(it, { key: token, sep: [] });
6701
- this.onKeyLine = !includesToken(it.start, "explicit-key-ind");
6737
+ this.onKeyLine = !it.explicitKey;
6702
6738
  return;
6703
6739
  }
6704
6740
  break;
@@ -6887,7 +6923,8 @@ var require_parser = __commonJS({
6887
6923
  return;
6888
6924
  }
6889
6925
  if (this.indent >= map.indent) {
6890
- const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep && this.type !== "seq-item-ind";
6926
+ const atMapIndent = !this.onKeyLine && this.indent === map.indent;
6927
+ const atNextItem = atMapIndent && (it.sep || it.explicitKey) && this.type !== "seq-item-ind";
6891
6928
  let start = [];
6892
6929
  if (atNextItem && it.sep && !it.value) {
6893
6930
  const nl = [];
@@ -6924,23 +6961,24 @@ var require_parser = __commonJS({
6924
6961
  }
6925
6962
  return;
6926
6963
  case "explicit-key-ind":
6927
- if (!it.sep && !includesToken(it.start, "explicit-key-ind")) {
6964
+ if (!it.sep && !it.explicitKey) {
6928
6965
  it.start.push(this.sourceToken);
6966
+ it.explicitKey = true;
6929
6967
  } else if (atNextItem || it.value) {
6930
6968
  start.push(this.sourceToken);
6931
- map.items.push({ start });
6969
+ map.items.push({ start, explicitKey: true });
6932
6970
  } else {
6933
6971
  this.stack.push({
6934
6972
  type: "block-map",
6935
6973
  offset: this.offset,
6936
6974
  indent: this.indent,
6937
- items: [{ start: [this.sourceToken] }]
6975
+ items: [{ start: [this.sourceToken], explicitKey: true }]
6938
6976
  });
6939
6977
  }
6940
6978
  this.onKeyLine = true;
6941
6979
  return;
6942
6980
  case "map-value-ind":
6943
- if (includesToken(it.start, "explicit-key-ind")) {
6981
+ if (it.explicitKey) {
6944
6982
  if (!it.sep) {
6945
6983
  if (includesToken(it.start, "newline")) {
6946
6984
  Object.assign(it, { key: null, sep: [this.sourceToken] });
@@ -7016,7 +7054,7 @@ var require_parser = __commonJS({
7016
7054
  default: {
7017
7055
  const bv = this.startBlockValue(map);
7018
7056
  if (bv) {
7019
- if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind")) {
7057
+ if (atMapIndent && bv.type !== "block-seq") {
7020
7058
  map.items.push({ start });
7021
7059
  }
7022
7060
  this.stack.push(bv);
@@ -7227,7 +7265,7 @@ var require_parser = __commonJS({
7227
7265
  type: "block-map",
7228
7266
  offset: this.offset,
7229
7267
  indent: this.indent,
7230
- items: [{ start }]
7268
+ items: [{ start, explicitKey: true }]
7231
7269
  };
7232
7270
  }
7233
7271
  case "map-value-ind": {
@@ -7290,9 +7328,9 @@ var require_parser = __commonJS({
7290
7328
  }
7291
7329
  });
7292
7330
 
7293
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/public-api.js
7331
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js
7294
7332
  var require_public_api = __commonJS({
7295
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/public-api.js"(exports) {
7333
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js"(exports) {
7296
7334
  "use strict";
7297
7335
  init_esm();
7298
7336
  var composer = require_composer();
@@ -7385,9 +7423,9 @@ var require_public_api = __commonJS({
7385
7423
  }
7386
7424
  });
7387
7425
 
7388
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/index.js
7426
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js
7389
7427
  var require_dist = __commonJS({
7390
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/index.js"(exports) {
7428
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js"(exports) {
7391
7429
  "use strict";
7392
7430
  init_esm();
7393
7431
  var composer = require_composer();
@@ -7782,18 +7820,14 @@ function pluginSourceBuild(options) {
7782
7820
  rule.resolve.mainFields.merge(
7783
7821
  resolvePriority === "source" ? [sourceField, "..."] : ["...", sourceField]
7784
7822
  );
7785
- rule.resolve.merge({
7786
- // `conditionNames` is not affected by `resolvePriority`.
7787
- // The priority is controlled by the order of fields declared in `exports`.
7788
- conditionNames: ["...", sourceField]
7789
- });
7823
+ rule.resolve.conditionNames.add("...").add(sourceField);
7790
7824
  }
7791
7825
  }
7792
7826
  });
7793
7827
  const getReferences = async () => {
7794
7828
  const refers = projects.map((project) => path9.join(project.dir, "tsconfig.json")).filter((filePath) => fs2.existsSync(filePath));
7795
7829
  if (api.context.tsconfigPath) {
7796
- const { default: json52 } = await import("@rsbuild/shared/json5");
7830
+ const { default: json52 } = await import("json5");
7797
7831
  const { references } = json52.parse(
7798
7832
  fs2.readFileSync(api.context.tsconfigPath, "utf-8")
7799
7833
  );