@slidev/cli 0.49.23 → 0.49.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{build-ZPFNOFW5.js → build-PW7D5MRO.js} +3 -4
- package/dist/{chunk-N256MP4I.js → chunk-A5KTDQ7I.js} +1 -1
- package/dist/{chunk-XYLYAM2E.js → chunk-UL5AC2R7.js} +275 -242
- package/dist/cli.js +8 -5
- package/dist/{export-F3V7NX5E.js → export-SZDV4AEI.js} +14 -6
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/package.json +24 -24
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
__toESM
|
|
18
18
|
} from "./chunk-JSBRDJBE.js";
|
|
19
19
|
|
|
20
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
20
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/identity.js
|
|
21
21
|
var require_identity = __commonJS({
|
|
22
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
22
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/identity.js"(exports) {
|
|
23
23
|
"use strict";
|
|
24
24
|
var ALIAS = Symbol.for("yaml.alias");
|
|
25
25
|
var DOC = Symbol.for("yaml.document");
|
|
@@ -74,9 +74,9 @@ var require_identity = __commonJS({
|
|
|
74
74
|
}
|
|
75
75
|
});
|
|
76
76
|
|
|
77
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
77
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/visit.js
|
|
78
78
|
var require_visit = __commonJS({
|
|
79
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
79
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/visit.js"(exports) {
|
|
80
80
|
"use strict";
|
|
81
81
|
var identity = require_identity();
|
|
82
82
|
var BREAK = Symbol("break visit");
|
|
@@ -232,9 +232,9 @@ var require_visit = __commonJS({
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
|
|
235
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
235
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/directives.js
|
|
236
236
|
var require_directives = __commonJS({
|
|
237
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
237
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/directives.js"(exports) {
|
|
238
238
|
"use strict";
|
|
239
239
|
var identity = require_identity();
|
|
240
240
|
var visit = require_visit();
|
|
@@ -403,9 +403,9 @@ var require_directives = __commonJS({
|
|
|
403
403
|
}
|
|
404
404
|
});
|
|
405
405
|
|
|
406
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
406
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/anchors.js
|
|
407
407
|
var require_anchors = __commonJS({
|
|
408
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
408
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/anchors.js"(exports) {
|
|
409
409
|
"use strict";
|
|
410
410
|
var identity = require_identity();
|
|
411
411
|
var visit = require_visit();
|
|
@@ -474,9 +474,9 @@ var require_anchors = __commonJS({
|
|
|
474
474
|
}
|
|
475
475
|
});
|
|
476
476
|
|
|
477
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
477
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/applyReviver.js
|
|
478
478
|
var require_applyReviver = __commonJS({
|
|
479
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
479
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/applyReviver.js"(exports) {
|
|
480
480
|
"use strict";
|
|
481
481
|
function applyReviver(reviver, obj, key, val) {
|
|
482
482
|
if (val && typeof val === "object") {
|
|
@@ -524,9 +524,9 @@ var require_applyReviver = __commonJS({
|
|
|
524
524
|
}
|
|
525
525
|
});
|
|
526
526
|
|
|
527
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
527
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/toJS.js
|
|
528
528
|
var require_toJS = __commonJS({
|
|
529
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
529
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/toJS.js"(exports) {
|
|
530
530
|
"use strict";
|
|
531
531
|
var identity = require_identity();
|
|
532
532
|
function toJS(value, arg, ctx) {
|
|
@@ -554,9 +554,9 @@ var require_toJS = __commonJS({
|
|
|
554
554
|
}
|
|
555
555
|
});
|
|
556
556
|
|
|
557
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
557
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Node.js
|
|
558
558
|
var require_Node = __commonJS({
|
|
559
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
559
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Node.js"(exports) {
|
|
560
560
|
"use strict";
|
|
561
561
|
var applyReviver = require_applyReviver();
|
|
562
562
|
var identity = require_identity();
|
|
@@ -595,9 +595,9 @@ var require_Node = __commonJS({
|
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
597
|
|
|
598
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
598
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Alias.js
|
|
599
599
|
var require_Alias = __commonJS({
|
|
600
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
600
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Alias.js"(exports) {
|
|
601
601
|
"use strict";
|
|
602
602
|
var anchors = require_anchors();
|
|
603
603
|
var visit = require_visit();
|
|
@@ -697,9 +697,9 @@ var require_Alias = __commonJS({
|
|
|
697
697
|
}
|
|
698
698
|
});
|
|
699
699
|
|
|
700
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
700
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Scalar.js
|
|
701
701
|
var require_Scalar = __commonJS({
|
|
702
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
702
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Scalar.js"(exports) {
|
|
703
703
|
"use strict";
|
|
704
704
|
var identity = require_identity();
|
|
705
705
|
var Node = require_Node();
|
|
@@ -727,9 +727,9 @@ var require_Scalar = __commonJS({
|
|
|
727
727
|
}
|
|
728
728
|
});
|
|
729
729
|
|
|
730
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
730
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/createNode.js
|
|
731
731
|
var require_createNode = __commonJS({
|
|
732
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
732
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/createNode.js"(exports) {
|
|
733
733
|
"use strict";
|
|
734
734
|
var Alias = require_Alias();
|
|
735
735
|
var identity = require_identity();
|
|
@@ -803,9 +803,9 @@ var require_createNode = __commonJS({
|
|
|
803
803
|
}
|
|
804
804
|
});
|
|
805
805
|
|
|
806
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
806
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Collection.js
|
|
807
807
|
var require_Collection = __commonJS({
|
|
808
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
808
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Collection.js"(exports) {
|
|
809
809
|
"use strict";
|
|
810
810
|
var createNode = require_createNode();
|
|
811
811
|
var identity = require_identity();
|
|
@@ -940,16 +940,15 @@ var require_Collection = __commonJS({
|
|
|
940
940
|
}
|
|
941
941
|
}
|
|
942
942
|
};
|
|
943
|
-
Collection.maxFlowStringSingleLineLength = 60;
|
|
944
943
|
exports.Collection = Collection;
|
|
945
944
|
exports.collectionFromPath = collectionFromPath;
|
|
946
945
|
exports.isEmptyPath = isEmptyPath;
|
|
947
946
|
}
|
|
948
947
|
});
|
|
949
948
|
|
|
950
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
949
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyComment.js
|
|
951
950
|
var require_stringifyComment = __commonJS({
|
|
952
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
951
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyComment.js"(exports) {
|
|
953
952
|
"use strict";
|
|
954
953
|
var stringifyComment = (str) => str.replace(/^(?!$)(?: $)?/gm, "#");
|
|
955
954
|
function indentComment(comment, indent) {
|
|
@@ -964,9 +963,9 @@ var require_stringifyComment = __commonJS({
|
|
|
964
963
|
}
|
|
965
964
|
});
|
|
966
965
|
|
|
967
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
966
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/foldFlowLines.js
|
|
968
967
|
var require_foldFlowLines = __commonJS({
|
|
969
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
968
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/foldFlowLines.js"(exports) {
|
|
970
969
|
"use strict";
|
|
971
970
|
var FOLD_FLOW = "flow";
|
|
972
971
|
var FOLD_BLOCK = "block";
|
|
@@ -974,6 +973,8 @@ var require_foldFlowLines = __commonJS({
|
|
|
974
973
|
function foldFlowLines(text, indent, mode = "flow", { indentAtStart, lineWidth = 80, minContentWidth = 20, onFold, onOverflow } = {}) {
|
|
975
974
|
if (!lineWidth || lineWidth < 0)
|
|
976
975
|
return text;
|
|
976
|
+
if (lineWidth < minContentWidth)
|
|
977
|
+
minContentWidth = 0;
|
|
977
978
|
const endStep = Math.max(1 + minContentWidth, 1 + lineWidth - indent.length);
|
|
978
979
|
if (text.length <= endStep)
|
|
979
980
|
return text;
|
|
@@ -1098,9 +1099,9 @@ ${indent}${text.slice(fold + 1, end2)}`;
|
|
|
1098
1099
|
}
|
|
1099
1100
|
});
|
|
1100
1101
|
|
|
1101
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1102
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyString.js
|
|
1102
1103
|
var require_stringifyString = __commonJS({
|
|
1103
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1104
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyString.js"(exports) {
|
|
1104
1105
|
"use strict";
|
|
1105
1106
|
var Scalar = require_Scalar();
|
|
1106
1107
|
var foldFlowLines = require_foldFlowLines();
|
|
@@ -1373,9 +1374,9 @@ ${indent}`);
|
|
|
1373
1374
|
}
|
|
1374
1375
|
});
|
|
1375
1376
|
|
|
1376
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1377
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringify.js
|
|
1377
1378
|
var require_stringify = __commonJS({
|
|
1378
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1379
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringify.js"(exports) {
|
|
1379
1380
|
"use strict";
|
|
1380
1381
|
var anchors = require_anchors();
|
|
1381
1382
|
var identity = require_identity();
|
|
@@ -1492,9 +1493,9 @@ ${ctx.indent}${str}`;
|
|
|
1492
1493
|
}
|
|
1493
1494
|
});
|
|
1494
1495
|
|
|
1495
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1496
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyPair.js
|
|
1496
1497
|
var require_stringifyPair = __commonJS({
|
|
1497
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1498
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyPair.js"(exports) {
|
|
1498
1499
|
"use strict";
|
|
1499
1500
|
var identity = require_identity();
|
|
1500
1501
|
var Scalar = require_Scalar();
|
|
@@ -1625,9 +1626,9 @@ ${ctx.indent}`;
|
|
|
1625
1626
|
}
|
|
1626
1627
|
});
|
|
1627
1628
|
|
|
1628
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1629
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/log.js
|
|
1629
1630
|
var require_log = __commonJS({
|
|
1630
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1631
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/log.js"(exports) {
|
|
1631
1632
|
"use strict";
|
|
1632
1633
|
function debug2(logLevel, ...messages) {
|
|
1633
1634
|
if (logLevel === "debug")
|
|
@@ -1646,9 +1647,9 @@ var require_log = __commonJS({
|
|
|
1646
1647
|
}
|
|
1647
1648
|
});
|
|
1648
1649
|
|
|
1649
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1650
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
|
|
1650
1651
|
var require_addPairToJSMap = __commonJS({
|
|
1651
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1652
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/addPairToJSMap.js"(exports) {
|
|
1652
1653
|
"use strict";
|
|
1653
1654
|
var log = require_log();
|
|
1654
1655
|
var stringify = require_stringify();
|
|
@@ -1740,9 +1741,9 @@ var require_addPairToJSMap = __commonJS({
|
|
|
1740
1741
|
}
|
|
1741
1742
|
});
|
|
1742
1743
|
|
|
1743
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1744
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Pair.js
|
|
1744
1745
|
var require_Pair = __commonJS({
|
|
1745
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1746
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/Pair.js"(exports) {
|
|
1746
1747
|
"use strict";
|
|
1747
1748
|
var createNode = require_createNode();
|
|
1748
1749
|
var stringifyPair = require_stringifyPair();
|
|
@@ -1780,9 +1781,9 @@ var require_Pair = __commonJS({
|
|
|
1780
1781
|
}
|
|
1781
1782
|
});
|
|
1782
1783
|
|
|
1783
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1784
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
1784
1785
|
var require_stringifyCollection = __commonJS({
|
|
1785
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1786
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyCollection.js"(exports) {
|
|
1786
1787
|
"use strict";
|
|
1787
1788
|
var identity = require_identity();
|
|
1788
1789
|
var stringify = require_stringify();
|
|
@@ -1924,9 +1925,9 @@ ${indent}${end}`;
|
|
|
1924
1925
|
}
|
|
1925
1926
|
});
|
|
1926
1927
|
|
|
1927
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
1928
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/YAMLMap.js
|
|
1928
1929
|
var require_YAMLMap = __commonJS({
|
|
1929
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
1930
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/YAMLMap.js"(exports) {
|
|
1930
1931
|
"use strict";
|
|
1931
1932
|
var stringifyCollection = require_stringifyCollection();
|
|
1932
1933
|
var addPairToJSMap = require_addPairToJSMap();
|
|
@@ -2068,9 +2069,9 @@ var require_YAMLMap = __commonJS({
|
|
|
2068
2069
|
}
|
|
2069
2070
|
});
|
|
2070
2071
|
|
|
2071
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2072
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/common/map.js
|
|
2072
2073
|
var require_map = __commonJS({
|
|
2073
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2074
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/common/map.js"(exports) {
|
|
2074
2075
|
"use strict";
|
|
2075
2076
|
var identity = require_identity();
|
|
2076
2077
|
var YAMLMap = require_YAMLMap();
|
|
@@ -2090,9 +2091,9 @@ var require_map = __commonJS({
|
|
|
2090
2091
|
}
|
|
2091
2092
|
});
|
|
2092
2093
|
|
|
2093
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2094
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/YAMLSeq.js
|
|
2094
2095
|
var require_YAMLSeq = __commonJS({
|
|
2095
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2096
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/nodes/YAMLSeq.js"(exports) {
|
|
2096
2097
|
"use strict";
|
|
2097
2098
|
var createNode = require_createNode();
|
|
2098
2099
|
var stringifyCollection = require_stringifyCollection();
|
|
@@ -2206,9 +2207,9 @@ var require_YAMLSeq = __commonJS({
|
|
|
2206
2207
|
}
|
|
2207
2208
|
});
|
|
2208
2209
|
|
|
2209
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2210
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/common/seq.js
|
|
2210
2211
|
var require_seq = __commonJS({
|
|
2211
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2212
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/common/seq.js"(exports) {
|
|
2212
2213
|
"use strict";
|
|
2213
2214
|
var identity = require_identity();
|
|
2214
2215
|
var YAMLSeq = require_YAMLSeq();
|
|
@@ -2228,9 +2229,9 @@ var require_seq = __commonJS({
|
|
|
2228
2229
|
}
|
|
2229
2230
|
});
|
|
2230
2231
|
|
|
2231
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2232
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/common/string.js
|
|
2232
2233
|
var require_string = __commonJS({
|
|
2233
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2234
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/common/string.js"(exports) {
|
|
2234
2235
|
"use strict";
|
|
2235
2236
|
var stringifyString = require_stringifyString();
|
|
2236
2237
|
var string = {
|
|
@@ -2247,9 +2248,9 @@ var require_string = __commonJS({
|
|
|
2247
2248
|
}
|
|
2248
2249
|
});
|
|
2249
2250
|
|
|
2250
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2251
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/common/null.js
|
|
2251
2252
|
var require_null = __commonJS({
|
|
2252
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2253
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/common/null.js"(exports) {
|
|
2253
2254
|
"use strict";
|
|
2254
2255
|
var Scalar = require_Scalar();
|
|
2255
2256
|
var nullTag = {
|
|
@@ -2265,9 +2266,9 @@ var require_null = __commonJS({
|
|
|
2265
2266
|
}
|
|
2266
2267
|
});
|
|
2267
2268
|
|
|
2268
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2269
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/core/bool.js
|
|
2269
2270
|
var require_bool = __commonJS({
|
|
2270
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2271
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/core/bool.js"(exports) {
|
|
2271
2272
|
"use strict";
|
|
2272
2273
|
var Scalar = require_Scalar();
|
|
2273
2274
|
var boolTag = {
|
|
@@ -2289,9 +2290,9 @@ var require_bool = __commonJS({
|
|
|
2289
2290
|
}
|
|
2290
2291
|
});
|
|
2291
2292
|
|
|
2292
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2293
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyNumber.js
|
|
2293
2294
|
var require_stringifyNumber = __commonJS({
|
|
2294
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2295
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyNumber.js"(exports) {
|
|
2295
2296
|
"use strict";
|
|
2296
2297
|
function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
|
2297
2298
|
if (typeof value === "bigint")
|
|
@@ -2316,9 +2317,9 @@ var require_stringifyNumber = __commonJS({
|
|
|
2316
2317
|
}
|
|
2317
2318
|
});
|
|
2318
2319
|
|
|
2319
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2320
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/core/float.js
|
|
2320
2321
|
var require_float = __commonJS({
|
|
2321
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2322
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/core/float.js"(exports) {
|
|
2322
2323
|
"use strict";
|
|
2323
2324
|
var Scalar = require_Scalar();
|
|
2324
2325
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2362,9 +2363,9 @@ var require_float = __commonJS({
|
|
|
2362
2363
|
}
|
|
2363
2364
|
});
|
|
2364
2365
|
|
|
2365
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2366
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/core/int.js
|
|
2366
2367
|
var require_int = __commonJS({
|
|
2367
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2368
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/core/int.js"(exports) {
|
|
2368
2369
|
"use strict";
|
|
2369
2370
|
var stringifyNumber = require_stringifyNumber();
|
|
2370
2371
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2407,9 +2408,9 @@ var require_int = __commonJS({
|
|
|
2407
2408
|
}
|
|
2408
2409
|
});
|
|
2409
2410
|
|
|
2410
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2411
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/core/schema.js
|
|
2411
2412
|
var require_schema = __commonJS({
|
|
2412
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2413
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/core/schema.js"(exports) {
|
|
2413
2414
|
"use strict";
|
|
2414
2415
|
var map = require_map();
|
|
2415
2416
|
var _null = require_null();
|
|
@@ -2435,9 +2436,9 @@ var require_schema = __commonJS({
|
|
|
2435
2436
|
}
|
|
2436
2437
|
});
|
|
2437
2438
|
|
|
2438
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2439
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/json/schema.js
|
|
2439
2440
|
var require_schema2 = __commonJS({
|
|
2440
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2441
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/json/schema.js"(exports) {
|
|
2441
2442
|
"use strict";
|
|
2442
2443
|
var Scalar = require_Scalar();
|
|
2443
2444
|
var map = require_map();
|
|
@@ -2502,9 +2503,9 @@ var require_schema2 = __commonJS({
|
|
|
2502
2503
|
}
|
|
2503
2504
|
});
|
|
2504
2505
|
|
|
2505
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2506
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
|
|
2506
2507
|
var require_binary = __commonJS({
|
|
2507
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2508
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js"(exports) {
|
|
2508
2509
|
"use strict";
|
|
2509
2510
|
var Scalar = require_Scalar();
|
|
2510
2511
|
var stringifyString = require_stringifyString();
|
|
@@ -2566,9 +2567,9 @@ var require_binary = __commonJS({
|
|
|
2566
2567
|
}
|
|
2567
2568
|
});
|
|
2568
2569
|
|
|
2569
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2570
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
|
|
2570
2571
|
var require_pairs = __commonJS({
|
|
2571
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2572
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js"(exports) {
|
|
2572
2573
|
"use strict";
|
|
2573
2574
|
var identity = require_identity();
|
|
2574
2575
|
var Pair = require_Pair();
|
|
@@ -2644,9 +2645,9 @@ ${cn.comment}` : item.comment;
|
|
|
2644
2645
|
}
|
|
2645
2646
|
});
|
|
2646
2647
|
|
|
2647
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2648
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
|
|
2648
2649
|
var require_omap = __commonJS({
|
|
2649
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2650
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js"(exports) {
|
|
2650
2651
|
"use strict";
|
|
2651
2652
|
var identity = require_identity();
|
|
2652
2653
|
var toJS = require_toJS();
|
|
@@ -2722,9 +2723,9 @@ var require_omap = __commonJS({
|
|
|
2722
2723
|
}
|
|
2723
2724
|
});
|
|
2724
2725
|
|
|
2725
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2726
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
|
|
2726
2727
|
var require_bool2 = __commonJS({
|
|
2727
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2728
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js"(exports) {
|
|
2728
2729
|
"use strict";
|
|
2729
2730
|
var Scalar = require_Scalar();
|
|
2730
2731
|
function boolStringify({ value, source }, ctx) {
|
|
@@ -2754,9 +2755,9 @@ var require_bool2 = __commonJS({
|
|
|
2754
2755
|
}
|
|
2755
2756
|
});
|
|
2756
2757
|
|
|
2757
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2758
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
|
|
2758
2759
|
var require_float2 = __commonJS({
|
|
2759
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2760
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/float.js"(exports) {
|
|
2760
2761
|
"use strict";
|
|
2761
2762
|
var Scalar = require_Scalar();
|
|
2762
2763
|
var stringifyNumber = require_stringifyNumber();
|
|
@@ -2803,9 +2804,9 @@ var require_float2 = __commonJS({
|
|
|
2803
2804
|
}
|
|
2804
2805
|
});
|
|
2805
2806
|
|
|
2806
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2807
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
|
|
2807
2808
|
var require_int2 = __commonJS({
|
|
2808
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2809
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/int.js"(exports) {
|
|
2809
2810
|
"use strict";
|
|
2810
2811
|
var stringifyNumber = require_stringifyNumber();
|
|
2811
2812
|
var intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
|
|
@@ -2882,9 +2883,9 @@ var require_int2 = __commonJS({
|
|
|
2882
2883
|
}
|
|
2883
2884
|
});
|
|
2884
2885
|
|
|
2885
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2886
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
|
|
2886
2887
|
var require_set = __commonJS({
|
|
2887
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2888
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/set.js"(exports) {
|
|
2888
2889
|
"use strict";
|
|
2889
2890
|
var identity = require_identity();
|
|
2890
2891
|
var Pair = require_Pair();
|
|
@@ -2971,9 +2972,9 @@ var require_set = __commonJS({
|
|
|
2971
2972
|
}
|
|
2972
2973
|
});
|
|
2973
2974
|
|
|
2974
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
2975
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
|
|
2975
2976
|
var require_timestamp = __commonJS({
|
|
2976
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
2977
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js"(exports) {
|
|
2977
2978
|
"use strict";
|
|
2978
2979
|
var stringifyNumber = require_stringifyNumber();
|
|
2979
2980
|
function parseSexagesimal(str, asBigInt) {
|
|
@@ -3059,9 +3060,9 @@ var require_timestamp = __commonJS({
|
|
|
3059
3060
|
}
|
|
3060
3061
|
});
|
|
3061
3062
|
|
|
3062
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3063
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
|
|
3063
3064
|
var require_schema3 = __commonJS({
|
|
3064
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3065
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js"(exports) {
|
|
3065
3066
|
"use strict";
|
|
3066
3067
|
var map = require_map();
|
|
3067
3068
|
var _null = require_null();
|
|
@@ -3101,9 +3102,9 @@ var require_schema3 = __commonJS({
|
|
|
3101
3102
|
}
|
|
3102
3103
|
});
|
|
3103
3104
|
|
|
3104
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3105
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/tags.js
|
|
3105
3106
|
var require_tags = __commonJS({
|
|
3106
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3107
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/tags.js"(exports) {
|
|
3107
3108
|
"use strict";
|
|
3108
3109
|
var map = require_map();
|
|
3109
3110
|
var _null = require_null();
|
|
@@ -3184,9 +3185,9 @@ var require_tags = __commonJS({
|
|
|
3184
3185
|
}
|
|
3185
3186
|
});
|
|
3186
3187
|
|
|
3187
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3188
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/Schema.js
|
|
3188
3189
|
var require_Schema = __commonJS({
|
|
3189
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3190
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/schema/Schema.js"(exports) {
|
|
3190
3191
|
"use strict";
|
|
3191
3192
|
var identity = require_identity();
|
|
3192
3193
|
var map = require_map();
|
|
@@ -3217,9 +3218,9 @@ var require_Schema = __commonJS({
|
|
|
3217
3218
|
}
|
|
3218
3219
|
});
|
|
3219
3220
|
|
|
3220
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3221
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyDocument.js
|
|
3221
3222
|
var require_stringifyDocument = __commonJS({
|
|
3222
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3223
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/stringify/stringifyDocument.js"(exports) {
|
|
3223
3224
|
"use strict";
|
|
3224
3225
|
var identity = require_identity();
|
|
3225
3226
|
var stringify = require_stringify();
|
|
@@ -3297,9 +3298,9 @@ var require_stringifyDocument = __commonJS({
|
|
|
3297
3298
|
}
|
|
3298
3299
|
});
|
|
3299
3300
|
|
|
3300
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3301
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/Document.js
|
|
3301
3302
|
var require_Document = __commonJS({
|
|
3302
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3303
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/doc/Document.js"(exports) {
|
|
3303
3304
|
"use strict";
|
|
3304
3305
|
var Alias = require_Alias();
|
|
3305
3306
|
var Collection = require_Collection();
|
|
@@ -3605,9 +3606,9 @@ var require_Document = __commonJS({
|
|
|
3605
3606
|
}
|
|
3606
3607
|
});
|
|
3607
3608
|
|
|
3608
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3609
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/errors.js
|
|
3609
3610
|
var require_errors = __commonJS({
|
|
3610
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3611
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/errors.js"(exports) {
|
|
3611
3612
|
"use strict";
|
|
3612
3613
|
var YAMLError = class extends Error {
|
|
3613
3614
|
constructor(name, pos, code, message) {
|
|
@@ -3670,9 +3671,9 @@ ${pointer}
|
|
|
3670
3671
|
}
|
|
3671
3672
|
});
|
|
3672
3673
|
|
|
3673
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3674
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-props.js
|
|
3674
3675
|
var require_resolve_props = __commonJS({
|
|
3675
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3676
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-props.js"(exports) {
|
|
3676
3677
|
"use strict";
|
|
3677
3678
|
function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
|
|
3678
3679
|
let spaceBefore = false;
|
|
@@ -3681,11 +3682,11 @@ var require_resolve_props = __commonJS({
|
|
|
3681
3682
|
let comment = "";
|
|
3682
3683
|
let commentSep = "";
|
|
3683
3684
|
let hasNewline = false;
|
|
3684
|
-
let hasNewlineAfterProp = false;
|
|
3685
3685
|
let reqSpace = false;
|
|
3686
3686
|
let tab = null;
|
|
3687
3687
|
let anchor = null;
|
|
3688
3688
|
let tag = null;
|
|
3689
|
+
let newlineAfterProp = null;
|
|
3689
3690
|
let comma = null;
|
|
3690
3691
|
let found = null;
|
|
3691
3692
|
let start = null;
|
|
@@ -3731,7 +3732,7 @@ var require_resolve_props = __commonJS({
|
|
|
3731
3732
|
atNewline = true;
|
|
3732
3733
|
hasNewline = true;
|
|
3733
3734
|
if (anchor || tag)
|
|
3734
|
-
|
|
3735
|
+
newlineAfterProp = token;
|
|
3735
3736
|
hasSpace = true;
|
|
3736
3737
|
break;
|
|
3737
3738
|
case "anchor":
|
|
@@ -3794,9 +3795,9 @@ var require_resolve_props = __commonJS({
|
|
|
3794
3795
|
spaceBefore,
|
|
3795
3796
|
comment,
|
|
3796
3797
|
hasNewline,
|
|
3797
|
-
hasNewlineAfterProp,
|
|
3798
3798
|
anchor,
|
|
3799
3799
|
tag,
|
|
3800
|
+
newlineAfterProp,
|
|
3800
3801
|
end,
|
|
3801
3802
|
start: start ?? end
|
|
3802
3803
|
};
|
|
@@ -3805,9 +3806,9 @@ var require_resolve_props = __commonJS({
|
|
|
3805
3806
|
}
|
|
3806
3807
|
});
|
|
3807
3808
|
|
|
3808
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3809
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/util-contains-newline.js
|
|
3809
3810
|
var require_util_contains_newline = __commonJS({
|
|
3810
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3811
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/util-contains-newline.js"(exports) {
|
|
3811
3812
|
"use strict";
|
|
3812
3813
|
function containsNewline(key) {
|
|
3813
3814
|
if (!key)
|
|
@@ -3847,9 +3848,9 @@ var require_util_contains_newline = __commonJS({
|
|
|
3847
3848
|
}
|
|
3848
3849
|
});
|
|
3849
3850
|
|
|
3850
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3851
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
|
|
3851
3852
|
var require_util_flow_indent_check = __commonJS({
|
|
3852
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3853
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/util-flow-indent-check.js"(exports) {
|
|
3853
3854
|
"use strict";
|
|
3854
3855
|
var utilContainsNewline = require_util_contains_newline();
|
|
3855
3856
|
function flowIndentCheck(indent, fc, onError) {
|
|
@@ -3865,9 +3866,9 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
3865
3866
|
}
|
|
3866
3867
|
});
|
|
3867
3868
|
|
|
3868
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3869
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/util-map-includes.js
|
|
3869
3870
|
var require_util_map_includes = __commonJS({
|
|
3870
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3871
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/util-map-includes.js"(exports) {
|
|
3871
3872
|
"use strict";
|
|
3872
3873
|
var identity = require_identity();
|
|
3873
3874
|
function mapIncludes(ctx, items, search) {
|
|
@@ -3881,9 +3882,9 @@ var require_util_map_includes = __commonJS({
|
|
|
3881
3882
|
}
|
|
3882
3883
|
});
|
|
3883
3884
|
|
|
3884
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3885
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-block-map.js
|
|
3885
3886
|
var require_resolve_block_map = __commonJS({
|
|
3886
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3887
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-block-map.js"(exports) {
|
|
3887
3888
|
"use strict";
|
|
3888
3889
|
var Pair = require_Pair();
|
|
3889
3890
|
var YAMLMap = require_YAMLMap();
|
|
@@ -3927,7 +3928,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
3927
3928
|
}
|
|
3928
3929
|
continue;
|
|
3929
3930
|
}
|
|
3930
|
-
if (keyProps.
|
|
3931
|
+
if (keyProps.newlineAfterProp || utilContainsNewline.containsNewline(key)) {
|
|
3931
3932
|
onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
3932
3933
|
}
|
|
3933
3934
|
} else if (keyProps.found?.indent !== bm.indent) {
|
|
@@ -3987,9 +3988,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
3987
3988
|
}
|
|
3988
3989
|
});
|
|
3989
3990
|
|
|
3990
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
3991
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-block-seq.js
|
|
3991
3992
|
var require_resolve_block_seq = __commonJS({
|
|
3992
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
3993
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-block-seq.js"(exports) {
|
|
3993
3994
|
"use strict";
|
|
3994
3995
|
var YAMLSeq = require_YAMLSeq();
|
|
3995
3996
|
var resolveProps = require_resolve_props();
|
|
@@ -4036,9 +4037,9 @@ var require_resolve_block_seq = __commonJS({
|
|
|
4036
4037
|
}
|
|
4037
4038
|
});
|
|
4038
4039
|
|
|
4039
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4040
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-end.js
|
|
4040
4041
|
var require_resolve_end = __commonJS({
|
|
4041
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4042
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-end.js"(exports) {
|
|
4042
4043
|
"use strict";
|
|
4043
4044
|
function resolveEnd(end, offset, reqSpace, onError) {
|
|
4044
4045
|
let comment = "";
|
|
@@ -4079,9 +4080,9 @@ var require_resolve_end = __commonJS({
|
|
|
4079
4080
|
}
|
|
4080
4081
|
});
|
|
4081
4082
|
|
|
4082
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4083
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
|
|
4083
4084
|
var require_resolve_flow_collection = __commonJS({
|
|
4084
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4085
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-flow-collection.js"(exports) {
|
|
4085
4086
|
"use strict";
|
|
4086
4087
|
var identity = require_identity();
|
|
4087
4088
|
var Pair = require_Pair();
|
|
@@ -4267,9 +4268,9 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
4267
4268
|
}
|
|
4268
4269
|
});
|
|
4269
4270
|
|
|
4270
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4271
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/compose-collection.js
|
|
4271
4272
|
var require_compose_collection = __commonJS({
|
|
4272
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4273
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/compose-collection.js"(exports) {
|
|
4273
4274
|
"use strict";
|
|
4274
4275
|
var identity = require_identity();
|
|
4275
4276
|
var Scalar = require_Scalar();
|
|
@@ -4289,10 +4290,19 @@ var require_compose_collection = __commonJS({
|
|
|
4289
4290
|
coll.tag = tagName;
|
|
4290
4291
|
return coll;
|
|
4291
4292
|
}
|
|
4292
|
-
function composeCollection(CN, ctx, token,
|
|
4293
|
+
function composeCollection(CN, ctx, token, props, onError) {
|
|
4294
|
+
const tagToken = props.tag;
|
|
4293
4295
|
const tagName = !tagToken ? null : ctx.directives.tagName(tagToken.source, (msg) => onError(tagToken, "TAG_RESOLVE_FAILED", msg));
|
|
4296
|
+
if (token.type === "block-seq") {
|
|
4297
|
+
const { anchor, newlineAfterProp: nl } = props;
|
|
4298
|
+
const lastProp = anchor && tagToken ? anchor.offset > tagToken.offset ? anchor : tagToken : anchor ?? tagToken;
|
|
4299
|
+
if (lastProp && (!nl || nl.offset < lastProp.offset)) {
|
|
4300
|
+
const message = "Missing newline after block sequence props";
|
|
4301
|
+
onError(lastProp, "MISSING_CHAR", message);
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4294
4304
|
const expType = token.type === "block-map" ? "map" : token.type === "block-seq" ? "seq" : token.start.source === "{" ? "map" : "seq";
|
|
4295
|
-
if (!tagToken || !tagName || tagName === "!" || tagName === YAMLMap.YAMLMap.tagName && expType === "map" || tagName === YAMLSeq.YAMLSeq.tagName && expType === "seq"
|
|
4305
|
+
if (!tagToken || !tagName || tagName === "!" || tagName === YAMLMap.YAMLMap.tagName && expType === "map" || tagName === YAMLSeq.YAMLSeq.tagName && expType === "seq") {
|
|
4296
4306
|
return resolveCollection(CN, ctx, token, onError, tagName);
|
|
4297
4307
|
}
|
|
4298
4308
|
let tag = ctx.schema.tags.find((t) => t.tag === tagName && t.collection === expType);
|
|
@@ -4323,9 +4333,9 @@ var require_compose_collection = __commonJS({
|
|
|
4323
4333
|
}
|
|
4324
4334
|
});
|
|
4325
4335
|
|
|
4326
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4336
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
|
|
4327
4337
|
var require_resolve_block_scalar = __commonJS({
|
|
4328
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4338
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-block-scalar.js"(exports) {
|
|
4329
4339
|
"use strict";
|
|
4330
4340
|
var Scalar = require_Scalar();
|
|
4331
4341
|
function resolveBlockScalar(ctx, scalar, onError) {
|
|
@@ -4504,9 +4514,9 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
4504
4514
|
}
|
|
4505
4515
|
});
|
|
4506
4516
|
|
|
4507
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4517
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
|
|
4508
4518
|
var require_resolve_flow_scalar = __commonJS({
|
|
4509
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4519
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js"(exports) {
|
|
4510
4520
|
"use strict";
|
|
4511
4521
|
var Scalar = require_Scalar();
|
|
4512
4522
|
var resolveEnd = require_resolve_end();
|
|
@@ -4721,9 +4731,9 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
4721
4731
|
}
|
|
4722
4732
|
});
|
|
4723
4733
|
|
|
4724
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4734
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/compose-scalar.js
|
|
4725
4735
|
var require_compose_scalar = __commonJS({
|
|
4726
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4736
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/compose-scalar.js"(exports) {
|
|
4727
4737
|
"use strict";
|
|
4728
4738
|
var identity = require_identity();
|
|
4729
4739
|
var Scalar = require_Scalar();
|
|
@@ -4794,9 +4804,9 @@ var require_compose_scalar = __commonJS({
|
|
|
4794
4804
|
}
|
|
4795
4805
|
});
|
|
4796
4806
|
|
|
4797
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4807
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
|
|
4798
4808
|
var require_util_empty_scalar_position = __commonJS({
|
|
4799
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4809
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js"(exports) {
|
|
4800
4810
|
"use strict";
|
|
4801
4811
|
function emptyScalarPosition(offset, before, pos) {
|
|
4802
4812
|
if (before) {
|
|
@@ -4825,9 +4835,9 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
4825
4835
|
}
|
|
4826
4836
|
});
|
|
4827
4837
|
|
|
4828
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4838
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/compose-node.js
|
|
4829
4839
|
var require_compose_node = __commonJS({
|
|
4830
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4840
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/compose-node.js"(exports) {
|
|
4831
4841
|
"use strict";
|
|
4832
4842
|
var Alias = require_Alias();
|
|
4833
4843
|
var composeCollection = require_compose_collection();
|
|
@@ -4856,7 +4866,7 @@ var require_compose_node = __commonJS({
|
|
|
4856
4866
|
case "block-map":
|
|
4857
4867
|
case "block-seq":
|
|
4858
4868
|
case "flow-collection":
|
|
4859
|
-
node = composeCollection.composeCollection(CN, ctx, token,
|
|
4869
|
+
node = composeCollection.composeCollection(CN, ctx, token, props, onError);
|
|
4860
4870
|
if (anchor)
|
|
4861
4871
|
node.anchor = anchor.source.substring(1);
|
|
4862
4872
|
break;
|
|
@@ -4920,9 +4930,9 @@ var require_compose_node = __commonJS({
|
|
|
4920
4930
|
}
|
|
4921
4931
|
});
|
|
4922
4932
|
|
|
4923
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4933
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/compose-doc.js
|
|
4924
4934
|
var require_compose_doc = __commonJS({
|
|
4925
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4935
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/compose-doc.js"(exports) {
|
|
4926
4936
|
"use strict";
|
|
4927
4937
|
var Document = require_Document();
|
|
4928
4938
|
var composeNode = require_compose_node();
|
|
@@ -4962,9 +4972,9 @@ var require_compose_doc = __commonJS({
|
|
|
4962
4972
|
}
|
|
4963
4973
|
});
|
|
4964
4974
|
|
|
4965
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
4975
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/composer.js
|
|
4966
4976
|
var require_composer = __commonJS({
|
|
4967
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
4977
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/compose/composer.js"(exports) {
|
|
4968
4978
|
"use strict";
|
|
4969
4979
|
var directives = require_directives();
|
|
4970
4980
|
var Document = require_Document();
|
|
@@ -5167,9 +5177,9 @@ ${end.comment}` : end.comment;
|
|
|
5167
5177
|
}
|
|
5168
5178
|
});
|
|
5169
5179
|
|
|
5170
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5180
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/cst-scalar.js
|
|
5171
5181
|
var require_cst_scalar = __commonJS({
|
|
5172
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5182
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/cst-scalar.js"(exports) {
|
|
5173
5183
|
"use strict";
|
|
5174
5184
|
var resolveBlockScalar = require_resolve_block_scalar();
|
|
5175
5185
|
var resolveFlowScalar = require_resolve_flow_scalar();
|
|
@@ -5352,9 +5362,9 @@ var require_cst_scalar = __commonJS({
|
|
|
5352
5362
|
}
|
|
5353
5363
|
});
|
|
5354
5364
|
|
|
5355
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5365
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/cst-stringify.js
|
|
5356
5366
|
var require_cst_stringify = __commonJS({
|
|
5357
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5367
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/cst-stringify.js"(exports) {
|
|
5358
5368
|
"use strict";
|
|
5359
5369
|
var stringify = (cst) => "type" in cst ? stringifyToken(cst) : stringifyItem(cst);
|
|
5360
5370
|
function stringifyToken(token) {
|
|
@@ -5413,9 +5423,9 @@ var require_cst_stringify = __commonJS({
|
|
|
5413
5423
|
}
|
|
5414
5424
|
});
|
|
5415
5425
|
|
|
5416
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5426
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/cst-visit.js
|
|
5417
5427
|
var require_cst_visit = __commonJS({
|
|
5418
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5428
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/cst-visit.js"(exports) {
|
|
5419
5429
|
"use strict";
|
|
5420
5430
|
var BREAK = Symbol("break visit");
|
|
5421
5431
|
var SKIP = Symbol("skip children");
|
|
@@ -5475,9 +5485,9 @@ var require_cst_visit = __commonJS({
|
|
|
5475
5485
|
}
|
|
5476
5486
|
});
|
|
5477
5487
|
|
|
5478
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5488
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/cst.js
|
|
5479
5489
|
var require_cst = __commonJS({
|
|
5480
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5490
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/cst.js"(exports) {
|
|
5481
5491
|
"use strict";
|
|
5482
5492
|
var cstScalar = require_cst_scalar();
|
|
5483
5493
|
var cstStringify = require_cst_stringify();
|
|
@@ -5577,9 +5587,9 @@ var require_cst = __commonJS({
|
|
|
5577
5587
|
}
|
|
5578
5588
|
});
|
|
5579
5589
|
|
|
5580
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
5590
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/lexer.js
|
|
5581
5591
|
var require_lexer = __commonJS({
|
|
5582
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
5592
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/lexer.js"(exports) {
|
|
5583
5593
|
"use strict";
|
|
5584
5594
|
var cst = require_cst();
|
|
5585
5595
|
function isEmpty(ch) {
|
|
@@ -5759,14 +5769,11 @@ var require_lexer = __commonJS({
|
|
|
5759
5769
|
if (!this.atEnd && !this.hasChars(4))
|
|
5760
5770
|
return this.setNext("line-start");
|
|
5761
5771
|
const s = this.peek(3);
|
|
5762
|
-
if (s === "---" && isEmpty(this.charAt(3))) {
|
|
5772
|
+
if ((s === "---" || s === "...") && isEmpty(this.charAt(3))) {
|
|
5763
5773
|
yield* this.pushCount(3);
|
|
5764
5774
|
this.indentValue = 0;
|
|
5765
5775
|
this.indentNext = 0;
|
|
5766
|
-
return "doc";
|
|
5767
|
-
} else if (s === "..." && isEmpty(this.charAt(3))) {
|
|
5768
|
-
yield* this.pushCount(3);
|
|
5769
|
-
return "stream";
|
|
5776
|
+
return s === "---" ? "doc" : "stream";
|
|
5770
5777
|
}
|
|
5771
5778
|
}
|
|
5772
5779
|
this.indentValue = yield* this.pushSpaces(false);
|
|
@@ -6154,9 +6161,9 @@ var require_lexer = __commonJS({
|
|
|
6154
6161
|
}
|
|
6155
6162
|
});
|
|
6156
6163
|
|
|
6157
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
6164
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/line-counter.js
|
|
6158
6165
|
var require_line_counter = __commonJS({
|
|
6159
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
6166
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/line-counter.js"(exports) {
|
|
6160
6167
|
"use strict";
|
|
6161
6168
|
var LineCounter = class {
|
|
6162
6169
|
constructor() {
|
|
@@ -6185,9 +6192,9 @@ var require_line_counter = __commonJS({
|
|
|
6185
6192
|
}
|
|
6186
6193
|
});
|
|
6187
6194
|
|
|
6188
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
6195
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/parser.js
|
|
6189
6196
|
var require_parser = __commonJS({
|
|
6190
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
6197
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/parse/parser.js"(exports) {
|
|
6191
6198
|
"use strict";
|
|
6192
6199
|
var cst = require_cst();
|
|
6193
6200
|
var lexer = require_lexer();
|
|
@@ -6747,14 +6754,14 @@ var require_parser = __commonJS({
|
|
|
6747
6754
|
case "scalar":
|
|
6748
6755
|
case "single-quoted-scalar":
|
|
6749
6756
|
case "double-quoted-scalar": {
|
|
6750
|
-
const
|
|
6757
|
+
const fs9 = this.flowScalar(this.type);
|
|
6751
6758
|
if (atNextItem || it.value) {
|
|
6752
|
-
map.items.push({ start, key:
|
|
6759
|
+
map.items.push({ start, key: fs9, sep: [] });
|
|
6753
6760
|
this.onKeyLine = true;
|
|
6754
6761
|
} else if (it.sep) {
|
|
6755
|
-
this.stack.push(
|
|
6762
|
+
this.stack.push(fs9);
|
|
6756
6763
|
} else {
|
|
6757
|
-
Object.assign(it, { key:
|
|
6764
|
+
Object.assign(it, { key: fs9, sep: [] });
|
|
6758
6765
|
this.onKeyLine = true;
|
|
6759
6766
|
}
|
|
6760
6767
|
return;
|
|
@@ -6872,13 +6879,13 @@ var require_parser = __commonJS({
|
|
|
6872
6879
|
case "scalar":
|
|
6873
6880
|
case "single-quoted-scalar":
|
|
6874
6881
|
case "double-quoted-scalar": {
|
|
6875
|
-
const
|
|
6882
|
+
const fs9 = this.flowScalar(this.type);
|
|
6876
6883
|
if (!it || it.value)
|
|
6877
|
-
fc.items.push({ start: [], key:
|
|
6884
|
+
fc.items.push({ start: [], key: fs9, sep: [] });
|
|
6878
6885
|
else if (it.sep)
|
|
6879
|
-
this.stack.push(
|
|
6886
|
+
this.stack.push(fs9);
|
|
6880
6887
|
else
|
|
6881
|
-
Object.assign(it, { key:
|
|
6888
|
+
Object.assign(it, { key: fs9, sep: [] });
|
|
6882
6889
|
return;
|
|
6883
6890
|
}
|
|
6884
6891
|
case "flow-map-end":
|
|
@@ -7036,9 +7043,9 @@ var require_parser = __commonJS({
|
|
|
7036
7043
|
}
|
|
7037
7044
|
});
|
|
7038
7045
|
|
|
7039
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
7046
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/public-api.js
|
|
7040
7047
|
var require_public_api = __commonJS({
|
|
7041
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
7048
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/public-api.js"(exports) {
|
|
7042
7049
|
"use strict";
|
|
7043
7050
|
var composer = require_composer();
|
|
7044
7051
|
var Document = require_Document();
|
|
@@ -7130,9 +7137,9 @@ var require_public_api = __commonJS({
|
|
|
7130
7137
|
}
|
|
7131
7138
|
});
|
|
7132
7139
|
|
|
7133
|
-
// ../../node_modules/.pnpm/yaml@2.
|
|
7140
|
+
// ../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/index.js
|
|
7134
7141
|
var require_dist = __commonJS({
|
|
7135
|
-
"../../node_modules/.pnpm/yaml@2.
|
|
7142
|
+
"../../node_modules/.pnpm/yaml@2.5.0/node_modules/yaml/dist/index.js"(exports) {
|
|
7136
7143
|
"use strict";
|
|
7137
7144
|
var composer = require_composer();
|
|
7138
7145
|
var Document = require_Document();
|
|
@@ -7182,15 +7189,11 @@ var require_dist = __commonJS({
|
|
|
7182
7189
|
}
|
|
7183
7190
|
});
|
|
7184
7191
|
|
|
7185
|
-
// package.json
|
|
7186
|
-
var version = "0.49.23";
|
|
7187
|
-
|
|
7188
7192
|
// node/commands/shared.ts
|
|
7189
|
-
import { existsSync as
|
|
7190
|
-
import { join as
|
|
7191
|
-
import { loadConfigFromFile, mergeConfig as mergeConfig2 } from "vite";
|
|
7193
|
+
import { existsSync as existsSync8 } from "node:fs";
|
|
7194
|
+
import { join as join12 } from "node:path";
|
|
7192
7195
|
import MarkdownIt from "markdown-it";
|
|
7193
|
-
import {
|
|
7196
|
+
import { loadConfigFromFile, mergeConfig as mergeConfig2 } from "vite";
|
|
7194
7197
|
|
|
7195
7198
|
// node/syntax/markdown-it/markdown-it-link.ts
|
|
7196
7199
|
function MarkdownItLink(md) {
|
|
@@ -7443,7 +7446,7 @@ function createConfigPlugin(options) {
|
|
|
7443
7446
|
if (req.url.endsWith(".html")) {
|
|
7444
7447
|
res.setHeader("Content-Type", "text/html");
|
|
7445
7448
|
res.statusCode = 200;
|
|
7446
|
-
res.end(
|
|
7449
|
+
res.end(options.utils.indexHtml);
|
|
7447
7450
|
return;
|
|
7448
7451
|
}
|
|
7449
7452
|
next();
|
|
@@ -7971,7 +7974,7 @@ var templateSlides = {
|
|
|
7971
7974
|
// For some unknown reason, import error won't be caught by the error component. Catch it here.
|
|
7972
7975
|
`const load${no} = async () => {`,
|
|
7973
7976
|
` try { return componentsCache[${idx}] ??= await import('${VIRTUAL_SLIDE_PREFIX}${no}/md') }`,
|
|
7974
|
-
` catch (e) { return SlideError }`,
|
|
7977
|
+
` catch (e) { console.error('slide failed to load', e); return SlideError }`,
|
|
7975
7978
|
`}`
|
|
7976
7979
|
);
|
|
7977
7980
|
return `{ no: ${no}, meta: f${no}, load: load${no}, component: getAsyncComponent(${idx}, load${no}) }`;
|
|
@@ -8104,6 +8107,11 @@ import * as parser from "@slidev/parser/fs";
|
|
|
8104
8107
|
import { join as join8 } from "node:path";
|
|
8105
8108
|
import fs from "fs-extra";
|
|
8106
8109
|
import { satisfies } from "semver";
|
|
8110
|
+
|
|
8111
|
+
// package.json
|
|
8112
|
+
var version = "0.49.25";
|
|
8113
|
+
|
|
8114
|
+
// node/integrations/themes.ts
|
|
8107
8115
|
var officialThemes = {
|
|
8108
8116
|
"none": "",
|
|
8109
8117
|
"default": "@slidev/theme-default",
|
|
@@ -8218,6 +8226,53 @@ async function setupShiki(roots) {
|
|
|
8218
8226
|
};
|
|
8219
8227
|
}
|
|
8220
8228
|
|
|
8229
|
+
// node/setups/indexHtml.ts
|
|
8230
|
+
import { existsSync as existsSync5, readFileSync } from "node:fs";
|
|
8231
|
+
import { join as join9 } from "node:path";
|
|
8232
|
+
import { slash as slash2 } from "@antfu/utils";
|
|
8233
|
+
import { white, yellow as yellow2 } from "kolorist";
|
|
8234
|
+
import { escapeHtml } from "markdown-it/lib/common/utils.mjs";
|
|
8235
|
+
function toAttrValue(unsafe) {
|
|
8236
|
+
return JSON.stringify(escapeHtml(String(unsafe)));
|
|
8237
|
+
}
|
|
8238
|
+
function setupIndexHtml({ mode, entry, clientRoot, userRoot, roots, data }) {
|
|
8239
|
+
let main = readFileSync(join9(clientRoot, "index.html"), "utf-8");
|
|
8240
|
+
let head = "";
|
|
8241
|
+
let body = "";
|
|
8242
|
+
const { info, author, keywords } = data.headmatter;
|
|
8243
|
+
head += [
|
|
8244
|
+
`<meta name="slidev:version" content="${version}">`,
|
|
8245
|
+
mode === "dev" && `<meta charset="slidev:entry" content="${slash2(entry)}">`,
|
|
8246
|
+
`<link rel="icon" href="${data.config.favicon}">`,
|
|
8247
|
+
`<title>${getSlideTitle(data)}</title>`,
|
|
8248
|
+
info && `<meta name="description" content=${toAttrValue(info)}>`,
|
|
8249
|
+
author && `<meta name="author" content=${toAttrValue(author)}>`,
|
|
8250
|
+
keywords && `<meta name="keywords" content=${toAttrValue(Array.isArray(keywords) ? keywords.join(", ") : keywords)}>`
|
|
8251
|
+
].filter(Boolean).join("\n");
|
|
8252
|
+
for (const root of roots) {
|
|
8253
|
+
const path4 = join9(root, "index.html");
|
|
8254
|
+
if (!existsSync5(path4))
|
|
8255
|
+
continue;
|
|
8256
|
+
const index = readFileSync(path4, "utf-8");
|
|
8257
|
+
if (root === userRoot && index.includes("<!DOCTYPE")) {
|
|
8258
|
+
console.error(yellow2(`[Slidev] Ignored provided index.html with doctype declaration. (${white(path4)})`));
|
|
8259
|
+
console.error(yellow2("This file may be generated by Slidev, please remove it from your project."));
|
|
8260
|
+
continue;
|
|
8261
|
+
}
|
|
8262
|
+
head += `
|
|
8263
|
+
${(index.match(/<head>([\s\S]*?)<\/head>/i)?.[1] || "").trim()}`;
|
|
8264
|
+
body += `
|
|
8265
|
+
${(index.match(/<body>([\s\S]*?)<\/body>/i)?.[1] || "").trim()}`;
|
|
8266
|
+
}
|
|
8267
|
+
if (data.features.tweet)
|
|
8268
|
+
body += '\n<script async src="https://platform.twitter.com/widgets.js"></script>';
|
|
8269
|
+
if (data.config.fonts.webfonts.length && data.config.fonts.provider !== "none")
|
|
8270
|
+
head += `
|
|
8271
|
+
<link rel="stylesheet" href="${generateGoogleFontsUrl(data.config.fonts)}" type="text/css">`;
|
|
8272
|
+
main = main.replace("__ENTRY__", toAtFS(join9(clientRoot, "main.ts"))).replace("<!-- head -->", head).replace("<!-- body -->", body);
|
|
8273
|
+
return main;
|
|
8274
|
+
}
|
|
8275
|
+
|
|
8221
8276
|
// node/options.ts
|
|
8222
8277
|
var debug = Debug("slidev:options");
|
|
8223
8278
|
async function resolveOptions(entryOptions, mode) {
|
|
@@ -8259,24 +8314,27 @@ async function resolveOptions(entryOptions, mode) {
|
|
|
8259
8314
|
theme,
|
|
8260
8315
|
themeRoots,
|
|
8261
8316
|
addonRoots,
|
|
8262
|
-
roots
|
|
8263
|
-
|
|
8317
|
+
roots
|
|
8318
|
+
};
|
|
8319
|
+
return {
|
|
8320
|
+
...resolved,
|
|
8321
|
+
utils: await createDataUtils(resolved)
|
|
8264
8322
|
};
|
|
8265
|
-
return resolved;
|
|
8266
8323
|
}
|
|
8267
|
-
async function createDataUtils(
|
|
8268
|
-
const monacoTypesIgnorePackagesMatches = (data.config.monacoTypesIgnorePackages || []).map((i) => mm.matcher(i));
|
|
8324
|
+
async function createDataUtils(resolved) {
|
|
8325
|
+
const monacoTypesIgnorePackagesMatches = (resolved.data.config.monacoTypesIgnorePackages || []).map((i) => mm.matcher(i));
|
|
8269
8326
|
let _layouts_cache_time = 0;
|
|
8270
8327
|
let _layouts_cache = {};
|
|
8271
8328
|
return {
|
|
8272
|
-
...await setupShiki(roots),
|
|
8329
|
+
...await setupShiki(resolved.roots),
|
|
8330
|
+
indexHtml: setupIndexHtml(resolved),
|
|
8273
8331
|
isMonacoTypesIgnored: (pkg) => monacoTypesIgnorePackagesMatches.some((i) => i(pkg)),
|
|
8274
8332
|
getLayouts: () => {
|
|
8275
8333
|
const now = Date.now();
|
|
8276
8334
|
if (now - _layouts_cache_time < 2e3)
|
|
8277
8335
|
return _layouts_cache;
|
|
8278
8336
|
const layouts = {};
|
|
8279
|
-
for (const root of [clientRoot, ...roots]) {
|
|
8337
|
+
for (const root of [resolved.clientRoot, ...resolved.roots]) {
|
|
8280
8338
|
const layoutPaths = fg2.sync("layouts/**/*.{vue,ts}", {
|
|
8281
8339
|
cwd: root,
|
|
8282
8340
|
absolute: true,
|
|
@@ -8769,7 +8827,7 @@ function transformSlotSugar(ctx) {
|
|
|
8769
8827
|
import path3 from "node:path";
|
|
8770
8828
|
import lz4 from "lz-string";
|
|
8771
8829
|
import fs6 from "fs-extra";
|
|
8772
|
-
import { slash as
|
|
8830
|
+
import { slash as slash3 } from "@antfu/utils";
|
|
8773
8831
|
|
|
8774
8832
|
// node/vite/monacoWrite.ts
|
|
8775
8833
|
import fs5 from "node:fs/promises";
|
|
@@ -8863,7 +8921,7 @@ function transformSnippet({ s, slide, options }) {
|
|
|
8863
8921
|
// eslint-disable-next-line regexp/no-super-linear-backtracking
|
|
8864
8922
|
/^<<<\s*(\S.*?)(#[\w-]+)?\s*(?:\s(\S+?))?\s*(\{.*)?$/gm,
|
|
8865
8923
|
(full, filepath = "", regionName = "", lang = "", meta = "") => {
|
|
8866
|
-
const src =
|
|
8924
|
+
const src = slash3(
|
|
8867
8925
|
/^@\//.test(filepath) ? path3.resolve(options.userRoot, filepath.slice(2)) : path3.resolve(dir, filepath)
|
|
8868
8926
|
);
|
|
8869
8927
|
watchFiles[src] ??= /* @__PURE__ */ new Set();
|
|
@@ -9204,6 +9262,8 @@ function MarkdownItKatex(md, options) {
|
|
|
9204
9262
|
|
|
9205
9263
|
// node/syntax/markdown-it/markdown-it-v-drag.ts
|
|
9206
9264
|
import { SourceMapConsumer } from "source-map-js";
|
|
9265
|
+
var dragComponentRegex = /<(v-?drag-?\w*)([\s>])/i;
|
|
9266
|
+
var dragDirectiveRegex = /(?<![</\w])v-drag(=".*?")?/i;
|
|
9207
9267
|
function MarkdownItVDrag(md, markdownTransformMap) {
|
|
9208
9268
|
const visited = /* @__PURE__ */ new WeakSet();
|
|
9209
9269
|
const sourceMapConsumers = /* @__PURE__ */ new WeakMap();
|
|
@@ -9225,21 +9285,32 @@ function MarkdownItVDrag(md, markdownTransformMap) {
|
|
|
9225
9285
|
const _parse = md.parse;
|
|
9226
9286
|
md.parse = function(src, env) {
|
|
9227
9287
|
const smc = getSourceMapConsumer(env.id);
|
|
9228
|
-
const toOriginalPos = smc ? (line) => smc.originalPositionFor({ line, column: 0 }).line : (line) => line;
|
|
9288
|
+
const toOriginalPos = smc ? (line) => smc.originalPositionFor({ line: line + 1, column: 0 }).line - 1 : (line) => line;
|
|
9229
9289
|
function toMarkdownSource(map, idx) {
|
|
9230
|
-
const
|
|
9231
|
-
|
|
9290
|
+
const start = toOriginalPos(map[0]);
|
|
9291
|
+
const end = toOriginalPos(map[1]);
|
|
9292
|
+
return `[${start},${Math.max(start + 1, end)},${idx}]`;
|
|
9293
|
+
}
|
|
9294
|
+
function replaceChildren(token, regex, replacement) {
|
|
9295
|
+
for (const child of token.children ?? []) {
|
|
9296
|
+
if (child.type === "html_block" || child.type === "html_inline") {
|
|
9297
|
+
child.content = child.content.replace(regex, replacement);
|
|
9298
|
+
}
|
|
9299
|
+
replaceChildren(child, regex, replacement);
|
|
9300
|
+
}
|
|
9232
9301
|
}
|
|
9233
9302
|
return _parse.call(this, src, env).map((token) => {
|
|
9234
|
-
if (!["html_block", "html_inline"].includes(token.type) || !token.content.includes("
|
|
9303
|
+
if (!["html_block", "html_inline", "inline"].includes(token.type) || !token.content.includes("drag") || visited.has(token))
|
|
9235
9304
|
return token;
|
|
9236
|
-
token.content = token.content.replace(
|
|
9237
|
-
|
|
9238
|
-
(
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9305
|
+
token.content = token.content.replace(dragComponentRegex, (_, tag, space, idx) => {
|
|
9306
|
+
const replacement = `<${tag} :markdownSource="${toMarkdownSource(token.map, idx)}"${space}`;
|
|
9307
|
+
replaceChildren(token, dragComponentRegex, replacement);
|
|
9308
|
+
return replacement;
|
|
9309
|
+
}).replace(dragDirectiveRegex, (_, value, idx) => {
|
|
9310
|
+
const replacement = `v-drag${value ?? ""} :markdownSource="${toMarkdownSource(token.map, idx)}"`;
|
|
9311
|
+
replaceChildren(token, dragDirectiveRegex, replacement);
|
|
9312
|
+
return replacement;
|
|
9313
|
+
});
|
|
9243
9314
|
visited.add(token);
|
|
9244
9315
|
return token;
|
|
9245
9316
|
});
|
|
@@ -9360,7 +9431,7 @@ async function createMarkdownPlugin(options, { markdown: mdOptions }) {
|
|
|
9360
9431
|
// node/vite/monacoTypes.ts
|
|
9361
9432
|
import fs7 from "node:fs/promises";
|
|
9362
9433
|
import { dirname, resolve as resolve5 } from "node:path";
|
|
9363
|
-
import { slash as
|
|
9434
|
+
import { slash as slash4 } from "@antfu/utils";
|
|
9364
9435
|
import fg3 from "fast-glob";
|
|
9365
9436
|
import { findDepPkgJsonPath } from "vitefu";
|
|
9366
9437
|
function createMonacoTypesLoader({ userRoot, utils }) {
|
|
@@ -9382,7 +9453,7 @@ function createMonacoTypesLoader({ userRoot, utils }) {
|
|
|
9382
9453
|
const pkgJsonPath = await findDepPkgJsonPath(pkg, importer);
|
|
9383
9454
|
if (!pkgJsonPath)
|
|
9384
9455
|
throw new Error(`Package "${pkg}" not found in "${importer}"`);
|
|
9385
|
-
const root =
|
|
9456
|
+
const root = slash4(dirname(pkgJsonPath));
|
|
9386
9457
|
const pkgJson = JSON.parse(await fs7.readFile(pkgJsonPath, "utf-8"));
|
|
9387
9458
|
let deps = Object.keys(pkgJson.dependencies ?? {});
|
|
9388
9459
|
deps = deps.filter((pkg2) => !utils.isMonacoTypesIgnored(pkg2));
|
|
@@ -9443,7 +9514,7 @@ async function createRemoteAssetsPlugin({ data: { config }, mode }, pluginOption
|
|
|
9443
9514
|
import ServerRef from "vite-plugin-vue-server-ref";
|
|
9444
9515
|
|
|
9445
9516
|
// node/integrations/drawings.ts
|
|
9446
|
-
import { basename, dirname as dirname2, join as
|
|
9517
|
+
import { basename, dirname as dirname2, join as join10, resolve as resolve6 } from "node:path";
|
|
9447
9518
|
import fs8 from "fs-extra";
|
|
9448
9519
|
import fg4 from "fast-glob";
|
|
9449
9520
|
function resolveDrawingsDir(options) {
|
|
@@ -9488,7 +9559,7 @@ async function writeDrawings(options, drawing) {
|
|
|
9488
9559
|
const svg = `${SVG_HEAD}
|
|
9489
9560
|
${value}
|
|
9490
9561
|
</svg>`;
|
|
9491
|
-
await fs8.writeFile(
|
|
9562
|
+
await fs8.writeFile(join10(dir, `${key}.svg`), svg, "utf-8");
|
|
9492
9563
|
})
|
|
9493
9564
|
);
|
|
9494
9565
|
}
|
|
@@ -9523,7 +9594,7 @@ import UnoCSS from "unocss/vite";
|
|
|
9523
9594
|
|
|
9524
9595
|
// node/setups/unocss.ts
|
|
9525
9596
|
import { resolve as resolve7 } from "node:path";
|
|
9526
|
-
import { existsSync as
|
|
9597
|
+
import { existsSync as existsSync6 } from "node:fs";
|
|
9527
9598
|
import { mergeConfigs } from "unocss";
|
|
9528
9599
|
async function setupUnocss({ clientRoot, roots, data }) {
|
|
9529
9600
|
function loadFileConfigs(root) {
|
|
@@ -9531,7 +9602,7 @@ async function setupUnocss({ clientRoot, roots, data }) {
|
|
|
9531
9602
|
resolve7(root, "uno.config.ts"),
|
|
9532
9603
|
resolve7(root, "unocss.config.ts")
|
|
9533
9604
|
].map((i) => {
|
|
9534
|
-
if (!
|
|
9605
|
+
if (!existsSync6(i))
|
|
9535
9606
|
return void 0;
|
|
9536
9607
|
const loaded = loadModule(i);
|
|
9537
9608
|
return "default" in loaded ? loaded.default : loaded;
|
|
@@ -9618,10 +9689,10 @@ async function createVuePlugin(_options, pluginOptions) {
|
|
|
9618
9689
|
}
|
|
9619
9690
|
|
|
9620
9691
|
// node/vite/staticCopy.ts
|
|
9621
|
-
import { existsSync as
|
|
9622
|
-
import { join as
|
|
9692
|
+
import { existsSync as existsSync7 } from "node:fs";
|
|
9693
|
+
import { join as join11 } from "node:path";
|
|
9623
9694
|
async function createStaticCopyPlugin({ themeRoots, addonRoots }, pluginOptions) {
|
|
9624
|
-
const publicDirs = [...themeRoots, ...addonRoots].map((i) =>
|
|
9695
|
+
const publicDirs = [...themeRoots, ...addonRoots].map((i) => join11(i, "public")).filter(existsSync7);
|
|
9625
9696
|
if (!publicDirs.length)
|
|
9626
9697
|
return;
|
|
9627
9698
|
const { viteStaticCopy } = await import("vite-plugin-static-copy");
|
|
@@ -9667,51 +9738,14 @@ function getSlideTitle(data) {
|
|
|
9667
9738
|
const slideTitle = data.config.titleTemplate.replace("%s", title);
|
|
9668
9739
|
return slideTitle === "Slidev - Slidev" ? "Slidev" : slideTitle;
|
|
9669
9740
|
}
|
|
9670
|
-
function escapeHtml(unsafe) {
|
|
9671
|
-
return JSON.stringify(
|
|
9672
|
-
String(unsafe).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'")
|
|
9673
|
-
);
|
|
9674
|
-
}
|
|
9675
|
-
async function getIndexHtml({ mode, entry, clientRoot, roots, data }) {
|
|
9676
|
-
let main = await fs9.readFile(join11(clientRoot, "index.html"), "utf-8");
|
|
9677
|
-
let head = "";
|
|
9678
|
-
let body = "";
|
|
9679
|
-
const { info, author, keywords } = data.headmatter;
|
|
9680
|
-
head += [
|
|
9681
|
-
`<meta name="slidev:version" content="${version}">`,
|
|
9682
|
-
mode === "dev" && `<meta charset="slidev:entry" content="${slash4(entry)}">`,
|
|
9683
|
-
`<link rel="icon" href="${data.config.favicon}">`,
|
|
9684
|
-
`<title>${getSlideTitle(data)}</title>`,
|
|
9685
|
-
info && `<meta name="description" content=${escapeHtml(info)}>`,
|
|
9686
|
-
author && `<meta name="author" content=${escapeHtml(author)}>`,
|
|
9687
|
-
keywords && `<meta name="keywords" content=${escapeHtml(Array.isArray(keywords) ? keywords.join(", ") : keywords)}>`
|
|
9688
|
-
].filter(Boolean).join("\n");
|
|
9689
|
-
for (const root of roots) {
|
|
9690
|
-
const path4 = join11(root, "index.html");
|
|
9691
|
-
if (!existsSync7(path4))
|
|
9692
|
-
continue;
|
|
9693
|
-
const index = await fs9.readFile(path4, "utf-8");
|
|
9694
|
-
head += `
|
|
9695
|
-
${(index.match(/<head>([\s\S]*?)<\/head>/i)?.[1] || "").trim()}`;
|
|
9696
|
-
body += `
|
|
9697
|
-
${(index.match(/<body>([\s\S]*?)<\/body>/i)?.[1] || "").trim()}`;
|
|
9698
|
-
}
|
|
9699
|
-
if (data.features.tweet)
|
|
9700
|
-
body += '\n<script async src="https://platform.twitter.com/widgets.js"></script>';
|
|
9701
|
-
if (data.config.fonts.webfonts.length && data.config.fonts.provider !== "none")
|
|
9702
|
-
head += `
|
|
9703
|
-
<link rel="stylesheet" href="${generateGoogleFontsUrl(data.config.fonts)}" type="text/css">`;
|
|
9704
|
-
main = main.replace("__ENTRY__", toAtFS(join11(clientRoot, "main.ts"))).replace("<!-- head -->", head).replace("<!-- body -->", body);
|
|
9705
|
-
return main;
|
|
9706
|
-
}
|
|
9707
9741
|
async function resolveViteConfigs(options, baseConfig, overrideConfigs, command, serverOptions) {
|
|
9708
9742
|
const configEnv = {
|
|
9709
9743
|
mode: command === "build" ? "production" : "development",
|
|
9710
9744
|
command
|
|
9711
9745
|
};
|
|
9712
|
-
const files = options.roots.map((i) =>
|
|
9746
|
+
const files = options.roots.map((i) => join12(i, "vite.config.ts"));
|
|
9713
9747
|
for (const file of files) {
|
|
9714
|
-
if (!
|
|
9748
|
+
if (!existsSync8(file))
|
|
9715
9749
|
continue;
|
|
9716
9750
|
const viteConfig = await loadConfigFromFile(configEnv, file);
|
|
9717
9751
|
if (!viteConfig?.config)
|
|
@@ -9732,10 +9766,9 @@ async function resolveViteConfigs(options, baseConfig, overrideConfigs, command,
|
|
|
9732
9766
|
}
|
|
9733
9767
|
|
|
9734
9768
|
export {
|
|
9735
|
-
version,
|
|
9736
|
-
getIndexHtml,
|
|
9737
9769
|
resolveViteConfigs,
|
|
9738
9770
|
parser,
|
|
9771
|
+
version,
|
|
9739
9772
|
resolveTheme,
|
|
9740
9773
|
getThemeMeta,
|
|
9741
9774
|
resolveAddons,
|