@layers-app/editor 0.7.46 → 0.7.48
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/README.md +840 -830
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +8 -14
- package/dist/index.js +4 -4
- package/dist/layers.-XXFcZ-Q.js +33 -0
- package/dist/layers.3jBLdifJ.js +38 -0
- package/dist/layers.48nWXuMb.js +504 -0
- package/dist/layers.4NkfZAG8.js +39 -0
- package/dist/layers.52famHy6.js +1 -0
- package/dist/layers.6JZIYhnG.js +21941 -0
- package/dist/layers.7JqFgE4-.js +15 -0
- package/dist/layers.8I_XubBt.js +1 -0
- package/dist/layers.8L97LNWM.js +116 -0
- package/dist/layers.9Ei77wJG.js +40 -0
- package/dist/layers.9pNaFvaX.js +1 -0
- package/dist/layers.9vsoRdca.js +7 -0
- package/dist/layers.B19hGmey.js +1 -0
- package/dist/layers.B2hK-O3y.js +40 -0
- package/dist/layers.B3D4g2HH.js +1 -0
- package/dist/layers.B3ebXuRR.js +22 -0
- package/dist/layers.B4eocW2U.js +1 -0
- package/dist/layers.B7K7JjK6.js +1510 -0
- package/dist/layers.B9jC1uEF.js +9 -0
- package/dist/layers.B9vco1Tm.js +42 -0
- package/dist/layers.BAdbzzKU.js +11 -0
- package/dist/layers.BAtv1CM7.js +1 -0
- package/dist/layers.BAxiKghG.js +65 -0
- package/dist/layers.BCmyFF5n.js +8 -0
- package/dist/layers.BDlIrLZ6.js +40 -0
- package/dist/layers.BE1X7OZN.js +9 -0
- package/dist/layers.BE5c8LWk.js +4 -0
- package/dist/layers.BEXIxuBF.js +10 -0
- package/dist/layers.BFRwalLF.js +39 -0
- package/dist/layers.BFl0k28S.js +6 -0
- package/dist/layers.BGNKNfpx.js +1225 -0
- package/dist/layers.BHGjfW2R.js +907 -0
- package/dist/layers.BHstW68e.js +2238 -0
- package/dist/layers.BIeVwYKL.js +1 -0
- package/dist/layers.BJDrjORS.js +244 -0
- package/dist/layers.BKqs5g_B.js +51 -0
- package/dist/layers.BKutBTDw.js +41 -0
- package/dist/layers.BLa-XNid.js +84 -0
- package/dist/layers.BLd2spTm.js +1 -0
- package/dist/layers.BLqn32Nb.js +41 -0
- package/dist/layers.BM2O77Wh.js +425 -0
- package/dist/layers.BOm3l9Y2.js +8 -0
- package/dist/layers.BPwJ27pe.js +1268 -0
- package/dist/layers.BRWktvhi.js +7 -0
- package/dist/layers.BRbQRhez.js +9 -0
- package/dist/layers.BSTBZrFn.js +1 -0
- package/dist/{layers.NW1lST7i.js → layers.BSgSDW2J.js} +1 -1
- package/dist/layers.BTYE7zXl.js +32 -0
- package/dist/layers.BW7u2_1T.js +772 -0
- package/dist/layers.BXVqLjUh.js +1126 -0
- package/dist/layers.BXwHF1c0.js +1 -0
- package/dist/layers.BYA27mAA.js +10 -0
- package/dist/layers.BZO72u-D.js +1 -0
- package/dist/layers.BZbUfGYp.js +6 -0
- package/dist/layers.BbCfEXyj.js +55 -0
- package/dist/layers.BdBmAIrs.js +76 -0
- package/dist/layers.BeIBKBJG.js +11 -0
- package/dist/layers.BjauJJl_.js +42 -0
- package/dist/layers.Bkv-oShk.js +39 -0
- package/dist/layers.Bl4j3Wpr.js +10 -0
- package/dist/layers.Bm3vF-Ge.js +10 -0
- package/dist/layers.Bp-6Ampr.js +7 -0
- package/dist/layers.Bp180gHt.js +2966 -0
- package/dist/layers.Bp2T5L9r.js +21620 -0
- package/dist/layers.BpilXLfW.js +6 -0
- package/dist/{layers.Cfvta__C.js → layers.BrFRnEbi.js} +1 -1
- package/dist/layers.BsoRVzDP.js +806 -0
- package/dist/layers.BtPwy6-y.js +10 -0
- package/dist/layers.BtYjjZLM.js +38 -0
- package/dist/layers.BvhD2Hex.js +41 -0
- package/dist/layers.By9AhVvm.js +42 -0
- package/dist/layers.Bz2bAm_o.js +32 -0
- package/dist/layers.C-9tvKsH.js +2 -0
- package/dist/layers.C239vlHa.js +1583 -0
- package/dist/layers.C4DDZaZs.js +36 -0
- package/dist/layers.C5kfbdNQ.js +796 -0
- package/dist/layers.C8_lu5UH.js +23 -0
- package/dist/layers.CAo4nRSe.js +37 -0
- package/dist/layers.CCNu5Rkf.js +1 -0
- package/dist/layers.CCqA6oPh.js +5 -0
- package/dist/layers.CFKLwcKm.js +5 -0
- package/dist/layers.CFSawE7c.js +8 -0
- package/dist/layers.CFs5s8T3.js +52 -0
- package/dist/layers.CGoSj1av.js +1286 -0
- package/dist/layers.CH7sIJoO.js +37 -0
- package/dist/layers.CHZsXQcr.js +1 -0
- package/dist/layers.CI9mIisM.js +257 -0
- package/dist/layers.CJFGEsgQ.js +40 -0
- package/dist/layers.CJb1-QAi.js +7 -0
- package/dist/layers.CKTftm3f.js +2 -0
- package/dist/layers.CM9U_WY6.js +304 -0
- package/dist/layers.CMiTJnad.js +8 -0
- package/dist/layers.CNfAcY6Y.js +1 -0
- package/dist/layers.COeBHfJh.js +1 -0
- package/dist/layers.CPkIaDFg.js +39 -0
- package/dist/layers.CRYQyJW8.js +39 -0
- package/dist/layers.CRxZsox1.js +1 -0
- package/dist/layers.CTAkgg4R.js +1619 -0
- package/dist/layers.CU6rRFWz.js +1 -0
- package/dist/layers.CUuGcjpi.js +32 -0
- package/dist/layers.CVuk5gp9.js +84 -0
- package/dist/layers.CW3RPoeB.js +1089 -0
- package/dist/layers.CX1TPIiJ.js +805 -0
- package/dist/layers.CXmM9Bvj.js +10 -0
- package/dist/layers.CYHiWIYN.js +373 -0
- package/dist/layers.CZpHZoB0.js +9 -0
- package/dist/layers.C_8cg569.js +8 -0
- package/dist/layers.C_H8CF1f.js +44 -0
- package/dist/layers.C_IvrzZ3.js +7 -0
- package/dist/layers.C_Z4dR-0.js +39 -0
- package/dist/layers.C_poBEYa.js +10 -0
- package/dist/layers.CaPMI1KH.js +139 -0
- package/dist/layers.CbWg4Qj_.js +1 -0
- package/dist/layers.CcZMrh49.js +41 -0
- package/dist/layers.CefLOoC8.js +10 -0
- package/dist/layers.CfGk77zR.js +1 -0
- package/dist/layers.CitJ-LcP.js +1 -0
- package/dist/layers.Ckdux2po.js +48149 -0
- package/dist/layers.Cl2CJFNx.js +35 -0
- package/dist/layers.ClLKdjmI.js +39 -0
- package/dist/layers.ClVfKZ9h.js +1 -0
- package/dist/layers.CmF7I89w.js +32 -0
- package/dist/layers.Cn30_EV4.js +14 -0
- package/dist/layers.CnmwOTKT.js +295 -0
- package/dist/layers.CqHFUbCh.js +122 -0
- package/dist/layers.CqVTtuYm.js +6 -0
- package/dist/layers.Ct7Z5o-U.js +7 -0
- package/dist/layers.CtAhktPZ.js +1 -0
- package/dist/layers.Ctocb96g.js +1 -0
- package/dist/layers.Cu_3bkpd.js +207 -0
- package/dist/layers.CvFNr8Uu.js +61 -0
- package/dist/layers.Cye7d0Ye.js +35 -0
- package/dist/layers.Cyzu9PKQ.js +1 -0
- package/dist/layers.CzBOl45X.js +5 -0
- package/dist/layers.CzP0RBWK.js +139 -0
- package/dist/layers.D0dYIayl.js +1 -0
- package/dist/layers.D0zn4_Mx.js +1 -0
- package/dist/layers.D4T8fTcj.js +1223 -0
- package/dist/layers.D5T2vOzx.js +223 -0
- package/dist/layers.D5n5uB-V.js +35 -0
- package/dist/layers.D6CzgZCn.js +6 -0
- package/dist/layers.D7jGxypv.js +8 -0
- package/dist/layers.D8gdqeYc.js +213 -0
- package/dist/layers.D9Q1WK3D.js +32 -0
- package/dist/layers.DBYWjvtj.js +8 -0
- package/dist/layers.DBmtL6ZZ.js +41 -0
- package/dist/layers.DEjh8HqA.js +32 -0
- package/dist/layers.DHWPE8JP.js +37 -0
- package/dist/layers.DHoGHrwb.js +437 -0
- package/dist/layers.DIa1shbs.js +9 -0
- package/dist/{layers.Hq0pIRX3.js → layers.DIhuprWj.js} +21 -21
- package/dist/layers.DJ64BwjI.js +5 -0
- package/dist/layers.DJYCnlhb.js +40 -0
- package/dist/layers.DJuBjYUv.js +1 -0
- package/dist/layers.DL2VBsfE.js +2 -0
- package/dist/layers.DL3G4Rrb.js +41 -0
- package/dist/layers.DLwuMfdd.js +84 -0
- package/dist/layers.DMQHD7SZ.js +1 -0
- package/dist/layers.DMkBISW1.js +1 -0
- package/dist/layers.DN9HoVxI.js +18 -0
- package/dist/layers.DOq-L3gG.js +40 -0
- package/dist/layers.DOrgOHBr.js +1 -0
- package/dist/layers.DQ3x1v0k.js +934 -0
- package/dist/layers.DQD1IQ6W.js +1034 -0
- package/dist/layers.DR3nuNQY.js +271 -0
- package/dist/layers.DSMzl4c7.js +160 -0
- package/dist/layers.DSXwzG0l.js +7 -0
- package/dist/layers.DUGRqDUB.js +8583 -0
- package/dist/layers.DUWcbGsB.js +2482 -0
- package/dist/layers.DXWOVogE.js +40 -0
- package/dist/layers.DbRchKwe.js +8 -0
- package/dist/layers.DbaKVP5e.js +1 -0
- package/dist/layers.DcGOrQq5.js +39 -0
- package/dist/layers.Df7-26ey.js +189 -0
- package/dist/layers.Dfl1_GY-.js +40 -0
- package/dist/layers.DhkSgCGH.js +36 -0
- package/dist/layers.DhlqqsI-.js +9 -0
- package/dist/layers.DiHUvl0o.js +423 -0
- package/dist/layers.Dj-z0EfD.js +5 -0
- package/dist/layers.DjUOC4st.js +16 -0
- package/dist/layers.DjzsPlhY.js +70 -0
- package/dist/layers.DnNdcruU.js +9 -0
- package/dist/layers.DnRoER-T.js +11 -0
- package/dist/layers.DngDRzM2.js +10 -0
- package/dist/layers.Dop4IJqp.js +7 -0
- package/dist/layers.Dpw_9ymJ.js +34 -0
- package/dist/layers.DqkMTScX.js +40 -0
- package/dist/layers.Ds-YCD3f.js +38 -0
- package/dist/layers.DsQYlSSa.js +40 -0
- package/dist/layers.DsjBnsF_.js +42 -0
- package/dist/layers.Dsyqs-lC.js +11 -0
- package/dist/layers.DtEAEu5Y.js +1 -0
- package/dist/layers.DvEpZu0k.js +794 -0
- package/dist/layers.DwKuuHvW.js +4 -0
- package/dist/layers.DwrUaEvN.js +13 -0
- package/dist/layers.DxA6ocdw.js +70 -0
- package/dist/layers.Dy1naDTQ.js +14 -0
- package/dist/layers.E-_P3Hgt.js +4 -0
- package/dist/layers.E2Pg6Xkc.js +3 -0
- package/dist/{layers.B88sQYuh.js → layers.G1XGzBxR.js} +1 -1
- package/dist/layers.JWCLFILJ.js +1 -0
- package/dist/layers.KFn2whtk.js +9 -0
- package/dist/layers.LiJvf-Xh.js +11 -0
- package/dist/layers.OxWb2lcf.js +9 -0
- package/dist/layers.QOZfLJOU.js +205 -0
- package/dist/layers.R3a4GOcm.js +39 -0
- package/dist/layers.R8OXBVYp.js +1 -0
- package/dist/layers.R8mPlCA0.js +261 -0
- package/dist/layers.RZvZoVxE.js +9 -0
- package/dist/layers.SdU27KL4.js +42 -0
- package/dist/layers.Umldr18w.js +198 -0
- package/dist/layers.Upsmcdyi.js +33 -0
- package/dist/layers._beiaL7T.js +1 -0
- package/dist/layers._d6q9aen.js +10 -0
- package/dist/layers.a_6-TFT0.js +6 -0
- package/dist/layers.b0h5ZBmD.js +61 -0
- package/dist/{layers.CsQlovyR.js → layers.b9B2NY7n.js} +1950 -2191
- package/dist/layers.bdZaUQNB.js +41 -0
- package/dist/layers.fCcqSwty.js +8 -0
- package/dist/layers.fldW-Ogr.js +30328 -0
- package/dist/layers.i2bcEL4B.js +41 -0
- package/dist/layers.iSx5HVBW.js +37 -0
- package/dist/layers.lCpg7dOn.js +21 -0
- package/dist/layers.lY3SrA49.js +6 -0
- package/dist/layers.lgAtpBQI.js +7 -0
- package/dist/layers.my0yWZmR.js +8 -0
- package/dist/layers.n5OStkpA.js +1088 -0
- package/dist/layers.orP2yP91.js +96 -0
- package/dist/layers.ovEMwqYP.js +36 -0
- package/dist/layers.q8HcJw1z.js +8 -0
- package/dist/layers.qaJdLFHI.js +118 -0
- package/dist/layers.rUzSMgAT.js +6 -0
- package/dist/layers.rddzpnjy.js +323 -0
- package/dist/layers.sHJHq9SR.js +1 -0
- package/dist/layers.tjc2yfO8.js +36 -0
- package/dist/layers.vO27jqdn.js +4 -0
- package/dist/layers.yZYCg_En.js +960 -0
- package/dist/layers.zF6RU9h5.js +1 -0
- package/package.json +166 -160
- package/dist/layers.BgMykHnn.js +0 -154
- package/dist/layers.BtvuN20E.js +0 -27618
- package/dist/layers.Ct1ojjl3.js +0 -1
- package/dist/layers.JT_kEFH5.js +0 -129
- package/dist/layers.pwc3O6Es.js +0 -261
|
@@ -0,0 +1,271 @@
|
|
|
1
|
+
import { s as P, d as N, p as W } from "./layers.yZYCg_En.js";
|
|
2
|
+
import { g as t, d as H, l as b, e as R, j as T, r as v, u as U } from "./layers.DUGRqDUB.js";
|
|
3
|
+
import "lodash-es";
|
|
4
|
+
import { l as C } from "./layers.D4T8fTcj.js";
|
|
5
|
+
import { G as F } from "./layers.BJDrjORS.js";
|
|
6
|
+
import "./layers.Bp2T5L9r.js";
|
|
7
|
+
import "lodash-es/memoize.js";
|
|
8
|
+
import "lodash-es/merge.js";
|
|
9
|
+
import "lodash-es/isEmpty.js";
|
|
10
|
+
import { l as $ } from "./layers.Upsmcdyi.js";
|
|
11
|
+
const O = (e) => e.append("circle").attr("class", "start-state").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit).attr("cy", t().state.padding + t().state.sizeUnit), X = (e) => e.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", t().state.textHeight).attr("class", "divider").attr("x2", t().state.textHeight * 2).attr("y1", 0).attr("y2", 0), J = (e, i) => {
|
|
12
|
+
const o = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 2 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), c = o.node().getBBox();
|
|
13
|
+
return e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", c.width + 2 * t().state.padding).attr("height", c.height + 2 * t().state.padding).attr("rx", t().state.radius), o;
|
|
14
|
+
}, Y = (e, i) => {
|
|
15
|
+
const o = function(l, m, w) {
|
|
16
|
+
const E = l.append("tspan").attr("x", 2 * t().state.padding).text(m);
|
|
17
|
+
w || E.attr("dy", t().state.textHeight);
|
|
18
|
+
}, s = e.append("text").attr("x", 2 * t().state.padding).attr("y", t().state.textHeight + 1.3 * t().state.padding).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.descriptions[0]).node().getBBox(), g = s.height, p = e.append("text").attr("x", t().state.padding).attr(
|
|
19
|
+
"y",
|
|
20
|
+
g + t().state.padding * 0.4 + t().state.dividerMargin + t().state.textHeight
|
|
21
|
+
).attr("class", "state-description");
|
|
22
|
+
let a = !0, r = !0;
|
|
23
|
+
i.descriptions.forEach(function(l) {
|
|
24
|
+
a || (o(p, l, r), r = !1), a = !1;
|
|
25
|
+
});
|
|
26
|
+
const y = e.append("line").attr("x1", t().state.padding).attr("y1", t().state.padding + g + t().state.dividerMargin / 2).attr("y2", t().state.padding + g + t().state.dividerMargin / 2).attr("class", "descr-divider"), x = p.node().getBBox(), d = Math.max(x.width, s.width);
|
|
27
|
+
return y.attr("x2", d + 3 * t().state.padding), e.insert("rect", ":first-child").attr("x", t().state.padding).attr("y", t().state.padding).attr("width", d + 2 * t().state.padding).attr("height", x.height + g + 2 * t().state.padding).attr("rx", t().state.radius), e;
|
|
28
|
+
}, I = (e, i, o) => {
|
|
29
|
+
const c = t().state.padding, s = 2 * t().state.padding, g = e.node().getBBox(), p = g.width, a = g.x, r = e.append("text").attr("x", 0).attr("y", t().state.titleShift).attr("font-size", t().state.fontSize).attr("class", "state-title").text(i.id), x = r.node().getBBox().width + s;
|
|
30
|
+
let d = Math.max(x, p);
|
|
31
|
+
d === p && (d = d + s);
|
|
32
|
+
let l;
|
|
33
|
+
const m = e.node().getBBox();
|
|
34
|
+
i.doc, l = a - c, x > p && (l = (p - d) / 2 + c), Math.abs(a - m.x) < c && x > p && (l = a - (x - p) / 2);
|
|
35
|
+
const w = 1 - t().state.textHeight;
|
|
36
|
+
return e.insert("rect", ":first-child").attr("x", l).attr("y", w).attr("class", o ? "alt-composit" : "composit").attr("width", d).attr(
|
|
37
|
+
"height",
|
|
38
|
+
m.height + t().state.textHeight + t().state.titleShift + 1
|
|
39
|
+
).attr("rx", "0"), r.attr("x", l + c), x <= p && r.attr("x", a + (d - s) / 2 - x / 2 + c), e.insert("rect", ":first-child").attr("x", l).attr(
|
|
40
|
+
"y",
|
|
41
|
+
t().state.titleShift - t().state.textHeight - t().state.padding
|
|
42
|
+
).attr("width", d).attr("height", t().state.textHeight * 3).attr("rx", t().state.radius), e.insert("rect", ":first-child").attr("x", l).attr(
|
|
43
|
+
"y",
|
|
44
|
+
t().state.titleShift - t().state.textHeight - t().state.padding
|
|
45
|
+
).attr("width", d).attr("height", m.height + 3 + 2 * t().state.textHeight).attr("rx", t().state.radius), e;
|
|
46
|
+
}, _ = (e) => (e.append("circle").attr("class", "end-state-outer").attr("r", t().state.sizeUnit + t().state.miniPadding).attr(
|
|
47
|
+
"cx",
|
|
48
|
+
t().state.padding + t().state.sizeUnit + t().state.miniPadding
|
|
49
|
+
).attr(
|
|
50
|
+
"cy",
|
|
51
|
+
t().state.padding + t().state.sizeUnit + t().state.miniPadding
|
|
52
|
+
), e.append("circle").attr("class", "end-state-inner").attr("r", t().state.sizeUnit).attr("cx", t().state.padding + t().state.sizeUnit + 2).attr("cy", t().state.padding + t().state.sizeUnit + 2)), q = (e, i) => {
|
|
53
|
+
let o = t().state.forkWidth, c = t().state.forkHeight;
|
|
54
|
+
if (i.parentId) {
|
|
55
|
+
let s = o;
|
|
56
|
+
o = c, c = s;
|
|
57
|
+
}
|
|
58
|
+
return e.append("rect").style("stroke", "black").style("fill", "black").attr("width", o).attr("height", c).attr("x", t().state.padding).attr("y", t().state.padding);
|
|
59
|
+
}, Z = (e, i, o, c) => {
|
|
60
|
+
let s = 0;
|
|
61
|
+
const g = c.append("text");
|
|
62
|
+
g.style("text-anchor", "start"), g.attr("class", "noteText");
|
|
63
|
+
let p = e.replace(/\r\n/g, "<br/>");
|
|
64
|
+
p = p.replace(/\n/g, "<br/>");
|
|
65
|
+
const a = p.split(T.lineBreakRegex);
|
|
66
|
+
let r = 1.25 * t().state.noteMargin;
|
|
67
|
+
for (const y of a) {
|
|
68
|
+
const x = y.trim();
|
|
69
|
+
if (x.length > 0) {
|
|
70
|
+
const d = g.append("tspan");
|
|
71
|
+
if (d.text(x), r === 0) {
|
|
72
|
+
const l = d.node().getBBox();
|
|
73
|
+
r += l.height;
|
|
74
|
+
}
|
|
75
|
+
s += r, d.attr("x", i + t().state.noteMargin), d.attr("y", o + s + 1.25 * t().state.noteMargin);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
return { textWidth: g.node().getBBox().width, textHeight: s };
|
|
79
|
+
}, j = (e, i) => {
|
|
80
|
+
i.attr("class", "state-note");
|
|
81
|
+
const o = i.append("rect").attr("x", 0).attr("y", t().state.padding), c = i.append("g"), { textWidth: s, textHeight: g } = Z(e, 0, 0, c);
|
|
82
|
+
return o.attr("height", g + 2 * t().state.noteMargin), o.attr("width", s + t().state.noteMargin * 2), o;
|
|
83
|
+
}, L = function(e, i) {
|
|
84
|
+
const o = i.id, c = {
|
|
85
|
+
id: o,
|
|
86
|
+
label: i.id,
|
|
87
|
+
width: 0,
|
|
88
|
+
height: 0
|
|
89
|
+
}, s = e.append("g").attr("id", o).attr("class", "stateGroup");
|
|
90
|
+
i.type === "start" && O(s), i.type === "end" && _(s), (i.type === "fork" || i.type === "join") && q(s, i), i.type === "note" && j(i.note.text, s), i.type === "divider" && X(s), i.type === "default" && i.descriptions.length === 0 && J(s, i), i.type === "default" && i.descriptions.length > 0 && Y(s, i);
|
|
91
|
+
const g = s.node().getBBox();
|
|
92
|
+
return c.width = g.width + 2 * t().state.padding, c.height = g.height + 2 * t().state.padding, c;
|
|
93
|
+
};
|
|
94
|
+
let G = 0;
|
|
95
|
+
const K = function(e, i, o) {
|
|
96
|
+
const c = function(r) {
|
|
97
|
+
switch (r) {
|
|
98
|
+
case N.relationType.AGGREGATION:
|
|
99
|
+
return "aggregation";
|
|
100
|
+
case N.relationType.EXTENSION:
|
|
101
|
+
return "extension";
|
|
102
|
+
case N.relationType.COMPOSITION:
|
|
103
|
+
return "composition";
|
|
104
|
+
case N.relationType.DEPENDENCY:
|
|
105
|
+
return "dependency";
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
i.points = i.points.filter((r) => !Number.isNaN(r.y));
|
|
109
|
+
const s = i.points, g = $().x(function(r) {
|
|
110
|
+
return r.x;
|
|
111
|
+
}).y(function(r) {
|
|
112
|
+
return r.y;
|
|
113
|
+
}).curve(v), p = e.append("path").attr("d", g(s)).attr("id", "edge" + G).attr("class", "transition");
|
|
114
|
+
let a = "";
|
|
115
|
+
if (t().state.arrowMarkerAbsolute && (a = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, a = a.replace(/\(/g, "\\("), a = a.replace(/\)/g, "\\)")), p.attr(
|
|
116
|
+
"marker-end",
|
|
117
|
+
"url(" + a + "#" + c(N.relationType.DEPENDENCY) + "End)"
|
|
118
|
+
), o.title !== void 0) {
|
|
119
|
+
const r = e.append("g").attr("class", "stateLabel"), { x: y, y: x } = U.calcLabelPosition(i.points), d = T.getRows(o.title);
|
|
120
|
+
let l = 0;
|
|
121
|
+
const m = [];
|
|
122
|
+
let w = 0, E = 0;
|
|
123
|
+
for (let u = 0; u <= d.length; u++) {
|
|
124
|
+
const h = r.append("text").attr("text-anchor", "middle").text(d[u]).attr("x", y).attr("y", x + l), f = h.node().getBBox();
|
|
125
|
+
w = Math.max(w, f.width), E = Math.min(E, f.x), b.info(f.x, y, x + l), l === 0 && (l = h.node().getBBox().height, b.info("Title height", l, x)), m.push(h);
|
|
126
|
+
}
|
|
127
|
+
let k = l * d.length;
|
|
128
|
+
if (d.length > 1) {
|
|
129
|
+
const u = (d.length - 1) * l * 0.5;
|
|
130
|
+
m.forEach((h, f) => h.attr("y", x + f * l - u)), k = l * d.length;
|
|
131
|
+
}
|
|
132
|
+
const n = r.node().getBBox();
|
|
133
|
+
r.insert("rect", ":first-child").attr("class", "box").attr("x", y - w / 2 - t().state.padding / 2).attr("y", x - k / 2 - t().state.padding / 2 - 3.5).attr("width", w + t().state.padding).attr("height", k + t().state.padding), b.info(n);
|
|
134
|
+
}
|
|
135
|
+
G++;
|
|
136
|
+
};
|
|
137
|
+
let B;
|
|
138
|
+
const z = {}, Q = function() {
|
|
139
|
+
}, V = function(e) {
|
|
140
|
+
e.append("defs").append("marker").attr("id", "dependencyEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z");
|
|
141
|
+
}, D = function(e, i, o, c) {
|
|
142
|
+
B = t().state;
|
|
143
|
+
const s = t().securityLevel;
|
|
144
|
+
let g;
|
|
145
|
+
s === "sandbox" && (g = H("#i" + i));
|
|
146
|
+
const p = s === "sandbox" ? H(g.nodes()[0].contentDocument.body) : H("body"), a = s === "sandbox" ? g.nodes()[0].contentDocument : document;
|
|
147
|
+
b.debug("Rendering diagram " + e);
|
|
148
|
+
const r = p.select(`[id='${i}']`);
|
|
149
|
+
V(r);
|
|
150
|
+
const y = c.db.getRootDoc();
|
|
151
|
+
A(y, r, void 0, !1, p, a, c);
|
|
152
|
+
const x = B.padding, d = r.node().getBBox(), l = d.width + x * 2, m = d.height + x * 2, w = l * 1.75;
|
|
153
|
+
R(r, m, w, B.useMaxWidth), r.attr(
|
|
154
|
+
"viewBox",
|
|
155
|
+
`${d.x - B.padding} ${d.y - B.padding} ` + l + " " + m
|
|
156
|
+
);
|
|
157
|
+
}, tt = (e) => e ? e.length * B.fontSizeFactor : 1, A = (e, i, o, c, s, g, p) => {
|
|
158
|
+
const a = new F({
|
|
159
|
+
compound: !0,
|
|
160
|
+
multigraph: !0
|
|
161
|
+
});
|
|
162
|
+
let r, y = !0;
|
|
163
|
+
for (r = 0; r < e.length; r++)
|
|
164
|
+
if (e[r].stmt === "relation") {
|
|
165
|
+
y = !1;
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
o ? a.setGraph({
|
|
169
|
+
rankdir: "LR",
|
|
170
|
+
multigraph: !0,
|
|
171
|
+
compound: !0,
|
|
172
|
+
// acyclicer: 'greedy',
|
|
173
|
+
ranker: "tight-tree",
|
|
174
|
+
ranksep: y ? 1 : B.edgeLengthFactor,
|
|
175
|
+
nodeSep: y ? 1 : 50,
|
|
176
|
+
isMultiGraph: !0
|
|
177
|
+
// ranksep: 5,
|
|
178
|
+
// nodesep: 1
|
|
179
|
+
}) : a.setGraph({
|
|
180
|
+
rankdir: "TB",
|
|
181
|
+
multigraph: !0,
|
|
182
|
+
compound: !0,
|
|
183
|
+
// isCompound: true,
|
|
184
|
+
// acyclicer: 'greedy',
|
|
185
|
+
// ranker: 'longest-path'
|
|
186
|
+
ranksep: y ? 1 : B.edgeLengthFactor,
|
|
187
|
+
nodeSep: y ? 1 : 50,
|
|
188
|
+
ranker: "tight-tree",
|
|
189
|
+
// ranker: 'network-simplex'
|
|
190
|
+
isMultiGraph: !0
|
|
191
|
+
}), a.setDefaultEdgeLabel(function() {
|
|
192
|
+
return {};
|
|
193
|
+
}), p.db.extract(e);
|
|
194
|
+
const x = p.db.getStates(), d = p.db.getRelations(), l = Object.keys(x);
|
|
195
|
+
for (const n of l) {
|
|
196
|
+
const u = x[n];
|
|
197
|
+
o && (u.parentId = o);
|
|
198
|
+
let h;
|
|
199
|
+
if (u.doc) {
|
|
200
|
+
let f = i.append("g").attr("id", u.id).attr("class", "stateGroup");
|
|
201
|
+
h = A(u.doc, f, u.id, !c, s, g, p);
|
|
202
|
+
{
|
|
203
|
+
f = I(f, u, c);
|
|
204
|
+
let S = f.node().getBBox();
|
|
205
|
+
h.width = S.width, h.height = S.height + B.padding / 2, z[u.id] = { y: B.compositTitleSize };
|
|
206
|
+
}
|
|
207
|
+
} else
|
|
208
|
+
h = L(i, u);
|
|
209
|
+
if (u.note) {
|
|
210
|
+
const f = {
|
|
211
|
+
descriptions: [],
|
|
212
|
+
id: u.id + "-note",
|
|
213
|
+
note: u.note,
|
|
214
|
+
type: "note"
|
|
215
|
+
}, S = L(i, f);
|
|
216
|
+
u.note.position === "left of" ? (a.setNode(h.id + "-note", S), a.setNode(h.id, h)) : (a.setNode(h.id, h), a.setNode(h.id + "-note", S)), a.setParent(h.id, h.id + "-group"), a.setParent(h.id + "-note", h.id + "-group");
|
|
217
|
+
} else
|
|
218
|
+
a.setNode(h.id, h);
|
|
219
|
+
}
|
|
220
|
+
b.debug("Count=", a.nodeCount(), a);
|
|
221
|
+
let m = 0;
|
|
222
|
+
d.forEach(function(n) {
|
|
223
|
+
m++, b.debug("Setting edge", n), a.setEdge(
|
|
224
|
+
n.id1,
|
|
225
|
+
n.id2,
|
|
226
|
+
{
|
|
227
|
+
relation: n,
|
|
228
|
+
width: tt(n.title),
|
|
229
|
+
height: B.labelHeight * T.getRows(n.title).length,
|
|
230
|
+
labelpos: "c"
|
|
231
|
+
},
|
|
232
|
+
"id" + m
|
|
233
|
+
);
|
|
234
|
+
}), C(a), b.debug("Graph after layout", a.nodes());
|
|
235
|
+
const w = i.node();
|
|
236
|
+
a.nodes().forEach(function(n) {
|
|
237
|
+
n !== void 0 && a.node(n) !== void 0 ? (b.warn("Node " + n + ": " + JSON.stringify(a.node(n))), s.select("#" + w.id + " #" + n).attr(
|
|
238
|
+
"transform",
|
|
239
|
+
"translate(" + (a.node(n).x - a.node(n).width / 2) + "," + (a.node(n).y + (z[n] ? z[n].y : 0) - a.node(n).height / 2) + " )"
|
|
240
|
+
), s.select("#" + w.id + " #" + n).attr("data-x-shift", a.node(n).x - a.node(n).width / 2), g.querySelectorAll("#" + w.id + " #" + n + " .divider").forEach((h) => {
|
|
241
|
+
const f = h.parentElement;
|
|
242
|
+
let S = 0, M = 0;
|
|
243
|
+
f && (f.parentElement && (S = f.parentElement.getBBox().width), M = parseInt(f.getAttribute("data-x-shift"), 10), Number.isNaN(M) && (M = 0)), h.setAttribute("x1", 0 - M + 8), h.setAttribute("x2", S - M - 8);
|
|
244
|
+
})) : b.debug("No Node " + n + ": " + JSON.stringify(a.node(n)));
|
|
245
|
+
});
|
|
246
|
+
let E = w.getBBox();
|
|
247
|
+
a.edges().forEach(function(n) {
|
|
248
|
+
n !== void 0 && a.edge(n) !== void 0 && (b.debug("Edge " + n.v + " -> " + n.w + ": " + JSON.stringify(a.edge(n))), K(i, a.edge(n), a.edge(n).relation));
|
|
249
|
+
}), E = w.getBBox();
|
|
250
|
+
const k = {
|
|
251
|
+
id: o || "root",
|
|
252
|
+
label: o || "root",
|
|
253
|
+
width: 0,
|
|
254
|
+
height: 0
|
|
255
|
+
};
|
|
256
|
+
return k.width = E.width + 2 * B.padding, k.height = E.height + 2 * B.padding, b.debug("Doc rendered", k, a), k;
|
|
257
|
+
}, et = {
|
|
258
|
+
setConf: Q,
|
|
259
|
+
draw: D
|
|
260
|
+
}, ht = {
|
|
261
|
+
parser: W,
|
|
262
|
+
db: N,
|
|
263
|
+
renderer: et,
|
|
264
|
+
styles: P,
|
|
265
|
+
init: (e) => {
|
|
266
|
+
e.state || (e.state = {}), e.state.arrowMarkerAbsolute = e.arrowMarkerAbsolute, N.clear();
|
|
267
|
+
}
|
|
268
|
+
};
|
|
269
|
+
export {
|
|
270
|
+
ht as diagram
|
|
271
|
+
};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";const h=require("./layers.orP2yP91.js");var Oe=(function(){var e=function(v,u,a,A){for(a=a||{},A=v.length;A--;a[v[A]]=u);return a},i=[1,17],r=[1,18],c=[1,19],o=[1,39],f=[1,40],k=[1,25],D=[1,23],B=[1,24],_=[1,31],Ae=[1,32],fe=[1,33],pe=[1,34],de=[1,35],Ce=[1,36],Ee=[1,26],me=[1,27],ge=[1,28],be=[1,29],C=[1,43],ke=[1,30],E=[1,42],m=[1,44],g=[1,41],T=[1,45],Te=[1,9],l=[1,8,9],z=[1,56],K=[1,57],Y=[1,58],Q=[1,59],j=[1,60],ye=[1,61],Fe=[1,62],X=[1,8,9,39],we=[1,74],P=[1,8,9,12,13,21,37,39,42,59,60,61,62,63,64,65,70,72],q=[1,8,9,12,13,19,21,37,39,42,46,59,60,61,62,63,64,65,70,72,74,80,95,97,98],H=[13,74,80,95,97,98],M=[13,64,65,74,80,95,97,98],Pe=[13,59,60,61,62,63,74,80,95,97,98],De=[1,93],W=[1,110],J=[1,108],Z=[1,102],$=[1,103],ee=[1,104],te=[1,105],se=[1,106],ie=[1,107],ne=[1,109],Be=[1,8,9,37,39,42],ue=[1,8,9,21],Me=[1,8,9,78],S=[1,8,9,21,73,74,78,80,81,82,83,84,85],_e={trace:function(){},yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,className:17,classLiteralName:18,GENERICTYPE:19,relationStatement:20,LABEL:21,namespaceStatement:22,classStatement:23,memberStatement:24,annotationStatement:25,clickStatement:26,styleStatement:27,cssClassStatement:28,noteStatement:29,direction:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,namespaceIdentifier:36,STRUCT_START:37,classStatements:38,STRUCT_STOP:39,NAMESPACE:40,classIdentifier:41,STYLE_SEPARATOR:42,members:43,CLASS:44,ANNOTATION_START:45,ANNOTATION_END:46,MEMBER:47,SEPARATOR:48,relation:49,NOTE_FOR:50,noteText:51,NOTE:52,direction_tb:53,direction_bt:54,direction_rl:55,direction_lr:56,relationType:57,lineType:58,AGGREGATION:59,EXTENSION:60,COMPOSITION:61,DEPENDENCY:62,LOLLIPOP:63,LINE:64,DOTTED_LINE:65,CALLBACK:66,LINK:67,LINK_TARGET:68,CLICK:69,CALLBACK_NAME:70,CALLBACK_ARGS:71,HREF:72,STYLE:73,ALPHA:74,stylesOpt:75,CSSCLASS:76,style:77,COMMA:78,styleComponent:79,NUM:80,COLON:81,UNIT:82,SPACE:83,BRKT:84,PCT:85,commentToken:86,textToken:87,graphCodeTokens:88,textNoTagsToken:89,TAGSTART:90,TAGEND:91,"==":92,"--":93,DEFAULT:94,MINUS:95,keywords:96,UNICODE_TEXT:97,BQUOTE_STR:98,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",19:"GENERICTYPE",21:"LABEL",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",37:"STRUCT_START",39:"STRUCT_STOP",40:"NAMESPACE",42:"STYLE_SEPARATOR",44:"CLASS",45:"ANNOTATION_START",46:"ANNOTATION_END",47:"MEMBER",48:"SEPARATOR",50:"NOTE_FOR",52:"NOTE",53:"direction_tb",54:"direction_bt",55:"direction_rl",56:"direction_lr",59:"AGGREGATION",60:"EXTENSION",61:"COMPOSITION",62:"DEPENDENCY",63:"LOLLIPOP",64:"LINE",65:"DOTTED_LINE",66:"CALLBACK",67:"LINK",68:"LINK_TARGET",69:"CLICK",70:"CALLBACK_NAME",71:"CALLBACK_ARGS",72:"HREF",73:"STYLE",74:"ALPHA",76:"CSSCLASS",78:"COMMA",80:"NUM",81:"COLON",82:"UNIT",83:"SPACE",84:"BRKT",85:"PCT",88:"graphCodeTokens",90:"TAGSTART",91:"TAGEND",92:"==",93:"--",94:"DEFAULT",95:"MINUS",96:"keywords",97:"UNICODE_TEXT",98:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,2],[17,1],[17,1],[17,2],[17,2],[17,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[22,4],[22,5],[36,2],[38,1],[38,2],[38,3],[23,1],[23,3],[23,4],[23,6],[41,2],[41,3],[25,4],[43,1],[43,2],[24,1],[24,2],[24,1],[24,1],[20,3],[20,4],[20,4],[20,5],[29,3],[29,2],[30,1],[30,1],[30,1],[30,1],[49,3],[49,2],[49,2],[49,1],[57,1],[57,1],[57,1],[57,1],[57,1],[58,1],[58,1],[26,3],[26,4],[26,3],[26,4],[26,4],[26,5],[26,3],[26,4],[26,4],[26,5],[26,4],[26,5],[26,5],[26,6],[27,3],[28,3],[75,1],[75,3],[77,1],[77,2],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[79,1],[86,1],[86,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[87,1],[89,1],[89,1],[89,1],[89,1],[16,1],[16,1],[16,1],[16,1],[18,1],[51,1]],performAction:function(u,a,A,n,d,t,G){var s=t.length-1;switch(d){case 8:this.$=t[s-1];break;case 9:case 11:case 12:this.$=t[s];break;case 10:case 13:this.$=t[s-1]+t[s];break;case 14:case 15:this.$=t[s-1]+"~"+t[s]+"~";break;case 16:n.addRelation(t[s]);break;case 17:t[s-1].title=n.cleanupLabel(t[s]),n.addRelation(t[s-1]);break;case 27:this.$=t[s].trim(),n.setAccTitle(this.$);break;case 28:case 29:this.$=t[s].trim(),n.setAccDescription(this.$);break;case 30:n.addClassesToNamespace(t[s-3],t[s-1]);break;case 31:n.addClassesToNamespace(t[s-4],t[s-1]);break;case 32:this.$=t[s],n.addNamespace(t[s]);break;case 33:this.$=[t[s]];break;case 34:this.$=[t[s-1]];break;case 35:t[s].unshift(t[s-2]),this.$=t[s];break;case 37:n.setCssClass(t[s-2],t[s]);break;case 38:n.addMembers(t[s-3],t[s-1]);break;case 39:n.setCssClass(t[s-5],t[s-3]),n.addMembers(t[s-5],t[s-1]);break;case 40:this.$=t[s],n.addClass(t[s]);break;case 41:this.$=t[s-1],n.addClass(t[s-1]),n.setClassLabel(t[s-1],t[s]);break;case 42:n.addAnnotation(t[s],t[s-2]);break;case 43:this.$=[t[s]];break;case 44:t[s].push(t[s-1]),this.$=t[s];break;case 45:break;case 46:n.addMember(t[s-1],n.cleanupLabel(t[s]));break;case 47:break;case 48:break;case 49:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 50:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 51:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 52:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 53:n.addNote(t[s],t[s-1]);break;case 54:n.addNote(t[s]);break;case 55:n.setDirection("TB");break;case 56:n.setDirection("BT");break;case 57:n.setDirection("RL");break;case 58:n.setDirection("LR");break;case 59:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 60:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 61:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 62:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 63:this.$=n.relationType.AGGREGATION;break;case 64:this.$=n.relationType.EXTENSION;break;case 65:this.$=n.relationType.COMPOSITION;break;case 66:this.$=n.relationType.DEPENDENCY;break;case 67:this.$=n.relationType.LOLLIPOP;break;case 68:this.$=n.lineType.LINE;break;case 69:this.$=n.lineType.DOTTED_LINE;break;case 70:case 76:this.$=t[s-2],n.setClickEvent(t[s-1],t[s]);break;case 71:case 77:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 72:this.$=t[s-2],n.setLink(t[s-1],t[s]);break;case 73:this.$=t[s-3],n.setLink(t[s-2],t[s-1],t[s]);break;case 74:this.$=t[s-3],n.setLink(t[s-2],t[s-1]),n.setTooltip(t[s-2],t[s]);break;case 75:this.$=t[s-4],n.setLink(t[s-3],t[s-2],t[s]),n.setTooltip(t[s-3],t[s-1]);break;case 78:this.$=t[s-3],n.setClickEvent(t[s-2],t[s-1],t[s]);break;case 79:this.$=t[s-4],n.setClickEvent(t[s-3],t[s-2],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 80:this.$=t[s-3],n.setLink(t[s-2],t[s]);break;case 81:this.$=t[s-4],n.setLink(t[s-3],t[s-1],t[s]);break;case 82:this.$=t[s-4],n.setLink(t[s-3],t[s-1]),n.setTooltip(t[s-3],t[s]);break;case 83:this.$=t[s-5],n.setLink(t[s-4],t[s-2],t[s]),n.setTooltip(t[s-4],t[s-1]);break;case 84:this.$=t[s-2],n.setCssStyle(t[s-1],t[s]);break;case 85:n.setCssClass(t[s-1],t[s]);break;case 86:this.$=[t[s]];break;case 87:t[s-2].push(t[s]),this.$=t[s-2];break;case 89:this.$=t[s-1]+t[s];break}},table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:c,36:21,40:o,41:22,44:f,45:k,47:D,48:B,50:_,52:Ae,53:fe,54:pe,55:de,56:Ce,66:Ee,67:me,69:ge,73:be,74:C,76:ke,80:E,95:m,97:g,98:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(Te,[2,5],{8:[1,46]}),{8:[1,47]},e(l,[2,16],{21:[1,48]}),e(l,[2,18]),e(l,[2,19]),e(l,[2,20]),e(l,[2,21]),e(l,[2,22]),e(l,[2,23]),e(l,[2,24]),e(l,[2,25]),e(l,[2,26]),{32:[1,49]},{34:[1,50]},e(l,[2,29]),e(l,[2,45],{49:51,57:54,58:55,13:[1,52],21:[1,53],59:z,60:K,61:Y,62:Q,63:j,64:ye,65:Fe}),{37:[1,63]},e(X,[2,36],{37:[1,65],42:[1,64]}),e(l,[2,47]),e(l,[2,48]),{16:66,74:C,80:E,95:m,97:g},{16:37,17:67,18:38,74:C,80:E,95:m,97:g,98:T},{16:37,17:68,18:38,74:C,80:E,95:m,97:g,98:T},{16:37,17:69,18:38,74:C,80:E,95:m,97:g,98:T},{74:[1,70]},{13:[1,71]},{16:37,17:72,18:38,74:C,80:E,95:m,97:g,98:T},{13:we,51:73},e(l,[2,55]),e(l,[2,56]),e(l,[2,57]),e(l,[2,58]),e(P,[2,11],{16:37,18:38,17:75,19:[1,76],74:C,80:E,95:m,97:g,98:T}),e(P,[2,12],{19:[1,77]}),{15:78,16:79,74:C,80:E,95:m,97:g},{16:37,17:80,18:38,74:C,80:E,95:m,97:g,98:T},e(q,[2,112]),e(q,[2,113]),e(q,[2,114]),e(q,[2,115]),e([1,8,9,12,13,19,21,37,39,42,59,60,61,62,63,64,65,70,72],[2,116]),e(Te,[2,6],{10:5,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,17:20,36:21,41:22,16:37,18:38,5:81,31:i,33:r,35:c,40:o,44:f,45:k,47:D,48:B,50:_,52:Ae,53:fe,54:pe,55:de,56:Ce,66:Ee,67:me,69:ge,73:be,74:C,76:ke,80:E,95:m,97:g,98:T}),{5:82,10:5,16:37,17:20,18:38,20:7,22:8,23:9,24:10,25:11,26:12,27:13,28:14,29:15,30:16,31:i,33:r,35:c,36:21,40:o,41:22,44:f,45:k,47:D,48:B,50:_,52:Ae,53:fe,54:pe,55:de,56:Ce,66:Ee,67:me,69:ge,73:be,74:C,76:ke,80:E,95:m,97:g,98:T},e(l,[2,17]),e(l,[2,27]),e(l,[2,28]),{13:[1,84],16:37,17:83,18:38,74:C,80:E,95:m,97:g,98:T},{49:85,57:54,58:55,59:z,60:K,61:Y,62:Q,63:j,64:ye,65:Fe},e(l,[2,46]),{58:86,64:ye,65:Fe},e(H,[2,62],{57:87,59:z,60:K,61:Y,62:Q,63:j}),e(M,[2,63]),e(M,[2,64]),e(M,[2,65]),e(M,[2,66]),e(M,[2,67]),e(Pe,[2,68]),e(Pe,[2,69]),{8:[1,89],23:90,38:88,41:22,44:f},{16:91,74:C,80:E,95:m,97:g},{43:92,47:De},{46:[1,94]},{13:[1,95]},{13:[1,96]},{70:[1,97],72:[1,98]},{21:W,73:J,74:Z,75:99,77:100,79:101,80:$,81:ee,82:te,83:se,84:ie,85:ne},{74:[1,111]},{13:we,51:112},e(l,[2,54]),e(l,[2,117]),e(P,[2,13]),e(P,[2,14]),e(P,[2,15]),{37:[2,32]},{15:113,16:79,37:[2,9],74:C,80:E,95:m,97:g},e(Be,[2,40],{11:114,12:[1,115]}),e(Te,[2,7]),{9:[1,116]},e(ue,[2,49]),{16:37,17:117,18:38,74:C,80:E,95:m,97:g,98:T},{13:[1,119],16:37,17:118,18:38,74:C,80:E,95:m,97:g,98:T},e(H,[2,61],{57:120,59:z,60:K,61:Y,62:Q,63:j}),e(H,[2,60]),{39:[1,121]},{23:90,38:122,41:22,44:f},{8:[1,123],39:[2,33]},e(X,[2,37],{37:[1,124]}),{39:[1,125]},{39:[2,43],43:126,47:De},{16:37,17:127,18:38,74:C,80:E,95:m,97:g,98:T},e(l,[2,70],{13:[1,128]}),e(l,[2,72],{13:[1,130],68:[1,129]}),e(l,[2,76],{13:[1,131],71:[1,132]}),{13:[1,133]},e(l,[2,84],{78:[1,134]}),e(Me,[2,86],{79:135,21:W,73:J,74:Z,80:$,81:ee,82:te,83:se,84:ie,85:ne}),e(S,[2,88]),e(S,[2,90]),e(S,[2,91]),e(S,[2,92]),e(S,[2,93]),e(S,[2,94]),e(S,[2,95]),e(S,[2,96]),e(S,[2,97]),e(S,[2,98]),e(l,[2,85]),e(l,[2,53]),{37:[2,10]},e(Be,[2,41]),{13:[1,136]},{1:[2,4]},e(ue,[2,51]),e(ue,[2,50]),{16:37,17:137,18:38,74:C,80:E,95:m,97:g,98:T},e(H,[2,59]),e(l,[2,30]),{39:[1,138]},{23:90,38:139,39:[2,34],41:22,44:f},{43:140,47:De},e(X,[2,38]),{39:[2,44]},e(l,[2,42]),e(l,[2,71]),e(l,[2,73]),e(l,[2,74],{68:[1,141]}),e(l,[2,77]),e(l,[2,78],{13:[1,142]}),e(l,[2,80],{13:[1,144],68:[1,143]}),{21:W,73:J,74:Z,77:145,79:101,80:$,81:ee,82:te,83:se,84:ie,85:ne},e(S,[2,89]),{14:[1,146]},e(ue,[2,52]),e(l,[2,31]),{39:[2,35]},{39:[1,147]},e(l,[2,75]),e(l,[2,79]),e(l,[2,81]),e(l,[2,82],{68:[1,148]}),e(Me,[2,87],{79:135,21:W,73:J,74:Z,80:$,81:ee,82:te,83:se,84:ie,85:ne}),e(Be,[2,8]),e(X,[2,39]),e(l,[2,83])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],78:[2,32],113:[2,10],116:[2,4],126:[2,44],139:[2,35]},parseError:function(u,a){if(a.recoverable)this.trace(u);else{var A=new Error(u);throw A.hash=a,A}},parse:function(u){var a=this,A=[0],n=[],d=[null],t=[],G=this.table,s="",re=0,Ge=0,Je=2,Ue=1,Ze=t.slice.call(arguments,1),b=Object.create(this.lexer),O={yy:{}};for(var Ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ne)&&(O.yy[Ne]=this.yy[Ne]);b.setInput(u,O.yy),O.yy.lexer=b,O.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Le=b.yylloc;t.push(Le);var $e=b.options&&b.options.ranges;typeof O.yy.parseError=="function"?this.parseError=O.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function et(){var L;return L=n.pop()||b.lex()||Ue,typeof L!="number"&&(L instanceof Array&&(n=L,L=n.pop()),L=a.symbols_[L]||L),L}for(var y,I,F,ve,w={},ae,N,ze,ce;;){if(I=A[A.length-1],this.defaultActions[I]?F=this.defaultActions[I]:((y===null||typeof y>"u")&&(y=et()),F=G[I]&&G[I][y]),typeof F>"u"||!F.length||!F[0]){var xe="";ce=[];for(ae in G[I])this.terminals_[ae]&&ae>Je&&ce.push("'"+this.terminals_[ae]+"'");b.showPosition?xe="Parse error on line "+(re+1)+`:
|
|
2
|
+
`+b.showPosition()+`
|
|
3
|
+
Expecting `+ce.join(", ")+", got '"+(this.terminals_[y]||y)+"'":xe="Parse error on line "+(re+1)+": Unexpected "+(y==Ue?"end of input":"'"+(this.terminals_[y]||y)+"'"),this.parseError(xe,{text:b.match,token:this.terminals_[y]||y,line:b.yylineno,loc:Le,expected:ce})}if(F[0]instanceof Array&&F.length>1)throw new Error("Parse Error: multiple actions possible at state: "+I+", token: "+y);switch(F[0]){case 1:A.push(y),d.push(b.yytext),t.push(b.yylloc),A.push(F[1]),y=null,Ge=b.yyleng,s=b.yytext,re=b.yylineno,Le=b.yylloc;break;case 2:if(N=this.productions_[F[1]][1],w.$=d[d.length-N],w._$={first_line:t[t.length-(N||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(N||1)].first_column,last_column:t[t.length-1].last_column},$e&&(w._$.range=[t[t.length-(N||1)].range[0],t[t.length-1].range[1]]),ve=this.performAction.apply(w,[s,Ge,re,O.yy,F[1],d,t].concat(Ze)),typeof ve<"u")return ve;N&&(A=A.slice(0,-1*N*2),d=d.slice(0,-1*N),t=t.slice(0,-1*N)),A.push(this.productions_[F[1]][0]),d.push(w.$),t.push(w._$),ze=G[A[A.length-2]][A[A.length-1]],A.push(ze);break;case 3:return!0}}return!0}},We=(function(){var v={EOF:1,parseError:function(a,A){if(this.yy.parser)this.yy.parser.parseError(a,A);else throw new Error(a)},setInput:function(u,a){return this.yy=a||this.yy||{},this._input=u,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var u=this._input[0];this.yytext+=u,this.yyleng++,this.offset++,this.match+=u,this.matched+=u;var a=u.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),u},unput:function(u){var a=u.length,A=u.split(/(?:\r\n?|\n)/g);this._input=u+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),A.length-1&&(this.yylineno-=A.length-1);var d=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:A?(A.length===n.length?this.yylloc.first_column:0)+n[n.length-A.length].length-A[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[d[0],d[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(u){this.unput(this.match.slice(u))},pastInput:function(){var u=this.matched.substr(0,this.matched.length-this.match.length);return(u.length>20?"...":"")+u.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var u=this.match;return u.length<20&&(u+=this._input.substr(0,20-u.length)),(u.substr(0,20)+(u.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var u=this.pastInput(),a=new Array(u.length+1).join("-");return u+this.upcomingInput()+`
|
|
5
|
+
`+a+"^"},test_match:function(u,a){var A,n,d;if(this.options.backtrack_lexer&&(d={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(d.yylloc.range=this.yylloc.range.slice(0))),n=u[0].match(/(?:\r\n?|\n).*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-n[n.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+u[0].length},this.yytext+=u[0],this.match+=u[0],this.matches=u,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(u[0].length),this.matched+=u[0],A=this.performAction.call(this,this.yy,this,a,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),A)return A;if(this._backtrack){for(var t in d)this[t]=d[t];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var u,a,A,n;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),t=0;t<d.length;t++)if(A=this._input.match(this.rules[d[t]]),A&&(!a||A[0].length>a[0].length)){if(a=A,n=t,this.options.backtrack_lexer){if(u=this.test_match(A,d[t]),u!==!1)return u;if(this._backtrack){a=!1;continue}else return!1}else if(!this.options.flex)break}return a?(u=this.test_match(a,d[n]),u!==!1?u:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var a=this.next();return a||this.lex()},begin:function(a){this.conditionStack.push(a)},popState:function(){var a=this.conditionStack.length-1;return a>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(a){return a=this.conditionStack.length-1-Math.abs(a||0),a>=0?this.conditionStack[a]:"INITIAL"},pushState:function(a){this.begin(a)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(a,A,n,d){switch(n){case 0:return 53;case 1:return 54;case 2:return 55;case 3:return 56;case 4:break;case 5:break;case 6:return this.begin("acc_title"),31;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),33;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 8;case 14:break;case 15:return 7;case 16:return 7;case 17:return"EDGE_STATE";case 18:this.begin("callback_name");break;case 19:this.popState();break;case 20:this.popState(),this.begin("callback_args");break;case 21:return 70;case 22:this.popState();break;case 23:return 71;case 24:this.popState();break;case 25:return"STR";case 26:this.begin("string");break;case 27:return 73;case 28:return this.begin("namespace"),40;case 29:return this.popState(),8;case 30:break;case 31:return this.begin("namespace-body"),37;case 32:return this.popState(),39;case 33:return"EOF_IN_STRUCT";case 34:return 8;case 35:break;case 36:return"EDGE_STATE";case 37:return this.begin("class"),44;case 38:return this.popState(),8;case 39:break;case 40:return this.popState(),this.popState(),39;case 41:return this.begin("class-body"),37;case 42:return this.popState(),39;case 43:return"EOF_IN_STRUCT";case 44:return"EDGE_STATE";case 45:return"OPEN_IN_STRUCT";case 46:break;case 47:return"MEMBER";case 48:return 76;case 49:return 66;case 50:return 67;case 51:return 69;case 52:return 50;case 53:return 52;case 54:return 45;case 55:return 46;case 56:return 72;case 57:this.popState();break;case 58:return"GENERICTYPE";case 59:this.begin("generic");break;case 60:this.popState();break;case 61:return"BQUOTE_STR";case 62:this.begin("bqstring");break;case 63:return 68;case 64:return 68;case 65:return 68;case 66:return 68;case 67:return 60;case 68:return 60;case 69:return 62;case 70:return 62;case 71:return 61;case 72:return 59;case 73:return 63;case 74:return 64;case 75:return 65;case 76:return 21;case 77:return 42;case 78:return 95;case 79:return"DOT";case 80:return"PLUS";case 81:return 81;case 82:return 78;case 83:return 84;case 84:return 84;case 85:return 85;case 86:return"EQUALS";case 87:return"EQUALS";case 88:return 74;case 89:return 12;case 90:return 14;case 91:return"PUNCTUATION";case 92:return 80;case 93:return 97;case 94:return 83;case 95:return 83;case 96:return 9}},rules:[/^(?:.*direction\s+TB[^\n]*)/,/^(?:.*direction\s+BT[^\n]*)/,/^(?:.*direction\s+RL[^\n]*)/,/^(?:.*direction\s+LR[^\n]*)/,/^(?:%%(?!\{)*[^\n]*(\r?\n?)+)/,/^(?:%%[^\n]*(\r?\n)*)/,/^(?:accTitle\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*:\s*)/,/^(?:(?!\n||)*[^\n]*)/,/^(?:accDescr\s*\{\s*)/,/^(?:[\}])/,/^(?:[^\}]*)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:classDiagram-v2\b)/,/^(?:classDiagram\b)/,/^(?:\[\*\])/,/^(?:call[\s]+)/,/^(?:\([\s]*\))/,/^(?:\()/,/^(?:[^(]*)/,/^(?:\))/,/^(?:[^)]*)/,/^(?:["])/,/^(?:[^"]*)/,/^(?:["])/,/^(?:style\b)/,/^(?:namespace\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:\[\*\])/,/^(?:class\b)/,/^(?:\s*(\r?\n)+)/,/^(?:\s+)/,/^(?:[}])/,/^(?:[{])/,/^(?:[}])/,/^(?:$)/,/^(?:\[\*\])/,/^(?:[{])/,/^(?:[\n])/,/^(?:[^{}\n]*)/,/^(?:cssClass\b)/,/^(?:callback\b)/,/^(?:link\b)/,/^(?:click\b)/,/^(?:note for\b)/,/^(?:note\b)/,/^(?:<<)/,/^(?:>>)/,/^(?:href\b)/,/^(?:[~])/,/^(?:[^~]*)/,/^(?:~)/,/^(?:[`])/,/^(?:[^`]+)/,/^(?:[`])/,/^(?:_self\b)/,/^(?:_blank\b)/,/^(?:_parent\b)/,/^(?:_top\b)/,/^(?:\s*<\|)/,/^(?:\s*\|>)/,/^(?:\s*>)/,/^(?:\s*<)/,/^(?:\s*\*)/,/^(?:\s*o\b)/,/^(?:\s*\(\))/,/^(?:--)/,/^(?:\.\.)/,/^(?::{1}[^:\n;]+)/,/^(?::{3})/,/^(?:-)/,/^(?:\.)/,/^(?:\+)/,/^(?::)/,/^(?:,)/,/^(?:#)/,/^(?:#)/,/^(?:%)/,/^(?:=)/,/^(?:=)/,/^(?:\w+)/,/^(?:\[)/,/^(?:\])/,/^(?:[!"#$%&'*+,-.`?\\/])/,/^(?:[0-9]+)/,/^(?:[\u00AA\u00B5\u00BA\u00C0-\u00D6\u00D8-\u00F6]|[\u00F8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377]|[\u037A-\u037D\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5]|[\u03F7-\u0481\u048A-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA]|[\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE]|[\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA]|[\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0]|[\u08A2-\u08AC\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0977]|[\u0979-\u097F\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2]|[\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A]|[\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39]|[\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8]|[\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C]|[\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C]|[\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99]|[\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0]|[\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C33\u0C35-\u0C39\u0C3D]|[\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3]|[\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10]|[\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1]|[\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81]|[\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3]|[\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6]|[\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A]|[\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081]|[\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D]|[\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0]|[\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310]|[\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C]|[\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u1700-\u170C\u170E-\u1711]|[\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7]|[\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191C]|[\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16]|[\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF]|[\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC]|[\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D]|[\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D]|[\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3]|[\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F]|[\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128]|[\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184]|[\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3]|[\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6]|[\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE]|[\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C]|[\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D]|[\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC]|[\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B]|[\uA640-\uA66E\uA67F-\uA697\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788]|[\uA78B-\uA78E\uA790-\uA793\uA7A0-\uA7AA\uA7F8-\uA801\uA803-\uA805]|[\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB]|[\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uAA00-\uAA28]|[\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA80-\uAAAF\uAAB1\uAAB5]|[\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4]|[\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E]|[\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D]|[\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36]|[\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D]|[\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC]|[\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF]|[\uFFD2-\uFFD7\uFFDA-\uFFDC])/,/^(?:\s)/,/^(?:\s)/,/^(?:$)/],conditions:{"namespace-body":{rules:[26,32,33,34,35,36,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},namespace:{rules:[26,28,29,30,31,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},"class-body":{rules:[26,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},class:{rules:[26,38,39,40,41,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr_multiline:{rules:[11,12,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_descr:{rules:[9,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},acc_title:{rules:[7,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_args:{rules:[22,23,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},callback_name:{rules:[19,20,21,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},href:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},struct:{rules:[26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},generic:{rules:[26,48,49,50,51,52,53,54,55,56,57,58,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},bqstring:{rules:[26,48,49,50,51,52,53,54,55,56,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},string:{rules:[24,25,26,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,85,86,87,88,89,90,91,92,93,94,96],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,5,6,8,10,13,14,15,16,17,18,26,27,28,37,48,49,50,51,52,53,54,55,56,59,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],inclusive:!0}}};return v})();_e.lexer=We;function Se(){this.yy={}}return Se.prototype=_e,_e.Parser=Se,new Se})();Oe.parser=Oe;const tt=Oe,Ke=["#","+","~","-",""];class Ye{constructor(i,r){this.memberType=r,this.visibility="",this.classifier="";const c=h.sanitizeText$2(i,h.getConfig());this.parseMember(c)}getDisplayDetails(){let i=this.visibility+h.parseGenericTypes(this.id);this.memberType==="method"&&(i+=`(${h.parseGenericTypes(this.parameters.trim())})`,this.returnType&&(i+=" : "+h.parseGenericTypes(this.returnType))),i=i.trim();const r=this.parseClassifier();return{displayText:i,cssStyle:r}}parseMember(i){let r="";if(this.memberType==="method"){const c=/([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/,o=i.match(c);if(o){const f=o[1]?o[1].trim():"";if(Ke.includes(f)&&(this.visibility=f),this.id=o[2].trim(),this.parameters=o[3]?o[3].trim():"",r=o[4]?o[4].trim():"",this.returnType=o[5]?o[5].trim():"",r===""){const k=this.returnType.substring(this.returnType.length-1);k.match(/[$*]/)&&(r=k,this.returnType=this.returnType.substring(0,this.returnType.length-1))}}}else{const c=i.length,o=i.substring(0,1),f=i.substring(c-1);Ke.includes(o)&&(this.visibility=o),f.match(/[$*]/)&&(r=f),this.id=i.substring(this.visibility===""?0:1,r===""?c:c-1)}this.classifier=r}parseClassifier(){switch(this.classifier){case"*":return"font-style:italic;";case"$":return"text-decoration:underline;";default:return""}}}const he="classId-";let Re=[],p={},le=[],Qe=0,x={},Ie=0,U=[];const R=e=>h.common$1.sanitizeText(e,h.getConfig()),V=function(e){const i=h.common$1.sanitizeText(e,h.getConfig());let r="",c=i;if(i.indexOf("~")>0){const o=i.split("~");c=R(o[0]),r=R(o[1])}return{className:c,type:r}},st=function(e,i){const r=h.common$1.sanitizeText(e,h.getConfig());i&&(i=R(i));const{className:c}=V(r);p[c].label=i},oe=function(e){const i=h.common$1.sanitizeText(e,h.getConfig()),{className:r,type:c}=V(i);if(Object.hasOwn(p,r))return;const o=h.common$1.sanitizeText(r,h.getConfig());p[o]={id:o,type:c,label:o,cssClasses:[],methods:[],members:[],annotations:[],styles:[],domId:he+o+"-"+Qe},Qe++},je=function(e){const i=h.common$1.sanitizeText(e,h.getConfig());if(i in p)return p[i].domId;throw new Error("Class not found: "+i)},it=function(){Re=[],p={},le=[],U=[],U.push(qe),x={},Ie=0,h.clear()},nt=function(e){return p[e]},ut=function(){return p},rt=function(){return Re},at=function(){return le},ct=function(e){h.log$1.debug("Adding relation: "+JSON.stringify(e)),oe(e.id1),oe(e.id2),e.id1=V(e.id1).className,e.id2=V(e.id2).className,e.relationTitle1=h.common$1.sanitizeText(e.relationTitle1.trim(),h.getConfig()),e.relationTitle2=h.common$1.sanitizeText(e.relationTitle2.trim(),h.getConfig()),Re.push(e)},lt=function(e,i){const r=V(e).className;p[r].annotations.push(i)},Xe=function(e,i){oe(e);const r=V(e).className,c=p[r];if(typeof i=="string"){const o=i.trim();o.startsWith("<<")&&o.endsWith(">>")?c.annotations.push(R(o.substring(2,o.length-2))):o.indexOf(")")>0?c.methods.push(new Ye(o,"method")):o&&c.members.push(new Ye(o,"attribute"))}},ot=function(e,i){Array.isArray(i)&&(i.reverse(),i.forEach(r=>Xe(e,r)))},ht=function(e,i){const r={id:`note${le.length}`,class:i,text:e};le.push(r)},At=function(e){return e.startsWith(":")&&(e=e.substring(1)),R(e.trim())},Ve=function(e,i){e.split(",").forEach(function(r){let c=r;r[0].match(/\d/)&&(c=he+c),p[c]!==void 0&&p[c].cssClasses.push(i)})},ft=function(e,i){e.split(",").forEach(function(r){i!==void 0&&(p[r].tooltip=R(i))})},pt=function(e,i){return i?x[i].classes[e].tooltip:p[e].tooltip},dt=function(e,i,r){const c=h.getConfig();e.split(",").forEach(function(o){let f=o;o[0].match(/\d/)&&(f=he+f),p[f]!==void 0&&(p[f].link=h.utils.formatUrl(i,c),c.securityLevel==="sandbox"?p[f].linkTarget="_top":typeof r=="string"?p[f].linkTarget=R(r):p[f].linkTarget="_blank")}),Ve(e,"clickable")},Ct=function(e,i,r){e.split(",").forEach(function(c){Et(c,i,r),p[c].haveCallback=!0}),Ve(e,"clickable")},Et=function(e,i,r){const c=h.common$1.sanitizeText(e,h.getConfig());if(h.getConfig().securityLevel!=="loose"||i===void 0)return;const f=c;if(p[f]!==void 0){const k=je(f);let D=[];if(typeof r=="string"){D=r.split(/,(?=(?:(?:[^"]*"){2})*[^"]*$)/);for(let B=0;B<D.length;B++){let _=D[B].trim();_.charAt(0)==='"'&&_.charAt(_.length-1)==='"'&&(_=_.substr(1,_.length-2)),D[B]=_}}D.length===0&&D.push(k),U.push(function(){const B=document.querySelector(`[id="${k}"]`);B!==null&&B.addEventListener("click",function(){h.utils.runFunc(i,...D)},!1)})}},mt=function(e){U.forEach(function(i){i(e)})},gt={LINE:0,DOTTED_LINE:1},bt={AGGREGATION:0,EXTENSION:1,COMPOSITION:2,DEPENDENCY:3,LOLLIPOP:4},qe=function(e){let i=h.select(".mermaidTooltip");(i._groups||i)[0][0]===null&&(i=h.select("body").append("div").attr("class","mermaidTooltip").style("opacity",0)),h.select(e).select("svg").selectAll("g.node").on("mouseover",function(){const o=h.select(this);if(o.attr("title")===null)return;const k=this.getBoundingClientRect();i.transition().duration(200).style("opacity",".9"),i.text(o.attr("title")).style("left",window.scrollX+k.left+(k.right-k.left)/2+"px").style("top",window.scrollY+k.top-14+document.body.scrollTop+"px"),i.html(i.html().replace(/<br\/>/g,"<br/>")),o.classed("hover",!0)}).on("mouseout",function(){i.transition().duration(500).style("opacity",0),h.select(this).classed("hover",!1)})};U.push(qe);let He="TB";const kt=()=>He,Tt=e=>{He=e},yt=function(e){x[e]===void 0&&(x[e]={id:e,classes:{},children:{},domId:he+e+"-"+Ie},Ie++)},Ft=function(e){return x[e]},Dt=function(){return x},Bt=function(e,i){if(x[e]!==void 0)for(const r of i){const{className:c}=V(r);p[c].parent=e,x[e].classes[c]=p[c]}},_t=function(e,i){const r=p[e];if(!(!i||!r))for(const c of i)c.includes(",")?r.styles.push(...c.split(",")):r.styles.push(c)},St={setAccTitle:h.setAccTitle,getAccTitle:h.getAccTitle,getAccDescription:h.getAccDescription,setAccDescription:h.setAccDescription,getConfig:()=>h.getConfig().class,addClass:oe,bindFunctions:mt,clear:it,getClass:nt,getClasses:ut,getNotes:at,addAnnotation:lt,addNote:ht,getRelations:rt,addRelation:ct,getDirection:kt,setDirection:Tt,addMember:Xe,addMembers:ot,cleanupLabel:At,lineType:gt,relationType:bt,setClickEvent:Ct,setCssClass:Ve,setLink:dt,getTooltip:pt,setTooltip:ft,lookUpDomId:je,setDiagramTitle:h.setDiagramTitle,getDiagramTitle:h.getDiagramTitle,setClassLabel:st,addNamespace:yt,addClassesToNamespace:Bt,getNamespace:Ft,getNamespaces:Dt,setCssStyle:_t},Nt=e=>`g.classGroup text {
|
|
7
|
+
fill: ${e.nodeBorder||e.classText};
|
|
8
|
+
stroke: none;
|
|
9
|
+
font-family: ${e.fontFamily};
|
|
10
|
+
font-size: 10px;
|
|
11
|
+
|
|
12
|
+
.title {
|
|
13
|
+
font-weight: bolder;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.nodeLabel, .edgeLabel {
|
|
19
|
+
color: ${e.classText};
|
|
20
|
+
}
|
|
21
|
+
.edgeLabel .label rect {
|
|
22
|
+
fill: ${e.mainBkg};
|
|
23
|
+
}
|
|
24
|
+
.label text {
|
|
25
|
+
fill: ${e.classText};
|
|
26
|
+
}
|
|
27
|
+
.edgeLabel .label span {
|
|
28
|
+
background: ${e.mainBkg};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.classTitle {
|
|
32
|
+
font-weight: bolder;
|
|
33
|
+
}
|
|
34
|
+
.node rect,
|
|
35
|
+
.node circle,
|
|
36
|
+
.node ellipse,
|
|
37
|
+
.node polygon,
|
|
38
|
+
.node path {
|
|
39
|
+
fill: ${e.mainBkg};
|
|
40
|
+
stroke: ${e.nodeBorder};
|
|
41
|
+
stroke-width: 1px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
.divider {
|
|
46
|
+
stroke: ${e.nodeBorder};
|
|
47
|
+
stroke-width: 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
g.clickable {
|
|
51
|
+
cursor: pointer;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
g.classGroup rect {
|
|
55
|
+
fill: ${e.mainBkg};
|
|
56
|
+
stroke: ${e.nodeBorder};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
g.classGroup line {
|
|
60
|
+
stroke: ${e.nodeBorder};
|
|
61
|
+
stroke-width: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.classLabel .box {
|
|
65
|
+
stroke: none;
|
|
66
|
+
stroke-width: 0;
|
|
67
|
+
fill: ${e.mainBkg};
|
|
68
|
+
opacity: 0.5;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.classLabel .label {
|
|
72
|
+
fill: ${e.nodeBorder};
|
|
73
|
+
font-size: 10px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.relation {
|
|
77
|
+
stroke: ${e.lineColor};
|
|
78
|
+
stroke-width: 1;
|
|
79
|
+
fill: none;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dashed-line{
|
|
83
|
+
stroke-dasharray: 3;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.dotted-line{
|
|
87
|
+
stroke-dasharray: 1 2;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
#compositionStart, .composition {
|
|
91
|
+
fill: ${e.lineColor} !important;
|
|
92
|
+
stroke: ${e.lineColor} !important;
|
|
93
|
+
stroke-width: 1;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
#compositionEnd, .composition {
|
|
97
|
+
fill: ${e.lineColor} !important;
|
|
98
|
+
stroke: ${e.lineColor} !important;
|
|
99
|
+
stroke-width: 1;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
#dependencyStart, .dependency {
|
|
103
|
+
fill: ${e.lineColor} !important;
|
|
104
|
+
stroke: ${e.lineColor} !important;
|
|
105
|
+
stroke-width: 1;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
#dependencyStart, .dependency {
|
|
109
|
+
fill: ${e.lineColor} !important;
|
|
110
|
+
stroke: ${e.lineColor} !important;
|
|
111
|
+
stroke-width: 1;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
#extensionStart, .extension {
|
|
115
|
+
fill: transparent !important;
|
|
116
|
+
stroke: ${e.lineColor} !important;
|
|
117
|
+
stroke-width: 1;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
#extensionEnd, .extension {
|
|
121
|
+
fill: transparent !important;
|
|
122
|
+
stroke: ${e.lineColor} !important;
|
|
123
|
+
stroke-width: 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
#aggregationStart, .aggregation {
|
|
127
|
+
fill: transparent !important;
|
|
128
|
+
stroke: ${e.lineColor} !important;
|
|
129
|
+
stroke-width: 1;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
#aggregationEnd, .aggregation {
|
|
133
|
+
fill: transparent !important;
|
|
134
|
+
stroke: ${e.lineColor} !important;
|
|
135
|
+
stroke-width: 1;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
#lollipopStart, .lollipop {
|
|
139
|
+
fill: ${e.mainBkg} !important;
|
|
140
|
+
stroke: ${e.lineColor} !important;
|
|
141
|
+
stroke-width: 1;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
#lollipopEnd, .lollipop {
|
|
145
|
+
fill: ${e.mainBkg} !important;
|
|
146
|
+
stroke: ${e.lineColor} !important;
|
|
147
|
+
stroke-width: 1;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.edgeTerminals {
|
|
151
|
+
font-size: 11px;
|
|
152
|
+
line-height: initial;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.classTitleText {
|
|
156
|
+
text-anchor: middle;
|
|
157
|
+
font-size: 18px;
|
|
158
|
+
fill: ${e.textColor};
|
|
159
|
+
}
|
|
160
|
+
`,Lt=Nt;exports.db=St;exports.parser$1=tt;exports.styles=Lt;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./layers.orP2yP91.js");require("./layers.Umldr18w.js");require("lodash-es/memoize.js");require("lodash-es/merge.js");require("lodash-es/isEmpty.js");const qt=require("./layers.DMQHD7SZ.js");var xt=(function(){var e=function(K,n,s,l){for(s=s||{},l=K.length;l--;s[K[l]]=n);return s},r=[1,3],h=[1,4],x=[1,5],g=[1,6],d=[1,7],u=[1,5,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],p=[1,5,6,13,15,17,19,20,25,27,28,29,30,31,32,33,34,37,38,40,41,42,43,44,45,46,47,48,49,50],i=[32,33,34],q=[2,7],y=[1,13],B=[1,17],N=[1,18],V=[1,19],I=[1,20],b=[1,21],H=[1,22],M=[1,23],z=[1,24],it=[1,25],at=[1,26],nt=[1,27],U=[1,30],$=[1,31],_=[1,32],A=[1,33],m=[1,34],t=[1,35],S=[1,36],k=[1,37],F=[1,38],P=[1,39],v=[1,40],C=[1,41],L=[1,42],X=[1,57],O=[1,58],E=[5,22,26,32,33,34,40,41,42,43,44,45,46,47,48,49,50,51],ot={trace:function(){},yy:{},symbols_:{error:2,start:3,eol:4,SPACE:5,QUADRANT:6,document:7,line:8,statement:9,axisDetails:10,quadrantDetails:11,points:12,title:13,title_value:14,acc_title:15,acc_title_value:16,acc_descr:17,acc_descr_value:18,acc_descr_multiline_value:19,section:20,text:21,point_start:22,point_x:23,point_y:24,"X-AXIS":25,"AXIS-TEXT-DELIMITER":26,"Y-AXIS":27,QUADRANT_1:28,QUADRANT_2:29,QUADRANT_3:30,QUADRANT_4:31,NEWLINE:32,SEMI:33,EOF:34,alphaNumToken:35,textNoTagsToken:36,STR:37,MD_STR:38,alphaNum:39,PUNCTUATION:40,AMP:41,NUM:42,ALPHA:43,COMMA:44,PLUS:45,EQUALS:46,MULT:47,DOT:48,BRKT:49,UNDERSCORE:50,MINUS:51,$accept:0,$end:1},terminals_:{2:"error",5:"SPACE",6:"QUADRANT",13:"title",14:"title_value",15:"acc_title",16:"acc_title_value",17:"acc_descr",18:"acc_descr_value",19:"acc_descr_multiline_value",20:"section",22:"point_start",23:"point_x",24:"point_y",25:"X-AXIS",26:"AXIS-TEXT-DELIMITER",27:"Y-AXIS",28:"QUADRANT_1",29:"QUADRANT_2",30:"QUADRANT_3",31:"QUADRANT_4",32:"NEWLINE",33:"SEMI",34:"EOF",37:"STR",38:"MD_STR",40:"PUNCTUATION",41:"AMP",42:"NUM",43:"ALPHA",44:"COMMA",45:"PLUS",46:"EQUALS",47:"MULT",48:"DOT",49:"BRKT",50:"UNDERSCORE",51:"MINUS"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[9,0],[9,2],[9,1],[9,1],[9,1],[9,2],[9,2],[9,2],[9,1],[9,1],[12,4],[10,4],[10,3],[10,2],[10,4],[10,3],[10,2],[11,2],[11,2],[11,2],[11,2],[4,1],[4,1],[4,1],[21,1],[21,2],[21,1],[21,1],[39,1],[39,2],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[35,1],[36,1],[36,1],[36,1]],performAction:function(n,s,l,o,T,a,et){var f=a.length-1;switch(T){case 12:this.$=a[f].trim(),o.setDiagramTitle(this.$);break;case 13:this.$=a[f].trim(),o.setAccTitle(this.$);break;case 14:case 15:this.$=a[f].trim(),o.setAccDescription(this.$);break;case 16:o.addSection(a[f].substr(8)),this.$=a[f].substr(8);break;case 17:o.addPoint(a[f-3],a[f-1],a[f]);break;case 18:o.setXAxisLeftText(a[f-2]),o.setXAxisRightText(a[f]);break;case 19:a[f-1].text+=" ⟶ ",o.setXAxisLeftText(a[f-1]);break;case 20:o.setXAxisLeftText(a[f]);break;case 21:o.setYAxisBottomText(a[f-2]),o.setYAxisTopText(a[f]);break;case 22:a[f-1].text+=" ⟶ ",o.setYAxisBottomText(a[f-1]);break;case 23:o.setYAxisBottomText(a[f]);break;case 24:o.setQuadrant1Text(a[f]);break;case 25:o.setQuadrant2Text(a[f]);break;case 26:o.setQuadrant3Text(a[f]);break;case 27:o.setQuadrant4Text(a[f]);break;case 31:this.$={text:a[f],type:"text"};break;case 32:this.$={text:a[f-1].text+""+a[f],type:a[f-1].type};break;case 33:this.$={text:a[f],type:"text"};break;case 34:this.$={text:a[f],type:"markdown"};break;case 35:this.$=a[f];break;case 36:this.$=a[f-1]+""+a[f];break}},table:[{3:1,4:2,5:r,6:h,32:x,33:g,34:d},{1:[3]},{3:8,4:2,5:r,6:h,32:x,33:g,34:d},{3:9,4:2,5:r,6:h,32:x,33:g,34:d},e(u,[2,4],{7:10}),e(p,[2,28]),e(p,[2,29]),e(p,[2,30]),{1:[2,1]},{1:[2,2]},e(i,q,{8:11,9:12,10:14,11:15,12:16,21:28,35:29,1:[2,3],5:y,13:B,15:N,17:V,19:I,20:b,25:H,27:M,28:z,29:it,30:at,31:nt,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L}),e(u,[2,5]),{4:43,32:x,33:g,34:d},e(i,q,{10:14,11:15,12:16,21:28,35:29,9:44,5:y,13:B,15:N,17:V,19:I,20:b,25:H,27:M,28:z,29:it,30:at,31:nt,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L}),e(i,[2,9]),e(i,[2,10]),e(i,[2,11]),{14:[1,45]},{16:[1,46]},{18:[1,47]},e(i,[2,15]),e(i,[2,16]),{21:48,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:49,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:50,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:51,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:52,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{21:53,35:29,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L},{5:X,22:[1,54],35:56,36:55,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O},e(E,[2,31]),e(E,[2,33]),e(E,[2,34]),e(E,[2,37]),e(E,[2,38]),e(E,[2,39]),e(E,[2,40]),e(E,[2,41]),e(E,[2,42]),e(E,[2,43]),e(E,[2,44]),e(E,[2,45]),e(E,[2,46]),e(E,[2,47]),e(u,[2,6]),e(i,[2,8]),e(i,[2,12]),e(i,[2,13]),e(i,[2,14]),e(i,[2,20],{36:55,35:56,5:X,26:[1,59],40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,23],{36:55,35:56,5:X,26:[1,60],40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,24],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,25],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,26],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,27],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),{23:[1,61]},e(E,[2,32]),e(E,[2,48]),e(E,[2,49]),e(E,[2,50]),e(i,[2,19],{35:29,21:62,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L}),e(i,[2,22],{35:29,21:63,37:U,38:$,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L}),{24:[1,64]},e(i,[2,18],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,21],{36:55,35:56,5:X,40:_,41:A,42:m,43:t,44:S,45:k,46:F,47:P,48:v,49:C,50:L,51:O}),e(i,[2,17])],defaultActions:{8:[2,1],9:[2,2]},parseError:function(n,s){if(s.recoverable)this.trace(n);else{var l=new Error(n);throw l.hash=s,l}},parse:function(n){var s=this,l=[0],o=[],T=[null],a=[],et=this.table,f="",rt=0,gt=0,_t=2,pt=1,mt=a.slice.call(arguments,1),D=Object.create(this.lexer),Z={yy:{}};for(var ht in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ht)&&(Z.yy[ht]=this.yy[ht]);D.setInput(n,Z.yy),Z.yy.lexer=D,Z.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var ut=D.yylloc;a.push(ut);var At=D.options&&D.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function bt(){var j;return j=o.pop()||D.lex()||pt,typeof j!="number"&&(j instanceof Array&&(o=j,j=o.pop()),j=s.symbols_[j]||j),j}for(var W,J,Q,dt,tt={},st,Y,yt,lt;;){if(J=l[l.length-1],this.defaultActions[J]?Q=this.defaultActions[J]:((W===null||typeof W>"u")&&(W=bt()),Q=et[J]&&et[J][W]),typeof Q>"u"||!Q.length||!Q[0]){var ft="";lt=[];for(st in et[J])this.terminals_[st]&&st>_t&<.push("'"+this.terminals_[st]+"'");D.showPosition?ft="Parse error on line "+(rt+1)+`:
|
|
2
|
+
`+D.showPosition()+`
|
|
3
|
+
Expecting `+lt.join(", ")+", got '"+(this.terminals_[W]||W)+"'":ft="Parse error on line "+(rt+1)+": Unexpected "+(W==pt?"end of input":"'"+(this.terminals_[W]||W)+"'"),this.parseError(ft,{text:D.match,token:this.terminals_[W]||W,line:D.yylineno,loc:ut,expected:lt})}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+J+", token: "+W);switch(Q[0]){case 1:l.push(W),T.push(D.yytext),a.push(D.yylloc),l.push(Q[1]),W=null,gt=D.yyleng,f=D.yytext,rt=D.yylineno,ut=D.yylloc;break;case 2:if(Y=this.productions_[Q[1]][1],tt.$=T[T.length-Y],tt._$={first_line:a[a.length-(Y||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(Y||1)].first_column,last_column:a[a.length-1].last_column},At&&(tt._$.range=[a[a.length-(Y||1)].range[0],a[a.length-1].range[1]]),dt=this.performAction.apply(tt,[f,gt,rt,Z.yy,Q[1],T,a].concat(mt)),typeof dt<"u")return dt;Y&&(l=l.slice(0,-1*Y*2),T=T.slice(0,-1*Y),a=a.slice(0,-1*Y)),l.push(this.productions_[Q[1]][0]),T.push(tt.$),a.push(tt._$),yt=et[l[l.length-2]][l[l.length-1]],l.push(yt);break;case 3:return!0}}return!0}},Tt=(function(){var K={EOF:1,parseError:function(s,l){if(this.yy.parser)this.yy.parser.parseError(s,l);else throw new Error(s)},setInput:function(n,s){return this.yy=s||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var s=n.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},unput:function(n){var s=n.length,l=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===o.length?this.yylloc.first_column:0)+o[o.length-l.length].length-l[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(n){this.unput(this.match.slice(n))},pastInput:function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var n=this.pastInput(),s=new Array(n.length+1).join("-");return n+this.upcomingInput()+`
|
|
5
|
+
`+s+"^"},test_match:function(n,s){var l,o,T;if(this.options.backtrack_lexer&&(T={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(T.yylloc.range=this.yylloc.range.slice(0))),o=n[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+n[0].length},this.yytext+=n[0],this.match+=n[0],this.matches=n,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(n[0].length),this.matched+=n[0],l=this.performAction.call(this,this.yy,this,s,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),l)return l;if(this._backtrack){for(var a in T)this[a]=T[a];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var n,s,l,o;this._more||(this.yytext="",this.match="");for(var T=this._currentRules(),a=0;a<T.length;a++)if(l=this._input.match(this.rules[T[a]]),l&&(!s||l[0].length>s[0].length)){if(s=l,o=a,this.options.backtrack_lexer){if(n=this.test_match(l,T[a]),n!==!1)return n;if(this._backtrack){s=!1;continue}else return!1}else if(!this.options.flex)break}return s?(n=this.test_match(s,T[o]),n!==!1?n:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
6
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var s=this.next();return s||this.lex()},begin:function(s){this.conditionStack.push(s)},popState:function(){var s=this.conditionStack.length-1;return s>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(s){return s=this.conditionStack.length-1-Math.abs(s||0),s>=0?this.conditionStack[s]:"INITIAL"},pushState:function(s){this.begin(s)},stateStackSize:function(){return this.conditionStack.length},options:{"case-insensitive":!0},performAction:function(s,l,o,T){switch(o){case 0:break;case 1:break;case 2:return 32;case 3:break;case 4:return this.begin("title"),13;case 5:return this.popState(),"title_value";case 6:return this.begin("acc_title"),15;case 7:return this.popState(),"acc_title_value";case 8:return this.begin("acc_descr"),17;case 9:return this.popState(),"acc_descr_value";case 10:this.begin("acc_descr_multiline");break;case 11:this.popState();break;case 12:return"acc_descr_multiline_value";case 13:return 25;case 14:return 27;case 15:return 26;case 16:return 28;case 17:return 29;case 18:return 30;case 19:return 31;case 20:this.begin("md_string");break;case 21:return"MD_STR";case 22:this.popState();break;case 23:this.begin("string");break;case 24:this.popState();break;case 25:return"STR";case 26:return this.begin("point_start"),22;case 27:return this.begin("point_x"),23;case 28:this.popState();break;case 29:this.popState(),this.begin("point_y");break;case 30:return this.popState(),24;case 31:return 6;case 32:return 43;case 33:return"COLON";case 34:return 45;case 35:return 44;case 36:return 46;case 37:return 46;case 38:return 47;case 39:return 49;case 40:return 50;case 41:return 48;case 42:return 41;case 43:return 51;case 44:return 42;case 45:return 5;case 46:return 33;case 47:return 40;case 48:return 34}},rules:[/^(?:%%(?!\{)[^\n]*)/i,/^(?:[^\}]%%[^\n]*)/i,/^(?:[\n\r]+)/i,/^(?:%%[^\n]*)/i,/^(?:title\b)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accTitle\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*:\s*)/i,/^(?:(?!\n||)*[^\n]*)/i,/^(?:accDescr\s*\{\s*)/i,/^(?:[\}])/i,/^(?:[^\}]*)/i,/^(?: *x-axis *)/i,/^(?: *y-axis *)/i,/^(?: *--+> *)/i,/^(?: *quadrant-1 *)/i,/^(?: *quadrant-2 *)/i,/^(?: *quadrant-3 *)/i,/^(?: *quadrant-4 *)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^"]*)/i,/^(?:\s*:\s*\[\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?:\s*\] *)/i,/^(?:\s*,\s*)/i,/^(?:(1)|(0(.\d+)?))/i,/^(?: *quadrantChart *)/i,/^(?:[A-Za-z]+)/i,/^(?::)/i,/^(?:\+)/i,/^(?:,)/i,/^(?:=)/i,/^(?:=)/i,/^(?:\*)/i,/^(?:#)/i,/^(?:[\_])/i,/^(?:\.)/i,/^(?:&)/i,/^(?:-)/i,/^(?:[0-9]+)/i,/^(?:\s)/i,/^(?:;)/i,/^(?:[!"#$%&'*+,-.`?\\_/])/i,/^(?:$)/i],conditions:{point_y:{rules:[30],inclusive:!1},point_x:{rules:[29],inclusive:!1},point_start:{rules:[27,28],inclusive:!1},acc_descr_multiline:{rules:[11,12],inclusive:!1},acc_descr:{rules:[9],inclusive:!1},acc_title:{rules:[7],inclusive:!1},title:{rules:[5],inclusive:!1},md_string:{rules:[21,22],inclusive:!1},string:{rules:[24,25],inclusive:!1},INITIAL:{rules:[0,1,2,3,4,6,8,10,13,14,15,16,17,18,19,20,23,26,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],inclusive:!0}}};return K})();ot.lexer=Tt;function ct(){this.yy={}}return ct.prototype=ot,ot.Parser=ct,new ct})();xt.parser=xt;const St=xt,R=c.getThemeVariables$2();class kt{constructor(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData()}getDefaultData(){return{titleText:"",quadrant1Text:"",quadrant2Text:"",quadrant3Text:"",quadrant4Text:"",xAxisLeftText:"",xAxisRightText:"",yAxisBottomText:"",yAxisTopText:"",points:[]}}getDefaultConfig(){var r,h,x,g,d,u,p,i,q,y,B,N,V,I,b,H,M,z;return{showXAxis:!0,showYAxis:!0,showTitle:!0,chartHeight:((r=c.defaultConfig$2.quadrantChart)==null?void 0:r.chartWidth)||500,chartWidth:((h=c.defaultConfig$2.quadrantChart)==null?void 0:h.chartHeight)||500,titlePadding:((x=c.defaultConfig$2.quadrantChart)==null?void 0:x.titlePadding)||10,titleFontSize:((g=c.defaultConfig$2.quadrantChart)==null?void 0:g.titleFontSize)||20,quadrantPadding:((d=c.defaultConfig$2.quadrantChart)==null?void 0:d.quadrantPadding)||5,xAxisLabelPadding:((u=c.defaultConfig$2.quadrantChart)==null?void 0:u.xAxisLabelPadding)||5,yAxisLabelPadding:((p=c.defaultConfig$2.quadrantChart)==null?void 0:p.yAxisLabelPadding)||5,xAxisLabelFontSize:((i=c.defaultConfig$2.quadrantChart)==null?void 0:i.xAxisLabelFontSize)||16,yAxisLabelFontSize:((q=c.defaultConfig$2.quadrantChart)==null?void 0:q.yAxisLabelFontSize)||16,quadrantLabelFontSize:((y=c.defaultConfig$2.quadrantChart)==null?void 0:y.quadrantLabelFontSize)||16,quadrantTextTopPadding:((B=c.defaultConfig$2.quadrantChart)==null?void 0:B.quadrantTextTopPadding)||5,pointTextPadding:((N=c.defaultConfig$2.quadrantChart)==null?void 0:N.pointTextPadding)||5,pointLabelFontSize:((V=c.defaultConfig$2.quadrantChart)==null?void 0:V.pointLabelFontSize)||12,pointRadius:((I=c.defaultConfig$2.quadrantChart)==null?void 0:I.pointRadius)||5,xAxisPosition:((b=c.defaultConfig$2.quadrantChart)==null?void 0:b.xAxisPosition)||"top",yAxisPosition:((H=c.defaultConfig$2.quadrantChart)==null?void 0:H.yAxisPosition)||"left",quadrantInternalBorderStrokeWidth:((M=c.defaultConfig$2.quadrantChart)==null?void 0:M.quadrantInternalBorderStrokeWidth)||1,quadrantExternalBorderStrokeWidth:((z=c.defaultConfig$2.quadrantChart)==null?void 0:z.quadrantExternalBorderStrokeWidth)||2}}getDefaultThemeConfig(){return{quadrant1Fill:R.quadrant1Fill,quadrant2Fill:R.quadrant2Fill,quadrant3Fill:R.quadrant3Fill,quadrant4Fill:R.quadrant4Fill,quadrant1TextFill:R.quadrant1TextFill,quadrant2TextFill:R.quadrant2TextFill,quadrant3TextFill:R.quadrant3TextFill,quadrant4TextFill:R.quadrant4TextFill,quadrantPointFill:R.quadrantPointFill,quadrantPointTextFill:R.quadrantPointTextFill,quadrantXAxisTextFill:R.quadrantXAxisTextFill,quadrantYAxisTextFill:R.quadrantYAxisTextFill,quadrantTitleFill:R.quadrantTitleFill,quadrantInternalBorderStrokeFill:R.quadrantInternalBorderStrokeFill,quadrantExternalBorderStrokeFill:R.quadrantExternalBorderStrokeFill}}clear(){this.config=this.getDefaultConfig(),this.themeConfig=this.getDefaultThemeConfig(),this.data=this.getDefaultData(),c.log$1.info("clear called")}setData(r){this.data={...this.data,...r}}addPoints(r){this.data.points=[...r,...this.data.points]}setConfig(r){c.log$1.trace("setConfig called with: ",r),this.config={...this.config,...r}}setThemeConfig(r){c.log$1.trace("setThemeConfig called with: ",r),this.themeConfig={...this.themeConfig,...r}}calculateSpace(r,h,x,g){const d=this.config.xAxisLabelPadding*2+this.config.xAxisLabelFontSize,u={top:r==="top"&&h?d:0,bottom:r==="bottom"&&h?d:0},p=this.config.yAxisLabelPadding*2+this.config.yAxisLabelFontSize,i={left:this.config.yAxisPosition==="left"&&x?p:0,right:this.config.yAxisPosition==="right"&&x?p:0},q=this.config.titleFontSize+this.config.titlePadding*2,y={top:g?q:0},B=this.config.quadrantPadding+i.left,N=this.config.quadrantPadding+u.top+y.top,V=this.config.chartWidth-this.config.quadrantPadding*2-i.left-i.right,I=this.config.chartHeight-this.config.quadrantPadding*2-u.top-u.bottom-y.top,b=V/2,H=I/2;return{xAxisSpace:u,yAxisSpace:i,titleSpace:y,quadrantSpace:{quadrantLeft:B,quadrantTop:N,quadrantWidth:V,quadrantHalfWidth:b,quadrantHeight:I,quadrantHalfHeight:H}}}getAxisLabels(r,h,x,g){const{quadrantSpace:d,titleSpace:u}=g,{quadrantHalfHeight:p,quadrantHeight:i,quadrantLeft:q,quadrantHalfWidth:y,quadrantTop:B,quadrantWidth:N}=d,V=!!this.data.xAxisRightText,I=!!this.data.yAxisTopText,b=[];return this.data.xAxisLeftText&&h&&b.push({text:this.data.xAxisLeftText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+(V?y/2:0),y:r==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.xAxisRightText&&h&&b.push({text:this.data.xAxisRightText,fill:this.themeConfig.quadrantXAxisTextFill,x:q+y+(V?y/2:0),y:r==="top"?this.config.xAxisLabelPadding+u.top:this.config.xAxisLabelPadding+B+i+this.config.quadrantPadding,fontSize:this.config.xAxisLabelFontSize,verticalPos:V?"center":"left",horizontalPos:"top",rotation:0}),this.data.yAxisBottomText&&x&&b.push({text:this.data.yAxisBottomText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+N+this.config.quadrantPadding,y:B+i-(I?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),this.data.yAxisTopText&&x&&b.push({text:this.data.yAxisTopText,fill:this.themeConfig.quadrantYAxisTextFill,x:this.config.yAxisPosition==="left"?this.config.yAxisLabelPadding:this.config.yAxisLabelPadding+q+N+this.config.quadrantPadding,y:B+p-(I?p/2:0),fontSize:this.config.yAxisLabelFontSize,verticalPos:I?"center":"left",horizontalPos:"top",rotation:-90}),b}getQuadrants(r){const{quadrantSpace:h}=r,{quadrantHalfHeight:x,quadrantLeft:g,quadrantHalfWidth:d,quadrantTop:u}=h,p=[{text:{text:this.data.quadrant1Text,fill:this.themeConfig.quadrant1TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+d,y:u,width:d,height:x,fill:this.themeConfig.quadrant1Fill},{text:{text:this.data.quadrant2Text,fill:this.themeConfig.quadrant2TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:u,width:d,height:x,fill:this.themeConfig.quadrant2Fill},{text:{text:this.data.quadrant3Text,fill:this.themeConfig.quadrant3TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g,y:u+x,width:d,height:x,fill:this.themeConfig.quadrant3Fill},{text:{text:this.data.quadrant4Text,fill:this.themeConfig.quadrant4TextFill,x:0,y:0,fontSize:this.config.quadrantLabelFontSize,verticalPos:"center",horizontalPos:"middle",rotation:0},x:g+d,y:u+x,width:d,height:x,fill:this.themeConfig.quadrant4Fill}];for(const i of p)i.text.x=i.x+i.width/2,this.data.points.length===0?(i.text.y=i.y+i.height/2,i.text.horizontalPos="middle"):(i.text.y=i.y+this.config.quadrantTextTopPadding,i.text.horizontalPos="top");return p}getQuadrantPoints(r){const{quadrantSpace:h}=r,{quadrantHeight:x,quadrantLeft:g,quadrantTop:d,quadrantWidth:u}=h,p=qt.linear().domain([0,1]).range([g,u+g]),i=qt.linear().domain([0,1]).range([x+d,d]);return this.data.points.map(y=>({x:p(y.x),y:i(y.y),fill:this.themeConfig.quadrantPointFill,radius:this.config.pointRadius,text:{text:y.text,fill:this.themeConfig.quadrantPointTextFill,x:p(y.x),y:i(y.y)+this.config.pointTextPadding,verticalPos:"center",horizontalPos:"top",fontSize:this.config.pointLabelFontSize,rotation:0}}))}getBorders(r){const h=this.config.quadrantExternalBorderStrokeWidth/2,{quadrantSpace:x}=r,{quadrantHalfHeight:g,quadrantHeight:d,quadrantLeft:u,quadrantHalfWidth:p,quadrantTop:i,quadrantWidth:q}=x;return[{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-h,y1:i,x2:u+q+h,y2:i},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u+q,y1:i+h,x2:u+q,y2:i+d-h},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u-h,y1:i+d,x2:u+q+h,y2:i+d},{strokeFill:this.themeConfig.quadrantExternalBorderStrokeFill,strokeWidth:this.config.quadrantExternalBorderStrokeWidth,x1:u,y1:i+h,x2:u,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+p,y1:i+h,x2:u+p,y2:i+d-h},{strokeFill:this.themeConfig.quadrantInternalBorderStrokeFill,strokeWidth:this.config.quadrantInternalBorderStrokeWidth,x1:u+h,y1:i+g,x2:u+q-h,y2:i+g}]}getTitle(r){if(r)return{text:this.data.titleText,fill:this.themeConfig.quadrantTitleFill,fontSize:this.config.titleFontSize,horizontalPos:"top",verticalPos:"center",rotation:0,y:this.config.titlePadding,x:this.config.chartWidth/2}}build(){const r=this.config.showXAxis&&!!(this.data.xAxisLeftText||this.data.xAxisRightText),h=this.config.showYAxis&&!!(this.data.yAxisTopText||this.data.yAxisBottomText),x=this.config.showTitle&&!!this.data.titleText,g=this.data.points.length>0?"bottom":this.config.xAxisPosition,d=this.calculateSpace(g,r,h,x);return{points:this.getQuadrantPoints(d),quadrants:this.getQuadrants(d),axisLabels:this.getAxisLabels(g,r,h,d),borderLines:this.getBorders(d),title:this.getTitle(x)}}}const Ft=c.getConfig();function G(e){return c.sanitizeText$2(e.trim(),Ft)}const w=new kt;function Pt(e){w.setData({quadrant1Text:G(e.text)})}function vt(e){w.setData({quadrant2Text:G(e.text)})}function Ct(e){w.setData({quadrant3Text:G(e.text)})}function Lt(e){w.setData({quadrant4Text:G(e.text)})}function zt(e){w.setData({xAxisLeftText:G(e.text)})}function Et(e){w.setData({xAxisRightText:G(e.text)})}function Dt(e){w.setData({yAxisTopText:G(e.text)})}function It(e){w.setData({yAxisBottomText:G(e.text)})}function Bt(e,r,h){w.addPoints([{x:r,y:h,text:G(e.text)}])}function wt(e){w.setConfig({chartWidth:e})}function Rt(e){w.setConfig({chartHeight:e})}function Vt(){const e=c.getConfig(),{themeVariables:r,quadrantChart:h}=e;return h&&w.setConfig(h),w.setThemeConfig({quadrant1Fill:r.quadrant1Fill,quadrant2Fill:r.quadrant2Fill,quadrant3Fill:r.quadrant3Fill,quadrant4Fill:r.quadrant4Fill,quadrant1TextFill:r.quadrant1TextFill,quadrant2TextFill:r.quadrant2TextFill,quadrant3TextFill:r.quadrant3TextFill,quadrant4TextFill:r.quadrant4TextFill,quadrantPointFill:r.quadrantPointFill,quadrantPointTextFill:r.quadrantPointTextFill,quadrantXAxisTextFill:r.quadrantXAxisTextFill,quadrantYAxisTextFill:r.quadrantYAxisTextFill,quadrantExternalBorderStrokeFill:r.quadrantExternalBorderStrokeFill,quadrantInternalBorderStrokeFill:r.quadrantInternalBorderStrokeFill,quadrantTitleFill:r.quadrantTitleFill}),w.setData({titleText:c.getDiagramTitle()}),w.build()}const Wt=function(){w.clear(),c.clear()},Nt={setWidth:wt,setHeight:Rt,setQuadrant1Text:Pt,setQuadrant2Text:vt,setQuadrant3Text:Ct,setQuadrant4Text:Lt,setXAxisLeftText:zt,setXAxisRightText:Et,setYAxisTopText:Dt,setYAxisBottomText:It,addPoint:Bt,getQuadrantData:Vt,clear:Wt,setAccTitle:c.setAccTitle,getAccTitle:c.getAccTitle,setDiagramTitle:c.setDiagramTitle,getDiagramTitle:c.getDiagramTitle,getAccDescription:c.getAccDescription,setAccDescription:c.setAccDescription},Ut=(e,r,h,x)=>{var g,d,u;function p(t){return t==="top"?"hanging":"middle"}function i(t){return t==="left"?"start":"middle"}function q(t){return`translate(${t.x}, ${t.y}) rotate(${t.rotation||0})`}const y=c.getConfig();c.log$1.debug(`Rendering quadrant chart
|
|
7
|
+
`+e);const B=y.securityLevel;let N;B==="sandbox"&&(N=c.select("#i"+r));const I=(B==="sandbox"?c.select(N.nodes()[0].contentDocument.body):c.select("body")).select(`[id="${r}"]`),b=I.append("g").attr("class","main"),H=((g=y.quadrantChart)==null?void 0:g.chartWidth)||500,M=((d=y.quadrantChart)==null?void 0:d.chartHeight)||500;c.configureSvgSize(I,M,H,((u=y.quadrantChart)==null?void 0:u.useMaxWidth)||!0),I.attr("viewBox","0 0 "+H+" "+M),x.db.setHeight(M),x.db.setWidth(H);const z=x.db.getQuadrantData(),it=b.append("g").attr("class","quadrants"),at=b.append("g").attr("class","border"),nt=b.append("g").attr("class","data-points"),U=b.append("g").attr("class","labels"),$=b.append("g").attr("class","title");z.title&&$.append("text").attr("x",0).attr("y",0).attr("fill",z.title.fill).attr("font-size",z.title.fontSize).attr("dominant-baseline",p(z.title.horizontalPos)).attr("text-anchor",i(z.title.verticalPos)).attr("transform",q(z.title)).text(z.title.text),z.borderLines&&at.selectAll("line").data(z.borderLines).enter().append("line").attr("x1",t=>t.x1).attr("y1",t=>t.y1).attr("x2",t=>t.x2).attr("y2",t=>t.y2).style("stroke",t=>t.strokeFill).style("stroke-width",t=>t.strokeWidth);const _=it.selectAll("g.quadrant").data(z.quadrants).enter().append("g").attr("class","quadrant");_.append("rect").attr("x",t=>t.x).attr("y",t=>t.y).attr("width",t=>t.width).attr("height",t=>t.height).attr("fill",t=>t.fill),_.append("text").attr("x",0).attr("y",0).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>p(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>q(t.text)).text(t=>t.text.text),U.selectAll("g.label").data(z.axisLabels).enter().append("g").attr("class","label").append("text").attr("x",0).attr("y",0).text(t=>t.text).attr("fill",t=>t.fill).attr("font-size",t=>t.fontSize).attr("dominant-baseline",t=>p(t.horizontalPos)).attr("text-anchor",t=>i(t.verticalPos)).attr("transform",t=>q(t));const m=nt.selectAll("g.data-point").data(z.points).enter().append("g").attr("class","data-point");m.append("circle").attr("cx",t=>t.x).attr("cy",t=>t.y).attr("r",t=>t.radius).attr("fill",t=>t.fill),m.append("text").attr("x",0).attr("y",0).text(t=>t.text.text).attr("fill",t=>t.text.fill).attr("font-size",t=>t.text.fontSize).attr("dominant-baseline",t=>p(t.text.horizontalPos)).attr("text-anchor",t=>i(t.text.verticalPos)).attr("transform",t=>q(t.text))},$t={draw:Ut},Qt={parser:St,db:Nt,renderer:$t,styles:()=>""};exports.diagram=Qt;
|