@slidev/cli 0.49.11 → 0.49.13

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.
@@ -1,7 +1,6 @@
1
1
  import {
2
- loadSetups
3
- } from "./chunk-LOUKLO2C.mjs";
4
- import {
2
+ __commonJS,
3
+ __toESM,
5
4
  createResolver,
6
5
  getRoots,
7
6
  isInstalledGlobally,
@@ -9,15 +8,11 @@ import {
9
8
  resolveImportPath,
10
9
  resolveImportUrl,
11
10
  toAtFS
12
- } from "./chunk-RG2EEPCO.mjs";
13
- import {
14
- __commonJS,
15
- __toESM
16
- } from "./chunk-BXO7ZPPU.mjs";
11
+ } from "./chunk-27Q2X57X.mjs";
17
12
 
18
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/identity.js
13
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js
19
14
  var require_identity = __commonJS({
20
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/identity.js"(exports) {
15
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/identity.js"(exports) {
21
16
  "use strict";
22
17
  var ALIAS = Symbol.for("yaml.alias");
23
18
  var DOC = Symbol.for("yaml.document");
@@ -72,9 +67,9 @@ var require_identity = __commonJS({
72
67
  }
73
68
  });
74
69
 
75
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/visit.js
70
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js
76
71
  var require_visit = __commonJS({
77
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/visit.js"(exports) {
72
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/visit.js"(exports) {
78
73
  "use strict";
79
74
  var identity = require_identity();
80
75
  var BREAK = Symbol("break visit");
@@ -230,9 +225,9 @@ var require_visit = __commonJS({
230
225
  }
231
226
  });
232
227
 
233
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/directives.js
228
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js
234
229
  var require_directives = __commonJS({
235
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/directives.js"(exports) {
230
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/directives.js"(exports) {
236
231
  "use strict";
237
232
  var identity = require_identity();
238
233
  var visit = require_visit();
@@ -401,9 +396,9 @@ var require_directives = __commonJS({
401
396
  }
402
397
  });
403
398
 
404
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/anchors.js
399
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js
405
400
  var require_anchors = __commonJS({
406
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/anchors.js"(exports) {
401
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/anchors.js"(exports) {
407
402
  "use strict";
408
403
  var identity = require_identity();
409
404
  var visit = require_visit();
@@ -472,9 +467,9 @@ var require_anchors = __commonJS({
472
467
  }
473
468
  });
474
469
 
475
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/applyReviver.js
470
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js
476
471
  var require_applyReviver = __commonJS({
477
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
472
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
478
473
  "use strict";
479
474
  function applyReviver(reviver, obj, key, val) {
480
475
  if (val && typeof val === "object") {
@@ -522,9 +517,9 @@ var require_applyReviver = __commonJS({
522
517
  }
523
518
  });
524
519
 
525
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/toJS.js
520
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js
526
521
  var require_toJS = __commonJS({
527
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/toJS.js"(exports) {
522
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/toJS.js"(exports) {
528
523
  "use strict";
529
524
  var identity = require_identity();
530
525
  function toJS(value, arg, ctx) {
@@ -552,9 +547,9 @@ var require_toJS = __commonJS({
552
547
  }
553
548
  });
554
549
 
555
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Node.js
550
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js
556
551
  var require_Node = __commonJS({
557
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Node.js"(exports) {
552
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Node.js"(exports) {
558
553
  "use strict";
559
554
  var applyReviver = require_applyReviver();
560
555
  var identity = require_identity();
@@ -593,9 +588,9 @@ var require_Node = __commonJS({
593
588
  }
594
589
  });
595
590
 
596
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Alias.js
591
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js
597
592
  var require_Alias = __commonJS({
598
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Alias.js"(exports) {
593
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Alias.js"(exports) {
599
594
  "use strict";
600
595
  var anchors = require_anchors();
601
596
  var visit = require_visit();
@@ -695,9 +690,9 @@ var require_Alias = __commonJS({
695
690
  }
696
691
  });
697
692
 
698
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Scalar.js
693
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js
699
694
  var require_Scalar = __commonJS({
700
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
695
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
701
696
  "use strict";
702
697
  var identity = require_identity();
703
698
  var Node = require_Node();
@@ -725,9 +720,9 @@ var require_Scalar = __commonJS({
725
720
  }
726
721
  });
727
722
 
728
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/createNode.js
723
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js
729
724
  var require_createNode = __commonJS({
730
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/createNode.js"(exports) {
725
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/createNode.js"(exports) {
731
726
  "use strict";
732
727
  var Alias = require_Alias();
733
728
  var identity = require_identity();
@@ -801,9 +796,9 @@ var require_createNode = __commonJS({
801
796
  }
802
797
  });
803
798
 
804
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Collection.js
799
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js
805
800
  var require_Collection = __commonJS({
806
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Collection.js"(exports) {
801
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Collection.js"(exports) {
807
802
  "use strict";
808
803
  var createNode = require_createNode();
809
804
  var identity = require_identity();
@@ -945,9 +940,9 @@ var require_Collection = __commonJS({
945
940
  }
946
941
  });
947
942
 
948
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyComment.js
943
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js
949
944
  var require_stringifyComment = __commonJS({
950
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
945
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
951
946
  "use strict";
952
947
  var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
953
948
  function indentComment(comment, indent) {
@@ -962,9 +957,9 @@ var require_stringifyComment = __commonJS({
962
957
  }
963
958
  });
964
959
 
965
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/foldFlowLines.js
960
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js
966
961
  var require_foldFlowLines = __commonJS({
967
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
962
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
968
963
  "use strict";
969
964
  var FOLD_FLOW = "flow";
970
965
  var FOLD_BLOCK = "block";
@@ -1096,9 +1091,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
1096
1091
  }
1097
1092
  });
1098
1093
 
1099
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyString.js
1094
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js
1100
1095
  var require_stringifyString = __commonJS({
1101
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
1096
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
1102
1097
  "use strict";
1103
1098
  var Scalar = require_Scalar();
1104
1099
  var foldFlowLines = require_foldFlowLines();
@@ -1371,9 +1366,9 @@ ${indent}`);
1371
1366
  }
1372
1367
  });
1373
1368
 
1374
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringify.js
1369
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js
1375
1370
  var require_stringify = __commonJS({
1376
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringify.js"(exports) {
1371
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringify.js"(exports) {
1377
1372
  "use strict";
1378
1373
  var anchors = require_anchors();
1379
1374
  var identity = require_identity();
@@ -1490,9 +1485,9 @@ ${ctx.indent}${str}`;
1490
1485
  }
1491
1486
  });
1492
1487
 
1493
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyPair.js
1488
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js
1494
1489
  var require_stringifyPair = __commonJS({
1495
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
1490
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
1496
1491
  "use strict";
1497
1492
  var identity = require_identity();
1498
1493
  var Scalar = require_Scalar();
@@ -1505,7 +1500,7 @@ var require_stringifyPair = __commonJS({
1505
1500
  if (keyComment) {
1506
1501
  throw new Error("With simple keys, key nodes cannot have comments");
1507
1502
  }
1508
- if (identity.isCollection(key)) {
1503
+ if (identity.isCollection(key) || !identity.isNode(key) && typeof key === "object") {
1509
1504
  const msg = "With simple keys, collection cannot be used as a key value";
1510
1505
  throw new Error(msg);
1511
1506
  }
@@ -1623,9 +1618,9 @@ ${ctx.indent}`;
1623
1618
  }
1624
1619
  });
1625
1620
 
1626
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/log.js
1621
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js
1627
1622
  var require_log = __commonJS({
1628
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/log.js"(exports) {
1623
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/log.js"(exports) {
1629
1624
  "use strict";
1630
1625
  function debug2(logLevel, ...messages) {
1631
1626
  if (logLevel === "debug")
@@ -1644,9 +1639,9 @@ var require_log = __commonJS({
1644
1639
  }
1645
1640
  });
1646
1641
 
1647
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/addPairToJSMap.js
1642
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js
1648
1643
  var require_addPairToJSMap = __commonJS({
1649
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
1644
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
1650
1645
  "use strict";
1651
1646
  var log = require_log();
1652
1647
  var stringify = require_stringify();
@@ -1738,9 +1733,9 @@ var require_addPairToJSMap = __commonJS({
1738
1733
  }
1739
1734
  });
1740
1735
 
1741
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Pair.js
1736
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js
1742
1737
  var require_Pair = __commonJS({
1743
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/Pair.js"(exports) {
1738
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/Pair.js"(exports) {
1744
1739
  "use strict";
1745
1740
  var createNode = require_createNode();
1746
1741
  var stringifyPair = require_stringifyPair();
@@ -1778,9 +1773,9 @@ var require_Pair = __commonJS({
1778
1773
  }
1779
1774
  });
1780
1775
 
1781
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyCollection.js
1776
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js
1782
1777
  var require_stringifyCollection = __commonJS({
1783
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
1778
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
1784
1779
  "use strict";
1785
1780
  var identity = require_identity();
1786
1781
  var stringify = require_stringify();
@@ -1922,9 +1917,9 @@ ${indent}${end}`;
1922
1917
  }
1923
1918
  });
1924
1919
 
1925
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/YAMLMap.js
1920
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js
1926
1921
  var require_YAMLMap = __commonJS({
1927
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
1922
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
1928
1923
  "use strict";
1929
1924
  var stringifyCollection = require_stringifyCollection();
1930
1925
  var addPairToJSMap = require_addPairToJSMap();
@@ -2066,9 +2061,9 @@ var require_YAMLMap = __commonJS({
2066
2061
  }
2067
2062
  });
2068
2063
 
2069
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/map.js
2064
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js
2070
2065
  var require_map = __commonJS({
2071
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/map.js"(exports) {
2066
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/map.js"(exports) {
2072
2067
  "use strict";
2073
2068
  var identity = require_identity();
2074
2069
  var YAMLMap = require_YAMLMap();
@@ -2088,9 +2083,9 @@ var require_map = __commonJS({
2088
2083
  }
2089
2084
  });
2090
2085
 
2091
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/YAMLSeq.js
2086
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js
2092
2087
  var require_YAMLSeq = __commonJS({
2093
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
2088
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
2094
2089
  "use strict";
2095
2090
  var createNode = require_createNode();
2096
2091
  var stringifyCollection = require_stringifyCollection();
@@ -2204,9 +2199,9 @@ var require_YAMLSeq = __commonJS({
2204
2199
  }
2205
2200
  });
2206
2201
 
2207
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/seq.js
2202
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js
2208
2203
  var require_seq = __commonJS({
2209
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/seq.js"(exports) {
2204
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/seq.js"(exports) {
2210
2205
  "use strict";
2211
2206
  var identity = require_identity();
2212
2207
  var YAMLSeq = require_YAMLSeq();
@@ -2226,9 +2221,9 @@ var require_seq = __commonJS({
2226
2221
  }
2227
2222
  });
2228
2223
 
2229
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/string.js
2224
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js
2230
2225
  var require_string = __commonJS({
2231
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/string.js"(exports) {
2226
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/string.js"(exports) {
2232
2227
  "use strict";
2233
2228
  var stringifyString = require_stringifyString();
2234
2229
  var string = {
@@ -2245,9 +2240,9 @@ var require_string = __commonJS({
2245
2240
  }
2246
2241
  });
2247
2242
 
2248
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/null.js
2243
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js
2249
2244
  var require_null = __commonJS({
2250
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/common/null.js"(exports) {
2245
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/common/null.js"(exports) {
2251
2246
  "use strict";
2252
2247
  var Scalar = require_Scalar();
2253
2248
  var nullTag = {
@@ -2263,9 +2258,9 @@ var require_null = __commonJS({
2263
2258
  }
2264
2259
  });
2265
2260
 
2266
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/bool.js
2261
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js
2267
2262
  var require_bool = __commonJS({
2268
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/bool.js"(exports) {
2263
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/bool.js"(exports) {
2269
2264
  "use strict";
2270
2265
  var Scalar = require_Scalar();
2271
2266
  var boolTag = {
@@ -2287,9 +2282,9 @@ var require_bool = __commonJS({
2287
2282
  }
2288
2283
  });
2289
2284
 
2290
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyNumber.js
2285
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js
2291
2286
  var require_stringifyNumber = __commonJS({
2292
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
2287
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
2293
2288
  "use strict";
2294
2289
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2295
2290
  if (typeof value === "bigint")
@@ -2314,9 +2309,9 @@ var require_stringifyNumber = __commonJS({
2314
2309
  }
2315
2310
  });
2316
2311
 
2317
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/float.js
2312
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js
2318
2313
  var require_float = __commonJS({
2319
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/float.js"(exports) {
2314
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/float.js"(exports) {
2320
2315
  "use strict";
2321
2316
  var Scalar = require_Scalar();
2322
2317
  var stringifyNumber = require_stringifyNumber();
@@ -2324,7 +2319,7 @@ var require_float = __commonJS({
2324
2319
  identify: (value) => typeof value === "number",
2325
2320
  default: true,
2326
2321
  tag: "tag:yaml.org,2002:float",
2327
- test: /^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,
2322
+ test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
2328
2323
  resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
2329
2324
  stringify: stringifyNumber.stringifyNumber
2330
2325
  };
@@ -2360,9 +2355,9 @@ var require_float = __commonJS({
2360
2355
  }
2361
2356
  });
2362
2357
 
2363
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/int.js
2358
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js
2364
2359
  var require_int = __commonJS({
2365
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/int.js"(exports) {
2360
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/int.js"(exports) {
2366
2361
  "use strict";
2367
2362
  var stringifyNumber = require_stringifyNumber();
2368
2363
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2405,9 +2400,9 @@ var require_int = __commonJS({
2405
2400
  }
2406
2401
  });
2407
2402
 
2408
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/schema.js
2403
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js
2409
2404
  var require_schema = __commonJS({
2410
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/core/schema.js"(exports) {
2405
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/core/schema.js"(exports) {
2411
2406
  "use strict";
2412
2407
  var map = require_map();
2413
2408
  var _null = require_null();
@@ -2433,9 +2428,9 @@ var require_schema = __commonJS({
2433
2428
  }
2434
2429
  });
2435
2430
 
2436
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/json/schema.js
2431
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js
2437
2432
  var require_schema2 = __commonJS({
2438
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/json/schema.js"(exports) {
2433
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/json/schema.js"(exports) {
2439
2434
  "use strict";
2440
2435
  var Scalar = require_Scalar();
2441
2436
  var map = require_map();
@@ -2500,9 +2495,9 @@ var require_schema2 = __commonJS({
2500
2495
  }
2501
2496
  });
2502
2497
 
2503
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2498
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2504
2499
  var require_binary = __commonJS({
2505
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
2500
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
2506
2501
  "use strict";
2507
2502
  var Scalar = require_Scalar();
2508
2503
  var stringifyString = require_stringifyString();
@@ -2564,9 +2559,9 @@ var require_binary = __commonJS({
2564
2559
  }
2565
2560
  });
2566
2561
 
2567
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2562
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2568
2563
  var require_pairs = __commonJS({
2569
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
2564
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
2570
2565
  "use strict";
2571
2566
  var identity = require_identity();
2572
2567
  var Pair = require_Pair();
@@ -2642,9 +2637,9 @@ ${cn.comment}` : item.comment;
2642
2637
  }
2643
2638
  });
2644
2639
 
2645
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2640
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2646
2641
  var require_omap = __commonJS({
2647
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
2642
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
2648
2643
  "use strict";
2649
2644
  var identity = require_identity();
2650
2645
  var toJS = require_toJS();
@@ -2720,9 +2715,9 @@ var require_omap = __commonJS({
2720
2715
  }
2721
2716
  });
2722
2717
 
2723
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2718
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2724
2719
  var require_bool2 = __commonJS({
2725
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
2720
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
2726
2721
  "use strict";
2727
2722
  var Scalar = require_Scalar();
2728
2723
  function boolStringify({ value, source }, ctx) {
@@ -2752,9 +2747,9 @@ var require_bool2 = __commonJS({
2752
2747
  }
2753
2748
  });
2754
2749
 
2755
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/float.js
2750
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js
2756
2751
  var require_float2 = __commonJS({
2757
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
2752
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
2758
2753
  "use strict";
2759
2754
  var Scalar = require_Scalar();
2760
2755
  var stringifyNumber = require_stringifyNumber();
@@ -2762,7 +2757,7 @@ var require_float2 = __commonJS({
2762
2757
  identify: (value) => typeof value === "number",
2763
2758
  default: true,
2764
2759
  tag: "tag:yaml.org,2002:float",
2765
- test: /^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,
2760
+ test: /^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,
2766
2761
  resolve: (str) => str.slice(-3).toLowerCase() === "nan" ? NaN : str[0] === "-" ? Number.NEGATIVE_INFINITY : Number.POSITIVE_INFINITY,
2767
2762
  stringify: stringifyNumber.stringifyNumber
2768
2763
  };
@@ -2801,9 +2796,9 @@ var require_float2 = __commonJS({
2801
2796
  }
2802
2797
  });
2803
2798
 
2804
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/int.js
2799
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js
2805
2800
  var require_int2 = __commonJS({
2806
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
2801
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
2807
2802
  "use strict";
2808
2803
  var stringifyNumber = require_stringifyNumber();
2809
2804
  var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2880,9 +2875,9 @@ var require_int2 = __commonJS({
2880
2875
  }
2881
2876
  });
2882
2877
 
2883
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/set.js
2878
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js
2884
2879
  var require_set = __commonJS({
2885
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
2880
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
2886
2881
  "use strict";
2887
2882
  var identity = require_identity();
2888
2883
  var Pair = require_Pair();
@@ -2969,9 +2964,9 @@ var require_set = __commonJS({
2969
2964
  }
2970
2965
  });
2971
2966
 
2972
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2967
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2973
2968
  var require_timestamp = __commonJS({
2974
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
2969
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
2975
2970
  "use strict";
2976
2971
  var stringifyNumber = require_stringifyNumber();
2977
2972
  function parseSexagesimal(str, asBigInt) {
@@ -3057,9 +3052,9 @@ var require_timestamp = __commonJS({
3057
3052
  }
3058
3053
  });
3059
3054
 
3060
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3055
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js
3061
3056
  var require_schema3 = __commonJS({
3062
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
3057
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
3063
3058
  "use strict";
3064
3059
  var map = require_map();
3065
3060
  var _null = require_null();
@@ -3099,9 +3094,9 @@ var require_schema3 = __commonJS({
3099
3094
  }
3100
3095
  });
3101
3096
 
3102
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/tags.js
3097
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js
3103
3098
  var require_tags = __commonJS({
3104
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/tags.js"(exports) {
3099
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/tags.js"(exports) {
3105
3100
  "use strict";
3106
3101
  var map = require_map();
3107
3102
  var _null = require_null();
@@ -3182,9 +3177,9 @@ var require_tags = __commonJS({
3182
3177
  }
3183
3178
  });
3184
3179
 
3185
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/Schema.js
3180
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js
3186
3181
  var require_Schema = __commonJS({
3187
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/schema/Schema.js"(exports) {
3182
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/schema/Schema.js"(exports) {
3188
3183
  "use strict";
3189
3184
  var identity = require_identity();
3190
3185
  var map = require_map();
@@ -3215,9 +3210,9 @@ var require_Schema = __commonJS({
3215
3210
  }
3216
3211
  });
3217
3212
 
3218
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyDocument.js
3213
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js
3219
3214
  var require_stringifyDocument = __commonJS({
3220
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
3215
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
3221
3216
  "use strict";
3222
3217
  var identity = require_identity();
3223
3218
  var stringify = require_stringify();
@@ -3295,9 +3290,9 @@ var require_stringifyDocument = __commonJS({
3295
3290
  }
3296
3291
  });
3297
3292
 
3298
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/Document.js
3293
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js
3299
3294
  var require_Document = __commonJS({
3300
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/doc/Document.js"(exports) {
3295
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/doc/Document.js"(exports) {
3301
3296
  "use strict";
3302
3297
  var Alias = require_Alias();
3303
3298
  var Collection = require_Collection();
@@ -3603,9 +3598,9 @@ var require_Document = __commonJS({
3603
3598
  }
3604
3599
  });
3605
3600
 
3606
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/errors.js
3601
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js
3607
3602
  var require_errors = __commonJS({
3608
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/errors.js"(exports) {
3603
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/errors.js"(exports) {
3609
3604
  "use strict";
3610
3605
  var YAMLError = class extends Error {
3611
3606
  constructor(name, pos, code, message) {
@@ -3668,11 +3663,11 @@ ${pointer}
3668
3663
  }
3669
3664
  });
3670
3665
 
3671
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-props.js
3666
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js
3672
3667
  var require_resolve_props = __commonJS({
3673
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
3668
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
3674
3669
  "use strict";
3675
- function resolveProps(tokens, { flow, indicator, next, offset, onError, startOnNewline }) {
3670
+ function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3676
3671
  let spaceBefore = false;
3677
3672
  let atNewline = startOnNewline;
3678
3673
  let hasSpace = startOnNewline;
@@ -3681,6 +3676,7 @@ var require_resolve_props = __commonJS({
3681
3676
  let hasNewline = false;
3682
3677
  let hasNewlineAfterProp = false;
3683
3678
  let reqSpace = false;
3679
+ let tab = null;
3684
3680
  let anchor = null;
3685
3681
  let tag = null;
3686
3682
  let comma = null;
@@ -3692,10 +3688,17 @@ var require_resolve_props = __commonJS({
3692
3688
  onError(token.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
3693
3689
  reqSpace = false;
3694
3690
  }
3691
+ if (tab) {
3692
+ if (atNewline && token.type !== "comment" && token.type !== "newline") {
3693
+ onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
3694
+ }
3695
+ tab = null;
3696
+ }
3695
3697
  switch (token.type) {
3696
3698
  case "space":
3697
- if (!flow && atNewline && indicator !== "doc-start" && token.source[0] === " ")
3698
- onError(token, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
3699
+ if (!flow && (indicator !== "doc-start" || next?.type !== "flow-collection") && token.source.includes(" ")) {
3700
+ tab = token;
3701
+ }
3699
3702
  hasSpace = true;
3700
3703
  break;
3701
3704
  case "comment": {
@@ -3753,7 +3756,7 @@ var require_resolve_props = __commonJS({
3753
3756
  if (found)
3754
3757
  onError(token, "UNEXPECTED_TOKEN", `Unexpected ${token.source} in ${flow ?? "collection"}`);
3755
3758
  found = token;
3756
- atNewline = false;
3759
+ atNewline = indicator === "seq-item-ind" || indicator === "explicit-key-ind";
3757
3760
  hasSpace = false;
3758
3761
  break;
3759
3762
  case "comma":
@@ -3773,8 +3776,11 @@ var require_resolve_props = __commonJS({
3773
3776
  }
3774
3777
  const last = tokens[tokens.length - 1];
3775
3778
  const end = last ? last.offset + last.source.length : offset;
3776
- if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== ""))
3779
+ if (reqSpace && next && next.type !== "space" && next.type !== "newline" && next.type !== "comma" && (next.type !== "scalar" || next.source !== "")) {
3777
3780
  onError(next.offset, "MISSING_CHAR", "Tags and anchors must be separated from the next token by white space");
3781
+ }
3782
+ if (tab && (atNewline && tab.indent <= parentIndent || next?.type === "block-map" || next?.type === "block-seq"))
3783
+ onError(tab, "TAB_AS_INDENT", "Tabs are not allowed as indentation");
3778
3784
  return {
3779
3785
  comma,
3780
3786
  found,
@@ -3792,9 +3798,9 @@ var require_resolve_props = __commonJS({
3792
3798
  }
3793
3799
  });
3794
3800
 
3795
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-contains-newline.js
3801
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js
3796
3802
  var require_util_contains_newline = __commonJS({
3797
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
3803
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
3798
3804
  "use strict";
3799
3805
  function containsNewline(key) {
3800
3806
  if (!key)
@@ -3834,9 +3840,9 @@ var require_util_contains_newline = __commonJS({
3834
3840
  }
3835
3841
  });
3836
3842
 
3837
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-flow-indent-check.js
3843
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js
3838
3844
  var require_util_flow_indent_check = __commonJS({
3839
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
3845
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
3840
3846
  "use strict";
3841
3847
  var utilContainsNewline = require_util_contains_newline();
3842
3848
  function flowIndentCheck(indent, fc, onError) {
@@ -3852,9 +3858,9 @@ var require_util_flow_indent_check = __commonJS({
3852
3858
  }
3853
3859
  });
3854
3860
 
3855
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-map-includes.js
3861
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js
3856
3862
  var require_util_map_includes = __commonJS({
3857
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
3863
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
3858
3864
  "use strict";
3859
3865
  var identity = require_identity();
3860
3866
  function mapIncludes(ctx, items, search) {
@@ -3868,9 +3874,9 @@ var require_util_map_includes = __commonJS({
3868
3874
  }
3869
3875
  });
3870
3876
 
3871
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-map.js
3877
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js
3872
3878
  var require_resolve_block_map = __commonJS({
3873
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
3879
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
3874
3880
  "use strict";
3875
3881
  var Pair = require_Pair();
3876
3882
  var YAMLMap = require_YAMLMap();
@@ -3893,6 +3899,7 @@ var require_resolve_block_map = __commonJS({
3893
3899
  next: key ?? sep?.[0],
3894
3900
  offset,
3895
3901
  onError,
3902
+ parentIndent: bm.indent,
3896
3903
  startOnNewline: true
3897
3904
  });
3898
3905
  const implicitKey = !keyProps.found;
@@ -3930,6 +3937,7 @@ var require_resolve_block_map = __commonJS({
3930
3937
  next: value,
3931
3938
  offset: keyNode.range[2],
3932
3939
  onError,
3940
+ parentIndent: bm.indent,
3933
3941
  startOnNewline: !key || key.type === "block-scalar"
3934
3942
  });
3935
3943
  offset = valueProps.end;
@@ -3972,9 +3980,9 @@ var require_resolve_block_map = __commonJS({
3972
3980
  }
3973
3981
  });
3974
3982
 
3975
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-seq.js
3983
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js
3976
3984
  var require_resolve_block_seq = __commonJS({
3977
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
3985
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
3978
3986
  "use strict";
3979
3987
  var YAMLSeq = require_YAMLSeq();
3980
3988
  var resolveProps = require_resolve_props();
@@ -3992,6 +4000,7 @@ var require_resolve_block_seq = __commonJS({
3992
4000
  next: value,
3993
4001
  offset,
3994
4002
  onError,
4003
+ parentIndent: bs.indent,
3995
4004
  startOnNewline: true
3996
4005
  });
3997
4006
  if (!props.found) {
@@ -4020,9 +4029,9 @@ var require_resolve_block_seq = __commonJS({
4020
4029
  }
4021
4030
  });
4022
4031
 
4023
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-end.js
4032
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js
4024
4033
  var require_resolve_end = __commonJS({
4025
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
4034
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
4026
4035
  "use strict";
4027
4036
  function resolveEnd(end, offset, reqSpace, onError) {
4028
4037
  let comment = "";
@@ -4063,9 +4072,9 @@ var require_resolve_end = __commonJS({
4063
4072
  }
4064
4073
  });
4065
4074
 
4066
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-flow-collection.js
4075
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js
4067
4076
  var require_resolve_flow_collection = __commonJS({
4068
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
4077
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
4069
4078
  "use strict";
4070
4079
  var identity = require_identity();
4071
4080
  var Pair = require_Pair();
@@ -4096,6 +4105,7 @@ var require_resolve_flow_collection = __commonJS({
4096
4105
  next: key ?? sep?.[0],
4097
4106
  offset,
4098
4107
  onError,
4108
+ parentIndent: fc.indent,
4099
4109
  startOnNewline: false
4100
4110
  });
4101
4111
  if (!props.found) {
@@ -4129,19 +4139,18 @@ var require_resolve_flow_collection = __commonJS({
4129
4139
  onError(props.start, "MISSING_CHAR", `Missing , between ${fcName} items`);
4130
4140
  if (props.comment) {
4131
4141
  let prevItemComment = "";
4132
- loop:
4133
- for (const st of start) {
4134
- switch (st.type) {
4135
- case "comma":
4136
- case "space":
4137
- break;
4138
- case "comment":
4139
- prevItemComment = st.source.substring(1);
4140
- break loop;
4141
- default:
4142
- break loop;
4143
- }
4142
+ loop: for (const st of start) {
4143
+ switch (st.type) {
4144
+ case "comma":
4145
+ case "space":
4146
+ break;
4147
+ case "comment":
4148
+ prevItemComment = st.source.substring(1);
4149
+ break loop;
4150
+ default:
4151
+ break loop;
4144
4152
  }
4153
+ }
4145
4154
  if (prevItemComment) {
4146
4155
  let prev = coll.items[coll.items.length - 1];
4147
4156
  if (identity.isPair(prev))
@@ -4171,6 +4180,7 @@ var require_resolve_flow_collection = __commonJS({
4171
4180
  next: value,
4172
4181
  offset: keyNode.range[2],
4173
4182
  onError,
4183
+ parentIndent: fc.indent,
4174
4184
  startOnNewline: false
4175
4185
  });
4176
4186
  if (valueProps.found) {
@@ -4250,9 +4260,9 @@ var require_resolve_flow_collection = __commonJS({
4250
4260
  }
4251
4261
  });
4252
4262
 
4253
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-collection.js
4263
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js
4254
4264
  var require_compose_collection = __commonJS({
4255
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
4265
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
4256
4266
  "use strict";
4257
4267
  var identity = require_identity();
4258
4268
  var Scalar = require_Scalar();
@@ -4306,14 +4316,14 @@ var require_compose_collection = __commonJS({
4306
4316
  }
4307
4317
  });
4308
4318
 
4309
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-scalar.js
4319
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js
4310
4320
  var require_resolve_block_scalar = __commonJS({
4311
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
4321
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
4312
4322
  "use strict";
4313
4323
  var Scalar = require_Scalar();
4314
- function resolveBlockScalar(scalar, strict, onError) {
4324
+ function resolveBlockScalar(ctx, scalar, onError) {
4315
4325
  const start = scalar.offset;
4316
- const header = parseBlockScalarHeader(scalar, strict, onError);
4326
+ const header = parseBlockScalarHeader(scalar, ctx.options.strict, onError);
4317
4327
  if (!header)
4318
4328
  return { value: "", type: null, comment: "", range: [start, start, start] };
4319
4329
  const type = header.mode === ">" ? Scalar.Scalar.BLOCK_FOLDED : Scalar.Scalar.BLOCK_LITERAL;
@@ -4349,6 +4359,10 @@ var require_resolve_block_scalar = __commonJS({
4349
4359
  if (header.indent === 0)
4350
4360
  trimIndent = indent.length;
4351
4361
  contentStart = i;
4362
+ if (trimIndent === 0 && !ctx.atRoot) {
4363
+ const message = "Block scalar values in collections must be indented";
4364
+ onError(offset, "BAD_INDENT", message);
4365
+ }
4352
4366
  break;
4353
4367
  }
4354
4368
  offset += indent.length + content.length + 1;
@@ -4483,9 +4497,9 @@ var require_resolve_block_scalar = __commonJS({
4483
4497
  }
4484
4498
  });
4485
4499
 
4486
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4500
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js
4487
4501
  var require_resolve_flow_scalar = __commonJS({
4488
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
4502
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
4489
4503
  "use strict";
4490
4504
  var Scalar = require_Scalar();
4491
4505
  var resolveEnd = require_resolve_end();
@@ -4700,16 +4714,16 @@ var require_resolve_flow_scalar = __commonJS({
4700
4714
  }
4701
4715
  });
4702
4716
 
4703
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-scalar.js
4717
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js
4704
4718
  var require_compose_scalar = __commonJS({
4705
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
4719
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
4706
4720
  "use strict";
4707
4721
  var identity = require_identity();
4708
4722
  var Scalar = require_Scalar();
4709
4723
  var resolveBlockScalar = require_resolve_block_scalar();
4710
4724
  var resolveFlowScalar = require_resolve_flow_scalar();
4711
4725
  function composeScalar(ctx, token, tagToken, onError) {
4712
- const { value, type, comment, range: range2 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(token, ctx.options.strict, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
4726
+ const { value, type, comment, range: range2 } = token.type === "block-scalar" ? resolveBlockScalar.resolveBlockScalar(ctx, token, onError) : resolveFlowScalar.resolveFlowScalar(token, ctx.options.strict, onError);
4713
4727
  const tagName = tagToken ? ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg)) : null;
4714
4728
  const tag = tagToken && tagName ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) : token.type === "scalar" ? findScalarTagByTest(ctx, value, token, onError) : ctx.schema[identity.SCALAR];
4715
4729
  let scalar;
@@ -4773,9 +4787,9 @@ var require_compose_scalar = __commonJS({
4773
4787
  }
4774
4788
  });
4775
4789
 
4776
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4790
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4777
4791
  var require_util_empty_scalar_position = __commonJS({
4778
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
4792
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
4779
4793
  "use strict";
4780
4794
  function emptyScalarPosition(offset, before, pos) {
4781
4795
  if (before) {
@@ -4804,9 +4818,9 @@ var require_util_empty_scalar_position = __commonJS({
4804
4818
  }
4805
4819
  });
4806
4820
 
4807
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-node.js
4821
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js
4808
4822
  var require_compose_node = __commonJS({
4809
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-node.js"(exports) {
4823
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-node.js"(exports) {
4810
4824
  "use strict";
4811
4825
  var Alias = require_Alias();
4812
4826
  var composeCollection = require_compose_collection();
@@ -4899,9 +4913,9 @@ var require_compose_node = __commonJS({
4899
4913
  }
4900
4914
  });
4901
4915
 
4902
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-doc.js
4916
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js
4903
4917
  var require_compose_doc = __commonJS({
4904
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
4918
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
4905
4919
  "use strict";
4906
4920
  var Document = require_Document();
4907
4921
  var composeNode = require_compose_node();
@@ -4921,6 +4935,7 @@ var require_compose_doc = __commonJS({
4921
4935
  next: value ?? end?.[0],
4922
4936
  offset,
4923
4937
  onError,
4938
+ parentIndent: 0,
4924
4939
  startOnNewline: true
4925
4940
  });
4926
4941
  if (props.found) {
@@ -4940,9 +4955,9 @@ var require_compose_doc = __commonJS({
4940
4955
  }
4941
4956
  });
4942
4957
 
4943
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/composer.js
4958
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js
4944
4959
  var require_composer = __commonJS({
4945
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/compose/composer.js"(exports) {
4960
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/compose/composer.js"(exports) {
4946
4961
  "use strict";
4947
4962
  var directives = require_directives();
4948
4963
  var Document = require_Document();
@@ -5145,9 +5160,9 @@ ${end.comment}` : end.comment;
5145
5160
  }
5146
5161
  });
5147
5162
 
5148
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-scalar.js
5163
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js
5149
5164
  var require_cst_scalar = __commonJS({
5150
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
5165
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
5151
5166
  "use strict";
5152
5167
  var resolveBlockScalar = require_resolve_block_scalar();
5153
5168
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -5168,7 +5183,7 @@ var require_cst_scalar = __commonJS({
5168
5183
  case "double-quoted-scalar":
5169
5184
  return resolveFlowScalar.resolveFlowScalar(token, strict, _onError);
5170
5185
  case "block-scalar":
5171
- return resolveBlockScalar.resolveBlockScalar(token, strict, _onError);
5186
+ return resolveBlockScalar.resolveBlockScalar({ options: { strict } }, token, _onError);
5172
5187
  }
5173
5188
  }
5174
5189
  return null;
@@ -5330,9 +5345,9 @@ var require_cst_scalar = __commonJS({
5330
5345
  }
5331
5346
  });
5332
5347
 
5333
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-stringify.js
5348
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js
5334
5349
  var require_cst_stringify = __commonJS({
5335
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
5350
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
5336
5351
  "use strict";
5337
5352
  var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
5338
5353
  function stringifyToken(token) {
@@ -5391,9 +5406,9 @@ var require_cst_stringify = __commonJS({
5391
5406
  }
5392
5407
  });
5393
5408
 
5394
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-visit.js
5409
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js
5395
5410
  var require_cst_visit = __commonJS({
5396
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
5411
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
5397
5412
  "use strict";
5398
5413
  var BREAK = Symbol("break visit");
5399
5414
  var SKIP = Symbol("skip children");
@@ -5453,9 +5468,9 @@ var require_cst_visit = __commonJS({
5453
5468
  }
5454
5469
  });
5455
5470
 
5456
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst.js
5471
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js
5457
5472
  var require_cst = __commonJS({
5458
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/cst.js"(exports) {
5473
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/cst.js"(exports) {
5459
5474
  "use strict";
5460
5475
  var cstScalar = require_cst_scalar();
5461
5476
  var cstStringify = require_cst_stringify();
@@ -5555,9 +5570,9 @@ var require_cst = __commonJS({
5555
5570
  }
5556
5571
  });
5557
5572
 
5558
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/lexer.js
5573
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js
5559
5574
  var require_lexer = __commonJS({
5560
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/lexer.js"(exports) {
5575
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/lexer.js"(exports) {
5561
5576
  "use strict";
5562
5577
  var cst = require_cst();
5563
5578
  function isEmpty(ch) {
@@ -5572,11 +5587,11 @@ var require_lexer = __commonJS({
5572
5587
  return false;
5573
5588
  }
5574
5589
  }
5575
- var hexDigits = "0123456789ABCDEFabcdef".split("");
5576
- var tagChars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split("");
5577
- var invalidFlowScalarChars = ",[]{}".split("");
5578
- var invalidAnchorChars = " ,[]{}\n\r ".split("");
5579
- var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.includes(ch);
5590
+ var hexDigits = new Set("0123456789ABCDEFabcdef");
5591
+ var tagChars = new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()");
5592
+ var flowIndicatorChars = new Set(",[]{}");
5593
+ var invalidAnchorChars = new Set(" ,[]{}\n\r ");
5594
+ var isNotAnchorChar = (ch) => !ch || invalidAnchorChars.has(ch);
5580
5595
  var Lexer = class {
5581
5596
  constructor() {
5582
5597
  this.atEnd = false;
@@ -5599,6 +5614,8 @@ var require_lexer = __commonJS({
5599
5614
  */
5600
5615
  *lex(source, incomplete = false) {
5601
5616
  if (source) {
5617
+ if (typeof source !== "string")
5618
+ throw TypeError("source is not a string");
5602
5619
  this.buffer = this.buffer ? this.buffer + source : source;
5603
5620
  this.lineEndPos = null;
5604
5621
  }
@@ -5696,11 +5713,15 @@ var require_lexer = __commonJS({
5696
5713
  }
5697
5714
  if (line[0] === "%") {
5698
5715
  let dirEnd = line.length;
5699
- const cs = line.indexOf("#");
5700
- if (cs !== -1) {
5716
+ let cs = line.indexOf("#");
5717
+ while (cs !== -1) {
5701
5718
  const ch = line[cs - 1];
5702
- if (ch === " " || ch === " ")
5719
+ if (ch === " " || ch === " ") {
5703
5720
  dirEnd = cs - 1;
5721
+ break;
5722
+ } else {
5723
+ cs = line.indexOf("#", cs + 1);
5724
+ }
5704
5725
  }
5705
5726
  while (true) {
5706
5727
  const ch = line[dirEnd - 1];
@@ -5923,34 +5944,34 @@ var require_lexer = __commonJS({
5923
5944
  let nl = this.pos - 1;
5924
5945
  let indent = 0;
5925
5946
  let ch;
5926
- loop:
5927
- for (let i = this.pos; ch = this.buffer[i]; ++i) {
5928
- switch (ch) {
5929
- case " ":
5930
- indent += 1;
5931
- break;
5932
- case "\n":
5933
- nl = i;
5934
- indent = 0;
5947
+ loop: for (let i2 = this.pos; ch = this.buffer[i2]; ++i2) {
5948
+ switch (ch) {
5949
+ case " ":
5950
+ indent += 1;
5951
+ break;
5952
+ case "\n":
5953
+ nl = i2;
5954
+ indent = 0;
5955
+ break;
5956
+ case "\r": {
5957
+ const next = this.buffer[i2 + 1];
5958
+ if (!next && !this.atEnd)
5959
+ return this.setNext("block-scalar");
5960
+ if (next === "\n")
5935
5961
  break;
5936
- case "\r": {
5937
- const next = this.buffer[i + 1];
5938
- if (!next && !this.atEnd)
5939
- return this.setNext("block-scalar");
5940
- if (next === "\n")
5941
- break;
5942
- }
5943
- default:
5944
- break loop;
5945
5962
  }
5963
+ default:
5964
+ break loop;
5946
5965
  }
5966
+ }
5947
5967
  if (!ch && !this.atEnd)
5948
5968
  return this.setNext("block-scalar");
5949
5969
  if (indent >= this.indentNext) {
5950
5970
  if (this.blockScalarIndent === -1)
5951
5971
  this.indentNext = indent;
5952
- else
5953
- this.indentNext += this.blockScalarIndent;
5972
+ else {
5973
+ this.indentNext = this.blockScalarIndent + (this.indentNext === 0 ? 1 : this.indentNext);
5974
+ }
5954
5975
  do {
5955
5976
  const cs = this.continueScalar(nl + 1);
5956
5977
  if (cs === -1)
@@ -5963,17 +5984,25 @@ var require_lexer = __commonJS({
5963
5984
  nl = this.buffer.length;
5964
5985
  }
5965
5986
  }
5966
- if (!this.blockScalarKeep) {
5987
+ let i = nl + 1;
5988
+ ch = this.buffer[i];
5989
+ while (ch === " ")
5990
+ ch = this.buffer[++i];
5991
+ if (ch === " ") {
5992
+ while (ch === " " || ch === " " || ch === "\r" || ch === "\n")
5993
+ ch = this.buffer[++i];
5994
+ nl = i - 1;
5995
+ } else if (!this.blockScalarKeep) {
5967
5996
  do {
5968
- let i = nl - 1;
5969
- let ch2 = this.buffer[i];
5997
+ let i2 = nl - 1;
5998
+ let ch2 = this.buffer[i2];
5970
5999
  if (ch2 === "\r")
5971
- ch2 = this.buffer[--i];
5972
- const lastChar = i;
5973
- while (ch2 === " " || ch2 === " ")
5974
- ch2 = this.buffer[--i];
5975
- if (ch2 === "\n" && i >= this.pos && i + 1 + indent > lastChar)
5976
- nl = i;
6000
+ ch2 = this.buffer[--i2];
6001
+ const lastChar = i2;
6002
+ while (ch2 === " ")
6003
+ ch2 = this.buffer[--i2];
6004
+ if (ch2 === "\n" && i2 >= this.pos && i2 + 1 + indent > lastChar)
6005
+ nl = i2;
5977
6006
  else
5978
6007
  break;
5979
6008
  } while (true);
@@ -5990,7 +6019,7 @@ var require_lexer = __commonJS({
5990
6019
  while (ch = this.buffer[++i]) {
5991
6020
  if (ch === ":") {
5992
6021
  const next = this.buffer[i + 1];
5993
- if (isEmpty(next) || inFlow && next === ",")
6022
+ if (isEmpty(next) || inFlow && flowIndicatorChars.has(next))
5994
6023
  break;
5995
6024
  end = i;
5996
6025
  } else if (isEmpty(ch)) {
@@ -6003,7 +6032,7 @@ var require_lexer = __commonJS({
6003
6032
  } else
6004
6033
  end = i;
6005
6034
  }
6006
- if (next === "#" || inFlow && invalidFlowScalarChars.includes(next))
6035
+ if (next === "#" || inFlow && flowIndicatorChars.has(next))
6007
6036
  break;
6008
6037
  if (ch === "\n") {
6009
6038
  const cs = this.continueScalar(i + 1);
@@ -6012,7 +6041,7 @@ var require_lexer = __commonJS({
6012
6041
  i = Math.max(i, cs - 2);
6013
6042
  }
6014
6043
  } else {
6015
- if (inFlow && invalidFlowScalarChars.includes(ch))
6044
+ if (inFlow && flowIndicatorChars.has(ch))
6016
6045
  break;
6017
6046
  end = i;
6018
6047
  }
@@ -6052,7 +6081,7 @@ var require_lexer = __commonJS({
6052
6081
  case ":": {
6053
6082
  const inFlow = this.flowLevel > 0;
6054
6083
  const ch1 = this.charAt(1);
6055
- if (isEmpty(ch1) || inFlow && invalidFlowScalarChars.includes(ch1)) {
6084
+ if (isEmpty(ch1) || inFlow && flowIndicatorChars.has(ch1)) {
6056
6085
  if (!inFlow)
6057
6086
  this.indentNext = this.indentValue + 1;
6058
6087
  else if (this.flowKey)
@@ -6074,9 +6103,9 @@ var require_lexer = __commonJS({
6074
6103
  let i = this.pos + 1;
6075
6104
  let ch = this.buffer[i];
6076
6105
  while (ch) {
6077
- if (tagChars.includes(ch))
6106
+ if (tagChars.has(ch))
6078
6107
  ch = this.buffer[++i];
6079
- else if (ch === "%" && hexDigits.includes(this.buffer[i + 1]) && hexDigits.includes(this.buffer[i + 2])) {
6108
+ else if (ch === "%" && hexDigits.has(this.buffer[i + 1]) && hexDigits.has(this.buffer[i + 2])) {
6080
6109
  ch = this.buffer[i += 3];
6081
6110
  } else
6082
6111
  break;
@@ -6118,9 +6147,9 @@ var require_lexer = __commonJS({
6118
6147
  }
6119
6148
  });
6120
6149
 
6121
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/line-counter.js
6150
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js
6122
6151
  var require_line_counter = __commonJS({
6123
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/line-counter.js"(exports) {
6152
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/line-counter.js"(exports) {
6124
6153
  "use strict";
6125
6154
  var LineCounter = class {
6126
6155
  constructor() {
@@ -6149,9 +6178,9 @@ var require_line_counter = __commonJS({
6149
6178
  }
6150
6179
  });
6151
6180
 
6152
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/parser.js
6181
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js
6153
6182
  var require_parser = __commonJS({
6154
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/parse/parser.js"(exports) {
6183
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/parse/parser.js"(exports) {
6155
6184
  "use strict";
6156
6185
  var cst = require_cst();
6157
6186
  var lexer = require_lexer();
@@ -6204,17 +6233,16 @@ var require_parser = __commonJS({
6204
6233
  if (prev.length === 0)
6205
6234
  return [];
6206
6235
  let i = prev.length;
6207
- loop:
6208
- while (--i >= 0) {
6209
- switch (prev[i].type) {
6210
- case "doc-start":
6211
- case "explicit-key-ind":
6212
- case "map-value-ind":
6213
- case "seq-item-ind":
6214
- case "newline":
6215
- break loop;
6216
- }
6236
+ loop: while (--i >= 0) {
6237
+ switch (prev[i].type) {
6238
+ case "doc-start":
6239
+ case "explicit-key-ind":
6240
+ case "map-value-ind":
6241
+ case "seq-item-ind":
6242
+ case "newline":
6243
+ break loop;
6217
6244
  }
6245
+ }
6218
6246
  while (prev[++i]?.type === "space") {
6219
6247
  }
6220
6248
  return prev.splice(i, prev.length);
@@ -6407,7 +6435,7 @@ var require_parser = __commonJS({
6407
6435
  it.value = token;
6408
6436
  } else {
6409
6437
  Object.assign(it, { key: token, sep: [] });
6410
- this.onKeyLine = !includesToken(it.start, "explicit-key-ind");
6438
+ this.onKeyLine = !it.explicitKey;
6411
6439
  return;
6412
6440
  }
6413
6441
  break;
@@ -6596,7 +6624,8 @@ var require_parser = __commonJS({
6596
6624
  return;
6597
6625
  }
6598
6626
  if (this.indent >= map.indent) {
6599
- const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep && this.type !== "seq-item-ind";
6627
+ const atMapIndent = !this.onKeyLine && this.indent === map.indent;
6628
+ const atNextItem = atMapIndent && (it.sep || it.explicitKey) && this.type !== "seq-item-ind";
6600
6629
  let start = [];
6601
6630
  if (atNextItem && it.sep && !it.value) {
6602
6631
  const nl = [];
@@ -6633,23 +6662,24 @@ var require_parser = __commonJS({
6633
6662
  }
6634
6663
  return;
6635
6664
  case "explicit-key-ind":
6636
- if (!it.sep && !includesToken(it.start, "explicit-key-ind")) {
6665
+ if (!it.sep && !it.explicitKey) {
6637
6666
  it.start.push(this.sourceToken);
6667
+ it.explicitKey = true;
6638
6668
  } else if (atNextItem || it.value) {
6639
6669
  start.push(this.sourceToken);
6640
- map.items.push({ start });
6670
+ map.items.push({ start, explicitKey: true });
6641
6671
  } else {
6642
6672
  this.stack.push({
6643
6673
  type: "block-map",
6644
6674
  offset: this.offset,
6645
6675
  indent: this.indent,
6646
- items: [{ start: [this.sourceToken] }]
6676
+ items: [{ start: [this.sourceToken], explicitKey: true }]
6647
6677
  });
6648
6678
  }
6649
6679
  this.onKeyLine = true;
6650
6680
  return;
6651
6681
  case "map-value-ind":
6652
- if (includesToken(it.start, "explicit-key-ind")) {
6682
+ if (it.explicitKey) {
6653
6683
  if (!it.sep) {
6654
6684
  if (includesToken(it.start, "newline")) {
6655
6685
  Object.assign(it, { key: null, sep: [this.sourceToken] });
@@ -6710,14 +6740,14 @@ var require_parser = __commonJS({
6710
6740
  case "scalar":
6711
6741
  case "single-quoted-scalar":
6712
6742
  case "double-quoted-scalar": {
6713
- const fs9 = this.flowScalar(this.type);
6743
+ const fs10 = this.flowScalar(this.type);
6714
6744
  if (atNextItem || it.value) {
6715
- map.items.push({ start, key: fs9, sep: [] });
6745
+ map.items.push({ start, key: fs10, sep: [] });
6716
6746
  this.onKeyLine = true;
6717
6747
  } else if (it.sep) {
6718
- this.stack.push(fs9);
6748
+ this.stack.push(fs10);
6719
6749
  } else {
6720
- Object.assign(it, { key: fs9, sep: [] });
6750
+ Object.assign(it, { key: fs10, sep: [] });
6721
6751
  this.onKeyLine = true;
6722
6752
  }
6723
6753
  return;
@@ -6725,7 +6755,7 @@ var require_parser = __commonJS({
6725
6755
  default: {
6726
6756
  const bv = this.startBlockValue(map);
6727
6757
  if (bv) {
6728
- if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind")) {
6758
+ if (atMapIndent && bv.type !== "block-seq") {
6729
6759
  map.items.push({ start });
6730
6760
  }
6731
6761
  this.stack.push(bv);
@@ -6835,13 +6865,13 @@ var require_parser = __commonJS({
6835
6865
  case "scalar":
6836
6866
  case "single-quoted-scalar":
6837
6867
  case "double-quoted-scalar": {
6838
- const fs9 = this.flowScalar(this.type);
6868
+ const fs10 = this.flowScalar(this.type);
6839
6869
  if (!it || it.value)
6840
- fc.items.push({ start: [], key: fs9, sep: [] });
6870
+ fc.items.push({ start: [], key: fs10, sep: [] });
6841
6871
  else if (it.sep)
6842
- this.stack.push(fs9);
6872
+ this.stack.push(fs10);
6843
6873
  else
6844
- Object.assign(it, { key: fs9, sep: [] });
6874
+ Object.assign(it, { key: fs10, sep: [] });
6845
6875
  return;
6846
6876
  }
6847
6877
  case "flow-map-end":
@@ -6936,7 +6966,7 @@ var require_parser = __commonJS({
6936
6966
  type: "block-map",
6937
6967
  offset: this.offset,
6938
6968
  indent: this.indent,
6939
- items: [{ start }]
6969
+ items: [{ start, explicitKey: true }]
6940
6970
  };
6941
6971
  }
6942
6972
  case "map-value-ind": {
@@ -6999,9 +7029,9 @@ var require_parser = __commonJS({
6999
7029
  }
7000
7030
  });
7001
7031
 
7002
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/public-api.js
7032
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js
7003
7033
  var require_public_api = __commonJS({
7004
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/public-api.js"(exports) {
7034
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/public-api.js"(exports) {
7005
7035
  "use strict";
7006
7036
  var composer = require_composer();
7007
7037
  var Document = require_Document();
@@ -7093,9 +7123,9 @@ var require_public_api = __commonJS({
7093
7123
  }
7094
7124
  });
7095
7125
 
7096
- // ../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/index.js
7126
+ // ../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js
7097
7127
  var require_dist = __commonJS({
7098
- "../../node_modules/.pnpm/yaml@2.4.2/node_modules/yaml/dist/index.js"(exports) {
7128
+ "../../node_modules/.pnpm/yaml@2.4.5/node_modules/yaml/dist/index.js"(exports) {
7099
7129
  "use strict";
7100
7130
  var composer = require_composer();
7101
7131
  var Document = require_Document();
@@ -7146,10 +7176,10 @@ var require_dist = __commonJS({
7146
7176
  });
7147
7177
 
7148
7178
  // package.json
7149
- var version = "0.49.11";
7179
+ var version = "0.49.13";
7150
7180
 
7151
7181
  // node/commands/shared.ts
7152
- import { existsSync as existsSync6, promises as fs8 } from "node:fs";
7182
+ import { existsSync as existsSync7, promises as fs9 } from "node:fs";
7153
7183
  import { join as join10 } from "node:path";
7154
7184
  import { loadConfigFromFile, mergeConfig as mergeConfig2 } from "vite";
7155
7185
  import MarkdownIt from "markdown-it";
@@ -7225,9 +7255,9 @@ function updateFrontmatterPatch(slide, frontmatter) {
7225
7255
 
7226
7256
  // node/vite/index.ts
7227
7257
  import { join as join9 } from "node:path";
7228
- import { existsSync as existsSync5 } from "node:fs";
7258
+ import { existsSync as existsSync6 } from "node:fs";
7229
7259
  import process2 from "node:process";
7230
- import { fileURLToPath as fileURLToPath2 } from "node:url";
7260
+ import { fileURLToPath as fileURLToPath4 } from "node:url";
7231
7261
  import Icons from "unplugin-icons/vite";
7232
7262
  import IconsResolver from "unplugin-icons/resolver";
7233
7263
  import Components from "unplugin-vue-components/vite";
@@ -7300,16 +7330,7 @@ var INCLUDE_GLOBAL = [
7300
7330
  "typescript",
7301
7331
  "yaml"
7302
7332
  ];
7303
- var INCLUDE_LOCAL = [
7304
- ...INCLUDE_GLOBAL,
7305
- "codemirror",
7306
- "codemirror/mode/javascript/javascript",
7307
- "codemirror/mode/css/css",
7308
- "codemirror/mode/markdown/markdown",
7309
- "codemirror/mode/xml/xml",
7310
- "codemirror/mode/htmlmixed/htmlmixed",
7311
- "codemirror/addon/display/placeholder"
7312
- ].map((i) => `@slidev/cli > @slidev/client > ${i}`);
7333
+ var INCLUDE_LOCAL = INCLUDE_GLOBAL.map((i) => `@slidev/cli > @slidev/client > ${i}`);
7313
7334
  var EXCLUDE_GLOBAL = [
7314
7335
  "@antfu/utils",
7315
7336
  "@shikijs/monaco",
@@ -7390,13 +7411,13 @@ function createConfigPlugin(options) {
7390
7411
  exclude: EXCLUDE_LOCAL,
7391
7412
  include: INCLUDE_LOCAL
7392
7413
  },
7393
- css: options.data.config.css === "unocss" ? {
7414
+ css: {
7394
7415
  postcss: {
7395
7416
  plugins: [
7396
7417
  await import("postcss-nested").then((r) => (r.default || r)())
7397
7418
  ]
7398
7419
  }
7399
- } : {},
7420
+ },
7400
7421
  server: {
7401
7422
  fs: {
7402
7423
  strict: true,
@@ -7700,7 +7721,30 @@ var setupModules = ["shiki", "code-runners", "monaco", "mermaid", "main", "root"
7700
7721
  var templateSetups = setupModules.map(createSetupTemplate);
7701
7722
 
7702
7723
  // node/setups/shiki.ts
7703
- import fs2 from "node:fs/promises";
7724
+ import fs3 from "node:fs/promises";
7725
+
7726
+ // node/setups/load.ts
7727
+ import { resolve as resolve4 } from "node:path";
7728
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
7729
+ import fs2 from "fs-extra";
7730
+ import { deepMergeWithArray } from "@antfu/utils";
7731
+ import jiti from "jiti";
7732
+ async function loadSetups(clientRoot, roots, name, arg, initial, merge = true) {
7733
+ let returns = initial;
7734
+ for (const root of [clientRoot, ...roots].reverse()) {
7735
+ const path4 = resolve4(root, "setup", name);
7736
+ if (fs2.existsSync(path4)) {
7737
+ const { default: setup } = jiti(fileURLToPath2(import.meta.url))(path4);
7738
+ const result = await setup(arg);
7739
+ if (result !== null) {
7740
+ returns = typeof merge === "function" ? merge(returns, result) : merge ? deepMergeWithArray(returns, result) : result;
7741
+ }
7742
+ }
7743
+ }
7744
+ return returns;
7745
+ }
7746
+
7747
+ // node/setups/shiki.ts
7704
7748
  async function loadShikiSetups(clientRoot, roots) {
7705
7749
  const result = await loadSetups(
7706
7750
  clientRoot,
@@ -7710,7 +7754,7 @@ async function loadShikiSetups(clientRoot, roots) {
7710
7754
  /** @deprecated */
7711
7755
  async loadTheme(path4) {
7712
7756
  console.warn("[slidev] `loadTheme` in `setup/shiki.ts` is deprecated. Pass directly the theme name it's supported by Shiki. For custom themes, load it manually via `JSON.parse(fs.readFileSync(path, 'utf-8'))` and pass the raw JSON object instead.");
7713
- return JSON.parse(await fs2.readFile(path4, "utf-8"));
7757
+ return JSON.parse(await fs3.readFile(path4, "utf-8"));
7714
7758
  }
7715
7759
  },
7716
7760
  {},
@@ -7738,7 +7782,7 @@ var templateShiki = {
7738
7782
  id: "/@slidev/shiki",
7739
7783
  getContent: async ({ clientRoot, roots }) => {
7740
7784
  const options = await loadShikiSetups(clientRoot, roots);
7741
- const langs = await resolveLangs(options.langs || ["javascript", "typescript", "html", "css"]);
7785
+ const langs = await resolveLangs(options.langs || ["markdown", "vue", "javascript", "typescript", "html", "css"]);
7742
7786
  const resolvedThemeOptions = "themes" in options ? {
7743
7787
  themes: Object.fromEntries(await Promise.all(
7744
7788
  Object.entries(options.themes).map(async ([name, value]) => [name, await resolveTheme2(value)])
@@ -7766,15 +7810,28 @@ var templateShiki = {
7766
7810
  const langNames = langs.flatMap((lang) => typeof lang === "string" ? lang : lang.name);
7767
7811
  const lines = [];
7768
7812
  lines.push(
7769
- `import { getHighlighterCore } from "${await resolveImportUrl("shiki/core")}"`,
7813
+ `import { createHighlighterCore } from "${await resolveImportUrl("shiki/core")}"`,
7770
7814
  `export { shikiToMonaco } from "${await resolveImportUrl("@shikijs/monaco")}"`,
7771
7815
  `export const languages = ${JSON.stringify(langNames)}`,
7772
7816
  `export const themes = ${JSON.stringify(themeOptionsNames.themes || themeOptionsNames.theme)}`,
7773
- "export const shiki = getHighlighterCore({",
7817
+ "export const shiki = createHighlighterCore({",
7774
7818
  ` themes: [${themesInit.join(",")}],`,
7775
7819
  ` langs: [${langsInit.join(",")}],`,
7776
7820
  ` loadWasm: import('${await resolveImportUrl("shiki/wasm")}'),`,
7777
- "})"
7821
+ "})",
7822
+ "let highlight",
7823
+ "export async function getHighlighter() {",
7824
+ " if (highlight) return highlight",
7825
+ " const highlighter = await shiki",
7826
+ " highlight = (code, lang, options) => highlighter.codeToHtml(code, {",
7827
+ " lang,",
7828
+ ` theme: ${JSON.stringify(themeOptionsNames.theme)},`,
7829
+ ` themes: ${JSON.stringify(themeOptionsNames.themes)},`,
7830
+ " defaultColor: false,",
7831
+ " ...options,",
7832
+ " })",
7833
+ " return highlight",
7834
+ "}"
7778
7835
  );
7779
7836
  return lines.join("\n");
7780
7837
  }
@@ -7858,18 +7915,17 @@ var templateStyle = {
7858
7915
  if (data.config.highlighter === "shiki") {
7859
7916
  imports.push(
7860
7917
  `import "${await resolveImportUrl("@shikijs/vitepress-twoslash/style.css")}"`,
7861
- `import "${resolveUrlOfClient("styles/shiki-twoslash.css")}"`
7862
- );
7863
- }
7864
- if (data.config.css === "unocss") {
7865
- imports.unshift(
7866
- `import "${await resolveImportUrl("@unocss/reset/tailwind.css")}"`,
7867
- 'import "uno:preflights.css"',
7868
- 'import "uno:typography.css"',
7869
- 'import "uno:shortcuts.css"'
7918
+ `import "${resolveUrlOfClient("styles/shiki-twoslash.css")}"`,
7919
+ `import "${await resolveImportUrl("shiki-magic-move/style.css")}"`
7870
7920
  );
7871
- imports.push('import "uno.css"');
7872
7921
  }
7922
+ imports.unshift(
7923
+ `import "${await resolveImportUrl("@unocss/reset/tailwind.css")}"`,
7924
+ 'import "uno:preflights.css"',
7925
+ 'import "uno:typography.css"',
7926
+ 'import "uno:shortcuts.css"'
7927
+ );
7928
+ imports.push('import "uno.css"');
7873
7929
  return imports.join("\n");
7874
7930
  }
7875
7931
  };
@@ -7931,7 +7987,7 @@ import * as parser from "@slidev/parser/fs";
7931
7987
 
7932
7988
  // node/integrations/themes.ts
7933
7989
  import { join as join8 } from "node:path";
7934
- import fs3 from "fs-extra";
7990
+ import fs4 from "fs-extra";
7935
7991
  import { satisfies } from "semver";
7936
7992
  var officialThemes = {
7937
7993
  "none": "",
@@ -7944,17 +8000,17 @@ var officialThemes = {
7944
8000
  var resolveTheme = createResolver("theme", officialThemes);
7945
8001
  async function getThemeMeta(name, root) {
7946
8002
  const path4 = join8(root, "package.json");
7947
- if (!fs3.existsSync(path4))
8003
+ if (!fs4.existsSync(path4))
7948
8004
  return {};
7949
- const { slidev = {}, engines = {} } = await fs3.readJSON(path4);
8005
+ const { slidev = {}, engines = {} } = await fs4.readJSON(path4);
7950
8006
  if (engines.slidev && !satisfies(version, engines.slidev, { includePrerelease: true }))
7951
8007
  throw new Error(`[slidev] theme "${name}" requires Slidev version range "${engines.slidev}" but found "${version}"`);
7952
8008
  return slidev;
7953
8009
  }
7954
8010
 
7955
8011
  // node/integrations/addons.ts
7956
- import { resolve as resolve4 } from "node:path";
7957
- import fs4 from "fs-extra";
8012
+ import { resolve as resolve5 } from "node:path";
8013
+ import fs5 from "fs-extra";
7958
8014
  import { satisfies as satisfies2 } from "semver";
7959
8015
  async function resolveAddons(addonsInConfig) {
7960
8016
  const { userRoot, userPkgJson } = await getRoots();
@@ -7965,7 +8021,7 @@ async function resolveAddons(addonsInConfig) {
7965
8021
  if (!pkgRoot)
7966
8022
  return;
7967
8023
  resolved.push(pkgRoot);
7968
- const { slidev = {}, engines = {} } = await fs4.readJSON(resolve4(pkgRoot, "package.json"));
8024
+ const { slidev = {}, engines = {} } = await fs5.readJSON(resolve5(pkgRoot, "package.json"));
7969
8025
  if (engines.slidev && !satisfies2(version, engines.slidev, { includePrerelease: true }))
7970
8026
  throw new Error(`[slidev] addon "${name}" requires Slidev version range "${engines.slidev}" but found "${version}"`);
7971
8027
  if (Array.isArray(slidev.addons))
@@ -8042,13 +8098,13 @@ var templateImportContextUtils = `import {
8042
8098
  } from "@slidev/client/context.ts"`.replace(/\n\s*/g, " ");
8043
8099
  var templateInitContext = `const { $slidev, $nav, $clicksContext, $clicks, $page, $renderContext, $frontmatter } = useSlideContext()`;
8044
8100
  function getBodyJson(req) {
8045
- return new Promise((resolve6, reject) => {
8101
+ return new Promise((resolve8, reject) => {
8046
8102
  let body = "";
8047
8103
  req.on("data", (chunk) => body += chunk);
8048
8104
  req.on("error", reject);
8049
8105
  req.on("end", () => {
8050
8106
  try {
8051
- resolve6(JSON.parse(body) || {});
8107
+ resolve8(JSON.parse(body) || {});
8052
8108
  } catch (e) {
8053
8109
  reject(e);
8054
8110
  }
@@ -8280,7 +8336,7 @@ function createSlidesLoader(options, pluginOptions, serverOptions) {
8280
8336
  slide: {
8281
8337
  ...(${JSON.stringify(slideBase)}),
8282
8338
  frontmatter,
8283
- filepath: ${JSON.stringify(slide.source.filepath)},
8339
+ filepath: ${JSON.stringify(mode === "dev" ? slide.source.filepath : "")},
8284
8340
  start: ${JSON.stringify(slide.source.start)},
8285
8341
  id: ${pageNo},
8286
8342
  no: ${no},
@@ -8446,6 +8502,45 @@ ${code}`;
8446
8502
  }
8447
8503
  }
8448
8504
 
8505
+ // node/vite/unocss.ts
8506
+ import { resolve as resolve6 } from "node:path";
8507
+ import { existsSync as existsSync5 } from "node:fs";
8508
+ import { fileURLToPath as fileURLToPath3 } from "node:url";
8509
+ import { uniq as uniq5 } from "@antfu/utils";
8510
+ import { mergeConfigs } from "unocss";
8511
+ import jiti2 from "jiti";
8512
+ import UnoCSS from "unocss/vite";
8513
+ async function createUnocssPlugin({ themeRoots, addonRoots, clientRoot, roots, data, userRoot }, { unocss: unoOptions = {} }) {
8514
+ const configFiles = uniq5([
8515
+ resolve6(userRoot, "uno.config.ts"),
8516
+ resolve6(userRoot, "unocss.config.ts"),
8517
+ ...themeRoots.map((i) => `${i}/uno.config.ts`),
8518
+ ...themeRoots.map((i) => `${i}/unocss.config.ts`),
8519
+ ...addonRoots.map((i) => `${i}/uno.config.ts`),
8520
+ ...addonRoots.map((i) => `${i}/unocss.config.ts`),
8521
+ resolve6(clientRoot, "uno.config.ts"),
8522
+ resolve6(clientRoot, "unocss.config.ts")
8523
+ ]).filter((i) => existsSync5(i));
8524
+ const configs = configFiles.map((i) => {
8525
+ const loaded = jiti2(fileURLToPath3(import.meta.url))(i);
8526
+ const config2 = "default" in loaded ? loaded.default : loaded;
8527
+ return config2;
8528
+ }).filter(Boolean);
8529
+ configs.reverse();
8530
+ let config = mergeConfigs([...configs, unoOptions]);
8531
+ config = await loadSetups(clientRoot, roots, "unocss.ts", {}, config, (a, b) => mergeConfigs([a, b]));
8532
+ config.theme ||= {};
8533
+ config.theme.fontFamily ||= {};
8534
+ config.theme.fontFamily.sans ||= data.config.fonts.sans.join(",");
8535
+ config.theme.fontFamily.mono ||= data.config.fonts.mono.join(",");
8536
+ config.theme.fontFamily.serif ||= data.config.fonts.serif.join(",");
8537
+ return UnoCSS({
8538
+ configFile: false,
8539
+ configDeps: configFiles,
8540
+ ...config
8541
+ });
8542
+ }
8543
+
8449
8544
  // node/vite/markdown.ts
8450
8545
  import Markdown from "unplugin-vue-markdown/vite";
8451
8546
  import { isTruthy, slash as slash3 } from "@antfu/utils";
@@ -8613,8 +8708,7 @@ function math_inline(state, silent) {
8613
8708
  match = start;
8614
8709
  while ((match = state.src.indexOf("$", match)) !== -1) {
8615
8710
  pos = match - 1;
8616
- while (state.src[pos] === "\\")
8617
- pos -= 1;
8711
+ while (state.src[pos] === "\\") pos -= 1;
8618
8712
  if ((match - pos) % 2 === 1)
8619
8713
  break;
8620
8714
  match += 1;
@@ -8985,11 +9079,11 @@ function transformPlantUml(ctx) {
8985
9079
  // node/syntax/transform/snippet.ts
8986
9080
  import path3 from "node:path";
8987
9081
  import lz3 from "lz-string";
8988
- import fs6 from "fs-extra";
9082
+ import fs7 from "fs-extra";
8989
9083
  import { slash as slash2 } from "@antfu/utils";
8990
9084
 
8991
9085
  // node/vite/monacoWrite.ts
8992
- import fs5 from "node:fs/promises";
9086
+ import fs6 from "node:fs/promises";
8993
9087
  import path2 from "node:path";
8994
9088
  var monacoWriterWhitelist = /* @__PURE__ */ new Set();
8995
9089
  function createMonacoWriter({ userRoot }) {
@@ -9013,7 +9107,7 @@ function createMonacoWriter({ userRoot }) {
9013
9107
  }
9014
9108
  const filepath = path2.join(userRoot, file);
9015
9109
  console.log("[Slidev] Writing file:", filepath);
9016
- await fs5.writeFile(filepath, content, "utf-8");
9110
+ await fs6.writeFile(filepath, content, "utf-8");
9017
9111
  }
9018
9112
  });
9019
9113
  });
@@ -9089,11 +9183,11 @@ function transformSnippet(ctx) {
9089
9183
  /^@\//.test(filepath) ? path3.resolve(options.userRoot, filepath.slice(2)) : path3.resolve(dir, filepath)
9090
9184
  );
9091
9185
  data.watchFiles.push(src);
9092
- const isAFile = fs6.statSync(src).isFile();
9093
- if (!fs6.existsSync(src) || !isAFile) {
9186
+ const isAFile = fs7.statSync(src).isFile();
9187
+ if (!fs7.existsSync(src) || !isAFile) {
9094
9188
  throw new Error(isAFile ? `Code snippet path not found: ${src}` : `Invalid code snippet option`);
9095
9189
  }
9096
- let content = fs6.readFileSync(src, "utf8");
9190
+ let content = fs7.readFileSync(src, "utf8");
9097
9191
  slideInfo.snippetsUsed ??= {};
9098
9192
  slideInfo.snippetsUsed[src] = content;
9099
9193
  if (regionName) {
@@ -9289,16 +9383,16 @@ async function createMarkdownPlugin(options, { markdown: mdOptions }) {
9289
9383
  async function createMarkdownItShiki(clientRoot, roots, config, mode) {
9290
9384
  const [
9291
9385
  shikiOptions,
9292
- { getHighlighter, bundledLanguages },
9386
+ { createHighlighter, bundledLanguages },
9293
9387
  markdownItShiki,
9294
9388
  transformerTwoslash
9295
9389
  ] = await Promise.all([
9296
9390
  loadShikiSetups(clientRoot, roots),
9297
- import("shiki").then(({ getHighlighter: getHighlighter2, bundledLanguages: bundledLanguages2 }) => ({ bundledLanguages: bundledLanguages2, getHighlighter: getHighlighter2 })),
9391
+ import("shiki").then(({ createHighlighter: createHighlighter2, bundledLanguages: bundledLanguages2 }) => ({ bundledLanguages: bundledLanguages2, createHighlighter: createHighlighter2 })),
9298
9392
  import("@shikijs/markdown-it/core").then(({ fromHighlighter }) => fromHighlighter),
9299
9393
  import("@shikijs/vitepress-twoslash").then(({ transformerTwoslash: transformerTwoslash2 }) => transformerTwoslash2)
9300
9394
  ]);
9301
- const shiki = await getHighlighter({
9395
+ const shiki = await createHighlighter({
9302
9396
  ...shikiOptions,
9303
9397
  langs: shikiOptions.langs ?? Object.keys(bundledLanguages),
9304
9398
  themes: "themes" in shikiOptions ? Object.values(shikiOptions.themes) : [shikiOptions.theme]
@@ -9386,8 +9480,8 @@ function createVueCompilerFlagsPlugin(options) {
9386
9480
  }
9387
9481
 
9388
9482
  // node/vite/monacoTypes.ts
9389
- import fs7 from "node:fs/promises";
9390
- import { dirname as dirname2, resolve as resolve5 } from "node:path";
9483
+ import fs8 from "node:fs/promises";
9484
+ import { dirname as dirname2, resolve as resolve7 } from "node:path";
9391
9485
  import { slash as slash4 } from "@antfu/utils";
9392
9486
  import fg4 from "fast-glob";
9393
9487
  import { findDepPkgJsonPath } from "vitefu";
@@ -9411,7 +9505,7 @@ function createMonacoTypesLoader({ userRoot, utils }) {
9411
9505
  if (!pkgJsonPath)
9412
9506
  throw new Error(`Package "${pkg}" not found in "${importer}"`);
9413
9507
  const root = slash4(dirname2(pkgJsonPath));
9414
- const pkgJson = JSON.parse(await fs7.readFile(pkgJsonPath, "utf-8"));
9508
+ const pkgJson = JSON.parse(await fs8.readFile(pkgJsonPath, "utf-8"));
9415
9509
  let deps = Object.keys(pkgJson.dependencies ?? {});
9416
9510
  deps = deps.filter((pkg2) => !utils.isMonacoTypesIgnored(pkg2));
9417
9511
  return [
@@ -9440,7 +9534,7 @@ function createMonacoTypesLoader({ userRoot, utils }) {
9440
9534
  return "/** No files found **/";
9441
9535
  return [
9442
9536
  'import { addFile } from "@slidev/client/setup/monaco.ts"',
9443
- ...files.map((file) => `addFile(() => import(${JSON.stringify(`${toAtFS(resolve5(root, file))}?monaco-types&raw`)}), ${JSON.stringify(`node_modules/${name}/${file}`)})`)
9537
+ ...files.map((file) => `addFile(() => import(${JSON.stringify(`${toAtFS(resolve7(root, file))}?monaco-types&raw`)}), ${JSON.stringify(`node_modules/${name}/${file}`)})`)
9444
9538
  ].join("\n");
9445
9539
  }
9446
9540
  }
@@ -9521,7 +9615,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
9521
9615
  data: { config }
9522
9616
  } = options;
9523
9617
  const drawingData = await loadDrawings(options);
9524
- const publicRoots = [...themeRoots, ...addonRoots].map((i) => join9(i, "public")).filter(existsSync5);
9618
+ const publicRoots = [...themeRoots, ...addonRoots].map((i) => join9(i, "public")).filter(existsSync6);
9525
9619
  const plugins = [
9526
9620
  createMarkdownPlugin(options, pluginOptions),
9527
9621
  createVuePlugin(options, pluginOptions),
@@ -9549,7 +9643,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
9549
9643
  }),
9550
9644
  Icons({
9551
9645
  defaultClass: "slidev-icon",
9552
- collectionsNodeResolvePath: fileURLToPath2(import.meta.url),
9646
+ collectionsNodeResolvePath: fileURLToPath4(import.meta.url),
9553
9647
  ...iconsOptions
9554
9648
  }),
9555
9649
  config.remoteAssets === true || config.remoteAssets === mode ? import("vite-plugin-remote-assets").then((r) => r.VitePluginRemoteAssets({
@@ -9587,6 +9681,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
9587
9681
  createConfigPlugin(options),
9588
9682
  createMonacoTypesLoader(options),
9589
9683
  createVueCompilerFlagsPlugin(options),
9684
+ createUnocssPlugin(options, pluginOptions),
9590
9685
  publicRoots.length ? import("vite-plugin-static-copy").then((r) => r.viteStaticCopy({
9591
9686
  silent: true,
9592
9687
  targets: publicRoots.map((r2) => ({
@@ -9597,8 +9692,7 @@ async function ViteSlidevPlugin(options, pluginOptions, serverOptions = {}) {
9597
9692
  options.inspect ? import("vite-plugin-inspect").then((r) => (r.default || r)({
9598
9693
  dev: true,
9599
9694
  build: true
9600
- })) : null,
9601
- config.css === "none" ? null : import("./unocss-JEKY4MJK.mjs").then((r) => r.createUnocssPlugin(options, pluginOptions))
9695
+ })) : null
9602
9696
  ];
9603
9697
  return (await Promise.all(plugins)).flat().filter(notNullish2);
9604
9698
  }
@@ -9617,14 +9711,14 @@ function escapeHtml(unsafe) {
9617
9711
  String(unsafe).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;")
9618
9712
  );
9619
9713
  }
9620
- async function getIndexHtml({ entry, clientRoot, roots, data }) {
9621
- let main = await fs8.readFile(join10(clientRoot, "index.html"), "utf-8");
9714
+ async function getIndexHtml({ mode, entry, clientRoot, roots, data }) {
9715
+ let main = await fs9.readFile(join10(clientRoot, "index.html"), "utf-8");
9622
9716
  let head = "";
9623
9717
  let body = "";
9624
9718
  const { info, author, keywords } = data.headmatter;
9625
9719
  head += [
9626
9720
  `<meta name="slidev:version" content="${version}">`,
9627
- `<meta charset="slidev:entry" content="${slash5(entry)}">`,
9721
+ mode === "dev" && `<meta charset="slidev:entry" content="${slash5(entry)}">`,
9628
9722
  `<link rel="icon" href="${data.config.favicon}">`,
9629
9723
  `<title>${getSlideTitle(data)}</title>`,
9630
9724
  info && `<meta name="description" content=${escapeHtml(info)}>`,
@@ -9633,9 +9727,9 @@ async function getIndexHtml({ entry, clientRoot, roots, data }) {
9633
9727
  ].filter(Boolean).join("\n");
9634
9728
  for (const root of roots) {
9635
9729
  const path4 = join10(root, "index.html");
9636
- if (!existsSync6(path4))
9730
+ if (!existsSync7(path4))
9637
9731
  continue;
9638
- const index = await fs8.readFile(path4, "utf-8");
9732
+ const index = await fs9.readFile(path4, "utf-8");
9639
9733
  head += `
9640
9734
  ${(index.match(/<head>([\s\S]*?)<\/head>/i)?.[1] || "").trim()}`;
9641
9735
  body += `
@@ -9656,7 +9750,7 @@ async function resolveViteConfigs(options, baseConfig, overrideConfigs, command,
9656
9750
  };
9657
9751
  const files = options.roots.map((i) => join10(i, "vite.config.ts"));
9658
9752
  for (const file of files) {
9659
- if (!existsSync6(file))
9753
+ if (!existsSync7(file))
9660
9754
  continue;
9661
9755
  const viteConfig = await loadConfigFromFile(configEnv, file);
9662
9756
  if (!viteConfig?.config)
@@ -9682,6 +9776,7 @@ export {
9682
9776
  version,
9683
9777
  getIndexHtml,
9684
9778
  resolveViteConfigs,
9779
+ loadSetups,
9685
9780
  parser,
9686
9781
  resolveTheme,
9687
9782
  getThemeMeta,