@voidzero-dev/vite-plus-core 1.0.0-rc.0 → 1.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/dist/rolldown/cli.mjs +6 -6
  2. package/dist/rolldown/config.d.mts +1 -1
  3. package/dist/rolldown/config.mjs +2 -2
  4. package/dist/rolldown/experimental-index.d.mts +8 -5
  5. package/dist/rolldown/experimental-index.mjs +14 -11
  6. package/dist/rolldown/experimental-runtime-types.d.ts +3 -26
  7. package/dist/rolldown/experimental-runtime.d.ts +3 -26
  8. package/dist/rolldown/experimental-runtime.mjs +4 -47
  9. package/dist/rolldown/filter-index.d.mts +1 -1
  10. package/dist/rolldown/index.d.mts +1 -1
  11. package/dist/rolldown/index.mjs +4 -4
  12. package/dist/rolldown/parallel-plugin-worker.mjs +2 -2
  13. package/dist/rolldown/parallel-plugin.d.mts +1 -1
  14. package/dist/rolldown/parse-ast-index.mjs +2 -2
  15. package/dist/rolldown/plugins-index.d.mts +2 -2
  16. package/dist/rolldown/plugins-index.mjs +2 -2
  17. package/dist/rolldown/shared/{binding-BbrDfv1x.mjs → binding-BY0qR5iS.mjs} +28 -27
  18. package/dist/rolldown/shared/{bindingify-input-options-CbBAjvu6.mjs → bindingify-input-options-B8JHmN6_.mjs} +10 -8
  19. package/dist/rolldown/shared/{constructors-CmDKpWIU.d.mts → constructors-DuOq7MqW.d.mts} +1 -1
  20. package/dist/rolldown/shared/{constructors-D9jwEbE4.mjs → constructors-xEvVj3lN.mjs} +1 -1
  21. package/dist/rolldown/shared/{create-bundler-option-wxuQPB7F.mjs → create-bundler-option-COco-7P6.mjs} +93 -19
  22. package/dist/rolldown/shared/{define-config-BFdLpVut.d.mts → define-config-C7HCoqY8.d.mts} +11 -1
  23. package/dist/rolldown/shared/{error-CGhV1ebk.mjs → error-C7pxws0W.mjs} +1 -1
  24. package/dist/rolldown/shared/{load-config-DOMKIWz0.mjs → load-config-DkUBnDsI.mjs} +1 -1
  25. package/dist/rolldown/shared/{logs-DmYCAKcW.mjs → logs-D6uA606S.mjs} +8 -1
  26. package/dist/rolldown/shared/{normalize-string-or-regex-zc1bUto6.mjs → normalize-string-or-regex-F14uvr6D.mjs} +2 -2
  27. package/dist/rolldown/shared/{parse-6TJ5OMPh.mjs → parse-BWeE7Vr9.mjs} +1 -1
  28. package/dist/rolldown/shared/{resolve-tsconfig-Bf6oL9fm.mjs → resolve-tsconfig-DHwpIs5e.mjs} +2 -2
  29. package/dist/rolldown/shared/{rolldown-DZGaRc5R.mjs → rolldown-Bue0gNT5.mjs} +4 -4
  30. package/dist/rolldown/shared/{watch-CUKYWzxY.mjs → watch-RXhXN1aG.mjs} +5 -5
  31. package/dist/rolldown/utils-index.mjs +2 -2
  32. package/dist/tsdown/{build-JVmLFaZt-BN9yuB6k.js → build-JVmLFaZt-DRlLhpV3.js} +10 -8
  33. package/dist/tsdown/{debug-CpC4hV25-BeCITV83.js → debug-CpC4hV25-C-OYr2iI.js} +4 -3
  34. package/dist/tsdown/{detect-Bg-d8iUV-Cr_BRLVW.js → detect-Bg-d8iUV-Du8LljhG.js} +1 -1
  35. package/dist/tsdown/{dist-ByW_jJfv.js → dist-VDcV1Qyy.js} +19 -49
  36. package/dist/tsdown/index-types.d.ts +209 -209
  37. package/dist/tsdown/index.js +4 -4
  38. package/dist/tsdown/{main-bgV9NlwM.js → main-CyNcZUzu.js} +3 -88
  39. package/dist/tsdown/require-BbBF8Ii0-BDaWJgzA.js +320 -0
  40. package/dist/tsdown/{resolver-DE0_sy8o-UMsN-SXx.js → resolver-DE0_sy8o-Bi3xbRxi.js} +2 -3
  41. package/dist/tsdown/run.js +5 -4
  42. package/dist/tsdown/{src-D5xv98Iu.js → src-pN7Bl6zo.js} +4 -4
  43. package/dist/tsdown/style-DiMP8pYv-DIC5PXeH.js +88 -0
  44. package/dist/tsdown/{target-DgdLrXba-DaJJ11xX.js → target-DgdLrXba-DpO9JXxB.js} +6 -172
  45. package/dist/tsdown/{tsc-BFDF_Im9.js → tsc-BLb4pSBY.js} +8 -7
  46. package/dist/tsdown/tsdown-css.js +4 -5
  47. package/dist/tsdown/tsdown-exe.js +41 -4
  48. package/dist/tsdown/version-CQ98ZBpL-D6GAHapk.js +169 -0
  49. package/dist/vite/client/bundledDevClient.mjs +8 -42
  50. package/dist/vite/client/client.mjs +4 -4
  51. package/dist/vite/node/chunks/dist2.js +107 -104
  52. package/dist/vite/node/chunks/node.js +303 -100
  53. package/dist/vite/node/index.d.ts +4 -3
  54. package/package.json +14 -14
  55. package/dist/tsdown/internal-DTYQdXId.js +0 -3
