@parcel/codeframe 2.0.0-nightly.1105 → 2.0.0-nightly.1110

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/lib/codeframe.js CHANGED
@@ -1141,8 +1141,7 @@ parcelRequire.register("7M7DM", function(module, exports) {
1141
1141
  * @param {...(RegExp | string) } args
1142
1142
  * @returns {string}
1143
1143
  */ function $5a92f159cc08d656$var$concat(...args) {
1144
- const joined = args.map((x)=>$5a92f159cc08d656$var$source(x)
1145
- ).join("");
1144
+ const joined = args.map((x)=>$5a92f159cc08d656$var$source(x)).join("");
1146
1145
  return joined;
1147
1146
  }
1148
1147
  /*
@@ -1560,8 +1559,7 @@ parcelRequire.register("hObwu", function(module, exports) {
1560
1559
  * @param {...(RegExp | string) } args
1561
1560
  * @returns {string}
1562
1561
  */ function $cf700b6a31b03ff7$var$concat(...args) {
1563
- const joined = args.map((x)=>$cf700b6a31b03ff7$var$source(x)
1564
- ).join("");
1562
+ const joined = args.map((x)=>$cf700b6a31b03ff7$var$source(x)).join("");
1565
1563
  return joined;
1566
1564
  }
1567
1565
  /**
@@ -1571,8 +1569,7 @@ parcelRequire.register("hObwu", function(module, exports) {
1571
1569
  * @param {(RegExp | string)[] } args
1572
1570
  * @returns {string}
1573
1571
  */ function $cf700b6a31b03ff7$var$either(...args) {
1574
- const joined = "(" + args.map((x)=>$cf700b6a31b03ff7$var$source(x)
1575
- ).join("|") + ")";
1572
+ const joined = "(" + args.map((x)=>$cf700b6a31b03ff7$var$source(x)).join("|") + ")";
1576
1573
  return joined;
1577
1574
  }
1578
1575
  /*
@@ -2719,8 +2716,7 @@ parcelRequire.register("eZalx", function(module, exports) {
2719
2716
  * @param {...(RegExp | string) } args
2720
2717
  * @returns {string}
2721
2718
  */ function $ae8ec9c4d05495a7$var$concat(...args) {
2722
- const joined = args.map((x)=>$ae8ec9c4d05495a7$var$source(x)
2723
- ).join("");
2719
+ const joined = args.map((x)=>$ae8ec9c4d05495a7$var$source(x)).join("");
2724
2720
  return joined;
2725
2721
  }
2726
2722
  /*
@@ -3024,8 +3020,7 @@ parcelRequire.register("aFWxq", function(module, exports) {
3024
3020
  * @param {...(RegExp | string) } args
3025
3021
  * @returns {string}
3026
3022
  */ function $7c5b242976a41258$var$concat(...args) {
3027
- const joined = args.map((x)=>$7c5b242976a41258$var$source(x)
3028
- ).join("");
3023
+ const joined = args.map((x)=>$7c5b242976a41258$var$source(x)).join("");
3029
3024
  return joined;
3030
3025
  }
3031
3026
  /*
@@ -3301,8 +3296,7 @@ parcelRequire.register("cNyI5", function(module, exports) {
3301
3296
  * @param {...(RegExp | string) } args
3302
3297
  * @returns {string}
3303
3298
  */ function $9514fc520c7e6d79$var$concat(...args) {
3304
- const joined = args.map((x)=>$9514fc520c7e6d79$var$source(x)
3305
- ).join("");
3299
+ const joined = args.map((x)=>$9514fc520c7e6d79$var$source(x)).join("");
3306
3300
  return joined;
3307
3301
  }
3308
3302
  /*
@@ -4195,8 +4189,7 @@ Website: https://coffeescript.org
4195
4189
  "function",
4196
4190
  "static"
4197
4191
  ];
4198
- const excluding = (list)=>(kw)=>!list.includes(kw)
4199
- ;
4192
+ const excluding = (list)=>(kw)=>!list.includes(kw);
4200
4193
  const KEYWORDS$1 = {
4201
4194
  keyword: $06e6cb1df96f0cb4$var$KEYWORDS.concat(COFFEE_KEYWORDS).filter(excluding(NOT_VALID_KEYWORDS)).join(" "),
4202
4195
  literal: $06e6cb1df96f0cb4$var$LITERALS.concat(COFFEE_LITERALS).join(" "),
@@ -4569,8 +4562,7 @@ parcelRequire.register("2J3Xy", function(module, exports) {
4569
4562
  * @param {...(RegExp | string) } args
4570
4563
  * @returns {string}
4571
4564
  */ function $1fc2db07208b79ba$var$concat(...args) {
4572
- const joined = args.map((x)=>$1fc2db07208b79ba$var$source(x)
4573
- ).join("");
4565
+ const joined = args.map((x)=>$1fc2db07208b79ba$var$source(x)).join("");
4574
4566
  return joined;
4575
4567
  }
4576
4568
  /*
@@ -6101,8 +6093,7 @@ parcelRequire.register("bnL0J", function(module, exports) {
6101
6093
  * @param {...(RegExp | string) } args
6102
6094
  * @returns {string}
6103
6095
  */ function $84964f0d2be25bfb$var$concat(...args) {
6104
- const joined = args.map((x)=>$84964f0d2be25bfb$var$source(x)
6105
- ).join("");
6096
+ const joined = args.map((x)=>$84964f0d2be25bfb$var$source(x)).join("");
6106
6097
  return joined;
6107
6098
  }
6108
6099
  /*
@@ -6454,8 +6445,7 @@ Category: scripting
6454
6445
  "Element",
6455
6446
  "ElementList"
6456
6447
  ];
6457
- const NULLABLE_BUILT_IN_TYPES = BUILT_IN_TYPES.map((e)=>`${e}?`
6458
- );
6448
+ const NULLABLE_BUILT_IN_TYPES = BUILT_IN_TYPES.map((e)=>`${e}?`);
6459
6449
  const KEYWORDS = {
6460
6450
  keyword: "abstract as assert async await break case catch class const continue covariant default deferred do dynamic else enum export extends extension external factory false final finally for Function get hide if implements import in inferface is late library mixin new null on operator part required rethrow return set show static super switch sync this throw true try typedef var void while with yield",
6461
6451
  built_in: BUILT_IN_TYPES.concat(NULLABLE_BUILT_IN_TYPES).concat([
@@ -7635,8 +7625,7 @@ parcelRequire.register("fzW3v", function(module, exports) {
7635
7625
  * @param {...(RegExp | string) } args
7636
7626
  * @returns {string}
7637
7627
  */ function $b57728818d4578d6$var$concat(...args) {
7638
- const joined = args.map((x)=>$b57728818d4578d6$var$source(x)
7639
- ).join("");
7628
+ const joined = args.map((x)=>$b57728818d4578d6$var$source(x)).join("");
7640
7629
  return joined;
7641
7630
  }
7642
7631
  /*
@@ -7997,8 +7986,7 @@ parcelRequire.register("iwg2f", function(module, exports) {
7997
7986
  * @param {...(RegExp | string) } args
7998
7987
  * @returns {string}
7999
7988
  */ function $d7b7a77239f0b9e7$var$concat(...args) {
8000
- const joined = args.map((x)=>$d7b7a77239f0b9e7$var$source(x)
8001
- ).join("");
7989
+ const joined = args.map((x)=>$d7b7a77239f0b9e7$var$source(x)).join("");
8002
7990
  return joined;
8003
7991
  }
8004
7992
  /*
@@ -8390,8 +8378,7 @@ parcelRequire.register("fm4Qc", function(module, exports) {
8390
8378
  * @param {...(RegExp | string) } args
8391
8379
  * @returns {string}
8392
8380
  */ function $b2dcaa69c6610340$var$concat(...args) {
8393
- const joined = args.map((x)=>$b2dcaa69c6610340$var$source(x)
8394
- ).join("");
8381
+ const joined = args.map((x)=>$b2dcaa69c6610340$var$source(x)).join("");
8395
8382
  return joined;
8396
8383
  }
8397
8384
  /*
@@ -8593,8 +8580,7 @@ parcelRequire.register("jOhyW", function(module, exports) {
8593
8580
  * @param {...(RegExp | string) } args
8594
8581
  * @returns {string}
8595
8582
  */ function $e6c04f65ce1a9d98$var$concat(...args) {
8596
- const joined = args.map((x)=>$e6c04f65ce1a9d98$var$source(x)
8597
- ).join("");
8583
+ const joined = args.map((x)=>$e6c04f65ce1a9d98$var$source(x)).join("");
8598
8584
  return joined;
8599
8585
  }
8600
8586
  /** @type LanguageFn */ function $e6c04f65ce1a9d98$var$gams(hljs) {
@@ -9314,8 +9300,7 @@ parcelRequire.register("26V94", function(module, exports) {
9314
9300
  * @param {...(RegExp | string) } args
9315
9301
  * @returns {string}
9316
9302
  */ function $1898782c81cbfbc8$var$concat(...args) {
9317
- const joined = args.map((x)=>$1898782c81cbfbc8$var$source(x)
9318
- ).join("");
9303
+ const joined = args.map((x)=>$1898782c81cbfbc8$var$source(x)).join("");
9319
9304
  return joined;
9320
9305
  }
9321
9306
  /*
@@ -9587,8 +9572,7 @@ parcelRequire.register("bq8nG", function(module, exports) {
9587
9572
  * @param {...(RegExp | string) } args
9588
9573
  * @returns {string}
9589
9574
  */ function $85089fb2298ff5f5$var$concat(...args) {
9590
- const joined = args.map((x)=>$85089fb2298ff5f5$var$source(x)
9591
- ).join("");
9575
+ const joined = args.map((x)=>$85089fb2298ff5f5$var$source(x)).join("");
9592
9576
  return joined;
9593
9577
  }
9594
9578
  /**
@@ -9598,8 +9582,7 @@ parcelRequire.register("bq8nG", function(module, exports) {
9598
9582
  * @param {(RegExp | string)[] } args
9599
9583
  * @returns {string}
9600
9584
  */ function $85089fb2298ff5f5$var$either(...args) {
9601
- const joined = "(" + args.map((x)=>$85089fb2298ff5f5$var$source(x)
9602
- ).join("|") + ")";
9585
+ const joined = "(" + args.map((x)=>$85089fb2298ff5f5$var$source(x)).join("|") + ")";
9603
9586
  return joined;
9604
9587
  }
9605
9588
  /*
@@ -10257,8 +10240,7 @@ parcelRequire.register("gpFwf", function(module, exports) {
10257
10240
  * @param {...(RegExp | string) } args
10258
10241
  * @returns {string}
10259
10242
  */ function $bf2f2fffb0d29d6e$var$concat(...args) {
10260
- const joined = args.map((x)=>$bf2f2fffb0d29d6e$var$source(x)
10261
- ).join("");
10243
+ const joined = args.map((x)=>$bf2f2fffb0d29d6e$var$source(x)).join("");
10262
10244
  return joined;
10263
10245
  }
10264
10246
  /**
@@ -10268,8 +10250,7 @@ parcelRequire.register("gpFwf", function(module, exports) {
10268
10250
  * @param {(RegExp | string)[] } args
10269
10251
  * @returns {string}
10270
10252
  */ function $bf2f2fffb0d29d6e$var$either(...args) {
10271
- const joined = "(" + args.map((x)=>$bf2f2fffb0d29d6e$var$source(x)
10272
- ).join("|") + ")";
10253
+ const joined = "(" + args.map((x)=>$bf2f2fffb0d29d6e$var$source(x)).join("|") + ")";
10273
10254
  return joined;
10274
10255
  }
10275
10256
  /*
@@ -10804,8 +10785,7 @@ parcelRequire.register("5QXeO", function(module, exports) {
10804
10785
  * @param {...(RegExp | string) } args
10805
10786
  * @returns {string}
10806
10787
  */ function $442fc27d72794cdb$var$concat(...args) {
10807
- const joined = args.map((x)=>$442fc27d72794cdb$var$source(x)
10808
- ).join("");
10788
+ const joined = args.map((x)=>$442fc27d72794cdb$var$source(x)).join("");
10809
10789
  return joined;
10810
10790
  }
10811
10791
  /**
@@ -10815,8 +10795,7 @@ parcelRequire.register("5QXeO", function(module, exports) {
10815
10795
  * @param {(RegExp | string)[] } args
10816
10796
  * @returns {string}
10817
10797
  */ function $442fc27d72794cdb$var$either(...args) {
10818
- const joined = "(" + args.map((x)=>$442fc27d72794cdb$var$source(x)
10819
- ).join("|") + ")";
10798
+ const joined = "(" + args.map((x)=>$442fc27d72794cdb$var$source(x)).join("|") + ")";
10820
10799
  return joined;
10821
10800
  }
10822
10801
  /*
@@ -10960,8 +10939,7 @@ parcelRequire.register("h6r9o", function(module, exports) {
10960
10939
  * @param {...(RegExp | string) } args
10961
10940
  * @returns {string}
10962
10941
  */ function $c7380ec140d20a0e$var$concat(...args) {
10963
- const joined = args.map((x)=>$c7380ec140d20a0e$var$source(x)
10964
- ).join("");
10942
+ const joined = args.map((x)=>$c7380ec140d20a0e$var$source(x)).join("");
10965
10943
  return joined;
10966
10944
  }
10967
10945
  /*
@@ -11797,8 +11775,7 @@ const $5b508ad515129b53$var$BUILT_INS = [].concat($5b508ad515129b53$var$BUILT_IN
11797
11775
  * @param {...(RegExp | string) } args
11798
11776
  * @returns {string}
11799
11777
  */ function $5b508ad515129b53$var$concat(...args) {
11800
- const joined = args.map((x)=>$5b508ad515129b53$var$source(x)
11801
- ).join("");
11778
+ const joined = args.map((x)=>$5b508ad515129b53$var$source(x)).join("");
11802
11779
  return joined;
11803
11780
  }
11804
11781
  /*
@@ -13337,8 +13314,7 @@ parcelRequire.register("1pztl", function(module, exports) {
13337
13314
  * @param {(RegExp | string)[] } args
13338
13315
  * @returns {string}
13339
13316
  */ function $1073a45449c6bfc3$var$either(...args) {
13340
- const joined = "(" + args.map((x)=>$1073a45449c6bfc3$var$source(x)
13341
- ).join("|") + ")";
13317
+ const joined = "(" + args.map((x)=>$1073a45449c6bfc3$var$source(x)).join("|") + ")";
13342
13318
  return joined;
13343
13319
  }
13344
13320
  /*
@@ -13368,8 +13344,7 @@ Category: markup
13368
13344
  "(?:[Ss]igma|varsigma|tau|[Uu]psilon|[Pp]hi|varphi|chi|[Pp]si|[Oo]mega)",
13369
13345
  "(?:frac|sum|prod|lim|infty|times|sqrt|leq|geq|left|right|middle|[bB]igg?)",
13370
13346
  "(?:[lr]angle|q?quad|[lcvdi]?dots|d?dot|hat|tilde|bar)"
13371
- ].map((word)=>word + "(?![a-zA-Z@:_])"
13372
- ));
13347
+ ].map((word)=>word + "(?![a-zA-Z@:_])"));
13373
13348
  const L3_REGEX = new RegExp([
13374
13349
  // A function \module_function_name:signature or \__module_function_name:signature,
13375
13350
  // where both module and function_name need at least two characters and
@@ -13391,8 +13366,7 @@ Category: markup
13391
13366
  "(?:hbox|vbox):n",
13392
13367
  "::[a-zA-Z]_unbraced",
13393
13368
  "::[a-zA-Z:]"
13394
- ].map((pattern)=>pattern + "(?![a-zA-Z:_])"
13395
- ).join("|"));
13369
+ ].map((pattern)=>pattern + "(?![a-zA-Z:_])").join("|"));
13396
13370
  const L2_VARIANTS = [
13397
13371
  {
13398
13372
  begin: /[a-zA-Z@]+/
@@ -13599,8 +13573,7 @@ Category: markup
13599
13573
  contains: [
13600
13574
  VERBATIM_DELIMITED_EQUAL()
13601
13575
  ]
13602
- })
13603
- ),
13576
+ })),
13604
13577
  CSNAME("mint", ARGUMENT_AND_THEN(ARGUMENT_M, {
13605
13578
  contains: [
13606
13579
  VERBATIM_DELIMITED_EQUAL()
@@ -13638,10 +13611,8 @@ Category: markup
13638
13611
  "",
13639
13612
  "B",
13640
13613
  "L"
13641
- ].map((prefix)=>BEGIN_ENV(prefix + "Verbatim" + suffix, ARGUMENT_AND_THEN(ARGUMENT_O, VERBATIM_DELIMITED_ENV(prefix + "Verbatim" + suffix)))
13642
- )
13643
- ]
13644
- )),
13614
+ ].map((prefix)=>BEGIN_ENV(prefix + "Verbatim" + suffix, ARGUMENT_AND_THEN(ARGUMENT_O, VERBATIM_DELIMITED_ENV(prefix + "Verbatim" + suffix))))
13615
+ ])),
13645
13616
  BEGIN_ENV("minted", ARGUMENT_AND_THEN(ARGUMENT_O, ARGUMENT_AND_THEN(ARGUMENT_M, VERBATIM_DELIMITED_ENV("minted")))),
13646
13617
  ];
13647
13618
  return {
@@ -14589,8 +14560,7 @@ parcelRequire.register("8K50D", function(module, exports) {
14589
14560
  * @param {...(RegExp | string) } args
14590
14561
  * @returns {string}
14591
14562
  */ function $65d68158ee418c1d$var$concat(...args) {
14592
- const joined = args.map((x)=>$65d68158ee418c1d$var$source(x)
14593
- ).join("");
14563
+ const joined = args.map((x)=>$65d68158ee418c1d$var$source(x)).join("");
14594
14564
  return joined;
14595
14565
  }
14596
14566
  /*
@@ -21606,8 +21576,7 @@ const $8daf8747be03d9cd$var$SYSTEM_SYMBOLS = [
21606
21576
  * @param {...(RegExp | string) } args
21607
21577
  * @returns {string}
21608
21578
  */ function $8daf8747be03d9cd$var$concat(...args) {
21609
- const joined = args.map((x)=>$8daf8747be03d9cd$var$source(x)
21610
- ).join("");
21579
+ const joined = args.map((x)=>$8daf8747be03d9cd$var$source(x)).join("");
21611
21580
  return joined;
21612
21581
  }
21613
21582
  /**
@@ -21617,8 +21586,7 @@ const $8daf8747be03d9cd$var$SYSTEM_SYMBOLS = [
21617
21586
  * @param {(RegExp | string)[] } args
21618
21587
  * @returns {string}
21619
21588
  */ function $8daf8747be03d9cd$var$either(...args) {
21620
- const joined = "(" + args.map((x)=>$8daf8747be03d9cd$var$source(x)
21621
- ).join("|") + ")";
21589
+ const joined = "(" + args.map((x)=>$8daf8747be03d9cd$var$source(x)).join("|") + ")";
21622
21590
  return joined;
21623
21591
  }
21624
21592
  /*
@@ -22142,8 +22110,7 @@ parcelRequire.register("iwCOJ", function(module, exports) {
22142
22110
  * @param {...(RegExp | string) } args
22143
22111
  * @returns {string}
22144
22112
  */ function $d7c95373c17dec24$var$concat(...args) {
22145
- const joined = args.map((x)=>$d7c95373c17dec24$var$source(x)
22146
- ).join("");
22113
+ const joined = args.map((x)=>$d7c95373c17dec24$var$source(x)).join("");
22147
22114
  return joined;
22148
22115
  }
22149
22116
  /*
@@ -25473,8 +25440,7 @@ parcelRequire.register("37El6", function(module, exports) {
25473
25440
  * @param {...(RegExp | string) } args
25474
25441
  * @returns {string}
25475
25442
  */ function $2461511e90afa346$var$concat(...args) {
25476
- const joined = args.map((x)=>$2461511e90afa346$var$source(x)
25477
- ).join("");
25443
+ const joined = args.map((x)=>$2461511e90afa346$var$source(x)).join("");
25478
25444
  return joined;
25479
25445
  }
25480
25446
  /*
@@ -25673,8 +25639,7 @@ parcelRequire.register("cxvKW", function(module, exports) {
25673
25639
  * @param {...(RegExp | string) } args
25674
25640
  * @returns {string}
25675
25641
  */ function $9211333b820eeae1$var$concat(...args) {
25676
- const joined = args.map((x)=>$9211333b820eeae1$var$source(x)
25677
- ).join("");
25642
+ const joined = args.map((x)=>$9211333b820eeae1$var$source(x)).join("");
25678
25643
  return joined;
25679
25644
  }
25680
25645
  /*
@@ -29729,8 +29694,7 @@ const $49020b8deacc653b$var$BUILT_INS = [].concat($49020b8deacc653b$var$BUILT_IN
29729
29694
  * @param {...(RegExp | string) } args
29730
29695
  * @returns {string}
29731
29696
  */ function $49020b8deacc653b$var$concat(...args) {
29732
- const joined = args.map((x)=>$49020b8deacc653b$var$source(x)
29733
- ).join("");
29697
+ const joined = args.map((x)=>$49020b8deacc653b$var$source(x)).join("");
29734
29698
  return joined;
29735
29699
  }
29736
29700
  /*
@@ -30231,8 +30195,7 @@ Category: common, scripting
30231
30195
  begin: "@" + IDENT_RE$1
30232
30196
  };
30233
30197
  const swapMode = (mode, label, replacement)=>{
30234
- const indx = mode.contains.findIndex((m)=>m.label === label
30235
- );
30198
+ const indx = mode.contains.findIndex((m)=>m.label === label);
30236
30199
  if (indx === -1) throw new Error("can not find mode to replace");
30237
30200
  mode.contains.splice(indx, 1, replacement);
30238
30201
  };
@@ -30250,8 +30213,7 @@ Category: common, scripting
30250
30213
  swapMode(tsLanguage, "shebang", hljs.SHEBANG());
30251
30214
  // JS use strict rule purposely excludes `asm` which makes no sense
30252
30215
  swapMode(tsLanguage, "use_strict", USE_STRICT);
30253
- const functionDeclaration = tsLanguage.contains.find((m)=>m.className === "function"
30254
- );
30216
+ const functionDeclaration = tsLanguage.contains.find((m)=>m.className === "function");
30255
30217
  functionDeclaration.relevance = 0; // () => {} is more typical in TypeScript
30256
30218
  Object.assign(tsLanguage, {
30257
30219
  name: "TypeScript",
@@ -30394,8 +30356,7 @@ parcelRequire.register("3vxtA", function(module, exports) {
30394
30356
  * @param {...(RegExp | string) } args
30395
30357
  * @returns {string}
30396
30358
  */ function $28de3c040c6e0f5a$var$concat(...args) {
30397
- const joined = args.map((x)=>$28de3c040c6e0f5a$var$source(x)
30398
- ).join("");
30359
+ const joined = args.map((x)=>$28de3c040c6e0f5a$var$source(x)).join("");
30399
30360
  return joined;
30400
30361
  }
30401
30362
  /**
@@ -30405,8 +30366,7 @@ parcelRequire.register("3vxtA", function(module, exports) {
30405
30366
  * @param {(RegExp | string)[] } args
30406
30367
  * @returns {string}
30407
30368
  */ function $28de3c040c6e0f5a$var$either(...args) {
30408
- const joined = "(" + args.map((x)=>$28de3c040c6e0f5a$var$source(x)
30409
- ).join("|") + ")";
30369
+ const joined = "(" + args.map((x)=>$28de3c040c6e0f5a$var$source(x)).join("|") + ")";
30410
30370
  return joined;
30411
30371
  }
30412
30372
  /*
@@ -31166,26 +31126,21 @@ parcelRequire.register("2W6xc", function(module, exports) {
31166
31126
  const wrapAnsi16 = (fn, offset)=>(...args)=>{
31167
31127
  const code = fn(...args);
31168
31128
  return `\u001B[${code + offset}m`;
31169
- }
31170
- ;
31129
+ };
31171
31130
  const wrapAnsi256 = (fn, offset)=>(...args)=>{
31172
31131
  const code = fn(...args);
31173
31132
  return `\u001B[${38 + offset};5;${code}m`;
31174
- }
31175
- ;
31133
+ };
31176
31134
  const wrapAnsi16m = (fn, offset)=>(...args)=>{
31177
31135
  const rgb = fn(...args);
31178
31136
  return `\u001B[${38 + offset};2;${rgb[0]};${rgb[1]};${rgb[2]}m`;
31179
- }
31180
- ;
31181
- const ansi2ansi = (n)=>n
31182
- ;
31137
+ };
31138
+ const ansi2ansi = (n)=>n;
31183
31139
  const rgb2rgb = (r, g, b)=>[
31184
31140
  r,
31185
31141
  g,
31186
31142
  b
31187
- ]
31188
- ;
31143
+ ];
31189
31144
  const setLazyProperty = (object, property, get)=>{
31190
31145
  Object.defineProperty(object, property, {
31191
31146
  get: ()=>{
@@ -31412,18 +31367,12 @@ function assembleStyles() {
31412
31367
  });
31413
31368
  styles.color.close = "\x1b[39m";
31414
31369
  styles.bgColor.close = "\x1b[49m";
31415
- setLazyProperty(styles.color, "ansi", ()=>makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false)
31416
- );
31417
- setLazyProperty(styles.color, "ansi256", ()=>makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false)
31418
- );
31419
- setLazyProperty(styles.color, "ansi16m", ()=>makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false)
31420
- );
31421
- setLazyProperty(styles.bgColor, "ansi", ()=>makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true)
31422
- );
31423
- setLazyProperty(styles.bgColor, "ansi256", ()=>makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true)
31424
- );
31425
- setLazyProperty(styles.bgColor, "ansi16m", ()=>makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true)
31426
- );
31370
+ setLazyProperty(styles.color, "ansi", ()=>makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, false));
31371
+ setLazyProperty(styles.color, "ansi256", ()=>makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, false));
31372
+ setLazyProperty(styles.color, "ansi16m", ()=>makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, false));
31373
+ setLazyProperty(styles.bgColor, "ansi", ()=>makeDynamicStyles(wrapAnsi16, "ansi16", ansi2ansi, true));
31374
+ setLazyProperty(styles.bgColor, "ansi256", ()=>makeDynamicStyles(wrapAnsi256, "ansi256", ansi2ansi, true));
31375
+ setLazyProperty(styles.bgColor, "ansi16m", ()=>makeDynamicStyles(wrapAnsi16m, "rgb", rgb2rgb, true));
31427
31376
  return styles;
31428
31377
  }
31429
31378
  // Make the export immutable
@@ -33475,8 +33424,7 @@ var $03b62e45aee69014$var$utils = /*#__PURE__*/ Object.freeze({
33475
33424
  if (typeof node === "string") builder.addText(node);
33476
33425
  else if (node.children) {
33477
33426
  builder.openNode(node);
33478
- node.children.forEach((child)=>this._walk(builder, child)
33479
- );
33427
+ node.children.forEach((child)=>this._walk(builder, child));
33480
33428
  builder.closeNode(node);
33481
33429
  }
33482
33430
  return builder;
@@ -33486,8 +33434,7 @@ var $03b62e45aee69014$var$utils = /*#__PURE__*/ Object.freeze({
33486
33434
  */ static _collapse(node) {
33487
33435
  if (typeof node === "string") return;
33488
33436
  if (!node.children) return;
33489
- if (node.children.every((el)=>typeof el === "string"
33490
- )) // node.text = node.children.join("");
33437
+ if (node.children.every((el)=>typeof el === "string")) // node.text = node.children.join("");
33491
33438
  // delete node.children;
33492
33439
  node.children = [
33493
33440
  node.children.join("")
@@ -33571,8 +33518,7 @@ var $03b62e45aee69014$var$utils = /*#__PURE__*/ Object.freeze({
33571
33518
  * @param {...(RegExp | string) } args
33572
33519
  * @returns {string}
33573
33520
  */ function $03b62e45aee69014$var$concat(...args) {
33574
- const joined = args.map((x)=>$03b62e45aee69014$var$source(x)
33575
- ).join("");
33521
+ const joined = args.map((x)=>$03b62e45aee69014$var$source(x)).join("");
33576
33522
  return joined;
33577
33523
  }
33578
33524
  /**
@@ -33878,10 +33824,8 @@ const $03b62e45aee69014$var$COMMON_KEYWORDS = [
33878
33824
  compile() {
33879
33825
  if (this.regexes.length === 0) // avoids the need to check length every time exec is called
33880
33826
  // @ts-ignore
33881
- this.exec = ()=>null
33882
- ;
33883
- const terminators = this.regexes.map((el)=>el[1]
33884
- );
33827
+ this.exec = ()=>null;
33828
+ const terminators = this.regexes.map((el)=>el[1]);
33885
33829
  this.matcherRe = langRe($03b62e45aee69014$var$join(terminators), true);
33886
33830
  this.lastIndex = 0;
33887
33831
  }
@@ -33890,8 +33834,7 @@ const $03b62e45aee69014$var$COMMON_KEYWORDS = [
33890
33834
  const match = this.matcherRe.exec(s);
33891
33835
  if (!match) return null;
33892
33836
  // eslint-disable-next-line no-undefined
33893
- const i1 = match.findIndex((el, i)=>i > 0 && el !== undefined
33894
- );
33837
+ const i1 = match.findIndex((el, i)=>i > 0 && el !== undefined);
33895
33838
  // @ts-ignore
33896
33839
  const matchData = this.matchIndexes[i1];
33897
33840
  // trim off any earlier non-relevant match groups (ie, the other regex
@@ -33944,8 +33887,7 @@ const $03b62e45aee69014$var$COMMON_KEYWORDS = [
33944
33887
  getMatcher(index) {
33945
33888
  if (this.multiRegexes[index]) return this.multiRegexes[index];
33946
33889
  const matcher = new MultiRegex();
33947
- this.rules.slice(index).forEach(([re, opts])=>matcher.addRule(re, opts)
33948
- );
33890
+ this.rules.slice(index).forEach(([re, opts])=>matcher.addRule(re, opts));
33949
33891
  matcher.compile();
33950
33892
  this.multiRegexes[index] = matcher;
33951
33893
  return matcher;
@@ -34021,8 +33963,7 @@ const $03b62e45aee69014$var$COMMON_KEYWORDS = [
34021
33963
  mode.contains.forEach((term)=>mm.addRule(term.begin, {
34022
33964
  rule: term,
34023
33965
  type: "begin"
34024
- })
34025
- );
33966
+ }));
34026
33967
  if (mode.terminator_end) mm.addRule(mode.terminator_end, {
34027
33968
  type: "end"
34028
33969
  });
@@ -34365,8 +34306,7 @@ const $03b62e45aee69014$var$NO_MATCH = Symbol("nomatch");
34365
34306
  }
34366
34307
  return language ? match[1] : "no-highlight";
34367
34308
  }
34368
- return classes.split(/\s+/).find((_class)=>shouldNotHighlight(_class) || getLanguage(_class)
34369
- );
34309
+ return classes.split(/\s+/).find((_class)=>shouldNotHighlight(_class) || getLanguage(_class));
34370
34310
  }
34371
34311
  /**
34372
34312
  * Core highlighting function.
@@ -34580,8 +34520,7 @@ const $03b62e45aee69014$var$NO_MATCH = Symbol("nomatch");
34580
34520
  function processContinuations() {
34581
34521
  const list = [];
34582
34522
  for(let current = top; current !== language; current = current.parent)if (current.className) list.unshift(current.className);
34583
- list.forEach((item)=>emitter.openNode(item)
34584
- );
34523
+ list.forEach((item)=>emitter.openNode(item));
34585
34524
  }
34586
34525
  /** @type {{type?: MatchType, index?: number, rule?: Mode}}} */ let lastMatch = {};
34587
34526
  /**
@@ -34751,8 +34690,7 @@ const $03b62e45aee69014$var$NO_MATCH = Symbol("nomatch");
34751
34690
  */ function highlightAuto(code, languageSubset) {
34752
34691
  languageSubset = languageSubset || options.languages || Object.keys(languages);
34753
34692
  const plaintext = justTextHighlightResult(code);
34754
- const results = languageSubset.filter(getLanguage).filter(autoDetection).map((name)=>_highlight(name, code, false)
34755
- );
34693
+ const results = languageSubset.filter(getLanguage).filter(autoDetection).map((name)=>_highlight(name, code, false));
34756
34694
  results.unshift(plaintext); // plaintext is always an option
34757
34695
  const sorted = results.sort((a, b)=>{
34758
34696
  // sort base on relevance
@@ -35791,8 +35729,7 @@ $5f04f11630a6945d$exports = ({ onlyFirst: onlyFirst = false } = {})=>{
35791
35729
  };
35792
35730
 
35793
35731
 
35794
- $5e2cf9f740fe0527$exports = (string)=>typeof string === "string" ? string.replace($5f04f11630a6945d$exports(), "") : string
35795
- ;
35732
+ $5e2cf9f740fe0527$exports = (string)=>typeof string === "string" ? string.replace($5f04f11630a6945d$exports(), "") : string;
35796
35733
 
35797
35734
 
35798
35735
  var $e19c725c5553b196$exports = {};
@@ -35856,8 +35793,7 @@ $0926ce0154f25409$exports.default = $0926ce0154f25409$var$isFullwidthCodePoint;
35856
35793
  var $84440f8e6725c936$exports = {};
35857
35794
  "use strict";
35858
35795
  const $84440f8e6725c936$var$regex = "[\uD800-\uDBFF][\uDC00-\uDFFF]";
35859
- const $84440f8e6725c936$var$astralRegex = (options)=>options && options.exact ? new RegExp(`^${$84440f8e6725c936$var$regex}$`) : new RegExp($84440f8e6725c936$var$regex, "g")
35860
- ;
35796
+ const $84440f8e6725c936$var$astralRegex = (options)=>options && options.exact ? new RegExp(`^${$84440f8e6725c936$var$regex}$`) : new RegExp($84440f8e6725c936$var$regex, "g");
35861
35797
  $84440f8e6725c936$exports = $84440f8e6725c936$var$astralRegex;
35862
35798
 
35863
35799
 
@@ -35867,8 +35803,7 @@ const $0ae586f9cf7cb410$var$ESCAPES = [
35867
35803
  "\x1b",
35868
35804
  "\x9b"
35869
35805
  ];
35870
- const $0ae586f9cf7cb410$var$wrapAnsi = (code)=>`${$0ae586f9cf7cb410$var$ESCAPES[0]}[${code}m`
35871
- ;
35806
+ const $0ae586f9cf7cb410$var$wrapAnsi = (code)=>`${$0ae586f9cf7cb410$var$ESCAPES[0]}[${code}m`;
35872
35807
  const $0ae586f9cf7cb410$var$checkAnsi = (ansiCodes, isEscapes, endAnsiCode)=>{
35873
35808
  let output = [];
35874
35809
  ansiCodes = [
@@ -35888,8 +35823,7 @@ const $0ae586f9cf7cb410$var$checkAnsi = (ansiCodes, isEscapes, endAnsiCode)=>{
35888
35823
  } else output.push($0ae586f9cf7cb410$var$wrapAnsi(ansiCodeOrigin));
35889
35824
  }
35890
35825
  if (isEscapes) {
35891
- output = output.filter((element, index)=>output.indexOf(element) === index
35892
- );
35826
+ output = output.filter((element, index)=>output.indexOf(element) === index);
35893
35827
  if (endAnsiCode !== undefined) {
35894
35828
  const fistEscapeCode = $0ae586f9cf7cb410$var$wrapAnsi($2W6xc.codes.get(Number.parseInt(endAnsiCode, 10)));
35895
35829
  output = output.reduce((current, next)=>next === fistEscapeCode ? [
@@ -35898,8 +35832,7 @@ const $0ae586f9cf7cb410$var$checkAnsi = (ansiCodes, isEscapes, endAnsiCode)=>{
35898
35832
  ] : [
35899
35833
  ...current,
35900
35834
  next
35901
- ]
35902
- , []);
35835
+ ], []);
35903
35836
  }
35904
35837
  }
35905
35838
  return output.join("");
@@ -35993,10 +35926,8 @@ function $796233c1fee0ccb8$export$2e2bcd8739ae039(code, highlights, inputOpts =
35993
35926
  message: h.message
35994
35927
  };
35995
35928
  }); // Find first and last highlight
35996
- let firstHighlight = highlights.length > 1 ? highlights.sort((a, b)=>a.start.line - b.start.line
35997
- )[0] : highlights[0];
35998
- let lastHighlight = highlights.length > 1 ? highlights.sort((a, b)=>b.end.line - a.end.line
35999
- )[0] : highlights[0]; // Calculate first and last line index of codeframe
35929
+ let firstHighlight = highlights.length > 1 ? highlights.sort((a, b)=>a.start.line - b.start.line)[0] : highlights[0];
35930
+ let lastHighlight = highlights.length > 1 ? highlights.sort((a, b)=>b.end.line - a.end.line)[0] : highlights[0]; // Calculate first and last line index of codeframe
36000
35931
  let startLine = firstHighlight.start.line - opts.padding.before;
36001
35932
  startLine = startLine < 0 ? 0 : startLine;
36002
35933
  let endLineIndex = lastHighlight.end.line + opts.padding.after;
@@ -36008,11 +35939,8 @@ function $796233c1fee0ccb8$export$2e2bcd8739ae039(code, highlights, inputOpts =
36008
35939
  for(let currentLineIndex = startLine; currentLineIndex < syntaxHighlightedLines.length; currentLineIndex++){
36009
35940
  if (currentLineIndex > endLineIndex) break;
36010
35941
  if (currentLineIndex > syntaxHighlightedLines.length - 1) break; // Find highlights that need to get rendered on the current line
36011
- let lineHighlights = highlights.filter((highlight)=>highlight.start.line <= currentLineIndex && highlight.end.line >= currentLineIndex
36012
- ).sort((a, b)=>(a.start.line < currentLineIndex ? 0 : a.start.column) - (b.start.line < currentLineIndex ? 0 : b.start.column)
36013
- ); // Check if this line has a full line highlight
36014
- let isWholeLine = lineHighlights.length && !!lineHighlights.find((h)=>h.start.line < currentLineIndex && h.end.line > currentLineIndex
36015
- );
35942
+ let lineHighlights = highlights.filter((highlight)=>highlight.start.line <= currentLineIndex && highlight.end.line >= currentLineIndex).sort((a, b)=>(a.start.line < currentLineIndex ? 0 : a.start.column) - (b.start.line < currentLineIndex ? 0 : b.start.column)); // Check if this line has a full line highlight
35943
+ let isWholeLine = lineHighlights.length && !!lineHighlights.find((h)=>h.start.line < currentLineIndex && h.end.line > currentLineIndex);
36016
35944
  let lineLengthLimit = opts.terminalWidth > lineNumberLength1 + 7 ? opts.terminalWidth - (lineNumberLength1 + 5) : 10; // Split the line into line parts that will fit the provided terminal width
36017
35945
  let colOffset = 0;
36018
35946
  let lineEndCol = lineLengthLimit;