@antdv-next/x 1.2.0 → 1.2.1-beta.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.
- package/dist/actions/ActionsFeedback.js +1 -1
- package/dist/actions/ActionsItem.js +1 -1
- package/dist/bubble/hooks/useCompatibleScroll.js +1 -1
- package/dist/code-highlighter/CodeHighlighter.js +2 -1
- package/dist/code-highlighter/shiki.js +1 -1
- package/dist/code-highlighter/style/index.d.ts +40 -0
- package/dist/code-highlighter/style/index.js +25 -13
- package/dist/folder/Folder.js +2 -1
- package/dist/index.umd.js +63 -40
- package/dist/mermaid/Mermaid.js +1 -1
- package/dist/package.js +1 -1
- package/dist/sender/components/SlotTextArea.js +3 -2
- package/dist/sender/components/SpeechButton/RecordingIcon.js +1 -1
- package/dist/sender/hooks/use-speech.js +2 -1
- package/dist/suggestion/useActive.js +0 -2
- package/dist/theme/themes/seed.js +3 -0
- package/dist/theme/util/alias.js +5 -5
- package/dist/think/Think.js +3 -2
- package/dist/thought-chain/Node.js +3 -2
- package/dist/thought-chain/ThoughtChain.js +2 -2
- package/dist/x-provider/index.js +3 -2
- package/es/Serializer-Sc9uEpQk.js +262 -0
- package/es/{_basePickBy-DFHEGO2M.js → _basePickBy-CrbncDqR.js} +2 -2
- package/es/{_baseUniq-BlS7rXTs.js → _baseUniq-B-qU_Imh.js} +9 -9
- package/es/antdv-next-x.esm.js +2887 -2875
- package/es/{arc-BuXEd18J.js → arc-NI3ROx5X.js} +2 -2
- package/es/architecture-PBZL5I3N-BRGGaMu3.js +3 -0
- package/es/{architectureDiagram-2XIMDMQ5-CmfsCwJk.js → architectureDiagram-2XIMDMQ5-OvuktNfv.js} +100 -110
- package/es/{blockDiagram-WCTKOSBZ-lJAan65A.js → blockDiagram-WCTKOSBZ-CS-kh74L.js} +42 -43
- package/es/{c4Diagram-IC4MRINW-B1c2x_1Q.js → c4Diagram-IC4MRINW-BZGIF4Dk.js} +17 -25
- package/es/{channel-DFgF_2F7.js → channel-DrSSYyxp.js} +1 -1
- package/es/{chunk-4BX2VUAB-J2N81Fpp.js → chunk-4BX2VUAB-Rm8-te6i.js} +1 -1
- package/es/{chunk-55IACEB6-DGtfGRgi.js → chunk-55IACEB6-Tre45n-8.js} +1 -1
- package/es/{chunk-7R4GIKGN-QT6IorJ_.js → chunk-7R4GIKGN-scch4dXY.js} +10 -10
- package/es/{chunk-FMBD7UC4-DCcRjunY.js → chunk-FMBD7UC4-JmekSPZP.js} +1 -1
- package/es/{chunk-GEFDOKGD-BWpC-zoH.js → chunk-GEFDOKGD-BEzc6NZw.js} +31 -71
- package/es/{chunk-JSJVCQXG-D8_heHOp.js → chunk-JSJVCQXG-_l_UVbaa.js} +3 -3
- package/es/{chunk-KX2RTZJC-D5cc4rj6.js → chunk-KX2RTZJC-BUWM8pJz.js} +2 -2
- package/es/{chunk-KYZI473N-BHJ3T5Zv.js → chunk-KYZI473N-BSgb_E0Q.js} +11 -11
- package/es/{chunk-MX3YWQON-BxE-Aq9c.js → chunk-MX3YWQON-D602L8pU.js} +1 -1
- package/es/{chunk-NQ4KR5QH-EYQBXkqP.js → chunk-NQ4KR5QH-BPQV0i93.js} +41 -45
- package/es/{chunk-O4XLMI2P-qjOoGpnx.js → chunk-O4XLMI2P-BMqc3iYa.js} +15 -14
- package/es/{chunk-PQ6SQG4A-D3jtNCWN.js → chunk-PQ6SQG4A-DcYrzB1X.js} +2 -2
- package/es/{chunk-PU5JKC2W-DdP8BS-S.js → chunk-PU5JKC2W-TuGY6X1n.js} +28 -24
- package/es/{chunk-QZHKN3VN-CW3cFN-h.js → chunk-QZHKN3VN-CKbD02cl.js} +1 -1
- package/es/{chunk-WL4C6EOR-BDbxJyGk.js → chunk-WL4C6EOR-B31ErTFp.js} +19 -17
- package/es/{chunk-XZSTWKYB-CucN1XvM.js → chunk-XZSTWKYB-DYKLwCEy.js} +1888 -1785
- package/es/{chunk-YBOYWFTD-CvaddD9G.js → chunk-YBOYWFTD-CRiKEIiS.js} +5 -5
- package/es/classDiagram-VBA2DB6C-BDqwxUdU.js +29 -0
- package/es/classDiagram-v2-RAHNMMFH-DdmOjeUb.js +29 -0
- package/es/{clone-r3YukIBB.js → clone-yzFtXY5G.js} +1 -1
- package/es/{cose-bilkent-S5V4N54A-B5OQuIhl.js → cose-bilkent-S5V4N54A-BM90wTBk.js} +43 -48
- package/es/css-CRY9BUqw.js +2 -0
- package/es/{cytoscape.esm-i2CZcWd-.js → cytoscape.esm-B_-hKv4-.js} +276 -321
- package/es/{dagre-5aGJFKmT.js → dagre-DCYVBij1.js} +25 -27
- package/es/{dagre-KLK3FWXG-BI5QQMXo.js → dagre-KLK3FWXG-Ced70SgJ.js} +21 -17
- package/es/{defaultLocale-bckJcYh1.js → defaultLocale-yzzuPw6P.js} +1 -4
- package/es/{diagram-E7M64L7V-Dz62Vz_a.js → diagram-E7M64L7V-xZCloH_i.js} +72 -70
- package/es/{diagram-IFDJBPK2-9fjvFkSc.js → diagram-IFDJBPK2-BTmFZhvz.js} +21 -21
- package/es/{diagram-P4PSJMXO-BlX6jFjZ.js → diagram-P4PSJMXO-DX_3B0LB.js} +16 -16
- package/es/{dist-BX_roQzC.js → dist-h4ggShny.js} +1 -1
- package/es/{erDiagram-INFDFZHY-BcRXu8Cp.js → erDiagram-INFDFZHY-MJ_HVY-7.js} +22 -22
- package/es/{flowDiagram-PKNHOUZH-UeyfgU8z.js → flowDiagram-PKNHOUZH-CQIRy1sx.js} +35 -42
- package/es/{ganttDiagram-A5KZAMGK-txCzqgQ5.js → ganttDiagram-A5KZAMGK-Dw9bjWjx.js} +39 -52
- package/es/gitGraph-HDMCJU4V-oForq_Vw.js +3 -0
- package/es/{gitGraphDiagram-K3NZZRJ6-DghWYaFU.js → gitGraphDiagram-K3NZZRJ6-Gk6FiGbZ.js} +21 -21
- package/es/{graphlib-dRkI1OCL.js → graphlib-BMvIh7N7.js} +4 -4
- package/es/{html-CWvNBSxv.js → html-C4rrmxbP.js} +2 -2
- package/es/info-3K5VOQVL-0F-ZLEMx.js +3 -0
- package/es/{infoDiagram-LFFYTUFH-CA-vlAvP.js → infoDiagram-LFFYTUFH-CS64-uil.js} +9 -9
- package/es/{init-B75p2clj.js → init-sjaVZO3f.js} +1 -3
- package/es/{isArrayLikeObject-jl2bjkAJ.js → isArrayLikeObject-Dqk_yOP-.js} +5 -4
- package/es/{ishikawaDiagram-PHBUUO56-DjdpS9Lb.js → ishikawaDiagram-PHBUUO56-C_Hw5UnV.js} +13 -13
- package/es/javascript--0qAxhnA.js +2 -0
- package/es/{journeyDiagram-4ABVD52K-CIJfC1fp.js → journeyDiagram-4ABVD52K-CFFyM4Ar.js} +16 -16
- package/es/{kanban-definition-K7BYSVSG-CC2vwGck.js → kanban-definition-K7BYSVSG-B_R-mA10.js} +27 -28
- package/es/{katex-DCMiIo1z.js → katex-C-qdUNlg.js} +78 -68
- package/es/{line-Cu9NTacD.js → line-D05MESIS.js} +3 -3
- package/es/{linear-C0rAYYmp.js → linear-B8tPH2Pw.js} +4 -6
- package/es/mermaid-parser.core-C_69nk7j.js +259 -0
- package/es/mermaid.core-BVGVwWcu.js +1914 -0
- package/es/{mindmap-definition-YRQLILUH-BzTYDYmK.js → mindmap-definition-YRQLILUH-qgGUYYe3.js} +26 -28
- package/es/{ordinal-F3U6aXtP.js → ordinal-CNQzPcrr.js} +1 -1
- package/es/packet-RMMSAZCW-CeqtQQ_e.js +3 -0
- package/es/{path-Dm3C8WEs.js → path-CqWAdh69.js} +4 -7
- package/es/pie-UPGHQEXC-BI60FhK4.js +3 -0
- package/es/{pieDiagram-SKSYHLDU-COvqE_C6.js → pieDiagram-SKSYHLDU-B8-AVOmP.js} +47 -47
- package/es/{quadrantDiagram-337W2JSQ-Dgv8ccjt.js → quadrantDiagram-337W2JSQ-C2Z0CN4Z.js} +10 -10
- package/es/radar-KQ55EAFF-CRwOOFw0.js +3 -0
- package/es/{requirementDiagram-Z7DCOOCP-B2NyhxO-.js → requirementDiagram-Z7DCOOCP-Cdj7PwWC.js} +19 -19
- package/es/{chunk-WQLz0Won.js → rolldown-runtime-CEY2VRuR.js} +10 -3
- package/es/{rough.esm-BhGP2Udb.js → rough.esm-D1ibUQD-.js} +1 -1
- package/es/{sankeyDiagram-WA2Y5GQK-BfnH_gpl.js → sankeyDiagram-WA2Y5GQK-BNmU-dM1.js} +10 -10
- package/es/{sequenceDiagram-2WXFIKYE-DXssVQOF.js → sequenceDiagram-2WXFIKYE-pj0uPf22.js} +114 -126
- package/es/{shiki-runtime-D0MO6er5.js → shiki-runtime-7QG17np_.js} +978 -983
- package/es/{src-CUQ6oOYk.js → src-Dynw_Lub.js} +26 -26
- package/es/{stateDiagram-RAJIS63D-DvDLfupV.js → stateDiagram-RAJIS63D-BgCfMnGb.js} +18 -18
- package/es/stateDiagram-v2-FVOUBMTO-ByMhP6Xo.js +27 -0
- package/es/{timeline-definition-YZTLITO2-ErcRjbZf.js → timeline-definition-YZTLITO2-Bj5QKnBI.js} +10 -10
- package/es/treemap-KZPCXAKY-BlOAFUbR.js +3 -0
- package/es/{vennDiagram-LZ73GAT5-CDTZUtc8.js → vennDiagram-LZ73GAT5-lpWcIvN6.js} +16 -16
- package/es/{xychartDiagram-JWTSCODW-Y21jBOTg.js → xychartDiagram-JWTSCODW-De1M-7Yz.js} +26 -30
- package/package.json +1 -1
- package/es/Serializer-D1JYN1kI.js +0 -262
- package/es/architecture-PBZL5I3N-D7tS55xM.js +0 -3
- package/es/chunk-7E7YKBS2-CL2d4WAf.js +0 -23
- package/es/chunk-C72U2L5F-OHTVpS-m.js +0 -23
- package/es/chunk-EGIJ26TM-DyMPGYrB.js +0 -23
- package/es/chunk-GLR3WWYH-DiXcKb5Y.js +0 -41
- package/es/chunk-HHEYEP7N-Cxc7E4dX.js +0 -9
- package/es/chunk-L3YUKLVL-7oGaUOdc.js +0 -23
- package/es/chunk-OZEHJAEY-D82nx27s.js +0 -64
- package/es/chunk-R5LLSJPH-CreI2kO9.js +0 -35
- package/es/chunk-XIRO2GV7-S5KkbVnN.js +0 -30
- package/es/chunk-XPW4576I-B0KVSHwE.js +0 -1146
- package/es/classDiagram-VBA2DB6C-Co3LMmg8.js +0 -29
- package/es/classDiagram-v2-RAHNMMFH-BZscgdF2.js +0 -29
- package/es/css-Bi5OTYo2.js +0 -2
- package/es/gitGraph-HDMCJU4V-CxsS0Qr1.js +0 -3
- package/es/info-3K5VOQVL-COqdvM99.js +0 -3
- package/es/isEmpty-CmA-HYrg.js +0 -35
- package/es/javascript-CjdDmufJ.js +0 -2
- package/es/mermaid-parser.core-7Wn2L29P.js +0 -59
- package/es/mermaid.core-Bvy_Q6Hu.js +0 -680
- package/es/packet-RMMSAZCW-2PTjWKLd.js +0 -3
- package/es/pie-UPGHQEXC-Du8-k-EA.js +0 -3
- package/es/radar-KQ55EAFF-jJOhyjxC.js +0 -3
- package/es/stateDiagram-v2-FVOUBMTO-DIXyaX9W.js +0 -27
- package/es/treemap-KZPCXAKY-CvZAIYVa.js +0 -3
- /package/es/{array-CWNufkl9.js → array-CApNbSU9.js} +0 -0
- /package/es/{css-v5r4VtJ6.js → css-DVAQAvTD.js} +0 -0
- /package/es/{javascript-o_jd8Ivw.js → javascript-Bk0bJ4nQ.js} +0 -0
- /package/es/{json-DqMXJlo0.js → json-CAwkMa5O.js} +0 -0
- /package/es/{math-CoDOuve-.js → math-BZ_bUCIA.js} +0 -0
- /package/es/{python-CQPNJfOt.js → python-D0AaDoWC.js} +0 -0
- /package/es/{typescript-Ck7Pr_E3.js → typescript-DWy2KXvB.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e } from "./
|
|
1
|
+
import { r as e } from "./rolldown-runtime-CEY2VRuR.js";
|
|
2
2
|
//#region ../../node_modules/.pnpm/@shikijs+types@3.23.0/node_modules/@shikijs/types/dist/index.mjs
|
|
3
3
|
var t = class extends Error {
|
|
4
4
|
constructor(e) {
|
|
@@ -34,7 +34,7 @@ function s(e) {
|
|
|
34
34
|
}
|
|
35
35
|
var c = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, l = class {
|
|
36
36
|
static hasCaptures(e) {
|
|
37
|
-
return e
|
|
37
|
+
return e !== null && (c.lastIndex = 0, c.test(e));
|
|
38
38
|
}
|
|
39
39
|
static replaceCaptures(e, t, n) {
|
|
40
40
|
return e.replace(c, (e, r, i, a) => {
|
|
@@ -52,7 +52,7 @@ var c = /\$(\d+)|\${(\d+):\/(downcase|upcase)}/g, l = class {
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
function u(e, t) {
|
|
55
|
-
return e < t ? -1 : e > t
|
|
55
|
+
return e < t ? -1 : +(e > t);
|
|
56
56
|
}
|
|
57
57
|
function d(e, t) {
|
|
58
58
|
if (e === null && t === null) return 0;
|
|
@@ -131,7 +131,7 @@ var m = class {
|
|
|
131
131
|
return this.getSegments().join(" ");
|
|
132
132
|
}
|
|
133
133
|
extends(e) {
|
|
134
|
-
return this === e
|
|
134
|
+
return this === e || this.parent !== null && this.parent.extends(e);
|
|
135
135
|
}
|
|
136
136
|
getExtensionIfDefined(e) {
|
|
137
137
|
let t = [], n = this;
|
|
@@ -189,9 +189,7 @@ function ne(e) {
|
|
|
189
189
|
case "underline":
|
|
190
190
|
o |= 4;
|
|
191
191
|
break;
|
|
192
|
-
case "strikethrough":
|
|
193
|
-
o |= 8;
|
|
194
|
-
break;
|
|
192
|
+
case "strikethrough": o |= 8;
|
|
195
193
|
}
|
|
196
194
|
}
|
|
197
195
|
let s = null;
|
|
@@ -337,7 +335,7 @@ var ae = class {
|
|
|
337
335
|
return (e & 768) >>> 8;
|
|
338
336
|
}
|
|
339
337
|
static containsBalancedBrackets(e) {
|
|
340
|
-
return (e & 1024)
|
|
338
|
+
return !!(e & 1024);
|
|
341
339
|
}
|
|
342
340
|
static getFontStyle(e) {
|
|
343
341
|
return (e & 30720) >>> 11;
|
|
@@ -349,8 +347,8 @@ var ae = class {
|
|
|
349
347
|
return (e & 4278190080) >>> 24;
|
|
350
348
|
}
|
|
351
349
|
static set(t, n, r, i, a, o, s) {
|
|
352
|
-
let c = e.getLanguageId(t), l = e.getTokenType(t), u = e.containsBalancedBrackets(t)
|
|
353
|
-
return n !== 0 && (c = n), r !== 8 && (l = ue(r)), i !== null && (u = i
|
|
350
|
+
let c = e.getLanguageId(t), l = e.getTokenType(t), u = +!!e.containsBalancedBrackets(t), d = e.getFontStyle(t), f = e.getForeground(t), p = e.getBackground(t);
|
|
351
|
+
return n !== 0 && (c = n), r !== 8 && (l = ue(r)), i !== null && (u = +!!i), a !== -1 && (d = a), o !== 0 && (f = o), s !== 0 && (p = s), (c << 0 | l << 8 | u << 10 | d << 11 | f << 15 | p << 24) >>> 0;
|
|
354
352
|
}
|
|
355
353
|
};
|
|
356
354
|
function le(e) {
|
|
@@ -551,7 +549,6 @@ function Se(e, t, n) {
|
|
|
551
549
|
};
|
|
552
550
|
a.kind === 4 ? be(a.ruleName, i, n) : xe(i, n);
|
|
553
551
|
} else a.kind === 4 ? n.add(new ge(a.scopeName, a.ruleName)) : n.add(new he(a.scopeName));
|
|
554
|
-
break;
|
|
555
552
|
}
|
|
556
553
|
}
|
|
557
554
|
}
|
|
@@ -817,7 +814,6 @@ var Fe = class {
|
|
|
817
814
|
let t = l.repository[c];
|
|
818
815
|
t && (s = e.getCompiledRuleId(t, n, l.repository));
|
|
819
816
|
} else s = e.getCompiledRuleId(l.repository.$self, n, l.repository);
|
|
820
|
-
break;
|
|
821
817
|
}
|
|
822
818
|
} else s = e.getCompiledRuleId(o, n, r);
|
|
823
819
|
if (s !== -1) {
|
|
@@ -846,7 +842,7 @@ var Fe = class {
|
|
|
846
842
|
}
|
|
847
843
|
this.hasAnchor = i, n === 0 ? this.source = e : (r.push(e.substring(n, t)), this.source = r.join(""));
|
|
848
844
|
} else this.hasAnchor = !1, this.source = e;
|
|
849
|
-
this.
|
|
845
|
+
this._anchorCache = this.hasAnchor ? this._buildAnchorCache() : null, this.ruleId = t, this.hasBackReferences = typeof this.source == "string" && ke.test(this.source);
|
|
850
846
|
}
|
|
851
847
|
clone() {
|
|
852
848
|
return new e(this.source, this.ruleId);
|
|
@@ -905,7 +901,11 @@ var Fe = class {
|
|
|
905
901
|
this._items[e].source !== t && (this._disposeCaches(), this._items[e].setSource(t));
|
|
906
902
|
}
|
|
907
903
|
compile(e) {
|
|
908
|
-
|
|
904
|
+
if (!this._cached) {
|
|
905
|
+
let t = this._items.map((e) => e.source);
|
|
906
|
+
this._cached = new We(e, t, this._items.map((e) => e.ruleId));
|
|
907
|
+
}
|
|
908
|
+
return this._cached;
|
|
909
909
|
}
|
|
910
910
|
compileAG(e, t, n) {
|
|
911
911
|
return this._hasAnchors ? t ? n ? (this._anchorCache.A1_G1 || (this._anchorCache.A1_G1 = this._resolveAnchors(e, t, n)), this._anchorCache.A1_G1) : (this._anchorCache.A1_G0 || (this._anchorCache.A1_G0 = this._resolveAnchors(e, t, n)), this._anchorCache.A1_G0) : n ? (this._anchorCache.A0_G1 || (this._anchorCache.A0_G1 = this._resolveAnchors(e, t, n)), this._anchorCache.A0_G1) : (this._anchorCache.A0_G0 || (this._anchorCache.A0_G0 = this._resolveAnchors(e, t, n)), this._anchorCache.A0_G0) : this.compile(e);
|
|
@@ -984,25 +984,25 @@ var Fe = class {
|
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
986
|
typeof process < "u" && {}.VSCODE_TEXTMATE_DEBUG;
|
|
987
|
-
var Je =
|
|
987
|
+
var Je = class {
|
|
988
988
|
constructor(e, t) {
|
|
989
989
|
this.stack = e, this.stoppedEarly = t;
|
|
990
990
|
}
|
|
991
991
|
};
|
|
992
|
-
function
|
|
992
|
+
function Ye(e, t, n, r, i, a, o, s) {
|
|
993
993
|
let c = t.content.length, l = !1, u = -1;
|
|
994
994
|
if (o) {
|
|
995
|
-
let o =
|
|
995
|
+
let o = Xe(e, t, n, r, i, a);
|
|
996
996
|
i = o.stack, r = o.linePos, n = o.isFirstLine, u = o.anchorPosition;
|
|
997
997
|
}
|
|
998
998
|
let d = Date.now();
|
|
999
999
|
for (; !l;) {
|
|
1000
|
-
if (s !== 0 && Date.now() - d > s) return new
|
|
1000
|
+
if (s !== 0 && Date.now() - d > s) return new Je(i, !0);
|
|
1001
1001
|
f();
|
|
1002
1002
|
}
|
|
1003
|
-
return new
|
|
1003
|
+
return new Je(i, !1);
|
|
1004
1004
|
function f() {
|
|
1005
|
-
let o =
|
|
1005
|
+
let o = Ze(e, t, n, r, i, u);
|
|
1006
1006
|
if (!o) {
|
|
1007
1007
|
a.produce(i, c), l = !0;
|
|
1008
1008
|
return;
|
|
@@ -1010,7 +1010,7 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
1010
1010
|
let s = o.captureIndices, d = o.matchedRuleId, f = s && s.length > 0 ? s[0].end > r : !1;
|
|
1011
1011
|
if (d === je) {
|
|
1012
1012
|
let o = i.getRule(e);
|
|
1013
|
-
a.produce(i, s[0].start), i = i.withContentNameScopesList(i.nameScopesList),
|
|
1013
|
+
a.produce(i, s[0].start), i = i.withContentNameScopesList(i.nameScopesList), nt(e, t, n, i, a, o.endCaptures, s), a.produce(i, s[0].end);
|
|
1014
1014
|
let d = i;
|
|
1015
1015
|
if (i = i.parent, u = d.getAnchorPos(), !f && d.getEnterPos() === r) {
|
|
1016
1016
|
i = d, a.produce(i, c), l = !0;
|
|
@@ -1022,7 +1022,7 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
1022
1022
|
let p = i, m = o.getName(t.content, s), h = i.contentNameScopesList.pushAttributed(m, e);
|
|
1023
1023
|
if (i = i.push(d, r, u, s[0].end === c, null, h, h), o instanceof ze) {
|
|
1024
1024
|
let r = o;
|
|
1025
|
-
|
|
1025
|
+
nt(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
|
|
1026
1026
|
let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
|
|
1027
1027
|
if (i = i.withContentNameScopesList(m), r.endHasBackReferences && (i = i.withEndRule(r.getEndWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
|
|
1028
1028
|
i = i.pop(), a.produce(i, c), l = !0;
|
|
@@ -1030,13 +1030,13 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
1030
1030
|
}
|
|
1031
1031
|
} else if (o instanceof Be) {
|
|
1032
1032
|
let r = o;
|
|
1033
|
-
|
|
1033
|
+
nt(e, t, n, i, a, r.beginCaptures, s), a.produce(i, s[0].end), u = s[0].end;
|
|
1034
1034
|
let d = r.getContentName(t.content, s), m = h.pushAttributed(d, e);
|
|
1035
1035
|
if (i = i.withContentNameScopesList(m), r.whileHasBackReferences && (i = i.withEndRule(r.getWhileWithResolvedBackReferences(t.content, s))), !f && p.hasSameRuleAs(i)) {
|
|
1036
1036
|
i = i.pop(), a.produce(i, c), l = !0;
|
|
1037
1037
|
return;
|
|
1038
1038
|
}
|
|
1039
|
-
} else if (
|
|
1039
|
+
} else if (nt(e, t, n, i, a, o.captures, s), a.produce(i, s[0].end), i = i.pop(), !f) {
|
|
1040
1040
|
i = i.safePop(), a.produce(i, c), l = !0;
|
|
1041
1041
|
return;
|
|
1042
1042
|
}
|
|
@@ -1044,7 +1044,7 @@ function Xe(e, t, n, r, i, a, o, s) {
|
|
|
1044
1044
|
s[0].end > r && (r = s[0].end, n = !1);
|
|
1045
1045
|
}
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1047
|
+
function Xe(e, t, n, r, i, a) {
|
|
1048
1048
|
let o = i.beginRuleCapturedEOL ? 0 : -1, s = [];
|
|
1049
1049
|
for (let t = i; t; t = t.pop()) {
|
|
1050
1050
|
let n = t.getRule(e);
|
|
@@ -1054,13 +1054,13 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
1056
|
for (let c = s.pop(); c; c = s.pop()) {
|
|
1057
|
-
let { ruleScanner: s, findOptions: l } =
|
|
1057
|
+
let { ruleScanner: s, findOptions: l } = tt(c.rule, e, c.stack.endRule, n, r === o), u = s.findNextMatchSync(t, r, l);
|
|
1058
1058
|
if (u) {
|
|
1059
1059
|
if (u.ruleId !== Me) {
|
|
1060
1060
|
i = c.stack.pop();
|
|
1061
1061
|
break;
|
|
1062
1062
|
}
|
|
1063
|
-
u.captureIndices && u.captureIndices.length && (a.produce(c.stack, u.captureIndices[0].start),
|
|
1063
|
+
u.captureIndices && u.captureIndices.length && (a.produce(c.stack, u.captureIndices[0].start), nt(e, t, n, c.stack, a, c.rule.whileCaptures, u.captureIndices), a.produce(c.stack, u.captureIndices[0].end), o = u.captureIndices[0].end, u.captureIndices[0].end > r && (r = u.captureIndices[0].end, n = !1));
|
|
1064
1064
|
} else {
|
|
1065
1065
|
i = c.stack.pop();
|
|
1066
1066
|
break;
|
|
@@ -1073,28 +1073,28 @@ function Ze(e, t, n, r, i, a) {
|
|
|
1073
1073
|
isFirstLine: n
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1077
|
-
let o =
|
|
1076
|
+
function Ze(e, t, n, r, i, a) {
|
|
1077
|
+
let o = Qe(e, t, n, r, i, a), s = e.getInjections();
|
|
1078
1078
|
if (s.length === 0) return o;
|
|
1079
|
-
let c =
|
|
1079
|
+
let c = $e(s, e, t, n, r, i, a);
|
|
1080
1080
|
if (!c) return o;
|
|
1081
1081
|
if (!o) return c;
|
|
1082
1082
|
let l = o.captureIndices[0].start, u = c.captureIndices[0].start;
|
|
1083
1083
|
return u < l || c.priorityMatch && u === l ? c : o;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1086
|
-
let { ruleScanner: o, findOptions: s } =
|
|
1085
|
+
function Qe(e, t, n, r, i, a) {
|
|
1086
|
+
let { ruleScanner: o, findOptions: s } = et(i.getRule(e), e, i.endRule, n, r === a), c = o.findNextMatchSync(t, r, s);
|
|
1087
1087
|
return c ? {
|
|
1088
1088
|
captureIndices: c.captureIndices,
|
|
1089
1089
|
matchedRuleId: c.ruleId
|
|
1090
1090
|
} : null;
|
|
1091
1091
|
}
|
|
1092
|
-
function
|
|
1092
|
+
function $e(e, t, n, r, i, a, o) {
|
|
1093
1093
|
let s = Number.MAX_VALUE, c = null, l, u = 0, d = a.contentNameScopesList.getScopeNames();
|
|
1094
1094
|
for (let a = 0, f = e.length; a < f; a++) {
|
|
1095
1095
|
let f = e[a];
|
|
1096
1096
|
if (!f.matcher(d)) continue;
|
|
1097
|
-
let { ruleScanner: p, findOptions: m } =
|
|
1097
|
+
let { ruleScanner: p, findOptions: m } = et(t.getRule(f.ruleId), t, null, r, i === o), h = p.findNextMatchSync(n, i, m);
|
|
1098
1098
|
if (!h) continue;
|
|
1099
1099
|
let g = h.captureIndices[0].start;
|
|
1100
1100
|
if (!(g >= s) && (s = g, c = h.captureIndices, l = h.ruleId, u = f.priority, s === i)) break;
|
|
@@ -1105,29 +1105,19 @@ function et(e, t, n, r, i, a, o) {
|
|
|
1105
1105
|
matchedRuleId: l
|
|
1106
1106
|
} : null;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1109
|
-
return
|
|
1110
|
-
ruleScanner: e.compile(t, n),
|
|
1111
|
-
findOptions: rt(r, i)
|
|
1112
|
-
} : {
|
|
1108
|
+
function et(e, t, n, r, i) {
|
|
1109
|
+
return {
|
|
1113
1110
|
ruleScanner: e.compileAG(t, n, r, i),
|
|
1114
1111
|
findOptions: 0
|
|
1115
1112
|
};
|
|
1116
1113
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1119
|
-
ruleScanner: e.compileWhile(t, n),
|
|
1120
|
-
findOptions: rt(r, i)
|
|
1121
|
-
} : {
|
|
1114
|
+
function tt(e, t, n, r, i) {
|
|
1115
|
+
return {
|
|
1122
1116
|
ruleScanner: e.compileWhileAG(t, n, r, i),
|
|
1123
1117
|
findOptions: 0
|
|
1124
1118
|
};
|
|
1125
1119
|
}
|
|
1126
|
-
function
|
|
1127
|
-
let n = 0;
|
|
1128
|
-
return e || (n |= 1), t || (n |= 4), n;
|
|
1129
|
-
}
|
|
1130
|
-
function it(e, t, n, r, i, a, o) {
|
|
1120
|
+
function nt(e, t, n, r, i, a, o) {
|
|
1131
1121
|
if (a.length === 0) return;
|
|
1132
1122
|
let s = t.content, c = Math.min(a.length, o.length), l = [], u = o[0].end;
|
|
1133
1123
|
for (let t = 0; t < c; t++) {
|
|
@@ -1139,29 +1129,29 @@ function it(e, t, n, r, i, a, o) {
|
|
|
1139
1129
|
for (; l.length > 0 && l[l.length - 1].endPos <= d.start;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
1140
1130
|
if (l.length > 0 ? i.produceFromScopes(l[l.length - 1].scopes, d.start) : i.produce(r, d.start), c.retokenizeCapturedWithRuleId) {
|
|
1141
1131
|
let t = c.getName(s, o), a = r.contentNameScopesList.pushAttributed(t, e), l = c.getContentName(s, o), u = a.pushAttributed(l, e), f = r.push(c.retokenizeCapturedWithRuleId, d.start, -1, !1, null, a, u), p = e.createOnigString(s.substring(0, d.end));
|
|
1142
|
-
|
|
1132
|
+
Ye(e, p, n && d.start === 0, d.start, f, i, !1, 0), me(p);
|
|
1143
1133
|
continue;
|
|
1144
1134
|
}
|
|
1145
1135
|
let f = c.getName(s, o);
|
|
1146
1136
|
if (f !== null) {
|
|
1147
1137
|
let t = (l.length > 0 ? l[l.length - 1].scopes : r.contentNameScopesList).pushAttributed(f, e);
|
|
1148
|
-
l.push(new
|
|
1138
|
+
l.push(new rt(t, d.end));
|
|
1149
1139
|
}
|
|
1150
1140
|
}
|
|
1151
1141
|
for (; l.length > 0;) i.produceFromScopes(l[l.length - 1].scopes, l[l.length - 1].endPos), l.pop();
|
|
1152
1142
|
}
|
|
1153
|
-
var
|
|
1143
|
+
var rt = class {
|
|
1154
1144
|
scopes;
|
|
1155
1145
|
endPos;
|
|
1156
1146
|
constructor(e, t) {
|
|
1157
1147
|
this.scopes = e, this.endPos = t;
|
|
1158
1148
|
}
|
|
1159
1149
|
};
|
|
1160
|
-
function
|
|
1161
|
-
return new
|
|
1150
|
+
function it(e, t, n, r, i, a, o, s) {
|
|
1151
|
+
return new ct(e, t, n, r, i, a, o, s);
|
|
1162
1152
|
}
|
|
1163
|
-
function
|
|
1164
|
-
let a = de(t,
|
|
1153
|
+
function at(e, t, n, r, i) {
|
|
1154
|
+
let a = de(t, ot), o = Ve.getCompiledRuleId(n, r, i.repository);
|
|
1165
1155
|
for (let n of a) e.push({
|
|
1166
1156
|
debugSelector: t,
|
|
1167
1157
|
matcher: n.matcher,
|
|
@@ -1170,24 +1160,24 @@ function st(e, t, n, r, i) {
|
|
|
1170
1160
|
priority: n.priority
|
|
1171
1161
|
});
|
|
1172
1162
|
}
|
|
1173
|
-
function
|
|
1163
|
+
function ot(e, t) {
|
|
1174
1164
|
if (t.length < e.length) return !1;
|
|
1175
1165
|
let n = 0;
|
|
1176
1166
|
return e.every((e) => {
|
|
1177
|
-
for (let r = n; r < t.length; r++) if (
|
|
1167
|
+
for (let r = n; r < t.length; r++) if (st(t[r], e)) return n = r + 1, !0;
|
|
1178
1168
|
return !1;
|
|
1179
1169
|
});
|
|
1180
1170
|
}
|
|
1181
|
-
function
|
|
1171
|
+
function st(e, t) {
|
|
1182
1172
|
if (!e) return !1;
|
|
1183
1173
|
if (e === t) return !0;
|
|
1184
1174
|
let n = t.length;
|
|
1185
1175
|
return e.length > n && e.substr(0, n) === t && e[n] === ".";
|
|
1186
1176
|
}
|
|
1187
|
-
var
|
|
1177
|
+
var ct = class {
|
|
1188
1178
|
constructor(e, t, n, r, i, a, o, s) {
|
|
1189
|
-
if (this._rootScopeName = e, this.balancedBracketSelectors = a, this._onigLib = s, this._basicScopeAttributesProvider = new Ke(n, r), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = o, this._grammar =
|
|
1190
|
-
let t = de(e,
|
|
1179
|
+
if (this._rootScopeName = e, this.balancedBracketSelectors = a, this._onigLib = s, this._basicScopeAttributesProvider = new Ke(n, r), this._rootId = -1, this._lastRuleId = 0, this._ruleId2desc = [null], this._includedGrammars = {}, this._grammarRepository = o, this._grammar = lt(t, null), this._injections = null, this._tokenTypeMatchers = [], i) for (let e of Object.keys(i)) {
|
|
1180
|
+
let t = de(e, ot);
|
|
1191
1181
|
for (let n of t) this._tokenTypeMatchers.push({
|
|
1192
1182
|
matcher: n.matcher,
|
|
1193
1183
|
type: i[e]
|
|
@@ -1225,13 +1215,13 @@ var ut = class {
|
|
|
1225
1215
|
}, t = [], n = this._rootScopeName, r = e.lookup(n);
|
|
1226
1216
|
if (r) {
|
|
1227
1217
|
let e = r.injections;
|
|
1228
|
-
if (e) for (let n in e)
|
|
1218
|
+
if (e) for (let n in e) at(t, n, e[n], this, r);
|
|
1229
1219
|
let i = this._grammarRepository.injections(n);
|
|
1230
1220
|
i && i.forEach((e) => {
|
|
1231
1221
|
let n = this.getExternalGrammar(e);
|
|
1232
1222
|
if (n) {
|
|
1233
1223
|
let e = n.injectionSelector;
|
|
1234
|
-
e &&
|
|
1224
|
+
e && at(t, e, n, this, n);
|
|
1235
1225
|
}
|
|
1236
1226
|
});
|
|
1237
1227
|
}
|
|
@@ -1251,7 +1241,7 @@ var ut = class {
|
|
|
1251
1241
|
if (this._includedGrammars[e]) return this._includedGrammars[e];
|
|
1252
1242
|
if (this._grammarRepository) {
|
|
1253
1243
|
let n = this._grammarRepository.lookup(e);
|
|
1254
|
-
if (n) return this._includedGrammars[e] =
|
|
1244
|
+
if (n) return this._includedGrammars[e] = lt(n, t && t.$base), this._includedGrammars[e];
|
|
1255
1245
|
}
|
|
1256
1246
|
}
|
|
1257
1247
|
tokenizeLine(e, t, n = 0) {
|
|
@@ -1273,13 +1263,13 @@ var ut = class {
|
|
|
1273
1263
|
_tokenize(e, t, n, r) {
|
|
1274
1264
|
this._rootId === -1 && (this._rootId = Ve.getCompiledRuleId(this._grammar.repository.$self, this, this._grammar.repository), this.getInjections());
|
|
1275
1265
|
let i;
|
|
1276
|
-
if (!t || t ===
|
|
1266
|
+
if (!t || t === dt.NULL) {
|
|
1277
1267
|
i = !0;
|
|
1278
1268
|
let e = this._basicScopeAttributesProvider.getDefaultAttributes(), n = this.themeProvider.getDefaults(), r = y.set(0, e.languageId, e.tokenType, null, n.fontStyle, n.foregroundId, n.backgroundId), a = this.getRule(this._rootId).getName(null, null), o;
|
|
1279
|
-
o = a ?
|
|
1269
|
+
o = a ? ut.createRootAndLookUpScopeName(a, r, this) : ut.createRoot("unknown", r), t = new dt(null, this._rootId, -1, -1, !1, null, o, o);
|
|
1280
1270
|
} else i = !1, t.reset();
|
|
1281
1271
|
e += "\n";
|
|
1282
|
-
let a = this.createOnigString(e), o = a.content.length, s = new
|
|
1272
|
+
let a = this.createOnigString(e), o = a.content.length, s = new pt(n, e, this._tokenTypeMatchers, this.balancedBracketSelectors), c = Ye(this, a, i, 0, t, s, !0, r);
|
|
1283
1273
|
return me(a), {
|
|
1284
1274
|
lineLength: o,
|
|
1285
1275
|
lineTokens: s,
|
|
@@ -1288,14 +1278,14 @@ var ut = class {
|
|
|
1288
1278
|
};
|
|
1289
1279
|
}
|
|
1290
1280
|
};
|
|
1291
|
-
function
|
|
1281
|
+
function lt(e, t) {
|
|
1292
1282
|
return e = n(e), e.repository = e.repository || {}, e.repository.$self = {
|
|
1293
1283
|
$vscodeTextmateLocation: e.$vscodeTextmateLocation,
|
|
1294
1284
|
patterns: e.patterns,
|
|
1295
1285
|
name: e.scopeName
|
|
1296
1286
|
}, e.repository.$base = t || e.repository.$self, e;
|
|
1297
1287
|
}
|
|
1298
|
-
var
|
|
1288
|
+
var ut = class e {
|
|
1299
1289
|
constructor(e, t, n) {
|
|
1300
1290
|
this.parent = e, this.scopePath = t, this.tokenAttributes = n;
|
|
1301
1291
|
}
|
|
@@ -1308,8 +1298,8 @@ var ft = class e {
|
|
|
1308
1298
|
return new e(null, new g(null, t), n);
|
|
1309
1299
|
}
|
|
1310
1300
|
static createRootAndLookUpScopeName(t, n, r) {
|
|
1311
|
-
let i = r.getMetadataForScope(t), a = new g(null, t), o = r.themeProvider.themeMatch(a);
|
|
1312
|
-
return new e(null, a,
|
|
1301
|
+
let i = r.getMetadataForScope(t), a = new g(null, t), o = r.themeProvider.themeMatch(a), s = e.mergeAttributes(n, i, o);
|
|
1302
|
+
return new e(null, a, s);
|
|
1313
1303
|
}
|
|
1314
1304
|
get scopeName() {
|
|
1315
1305
|
return this.scopePath.scopeName;
|
|
@@ -1339,8 +1329,8 @@ var ft = class e {
|
|
|
1339
1329
|
return i;
|
|
1340
1330
|
}
|
|
1341
1331
|
static _pushAttributed(t, n, r) {
|
|
1342
|
-
let i = r.getMetadataForScope(n), a = t.scopePath.push(n), o = r.themeProvider.themeMatch(a);
|
|
1343
|
-
return new e(t, a,
|
|
1332
|
+
let i = r.getMetadataForScope(n), a = t.scopePath.push(n), o = r.themeProvider.themeMatch(a), s = e.mergeAttributes(t.tokenAttributes, i, o);
|
|
1333
|
+
return new e(t, a, s);
|
|
1344
1334
|
}
|
|
1345
1335
|
getScopeNames() {
|
|
1346
1336
|
return this.scopePath.getSegments();
|
|
@@ -1353,7 +1343,7 @@ var ft = class e {
|
|
|
1353
1343
|
}), n = n.parent;
|
|
1354
1344
|
return n === e ? t.reverse() : void 0;
|
|
1355
1345
|
}
|
|
1356
|
-
},
|
|
1346
|
+
}, dt = class e {
|
|
1357
1347
|
constructor(e, t, n, r, i, a, o, s) {
|
|
1358
1348
|
this.parent = e, this.ruleId = t, this.beginRuleCapturedEOL = i, this.endRule = a, this.nameScopesList = o, this.contentNameScopesList = s, this.depth = this.parent ? this.parent.depth + 1 : 1, this._enterPos = n, this._anchorPos = r;
|
|
1359
1349
|
}
|
|
@@ -1363,10 +1353,10 @@ var ft = class e {
|
|
|
1363
1353
|
_anchorPos;
|
|
1364
1354
|
depth;
|
|
1365
1355
|
equals(t) {
|
|
1366
|
-
return t
|
|
1356
|
+
return t !== null && e._equals(this, t);
|
|
1367
1357
|
}
|
|
1368
1358
|
static _equals(e, t) {
|
|
1369
|
-
return e === t ? !0 : this._structuralEquals(e, t) ?
|
|
1359
|
+
return e === t ? !0 : this._structuralEquals(e, t) ? ut.equals(e.contentNameScopesList, t.contentNameScopesList) : !1;
|
|
1370
1360
|
}
|
|
1371
1361
|
static _structuralEquals(e, t) {
|
|
1372
1362
|
do {
|
|
@@ -1433,15 +1423,15 @@ var ft = class e {
|
|
|
1433
1423
|
};
|
|
1434
1424
|
}
|
|
1435
1425
|
static pushFrame(t, n) {
|
|
1436
|
-
let r =
|
|
1437
|
-
return new e(t, Ne(n.ruleId), n.enterPos ?? -1, n.anchorPos ?? -1, n.beginRuleCapturedEOL, n.endRule, r,
|
|
1426
|
+
let r = ut.fromExtension(t?.nameScopesList ?? null, n.nameScopesList);
|
|
1427
|
+
return new e(t, Ne(n.ruleId), n.enterPos ?? -1, n.anchorPos ?? -1, n.beginRuleCapturedEOL, n.endRule, r, ut.fromExtension(r, n.contentNameScopesList));
|
|
1438
1428
|
}
|
|
1439
|
-
},
|
|
1429
|
+
}, ft = class {
|
|
1440
1430
|
balancedBracketScopes;
|
|
1441
1431
|
unbalancedBracketScopes;
|
|
1442
1432
|
allowAny = !1;
|
|
1443
1433
|
constructor(e, t) {
|
|
1444
|
-
this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : de(e,
|
|
1434
|
+
this.balancedBracketScopes = e.flatMap((e) => e === "*" ? (this.allowAny = !0, []) : de(e, ot).map((e) => e.matcher)), this.unbalancedBracketScopes = t.flatMap((e) => de(e, ot).map((e) => e.matcher));
|
|
1445
1435
|
}
|
|
1446
1436
|
get matchesAlways() {
|
|
1447
1437
|
return this.allowAny && this.unbalancedBracketScopes.length === 0;
|
|
@@ -1454,7 +1444,7 @@ var ft = class e {
|
|
|
1454
1444
|
for (let t of this.balancedBracketScopes) if (t(e)) return !0;
|
|
1455
1445
|
return this.allowAny;
|
|
1456
1446
|
}
|
|
1457
|
-
},
|
|
1447
|
+
}, pt = class {
|
|
1458
1448
|
constructor(e, t, n, r) {
|
|
1459
1449
|
this.balancedBracketSelectors = r, this._emitBinaryTokens = e, this._tokenTypeOverrides = n, this._lineText = null, this._tokens = [], this._binaryTokens = [], this._lastTokenEndIndex = 0;
|
|
1460
1450
|
}
|
|
@@ -1499,7 +1489,7 @@ var ft = class e {
|
|
|
1499
1489
|
for (let e = 0, t = this._binaryTokens.length; e < t; e++) n[e] = this._binaryTokens[e];
|
|
1500
1490
|
return n;
|
|
1501
1491
|
}
|
|
1502
|
-
},
|
|
1492
|
+
}, mt = class {
|
|
1503
1493
|
constructor(e, t) {
|
|
1504
1494
|
this._onigLib = t, this._theme = e;
|
|
1505
1495
|
}
|
|
@@ -1535,16 +1525,16 @@ var ft = class e {
|
|
|
1535
1525
|
if (!this._grammars.has(e)) {
|
|
1536
1526
|
let a = this._rawGrammars.get(e);
|
|
1537
1527
|
if (!a) return null;
|
|
1538
|
-
this._grammars.set(e,
|
|
1528
|
+
this._grammars.set(e, it(e, a, t, n, r, i, this, this._onigLib));
|
|
1539
1529
|
}
|
|
1540
1530
|
return this._grammars.get(e);
|
|
1541
1531
|
}
|
|
1542
|
-
},
|
|
1532
|
+
}, ht = class {
|
|
1543
1533
|
_options;
|
|
1544
1534
|
_syncRegistry;
|
|
1545
1535
|
_ensureGrammarCache;
|
|
1546
1536
|
constructor(e) {
|
|
1547
|
-
this._options = e, this._syncRegistry = new
|
|
1537
|
+
this._options = e, this._syncRegistry = new mt(h.createFromRawTheme(e.theme, e.colorMap), e.onigLib), this._ensureGrammarCache = /* @__PURE__ */ new Map();
|
|
1548
1538
|
}
|
|
1549
1539
|
dispose() {
|
|
1550
1540
|
this._syncRegistry.dispose();
|
|
@@ -1559,7 +1549,7 @@ var ft = class e {
|
|
|
1559
1549
|
return this.loadGrammarWithConfiguration(e, t, { embeddedLanguages: n });
|
|
1560
1550
|
}
|
|
1561
1551
|
loadGrammarWithConfiguration(e, t, n) {
|
|
1562
|
-
return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new
|
|
1552
|
+
return this._loadGrammar(e, t, n.embeddedLanguages, n.tokenTypes, new ft(n.balancedBracketSelectors || [], n.unbalancedBracketSelectors || []));
|
|
1563
1553
|
}
|
|
1564
1554
|
loadGrammar(e) {
|
|
1565
1555
|
return this._loadGrammar(e, 0, null, null, null);
|
|
@@ -1585,7 +1575,7 @@ var ft = class e {
|
|
|
1585
1575
|
_grammarForScopeName(e, t = 0, n = null, r = null, i = null) {
|
|
1586
1576
|
return this._syncRegistry.grammarForScopeName(e, t, n, r, i);
|
|
1587
1577
|
}
|
|
1588
|
-
},
|
|
1578
|
+
}, gt = dt.NULL, _t = [
|
|
1589
1579
|
"area",
|
|
1590
1580
|
"base",
|
|
1591
1581
|
"basefont",
|
|
@@ -1606,22 +1596,22 @@ var ft = class e {
|
|
|
1606
1596
|
"source",
|
|
1607
1597
|
"track",
|
|
1608
1598
|
"wbr"
|
|
1609
|
-
],
|
|
1599
|
+
], vt = class {
|
|
1610
1600
|
constructor(e, t, n) {
|
|
1611
1601
|
this.normal = t, this.property = e, n && (this.space = n);
|
|
1612
1602
|
}
|
|
1613
1603
|
};
|
|
1614
|
-
|
|
1604
|
+
vt.prototype.normal = {}, vt.prototype.property = {}, vt.prototype.space = void 0;
|
|
1615
1605
|
//#endregion
|
|
1616
1606
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/merge.js
|
|
1617
|
-
function
|
|
1607
|
+
function yt(e, t) {
|
|
1618
1608
|
let n = {}, r = {};
|
|
1619
1609
|
for (let t of e) Object.assign(n, t.property), Object.assign(r, t.normal);
|
|
1620
|
-
return new
|
|
1610
|
+
return new vt(n, r, t);
|
|
1621
1611
|
}
|
|
1622
1612
|
//#endregion
|
|
1623
1613
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/normalize.js
|
|
1624
|
-
function
|
|
1614
|
+
function bt(e) {
|
|
1625
1615
|
return e.toLowerCase();
|
|
1626
1616
|
}
|
|
1627
1617
|
//#endregion
|
|
@@ -1634,46 +1624,46 @@ var b = class {
|
|
|
1634
1624
|
b.prototype.attribute = "", b.prototype.booleanish = !1, b.prototype.boolean = !1, b.prototype.commaOrSpaceSeparated = !1, b.prototype.commaSeparated = !1, b.prototype.defined = !1, b.prototype.mustUseProperty = !1, b.prototype.number = !1, b.prototype.overloadedBoolean = !1, b.prototype.property = "", b.prototype.spaceSeparated = !1, b.prototype.space = void 0;
|
|
1635
1625
|
//#endregion
|
|
1636
1626
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/types.js
|
|
1637
|
-
var
|
|
1627
|
+
var xt = /* @__PURE__ */ e({
|
|
1638
1628
|
boolean: () => x,
|
|
1639
1629
|
booleanish: () => S,
|
|
1640
1630
|
commaOrSpaceSeparated: () => E,
|
|
1641
1631
|
commaSeparated: () => T,
|
|
1642
1632
|
number: () => C,
|
|
1643
|
-
overloadedBoolean: () =>
|
|
1633
|
+
overloadedBoolean: () => Ct,
|
|
1644
1634
|
spaceSeparated: () => w
|
|
1645
|
-
}),
|
|
1635
|
+
}), St = 0, x = D(), S = D(), Ct = D(), C = D(), w = D(), T = D(), E = D();
|
|
1646
1636
|
function D() {
|
|
1647
|
-
return 2 ** ++
|
|
1637
|
+
return 2 ** ++St;
|
|
1648
1638
|
}
|
|
1649
1639
|
//#endregion
|
|
1650
1640
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/defined-info.js
|
|
1651
|
-
var
|
|
1641
|
+
var wt = Object.keys(xt), Tt = class extends b {
|
|
1652
1642
|
constructor(e, t, n, r) {
|
|
1653
1643
|
let i = -1;
|
|
1654
|
-
if (super(e, t),
|
|
1655
|
-
let e =
|
|
1656
|
-
|
|
1644
|
+
if (super(e, t), Et(this, "space", r), typeof n == "number") for (; ++i < wt.length;) {
|
|
1645
|
+
let e = wt[i];
|
|
1646
|
+
Et(this, wt[i], (n & xt[e]) === xt[e]);
|
|
1657
1647
|
}
|
|
1658
1648
|
}
|
|
1659
1649
|
};
|
|
1660
|
-
|
|
1661
|
-
function
|
|
1650
|
+
Tt.prototype.defined = !0;
|
|
1651
|
+
function Et(e, t, n) {
|
|
1662
1652
|
n && (e[t] = n);
|
|
1663
1653
|
}
|
|
1664
1654
|
//#endregion
|
|
1665
1655
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/create.js
|
|
1666
|
-
function
|
|
1656
|
+
function O(e) {
|
|
1667
1657
|
let t = {}, n = {};
|
|
1668
1658
|
for (let [r, i] of Object.entries(e.properties)) {
|
|
1669
|
-
let a = new
|
|
1670
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[
|
|
1659
|
+
let a = new Tt(r, e.transform(e.attributes || {}, r), i, e.space);
|
|
1660
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (a.mustUseProperty = !0), t[r] = a, n[bt(r)] = r, n[bt(a.attribute)] = r;
|
|
1671
1661
|
}
|
|
1672
|
-
return new
|
|
1662
|
+
return new vt(t, n, e.space);
|
|
1673
1663
|
}
|
|
1674
1664
|
//#endregion
|
|
1675
1665
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/aria.js
|
|
1676
|
-
var
|
|
1666
|
+
var Dt = O({
|
|
1677
1667
|
properties: {
|
|
1678
1668
|
ariaActiveDescendant: null,
|
|
1679
1669
|
ariaAtomic: S,
|
|
@@ -1731,17 +1721,17 @@ var At = kt({
|
|
|
1731
1721
|
});
|
|
1732
1722
|
//#endregion
|
|
1733
1723
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-sensitive-transform.js
|
|
1734
|
-
function
|
|
1724
|
+
function Ot(e, t) {
|
|
1735
1725
|
return t in e ? e[t] : t;
|
|
1736
1726
|
}
|
|
1737
1727
|
//#endregion
|
|
1738
1728
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/util/case-insensitive-transform.js
|
|
1739
|
-
function
|
|
1740
|
-
return
|
|
1729
|
+
function kt(e, t) {
|
|
1730
|
+
return Ot(e, t.toLowerCase());
|
|
1741
1731
|
}
|
|
1742
1732
|
//#endregion
|
|
1743
1733
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/lib/html.js
|
|
1744
|
-
var
|
|
1734
|
+
var At = O({
|
|
1745
1735
|
attributes: {
|
|
1746
1736
|
acceptcharset: "accept-charset",
|
|
1747
1737
|
classname: "class",
|
|
@@ -1793,7 +1783,7 @@ var Nt = kt({
|
|
|
1793
1783
|
dir: null,
|
|
1794
1784
|
dirName: null,
|
|
1795
1785
|
disabled: x,
|
|
1796
|
-
download:
|
|
1786
|
+
download: Ct,
|
|
1797
1787
|
draggable: S,
|
|
1798
1788
|
encType: null,
|
|
1799
1789
|
enterKeyHint: null,
|
|
@@ -1806,7 +1796,7 @@ var Nt = kt({
|
|
|
1806
1796
|
formTarget: null,
|
|
1807
1797
|
headers: w,
|
|
1808
1798
|
height: C,
|
|
1809
|
-
hidden:
|
|
1799
|
+
hidden: Ct,
|
|
1810
1800
|
high: C,
|
|
1811
1801
|
href: null,
|
|
1812
1802
|
hrefLang: null,
|
|
@@ -2049,8 +2039,8 @@ var Nt = kt({
|
|
|
2049
2039
|
unselectable: null
|
|
2050
2040
|
},
|
|
2051
2041
|
space: "html",
|
|
2052
|
-
transform:
|
|
2053
|
-
}),
|
|
2042
|
+
transform: kt
|
|
2043
|
+
}), jt = O({
|
|
2054
2044
|
attributes: {
|
|
2055
2045
|
accentHeight: "accent-height",
|
|
2056
2046
|
alignmentBaseline: "alignment-baseline",
|
|
@@ -2604,8 +2594,8 @@ var Nt = kt({
|
|
|
2604
2594
|
zoomAndPan: null
|
|
2605
2595
|
},
|
|
2606
2596
|
space: "svg",
|
|
2607
|
-
transform:
|
|
2608
|
-
}),
|
|
2597
|
+
transform: Ot
|
|
2598
|
+
}), Mt = O({
|
|
2609
2599
|
properties: {
|
|
2610
2600
|
xLinkActuate: null,
|
|
2611
2601
|
xLinkArcRole: null,
|
|
@@ -2619,15 +2609,15 @@ var Nt = kt({
|
|
|
2619
2609
|
transform(e, t) {
|
|
2620
2610
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
2621
2611
|
}
|
|
2622
|
-
}),
|
|
2612
|
+
}), Nt = O({
|
|
2623
2613
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
2624
2614
|
properties: {
|
|
2625
2615
|
xmlnsXLink: null,
|
|
2626
2616
|
xmlns: null
|
|
2627
2617
|
},
|
|
2628
2618
|
space: "xmlns",
|
|
2629
|
-
transform:
|
|
2630
|
-
}),
|
|
2619
|
+
transform: kt
|
|
2620
|
+
}), Pt = O({
|
|
2631
2621
|
properties: {
|
|
2632
2622
|
xmlBase: null,
|
|
2633
2623
|
xmlLang: null,
|
|
@@ -2637,53 +2627,53 @@ var Nt = kt({
|
|
|
2637
2627
|
transform(e, t) {
|
|
2638
2628
|
return "xml:" + t.slice(3).toLowerCase();
|
|
2639
2629
|
}
|
|
2640
|
-
}),
|
|
2641
|
-
function
|
|
2642
|
-
let n =
|
|
2630
|
+
}), Ft = /[A-Z]/g, It = /-[a-z]/g, Lt = /^data[-\w.:]+$/i;
|
|
2631
|
+
function Rt(e, t) {
|
|
2632
|
+
let n = bt(t), r = t, i = b;
|
|
2643
2633
|
if (n in e.normal) return e.property[e.normal[n]];
|
|
2644
|
-
if (n.length > 4 && n.slice(0, 4) === "data" &&
|
|
2634
|
+
if (n.length > 4 && n.slice(0, 4) === "data" && Lt.test(t)) {
|
|
2645
2635
|
if (t.charAt(4) === "-") {
|
|
2646
|
-
let e = t.slice(5).replace(
|
|
2636
|
+
let e = t.slice(5).replace(It, Bt);
|
|
2647
2637
|
r = "data" + e.charAt(0).toUpperCase() + e.slice(1);
|
|
2648
2638
|
} else {
|
|
2649
2639
|
let e = t.slice(4);
|
|
2650
|
-
if (!
|
|
2651
|
-
let n = e.replace(
|
|
2640
|
+
if (!It.test(e)) {
|
|
2641
|
+
let n = e.replace(Ft, zt);
|
|
2652
2642
|
n.charAt(0) !== "-" && (n = "-" + n), t = "data" + n;
|
|
2653
2643
|
}
|
|
2654
2644
|
}
|
|
2655
|
-
i =
|
|
2645
|
+
i = Tt;
|
|
2656
2646
|
}
|
|
2657
2647
|
return new i(r, t);
|
|
2658
2648
|
}
|
|
2659
|
-
function
|
|
2649
|
+
function zt(e) {
|
|
2660
2650
|
return "-" + e.toLowerCase();
|
|
2661
2651
|
}
|
|
2662
|
-
function
|
|
2652
|
+
function Bt(e) {
|
|
2663
2653
|
return e.charAt(1).toUpperCase();
|
|
2664
2654
|
}
|
|
2665
2655
|
//#endregion
|
|
2666
2656
|
//#region ../../node_modules/.pnpm/property-information@7.1.0/node_modules/property-information/index.js
|
|
2667
|
-
var
|
|
2657
|
+
var Vt = yt([
|
|
2658
|
+
Dt,
|
|
2668
2659
|
At,
|
|
2660
|
+
Mt,
|
|
2669
2661
|
Nt,
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
], "svg"), Kt = {}.hasOwnProperty;
|
|
2680
|
-
function qt(e, t) {
|
|
2662
|
+
Pt
|
|
2663
|
+
], "html"), Ht = yt([
|
|
2664
|
+
Dt,
|
|
2665
|
+
jt,
|
|
2666
|
+
Mt,
|
|
2667
|
+
Nt,
|
|
2668
|
+
Pt
|
|
2669
|
+
], "svg"), Ut = {}.hasOwnProperty;
|
|
2670
|
+
function Wt(e, t) {
|
|
2681
2671
|
let n = t || {};
|
|
2682
2672
|
function r(t, ...n) {
|
|
2683
2673
|
let i = r.invalid, a = r.handlers;
|
|
2684
|
-
if (t &&
|
|
2674
|
+
if (t && Ut.call(t, e)) {
|
|
2685
2675
|
let n = String(t[e]);
|
|
2686
|
-
i =
|
|
2676
|
+
i = Ut.call(a, n) ? a[n] : r.unknown;
|
|
2687
2677
|
}
|
|
2688
2678
|
if (i) return i.call(this, t, ...n);
|
|
2689
2679
|
}
|
|
@@ -2691,10 +2681,10 @@ function qt(e, t) {
|
|
|
2691
2681
|
}
|
|
2692
2682
|
//#endregion
|
|
2693
2683
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/core.js
|
|
2694
|
-
var
|
|
2695
|
-
function
|
|
2696
|
-
if (e = e.replace(t.subset ?
|
|
2697
|
-
return e.replace(
|
|
2684
|
+
var Gt = /["&'<>`]/g, Kt = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, qt = /[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g, Jt = /[|\\{}()[\]^$+*?.]/g, Yt = /* @__PURE__ */ new WeakMap();
|
|
2685
|
+
function Xt(e, t) {
|
|
2686
|
+
if (e = e.replace(t.subset ? Zt(t.subset) : Gt, r), t.subset || t.escapeOnly) return e;
|
|
2687
|
+
return e.replace(Kt, n).replace(qt, r);
|
|
2698
2688
|
function n(e, n, r) {
|
|
2699
2689
|
return t.format((e.charCodeAt(0) - 55296) * 1024 + e.charCodeAt(1) - 56320 + 65536, r.charCodeAt(n + 2), t);
|
|
2700
2690
|
}
|
|
@@ -2702,32 +2692,32 @@ function $t(e, t) {
|
|
|
2702
2692
|
return t.format(e.charCodeAt(0), r.charCodeAt(n + 1), t);
|
|
2703
2693
|
}
|
|
2704
2694
|
}
|
|
2705
|
-
function
|
|
2706
|
-
let t =
|
|
2707
|
-
return t || (t =
|
|
2695
|
+
function Zt(e) {
|
|
2696
|
+
let t = Yt.get(e);
|
|
2697
|
+
return t || (t = Qt(e), Yt.set(e, t)), t;
|
|
2708
2698
|
}
|
|
2709
|
-
function
|
|
2699
|
+
function Qt(e) {
|
|
2710
2700
|
let t = [], n = -1;
|
|
2711
|
-
for (; ++n < e.length;) t.push(e[n].replace(
|
|
2701
|
+
for (; ++n < e.length;) t.push(e[n].replace(Jt, "\\$&"));
|
|
2712
2702
|
return RegExp("(?:" + t.join("|") + ")", "g");
|
|
2713
2703
|
}
|
|
2714
2704
|
//#endregion
|
|
2715
2705
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-hexadecimal.js
|
|
2716
|
-
var
|
|
2717
|
-
function
|
|
2706
|
+
var $t = /[\dA-Fa-f]/;
|
|
2707
|
+
function en(e, t, n) {
|
|
2718
2708
|
let r = "&#x" + e.toString(16).toUpperCase();
|
|
2719
|
-
return n && t &&
|
|
2709
|
+
return n && t && !$t.test(String.fromCharCode(t)) ? r : r + ";";
|
|
2720
2710
|
}
|
|
2721
2711
|
//#endregion
|
|
2722
2712
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/to-decimal.js
|
|
2723
|
-
var
|
|
2724
|
-
function
|
|
2713
|
+
var tn = /\d/;
|
|
2714
|
+
function nn(e, t, n) {
|
|
2725
2715
|
let r = "&#" + String(e);
|
|
2726
|
-
return n && t && !
|
|
2716
|
+
return n && t && !tn.test(String.fromCharCode(t)) ? r : r + ";";
|
|
2727
2717
|
}
|
|
2728
2718
|
//#endregion
|
|
2729
2719
|
//#region ../../node_modules/.pnpm/character-entities-legacy@3.0.0/node_modules/character-entities-legacy/index.js
|
|
2730
|
-
var
|
|
2720
|
+
var rn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml".split("."), an = {
|
|
2731
2721
|
nbsp: "\xA0",
|
|
2732
2722
|
iexcl: "¡",
|
|
2733
2723
|
cent: "¢",
|
|
@@ -2980,7 +2970,7 @@ var sn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.C
|
|
|
2980
2970
|
lsaquo: "‹",
|
|
2981
2971
|
rsaquo: "›",
|
|
2982
2972
|
euro: "€"
|
|
2983
|
-
},
|
|
2973
|
+
}, on = [
|
|
2984
2974
|
"cent",
|
|
2985
2975
|
"copy",
|
|
2986
2976
|
"divide",
|
|
@@ -2989,49 +2979,49 @@ var sn = /* @__PURE__ */ "AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.C
|
|
|
2989
2979
|
"not",
|
|
2990
2980
|
"para",
|
|
2991
2981
|
"times"
|
|
2992
|
-
],
|
|
2993
|
-
for (
|
|
2994
|
-
var
|
|
2995
|
-
function
|
|
2982
|
+
], sn = {}.hasOwnProperty, cn = {}, ln;
|
|
2983
|
+
for (ln in an) sn.call(an, ln) && (cn[an[ln]] = ln);
|
|
2984
|
+
var un = /[^\dA-Za-z]/;
|
|
2985
|
+
function dn(e, t, n, r) {
|
|
2996
2986
|
let i = String.fromCharCode(e);
|
|
2997
|
-
if (
|
|
2998
|
-
let e =
|
|
2999
|
-
return n &&
|
|
2987
|
+
if (sn.call(cn, i)) {
|
|
2988
|
+
let e = cn[i], a = "&" + e;
|
|
2989
|
+
return n && rn.includes(e) && !on.includes(e) && (!r || t && t !== 61 && un.test(String.fromCharCode(t))) ? a : a + ";";
|
|
3000
2990
|
}
|
|
3001
2991
|
return "";
|
|
3002
2992
|
}
|
|
3003
2993
|
//#endregion
|
|
3004
2994
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/util/format-smart.js
|
|
3005
|
-
function
|
|
3006
|
-
let r =
|
|
3007
|
-
if ((n.useNamedReferences || n.useShortestReferences) && (i =
|
|
3008
|
-
let i =
|
|
2995
|
+
function fn(e, t, n) {
|
|
2996
|
+
let r = en(e, t, n.omitOptionalSemicolons), i;
|
|
2997
|
+
if ((n.useNamedReferences || n.useShortestReferences) && (i = dn(e, t, n.omitOptionalSemicolons, n.attribute)), (n.useShortestReferences || !i) && n.useShortestReferences) {
|
|
2998
|
+
let i = nn(e, t, n.omitOptionalSemicolons);
|
|
3009
2999
|
i.length < r.length && (r = i);
|
|
3010
3000
|
}
|
|
3011
3001
|
return i && (!n.useShortestReferences || i.length < r.length) ? i : r;
|
|
3012
3002
|
}
|
|
3013
3003
|
//#endregion
|
|
3014
3004
|
//#region ../../node_modules/.pnpm/stringify-entities@4.0.4/node_modules/stringify-entities/lib/index.js
|
|
3015
|
-
function
|
|
3016
|
-
return
|
|
3005
|
+
function k(e, t) {
|
|
3006
|
+
return Xt(e, Object.assign({ format: fn }, t));
|
|
3017
3007
|
}
|
|
3018
3008
|
//#endregion
|
|
3019
3009
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/comment.js
|
|
3020
|
-
var
|
|
3021
|
-
function
|
|
3022
|
-
return r.settings.bogusComments ? "<?" +
|
|
3010
|
+
var pn = /^>|^->|<!--|-->|--!>|<!-$/g, mn = [">"], hn = ["<", ">"];
|
|
3011
|
+
function gn(e, t, n, r) {
|
|
3012
|
+
return r.settings.bogusComments ? "<?" + k(e.value, Object.assign({}, r.settings.characterReferences, { subset: mn })) + ">" : "<!--" + e.value.replace(pn, i) + "-->";
|
|
3023
3013
|
function i(e) {
|
|
3024
|
-
return
|
|
3014
|
+
return k(e, Object.assign({}, r.settings.characterReferences, { subset: hn }));
|
|
3025
3015
|
}
|
|
3026
3016
|
}
|
|
3027
3017
|
//#endregion
|
|
3028
3018
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/doctype.js
|
|
3029
|
-
function
|
|
3019
|
+
function _n(e, t, n, r) {
|
|
3030
3020
|
return "<!" + (r.settings.upperDoctype ? "DOCTYPE" : "doctype") + (r.settings.tightDoctype ? "" : " ") + "html>";
|
|
3031
3021
|
}
|
|
3032
3022
|
//#endregion
|
|
3033
3023
|
//#region ../../node_modules/.pnpm/ccount@2.0.1/node_modules/ccount/index.js
|
|
3034
|
-
function
|
|
3024
|
+
function vn(e, t) {
|
|
3035
3025
|
let n = String(e);
|
|
3036
3026
|
if (typeof t != "string") throw TypeError("Expected character");
|
|
3037
3027
|
let r = 0, i = n.indexOf(t);
|
|
@@ -3040,140 +3030,140 @@ function Sn(e, t) {
|
|
|
3040
3030
|
}
|
|
3041
3031
|
//#endregion
|
|
3042
3032
|
//#region ../../node_modules/.pnpm/comma-separated-tokens@2.0.3/node_modules/comma-separated-tokens/index.js
|
|
3043
|
-
function
|
|
3033
|
+
function yn(e, t) {
|
|
3044
3034
|
let n = t || {};
|
|
3045
3035
|
return (e[e.length - 1] === "" ? [...e, ""] : e).join((n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")).trim();
|
|
3046
3036
|
}
|
|
3047
3037
|
//#endregion
|
|
3048
3038
|
//#region ../../node_modules/.pnpm/space-separated-tokens@2.0.2/node_modules/space-separated-tokens/index.js
|
|
3049
|
-
function
|
|
3039
|
+
function bn(e) {
|
|
3050
3040
|
return e.join(" ").trim();
|
|
3051
3041
|
}
|
|
3052
3042
|
//#endregion
|
|
3053
3043
|
//#region ../../node_modules/.pnpm/hast-util-whitespace@3.0.0/node_modules/hast-util-whitespace/lib/index.js
|
|
3054
|
-
var
|
|
3055
|
-
function
|
|
3056
|
-
return typeof e == "object" ? e.type === "text"
|
|
3044
|
+
var xn = /[ \t\n\f\r]/g;
|
|
3045
|
+
function Sn(e) {
|
|
3046
|
+
return typeof e == "object" ? e.type === "text" && Cn(e.value) : Cn(e);
|
|
3057
3047
|
}
|
|
3058
|
-
function
|
|
3059
|
-
return e.replace(
|
|
3048
|
+
function Cn(e) {
|
|
3049
|
+
return e.replace(xn, "") === "";
|
|
3060
3050
|
}
|
|
3061
3051
|
//#endregion
|
|
3062
3052
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/util/siblings.js
|
|
3063
|
-
var
|
|
3064
|
-
function
|
|
3053
|
+
var A = En(1), wn = En(-1), Tn = [];
|
|
3054
|
+
function En(e) {
|
|
3065
3055
|
return t;
|
|
3066
3056
|
function t(t, n, r) {
|
|
3067
|
-
let i = t ? t.children :
|
|
3068
|
-
if (!r) for (; o &&
|
|
3057
|
+
let i = t ? t.children : Tn, a = (n || 0) + e, o = i[a];
|
|
3058
|
+
if (!r) for (; o && Sn(o);) a += e, o = i[a];
|
|
3069
3059
|
return o;
|
|
3070
3060
|
}
|
|
3071
3061
|
}
|
|
3072
3062
|
//#endregion
|
|
3073
3063
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/omission.js
|
|
3074
|
-
var
|
|
3075
|
-
function
|
|
3064
|
+
var Dn = {}.hasOwnProperty;
|
|
3065
|
+
function On(e) {
|
|
3076
3066
|
return t;
|
|
3077
3067
|
function t(t, n, r) {
|
|
3078
|
-
return
|
|
3068
|
+
return Dn.call(e, t.tagName) && e[t.tagName](t, n, r);
|
|
3079
3069
|
}
|
|
3080
3070
|
}
|
|
3081
3071
|
//#endregion
|
|
3082
3072
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/closing.js
|
|
3083
|
-
var
|
|
3084
|
-
body:
|
|
3085
|
-
caption:
|
|
3086
|
-
colgroup:
|
|
3087
|
-
dd:
|
|
3088
|
-
dt:
|
|
3089
|
-
head:
|
|
3090
|
-
html:
|
|
3091
|
-
li:
|
|
3092
|
-
optgroup:
|
|
3093
|
-
option:
|
|
3094
|
-
p:
|
|
3095
|
-
rp:
|
|
3096
|
-
rt:
|
|
3097
|
-
tbody:
|
|
3098
|
-
td:
|
|
3099
|
-
tfoot:
|
|
3100
|
-
th:
|
|
3101
|
-
thead:
|
|
3102
|
-
tr:
|
|
3073
|
+
var kn = On({
|
|
3074
|
+
body: Mn,
|
|
3075
|
+
caption: An,
|
|
3076
|
+
colgroup: An,
|
|
3077
|
+
dd: In,
|
|
3078
|
+
dt: Fn,
|
|
3079
|
+
head: An,
|
|
3080
|
+
html: jn,
|
|
3081
|
+
li: Pn,
|
|
3082
|
+
optgroup: Rn,
|
|
3083
|
+
option: zn,
|
|
3084
|
+
p: Nn,
|
|
3085
|
+
rp: Ln,
|
|
3086
|
+
rt: Ln,
|
|
3087
|
+
tbody: Vn,
|
|
3088
|
+
td: Wn,
|
|
3089
|
+
tfoot: Hn,
|
|
3090
|
+
th: Wn,
|
|
3091
|
+
thead: Bn,
|
|
3092
|
+
tr: Un
|
|
3103
3093
|
});
|
|
3104
|
-
function
|
|
3105
|
-
let r =
|
|
3106
|
-
return !r || r.type !== "comment" && !(r.type === "text" &&
|
|
3094
|
+
function An(e, t, n) {
|
|
3095
|
+
let r = A(n, t, !0);
|
|
3096
|
+
return !r || r.type !== "comment" && !(r.type === "text" && Sn(r.value.charAt(0)));
|
|
3107
3097
|
}
|
|
3108
|
-
function
|
|
3109
|
-
let r =
|
|
3098
|
+
function jn(e, t, n) {
|
|
3099
|
+
let r = A(n, t);
|
|
3110
3100
|
return !r || r.type !== "comment";
|
|
3111
3101
|
}
|
|
3112
|
-
function
|
|
3113
|
-
let r =
|
|
3102
|
+
function Mn(e, t, n) {
|
|
3103
|
+
let r = A(n, t);
|
|
3114
3104
|
return !r || r.type !== "comment";
|
|
3115
3105
|
}
|
|
3116
|
-
function
|
|
3117
|
-
let r =
|
|
3118
|
-
return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n ||
|
|
3106
|
+
function Nn(e, t, n) {
|
|
3107
|
+
let r = A(n, t);
|
|
3108
|
+
return r ? r.type === "element" && (r.tagName === "address" || r.tagName === "article" || r.tagName === "aside" || r.tagName === "blockquote" || r.tagName === "details" || r.tagName === "div" || r.tagName === "dl" || r.tagName === "fieldset" || r.tagName === "figcaption" || r.tagName === "figure" || r.tagName === "footer" || r.tagName === "form" || r.tagName === "h1" || r.tagName === "h2" || r.tagName === "h3" || r.tagName === "h4" || r.tagName === "h5" || r.tagName === "h6" || r.tagName === "header" || r.tagName === "hgroup" || r.tagName === "hr" || r.tagName === "main" || r.tagName === "menu" || r.tagName === "nav" || r.tagName === "ol" || r.tagName === "p" || r.tagName === "pre" || r.tagName === "section" || r.tagName === "table" || r.tagName === "ul") : !n || n.type !== "element" || n.tagName !== "a" && n.tagName !== "audio" && n.tagName !== "del" && n.tagName !== "ins" && n.tagName !== "map" && n.tagName !== "noscript" && n.tagName !== "video";
|
|
3119
3109
|
}
|
|
3120
|
-
function
|
|
3121
|
-
let r =
|
|
3110
|
+
function Pn(e, t, n) {
|
|
3111
|
+
let r = A(n, t);
|
|
3122
3112
|
return !r || r.type === "element" && r.tagName === "li";
|
|
3123
3113
|
}
|
|
3124
|
-
function
|
|
3125
|
-
let r =
|
|
3114
|
+
function Fn(e, t, n) {
|
|
3115
|
+
let r = A(n, t);
|
|
3126
3116
|
return !!(r && r.type === "element" && (r.tagName === "dt" || r.tagName === "dd"));
|
|
3127
3117
|
}
|
|
3128
|
-
function
|
|
3129
|
-
let r =
|
|
3118
|
+
function In(e, t, n) {
|
|
3119
|
+
let r = A(n, t);
|
|
3130
3120
|
return !r || r.type === "element" && (r.tagName === "dt" || r.tagName === "dd");
|
|
3131
3121
|
}
|
|
3132
|
-
function
|
|
3133
|
-
let r =
|
|
3122
|
+
function Ln(e, t, n) {
|
|
3123
|
+
let r = A(n, t);
|
|
3134
3124
|
return !r || r.type === "element" && (r.tagName === "rp" || r.tagName === "rt");
|
|
3135
3125
|
}
|
|
3136
|
-
function
|
|
3137
|
-
let r =
|
|
3126
|
+
function Rn(e, t, n) {
|
|
3127
|
+
let r = A(n, t);
|
|
3138
3128
|
return !r || r.type === "element" && r.tagName === "optgroup";
|
|
3139
3129
|
}
|
|
3140
|
-
function
|
|
3141
|
-
let r =
|
|
3130
|
+
function zn(e, t, n) {
|
|
3131
|
+
let r = A(n, t);
|
|
3142
3132
|
return !r || r.type === "element" && (r.tagName === "option" || r.tagName === "optgroup");
|
|
3143
3133
|
}
|
|
3144
|
-
function
|
|
3145
|
-
let r =
|
|
3134
|
+
function Bn(e, t, n) {
|
|
3135
|
+
let r = A(n, t);
|
|
3146
3136
|
return !!(r && r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot"));
|
|
3147
3137
|
}
|
|
3148
|
-
function
|
|
3149
|
-
let r =
|
|
3138
|
+
function Vn(e, t, n) {
|
|
3139
|
+
let r = A(n, t);
|
|
3150
3140
|
return !r || r.type === "element" && (r.tagName === "tbody" || r.tagName === "tfoot");
|
|
3151
3141
|
}
|
|
3152
|
-
function
|
|
3153
|
-
return !
|
|
3142
|
+
function Hn(e, t, n) {
|
|
3143
|
+
return !A(n, t);
|
|
3154
3144
|
}
|
|
3155
|
-
function
|
|
3156
|
-
let r =
|
|
3145
|
+
function Un(e, t, n) {
|
|
3146
|
+
let r = A(n, t);
|
|
3157
3147
|
return !r || r.type === "element" && r.tagName === "tr";
|
|
3158
3148
|
}
|
|
3159
|
-
function
|
|
3160
|
-
let r =
|
|
3149
|
+
function Wn(e, t, n) {
|
|
3150
|
+
let r = A(n, t);
|
|
3161
3151
|
return !r || r.type === "element" && (r.tagName === "td" || r.tagName === "th");
|
|
3162
3152
|
}
|
|
3163
3153
|
//#endregion
|
|
3164
3154
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/omission/opening.js
|
|
3165
|
-
var
|
|
3166
|
-
body:
|
|
3167
|
-
colgroup:
|
|
3168
|
-
head:
|
|
3169
|
-
html:
|
|
3170
|
-
tbody:
|
|
3155
|
+
var Gn = On({
|
|
3156
|
+
body: Jn,
|
|
3157
|
+
colgroup: Yn,
|
|
3158
|
+
head: qn,
|
|
3159
|
+
html: Kn,
|
|
3160
|
+
tbody: Xn
|
|
3171
3161
|
});
|
|
3172
|
-
function
|
|
3173
|
-
let t =
|
|
3162
|
+
function Kn(e) {
|
|
3163
|
+
let t = A(e, -1);
|
|
3174
3164
|
return !t || t.type !== "comment";
|
|
3175
3165
|
}
|
|
3176
|
-
function
|
|
3166
|
+
function qn(e) {
|
|
3177
3167
|
let t = /* @__PURE__ */ new Set();
|
|
3178
3168
|
for (let n of e.children) if (n.type === "element" && (n.tagName === "base" || n.tagName === "title")) {
|
|
3179
3169
|
if (t.has(n.tagName)) return !1;
|
|
@@ -3182,37 +3172,37 @@ function Zn(e) {
|
|
|
3182
3172
|
let n = e.children[0];
|
|
3183
3173
|
return !n || n.type === "element";
|
|
3184
3174
|
}
|
|
3185
|
-
function
|
|
3186
|
-
let t =
|
|
3187
|
-
return !t || t.type !== "comment" && !(t.type === "text" &&
|
|
3175
|
+
function Jn(e) {
|
|
3176
|
+
let t = A(e, -1, !0);
|
|
3177
|
+
return !t || t.type !== "comment" && !(t.type === "text" && Sn(t.value.charAt(0))) && (t.type !== "element" || t.tagName !== "meta" && t.tagName !== "link" && t.tagName !== "script" && t.tagName !== "style" && t.tagName !== "template");
|
|
3188
3178
|
}
|
|
3189
|
-
function
|
|
3190
|
-
let r =
|
|
3191
|
-
return n && r && r.type === "element" && r.tagName === "colgroup" &&
|
|
3179
|
+
function Yn(e, t, n) {
|
|
3180
|
+
let r = wn(n, t), i = A(e, -1, !0);
|
|
3181
|
+
return n && r && r.type === "element" && r.tagName === "colgroup" && kn(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "col");
|
|
3192
3182
|
}
|
|
3193
|
-
function
|
|
3194
|
-
let r =
|
|
3195
|
-
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") &&
|
|
3183
|
+
function Xn(e, t, n) {
|
|
3184
|
+
let r = wn(n, t), i = A(e, -1);
|
|
3185
|
+
return n && r && r.type === "element" && (r.tagName === "thead" || r.tagName === "tbody") && kn(r, n.children.indexOf(r), n) ? !1 : !!(i && i.type === "element" && i.tagName === "tr");
|
|
3196
3186
|
}
|
|
3197
3187
|
//#endregion
|
|
3198
3188
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/element.js
|
|
3199
|
-
var
|
|
3189
|
+
var Zn = {
|
|
3200
3190
|
name: [[" \n\f\r &/=>".split(""), " \n\f\r \"&'/=>`".split("")], ["\0 \n\f\r \"&'/<=>".split(""), "\0 \n\f\r \"&'/<=>`".split("")]],
|
|
3201
3191
|
unquoted: [[" \n\f\r &>".split(""), "\0 \n\f\r \"&'<=>`".split("")], ["\0 \n\f\r \"&'<=>`".split(""), "\0 \n\f\r \"&'<=>`".split("")]],
|
|
3202
3192
|
single: [["&'".split(""), "\"&'`".split("")], ["\0&'".split(""), "\0\"&'`".split("")]],
|
|
3203
3193
|
double: [["\"&".split(""), "\"&'`".split("")], ["\0\"&".split(""), "\0\"&'`".split("")]]
|
|
3204
3194
|
};
|
|
3205
|
-
function
|
|
3206
|
-
let i = r.schema, a = i.space
|
|
3207
|
-
i.space === "html" && e.tagName === "svg" && (r.schema =
|
|
3208
|
-
let l =
|
|
3209
|
-
return r.schema = i, u && (o = !1), (l || !a || !
|
|
3195
|
+
function Qn(e, t, n, r) {
|
|
3196
|
+
let i = r.schema, a = i.space !== "svg" && r.settings.omitOptionalTags, o = i.space === "svg" ? r.settings.closeEmptyElements : r.settings.voids.includes(e.tagName.toLowerCase()), s = [], c;
|
|
3197
|
+
i.space === "html" && e.tagName === "svg" && (r.schema = Ht);
|
|
3198
|
+
let l = $n(r, e.properties), u = r.all(i.space === "html" && e.tagName === "template" ? e.content : e);
|
|
3199
|
+
return r.schema = i, u && (o = !1), (l || !a || !Gn(e, t, n)) && (s.push("<", e.tagName, l ? " " + l : ""), o && (i.space === "svg" || r.settings.closeSelfClosing) && (c = l.charAt(l.length - 1), (!r.settings.tightSelfClosing || c === "/" || c && c !== "\"" && c !== "'") && s.push(" "), s.push("/")), s.push(">")), s.push(u), !o && (!a || !kn(e, t, n)) && s.push("</" + e.tagName + ">"), s.join("");
|
|
3210
3200
|
}
|
|
3211
|
-
function
|
|
3201
|
+
function $n(e, t) {
|
|
3212
3202
|
let n = [], r = -1, i;
|
|
3213
3203
|
if (t) {
|
|
3214
3204
|
for (i in t) if (t[i] !== null && t[i] !== void 0) {
|
|
3215
|
-
let r =
|
|
3205
|
+
let r = er(e, i, t[i]);
|
|
3216
3206
|
r && n.push(r);
|
|
3217
3207
|
}
|
|
3218
3208
|
}
|
|
@@ -3222,63 +3212,63 @@ function rr(e, t) {
|
|
|
3222
3212
|
}
|
|
3223
3213
|
return n.join("");
|
|
3224
3214
|
}
|
|
3225
|
-
function
|
|
3226
|
-
let r =
|
|
3215
|
+
function er(e, t, n) {
|
|
3216
|
+
let r = Rt(e.schema, t), i = e.settings.allowParseErrors && e.schema.space === "html" ? 0 : 1, a = +!e.settings.allowDangerousCharacters, o = e.quote, s;
|
|
3227
3217
|
if (r.overloadedBoolean && (n === r.attribute || n === "") ? n = !0 : (r.boolean || r.overloadedBoolean) && (typeof n != "string" || n === r.attribute || n === "") && (n = !!n), n == null || n === !1 || typeof n == "number" && Number.isNaN(n)) return "";
|
|
3228
|
-
let c =
|
|
3229
|
-
return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ?
|
|
3218
|
+
let c = k(r.attribute, Object.assign({}, e.settings.characterReferences, { subset: Zn.name[i][a] }));
|
|
3219
|
+
return n === !0 || (n = Array.isArray(n) ? (r.commaSeparated ? yn : bn)(n, { padLeft: !e.settings.tightCommaSeparatedLists }) : String(n), e.settings.collapseEmptyAttributes && !n) ? c : (e.settings.preferUnquoted && (s = k(n, Object.assign({}, e.settings.characterReferences, {
|
|
3230
3220
|
attribute: !0,
|
|
3231
|
-
subset:
|
|
3232
|
-
}))), s !== n && (e.settings.quoteSmart &&
|
|
3233
|
-
subset: (o === "'" ?
|
|
3221
|
+
subset: Zn.unquoted[i][a]
|
|
3222
|
+
}))), s !== n && (e.settings.quoteSmart && vn(n, o) > vn(n, e.alternative) && (o = e.alternative), s = o + k(n, Object.assign({}, e.settings.characterReferences, {
|
|
3223
|
+
subset: (o === "'" ? Zn.single : Zn.double)[i][a],
|
|
3234
3224
|
attribute: !0
|
|
3235
3225
|
})) + o), c + (s && "=" + s));
|
|
3236
3226
|
}
|
|
3237
3227
|
//#endregion
|
|
3238
3228
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/text.js
|
|
3239
|
-
var
|
|
3240
|
-
function
|
|
3241
|
-
return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value :
|
|
3229
|
+
var tr = ["<", "&"];
|
|
3230
|
+
function nr(e, t, n, r) {
|
|
3231
|
+
return n && n.type === "element" && (n.tagName === "script" || n.tagName === "style") ? e.value : k(e.value, Object.assign({}, r.settings.characterReferences, { subset: tr }));
|
|
3242
3232
|
}
|
|
3243
3233
|
//#endregion
|
|
3244
3234
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/raw.js
|
|
3245
|
-
function
|
|
3246
|
-
return r.settings.allowDangerousHtml ? e.value :
|
|
3235
|
+
function rr(e, t, n, r) {
|
|
3236
|
+
return r.settings.allowDangerousHtml ? e.value : nr(e, t, n, r);
|
|
3247
3237
|
}
|
|
3248
3238
|
//#endregion
|
|
3249
3239
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/root.js
|
|
3250
|
-
function
|
|
3240
|
+
function ir(e, t, n, r) {
|
|
3251
3241
|
return r.all(e);
|
|
3252
3242
|
}
|
|
3253
3243
|
//#endregion
|
|
3254
3244
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/handle/index.js
|
|
3255
|
-
var
|
|
3256
|
-
invalid:
|
|
3257
|
-
unknown:
|
|
3245
|
+
var ar = Wt("type", {
|
|
3246
|
+
invalid: or,
|
|
3247
|
+
unknown: sr,
|
|
3258
3248
|
handlers: {
|
|
3259
|
-
comment:
|
|
3260
|
-
doctype:
|
|
3261
|
-
element:
|
|
3262
|
-
raw:
|
|
3263
|
-
root:
|
|
3264
|
-
text:
|
|
3249
|
+
comment: gn,
|
|
3250
|
+
doctype: _n,
|
|
3251
|
+
element: Qn,
|
|
3252
|
+
raw: rr,
|
|
3253
|
+
root: ir,
|
|
3254
|
+
text: nr
|
|
3265
3255
|
}
|
|
3266
3256
|
});
|
|
3267
|
-
function
|
|
3257
|
+
function or(e) {
|
|
3268
3258
|
throw Error("Expected node, not `" + e + "`");
|
|
3269
3259
|
}
|
|
3270
|
-
function
|
|
3260
|
+
function sr(e) {
|
|
3271
3261
|
throw Error("Cannot compile unknown node `" + e.type + "`");
|
|
3272
3262
|
}
|
|
3273
3263
|
//#endregion
|
|
3274
3264
|
//#region ../../node_modules/.pnpm/hast-util-to-html@9.0.5/node_modules/hast-util-to-html/lib/index.js
|
|
3275
|
-
var
|
|
3276
|
-
function
|
|
3277
|
-
let n = t ||
|
|
3265
|
+
var cr = {}, lr = {}, ur = [];
|
|
3266
|
+
function dr(e, t) {
|
|
3267
|
+
let n = t || cr, r = n.quote || "\"", i = r === "\"" ? "'" : "\"";
|
|
3278
3268
|
if (r !== "\"" && r !== "'") throw Error("Invalid quote `" + r + "`, expected `'` or `\"`");
|
|
3279
3269
|
return {
|
|
3280
|
-
one:
|
|
3281
|
-
all:
|
|
3270
|
+
one: fr,
|
|
3271
|
+
all: pr,
|
|
3282
3272
|
settings: {
|
|
3283
3273
|
omitOptionalTags: n.omitOptionalTags || !1,
|
|
3284
3274
|
allowParseErrors: n.allowParseErrors || !1,
|
|
@@ -3293,12 +3283,12 @@ function hr(e, t) {
|
|
|
3293
3283
|
tightSelfClosing: n.tightSelfClosing || !1,
|
|
3294
3284
|
collapseEmptyAttributes: n.collapseEmptyAttributes || !1,
|
|
3295
3285
|
allowDangerousHtml: n.allowDangerousHtml || !1,
|
|
3296
|
-
voids: n.voids ||
|
|
3297
|
-
characterReferences: n.characterReferences ||
|
|
3286
|
+
voids: n.voids || _t,
|
|
3287
|
+
characterReferences: n.characterReferences || lr,
|
|
3298
3288
|
closeSelfClosing: n.closeSelfClosing || !1,
|
|
3299
3289
|
closeEmptyElements: n.closeEmptyElements || !1
|
|
3300
3290
|
},
|
|
3301
|
-
schema: n.space === "svg" ?
|
|
3291
|
+
schema: n.space === "svg" ? Ht : Vt,
|
|
3302
3292
|
quote: r,
|
|
3303
3293
|
alternative: i
|
|
3304
3294
|
}.one(Array.isArray(e) ? {
|
|
@@ -3306,31 +3296,31 @@ function hr(e, t) {
|
|
|
3306
3296
|
children: e
|
|
3307
3297
|
} : e, void 0, void 0);
|
|
3308
3298
|
}
|
|
3309
|
-
function
|
|
3310
|
-
return
|
|
3299
|
+
function fr(e, t, n) {
|
|
3300
|
+
return ar(e, t, n, this);
|
|
3311
3301
|
}
|
|
3312
|
-
function
|
|
3313
|
-
let t = [], n = e && e.children ||
|
|
3302
|
+
function pr(e) {
|
|
3303
|
+
let t = [], n = e && e.children || ur, r = -1;
|
|
3314
3304
|
for (; ++r < n.length;) t[r] = this.one(n[r], r, e);
|
|
3315
3305
|
return t.join("");
|
|
3316
3306
|
}
|
|
3317
3307
|
//#endregion
|
|
3318
3308
|
//#region ../../node_modules/.pnpm/@shikijs+core@3.23.0/node_modules/@shikijs/core/dist/index.mjs
|
|
3319
|
-
function
|
|
3309
|
+
function mr(e, t) {
|
|
3320
3310
|
let n = typeof e == "string" ? {} : { ...e.colorReplacements }, r = typeof e == "string" ? e : e.name;
|
|
3321
3311
|
for (let [e, i] of Object.entries(t?.colorReplacements || {})) typeof i == "string" ? n[e] = i : e === r && Object.assign(n, i);
|
|
3322
3312
|
return n;
|
|
3323
3313
|
}
|
|
3324
|
-
function
|
|
3314
|
+
function j(e, t) {
|
|
3325
3315
|
return e && (t?.[e?.toLowerCase()] || e);
|
|
3326
3316
|
}
|
|
3327
|
-
function
|
|
3317
|
+
function hr(e) {
|
|
3328
3318
|
return Array.isArray(e) ? e : [e];
|
|
3329
3319
|
}
|
|
3330
|
-
async function
|
|
3320
|
+
async function gr(e) {
|
|
3331
3321
|
return Promise.resolve(typeof e == "function" ? e() : e).then((e) => e.default || e);
|
|
3332
3322
|
}
|
|
3333
|
-
function
|
|
3323
|
+
function _r(e) {
|
|
3334
3324
|
return !e || [
|
|
3335
3325
|
"plaintext",
|
|
3336
3326
|
"txt",
|
|
@@ -3338,23 +3328,23 @@ function xr(e) {
|
|
|
3338
3328
|
"plain"
|
|
3339
3329
|
].includes(e);
|
|
3340
3330
|
}
|
|
3341
|
-
function
|
|
3342
|
-
return e === "ansi" ||
|
|
3331
|
+
function vr(e) {
|
|
3332
|
+
return e === "ansi" || _r(e);
|
|
3343
3333
|
}
|
|
3344
|
-
function
|
|
3334
|
+
function yr(e) {
|
|
3345
3335
|
return e === "none";
|
|
3346
3336
|
}
|
|
3347
|
-
function
|
|
3348
|
-
return
|
|
3337
|
+
function br(e) {
|
|
3338
|
+
return yr(e);
|
|
3349
3339
|
}
|
|
3350
|
-
function
|
|
3340
|
+
function xr(e, t) {
|
|
3351
3341
|
if (!t) return e;
|
|
3352
3342
|
e.properties ||= {}, e.properties.class ||= [], typeof e.properties.class == "string" && (e.properties.class = e.properties.class.split(/\s+/g)), Array.isArray(e.properties.class) || (e.properties.class = []);
|
|
3353
3343
|
let n = Array.isArray(t) ? t : t.split(/\s+/g);
|
|
3354
3344
|
for (let t of n) t && !e.properties.class.includes(t) && e.properties.class.push(t);
|
|
3355
3345
|
return e;
|
|
3356
3346
|
}
|
|
3357
|
-
function
|
|
3347
|
+
function Sr(e, t = !1) {
|
|
3358
3348
|
if (e.length === 0) return [["", 0]];
|
|
3359
3349
|
let n = e.split(/(\r?\n)/g), r = 0, i = [];
|
|
3360
3350
|
for (let e = 0; e < n.length; e += 2) {
|
|
@@ -3363,8 +3353,8 @@ function Er(e, t = !1) {
|
|
|
3363
3353
|
}
|
|
3364
3354
|
return i;
|
|
3365
3355
|
}
|
|
3366
|
-
function
|
|
3367
|
-
let t =
|
|
3356
|
+
function Cr(e) {
|
|
3357
|
+
let t = Sr(e, !0).map(([e]) => e);
|
|
3368
3358
|
function n(n) {
|
|
3369
3359
|
if (n === e.length) return {
|
|
3370
3360
|
line: t.length - 1,
|
|
@@ -3391,8 +3381,8 @@ function Dr(e) {
|
|
|
3391
3381
|
posToIndex: r
|
|
3392
3382
|
};
|
|
3393
3383
|
}
|
|
3394
|
-
var
|
|
3395
|
-
function
|
|
3384
|
+
var wr = "light-dark()", Tr = ["color", "background-color"];
|
|
3385
|
+
function Er(e, t) {
|
|
3396
3386
|
let n = 0, r = [];
|
|
3397
3387
|
for (let i of t) i > n && r.push({
|
|
3398
3388
|
...e,
|
|
@@ -3405,35 +3395,36 @@ function Ar(e, t) {
|
|
|
3405
3395
|
offset: e.offset + n
|
|
3406
3396
|
}), r;
|
|
3407
3397
|
}
|
|
3408
|
-
function
|
|
3398
|
+
function Dr(e, t) {
|
|
3409
3399
|
let n = Array.from(t instanceof Set ? t : new Set(t)).sort((e, t) => e - t);
|
|
3410
3400
|
return n.length ? e.map((e) => e.flatMap((e) => {
|
|
3411
3401
|
let t = n.filter((t) => e.offset < t && t < e.offset + e.content.length).map((t) => t - e.offset).sort((e, t) => e - t);
|
|
3412
|
-
return t.length ?
|
|
3402
|
+
return t.length ? Er(e, t) : e;
|
|
3413
3403
|
})) : e;
|
|
3414
3404
|
}
|
|
3415
|
-
function
|
|
3405
|
+
function Or(e, n, r, i, a = "css-vars") {
|
|
3416
3406
|
let o = {
|
|
3417
3407
|
content: e.content,
|
|
3418
3408
|
explanation: e.explanation,
|
|
3419
3409
|
offset: e.offset
|
|
3420
|
-
}, s = n.map((t) =>
|
|
3410
|
+
}, s = n.map((t) => kr(e.variants[t])), c = new Set(s.flatMap((e) => Object.keys(e))), l = {}, u = (e, t) => {
|
|
3421
3411
|
let i = t === "color" ? "" : t === "background-color" ? "-bg" : `-${t}`;
|
|
3422
3412
|
return r + n[e] + (t === "color" ? "" : i);
|
|
3423
3413
|
};
|
|
3424
3414
|
return s.forEach((e, r) => {
|
|
3425
3415
|
for (let o of c) {
|
|
3426
3416
|
let c = e[o] || "inherit";
|
|
3427
|
-
if (r === 0 && i &&
|
|
3417
|
+
if (r === 0 && i && Tr.includes(o)) if (i === wr && s.length > 1) {
|
|
3428
3418
|
let e = n.findIndex((e) => e === "light"), i = n.findIndex((e) => e === "dark");
|
|
3429
3419
|
if (e === -1 || i === -1) throw new t("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
3430
|
-
|
|
3420
|
+
let d = s[e][o] || "inherit", f = s[i][o] || "inherit";
|
|
3421
|
+
l[o] = `light-dark(${d}, ${f})`, a === "css-vars" && (l[u(r, o)] = c);
|
|
3431
3422
|
} else l[o] = c;
|
|
3432
3423
|
else a === "css-vars" && (l[u(r, o)] = c);
|
|
3433
3424
|
}
|
|
3434
3425
|
}), o.htmlStyle = l, o;
|
|
3435
3426
|
}
|
|
3436
|
-
function
|
|
3427
|
+
function kr(e) {
|
|
3437
3428
|
let t = {};
|
|
3438
3429
|
if (e.color && (t.color = e.color), e.bgColor && (t["background-color"] = e.bgColor), e.fontStyle) {
|
|
3439
3430
|
e.fontStyle & v.Italic && (t["font-style"] = "italic"), e.fontStyle & v.Bold && (t["font-weight"] = "bold");
|
|
@@ -3442,17 +3433,17 @@ function Nr(e) {
|
|
|
3442
3433
|
}
|
|
3443
3434
|
return t;
|
|
3444
3435
|
}
|
|
3445
|
-
function
|
|
3436
|
+
function Ar(e) {
|
|
3446
3437
|
return typeof e == "string" ? e : Object.entries(e).map(([e, t]) => `${e}:${t}`).join(";");
|
|
3447
3438
|
}
|
|
3448
|
-
var
|
|
3449
|
-
function
|
|
3450
|
-
|
|
3439
|
+
var jr = /* @__PURE__ */ new WeakMap();
|
|
3440
|
+
function Mr(e, t) {
|
|
3441
|
+
jr.set(e, t);
|
|
3451
3442
|
}
|
|
3452
|
-
function
|
|
3453
|
-
return
|
|
3443
|
+
function Nr(e) {
|
|
3444
|
+
return jr.get(e);
|
|
3454
3445
|
}
|
|
3455
|
-
var
|
|
3446
|
+
var Pr = class e {
|
|
3456
3447
|
_stacks = {};
|
|
3457
3448
|
lang;
|
|
3458
3449
|
get themes() {
|
|
@@ -3465,7 +3456,7 @@ var Rr = class e {
|
|
|
3465
3456
|
return this._stacks[this.theme];
|
|
3466
3457
|
}
|
|
3467
3458
|
static initial(t, n) {
|
|
3468
|
-
return new e(Object.fromEntries(
|
|
3459
|
+
return new e(Object.fromEntries(hr(n).map((e) => [e, gt])), t);
|
|
3469
3460
|
}
|
|
3470
3461
|
constructor(...e) {
|
|
3471
3462
|
if (e.length === 2) {
|
|
@@ -3480,7 +3471,7 @@ var Rr = class e {
|
|
|
3480
3471
|
return this._stacks[e];
|
|
3481
3472
|
}
|
|
3482
3473
|
getScopes(e = this.theme) {
|
|
3483
|
-
return
|
|
3474
|
+
return Fr(this._stacks[e]);
|
|
3484
3475
|
}
|
|
3485
3476
|
toJSON() {
|
|
3486
3477
|
return {
|
|
@@ -3491,7 +3482,7 @@ var Rr = class e {
|
|
|
3491
3482
|
};
|
|
3492
3483
|
}
|
|
3493
3484
|
};
|
|
3494
|
-
function
|
|
3485
|
+
function Fr(e) {
|
|
3495
3486
|
let t = [], n = /* @__PURE__ */ new Set();
|
|
3496
3487
|
function r(e) {
|
|
3497
3488
|
if (n.has(e)) return;
|
|
@@ -3501,11 +3492,11 @@ function zr(e) {
|
|
|
3501
3492
|
}
|
|
3502
3493
|
return r(e), t;
|
|
3503
3494
|
}
|
|
3504
|
-
function
|
|
3505
|
-
if (!(e instanceof
|
|
3495
|
+
function Ir(e, n) {
|
|
3496
|
+
if (!(e instanceof Pr)) throw new t("Invalid grammar state");
|
|
3506
3497
|
return e.getInternalStack(n);
|
|
3507
3498
|
}
|
|
3508
|
-
function
|
|
3499
|
+
function Lr() {
|
|
3509
3500
|
let e = /* @__PURE__ */ new WeakMap();
|
|
3510
3501
|
function n(n) {
|
|
3511
3502
|
if (!e.has(n.meta)) {
|
|
@@ -3516,7 +3507,8 @@ function Vr() {
|
|
|
3516
3507
|
...i.indexToPos(e),
|
|
3517
3508
|
offset: e
|
|
3518
3509
|
};
|
|
3519
|
-
}
|
|
3510
|
+
}
|
|
3511
|
+
{
|
|
3520
3512
|
let n = i.lines[e.line];
|
|
3521
3513
|
if (n === void 0) throw new t(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);
|
|
3522
3514
|
let r = e.character;
|
|
@@ -3527,12 +3519,12 @@ function Vr() {
|
|
|
3527
3519
|
offset: i.posToIndex(e.line, r)
|
|
3528
3520
|
};
|
|
3529
3521
|
}
|
|
3530
|
-
}, i =
|
|
3522
|
+
}, i = Cr(n.source), a = (n.options.decorations || []).map((e) => ({
|
|
3531
3523
|
...e,
|
|
3532
3524
|
start: r(e.start),
|
|
3533
3525
|
end: r(e.end)
|
|
3534
3526
|
}));
|
|
3535
|
-
|
|
3527
|
+
Rr(a), e.set(n.meta, {
|
|
3536
3528
|
decorations: a,
|
|
3537
3529
|
converter: i,
|
|
3538
3530
|
source: n.source
|
|
@@ -3543,7 +3535,7 @@ function Vr() {
|
|
|
3543
3535
|
return {
|
|
3544
3536
|
name: "shiki:decorations",
|
|
3545
3537
|
tokens(e) {
|
|
3546
|
-
if (this.options.decorations?.length) return
|
|
3538
|
+
if (this.options.decorations?.length) return Dr(e, n(this).decorations.flatMap((e) => [e.start.offset, e.end.offset]));
|
|
3547
3539
|
},
|
|
3548
3540
|
code(e) {
|
|
3549
3541
|
if (!this.options.decorations?.length) return;
|
|
@@ -3551,7 +3543,7 @@ function Vr() {
|
|
|
3551
3543
|
if (i.length !== r.converter.lines.length) throw new t(`Number of lines in code element (${i.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);
|
|
3552
3544
|
function a(e, n, r, a) {
|
|
3553
3545
|
let o = i[e], c = "", l = -1, u = -1;
|
|
3554
|
-
if (n === 0 && (l = 0), r === 0 && (u = 0), r === Infinity && (u = o.children.length), l === -1 || u === -1) for (let e = 0; e < o.children.length; e++) c +=
|
|
3546
|
+
if (n === 0 && (l = 0), r === 0 && (u = 0), r === Infinity && (u = o.children.length), l === -1 || u === -1) for (let e = 0; e < o.children.length; e++) c += zr(o.children[e]), l === -1 && c.length === n && (l = e + 1), u === -1 && c.length === r && (u = e + 1);
|
|
3555
3547
|
if (l === -1) throw new t(`Failed to find start index for decoration ${JSON.stringify(a.start)}`);
|
|
3556
3548
|
if (u === -1) throw new t(`Failed to find end index for decoration ${JSON.stringify(a.end)}`);
|
|
3557
3549
|
let d = o.children.slice(l, u);
|
|
@@ -3576,7 +3568,7 @@ function Vr() {
|
|
|
3576
3568
|
...e.properties,
|
|
3577
3569
|
...r,
|
|
3578
3570
|
class: e.properties.class
|
|
3579
|
-
}, t.properties?.class &&
|
|
3571
|
+
}, t.properties?.class && xr(e, t.properties.class), e = i(e, n) || e, e;
|
|
3580
3572
|
}
|
|
3581
3573
|
let c = [], l = r.decorations.sort((e, t) => t.start.offset - e.start.offset || e.end.offset - t.end.offset);
|
|
3582
3574
|
for (let e of l) {
|
|
@@ -3592,7 +3584,7 @@ function Vr() {
|
|
|
3592
3584
|
}
|
|
3593
3585
|
};
|
|
3594
3586
|
}
|
|
3595
|
-
function
|
|
3587
|
+
function Rr(e) {
|
|
3596
3588
|
for (let n = 0; n < e.length; n++) {
|
|
3597
3589
|
let r = e[n];
|
|
3598
3590
|
if (r.start.offset > r.end.offset) throw new t(`Invalid decoration range: ${JSON.stringify(r.start)} - ${JSON.stringify(r.end)}`);
|
|
@@ -3605,20 +3597,20 @@ function Hr(e) {
|
|
|
3605
3597
|
}
|
|
3606
3598
|
}
|
|
3607
3599
|
}
|
|
3608
|
-
function
|
|
3609
|
-
return e.type === "text" ? e.value : e.type === "element" ? e.children.map(
|
|
3600
|
+
function zr(e) {
|
|
3601
|
+
return e.type === "text" ? e.value : e.type === "element" ? e.children.map(zr).join("") : "";
|
|
3610
3602
|
}
|
|
3611
|
-
var
|
|
3612
|
-
function
|
|
3613
|
-
let t =
|
|
3603
|
+
var Br = [/* @__PURE__ */ Lr()];
|
|
3604
|
+
function Vr(e) {
|
|
3605
|
+
let t = Hr(e.transformers || []);
|
|
3614
3606
|
return [
|
|
3615
3607
|
...t.pre,
|
|
3616
3608
|
...t.normal,
|
|
3617
3609
|
...t.post,
|
|
3618
|
-
...
|
|
3610
|
+
...Br
|
|
3619
3611
|
];
|
|
3620
3612
|
}
|
|
3621
|
-
function
|
|
3613
|
+
function Hr(e) {
|
|
3622
3614
|
let t = [], n = [], r = [];
|
|
3623
3615
|
for (let i of e) switch (i.enforce) {
|
|
3624
3616
|
case "pre":
|
|
@@ -3635,7 +3627,7 @@ function Kr(e) {
|
|
|
3635
3627
|
normal: r
|
|
3636
3628
|
};
|
|
3637
3629
|
}
|
|
3638
|
-
var
|
|
3630
|
+
var M = [
|
|
3639
3631
|
"black",
|
|
3640
3632
|
"red",
|
|
3641
3633
|
"green",
|
|
@@ -3652,7 +3644,7 @@ var A = [
|
|
|
3652
3644
|
"brightMagenta",
|
|
3653
3645
|
"brightCyan",
|
|
3654
3646
|
"brightWhite"
|
|
3655
|
-
],
|
|
3647
|
+
], Ur = {
|
|
3656
3648
|
1: "bold",
|
|
3657
3649
|
2: "dim",
|
|
3658
3650
|
3: "italic",
|
|
@@ -3661,7 +3653,7 @@ var A = [
|
|
|
3661
3653
|
8: "hidden",
|
|
3662
3654
|
9: "strikethrough"
|
|
3663
3655
|
};
|
|
3664
|
-
function
|
|
3656
|
+
function Wr(e, t) {
|
|
3665
3657
|
let n = e.indexOf("\x1B", t);
|
|
3666
3658
|
if (n !== -1 && e[n + 1] === "[") {
|
|
3667
3659
|
let t = e.indexOf("m", n);
|
|
@@ -3673,7 +3665,7 @@ function Jr(e, t) {
|
|
|
3673
3665
|
}
|
|
3674
3666
|
return { position: e.length };
|
|
3675
3667
|
}
|
|
3676
|
-
function
|
|
3668
|
+
function Gr(e) {
|
|
3677
3669
|
let t = e.shift();
|
|
3678
3670
|
if (t === "2") {
|
|
3679
3671
|
let t = e.splice(0, 3).map((e) => Number.parseInt(e));
|
|
@@ -3681,7 +3673,8 @@ function Yr(e) {
|
|
|
3681
3673
|
type: "rgb",
|
|
3682
3674
|
rgb: t
|
|
3683
3675
|
};
|
|
3684
|
-
}
|
|
3676
|
+
}
|
|
3677
|
+
if (t === "5") {
|
|
3685
3678
|
let t = e.shift();
|
|
3686
3679
|
if (t) return {
|
|
3687
3680
|
type: "table",
|
|
@@ -3689,19 +3682,19 @@ function Yr(e) {
|
|
|
3689
3682
|
};
|
|
3690
3683
|
}
|
|
3691
3684
|
}
|
|
3692
|
-
function
|
|
3685
|
+
function Kr(e) {
|
|
3693
3686
|
let t = [];
|
|
3694
3687
|
for (; e.length > 0;) {
|
|
3695
3688
|
let n = e.shift();
|
|
3696
3689
|
if (!n) continue;
|
|
3697
3690
|
let r = Number.parseInt(n);
|
|
3698
3691
|
if (!Number.isNaN(r)) if (r === 0) t.push({ type: "resetAll" });
|
|
3699
|
-
else if (r <= 9)
|
|
3692
|
+
else if (r <= 9) Ur[r] && t.push({
|
|
3700
3693
|
type: "setDecoration",
|
|
3701
|
-
value:
|
|
3694
|
+
value: Ur[r]
|
|
3702
3695
|
});
|
|
3703
3696
|
else if (r <= 29) {
|
|
3704
|
-
let e =
|
|
3697
|
+
let e = Ur[r - 20];
|
|
3705
3698
|
e && (t.push({
|
|
3706
3699
|
type: "resetDecoration",
|
|
3707
3700
|
value: e
|
|
@@ -3713,11 +3706,11 @@ function Xr(e) {
|
|
|
3713
3706
|
type: "setForegroundColor",
|
|
3714
3707
|
value: {
|
|
3715
3708
|
type: "named",
|
|
3716
|
-
name:
|
|
3709
|
+
name: M[r - 30]
|
|
3717
3710
|
}
|
|
3718
3711
|
});
|
|
3719
3712
|
else if (r === 38) {
|
|
3720
|
-
let n =
|
|
3713
|
+
let n = Gr(e);
|
|
3721
3714
|
n && t.push({
|
|
3722
3715
|
type: "setForegroundColor",
|
|
3723
3716
|
value: n
|
|
@@ -3727,11 +3720,11 @@ function Xr(e) {
|
|
|
3727
3720
|
type: "setBackgroundColor",
|
|
3728
3721
|
value: {
|
|
3729
3722
|
type: "named",
|
|
3730
|
-
name:
|
|
3723
|
+
name: M[r - 40]
|
|
3731
3724
|
}
|
|
3732
3725
|
});
|
|
3733
3726
|
else if (r === 48) {
|
|
3734
|
-
let n =
|
|
3727
|
+
let n = Gr(e);
|
|
3735
3728
|
n && t.push({
|
|
3736
3729
|
type: "setBackgroundColor",
|
|
3737
3730
|
value: n
|
|
@@ -3746,31 +3739,31 @@ function Xr(e) {
|
|
|
3746
3739
|
type: "setForegroundColor",
|
|
3747
3740
|
value: {
|
|
3748
3741
|
type: "named",
|
|
3749
|
-
name:
|
|
3742
|
+
name: M[r - 90 + 8]
|
|
3750
3743
|
}
|
|
3751
3744
|
}) : r >= 100 && r <= 107 && t.push({
|
|
3752
3745
|
type: "setBackgroundColor",
|
|
3753
3746
|
value: {
|
|
3754
3747
|
type: "named",
|
|
3755
|
-
name:
|
|
3748
|
+
name: M[r - 100 + 8]
|
|
3756
3749
|
}
|
|
3757
3750
|
});
|
|
3758
3751
|
}
|
|
3759
3752
|
return t;
|
|
3760
3753
|
}
|
|
3761
|
-
function
|
|
3754
|
+
function qr() {
|
|
3762
3755
|
let e = null, t = null, n = /* @__PURE__ */ new Set();
|
|
3763
3756
|
return { parse(r) {
|
|
3764
3757
|
let i = [], a = 0;
|
|
3765
3758
|
do {
|
|
3766
|
-
let o =
|
|
3759
|
+
let o = Wr(r, a), s = o.sequence ? r.substring(a, o.startPosition) : r.substring(a);
|
|
3767
3760
|
if (s.length > 0 && i.push({
|
|
3768
3761
|
value: s,
|
|
3769
3762
|
foreground: e,
|
|
3770
3763
|
background: t,
|
|
3771
3764
|
decorations: new Set(n)
|
|
3772
3765
|
}), o.sequence) {
|
|
3773
|
-
let r =
|
|
3766
|
+
let r = Kr(o.sequence);
|
|
3774
3767
|
for (let i of r) i.type === "resetAll" ? (e = null, t = null, n.clear()) : i.type === "resetForegroundColor" ? e = null : i.type === "resetBackgroundColor" ? t = null : i.type === "resetDecoration" && n.delete(i.value);
|
|
3775
3768
|
for (let i of r) i.type === "setForegroundColor" ? e = i.value : i.type === "setBackgroundColor" ? t = i.value : i.type === "setDecoration" && n.add(i.value);
|
|
3776
3769
|
}
|
|
@@ -3779,7 +3772,7 @@ function Zr() {
|
|
|
3779
3772
|
return i;
|
|
3780
3773
|
} };
|
|
3781
3774
|
}
|
|
3782
|
-
var
|
|
3775
|
+
var Jr = {
|
|
3783
3776
|
black: "#000000",
|
|
3784
3777
|
red: "#bb0000",
|
|
3785
3778
|
green: "#00bb00",
|
|
@@ -3797,7 +3790,7 @@ var Qr = {
|
|
|
3797
3790
|
brightCyan: "#55ffff",
|
|
3798
3791
|
brightWhite: "#ffffff"
|
|
3799
3792
|
};
|
|
3800
|
-
function
|
|
3793
|
+
function Yr(e = Jr) {
|
|
3801
3794
|
function t(t) {
|
|
3802
3795
|
return e[t];
|
|
3803
3796
|
}
|
|
@@ -3808,7 +3801,7 @@ function $r(e = Qr) {
|
|
|
3808
3801
|
function i() {
|
|
3809
3802
|
if (r) return r;
|
|
3810
3803
|
r = [];
|
|
3811
|
-
for (let e = 0; e <
|
|
3804
|
+
for (let e = 0; e < M.length; e++) r.push(t(M[e]));
|
|
3812
3805
|
let e = [
|
|
3813
3806
|
0,
|
|
3814
3807
|
95,
|
|
@@ -3842,7 +3835,7 @@ function $r(e = Qr) {
|
|
|
3842
3835
|
}
|
|
3843
3836
|
return { value: o };
|
|
3844
3837
|
}
|
|
3845
|
-
var
|
|
3838
|
+
var Xr = {
|
|
3846
3839
|
black: "#000000",
|
|
3847
3840
|
red: "#cd3131",
|
|
3848
3841
|
green: "#0DBC79",
|
|
@@ -3860,14 +3853,14 @@ var ei = {
|
|
|
3860
3853
|
brightCyan: "#29B8DB",
|
|
3861
3854
|
brightWhite: "#FFFFFF"
|
|
3862
3855
|
};
|
|
3863
|
-
function
|
|
3864
|
-
let r =
|
|
3856
|
+
function Zr(e, t, n) {
|
|
3857
|
+
let r = mr(e, n), i = Sr(t), a = Yr(Object.fromEntries(M.map((t) => {
|
|
3865
3858
|
let n = `terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;
|
|
3866
|
-
return [t, e.colors?.[n] ||
|
|
3867
|
-
}))), o =
|
|
3859
|
+
return [t, e.colors?.[n] || Xr[t]];
|
|
3860
|
+
}))), o = qr();
|
|
3868
3861
|
return i.map((t) => o.parse(t[0]).map((n) => {
|
|
3869
3862
|
let i, o;
|
|
3870
|
-
n.decorations.has("reverse") ? (i = n.background ? a.value(n.background) : e.bg, o = n.foreground ? a.value(n.foreground) : e.fg) : (i = n.foreground ? a.value(n.foreground) : e.fg, o = n.background ? a.value(n.background) : void 0), i =
|
|
3863
|
+
n.decorations.has("reverse") ? (i = n.background ? a.value(n.background) : e.bg, o = n.foreground ? a.value(n.foreground) : e.fg) : (i = n.foreground ? a.value(n.foreground) : e.fg, o = n.background ? a.value(n.background) : void 0), i = j(i, r), o = j(o, r), n.decorations.has("dim") && (i = Qr(i));
|
|
3871
3864
|
let s = v.None;
|
|
3872
3865
|
return n.decorations.has("bold") && (s |= v.Bold), n.decorations.has("italic") && (s |= v.Italic), n.decorations.has("underline") && (s |= v.Underline), n.decorations.has("strikethrough") && (s |= v.Strikethrough), {
|
|
3873
3866
|
content: n.value,
|
|
@@ -3878,18 +3871,20 @@ function ti(e, t, n) {
|
|
|
3878
3871
|
};
|
|
3879
3872
|
}));
|
|
3880
3873
|
}
|
|
3881
|
-
function
|
|
3874
|
+
function Qr(e) {
|
|
3882
3875
|
let t = e.match(/#([0-9a-f]{3,8})/i);
|
|
3883
3876
|
if (t) {
|
|
3884
3877
|
let e = t[1];
|
|
3885
3878
|
if (e.length === 8) {
|
|
3886
3879
|
let t = Math.round(Number.parseInt(e.slice(6, 8), 16) / 2).toString(16).padStart(2, "0");
|
|
3887
3880
|
return `#${e.slice(0, 6)}${t}`;
|
|
3888
|
-
}
|
|
3889
|
-
|
|
3881
|
+
}
|
|
3882
|
+
if (e.length === 6) return `#${e}80`;
|
|
3883
|
+
if (e.length === 4) {
|
|
3890
3884
|
let t = e[0], n = e[1], r = e[2], i = e[3];
|
|
3891
3885
|
return `#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`, 16) / 2).toString(16).padStart(2, "0")}`;
|
|
3892
|
-
}
|
|
3886
|
+
}
|
|
3887
|
+
if (e.length === 3) {
|
|
3893
3888
|
let t = e[0], n = e[1], r = e[2];
|
|
3894
3889
|
return `#${t}${t}${n}${n}${r}${r}80`;
|
|
3895
3890
|
}
|
|
@@ -3897,35 +3892,35 @@ function ni(e) {
|
|
|
3897
3892
|
let n = e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);
|
|
3898
3893
|
return n ? `var(${n[1]}-dim)` : e;
|
|
3899
3894
|
}
|
|
3900
|
-
function
|
|
3895
|
+
function $r(e, n, r = {}) {
|
|
3901
3896
|
let { theme: i = e.getLoadedThemes()[0] } = r, a = e.resolveLangAlias(r.lang || "text");
|
|
3902
|
-
if (
|
|
3897
|
+
if (_r(a) || yr(i)) return Sr(n).map((e) => [{
|
|
3903
3898
|
content: e[0],
|
|
3904
3899
|
offset: e[1]
|
|
3905
3900
|
}]);
|
|
3906
3901
|
let { theme: o, colorMap: s } = e.setTheme(i);
|
|
3907
|
-
if (a === "ansi") return
|
|
3902
|
+
if (a === "ansi") return Zr(o, n, r);
|
|
3908
3903
|
let c = e.getLanguage(r.lang || "text");
|
|
3909
3904
|
if (r.grammarState) {
|
|
3910
3905
|
if (r.grammarState.lang !== c.name) throw new t(`Grammar state language "${r.grammarState.lang}" does not match highlight language "${c.name}"`);
|
|
3911
3906
|
if (!r.grammarState.themes.includes(o.name)) throw new t(`Grammar state themes "${r.grammarState.themes}" do not contain highlight theme "${o.name}"`);
|
|
3912
3907
|
}
|
|
3913
|
-
return
|
|
3908
|
+
return ti(n, c, o, s, r);
|
|
3914
3909
|
}
|
|
3915
|
-
function
|
|
3916
|
-
if (e.length === 2) return
|
|
3910
|
+
function ei(...e) {
|
|
3911
|
+
if (e.length === 2) return Nr(e[1]);
|
|
3917
3912
|
let [n, r, i = {}] = e, { lang: a = "text", theme: o = n.getLoadedThemes()[0] } = i;
|
|
3918
|
-
if (
|
|
3913
|
+
if (_r(a) || yr(o)) throw new t("Plain language does not have grammar state");
|
|
3919
3914
|
if (a === "ansi") throw new t("ANSI language does not have grammar state");
|
|
3920
3915
|
let { theme: s, colorMap: c } = n.setTheme(o), l = n.getLanguage(a);
|
|
3921
|
-
return new
|
|
3916
|
+
return new Pr(ni(r, l, s, c, i).stateStack, l.name, s.name);
|
|
3922
3917
|
}
|
|
3923
|
-
function
|
|
3924
|
-
let a =
|
|
3925
|
-
return
|
|
3918
|
+
function ti(e, t, n, r, i) {
|
|
3919
|
+
let a = ni(e, t, n, r, i), o = new Pr(a.stateStack, t.name, n.name);
|
|
3920
|
+
return Mr(a.tokens, o), a.tokens;
|
|
3926
3921
|
}
|
|
3927
|
-
function
|
|
3928
|
-
let a =
|
|
3922
|
+
function ni(e, t, n, r, i) {
|
|
3923
|
+
let a = mr(n, i), { tokenizeMaxLineLength: o = 0, tokenizeTimeLimit: s = 500 } = i, c = Sr(e), l = i.grammarState ? Ir(i.grammarState, n.name) ?? gt : i.grammarContextCode == null ? gt : ni(i.grammarContextCode, t, n, r, {
|
|
3929
3924
|
...i,
|
|
3930
3925
|
grammarState: void 0,
|
|
3931
3926
|
grammarContextCode: void 0
|
|
@@ -3951,7 +3946,7 @@ function oi(e, t, n, r, i) {
|
|
|
3951
3946
|
for (let e = 0; e < ee; e++) {
|
|
3952
3947
|
let t = _.tokens[2 * e], o = e + 1 < ee ? _.tokens[2 * e + 2] : f.length;
|
|
3953
3948
|
if (t === o) continue;
|
|
3954
|
-
let s = _.tokens[2 * e + 1], c =
|
|
3949
|
+
let s = _.tokens[2 * e + 1], c = j(r[y.getForeground(s)], a), l = y.getFontStyle(s), d = {
|
|
3955
3950
|
content: f.substring(t, o),
|
|
3956
3951
|
offset: p + t,
|
|
3957
3952
|
color: c,
|
|
@@ -3981,7 +3976,7 @@ function oi(e, t, n, r, i) {
|
|
|
3981
3976
|
let t = h[g], n = f.substring(t.startIndex, t.endIndex);
|
|
3982
3977
|
r += n.length, d.explanation.push({
|
|
3983
3978
|
content: n,
|
|
3984
|
-
scopes: i.includeExplanation === "scopeName" ?
|
|
3979
|
+
scopes: i.includeExplanation === "scopeName" ? ri(t.scopes) : ii(e, t.scopes)
|
|
3985
3980
|
}), g += 1;
|
|
3986
3981
|
}
|
|
3987
3982
|
}
|
|
@@ -3994,52 +3989,52 @@ function oi(e, t, n, r, i) {
|
|
|
3994
3989
|
stateStack: l
|
|
3995
3990
|
};
|
|
3996
3991
|
}
|
|
3997
|
-
function
|
|
3992
|
+
function ri(e) {
|
|
3998
3993
|
return e.map((e) => ({ scopeName: e }));
|
|
3999
3994
|
}
|
|
4000
|
-
function
|
|
3995
|
+
function ii(e, t) {
|
|
4001
3996
|
let n = [];
|
|
4002
3997
|
for (let r = 0, i = t.length; r < i; r++) {
|
|
4003
3998
|
let i = t[r];
|
|
4004
3999
|
n[r] = {
|
|
4005
4000
|
scopeName: i,
|
|
4006
|
-
themeMatches:
|
|
4001
|
+
themeMatches: si(e, i, t.slice(0, r))
|
|
4007
4002
|
};
|
|
4008
4003
|
}
|
|
4009
4004
|
return n;
|
|
4010
4005
|
}
|
|
4011
|
-
function
|
|
4006
|
+
function ai(e, t) {
|
|
4012
4007
|
return e === t || t.substring(0, e.length) === e && t[e.length] === ".";
|
|
4013
4008
|
}
|
|
4014
|
-
function
|
|
4015
|
-
if (!
|
|
4009
|
+
function oi(e, t, n) {
|
|
4010
|
+
if (!ai(e[e.length - 1], t)) return !1;
|
|
4016
4011
|
let r = e.length - 2, i = n.length - 1;
|
|
4017
|
-
for (; r >= 0 && i >= 0;)
|
|
4012
|
+
for (; r >= 0 && i >= 0;) ai(e[r], n[i]) && --r, --i;
|
|
4018
4013
|
return r === -1;
|
|
4019
4014
|
}
|
|
4020
|
-
function
|
|
4015
|
+
function si(e, t, n) {
|
|
4021
4016
|
let r = [];
|
|
4022
|
-
for (let { selectors: i, settings: a } of e) for (let e of i) if (
|
|
4017
|
+
for (let { selectors: i, settings: a } of e) for (let e of i) if (oi(e, t, n)) {
|
|
4023
4018
|
r.push(a);
|
|
4024
4019
|
break;
|
|
4025
4020
|
}
|
|
4026
4021
|
return r;
|
|
4027
4022
|
}
|
|
4028
|
-
function
|
|
4023
|
+
function ci(e, t, n) {
|
|
4029
4024
|
let r = Object.entries(n.themes).filter((e) => e[1]).map((e) => ({
|
|
4030
4025
|
color: e[0],
|
|
4031
4026
|
theme: e[1]
|
|
4032
4027
|
})), i = r.map((r) => {
|
|
4033
|
-
let i =
|
|
4028
|
+
let i = $r(e, t, {
|
|
4034
4029
|
...n,
|
|
4035
4030
|
theme: r.theme
|
|
4036
4031
|
});
|
|
4037
4032
|
return {
|
|
4038
4033
|
tokens: i,
|
|
4039
|
-
state:
|
|
4034
|
+
state: Nr(i),
|
|
4040
4035
|
theme: typeof r.theme == "string" ? r.theme : r.theme.name
|
|
4041
4036
|
};
|
|
4042
|
-
}), a =
|
|
4037
|
+
}), a = li(...i.map((e) => e.tokens)), o = a[0].map((e, t) => e.map((e, i) => {
|
|
4043
4038
|
let o = {
|
|
4044
4039
|
content: e.content,
|
|
4045
4040
|
variants: {},
|
|
@@ -4049,10 +4044,10 @@ function fi(e, t, n) {
|
|
|
4049
4044
|
let { content: a, explanation: s, offset: c, ...l } = e[t][i];
|
|
4050
4045
|
o.variants[r[n].color] = l;
|
|
4051
4046
|
}), o;
|
|
4052
|
-
})), s = i[0].state ? new
|
|
4053
|
-
return s &&
|
|
4047
|
+
})), s = i[0].state ? new Pr(Object.fromEntries(i.map((e) => [e.theme, e.state?.getInternalStack(e.theme)])), i[0].state.lang) : void 0;
|
|
4048
|
+
return s && Mr(o, s), o;
|
|
4054
4049
|
}
|
|
4055
|
-
function
|
|
4050
|
+
function li(...e) {
|
|
4056
4051
|
let t = e.map(() => []), n = e.length;
|
|
4057
4052
|
for (let r = 0; r < e[0].length; r++) {
|
|
4058
4053
|
let i = e.map((e) => e[r]), a = t.map(() => []);
|
|
@@ -4075,25 +4070,25 @@ function pi(...e) {
|
|
|
4075
4070
|
}
|
|
4076
4071
|
return t;
|
|
4077
4072
|
}
|
|
4078
|
-
function
|
|
4073
|
+
function ui(e, n, r) {
|
|
4079
4074
|
let i, a, o, s, c, l;
|
|
4080
4075
|
if ("themes" in r) {
|
|
4081
4076
|
let { defaultColor: u = "light", cssVariablePrefix: d = "--shiki-", colorsRendering: f = "css-vars" } = r, p = Object.entries(r.themes).filter((e) => e[1]).map((e) => ({
|
|
4082
4077
|
color: e[0],
|
|
4083
4078
|
theme: e[1]
|
|
4084
|
-
})).sort((e, t) => e.color === u ? -1 : t.color === u
|
|
4079
|
+
})).sort((e, t) => e.color === u ? -1 : +(t.color === u));
|
|
4085
4080
|
if (p.length === 0) throw new t("`themes` option must not be empty");
|
|
4086
|
-
let m =
|
|
4087
|
-
if (l =
|
|
4081
|
+
let m = ci(e, n, r);
|
|
4082
|
+
if (l = Nr(m), u && wr !== u && !p.find((e) => e.color === u)) throw new t(`\`themes\` option must contain the defaultColor key \`${u}\``);
|
|
4088
4083
|
let h = p.map((t) => e.getTheme(t.theme)), g = p.map((e) => e.color);
|
|
4089
|
-
o = m.map((e) => e.map((e) =>
|
|
4090
|
-
let _ = p.map((e) =>
|
|
4091
|
-
a =
|
|
4084
|
+
o = m.map((e) => e.map((e) => Or(e, g, d, u, f))), l && Mr(o, l);
|
|
4085
|
+
let _ = p.map((e) => mr(e.theme, r));
|
|
4086
|
+
a = di(p, h, _, d, u, "fg", f), i = di(p, h, _, d, u, "bg", f), s = `shiki-themes ${h.map((e) => e.name).join(" ")}`, c = u ? void 0 : [a, i].join(";");
|
|
4092
4087
|
} else if ("theme" in r) {
|
|
4093
|
-
let t =
|
|
4094
|
-
o =
|
|
4088
|
+
let t = mr(r.theme, r);
|
|
4089
|
+
o = $r(e, n, r);
|
|
4095
4090
|
let c = e.getTheme(r.theme);
|
|
4096
|
-
i =
|
|
4091
|
+
i = j(c.bg, t), a = j(c.fg, t), s = c.name, l = Nr(o);
|
|
4097
4092
|
} else throw new t("Invalid options, either `theme` or `themes` must be provided");
|
|
4098
4093
|
return {
|
|
4099
4094
|
tokens: o,
|
|
@@ -4104,38 +4099,38 @@ function mi(e, n, r) {
|
|
|
4104
4099
|
grammarState: l
|
|
4105
4100
|
};
|
|
4106
4101
|
}
|
|
4107
|
-
function
|
|
4102
|
+
function di(e, n, r, i, a, o, s) {
|
|
4108
4103
|
return e.map((c, l) => {
|
|
4109
|
-
let u =
|
|
4104
|
+
let u = j(n[l][o], r[l]) || "inherit", d = `${i + c.color}${o === "bg" ? "-bg" : ""}:${u}`;
|
|
4110
4105
|
if (l === 0 && a) {
|
|
4111
|
-
if (a ===
|
|
4106
|
+
if (a === wr && e.length > 1) {
|
|
4112
4107
|
let i = e.findIndex((e) => e.color === "light"), a = e.findIndex((e) => e.color === "dark");
|
|
4113
4108
|
if (i === -1 || a === -1) throw new t("When using `defaultColor: \"light-dark()\"`, you must provide both `light` and `dark` themes");
|
|
4114
|
-
return `light-dark(${
|
|
4109
|
+
return `light-dark(${j(n[i][o], r[i]) || "inherit"}, ${j(n[a][o], r[a]) || "inherit"});${d}`;
|
|
4115
4110
|
}
|
|
4116
4111
|
return u;
|
|
4117
4112
|
}
|
|
4118
4113
|
return s === "css-vars" ? d : null;
|
|
4119
4114
|
}).filter((e) => !!e).join(";");
|
|
4120
4115
|
}
|
|
4121
|
-
function
|
|
4116
|
+
function fi(e, t, n, r = {
|
|
4122
4117
|
meta: {},
|
|
4123
4118
|
options: n,
|
|
4124
|
-
codeToHast: (t, n) =>
|
|
4125
|
-
codeToTokens: (t, n) =>
|
|
4119
|
+
codeToHast: (t, n) => fi(e, t, n),
|
|
4120
|
+
codeToTokens: (t, n) => ui(e, t, n)
|
|
4126
4121
|
}) {
|
|
4127
4122
|
let i = t;
|
|
4128
|
-
for (let e of
|
|
4129
|
-
let { tokens: a, fg: o, bg: s, themeName: c, rootStyle: l, grammarState: u } =
|
|
4130
|
-
d === !0 ? a =
|
|
4123
|
+
for (let e of Vr(n)) i = e.preprocess?.call(r, i, n) || i;
|
|
4124
|
+
let { tokens: a, fg: o, bg: s, themeName: c, rootStyle: l, grammarState: u } = ui(e, i, n), { mergeWhitespaces: d = !0, mergeSameStyleTokens: f = !1 } = n;
|
|
4125
|
+
d === !0 ? a = mi(a) : d === "never" && (a = hi(a)), f && (a = gi(a));
|
|
4131
4126
|
let p = {
|
|
4132
4127
|
...r,
|
|
4133
4128
|
get source() {
|
|
4134
4129
|
return i;
|
|
4135
4130
|
}
|
|
4136
4131
|
};
|
|
4137
|
-
for (let e of
|
|
4138
|
-
return
|
|
4132
|
+
for (let e of Vr(n)) a = e.tokens?.call(p, a) || a;
|
|
4133
|
+
return pi(a, {
|
|
4139
4134
|
...n,
|
|
4140
4135
|
fg: o,
|
|
4141
4136
|
bg: s,
|
|
@@ -4143,12 +4138,12 @@ function gi(e, t, n, r = {
|
|
|
4143
4138
|
rootStyle: n.rootStyle === !1 ? !1 : n.rootStyle ?? l
|
|
4144
4139
|
}, p, u);
|
|
4145
4140
|
}
|
|
4146
|
-
function
|
|
4147
|
-
let i =
|
|
4141
|
+
function pi(e, t, n, r = Nr(e)) {
|
|
4142
|
+
let i = Vr(t), a = [], o = {
|
|
4148
4143
|
type: "root",
|
|
4149
4144
|
children: []
|
|
4150
4145
|
}, { structure: s = "classic", tabindex: c = "0" } = t, l = { class: `shiki ${t.themeName || ""}` };
|
|
4151
|
-
t.rootStyle !== !1 && (t.rootStyle == null ?
|
|
4146
|
+
t.rootStyle !== !1 && (l.style = t.rootStyle == null ? `background-color:${t.bg};color:${t.fg}` : t.rootStyle), c !== !1 && c != null && (l.tabindex = c.toString());
|
|
4152
4147
|
for (let [e, n] of Object.entries(t.meta || {})) e.startsWith("_") || (l[e] = n);
|
|
4153
4148
|
let u = {
|
|
4154
4149
|
type: "element",
|
|
@@ -4164,7 +4159,7 @@ function _i(e, t, n, r = Lr(e)) {
|
|
|
4164
4159
|
}, f = [], p = {
|
|
4165
4160
|
...n,
|
|
4166
4161
|
structure: s,
|
|
4167
|
-
addClassToHast:
|
|
4162
|
+
addClassToHast: xr,
|
|
4168
4163
|
get source() {
|
|
4169
4164
|
return n.source;
|
|
4170
4165
|
},
|
|
@@ -4212,7 +4207,7 @@ function _i(e, t, n, r = Lr(e)) {
|
|
|
4212
4207
|
type: "text",
|
|
4213
4208
|
value: a.content
|
|
4214
4209
|
}]
|
|
4215
|
-
}, c =
|
|
4210
|
+
}, c = Ar(a.htmlStyle || kr(a));
|
|
4216
4211
|
c && (e.properties.style = c);
|
|
4217
4212
|
for (let o of i) e = o?.span?.call(p, e, t + 1, r, n, a) || e;
|
|
4218
4213
|
s === "inline" ? o.children.push(e) : s === "classic" && n.children.push(e), r += a.content.length;
|
|
@@ -4261,9 +4256,9 @@ function _i(e, t, n, r = Lr(e)) {
|
|
|
4261
4256
|
}
|
|
4262
4257
|
let m = o;
|
|
4263
4258
|
for (let e of i) m = e?.root?.call(p, m) || m;
|
|
4264
|
-
return r &&
|
|
4259
|
+
return r && Mr(m, r), m;
|
|
4265
4260
|
}
|
|
4266
|
-
function
|
|
4261
|
+
function mi(e) {
|
|
4267
4262
|
return e.map((e) => {
|
|
4268
4263
|
let t = [], n = "", r;
|
|
4269
4264
|
return e.forEach((i, a) => {
|
|
@@ -4279,7 +4274,7 @@ function vi(e) {
|
|
|
4279
4274
|
}), t;
|
|
4280
4275
|
});
|
|
4281
4276
|
}
|
|
4282
|
-
function
|
|
4277
|
+
function hi(e) {
|
|
4283
4278
|
return e.map((e) => e.flatMap((e) => {
|
|
4284
4279
|
if (e.content.match(/^\s+$/)) return e;
|
|
4285
4280
|
let t = e.content.match(/^(\s*)(.*?)(\s*)$/);
|
|
@@ -4300,7 +4295,7 @@ function yi(e) {
|
|
|
4300
4295
|
}), a;
|
|
4301
4296
|
}));
|
|
4302
4297
|
}
|
|
4303
|
-
function
|
|
4298
|
+
function gi(e) {
|
|
4304
4299
|
return e.map((e) => {
|
|
4305
4300
|
let t = [];
|
|
4306
4301
|
for (let n of e) {
|
|
@@ -4308,38 +4303,38 @@ function bi(e) {
|
|
|
4308
4303
|
t.push({ ...n });
|
|
4309
4304
|
continue;
|
|
4310
4305
|
}
|
|
4311
|
-
let e = t[t.length - 1], r =
|
|
4306
|
+
let e = t[t.length - 1], r = Ar(e.htmlStyle || kr(e)), i = Ar(n.htmlStyle || kr(n)), a = e.fontStyle && (e.fontStyle & v.Underline || e.fontStyle & v.Strikethrough), o = n.fontStyle && (n.fontStyle & v.Underline || n.fontStyle & v.Strikethrough);
|
|
4312
4307
|
!a && !o && r === i ? e.content += n.content : t.push({ ...n });
|
|
4313
4308
|
}
|
|
4314
4309
|
return t;
|
|
4315
4310
|
});
|
|
4316
4311
|
}
|
|
4317
|
-
var
|
|
4318
|
-
function
|
|
4312
|
+
var _i = dr;
|
|
4313
|
+
function vi(e, t, n) {
|
|
4319
4314
|
let r = {
|
|
4320
4315
|
meta: {},
|
|
4321
4316
|
options: n,
|
|
4322
|
-
codeToHast: (t, n) =>
|
|
4323
|
-
codeToTokens: (t, n) =>
|
|
4324
|
-
}, i =
|
|
4325
|
-
for (let e of
|
|
4317
|
+
codeToHast: (t, n) => fi(e, t, n),
|
|
4318
|
+
codeToTokens: (t, n) => ui(e, t, n)
|
|
4319
|
+
}, i = _i(fi(e, t, n, r));
|
|
4320
|
+
for (let e of Vr(n)) i = e.postprocess?.call(r, i, n) || i;
|
|
4326
4321
|
return i;
|
|
4327
4322
|
}
|
|
4328
|
-
var
|
|
4323
|
+
var yi = {
|
|
4329
4324
|
light: "#333333",
|
|
4330
4325
|
dark: "#bbbbbb"
|
|
4331
|
-
},
|
|
4326
|
+
}, bi = {
|
|
4332
4327
|
light: "#fffffe",
|
|
4333
4328
|
dark: "#1e1e1e"
|
|
4334
|
-
},
|
|
4335
|
-
function
|
|
4336
|
-
if (e?.[
|
|
4329
|
+
}, xi = "__shiki_resolved";
|
|
4330
|
+
function Si(e) {
|
|
4331
|
+
if (e?.[xi]) return e;
|
|
4337
4332
|
let t = { ...e };
|
|
4338
4333
|
t.tokenColors && !t.settings && (t.settings = t.tokenColors, delete t.tokenColors), t.type ||= "dark", t.colorReplacements = { ...t.colorReplacements }, t.settings ||= [];
|
|
4339
4334
|
let { bg: n, fg: r } = t;
|
|
4340
4335
|
if (!n || !r) {
|
|
4341
4336
|
let e = t.settings ? t.settings.find((e) => !e.name && !e.scope) : void 0;
|
|
4342
|
-
e?.settings?.foreground && (r = e.settings.foreground), e?.settings?.background && (n = e.settings.background), !r && t?.colors?.["editor.foreground"] && (r = t.colors["editor.foreground"]), !n && t?.colors?.["editor.background"] && (n = t.colors["editor.background"]), r ||= t.type === "light" ?
|
|
4337
|
+
e?.settings?.foreground && (r = e.settings.foreground), e?.settings?.background && (n = e.settings.background), !r && t?.colors?.["editor.foreground"] && (r = t.colors["editor.foreground"]), !n && t?.colors?.["editor.background"] && (n = t.colors["editor.background"]), r ||= t.type === "light" ? yi.light : yi.dark, n ||= t.type === "light" ? bi.light : bi.dark, t.fg = r, t.bg = n;
|
|
4343
4338
|
}
|
|
4344
4339
|
t.settings[0] && t.settings[0].settings && !t.settings[0].scope || t.settings.unshift({ settings: {
|
|
4345
4340
|
foreground: t.fg,
|
|
@@ -4373,42 +4368,39 @@ function Ei(e) {
|
|
|
4373
4368
|
let n = o(t.colors[e]);
|
|
4374
4369
|
t.colorReplacements[n] = t.colors[e], t.colors[e] = n;
|
|
4375
4370
|
}
|
|
4376
|
-
return Object.defineProperty(t,
|
|
4371
|
+
return Object.defineProperty(t, xi, {
|
|
4377
4372
|
enumerable: !1,
|
|
4378
4373
|
writable: !1,
|
|
4379
4374
|
value: !0
|
|
4380
4375
|
}), t;
|
|
4381
4376
|
}
|
|
4382
|
-
async function
|
|
4383
|
-
return Array.from(new Set((await Promise.all(e.filter((e) => !
|
|
4377
|
+
async function Ci(e) {
|
|
4378
|
+
return Array.from(new Set((await Promise.all(e.filter((e) => !vr(e)).map(async (e) => await gr(e).then((e) => Array.isArray(e) ? e : [e])))).flat()));
|
|
4384
4379
|
}
|
|
4385
|
-
async function
|
|
4386
|
-
return (await Promise.all(e.map(async (e) =>
|
|
4380
|
+
async function wi(e) {
|
|
4381
|
+
return (await Promise.all(e.map(async (e) => br(e) ? null : Si(await gr(e))))).filter((e) => !!e);
|
|
4387
4382
|
}
|
|
4388
|
-
var
|
|
4389
|
-
function
|
|
4390
|
-
|
|
4391
|
-
if (Ai) throw Error(`[SHIKI DEPRECATE]: ${e}`);
|
|
4392
|
-
console.trace(`[SHIKI DEPRECATE]: ${e}`);
|
|
4393
|
-
}
|
|
4383
|
+
var Ti = 3;
|
|
4384
|
+
function Ei(e, t = 3) {
|
|
4385
|
+
Ti && (typeof Ti == "number" && t > Ti || console.trace(`[SHIKI DEPRECATE]: ${e}`));
|
|
4394
4386
|
}
|
|
4395
|
-
var
|
|
4387
|
+
var N = class extends Error {
|
|
4396
4388
|
constructor(e) {
|
|
4397
4389
|
super(e), this.name = "ShikiError";
|
|
4398
4390
|
}
|
|
4399
4391
|
};
|
|
4400
|
-
function
|
|
4392
|
+
function Di(e, t) {
|
|
4401
4393
|
if (!t) return e;
|
|
4402
4394
|
if (t[e]) {
|
|
4403
4395
|
let n = /* @__PURE__ */ new Set([e]);
|
|
4404
4396
|
for (; t[e];) {
|
|
4405
|
-
if (e = t[e], n.has(e)) throw new
|
|
4397
|
+
if (e = t[e], n.has(e)) throw new N(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);
|
|
4406
4398
|
n.add(e);
|
|
4407
4399
|
}
|
|
4408
4400
|
}
|
|
4409
4401
|
return e;
|
|
4410
4402
|
}
|
|
4411
|
-
var
|
|
4403
|
+
var Oi = class extends ht {
|
|
4412
4404
|
constructor(e, t, n, r = {}) {
|
|
4413
4405
|
super(e), this._resolver = e, this._themes = t, this._langs = n, this._alias = r, this._themes.map((e) => this.loadTheme(e)), this.loadLanguages(this._langs);
|
|
4414
4406
|
}
|
|
@@ -4423,7 +4415,7 @@ var Ni = class extends _t {
|
|
|
4423
4415
|
return typeof e == "string" ? this._resolvedThemes.get(e) : this.loadTheme(e);
|
|
4424
4416
|
}
|
|
4425
4417
|
loadTheme(e) {
|
|
4426
|
-
let t =
|
|
4418
|
+
let t = Si(e);
|
|
4427
4419
|
return t.name && (this._resolvedThemes.set(t.name, t), this._loadedThemesCache = null), t;
|
|
4428
4420
|
}
|
|
4429
4421
|
getLoadedThemes() {
|
|
@@ -4434,7 +4426,7 @@ var Ni = class extends _t {
|
|
|
4434
4426
|
t || (t = h.createFromRawTheme(e), this._textmateThemeCache.set(e, t)), this._syncRegistry.setTheme(t);
|
|
4435
4427
|
}
|
|
4436
4428
|
getGrammar(e) {
|
|
4437
|
-
return e =
|
|
4429
|
+
return e = Di(e, this._alias), this._resolvedGrammars.get(e);
|
|
4438
4430
|
}
|
|
4439
4431
|
loadLanguage(e) {
|
|
4440
4432
|
if (this.getGrammar(e.name)) return;
|
|
@@ -4458,7 +4450,7 @@ var Ni = class extends _t {
|
|
|
4458
4450
|
let t = Array.from(this._langGraph.entries()), n = t.filter(([e, t]) => !t);
|
|
4459
4451
|
if (n.length) {
|
|
4460
4452
|
let e = t.filter(([e, t]) => t ? (t.embeddedLanguages || t.embeddedLangs)?.some((e) => n.map(([e]) => e).includes(e)) : !1).filter((e) => !n.includes(e));
|
|
4461
|
-
throw new
|
|
4453
|
+
throw new N(`Missing languages ${n.map(([e]) => `\`${e}\``).join(", ")}, required by ${e.map(([e]) => `\`${e}\``).join(", ")}`);
|
|
4462
4454
|
}
|
|
4463
4455
|
for (let [e, n] of t) this._resolver.addLanguage(n);
|
|
4464
4456
|
for (let [e, n] of t) this.loadLanguage(n);
|
|
@@ -4471,7 +4463,7 @@ var Ni = class extends _t {
|
|
|
4471
4463
|
let t = e.embeddedLanguages ?? e.embeddedLangs;
|
|
4472
4464
|
if (t) for (let e of t) this._langGraph.set(e, this._langMap.get(e));
|
|
4473
4465
|
}
|
|
4474
|
-
},
|
|
4466
|
+
}, ki = class {
|
|
4475
4467
|
_langs = /* @__PURE__ */ new Map();
|
|
4476
4468
|
_scopeToLang = /* @__PURE__ */ new Map();
|
|
4477
4469
|
_injections = /* @__PURE__ */ new Map();
|
|
@@ -4506,19 +4498,19 @@ var Ni = class extends _t {
|
|
|
4506
4498
|
}
|
|
4507
4499
|
return n;
|
|
4508
4500
|
}
|
|
4509
|
-
},
|
|
4510
|
-
function
|
|
4511
|
-
|
|
4501
|
+
}, Ai = 0;
|
|
4502
|
+
function ji(e) {
|
|
4503
|
+
Ai += 1, e.warnings !== !1 && Ai >= 10 && Ai % 10 == 0 && console.warn(`[Shiki] ${Ai} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);
|
|
4512
4504
|
let t = !1;
|
|
4513
|
-
if (!e.engine) throw new
|
|
4514
|
-
let n = (e.langs || []).flat(1), r = (e.themes || []).flat(1).map(
|
|
4505
|
+
if (!e.engine) throw new N("`engine` option is required for synchronous mode");
|
|
4506
|
+
let n = (e.langs || []).flat(1), r = (e.themes || []).flat(1).map(Si), i = new Oi(new ki(e.engine, n), r, n, e.langAlias), a;
|
|
4515
4507
|
function o(t) {
|
|
4516
|
-
return
|
|
4508
|
+
return Di(t, e.langAlias);
|
|
4517
4509
|
}
|
|
4518
4510
|
function s(e) {
|
|
4519
4511
|
g();
|
|
4520
4512
|
let t = i.getGrammar(typeof e == "string" ? e : e.name);
|
|
4521
|
-
if (!t) throw new
|
|
4513
|
+
if (!t) throw new N(`Language \`${e}\` not found, you may need to load it first`);
|
|
4522
4514
|
return t;
|
|
4523
4515
|
}
|
|
4524
4516
|
function c(e) {
|
|
@@ -4531,7 +4523,7 @@ function Ii(e) {
|
|
|
4531
4523
|
};
|
|
4532
4524
|
g();
|
|
4533
4525
|
let t = i.getTheme(e);
|
|
4534
|
-
if (!t) throw new
|
|
4526
|
+
if (!t) throw new N(`Theme \`${e}\` not found, you may need to load it first`);
|
|
4535
4527
|
return t;
|
|
4536
4528
|
}
|
|
4537
4529
|
function l(e) {
|
|
@@ -4552,20 +4544,20 @@ function Ii(e) {
|
|
|
4552
4544
|
g(), i.loadLanguages(e.flat(1));
|
|
4553
4545
|
}
|
|
4554
4546
|
async function p(...e) {
|
|
4555
|
-
return f(await
|
|
4547
|
+
return f(await Ci(e));
|
|
4556
4548
|
}
|
|
4557
4549
|
function m(...e) {
|
|
4558
4550
|
g();
|
|
4559
4551
|
for (let t of e.flat(1)) i.loadTheme(t);
|
|
4560
4552
|
}
|
|
4561
4553
|
async function h(...e) {
|
|
4562
|
-
return g(), m(await
|
|
4554
|
+
return g(), m(await wi(e));
|
|
4563
4555
|
}
|
|
4564
4556
|
function g() {
|
|
4565
|
-
if (t) throw new
|
|
4557
|
+
if (t) throw new N("Shiki instance has been disposed");
|
|
4566
4558
|
}
|
|
4567
4559
|
function _() {
|
|
4568
|
-
t || (t = !0, i.dispose(), --
|
|
4560
|
+
t || (t = !0, i.dispose(), --Ai);
|
|
4569
4561
|
}
|
|
4570
4562
|
return {
|
|
4571
4563
|
setTheme: l,
|
|
@@ -4582,29 +4574,29 @@ function Ii(e) {
|
|
|
4582
4574
|
[Symbol.dispose]: _
|
|
4583
4575
|
};
|
|
4584
4576
|
}
|
|
4585
|
-
async function
|
|
4586
|
-
e.engine ||
|
|
4577
|
+
async function Mi(e) {
|
|
4578
|
+
e.engine || Ei("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");
|
|
4587
4579
|
let [t, n, r] = await Promise.all([
|
|
4588
|
-
|
|
4589
|
-
|
|
4580
|
+
wi(e.themes || []),
|
|
4581
|
+
Ci(e.langs || []),
|
|
4590
4582
|
e.engine
|
|
4591
4583
|
]);
|
|
4592
|
-
return
|
|
4584
|
+
return ji({
|
|
4593
4585
|
...e,
|
|
4594
4586
|
themes: t,
|
|
4595
4587
|
langs: n,
|
|
4596
4588
|
engine: r
|
|
4597
4589
|
});
|
|
4598
4590
|
}
|
|
4599
|
-
async function
|
|
4600
|
-
let t = await
|
|
4591
|
+
async function Ni(e) {
|
|
4592
|
+
let t = await Mi(e);
|
|
4601
4593
|
return {
|
|
4602
|
-
getLastGrammarState: (...e) =>
|
|
4603
|
-
codeToTokensBase: (e, n) =>
|
|
4604
|
-
codeToTokensWithThemes: (e, n) =>
|
|
4605
|
-
codeToTokens: (e, n) =>
|
|
4606
|
-
codeToHast: (e, n) =>
|
|
4607
|
-
codeToHtml: (e, n) =>
|
|
4594
|
+
getLastGrammarState: (...e) => ei(t, ...e),
|
|
4595
|
+
codeToTokensBase: (e, n) => $r(t, e, n),
|
|
4596
|
+
codeToTokensWithThemes: (e, n) => ci(t, e, n),
|
|
4597
|
+
codeToTokens: (e, n) => ui(t, e, n),
|
|
4598
|
+
codeToHast: (e, n) => fi(t, e, n),
|
|
4599
|
+
codeToHtml: (e, n) => vi(t, e, n),
|
|
4608
4600
|
getBundledLanguages: () => ({}),
|
|
4609
4601
|
getBundledThemes: () => ({}),
|
|
4610
4602
|
...t,
|
|
@@ -4613,17 +4605,17 @@ async function Ri(e) {
|
|
|
4613
4605
|
}
|
|
4614
4606
|
//#endregion
|
|
4615
4607
|
//#region ../../node_modules/.pnpm/@shikijs+themes@3.23.0/node_modules/@shikijs/themes/dist/vitesse-dark.mjs
|
|
4616
|
-
var zi = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#4d9375\",\"activityBar.background\":\"#121212\",\"activityBar.border\":\"#191919\",\"activityBar.foreground\":\"#dbd7caee\",\"activityBar.inactiveForeground\":\"#dedcd550\",\"activityBarBadge.background\":\"#bfbaaa\",\"activityBarBadge.foreground\":\"#121212\",\"badge.background\":\"#dedcd590\",\"badge.foreground\":\"#121212\",\"breadcrumb.activeSelectionForeground\":\"#eeeeee18\",\"breadcrumb.background\":\"#181818\",\"breadcrumb.focusForeground\":\"#dbd7caee\",\"breadcrumb.foreground\":\"#959da5\",\"breadcrumbPicker.background\":\"#121212\",\"button.background\":\"#4d9375\",\"button.foreground\":\"#121212\",\"button.hoverBackground\":\"#4d9375\",\"checkbox.background\":\"#181818\",\"checkbox.border\":\"#2f363d\",\"debugToolBar.background\":\"#121212\",\"descriptionForeground\":\"#dedcd590\",\"diffEditor.insertedTextBackground\":\"#4d937550\",\"diffEditor.removedTextBackground\":\"#ab595950\",\"dropdown.background\":\"#121212\",\"dropdown.border\":\"#191919\",\"dropdown.foreground\":\"#dbd7caee\",\"dropdown.listBackground\":\"#181818\",\"editor.background\":\"#121212\",\"editor.findMatchBackground\":\"#e6cc7722\",\"editor.findMatchHighlightBackground\":\"#e6cc7744\",\"editor.focusedStackFrameHighlightBackground\":\"#b808\",\"editor.foldBackground\":\"#eeeeee10\",\"editor.foreground\":\"#dbd7caee\",\"editor.inactiveSelectionBackground\":\"#eeeeee10\",\"editor.lineHighlightBackground\":\"#181818\",\"editor.selectionBackground\":\"#eeeeee18\",\"editor.selectionHighlightBackground\":\"#eeeeee10\",\"editor.stackFrameHighlightBackground\":\"#a707\",\"editor.wordHighlightBackground\":\"#1c6b4805\",\"editor.wordHighlightStrongBackground\":\"#1c6b4810\",\"editorBracketHighlight.foreground1\":\"#5eaab5\",\"editorBracketHighlight.foreground2\":\"#4d9375\",\"editorBracketHighlight.foreground3\":\"#d4976c\",\"editorBracketHighlight.foreground4\":\"#d9739f\",\"editorBracketHighlight.foreground5\":\"#e6cc77\",\"editorBracketHighlight.foreground6\":\"#6394bf\",\"editorBracketMatch.background\":\"#4d937520\",\"editorError.foreground\":\"#cb7676\",\"editorGroup.border\":\"#191919\",\"editorGroupHeader.tabsBackground\":\"#121212\",\"editorGroupHeader.tabsBorder\":\"#191919\",\"editorGutter.addedBackground\":\"#4d9375\",\"editorGutter.commentRangeForeground\":\"#dedcd550\",\"editorGutter.deletedBackground\":\"#cb7676\",\"editorGutter.foldingControlForeground\":\"#dedcd590\",\"editorGutter.modifiedBackground\":\"#6394bf\",\"editorHint.foreground\":\"#4d9375\",\"editorIndentGuide.activeBackground\":\"#ffffff30\",\"editorIndentGuide.background\":\"#ffffff15\",\"editorInfo.foreground\":\"#6394bf\",\"editorInlayHint.background\":\"#181818\",\"editorInlayHint.foreground\":\"#666666\",\"editorLineNumber.activeForeground\":\"#bfbaaa\",\"editorLineNumber.foreground\":\"#dedcd550\",\"editorOverviewRuler.border\":\"#111\",\"editorStickyScroll.background\":\"#181818\",\"editorStickyScrollHover.background\":\"#181818\",\"editorWarning.foreground\":\"#d4976c\",\"editorWhitespace.foreground\":\"#ffffff15\",\"editorWidget.background\":\"#121212\",\"errorForeground\":\"#cb7676\",\"focusBorder\":\"#00000000\",\"foreground\":\"#dbd7caee\",\"gitDecoration.addedResourceForeground\":\"#4d9375\",\"gitDecoration.conflictingResourceForeground\":\"#d4976c\",\"gitDecoration.deletedResourceForeground\":\"#cb7676\",\"gitDecoration.ignoredResourceForeground\":\"#dedcd550\",\"gitDecoration.modifiedResourceForeground\":\"#6394bf\",\"gitDecoration.submoduleResourceForeground\":\"#dedcd590\",\"gitDecoration.untrackedResourceForeground\":\"#5eaab5\",\"input.background\":\"#181818\",\"input.border\":\"#191919\",\"input.foreground\":\"#dbd7caee\",\"input.placeholderForeground\":\"#dedcd590\",\"inputOption.activeBackground\":\"#dedcd550\",\"list.activeSelectionBackground\":\"#181818\",\"list.activeSelectionForeground\":\"#dbd7caee\",\"list.focusBackground\":\"#181818\",\"list.highlightForeground\":\"#4d9375\",\"list.hoverBackground\":\"#181818\",\"list.hoverForeground\":\"#dbd7caee\",\"list.inactiveFocusBackground\":\"#121212\",\"list.inactiveSelectionBackground\":\"#181818\",\"list.inactiveSelectionForeground\":\"#dbd7caee\",\"menu.separatorBackground\":\"#191919\",\"notificationCenterHeader.background\":\"#121212\",\"notificationCenterHeader.foreground\":\"#959da5\",\"notifications.background\":\"#121212\",\"notifications.border\":\"#191919\",\"notifications.foreground\":\"#dbd7caee\",\"notificationsErrorIcon.foreground\":\"#cb7676\",\"notificationsInfoIcon.foreground\":\"#6394bf\",\"notificationsWarningIcon.foreground\":\"#d4976c\",\"panel.background\":\"#121212\",\"panel.border\":\"#191919\",\"panelInput.border\":\"#2f363d\",\"panelTitle.activeBorder\":\"#4d9375\",\"panelTitle.activeForeground\":\"#dbd7caee\",\"panelTitle.inactiveForeground\":\"#959da5\",\"peekViewEditor.background\":\"#121212\",\"peekViewEditor.matchHighlightBackground\":\"#ffd33d33\",\"peekViewResult.background\":\"#121212\",\"peekViewResult.matchHighlightBackground\":\"#ffd33d33\",\"pickerGroup.border\":\"#191919\",\"pickerGroup.foreground\":\"#dbd7caee\",\"problemsErrorIcon.foreground\":\"#cb7676\",\"problemsInfoIcon.foreground\":\"#6394bf\",\"problemsWarningIcon.foreground\":\"#d4976c\",\"progressBar.background\":\"#4d9375\",\"quickInput.background\":\"#121212\",\"quickInput.foreground\":\"#dbd7caee\",\"quickInputList.focusBackground\":\"#181818\",\"scrollbar.shadow\":\"#0000\",\"scrollbarSlider.activeBackground\":\"#dedcd550\",\"scrollbarSlider.background\":\"#dedcd510\",\"scrollbarSlider.hoverBackground\":\"#dedcd550\",\"settings.headerForeground\":\"#dbd7caee\",\"settings.modifiedItemIndicator\":\"#4d9375\",\"sideBar.background\":\"#121212\",\"sideBar.border\":\"#191919\",\"sideBar.foreground\":\"#bfbaaa\",\"sideBarSectionHeader.background\":\"#121212\",\"sideBarSectionHeader.border\":\"#191919\",\"sideBarSectionHeader.foreground\":\"#dbd7caee\",\"sideBarTitle.foreground\":\"#dbd7caee\",\"statusBar.background\":\"#121212\",\"statusBar.border\":\"#191919\",\"statusBar.debuggingBackground\":\"#181818\",\"statusBar.debuggingForeground\":\"#bfbaaa\",\"statusBar.foreground\":\"#bfbaaa\",\"statusBar.noFolderBackground\":\"#121212\",\"statusBarItem.prominentBackground\":\"#181818\",\"tab.activeBackground\":\"#121212\",\"tab.activeBorder\":\"#191919\",\"tab.activeBorderTop\":\"#dedcd590\",\"tab.activeForeground\":\"#dbd7caee\",\"tab.border\":\"#191919\",\"tab.hoverBackground\":\"#181818\",\"tab.inactiveBackground\":\"#121212\",\"tab.inactiveForeground\":\"#959da5\",\"tab.unfocusedActiveBorder\":\"#191919\",\"tab.unfocusedActiveBorderTop\":\"#191919\",\"tab.unfocusedHoverBackground\":\"#121212\",\"terminal.ansiBlack\":\"#393a34\",\"terminal.ansiBlue\":\"#6394bf\",\"terminal.ansiBrightBlack\":\"#777777\",\"terminal.ansiBrightBlue\":\"#6394bf\",\"terminal.ansiBrightCyan\":\"#5eaab5\",\"terminal.ansiBrightGreen\":\"#4d9375\",\"terminal.ansiBrightMagenta\":\"#d9739f\",\"terminal.ansiBrightRed\":\"#cb7676\",\"terminal.ansiBrightWhite\":\"#ffffff\",\"terminal.ansiBrightYellow\":\"#e6cc77\",\"terminal.ansiCyan\":\"#5eaab5\",\"terminal.ansiGreen\":\"#4d9375\",\"terminal.ansiMagenta\":\"#d9739f\",\"terminal.ansiRed\":\"#cb7676\",\"terminal.ansiWhite\":\"#dbd7ca\",\"terminal.ansiYellow\":\"#e6cc77\",\"terminal.foreground\":\"#dbd7caee\",\"terminal.selectionBackground\":\"#eeeeee18\",\"textBlockQuote.background\":\"#121212\",\"textBlockQuote.border\":\"#191919\",\"textCodeBlock.background\":\"#121212\",\"textLink.activeForeground\":\"#4d9375\",\"textLink.foreground\":\"#4d9375\",\"textPreformat.foreground\":\"#d1d5da\",\"textSeparator.foreground\":\"#586069\",\"titleBar.activeBackground\":\"#121212\",\"titleBar.activeForeground\":\"#bfbaaa\",\"titleBar.border\":\"#181818\",\"titleBar.inactiveBackground\":\"#121212\",\"titleBar.inactiveForeground\":\"#959da5\",\"tree.indentGuidesStroke\":\"#2f363d\",\"welcomePage.buttonBackground\":\"#2f363d\",\"welcomePage.buttonHoverBackground\":\"#444d56\"},\"displayName\":\"Vitesse Dark\",\"name\":\"vitesse-dark\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"class\":\"#6872ab\",\"interface\":\"#5d99a9\",\"namespace\":\"#db889a\",\"property\":\"#b8a965\",\"type\":\"#5d99a9\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#758575dd\"}},{\"scope\":[\"delimiter.bracket\",\"delimiter\",\"invalid.illegal.character-not-allowed-here.html\",\"keyword.operator.rest\",\"keyword.operator.spread\",\"keyword.operator.type.annotation\",\"keyword.operator.relational\",\"keyword.operator.assignment\",\"keyword.operator.type\",\"meta.brace\",\"meta.tag.block.any.html\",\"meta.tag.inline.any.html\",\"meta.tag.structure.input.void.html\",\"meta.type.annotation\",\"meta.embedded.block.github-actions-expression\",\"storage.type.function.arrow\",\"meta.objectliteral.ts\",\"punctuation\",\"punctuation.definition.string.begin.html.vue\",\"punctuation.definition.string.end.html.vue\"],\"settings\":{\"foreground\":\"#666666\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.language\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"entity.name.tag\",\"tag.html\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"keyword\",\"storage.type.class.jsdoc\",\"punctuation.definition.template-expression\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"storage\",\"storage.type\",\"support.type.builtin\",\"constant.language.undefined\",\"constant.language.null\",\"constant.language.import-export-all.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"text.html.derivative\",\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"string\",\"string punctuation.section.embedded source\",\"attribute.value\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"punctuation.definition.string\"],\"settings\":{\"foreground\":\"#c98a7d77\"}},{\"scope\":[\"punctuation.support.type.property-name\"],\"settings\":{\"foreground\":\"#b8a96577\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"property\",\"meta.property-name\",\"meta.object-literal.key\",\"entity.name.tag.yaml\",\"attribute.name\"],\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"entity.other.attribute-name\",\"invalid.deprecated.entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"variable\",\"identifier\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"support.type.primitive\",\"entity.name.type\"],\"settings\":{\"foreground\":\"#5DA994\"}},{\"scope\":\"namespace\",\"settings\":{\"foreground\":\"#db889a\"}},{\"scope\":[\"keyword.operator\",\"keyword.operator.assignment.compound\",\"meta.var.expr.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#f97583\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#24292e\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#c4704f\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"foreground\":\"#e6cc77\"}},{\"scope\":[\"support.constant\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"keyword.operator.quantifier.regexp\",\"constant.numeric\",\"number\"],\"settings\":{\"foreground\":\"#4C9A91\"}},{\"scope\":[\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"constant.language.boolean\",\"constant.language\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#d4976c\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#4d9375\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#5d99a9\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.raw\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#86181d\",\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#144620\",\"foreground\":\"#85e89d\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#c24e00\",\"foreground\":\"#ffab70\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#79b8ff\",\"foreground\":\"#2f363d\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#b392f0\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#d1d5da\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\",\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#dedcd590\"}},{\"scope\":[\"type.identifier\",\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#6872ab\"}},{\"scope\":[\"entity.other.attribute-name.html.vue\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"invalid.illegal.unrecognized-tag.html\"],\"settings\":{\"fontStyle\":\"normal\"}}],\"type\":\"dark\"}")), Bi = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#1c6b48\",\"activityBar.background\":\"#ffffff\",\"activityBar.border\":\"#f0f0f0\",\"activityBar.foreground\":\"#393a34\",\"activityBar.inactiveForeground\":\"#393a3450\",\"activityBarBadge.background\":\"#4e4f47\",\"activityBarBadge.foreground\":\"#ffffff\",\"badge.background\":\"#393a3490\",\"badge.foreground\":\"#ffffff\",\"breadcrumb.activeSelectionForeground\":\"#22222218\",\"breadcrumb.background\":\"#f7f7f7\",\"breadcrumb.focusForeground\":\"#393a34\",\"breadcrumb.foreground\":\"#6a737d\",\"breadcrumbPicker.background\":\"#ffffff\",\"button.background\":\"#1c6b48\",\"button.foreground\":\"#ffffff\",\"button.hoverBackground\":\"#1c6b48\",\"checkbox.background\":\"#f7f7f7\",\"checkbox.border\":\"#d1d5da\",\"debugToolBar.background\":\"#ffffff\",\"descriptionForeground\":\"#393a3490\",\"diffEditor.insertedTextBackground\":\"#1c6b4830\",\"diffEditor.removedTextBackground\":\"#ab595940\",\"dropdown.background\":\"#ffffff\",\"dropdown.border\":\"#f0f0f0\",\"dropdown.foreground\":\"#393a34\",\"dropdown.listBackground\":\"#f7f7f7\",\"editor.background\":\"#ffffff\",\"editor.findMatchBackground\":\"#e6cc7744\",\"editor.findMatchHighlightBackground\":\"#e6cc7766\",\"editor.focusedStackFrameHighlightBackground\":\"#fff5b1\",\"editor.foldBackground\":\"#22222210\",\"editor.foreground\":\"#393a34\",\"editor.inactiveSelectionBackground\":\"#22222210\",\"editor.lineHighlightBackground\":\"#f7f7f7\",\"editor.selectionBackground\":\"#22222218\",\"editor.selectionHighlightBackground\":\"#22222210\",\"editor.stackFrameHighlightBackground\":\"#fffbdd\",\"editor.wordHighlightBackground\":\"#1c6b4805\",\"editor.wordHighlightStrongBackground\":\"#1c6b4810\",\"editorBracketHighlight.foreground1\":\"#2993a3\",\"editorBracketHighlight.foreground2\":\"#1e754f\",\"editorBracketHighlight.foreground3\":\"#a65e2b\",\"editorBracketHighlight.foreground4\":\"#a13865\",\"editorBracketHighlight.foreground5\":\"#bda437\",\"editorBracketHighlight.foreground6\":\"#296aa3\",\"editorBracketMatch.background\":\"#1c6b4820\",\"editorError.foreground\":\"#ab5959\",\"editorGroup.border\":\"#f0f0f0\",\"editorGroupHeader.tabsBackground\":\"#ffffff\",\"editorGroupHeader.tabsBorder\":\"#f0f0f0\",\"editorGutter.addedBackground\":\"#1e754f\",\"editorGutter.commentRangeForeground\":\"#393a3450\",\"editorGutter.deletedBackground\":\"#ab5959\",\"editorGutter.foldingControlForeground\":\"#393a3490\",\"editorGutter.modifiedBackground\":\"#296aa3\",\"editorHint.foreground\":\"#1e754f\",\"editorIndentGuide.activeBackground\":\"#00000030\",\"editorIndentGuide.background\":\"#00000015\",\"editorInfo.foreground\":\"#296aa3\",\"editorInlayHint.background\":\"#f7f7f7\",\"editorInlayHint.foreground\":\"#999999\",\"editorLineNumber.activeForeground\":\"#4e4f47\",\"editorLineNumber.foreground\":\"#393a3450\",\"editorOverviewRuler.border\":\"#fff\",\"editorStickyScroll.background\":\"#f7f7f7\",\"editorStickyScrollHover.background\":\"#f7f7f7\",\"editorWarning.foreground\":\"#a65e2b\",\"editorWhitespace.foreground\":\"#00000015\",\"editorWidget.background\":\"#ffffff\",\"errorForeground\":\"#ab5959\",\"focusBorder\":\"#00000000\",\"foreground\":\"#393a34\",\"gitDecoration.addedResourceForeground\":\"#1e754f\",\"gitDecoration.conflictingResourceForeground\":\"#a65e2b\",\"gitDecoration.deletedResourceForeground\":\"#ab5959\",\"gitDecoration.ignoredResourceForeground\":\"#393a3450\",\"gitDecoration.modifiedResourceForeground\":\"#296aa3\",\"gitDecoration.submoduleResourceForeground\":\"#393a3490\",\"gitDecoration.untrackedResourceForeground\":\"#2993a3\",\"input.background\":\"#f7f7f7\",\"input.border\":\"#f0f0f0\",\"input.foreground\":\"#393a34\",\"input.placeholderForeground\":\"#393a3490\",\"inputOption.activeBackground\":\"#393a3450\",\"list.activeSelectionBackground\":\"#f7f7f7\",\"list.activeSelectionForeground\":\"#393a34\",\"list.focusBackground\":\"#f7f7f7\",\"list.highlightForeground\":\"#1c6b48\",\"list.hoverBackground\":\"#f7f7f7\",\"list.hoverForeground\":\"#393a34\",\"list.inactiveFocusBackground\":\"#ffffff\",\"list.inactiveSelectionBackground\":\"#f7f7f7\",\"list.inactiveSelectionForeground\":\"#393a34\",\"menu.separatorBackground\":\"#f0f0f0\",\"notificationCenterHeader.background\":\"#ffffff\",\"notificationCenterHeader.foreground\":\"#6a737d\",\"notifications.background\":\"#ffffff\",\"notifications.border\":\"#f0f0f0\",\"notifications.foreground\":\"#393a34\",\"notificationsErrorIcon.foreground\":\"#ab5959\",\"notificationsInfoIcon.foreground\":\"#296aa3\",\"notificationsWarningIcon.foreground\":\"#a65e2b\",\"panel.background\":\"#ffffff\",\"panel.border\":\"#f0f0f0\",\"panelInput.border\":\"#e1e4e8\",\"panelTitle.activeBorder\":\"#1c6b48\",\"panelTitle.activeForeground\":\"#393a34\",\"panelTitle.inactiveForeground\":\"#6a737d\",\"peekViewEditor.background\":\"#ffffff\",\"peekViewResult.background\":\"#ffffff\",\"pickerGroup.border\":\"#f0f0f0\",\"pickerGroup.foreground\":\"#393a34\",\"problemsErrorIcon.foreground\":\"#ab5959\",\"problemsInfoIcon.foreground\":\"#296aa3\",\"problemsWarningIcon.foreground\":\"#a65e2b\",\"progressBar.background\":\"#1c6b48\",\"quickInput.background\":\"#ffffff\",\"quickInput.foreground\":\"#393a34\",\"quickInputList.focusBackground\":\"#f7f7f7\",\"scrollbar.shadow\":\"#6a737d33\",\"scrollbarSlider.activeBackground\":\"#393a3450\",\"scrollbarSlider.background\":\"#393a3410\",\"scrollbarSlider.hoverBackground\":\"#393a3450\",\"settings.headerForeground\":\"#393a34\",\"settings.modifiedItemIndicator\":\"#1c6b48\",\"sideBar.background\":\"#ffffff\",\"sideBar.border\":\"#f0f0f0\",\"sideBar.foreground\":\"#4e4f47\",\"sideBarSectionHeader.background\":\"#ffffff\",\"sideBarSectionHeader.border\":\"#f0f0f0\",\"sideBarSectionHeader.foreground\":\"#393a34\",\"sideBarTitle.foreground\":\"#393a34\",\"statusBar.background\":\"#ffffff\",\"statusBar.border\":\"#f0f0f0\",\"statusBar.debuggingBackground\":\"#f7f7f7\",\"statusBar.debuggingForeground\":\"#4e4f47\",\"statusBar.foreground\":\"#4e4f47\",\"statusBar.noFolderBackground\":\"#ffffff\",\"statusBarItem.prominentBackground\":\"#f7f7f7\",\"tab.activeBackground\":\"#ffffff\",\"tab.activeBorder\":\"#f0f0f0\",\"tab.activeBorderTop\":\"#393a3490\",\"tab.activeForeground\":\"#393a34\",\"tab.border\":\"#f0f0f0\",\"tab.hoverBackground\":\"#f7f7f7\",\"tab.inactiveBackground\":\"#ffffff\",\"tab.inactiveForeground\":\"#6a737d\",\"tab.unfocusedActiveBorder\":\"#f0f0f0\",\"tab.unfocusedActiveBorderTop\":\"#f0f0f0\",\"tab.unfocusedHoverBackground\":\"#ffffff\",\"terminal.ansiBlack\":\"#121212\",\"terminal.ansiBlue\":\"#296aa3\",\"terminal.ansiBrightBlack\":\"#aaaaaa\",\"terminal.ansiBrightBlue\":\"#296aa3\",\"terminal.ansiBrightCyan\":\"#2993a3\",\"terminal.ansiBrightGreen\":\"#1e754f\",\"terminal.ansiBrightMagenta\":\"#a13865\",\"terminal.ansiBrightRed\":\"#ab5959\",\"terminal.ansiBrightWhite\":\"#dddddd\",\"terminal.ansiBrightYellow\":\"#bda437\",\"terminal.ansiCyan\":\"#2993a3\",\"terminal.ansiGreen\":\"#1e754f\",\"terminal.ansiMagenta\":\"#a13865\",\"terminal.ansiRed\":\"#ab5959\",\"terminal.ansiWhite\":\"#dbd7ca\",\"terminal.ansiYellow\":\"#bda437\",\"terminal.foreground\":\"#393a34\",\"terminal.selectionBackground\":\"#22222218\",\"textBlockQuote.background\":\"#ffffff\",\"textBlockQuote.border\":\"#f0f0f0\",\"textCodeBlock.background\":\"#ffffff\",\"textLink.activeForeground\":\"#1c6b48\",\"textLink.foreground\":\"#1c6b48\",\"textPreformat.foreground\":\"#586069\",\"textSeparator.foreground\":\"#d1d5da\",\"titleBar.activeBackground\":\"#ffffff\",\"titleBar.activeForeground\":\"#4e4f47\",\"titleBar.border\":\"#f7f7f7\",\"titleBar.inactiveBackground\":\"#ffffff\",\"titleBar.inactiveForeground\":\"#6a737d\",\"tree.indentGuidesStroke\":\"#e1e4e8\",\"welcomePage.buttonBackground\":\"#f6f8fa\",\"welcomePage.buttonHoverBackground\":\"#e1e4e8\"},\"displayName\":\"Vitesse Light\",\"name\":\"vitesse-light\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"class\":\"#5a6aa6\",\"interface\":\"#2e808f\",\"namespace\":\"#b05a78\",\"property\":\"#998418\",\"type\":\"#2e808f\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#a0ada0\"}},{\"scope\":[\"delimiter.bracket\",\"delimiter\",\"invalid.illegal.character-not-allowed-here.html\",\"keyword.operator.rest\",\"keyword.operator.spread\",\"keyword.operator.type.annotation\",\"keyword.operator.relational\",\"keyword.operator.assignment\",\"keyword.operator.type\",\"meta.brace\",\"meta.tag.block.any.html\",\"meta.tag.inline.any.html\",\"meta.tag.structure.input.void.html\",\"meta.type.annotation\",\"meta.embedded.block.github-actions-expression\",\"storage.type.function.arrow\",\"meta.objectliteral.ts\",\"punctuation\",\"punctuation.definition.string.begin.html.vue\",\"punctuation.definition.string.end.html.vue\"],\"settings\":{\"foreground\":\"#999999\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.language\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#393a34\"}},{\"scope\":[\"entity.name.tag\",\"tag.html\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":[\"keyword\",\"storage.type.class.jsdoc\",\"punctuation.definition.template-expression\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":[\"storage\",\"storage.type\",\"support.type.builtin\",\"constant.language.undefined\",\"constant.language.null\",\"constant.language.import-export-all.ts\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":[\"text.html.derivative\",\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#393a34\"}},{\"scope\":[\"string\",\"string punctuation.section.embedded source\",\"attribute.value\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"punctuation.definition.string\"],\"settings\":{\"foreground\":\"#b5695977\"}},{\"scope\":[\"punctuation.support.type.property-name\"],\"settings\":{\"foreground\":\"#99841877\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#998418\"}},{\"scope\":[\"property\",\"meta.property-name\",\"meta.object-literal.key\",\"entity.name.tag.yaml\",\"attribute.name\"],\"settings\":{\"foreground\":\"#998418\"}},{\"scope\":[\"entity.other.attribute-name\",\"invalid.deprecated.entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#b07d48\"}},{\"scope\":[\"variable\",\"identifier\"],\"settings\":{\"foreground\":\"#b07d48\"}},{\"scope\":[\"support.type.primitive\",\"entity.name.type\"],\"settings\":{\"foreground\":\"#2e8f82\"}},{\"scope\":\"namespace\",\"settings\":{\"foreground\":\"#b05a78\"}},{\"scope\":[\"keyword.operator\",\"keyword.operator.assignment.compound\",\"meta.var.expr.ts\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#d73a49\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#fafbfc\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#ab5e3f\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"foreground\":\"#bda437\"}},{\"scope\":[\"support.constant\"],\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"keyword.operator.quantifier.regexp\",\"constant.numeric\",\"number\"],\"settings\":{\"foreground\":\"#2f798a\"}},{\"scope\":[\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":[\"constant.language.boolean\",\"constant.language\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#1c6b48\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#1c6b48\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#2e808f\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#393a34\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#393a34\"}},{\"scope\":\"markup.raw\",\"settings\":{\"foreground\":\"#1c6b48\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#ffeef0\",\"foreground\":\"#b31d28\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#f0fff4\",\"foreground\":\"#22863a\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#ffebda\",\"foreground\":\"#e36209\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#005cc5\",\"foreground\":\"#f6f8fa\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#6f42c1\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#586069\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\",\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#393a3490\"}},{\"scope\":[\"type.identifier\",\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#5a6aa6\"}},{\"scope\":[\"entity.other.attribute-name.html.vue\"],\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":[\"invalid.illegal.unrecognized-tag.html\"],\"settings\":{\"fontStyle\":\"normal\"}}],\"type\":\"light\"}"));
|
|
4608
|
+
var Pi = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#4d9375\",\"activityBar.background\":\"#121212\",\"activityBar.border\":\"#191919\",\"activityBar.foreground\":\"#dbd7caee\",\"activityBar.inactiveForeground\":\"#dedcd550\",\"activityBarBadge.background\":\"#bfbaaa\",\"activityBarBadge.foreground\":\"#121212\",\"badge.background\":\"#dedcd590\",\"badge.foreground\":\"#121212\",\"breadcrumb.activeSelectionForeground\":\"#eeeeee18\",\"breadcrumb.background\":\"#181818\",\"breadcrumb.focusForeground\":\"#dbd7caee\",\"breadcrumb.foreground\":\"#959da5\",\"breadcrumbPicker.background\":\"#121212\",\"button.background\":\"#4d9375\",\"button.foreground\":\"#121212\",\"button.hoverBackground\":\"#4d9375\",\"checkbox.background\":\"#181818\",\"checkbox.border\":\"#2f363d\",\"debugToolBar.background\":\"#121212\",\"descriptionForeground\":\"#dedcd590\",\"diffEditor.insertedTextBackground\":\"#4d937550\",\"diffEditor.removedTextBackground\":\"#ab595950\",\"dropdown.background\":\"#121212\",\"dropdown.border\":\"#191919\",\"dropdown.foreground\":\"#dbd7caee\",\"dropdown.listBackground\":\"#181818\",\"editor.background\":\"#121212\",\"editor.findMatchBackground\":\"#e6cc7722\",\"editor.findMatchHighlightBackground\":\"#e6cc7744\",\"editor.focusedStackFrameHighlightBackground\":\"#b808\",\"editor.foldBackground\":\"#eeeeee10\",\"editor.foreground\":\"#dbd7caee\",\"editor.inactiveSelectionBackground\":\"#eeeeee10\",\"editor.lineHighlightBackground\":\"#181818\",\"editor.selectionBackground\":\"#eeeeee18\",\"editor.selectionHighlightBackground\":\"#eeeeee10\",\"editor.stackFrameHighlightBackground\":\"#a707\",\"editor.wordHighlightBackground\":\"#1c6b4805\",\"editor.wordHighlightStrongBackground\":\"#1c6b4810\",\"editorBracketHighlight.foreground1\":\"#5eaab5\",\"editorBracketHighlight.foreground2\":\"#4d9375\",\"editorBracketHighlight.foreground3\":\"#d4976c\",\"editorBracketHighlight.foreground4\":\"#d9739f\",\"editorBracketHighlight.foreground5\":\"#e6cc77\",\"editorBracketHighlight.foreground6\":\"#6394bf\",\"editorBracketMatch.background\":\"#4d937520\",\"editorError.foreground\":\"#cb7676\",\"editorGroup.border\":\"#191919\",\"editorGroupHeader.tabsBackground\":\"#121212\",\"editorGroupHeader.tabsBorder\":\"#191919\",\"editorGutter.addedBackground\":\"#4d9375\",\"editorGutter.commentRangeForeground\":\"#dedcd550\",\"editorGutter.deletedBackground\":\"#cb7676\",\"editorGutter.foldingControlForeground\":\"#dedcd590\",\"editorGutter.modifiedBackground\":\"#6394bf\",\"editorHint.foreground\":\"#4d9375\",\"editorIndentGuide.activeBackground\":\"#ffffff30\",\"editorIndentGuide.background\":\"#ffffff15\",\"editorInfo.foreground\":\"#6394bf\",\"editorInlayHint.background\":\"#181818\",\"editorInlayHint.foreground\":\"#666666\",\"editorLineNumber.activeForeground\":\"#bfbaaa\",\"editorLineNumber.foreground\":\"#dedcd550\",\"editorOverviewRuler.border\":\"#111\",\"editorStickyScroll.background\":\"#181818\",\"editorStickyScrollHover.background\":\"#181818\",\"editorWarning.foreground\":\"#d4976c\",\"editorWhitespace.foreground\":\"#ffffff15\",\"editorWidget.background\":\"#121212\",\"errorForeground\":\"#cb7676\",\"focusBorder\":\"#00000000\",\"foreground\":\"#dbd7caee\",\"gitDecoration.addedResourceForeground\":\"#4d9375\",\"gitDecoration.conflictingResourceForeground\":\"#d4976c\",\"gitDecoration.deletedResourceForeground\":\"#cb7676\",\"gitDecoration.ignoredResourceForeground\":\"#dedcd550\",\"gitDecoration.modifiedResourceForeground\":\"#6394bf\",\"gitDecoration.submoduleResourceForeground\":\"#dedcd590\",\"gitDecoration.untrackedResourceForeground\":\"#5eaab5\",\"input.background\":\"#181818\",\"input.border\":\"#191919\",\"input.foreground\":\"#dbd7caee\",\"input.placeholderForeground\":\"#dedcd590\",\"inputOption.activeBackground\":\"#dedcd550\",\"list.activeSelectionBackground\":\"#181818\",\"list.activeSelectionForeground\":\"#dbd7caee\",\"list.focusBackground\":\"#181818\",\"list.highlightForeground\":\"#4d9375\",\"list.hoverBackground\":\"#181818\",\"list.hoverForeground\":\"#dbd7caee\",\"list.inactiveFocusBackground\":\"#121212\",\"list.inactiveSelectionBackground\":\"#181818\",\"list.inactiveSelectionForeground\":\"#dbd7caee\",\"menu.separatorBackground\":\"#191919\",\"notificationCenterHeader.background\":\"#121212\",\"notificationCenterHeader.foreground\":\"#959da5\",\"notifications.background\":\"#121212\",\"notifications.border\":\"#191919\",\"notifications.foreground\":\"#dbd7caee\",\"notificationsErrorIcon.foreground\":\"#cb7676\",\"notificationsInfoIcon.foreground\":\"#6394bf\",\"notificationsWarningIcon.foreground\":\"#d4976c\",\"panel.background\":\"#121212\",\"panel.border\":\"#191919\",\"panelInput.border\":\"#2f363d\",\"panelTitle.activeBorder\":\"#4d9375\",\"panelTitle.activeForeground\":\"#dbd7caee\",\"panelTitle.inactiveForeground\":\"#959da5\",\"peekViewEditor.background\":\"#121212\",\"peekViewEditor.matchHighlightBackground\":\"#ffd33d33\",\"peekViewResult.background\":\"#121212\",\"peekViewResult.matchHighlightBackground\":\"#ffd33d33\",\"pickerGroup.border\":\"#191919\",\"pickerGroup.foreground\":\"#dbd7caee\",\"problemsErrorIcon.foreground\":\"#cb7676\",\"problemsInfoIcon.foreground\":\"#6394bf\",\"problemsWarningIcon.foreground\":\"#d4976c\",\"progressBar.background\":\"#4d9375\",\"quickInput.background\":\"#121212\",\"quickInput.foreground\":\"#dbd7caee\",\"quickInputList.focusBackground\":\"#181818\",\"scrollbar.shadow\":\"#0000\",\"scrollbarSlider.activeBackground\":\"#dedcd550\",\"scrollbarSlider.background\":\"#dedcd510\",\"scrollbarSlider.hoverBackground\":\"#dedcd550\",\"settings.headerForeground\":\"#dbd7caee\",\"settings.modifiedItemIndicator\":\"#4d9375\",\"sideBar.background\":\"#121212\",\"sideBar.border\":\"#191919\",\"sideBar.foreground\":\"#bfbaaa\",\"sideBarSectionHeader.background\":\"#121212\",\"sideBarSectionHeader.border\":\"#191919\",\"sideBarSectionHeader.foreground\":\"#dbd7caee\",\"sideBarTitle.foreground\":\"#dbd7caee\",\"statusBar.background\":\"#121212\",\"statusBar.border\":\"#191919\",\"statusBar.debuggingBackground\":\"#181818\",\"statusBar.debuggingForeground\":\"#bfbaaa\",\"statusBar.foreground\":\"#bfbaaa\",\"statusBar.noFolderBackground\":\"#121212\",\"statusBarItem.prominentBackground\":\"#181818\",\"tab.activeBackground\":\"#121212\",\"tab.activeBorder\":\"#191919\",\"tab.activeBorderTop\":\"#dedcd590\",\"tab.activeForeground\":\"#dbd7caee\",\"tab.border\":\"#191919\",\"tab.hoverBackground\":\"#181818\",\"tab.inactiveBackground\":\"#121212\",\"tab.inactiveForeground\":\"#959da5\",\"tab.unfocusedActiveBorder\":\"#191919\",\"tab.unfocusedActiveBorderTop\":\"#191919\",\"tab.unfocusedHoverBackground\":\"#121212\",\"terminal.ansiBlack\":\"#393a34\",\"terminal.ansiBlue\":\"#6394bf\",\"terminal.ansiBrightBlack\":\"#777777\",\"terminal.ansiBrightBlue\":\"#6394bf\",\"terminal.ansiBrightCyan\":\"#5eaab5\",\"terminal.ansiBrightGreen\":\"#4d9375\",\"terminal.ansiBrightMagenta\":\"#d9739f\",\"terminal.ansiBrightRed\":\"#cb7676\",\"terminal.ansiBrightWhite\":\"#ffffff\",\"terminal.ansiBrightYellow\":\"#e6cc77\",\"terminal.ansiCyan\":\"#5eaab5\",\"terminal.ansiGreen\":\"#4d9375\",\"terminal.ansiMagenta\":\"#d9739f\",\"terminal.ansiRed\":\"#cb7676\",\"terminal.ansiWhite\":\"#dbd7ca\",\"terminal.ansiYellow\":\"#e6cc77\",\"terminal.foreground\":\"#dbd7caee\",\"terminal.selectionBackground\":\"#eeeeee18\",\"textBlockQuote.background\":\"#121212\",\"textBlockQuote.border\":\"#191919\",\"textCodeBlock.background\":\"#121212\",\"textLink.activeForeground\":\"#4d9375\",\"textLink.foreground\":\"#4d9375\",\"textPreformat.foreground\":\"#d1d5da\",\"textSeparator.foreground\":\"#586069\",\"titleBar.activeBackground\":\"#121212\",\"titleBar.activeForeground\":\"#bfbaaa\",\"titleBar.border\":\"#181818\",\"titleBar.inactiveBackground\":\"#121212\",\"titleBar.inactiveForeground\":\"#959da5\",\"tree.indentGuidesStroke\":\"#2f363d\",\"welcomePage.buttonBackground\":\"#2f363d\",\"welcomePage.buttonHoverBackground\":\"#444d56\"},\"displayName\":\"Vitesse Dark\",\"name\":\"vitesse-dark\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"class\":\"#6872ab\",\"interface\":\"#5d99a9\",\"namespace\":\"#db889a\",\"property\":\"#b8a965\",\"type\":\"#5d99a9\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#758575dd\"}},{\"scope\":[\"delimiter.bracket\",\"delimiter\",\"invalid.illegal.character-not-allowed-here.html\",\"keyword.operator.rest\",\"keyword.operator.spread\",\"keyword.operator.type.annotation\",\"keyword.operator.relational\",\"keyword.operator.assignment\",\"keyword.operator.type\",\"meta.brace\",\"meta.tag.block.any.html\",\"meta.tag.inline.any.html\",\"meta.tag.structure.input.void.html\",\"meta.type.annotation\",\"meta.embedded.block.github-actions-expression\",\"storage.type.function.arrow\",\"meta.objectliteral.ts\",\"punctuation\",\"punctuation.definition.string.begin.html.vue\",\"punctuation.definition.string.end.html.vue\"],\"settings\":{\"foreground\":\"#666666\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.language\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"entity.name.tag\",\"tag.html\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"keyword\",\"storage.type.class.jsdoc\",\"punctuation.definition.template-expression\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"storage\",\"storage.type\",\"support.type.builtin\",\"constant.language.undefined\",\"constant.language.null\",\"constant.language.import-export-all.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"text.html.derivative\",\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#dbd7caee\"}},{\"scope\":[\"string\",\"string punctuation.section.embedded source\",\"attribute.value\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"punctuation.definition.string\"],\"settings\":{\"foreground\":\"#c98a7d77\"}},{\"scope\":[\"punctuation.support.type.property-name\"],\"settings\":{\"foreground\":\"#b8a96577\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"property\",\"meta.property-name\",\"meta.object-literal.key\",\"entity.name.tag.yaml\",\"attribute.name\"],\"settings\":{\"foreground\":\"#b8a965\"}},{\"scope\":[\"entity.other.attribute-name\",\"invalid.deprecated.entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"variable\",\"identifier\"],\"settings\":{\"foreground\":\"#bd976a\"}},{\"scope\":[\"support.type.primitive\",\"entity.name.type\"],\"settings\":{\"foreground\":\"#5DA994\"}},{\"scope\":\"namespace\",\"settings\":{\"foreground\":\"#db889a\"}},{\"scope\":[\"keyword.operator\",\"keyword.operator.assignment.compound\",\"meta.var.expr.ts\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#fdaeb7\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#f97583\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#24292e\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#c4704f\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"foreground\":\"#e6cc77\"}},{\"scope\":[\"support.constant\"],\"settings\":{\"foreground\":\"#c99076\"}},{\"scope\":[\"keyword.operator.quantifier.regexp\",\"constant.numeric\",\"number\"],\"settings\":{\"foreground\":\"#4C9A91\"}},{\"scope\":[\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#cb7676\"}},{\"scope\":[\"constant.language.boolean\",\"constant.language\"],\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#d4976c\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#4d9375\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#5d99a9\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#dbd7caee\"}},{\"scope\":\"markup.raw\",\"settings\":{\"foreground\":\"#4d9375\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#86181d\",\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#144620\",\"foreground\":\"#85e89d\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#c24e00\",\"foreground\":\"#ffab70\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#79b8ff\",\"foreground\":\"#2f363d\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#b392f0\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#79b8ff\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#79b8ff\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#d1d5da\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#fdaeb7\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\",\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#c98a7d\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#dedcd590\"}},{\"scope\":[\"type.identifier\",\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#6872ab\"}},{\"scope\":[\"entity.other.attribute-name.html.vue\"],\"settings\":{\"foreground\":\"#80a665\"}},{\"scope\":[\"invalid.illegal.unrecognized-tag.html\"],\"settings\":{\"fontStyle\":\"normal\"}}],\"type\":\"dark\"}")), Fi = Object.freeze(JSON.parse("{\"colors\":{\"activityBar.activeBorder\":\"#1c6b48\",\"activityBar.background\":\"#ffffff\",\"activityBar.border\":\"#f0f0f0\",\"activityBar.foreground\":\"#393a34\",\"activityBar.inactiveForeground\":\"#393a3450\",\"activityBarBadge.background\":\"#4e4f47\",\"activityBarBadge.foreground\":\"#ffffff\",\"badge.background\":\"#393a3490\",\"badge.foreground\":\"#ffffff\",\"breadcrumb.activeSelectionForeground\":\"#22222218\",\"breadcrumb.background\":\"#f7f7f7\",\"breadcrumb.focusForeground\":\"#393a34\",\"breadcrumb.foreground\":\"#6a737d\",\"breadcrumbPicker.background\":\"#ffffff\",\"button.background\":\"#1c6b48\",\"button.foreground\":\"#ffffff\",\"button.hoverBackground\":\"#1c6b48\",\"checkbox.background\":\"#f7f7f7\",\"checkbox.border\":\"#d1d5da\",\"debugToolBar.background\":\"#ffffff\",\"descriptionForeground\":\"#393a3490\",\"diffEditor.insertedTextBackground\":\"#1c6b4830\",\"diffEditor.removedTextBackground\":\"#ab595940\",\"dropdown.background\":\"#ffffff\",\"dropdown.border\":\"#f0f0f0\",\"dropdown.foreground\":\"#393a34\",\"dropdown.listBackground\":\"#f7f7f7\",\"editor.background\":\"#ffffff\",\"editor.findMatchBackground\":\"#e6cc7744\",\"editor.findMatchHighlightBackground\":\"#e6cc7766\",\"editor.focusedStackFrameHighlightBackground\":\"#fff5b1\",\"editor.foldBackground\":\"#22222210\",\"editor.foreground\":\"#393a34\",\"editor.inactiveSelectionBackground\":\"#22222210\",\"editor.lineHighlightBackground\":\"#f7f7f7\",\"editor.selectionBackground\":\"#22222218\",\"editor.selectionHighlightBackground\":\"#22222210\",\"editor.stackFrameHighlightBackground\":\"#fffbdd\",\"editor.wordHighlightBackground\":\"#1c6b4805\",\"editor.wordHighlightStrongBackground\":\"#1c6b4810\",\"editorBracketHighlight.foreground1\":\"#2993a3\",\"editorBracketHighlight.foreground2\":\"#1e754f\",\"editorBracketHighlight.foreground3\":\"#a65e2b\",\"editorBracketHighlight.foreground4\":\"#a13865\",\"editorBracketHighlight.foreground5\":\"#bda437\",\"editorBracketHighlight.foreground6\":\"#296aa3\",\"editorBracketMatch.background\":\"#1c6b4820\",\"editorError.foreground\":\"#ab5959\",\"editorGroup.border\":\"#f0f0f0\",\"editorGroupHeader.tabsBackground\":\"#ffffff\",\"editorGroupHeader.tabsBorder\":\"#f0f0f0\",\"editorGutter.addedBackground\":\"#1e754f\",\"editorGutter.commentRangeForeground\":\"#393a3450\",\"editorGutter.deletedBackground\":\"#ab5959\",\"editorGutter.foldingControlForeground\":\"#393a3490\",\"editorGutter.modifiedBackground\":\"#296aa3\",\"editorHint.foreground\":\"#1e754f\",\"editorIndentGuide.activeBackground\":\"#00000030\",\"editorIndentGuide.background\":\"#00000015\",\"editorInfo.foreground\":\"#296aa3\",\"editorInlayHint.background\":\"#f7f7f7\",\"editorInlayHint.foreground\":\"#999999\",\"editorLineNumber.activeForeground\":\"#4e4f47\",\"editorLineNumber.foreground\":\"#393a3450\",\"editorOverviewRuler.border\":\"#fff\",\"editorStickyScroll.background\":\"#f7f7f7\",\"editorStickyScrollHover.background\":\"#f7f7f7\",\"editorWarning.foreground\":\"#a65e2b\",\"editorWhitespace.foreground\":\"#00000015\",\"editorWidget.background\":\"#ffffff\",\"errorForeground\":\"#ab5959\",\"focusBorder\":\"#00000000\",\"foreground\":\"#393a34\",\"gitDecoration.addedResourceForeground\":\"#1e754f\",\"gitDecoration.conflictingResourceForeground\":\"#a65e2b\",\"gitDecoration.deletedResourceForeground\":\"#ab5959\",\"gitDecoration.ignoredResourceForeground\":\"#393a3450\",\"gitDecoration.modifiedResourceForeground\":\"#296aa3\",\"gitDecoration.submoduleResourceForeground\":\"#393a3490\",\"gitDecoration.untrackedResourceForeground\":\"#2993a3\",\"input.background\":\"#f7f7f7\",\"input.border\":\"#f0f0f0\",\"input.foreground\":\"#393a34\",\"input.placeholderForeground\":\"#393a3490\",\"inputOption.activeBackground\":\"#393a3450\",\"list.activeSelectionBackground\":\"#f7f7f7\",\"list.activeSelectionForeground\":\"#393a34\",\"list.focusBackground\":\"#f7f7f7\",\"list.highlightForeground\":\"#1c6b48\",\"list.hoverBackground\":\"#f7f7f7\",\"list.hoverForeground\":\"#393a34\",\"list.inactiveFocusBackground\":\"#ffffff\",\"list.inactiveSelectionBackground\":\"#f7f7f7\",\"list.inactiveSelectionForeground\":\"#393a34\",\"menu.separatorBackground\":\"#f0f0f0\",\"notificationCenterHeader.background\":\"#ffffff\",\"notificationCenterHeader.foreground\":\"#6a737d\",\"notifications.background\":\"#ffffff\",\"notifications.border\":\"#f0f0f0\",\"notifications.foreground\":\"#393a34\",\"notificationsErrorIcon.foreground\":\"#ab5959\",\"notificationsInfoIcon.foreground\":\"#296aa3\",\"notificationsWarningIcon.foreground\":\"#a65e2b\",\"panel.background\":\"#ffffff\",\"panel.border\":\"#f0f0f0\",\"panelInput.border\":\"#e1e4e8\",\"panelTitle.activeBorder\":\"#1c6b48\",\"panelTitle.activeForeground\":\"#393a34\",\"panelTitle.inactiveForeground\":\"#6a737d\",\"peekViewEditor.background\":\"#ffffff\",\"peekViewResult.background\":\"#ffffff\",\"pickerGroup.border\":\"#f0f0f0\",\"pickerGroup.foreground\":\"#393a34\",\"problemsErrorIcon.foreground\":\"#ab5959\",\"problemsInfoIcon.foreground\":\"#296aa3\",\"problemsWarningIcon.foreground\":\"#a65e2b\",\"progressBar.background\":\"#1c6b48\",\"quickInput.background\":\"#ffffff\",\"quickInput.foreground\":\"#393a34\",\"quickInputList.focusBackground\":\"#f7f7f7\",\"scrollbar.shadow\":\"#6a737d33\",\"scrollbarSlider.activeBackground\":\"#393a3450\",\"scrollbarSlider.background\":\"#393a3410\",\"scrollbarSlider.hoverBackground\":\"#393a3450\",\"settings.headerForeground\":\"#393a34\",\"settings.modifiedItemIndicator\":\"#1c6b48\",\"sideBar.background\":\"#ffffff\",\"sideBar.border\":\"#f0f0f0\",\"sideBar.foreground\":\"#4e4f47\",\"sideBarSectionHeader.background\":\"#ffffff\",\"sideBarSectionHeader.border\":\"#f0f0f0\",\"sideBarSectionHeader.foreground\":\"#393a34\",\"sideBarTitle.foreground\":\"#393a34\",\"statusBar.background\":\"#ffffff\",\"statusBar.border\":\"#f0f0f0\",\"statusBar.debuggingBackground\":\"#f7f7f7\",\"statusBar.debuggingForeground\":\"#4e4f47\",\"statusBar.foreground\":\"#4e4f47\",\"statusBar.noFolderBackground\":\"#ffffff\",\"statusBarItem.prominentBackground\":\"#f7f7f7\",\"tab.activeBackground\":\"#ffffff\",\"tab.activeBorder\":\"#f0f0f0\",\"tab.activeBorderTop\":\"#393a3490\",\"tab.activeForeground\":\"#393a34\",\"tab.border\":\"#f0f0f0\",\"tab.hoverBackground\":\"#f7f7f7\",\"tab.inactiveBackground\":\"#ffffff\",\"tab.inactiveForeground\":\"#6a737d\",\"tab.unfocusedActiveBorder\":\"#f0f0f0\",\"tab.unfocusedActiveBorderTop\":\"#f0f0f0\",\"tab.unfocusedHoverBackground\":\"#ffffff\",\"terminal.ansiBlack\":\"#121212\",\"terminal.ansiBlue\":\"#296aa3\",\"terminal.ansiBrightBlack\":\"#aaaaaa\",\"terminal.ansiBrightBlue\":\"#296aa3\",\"terminal.ansiBrightCyan\":\"#2993a3\",\"terminal.ansiBrightGreen\":\"#1e754f\",\"terminal.ansiBrightMagenta\":\"#a13865\",\"terminal.ansiBrightRed\":\"#ab5959\",\"terminal.ansiBrightWhite\":\"#dddddd\",\"terminal.ansiBrightYellow\":\"#bda437\",\"terminal.ansiCyan\":\"#2993a3\",\"terminal.ansiGreen\":\"#1e754f\",\"terminal.ansiMagenta\":\"#a13865\",\"terminal.ansiRed\":\"#ab5959\",\"terminal.ansiWhite\":\"#dbd7ca\",\"terminal.ansiYellow\":\"#bda437\",\"terminal.foreground\":\"#393a34\",\"terminal.selectionBackground\":\"#22222218\",\"textBlockQuote.background\":\"#ffffff\",\"textBlockQuote.border\":\"#f0f0f0\",\"textCodeBlock.background\":\"#ffffff\",\"textLink.activeForeground\":\"#1c6b48\",\"textLink.foreground\":\"#1c6b48\",\"textPreformat.foreground\":\"#586069\",\"textSeparator.foreground\":\"#d1d5da\",\"titleBar.activeBackground\":\"#ffffff\",\"titleBar.activeForeground\":\"#4e4f47\",\"titleBar.border\":\"#f7f7f7\",\"titleBar.inactiveBackground\":\"#ffffff\",\"titleBar.inactiveForeground\":\"#6a737d\",\"tree.indentGuidesStroke\":\"#e1e4e8\",\"welcomePage.buttonBackground\":\"#f6f8fa\",\"welcomePage.buttonHoverBackground\":\"#e1e4e8\"},\"displayName\":\"Vitesse Light\",\"name\":\"vitesse-light\",\"semanticHighlighting\":true,\"semanticTokenColors\":{\"class\":\"#5a6aa6\",\"interface\":\"#2e808f\",\"namespace\":\"#b05a78\",\"property\":\"#998418\",\"type\":\"#2e808f\"},\"tokenColors\":[{\"scope\":[\"comment\",\"punctuation.definition.comment\",\"string.comment\"],\"settings\":{\"foreground\":\"#a0ada0\"}},{\"scope\":[\"delimiter.bracket\",\"delimiter\",\"invalid.illegal.character-not-allowed-here.html\",\"keyword.operator.rest\",\"keyword.operator.spread\",\"keyword.operator.type.annotation\",\"keyword.operator.relational\",\"keyword.operator.assignment\",\"keyword.operator.type\",\"meta.brace\",\"meta.tag.block.any.html\",\"meta.tag.inline.any.html\",\"meta.tag.structure.input.void.html\",\"meta.type.annotation\",\"meta.embedded.block.github-actions-expression\",\"storage.type.function.arrow\",\"meta.objectliteral.ts\",\"punctuation\",\"punctuation.definition.string.begin.html.vue\",\"punctuation.definition.string.end.html.vue\"],\"settings\":{\"foreground\":\"#999999\"}},{\"scope\":[\"constant\",\"entity.name.constant\",\"variable.language\",\"meta.definition.variable\"],\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"entity\",\"entity.name\"],\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":\"variable.parameter.function\",\"settings\":{\"foreground\":\"#393a34\"}},{\"scope\":[\"entity.name.tag\",\"tag.html\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":\"entity.name.function\",\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":[\"keyword\",\"storage.type.class.jsdoc\",\"punctuation.definition.template-expression\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":[\"storage\",\"storage.type\",\"support.type.builtin\",\"constant.language.undefined\",\"constant.language.null\",\"constant.language.import-export-all.ts\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":[\"text.html.derivative\",\"storage.modifier.package\",\"storage.modifier.import\",\"storage.type.java\"],\"settings\":{\"foreground\":\"#393a34\"}},{\"scope\":[\"string\",\"string punctuation.section.embedded source\",\"attribute.value\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"punctuation.definition.string\"],\"settings\":{\"foreground\":\"#b5695977\"}},{\"scope\":[\"punctuation.support.type.property-name\"],\"settings\":{\"foreground\":\"#99841877\"}},{\"scope\":\"support\",\"settings\":{\"foreground\":\"#998418\"}},{\"scope\":[\"property\",\"meta.property-name\",\"meta.object-literal.key\",\"entity.name.tag.yaml\",\"attribute.name\"],\"settings\":{\"foreground\":\"#998418\"}},{\"scope\":[\"entity.other.attribute-name\",\"invalid.deprecated.entity.other.attribute-name.html\"],\"settings\":{\"foreground\":\"#b07d48\"}},{\"scope\":[\"variable\",\"identifier\"],\"settings\":{\"foreground\":\"#b07d48\"}},{\"scope\":[\"support.type.primitive\",\"entity.name.type\"],\"settings\":{\"foreground\":\"#2e8f82\"}},{\"scope\":\"namespace\",\"settings\":{\"foreground\":\"#b05a78\"}},{\"scope\":[\"keyword.operator\",\"keyword.operator.assignment.compound\",\"meta.var.expr.ts\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":\"invalid.broken\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.deprecated\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.illegal\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"invalid.unimplemented\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#b31d28\"}},{\"scope\":\"carriage-return\",\"settings\":{\"background\":\"#d73a49\",\"content\":\"^M\",\"fontStyle\":\"italic underline\",\"foreground\":\"#fafbfc\"}},{\"scope\":\"message.error\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":\"string variable\",\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"source.regexp\",\"string.regexp\"],\"settings\":{\"foreground\":\"#ab5e3f\"}},{\"scope\":[\"string.regexp.character-class\",\"string.regexp constant.character.escape\",\"string.regexp source.ruby.embedded\",\"string.regexp string.regexp.arbitrary-repitition\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":\"string.regexp constant.character.escape\",\"settings\":{\"foreground\":\"#bda437\"}},{\"scope\":[\"support.constant\"],\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"keyword.operator.quantifier.regexp\",\"constant.numeric\",\"number\"],\"settings\":{\"foreground\":\"#2f798a\"}},{\"scope\":[\"keyword.other.unit\"],\"settings\":{\"foreground\":\"#ab5959\"}},{\"scope\":[\"constant.language.boolean\",\"constant.language\"],\"settings\":{\"foreground\":\"#1e754f\"}},{\"scope\":\"meta.module-reference\",\"settings\":{\"foreground\":\"#1c6b48\"}},{\"scope\":\"punctuation.definition.list.begin.markdown\",\"settings\":{\"foreground\":\"#a65e2b\"}},{\"scope\":[\"markup.heading\",\"markup.heading entity.name\"],\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#1c6b48\"}},{\"scope\":\"markup.quote\",\"settings\":{\"foreground\":\"#2e808f\"}},{\"scope\":\"markup.italic\",\"settings\":{\"fontStyle\":\"italic\",\"foreground\":\"#393a34\"}},{\"scope\":\"markup.bold\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#393a34\"}},{\"scope\":\"markup.raw\",\"settings\":{\"foreground\":\"#1c6b48\"}},{\"scope\":[\"markup.deleted\",\"meta.diff.header.from-file\",\"punctuation.definition.deleted\"],\"settings\":{\"background\":\"#ffeef0\",\"foreground\":\"#b31d28\"}},{\"scope\":[\"markup.inserted\",\"meta.diff.header.to-file\",\"punctuation.definition.inserted\"],\"settings\":{\"background\":\"#f0fff4\",\"foreground\":\"#22863a\"}},{\"scope\":[\"markup.changed\",\"punctuation.definition.changed\"],\"settings\":{\"background\":\"#ffebda\",\"foreground\":\"#e36209\"}},{\"scope\":[\"markup.ignored\",\"markup.untracked\"],\"settings\":{\"background\":\"#005cc5\",\"foreground\":\"#f6f8fa\"}},{\"scope\":\"meta.diff.range\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#6f42c1\"}},{\"scope\":\"meta.diff.header\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.separator\",\"settings\":{\"fontStyle\":\"bold\",\"foreground\":\"#005cc5\"}},{\"scope\":\"meta.output\",\"settings\":{\"foreground\":\"#005cc5\"}},{\"scope\":[\"brackethighlighter.tag\",\"brackethighlighter.curly\",\"brackethighlighter.round\",\"brackethighlighter.square\",\"brackethighlighter.angle\",\"brackethighlighter.quote\"],\"settings\":{\"foreground\":\"#586069\"}},{\"scope\":\"brackethighlighter.unmatched\",\"settings\":{\"foreground\":\"#b31d28\"}},{\"scope\":[\"constant.other.reference.link\",\"string.other.link\",\"punctuation.definition.string.begin.markdown\",\"punctuation.definition.string.end.markdown\"],\"settings\":{\"foreground\":\"#b56959\"}},{\"scope\":[\"markup.underline.link.markdown\",\"markup.underline.link.image.markdown\"],\"settings\":{\"fontStyle\":\"underline\",\"foreground\":\"#393a3490\"}},{\"scope\":[\"type.identifier\",\"constant.other.character-class.regexp\"],\"settings\":{\"foreground\":\"#5a6aa6\"}},{\"scope\":[\"entity.other.attribute-name.html.vue\"],\"settings\":{\"foreground\":\"#59873a\"}},{\"scope\":[\"invalid.illegal.unrecognized-tag.html\"],\"settings\":{\"fontStyle\":\"normal\"}}],\"type\":\"light\"}"));
|
|
4617
4609
|
//#endregion
|
|
4618
4610
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/utils.js
|
|
4619
|
-
function
|
|
4611
|
+
function P(e) {
|
|
4620
4612
|
if ([...e].length !== 1) throw Error(`Expected "${e}" to be a single code point`);
|
|
4621
4613
|
return e.codePointAt(0);
|
|
4622
4614
|
}
|
|
4623
|
-
function
|
|
4615
|
+
function Ii(e, t, n) {
|
|
4624
4616
|
return e.has(t) || e.set(t, n), e.get(t);
|
|
4625
4617
|
}
|
|
4626
|
-
var
|
|
4618
|
+
var Li = /* @__PURE__ */ new Set([
|
|
4627
4619
|
"alnum",
|
|
4628
4620
|
"alpha",
|
|
4629
4621
|
"ascii",
|
|
@@ -4638,16 +4630,16 @@ var Hi = new Set([
|
|
|
4638
4630
|
"upper",
|
|
4639
4631
|
"word",
|
|
4640
4632
|
"xdigit"
|
|
4641
|
-
]),
|
|
4642
|
-
function
|
|
4633
|
+
]), F = String.raw;
|
|
4634
|
+
function I(e, t) {
|
|
4643
4635
|
if (e == null) throw Error(t ?? "Value expected");
|
|
4644
4636
|
return e;
|
|
4645
4637
|
}
|
|
4646
4638
|
//#endregion
|
|
4647
4639
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/tokenizer/tokenize.js
|
|
4648
|
-
var
|
|
4640
|
+
var Ri = F`\[\^?`, zi = `c.? | C(?:-.?)?|${F`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20\w]*\})?`}|${F`x[89A-Fa-f]\p{AHex}(?:\\x[89A-Fa-f]\p{AHex})*`}|${F`u(?:\p{AHex}{4})? | x\{[^\}]*\}? | x\p{AHex}{0,2}`}|${F`o\{[^\}]*\}?`}|${F`\d{1,3}`}`, Bi = /[?*+][?+]?|\{(?:\d+(?:,\d*)?|,\d+)\}\??/, Vi = new RegExp(F`
|
|
4649
4641
|
\\ (?:
|
|
4650
|
-
${
|
|
4642
|
+
${zi}
|
|
4651
4643
|
| [gk]<[^>]*>?
|
|
4652
4644
|
| [gk]'[^']*'?
|
|
4653
4645
|
| .
|
|
@@ -4664,20 +4656,20 @@ var Ui = N`\[\^?`, Wi = `c.? | C(?:-.?)?|${N`[pP]\{(?:\^?[-\x20_]*[A-Za-z][-\x20
|
|
|
4664
4656
|
)?
|
|
4665
4657
|
| \*[^\)]*\)?
|
|
4666
4658
|
)?
|
|
4667
|
-
| (?:${
|
|
4668
|
-
| ${
|
|
4659
|
+
| (?:${Bi.source})+
|
|
4660
|
+
| ${Ri}
|
|
4669
4661
|
| .
|
|
4670
|
-
`.replace(/\s+/g, ""), "gsu"),
|
|
4662
|
+
`.replace(/\s+/g, ""), "gsu"), Hi = new RegExp(F`
|
|
4671
4663
|
\\ (?:
|
|
4672
|
-
${
|
|
4664
|
+
${zi}
|
|
4673
4665
|
| .
|
|
4674
4666
|
)
|
|
4675
4667
|
| \[:(?:\^?\p{Alpha}+|\^):\]
|
|
4676
|
-
| ${
|
|
4668
|
+
| ${Ri}
|
|
4677
4669
|
| &&
|
|
4678
4670
|
| .
|
|
4679
4671
|
`.replace(/\s+/g, ""), "gsu");
|
|
4680
|
-
function
|
|
4672
|
+
function Ui(e, t = {}) {
|
|
4681
4673
|
let n = {
|
|
4682
4674
|
flags: "",
|
|
4683
4675
|
...t,
|
|
@@ -4688,7 +4680,7 @@ function Ji(e, t = {}) {
|
|
|
4688
4680
|
}
|
|
4689
4681
|
};
|
|
4690
4682
|
if (typeof e != "string") throw Error("String expected as pattern");
|
|
4691
|
-
let r =
|
|
4683
|
+
let r = ga(n.flags), i = [r.extended], a = {
|
|
4692
4684
|
captureGroup: n.rules.captureGroup,
|
|
4693
4685
|
getCurrentModX() {
|
|
4694
4686
|
return i.at(-1);
|
|
@@ -4705,9 +4697,9 @@ function Ji(e, t = {}) {
|
|
|
4705
4697
|
},
|
|
4706
4698
|
singleline: n.rules.singleline
|
|
4707
4699
|
}, o = [], s;
|
|
4708
|
-
for (
|
|
4709
|
-
let t =
|
|
4710
|
-
t.tokens ? o.push(...t.tokens) : t.token && o.push(t.token), t.lastIndex !== void 0 && (
|
|
4700
|
+
for (Vi.lastIndex = 0; s = Vi.exec(e);) {
|
|
4701
|
+
let t = Wi(a, e, s[0], Vi.lastIndex);
|
|
4702
|
+
t.tokens ? o.push(...t.tokens) : t.token && o.push(t.token), t.lastIndex !== void 0 && (Vi.lastIndex = t.lastIndex);
|
|
4711
4703
|
}
|
|
4712
4704
|
let c = [], l = 0;
|
|
4713
4705
|
o.filter((e) => e.type === "GroupOpen").forEach((e) => {
|
|
@@ -4717,57 +4709,57 @@ function Ji(e, t = {}) {
|
|
|
4717
4709
|
});
|
|
4718
4710
|
let u = l || c.length;
|
|
4719
4711
|
return {
|
|
4720
|
-
tokens: o.map((e) => e.type === "EscapedNumber" ?
|
|
4712
|
+
tokens: o.map((e) => e.type === "EscapedNumber" ? va(e, u) : e).flat(),
|
|
4721
4713
|
flags: r
|
|
4722
4714
|
};
|
|
4723
4715
|
}
|
|
4724
|
-
function
|
|
4716
|
+
function Wi(e, t, n, r) {
|
|
4725
4717
|
let [i, a] = n;
|
|
4726
4718
|
if (n === "[" || n === "[^") {
|
|
4727
|
-
let e =
|
|
4719
|
+
let e = Gi(t, n, r);
|
|
4728
4720
|
return {
|
|
4729
4721
|
tokens: e.tokens,
|
|
4730
4722
|
lastIndex: e.lastIndex
|
|
4731
4723
|
};
|
|
4732
4724
|
}
|
|
4733
4725
|
if (i === "\\") {
|
|
4734
|
-
if ("AbBGyYzZ".includes(a)) return { token:
|
|
4726
|
+
if ("AbBGyYzZ".includes(a)) return { token: Yi(n, n) };
|
|
4735
4727
|
if (/^\\g[<']/.test(n)) {
|
|
4736
4728
|
if (!/^\\g(?:<[^>]+>|'[^']+')$/.test(n)) throw Error(`Invalid group name "${n}"`);
|
|
4737
|
-
return { token:
|
|
4729
|
+
return { token: oa(n) };
|
|
4738
4730
|
}
|
|
4739
4731
|
if (/^\\k[<']/.test(n)) {
|
|
4740
4732
|
if (!/^\\k(?:<[^>]+>|'[^']+')$/.test(n)) throw Error(`Invalid group name "${n}"`);
|
|
4741
|
-
return { token:
|
|
4733
|
+
return { token: Xi(n) };
|
|
4742
4734
|
}
|
|
4743
|
-
if (a === "K") return { token:
|
|
4744
|
-
if (a === "N" || a === "R") return { token:
|
|
4745
|
-
if (a === "O") return { token:
|
|
4746
|
-
if (a === "X") return { token:
|
|
4747
|
-
let e =
|
|
4735
|
+
if (a === "K") return { token: ta("keep", n) };
|
|
4736
|
+
if (a === "N" || a === "R") return { token: R("newline", n, { negate: a === "N" }) };
|
|
4737
|
+
if (a === "O") return { token: R("any", n) };
|
|
4738
|
+
if (a === "X") return { token: R("text_segment", n) };
|
|
4739
|
+
let e = qi(n, { inCharClass: !1 });
|
|
4748
4740
|
return Array.isArray(e) ? { tokens: e } : { token: e };
|
|
4749
4741
|
}
|
|
4750
4742
|
if (i === "(") {
|
|
4751
|
-
if (a === "*") return { token:
|
|
4743
|
+
if (a === "*") return { token: da(n) };
|
|
4752
4744
|
if (n === "(?{") throw Error(`Unsupported callout "${n}"`);
|
|
4753
4745
|
if (n.startsWith("(?#")) {
|
|
4754
4746
|
if (t[r] !== ")") throw Error("Unclosed comment group \"(?#\"");
|
|
4755
4747
|
return { lastIndex: r + 1 };
|
|
4756
4748
|
}
|
|
4757
|
-
if (/^\(\?[-imx]+[:)]$/.test(n)) return { token:
|
|
4758
|
-
if (e.pushModX(e.getCurrentModX()), e.numOpenGroups++, n === "(" && !e.captureGroup || n === "(?:") return { token:
|
|
4759
|
-
if (n === "(?>") return { token:
|
|
4760
|
-
if (n === "(?=" || n === "(?!" || n === "(?<=" || n === "(?<!") return { token:
|
|
4761
|
-
if (n === "(" && e.captureGroup || n.startsWith("(?<") && n.endsWith(">") || n.startsWith("(?'") && n.endsWith("'")) return { token:
|
|
4749
|
+
if (/^\(\?[-imx]+[:)]$/.test(n)) return { token: ua(n, e) };
|
|
4750
|
+
if (e.pushModX(e.getCurrentModX()), e.numOpenGroups++, n === "(" && !e.captureGroup || n === "(?:") return { token: z("group", n) };
|
|
4751
|
+
if (n === "(?>") return { token: z("atomic", n) };
|
|
4752
|
+
if (n === "(?=" || n === "(?!" || n === "(?<=" || n === "(?<!") return { token: z(n[2] === "<" ? "lookbehind" : "lookahead", n, { negate: n.endsWith("!") }) };
|
|
4753
|
+
if (n === "(" && e.captureGroup || n.startsWith("(?<") && n.endsWith(">") || n.startsWith("(?'") && n.endsWith("'")) return { token: z("capturing", n, { ...n !== "(" && { name: n.slice(3, -1) } }) };
|
|
4762
4754
|
if (n.startsWith("(?~")) {
|
|
4763
4755
|
if (n === "(?~|") throw Error(`Unsupported absence function kind "${n}"`);
|
|
4764
|
-
return { token:
|
|
4756
|
+
return { token: z("absence_repeater", n) };
|
|
4765
4757
|
}
|
|
4766
4758
|
throw Error(n === "(?(" ? `Unsupported conditional "${n}"` : `Invalid or unsupported group option "${n}"`);
|
|
4767
4759
|
}
|
|
4768
4760
|
if (n === ")") {
|
|
4769
4761
|
if (e.popModX(), e.numOpenGroups--, e.numOpenGroups < 0) throw Error("Unmatched \")\"");
|
|
4770
|
-
return { token:
|
|
4762
|
+
return { token: ra(n) };
|
|
4771
4763
|
}
|
|
4772
4764
|
if (e.getCurrentModX()) {
|
|
4773
4765
|
if (n === "#") {
|
|
@@ -4779,49 +4771,49 @@ function Yi(e, t, n, r) {
|
|
|
4779
4771
|
return e.lastIndex = r, { lastIndex: e.exec(t) ? e.lastIndex : r };
|
|
4780
4772
|
}
|
|
4781
4773
|
}
|
|
4782
|
-
return n === "." ? { token:
|
|
4783
|
-
"^":
|
|
4784
|
-
$:
|
|
4785
|
-
}[n] : n, n) } : n === "|" ? { token:
|
|
4774
|
+
return n === "." ? { token: R("dot", n) } : n === "^" || n === "$" ? { token: Yi(e.singleline ? {
|
|
4775
|
+
"^": F`\A`,
|
|
4776
|
+
$: F`\Z`
|
|
4777
|
+
}[n] : n, n) } : n === "|" ? { token: Ji(n) } : Bi.test(n) ? { tokens: ya(n) } : { token: L(P(n), n) };
|
|
4786
4778
|
}
|
|
4787
|
-
function
|
|
4788
|
-
let r = [
|
|
4789
|
-
for (
|
|
4779
|
+
function Gi(e, t, n) {
|
|
4780
|
+
let r = [ea(t[1] === "^", t)], i = 1, a;
|
|
4781
|
+
for (Hi.lastIndex = n; a = Hi.exec(e);) {
|
|
4790
4782
|
let e = a[0];
|
|
4791
|
-
if (e[0] === "[" && e[1] !== ":") i++, r.push(
|
|
4783
|
+
if (e[0] === "[" && e[1] !== ":") i++, r.push(ea(e[1] === "^", e));
|
|
4792
4784
|
else if (e === "]") {
|
|
4793
|
-
if (r.at(-1).type === "CharacterClassOpen") r.push(
|
|
4794
|
-
else if (i--, r.push(
|
|
4785
|
+
if (r.at(-1).type === "CharacterClassOpen") r.push(L(93, e));
|
|
4786
|
+
else if (i--, r.push(Zi(e)), !i) break;
|
|
4795
4787
|
} else {
|
|
4796
|
-
let t =
|
|
4788
|
+
let t = Ki(e);
|
|
4797
4789
|
Array.isArray(t) ? r.push(...t) : r.push(t);
|
|
4798
4790
|
}
|
|
4799
4791
|
}
|
|
4800
4792
|
return {
|
|
4801
4793
|
tokens: r,
|
|
4802
|
-
lastIndex:
|
|
4794
|
+
lastIndex: Hi.lastIndex || e.length
|
|
4803
4795
|
};
|
|
4804
4796
|
}
|
|
4805
|
-
function
|
|
4806
|
-
if (e[0] === "\\") return
|
|
4797
|
+
function Ki(e) {
|
|
4798
|
+
if (e[0] === "\\") return qi(e, { inCharClass: !0 });
|
|
4807
4799
|
if (e[0] === "[") {
|
|
4808
4800
|
let t = /\[:(?<negate>\^?)(?<name>[a-z]+):\]/.exec(e);
|
|
4809
|
-
if (!t || !
|
|
4810
|
-
return
|
|
4801
|
+
if (!t || !Li.has(t.groups.name)) throw Error(`Invalid POSIX class "${e}"`);
|
|
4802
|
+
return R("posix", e, {
|
|
4811
4803
|
value: t.groups.name,
|
|
4812
4804
|
negate: !!t.groups.negate
|
|
4813
4805
|
});
|
|
4814
4806
|
}
|
|
4815
|
-
return e === "-" ?
|
|
4807
|
+
return e === "-" ? Qi(e) : e === "&&" ? $i(e) : L(P(e), e);
|
|
4816
4808
|
}
|
|
4817
|
-
function
|
|
4809
|
+
function qi(e, { inCharClass: t }) {
|
|
4818
4810
|
let n = e[1];
|
|
4819
|
-
if (n === "c" || n === "C") return
|
|
4820
|
-
if ("dDhHsSwW".includes(n)) return
|
|
4821
|
-
if (e.startsWith(
|
|
4811
|
+
if (n === "c" || n === "C") return la(e);
|
|
4812
|
+
if ("dDhHsSwW".includes(n)) return pa(e);
|
|
4813
|
+
if (e.startsWith(F`\o{`)) throw Error(`Incomplete, invalid, or unsupported octal code point "${e}"`);
|
|
4822
4814
|
if (/^\\[pP]\{/.test(e)) {
|
|
4823
4815
|
if (e.length === 3) throw Error(`Incomplete or invalid Unicode property "${e}"`);
|
|
4824
|
-
return
|
|
4816
|
+
return ma(e);
|
|
4825
4817
|
}
|
|
4826
4818
|
if (/^\\x[89A-Fa-f]\p{AHex}/u.test(e)) try {
|
|
4827
4819
|
let t = e.split(/\\x/).slice(1).map((e) => parseInt(e, 16)), n = new TextDecoder("utf-8", {
|
|
@@ -4830,71 +4822,71 @@ function Qi(e, { inCharClass: t }) {
|
|
|
4830
4822
|
}).decode(new Uint8Array(t)), r = new TextEncoder();
|
|
4831
4823
|
return [...n].map((e) => {
|
|
4832
4824
|
let t = [...r.encode(e)].map((e) => `\\x${e.toString(16)}`).join("");
|
|
4833
|
-
return
|
|
4825
|
+
return L(P(e), t);
|
|
4834
4826
|
});
|
|
4835
4827
|
} catch {
|
|
4836
4828
|
throw Error(`Multibyte code "${e}" incomplete or invalid in Oniguruma`);
|
|
4837
4829
|
}
|
|
4838
|
-
if (n === "u" || n === "x") return
|
|
4839
|
-
if (
|
|
4840
|
-
if (/\d/.test(n)) return
|
|
4841
|
-
if (e === "\\") throw Error(
|
|
4830
|
+
if (n === "u" || n === "x") return L(_a(e), e);
|
|
4831
|
+
if (ca.has(n)) return L(ca.get(n), e);
|
|
4832
|
+
if (/\d/.test(n)) return na(t, e);
|
|
4833
|
+
if (e === "\\") throw Error(F`Incomplete escape "\"`);
|
|
4842
4834
|
if (n === "M") throw Error(`Unsupported meta "${e}"`);
|
|
4843
|
-
if ([...e].length === 2) return
|
|
4835
|
+
if ([...e].length === 2) return L(e.codePointAt(1), e);
|
|
4844
4836
|
throw Error(`Unexpected escape "${e}"`);
|
|
4845
4837
|
}
|
|
4846
|
-
function
|
|
4838
|
+
function Ji(e) {
|
|
4847
4839
|
return {
|
|
4848
4840
|
type: "Alternator",
|
|
4849
4841
|
raw: e
|
|
4850
4842
|
};
|
|
4851
4843
|
}
|
|
4852
|
-
function
|
|
4844
|
+
function Yi(e, t) {
|
|
4853
4845
|
return {
|
|
4854
4846
|
type: "Assertion",
|
|
4855
4847
|
kind: e,
|
|
4856
4848
|
raw: t
|
|
4857
4849
|
};
|
|
4858
4850
|
}
|
|
4859
|
-
function
|
|
4851
|
+
function Xi(e) {
|
|
4860
4852
|
return {
|
|
4861
4853
|
type: "Backreference",
|
|
4862
4854
|
raw: e
|
|
4863
4855
|
};
|
|
4864
4856
|
}
|
|
4865
|
-
function
|
|
4857
|
+
function L(e, t) {
|
|
4866
4858
|
return {
|
|
4867
4859
|
type: "Character",
|
|
4868
4860
|
value: e,
|
|
4869
4861
|
raw: t
|
|
4870
4862
|
};
|
|
4871
4863
|
}
|
|
4872
|
-
function
|
|
4864
|
+
function Zi(e) {
|
|
4873
4865
|
return {
|
|
4874
4866
|
type: "CharacterClassClose",
|
|
4875
4867
|
raw: e
|
|
4876
4868
|
};
|
|
4877
4869
|
}
|
|
4878
|
-
function
|
|
4870
|
+
function Qi(e) {
|
|
4879
4871
|
return {
|
|
4880
4872
|
type: "CharacterClassHyphen",
|
|
4881
4873
|
raw: e
|
|
4882
4874
|
};
|
|
4883
4875
|
}
|
|
4884
|
-
function
|
|
4876
|
+
function $i(e) {
|
|
4885
4877
|
return {
|
|
4886
4878
|
type: "CharacterClassIntersector",
|
|
4887
4879
|
raw: e
|
|
4888
4880
|
};
|
|
4889
4881
|
}
|
|
4890
|
-
function
|
|
4882
|
+
function ea(e, t) {
|
|
4891
4883
|
return {
|
|
4892
4884
|
type: "CharacterClassOpen",
|
|
4893
4885
|
negate: e,
|
|
4894
4886
|
raw: t
|
|
4895
4887
|
};
|
|
4896
4888
|
}
|
|
4897
|
-
function
|
|
4889
|
+
function R(e, t, n = {}) {
|
|
4898
4890
|
return {
|
|
4899
4891
|
type: "CharacterSet",
|
|
4900
4892
|
kind: e,
|
|
@@ -4902,7 +4894,7 @@ function I(e, t, n = {}) {
|
|
|
4902
4894
|
raw: t
|
|
4903
4895
|
};
|
|
4904
4896
|
}
|
|
4905
|
-
function
|
|
4897
|
+
function ta(e, t, n = {}) {
|
|
4906
4898
|
return e === "keep" ? {
|
|
4907
4899
|
type: "Directive",
|
|
4908
4900
|
kind: e,
|
|
@@ -4910,24 +4902,24 @@ function oa(e, t, n = {}) {
|
|
|
4910
4902
|
} : {
|
|
4911
4903
|
type: "Directive",
|
|
4912
4904
|
kind: e,
|
|
4913
|
-
flags:
|
|
4905
|
+
flags: I(n.flags),
|
|
4914
4906
|
raw: t
|
|
4915
4907
|
};
|
|
4916
4908
|
}
|
|
4917
|
-
function
|
|
4909
|
+
function na(e, t) {
|
|
4918
4910
|
return {
|
|
4919
4911
|
type: "EscapedNumber",
|
|
4920
4912
|
inCharClass: e,
|
|
4921
4913
|
raw: t
|
|
4922
4914
|
};
|
|
4923
4915
|
}
|
|
4924
|
-
function
|
|
4916
|
+
function ra(e) {
|
|
4925
4917
|
return {
|
|
4926
4918
|
type: "GroupClose",
|
|
4927
4919
|
raw: e
|
|
4928
4920
|
};
|
|
4929
4921
|
}
|
|
4930
|
-
function
|
|
4922
|
+
function z(e, t, n = {}) {
|
|
4931
4923
|
return {
|
|
4932
4924
|
type: "GroupOpen",
|
|
4933
4925
|
kind: e,
|
|
@@ -4935,7 +4927,7 @@ function L(e, t, n = {}) {
|
|
|
4935
4927
|
raw: t
|
|
4936
4928
|
};
|
|
4937
4929
|
}
|
|
4938
|
-
function
|
|
4930
|
+
function ia(e, t, n, r) {
|
|
4939
4931
|
return {
|
|
4940
4932
|
type: "NamedCallout",
|
|
4941
4933
|
kind: e,
|
|
@@ -4944,7 +4936,7 @@ function la(e, t, n, r) {
|
|
|
4944
4936
|
raw: r
|
|
4945
4937
|
};
|
|
4946
4938
|
}
|
|
4947
|
-
function
|
|
4939
|
+
function aa(e, t, n, r) {
|
|
4948
4940
|
return {
|
|
4949
4941
|
type: "Quantifier",
|
|
4950
4942
|
kind: e,
|
|
@@ -4953,13 +4945,13 @@ function ua(e, t, n, r) {
|
|
|
4953
4945
|
raw: r
|
|
4954
4946
|
};
|
|
4955
4947
|
}
|
|
4956
|
-
function
|
|
4948
|
+
function oa(e) {
|
|
4957
4949
|
return {
|
|
4958
4950
|
type: "Subroutine",
|
|
4959
4951
|
raw: e
|
|
4960
4952
|
};
|
|
4961
4953
|
}
|
|
4962
|
-
var
|
|
4954
|
+
var sa = /* @__PURE__ */ new Set([
|
|
4963
4955
|
"COUNT",
|
|
4964
4956
|
"CMP",
|
|
4965
4957
|
"ERROR",
|
|
@@ -4968,7 +4960,7 @@ var fa = new Set([
|
|
|
4968
4960
|
"MISMATCH",
|
|
4969
4961
|
"SKIP",
|
|
4970
4962
|
"TOTAL_COUNT"
|
|
4971
|
-
]),
|
|
4963
|
+
]), ca = /* @__PURE__ */ new Map([
|
|
4972
4964
|
["a", 7],
|
|
4973
4965
|
["b", 8],
|
|
4974
4966
|
["e", 27],
|
|
@@ -4978,26 +4970,26 @@ var fa = new Set([
|
|
|
4978
4970
|
["t", 9],
|
|
4979
4971
|
["v", 11]
|
|
4980
4972
|
]);
|
|
4981
|
-
function
|
|
4973
|
+
function la(e) {
|
|
4982
4974
|
let t = e[1] === "c" ? e[2] : e[3];
|
|
4983
4975
|
if (!t || !/[A-Za-z]/.test(t)) throw Error(`Unsupported control character "${e}"`);
|
|
4984
|
-
return
|
|
4976
|
+
return L(P(t.toUpperCase()) - 64, e);
|
|
4985
4977
|
}
|
|
4986
|
-
function
|
|
4978
|
+
function ua(e, t) {
|
|
4987
4979
|
let { on: n, off: r } = /^\(\?(?<on>[imx]*)(?:-(?<off>[-imx]*))?/.exec(e).groups;
|
|
4988
4980
|
r ??= "";
|
|
4989
|
-
let i = (t.getCurrentModX() || n.includes("x")) && !r.includes("x"), a =
|
|
4990
|
-
if (a && (s.enable = a), o && (s.disable = o), e.endsWith(")")) return t.replaceCurrentModX(i),
|
|
4991
|
-
if (e.endsWith(":")) return t.pushModX(i), t.numOpenGroups++,
|
|
4981
|
+
let i = (t.getCurrentModX() || n.includes("x")) && !r.includes("x"), a = ha(n), o = ha(r), s = {};
|
|
4982
|
+
if (a && (s.enable = a), o && (s.disable = o), e.endsWith(")")) return t.replaceCurrentModX(i), ta("flags", e, { flags: s });
|
|
4983
|
+
if (e.endsWith(":")) return t.pushModX(i), t.numOpenGroups++, z("group", e, { ...(a || o) && { flags: s } });
|
|
4992
4984
|
throw Error(`Unexpected flag modifier "${e}"`);
|
|
4993
4985
|
}
|
|
4994
|
-
function
|
|
4986
|
+
function da(e) {
|
|
4995
4987
|
let t = /\(\*(?<name>[A-Za-z_]\w*)?(?:\[(?<tag>(?:[A-Za-z_]\w*)?)\])?(?:\{(?<args>[^}]*)\})?\)/.exec(e);
|
|
4996
4988
|
if (!t) throw Error(`Incomplete or invalid named callout "${e}"`);
|
|
4997
4989
|
let { name: n, tag: r, args: i } = t.groups;
|
|
4998
4990
|
if (!n) throw Error(`Invalid named callout "${e}"`);
|
|
4999
4991
|
if (r === "") throw Error(`Named callout tag with empty value not allowed "${e}"`);
|
|
5000
|
-
let a = i ? i.split(",").filter((e) => e !== "").map((e) => /^[+-]?\d+$/.test(e) ? +e : e) : [], [o, s, c] = a, l =
|
|
4992
|
+
let a = i ? i.split(",").filter((e) => e !== "").map((e) => /^[+-]?\d+$/.test(e) ? +e : e) : [], [o, s, c] = a, l = sa.has(n) ? n.toLowerCase() : "custom";
|
|
5001
4993
|
switch (l) {
|
|
5002
4994
|
case "fail":
|
|
5003
4995
|
case "mismatch":
|
|
@@ -5027,9 +5019,9 @@ function ga(e) {
|
|
|
5027
5019
|
case "custom": throw Error(`Undefined callout name "${n}"`);
|
|
5028
5020
|
default: throw Error(`Unexpected named callout kind "${l}"`);
|
|
5029
5021
|
}
|
|
5030
|
-
return
|
|
5022
|
+
return ia(l, r ?? null, i?.split(",") ?? null, e);
|
|
5031
5023
|
}
|
|
5032
|
-
function
|
|
5024
|
+
function fa(e) {
|
|
5033
5025
|
let t = null, n, r;
|
|
5034
5026
|
if (e[0] === "{") {
|
|
5035
5027
|
let { minStr: i, maxStr: a } = /^\{(?<minStr>\d*)(?:,(?<maxStr>\d*))?/.exec(e).groups, o = 1e5;
|
|
@@ -5038,30 +5030,30 @@ function _a(e) {
|
|
|
5038
5030
|
if (t === "possessive") throw Error("Unsupported possessive interval quantifier chain with \"?\"");
|
|
5039
5031
|
t = "lazy";
|
|
5040
5032
|
} else t ||= "greedy";
|
|
5041
|
-
} else n = e[0] === "+"
|
|
5042
|
-
return
|
|
5033
|
+
} else n = +(e[0] === "+"), r = e[0] === "?" ? 1 : Infinity, t = e[1] === "+" ? "possessive" : e[1] === "?" ? "lazy" : "greedy";
|
|
5034
|
+
return aa(t, n, r, e);
|
|
5043
5035
|
}
|
|
5044
|
-
function
|
|
5036
|
+
function pa(e) {
|
|
5045
5037
|
let t = e[1].toLowerCase();
|
|
5046
|
-
return
|
|
5038
|
+
return R({
|
|
5047
5039
|
d: "digit",
|
|
5048
5040
|
h: "hex",
|
|
5049
5041
|
s: "space",
|
|
5050
5042
|
w: "word"
|
|
5051
5043
|
}[t], e, { negate: e[1] !== t });
|
|
5052
5044
|
}
|
|
5053
|
-
function
|
|
5045
|
+
function ma(e) {
|
|
5054
5046
|
let { p: t, neg: n, value: r } = /^\\(?<p>[pP])\{(?<neg>\^?)(?<value>[^}]+)/.exec(e).groups;
|
|
5055
|
-
return
|
|
5047
|
+
return R("property", e, {
|
|
5056
5048
|
value: r,
|
|
5057
5049
|
negate: t === "P" && !n || t === "p" && !!n
|
|
5058
5050
|
});
|
|
5059
5051
|
}
|
|
5060
|
-
function
|
|
5052
|
+
function ha(e) {
|
|
5061
5053
|
let t = {};
|
|
5062
5054
|
return e.includes("i") && (t.ignoreCase = !0), e.includes("m") && (t.dotAll = !0), e.includes("x") && (t.extended = !0), Object.keys(t).length ? t : null;
|
|
5063
5055
|
}
|
|
5064
|
-
function
|
|
5056
|
+
function ga(e) {
|
|
5065
5057
|
let t = {
|
|
5066
5058
|
ignoreCase: !1,
|
|
5067
5059
|
dotAll: !1,
|
|
@@ -5092,26 +5084,26 @@ function xa(e) {
|
|
|
5092
5084
|
}
|
|
5093
5085
|
return t;
|
|
5094
5086
|
}
|
|
5095
|
-
function
|
|
5087
|
+
function _a(e) {
|
|
5096
5088
|
if (/^(?:\\u(?!\p{AHex}{4})|\\x(?!\p{AHex}{1,2}|\{\p{AHex}{1,8}\}))/u.test(e)) throw Error(`Incomplete or invalid escape "${e}"`);
|
|
5097
5089
|
let t = e[2] === "{" ? /^\\x\{\s*(?<hex>\p{AHex}+)/u.exec(e).groups.hex : e.slice(2);
|
|
5098
5090
|
return parseInt(t, 16);
|
|
5099
5091
|
}
|
|
5100
|
-
function
|
|
5092
|
+
function va(e, t) {
|
|
5101
5093
|
let { raw: n, inCharClass: r } = e, i = n.slice(1);
|
|
5102
|
-
if (!r && (i !== "0" && i.length === 1 || i[0] !== "0" && +i <= t)) return [
|
|
5094
|
+
if (!r && (i !== "0" && i.length === 1 || i[0] !== "0" && +i <= t)) return [Xi(n)];
|
|
5103
5095
|
let a = [], o = i.match(/^[0-7]+|\d/g);
|
|
5104
5096
|
for (let e = 0; e < o.length; e++) {
|
|
5105
5097
|
let t = o[e], r;
|
|
5106
5098
|
if (e === 0 && t !== "8" && t !== "9") {
|
|
5107
|
-
if (r = parseInt(t, 8), r > 127) throw Error(
|
|
5108
|
-
} else r =
|
|
5109
|
-
a.push(
|
|
5099
|
+
if (r = parseInt(t, 8), r > 127) throw Error(F`Octal encoded byte above 177 unsupported "${n}"`);
|
|
5100
|
+
} else r = P(t);
|
|
5101
|
+
a.push(L(r, (e === 0 ? "\\" : "") + t));
|
|
5110
5102
|
}
|
|
5111
5103
|
return a;
|
|
5112
5104
|
}
|
|
5113
|
-
function
|
|
5114
|
-
let t = [], n = new RegExp(
|
|
5105
|
+
function ya(e) {
|
|
5106
|
+
let t = [], n = new RegExp(Bi, "gy"), r;
|
|
5115
5107
|
for (; r = n.exec(e);) {
|
|
5116
5108
|
let e = r[0];
|
|
5117
5109
|
if (e[0] === "{") {
|
|
@@ -5119,27 +5111,27 @@ function wa(e) {
|
|
|
5119
5111
|
if (r) {
|
|
5120
5112
|
let { min: i, max: a } = r.groups;
|
|
5121
5113
|
if (+i > +a && e.endsWith("?")) {
|
|
5122
|
-
n.lastIndex--, t.push(
|
|
5114
|
+
n.lastIndex--, t.push(fa(e.slice(0, -1)));
|
|
5123
5115
|
continue;
|
|
5124
5116
|
}
|
|
5125
5117
|
}
|
|
5126
5118
|
}
|
|
5127
|
-
t.push(
|
|
5119
|
+
t.push(fa(e));
|
|
5128
5120
|
}
|
|
5129
5121
|
return t;
|
|
5130
5122
|
}
|
|
5131
5123
|
//#endregion
|
|
5132
5124
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/node-utils.js
|
|
5133
|
-
function
|
|
5125
|
+
function ba(e, t) {
|
|
5134
5126
|
if (!Array.isArray(e.body)) throw Error("Expected node with body array");
|
|
5135
5127
|
if (e.body.length !== 1) return !1;
|
|
5136
5128
|
let n = e.body[0];
|
|
5137
5129
|
return !t || Object.keys(t).every((e) => t[e] === n[e]);
|
|
5138
5130
|
}
|
|
5139
|
-
function
|
|
5140
|
-
return
|
|
5131
|
+
function xa(e) {
|
|
5132
|
+
return Sa.has(e.type);
|
|
5141
5133
|
}
|
|
5142
|
-
var
|
|
5134
|
+
var Sa = /* @__PURE__ */ new Set([
|
|
5143
5135
|
"AbsenceFunction",
|
|
5144
5136
|
"Backreference",
|
|
5145
5137
|
"CapturingGroup",
|
|
@@ -5152,7 +5144,7 @@ var Da = new Set([
|
|
|
5152
5144
|
]);
|
|
5153
5145
|
//#endregion
|
|
5154
5146
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/parser/parse.js
|
|
5155
|
-
function
|
|
5147
|
+
function Ca(e, t = {}) {
|
|
5156
5148
|
let n = {
|
|
5157
5149
|
flags: "",
|
|
5158
5150
|
normalizeUnknownPropertyNames: !1,
|
|
@@ -5166,7 +5158,7 @@ function Oa(e, t = {}) {
|
|
|
5166
5158
|
singleline: !1,
|
|
5167
5159
|
...t.rules
|
|
5168
5160
|
}
|
|
5169
|
-
}, r =
|
|
5161
|
+
}, r = Ui(e, {
|
|
5170
5162
|
flags: n.flags,
|
|
5171
5163
|
rules: {
|
|
5172
5164
|
captureGroup: n.rules.captureGroup,
|
|
@@ -5175,18 +5167,18 @@ function Oa(e, t = {}) {
|
|
|
5175
5167
|
}), i = (e, t) => {
|
|
5176
5168
|
let n = r.tokens[a.nextIndex];
|
|
5177
5169
|
switch (a.parent = e, a.nextIndex++, n.type) {
|
|
5178
|
-
case "Alternator": return
|
|
5179
|
-
case "Assertion": return
|
|
5180
|
-
case "Backreference": return
|
|
5181
|
-
case "Character": return
|
|
5182
|
-
case "CharacterClassHyphen": return
|
|
5183
|
-
case "CharacterClassOpen": return
|
|
5184
|
-
case "CharacterSet": return
|
|
5185
|
-
case "Directive": return
|
|
5186
|
-
case "GroupOpen": return
|
|
5187
|
-
case "NamedCallout": return
|
|
5188
|
-
case "Quantifier": return
|
|
5189
|
-
case "Subroutine": return
|
|
5170
|
+
case "Alternator": return B();
|
|
5171
|
+
case "Assertion": return wa(n);
|
|
5172
|
+
case "Backreference": return Ta(n, a);
|
|
5173
|
+
case "Character": return Ia(n.value, { useLastValid: !!t.isCheckingRangeEnd });
|
|
5174
|
+
case "CharacterClassHyphen": return Ea(n, a, t);
|
|
5175
|
+
case "CharacterClassOpen": return Da(n, a, t);
|
|
5176
|
+
case "CharacterSet": return Oa(n, a);
|
|
5177
|
+
case "Directive": return Ba(n.kind, { flags: n.flags });
|
|
5178
|
+
case "GroupOpen": return ka(n, a, t);
|
|
5179
|
+
case "NamedCallout": return Ha(n.kind, n.tag, n.arguments);
|
|
5180
|
+
case "Quantifier": return Aa(n, a);
|
|
5181
|
+
case "Subroutine": return ja(n, a);
|
|
5190
5182
|
default: throw Error(`Unexpected token type "${n.type}"`);
|
|
5191
5183
|
}
|
|
5192
5184
|
}, a = {
|
|
@@ -5203,7 +5195,7 @@ function Oa(e, t = {}) {
|
|
|
5203
5195
|
tokens: r.tokens,
|
|
5204
5196
|
unicodePropertyMap: n.unicodePropertyMap,
|
|
5205
5197
|
walk: i
|
|
5206
|
-
}, o =
|
|
5198
|
+
}, o = Ga(Va(r.flags)), s = o.body[0];
|
|
5207
5199
|
for (; a.nextIndex < r.tokens.length;) {
|
|
5208
5200
|
let e = i(s, {});
|
|
5209
5201
|
e.type === "Alternative" ? (o.body.push(e), s = e) : s.body.push(e);
|
|
@@ -5214,13 +5206,13 @@ function Oa(e, t = {}) {
|
|
|
5214
5206
|
if (e > c.length) throw Error("Subroutine uses a group number that's not defined");
|
|
5215
5207
|
e && (c[e - 1].isSubroutined = !0);
|
|
5216
5208
|
} else if (u.has(e)) {
|
|
5217
|
-
if (u.get(e).length > 1) throw Error(
|
|
5209
|
+
if (u.get(e).length > 1) throw Error(F`Subroutine uses a duplicate group name "\g<${e}>"`);
|
|
5218
5210
|
u.get(e)[0].isSubroutined = !0;
|
|
5219
|
-
} else throw Error(
|
|
5211
|
+
} else throw Error(F`Subroutine uses a group name that's not defined "\g<${e}>"`);
|
|
5220
5212
|
return o;
|
|
5221
5213
|
}
|
|
5222
|
-
function
|
|
5223
|
-
return
|
|
5214
|
+
function wa({ kind: e }) {
|
|
5215
|
+
return Na(I({
|
|
5224
5216
|
"^": "line_start",
|
|
5225
5217
|
$: "line_end",
|
|
5226
5218
|
"\\A": "string_start",
|
|
@@ -5231,69 +5223,69 @@ function ka({ kind: e }) {
|
|
|
5231
5223
|
"\\Y": "text_segment_boundary",
|
|
5232
5224
|
"\\z": "string_end",
|
|
5233
5225
|
"\\Z": "string_end_newline"
|
|
5234
|
-
}[e], `Unexpected assertion kind "${e}"`), { negate: e ===
|
|
5226
|
+
}[e], `Unexpected assertion kind "${e}"`), { negate: e === F`\B` || e === F`\Y` });
|
|
5235
5227
|
}
|
|
5236
|
-
function
|
|
5228
|
+
function Ta({ raw: e }, t) {
|
|
5237
5229
|
let n = /^\\k[<']/.test(e), r = n ? e.slice(3, -1) : e.slice(1), i = (n, r = !1) => {
|
|
5238
5230
|
let i = t.capturingGroups.length, a = !1;
|
|
5239
5231
|
if (n > i) if (t.skipBackrefValidation) a = !0;
|
|
5240
5232
|
else throw Error(`Not enough capturing groups defined to the left "${e}"`);
|
|
5241
|
-
return t.hasNumberedRef = !0,
|
|
5233
|
+
return t.hasNumberedRef = !0, Pa(r ? i + 1 - n : n, { orphan: a });
|
|
5242
5234
|
};
|
|
5243
5235
|
if (n) {
|
|
5244
5236
|
let n = /^(?<sign>-?)0*(?<num>[1-9]\d*)$/.exec(r);
|
|
5245
5237
|
if (n) return i(+n.groups.num, !!n.groups.sign);
|
|
5246
5238
|
if (/[-+]/.test(r)) throw Error(`Invalid backref name "${e}"`);
|
|
5247
5239
|
if (!t.namedGroupsByName.has(r)) throw Error(`Group name not defined to the left "${e}"`);
|
|
5248
|
-
return
|
|
5240
|
+
return Pa(r);
|
|
5249
5241
|
}
|
|
5250
5242
|
return i(+r);
|
|
5251
5243
|
}
|
|
5252
|
-
function
|
|
5244
|
+
function Ea(e, t, n) {
|
|
5253
5245
|
let { tokens: r, walk: i } = t, a = t.parent, o = a.body.at(-1), s = r[t.nextIndex];
|
|
5254
5246
|
if (!n.isCheckingRangeEnd && o && o.type !== "CharacterClass" && o.type !== "CharacterClassRange" && s && s.type !== "CharacterClassOpen" && s.type !== "CharacterClassClose" && s.type !== "CharacterClassIntersector") {
|
|
5255
5247
|
let e = i(a, {
|
|
5256
5248
|
...n,
|
|
5257
5249
|
isCheckingRangeEnd: !0
|
|
5258
5250
|
});
|
|
5259
|
-
if (o.type === "Character" && e.type === "Character") return a.body.pop(),
|
|
5251
|
+
if (o.type === "Character" && e.type === "Character") return a.body.pop(), Ra(o, e);
|
|
5260
5252
|
throw Error("Invalid character class range");
|
|
5261
5253
|
}
|
|
5262
|
-
return
|
|
5254
|
+
return Ia(P("-"));
|
|
5263
5255
|
}
|
|
5264
|
-
function
|
|
5265
|
-
let { tokens: r, walk: i } = t, a = r[t.nextIndex], o = [
|
|
5256
|
+
function Da({ negate: e }, t, n) {
|
|
5257
|
+
let { tokens: r, walk: i } = t, a = r[t.nextIndex], o = [La()], s = no(a);
|
|
5266
5258
|
for (; s.type !== "CharacterClassClose";) {
|
|
5267
|
-
if (s.type === "CharacterClassIntersector") o.push(
|
|
5259
|
+
if (s.type === "CharacterClassIntersector") o.push(La()), t.nextIndex++;
|
|
5268
5260
|
else {
|
|
5269
5261
|
let e = o.at(-1);
|
|
5270
5262
|
e.body.push(i(e, n));
|
|
5271
5263
|
}
|
|
5272
|
-
s =
|
|
5264
|
+
s = no(r[t.nextIndex], a);
|
|
5273
5265
|
}
|
|
5274
|
-
let c =
|
|
5266
|
+
let c = La({ negate: e });
|
|
5275
5267
|
return o.length === 1 ? c.body = o[0].body : (c.kind = "intersection", c.body = o.map((e) => e.body.length === 1 ? e.body[0] : e)), t.nextIndex++, c;
|
|
5276
5268
|
}
|
|
5277
|
-
function
|
|
5269
|
+
function Oa({ kind: e, negate: t, value: n }, r) {
|
|
5278
5270
|
let { normalizeUnknownPropertyNames: i, skipPropertyNameValidation: a, unicodePropertyMap: o } = r;
|
|
5279
5271
|
if (e === "property") {
|
|
5280
|
-
let r =
|
|
5281
|
-
if (
|
|
5282
|
-
else return
|
|
5272
|
+
let r = to(n);
|
|
5273
|
+
if (Li.has(r) && !o?.has(r)) e = "posix", n = r;
|
|
5274
|
+
else return qa(n, {
|
|
5283
5275
|
negate: t,
|
|
5284
5276
|
normalizeUnknownPropertyNames: i,
|
|
5285
5277
|
skipPropertyNameValidation: a,
|
|
5286
5278
|
unicodePropertyMap: o
|
|
5287
5279
|
});
|
|
5288
5280
|
}
|
|
5289
|
-
return e === "posix" ?
|
|
5281
|
+
return e === "posix" ? Ua(n, { negate: t }) : za(e, { negate: t });
|
|
5290
5282
|
}
|
|
5291
|
-
function
|
|
5292
|
-
let { tokens: r, capturingGroups: i, namedGroupsByName: a, skipLookbehindValidation: o, walk: s } = t, c =
|
|
5293
|
-
if (c.type === "CapturingGroup" && (i.push(c), c.name &&
|
|
5294
|
-
let f =
|
|
5283
|
+
function ka(e, t, n) {
|
|
5284
|
+
let { tokens: r, capturingGroups: i, namedGroupsByName: a, skipLookbehindValidation: o, walk: s } = t, c = Ja(e), l = c.type === "AbsenceFunction", u = Qa(c), d = u && c.negate;
|
|
5285
|
+
if (c.type === "CapturingGroup" && (i.push(c), c.name && Ii(a, c.name, []).push(c)), l && n.isInAbsenceFunction) throw Error("Nested absence function not supported by Oniguruma");
|
|
5286
|
+
let f = ro(r[t.nextIndex]);
|
|
5295
5287
|
for (; f.type !== "GroupClose";) {
|
|
5296
|
-
if (f.type === "Alternator") c.body.push(
|
|
5288
|
+
if (f.type === "Alternator") c.body.push(B()), t.nextIndex++;
|
|
5297
5289
|
else {
|
|
5298
5290
|
let e = c.body.at(-1), t = s(e, {
|
|
5299
5291
|
...n,
|
|
@@ -5304,21 +5296,21 @@ function Pa(e, t, n) {
|
|
|
5304
5296
|
if (e.body.push(t), (u || n.isInLookbehind) && !o) {
|
|
5305
5297
|
let e = "Lookbehind includes a pattern not allowed by Oniguruma";
|
|
5306
5298
|
if (d || n.isInNegLookbehind) {
|
|
5307
|
-
if (
|
|
5308
|
-
} else if (
|
|
5299
|
+
if (Za(t) || t.type === "CapturingGroup") throw Error(e);
|
|
5300
|
+
} else if (Za(t) || Qa(t) && t.negate) throw Error(e);
|
|
5309
5301
|
}
|
|
5310
5302
|
}
|
|
5311
|
-
f =
|
|
5303
|
+
f = ro(r[t.nextIndex]);
|
|
5312
5304
|
}
|
|
5313
5305
|
return t.nextIndex++, c;
|
|
5314
5306
|
}
|
|
5315
|
-
function
|
|
5307
|
+
function Aa({ kind: e, min: t, max: n }, r) {
|
|
5316
5308
|
let i = r.parent, a = i.body.at(-1);
|
|
5317
|
-
if (!a || !
|
|
5318
|
-
let o =
|
|
5309
|
+
if (!a || !xa(a)) throw Error("Quantifier requires a repeatable token");
|
|
5310
|
+
let o = Wa(e, t, n, a);
|
|
5319
5311
|
return i.body.pop(), o;
|
|
5320
5312
|
}
|
|
5321
|
-
function
|
|
5313
|
+
function ja({ raw: e }, t) {
|
|
5322
5314
|
let { capturingGroups: n, subroutines: r } = t, i = e.slice(3, -1), a = /^(?<sign>[-+]?)0*(?<num>[1-9]\d*)$/.exec(i);
|
|
5323
5315
|
if (a) {
|
|
5324
5316
|
let e = +a.groups.num, r = n.length;
|
|
@@ -5328,31 +5320,31 @@ function Ia({ raw: e }, t) {
|
|
|
5328
5320
|
"-": r + 1 - e
|
|
5329
5321
|
}[a.groups.sign], i < 1) throw Error("Invalid subroutine number");
|
|
5330
5322
|
} else i === "0" && (i = 0);
|
|
5331
|
-
let o =
|
|
5323
|
+
let o = Ka(i);
|
|
5332
5324
|
return r.push(o), o;
|
|
5333
5325
|
}
|
|
5334
|
-
function
|
|
5326
|
+
function Ma(e, t) {
|
|
5335
5327
|
if (e !== "repeater") throw Error(`Unexpected absence function kind "${e}"`);
|
|
5336
5328
|
return {
|
|
5337
5329
|
type: "AbsenceFunction",
|
|
5338
5330
|
kind: e,
|
|
5339
|
-
body:
|
|
5331
|
+
body: Ya(t?.body)
|
|
5340
5332
|
};
|
|
5341
5333
|
}
|
|
5342
|
-
function
|
|
5334
|
+
function B(e) {
|
|
5343
5335
|
return {
|
|
5344
5336
|
type: "Alternative",
|
|
5345
|
-
body:
|
|
5337
|
+
body: Xa(e?.body)
|
|
5346
5338
|
};
|
|
5347
5339
|
}
|
|
5348
|
-
function
|
|
5340
|
+
function Na(e, t) {
|
|
5349
5341
|
let n = {
|
|
5350
5342
|
type: "Assertion",
|
|
5351
5343
|
kind: e
|
|
5352
5344
|
};
|
|
5353
5345
|
return (e === "word_boundary" || e === "text_segment_boundary") && (n.negate = !!t?.negate), n;
|
|
5354
5346
|
}
|
|
5355
|
-
function
|
|
5347
|
+
function Pa(e, t) {
|
|
5356
5348
|
let n = !!t?.orphan;
|
|
5357
5349
|
return {
|
|
5358
5350
|
type: "Backreference",
|
|
@@ -5360,22 +5352,22 @@ function za(e, t) {
|
|
|
5360
5352
|
...n && { orphan: n }
|
|
5361
5353
|
};
|
|
5362
5354
|
}
|
|
5363
|
-
function
|
|
5355
|
+
function Fa(e, t) {
|
|
5364
5356
|
let n = {
|
|
5365
5357
|
name: void 0,
|
|
5366
5358
|
isSubroutined: !1,
|
|
5367
5359
|
...t
|
|
5368
5360
|
};
|
|
5369
|
-
if (n.name !== void 0 &&
|
|
5361
|
+
if (n.name !== void 0 && !$a(n.name)) throw Error(`Group name "${n.name}" invalid in Oniguruma`);
|
|
5370
5362
|
return {
|
|
5371
5363
|
type: "CapturingGroup",
|
|
5372
5364
|
number: e,
|
|
5373
5365
|
...n.name && { name: n.name },
|
|
5374
5366
|
...n.isSubroutined && { isSubroutined: n.isSubroutined },
|
|
5375
|
-
body:
|
|
5367
|
+
body: Ya(t?.body)
|
|
5376
5368
|
};
|
|
5377
5369
|
}
|
|
5378
|
-
function
|
|
5370
|
+
function Ia(e, t) {
|
|
5379
5371
|
let n = {
|
|
5380
5372
|
useLastValid: !1,
|
|
5381
5373
|
...t
|
|
@@ -5390,7 +5382,7 @@ function Va(e, t) {
|
|
|
5390
5382
|
value: e
|
|
5391
5383
|
};
|
|
5392
5384
|
}
|
|
5393
|
-
function
|
|
5385
|
+
function La(e) {
|
|
5394
5386
|
let t = {
|
|
5395
5387
|
kind: "union",
|
|
5396
5388
|
negate: !1,
|
|
@@ -5400,10 +5392,10 @@ function Ha(e) {
|
|
|
5400
5392
|
type: "CharacterClass",
|
|
5401
5393
|
kind: t.kind,
|
|
5402
5394
|
negate: t.negate,
|
|
5403
|
-
body:
|
|
5395
|
+
body: Xa(e?.body)
|
|
5404
5396
|
};
|
|
5405
5397
|
}
|
|
5406
|
-
function
|
|
5398
|
+
function Ra(e, t) {
|
|
5407
5399
|
if (t.value < e.value) throw Error("Character class range out of order");
|
|
5408
5400
|
return {
|
|
5409
5401
|
type: "CharacterClassRange",
|
|
@@ -5411,14 +5403,14 @@ function Ua(e, t) {
|
|
|
5411
5403
|
max: t
|
|
5412
5404
|
};
|
|
5413
5405
|
}
|
|
5414
|
-
function
|
|
5406
|
+
function za(e, t) {
|
|
5415
5407
|
let n = !!t?.negate, r = {
|
|
5416
5408
|
type: "CharacterSet",
|
|
5417
5409
|
kind: e
|
|
5418
5410
|
};
|
|
5419
5411
|
return (e === "digit" || e === "hex" || e === "newline" || e === "space" || e === "word") && (r.negate = n), (e === "text_segment" || e === "newline" && !n) && (r.variableLength = !0), r;
|
|
5420
5412
|
}
|
|
5421
|
-
function
|
|
5413
|
+
function Ba(e, t = {}) {
|
|
5422
5414
|
if (e === "keep") return {
|
|
5423
5415
|
type: "Directive",
|
|
5424
5416
|
kind: e
|
|
@@ -5426,27 +5418,27 @@ function Ga(e, t = {}) {
|
|
|
5426
5418
|
if (e === "flags") return {
|
|
5427
5419
|
type: "Directive",
|
|
5428
5420
|
kind: e,
|
|
5429
|
-
flags:
|
|
5421
|
+
flags: I(t.flags)
|
|
5430
5422
|
};
|
|
5431
5423
|
throw Error(`Unexpected directive kind "${e}"`);
|
|
5432
5424
|
}
|
|
5433
|
-
function
|
|
5425
|
+
function Va(e) {
|
|
5434
5426
|
return {
|
|
5435
5427
|
type: "Flags",
|
|
5436
5428
|
...e
|
|
5437
5429
|
};
|
|
5438
5430
|
}
|
|
5439
|
-
function
|
|
5431
|
+
function V(e) {
|
|
5440
5432
|
let t = e?.atomic, n = e?.flags;
|
|
5441
5433
|
if (t && n) throw Error("Atomic group cannot have flags");
|
|
5442
5434
|
return {
|
|
5443
5435
|
type: "Group",
|
|
5444
5436
|
...t && { atomic: t },
|
|
5445
5437
|
...n && { flags: n },
|
|
5446
|
-
body:
|
|
5438
|
+
body: Ya(e?.body)
|
|
5447
5439
|
};
|
|
5448
5440
|
}
|
|
5449
|
-
function
|
|
5441
|
+
function H(e) {
|
|
5450
5442
|
let t = {
|
|
5451
5443
|
behind: !1,
|
|
5452
5444
|
negate: !1,
|
|
@@ -5456,10 +5448,10 @@ function B(e) {
|
|
|
5456
5448
|
type: "LookaroundAssertion",
|
|
5457
5449
|
kind: t.behind ? "lookbehind" : "lookahead",
|
|
5458
5450
|
negate: t.negate,
|
|
5459
|
-
body:
|
|
5451
|
+
body: Ya(e?.body)
|
|
5460
5452
|
};
|
|
5461
5453
|
}
|
|
5462
|
-
function
|
|
5454
|
+
function Ha(e, t, n) {
|
|
5463
5455
|
return {
|
|
5464
5456
|
type: "NamedCallout",
|
|
5465
5457
|
kind: e,
|
|
@@ -5467,9 +5459,9 @@ function qa(e, t, n) {
|
|
|
5467
5459
|
arguments: n
|
|
5468
5460
|
};
|
|
5469
5461
|
}
|
|
5470
|
-
function
|
|
5462
|
+
function Ua(e, t) {
|
|
5471
5463
|
let n = !!t?.negate;
|
|
5472
|
-
if (!
|
|
5464
|
+
if (!Li.has(e)) throw Error(`Invalid POSIX class "${e}"`);
|
|
5473
5465
|
return {
|
|
5474
5466
|
type: "CharacterSet",
|
|
5475
5467
|
kind: "posix",
|
|
@@ -5477,7 +5469,7 @@ function Ja(e, t) {
|
|
|
5477
5469
|
negate: n
|
|
5478
5470
|
};
|
|
5479
5471
|
}
|
|
5480
|
-
function
|
|
5472
|
+
function Wa(e, t, n, r) {
|
|
5481
5473
|
if (t > n) throw Error("Invalid reversed quantifier range");
|
|
5482
5474
|
return {
|
|
5483
5475
|
type: "Quantifier",
|
|
@@ -5487,30 +5479,30 @@ function Ya(e, t, n, r) {
|
|
|
5487
5479
|
body: r
|
|
5488
5480
|
};
|
|
5489
5481
|
}
|
|
5490
|
-
function
|
|
5482
|
+
function Ga(e, t) {
|
|
5491
5483
|
return {
|
|
5492
5484
|
type: "Regex",
|
|
5493
|
-
body:
|
|
5485
|
+
body: Ya(t?.body),
|
|
5494
5486
|
flags: e
|
|
5495
5487
|
};
|
|
5496
5488
|
}
|
|
5497
|
-
function
|
|
5489
|
+
function Ka(e) {
|
|
5498
5490
|
return {
|
|
5499
5491
|
type: "Subroutine",
|
|
5500
5492
|
ref: e
|
|
5501
5493
|
};
|
|
5502
5494
|
}
|
|
5503
|
-
function
|
|
5495
|
+
function qa(e, t) {
|
|
5504
5496
|
let n = {
|
|
5505
5497
|
negate: !1,
|
|
5506
5498
|
normalizeUnknownPropertyNames: !1,
|
|
5507
5499
|
skipPropertyNameValidation: !1,
|
|
5508
5500
|
unicodePropertyMap: null,
|
|
5509
5501
|
...t
|
|
5510
|
-
}, r = n.unicodePropertyMap?.get(
|
|
5502
|
+
}, r = n.unicodePropertyMap?.get(to(e));
|
|
5511
5503
|
if (!r) {
|
|
5512
|
-
if (n.normalizeUnknownPropertyNames) r =
|
|
5513
|
-
else if (n.unicodePropertyMap && !n.skipPropertyNameValidation) throw Error(
|
|
5504
|
+
if (n.normalizeUnknownPropertyNames) r = eo(e);
|
|
5505
|
+
else if (n.unicodePropertyMap && !n.skipPropertyNameValidation) throw Error(F`Invalid Unicode property "\p{${e}}"`);
|
|
5514
5506
|
}
|
|
5515
5507
|
return {
|
|
5516
5508
|
type: "CharacterSet",
|
|
@@ -5519,54 +5511,54 @@ function V(e, t) {
|
|
|
5519
5511
|
negate: n.negate
|
|
5520
5512
|
};
|
|
5521
5513
|
}
|
|
5522
|
-
function
|
|
5514
|
+
function Ja({ flags: e, kind: t, name: n, negate: r, number: i }) {
|
|
5523
5515
|
switch (t) {
|
|
5524
|
-
case "absence_repeater": return
|
|
5525
|
-
case "atomic": return
|
|
5526
|
-
case "capturing": return
|
|
5527
|
-
case "group": return
|
|
5516
|
+
case "absence_repeater": return Ma("repeater");
|
|
5517
|
+
case "atomic": return V({ atomic: !0 });
|
|
5518
|
+
case "capturing": return Fa(i, { name: n });
|
|
5519
|
+
case "group": return V({ flags: e });
|
|
5528
5520
|
case "lookahead":
|
|
5529
|
-
case "lookbehind": return
|
|
5521
|
+
case "lookbehind": return H({
|
|
5530
5522
|
behind: t === "lookbehind",
|
|
5531
5523
|
negate: r
|
|
5532
5524
|
});
|
|
5533
5525
|
default: throw Error(`Unexpected group kind "${t}"`);
|
|
5534
5526
|
}
|
|
5535
5527
|
}
|
|
5536
|
-
function
|
|
5537
|
-
if (e === void 0) e = [
|
|
5528
|
+
function Ya(e) {
|
|
5529
|
+
if (e === void 0) e = [B()];
|
|
5538
5530
|
else if (!Array.isArray(e) || !e.length || !e.every((e) => e.type === "Alternative")) throw Error("Invalid body; expected array of one or more Alternative nodes");
|
|
5539
5531
|
return e;
|
|
5540
5532
|
}
|
|
5541
|
-
function
|
|
5533
|
+
function Xa(e) {
|
|
5542
5534
|
if (e === void 0) e = [];
|
|
5543
5535
|
else if (!Array.isArray(e) || !e.every((e) => !!e.type)) throw Error("Invalid body; expected array of nodes");
|
|
5544
5536
|
return e;
|
|
5545
5537
|
}
|
|
5546
|
-
function
|
|
5538
|
+
function Za(e) {
|
|
5547
5539
|
return e.type === "LookaroundAssertion" && e.kind === "lookahead";
|
|
5548
5540
|
}
|
|
5549
|
-
function
|
|
5541
|
+
function Qa(e) {
|
|
5550
5542
|
return e.type === "LookaroundAssertion" && e.kind === "lookbehind";
|
|
5551
5543
|
}
|
|
5552
|
-
function
|
|
5544
|
+
function $a(e) {
|
|
5553
5545
|
return /^[\p{Alpha}\p{Pc}][^)]*$/u.test(e);
|
|
5554
5546
|
}
|
|
5555
|
-
function
|
|
5547
|
+
function eo(e) {
|
|
5556
5548
|
return e.trim().replace(/[- _]+/g, "_").replace(/[A-Z][a-z]+(?=[A-Z])/g, "$&_").replace(/[A-Za-z]+/g, (e) => e[0].toUpperCase() + e.slice(1).toLowerCase());
|
|
5557
5549
|
}
|
|
5558
|
-
function
|
|
5550
|
+
function to(e) {
|
|
5559
5551
|
return e.replace(/[- _]+/g, "").toLowerCase();
|
|
5560
5552
|
}
|
|
5561
|
-
function
|
|
5562
|
-
return
|
|
5553
|
+
function no(e, t) {
|
|
5554
|
+
return I(e, `${t?.type === "Character" && t.value === 93 ? "Empty" : "Unclosed"} character class`);
|
|
5563
5555
|
}
|
|
5564
|
-
function
|
|
5565
|
-
return
|
|
5556
|
+
function ro(e) {
|
|
5557
|
+
return I(e, "Unclosed group");
|
|
5566
5558
|
}
|
|
5567
5559
|
//#endregion
|
|
5568
5560
|
//#region ../../node_modules/.pnpm/oniguruma-parser@0.12.1/node_modules/oniguruma-parser/dist/traverser/traverse.js
|
|
5569
|
-
function
|
|
5561
|
+
function io(e, t, n = null) {
|
|
5570
5562
|
function r(e, t) {
|
|
5571
5563
|
for (let n = 0; n < e.length; n++) {
|
|
5572
5564
|
let r = i(e[n], t, n, e);
|
|
@@ -5581,24 +5573,24 @@ function co(e, t, n = null) {
|
|
|
5581
5573
|
container: c,
|
|
5582
5574
|
root: e,
|
|
5583
5575
|
remove() {
|
|
5584
|
-
|
|
5576
|
+
ao(c).splice(Math.max(0, oo(s) + l), 1), l--, u = !0;
|
|
5585
5577
|
},
|
|
5586
5578
|
removeAllNextSiblings() {
|
|
5587
|
-
return
|
|
5579
|
+
return ao(c).splice(oo(s) + 1);
|
|
5588
5580
|
},
|
|
5589
5581
|
removeAllPrevSiblings() {
|
|
5590
|
-
let e =
|
|
5591
|
-
return l -= e,
|
|
5582
|
+
let e = oo(s) + l;
|
|
5583
|
+
return l -= e, ao(c).splice(0, Math.max(0, e));
|
|
5592
5584
|
},
|
|
5593
5585
|
replaceWith(e, t = {}) {
|
|
5594
5586
|
let n = !!t.traverse;
|
|
5595
|
-
c ? c[Math.max(0,
|
|
5587
|
+
c ? c[Math.max(0, oo(s) + l)] = e : I(o, "Can't replace root node")[s] = e, n && i(e, o, s, c), u = !0;
|
|
5596
5588
|
},
|
|
5597
5589
|
replaceWithMultiple(e, t = {}) {
|
|
5598
5590
|
let n = !!t.traverse;
|
|
5599
|
-
if (
|
|
5591
|
+
if (ao(c).splice(Math.max(0, oo(s) + l), 1, ...e), l += e.length - 1, n) {
|
|
5600
5592
|
let t = 0;
|
|
5601
|
-
for (let n = 0; n < e.length; n++) t += i(e[n], o,
|
|
5593
|
+
for (let n = 0; n < e.length; n++) t += i(e[n], o, oo(s) + n + t, c);
|
|
5602
5594
|
}
|
|
5603
5595
|
u = !0;
|
|
5604
5596
|
},
|
|
@@ -5642,21 +5634,21 @@ function co(e, t, n = null) {
|
|
|
5642
5634
|
}
|
|
5643
5635
|
return i(e), e;
|
|
5644
5636
|
}
|
|
5645
|
-
function
|
|
5637
|
+
function ao(e) {
|
|
5646
5638
|
if (!Array.isArray(e)) throw Error("Container expected");
|
|
5647
5639
|
return e;
|
|
5648
5640
|
}
|
|
5649
|
-
function
|
|
5641
|
+
function oo(e) {
|
|
5650
5642
|
if (typeof e != "number") throw Error("Numeric key expected");
|
|
5651
5643
|
return e;
|
|
5652
5644
|
}
|
|
5653
5645
|
//#endregion
|
|
5654
5646
|
//#region ../../node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/utils-internals.js
|
|
5655
|
-
var
|
|
5656
|
-
function
|
|
5647
|
+
var so = String.raw`\(\?(?:[:=!>A-Za-z\-]|<[=!]|\(DEFINE\))`;
|
|
5648
|
+
function co(e, t) {
|
|
5657
5649
|
for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
|
|
5658
5650
|
}
|
|
5659
|
-
function
|
|
5651
|
+
function lo(e, t, n, r) {
|
|
5660
5652
|
return e.slice(0, t) + r + e.slice(t + n.length);
|
|
5661
5653
|
}
|
|
5662
5654
|
//#endregion
|
|
@@ -5665,7 +5657,7 @@ var U = Object.freeze({
|
|
|
5665
5657
|
DEFAULT: "DEFAULT",
|
|
5666
5658
|
CHAR_CLASS: "CHAR_CLASS"
|
|
5667
5659
|
});
|
|
5668
|
-
function
|
|
5660
|
+
function uo(e, t, n, r) {
|
|
5669
5661
|
let i = new RegExp(String.raw`${t}|(?<$skip>\[\^?|\\?.)`, "gsu"), a = [!1], o = 0, s = "";
|
|
5670
5662
|
for (let t of e.matchAll(i)) {
|
|
5671
5663
|
let { 0: e, groups: { $skip: i } } = t;
|
|
@@ -5680,10 +5672,10 @@ function mo(e, t, n, r) {
|
|
|
5680
5672
|
}
|
|
5681
5673
|
return s;
|
|
5682
5674
|
}
|
|
5683
|
-
function
|
|
5684
|
-
|
|
5675
|
+
function fo(e, t, n, r) {
|
|
5676
|
+
uo(e, t, n, r);
|
|
5685
5677
|
}
|
|
5686
|
-
function
|
|
5678
|
+
function po(e, t, n = 0, r) {
|
|
5687
5679
|
if (!new RegExp(t, "su").test(e)) return null;
|
|
5688
5680
|
let i = RegExp(`${t}|(?<$skip>\\\\?.)`, "gsu");
|
|
5689
5681
|
i.lastIndex = n;
|
|
@@ -5695,10 +5687,10 @@ function go(e, t, n = 0, r) {
|
|
|
5695
5687
|
}
|
|
5696
5688
|
return null;
|
|
5697
5689
|
}
|
|
5698
|
-
function
|
|
5699
|
-
return !!
|
|
5690
|
+
function mo(e, t, n) {
|
|
5691
|
+
return !!po(e, t, 0, n);
|
|
5700
5692
|
}
|
|
5701
|
-
function
|
|
5693
|
+
function ho(e, t) {
|
|
5702
5694
|
let n = /\\?./gsu;
|
|
5703
5695
|
n.lastIndex = t;
|
|
5704
5696
|
let r = e.length, i = 0, a = 1, o;
|
|
@@ -5716,8 +5708,8 @@ function vo(e, t) {
|
|
|
5716
5708
|
}
|
|
5717
5709
|
//#endregion
|
|
5718
5710
|
//#region ../../node_modules/.pnpm/regex@6.1.0/node_modules/regex/src/atomic.js
|
|
5719
|
-
var
|
|
5720
|
-
function
|
|
5711
|
+
var go = new RegExp(String.raw`(?<noncapturingStart>${so})|(?<capturingStart>\((?:\?<[^>]+>)?)|\\?.`, "gsu");
|
|
5712
|
+
function _o(e, t) {
|
|
5721
5713
|
let n = t?.hiddenCaptures ?? [], r = t?.captureTransfers ?? /* @__PURE__ */ new Map();
|
|
5722
5714
|
if (!/\(\?>/.test(e)) return {
|
|
5723
5715
|
pattern: e,
|
|
@@ -5728,7 +5720,7 @@ function bo(e, t) {
|
|
|
5728
5720
|
do {
|
|
5729
5721
|
l = !1;
|
|
5730
5722
|
let t = 0, u = 0, d = !1, f;
|
|
5731
|
-
for (
|
|
5723
|
+
for (go.lastIndex = Number.isNaN(c) ? 0 : c + 7; f = go.exec(e);) {
|
|
5732
5724
|
let { 0: p, index: m, groups: { capturingStart: h, noncapturingStart: g } } = f;
|
|
5733
5725
|
if (p === "[") t++;
|
|
5734
5726
|
else if (t) p === "]" && t--;
|
|
@@ -5739,7 +5731,7 @@ function bo(e, t) {
|
|
|
5739
5731
|
if (!u) {
|
|
5740
5732
|
s++;
|
|
5741
5733
|
let t = o + s;
|
|
5742
|
-
if (e = `${e.slice(0, c)}(?:(?=(${e.slice(c + 3, m)}))<$$${t}>)${e.slice(m + 1)}`, l = !0, a.push(t),
|
|
5734
|
+
if (e = `${e.slice(0, c)}(?:(?=(${e.slice(c + 3, m)}))<$$${t}>)${e.slice(m + 1)}`, l = !0, a.push(t), co(n, t), r.size) {
|
|
5743
5735
|
let e = /* @__PURE__ */ new Map();
|
|
5744
5736
|
r.forEach((n, r) => {
|
|
5745
5737
|
e.set(r >= t ? r + 1 : r, n.map((e) => e >= t ? e + 1 : e));
|
|
@@ -5751,7 +5743,7 @@ function bo(e, t) {
|
|
|
5751
5743
|
}
|
|
5752
5744
|
}
|
|
5753
5745
|
} while (l);
|
|
5754
|
-
return n.push(...a), e =
|
|
5746
|
+
return n.push(...a), e = uo(e, String.raw`\\(?<backrefNum>[1-9]\d*)|<\$\$(?<wrappedBackrefNum>\d+)>`, ({ 0: e, groups: { backrefNum: t, wrappedBackrefNum: n } }) => {
|
|
5755
5747
|
if (t) {
|
|
5756
5748
|
let n = +t;
|
|
5757
5749
|
if (n > i.length - 1) throw Error(`Backref "${e}" greater than number of captures`);
|
|
@@ -5764,7 +5756,7 @@ function bo(e, t) {
|
|
|
5764
5756
|
hiddenCaptures: n
|
|
5765
5757
|
};
|
|
5766
5758
|
}
|
|
5767
|
-
var
|
|
5759
|
+
var vo = String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`, yo = new RegExp(String.raw`
|
|
5768
5760
|
\\(?: \d+
|
|
5769
5761
|
| c[A-Za-z]
|
|
5770
5762
|
| [gk]<[^>]+>
|
|
@@ -5777,20 +5769,20 @@ var xo = String.raw`(?:[?*+]|\{\d+(?:,\d*)?\})`, So = new RegExp(String.raw`
|
|
|
5777
5769
|
| [A-Za-z\-]+:
|
|
5778
5770
|
| \(DEFINE\)
|
|
5779
5771
|
))?
|
|
5780
|
-
| (?<qBase>${
|
|
5772
|
+
| (?<qBase>${vo})(?<qMod>[?+]?)(?<invalidQ>[?*+\{]?)
|
|
5781
5773
|
| \\?.
|
|
5782
5774
|
`.replace(/\s+/g, ""), "gsu");
|
|
5783
|
-
function
|
|
5784
|
-
if (!RegExp(`${
|
|
5775
|
+
function bo(e) {
|
|
5776
|
+
if (!RegExp(`${vo}\\+`).test(e)) return { pattern: e };
|
|
5785
5777
|
let t = [], n = null, r = null, i = "", a = 0, o;
|
|
5786
|
-
for (
|
|
5778
|
+
for (yo.lastIndex = 0; o = yo.exec(e);) {
|
|
5787
5779
|
let { 0: s, index: c, groups: { qBase: l, qMod: u, invalidQ: d } } = o;
|
|
5788
5780
|
if (s === "[") a || (r = c), a++;
|
|
5789
5781
|
else if (s === "]") a ? a-- : r = null;
|
|
5790
5782
|
else if (!a) if (u === "+" && i && !i.startsWith("(")) {
|
|
5791
5783
|
if (d) throw Error(`Invalid quantifier "${s}"`);
|
|
5792
5784
|
let t = -1;
|
|
5793
|
-
if (/^\{\d+\}$/.test(l)) e =
|
|
5785
|
+
if (/^\{\d+\}$/.test(l)) e = lo(e, c + l.length, u, "");
|
|
5794
5786
|
else {
|
|
5795
5787
|
if (i === ")" || i === "]") {
|
|
5796
5788
|
let t = i === ")" ? n : r;
|
|
@@ -5799,7 +5791,7 @@ function Co(e) {
|
|
|
5799
5791
|
} else e = `${e.slice(0, c - i.length)}(?>${i}${l})${e.slice(c + s.length)}`;
|
|
5800
5792
|
t += 4;
|
|
5801
5793
|
}
|
|
5802
|
-
|
|
5794
|
+
yo.lastIndex += t;
|
|
5803
5795
|
} else s[0] === "(" ? t.push(c) : s === ")" && (n = t.length ? t.pop() : null);
|
|
5804
5796
|
i = s;
|
|
5805
5797
|
}
|
|
@@ -5807,52 +5799,55 @@ function Co(e) {
|
|
|
5807
5799
|
}
|
|
5808
5800
|
//#endregion
|
|
5809
5801
|
//#region ../../node_modules/.pnpm/regex-recursion@6.0.2/node_modules/regex-recursion/src/index.js
|
|
5810
|
-
var W = String.raw,
|
|
5811
|
-
function
|
|
5802
|
+
var W = String.raw, xo = W`\(\?R=(?<rDepth>[^\)]+)\)|${W`\\g<(?<gRNameOrNum>[^>&]+)&R=(?<gRDepth>[^>]+)>`}`, So = W`\(\?<(?![=!])(?<captureName>[^>]+)>`, Co = W`${So}|(?<unnamed>\()(?!\?)`, G = new RegExp(W`${So}|${xo}|\(\?|\\?.`, "gsu"), wo = "Cannot use multiple overlapping recursions";
|
|
5803
|
+
function To(e, t) {
|
|
5812
5804
|
let { hiddenCaptures: n, mode: r } = {
|
|
5813
5805
|
hiddenCaptures: [],
|
|
5814
5806
|
mode: "plugin",
|
|
5815
5807
|
...t
|
|
5816
5808
|
}, i = t?.captureTransfers ?? /* @__PURE__ */ new Map();
|
|
5817
|
-
if (!new RegExp(
|
|
5809
|
+
if (!new RegExp(xo, "su").test(e)) return {
|
|
5818
5810
|
pattern: e,
|
|
5819
5811
|
captureTransfers: i,
|
|
5820
5812
|
hiddenCaptures: n
|
|
5821
5813
|
};
|
|
5822
|
-
if (r === "plugin" &&
|
|
5823
|
-
let a = [], o =
|
|
5814
|
+
if (r === "plugin" && mo(e, W`\(\?\(DEFINE\)`, U.DEFAULT)) throw Error("DEFINE groups cannot be used with recursion");
|
|
5815
|
+
let a = [], o = mo(e, W`\\[1-9]`, U.DEFAULT), s = /* @__PURE__ */ new Map(), c = [], l = !1, u = 0, d = 0, f;
|
|
5824
5816
|
for (G.lastIndex = 0; f = G.exec(e);) {
|
|
5825
5817
|
let { 0: t, groups: { captureName: p, rDepth: m, gRNameOrNum: h, gRDepth: g } } = f;
|
|
5826
5818
|
if (t === "[") u++;
|
|
5827
5819
|
else if (u) t === "]" && u--;
|
|
5828
|
-
else
|
|
5829
|
-
if (
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
} else if (h) {
|
|
5837
|
-
ko(g);
|
|
5838
|
-
let u = !1;
|
|
5839
|
-
for (let e of c) if (e.name === h || e.num === +h) {
|
|
5840
|
-
if (u = !0, e.hasRecursedWithin) throw Error(Do);
|
|
5820
|
+
else {
|
|
5821
|
+
if (m) {
|
|
5822
|
+
if (Eo(m), l) throw Error(wo);
|
|
5823
|
+
if (o) throw Error(`${r === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with global recursion`);
|
|
5824
|
+
let t = e.slice(0, f.index), s = e.slice(G.lastIndex);
|
|
5825
|
+
if (mo(s, xo, U.DEFAULT)) throw Error(wo);
|
|
5826
|
+
let c = m - 1;
|
|
5827
|
+
e = Do(t, s, c, !1, n, a, d), i = Ao(i, t, c, a.length, 0, d);
|
|
5841
5828
|
break;
|
|
5842
5829
|
}
|
|
5843
|
-
if (
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5830
|
+
if (h) {
|
|
5831
|
+
Eo(g);
|
|
5832
|
+
let u = !1;
|
|
5833
|
+
for (let e of c) if (e.name === h || e.num === +h) {
|
|
5834
|
+
if (u = !0, e.hasRecursedWithin) throw Error(wo);
|
|
5835
|
+
break;
|
|
5836
|
+
}
|
|
5837
|
+
if (!u) throw Error(W`Recursive \g cannot be used outside the referenced group "${r === "external" ? h : W`\g<${h}&R=${g}>`}"`);
|
|
5838
|
+
let p = s.get(h), m = ho(e, p);
|
|
5839
|
+
if (o && mo(m, W`${So}|\((?!\?)`, U.DEFAULT)) throw Error(`${r === "external" ? "Backrefs" : "Numbered backrefs"} cannot be used with recursion of capturing groups`);
|
|
5840
|
+
let _ = e.slice(p, f.index), ee = m.slice(_.length + t.length), te = a.length, ne = g - 1, re = Do(_, ee, ne, !0, n, a, d);
|
|
5841
|
+
i = Ao(i, _, ne, a.length - te, te, d), e = `${e.slice(0, p)}${re}${e.slice(p + m.length)}`, G.lastIndex += re.length - t.length - _.length - ee.length, c.forEach((e) => e.hasRecursedWithin = !0), l = !0;
|
|
5842
|
+
} else if (p) d++, s.set(String(d), G.lastIndex), s.set(p, G.lastIndex), c.push({
|
|
5843
|
+
num: d,
|
|
5844
|
+
name: p
|
|
5845
|
+
});
|
|
5846
|
+
else if (t[0] === "(") {
|
|
5847
|
+
let e = t === "(";
|
|
5848
|
+
e && (d++, s.set(String(d), G.lastIndex)), c.push(e ? { num: d } : {});
|
|
5849
|
+
} else t === ")" && c.pop();
|
|
5850
|
+
}
|
|
5856
5851
|
}
|
|
5857
5852
|
return n.push(...a), {
|
|
5858
5853
|
pattern: e,
|
|
@@ -5860,13 +5855,13 @@ function Oo(e, t) {
|
|
|
5860
5855
|
hiddenCaptures: n
|
|
5861
5856
|
};
|
|
5862
5857
|
}
|
|
5863
|
-
function
|
|
5858
|
+
function Eo(e) {
|
|
5864
5859
|
let t = `Max depth must be integer between 2 and 100; used ${e}`;
|
|
5865
5860
|
if (!/^[1-9]\d*$/.test(e) || (e = +e, e < 2 || e > 100)) throw Error(t);
|
|
5866
5861
|
}
|
|
5867
|
-
function
|
|
5862
|
+
function Do(e, t, n, r, i, a, o) {
|
|
5868
5863
|
let s = /* @__PURE__ */ new Set();
|
|
5869
|
-
r &&
|
|
5864
|
+
r && fo(e + t, So, ({ groups: { captureName: e } }) => {
|
|
5870
5865
|
s.add(e);
|
|
5871
5866
|
}, U.DEFAULT);
|
|
5872
5867
|
let c = [
|
|
@@ -5876,31 +5871,31 @@ function Ao(e, t, n, r, i, a, o) {
|
|
|
5876
5871
|
a,
|
|
5877
5872
|
o
|
|
5878
5873
|
];
|
|
5879
|
-
return `${e}${
|
|
5874
|
+
return `${e}${Oo(`(?:${e}`, "forward", ...c)}(?:)${Oo(`${t})`, "backward", ...c)}${t}`;
|
|
5880
5875
|
}
|
|
5881
|
-
function
|
|
5876
|
+
function Oo(e, t, n, r, i, a, o) {
|
|
5882
5877
|
let s = (e) => t === "forward" ? e + 2 : n - e + 2 - 1, c = "";
|
|
5883
5878
|
for (let t = 0; t < n; t++) {
|
|
5884
5879
|
let n = s(t);
|
|
5885
|
-
c +=
|
|
5880
|
+
c += uo(e, W`${Co}|\\k<(?<backref>[^>]+)>`, ({ 0: e, groups: { captureName: t, unnamed: s, backref: c } }) => {
|
|
5886
5881
|
if (c && r && !r.has(c)) return e;
|
|
5887
5882
|
let l = `_$${n}`;
|
|
5888
5883
|
if (s || t) {
|
|
5889
5884
|
let n = o + a.length + 1;
|
|
5890
|
-
return a.push(n),
|
|
5885
|
+
return a.push(n), ko(i, n), s ? e : `(?<${t}${l}>`;
|
|
5891
5886
|
}
|
|
5892
5887
|
return W`\k<${c}${l}>`;
|
|
5893
5888
|
}, U.DEFAULT);
|
|
5894
5889
|
}
|
|
5895
5890
|
return c;
|
|
5896
5891
|
}
|
|
5897
|
-
function
|
|
5892
|
+
function ko(e, t) {
|
|
5898
5893
|
for (let n = 0; n < e.length; n++) e[n] >= t && e[n]++;
|
|
5899
5894
|
}
|
|
5900
|
-
function
|
|
5895
|
+
function Ao(e, t, n, r, i, a) {
|
|
5901
5896
|
if (e.size && r) {
|
|
5902
5897
|
let o = 0;
|
|
5903
|
-
|
|
5898
|
+
fo(t, Co, () => o++, U.DEFAULT);
|
|
5904
5899
|
let s = a - o + i, c = /* @__PURE__ */ new Map();
|
|
5905
5900
|
return e.forEach((e, t) => {
|
|
5906
5901
|
let i = (r - o * n) / n, a = o * n, l = t > s + o ? t + r : t, u = [];
|
|
@@ -5915,58 +5910,58 @@ function No(e, t, n, r, i, a) {
|
|
|
5915
5910
|
}
|
|
5916
5911
|
//#endregion
|
|
5917
5912
|
//#region ../../node_modules/.pnpm/oniguruma-to-es@4.3.5/node_modules/oniguruma-to-es/dist/esm/index.js
|
|
5918
|
-
var K = String.fromCodePoint, q = String.raw, J = {},
|
|
5913
|
+
var K = String.fromCodePoint, q = String.raw, J = {}, jo = globalThis.RegExp;
|
|
5919
5914
|
J.flagGroups = (() => {
|
|
5920
5915
|
try {
|
|
5921
|
-
new
|
|
5916
|
+
new jo("(?i:)");
|
|
5922
5917
|
} catch {
|
|
5923
5918
|
return !1;
|
|
5924
5919
|
}
|
|
5925
5920
|
return !0;
|
|
5926
5921
|
})(), J.unicodeSets = (() => {
|
|
5927
5922
|
try {
|
|
5928
|
-
new
|
|
5923
|
+
new jo("[[]]", "v");
|
|
5929
5924
|
} catch {
|
|
5930
5925
|
return !1;
|
|
5931
5926
|
}
|
|
5932
5927
|
return !0;
|
|
5933
5928
|
})(), J.bugFlagVLiteralHyphenIsRange = J.unicodeSets ? (() => {
|
|
5934
5929
|
try {
|
|
5935
|
-
new
|
|
5930
|
+
new jo(q`[\d\-a]`, "v");
|
|
5936
5931
|
} catch {
|
|
5937
5932
|
return !0;
|
|
5938
5933
|
}
|
|
5939
5934
|
return !1;
|
|
5940
|
-
})() : !1, J.bugNestedClassIgnoresNegation = J.unicodeSets && new
|
|
5941
|
-
function
|
|
5935
|
+
})() : !1, J.bugNestedClassIgnoresNegation = J.unicodeSets && new jo("[[^a]]", "v").test("a");
|
|
5936
|
+
function Mo(e, { enable: t, disable: n }) {
|
|
5942
5937
|
return {
|
|
5943
5938
|
dotAll: !n?.dotAll && !!(t?.dotAll || e.dotAll),
|
|
5944
5939
|
ignoreCase: !n?.ignoreCase && !!(t?.ignoreCase || e.ignoreCase)
|
|
5945
5940
|
};
|
|
5946
5941
|
}
|
|
5947
|
-
function
|
|
5942
|
+
function No(e, t, n) {
|
|
5948
5943
|
return e.has(t) || e.set(t, n), e.get(t);
|
|
5949
5944
|
}
|
|
5950
|
-
function
|
|
5951
|
-
return
|
|
5945
|
+
function Po(e, t) {
|
|
5946
|
+
return Io[e] >= Io[t];
|
|
5952
5947
|
}
|
|
5953
|
-
function
|
|
5948
|
+
function Fo(e, t) {
|
|
5954
5949
|
if (e == null) throw Error(t ?? "Value expected");
|
|
5955
5950
|
return e;
|
|
5956
5951
|
}
|
|
5957
|
-
var
|
|
5952
|
+
var Io = {
|
|
5958
5953
|
ES2025: 2025,
|
|
5959
5954
|
ES2024: 2024,
|
|
5960
5955
|
ES2018: 2018
|
|
5961
|
-
},
|
|
5956
|
+
}, Lo = {
|
|
5962
5957
|
auto: "auto",
|
|
5963
5958
|
ES2025: "ES2025",
|
|
5964
5959
|
ES2024: "ES2024",
|
|
5965
5960
|
ES2018: "ES2018"
|
|
5966
5961
|
};
|
|
5967
|
-
function
|
|
5962
|
+
function Ro(e = {}) {
|
|
5968
5963
|
if ({}.toString.call(e) !== "[object Object]") throw Error("Unexpected options");
|
|
5969
|
-
if (e.target !== void 0 && !
|
|
5964
|
+
if (e.target !== void 0 && !Lo[e.target]) throw Error(`Unexpected target "${e.target}"`);
|
|
5970
5965
|
let t = {
|
|
5971
5966
|
accuracy: "default",
|
|
5972
5967
|
avoidSubclass: !1,
|
|
@@ -5988,29 +5983,29 @@ function Vo(e = {}) {
|
|
|
5988
5983
|
};
|
|
5989
5984
|
return t.target === "auto" && (t.target = J.flagGroups ? "ES2025" : J.unicodeSets ? "ES2024" : "ES2018"), t;
|
|
5990
5985
|
}
|
|
5991
|
-
var
|
|
5992
|
-
function
|
|
5993
|
-
if (
|
|
5994
|
-
let t = /* @__PURE__ */ new Set(), n = e.toLowerCase(), r = n.toUpperCase(), i =
|
|
5986
|
+
var zo = "[ -\r ]", Bo = /* @__PURE__ */ new Set([K(304), K(305)]), Y = q`[\p{L}\p{M}\p{N}\p{Pc}]`;
|
|
5987
|
+
function Vo(e) {
|
|
5988
|
+
if (Bo.has(e)) return [e];
|
|
5989
|
+
let t = /* @__PURE__ */ new Set(), n = e.toLowerCase(), r = n.toUpperCase(), i = Go.get(n), a = Uo.get(n), o = Wo.get(n);
|
|
5995
5990
|
return [...r].length === 1 && t.add(r), o && t.add(o), i && t.add(i), t.add(n), a && t.add(a), [...t];
|
|
5996
5991
|
}
|
|
5997
|
-
var
|
|
5992
|
+
var Ho = /* @__PURE__ */ new Map("C Other\nCc Control cntrl\nCf Format\nCn Unassigned\nCo Private_Use\nCs Surrogate\nL Letter\nLC Cased_Letter\nLl Lowercase_Letter\nLm Modifier_Letter\nLo Other_Letter\nLt Titlecase_Letter\nLu Uppercase_Letter\nM Mark Combining_Mark\nMc Spacing_Mark\nMe Enclosing_Mark\nMn Nonspacing_Mark\nN Number\nNd Decimal_Number digit\nNl Letter_Number\nNo Other_Number\nP Punctuation punct\nPc Connector_Punctuation\nPd Dash_Punctuation\nPe Close_Punctuation\nPf Final_Punctuation\nPi Initial_Punctuation\nPo Other_Punctuation\nPs Open_Punctuation\nS Symbol\nSc Currency_Symbol\nSk Modifier_Symbol\nSm Math_Symbol\nSo Other_Symbol\nZ Separator\nZl Line_Separator\nZp Paragraph_Separator\nZs Space_Separator\nASCII\nASCII_Hex_Digit AHex\nAlphabetic Alpha\nAny\nAssigned\nBidi_Control Bidi_C\nBidi_Mirrored Bidi_M\nCase_Ignorable CI\nCased\nChanges_When_Casefolded CWCF\nChanges_When_Casemapped CWCM\nChanges_When_Lowercased CWL\nChanges_When_NFKC_Casefolded CWKCF\nChanges_When_Titlecased CWT\nChanges_When_Uppercased CWU\nDash\nDefault_Ignorable_Code_Point DI\nDeprecated Dep\nDiacritic Dia\nEmoji\nEmoji_Component EComp\nEmoji_Modifier EMod\nEmoji_Modifier_Base EBase\nEmoji_Presentation EPres\nExtended_Pictographic ExtPict\nExtender Ext\nGrapheme_Base Gr_Base\nGrapheme_Extend Gr_Ext\nHex_Digit Hex\nIDS_Binary_Operator IDSB\nIDS_Trinary_Operator IDST\nID_Continue IDC\nID_Start IDS\nIdeographic Ideo\nJoin_Control Join_C\nLogical_Order_Exception LOE\nLowercase Lower\nMath\nNoncharacter_Code_Point NChar\nPattern_Syntax Pat_Syn\nPattern_White_Space Pat_WS\nQuotation_Mark QMark\nRadical\nRegional_Indicator RI\nSentence_Terminal STerm\nSoft_Dotted SD\nTerminal_Punctuation Term\nUnified_Ideograph UIdeo\nUppercase Upper\nVariation_Selector VS\nWhite_Space space\nXID_Continue XIDC\nXID_Start XIDS".split(/\s/).map((e) => [to(e), e])), Uo = /* @__PURE__ */ new Map([["s", K(383)], [K(383), "s"]]), Wo = /* @__PURE__ */ new Map([
|
|
5998
5993
|
[K(223), K(7838)],
|
|
5999
5994
|
[K(107), K(8490)],
|
|
6000
5995
|
[K(229), K(8491)],
|
|
6001
5996
|
[K(969), K(8486)]
|
|
6002
|
-
]),
|
|
5997
|
+
]), Go = new Map([
|
|
6003
5998
|
X(453),
|
|
6004
5999
|
X(456),
|
|
6005
6000
|
X(459),
|
|
6006
6001
|
X(498),
|
|
6007
|
-
...
|
|
6008
|
-
...
|
|
6009
|
-
...
|
|
6002
|
+
...Jo(8072, 8079),
|
|
6003
|
+
...Jo(8088, 8095),
|
|
6004
|
+
...Jo(8104, 8111),
|
|
6010
6005
|
X(8124),
|
|
6011
6006
|
X(8140),
|
|
6012
6007
|
X(8188)
|
|
6013
|
-
]),
|
|
6008
|
+
]), Ko = /* @__PURE__ */ new Map([
|
|
6014
6009
|
["alnum", q`[\p{Alpha}\p{Nd}]`],
|
|
6015
6010
|
["alpha", q`\p{Alpha}`],
|
|
6016
6011
|
["ascii", q`\p{ASCII}`],
|
|
@@ -6026,7 +6021,7 @@ var Go = /* @__PURE__ */ new Map("C Other\nCc Control cntrl\nCf Format\nCn Unass
|
|
|
6026
6021
|
["word", q`[\p{Alpha}\p{M}\p{Nd}\p{Pc}]`],
|
|
6027
6022
|
["xdigit", q`\p{AHex}`]
|
|
6028
6023
|
]);
|
|
6029
|
-
function
|
|
6024
|
+
function qo(e, t) {
|
|
6030
6025
|
let n = [];
|
|
6031
6026
|
for (let r = e; r <= t; r++) n.push(r);
|
|
6032
6027
|
return n;
|
|
@@ -6035,10 +6030,10 @@ function X(e) {
|
|
|
6035
6030
|
let t = K(e);
|
|
6036
6031
|
return [t.toLowerCase(), t];
|
|
6037
6032
|
}
|
|
6038
|
-
function
|
|
6039
|
-
return
|
|
6033
|
+
function Jo(e, t) {
|
|
6034
|
+
return qo(e, t).map((e) => X(e));
|
|
6040
6035
|
}
|
|
6041
|
-
var
|
|
6036
|
+
var Yo = /* @__PURE__ */ new Set([
|
|
6042
6037
|
"Lower",
|
|
6043
6038
|
"Lowercase",
|
|
6044
6039
|
"Upper",
|
|
@@ -6050,7 +6045,7 @@ var Qo = /* @__PURE__ */ new Set([
|
|
|
6050
6045
|
"Lu",
|
|
6051
6046
|
"Uppercase_Letter"
|
|
6052
6047
|
]);
|
|
6053
|
-
function
|
|
6048
|
+
function Xo(e, t) {
|
|
6054
6049
|
let n = {
|
|
6055
6050
|
accuracy: "default",
|
|
6056
6051
|
asciiWordBoundaries: !1,
|
|
@@ -6058,14 +6053,14 @@ function $o(e, t) {
|
|
|
6058
6053
|
bestEffortTarget: "ES2025",
|
|
6059
6054
|
...t
|
|
6060
6055
|
};
|
|
6061
|
-
|
|
6056
|
+
es(e);
|
|
6062
6057
|
let r = {
|
|
6063
6058
|
accuracy: n.accuracy,
|
|
6064
6059
|
asciiWordBoundaries: n.asciiWordBoundaries,
|
|
6065
6060
|
avoidSubclass: n.avoidSubclass,
|
|
6066
6061
|
flagDirectivesByAlt: /* @__PURE__ */ new Map(),
|
|
6067
6062
|
jsGroupNameMap: /* @__PURE__ */ new Map(),
|
|
6068
|
-
minTargetEs2024:
|
|
6063
|
+
minTargetEs2024: Po(n.bestEffortTarget, "ES2024"),
|
|
6069
6064
|
passedLookbehind: !1,
|
|
6070
6065
|
strategy: null,
|
|
6071
6066
|
subroutineRefMap: /* @__PURE__ */ new Map(),
|
|
@@ -6074,7 +6069,7 @@ function $o(e, t) {
|
|
|
6074
6069
|
spaceIsAscii: e.flags.spaceIsAscii,
|
|
6075
6070
|
wordIsAscii: e.flags.wordIsAscii
|
|
6076
6071
|
};
|
|
6077
|
-
|
|
6072
|
+
io(e, Zo, r);
|
|
6078
6073
|
let i = {
|
|
6079
6074
|
dotAll: e.flags.dotAll,
|
|
6080
6075
|
ignoreCase: e.flags.ignoreCase
|
|
@@ -6089,24 +6084,24 @@ function $o(e, t) {
|
|
|
6089
6084
|
reffedNodesByReferencer: /* @__PURE__ */ new Map(),
|
|
6090
6085
|
subroutineRefMap: r.subroutineRefMap
|
|
6091
6086
|
};
|
|
6092
|
-
return
|
|
6087
|
+
return io(e, Qo, a), io(e, $o, {
|
|
6093
6088
|
groupsByName: a.groupsByName,
|
|
6094
6089
|
highestOrphanBackref: 0,
|
|
6095
6090
|
numCapturesToLeft: 0,
|
|
6096
6091
|
reffedNodesByReferencer: a.reffedNodesByReferencer
|
|
6097
6092
|
}), e._originMap = a.groupOriginByCopy, e._strategy = r.strategy, e;
|
|
6098
6093
|
}
|
|
6099
|
-
var
|
|
6094
|
+
var Zo = {
|
|
6100
6095
|
AbsenceFunction({ node: e, parent: t, replaceWith: n }) {
|
|
6101
6096
|
let { body: r, kind: i } = e;
|
|
6102
6097
|
if (i === "repeater") {
|
|
6103
|
-
let e =
|
|
6104
|
-
e.body[0].body.push(
|
|
6098
|
+
let e = V();
|
|
6099
|
+
e.body[0].body.push(H({
|
|
6105
6100
|
negate: !0,
|
|
6106
6101
|
body: r
|
|
6107
|
-
}),
|
|
6108
|
-
let i =
|
|
6109
|
-
i.body[0].body.push(
|
|
6102
|
+
}), qa("Any"));
|
|
6103
|
+
let i = V();
|
|
6104
|
+
i.body[0].body.push(Wa("greedy", 0, Infinity, e)), n($(i, t), { traverse: !0 });
|
|
6110
6105
|
} else throw Error("Unsupported absence function \"(?~|\"");
|
|
6111
6106
|
},
|
|
6112
6107
|
Alternative: {
|
|
@@ -6114,14 +6109,14 @@ var es = {
|
|
|
6114
6109
|
let i = e.body.filter((e) => e.kind === "flags");
|
|
6115
6110
|
for (let e = n + 1; e < t.body.length; e++) {
|
|
6116
6111
|
let n = t.body[e];
|
|
6117
|
-
|
|
6112
|
+
No(r, n, []).push(...i);
|
|
6118
6113
|
}
|
|
6119
6114
|
},
|
|
6120
6115
|
exit({ node: e }, { flagDirectivesByAlt: t }) {
|
|
6121
6116
|
if (t.get(e)?.length) {
|
|
6122
|
-
let n =
|
|
6117
|
+
let n = ss(t.get(e));
|
|
6123
6118
|
if (n) {
|
|
6124
|
-
let t =
|
|
6119
|
+
let t = V({ flags: n });
|
|
6125
6120
|
t.body[0].body = e.body, e.body = [$(t, e)];
|
|
6126
6121
|
}
|
|
6127
6122
|
}
|
|
@@ -6130,16 +6125,16 @@ var es = {
|
|
|
6130
6125
|
Assertion({ node: e, parent: t, key: n, container: r, root: i, remove: a, replaceWith: o }, s) {
|
|
6131
6126
|
let { kind: c, negate: l } = e, { asciiWordBoundaries: u, avoidSubclass: d, supportedGNodes: f, wordIsAscii: p } = s;
|
|
6132
6127
|
if (c === "text_segment_boundary") throw Error(`Unsupported text segment boundary "\\${l ? "Y" : "y"}"`);
|
|
6133
|
-
if (c === "line_end") o($(
|
|
6128
|
+
if (c === "line_end") o($(H({ body: [B({ body: [Na("string_end")] }), B({ body: [Ia(10)] })] }), t));
|
|
6134
6129
|
else if (c === "line_start") o($(Z(q`(?<=\A|\n(?!\z))`, { skipLookbehindValidation: !0 }), t));
|
|
6135
6130
|
else if (c === "search_start") if (f.has(e)) i.flags.sticky = !0, a();
|
|
6136
6131
|
else {
|
|
6137
6132
|
let e = r[n - 1];
|
|
6138
|
-
if (e &&
|
|
6133
|
+
if (e && ps(e)) o($(H({ negate: !0 }), t));
|
|
6139
6134
|
else if (d) throw Error(q`Uses "\G" in a way that requires a subclass`);
|
|
6140
|
-
else o(Q(
|
|
6135
|
+
else o(Q(Na("string_start"), t)), s.strategy = "clip_search";
|
|
6141
6136
|
}
|
|
6142
|
-
else if (
|
|
6137
|
+
else if (c !== "string_end" && c !== "string_start") if (c === "string_end_newline") o($(Z(q`(?=\n?\z)`), t));
|
|
6143
6138
|
else if (c === "word_boundary") {
|
|
6144
6139
|
if (!p && !u) {
|
|
6145
6140
|
let e = `(?:(?<=${Y})(?!${Y})|(?<!${Y})(?=${Y}))`, n = `(?:(?<=${Y})(?=${Y})|(?<!${Y})(?!${Y}))`;
|
|
@@ -6149,36 +6144,36 @@ var es = {
|
|
|
6149
6144
|
},
|
|
6150
6145
|
Backreference({ node: e }, { jsGroupNameMap: t }) {
|
|
6151
6146
|
let { ref: n } = e;
|
|
6152
|
-
typeof n == "string" && !
|
|
6147
|
+
typeof n == "string" && !hs(n) && (n = os(n, t), e.ref = n);
|
|
6153
6148
|
},
|
|
6154
6149
|
CapturingGroup({ node: e }, { jsGroupNameMap: t, subroutineRefMap: n }) {
|
|
6155
6150
|
let { name: r } = e;
|
|
6156
|
-
r && !
|
|
6151
|
+
r && !hs(r) && (r = os(r, t), e.name = r), n.set(e.number, e), r && n.set(r, e);
|
|
6157
6152
|
},
|
|
6158
6153
|
CharacterClassRange({ node: e, parent: t, replaceWith: n }) {
|
|
6159
|
-
t.kind === "intersection" && n($(
|
|
6154
|
+
t.kind === "intersection" && n($(La({ body: [e] }), t), { traverse: !0 });
|
|
6160
6155
|
},
|
|
6161
6156
|
CharacterSet({ node: e, parent: t, replaceWith: n }, { accuracy: r, minTargetEs2024: i, digitIsAscii: a, spaceIsAscii: o, wordIsAscii: s }) {
|
|
6162
6157
|
let { kind: c, negate: l, value: u } = e;
|
|
6163
6158
|
if (a && (c === "digit" || u === "digit")) {
|
|
6164
|
-
n(Q(
|
|
6159
|
+
n(Q(za("digit", { negate: l }), t));
|
|
6165
6160
|
return;
|
|
6166
6161
|
}
|
|
6167
6162
|
if (o && (c === "space" || u === "space")) {
|
|
6168
|
-
n($(
|
|
6163
|
+
n($(gs(Z(zo), l), t));
|
|
6169
6164
|
return;
|
|
6170
6165
|
}
|
|
6171
6166
|
if (s && (c === "word" || u === "word")) {
|
|
6172
|
-
n(Q(
|
|
6167
|
+
n(Q(za("word", { negate: l }), t));
|
|
6173
6168
|
return;
|
|
6174
6169
|
}
|
|
6175
|
-
if (c === "any") n(Q(
|
|
6176
|
-
else if (c === "digit") n(Q(
|
|
6170
|
+
if (c === "any") n(Q(qa("Any"), t));
|
|
6171
|
+
else if (c === "digit") n(Q(qa("Nd", { negate: l }), t));
|
|
6177
6172
|
else if (c !== "dot") if (c === "text_segment") {
|
|
6178
6173
|
if (r === "strict") throw Error(q`Use of "\X" requires non-strict accuracy`);
|
|
6179
6174
|
let e = "\\p{Emoji}(?:\\p{EMod}|\\uFE0F\\u20E3?|[\\x{E0020}-\\x{E007E}]+\\x{E007F})?", a = q`\p{RI}{2}|${e}(?:\u200D${e})*`;
|
|
6180
6175
|
n($(Z(q`(?>\r\n|${i ? q`\p{RGI_Emoji}` : a}|\P{M}\p{M}*)`, { skipPropertyNameValidation: !0 }), t));
|
|
6181
|
-
} else if (c === "hex") n(Q(
|
|
6176
|
+
} else if (c === "hex") n(Q(qa("AHex", { negate: l }), t));
|
|
6182
6177
|
else if (c === "newline") n($(Z(l ? "[^\n]" : "(?>\r\n?|[\n\v\f
\u2028\u2029])"), t));
|
|
6183
6178
|
else if (c === "posix") if (!i && (u === "graph" || u === "print")) {
|
|
6184
6179
|
if (r === "strict") throw Error(`POSIX class "${u}" requires min target ES2024 or non-strict accuracy`);
|
|
@@ -6187,23 +6182,23 @@ var es = {
|
|
|
6187
6182
|
print: " -~"
|
|
6188
6183
|
}[u];
|
|
6189
6184
|
l && (e = `\0-${K(e.codePointAt(0) - 1)}${K(e.codePointAt(2) + 1)}-\u{10FFFF}`), n($(Z(`[${e}]`), t));
|
|
6190
|
-
} else n($(
|
|
6191
|
-
else if (c === "property")
|
|
6192
|
-
else if (c === "space") n(Q(
|
|
6193
|
-
else if (c === "word") n($(
|
|
6185
|
+
} else n($(gs(Z(Ko.get(u)), l), t));
|
|
6186
|
+
else if (c === "property") Ho.has(to(u)) || (e.key = "sc");
|
|
6187
|
+
else if (c === "space") n(Q(qa("space", { negate: l }), t));
|
|
6188
|
+
else if (c === "word") n($(gs(Z(Y), l), t));
|
|
6194
6189
|
else throw Error(`Unexpected character set kind "${c}"`);
|
|
6195
6190
|
},
|
|
6196
6191
|
Directive({ node: e, parent: t, root: n, remove: r, replaceWith: i, removeAllPrevSiblings: a, removeAllNextSiblings: o }) {
|
|
6197
6192
|
let { kind: s, flags: c } = e;
|
|
6198
6193
|
if (s === "flags") if (!c.enable && !c.disable) r();
|
|
6199
6194
|
else {
|
|
6200
|
-
let e =
|
|
6195
|
+
let e = V({ flags: c });
|
|
6201
6196
|
e.body[0].body = o(), i($(e, t), { traverse: !0 });
|
|
6202
6197
|
}
|
|
6203
6198
|
else if (s === "keep") {
|
|
6204
|
-
let e = n.body[0], r = n.body.length === 1 &&
|
|
6199
|
+
let e = n.body[0], r = n.body.length === 1 && ba(e, { type: "Group" }) && e.body[0].body.length === 1 ? e.body[0] : n;
|
|
6205
6200
|
if (t.parent !== r || r.body.length > 1) throw Error(q`Uses "\K" in a way that's unsupported`);
|
|
6206
|
-
let o =
|
|
6201
|
+
let o = H({ behind: !0 });
|
|
6207
6202
|
o.body[0].body = a(), i($(o, t));
|
|
6208
6203
|
} else throw Error(`Unexpected directive kind "${s}"`);
|
|
6209
6204
|
},
|
|
@@ -6241,12 +6236,12 @@ var es = {
|
|
|
6241
6236
|
},
|
|
6242
6237
|
NamedCallout({ node: e, parent: t, replaceWith: n }) {
|
|
6243
6238
|
let { kind: r } = e;
|
|
6244
|
-
if (r === "fail") n($(
|
|
6239
|
+
if (r === "fail") n($(H({ negate: !0 }), t));
|
|
6245
6240
|
else throw Error(`Unsupported named callout "(*${r.toUpperCase()}"`);
|
|
6246
6241
|
},
|
|
6247
6242
|
Quantifier({ node: e }) {
|
|
6248
6243
|
if (e.body.type === "Quantifier") {
|
|
6249
|
-
let t =
|
|
6244
|
+
let t = V();
|
|
6250
6245
|
t.body[0].body.push(e.body), e.body = $(t, e);
|
|
6251
6246
|
}
|
|
6252
6247
|
},
|
|
@@ -6255,7 +6250,7 @@ var es = {
|
|
|
6255
6250
|
let n = [], r = !1, i = !1;
|
|
6256
6251
|
for (let t of e.body) if (t.body.length === 1 && t.body[0].kind === "search_start") t.body.pop();
|
|
6257
6252
|
else {
|
|
6258
|
-
let e =
|
|
6253
|
+
let e = us(t.body);
|
|
6259
6254
|
e ? (r = !0, Array.isArray(e) ? n.push(...e) : n.push(e)) : i = !0;
|
|
6260
6255
|
}
|
|
6261
6256
|
r && !i && n.forEach((e) => t.add(e));
|
|
@@ -6266,9 +6261,9 @@ var es = {
|
|
|
6266
6261
|
},
|
|
6267
6262
|
Subroutine({ node: e }, { jsGroupNameMap: t }) {
|
|
6268
6263
|
let { ref: n } = e;
|
|
6269
|
-
typeof n == "string" && !
|
|
6264
|
+
typeof n == "string" && !hs(n) && (n = os(n, t), e.ref = n);
|
|
6270
6265
|
}
|
|
6271
|
-
},
|
|
6266
|
+
}, Qo = {
|
|
6272
6267
|
Backreference({ node: e }, { multiplexCapturesToLeftByRef: t, reffedNodesByReferencer: n }) {
|
|
6273
6268
|
let { orphan: r, ref: i } = e;
|
|
6274
6269
|
r || n.set(e, [...t.get(i).map(({ node: e }) => e)]);
|
|
@@ -6277,11 +6272,11 @@ var es = {
|
|
|
6277
6272
|
enter({ node: e, parent: t, replaceWith: n, skip: r }, { groupOriginByCopy: i, groupsByName: a, multiplexCapturesToLeftByRef: o, openRefs: s, reffedNodesByReferencer: c }) {
|
|
6278
6273
|
let l = i.get(e);
|
|
6279
6274
|
if (l && s.has(e.number)) {
|
|
6280
|
-
let r = Q(
|
|
6275
|
+
let r = Q(is(e.number), t);
|
|
6281
6276
|
c.set(r, s.get(e.number)), n(r);
|
|
6282
6277
|
return;
|
|
6283
6278
|
}
|
|
6284
|
-
s.set(e.number, e), o.set(e.number, []), e.name &&
|
|
6279
|
+
s.set(e.number, e), o.set(e.number, []), e.name && No(o, e.name, []);
|
|
6285
6280
|
let u = o.get(e.name ?? e.number);
|
|
6286
6281
|
for (let t = 0; t < u.length; t++) {
|
|
6287
6282
|
let n = u[t];
|
|
@@ -6297,7 +6292,7 @@ var es = {
|
|
|
6297
6292
|
node: e,
|
|
6298
6293
|
origin: l
|
|
6299
6294
|
}), e.name) {
|
|
6300
|
-
let t =
|
|
6295
|
+
let t = No(a, e.name, /* @__PURE__ */ new Map()), n = !1;
|
|
6301
6296
|
if (l) n = !0;
|
|
6302
6297
|
else for (let e of t.values()) if (!e.hasDuplicateNameToRemove) {
|
|
6303
6298
|
n = !0;
|
|
@@ -6315,7 +6310,7 @@ var es = {
|
|
|
6315
6310
|
},
|
|
6316
6311
|
Group: {
|
|
6317
6312
|
enter({ node: e }, t) {
|
|
6318
|
-
t.prevFlags = t.currentFlags, e.flags && (t.currentFlags =
|
|
6313
|
+
t.prevFlags = t.currentFlags, e.flags && (t.currentFlags = Mo(t.currentFlags, e.flags));
|
|
6319
6314
|
},
|
|
6320
6315
|
exit(e, t) {
|
|
6321
6316
|
t.currentFlags = t.prevFlags;
|
|
@@ -6325,28 +6320,28 @@ var es = {
|
|
|
6325
6320
|
let { isRecursive: i, ref: a } = e;
|
|
6326
6321
|
if (i) {
|
|
6327
6322
|
let n = t;
|
|
6328
|
-
for (; (n = n.parent) &&
|
|
6323
|
+
for (; (n = n.parent) && (n.type !== "CapturingGroup" || n.name !== a && n.number !== a););
|
|
6329
6324
|
r.reffedNodesByReferencer.set(e, n);
|
|
6330
6325
|
return;
|
|
6331
6326
|
}
|
|
6332
|
-
let o = r.subroutineRefMap.get(a), s = a === 0, c = s ?
|
|
6327
|
+
let o = r.subroutineRefMap.get(a), s = a === 0, c = s ? is(0) : rs(o, r.groupOriginByCopy, null), l = c;
|
|
6333
6328
|
if (!s) {
|
|
6334
|
-
let e =
|
|
6335
|
-
|
|
6329
|
+
let e = ss(as(o, (e) => e.type === "Group" && !!e.flags)), t = e ? Mo(r.globalFlags, e) : r.globalFlags;
|
|
6330
|
+
ts(t, r.currentFlags) || (l = V({ flags: cs(t) }), l.body[0].body.push(c));
|
|
6336
6331
|
}
|
|
6337
6332
|
n($(l, t), { traverse: !s });
|
|
6338
6333
|
}
|
|
6339
|
-
},
|
|
6334
|
+
}, $o = {
|
|
6340
6335
|
Backreference({ node: e, parent: t, replaceWith: n }, r) {
|
|
6341
6336
|
if (e.orphan) {
|
|
6342
6337
|
r.highestOrphanBackref = Math.max(r.highestOrphanBackref, e.ref);
|
|
6343
6338
|
return;
|
|
6344
6339
|
}
|
|
6345
|
-
let i = r.reffedNodesByReferencer.get(e).filter((t) =>
|
|
6346
|
-
i.length ? i.length > 1 ? n($(
|
|
6340
|
+
let i = r.reffedNodesByReferencer.get(e).filter((t) => ns(t, e));
|
|
6341
|
+
i.length ? i.length > 1 ? n($(V({
|
|
6347
6342
|
atomic: !0,
|
|
6348
|
-
body: i.reverse().map((e) =>
|
|
6349
|
-
}), t)) : e.ref = i[0].number : n($(
|
|
6343
|
+
body: i.reverse().map((e) => B({ body: [Pa(e.number)] }))
|
|
6344
|
+
}), t)) : e.ref = i[0].number : n($(H({ negate: !0 }), t));
|
|
6350
6345
|
},
|
|
6351
6346
|
CapturingGroup({ node: e }, t) {
|
|
6352
6347
|
e.number = ++t.numCapturesToLeft, e.name && t.groupsByName.get(e.name).get(e).hasDuplicateNameToRemove && delete e.name;
|
|
@@ -6354,7 +6349,7 @@ var es = {
|
|
|
6354
6349
|
Regex: { exit({ node: e }, t) {
|
|
6355
6350
|
let n = Math.max(t.highestOrphanBackref - t.numCapturesToLeft, 0);
|
|
6356
6351
|
for (let t = 0; t < n; t++) {
|
|
6357
|
-
let t =
|
|
6352
|
+
let t = Fa();
|
|
6358
6353
|
e.body.at(-1).body.push(t);
|
|
6359
6354
|
}
|
|
6360
6355
|
} },
|
|
@@ -6362,48 +6357,48 @@ var es = {
|
|
|
6362
6357
|
!e.isRecursive || e.ref === 0 || (e.ref = t.reffedNodesByReferencer.get(e).number);
|
|
6363
6358
|
}
|
|
6364
6359
|
};
|
|
6365
|
-
function
|
|
6366
|
-
|
|
6360
|
+
function es(e) {
|
|
6361
|
+
io(e, { "*"({ node: e, parent: t }) {
|
|
6367
6362
|
e.parent = t;
|
|
6368
6363
|
} });
|
|
6369
6364
|
}
|
|
6370
|
-
function
|
|
6365
|
+
function ts(e, t) {
|
|
6371
6366
|
return e.dotAll === t.dotAll && e.ignoreCase === t.ignoreCase;
|
|
6372
6367
|
}
|
|
6373
|
-
function
|
|
6368
|
+
function ns(e, t) {
|
|
6374
6369
|
let n = t;
|
|
6375
6370
|
do {
|
|
6376
6371
|
if (n.type === "Regex") return !1;
|
|
6377
6372
|
if (n.type === "Alternative") continue;
|
|
6378
6373
|
if (n === e) return !1;
|
|
6379
|
-
let t =
|
|
6374
|
+
let t = ls(n.parent);
|
|
6380
6375
|
for (let r of t) {
|
|
6381
6376
|
if (r === n) break;
|
|
6382
|
-
if (r === e ||
|
|
6377
|
+
if (r === e || ds(r, e)) return !0;
|
|
6383
6378
|
}
|
|
6384
6379
|
} while (n = n.parent);
|
|
6385
6380
|
throw Error("Unexpected path");
|
|
6386
6381
|
}
|
|
6387
|
-
function
|
|
6382
|
+
function rs(e, t, n, r) {
|
|
6388
6383
|
let i = Array.isArray(e) ? [] : {};
|
|
6389
|
-
for (let [a, o] of Object.entries(e)) a === "parent" ? i.parent = Array.isArray(n) ? r : n : o && typeof o == "object" ? i[a] =
|
|
6384
|
+
for (let [a, o] of Object.entries(e)) a === "parent" ? i.parent = Array.isArray(n) ? r : n : o && typeof o == "object" ? i[a] = rs(o, t, i, n) : (a === "type" && o === "CapturingGroup" && t.set(i, t.get(e) ?? e), i[a] = o);
|
|
6390
6385
|
return i;
|
|
6391
6386
|
}
|
|
6392
|
-
function
|
|
6393
|
-
let t =
|
|
6387
|
+
function is(e) {
|
|
6388
|
+
let t = Ka(e);
|
|
6394
6389
|
return t.isRecursive = !0, t;
|
|
6395
6390
|
}
|
|
6396
|
-
function
|
|
6391
|
+
function as(e, t) {
|
|
6397
6392
|
let n = [];
|
|
6398
6393
|
for (; e = e.parent;) (!t || t(e)) && n.push(e);
|
|
6399
6394
|
return n;
|
|
6400
6395
|
}
|
|
6401
|
-
function
|
|
6396
|
+
function os(e, t) {
|
|
6402
6397
|
if (t.has(e)) return t.get(e);
|
|
6403
6398
|
let n = `$${t.size}_${e.replace(/^[^$_\p{IDS}]|[^$\u200C\u200D\p{IDC}]/gu, "_")}`;
|
|
6404
6399
|
return t.set(e, n), n;
|
|
6405
6400
|
}
|
|
6406
|
-
function
|
|
6401
|
+
function ss(e) {
|
|
6407
6402
|
let t = ["dotAll", "ignoreCase"], n = {
|
|
6408
6403
|
enable: {},
|
|
6409
6404
|
disable: {}
|
|
@@ -6414,24 +6409,24 @@ function us(e) {
|
|
|
6414
6409
|
});
|
|
6415
6410
|
}), Object.keys(n.enable).length || delete n.enable, Object.keys(n.disable).length || delete n.disable, n.enable || n.disable ? n : null;
|
|
6416
6411
|
}
|
|
6417
|
-
function
|
|
6412
|
+
function cs({ dotAll: e, ignoreCase: t }) {
|
|
6418
6413
|
let n = {};
|
|
6419
6414
|
return (e || t) && (n.enable = {}, e && (n.enable.dotAll = !0), t && (n.enable.ignoreCase = !0)), (!e || !t) && (n.disable = {}, !e && (n.disable.dotAll = !0), !t && (n.disable.ignoreCase = !0)), n;
|
|
6420
6415
|
}
|
|
6421
|
-
function
|
|
6416
|
+
function ls(e) {
|
|
6422
6417
|
if (!e) throw Error("Node expected");
|
|
6423
6418
|
let { body: t } = e;
|
|
6424
6419
|
return Array.isArray(t) ? t : t ? [t] : null;
|
|
6425
6420
|
}
|
|
6426
|
-
function
|
|
6427
|
-
let t = e.find((e) => e.kind === "search_start" ||
|
|
6421
|
+
function us(e) {
|
|
6422
|
+
let t = e.find((e) => e.kind === "search_start" || ms(e, { negate: !1 }) || !fs(e));
|
|
6428
6423
|
if (!t) return null;
|
|
6429
6424
|
if (t.kind === "search_start") return t;
|
|
6430
6425
|
if (t.type === "LookaroundAssertion") return t.body[0].body[0];
|
|
6431
6426
|
if (t.type === "CapturingGroup" || t.type === "Group") {
|
|
6432
6427
|
let e = [];
|
|
6433
6428
|
for (let n of t.body) {
|
|
6434
|
-
let t =
|
|
6429
|
+
let t = us(n.body);
|
|
6435
6430
|
if (!t) return null;
|
|
6436
6431
|
Array.isArray(t) ? e.push(...t) : e.push(t);
|
|
6437
6432
|
}
|
|
@@ -6439,15 +6434,15 @@ function ps(e) {
|
|
|
6439
6434
|
}
|
|
6440
6435
|
return null;
|
|
6441
6436
|
}
|
|
6442
|
-
function
|
|
6443
|
-
let n =
|
|
6444
|
-
for (let e of n) if (e === t ||
|
|
6437
|
+
function ds(e, t) {
|
|
6438
|
+
let n = ls(e) ?? [];
|
|
6439
|
+
for (let e of n) if (e === t || ds(e, t)) return !0;
|
|
6445
6440
|
return !1;
|
|
6446
6441
|
}
|
|
6447
|
-
function
|
|
6442
|
+
function fs({ type: e }) {
|
|
6448
6443
|
return e === "Assertion" || e === "Directive" || e === "LookaroundAssertion";
|
|
6449
6444
|
}
|
|
6450
|
-
function
|
|
6445
|
+
function ps(e) {
|
|
6451
6446
|
let t = [
|
|
6452
6447
|
"Character",
|
|
6453
6448
|
"CharacterClass",
|
|
@@ -6455,42 +6450,42 @@ function gs(e) {
|
|
|
6455
6450
|
];
|
|
6456
6451
|
return t.includes(e.type) || e.type === "Quantifier" && e.min && t.includes(e.body.type);
|
|
6457
6452
|
}
|
|
6458
|
-
function
|
|
6453
|
+
function ms(e, t) {
|
|
6459
6454
|
let n = {
|
|
6460
6455
|
negate: null,
|
|
6461
6456
|
...t
|
|
6462
6457
|
};
|
|
6463
|
-
return e.type === "LookaroundAssertion" && (n.negate === null || e.negate === n.negate) && e.body.length === 1 &&
|
|
6458
|
+
return e.type === "LookaroundAssertion" && (n.negate === null || e.negate === n.negate) && e.body.length === 1 && ba(e.body[0], {
|
|
6464
6459
|
type: "Assertion",
|
|
6465
6460
|
kind: "search_start"
|
|
6466
6461
|
});
|
|
6467
6462
|
}
|
|
6468
|
-
function
|
|
6463
|
+
function hs(e) {
|
|
6469
6464
|
return /^[$_\p{IDS}][$\u200C\u200D\p{IDC}]*$/u.test(e);
|
|
6470
6465
|
}
|
|
6471
6466
|
function Z(e, t) {
|
|
6472
|
-
let n =
|
|
6467
|
+
let n = Ca(e, {
|
|
6473
6468
|
...t,
|
|
6474
|
-
unicodePropertyMap:
|
|
6469
|
+
unicodePropertyMap: Ho
|
|
6475
6470
|
}).body;
|
|
6476
|
-
return n.length > 1 || n[0].body.length > 1 ?
|
|
6471
|
+
return n.length > 1 || n[0].body.length > 1 ? V({ body: n }) : n[0].body[0];
|
|
6477
6472
|
}
|
|
6478
|
-
function
|
|
6473
|
+
function gs(e, t) {
|
|
6479
6474
|
return e.negate = t, e;
|
|
6480
6475
|
}
|
|
6481
6476
|
function Q(e, t) {
|
|
6482
6477
|
return e.parent = t, e;
|
|
6483
6478
|
}
|
|
6484
6479
|
function $(e, t) {
|
|
6485
|
-
return
|
|
6480
|
+
return es(e), e.parent = t, e;
|
|
6486
6481
|
}
|
|
6487
|
-
function
|
|
6488
|
-
let n =
|
|
6482
|
+
function _s(e, t) {
|
|
6483
|
+
let n = Ro(t), r = Po(n.target, "ES2024"), i = Po(n.target, "ES2025"), a = n.rules.recursionLimit;
|
|
6489
6484
|
if (!Number.isInteger(a) || a < 2 || a > 20) throw Error("Invalid recursionLimit; use 2-20");
|
|
6490
6485
|
let o = null, s = null;
|
|
6491
6486
|
if (!i) {
|
|
6492
6487
|
let t = [e.flags.ignoreCase];
|
|
6493
|
-
|
|
6488
|
+
io(e, vs, {
|
|
6494
6489
|
getCurrentModI: () => t.at(-1),
|
|
6495
6490
|
popModI() {
|
|
6496
6491
|
t.pop();
|
|
@@ -6524,7 +6519,7 @@ function bs(e, t) {
|
|
|
6524
6519
|
verbose: n.verbose
|
|
6525
6520
|
};
|
|
6526
6521
|
function d(e) {
|
|
6527
|
-
return u.lastNode = l, l = e,
|
|
6522
|
+
return u.lastNode = l, l = e, Fo(ys[e.type], `Unexpected node type "${e.type}"`)(e, u, d);
|
|
6528
6523
|
}
|
|
6529
6524
|
let f = {
|
|
6530
6525
|
pattern: e.body.map(d).join("|"),
|
|
@@ -6532,34 +6527,34 @@ function bs(e, t) {
|
|
|
6532
6527
|
options: { ...e.options }
|
|
6533
6528
|
};
|
|
6534
6529
|
return r || (delete f.options.force.v, f.options.disable.v = !0, f.options.unicodeSetsPlugin = null), f._captureTransfers = /* @__PURE__ */ new Map(), f._hiddenCaptures = [], u.captureMap.forEach((e, t) => {
|
|
6535
|
-
e.hidden && f._hiddenCaptures.push(t), e.transferTo &&
|
|
6530
|
+
e.hidden && f._hiddenCaptures.push(t), e.transferTo && No(f._captureTransfers, e.transferTo, []).push(t);
|
|
6536
6531
|
}), f;
|
|
6537
6532
|
}
|
|
6538
|
-
var
|
|
6533
|
+
var vs = {
|
|
6539
6534
|
"*": {
|
|
6540
6535
|
enter({ node: e }, t) {
|
|
6541
|
-
if (
|
|
6536
|
+
if (js(e)) {
|
|
6542
6537
|
let n = t.getCurrentModI();
|
|
6543
|
-
t.pushModI(e.flags ?
|
|
6538
|
+
t.pushModI(e.flags ? Mo({ ignoreCase: n }, e.flags).ignoreCase : n);
|
|
6544
6539
|
}
|
|
6545
6540
|
},
|
|
6546
6541
|
exit({ node: e }, t) {
|
|
6547
|
-
|
|
6542
|
+
js(e) && t.popModI();
|
|
6548
6543
|
}
|
|
6549
6544
|
},
|
|
6550
6545
|
Backreference(e, t) {
|
|
6551
6546
|
t.setHasCasedChar();
|
|
6552
6547
|
},
|
|
6553
6548
|
Character({ node: e }, t) {
|
|
6554
|
-
|
|
6549
|
+
Ts(K(e.value)) && t.setHasCasedChar();
|
|
6555
6550
|
},
|
|
6556
6551
|
CharacterClassRange({ node: e, skip: t }, n) {
|
|
6557
|
-
t(),
|
|
6552
|
+
t(), Es(e, { firstOnly: !0 }).length && n.setHasCasedChar();
|
|
6558
6553
|
},
|
|
6559
6554
|
CharacterSet({ node: e }, t) {
|
|
6560
|
-
e.kind === "property" &&
|
|
6555
|
+
e.kind === "property" && Yo.has(e.value) && t.setHasCasedChar();
|
|
6561
6556
|
}
|
|
6562
|
-
},
|
|
6557
|
+
}, ys = {
|
|
6563
6558
|
Alternative({ body: e }, t, n) {
|
|
6564
6559
|
return e.map(n).join("");
|
|
6565
6560
|
},
|
|
@@ -6579,14 +6574,14 @@ var xs = {
|
|
|
6579
6574
|
return s && (o.hidden = !0, a > s.number && (o.transferTo = s.number)), t.captureMap.set(a, o), `(${i ? `?<${i}>` : ""}${r.map(n).join("|")})`;
|
|
6580
6575
|
},
|
|
6581
6576
|
Character({ value: e }, t) {
|
|
6582
|
-
let n = K(e), r =
|
|
6577
|
+
let n = K(e), r = Ds(e, {
|
|
6583
6578
|
escDigit: t.lastNode.type === "Backreference",
|
|
6584
6579
|
inCharClass: t.inCharClass,
|
|
6585
6580
|
useFlagV: t.useFlagV
|
|
6586
6581
|
});
|
|
6587
6582
|
if (r !== n) return r;
|
|
6588
|
-
if (t.useAppliedIgnoreCase && t.currentFlags.ignoreCase &&
|
|
6589
|
-
let e =
|
|
6583
|
+
if (t.useAppliedIgnoreCase && t.currentFlags.ignoreCase && Ts(n)) {
|
|
6584
|
+
let e = Vo(n);
|
|
6590
6585
|
return t.inCharClass ? e.join("") : e.length > 1 ? `[${e.join("")}]` : e[0];
|
|
6591
6586
|
}
|
|
6592
6587
|
return n;
|
|
@@ -6594,15 +6589,15 @@ var xs = {
|
|
|
6594
6589
|
CharacterClass(e, t, n) {
|
|
6595
6590
|
let { kind: r, negate: i, parent: a } = e, { body: o } = e;
|
|
6596
6591
|
if (r === "intersection" && !t.useFlagV) throw Error("Use of character class intersection requires min target ES2024");
|
|
6597
|
-
J.bugFlagVLiteralHyphenIsRange && t.useFlagV && o.some(
|
|
6592
|
+
J.bugFlagVLiteralHyphenIsRange && t.useFlagV && o.some(Ns) && (o = [Ia(45), ...o.filter((e) => !Ns(e))]);
|
|
6598
6593
|
let s = () => `[${i ? "^" : ""}${o.map(n).join(r === "intersection" ? "&&" : "")}]`;
|
|
6599
6594
|
if (!t.inCharClass) {
|
|
6600
6595
|
if ((!t.useFlagV || J.bugNestedClassIgnoresNegation) && !i) {
|
|
6601
6596
|
let t = o.filter((e) => e.type === "CharacterClass" && e.kind === "union" && e.negate);
|
|
6602
6597
|
if (t.length) {
|
|
6603
|
-
let r =
|
|
6598
|
+
let r = V(), i = r.body[0];
|
|
6604
6599
|
return r.parent = a, i.parent = r, o = o.filter((e) => !t.includes(e)), e.body = o, o.length ? (e.parent = i, i.body.push(e)) : r.body.pop(), t.forEach((e) => {
|
|
6605
|
-
let t =
|
|
6600
|
+
let t = B({ body: [e] });
|
|
6606
6601
|
e.parent = t, t.parent = r, r.body.push(t);
|
|
6607
6602
|
}), n(r);
|
|
6608
6603
|
}
|
|
@@ -6621,16 +6616,16 @@ var xs = {
|
|
|
6621
6616
|
escDigit: !1,
|
|
6622
6617
|
inCharClass: !0,
|
|
6623
6618
|
useFlagV: t.useFlagV
|
|
6624
|
-
}, a =
|
|
6625
|
-
return t.useAppliedIgnoreCase && t.currentFlags.ignoreCase &&
|
|
6626
|
-
s.add(Array.isArray(e) ? `${
|
|
6619
|
+
}, a = Ds(n, i), o = Ds(r, i), s = /* @__PURE__ */ new Set();
|
|
6620
|
+
return t.useAppliedIgnoreCase && t.currentFlags.ignoreCase && Os(Es(e)).forEach((e) => {
|
|
6621
|
+
s.add(Array.isArray(e) ? `${Ds(e[0], i)}-${Ds(e[1], i)}` : Ds(e, i));
|
|
6627
6622
|
}), `${a}-${o}${[...s].join("")}`;
|
|
6628
6623
|
},
|
|
6629
6624
|
CharacterSet({ kind: e, negate: t, value: n, key: r }, i) {
|
|
6630
6625
|
if (e === "dot") return i.currentFlags.dotAll ? i.appliedGlobalFlags.dotAll || i.useFlagMods ? "." : "[^]" : q`[^\n]`;
|
|
6631
6626
|
if (e === "digit") return t ? q`\D` : q`\d`;
|
|
6632
6627
|
if (e === "property") {
|
|
6633
|
-
if (i.useAppliedIgnoreCase && i.currentFlags.ignoreCase &&
|
|
6628
|
+
if (i.useAppliedIgnoreCase && i.currentFlags.ignoreCase && Yo.has(n)) throw Error(`Unicode property "${n}" can't be case-insensitive when other chars have specific case`);
|
|
6634
6629
|
return `${t ? q`\P` : q`\p`}{${r ? `${r}=` : ""}${n}}`;
|
|
6635
6630
|
}
|
|
6636
6631
|
if (e === "word") return t ? q`\W` : q`\w`;
|
|
@@ -6641,22 +6636,22 @@ var xs = {
|
|
|
6641
6636
|
},
|
|
6642
6637
|
Group({ atomic: e, body: t, flags: n, parent: r }, i, a) {
|
|
6643
6638
|
let o = i.currentFlags;
|
|
6644
|
-
n && (i.currentFlags =
|
|
6645
|
-
let s = t.map(a).join("|"), c = !i.verbose && t.length === 1 && r.type !== "Quantifier" && !e && (!i.useFlagMods || !n) ? s : `(?${
|
|
6639
|
+
n && (i.currentFlags = Mo(o, n));
|
|
6640
|
+
let s = t.map(a).join("|"), c = !i.verbose && t.length === 1 && r.type !== "Quantifier" && !e && (!i.useFlagMods || !n) ? s : `(?${ks(e, n, i.useFlagMods)}${s})`;
|
|
6646
6641
|
return i.currentFlags = o, c;
|
|
6647
6642
|
},
|
|
6648
6643
|
LookaroundAssertion({ body: e, kind: t, negate: n }, r, i) {
|
|
6649
6644
|
return `(?${`${t === "lookahead" ? "" : "<"}${n ? "!" : "="}`}${e.map(i).join("|")})`;
|
|
6650
6645
|
},
|
|
6651
6646
|
Quantifier(e, t, n) {
|
|
6652
|
-
return n(e.body) +
|
|
6647
|
+
return n(e.body) + As(e);
|
|
6653
6648
|
},
|
|
6654
6649
|
Subroutine({ isRecursive: e, ref: t }, n) {
|
|
6655
6650
|
if (!e) throw Error("Unexpected non-recursive subroutine in transformed AST");
|
|
6656
6651
|
let r = n.recursionLimit;
|
|
6657
6652
|
return t === 0 ? `(?R=${r})` : q`\g<${t}&R=${r}>`;
|
|
6658
6653
|
}
|
|
6659
|
-
},
|
|
6654
|
+
}, bs = /* @__PURE__ */ new Set([
|
|
6660
6655
|
"$",
|
|
6661
6656
|
"(",
|
|
6662
6657
|
")",
|
|
@@ -6671,13 +6666,13 @@ var xs = {
|
|
|
6671
6666
|
"{",
|
|
6672
6667
|
"|",
|
|
6673
6668
|
"}"
|
|
6674
|
-
]),
|
|
6669
|
+
]), xs = /* @__PURE__ */ new Set([
|
|
6675
6670
|
"-",
|
|
6676
6671
|
"\\",
|
|
6677
6672
|
"]",
|
|
6678
6673
|
"^",
|
|
6679
6674
|
"["
|
|
6680
|
-
]),
|
|
6675
|
+
]), Ss = /* @__PURE__ */ new Set(/* @__PURE__ */ "()-/[\\]^{|}!#$%&*+,.:;<=>?@`~".split("")), Cs = /* @__PURE__ */ new Map([
|
|
6681
6676
|
[9, q`\t`],
|
|
6682
6677
|
[10, q`\n`],
|
|
6683
6678
|
[11, q`\v`],
|
|
@@ -6686,17 +6681,17 @@ var xs = {
|
|
|
6686
6681
|
[8232, q`\u2028`],
|
|
6687
6682
|
[8233, q`\u2029`],
|
|
6688
6683
|
[65279, q`\uFEFF`]
|
|
6689
|
-
]),
|
|
6690
|
-
function
|
|
6691
|
-
return
|
|
6684
|
+
]), ws = /^\p{Cased}$/u;
|
|
6685
|
+
function Ts(e) {
|
|
6686
|
+
return ws.test(e);
|
|
6692
6687
|
}
|
|
6693
|
-
function
|
|
6688
|
+
function Es(e, t) {
|
|
6694
6689
|
let n = !!t?.firstOnly, r = e.min.value, i = e.max.value, a = [];
|
|
6695
6690
|
if (r < 65 && (i === 65535 || i >= 131071) || r === 65536 && i >= 131071) return a;
|
|
6696
6691
|
for (let e = r; e <= i; e++) {
|
|
6697
6692
|
let t = K(e);
|
|
6698
|
-
if (!
|
|
6699
|
-
let o =
|
|
6693
|
+
if (!Ts(t)) continue;
|
|
6694
|
+
let o = Vo(t).filter((e) => {
|
|
6700
6695
|
let t = e.codePointAt(0);
|
|
6701
6696
|
return t < r || t > i;
|
|
6702
6697
|
});
|
|
@@ -6704,18 +6699,18 @@ function ks(e, t) {
|
|
|
6704
6699
|
}
|
|
6705
6700
|
return a;
|
|
6706
6701
|
}
|
|
6707
|
-
function
|
|
6708
|
-
if (
|
|
6709
|
-
if (e < 32 || e > 126 && e < 160 || e > 262143 || t &&
|
|
6710
|
-
let i = n ? r ?
|
|
6702
|
+
function Ds(e, { escDigit: t, inCharClass: n, useFlagV: r }) {
|
|
6703
|
+
if (Cs.has(e)) return Cs.get(e);
|
|
6704
|
+
if (e < 32 || e > 126 && e < 160 || e > 262143 || t && Ms(e)) return e > 255 ? `\\u{${e.toString(16).toUpperCase()}}` : `\\x${e.toString(16).toUpperCase().padStart(2, "0")}`;
|
|
6705
|
+
let i = n ? r ? Ss : xs : bs, a = K(e);
|
|
6711
6706
|
return (i.has(a) ? "\\" : "") + a;
|
|
6712
6707
|
}
|
|
6713
|
-
function
|
|
6708
|
+
function Os(e) {
|
|
6714
6709
|
let t = e.map((e) => e.codePointAt(0)).sort((e, t) => e - t), n = [], r = null;
|
|
6715
6710
|
for (let e = 0; e < t.length; e++) t[e + 1] === t[e] + 1 ? r ??= t[e] : r === null ? n.push(t[e]) : (n.push([r, t[e]]), r = null);
|
|
6716
6711
|
return n;
|
|
6717
6712
|
}
|
|
6718
|
-
function
|
|
6713
|
+
function ks(e, t, n) {
|
|
6719
6714
|
if (e) return ">";
|
|
6720
6715
|
let r = "";
|
|
6721
6716
|
if (t && n) {
|
|
@@ -6724,7 +6719,7 @@ function Ms(e, t, n) {
|
|
|
6724
6719
|
}
|
|
6725
6720
|
return `${r}:`;
|
|
6726
6721
|
}
|
|
6727
|
-
function
|
|
6722
|
+
function As({ kind: e, max: t, min: n }) {
|
|
6728
6723
|
let r;
|
|
6729
6724
|
return r = !n && t === 1 ? "?" : !n && t === Infinity ? "*" : n === 1 && t === Infinity ? "+" : n === t ? `{${n}}` : `{${n},${t === Infinity ? "" : t}}`, r + {
|
|
6730
6725
|
greedy: "",
|
|
@@ -6732,16 +6727,16 @@ function Ns({ kind: e, max: t, min: n }) {
|
|
|
6732
6727
|
possessive: "+"
|
|
6733
6728
|
}[e];
|
|
6734
6729
|
}
|
|
6735
|
-
function
|
|
6730
|
+
function js({ type: e }) {
|
|
6736
6731
|
return e === "CapturingGroup" || e === "Group" || e === "LookaroundAssertion";
|
|
6737
6732
|
}
|
|
6738
|
-
function
|
|
6733
|
+
function Ms(e) {
|
|
6739
6734
|
return e > 47 && e < 58;
|
|
6740
6735
|
}
|
|
6741
|
-
function
|
|
6736
|
+
function Ns({ type: e, value: t }) {
|
|
6742
6737
|
return e === "Character" && t === 45;
|
|
6743
6738
|
}
|
|
6744
|
-
var
|
|
6739
|
+
var Ps = class e extends RegExp {
|
|
6745
6740
|
#e = /* @__PURE__ */ new Map();
|
|
6746
6741
|
#t = null;
|
|
6747
6742
|
#n;
|
|
@@ -6764,7 +6759,7 @@ var Ls = class e extends RegExp {
|
|
|
6764
6759
|
transfers: [],
|
|
6765
6760
|
...r
|
|
6766
6761
|
};
|
|
6767
|
-
super(i ? "" : t, n), this.#n = t, this.#e =
|
|
6762
|
+
super(i ? "" : t, n), this.#n = t, this.#e = Is(e.hiddenCaptures, e.transfers), this.#i = e.strategy, this.rawOptions = r ?? {};
|
|
6768
6763
|
}
|
|
6769
6764
|
i || (this.#t = this);
|
|
6770
6765
|
}
|
|
@@ -6777,7 +6772,7 @@ var Ls = class e extends RegExp {
|
|
|
6777
6772
|
if (this.#i === "clip_search" && n && r) {
|
|
6778
6773
|
this.lastIndex = 0;
|
|
6779
6774
|
let e = this.#a(t.slice(r));
|
|
6780
|
-
return e && (
|
|
6775
|
+
return e && (Fs(e, r, t, this.hasIndices), this.lastIndex += r), e;
|
|
6781
6776
|
}
|
|
6782
6777
|
return this.#a(t);
|
|
6783
6778
|
}
|
|
@@ -6796,7 +6791,7 @@ var Ls = class e extends RegExp {
|
|
|
6796
6791
|
let a = i[o];
|
|
6797
6792
|
if (!a) throw Error(`Invalid capture transfer to "${a}"`);
|
|
6798
6793
|
if (t[a] = n[e], this.hasIndices && (t.indices[a] = r[e]), t.groups) {
|
|
6799
|
-
this.#r ||=
|
|
6794
|
+
this.#r ||= Ls(this.source);
|
|
6800
6795
|
let i = this.#r.get(o);
|
|
6801
6796
|
i && (t.groups[i] = n[e], this.hasIndices && (t.indices.groups[i] = r[e]));
|
|
6802
6797
|
}
|
|
@@ -6805,7 +6800,7 @@ var Ls = class e extends RegExp {
|
|
|
6805
6800
|
return t;
|
|
6806
6801
|
}
|
|
6807
6802
|
};
|
|
6808
|
-
function
|
|
6803
|
+
function Fs(e, t, n, r) {
|
|
6809
6804
|
if (e.index += t, e.input = n, r) {
|
|
6810
6805
|
let n = e.indices;
|
|
6811
6806
|
for (let e = 0; e < n.length; e++) {
|
|
@@ -6819,13 +6814,13 @@ function Rs(e, t, n, r) {
|
|
|
6819
6814
|
});
|
|
6820
6815
|
}
|
|
6821
6816
|
}
|
|
6822
|
-
function
|
|
6817
|
+
function Is(e, t) {
|
|
6823
6818
|
let n = /* @__PURE__ */ new Map();
|
|
6824
6819
|
for (let t of e) n.set(t, { hidden: !0 });
|
|
6825
|
-
for (let [e, r] of t) for (let t of r)
|
|
6820
|
+
for (let [e, r] of t) for (let t of r) No(n, t, {}).transferTo = e;
|
|
6826
6821
|
return n;
|
|
6827
6822
|
}
|
|
6828
|
-
function
|
|
6823
|
+
function Ls(e) {
|
|
6829
6824
|
let t = /(?<capture>\((?:\?<(?![=!])(?<name>[^>]+)>|(?!\?)))|\\?./gsu, n = /* @__PURE__ */ new Map(), r = 0, i = 0, a;
|
|
6830
6825
|
for (; a = t.exec(e);) {
|
|
6831
6826
|
let { 0: e, groups: { capture: t, name: o } } = a;
|
|
@@ -6833,12 +6828,12 @@ function Bs(e) {
|
|
|
6833
6828
|
}
|
|
6834
6829
|
return n;
|
|
6835
6830
|
}
|
|
6836
|
-
function
|
|
6837
|
-
let n =
|
|
6838
|
-
return n.options ? new
|
|
6831
|
+
function Rs(e, t) {
|
|
6832
|
+
let n = zs(e, t);
|
|
6833
|
+
return n.options ? new Ps(n.pattern, n.flags, n.options) : new RegExp(n.pattern, n.flags);
|
|
6839
6834
|
}
|
|
6840
|
-
function
|
|
6841
|
-
let n =
|
|
6835
|
+
function zs(e, t) {
|
|
6836
|
+
let n = Ro(t), r = Xo(Ca(e, {
|
|
6842
6837
|
flags: n.flags,
|
|
6843
6838
|
normalizeUnknownPropertyNames: !0,
|
|
6844
6839
|
rules: {
|
|
@@ -6846,17 +6841,17 @@ function Hs(e, t) {
|
|
|
6846
6841
|
singleline: n.rules.singleline
|
|
6847
6842
|
},
|
|
6848
6843
|
skipBackrefValidation: n.rules.allowOrphanBackrefs,
|
|
6849
|
-
unicodePropertyMap:
|
|
6844
|
+
unicodePropertyMap: Ho
|
|
6850
6845
|
}), {
|
|
6851
6846
|
accuracy: n.accuracy,
|
|
6852
6847
|
asciiWordBoundaries: n.rules.asciiWordBoundaries,
|
|
6853
6848
|
avoidSubclass: n.avoidSubclass,
|
|
6854
6849
|
bestEffortTarget: n.target
|
|
6855
|
-
}), i =
|
|
6850
|
+
}), i = _s(r, n), a = To(i.pattern, {
|
|
6856
6851
|
captureTransfers: i._captureTransfers,
|
|
6857
6852
|
hiddenCaptures: i._hiddenCaptures,
|
|
6858
6853
|
mode: "external"
|
|
6859
|
-
}), o = bo(
|
|
6854
|
+
}), o = _o(bo(a.pattern).pattern, {
|
|
6860
6855
|
captureTransfers: a.captureTransfers,
|
|
6861
6856
|
hiddenCaptures: a.hiddenCaptures
|
|
6862
6857
|
}), s = {
|
|
@@ -6878,7 +6873,7 @@ function Hs(e, t) {
|
|
|
6878
6873
|
}
|
|
6879
6874
|
//#endregion
|
|
6880
6875
|
//#region ../../node_modules/.pnpm/@shikijs+engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/shared/engine-javascript.hzpS1_41.mjs
|
|
6881
|
-
var
|
|
6876
|
+
var Bs = 4294967295, Vs = class {
|
|
6882
6877
|
constructor(e, t = {}) {
|
|
6883
6878
|
this.patterns = e, this.options = t;
|
|
6884
6879
|
let { forgiving: n = !1, cache: r, regexConstructor: i } = t;
|
|
@@ -6907,8 +6902,8 @@ var Us = 4294967295, Ws = class {
|
|
|
6907
6902
|
return {
|
|
6908
6903
|
index: e,
|
|
6909
6904
|
captureIndices: t.indices.map((e) => e == null ? {
|
|
6910
|
-
start:
|
|
6911
|
-
end:
|
|
6905
|
+
start: Bs,
|
|
6906
|
+
end: Bs,
|
|
6912
6907
|
length: 0
|
|
6913
6908
|
} : {
|
|
6914
6909
|
start: e[0] + n,
|
|
@@ -6943,8 +6938,8 @@ var Us = 4294967295, Ws = class {
|
|
|
6943
6938
|
};
|
|
6944
6939
|
//#endregion
|
|
6945
6940
|
//#region ../../node_modules/.pnpm/@shikijs+engine-javascript@3.23.0/node_modules/@shikijs/engine-javascript/dist/engine-compile.mjs
|
|
6946
|
-
function
|
|
6947
|
-
return
|
|
6941
|
+
function Hs(e, t) {
|
|
6942
|
+
return Rs(e, {
|
|
6948
6943
|
global: !0,
|
|
6949
6944
|
hasIndices: !0,
|
|
6950
6945
|
lazyCompileLength: 3e3,
|
|
@@ -6958,14 +6953,14 @@ function Gs(e, t) {
|
|
|
6958
6953
|
...t
|
|
6959
6954
|
});
|
|
6960
6955
|
}
|
|
6961
|
-
function
|
|
6956
|
+
function Us(e = {}) {
|
|
6962
6957
|
let t = Object.assign({
|
|
6963
6958
|
target: "auto",
|
|
6964
6959
|
cache: /* @__PURE__ */ new Map()
|
|
6965
6960
|
}, e);
|
|
6966
|
-
return t.regexConstructor ||= (e) =>
|
|
6961
|
+
return t.regexConstructor ||= (e) => Hs(e, { target: t.target }), {
|
|
6967
6962
|
createScanner(e) {
|
|
6968
|
-
return new
|
|
6963
|
+
return new Vs(e, t);
|
|
6969
6964
|
},
|
|
6970
6965
|
createString(e) {
|
|
6971
6966
|
return { content: e };
|
|
@@ -6974,12 +6969,12 @@ function Ks(e = {}) {
|
|
|
6974
6969
|
}
|
|
6975
6970
|
//#endregion
|
|
6976
6971
|
//#region components/code-highlighter/shiki-runtime.ts
|
|
6977
|
-
function
|
|
6978
|
-
return
|
|
6979
|
-
themes: [
|
|
6972
|
+
function Ws() {
|
|
6973
|
+
return Ni({
|
|
6974
|
+
themes: [Fi, Pi],
|
|
6980
6975
|
langs: [],
|
|
6981
|
-
engine:
|
|
6976
|
+
engine: Us()
|
|
6982
6977
|
});
|
|
6983
6978
|
}
|
|
6984
6979
|
//#endregion
|
|
6985
|
-
export {
|
|
6980
|
+
export { Ws as createHighlighter };
|