@@ -1,5 +1,5 @@
1
1
  import { mt as __require, pt as __commonJSMin } from "./node.js";
2
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/identity.js
2
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/identity.js
3
3
  var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
4
4
  const ALIAS = Symbol.for("yaml.alias");
5
5
  const DOC = Symbol.for("yaml.document");
@@ -49,7 +49,7 @@ var require_identity = /* @__PURE__ */ __commonJSMin(((exports) => {
49
49
  exports.isSeq = isSeq;
50
50
  }));
51
51
  //#endregion
52
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/visit.js
52
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/visit.js
53
53
  var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
54
54
  var identity = require_identity();
55
55
  const BREAK = Symbol("break visit");
@@ -240,7 +240,7 @@ var require_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
240
240
  exports.visitAsync = visitAsync;
241
241
  }));
242
242
  //#endregion
243
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/directives.js
243
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/directives.js
244
244
  var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
245
245
  var identity = require_identity();
246
246
  var visit = require_visit();
@@ -404,7 +404,7 @@ var require_directives = /* @__PURE__ */ __commonJSMin(((exports) => {
404
404
  exports.Directives = Directives;
405
405
  }));
406
406
  //#endregion
407
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/anchors.js
407
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/anchors.js
408
408
  var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
409
409
  var identity = require_identity();
410
410
  var visit = require_visit();
@@ -471,7 +471,7 @@ var require_anchors = /* @__PURE__ */ __commonJSMin(((exports) => {
471
471
  exports.findNewAnchor = findNewAnchor;
472
472
  }));
473
473
  //#endregion
474
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/applyReviver.js
474
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/applyReviver.js
475
475
  var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
476
476
  /**
477
477
  * Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
@@ -513,7 +513,7 @@ var require_applyReviver = /* @__PURE__ */ __commonJSMin(((exports) => {
513
513
  exports.applyReviver = applyReviver;
514
514
  }));
515
515
  //#endregion
516
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/toJS.js
516
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/toJS.js
517
517
  var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
518
518
  var identity = require_identity();
519
519
  /**
@@ -550,7 +550,7 @@ var require_toJS = /* @__PURE__ */ __commonJSMin(((exports) => {
550
550
  exports.toJS = toJS;
551
551
  }));
552
552
  //#endregion
553
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Node.js
553
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Node.js
554
554
  var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
555
555
  var applyReviver = require_applyReviver();
556
556
  var identity = require_identity();
@@ -584,7 +584,7 @@ var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
584
584
  exports.NodeBase = NodeBase;
585
585
  }));
586
586
  //#endregion
587
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Alias.js
587
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Alias.js
588
588
  var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
589
589
  var anchors = require_anchors();
590
590
  var visit = require_visit();
@@ -619,29 +619,31 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
619
619
  if (node === this) break;
620
620
  if (node.anchor === this.source) found = node;
621
621
  }
622
+ if (found && ctx) {
623
+ const { anchors, doc, maxAliasCount } = ctx;
624
+ let data = anchors.get(found);
625
+ if (!data) {
626
+ toJS.toJS(found, null, ctx);
627
+ data = anchors.get(found);
628
+ }
629
+ /* istanbul ignore if */
630
+ if (data?.res === void 0) throw new ReferenceError("This should not happen: Alias anchor was not resolved?");
631
+ if (maxAliasCount >= 0) {
632
+ data.count += 1;
633
+ if (data.aliasCount === 0) data.aliasCount = getAliasCount(doc, found, anchors);
634
+ if (data.count * data.aliasCount > maxAliasCount) throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");
635
+ }
636
+ }
622
637
  return found;
623
638
  }
