@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
|
@@ -16,7 +16,7 @@ var e = class e extends Error {
|
|
|
16
16
|
"<": "<",
|
|
17
17
|
"\"": """,
|
|
18
18
|
"'": "'"
|
|
19
|
-
}, i = /[&><"']/g, a = (e) => String(e).replace(i, (e) => r[e]), o = (e) => e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? o(e.body[0]) : e : e.type === "font" ? o(e.body) : e, s = new Set([
|
|
19
|
+
}, i = /[&><"']/g, a = (e) => String(e).replace(i, (e) => r[e]), o = (e) => e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? o(e.body[0]) : e : e.type === "font" ? o(e.body) : e, s = /* @__PURE__ */ new Set([
|
|
20
20
|
"mathord",
|
|
21
21
|
"textord",
|
|
22
22
|
"atom"
|
|
@@ -15426,12 +15426,14 @@ var gt = [
|
|
|
15426
15426
|
if (119808 <= a && a < 120484) {
|
|
15427
15427
|
var s = Math.floor((a - 119808) / 26);
|
|
15428
15428
|
return [gt[s][2], gt[s][o]];
|
|
15429
|
-
}
|
|
15429
|
+
}
|
|
15430
|
+
if (120782 <= a && a <= 120831) {
|
|
15430
15431
|
var c = Math.floor((a - 120782) / 10);
|
|
15431
15432
|
return [_t[c][2], _t[c][o]];
|
|
15432
|
-
}
|
|
15433
|
-
|
|
15434
|
-
|
|
15433
|
+
}
|
|
15434
|
+
if (a === 120485 || a === 120486) return [gt[0][2], gt[0][o]];
|
|
15435
|
+
if (120486 < a && a < 120782) return ["", ""];
|
|
15436
|
+
throw new e("Unsupported character: " + t);
|
|
15435
15437
|
}, yt = function(e, t, n) {
|
|
15436
15438
|
if (O[n][e]) {
|
|
15437
15439
|
var r = O[n][e].replace;
|
|
@@ -15491,7 +15493,8 @@ var gt = [
|
|
|
15491
15493
|
if (h === "main" || !h) return bt(i, Pt("textrm", t.fontWeight, t.fontShape), r, t, a.concat(t.fontWeight, t.fontShape));
|
|
15492
15494
|
var g = Pt(h, t.fontWeight, t.fontShape);
|
|
15493
15495
|
return bt(i, g, r, t, a.concat(g, t.fontWeight, t.fontShape));
|
|
15494
|
-
}
|
|
15496
|
+
}
|
|
15497
|
+
throw Error("unexpected type: " + n + " in makeOrd");
|
|
15495
15498
|
}, wt = (e, t) => {
|
|
15496
15499
|
if (we(e.classes) !== we(t.classes) || e.skew !== t.skew || e.maxFontSize !== t.maxFontSize || e.italic !== 0 && e.hasClass("mathnormal")) return !1;
|
|
15497
15500
|
if (e.classes.length === 1) {
|
|
@@ -15774,7 +15777,7 @@ function G(e) {
|
|
|
15774
15777
|
argTypes: r.argTypes,
|
|
15775
15778
|
allowedInArgument: !!r.allowedInArgument,
|
|
15776
15779
|
allowedInText: !!r.allowedInText,
|
|
15777
|
-
allowedInMath: r.allowedInMath === void 0
|
|
15780
|
+
allowedInMath: r.allowedInMath === void 0 || r.allowedInMath,
|
|
15778
15781
|
numOptionalArgs: r.numOptionalArgs || 0,
|
|
15779
15782
|
infix: !!r.infix,
|
|
15780
15783
|
primitive: !!r.primitive,
|
|
@@ -15799,14 +15802,14 @@ var Kt = function(e) {
|
|
|
15799
15802
|
return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e;
|
|
15800
15803
|
}, K = function(e) {
|
|
15801
15804
|
return e.type === "ordgroup" ? e.body : [e];
|
|
15802
|
-
}, qt = new Set([
|
|
15805
|
+
}, qt = /* @__PURE__ */ new Set([
|
|
15803
15806
|
"leftmost",
|
|
15804
15807
|
"mbin",
|
|
15805
15808
|
"mopen",
|
|
15806
15809
|
"mrel",
|
|
15807
15810
|
"mop",
|
|
15808
15811
|
"mpunct"
|
|
15809
|
-
]), Jt = new Set([
|
|
15812
|
+
]), Jt = /* @__PURE__ */ new Set([
|
|
15810
15813
|
"rightmost",
|
|
15811
15814
|
"mrel",
|
|
15812
15815
|
"mclose",
|
|
@@ -15893,7 +15896,8 @@ var Kt = function(e) {
|
|
|
15893
15896
|
i.height *= a, i.depth *= a;
|
|
15894
15897
|
}
|
|
15895
15898
|
return i;
|
|
15896
|
-
}
|
|
15899
|
+
}
|
|
15900
|
+
throw new e("Got group of unknown type: '" + t.type + "'");
|
|
15897
15901
|
};
|
|
15898
15902
|
function nn(e, t) {
|
|
15899
15903
|
var n = H(["base"], e, t), r = H(["strut"]);
|
|
@@ -15966,7 +15970,7 @@ var Y = class {
|
|
|
15966
15970
|
}
|
|
15967
15971
|
}, on = class {
|
|
15968
15972
|
constructor(e) {
|
|
15969
|
-
this.width = e, e >= .05555 && e <= .05556 ?
|
|
15973
|
+
this.width = e, this.character = e >= .05555 && e <= .05556 ? " " : e >= .1666 && e <= .1667 ? " " : e >= .2222 && e <= .2223 ? " " : e >= .2777 && e <= .2778 ? " " : e >= -.05556 && e <= -.05555 ? " " : e >= -.1667 && e <= -.1666 ? " " : e >= -.2223 && e <= -.2222 ? " " : e >= -.2778 && e <= -.2777 ? " " : null;
|
|
15970
15974
|
}
|
|
15971
15975
|
toNode() {
|
|
15972
15976
|
if (this.character) return document.createTextNode(this.character);
|
|
@@ -15979,7 +15983,7 @@ var Y = class {
|
|
|
15979
15983
|
toText() {
|
|
15980
15984
|
return this.character ? this.character : " ";
|
|
15981
15985
|
}
|
|
15982
|
-
}, sn = new Set(["\\imath", "\\jmath"]), cn = new Set(["mrow", "mtable"]), ln = function(e, t, n) {
|
|
15986
|
+
}, sn = /* @__PURE__ */ new Set(["\\imath", "\\jmath"]), cn = /* @__PURE__ */ new Set(["mrow", "mtable"]), ln = function(e, t, n) {
|
|
15983
15987
|
return O[t][e] && O[t][e].replace && e.charCodeAt(0) !== 55349 && !(et.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = O[t][e].replace), new X(e);
|
|
15984
15988
|
}, un = function(e) {
|
|
15985
15989
|
return e.length === 1 ? e[0] : new Y("mrow", e);
|
|
@@ -16015,10 +16019,12 @@ function fn(e) {
|
|
|
16015
16019
|
if (e.type === "mi" && e.children.length === 1) {
|
|
16016
16020
|
var t = e.children[0];
|
|
16017
16021
|
return t instanceof X && t.text === ".";
|
|
16018
|
-
}
|
|
16022
|
+
}
|
|
16023
|
+
if (e.type === "mo" && e.children.length === 1 && e.getAttribute("separator") === "true" && e.getAttribute("lspace") === "0em" && e.getAttribute("rspace") === "0em") {
|
|
16019
16024
|
var n = e.children[0];
|
|
16020
16025
|
return n instanceof X && n.text === ",";
|
|
16021
|
-
}
|
|
16026
|
+
}
|
|
16027
|
+
return !1;
|
|
16022
16028
|
}
|
|
16023
16029
|
var pn = function(e, t, n) {
|
|
16024
16030
|
if (e.length === 1) {
|
|
@@ -16031,13 +16037,16 @@ var pn = function(e, t, n) {
|
|
|
16031
16037
|
if (s.type === "mtext" && a.type === "mtext" && s.getAttribute("mathvariant") === a.getAttribute("mathvariant")) {
|
|
16032
16038
|
a.children.push(...s.children);
|
|
16033
16039
|
continue;
|
|
16034
|
-
}
|
|
16040
|
+
}
|
|
16041
|
+
if (s.type === "mn" && a.type === "mn") {
|
|
16035
16042
|
a.children.push(...s.children);
|
|
16036
16043
|
continue;
|
|
16037
|
-
}
|
|
16044
|
+
}
|
|
16045
|
+
if (fn(s) && a.type === "mn") {
|
|
16038
16046
|
a.children.push(...s.children);
|
|
16039
16047
|
continue;
|
|
16040
|
-
}
|
|
16048
|
+
}
|
|
16049
|
+
if (s.type === "mn" && fn(a)) s.children = [...a.children, ...s.children], i.pop();
|
|
16041
16050
|
else if ((s.type === "msup" || s.type === "msub") && s.children.length >= 1 && (a.type === "mn" || fn(a))) {
|
|
16042
16051
|
var c = s.children[0];
|
|
16043
16052
|
c instanceof Y && c.type === "mn" && (c.children = [...a.children, ...c.children], i.pop());
|
|
@@ -16552,7 +16561,7 @@ var bn = function(e) {
|
|
|
16552
16561
|
1.75,
|
|
16553
16562
|
716
|
|
16554
16563
|
]
|
|
16555
|
-
}, Dn = new Set([
|
|
16564
|
+
}, Dn = /* @__PURE__ */ new Set([
|
|
16556
16565
|
"widehat",
|
|
16557
16566
|
"widecheck",
|
|
16558
16567
|
"widetilde",
|
|
@@ -16622,42 +16631,41 @@ var bn = function(e) {
|
|
|
16622
16631
|
minWidth: 0,
|
|
16623
16632
|
height: c
|
|
16624
16633
|
};
|
|
16625
|
-
}
|
|
16626
|
-
|
|
16627
|
-
|
|
16628
|
-
|
|
16629
|
-
|
|
16630
|
-
|
|
16631
|
-
|
|
16632
|
-
|
|
16633
|
-
|
|
16634
|
-
|
|
16635
|
-
|
|
16636
|
-
|
|
16637
|
-
|
|
16638
|
-
|
|
16639
|
-
|
|
16640
|
-
|
|
16641
|
-
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
minWidth: p,
|
|
16651
|
-
height: h
|
|
16652
|
-
};
|
|
16653
|
-
S.style.height = D(h), u.push(S);
|
|
16654
|
-
}
|
|
16655
|
-
return {
|
|
16656
|
-
span: H(["stretchy"], u, t),
|
|
16634
|
+
}
|
|
16635
|
+
var u = [], d = En[r], [f, p, m] = d, h = m / 1e3, g = f.length, _, v;
|
|
16636
|
+
if (g === 1) {
|
|
16637
|
+
var y = d[3];
|
|
16638
|
+
_ = ["hide-tail"], v = [y];
|
|
16639
|
+
} else if (g === 2) _ = ["halfarrow-left", "halfarrow-right"], v = ["xMinYMin", "xMaxYMin"];
|
|
16640
|
+
else if (g === 3) _ = [
|
|
16641
|
+
"brace-left",
|
|
16642
|
+
"brace-center",
|
|
16643
|
+
"brace-right"
|
|
16644
|
+
], v = [
|
|
16645
|
+
"xMinYMin",
|
|
16646
|
+
"xMidYMin",
|
|
16647
|
+
"xMaxYMin"
|
|
16648
|
+
];
|
|
16649
|
+
else throw Error("Correct katexImagesData or update code here to support\n " + g + " children.");
|
|
16650
|
+
for (var b = 0; b < g; b++) {
|
|
16651
|
+
var x = new Pe([new Fe(f[b])], {
|
|
16652
|
+
width: "400em",
|
|
16653
|
+
height: D(h),
|
|
16654
|
+
viewBox: "0 0 " + n + " " + m,
|
|
16655
|
+
preserveAspectRatio: v[b] + " slice"
|
|
16656
|
+
}), S = Dt([_[b]], [x], t);
|
|
16657
|
+
if (g === 1) return {
|
|
16658
|
+
span: S,
|
|
16657
16659
|
minWidth: p,
|
|
16658
16660
|
height: h
|
|
16659
16661
|
};
|
|
16662
|
+
S.style.height = D(h), u.push(S);
|
|
16660
16663
|
}
|
|
16664
|
+
return {
|
|
16665
|
+
span: H(["stretchy"], u, t),
|
|
16666
|
+
minWidth: p,
|
|
16667
|
+
height: h
|
|
16668
|
+
};
|
|
16661
16669
|
}
|
|
16662
16670
|
var { span: r, minWidth: i, height: a } = n();
|
|
16663
16671
|
return r.height = a, r.style.height = D(a), i > 0 && (r.style.minWidth = D(i)), r;
|
|
@@ -17506,12 +17514,12 @@ var Qn = function(e, t, n) {
|
|
|
17506
17514
|
}, or = .008, sr = {
|
|
17507
17515
|
type: "kern",
|
|
17508
17516
|
size: -1 * or
|
|
17509
|
-
}, cr = new Set([
|
|
17517
|
+
}, cr = /* @__PURE__ */ new Set([
|
|
17510
17518
|
"|",
|
|
17511
17519
|
"\\lvert",
|
|
17512
17520
|
"\\rvert",
|
|
17513
17521
|
"\\vert"
|
|
17514
|
-
]), lr = new Set([
|
|
17522
|
+
]), lr = /* @__PURE__ */ new Set([
|
|
17515
17523
|
"\\|",
|
|
17516
17524
|
"\\lVert",
|
|
17517
17525
|
"\\rVert",
|
|
@@ -17569,7 +17577,7 @@ var Qn = function(e, t, n) {
|
|
|
17569
17577
|
advanceWidth: u,
|
|
17570
17578
|
ruleWidth: (t.fontMetrics().sqrtRuleThickness + a) * i
|
|
17571
17579
|
};
|
|
17572
|
-
}, hr = new Set([
|
|
17580
|
+
}, hr = /* @__PURE__ */ new Set([
|
|
17573
17581
|
"(",
|
|
17574
17582
|
"\\lparen",
|
|
17575
17583
|
")",
|
|
@@ -17591,7 +17599,7 @@ var Qn = function(e, t, n) {
|
|
|
17591
17599
|
"⌈",
|
|
17592
17600
|
"⌉",
|
|
17593
17601
|
"\\surd"
|
|
17594
|
-
]), gr = new Set([
|
|
17602
|
+
]), gr = /* @__PURE__ */ new Set([
|
|
17595
17603
|
"\\uparrow",
|
|
17596
17604
|
"\\downarrow",
|
|
17597
17605
|
"\\updownarrow",
|
|
@@ -17614,7 +17622,7 @@ var Qn = function(e, t, n) {
|
|
|
17614
17622
|
"\\rmoustache",
|
|
17615
17623
|
"⎰",
|
|
17616
17624
|
"⎱"
|
|
17617
|
-
]), _r = new Set([
|
|
17625
|
+
]), _r = /* @__PURE__ */ new Set([
|
|
17618
17626
|
"<",
|
|
17619
17627
|
">",
|
|
17620
17628
|
"\\langle",
|
|
@@ -17796,7 +17804,7 @@ var Qn = function(e, t, n) {
|
|
|
17796
17804
|
mclass: "mord",
|
|
17797
17805
|
size: 4
|
|
17798
17806
|
}
|
|
17799
|
-
}, Or = new Set(/* @__PURE__ */ "(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.".split(","));
|
|
17807
|
+
}, Or = /* @__PURE__ */ new Set(/* @__PURE__ */ "(,\\lparen,),\\rparen,[,\\lbrack,],\\rbrack,\\{,\\lbrace,\\},\\rbrace,\\lfloor,\\rfloor,⌊,⌋,\\lceil,\\rceil,⌈,⌉,<,>,\\langle,⟨,\\rangle,⟩,\\lt,\\gt,\\lvert,\\rvert,\\lVert,\\rVert,\\lgroup,\\rgroup,⟮,⟯,\\lmoustache,\\rmoustache,⎰,⎱,/,\\backslash,|,\\vert,\\|,\\Vert,\\uparrow,\\Uparrow,\\downarrow,\\Downarrow,\\updownarrow,\\Updownarrow,.".split(","));
|
|
17800
17808
|
function kr(t, n) {
|
|
17801
17809
|
var r = jn(t);
|
|
17802
17810
|
if (r && Or.has(r.text)) return r;
|
|
@@ -18036,9 +18044,7 @@ var jr = (e, t) => {
|
|
|
18036
18044
|
r.setAttribute("style", "border: " + D(i) + " solid " + e.borderColor);
|
|
18037
18045
|
}
|
|
18038
18046
|
break;
|
|
18039
|
-
case "\\xcancel":
|
|
18040
|
-
r.setAttribute("notation", "updiagonalstrike downdiagonalstrike");
|
|
18041
|
-
break;
|
|
18047
|
+
case "\\xcancel": r.setAttribute("notation", "updiagonalstrike downdiagonalstrike");
|
|
18042
18048
|
}
|
|
18043
18049
|
return e.backgroundColor && r.setAttribute("mathbackground", e.backgroundColor), r;
|
|
18044
18050
|
};
|
|
@@ -18201,7 +18207,7 @@ function Rr(e) {
|
|
|
18201
18207
|
}
|
|
18202
18208
|
var zr = (t) => {
|
|
18203
18209
|
if (!t.parser.settings.displayMode) throw new e("{" + t.envName + "} can be used only in display mode.");
|
|
18204
|
-
}, Br = new Set(["gather", "gather*"]);
|
|
18210
|
+
}, Br = /* @__PURE__ */ new Set(["gather", "gather*"]);
|
|
18205
18211
|
function Vr(e) {
|
|
18206
18212
|
if (!e.includes("ed")) return !e.includes("*");
|
|
18207
18213
|
}
|
|
@@ -19670,7 +19676,7 @@ var oi = (e, t, n, r, i, a, o) => {
|
|
|
19670
19676
|
h.style.marginRight = D(a), m.unshift(h);
|
|
19671
19677
|
}
|
|
19672
19678
|
return H(["mop", "op-limits"], m, r);
|
|
19673
|
-
}, si = new Set(["\\smallint"]), ci = (e, t) => {
|
|
19679
|
+
}, si = /* @__PURE__ */ new Set(["\\smallint"]), ci = (e, t) => {
|
|
19674
19680
|
var n, r, i = !1, a;
|
|
19675
19681
|
e.type === "supsub" ? (n = e.sup, r = e.sub, a = Q(e.base, "op"), i = !0) : a = Q(e, "op");
|
|
19676
19682
|
var o = t.style, s = !1;
|
|
@@ -20227,7 +20233,8 @@ G({
|
|
|
20227
20233
|
elem: p
|
|
20228
20234
|
}]
|
|
20229
20235
|
})]), d], t);
|
|
20230
|
-
}
|
|
20236
|
+
}
|
|
20237
|
+
return H(["mord", "sqrt"], [d], t);
|
|
20231
20238
|
},
|
|
20232
20239
|
mathmlBuilder(e, t) {
|
|
20233
20240
|
var { body: n, index: r } = e;
|
|
@@ -20420,9 +20427,11 @@ Gt({
|
|
|
20420
20427
|
if (t.mode === "text") {
|
|
20421
20428
|
var i = Ct(t, n, "textord");
|
|
20422
20429
|
return i.classes.push(r), i;
|
|
20423
|
-
}
|
|
20424
|
-
|
|
20425
|
-
|
|
20430
|
+
}
|
|
20431
|
+
return H(["mspace", r], [xt(t.text, t.mode, n)], n);
|
|
20432
|
+
}
|
|
20433
|
+
if (vi.hasOwnProperty(t.text)) return H(["mspace", vi[t.text]], [], n);
|
|
20434
|
+
throw new e("Unknown type of space \"" + t.text + "\"");
|
|
20426
20435
|
},
|
|
20427
20436
|
mathmlBuilder(t, n) {
|
|
20428
20437
|
var r;
|
|
@@ -20809,7 +20818,7 @@ var Bi = {
|
|
|
20809
20818
|
"\\iiiint": "\\dotsi",
|
|
20810
20819
|
"\\idotsint": "\\dotsi",
|
|
20811
20820
|
"\\DOTSX": "\\dotsx"
|
|
20812
|
-
}, Vi = new Set(["bin", "rel"]);
|
|
20821
|
+
}, Vi = /* @__PURE__ */ new Set(["bin", "rel"]);
|
|
20813
20822
|
$("\\dots", function(e) {
|
|
20814
20823
|
var t = "\\dotso", n = e.expandAfterFuture().text;
|
|
20815
20824
|
return n in Bi ? t = Bi[n] : (n.slice(0, 4) === "\\not" || n in O.math && Vi.has(O.math[n].group)) && (t = "\\dotsb"), t;
|
|
@@ -21583,7 +21592,8 @@ var Gi = {
|
|
|
21583
21592
|
t[n],
|
|
21584
21593
|
s
|
|
21585
21594
|
], []) : this.callFunction(r, [o, s], [])];
|
|
21586
|
-
}
|
|
21595
|
+
}
|
|
21596
|
+
return t;
|
|
21587
21597
|
}
|
|
21588
21598
|
handleSupSubscript(t) {
|
|
21589
21599
|
var n = this.fetch(), r = n.text;
|
|
@@ -21922,7 +21932,7 @@ var Gi = {
|
|
|
21922
21932
|
return o;
|
|
21923
21933
|
}
|
|
21924
21934
|
};
|
|
21925
|
-
Zi.endOfExpression = new Set([
|
|
21935
|
+
Zi.endOfExpression = /* @__PURE__ */ new Set([
|
|
21926
21936
|
"}",
|
|
21927
21937
|
"\\endgroup",
|
|
21928
21938
|
"\\end",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as e } from "./chunk-GEFDOKGD-
|
|
2
|
-
import { n as t, t as n } from "./path-
|
|
3
|
-
import { t as r } from "./array-
|
|
1
|
+
import { O as e } from "./chunk-GEFDOKGD-BEzc6NZw.js";
|
|
2
|
+
import { n as t, t as n } from "./path-CqWAdh69.js";
|
|
3
|
+
import { t as r } from "./array-CApNbSU9.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/d3-shape@3.2.0/node_modules/d3-shape/src/point.js
|
|
5
5
|
function i(e) {
|
|
6
6
|
return e[0];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as e, n as t, o as n, r, t as i } from "./src-
|
|
2
|
-
import { i as a, n as o, r as s, t as c } from "./defaultLocale-
|
|
3
|
-
import { t as l } from "./init-
|
|
1
|
+
import { l as e, n as t, o as n, r, t as i } from "./src-Dynw_Lub.js";
|
|
2
|
+
import { i as a, n as o, r as s, t as c } from "./defaultLocale-yzzuPw6P.js";
|
|
3
|
+
import { t as l } from "./init-sjaVZO3f.js";
|
|
4
4
|
//#region ../../node_modules/.pnpm/d3-array@3.2.4/node_modules/d3-array/src/ascending.js
|
|
5
5
|
function u(e, t) {
|
|
6
6
|
return e == null || t == null ? NaN : e < t ? -1 : e > t ? 1 : e >= t ? 0 : NaN;
|
|
@@ -250,9 +250,7 @@ function G(e, t, n, r) {
|
|
|
250
250
|
r.precision == null && !isNaN(a = N(i, Math.max(Math.abs(e), Math.abs(t)))) && (r.precision = a - (r.type === "e"));
|
|
251
251
|
break;
|
|
252
252
|
case "f":
|
|
253
|
-
case "%":
|
|
254
|
-
r.precision == null && !isNaN(a = j(i)) && (r.precision = a - (r.type === "%") * 2);
|
|
255
|
-
break;
|
|
253
|
+
case "%": r.precision == null && !isNaN(a = j(i)) && (r.precision = a - (r.type === "%") * 2);
|
|
256
254
|
}
|
|
257
255
|
return c(r);
|
|
258
256
|
}
|
|
@@ -0,0 +1,259 @@
|
|
|
1
|
+
import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, t as m, u as h } from "./chunk-XZSTWKYB-DYKLwCEy.js";
|
|
2
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-R5LLSJPH.mjs
|
|
3
|
+
var g = class extends m {
|
|
4
|
+
static {
|
|
5
|
+
r(this, "ArchitectureTokenBuilder");
|
|
6
|
+
}
|
|
7
|
+
constructor() {
|
|
8
|
+
super(["architecture"]);
|
|
9
|
+
}
|
|
10
|
+
}, _ = class extends l {
|
|
11
|
+
static {
|
|
12
|
+
r(this, "ArchitectureValueConverter");
|
|
13
|
+
}
|
|
14
|
+
runCustomConverter(e, t, n) {
|
|
15
|
+
if (e.name === "ARCH_ICON") return t.replace(/[()]/g, "").trim();
|
|
16
|
+
if (e.name === "ARCH_TEXT_ICON") return t.replace(/["()]/g, "");
|
|
17
|
+
if (e.name === "ARCH_TITLE") {
|
|
18
|
+
let e = t.replace(/^\[|]$/g, "").trim();
|
|
19
|
+
return (e.startsWith("\"") && e.endsWith("\"") || e.startsWith("'") && e.endsWith("'")) && (e = e.slice(1, -1), e = e.replace(/\\"/g, "\"").replace(/\\'/g, "'")), e.trim();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}, v = { parser: {
|
|
23
|
+
TokenBuilder: /* @__PURE__ */ r(() => new g(), "TokenBuilder"),
|
|
24
|
+
ValueConverter: /* @__PURE__ */ r(() => new _(), "ValueConverter")
|
|
25
|
+
} };
|
|
26
|
+
function y(e = d) {
|
|
27
|
+
let t = c(i(e), p), n = c(a({ shared: t }), f, v);
|
|
28
|
+
return t.ServiceRegistry.register(n), {
|
|
29
|
+
shared: t,
|
|
30
|
+
Architecture: n
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
r(y, "createArchitectureServices");
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-7E7YKBS2.mjs
|
|
36
|
+
var b = class extends m {
|
|
37
|
+
static {
|
|
38
|
+
r(this, "GitGraphTokenBuilder");
|
|
39
|
+
}
|
|
40
|
+
constructor() {
|
|
41
|
+
super(["gitGraph"]);
|
|
42
|
+
}
|
|
43
|
+
}, x = { parser: {
|
|
44
|
+
TokenBuilder: /* @__PURE__ */ r(() => new b(), "TokenBuilder"),
|
|
45
|
+
ValueConverter: /* @__PURE__ */ r(() => new o(), "ValueConverter")
|
|
46
|
+
} };
|
|
47
|
+
function S(t = d) {
|
|
48
|
+
let n = c(i(t), p), r = c(a({ shared: n }), e, x);
|
|
49
|
+
return n.ServiceRegistry.register(r), {
|
|
50
|
+
shared: n,
|
|
51
|
+
GitGraph: r
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
r(S, "createGitGraphServices");
|
|
55
|
+
//#endregion
|
|
56
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-EGIJ26TM.mjs
|
|
57
|
+
var C = class extends m {
|
|
58
|
+
static {
|
|
59
|
+
r(this, "InfoTokenBuilder");
|
|
60
|
+
}
|
|
61
|
+
constructor() {
|
|
62
|
+
super(["info", "showInfo"]);
|
|
63
|
+
}
|
|
64
|
+
}, w = { parser: {
|
|
65
|
+
TokenBuilder: /* @__PURE__ */ r(() => new C(), "TokenBuilder"),
|
|
66
|
+
ValueConverter: /* @__PURE__ */ r(() => new o(), "ValueConverter")
|
|
67
|
+
} };
|
|
68
|
+
function T(e = d) {
|
|
69
|
+
let t = c(i(e), p), n = c(a({ shared: t }), u, w);
|
|
70
|
+
return t.ServiceRegistry.register(n), {
|
|
71
|
+
shared: t,
|
|
72
|
+
Info: n
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
r(T, "createInfoServices");
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-C72U2L5F.mjs
|
|
78
|
+
var E = class extends m {
|
|
79
|
+
static {
|
|
80
|
+
r(this, "PacketTokenBuilder");
|
|
81
|
+
}
|
|
82
|
+
constructor() {
|
|
83
|
+
super(["packet"]);
|
|
84
|
+
}
|
|
85
|
+
}, D = { parser: {
|
|
86
|
+
TokenBuilder: /* @__PURE__ */ r(() => new E(), "TokenBuilder"),
|
|
87
|
+
ValueConverter: /* @__PURE__ */ r(() => new o(), "ValueConverter")
|
|
88
|
+
} };
|
|
89
|
+
function O(e = d) {
|
|
90
|
+
let n = c(i(e), p), r = c(a({ shared: n }), t, D);
|
|
91
|
+
return n.ServiceRegistry.register(r), {
|
|
92
|
+
shared: n,
|
|
93
|
+
Packet: r
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
r(O, "createPacketServices");
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-XIRO2GV7.mjs
|
|
99
|
+
var k = class extends m {
|
|
100
|
+
static {
|
|
101
|
+
r(this, "PieTokenBuilder");
|
|
102
|
+
}
|
|
103
|
+
constructor() {
|
|
104
|
+
super(["pie", "showData"]);
|
|
105
|
+
}
|
|
106
|
+
}, A = class extends l {
|
|
107
|
+
static {
|
|
108
|
+
r(this, "PieValueConverter");
|
|
109
|
+
}
|
|
110
|
+
runCustomConverter(e, t, n) {
|
|
111
|
+
if (e.name === "PIE_SECTION_LABEL") return t.replace(/"/g, "").trim();
|
|
112
|
+
}
|
|
113
|
+
}, j = { parser: {
|
|
114
|
+
TokenBuilder: /* @__PURE__ */ r(() => new k(), "TokenBuilder"),
|
|
115
|
+
ValueConverter: /* @__PURE__ */ r(() => new A(), "ValueConverter")
|
|
116
|
+
} };
|
|
117
|
+
function M(e = d) {
|
|
118
|
+
let t = c(i(e), p), n = c(a({ shared: t }), s, j);
|
|
119
|
+
return t.ServiceRegistry.register(n), {
|
|
120
|
+
shared: t,
|
|
121
|
+
Pie: n
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
r(M, "createPieServices");
|
|
125
|
+
//#endregion
|
|
126
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-L3YUKLVL.mjs
|
|
127
|
+
var N = class extends m {
|
|
128
|
+
static {
|
|
129
|
+
r(this, "RadarTokenBuilder");
|
|
130
|
+
}
|
|
131
|
+
constructor() {
|
|
132
|
+
super(["radar-beta"]);
|
|
133
|
+
}
|
|
134
|
+
}, P = { parser: {
|
|
135
|
+
TokenBuilder: /* @__PURE__ */ r(() => new N(), "TokenBuilder"),
|
|
136
|
+
ValueConverter: /* @__PURE__ */ r(() => new o(), "ValueConverter")
|
|
137
|
+
} };
|
|
138
|
+
function F(e = d) {
|
|
139
|
+
let t = c(i(e), p), n = c(a({ shared: t }), h, P);
|
|
140
|
+
return t.ServiceRegistry.register(n), {
|
|
141
|
+
shared: t,
|
|
142
|
+
Radar: n
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
r(F, "createRadarServices");
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/chunks/mermaid-parser.core/chunk-OZEHJAEY.mjs
|
|
148
|
+
var I = class extends m {
|
|
149
|
+
static {
|
|
150
|
+
r(this, "TreemapTokenBuilder");
|
|
151
|
+
}
|
|
152
|
+
constructor() {
|
|
153
|
+
super(["treemap"]);
|
|
154
|
+
}
|
|
155
|
+
}, L = /classDef\s+([A-Z_a-z]\w+)(?:\s+([^\n\r;]*))?;?/, R = class extends l {
|
|
156
|
+
static {
|
|
157
|
+
r(this, "TreemapValueConverter");
|
|
158
|
+
}
|
|
159
|
+
runCustomConverter(e, t, n) {
|
|
160
|
+
if (e.name === "NUMBER2") return parseFloat(t.replace(/,/g, ""));
|
|
161
|
+
if (e.name === "SEPARATOR" || e.name === "STRING2") return t.substring(1, t.length - 1);
|
|
162
|
+
if (e.name === "INDENTATION") return t.length;
|
|
163
|
+
if (e.name === "ClassDef") {
|
|
164
|
+
if (typeof t != "string") return t;
|
|
165
|
+
let e = L.exec(t);
|
|
166
|
+
if (e) return {
|
|
167
|
+
$type: "ClassDefStatement",
|
|
168
|
+
className: e[1],
|
|
169
|
+
styleText: e[2] || void 0
|
|
170
|
+
};
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
};
|
|
174
|
+
function z(e) {
|
|
175
|
+
let t = e.validation.TreemapValidator, n = e.validation.ValidationRegistry;
|
|
176
|
+
if (n) {
|
|
177
|
+
let e = { Treemap: t.checkSingleRoot.bind(t) };
|
|
178
|
+
n.register(e, t);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
r(z, "registerValidationChecks");
|
|
182
|
+
var B = class {
|
|
183
|
+
static {
|
|
184
|
+
r(this, "TreemapValidator");
|
|
185
|
+
}
|
|
186
|
+
checkSingleRoot(e, t) {
|
|
187
|
+
let n;
|
|
188
|
+
for (let r of e.TreemapRows) r.item && (n === void 0 && r.indent === void 0 ? n = 0 : (r.indent === void 0 || n !== void 0 && n >= parseInt(r.indent, 10)) && t("error", "Multiple root nodes are not allowed in a treemap.", {
|
|
189
|
+
node: r,
|
|
190
|
+
property: "item"
|
|
191
|
+
}));
|
|
192
|
+
}
|
|
193
|
+
}, V = {
|
|
194
|
+
parser: {
|
|
195
|
+
TokenBuilder: /* @__PURE__ */ r(() => new I(), "TokenBuilder"),
|
|
196
|
+
ValueConverter: /* @__PURE__ */ r(() => new R(), "ValueConverter")
|
|
197
|
+
},
|
|
198
|
+
validation: { TreemapValidator: /* @__PURE__ */ r(() => new B(), "TreemapValidator") }
|
|
199
|
+
};
|
|
200
|
+
function H(e = d) {
|
|
201
|
+
let t = c(i(e), p), r = c(a({ shared: t }), n, V);
|
|
202
|
+
return t.ServiceRegistry.register(r), z(r), {
|
|
203
|
+
shared: t,
|
|
204
|
+
Treemap: r
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
r(H, "createTreemapServices");
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region ../../node_modules/.pnpm/@mermaid-js+parser@1.0.1/node_modules/@mermaid-js/parser/dist/mermaid-parser.core.mjs
|
|
210
|
+
var U = {}, W = {
|
|
211
|
+
info: /* @__PURE__ */ r(async () => {
|
|
212
|
+
let { createInfoServices: e } = await import("./info-3K5VOQVL-0F-ZLEMx.js");
|
|
213
|
+
U.info = e().Info.parser.LangiumParser;
|
|
214
|
+
}, "info"),
|
|
215
|
+
packet: /* @__PURE__ */ r(async () => {
|
|
216
|
+
let { createPacketServices: e } = await import("./packet-RMMSAZCW-CeqtQQ_e.js");
|
|
217
|
+
U.packet = e().Packet.parser.LangiumParser;
|
|
218
|
+
}, "packet"),
|
|
219
|
+
pie: /* @__PURE__ */ r(async () => {
|
|
220
|
+
let { createPieServices: e } = await import("./pie-UPGHQEXC-BI60FhK4.js");
|
|
221
|
+
U.pie = e().Pie.parser.LangiumParser;
|
|
222
|
+
}, "pie"),
|
|
223
|
+
architecture: /* @__PURE__ */ r(async () => {
|
|
224
|
+
let { createArchitectureServices: e } = await import("./architecture-PBZL5I3N-BRGGaMu3.js");
|
|
225
|
+
U.architecture = e().Architecture.parser.LangiumParser;
|
|
226
|
+
}, "architecture"),
|
|
227
|
+
gitGraph: /* @__PURE__ */ r(async () => {
|
|
228
|
+
let { createGitGraphServices: e } = await import("./gitGraph-HDMCJU4V-oForq_Vw.js");
|
|
229
|
+
U.gitGraph = e().GitGraph.parser.LangiumParser;
|
|
230
|
+
}, "gitGraph"),
|
|
231
|
+
radar: /* @__PURE__ */ r(async () => {
|
|
232
|
+
let { createRadarServices: e } = await import("./radar-KQ55EAFF-CRwOOFw0.js");
|
|
233
|
+
U.radar = e().Radar.parser.LangiumParser;
|
|
234
|
+
}, "radar"),
|
|
235
|
+
treemap: /* @__PURE__ */ r(async () => {
|
|
236
|
+
let { createTreemapServices: e } = await import("./treemap-KZPCXAKY-BlOAFUbR.js");
|
|
237
|
+
U.treemap = e().Treemap.parser.LangiumParser;
|
|
238
|
+
}, "treemap")
|
|
239
|
+
};
|
|
240
|
+
async function G(e, t) {
|
|
241
|
+
let n = W[e];
|
|
242
|
+
if (!n) throw Error(`Unknown diagram type: ${e}`);
|
|
243
|
+
U[e] || await n();
|
|
244
|
+
let r = U[e].parse(t);
|
|
245
|
+
if (r.lexerErrors.length > 0 || r.parserErrors.length > 0) throw new K(r);
|
|
246
|
+
return r.value;
|
|
247
|
+
}
|
|
248
|
+
r(G, "parse");
|
|
249
|
+
var K = class extends Error {
|
|
250
|
+
constructor(e) {
|
|
251
|
+
let t = e.lexerErrors.map((e) => `Lexer error on line ${e.line !== void 0 && !isNaN(e.line) ? e.line : "?"}, column ${e.column !== void 0 && !isNaN(e.column) ? e.column : "?"}: ${e.message}`).join("\n"), n = e.parserErrors.map((e) => `Parse error on line ${e.token.startLine !== void 0 && !isNaN(e.token.startLine) ? e.token.startLine : "?"}, column ${e.token.startColumn !== void 0 && !isNaN(e.token.startColumn) ? e.token.startColumn : "?"}: ${e.message}`).join("\n");
|
|
252
|
+
super(`Parsing failed: ${t} ${n}`), this.result = e;
|
|
253
|
+
}
|
|
254
|
+
static {
|
|
255
|
+
r(this, "MermaidParseError");
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
//#endregion
|
|
259
|
+
export { F as a, D as c, T as d, x as f, y as h, P as i, O as l, v as m, V as n, j as o, S as p, H as r, M as s, G as t, w as u };
|