624
639
  toJSON(_arg, ctx) {
625
640
  if (!ctx) return { source: this.source };
626
- const { anchors, doc, maxAliasCount } = ctx;
627
- const source = this.resolve(doc, ctx);
641
+ const source = this.resolve(ctx.doc, ctx);
628
642
  if (!source) {
629
643
  const msg = `Unresolved alias (the anchor must be set before the alias): ${this.source}`;
630
644
  throw new ReferenceError(msg);
631
645
  }
632
- let data = anchors.get(source);
633
- if (!data) {
634
- toJS.toJS(source, null, ctx);
635
- data = anchors.get(source);
636
- }
637
- /* istanbul ignore if */
638
- if (data?.res === void 0) throw new ReferenceError("This should not happen: Alias anchor was not resolved?");
639
- if (maxAliasCount >= 0) {
640
- data.count += 1;
641
- if (data.aliasCount === 0) data.aliasCount = getAliasCount(doc, source, anchors);
642
- if (data.count * data.aliasCount > maxAliasCount) throw new ReferenceError("Excessive alias count indicates a resource exhaustion attack");
643
- }
644
- return data.res;
646
+ return ctx.anchors.get(source).res;
645
647
  }
646
648
  toString(ctx, _onComment, _onChompKeep) {
647
649
  const src = `*${this.source}`;
@@ -678,7 +680,7 @@ var require_Alias = /* @__PURE__ */ __commonJSMin(((exports) => {
678
680
  exports.Alias = Alias;
679
681
  }));
680
682
  //#endregion
681
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Scalar.js
683
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Scalar.js
682
684
  var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
683
685
  var identity = require_identity();
684
686
  var Node = require_Node();
@@ -705,7 +707,7 @@ var require_Scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
705
707
  exports.isScalarValue = isScalarValue;
706
708
  }));
707
709
  //#endregion
708
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/createNode.js
710
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/createNode.js
709
711
  var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
710
712
  var Alias = require_Alias();
711
713
  var identity = require_identity();
@@ -768,7 +770,7 @@ var require_createNode = /* @__PURE__ */ __commonJSMin(((exports) => {
768
770
  exports.createNode = createNode;
769
771
  }));
770
772
  //#endregion
771
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Collection.js
773
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Collection.js
772
774
  var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
773
775
  var createNode = require_createNode();
774
776
  var identity = require_identity();
@@ -889,7 +891,7 @@ var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
889
891
  exports.isEmptyPath = isEmptyPath;
890
892
  }));
891
893
  //#endregion
892
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyComment.js
894
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyComment.js
893
895
  var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
894
896
  /**
895
897
  * Stringifies a comment.
@@ -909,7 +911,7 @@ var require_stringifyComment = /* @__PURE__ */ __commonJSMin(((exports) => {
909
911
  exports.stringifyComment = stringifyComment;
910
912
  }));
911
913
  //#endregion
912
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/foldFlowLines.js
914
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/foldFlowLines.js
913
915
  var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
914
916
  const FOLD_FLOW = "flow";
915
917
  const FOLD_BLOCK = "block";
@@ -1029,7 +1031,7 @@ var require_foldFlowLines = /* @__PURE__ */ __commonJSMin(((exports) => {
1029
1031
  exports.foldFlowLines = foldFlowLines;
1030
1032
  }));
1031
1033
  //#endregion
1032
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyString.js
1034
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyString.js
1033
1035
  var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
1034
1036
  var Scalar = require_Scalar();
1035
1037
  var foldFlowLines = require_foldFlowLines();
@@ -1253,7 +1255,7 @@ var require_stringifyString = /* @__PURE__ */ __commonJSMin(((exports) => {
1253
1255
  exports.stringifyString = stringifyString;
1254
1256
  }));
1255
1257
  //#endregion
1256
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringify.js
1258
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringify.js
1257
1259
  var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
1258
1260
  var anchors = require_anchors();
1259
1261
  var identity = require_identity();
@@ -1358,7 +1360,7 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
1358
1360
  exports.stringify = stringify;
1359
1361
  }));
1360
1362
  //#endregion
1361
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyPair.js
1363
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyPair.js
1362
1364
  var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
1363
1365
  var identity = require_identity();
1364
1366
  var Scalar = require_Scalar();
@@ -1454,7 +1456,7 @@ var require_stringifyPair = /* @__PURE__ */ __commonJSMin(((exports) => {
1454
1456
  exports.stringifyPair = stringifyPair;
1455
1457
  }));
1456
1458
  //#endregion
1457
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/log.js
1459
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/log.js
1458
1460
  var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
1459
1461
  var node_process$2 = __require("process");
1460
1462
  function debug(logLevel, ...messages) {
@@ -1470,7 +1472,7 @@ var require_log = /* @__PURE__ */ __commonJSMin(((exports) => {
1470
1472
  exports.warn = warn;
1471
1473
  }));
1472
1474
  //#endregion
1473
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1475
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/merge.js
1474
1476
  var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
1475
1477
  var identity = require_identity();
1476
1478
  var Scalar = require_Scalar();
@@ -1513,7 +1515,7 @@ var require_merge = /* @__PURE__ */ __commonJSMin(((exports) => {
1513
1515
  exports.merge = merge;
1514
1516
  }));
1515
1517
  //#endregion
1516
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/addPairToJSMap.js
1518
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/addPairToJSMap.js
1517
1519
  var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
1518
1520
  var log = require_log();
1519
1521
  var merge = require_merge();
@@ -1564,7 +1566,7 @@ var require_addPairToJSMap = /* @__PURE__ */ __commonJSMin(((exports) => {
1564
1566
  exports.addPairToJSMap = addPairToJSMap;
1565
1567
  }));
1566
1568
  //#endregion
1567
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/Pair.js
1569
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/Pair.js
1568
1570
  var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
1569
1571
  var createNode = require_createNode();
1570
1572
  var stringifyPair = require_stringifyPair();
@@ -1596,7 +1598,7 @@ var require_Pair = /* @__PURE__ */ __commonJSMin(((exports) => {
1596
1598
  exports.createPair = createPair;
1597
1599
  }));
1598
1600
  //#endregion
1599
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyCollection.js
1601
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyCollection.js
1600
1602
  var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
1601
1603
  var identity = require_identity();
1602
1604
  var stringify = require_stringify();
@@ -1714,7 +1716,7 @@ var require_stringifyCollection = /* @__PURE__ */ __commonJSMin(((exports) => {
1714
1716
  exports.stringifyCollection = stringifyCollection;
1715
1717
  }));
1716
1718
  //#endregion
1717
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLMap.js
1719
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLMap.js
1718
1720
  var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
1719
1721
  var stringifyCollection = require_stringifyCollection();
1720
1722
  var addPairToJSMap = require_addPairToJSMap();
@@ -1823,7 +1825,7 @@ var require_YAMLMap = /* @__PURE__ */ __commonJSMin(((exports) => {
1823
1825
  exports.findPair = findPair;
1824
1826
  }));
1825
1827
  //#endregion
1826
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/map.js
1828
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/map.js
1827
1829
  var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
1828
1830
  var identity = require_identity();
1829
1831
  var YAMLMap = require_YAMLMap();
@@ -1840,7 +1842,7 @@ var require_map = /* @__PURE__ */ __commonJSMin(((exports) => {
1840
1842
  };
1841
1843
  }));
1842
1844
  //#endregion
1843
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/nodes/YAMLSeq.js
1845
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/nodes/YAMLSeq.js
1844
1846
  var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
1845
1847
  var createNode = require_createNode();
1846
1848
  var stringifyCollection = require_stringifyCollection();
@@ -1946,7 +1948,7 @@ var require_YAMLSeq = /* @__PURE__ */ __commonJSMin(((exports) => {
1946
1948
  exports.YAMLSeq = YAMLSeq;
1947
1949
  }));
1948
1950
  //#endregion
1949
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/seq.js
1951
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/seq.js
1950
1952
  var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
1951
1953
  var identity = require_identity();
1952
1954
  var YAMLSeq = require_YAMLSeq();
@@ -1963,7 +1965,7 @@ var require_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
1963
1965
  };
1964
1966
  }));
1965
1967
  //#endregion
1966
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/string.js
1968
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/string.js
1967
1969
  var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
1968
1970
  var stringifyString = require_stringifyString();
1969
1971
  exports.string = {
@@ -1978,7 +1980,7 @@ var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
1978
1980
  };
1979
1981
  }));
1980
1982
  //#endregion
1981
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/common/null.js
1983
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/common/null.js
1982
1984
  var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
1983
1985
  var Scalar = require_Scalar();
1984
1986
  const nullTag = {
@@ -1993,7 +1995,7 @@ var require_null = /* @__PURE__ */ __commonJSMin(((exports) => {
1993
1995
  exports.nullTag = nullTag;
1994
1996
  }));
1995
1997
  //#endregion
1996
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/bool.js
1998
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/bool.js
1997
1999
  var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
1998
2000
  var Scalar = require_Scalar();
1999
2001
  const boolTag = {
@@ -2012,7 +2014,7 @@ var require_bool$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2012
2014
  exports.boolTag = boolTag;
2013
2015
  }));
2014
2016
  //#endregion
2015
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyNumber.js
2017
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyNumber.js
2016
2018
  var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
2017
2019
  function stringifyNumber({ format, minFractionDigits, tag, value }) {
2018
2020
  if (typeof value === "bigint") return String(value);
@@ -2033,7 +2035,7 @@ var require_stringifyNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
2033
2035
  exports.stringifyNumber = stringifyNumber;
2034
2036
  }));
2035
2037
  //#endregion
2036
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/float.js
2038
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/float.js
2037
2039
  var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2038
2040
  var Scalar = require_Scalar();
2039
2041
  var stringifyNumber = require_stringifyNumber();
@@ -2074,7 +2076,7 @@ var require_float$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2074
2076
  exports.floatNaN = floatNaN;
2075
2077
  }));
2076
2078
  //#endregion
2077
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/int.js
2079
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/int.js
2078
2080
  var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2079
2081
  var stringifyNumber = require_stringifyNumber();
2080
2082
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2115,7 +2117,7 @@ var require_int$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2115
2117
  exports.intOct = intOct;
2116
2118
  }));
2117
2119
  //#endregion
2118
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/core/schema.js
2120
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/core/schema.js
2119
2121
  var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
2120
2122
  var map = require_map();
2121
2123
  var _null = require_null();
@@ -2139,7 +2141,7 @@ var require_schema$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
2139
2141
  ];
2140
2142
  }));
2141
2143
  //#endregion
2142
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/json/schema.js
2144
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/json/schema.js
2143
2145
  var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2144
2146
  var Scalar = require_Scalar();
2145
2147
  var map = require_map();
@@ -2200,7 +2202,7 @@ var require_schema$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
2200
2202
  });
2201
2203
  }));
2202
2204
  //#endregion
2203
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2205
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/binary.js
2204
2206
  var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
2205
2207
  var node_buffer = __require("buffer");
2206
2208
  var Scalar = require_Scalar();
@@ -2256,7 +2258,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin(((exports) => {
2256
2258
  };
2257
2259
  }));
2258
2260
  //#endregion
2259
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2261
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/pairs.js
2260
2262
  var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
2261
2263
  var identity = require_identity();
2262
2264
  var Pair = require_Pair();
@@ -2317,7 +2319,7 @@ var require_pairs = /* @__PURE__ */ __commonJSMin(((exports) => {
2317
2319
  exports.resolvePairs = resolvePairs;
2318
2320
  }));
2319
2321
  //#endregion
2320
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2322
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/omap.js
2321
2323
  var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
2322
2324
  var identity = require_identity();
2323
2325
  var toJS = require_toJS();
@@ -2382,7 +2384,7 @@ var require_omap = /* @__PURE__ */ __commonJSMin(((exports) => {
2382
2384
  exports.omap = omap;
2383
2385
  }));
2384
2386
  //#endregion
2385
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2387
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/bool.js
2386
2388
  var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
2387
2389
  var Scalar = require_Scalar();
2388
2390
  function boolStringify({ value, source }, ctx) {
@@ -2409,7 +2411,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin(((exports) => {
2409
2411
  exports.trueTag = trueTag;
2410
2412
  }));
2411
2413
  //#endregion
2412
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/float.js
2414
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/float.js
2413
2415
  var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
2414
2416
  var Scalar = require_Scalar();
2415
2417
  var stringifyNumber = require_stringifyNumber();
@@ -2453,7 +2455,7 @@ var require_float = /* @__PURE__ */ __commonJSMin(((exports) => {
2453
2455
  exports.floatNaN = floatNaN;
2454
2456
  }));
2455
2457
  //#endregion
2456
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/int.js
2458
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/int.js
2457
2459
  var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
2458
2460
  var stringifyNumber = require_stringifyNumber();
2459
2461
  const intIdentify = (value) => typeof value === "bigint" || Number.isInteger(value);
@@ -2526,7 +2528,7 @@ var require_int = /* @__PURE__ */ __commonJSMin(((exports) => {
2526
2528
  exports.intOct = intOct;
2527
2529
  }));
2528
2530
  //#endregion
2529
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/set.js
2531
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/set.js
2530
2532
  var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
2531
2533
  var identity = require_identity();
2532
2534
  var Pair = require_Pair();
@@ -2595,7 +2597,7 @@ var require_set = /* @__PURE__ */ __commonJSMin(((exports) => {
2595
2597
  exports.set = set;
2596
2598
  }));
2597
2599
  //#endregion
2598
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2600
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/timestamp.js
2599
2601
  var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
2600
2602
  var stringifyNumber = require_stringifyNumber();
2601
2603
  /** Internal types handle bigint as number, because TS can't figure it out. */
@@ -2678,7 +2680,7 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin(((exports) => {
2678
2680
  exports.timestamp = timestamp;
2679
2681
  }));
2680
2682
  //#endregion
2681
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/yaml-1.1/schema.js
2683
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/yaml-1.1/schema.js
2682
2684
  var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2683
2685
  var map = require_map();
2684
2686
  var _null = require_null();
@@ -2718,7 +2720,7 @@ var require_schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2718
2720
  ];
2719
2721
  }));
2720
2722
  //#endregion
2721
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/tags.js
2723
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/tags.js
2722
2724
  var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
2723
2725
  var map = require_map();
2724
2726
  var _null = require_null();
@@ -2804,7 +2806,7 @@ var require_tags = /* @__PURE__ */ __commonJSMin(((exports) => {
2804
2806
  exports.getTags = getTags;
2805
2807
  }));
2806
2808
  //#endregion
2807
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/schema/Schema.js
2809
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/schema/Schema.js
2808
2810
  var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2809
2811
  var identity = require_identity();
2810
2812
  var map = require_map();
@@ -2832,7 +2834,7 @@ var require_Schema = /* @__PURE__ */ __commonJSMin(((exports) => {
2832
2834
  };
2833
2835
  }));
2834
2836
  //#endregion
2835
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/stringify/stringifyDocument.js
2837
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/stringify/stringifyDocument.js
2836
2838
  var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
2837
2839
  var identity = require_identity();
2838
2840
  var stringify = require_stringify();
@@ -2893,7 +2895,7 @@ var require_stringifyDocument = /* @__PURE__ */ __commonJSMin(((exports) => {
2893
2895
  exports.stringifyDocument = stringifyDocument;
2894
2896
  }));
2895
2897
  //#endregion
2896
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/doc/Document.js
2898
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/doc/Document.js
2897
2899
  var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
2898
2900
  var Alias = require_Alias();
2899
2901
  var Collection = require_Collection();
@@ -3174,7 +3176,7 @@ var require_Document = /* @__PURE__ */ __commonJSMin(((exports) => {
3174
3176
  exports.Document = Document;
3175
3177
  }));
3176
3178
  //#endregion
3177
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/errors.js
3179
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/errors.js
3178
3180
  var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
3179
3181
  var YAMLError = class extends Error {
3180
3182
  constructor(name, pos, code, message) {
@@ -3227,7 +3229,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
3227
3229
  exports.prettifyError = prettifyError;
3228
3230
  }));
3229
3231
  //#endregion
3230
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-props.js
3232
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-props.js
3231
3233
  var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
3232
3234
  function resolveProps(tokens, { flow, indicator, next, offset, onError, parentIndent, startOnNewline }) {
3233
3235
  let spaceBefore = false;
@@ -3334,7 +3336,7 @@ var require_resolve_props = /* @__PURE__ */ __commonJSMin(((exports) => {
3334
3336
  exports.resolveProps = resolveProps;
3335
3337
  }));
3336
3338
  //#endregion
3337
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-contains-newline.js
3339
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-contains-newline.js
3338
3340
  var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) => {
3339
3341
  function containsNewline(key) {
3340
3342
  if (!key) return null;
@@ -3363,7 +3365,7 @@ var require_util_contains_newline = /* @__PURE__ */ __commonJSMin(((exports) =>
3363
3365
  exports.containsNewline = containsNewline;
3364
3366
  }));
3365
3367
  //#endregion
3366
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-flow-indent-check.js
3368
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-flow-indent-check.js
3367
3369
  var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) => {
3368
3370
  var utilContainsNewline = require_util_contains_newline();
3369
3371
  function flowIndentCheck(indent, fc, onError) {
@@ -3375,7 +3377,7 @@ var require_util_flow_indent_check = /* @__PURE__ */ __commonJSMin(((exports) =>
3375
3377
  exports.flowIndentCheck = flowIndentCheck;
3376
3378
  }));
3377
3379
  //#endregion
3378
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-map-includes.js
3380
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-map-includes.js
3379
3381
  var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
3380
3382
  var identity = require_identity();
3381
3383
  function mapIncludes(ctx, items, search) {
@@ -3387,7 +3389,7 @@ var require_util_map_includes = /* @__PURE__ */ __commonJSMin(((exports) => {
3387
3389
  exports.mapIncludes = mapIncludes;
3388
3390
  }));
3389
3391
  //#endregion
3390
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-map.js
3392
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-map.js
3391
3393
  var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
3392
3394
  var Pair = require_Pair();
3393
3395
  var YAMLMap = require_YAMLMap();
@@ -3475,7 +3477,7 @@ var require_resolve_block_map = /* @__PURE__ */ __commonJSMin(((exports) => {
3475
3477
  exports.resolveBlockMap = resolveBlockMap;
3476
3478
  }));
3477
3479
  //#endregion
3478
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-seq.js
3480
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-seq.js
3479
3481
  var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
3480
3482
  var YAMLSeq = require_YAMLSeq();
3481
3483
  var resolveProps = require_resolve_props();
@@ -3520,7 +3522,7 @@ var require_resolve_block_seq = /* @__PURE__ */ __commonJSMin(((exports) => {
3520
3522
  exports.resolveBlockSeq = resolveBlockSeq;
3521
3523
  }));
3522
3524
  //#endregion
3523
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-end.js
3525
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-end.js
3524
3526
  var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
3525
3527
  function resolveEnd(end, offset, reqSpace, onError) {
3526
3528
  let comment = "";
@@ -3558,7 +3560,7 @@ var require_resolve_end = /* @__PURE__ */ __commonJSMin(((exports) => {
3558
3560
  exports.resolveEnd = resolveEnd;
3559
3561
  }));
3560
3562
  //#endregion
3561
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-collection.js
3563
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-collection.js
3562
3564
  var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
3563
3565
  var identity = require_identity();
3564
3566
  var Pair = require_Pair();
@@ -3721,7 +3723,7 @@ var require_resolve_flow_collection = /* @__PURE__ */ __commonJSMin(((exports) =
3721
3723
  exports.resolveFlowCollection = resolveFlowCollection;
3722
3724
  }));
3723
3725
  //#endregion
3724
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-collection.js
3726
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-collection.js
3725
3727
  var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
3726
3728
  var identity = require_identity();
3727
3729
  var Scalar = require_Scalar();
@@ -3773,7 +3775,7 @@ var require_compose_collection = /* @__PURE__ */ __commonJSMin(((exports) => {
3773
3775
  exports.composeCollection = composeCollection;
3774
3776
  }));
3775
3777
  //#endregion
3776
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-block-scalar.js
3778
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-block-scalar.js
3777
3779
  var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
3778
3780
  var Scalar = require_Scalar();
3779
3781
  function resolveBlockScalar(ctx, scalar, onError) {
@@ -3950,7 +3952,7 @@ var require_resolve_block_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
3950
3952
  exports.resolveBlockScalar = resolveBlockScalar;
3951
3953
  }));
3952
3954
  //#endregion
3953
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/resolve-flow-scalar.js
3955
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/resolve-flow-scalar.js
3954
3956
  var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
3955
3957
  var Scalar = require_Scalar();
3956
3958
  var resolveEnd = require_resolve_end();
@@ -4020,40 +4022,41 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4020
4022
  case "`": badChar = `reserved character ${source[0]}`;
4021
4023
  }
4022
4024
  if (badChar) onError(0, "BAD_SCALAR_START", `Plain value cannot start with ${badChar}`);
4023
- return foldLines(source);
4025
+ return unfoldLines(source);
4024
4026
  }
4025
4027
  function singleQuotedValue(source, onError) {
4026
4028
  if (source[source.length - 1] !== "'" || source.length === 1) onError(source.length, "MISSING_CHAR", "Missing closing 'quote");
4027
- return foldLines(source.slice(1, -1)).replace(/''/g, "'");
4029
+ return unfoldLines(source.slice(1, -1)).replace(/''/g, "'");
4028
4030
  }
4029
- function foldLines(source) {
4031
+ function unfoldLines(source) {
4032
+ const line = /(.*?)\r?\n/sy;
4033
+ let match = line.exec(source);
4034
+ if (!match) return source;
4030
4035
  /**
4031
- * The negative lookbehind here and in the `re` RegExp is to
4036
+ * The negative lookbehinds in these RegExps are to
4032
4037
  * prevent causing a polynomial search time in certain cases.
4033
4038
  *
4034
- * The try-catch is for Safari, which doesn't support this yet:
4039
+ * The try-catch is for Safari < 16.4 and other old browsers:
4035
4040
  * https://caniuse.com/js-regexp-lookbehind
4036
4041
  */
4037
- let first, line;
4042
+ let trimEnd, trimBoth;
4038
4043
  try {
4039
- first = new RegExp("(.*?)(?<![ ])[ ]*\r?\n", "sy");
4040
- line = new RegExp("[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?\n", "sy");
4044
+ trimEnd = new RegExp("(?<![ ])[ ]+$");
4045
+ trimBoth = new RegExp("^[ ]+|(?<![ ])[ ]+$", "g");
4041
4046
  } catch {
4042
- first = /(.*?)[ \t]*\r?\n/sy;
4043
- line = /[ \t]*(.*?)[ \t]*\r?\n/sy;
4047
+ trimEnd = /[ \t]+$/;
4048
+ trimBoth = /^[ \t]+|[ \t]+$/g;
4044
4049
  }
4045
- let match = first.exec(source);
4046
- if (!match) return source;
4047
- let res = match[1];
4050
+ let res = match[1].replace(trimEnd, "");
4048
4051
  let sep = " ";
4049
- let pos = first.lastIndex;
4050
- line.lastIndex = pos;
4052
+ let pos = line.lastIndex;
4051
4053
  while (match = line.exec(source)) {
4052
- if (match[1] === "") {
4054
+ const lm = match[1].replace(trimBoth, "");
4055
+ if (lm === "") {
4053
4056
  if (sep === "\n") res += sep;
4054
4057
  else sep = "\n";
4055
4058
  } else {
4056
- res += sep + match[1];
4059
+ res += sep + lm;
4057
4060
  sep = " ";
4058
4061
  }
4059
4062
  pos = line.lastIndex;
@@ -4154,7 +4157,7 @@ var require_resolve_flow_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4154
4157
  exports.resolveFlowScalar = resolveFlowScalar;
4155
4158
  }));
4156
4159
  //#endregion
4157
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-scalar.js
4160
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-scalar.js
4158
4161
  var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4159
4162
  var identity = require_identity();
4160
4163
  var Scalar = require_Scalar();
@@ -4215,7 +4218,7 @@ var require_compose_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4215
4218
  exports.composeScalar = composeScalar;
4216
4219
  }));
4217
4220
  //#endregion
4218
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4221
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/util-empty-scalar-position.js
4219
4222
  var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports) => {
4220
4223
  function emptyScalarPosition(offset, before, pos) {
4221
4224
  if (before) {
@@ -4242,7 +4245,7 @@ var require_util_empty_scalar_position = /* @__PURE__ */ __commonJSMin(((exports
4242
4245
  exports.emptyScalarPosition = emptyScalarPosition;
4243
4246
  }));
4244
4247
  //#endregion
4245
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-node.js
4248
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-node.js
4246
4249
  var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
4247
4250
  var Alias = require_Alias();
4248
4251
  var identity = require_identity();
@@ -4333,7 +4336,7 @@ var require_compose_node = /* @__PURE__ */ __commonJSMin(((exports) => {
4333
4336
  exports.composeNode = composeNode;
4334
4337
  }));
4335
4338
  //#endregion
4336
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/compose-doc.js
4339
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/compose-doc.js
4337
4340
  var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
4338
4341
  var Document = require_Document();
4339
4342
  var composeNode = require_compose_node();
@@ -4375,7 +4378,7 @@ var require_compose_doc = /* @__PURE__ */ __commonJSMin(((exports) => {
4375
4378
  exports.composeDoc = composeDoc;
4376
4379
  }));
4377
4380
  //#endregion
4378
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/compose/composer.js
4381
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/compose/composer.js
4379
4382
  var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
4380
4383
  var node_process$1 = __require("process");
4381
4384
  var directives = require_directives();
@@ -4573,7 +4576,7 @@ var require_composer = /* @__PURE__ */ __commonJSMin(((exports) => {
4573
4576
  exports.Composer = Composer;
4574
4577
  }));
4575
4578
  //#endregion
4576
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-scalar.js
4579
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-scalar.js
4577
4580
  var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4578
4581
  var resolveBlockScalar = require_resolve_block_scalar();
4579
4582
  var resolveFlowScalar = require_resolve_flow_scalar();
@@ -4840,7 +4843,7 @@ var require_cst_scalar = /* @__PURE__ */ __commonJSMin(((exports) => {
4840
4843
  exports.setScalarValue = setScalarValue;
4841
4844
  }));
4842
4845
  //#endregion
4843
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-stringify.js
4846
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-stringify.js
4844
4847
  var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
4845
4848
  /**
4846
4849
  * Stringify a CST document, token, or collection item
@@ -4891,7 +4894,7 @@ var require_cst_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
4891
4894
  exports.stringify = stringify;
4892
4895
  }));
4893
4896
  //#endregion
4894
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst-visit.js
4897
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst-visit.js
4895
4898
  var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
4896
4899
  const BREAK = Symbol("break visit");
4897
4900
  const SKIP = Symbol("skip children");
@@ -4982,7 +4985,7 @@ var require_cst_visit = /* @__PURE__ */ __commonJSMin(((exports) => {
4982
4985
  exports.visit = visit;
4983
4986
  }));
4984
4987
  //#endregion
4985
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/cst.js
4988
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/cst.js
4986
4989
  var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
4987
4990
  var cstScalar = require_cst_scalar();
4988
4991
  var cstStringify = require_cst_stringify();
@@ -5061,7 +5064,7 @@ var require_cst = /* @__PURE__ */ __commonJSMin(((exports) => {
5061
5064
  exports.tokenType = tokenType;
5062
5065
  }));
5063
5066
  //#endregion
5064
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/lexer.js
5067
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/lexer.js
5065
5068
  var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
5066
5069
  var cst = require_cst();
5067
5070
  function isEmpty(ch) {
@@ -5594,7 +5597,7 @@ var require_lexer = /* @__PURE__ */ __commonJSMin(((exports) => {
5594
5597
  exports.Lexer = Lexer;
5595
5598
  }));
5596
5599
  //#endregion
5597
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/line-counter.js
5600
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/line-counter.js
5598
5601
  var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
5599
5602
  /**
5600
5603
  * Tracks newlines during parsing in order to provide an efficient API for
@@ -5641,7 +5644,7 @@ var require_line_counter = /* @__PURE__ */ __commonJSMin(((exports) => {
5641
5644
  exports.LineCounter = LineCounter;
5642
5645
  }));
5643
5646
  //#endregion
5644
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/parse/parser.js
5647
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/parse/parser.js
5645
5648
  var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
5646
5649
  var node_process = __require("process");
5647
5650
  var cst = require_cst();
@@ -6507,7 +6510,7 @@ var require_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
6507
6510
  exports.Parser = Parser;
6508
6511
  }));
6509
6512
  //#endregion
6510
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/public-api.js
6513
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/public-api.js
6511
6514
  var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
6512
6515
  var composer = require_composer();
6513
6516
  var Document = require_Document();
@@ -6596,7 +6599,7 @@ var require_public_api = /* @__PURE__ */ __commonJSMin(((exports) => {
6596
6599
  exports.stringify = stringify;
6597
6600
  }));
6598
6601
  //#endregion
6599
- //#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js
6602
+ //#region ../../node_modules/.pnpm/yaml@2.9.1/node_modules/yaml/dist/index.js
6600
6603
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
6601
6604
  var composer = require_composer();
6602
6605
  var Document = require_Document();