From 06f2425871ccc9040a3351f779db3a13b99d7ba7 Mon Sep 17 00:00:00 2001 From: antmicrobot Date: Fri, 29 Nov 2024 14:08:14 +0000 Subject: [PATCH] deploy: 969595783fde856d6b65df0b54996de40aaa8a0a --- MystEditor.js | 6812 ++++++++++++++++++++------------------- docs/collaboration.html | 2 +- docs/comments.html | 2 +- docs/genindex.html | 2 +- docs/index.html | 2 +- docs/introduction.html | 2 +- docs/mermaid.html | 2 +- docs/rich-links.html | 2 +- docs/topbar.html | 2 +- 9 files changed, 3417 insertions(+), 3411 deletions(-) diff --git a/MystEditor.js b/MystEditor.js index 16b49d2..c8d2259 100644 --- a/MystEditor.js +++ b/MystEditor.js @@ -36258,7 +36258,7 @@ var eae = /* @__PURE__ */ x((t) => (Jyt(), Tm.sanitize(t)), "removeScript"), IV return t; if (!($V() || e.legacyMathML || e.forceLegacyMathML)) return t.replace(S9, "MathML is unsupported in this environment."); - const { default: r } = await Promise.resolve().then(() => jRt), n = e.forceLegacyMathML || !$V() && e.legacyMathML ? "htmlAndMathml" : "mathml"; + const { default: r } = await Promise.resolve().then(() => JRt), n = e.forceLegacyMathML || !$V() && e.legacyMathML ? "htmlAndMathml" : "mathml"; return t.split(M1).map( (i) => Ra(i) ? `
${i}
` : `
${i}
` ).join("").replace( @@ -45930,7 +45930,7 @@ res:`, qle([ { name: "dagre", - loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => B$t), "loader") + loader: /* @__PURE__ */ x(async () => await Promise.resolve().then(() => z$t), "loader") } ]); }, "registerDefaultLayoutLoaders"); @@ -46266,7 +46266,7 @@ function Hr(t) { return !0; } var Jle = "c4", AEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t), "detector"), LEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => IBt); + const { diagram: t } = await Promise.resolve().then(() => BBt); return { id: Jle, diagram: t }; }, "loader"), REt = { id: Jle, @@ -46293,63 +46293,63 @@ var Jle = "c4", AEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp detector: $Et, loader: BEt }, zEt = FEt, rce = "er", QEt = /* @__PURE__ */ x((t) => /^\s*erDiagram/.test(t), "detector"), UEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Fzt); + const { diagram: t } = await Promise.resolve().then(() => Qzt); return { id: rce, diagram: t }; }, "loader"), VEt = { id: rce, detector: QEt, loader: UEt }, qEt = VEt, nce = "gitGraph", YEt = /* @__PURE__ */ x((t) => /^\s*gitGraph/.test(t), "detector"), WEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => sXt); + const { diagram: t } = await Promise.resolve().then(() => oXt); return { id: nce, diagram: t }; }, "loader"), GEt = { id: nce, detector: YEt, loader: WEt }, XEt = GEt, ice = "gantt", HEt = /* @__PURE__ */ x((t) => /^\s*gantt/.test(t), "detector"), ZEt = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => JXt); + const { diagram: t } = await Promise.resolve().then(() => tHt); return { id: ice, diagram: t }; }, "loader"), jEt = { id: ice, detector: HEt, loader: ZEt }, KEt = jEt, sce = "info", JEt = /* @__PURE__ */ x((t) => /^\s*info/.test(t), "detector"), e_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => oHt); + const { diagram: t } = await Promise.resolve().then(() => cHt); return { id: sce, diagram: t }; }, "loader"), t_t = { id: sce, detector: JEt, loader: e_t }, ace = "pie", r_t = /* @__PURE__ */ x((t) => /^\s*pie/.test(t), "detector"), n_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => kHt); + const { diagram: t } = await Promise.resolve().then(() => THt); return { id: ace, diagram: t }; }, "loader"), i_t = { id: ace, detector: r_t, loader: n_t }, oce = "quadrantChart", s_t = /* @__PURE__ */ x((t) => /^\s*quadrantChart/.test(t), "detector"), a_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => MHt); + const { diagram: t } = await Promise.resolve().then(() => PHt); return { id: oce, diagram: t }; }, "loader"), o_t = { id: oce, detector: s_t, loader: a_t }, l_t = o_t, lce = "xychart", c_t = /* @__PURE__ */ x((t) => /^\s*xychart-beta/.test(t), "detector"), u_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => GHt); + const { diagram: t } = await Promise.resolve().then(() => HHt); return { id: lce, diagram: t }; }, "loader"), h_t = { id: lce, detector: c_t, loader: u_t }, f_t = h_t, cce = "requirement", d_t = /* @__PURE__ */ x((t) => /^\s*requirement(Diagram)?/.test(t), "detector"), p_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => TZt); + const { diagram: t } = await Promise.resolve().then(() => EZt); return { id: cce, diagram: t }; }, "loader"), g_t = { id: cce, detector: d_t, loader: p_t }, m_t = g_t, uce = "sequence", v_t = /* @__PURE__ */ x((t) => /^\s*sequenceDiagram/.test(t), "detector"), y_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Cjt); + const { diagram: t } = await Promise.resolve().then(() => _jt); return { id: uce, diagram: t }; }, "loader"), b_t = { id: uce, @@ -46359,7 +46359,7 @@ var Jle = "c4", AEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp var r; return ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*classDiagram/.test(t); }, "detector"), O_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => oKt); + const { diagram: t } = await Promise.resolve().then(() => cKt); return { id: hce, diagram: t }; }, "loader"), k_t = { id: hce, @@ -46369,7 +46369,7 @@ var Jle = "c4", AEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp var r; return /^\s*classDiagram/.test(t) && ((r = e == null ? void 0 : e.class) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !0 : /^\s*classDiagram-v2/.test(t); }, "detector"), C_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => VKt); + const { diagram: t } = await Promise.resolve().then(() => YKt); return { id: fce, diagram: t }; }, "loader"), E_t = { id: fce, @@ -46379,7 +46379,7 @@ var Jle = "c4", AEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp var r; return ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper" ? !1 : /^\s*stateDiagram/.test(t); }, "detector"), L_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => eer); + const { diagram: t } = await Promise.resolve().then(() => rer); return { id: dce, diagram: t }; }, "loader"), R_t = { id: dce, @@ -46389,14 +46389,14 @@ var Jle = "c4", AEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp var r; return !!(/^\s*stateDiagram-v2/.test(t) || /^\s*stateDiagram/.test(t) && ((r = e == null ? void 0 : e.state) == null ? void 0 : r.defaultRenderer) === "dagre-wrapper"); }, "detector"), P_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => rer); + const { diagram: t } = await Promise.resolve().then(() => ier); return { id: pce, diagram: t }; }, "loader"), N_t = { id: pce, detector: D_t, loader: P_t }, I_t = N_t, gce = "journey", $_t = /* @__PURE__ */ x((t) => /^\s*journey/.test(t), "detector"), B_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Ser); + const { diagram: t } = await Promise.resolve().then(() => Cer); return { id: gce, diagram: t }; }, "loader"), F_t = { id: gce, @@ -46443,42 +46443,42 @@ var Jle = "c4", AEt = /* @__PURE__ */ x((t) => /^\s*C4Context|C4Container|C4Comp detector: Y_t, loader: W_t }, X_t = G_t, yce = "timeline", H_t = /* @__PURE__ */ x((t) => /^\s*timeline/.test(t), "detector"), Z_t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Wer); + const { diagram: t } = await Promise.resolve().then(() => Xer); return { id: yce, diagram: t }; }, "loader"), j_t = { id: yce, detector: H_t, loader: Z_t }, K_t = j_t, bce = "mindmap", J_t = /* @__PURE__ */ x((t) => /^\s*mindmap/.test(t), "detector"), e6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => scr); + const { diagram: t } = await Promise.resolve().then(() => ocr); return { id: bce, diagram: t }; }, "loader"), t6t = { id: bce, detector: J_t, loader: e6t }, r6t = t6t, xce = "sankey", n6t = /* @__PURE__ */ x((t) => /^\s*sankey-beta/.test(t), "detector"), i6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Qcr); + const { diagram: t } = await Promise.resolve().then(() => Vcr); return { id: xce, diagram: t }; }, "loader"), s6t = { id: xce, detector: n6t, loader: i6t }, a6t = s6t, wce = "packet", o6t = /* @__PURE__ */ x((t) => /^\s*packet-beta/.test(t), "detector"), l6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => nur); + const { diagram: t } = await Promise.resolve().then(() => sur); return { id: wce, diagram: t }; }, "loader"), c6t = { id: wce, detector: o6t, loader: l6t }, Oce = "block", u6t = /* @__PURE__ */ x((t) => /^\s*block-beta/.test(t), "detector"), h6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => Rur); + const { diagram: t } = await Promise.resolve().then(() => Dur); return { id: Oce, diagram: t }; }, "loader"), f6t = { id: Oce, detector: u6t, loader: h6t }, d6t = f6t, kce = "architecture", p6t = /* @__PURE__ */ x((t) => /^\s*architecture/.test(t), "detector"), g6t = /* @__PURE__ */ x(async () => { - const { diagram: t } = await Promise.resolve().then(() => dhr); + const { diagram: t } = await Promise.resolve().then(() => ghr); return { id: kce, diagram: t }; }, "loader"), m6t = { id: kce, @@ -49408,8 +49408,14 @@ Ohe = function(t, e, r) { var l7t = function(t, e) { t.core.ruler.push("checkbox", Ohe(t, e)); }; -const c7t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length; +const c7t = /:{3,}/g; function u7t(t) { + t.core.ruler.before("block", "colon", (e) => { + e.src = e.src.replace(c7t, (r) => "`".repeat(r.length)); + }); +} +const h7t = (t, e) => ((t == null ? void 0 : t.match(e)) || []).length; +function f7t(t) { const e = t.renderer.rules.link_open; t.renderer.rules.link_open = (r, n, i, s, a) => { var l, u; @@ -49421,9 +49427,9 @@ function u7t(t) { return e(r, n, i, s, a); }; } -const h7t = (t, e) => () => { +const d7t = (t, e) => () => { window.myst_editor[e].text = t; -}, f7t = async (t) => { +}, p7t = async (t) => { const r = new DOMParser().parseFromString(t, "text/html"); r.querySelectorAll("[data-line-id]").forEach((i) => i.removeAttribute("data-line-id")), r.querySelectorAll("span").forEach((i) => { i.attributes.length === 0 && (i.insertAdjacentHTML("afterend", i.innerHTML), i.remove()); @@ -49437,7 +49443,7 @@ const h7t = (t, e) => () => { type: "text/html" }) })]); -}, J3 = or.define(), d7t = ({ +}, J3 = or.define(), g7t = ({ preview: t }) => { const { @@ -49466,7 +49472,7 @@ const h7t = (t, e) => () => { }).use(jLe).use(Rvt(n.transforms.value, n.parent, r.transform)).use(Dvt(n.customRoles.value, n.parent, r.transform)).use(s7t, { lineMap: d, parent: n.parent - }).use(Nvt).use(u7t).use(l7t); + }).use(Nvt).use(f7t).use(u7t).use(l7t); return n.backslashLineBreak.value && b.use(Pvt), b; }), v = ck((b) => { if (b.startState.doc.lines === b.state.doc.lines) @@ -49489,7 +49495,7 @@ const h7t = (t, e) => () => { `).length); const E = A + S.trimLeft().split(` `).length - 1; - return c7t(T == null ? void 0 : T.md, /\n```/g) % 2 != 0 ? O[C] = { + return h7t(T == null ? void 0 : T.md, /\n```/g) % 2 != 0 ? O[C] = { md: T.md + S, startLine: T.startLine, endLine: E @@ -49527,7 +49533,7 @@ const h7t = (t, e) => () => { }), [m.value, n.id.value]); return ri(() => a && g({ newMarkdown: i - }), [a]), ri(h7t(i, n.id.value), [i]), ri(() => { + }), [a]), ri(d7t(i, n.id.value), [i]), ri(() => { l && (h.action(i), u(!1)); }, [l]), ri(() => { if (t.current == null) @@ -49587,12 +49593,12 @@ const h7t = (t, e) => () => { o(!0); }, async copy() { - await f7t(y(window.myst_editor[n.id.value].text, {}, []).map((b) => b.html).join(` + await p7t(y(window.myst_editor[n.id.value].text, {}, []).map((b) => b.html).join(` `)); }, lineMap: d }; -}, khe = 20, p7t = 100, SY = 500, g7t = (t, e, r) => { +}, khe = 20, m7t = 100, SY = 500, v7t = (t, e, r) => { let n; return kt.updateListener.of((i) => { const s = i.startState.doc.lineAt(i.startState.selection.main.head).number, a = i.state.doc.lineAt(i.state.selection.main.head).number, o = i.selectionSet && (s !== a || s === 1), l = r.current === null ? SY : performance.now() - r.current, u = i.transactions.some((d) => d.effects.some((p) => p.is(J3))) && l < SY, h = i.geometryChanged && !i.viewportChanged; @@ -49600,7 +49606,7 @@ const h7t = (t, e) => () => { return; function f() { const [d, p] = _se(a, t, e.current); - d && m7t({ + d && y7t({ view: i.view, matchingLine: p, matchingElem: d, @@ -49608,10 +49614,10 @@ const h7t = (t, e) => () => { preview: e.current }); } - clearTimeout(n), n = setTimeout(f, p7t); + clearTimeout(n), n = setTimeout(f, m7t); }); }; -function m7t({ +function y7t({ view: t, matchingLine: e, matchingElem: r, @@ -49626,12 +49632,12 @@ function m7t({ behavior: n }); } -function v7t(t, e, r, n) { +function b7t(t, e, r, n) { let i = t.target.getAttribute("data-line-id"), s = t.target; if (!i) for (; s.tagName !== "HTML-CHUNK"; ) { const f = s.parentElement; - if ([i, s] = y7t(s), i) + if ([i, s] = x7t(s), i) break; s = f; } @@ -49673,7 +49679,7 @@ function TY(t, e, r, n) { editorParent: o }; } -function y7t(t) { +function x7t(t) { let e = t; for (; e != null; ) { const r = e.getAttribute("data-line-id"); @@ -49683,7 +49689,7 @@ function y7t(t) { } return [void 0, e]; } -const b7t = (t, e) => kt.updateListener.of((r) => { +const w7t = (t, e) => kt.updateListener.of((r) => { const n = r.startState.doc.lineAt(r.startState.selection.main.head).number, i = r.state.doc.lineAt(r.state.selection.main.head).number, s = r.selectionSet && (n !== i || n === 1), a = r.transactions.some((h) => h.effects.some((f) => f.is(J3))), o = r.geometryChanged && !r.viewportChanged; if (r.docChanged || !s && !a && !o) return; @@ -49696,13 +49702,13 @@ const b7t = (t, e) => kt.updateListener.of((r) => { u.style.left = `${d}px`, u.style.height = `${f.height}px`; } else u.style.height = "0px"; -}), cg = 63, CY = 64, x7t = 1, w7t = 2, She = 3, O7t = 4, The = 5, k7t = 6, S7t = 7, Che = 65, T7t = 66, C7t = 8, E7t = 9, _7t = 10, A7t = 11, L7t = 12, Ehe = 13, R7t = 19, M7t = 20, D7t = 29, P7t = 33, N7t = 34, I7t = 47, $7t = 0, LN = 1, wL = 2, db = 3, OL = 4; +}), cg = 63, CY = 64, O7t = 1, k7t = 2, She = 3, S7t = 4, The = 5, T7t = 6, C7t = 7, Che = 65, E7t = 66, _7t = 8, A7t = 9, L7t = 10, R7t = 11, M7t = 12, Ehe = 13, D7t = 19, P7t = 20, N7t = 29, I7t = 33, $7t = 34, B7t = 47, F7t = 0, LN = 1, wL = 2, db = 3, OL = 4; class Hd { constructor(e, r, n) { this.parent = e, this.depth = r, this.type = n, this.hash = (e ? e.hash + e.hash << 8 : 0) + r + (r << 4) + n; } } -Hd.top = new Hd(null, -1, $7t); +Hd.top = new Hd(null, -1, F7t); function Ky(t, e) { for (let r = 0, n = e - t.pos - 1; ; n--, r++) { let i = t.peek(n); @@ -49722,10 +49728,10 @@ function _he(t) { function d0(t) { return t < 0 || _he(t); } -const B7t = new ZD({ +const z7t = new ZD({ start: Hd.top, reduce(t, e) { - return t.type == db && (e == M7t || e == N7t) ? t.parent : t; + return t.type == db && (e == P7t || e == $7t) ? t.parent : t; }, shift(t, e, r, n) { if (e == She) @@ -49734,11 +49740,11 @@ const B7t = new ZD({ return new Hd(t, Ky(n, n.pos), wL); if (e == cg) return t.parent; - if (e == R7t || e == P7t) + if (e == D7t || e == I7t) return new Hd(t, 0, db); if (e == Ehe && t.type == OL) return t.parent; - if (e == I7t) { + if (e == B7t) { let i = /[1-9]/.exec(n.read(n.pos, r.pos)); if (i) return new Hd(t, t.depth + +i[0], OL); @@ -49752,7 +49758,7 @@ const B7t = new ZD({ function Vm(t, e, r = 0) { return t.peek(r) == e && t.peek(r + 1) == e && t.peek(r + 2) == e && d0(t.peek(r + 3)); } -const F7t = new Pa((t, e) => { +const Q7t = new Pa((t, e) => { if (t.next == -1 && e.canShift(CY)) return t.acceptToken(CY); let r = t.peek(-1); @@ -49761,26 +49767,26 @@ const F7t = new Pa((t, e) => { if (e.canShift(cg)) t.acceptToken(cg); else - return t.acceptToken(x7t, 3); + return t.acceptToken(O7t, 3); if (Vm(t, 46)) if (e.canShift(cg)) t.acceptToken(cg); else - return t.acceptToken(w7t, 3); + return t.acceptToken(k7t, 3); let n = 0; for (; t.next == 32; ) n++, t.advance(); (n < e.context.depth || n == e.context.depth && e.context.type == LN && (t.next != 45 || !d0(t.peek(1)))) && t.next != -1 && !vh(t.next) && t.next != 35 && t.acceptToken(cg, -n); } -}, { contextual: !0 }), z7t = new Pa((t, e) => { +}, { contextual: !0 }), U7t = new Pa((t, e) => { if (e.context.type == db) { - t.next == 63 && (t.advance(), d0(t.next) && t.acceptToken(S7t)); + t.next == 63 && (t.advance(), d0(t.next) && t.acceptToken(C7t)); return; } if (t.next == 45) - t.advance(), d0(t.next) && t.acceptToken(e.context.type == LN && e.context.depth == Ky(t, t.pos - 1) ? O7t : She); + t.advance(), d0(t.next) && t.acceptToken(e.context.type == LN && e.context.depth == Ky(t, t.pos - 1) ? S7t : She); else if (t.next == 63) - t.advance(), d0(t.next) && t.acceptToken(e.context.type == wL && e.context.depth == Ky(t, t.pos - 1) ? k7t : The); + t.advance(), d0(t.next) && t.acceptToken(e.context.type == wL && e.context.depth == Ky(t, t.pos - 1) ? T7t : The); else { let r = t.pos; for (; ; ) @@ -49800,7 +49806,7 @@ const F7t = new Pa((t, e) => { break; return; } else if (t.next == 91 || t.next == 123) { - if (!U7t(t)) + if (!q7t(t)) return; break; } else { @@ -49810,21 +49816,21 @@ const F7t = new Pa((t, e) => { for (; kL(t.next); ) t.advance(); if (t.next == 58) { - if (t.pos == r && e.canShift(D7t)) + if (t.pos == r && e.canShift(N7t)) return; let n = t.peek(1); - d0(n) && t.acceptTokenTo(e.context.type == wL && e.context.depth == Ky(t, r) ? T7t : Che, r); + d0(n) && t.acceptTokenTo(e.context.type == wL && e.context.depth == Ky(t, r) ? E7t : Che, r); } } }, { contextual: !0 }); -function Q7t(t) { +function V7t(t) { return t > 32 && t < 127 && t != 34 && t != 37 && t != 44 && t != 60 && t != 62 && t != 92 && t != 94 && t != 96 && t != 123 && t != 124 && t != 125; } function EY(t) { return t >= 48 && t <= 57 || t >= 97 && t <= 102 || t >= 65 && t <= 70; } function _Y(t, e) { - return t.next == 37 ? (t.advance(), EY(t.next) && t.advance(), EY(t.next) && t.advance(), !0) : Q7t(t.next) || e && t.next == 44 ? (t.advance(), !0) : !1; + return t.next == 37 ? (t.advance(), EY(t.next) && t.advance(), EY(t.next) && t.advance(), !0) : V7t(t.next) || e && t.next == 44 ? (t.advance(), !0) : !1; } function Ahe(t) { if (t.advance(), t.next == 60) { @@ -49866,7 +49872,7 @@ function RN(t, e) { } return !n; } -function U7t(t) { +function q7t(t) { for (let e = [], r = t.pos + 1024; ; ) if (t.next == 91 || t.next == 123) e.push(t.next), t.advance(); @@ -49884,9 +49890,9 @@ function U7t(t) { t.advance(); } } -const V7t = "iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif"; +const Y7t = "iiisiiissisfissssssssssssisssiiissssssssssssssssssssssssssfsfssissssssssssssssssssssssssssfif"; function eS(t) { - return t < 33 ? "u" : t > 125 ? "s" : V7t[t - 33]; + return t < 33 ? "u" : t > 125 ? "s" : Y7t[t - 33]; } function lA(t, e) { let r = eS(t); @@ -49920,15 +49926,15 @@ function Lhe(t, e, r, n) { } return !0; } -const q7t = new Pa((t, e) => { +const W7t = new Pa((t, e) => { if (t.next == 33) - Ahe(t), t.acceptToken(L7t); + Ahe(t), t.acceptToken(M7t); else if (t.next == 38 || t.next == 42) { - let r = t.next == 38 ? _7t : A7t; + let r = t.next == 38 ? L7t : R7t; SL(t), t.acceptToken(r); } else - t.next == 39 || t.next == 34 ? (RN(t, !1), t.acceptToken(E7t)) : Lhe(t, !1, e.context.type == db, e.context.depth) && t.acceptToken(C7t); -}), Y7t = new Pa((t, e) => { + t.next == 39 || t.next == 34 ? (RN(t, !1), t.acceptToken(A7t)) : Lhe(t, !1, e.context.type == db, e.context.depth) && t.acceptToken(_7t); +}), G7t = new Pa((t, e) => { let r = e.context.type == OL ? e.context.depth : -1, n = t.pos; e: for (; ; ) { @@ -49947,7 +49953,7 @@ const q7t = new Pa((t, e) => { } } t.acceptTokenTo(Ehe, n); -}), W7t = fd({ +}), X7t = fd({ DirectiveName: Se.keyword, DirectiveContent: Se.attributeValue, "DirectiveEnd DocEnd": Se.meta, @@ -49963,27 +49969,27 @@ const q7t = new Pa((t, e) => { "?": Se.punctuation, "[ ]": Se.squareBracket, "{ }": Se.brace -}), G7t = Uf.deserialize({ +}), H7t = Uf.deserialize({ version: 14, states: "5lQ!ZQgOOO#PQfO'#CpO#uQfO'#DOOOQR'#Dv'#DvO$qQgO'#DRO%gQdO'#DUO%nQgO'#DUO&ROaO'#D[OOQR'#Du'#DuO&{QgO'#D^O'rQgO'#D`OOQR'#Dt'#DtO(iOqO'#DbOOQP'#Dj'#DjO(zQaO'#CmO)YQgO'#CmOOQP'#Cm'#CmQ)jQaOOQ)uQgOOQ]QgOOO*PQdO'#CrO*nQdO'#CtOOQO'#Dw'#DwO+]Q`O'#CxO+hQdO'#CwO+rQ`O'#CwOOQO'#Cv'#CvO+wQdO'#CvOOQO'#Cq'#CqO,UQ`O,59[O,^QfO,59[OOQR,59[,59[OOQO'#Cx'#CxO,eQ`O'#DPO,pQdO'#DPOOQO'#Dx'#DxO,zQdO'#DxO-XQ`O,59jO-aQfO,59jOOQR,59j,59jOOQR'#DS'#DSO-hQcO,59mO-sQgO'#DVO.TQ`O'#DVO.YQcO,59pOOQR'#DX'#DXO#|QfO'#DWO.hQcO'#DWOOQR,59v,59vO.yOWO,59vO/OOaO,59vO/WOaO,59vO/cQgO'#D_OOQR,59x,59xO0VQgO'#DaOOQR,59z,59zOOQP,59|,59|O0yOaO,59|O1ROaO,59|O1aOqO,59|OOQP-E7h-E7hO1oQgO,59XOOQP,59X,59XO2PQaO'#DeO2_QgO'#DeO2oQgO'#DkOOQP'#Dk'#DkQ)jQaOOO3PQdO'#CsOOQO,59^,59^O3kQdO'#CuOOQO,59`,59`OOQO,59c,59cO4VQdO,59cO4aQdO'#CzO4kQ`O'#CzOOQO,59b,59bOOQU,5:Q,5:QOOQR1G.v1G.vO4pQ`O1G.vOOQU-E7d-E7dO4xQdO,59kOOQO,59k,59kO5SQdO'#DQO5^Q`O'#DQOOQO,5:d,5:dOOQU,5:R,5:ROOQR1G/U1G/UO5cQ`O1G/UOOQU-E7e-E7eO5kQgO'#DhO5xQcO1G/XOOQR1G/X1G/XOOQR,59q,59qO6TQgO,59qO6eQdO'#DiO6lQgO'#DiO7PQcO1G/[OOQR1G/[1G/[OOQR,59r,59rO#|QfO,59rOOQR1G/b1G/bO7_OWO1G/bO7dOaO1G/bOOQR,59y,59yOOQR,59{,59{OOQP1G/h1G/hO7lOaO1G/hO7tOaO1G/hO8POaO1G/hOOQP1G.s1G.sO8_QgO,5:POOQP,5:P,5:POOQP,5:V,5:VOOQP-E7i-E7iOOQO,59_,59_OOQO,59a,59aOOQO1G.}1G.}OOQO,59f,59fO8oQdO,59fOOQR7+$b7+$bP,XQ`O'#DfOOQO1G/V1G/VOOQO,59l,59lO8yQdO,59lOOQR7+$p7+$pP9TQ`O'#DgOOQR'#DT'#DTOOQR,5:S,5:SOOQR-E7f-E7fOOQR7+$s7+$sOOQR1G/]1G/]O9YQgO'#DYO9jQ`O'#DYOOQR,5:T,5:TO#|QfO'#DZO9oQcO'#DZOOQR-E7g-E7gOOQR7+$v7+$vOOQR1G/^1G/^OOQR7+$|7+$|O:QOWO7+$|OOQP7+%S7+%SO:VOaO7+%SO:_OaO7+%SOOQP1G/k1G/kOOQO1G/Q1G/QOOQO1G/W1G/WOOQR,59t,59tO:jQgO,59tOOQR,59u,59uO#|QfO,59uOOQR<YAN>Y", stateData: ";S~O!fOS!gOS^OS~OP_OQbORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!V[O!cTO~O`cO~P]OVkOWROXROYeOZfO[dOcPOmhOqQO~OboO~P!bOVtOWROXROYeOZfO[dOcPOmrOqQO~OpwO~P#WORSOTUOWROXROYYOZZO[XOcPOqQO!PVO!cTO~OSvP!avP!bvP~P#|OWROXROYeOZfO[dOcPOqQO~OmzO~P%OOm!OOUzP!azP!bzP!dzP~P#|O^!SO!b!QO!f!TO!g!RO~ORSOTUOWROXROcPOqQO!PVO!cTO~OY!UOP!QXQ!QX!V!QX!`!QXS!QX!a!QX!b!QXU!QXm!QX!d!QX~P&aO[!WOP!SXQ!SX!V!SX!`!SXS!SX!a!SX!b!SXU!SXm!SX!d!SX~P&aO^!ZO!W![O!b!YO!f!]O!g!YO~OP!_O!V[OQaX!`aX~OPaXQaX!VaX!`aX~P#|OP!bOQ!cO!V[O~OP_O!V[O~P#|OWROXROY!fOcPOqQObfXmfXofXpfX~OWROXRO[!hOcPOqQObhXmhXohXphX~ObeXmlXoeX~ObkXokX~P%OOm!kO~Om!lObnPonP~P%OOb!pOo!oO~Ob!pO~P!bOm!sOosXpsX~OosXpsX~P%OOm!uOotPptP~P%OOo!xOp!yO~Op!yO~P#WOS!|O!a#OO!b#OO~OUyX!ayX!byX!dyX~P#|Om#QO~OU#SO!a#UO!b#UO!d#RO~Om#WOUzX!azX!bzX!dzX~O]#XO~O!b#XO!g#YO~O^#ZO!b#XO!g#YO~OP!RXQ!RX!V!RX!`!RXS!RX!a!RX!b!RXU!RXm!RX!d!RX~P&aOP!TXQ!TX!V!TX!`!TXS!TX!a!TX!b!TXU!TXm!TX!d!TX~P&aO!b#^O!g#^O~O^#_O!b#^O!f#`O!g#^O~O^#_O!W#aO!b#^O!g#^O~OPaaQaa!Vaa!`aa~P#|OP#cO!V[OQ!XX!`!XX~OP!XXQ!XX!V!XX!`!XX~P#|OP_O!V[OQ!_X!`!_X~P#|OWROXROcPOqQObgXmgXogXpgX~OWROXROcPOqQObiXmiXoiXpiX~Obkaoka~P%OObnXonX~P%OOm#kO~Ob#lOo!oO~Oosapsa~P%OOotXptX~P%OOm#pO~Oo!xOp#qO~OSwP!awP!bwP~P#|OS!|O!a#vO!b#vO~OUya!aya!bya!dya~P#|Om#xO~P%OOm#{OU}P!a}P!b}P!d}P~P#|OU#SO!a$OO!b$OO!d#RO~O]$QO~O!b$QO!g$RO~O!b$SO!g$SO~O^$TO!b$SO!g$SO~O^$TO!b$SO!f$UO!g$SO~OP!XaQ!Xa!V!Xa!`!Xa~P#|Obnaona~P%OOotapta~P%OOo!xO~OU|X!a|X!b|X!d|X~P#|Om$ZO~Om$]OU}X!a}X!b}X!d}X~O]$^O~O!b$_O!g$_O~O^$`O!b$_O!g$_O~OU|a!a|a!b|a!d|a~P#|O!b$cO!g$cO~O", goto: ",]!mPPPPPPPPPPPPPPPPP!nPP!v#v#|$`#|$c$f$j$nP%VPPP!v%Y%^%a%{&O%a&R&U&X&_&b%aP&e&{&e'O'RPP']'a'g'm's'y(XPPPPPPPP(_)e*X+c,VUaObcR#e!c!{ROPQSTUXY_bcdehknrtvz!O!U!W!_!b!c!f!h!k!l!s!u!|#Q#R#S#W#c#k#p#x#{$Z$]QmPR!qnqfPQThknrtv!k!l!s!u#R#k#pR!gdR!ieTlPnTjPnSiPnSqQvQ{TQ!mkQ!trQ!vtR#y#RR!nkTsQvR!wt!RWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]RySR#t!|R|TR|UQ!PUR#|#SR#z#RR#z#SyZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]R!VXR!XYa]O^abc!a!c!eT!da!eQnPR!rnQvQR!{vQ!}yR#u!}Q#T|R#}#TW^Obc!cS!^^!aT!aa!eQ!eaR#f!eW`Obc!cQxSS}U#SQ!`_Q#PzQ#V!OQ#b!_Q#d!bQ#s!|Q#w#QQ$P#WQ$V#cQ$Y#xQ$[#{Q$a$ZR$b$]xZOSU_bcz!O!_!b!c!|#Q#S#W#c#x#{$Z$]Q!VXQ!XYQ#[!UR#]!W!QWOSUXY_bcz!O!U!W!_!b!c!|#Q#S#W#c#x#{$Z$]pfPQThknrtv!k!l!s!u#R#k#pQ!gdQ!ieQ#g!fR#h!hSgPn^pQTkrtv#RQ!jhQ#i!kQ#j!lQ#n!sQ#o!uQ$W#kR$X#pQuQR!zv", nodeNames: "\u26A0 DirectiveEnd DocEnd - - ? ? ? Literal QuotedLiteral Anchor Alias Tag BlockLiteralContent Comment Stream BOM Document ] [ FlowSequence Item Tagged Anchored Anchored Tagged FlowMapping Pair Key : Pair , } { FlowMapping Pair Pair BlockSequence Item Item BlockMapping Pair Pair Key Pair Pair BlockLiteral BlockLiteralHeader Tagged Anchored Anchored Tagged Directive DirectiveName DirectiveContent Document", maxTerm: 74, - context: B7t, + context: z7t, nodeProps: [ ["isolate", -3, 8, 9, 14, ""], ["openedBy", 18, "[", 32, "{"], ["closedBy", 19, "]", 33, "}"] ], - propSources: [W7t], + propSources: [X7t], skippedNodes: [0], repeatNodeCount: 6, tokenData: "-Y~RnOX#PXY$QYZ$]Z]#P]^$]^p#Ppq$Qqs#Pst$btu#Puv$yv|#P|}&e}![#P![!]'O!]!`#P!`!a'i!a!}#P!}#O*g#O#P#P#P#Q+Q#Q#o#P#o#p+k#p#q'i#q#r,U#r;'S#P;'S;=`#z<%l?HT#P?HT?HU,o?HUO#PQ#UU!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PQ#kTOY#PZs#Pt;'S#P;'S;=`#z<%lO#PQ#}P;=`<%l#P~$VQ!f~XY$Qpq$Q~$bO!g~~$gS^~OY$bZ;'S$b;'S;=`$s<%lO$b~$vP;=`<%l$bR%OX!WQOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR%rX!WQ!VPOX%kXY#PZ]%k]^#P^p%kpq#hq;'S%k;'S;=`&_<%lO%kR&bP;=`<%l%kR&lUoP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'VUmP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR'p[!PP!WQOY#PZp#Ppq#hq{#P{|(f|}#P}!O(f!O!R#P!R![)p![;'S#P;'S;=`#z<%lO#PR(mW!PP!WQOY#PZp#Ppq#hq!R#P!R![)V![;'S#P;'S;=`#z<%lO#PR)^U!PP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR)wY!PP!WQOY#PZp#Ppq#hq{#P{|)V|}#P}!O)V!O;'S#P;'S;=`#z<%lO#PR*nUcP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+XUbP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR+rUqP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,]UpP!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#PR,vU`P!WQOY#PZp#Ppq#hq;'S#P;'S;=`#z<%lO#P", - tokenizers: [F7t, z7t, q7t, Y7t, 0, 1], + tokenizers: [Q7t, U7t, W7t, G7t, 0, 1], topRules: { Stream: [0, 15] }, tokenPrec: 0 -}), X7t = /* @__PURE__ */ Uf.deserialize({ +}), Z7t = /* @__PURE__ */ Uf.deserialize({ version: 14, states: "!vOQOPOOO]OPO'#C_OhOPO'#C^OOOO'#Cc'#CcOpOPO'#CaQOOOOOO{OPOOOOOO'#Cb'#CbO!WOPO'#C`O!`OPO,58xOOOO-E6a-E6aOOOO-E6`-E6`OOOO'#C_'#C_OOOO1G.d1G.d", stateData: "!h~OXPOYROWTP~OWVXXRXYRX~OYVOXSP~OXROYROWTX~OXROYROWTP~OYVOXSX~OX[O~OXY~", @@ -49996,9 +50002,9 @@ const q7t = new Pa((t, e) => { tokenizers: [0], topRules: { Document: [0, 1] }, tokenPrec: 67 -}), H7t = /* @__PURE__ */ If.define({ +}), j7t = /* @__PURE__ */ If.define({ name: "yaml", - parser: /* @__PURE__ */ G7t.configure({ + parser: /* @__PURE__ */ H7t.configure({ props: [ /* @__PURE__ */ y1.add({ Stream: (t) => { @@ -50035,11 +50041,11 @@ const q7t = new Pa((t, e) => { indentOnInput: /^\s*[\]\}]$/ } }); -function Z7t() { - return new dm(H7t); +function K7t() { + return new dm(j7t); } Se.meta; -const j7t = CSe.filter((t, e) => e != 3), K7t = ESe.filter((t, e) => e != 1), J7t = (t) => { +const J7t = CSe.filter((t, e) => e != 3), e8t = ESe.filter((t, e) => e != 1), t8t = (t) => { const { from: e } = t.state.selection.main, r = t.state.doc.lineAt(e); @@ -50047,7 +50053,7 @@ const j7t = CSe.filter((t, e) => e != 3), K7t = ESe.filter((t, e) => e != 1), J7 line: r.number - 1, ch: e - r.from }; -}, e8t = (t, e) => { +}, r8t = (t, e) => { const { line: r, ch: n @@ -50066,13 +50072,13 @@ class Cf { `)], this.base = [...e], this.extensions = Cf.defaultPlugins(); } static minimalSetup() { - return new Cf(K7t); + return new Cf(e8t); } static basicSetup() { - return new Cf(j7t); + return new Cf(J7t); } static codeLanguage(e) { - return e == "yaml" ? Z7t().language : null; + return e == "yaml" ? K7t().language : null; } static defaultPlugins() { return [kt.lineWrapping, _Ae({ @@ -50131,13 +50137,13 @@ class Cf { preview: r, lastTyped: n }) { - return this.extensions.push(g7t(e, r, n)), this; + return this.extensions.push(v7t(e, r, n)), this; } useCursorIndicator({ lineMap: e, preview: r }) { - return this.extensions.push(b7t(e, r)), this; + return this.extensions.push(w7t(e, r)), this; } useCollaboration({ ytext: e, @@ -50149,9 +50155,9 @@ class Cf { undoManager: n }); return s[1] = m7e, this.extensions.push(s), n && (n.on("stack-item-added", (a) => { - a.stackItem.meta.set("cursor-location", J7t(i.value)); + a.stackItem.meta.set("cursor-location", t8t(i.value)); }), n.on("stack-item-popped", (a) => { - e8t(i.value, a.stackItem.meta.get("cursor-location")); + r8t(i.value, a.stackItem.meta.get("cursor-location")); }), this.extensions.push(Zu.of([{ key: "Mod-z", run: () => n.undo(), @@ -50202,7 +50208,7 @@ class Cf { return [...this.important, ...this.base, ...this.extensions]; } } -function t8t(t, e = 0) { +function n8t(t, e = 0) { let { state: r } = t, n = [], i = 0; @@ -50214,19 +50220,19 @@ function t8t(t, e = 0) { effects: n }); } -const r8t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", n8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", i8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K"; -var s8t = 0; +const i8t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", s8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjUiIGhlaWdodD0iMjYiIHZpZXdCb3g9IjAgMCAyNiAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik03LjcxMzg3IDYuMTQyOTRWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMC4yODUyIDYuMTQyODhWMTIuNTcxNSIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik02LjQyODcxIDFIMTEuNTcxNiIgc3Ryb2tlPSIjRTc0NzNDIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0wIDIuMjg1NjRIMTgiIHN0cm9rZT0iI0U3NDczQyIgc3Ryb2tlLXdpZHRoPSIxLjc1Ii8+CiAgICA8cGF0aCBkPSJNMS45Mjg3MSAyLjI4NTY0TDMuODU3MjggMTguMzU3MUgxNC4xNDNMMTYuMDcxNiAyLjI4NTY0IiBzdHJva2U9IiNFNzQ3M0MiIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K", a8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAyNSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik0xNC40NzI3IDcuMTE3MTlMOC43MTUxOCAxMi44NzQ3TDUuNTE3NTggOS42NzcwNyIgc3Ryb2tlPSIjMzMyRDM3IiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KICAgIDxwYXRoIGQ9Ik0xMCAxOUMxNC45NzA2IDE5IDE5IDE0Ljk3MDYgMTkgMTBDMTkgNS4wMjk0NCAxNC45NzA2IDEgMTAgMUM1LjAyOTQ0IDEgMSA1LjAyOTQ0IDEgMTBDMSAxNC45NzA2IDUuMDI5NDQgMTkgMTAgMTlaIiBzdHJva2U9IiMzMzJEMzciIHN0cm9rZS13aWR0aD0iMS43NSIvPgo8L3N2Zz4K"; +var o8t = 0; function Ne(t, e, r, n, i, s) { var a, o, l = {}; for (o in e) o == "ref" ? a = e[o] : l[o] = e[o]; - var u = { type: t, props: l, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --s8t, __i: -1, __u: 0, __source: i, __self: s }; + var u = { type: t, props: l, key: r, ref: a, __k: null, __: null, __b: 0, __e: null, __d: void 0, __c: null, constructor: void 0, __v: --o8t, __i: -1, __u: 0, __source: i, __self: s }; if (typeof t == "function" && (a = t.defaultProps)) for (o in a) l[o] === void 0 && (l[o] = a[o]); return Ut.vnode && Ut.vnode(u), u; } -const a8t = Jt.div` +const l8t = Jt.div` position: absolute; top: ${(t) => t.top + 20}px; left: ${(t) => t.left + 19}px; @@ -50286,7 +50292,7 @@ const a8t = Jt.div` position: absolute; transform: translateX(-30px); } -`, o8t = ({ +`, c8t = ({ ycomments: t, commentId: e }) => { @@ -50316,14 +50322,14 @@ const a8t = Jt.div` }), t.newLocalComment && (u.focus(), t.newLocalComment = !1), () => { u.destroy(); }; - }, [n]), Ne(a8t, { + }, [n]), Ne(l8t, { left: t.marginLeft(), top: (o = t.display().comments.value[e]) == null ? void 0 : o.top, fade: t.draggedComment.value == e, children: Ne("div", { class: "comment-wrapper", style: "position:relative", - children: [t.commentWithPopup.value == e && Ne(l8t, { + children: [t.commentWithPopup.value == e && Ne(u8t, { left: t.marginLeft(), shift: a, onMouseLeave: () => { @@ -50331,7 +50337,7 @@ const a8t = Jt.div` }, children: [Ne("img", { class: "comment-icon", - src: r8t, + src: i8t, onMouseUp: () => { t.display().switchVisibility(e), t.updateMainCodeMirror(); }, @@ -50349,12 +50355,12 @@ const a8t = Jt.div` "stroke-linecap": "round" }) }), Ne(AY, { - icon: n8t, + icon: s8t, bgOnHover: "#e7473c15", text: "DELETE", onClick: () => t.deleteComment(e) }), r.collaboration.value.resolvingCommentsEnabled && Ne(AY, { - icon: i8t, + icon: a8t, bgOnHover: "#AAE17320", text: "RESOLVE", onClick: () => t.resolveComment(e) @@ -50365,7 +50371,7 @@ const a8t = Jt.div` })] }) }); -}, l8t = Jt.div` +}, u8t = Jt.div` width: fit-content; height: 25px; border-radius: 2px; @@ -50393,7 +50399,7 @@ const a8t = Jt.div` svg { box-sizing: content-box; } -`, c8t = Jt.div` +`, h8t = Jt.div` display: inline-flex; cursor: pointer; padding-left: 5px; @@ -50429,7 +50435,7 @@ const a8t = Jt.div` onClick: e, text: r, bgOnHover: n -}) => Ne(c8t, { +}) => Ne(h8t, { bgOnHover: n, onClick: e, children: [Ne("img", { @@ -50439,19 +50445,19 @@ const a8t = Jt.div` class: "resolve-btn", children: [" ", r, " "] })] -}), u8t = ({ +}), f8t = ({ ycomments: t }) => t.comments.value.map(({ commentId: e -}) => Ne(o8t, { +}) => Ne(c8t, { commentId: e, ycomments: t -}, e)), h8t = ` +}, e)), d8t = ` -`, f8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", Rhe = Jt.div` +`, p8t = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAxOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIuMDg0MjIgMTYuMDU4M0wxLjMxNzM4IDE5LjI2MTNMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDE0LjYzMzQgMkwxNy4zMTc0IDQuNDg0NDFMNC42NjQ2IDE4LjQ5NDVNMi4wODQyMiAxNi4wNTgzTDQuNjY0NiAxOC40OTQ1IiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjEuNzUiLz4KPC9zdmc+Cg==", Rhe = Jt.div` border-radius: var(--border-radius); background: var(--gray-200); font-family: monospace; @@ -50481,7 +50487,7 @@ const a8t = Jt.div` position: absolute; display: inline; background-color: var(--gray-200); - background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(h8t)}"); + background-image: url("data:image/svg+xml;charset=UTF-8,${(t) => encodeURIComponent(d8t)}"); background-repeat: no-repeat; } @@ -50617,7 +50623,7 @@ const a8t = Jt.div` transform: translateX(-11px); } } -`, d8t = (t, e) => { +`, g8t = (t, e) => { t.dispatch({ changes: { from: 0, @@ -50625,7 +50631,7 @@ const a8t = Jt.div` insert: e } }); -}, p8t = ({ +}, m8t = ({ text: t, collaboration: e, preview: r @@ -50679,7 +50685,7 @@ const a8t = Jt.div` state: u, parent: s.current }); - return n.value = h, window.myst_editor[i.id.value].main_editor = h, i.unfoldedHeadings.value != null && t8t(h, i.unfoldedHeadings.value), (d = e.ycomments) == null || d.registerCodeMirror(h), (p = e.provider) == null || p.watchCollabolators(e.setUsers), t.onSync((g) => d8t(h, g)), () => { + return n.value = h, window.myst_editor[i.id.value].main_editor = h, i.unfoldedHeadings.value != null && n8t(h, i.unfoldedHeadings.value), (d = e.ycomments) == null || d.registerCodeMirror(h), (p = e.provider) == null || p.watchCollabolators(e.setUsers), t.onSync((g) => g8t(h, g)), () => { h.destroy(); }; }, [...Object.values(e), i.collaboration.value, i.id.value, i.spellcheckOpts.value, i.syncScroll.value, i.transforms.value, i.unfoldedHeadings.value]), Ne(Rhe, { @@ -50687,14 +50693,14 @@ const a8t = Jt.div` ref: s, $mode: i.mode.value, id: `${i.id.value}-editor`, - children: [i.collaboration.value.commentsEnabled && !e.error && ((l = e.ycomments) == null ? void 0 : l.mainCodeMirror) && Ne(u8t, { + children: [i.collaboration.value.commentsEnabled && !e.error && ((l = e.ycomments) == null ? void 0 : l.mainCodeMirror) && Ne(f8t, { ycomments: e.ycomments }), i.collaboration.value.commentsEnabled && Ne(h7e, { style: "display: none", className: "myst-add-suggestion", title: "Suggest Changes", children: Ne("img", { - src: f8t, + src: p8t, alt: "edit" }) })] @@ -51051,7 +51057,7 @@ const a8t = Jt.div` Mhe.defaultProps = { className: "myst-preview" }; -const g8t = Jt.div` +const v8t = Jt.div` position: absolute; width: 5px; background-color: var(--blue-200); @@ -51094,10 +51100,10 @@ function W0(t, e, r, n, i, s) { let [f, d, p] = h; return W0(t, e, f, n, i, d).concat(W0(t, f + p, r, n, d + p, s)); } - return m8t(t, e, r, n, i, s); + return y8t(t, e, r, n, i, s); } let hy = 1e9; -function m8t(t, e, r, n, i, s) { +function y8t(t, e, r, n, i, s) { let a = r - e, o = s - i; if (hy < 1e9 && Math.min(a, o) > hy * 16) return Math.min(a, o) > hy * 64 ? [new di(e, r, i, s)] : LY(t, e, r, n, i, s); @@ -51109,7 +51115,7 @@ function m8t(t, e, r, n, i, s) { return LY(t, e, r, n, i, s); let g = cA.advance(p, a, o, l, f, !1, u) || uA.advance(p, a, o, l, d, !0, h); if (g) - return v8t(t, e, r, e + g[0], n, i, s, i + g[1]); + return b8t(t, e, r, e + g[0], n, i, s, i + g[1]); } return [new di(e, r, i, s)]; } @@ -51150,7 +51156,7 @@ class Dhe { } } const cA = /* @__PURE__ */ new Dhe(), uA = /* @__PURE__ */ new Dhe(); -function v8t(t, e, r, n, i, s, a, o) { +function b8t(t, e, r, n, i, s, a, o) { let l = !1; return !qm(t, n) && ++n == r && (l = !0), !qm(i, o) && ++o == a && (l = !0), l ? [new di(e, r, s, a)] : W0(t, e, n, i, s, o).concat(W0(t, n, r, i, o, a)); } @@ -51242,7 +51248,7 @@ function Ihe(t, e) { n.toA > i.fromA - e && n.toB > i.fromB - e && (t[r - 1] = new di(n.fromA, i.toA, n.fromB, i.toB), t.splice(r--, 1)); } } -function y8t(t, e, r) { +function x8t(t, e, r) { for (; ; ) { Ihe(r, 1); let n = !1; @@ -51263,14 +51269,14 @@ function y8t(t, e, r) { } return r; } -function b8t(t, e, r) { +function w8t(t, e, r) { for (let n = 0, i = 0; i < t.length; i++) { let s = t[i], a = s.toA - s.fromA, o = s.toB - s.fromB; if (a && o || a > 3 || o > 3) { let l = i == t.length - 1 ? e.length : t[i + 1].fromA, u = s.fromA - n, h = l - s.toA, f = MY(e, s.fromA, Math.min(u, 5)), d = RY(e, s.toA, Math.min(h, 5)), p = s.fromA - f, g = d - s.toA; if (!a || !o) { let m = Math.max(a, o), [v, y, b] = a ? [e, s.fromA, s.toA] : [r, s.fromB, s.toB], w, O; - p && g ? (m > p && e.slice(f, s.fromA) == v.slice(b - p, b) ? (s = t[i] = new di(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = RY(e, s.toA, Math.min(l - s.toA, 5))) : m > g && e.slice(s.toA, d) == v.slice(y, y + g) && (s = t[i] = new di(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = MY(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = x8t(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new di(w, w + a, s.fromB - O, s.toB - O)); + p && g ? (m > p && e.slice(f, s.fromA) == v.slice(b - p, b) ? (s = t[i] = new di(f, f + a, s.fromB - p, s.toB - p), f = s.fromA, d = RY(e, s.toA, Math.min(l - s.toA, 5))) : m > g && e.slice(s.toA, d) == v.slice(y, y + g) && (s = t[i] = new di(d - a, d, s.fromB + g, s.toB + g), d = s.toA, f = MY(e, s.fromA, Math.min(s.fromA - n, 5))), p = s.fromA - f, g = d - s.toA) : !p && !g && (O = s.fromA - (w = O8t(e, s.fromA, u))) && e.slice(w, s.fromA) == v.slice(b - O, b) && (s = t[i] = new di(w, w + a, s.fromB - O, s.toB - O)); } (p || g) && (s = t[i] = new di(s.fromA - p, s.toA + g, s.fromB - p, s.toB + g)), n = s.toA; } @@ -51319,7 +51325,7 @@ function MY(t, e, r) { return e; } } -function x8t(t, e, r) { +function O8t(t, e, r) { for (let n = e, i = e - r; ; ) { let s = n ? t.charCodeAt(n - 1) : 10; if (s == 10) @@ -51332,12 +51338,12 @@ const zhe = (t) => t >= 55296 && t <= 56319, Qhe = (t) => t >= 56320 && t <= 573 function qm(t, e) { return !e || e == t.length || !zhe(t.charCodeAt(e - 1)) || !Qhe(t.charCodeAt(e)); } -function w8t(t, e, r) { +function k8t(t, e, r) { var n; - return hy = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, y8t(t, e, W0(t, 0, t.length, e, 0, e.length)); + return hy = ((n = r == null ? void 0 : r.scanLimit) !== null && n !== void 0 ? n : 1e9) >> 1, x8t(t, e, W0(t, 0, t.length, e, 0, e.length)); } function Uhe(t, e, r) { - return b8t(w8t(t, e, r), t, e); + return w8t(k8t(t, e, r), t, e); } const $c = /* @__PURE__ */ $t.define({ combine: (t) => t[0] @@ -51458,7 +51464,7 @@ const qhe = /* @__PURE__ */ hn.fromClass(class { ({ deco: this.deco, gutter: this.gutter } = zY(t)); } update(t) { - (t.docChanged || t.viewportChanged || O8t(t.startState, t.state) || k8t(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = zY(t.view)); + (t.docChanged || t.viewportChanged || S8t(t.startState, t.state) || T8t(t.startState, t.state)) && ({ deco: this.deco, gutter: this.gutter } = zY(t.view)); } }, { decorations: (t) => t.deco @@ -51469,21 +51475,21 @@ const qhe = /* @__PURE__ */ hn.fromClass(class { return ((e = t.plugin(qhe)) === null || e === void 0 ? void 0 : e.gutter) || $r.empty; } })); -function O8t(t, e) { +function S8t(t, e) { return t.field(Ym, !1) != e.field(Ym, !1); } -function k8t(t, e) { +function T8t(t, e) { return t.facet($c) != e.facet($c); } -const BY = /* @__PURE__ */ It.line({ class: "cm-changedLine" }), S8t = /* @__PURE__ */ It.mark({ class: "cm-changedText" }), T8t = /* @__PURE__ */ It.mark({ tagName: "ins", class: "cm-insertedLine" }), C8t = /* @__PURE__ */ It.mark({ tagName: "del", class: "cm-deletedLine" }), FY = /* @__PURE__ */ new class extends ul { +const BY = /* @__PURE__ */ It.line({ class: "cm-changedLine" }), C8t = /* @__PURE__ */ It.mark({ class: "cm-changedText" }), E8t = /* @__PURE__ */ It.mark({ tagName: "ins", class: "cm-insertedLine" }), _8t = /* @__PURE__ */ It.mark({ tagName: "del", class: "cm-deletedLine" }), FY = /* @__PURE__ */ new class extends ul { constructor() { super(...arguments), this.elementClass = "cm-changedLineGutter"; } }(); -function E8t(t, e, r, n, i, s) { +function A8t(t, e, r, n, i, s) { let a = r ? t.fromA : t.fromB, o = r ? t.toA : t.toB, l = 0; if (a != o) { - i.add(a, a, BY), i.add(a, o, r ? C8t : T8t), s && s.add(a, a, FY); + i.add(a, a, BY), i.add(a, o, r ? _8t : E8t), s && s.add(a, a, FY); for (let u = e.iterRange(a, o - 1), h = a; !u.next().done; ) { if (u.lineBreak) { h++, i.add(h, h, BY), s && s.add(h, h, FY); @@ -51493,7 +51499,7 @@ function E8t(t, e, r, n, i, s) { if (n) for (; l < t.changes.length; ) { let d = t.changes[l], p = a + (r ? d.fromA : d.fromB), g = a + (r ? d.toA : d.toB), m = Math.max(h, p), v = Math.min(f, g); - if (m < v && i.add(m, v, S8t), g < f) + if (m < v && i.add(m, v, C8t), g < f) l++; else break; @@ -51507,7 +51513,7 @@ function zY(t) { for (let h of e) { if ((s ? h.fromA : h.fromB) >= u) break; - (s ? h.toA : h.toB) > l && E8t(h, t.state.doc, s, n, a, o); + (s ? h.toA : h.toB) > l && A8t(h, t.state.doc, s, n, a, o); } return { deco: a.finish(), gutter: o && o.finish() }; } @@ -51544,7 +51550,7 @@ const tS = /* @__PURE__ */ or.define({ }, provide: (t) => kt.decorations.from(t) }), n4 = 0.01; -function _8t(t, e, r) { +function L8t(t, e, r) { let n = new os(), i = new os(), s = t.state.field(fy).iter(), a = e.state.field(fy).iter(), o = 0, l = 0, u = 0, h = 0; for (let g = 0; ; g++) { let m = g < r.length ? r[g] : null; @@ -51587,7 +51593,7 @@ function _8t(t, e, r) { const _L = /* @__PURE__ */ or.define({ map: (t, e) => e.mapPos(t) }); -class A8t extends uo { +class R8t extends uo { constructor(e) { super(), this.lines = e; } @@ -51600,7 +51606,7 @@ class A8t extends uo { let i = e.posAtDOM(n.target); e.dispatch({ effects: _L.of(i) }); let { side: s, sibling: a } = e.state.facet($c); - a && a().dispatch({ effects: _L.of(L8t(i, e.state.field(Ym), s == "a")) }); + a && a().dispatch({ effects: _L.of(M8t(i, e.state.field(Ym), s == "a")) }); }), r; } ignoreEvent(e) { @@ -51610,7 +51616,7 @@ class A8t extends uo { return 27; } } -function L8t(t, e, r) { +function M8t(t, e, r) { let n = 0, i = 0; for (let s = 0; ; s++) { let a = s < e.length ? e[s] : null; @@ -51619,7 +51625,7 @@ function L8t(t, e, r) { [n, i] = r ? [a.toA, a.toB] : [a.toB, a.toA]; } } -const R8t = /* @__PURE__ */ Xn.define({ +const D8t = /* @__PURE__ */ Xn.define({ create(t) { return It.none; }, @@ -51632,14 +51638,14 @@ const R8t = /* @__PURE__ */ Xn.define({ provide: (t) => kt.decorations.from(t) }); function QY({ margin: t = 3, minSize: e = 4 }) { - return R8t.init((r) => M8t(r, t, e)); + return D8t.init((r) => P8t(r, t, e)); } -function M8t(t, e, r) { +function P8t(t, e, r) { let n = new os(), i = t.facet($c).side == "a", s = t.field(Ym), a = 1; for (let o = 0; ; o++) { let l = o < s.length ? s[o] : null, u = o ? a + e : 1, h = l ? t.doc.lineAt(i ? l.fromA : l.fromB).number - 1 - e : t.doc.lines, f = h - u + 1; if (f >= r && n.add(t.doc.line(u).from, t.doc.line(h).to, It.replace({ - widget: new A8t(f), + widget: new R8t(f), block: !0 })), !l) break; @@ -51647,7 +51653,7 @@ function M8t(t, e, r) { } return n.finish(); } -const D8t = /* @__PURE__ */ kt.styleModule.of(/* @__PURE__ */ new ah({ +const N8t = /* @__PURE__ */ kt.styleModule.of(/* @__PURE__ */ new ah({ ".cm-mergeView": { overflowY: "auto" }, @@ -51677,7 +51683,7 @@ const D8t = /* @__PURE__ */ kt.styleModule.of(/* @__PURE__ */ new ah({ font: "inherit", cursor: "pointer" } -})), P8t = /* @__PURE__ */ kt.baseTheme({ +})), I8t = /* @__PURE__ */ kt.baseTheme({ ".cm-mergeView & .cm-scroller, .cm-mergeView &": { height: "auto !important", overflowY: "visible !important" @@ -51737,13 +51743,13 @@ const D8t = /* @__PURE__ */ kt.styleModule.of(/* @__PURE__ */ new ah({ "&light.cm-merge-b .cm-changedLineGutter": { background: "#2b2" }, "&dark.cm-merge-b .cm-changedLineGutter": { background: "#8f8" } }), UY = /* @__PURE__ */ new fp(), i4 = /* @__PURE__ */ new fp(); -class N8t { +class $8t { constructor(e) { this.revertDOM = null, this.revertToA = !1, this.revertToLeft = !1, this.measuring = -1, this.diffConf = e.diffConfig; let r = [ uc.low(qhe), - P8t, - D8t, + I8t, + N8t, fy, kt.updateListener.of((f) => { this.measuring < 0 && (f.heightChanged || f.viewportChanged) && !f.transactions.some((d) => d.effects.some((p) => p.is(tS))) && this.measure(); @@ -51856,7 +51862,7 @@ class N8t { } } measure() { - _8t(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); + L8t(this.a, this.b, this.chunks), this.revertDOM && this.updateRevertButtons(); } updateRevertButtons() { let e = this.revertDOM, r = e.firstChild, n = this.a.viewport, i = this.b.viewport; @@ -51905,7 +51911,7 @@ function VY(t) { let e = t.nextSibling; return t.remove(), e; } -const I8t = Jt.div` +const B8t = Jt.div` display: grid; grid-auto-flow: column; grid-template-rows: max-content; @@ -51916,13 +51922,13 @@ const I8t = Jt.div` `, qY = Jt(Rhe)` overflow-y: visible; display: block; -`, $8t = ({ +`, F8t = ({ old: t, current: e, root: r }) => { const n = Cf.basicSetup().readonly().create(); - return new N8t({ + return new $8t({ a: { doc: t, extensions: n @@ -51944,12 +51950,12 @@ const I8t = Jt.div` return ri(() => { if (i.current) return !1; - i.current = $8t({ + i.current = F8t({ old: e.initialText, current: t.get(), root: e.parent }), r.current.appendChild(i.current.b.dom), n.current.appendChild(i.current.a.dom); - }, []), Ne(I8t, { + }, []), Ne(B8t, { children: [Ne(qY, { ref: r }), Ne(qY, { @@ -51960,9 +51966,9 @@ const I8t = Jt.div` Yhe.defaultProps = { className: "diff" }; -const B8t = Jt.div` +const z8t = Jt.div` display: flex; -`, F8t = Jt(mp)` +`, Q8t = Jt(mp)` color: ${(t) => t.active ? "white" : "var(--icon-color)"}; background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--navbar-bg)"}; width: 40px; @@ -51983,13 +51989,13 @@ const B8t = Jt.div` &:last-child { border-radius: 0 var(--border-radius) var(--border-radius) 0; } -`, z8t = ({ +`, U8t = ({ buttons: t, clickedId: e }) => (ri(() => { t[e].action(); -}, []), Ne(B8t, { - children: t.map((r, n) => Ne(F8t, { +}, []), Ne(z8t, { + children: t.map((r, n) => Ne(Q8t, { className: "icon radio-icon", type: "button", name: r.id, @@ -52043,7 +52049,7 @@ const B8t = Jt.div` class: "avatar", style: `border-color: ${e}` }, t) -}), Q8t = ({ +}), V8t = ({ n: t, usernames: e }) => Ne(Whe, { @@ -52052,20 +52058,20 @@ const B8t = Jt.div` class: "avatar placeholder", children: ["+", t] }) -}), U8t = ({ +}), q8t = ({ users: t }) => { const e = t.length <= hA ? t.length : 3; return Ne(Whe, { n: Math.min(t.length, hA), - children: [e < t.length ? Ne(Q8t, { + children: [e < t.length ? Ne(V8t, { n: t.length - e, usernames: t.filter((r, n) => n >= hA).map((r) => r.login).join(", ") }) : "", t.slice(0, e).map((r) => Ne(Ghe, { ...r }))] }); -}, V8t = Jt.section` +}, Y8t = Jt.section` z-index: 2; display: flex; flex-direction: column; @@ -52080,9 +52086,9 @@ const B8t = Jt.div` background-color: var(--icon-bg); border: 1px solid var(--icon-border); border-radius: var(--border-radius); -`, q8t = Jt.h3` +`, W8t = Jt.h3` color: var(--gray-900); -`, Y8t = Jt.div` +`, G8t = Jt.div` display: flex; align-items: center; justify-content: space-between; @@ -52094,14 +52100,14 @@ const B8t = Jt.div` background-color: ${(t) => t.$negative ? "var(--red-500)" : "var(--icon-main-active)"} !important; border: 1px solid ${(t) => t.$negative ? "var(--red-500)" : "var(--icon-main-active)"} !important; } -`, W8t = ({ +`, X8t = ({ changeDocumentTemplate: t, selectedTemplate: e, closeModal: r -}) => Ne(V8t, { - children: [Ne(q8t, { +}) => Ne(Y8t, { + children: [Ne(W8t, { children: "Are you sure you want to change the current template?" - }), Ne(Y8t, { + }), Ne(G8t, { children: [Ne(YY, { type: "button", onClick: () => t(e), @@ -52113,13 +52119,13 @@ const B8t = Jt.div` children: "x Cancel" })] })] -}), G8t = Jt.div` +}), H8t = Jt.div` position: absolute; ${(t) => t.$orientation == "left" && Ry` left: 0; `} transform: ${(t) => t.$orientation == "left" ? "translateX(-105%)" : "translate(-65%, 130%)"}; -`, X8t = Jt.div` +`, Z8t = Jt.div` position: relative; background: var(--alert); color: var(--icon-color); @@ -52152,16 +52158,16 @@ const B8t = Jt.div` `} transform: ${(t) => t.$orientation == "left" ? "translate(50%, -50%)" : "translate(-50%, -100%)"}; } -`, H8t = ({ +`, j8t = ({ tooltipOrientation: t, errorMessage: e -}) => Ne(G8t, { +}) => Ne(H8t, { orientation: t, - children: Ne(X8t, { + children: Ne(Z8t, { orientation: t, children: [" ", e, " "] }) -}), Z8t = Jt.div` +}), K8t = Jt.div` display: none; margin-left: 5px; margin-right: 5px; @@ -52204,7 +52210,7 @@ const B8t = Jt.div` padding: 0 10px 0 10px; margin-top: 0px; text-wrap: wrap; -`, j8t = Jt.div` +`, J8t = Jt.div` position: relative; &:hover { div { @@ -52212,16 +52218,16 @@ const B8t = Jt.div` flex-direction: column; } } -`, K8t = Jt.div` +`, e9t = Jt.div` display: flex; flex-direction: row-reverse; border: 1px solid var(--gray-900); width: inherit; -`, J8t = Jt.div` +`, t9t = Jt.div` position: absolute; width: 100%; padding-top: 5px; -`, e9t = (t) => { +`, r9t = (t) => { const e = ["id", "templatetext"]; for (const r in t) { for (let n of e) @@ -52229,7 +52235,7 @@ const B8t = Jt.div` t[r].errorMessage && console.error(t[r].errorMessage); } return t; -}, t9t = ({ +}, n9t = ({ text: t }) => { const { @@ -52264,7 +52270,7 @@ const B8t = Jt.div` return w; }; return Bg(() => { - n(""), s({}), o(null), u(!1), f(!1), v(e.templatelist.value).then(e9t).then(b).then(s); + n(""), s({}), o(null), u(!1), f(!1), v(e.templatelist.value).then(r9t).then(b).then(s); }), d.error ? null : Object.keys(i).length == 0 ? Ne(AL, { type: "button", title: "Templates", @@ -52273,22 +52279,22 @@ const B8t = Jt.div` onMouseLeave: () => f(!1), children: Ne(WY, {}) }) : Ne(su, { - children: [l && Ne(W8t, { + children: [l && Ne(X8t, { selectedTemplate: a, closeModal: () => { u(!1), o(!1); }, changeDocumentTemplate: m - }), Ne(j8t, { + }), Ne(J8t, { children: [Ne(AL, { className: "icon", title: "Templates", type: "button", children: Ne(WY, {}) - }), Ne(J8t, { - children: Ne(Z8t, { - children: Object.keys(i).map((w) => i[w].errorMessage ? Ne(K8t, { - children: [h === w && Ne(H8t, { + }), Ne(t9t, { + children: Ne(K8t, { + children: Object.keys(i).map((w) => i[w].errorMessage ? Ne(e9t, { + children: [h === w && Ne(j8t, { tooltipOrientation: "left", errorMessage: i[w].errorMessage }), Ne(GY, { @@ -52309,7 +52315,7 @@ const B8t = Jt.div` })] })] }); -}, r9t = (t) => [...(t || "").matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), n9t = Jt.div` +}, i9t = (t) => [...(t || "").matchAll(/\[(.+)\]\(([^\s]+)\)/g)].reduce((e, r) => e.replace(r[0], `${r[1]}`), t), s9t = Jt.div` z-index: 10; position: sticky; top: 0; @@ -52347,7 +52353,7 @@ const B8t = Jt.div` display: none; } } -`, i9t = Jt.div` +`, a9t = Jt.div` font-size: large; white-space: nowrap; margin-left: 10px; @@ -52357,7 +52363,7 @@ const B8t = Jt.div` a { color: var(--blue-500); } -`, s9t = Jt(mp)` +`, o9t = Jt(mp)` padding: 0px 15px; margin: 5px; pointer-events: none; @@ -52370,7 +52376,7 @@ const B8t = Jt.div` background-color: ${(t) => t.active ? "var(--icon-main-active)" : "var(--icon-bg)"}; margin: 5px; width: 40px; -`, a9t = () => Ne("svg", { +`, l9t = () => Ne("svg", { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", @@ -52389,7 +52395,7 @@ const B8t = Jt.div` d: "M6.90002 21.0601H0.890015V14.8701", "stroke-width": "1.75" })] -}), o9t = () => Ne("svg", { +}), c9t = () => Ne("svg", { xmlns: "http://www.w3.org/2000/svg", width: "23", height: "23", @@ -52402,7 +52408,7 @@ const B8t = Jt.div` d: "M21.65 12.5899C20.95 17.4199 16.78 21.1399 11.75 21.1399C6.23 21.1399 1.75 16.6599 1.75 11.1399C1.75 5.61989 6.23 1.13989 11.75 1.13989C16.24 1.13989 20.03 4.09989 21.3 8.16989", "stroke-width": "1.75" })] -}), l9t = () => Ne("svg", { +}), u9t = () => Ne("svg", { xmlns: "http://www.w3.org/2000/svg", width: "26", height: "18", @@ -52415,7 +52421,7 @@ const B8t = Jt.div` d: "M23.4301 9.80018C23.4301 9.80018 13.75 24.5402 2.58997 9.80018L1.98999 8.95018L2.59998 8.10018C2.59998 8.10018 12.2799 -6.63982 23.4399 8.10018L24.01 8.90018L23.4301 9.80018Z", "stroke-width": "1.75" })] -}), c9t = () => Ne("svg", { +}), h9t = () => Ne("svg", { xmlns: "http://www.w3.org/2000/svg", width: "21", height: "15", @@ -52431,7 +52437,7 @@ const B8t = Jt.div` d: "M12.35 0.340088L8.72 13.9901", "stroke-width": "1.75" })] -}), u9t = () => Ne("svg", { +}), f9t = () => Ne("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "22", @@ -52445,7 +52451,7 @@ const B8t = Jt.div` d: "M18.63 5.51001H6.01001V21.11H18.63V5.51001Z", "stroke-width": "1.75" })] -}), h9t = () => Ne("svg", { +}), d9t = () => Ne("svg", { xmlns: "http://www.w3.org/2000/svg", width: "23", height: "18", @@ -52458,7 +52464,7 @@ const B8t = Jt.div` d: "M11.84 1.83008V16.6701", "stroke-width": "1.75" })] -}), f9t = () => Ne("svg", { +}), p9t = () => Ne("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "16", @@ -52477,7 +52483,7 @@ const B8t = Jt.div` d: "M5.60999 9.44007L1.35999 5.19007L5.73999 0.820068", "stroke-width": "1.75" })] -}), d9t = () => Ne("svg", { +}), g9t = () => Ne("svg", { width: "21", height: "22", viewBox: "0 0 21 22", @@ -52500,7 +52506,7 @@ const B8t = Jt.div` stroke: "#332D37", "stroke-width": "1.75" })] -}), p9t = () => Ne("svg", { +}), m9t = () => Ne("svg", { xmlns: "http://www.w3.org/2000/svg", width: "26", height: "17", @@ -52526,12 +52532,12 @@ const B8t = Jt.div` stroke: "#332D37", "stroke-width": "1.5" })] -}), g9t = { - fullscreen: a9t, - "copy-html": u9t, - refresh: o9t, - "print-to-pdf": d9t -}, m9t = ({ +}), v9t = { + fullscreen: l9t, + "copy-html": f9t, + refresh: c9t, + "print-to-pdf": g9t +}, y9t = ({ alert: t, users: e, text: r, @@ -52539,39 +52545,39 @@ const B8t = Jt.div` }) => { const { options: i - } = cc(mc), s = $g(() => Jie.sanitize(r9t(i.title.value))), a = $g(() => { + } = cc(mc), s = $g(() => Jie.sanitize(i9t(i.title.value))), a = $g(() => { const h = [{ id: "source", tooltip: "Source", action: () => i.mode.value = "Source", - icon: c9t + icon: h9t }, { id: "preview", tooltip: "Preview", action: () => i.mode.value = "Preview", - icon: l9t + icon: u9t }, { id: "both", tooltip: "Dual Pane", action: () => i.mode.value = "Both", - icon: h9t + icon: d9t }, { id: "diff", tooltip: "Diff View", action: () => i.mode.value = "Diff", - icon: f9t + icon: p9t }]; return i.collaboration.value.resolvingCommentsEnabled && h.push({ id: "resolved", tooltip: "Resolved Comments", action: () => i.mode.value = "Resolved", - icon: p9t + icon: m9t }), h; }), o = $g(() => a.value.findIndex((h) => h.id[0].toUpperCase() + h.id.slice(1) === i.mode.value)), l = vi(() => n.map((h) => ({ ...h, - icon: h.icon || g9t[h.id] + icon: h.icon || v9t[h.id] })).filter((h) => h.icon), [n]), u = vi(() => n.filter((h) => h.text && h.id !== "template-manager"), [n]); - return Ne(n9t, { + return Ne(s9t, { id: "topbar", children: [Ne("div", { class: "buttons-left", @@ -52584,20 +52590,20 @@ const B8t = Jt.div` children: typeof h.icon == "function" ? Ne(h.icon, {}) : Ne("img", { src: h.icon }) - }, h.id)), n.find((h) => h.id === "template-manager") && i.templatelist.value && Ne(t9t, { + }, h.id)), n.find((h) => h.id === "template-manager") && i.templatelist.value && Ne(n9t, { text: r })] }), Ne("span", { - children: [" ", t && Ne(s9t, { + children: [" ", t && Ne(o9t, { className: "topbar-alert", children: [" ", t, " "] }), " "] - }), Ne(i9t, { + }), Ne(a9t, { id: "document-title", dangerouslySetInnerHTML: { __html: s.value } - }), Ne(U8t, { + }), Ne(q8t, { users: e }), Ne("span", { children: u.map((h) => Ne(mp, { @@ -52605,13 +52611,13 @@ const B8t = Jt.div` onClick: h.action, children: h.text })) - }), Ne(z8t, { + }), Ne(U8t, { buttons: a.value, clickedId: o.value })] }); }; -function v9t({ +function b9t({ ytext: t, prov: e, parent: r, @@ -52686,7 +52692,7 @@ Une.prototype.watchCollabolators = function(t) { } }); }; -function y9t() { +function x9t() { const { options: t, collab: e @@ -52713,7 +52719,7 @@ function y9t() { color: t.collaboration.value.color }), p.ws.onerror = () => u(!0), p.on("sync", s), p.on("status", ({ status: g - }) => o(g == "connected")), v9t({ + }) => o(g == "connected")), b9t({ ytext: d.getText("codemirror"), prov: p, parent: t.parent, @@ -52738,7 +52744,7 @@ function y9t() { ready: i && a }; } -function b9t(t, e) { +function w9t(t, e) { const { options: r } = cc(mc); @@ -52749,7 +52755,7 @@ function b9t(t, e) { return window.myst_editor[r.id.value].ycomments = n, n; }, [t, e, r.id.value, r.getAvatar.value]); } -const x9t = Jt.p` +const O9t = Jt.p` font-size: 16px; padding: 10px 6px; margin-bottom: 0; @@ -52764,29 +52770,29 @@ const x9t = Jt.p` & > span { display: ${(t) => t.orphaned ? "none" : "block"}; } -`, w9t = Jt.div` +`, k9t = Jt.div` background-color: color-mix(in srgb, ${(t) => t.color}, white); border: 2px solid ${(t) => t.color}; padding-top: 10px; margin-left: -1px; width: calc(100% - 3px); -`, O9t = Jt.div` +`, S9t = Jt.div` display: flex; justify-content: space-between; align-items: center; line-height: 22px; padding: 0 6px; -`, k9t = Jt.h2` +`, T9t = Jt.h2` font-weight: bold; font-size: 12px; margin: 0; -`, S9t = Jt.p` +`, C9t = Jt.p` font-size: 12px; font-weight: 400; line-height: 14px; margin: 0; margin-right: 25px; -`, T9t = Jt.p` +`, E9t = Jt.p` margin: 0; margin-top: 3px; font-size: 16px; @@ -52804,17 +52810,17 @@ const x9t = Jt.p` position: absolute; transform: translateX(calc(-100% - 12px)); } -`, C9t = Jt.span` +`, _9t = Jt.span` display: block; background-color: color-mix(in srgb, ${(t) => t.color}, white); margin: 0; padding: 10px 6px; white-space: pre-wrap; -`, E9t = Jt.span` +`, A9t = Jt.span` position: absolute; transform: translateX(calc(-100% - 24px)); color: var(--gray-700); -`, _9t = Jt.span` +`, L9t = Jt.span` margin-right: 6px; display: block; display: flex; @@ -52825,7 +52831,7 @@ const x9t = Jt.p` &:hover div { display: flex !important; } -`, A9t = Jt.div` +`, R9t = Jt.div` align-items: center; position: absolute; background-color: var(--gray-200); @@ -52864,7 +52870,7 @@ const x9t = Jt.p` color: var(--gray-900); } } -`, L9t = () => Ne("svg", { +`, M9t = () => Ne("svg", { width: "20", height: "5", viewBox: "0 0 20 5", @@ -52886,7 +52892,7 @@ const x9t = Jt.p` d: "M17.5 0C16.1215 0 15 1.12149 15 2.5C15 3.15421 15.257 3.80841 15.7243 4.2757C16.1916 4.74299 16.8224 5 17.5 5C18.1776 5 18.8084 4.74299 19.2757 4.2757C19.743 3.80841 20 3.17757 20 2.5C20 1.12149 18.8785 0 17.5 0Z", fill: "#6C6C6C" })] -}), R9t = () => Ne("svg", { +}), D9t = () => Ne("svg", { width: "25", height: "26", viewBox: "0 0 26 21", @@ -52913,7 +52919,7 @@ const x9t = Jt.p` stroke: "#E7473C", "stroke-width": "1.75" })] -}), M9t = () => Ne("svg", { +}), P9t = () => Ne("svg", { width: "19", height: "19", viewBox: "0 0 19 19", @@ -52928,9 +52934,9 @@ const x9t = Jt.p` stroke: "black", "stroke-width": "1.75" })] -}), D9t = new Intl.RelativeTimeFormat("en", { +}), N9t = new Intl.RelativeTimeFormat("en", { style: "long" -}), P9t = ({ +}), I9t = ({ c: t, authors: e, ycomments: r, @@ -52978,55 +52984,55 @@ const x9t = Jt.p` const u = vi(() => t.orphaned ? "RESTORE ORPHANED" : t.occupied ? "RESTORE AND MERGE" : "RESTORE", [t]); return Ne("div", { style: "position: relative;", - children: [Ne(x9t, { + children: [Ne(O9t, { orphaned: t.orphaned, - children: [Ne(E9t, { + children: [Ne(A9t, { children: t.lineNumber }), t.resolvedLine] - }), Ne(w9t, { + }), Ne(k9t, { className: "resolved-comment", color: e.get(1).color, - children: [Ne(O9t, { + children: [Ne(S9t, { children: [Ne(XY, { children: [Ne(Ghe, { login: e.get(1).name, color: e.get(1).color, avatarUrl: e.get(1).avatar, userUrl: e.get(1).url - }), Ne(k9t, { + }), Ne(T9t, { children: e.get(1).name })] }), Ne(XY, { - children: [Ne(S9t, { - children: ["Comment resolved by @", t.resolvedBy.name, " ", D9t.format(-i.amount, i.unit)] - }), Ne(_9t, { + children: [Ne(C9t, { + children: ["Comment resolved by @", t.resolvedBy.name, " ", N9t.format(-i.amount, i.unit)] + }), Ne(L9t, { className: "myst-dropdown-toggle", - children: [Ne(L9t, {}), Ne(A9t, { + children: [Ne(M9t, {}), Ne(R9t, { children: [Ne(HY, { className: "myst-restore-btn", onClick: () => r.restoreComment(t), - children: [Ne(M9t, {}), Ne("p", { + children: [Ne(P9t, {}), Ne("p", { children: u })] }), Ne(HY, { className: "myst-delete-btn", onClick: () => r.resolver().delete(t.commentId), - children: [Ne(R9t, {}), Ne("p", { + children: [Ne(D9t, {}), Ne("p", { children: "DELETE" })] })] })] })] })] - }), Ne(T9t, { - children: [" ", o.map((h) => Ne(C9t, { + }), Ne(E9t, { + children: [" ", o.map((h) => Ne(_9t, { color: h.author.color, children: h.text })), " "] })] })] }); -}, N9t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", Xhe = Jt.div` +}, $9t = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNSIgaGVpZ2h0PSIyMCIgdmlld0JveD0iMCAyIDIwIDEyIiBmaWxsPSJub25lIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik02LjM4NDk2IDUuMDkxNzRDNS45MDUwNyA1LjA5MTc0IDUuNTE0NjUgNS40ODIxNiA1LjUxNDY1IDUuOTYyMDVDNS41MTQ2NSA2LjE4OTc5IDUuNjA0MTIgNi40MTc1NCA1Ljc2Njc5IDYuNTgwMjFDNS45Mjk0NyA2Ljc0Mjg5IDYuMTQ5MDggNi44MzIzNiA2LjM4NDk2IDYuODMyMzZDNi42MjA4NCA2LjgzMjM2IDYuODQwNDUgNi43NDI4OSA3LjAwMzEzIDYuNTgwMjFDNy4xNjU4IDYuNDE3NTQgNy4yNTUyNyA2LjE5NzkzIDcuMjU1MjcgNS45NjIwNUM3LjI1NTI3IDUuNDgyMTYgNi44NjQ4NSA1LjA5MTc0IDYuMzg0OTYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik04Ljk5NjI5IDUuMDkxNzRDOC41MTY0IDUuMDkxNzQgOC4xMjU5OCA1LjQ4MjE2IDguMTI1OTggNS45NjIwNUM4LjEyNTk4IDYuMTg5NzkgOC4yMTU0NSA2LjQxNzU0IDguMzc4MTIgNi41ODAyMUM4LjU0MDggNi43NDI4OSA4Ljc2MDQxIDYuODMyMzYgOC45OTYyOSA2LjgzMjM2QzkuMjMyMTcgNi44MzIzNiA5LjQ1MTc4IDYuNzQyODkgOS42MTQ0NSA2LjU4MDIxQzkuNzc3MTMgNi40MTc1NCA5Ljg2NjYgNi4xOTc5MyA5Ljg2NjYgNS45NjIwNUM5Ljg2NjYgNS40ODIxNiA5LjQ3NjE4IDUuMDkxNzQgOC45OTYyOSA1LjA5MTc0WiIgZmlsbD0iIzMzMkQzNyIvPgo8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTExLjYwNjYgNS4wOTE3NEMxMS4xMjY3IDUuMDkxNzQgMTAuNzM2MyA1LjQ4MjE2IDEwLjczNjMgNS45NjIwNUMxMC43MzYzIDYuMTg5NzkgMTAuODI1OCA2LjQxNzU0IDEwLjk4ODUgNi41ODAyMUMxMS4xNTExIDYuNzQyODkgMTEuMzcwOCA2LjgzMjM2IDExLjYwNjYgNi44MzIzNkMxMS44NDI1IDYuODMyMzYgMTIuMDYyMSA2Ljc0Mjg5IDEyLjIyNDggNi41ODAyMUMxMi4zODc1IDYuNDE3NTQgMTIuNDc3IDYuMTk3OTMgMTIuNDc3IDUuOTYyMDVDMTIuNDc3IDUuNDgyMTYgMTIuMDg2NSA1LjA5MTc0IDExLjYwNjYgNS4wOTE3NFoiIGZpbGw9IiMzMzJEMzciLz4KPHBhdGggZD0iTTE3LjEyOTggMTEuMDM3NVYwLjg2MjE4M0gwLjg2MjMwNVYxMC44NzQ4TDUuMTE2MjYgMTAuOTE1NUw5LjA1MyAxNC44NTIyTDEyLjg4NCAxMS4wMjk0TDE3LjEyOTggMTEuMDM3NVoiIHN0cm9rZT0iIzMzMkQzNyIgc3Ryb2tlLXdpZHRoPSIxLjUiLz4KPC9zdmc+", Xhe = Jt.div` background-color: white; padding: 20px 0; box-sizing: border-box; @@ -53043,13 +53049,13 @@ const x9t = Jt.p` padding-left: 100px; margin-bottom: 0; } -`, I9t = Jt.hr` +`, B9t = Jt.hr` border: none; height: 1px; background-color: var(--gray-600); margin-top: 20px; margin-bottom: 0; -`, $9t = Jt.div` +`, F9t = Jt.div` margin-left: 100px; border-left: 1px solid var(--gray-600); @@ -53057,7 +53063,7 @@ const x9t = Jt.p` p { margin-top: 0; } -`, B9t = Jt.p` +`, z9t = Jt.p` padding: 10px 6px; img { @@ -53078,7 +53084,7 @@ Xhe.defaultProps = { function fA(t, e) { return t.resolvedDate - e.resolvedDate; } -const F9t = ({ +const Q9t = ({ ycomments: t }) => { let [e, r] = fi(t.resolver().resolved().sort(fA)), n = vi(() => e.reduce((s, { @@ -53089,14 +53095,14 @@ const F9t = ({ }, []), Ne(Xhe, { children: [Ne("h1", { children: "Resolved comments" - }), Ne(I9t, {}), Ne($9t, { - children: e.length === 0 ? Ne(B9t, { + }), Ne(B9t, {}), Ne(F9t, { + children: e.length === 0 ? Ne(z9t, { children: ["No resolved comments yet, to resolve a comment hover over it's icon ", Ne("img", { - src: N9t + src: $9t }), " and click ", Ne("span", { children: "RESOLVE" })] - }) : e.map((s, a) => Ne(P9t, { + }) : e.map((s, a) => Ne(I9t, { c: s, authors: i[a], ycomments: t, @@ -53105,7 +53111,7 @@ const F9t = ({ })] }); }; -function z9t(t, e, r) { +function U9t(t, e, r) { if (t.target.tagName != "INPUT") return; const n = t.target.getAttribute("data-line-id"), i = _P(e.current, n), s = r.state.doc.line(i), a = s.text.indexOf("["), o = s.text.indexOf("]"); @@ -53117,7 +53123,7 @@ function z9t(t, e, r) { } }); } -const Q9t = Jt.div` +const V9t = Jt.div` max-width: 100%; width: 250px; position: relative; @@ -53126,7 +53132,7 @@ const Q9t = Jt.div` * { box-sizing: border-box; } -`, U9t = Jt.button` +`, q9t = Jt.button` width: 100%; text-align: left; justify-content: space-between; @@ -53160,7 +53166,7 @@ const Q9t = Jt.div` background-color: var(--icon-selected); border: 1px solid var(--icon-selected); } -`, V9t = ({ +`, Y9t = ({ up: t }) => Ne("svg", { width: "8", @@ -53175,7 +53181,7 @@ const Q9t = Jt.div` "stroke-linecap": "round", "stroke-linejoin": "round" }) -}), q9t = Jt.div` +}), W9t = Jt.div` position: absolute; z-index: 100; background-color: white; @@ -53193,7 +53199,7 @@ const Q9t = Jt.div` border-radius: var(--border-radius); border: 1px solid var(--icon-border); } -`, Y9t = Jt.ul` +`, G9t = Jt.ul` list-style: none; padding: 0; width: 100%; @@ -53258,22 +53264,22 @@ const Q9t = Jt.div` u.value.trim() == "" ? f.value = h.value : s(u.value).then((S) => f.value = S); }, 300); return () => clearTimeout(O); - }), ri(() => h.value = t, [t]), ri(() => o.value = e, [e]), Ne(Q9t, { - children: [Ne(U9t, { + }), ri(() => h.value = t, [t]), ri(() => o.value = e, [e]), Ne(V9t, { + children: [Ne(q9t, { onClick: m, children: [Ne("span", { children: (w = l.value) == null ? void 0 : w.label - }), Ne(V9t, { + }), Ne(Y9t, { up: a.value })] - }), a.value && Ne(q9t, { + }), a.value && Ne(W9t, { children: [Ne("input", { type: "text", ref: (O) => O == null ? void 0 : O.focus(), placeholder: n, value: u.value, onChange: (O) => u.value = O.target.value - }), Ne(Y9t, { + }), Ne(G9t, { onScroll: b, ref: p, children: f.value.map((O) => Ne("li", { @@ -53284,13 +53290,13 @@ const Q9t = Jt.div` })] })] }); -}, W9t = Jt.div` +}, X9t = Jt.div` display: grid; grid-template-columns: 300px 1fr; grid-template-rows: 100%; height: 100%; font-family: "Lato"; -`, G9t = Jt.div` +`, H9t = Jt.div` display: flex; flex-direction: column; align-items: center; @@ -53308,7 +53314,7 @@ const Q9t = Jt.div` font-weight: 600; font-size: 14px; } -`, X9t = Jt.div` +`, Z9t = Jt.div` color: white; font-size: 12px; width: 100%; @@ -53354,7 +53360,7 @@ const Q9t = Jt.div` display: block; } } -`, H9t = ({ +`, j9t = ({ repo: t = "repo", initialBranches: e = ["main"], getBranches: r = async () => [], @@ -53471,8 +53477,8 @@ const Q9t = Jt.div` style: "all: initial;", children: Ne(pK, { target: f.parent, - children: Ne(W9t, { - children: [Ne(G9t, { + children: Ne(X9t, { + children: [Ne(H9t, { children: [Ne("div", { children: [Ne("label", { children: "Branch:" @@ -53508,7 +53514,7 @@ const Q9t = Jt.div` initialValue: y.value, searchOptions: async (D) => v.value.filter((P) => P.toLowerCase().includes(D.toLowerCase())).map(N) })] - }), Ne(X9t, { + }), Ne(Z9t, { children: [Ne("p", { children: "History:" }), S.value.length == 0 ? Ne("p", { @@ -53543,7 +53549,7 @@ const Q9t = Jt.div` }) }) }); -}, Ohr = ({ +}, Shr = ({ additionalStyles: t, id: e, ...r @@ -53561,11 +53567,11 @@ const Q9t = Jt.div` }); a.observe(n.parentElement, { childList: !0 - }), jc(Ne(H9t, { + }), jc(Ne(j9t, { ...r, id: i }), n.shadowRoot); -}, Z9t = Jt.div` +}, K9t = Jt.div` font-family: "Lato"; display: flex; flex-flow: row wrap; @@ -53621,19 +53627,19 @@ const ZY = Jt.div` & > * { min-height: 500px; } -`, j9t = (t) => { +`, J9t = (t) => { const e = (r, n, i) => { r.type == "rule" && (r.props[0] = r.props[0].split(",").map((s) => `${t} ${s}`).join(",")); }; return Object.defineProperty(e, "name", { value: `scope-${t}` }), e; -}, K9t = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", Zhe = () => { +}, eLt = (t) => document.documentElement.style.overflow = t ? "hidden" : "visible", Zhe = () => { const { editorView: t, cache: e, options: r - } = cc(mc), [n, i] = fi(!1), s = Ss(null), a = d7t({ + } = cc(mc), [n, i] = fi(!1), s = Ss(null), a = g7t({ preview: s }), [o, l] = fi(null), [u, h] = ST((S, C) => C.map((T) => ({ ...T, @@ -53646,7 +53652,7 @@ const ZY = Jt.div` ydoc: g, ready: m, error: v - } = y9t(), y = b9t(g, f), b = (S, C) => { + } = x9t(), y = w9t(g, f), b = (S, C) => { l(S), setTimeout(() => l(null), C * 1e3); }, w = vi(() => ({ "copy-html": async () => { @@ -53660,16 +53666,16 @@ const ZY = Jt.div` ...S, action: S.action || w[S.id] })), [r.includeButtons.value, w]); - return ri(() => K9t(n), [n]), Ne("div", { + return ri(() => eLt(n), [n]), Ne("div", { style: "all: initial", id: "myst-css-namespace", children: Ne(pK, { target: r.parent, - stylisPlugins: [j9t("#myst-css-namespace")], - children: Ne(Z9t, { + stylisPlugins: [J9t("#myst-css-namespace")], + children: Ne(K9t, { mode: r.mode.value, fullscreen: n, - children: [r.topbar.value && Ne(m9t, { + children: [r.topbar.value && Ne(y9t, { alert: o, users: u, text: a, @@ -53683,7 +53689,7 @@ const ZY = Jt.div` fullscreen: n, children: [Ne(s4, { id: "editor-wrapper", - children: Ne(p8t, { + children: Ne(m8t, { text: a, preview: s, collaboration: { @@ -53703,9 +53709,9 @@ const ZY = Jt.div` ref: s, mode: r.mode.value, onClick: (S) => { - z9t(S, a.lineMap, t.value), r.syncScroll.value && r.mode.value == "Both" && v7t(S, a.lineMap, s, t.value); + U9t(S, a.lineMap, t.value), r.syncScroll.value && r.mode.value == "Both" && b7t(S, a.lineMap, s, t.value); }, - children: Ne(g8t, { + children: Ne(v8t, { className: "cm-previewFocus" }) }) @@ -53715,7 +53721,7 @@ const ZY = Jt.div` }) }), r.collaboration.value.commentsEnabled && r.collaboration.value.resolvingCommentsEnabled && y && !v && Ne(s4, { id: "resolved-wrapper", - children: Ne(F9t, { + children: Ne(Q9t, { ycomments: y }) })] @@ -53723,7 +53729,7 @@ const ZY = Jt.div` }) }) }); -}, khr = ({ +}, Thr = ({ additionalStyles: t, id: e, ...r @@ -53812,42 +53818,42 @@ class Ot { } } Ot.prototype.__proto__ = Error.prototype; -var J9t = function(e, r) { +var tLt = function(e, r) { return e.indexOf(r) !== -1; -}, eLt = function(e, r) { +}, rLt = function(e, r) { return e === void 0 ? r : e; -}, tLt = /([A-Z])/g, rLt = function(e) { - return e.replace(tLt, "-$1").toLowerCase(); -}, nLt = { +}, nLt = /([A-Z])/g, iLt = function(e) { + return e.replace(nLt, "-$1").toLowerCase(); +}, sLt = { "&": "&", ">": ">", "<": "<", '"': """, "'": "'" -}, iLt = /[&><"']/g; -function sLt(t) { - return String(t).replace(iLt, (e) => nLt[e]); +}, aLt = /[&><"']/g; +function oLt(t) { + return String(t).replace(aLt, (e) => sLt[e]); } var jhe = function t(e) { return e.type === "ordgroup" || e.type === "color" ? e.body.length === 1 ? t(e.body[0]) : e : e.type === "font" ? t(e.body) : e; -}, aLt = function(e) { +}, lLt = function(e) { var r = jhe(e); return r.type === "mathord" || r.type === "textord" || r.type === "atom"; -}, oLt = function(e) { +}, cLt = function(e) { if (!e) throw new Error("Expected non-null, but got " + String(e)); return e; -}, lLt = function(e) { +}, uLt = function(e) { var r = /^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e); return r ? r[2] !== ":" || !/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(r[1]) ? null : r[1].toLowerCase() : "_relative"; }, nr = { - contains: J9t, - deflt: eLt, - escape: sLt, - hyphenate: rLt, + contains: tLt, + deflt: rLt, + escape: oLt, + hyphenate: iLt, getBaseElem: jhe, - isCharacterBox: aLt, - protocolFromUrl: lLt + isCharacterBox: lLt, + protocolFromUrl: uLt }, I5 = { displayMode: { type: "boolean", @@ -53935,7 +53941,7 @@ var jhe = function t(e) { cli: !1 } }; -function cLt(t) { +function hLt(t) { if (t.default) return t.default; var e = t.type, r = Array.isArray(e) ? e[0] : e; @@ -53958,7 +53964,7 @@ class PN { for (var r in I5) if (I5.hasOwnProperty(r)) { var n = I5[r]; - this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : cLt(n); + this[r] = e[r] !== void 0 ? n.processor ? n.processor(e[r]) : e[r] : hLt(n); } } reportNonstrict(e, r, n) { @@ -53995,28 +54001,28 @@ class Vh { this.id = void 0, this.size = void 0, this.cramped = void 0, this.id = e, this.size = r, this.cramped = n; } sup() { - return Dc[uLt[this.id]]; + return Dc[fLt[this.id]]; } sub() { - return Dc[hLt[this.id]]; + return Dc[dLt[this.id]]; } fracNum() { - return Dc[fLt[this.id]]; + return Dc[pLt[this.id]]; } fracDen() { - return Dc[dLt[this.id]]; + return Dc[gLt[this.id]]; } cramp() { - return Dc[pLt[this.id]]; + return Dc[mLt[this.id]]; } text() { - return Dc[gLt[this.id]]; + return Dc[vLt[this.id]]; } isTight() { return this.size >= 2; } } -var NN = 0, rS = 1, Yg = 2, nh = 3, pb = 4, nl = 5, Wm = 6, Ta = 7, Dc = [new Vh(NN, 0, !1), new Vh(rS, 0, !0), new Vh(Yg, 1, !1), new Vh(nh, 1, !0), new Vh(pb, 2, !1), new Vh(nl, 2, !0), new Vh(Wm, 3, !1), new Vh(Ta, 3, !0)], uLt = [pb, nl, pb, nl, Wm, Ta, Wm, Ta], hLt = [nl, nl, nl, nl, Ta, Ta, Ta, Ta], fLt = [Yg, nh, pb, nl, Wm, Ta, Wm, Ta], dLt = [nh, nh, nl, nl, Ta, Ta, Ta, Ta], pLt = [rS, rS, nh, nh, nl, nl, Ta, Ta], gLt = [NN, rS, Yg, nh, Yg, nh, Yg, nh], ar = { +var NN = 0, rS = 1, Yg = 2, nh = 3, pb = 4, nl = 5, Wm = 6, Ta = 7, Dc = [new Vh(NN, 0, !1), new Vh(rS, 0, !0), new Vh(Yg, 1, !1), new Vh(nh, 1, !0), new Vh(pb, 2, !1), new Vh(nl, 2, !0), new Vh(Wm, 3, !1), new Vh(Ta, 3, !0)], fLt = [pb, nl, pb, nl, Wm, Ta, Wm, Ta], dLt = [nl, nl, nl, nl, Ta, Ta, Ta, Ta], pLt = [Yg, nh, pb, nl, Wm, Ta, Wm, Ta], gLt = [nh, nh, nl, nl, Ta, Ta, Ta, Ta], mLt = [rS, rS, nh, nh, nl, nl, Ta, Ta], vLt = [NN, rS, Yg, nh, Yg, nh, Yg, nh], ar = { DISPLAY: Dc[NN], TEXT: Dc[Yg], SCRIPT: Dc[pb], @@ -54050,7 +54056,7 @@ var NN = 0, rS = 1, Yg = 2, nh = 3, pb = 4, nl = 5, Wm = 6, Ta = 7, Dc = [new Vh name: "hangul", blocks: [[44032, 55215]] }]; -function mLt(t) { +function yLt(t) { for (var e = 0; e < LL.length; e++) for (var r = LL[e], n = 0; n < r.blocks.length; n++) { var i = r.blocks[n]; @@ -54067,7 +54073,7 @@ function Khe(t) { return !0; return !1; } -var Xp = 80, vLt = function(e, r) { +var Xp = 80, bLt = function(e, r) { return "M95," + (622 + e + r) + ` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 @@ -54080,7 +54086,7 @@ H400000v` + (40 + e) + `H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z M` + (834 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, yLt = function(e, r) { +}, xLt = function(e, r) { return "M263," + (601 + e + r) + `c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 @@ -54092,7 +54098,7 @@ c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, bLt = function(e, r) { +}, wLt = function(e, r) { return "M983 " + (10 + e + r) + ` l` + e / 3.13 + " -" + e + ` c4,-6.7,10,-10,18,-10 H400000v` + (40 + e) + ` @@ -54103,7 +54109,7 @@ c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z M` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "h-400000z"; -}, xLt = function(e, r) { +}, OLt = function(e, r) { return "M424," + (2398 + e + r) + ` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 @@ -54115,7 +54121,7 @@ s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M` + (1001 + e) + " " + r + ` h400000v` + (40 + e) + "h-400000z"; -}, wLt = function(e, r) { +}, kLt = function(e, r) { return "M473," + (2713 + e + r) + ` c339.3,-1799.3,509.3,-2700,510,-2702 l` + e / 5.298 + " -" + e + ` c3.3,-7.3,9.3,-11,18,-11 H400000v` + (40 + e) + `H1017.7 @@ -54124,40 +54130,40 @@ c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, 606zM` + (1001 + e) + " " + r + "h400000v" + (40 + e) + "H1017.7z"; -}, OLt = function(e) { +}, SLt = function(e) { var r = e / 2; return "M400000 " + e + " H0 L" + r + " 0 l65 45 L145 " + (e - 80) + " H400000z"; -}, kLt = function(e, r, n) { +}, TLt = function(e, r, n) { var i = n - 54 - r - e; return "M702 " + (e + r) + "H400000" + (40 + e) + ` H742v` + i + `l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 219 661 l218 661zM702 ` + r + "H400000v" + (40 + e) + "H742z"; -}, SLt = function(e, r, n) { +}, CLt = function(e, r, n) { r = 1e3 * r; var i = ""; switch (e) { case "sqrtMain": - i = vLt(r, Xp); + i = bLt(r, Xp); break; case "sqrtSize1": - i = yLt(r, Xp); + i = xLt(r, Xp); break; case "sqrtSize2": - i = bLt(r, Xp); + i = wLt(r, Xp); break; case "sqrtSize3": - i = xLt(r, Xp); + i = OLt(r, Xp); break; case "sqrtSize4": - i = wLt(r, Xp); + i = kLt(r, Xp); break; case "sqrtTall": - i = kLt(r, Xp, n); + i = TLt(r, Xp, n); } return i; -}, TLt = function(e, r) { +}, ELt = function(e, r) { switch (e) { case "\u239C": return "M291 0 H417 V" + r + " H291z M291 0 H417 V" + r + " H291z"; @@ -54411,7 +54417,7 @@ c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z` -}, CLt = function(e, r) { +}, _Lt = function(e, r) { switch (e) { case "lbrack": return "M403 1759 V84 H666 V0 H319 V1759 v" + r + ` v1759 h347 v-84 @@ -56669,7 +56675,7 @@ var Wc = { \u044E: "m", \u044F: "r" }; -function ELt(t, e) { +function ALt(t, e) { Wc[t] = e; } function IN(t, e, r) { @@ -56686,7 +56692,7 @@ function IN(t, e, r) { }; } var pA = {}; -function _Lt(t) { +function LLt(t) { var e; if (t >= 5 ? e = 0 : t >= 3 ? e = 1 : e = 2, !pA[e]) { var r = pA[e] = { @@ -56697,7 +56703,7 @@ function _Lt(t) { } return pA[e]; } -var ALt = [ +var RLt = [ [1, 1, 1], [2, 1, 1], [3, 1, 1], @@ -56722,7 +56728,7 @@ var ALt = [ 2.074, 2.488 ], eW = function(e, r) { - return r.size < 2 ? e : ALt[e - 1][r.size - 1]; + return r.size < 2 ? e : RLt[e - 1][r.size - 1]; }; class Fu { constructor(e) { @@ -56830,7 +56836,7 @@ class Fu { return this.size !== Fu.BASESIZE ? ["sizing", "reset-size" + this.size, "size" + Fu.BASESIZE] : []; } fontMetrics() { - return this._fontMetrics || (this._fontMetrics = _Lt(this.size)), this._fontMetrics; + return this._fontMetrics || (this._fontMetrics = LLt(this.size)), this._fontMetrics; } getColor() { return this.phantom ? "transparent" : this.color; @@ -56850,12 +56856,12 @@ var RL = { nc: 1370 / 107, sp: 1 / 65536, px: 803 / 800 -}, LLt = { +}, MLt = { ex: !0, em: !0, mu: !0 }, Jhe = function(e) { - return typeof e != "string" && (e = e.unit), e in RL || e in LLt || e === "ex"; + return typeof e != "string" && (e = e.unit), e in RL || e in MLt || e === "ex"; }, qn = function(e, r) { var n; if (e.unit in RL) @@ -56941,7 +56947,7 @@ class $N { return rfe.call(this, "a"); } } -class RLt { +class DLt { constructor(e, r, n) { this.src = void 0, this.alt = void 0, this.classes = void 0, this.height = void 0, this.depth = void 0, this.maxFontSize = void 0, this.style = void 0, this.alt = r, this.src = e, this.classes = ["mord"], this.style = n; } @@ -56962,7 +56968,7 @@ class RLt { return r && (e += ' style="' + nr.escape(r) + '"'), e += "'/>", e; } } -var MLt = { +var PLt = { \u00EE: "\u0131\u0302", \u00EF: "\u0131\u0308", \u00ED: "\u0131\u0301", @@ -56971,8 +56977,8 @@ var MLt = { class bl { constructor(e, r, n, i, s, a, o, l) { this.text = void 0, this.height = void 0, this.depth = void 0, this.italic = void 0, this.skew = void 0, this.width = void 0, this.maxFontSize = void 0, this.classes = void 0, this.style = void 0, this.text = e, this.height = r || 0, this.depth = n || 0, this.italic = i || 0, this.skew = s || 0, this.width = a || 0, this.classes = o || [], this.style = l || {}, this.maxFontSize = 0; - var u = mLt(this.text.charCodeAt(0)); - u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = MLt[this.text]); + var u = yLt(this.text.charCodeAt(0)); + u && this.classes.push(u + "_fallback"), /[îïíì]/.test(this.text) && (this.text = PLt[this.text]); } hasClass(e) { return nr.contains(this.classes, e); @@ -57052,19 +57058,19 @@ function tW(t) { return t; throw new Error("Expected symbolNode but got " + String(t) + "."); } -function DLt(t) { +function NLt(t) { if (t instanceof mw) return t; throw new Error("Expected span but got " + String(t) + "."); } -var PLt = { +var ILt = { bin: 1, close: 1, inner: 1, open: 1, punct: 1, rel: 1 -}, NLt = { +}, $Lt = { "accent-token": 1, mathord: 1, "op-token": 1, @@ -57760,7 +57766,7 @@ var c4 = [ ["mathsf", "textsf", "SansSerif-Regular"], ["mathboldsf", "textboldsf", "SansSerif-Bold"], ["mathtt", "texttt", "Typewriter-Regular"] -], ILt = function(e, r) { +], BLt = function(e, r) { var n = e.charCodeAt(0), i = e.charCodeAt(1), s = (n - 55296) * 1024 + (i - 56320) + 65536, a = r === "math" ? 0 : 1; if (119808 <= s && s < 120484) { var o = Math.floor((s - 119808) / 26); @@ -57795,9 +57801,9 @@ var c4 = [ h && (l.style.color = h); } return l; -}, $Lt = function(e, r, n, i) { +}, FLt = function(e, r, n, i) { return i === void 0 && (i = []), n.font === "boldsymbol" && YC(e, "Main-Bold", r).metrics ? Pl(e, "Main-Bold", r, n, i.concat(["mathbf"])) : e === "\\" || Tn[r][e].font === "main" ? Pl(e, "Main-Regular", r, n, i) : Pl(e, "AMS-Regular", r, n, i.concat(["amsrm"])); -}, BLt = function(e, r, n, i, s) { +}, zLt = function(e, r, n, i, s) { return s !== "textord" && YC(e, "Math-BoldItalic", r).metrics ? { fontName: "Math-BoldItalic", fontClass: "boldsymbol" @@ -57805,14 +57811,14 @@ var c4 = [ fontName: "Main-Bold", fontClass: "mathbf" }; -}, FLt = function(e, r, n) { +}, QLt = function(e, r, n) { var i = e.mode, s = e.text, a = ["mord"], o = i === "math" || i === "text" && r.font, l = o ? r.font : r.fontFamily, u = "", h = ""; - if (s.charCodeAt(0) === 55349 && ([u, h] = ILt(s, i)), u.length > 0) + if (s.charCodeAt(0) === 55349 && ([u, h] = BLt(s, i)), u.length > 0) return Pl(s, u, i, r, a.concat(h)); if (l) { var f, d; if (l === "boldsymbol") { - var p = BLt(s, i, r, a, n); + var p = zLt(s, i, r, a, n); f = p.fontName, d = [p.fontClass]; } else o ? (f = afe[l].fontName, d = [l]) : (f = u4(l, r.fontWeight, r.fontShape), d = [l, r.fontWeight, r.fontShape]); @@ -57840,7 +57846,7 @@ var c4 = [ } } else throw new Error("unexpected type: " + n + " in makeOrd"); -}, zLt = (t, e) => { +}, ULt = (t, e) => { if (jf(t.classes) !== jf(e.classes) || t.skew !== e.skew || t.maxFontSize !== e.maxFontSize) return !1; if (t.classes.length === 1) { @@ -57855,10 +57861,10 @@ var c4 = [ if (e.style.hasOwnProperty(i) && t.style[i] !== e.style[i]) return !1; return !0; -}, QLt = (t) => { +}, VLt = (t) => { for (var e = 0; e < t.length - 1; e++) { var r = t[e], n = t[e + 1]; - r instanceof bl && n instanceof bl && zLt(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); + r instanceof bl && n instanceof bl && ULt(r, n) && (r.text += n.text, r.height = Math.max(r.height, n.height), r.depth = Math.max(r.depth, n.depth), r.italic = n.italic, t.splice(e + 1, 1), e--); } return t; }, BN = function(e) { @@ -57870,18 +57876,18 @@ var c4 = [ }, Ua = function(e, r, n, i) { var s = new mw(e, r, n, i); return BN(s), s; -}, ife = (t, e, r, n) => new mw(t, e, r, n), ULt = function(e, r, n) { +}, ife = (t, e, r, n) => new mw(t, e, r, n), qLt = function(e, r, n) { var i = Ua([e], [], r); return i.height = Math.max(n || r.fontMetrics().defaultRuleThickness, r.minRuleThickness), i.style.borderBottomWidth = Ct(i.height), i.maxFontSize = 1, i; -}, VLt = function(e, r, n, i) { +}, YLt = function(e, r, n, i) { var s = new $N(e, r, n, i); return BN(s), s; }, sfe = function(e) { var r = new gw(e); return BN(r), r; -}, qLt = function(e, r) { +}, WLt = function(e, r) { return e instanceof gw ? Ua([], [e], r) : e; -}, YLt = function(e) { +}, GLt = function(e) { if (e.positionType === "individualShift") { for (var r = e.children, n = [r[0]], i = -r[0].shift - r[0].elem.depth, s = i, a = 1; a < r.length; a++) { var o = -r[a].shift - s - r[a].elem.depth, l = o - (r[a - 1].elem.height + r[a - 1].elem.depth); @@ -57919,11 +57925,11 @@ var c4 = [ children: e.children, depth: u }; -}, WLt = function(e, r) { +}, XLt = function(e, r) { for (var { children: n, depth: i - } = YLt(e), s = 0, a = 0; a < n.length; a++) { + } = GLt(e), s = 0, a = 0; a < n.length; a++) { var o = n[a]; if (o.type === "elem") { var l = o.elem; @@ -57955,7 +57961,7 @@ var c4 = [ S = [Ua(["vlist-r"], [O])]; var E = Ua(["vlist-t"], S); return S.length === 2 && E.classes.push("vlist-t2"), E.height = d, E.depth = -f, E; -}, GLt = (t, e) => { +}, HLt = (t, e) => { var r = Ua(["mspace"], [], e), n = qn(t, e); return r.style.marginRight = Ct(n), r; }, u4 = function(e, r, n) { @@ -58029,7 +58035,7 @@ var c4 = [ oiintSize2: ["oiintSize2", 1.472, 0.659], oiiintSize1: ["oiiintSize1", 1.304, 0.499], oiiintSize2: ["oiiintSize2", 1.98, 0.659] -}, XLt = function(e, r) { +}, ZLt = function(e, r) { var [n, i, s] = ofe[e], a = new Kf(n), o = new yh([a], { width: Ct(i), height: Ct(s), @@ -58041,19 +58047,19 @@ var c4 = [ }, Ye = { fontMap: afe, makeSymbol: Pl, - mathsym: $Lt, + mathsym: FLt, makeSpan: Ua, makeSvgSpan: ife, - makeLineSpan: ULt, - makeAnchor: VLt, + makeLineSpan: qLt, + makeAnchor: YLt, makeFragment: sfe, - wrapFragment: qLt, - makeVList: WLt, - makeOrd: FLt, - makeGlue: GLt, - staticSvg: XLt, + wrapFragment: WLt, + makeVList: XLt, + makeOrd: QLt, + makeGlue: HLt, + staticSvg: ZLt, svgData: ofe, - tryCombineChars: QLt + tryCombineChars: VLt }, Un = { number: 3, unit: "mu" @@ -58063,7 +58069,7 @@ var c4 = [ }, Du = { number: 5, unit: "mu" -}, HLt = { +}, jLt = { mord: { mop: Un, mbin: Dd, @@ -58113,7 +58119,7 @@ var c4 = [ mpunct: Un, minner: Un } -}, ZLt = { +}, KLt = { mord: { mop: Un }, @@ -58178,12 +58184,12 @@ var aS = function(e) { return e.type === "ordgroup" && e.body.length === 1 ? e.body[0] : e; }, mi = function(e) { return e.type === "ordgroup" ? e.body : [e]; -}, bh = Ye.makeSpan, jLt = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], KLt = ["rightmost", "mrel", "mclose", "mpunct"], JLt = { +}, bh = Ye.makeSpan, JLt = ["leftmost", "mbin", "mopen", "mrel", "mop", "mpunct"], eRt = ["rightmost", "mrel", "mclose", "mpunct"], tRt = { display: ar.DISPLAY, text: ar.TEXT, script: ar.SCRIPT, scriptscript: ar.SCRIPTSCRIPT -}, eRt = { +}, rRt = { mord: "mord", mop: "mop", mbin: "mbin", @@ -58207,16 +58213,16 @@ var aS = function(e) { var u = r; if (e.length === 1) { var h = e[0]; - h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(JLt[h.style])); + h.type === "sizing" ? u = r.havingSize(h.size) : h.type === "styling" && (u = r.havingStyle(tRt[h.style])); } var f = bh([i[0] || "leftmost"], [], r), d = bh([i[1] || "rightmost"], [], r), p = n === "root"; return oW(s, (g, m) => { var v = m.classes[0], y = g.classes[0]; - v === "mbin" && nr.contains(KLt, y) ? m.classes[0] = "mord" : y === "mbin" && nr.contains(jLt, v) && (g.classes[0] = "mord"); + v === "mbin" && nr.contains(eRt, y) ? m.classes[0] = "mord" : y === "mbin" && nr.contains(JLt, v) && (g.classes[0] = "mord"); }, { node: f }, d, p), oW(s, (g, m) => { - var v = PL(m), y = PL(g), b = v && y ? g.hasClass("mtight") ? ZLt[v][y] : HLt[v][y] : null; + var v = PL(m), y = PL(g), b = v && y ? g.hasClass("mtight") ? KLt[v][y] : jLt[v][y] : null; if (b) return Ye.makeGlue(b, u); }, { @@ -58242,7 +58248,7 @@ var aS = function(e) { i && e.pop(); }, cfe = function(e) { return e instanceof gw || e instanceof $N || e instanceof mw && e.hasClass("enclosing") ? e : null; -}, tRt = function t(e, r) { +}, nRt = function t(e, r) { var n = cfe(e); if (n) { var i = n.children; @@ -58255,7 +58261,7 @@ var aS = function(e) { } return e; }, PL = function(e, r) { - return e ? (r && (e = tRt(e, r)), eRt[e.classes[0]] || null) : null; + return e ? (r && (e = nRt(e, r)), rRt[e.classes[0]] || null) : null; }, gb = function(e, r) { var n = ["nulldelimiter"].concat(e.baseSizingClasses()); return bh(r.concat(n)); @@ -58348,7 +58354,7 @@ class Jy { return this.text; } } -class rRt { +class iRt { constructor(e) { this.width = void 0, this.character = void 0, this.width = e, e >= 0.05555 && e <= 0.05556 ? this.character = "\u200A" : e >= 0.1666 && e <= 0.1667 ? this.character = "\u2009" : e >= 0.2222 && e <= 0.2223 ? this.character = "\u2005" : e >= 0.2777 && e <= 0.2778 ? this.character = "\u2005\u200A" : e >= -0.05556 && e <= -0.05555 ? this.character = "\u200A\u2063" : e >= -0.1667 && e <= -0.1666 ? this.character = "\u2009\u2063" : e >= -0.2223 && e <= -0.2222 ? this.character = "\u205F\u2063" : e >= -0.2778 && e <= -0.2777 ? this.character = "\u2005\u2063" : this.character = null; } @@ -58368,7 +58374,7 @@ class rRt { var vt = { MathNode: Ko, TextNode: Jy, - SpaceNode: rRt, + SpaceNode: iRt, newDocumentFragment: ufe }, xl = function(e, r, n) { return Tn[r][e] && Tn[r][e].replace && e.charCodeAt(0) !== 55349 && !(nfe.hasOwnProperty(e) && n && (n.fontFamily && n.fontFamily.slice(4, 6) === "tt" || n.font && n.font.slice(4, 6) === "tt")) && (e = Tn[r][e].replace), new vt.TextNode(e); @@ -58475,7 +58481,7 @@ var hfe = function(e) { r.leqno && n.push("leqno"), r.fleqn && n.push("fleqn"), e = Ye.makeSpan(n, [e]); } return e; -}, nRt = function(e, r, n) { +}, sRt = function(e, r, n) { var i = hfe(n), s; if (n.output === "mathml") return lW(e, r, i, n.displayMode, !0); @@ -58487,10 +58493,10 @@ var hfe = function(e) { s = Ye.makeSpan(["katex"], [o, l]); } return ffe(s, n); -}, iRt = function(e, r, n) { +}, aRt = function(e, r, n) { var i = hfe(n), s = NL(e, i), a = Ye.makeSpan(["katex"], [s]); return ffe(a, n); -}, sRt = { +}, oRt = { widehat: "^", widecheck: "\u02C7", widetilde: "~", @@ -58533,10 +58539,10 @@ var hfe = function(e) { "\\cdrightarrow": "\u2192", "\\cdleftarrow": "\u2190", "\\cdlongequal": "=" -}, aRt = function(e) { - var r = new vt.MathNode("mo", [new vt.TextNode(sRt[e.replace(/^\\/, "")])]); +}, lRt = function(e) { + var r = new vt.MathNode("mo", [new vt.TextNode(oRt[e.replace(/^\\/, "")])]); return r.setAttribute("stretchy", "true"), r; -}, oRt = { +}, cRt = { overrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], overleftarrow: [["leftarrow"], 0.888, 522, "xMinYMin"], underrightarrow: [["rightarrow"], 0.888, 522, "xMaxYMin"], @@ -58577,13 +58583,13 @@ var hfe = function(e) { xrightleftarrows: [["baraboveleftarrow", "rightarrowabovebar"], 1.75, 901], xrightequilibrium: [["baraboveshortleftharpoon", "rightharpoonaboveshortbar"], 1.75, 716], xleftequilibrium: [["shortbaraboveleftharpoon", "shortrightharpoonabovebar"], 1.75, 716] -}, lRt = function(e) { +}, uRt = function(e) { return e.type === "ordgroup" ? e.body.length : 1; -}, cRt = function(e, r) { +}, hRt = function(e, r) { function n() { var o = 4e5, l = e.label.slice(1); if (nr.contains(["widehat", "widecheck", "widetilde", "utilde"], l)) { - var u = e, h = lRt(u.base), f, d, p; + var u = e, h = uRt(u.base), f, d, p; if (h > 5) l === "widehat" || l === "widecheck" ? (f = 420, o = 2364, p = 0.42, d = l + "4") : (f = 312, o = 2340, p = 0.34, d = "tilde4"); else { @@ -58602,7 +58608,7 @@ var hfe = function(e) { height: p }; } else { - var y = [], b = oRt[l], [w, O, S] = b, C = S / 1e3, T = w.length, A, E; + var y = [], b = cRt[l], [w, O, S] = b, C = S / 1e3, T = w.length, A, E; if (T === 1) { var R = b[3]; A = ["hide-tail"], E = [R]; @@ -58641,7 +58647,7 @@ var hfe = function(e) { height: a } = n(); return i.height = a, i.style.height = Ct(a), s > 0 && (i.style.minWidth = Ct(s)), i; -}, uRt = function(e, r, n, i, s) { +}, fRt = function(e, r, n, i, s) { var a, o = e.height + e.depth + n + i; if (/fbox|color|angl/.test(r)) { if (a = Ye.makeSpan(["stretchy", r], [], s), r === "fbox") { @@ -58671,9 +58677,9 @@ var hfe = function(e) { } return a.height = o, a.style.height = Ct(o), a; }, xh = { - encloseSpan: uRt, - mathMLnode: aRt, - svgSpan: cRt + encloseSpan: fRt, + mathMLnode: lRt, + svgSpan: hRt }; function Cr(t, e) { if (!t || t.type !== e) @@ -58687,11 +58693,11 @@ function QN(t) { return e; } function WC(t) { - return t && (t.type === "atom" || NLt.hasOwnProperty(t.type)) ? t : null; + return t && (t.type === "atom" || $Lt.hasOwnProperty(t.type)) ? t : null; } var UN = (t, e) => { var r, n, i; - t && t.type === "supsub" ? (n = Cr(t.base, "accent"), r = n.base, t.base = r, i = DLt(Qr(t, e)), t.base = n) : (n = Cr(t, "accent"), r = n.base); + t && t.type === "supsub" ? (n = Cr(t.base, "accent"), r = n.base, t.base = r, i = NLt(Qr(t, e)), t.base = n) : (n = Cr(t, "accent"), r = n.base); var s = Qr(r, e.havingCrampedStyle()), a = n.isShifty && nr.isCharacterBox(r), o = 0; if (a) { var l = nr.getBaseElem(r), u = Qr(l, e.havingCrampedStyle()); @@ -58742,7 +58748,7 @@ var UN = (t, e) => { }, dfe = (t, e) => { var r = t.isStretchy ? xh.mathMLnode(t.label) : new vt.MathNode("mo", [xl(t.label, t.mode)]), n = new vt.MathNode("mover", [yn(t.base, e), r]); return n.setAttribute("accent", "true"), n; -}, hRt = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); +}, dRt = new RegExp(["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring"].map((t) => "\\" + t).join("|")); Nt({ type: "accent", names: ["\\acute", "\\grave", "\\ddot", "\\tilde", "\\bar", "\\breve", "\\check", "\\hat", "\\vec", "\\dot", "\\mathring", "\\widecheck", "\\widehat", "\\widetilde", "\\overrightarrow", "\\overleftarrow", "\\Overrightarrow", "\\overleftrightarrow", "\\overgroup", "\\overlinesegment", "\\overleftharpoon", "\\overrightharpoon"], @@ -58750,7 +58756,7 @@ Nt({ numArgs: 1 }, handler: (t, e) => { - var r = aS(e[0]), n = !hRt.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; + var r = aS(e[0]), n = !dRt.test(t.funcName), i = !n || t.funcName === "\\widehat" || t.funcName === "\\widetilde" || t.funcName === "\\widecheck"; return { type: "accent", mode: t.parser.mode, @@ -58937,10 +58943,10 @@ Nt({ return n; } }); -var fRt = Ye.makeSpan; +var pRt = Ye.makeSpan; function pfe(t, e) { var r = Gi(t.body, e, !0); - return fRt([t.mclass], r, e); + return pRt([t.mclass], r, e); } function gfe(t, e) { var r, n = ho(t.body, e); @@ -59058,7 +59064,7 @@ Nt({ return n.setAttribute("style", "text-shadow: 0.02em 0.01em 0.04px"), n; } }); -var dRt = { +var gRt = { ">": "\\\\cdrightarrow", "<": "\\\\cdleftarrow", "=": "\\\\cdlongequal", @@ -59071,9 +59077,9 @@ var dRt = { body: [], mode: "math", style: "display" -}), uW = (t) => t.type === "textord" && t.text === "@", pRt = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; -function gRt(t, e, r) { - var n = dRt[t]; +}), uW = (t) => t.type === "textord" && t.text === "@", mRt = (t, e) => (t.type === "mathord" || t.type === "atom") && t.text === e; +function vRt(t, e, r) { + var n = gRt[t]; switch (n) { case "\\\\cdrightarrow": case "\\\\cdleftarrow": @@ -59110,7 +59116,7 @@ function gRt(t, e, r) { }; } } -function mRt(t) { +function yRt(t) { var e = []; for (t.gullet.beginGroup(), t.gullet.macros.set("\\cr", "\\\\\\relax"), t.gullet.beginGroup(); ; ) { e.push(t.parseExpression(!1, "\\\\")), t.gullet.endGroup(), t.gullet.beginGroup(); @@ -59142,7 +59148,7 @@ function mRt(t) { if ("<>AV".indexOf(u) > -1) for (var f = 0; f < 2; f++) { for (var d = !0, p = l + 1; p < a.length; p++) { - if (pRt(a[p], u)) { + if (mRt(a[p], u)) { d = !1, l = p; break; } @@ -59155,7 +59161,7 @@ function mRt(t) { } else throw new Ot('Expected one of "<>AV=|." after @', a[l]); - var g = gRt(u, h, t), m = { + var g = vRt(u, h, t), m = { type: "styling", body: [g], mode: "math", @@ -59358,7 +59364,7 @@ var IL = { if (/^(?:[\\{}$&#^_]|EOF)$/.test(e)) throw new Ot("Expected a control sequence", t); return e; -}, vRt = (t) => { +}, bRt = (t) => { var e = t.gullet.popToken(); return e.text === "=" && (e = t.gullet.popToken(), e.text === " " && (e = t.gullet.popToken())), e; }, bfe = (t, e, r, n) => { @@ -59453,7 +59459,7 @@ Nt({ funcName: r } = t, n = yfe(e.gullet.popToken()); e.gullet.consumeSpaces(); - var i = vRt(e); + var i = bRt(e); return bfe(e, n, i, r === "\\\\globallet"), { type: "internal", mode: e.mode @@ -59493,13 +59499,13 @@ var dy = function(e, r, n) { }, xfe = function(e, r, n) { var i = r.havingBaseStyle(n), s = (1 - r.sizeMultiplier / i.sizeMultiplier) * r.fontMetrics().axisHeight; e.classes.push("delimcenter"), e.style.top = Ct(s), e.height -= s, e.depth += s; -}, yRt = function(e, r, n, i, s, a) { +}, xRt = function(e, r, n, i, s, a) { var o = Ye.makeSymbol(e, "Main-Regular", s, i), l = VN(o, r, i, a); return n && xfe(l, i, r), l; -}, bRt = function(e, r, n, i) { +}, wRt = function(e, r, n, i) { return Ye.makeSymbol(e, "Size" + r + "-Regular", n, i); }, wfe = function(e, r, n, i, s, a) { - var o = bRt(e, r, s, i), l = VN(Ye.makeSpan(["delimsizing", "size" + r], [o], i), ar.TEXT, i, a); + var o = wRt(e, r, s, i), l = VN(Ye.makeSpan(["delimsizing", "size" + r], [o], i), ar.TEXT, i, a); return n && xfe(l, i, ar.TEXT), l; }, bA = function(e, r, n) { var i; @@ -59510,7 +59516,7 @@ var dy = function(e, r, n) { elem: s }; }, xA = function(e, r, n) { - var i = Wc["Size4-Regular"][e.charCodeAt(0)] ? Wc["Size4-Regular"][e.charCodeAt(0)][4] : Wc["Size1-Regular"][e.charCodeAt(0)][4], s = new Kf("inner", TLt(e, Math.round(1e3 * r))), a = new yh([s], { + var i = Wc["Size4-Regular"][e.charCodeAt(0)] ? Wc["Size4-Regular"][e.charCodeAt(0)][4] : Wc["Size1-Regular"][e.charCodeAt(0)][4], s = new Kf("inner", ELt(e, Math.round(1e3 * r))), a = new yh([s], { width: Ct(i), height: Ct(r), style: "width:" + Ct(i), @@ -59524,11 +59530,11 @@ var dy = function(e, r, n) { }, $L = 8e-3, d4 = { type: "kern", size: -1 * $L -}, xRt = ["|", "\\lvert", "\\rvert", "\\vert"], wRt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Ofe = function(e, r, n, i, s, a) { +}, ORt = ["|", "\\lvert", "\\rvert", "\\vert"], kRt = ["\\|", "\\lVert", "\\rVert", "\\Vert"], Ofe = function(e, r, n, i, s, a) { var o, l, u, h, f = "", d = 0; o = u = h = e, l = null; var p = "Size1-Regular"; - e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : nr.contains(xRt, e) ? (u = "\u2223", f = "vert", d = 333) : nr.contains(wRt, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); + e === "\\uparrow" ? u = h = "\u23D0" : e === "\\Uparrow" ? u = h = "\u2016" : e === "\\downarrow" ? o = u = "\u23D0" : e === "\\Downarrow" ? o = u = "\u2016" : e === "\\updownarrow" ? (o = "\\uparrow", u = "\u23D0", h = "\\downarrow") : e === "\\Updownarrow" ? (o = "\\Uparrow", u = "\u2016", h = "\\Downarrow") : nr.contains(ORt, e) ? (u = "\u2223", f = "vert", d = 333) : nr.contains(kRt, e) ? (u = "\u2225", f = "doublevert", d = 556) : e === "[" || e === "\\lbrack" ? (o = "\u23A1", u = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lbrack", d = 667) : e === "]" || e === "\\rbrack" ? (o = "\u23A4", u = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rbrack", d = 667) : e === "\\lfloor" || e === "\u230A" ? (u = o = "\u23A2", h = "\u23A3", p = "Size4-Regular", f = "lfloor", d = 667) : e === "\\lceil" || e === "\u2308" ? (o = "\u23A1", u = h = "\u23A2", p = "Size4-Regular", f = "lceil", d = 667) : e === "\\rfloor" || e === "\u230B" ? (u = o = "\u23A5", h = "\u23A6", p = "Size4-Regular", f = "rfloor", d = 667) : e === "\\rceil" || e === "\u2309" ? (o = "\u23A4", u = h = "\u23A5", p = "Size4-Regular", f = "rceil", d = 667) : e === "(" || e === "\\lparen" ? (o = "\u239B", u = "\u239C", h = "\u239D", p = "Size4-Regular", f = "lparen", d = 875) : e === ")" || e === "\\rparen" ? (o = "\u239E", u = "\u239F", h = "\u23A0", p = "Size4-Regular", f = "rparen", d = 875) : e === "\\{" || e === "\\lbrace" ? (o = "\u23A7", l = "\u23A8", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\}" || e === "\\rbrace" ? (o = "\u23AB", l = "\u23AC", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lgroup" || e === "\u27EE" ? (o = "\u23A7", h = "\u23A9", u = "\u23AA", p = "Size4-Regular") : e === "\\rgroup" || e === "\u27EF" ? (o = "\u23AB", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : e === "\\lmoustache" || e === "\u23B0" ? (o = "\u23A7", h = "\u23AD", u = "\u23AA", p = "Size4-Regular") : (e === "\\rmoustache" || e === "\u23B1") && (o = "\u23AB", h = "\u23A9", u = "\u23AA", p = "Size4-Regular"); var g = dy(o, p, s), m = g.height + g.depth, v = dy(u, p, s), y = v.height + v.depth, b = dy(h, p, s), w = b.height + b.depth, O = 0, S = 1; if (l !== null) { var C = dy(l, p, s); @@ -59538,7 +59544,7 @@ var dy = function(e, r, n) { n && (R *= i.sizeMultiplier); var _ = E / 2 - R, L = []; if (f.length > 0) { - var $ = E - m - w, k = Math.round(E * 1e3), N = CLt(f, Math.round($ * 1e3)), M = new Kf(f, N), D = (d / 1e3).toFixed(3) + "em", P = (k / 1e3).toFixed(3) + "em", I = new yh([M], { + var $ = E - m - w, k = Math.round(E * 1e3), N = _Lt(f, Math.round($ * 1e3)), M = new Kf(f, N), D = (d / 1e3).toFixed(3) + "em", P = (k / 1e3).toFixed(3) + "em", I = new yh([M], { width: D, height: P, viewBox: "0 0 " + d + " " + k @@ -59564,27 +59570,27 @@ var dy = function(e, r, n) { }, q); return VN(Ye.makeSpan(["delimsizing", "mult"], [W], q), ar.TEXT, i, a); }, wA = 80, OA = 0.08, kA = function(e, r, n, i, s) { - var a = SLt(e, i, n), o = new Kf(e, a), l = new yh([o], { + var a = CLt(e, i, n), o = new Kf(e, a), l = new yh([o], { width: "400em", height: Ct(r), viewBox: "0 0 400000 " + n, preserveAspectRatio: "xMinYMin slice" }); return Ye.makeSvgSpan(["hide-tail"], [l], s); -}, ORt = function(e, r) { +}, SRt = function(e, r) { var n = r.havingBaseSizing(), i = Cfe("\\surd", e * n.sizeMultiplier, Tfe, n), s = n.sizeMultiplier, a = Math.max(0, r.minRuleThickness - r.fontMetrics().sqrtRuleThickness), o, l = 0, u = 0, h = 0, f; return i.type === "small" ? (h = 1e3 + 1e3 * a + wA, e < 1 ? s = 1 : e < 1.4 && (s = 0.7), l = (1 + a + OA) / s, u = (1 + a) / s, o = kA("sqrtMain", l, h, a, r), o.style.minWidth = "0.853em", f = 0.833 / s) : i.type === "large" ? (h = (1e3 + wA) * e2[i.size], u = (e2[i.size] + a) / s, l = (e2[i.size] + a + OA) / s, o = kA("sqrtSize" + i.size, l, h, a, r), o.style.minWidth = "1.02em", f = 1 / s) : (l = e + a + OA, u = e + a, h = Math.floor(1e3 * e + a) + wA, o = kA("sqrtTall", l, h, a, r), o.style.minWidth = "0.742em", f = 1.056), o.height = u, o.style.height = Ct(l), { span: o, advanceWidth: f, ruleWidth: (r.fontMetrics().sqrtRuleThickness + a) * s }; -}, kfe = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], kRt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Sfe = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], e2 = [0, 1.2, 1.8, 2.4, 3], SRt = function(e, r, n, i, s) { +}, kfe = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "\\surd"], TRt = ["\\uparrow", "\\downarrow", "\\updownarrow", "\\Uparrow", "\\Downarrow", "\\Updownarrow", "|", "\\|", "\\vert", "\\Vert", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1"], Sfe = ["<", ">", "\\langle", "\\rangle", "/", "\\backslash", "\\lt", "\\gt"], e2 = [0, 1.2, 1.8, 2.4, 3], CRt = function(e, r, n, i, s) { if (e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"), nr.contains(kfe, e) || nr.contains(Sfe, e)) return wfe(e, r, !1, n, i, s); - if (nr.contains(kRt, e)) + if (nr.contains(TRt, e)) return Ofe(e, e2[r], !1, n, i, s); throw new Ot("Illegal delimiter: '" + e + "'"); -}, TRt = [{ +}, ERt = [{ type: "small", style: ar.SCRIPTSCRIPT }, { @@ -59605,7 +59611,7 @@ var dy = function(e, r, n) { }, { type: "large", size: 4 -}], CRt = [{ +}], _Rt = [{ type: "small", style: ar.SCRIPTSCRIPT }, { @@ -59639,7 +59645,7 @@ var dy = function(e, r, n) { size: 4 }, { type: "stack" -}], ERt = function(e) { +}], ARt = function(e) { if (e.type === "small") return "Main-Regular"; if (e.type === "large") @@ -59649,7 +59655,7 @@ var dy = function(e, r, n) { throw new Error("Add support for delim type '" + e.type + "' here."); }, Cfe = function(e, r, n, i) { for (var s = Math.min(2, 3 - i.style.size), a = s; a < n.length && n[a].type !== "stack"; a++) { - var o = dy(e, ERt(n[a]), "math"), l = o.height + o.depth; + var o = dy(e, ARt(n[a]), "math"), l = o.height + o.depth; if (n[a].type === "small") { var u = i.havingBaseStyle(n[a].style); l *= u.sizeMultiplier; @@ -59661,21 +59667,21 @@ var dy = function(e, r, n) { }, Efe = function(e, r, n, i, s, a) { e === "<" || e === "\\lt" || e === "\u27E8" ? e = "\\langle" : (e === ">" || e === "\\gt" || e === "\u27E9") && (e = "\\rangle"); var o; - nr.contains(Sfe, e) ? o = TRt : nr.contains(kfe, e) ? o = Tfe : o = CRt; + nr.contains(Sfe, e) ? o = ERt : nr.contains(kfe, e) ? o = Tfe : o = _Rt; var l = Cfe(e, r, o, i); - return l.type === "small" ? yRt(e, l.style, n, i, s, a) : l.type === "large" ? wfe(e, l.size, n, i, s, a) : Ofe(e, r, n, i, s, a); -}, _Rt = function(e, r, n, i, s, a) { + return l.type === "small" ? xRt(e, l.style, n, i, s, a) : l.type === "large" ? wfe(e, l.size, n, i, s, a) : Ofe(e, r, n, i, s, a); +}, LRt = function(e, r, n, i, s, a) { var o = i.fontMetrics().axisHeight * i.sizeMultiplier, l = 901, u = 5 / i.fontMetrics().ptPerEm, h = Math.max(r - o, n + o), f = Math.max( h / 500 * l, 2 * h - u ); return Efe(e, f, !0, i, s, a); }, ih = { - sqrtImage: ORt, - sizedDelim: SRt, + sqrtImage: SRt, + sizedDelim: CRt, sizeToMaxHeight: e2, customSizedDelim: Efe, - leftRightDelim: _Rt + leftRightDelim: LRt }, hW = { "\\bigl": { mclass: "mopen", @@ -59741,10 +59747,10 @@ var dy = function(e, r, n) { mclass: "mord", size: 4 } -}, ARt = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; +}, RRt = ["(", "\\lparen", ")", "\\rparen", "[", "\\lbrack", "]", "\\rbrack", "\\{", "\\lbrace", "\\}", "\\rbrace", "\\lfloor", "\\rfloor", "\u230A", "\u230B", "\\lceil", "\\rceil", "\u2308", "\u2309", "<", ">", "\\langle", "\u27E8", "\\rangle", "\u27E9", "\\lt", "\\gt", "\\lvert", "\\rvert", "\\lVert", "\\rVert", "\\lgroup", "\\rgroup", "\u27EE", "\u27EF", "\\lmoustache", "\\rmoustache", "\u23B0", "\u23B1", "/", "\\backslash", "|", "\\vert", "\\|", "\\Vert", "\\uparrow", "\\Uparrow", "\\downarrow", "\\Downarrow", "\\updownarrow", "\\Updownarrow", "."]; function XC(t, e) { var r = WC(t); - if (r && nr.contains(ARt, r.text)) + if (r && nr.contains(RRt, r.text)) return r; throw r ? new Ot("Invalid delimiter '" + r.text + "' after '" + e.funcName + "'", t) : new Ot("Invalid delimiter type '" + t.type + "'", t); } @@ -59905,7 +59911,7 @@ var qN = (t, e) => { i = i / h.sizeMultiplier; var f = r.height + r.depth + l + u; r.style.paddingLeft = Ct(f / 2 + l); - var d = Math.floor(1e3 * f * i), p = OLt(d), g = new yh([new Kf("phase", p)], { + var d = Math.floor(1e3 * f * i), p = SLt(d), g = new yh([new Kf("phase", p)], { width: "400em", height: Ct(d / 1e3), viewBox: "0 0 400000 " + d, @@ -60322,7 +60328,7 @@ var Su = function(e, r) { children: D }, r); return he = Ye.makeSpan(["tag"], [he], r), Ye.makeFragment([l, he]); -}, LRt = { +}, MRt = { c: "center ", l: "left ", r: "right " @@ -60339,7 +60345,7 @@ var Su = function(e, r) { var g = e.cols, m = "", v = !1, y = 0, b = g.length; g[0].type === "separator" && (d += "top ", y = 1), g[g.length - 1].type === "separator" && (d += "bottom ", b -= 1); for (var w = y; w < b; w++) - g[w].type === "align" ? (p += LRt[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); + g[w].type === "align" ? (p += MRt[g[w].align], v && (m += "none "), v = !0) : g[w].type === "separator" && v && (m += g[w].separator === "|" ? "solid " : "dashed ", v = !1); h.setAttribute("columnalign", p.trim()), /[sd]/.test(m) && h.setAttribute("columnlines", m.trim()); } if (e.colSeparationType === "align") { @@ -60632,7 +60638,7 @@ ku({ numArgs: 0 }, handler(t) { - return HC(t), mRt(t.parser); + return HC(t), yRt(t.parser); }, htmlBuilder: Su, mathmlBuilder: Tu @@ -61090,7 +61096,7 @@ Nt({ var { parser: r, funcName: n - } = t, i = e[0], s = oLt(Cr(e[1], "infix").size), a = e[2], o = s.number > 0; + } = t, i = e[0], s = cLt(Cr(e[1], "infix").size), a = e[2], o = s.number > 0; return { type: "genfrac", mode: r.mode, @@ -61166,7 +61172,7 @@ var Pfe = (t, e) => { }, e); } return Ye.makeSpan(["mord", i.isOver ? "mover" : "munder"], [o], e); -}, RRt = (t, e) => { +}, DRt = (t, e) => { var r = xh.mathMLnode(t.label); return new vt.MathNode(t.isOver ? "mover" : "munder", [yn(t.base, e), r]); }; @@ -61190,7 +61196,7 @@ Nt({ }; }, htmlBuilder: Pfe, - mathmlBuilder: RRt + mathmlBuilder: DRt }); Nt({ type: "href", @@ -61466,7 +61472,7 @@ Nt({ height: Ct(r + n) }; i > 0 && (s.width = Ct(i)), n > 0 && (s.verticalAlign = Ct(-n)); - var a = new RLt(t.src, t.alt, s); + var a = new DLt(t.src, t.alt, s); return a.height = r, a.depth = n, a; }, mathmlBuilder: (t, e) => { @@ -61765,7 +61771,7 @@ var Nfe = (t, e, r, n, i, s, a) => { t.parentIsSupSub ? r = new Ko("mrow", [r, n]) : r = ufe([r, n]); } return r; -}, MRt = { +}, PRt = { "\u220F": "\\prod", "\u2210": "\\coprod", "\u2211": "\\sum", @@ -61790,7 +61796,7 @@ Nt({ parser: r, funcName: n } = t, i = n; - return i.length === 1 && (i = MRt[i]), { + return i.length === 1 && (i = PRt[i]), { type: "op", mode: r.mode, limits: !0, @@ -61825,7 +61831,7 @@ Nt({ htmlBuilder: Q1, mathmlBuilder: vw }); -var DRt = { +var NRt = { "\u222B": "\\int", "\u222C": "\\iint", "\u222D": "\\iiint", @@ -61890,7 +61896,7 @@ Nt({ parser: e, funcName: r } = t, n = r; - return n.length === 1 && (n = DRt[n]), { + return n.length === 1 && (n = NRt[n]), { type: "op", mode: e.mode, limits: !1, @@ -61922,7 +61928,7 @@ var $fe = (t, e) => { } else a = Ye.makeSpan(["mop"], [], e); return i ? Nfe(a, r, n, e, e.style, 0, 0) : a; -}, PRt = (t, e) => { +}, IRt = (t, e) => { for (var r = ho(t.body, e.withFont("mathrm")), n = !0, i = 0; i < r.length; i++) { var s = r[i]; if (!(s instanceof vt.SpaceNode)) @@ -61975,7 +61981,7 @@ Nt({ }; }, htmlBuilder: $fe, - mathmlBuilder: PRt + mathmlBuilder: IRt }); ue("\\operatorname", "\\@ifstar\\operatornamewithlimits\\operatorname@"); Ap({ @@ -62206,7 +62212,7 @@ function Bfe(t, e, r) { } return Ye.makeFragment(n); } -var bW = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], NRt = (t, e) => { +var bW = ["\\tiny", "\\sixptsize", "\\scriptsize", "\\footnotesize", "\\small", "\\normalsize", "\\large", "\\Large", "\\LARGE", "\\huge", "\\Huge"], $Rt = (t, e) => { var r = e.havingSize(t.size); return Bfe(t.body, r, e); }; @@ -62230,7 +62236,7 @@ Nt({ body: s }; }, - htmlBuilder: NRt, + htmlBuilder: $Rt, mathmlBuilder: (t, e) => { var r = e.havingSize(t.size), n = ho(t.body, r), i = new vt.MathNode("mstyle", n); return i.setAttribute("mathsize", Ct(r.sizeMultiplier)), i; @@ -62405,7 +62411,7 @@ Nt({ return s.setAttribute("scriptlevel", o[0]), s.setAttribute("displaystyle", o[1]), s; } }); -var IRt = function(e, r) { +var BRt = function(e, r) { var n = e.base; if (n) if (n.type === "op") { @@ -62429,7 +62435,7 @@ var IRt = function(e, r) { Ap({ type: "supsub", htmlBuilder(t, e) { - var r = IRt(t, e); + var r = BRt(t, e); if (r) return r(t, e); var { @@ -62630,7 +62636,7 @@ var OW = { }, kW = { "\\textbf": "textbf", "\\textmd": "textmd" -}, $Rt = { +}, FRt = { "\\textit": "textit", "\\textup": "textup" }, SW = (t, e) => { @@ -62644,7 +62650,7 @@ var OW = { return e.fontShape === "textit" ? e.withTextFontShape("textup") : e.withTextFontShape("textit"); } else return e; - return e.withTextFontShape($Rt[r]); + return e.withTextFontShape(FRt[r]); }; Nt({ type: "text", @@ -62787,12 +62793,12 @@ Nt({ } }); var TW = (t) => t.body.replace(/ /g, t.star ? "\u2423" : "\xA0"), pf = lfe, zfe = `[ \r - ]`, BRt = "\\\\[a-zA-Z@]+", FRt = "\\\\[^\uD800-\uDFFF]", zRt = "(" + BRt + ")" + zfe + "*", QRt = `\\\\( + ]`, zRt = "\\\\[a-zA-Z@]+", QRt = "\\\\[^\uD800-\uDFFF]", URt = "(" + zRt + ")" + zfe + "*", VRt = `\\\\( |[ \r ]+ -?)[ \r ]*`, BL = "[\u0300-\u036F]", URt = new RegExp(BL + "+$"), VRt = "(" + zfe + "+)|" + (QRt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (BL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (BL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + zRt) + ("|" + FRt + ")"); +?)[ \r ]*`, BL = "[\u0300-\u036F]", qRt = new RegExp(BL + "+$"), YRt = "(" + zfe + "+)|" + (VRt + "|") + "([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]" + (BL + "*") + "|[\uD800-\uDBFF][\uDC00-\uDFFF]" + (BL + "*") + "|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5" + ("|" + URt) + ("|" + QRt + ")"); class CW { constructor(e, r) { - this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(VRt, "g"), this.catcodes = { + this.input = void 0, this.settings = void 0, this.tokenRegex = void 0, this.catcodes = void 0, this.input = e, this.settings = r, this.tokenRegex = new RegExp(YRt, "g"), this.catcodes = { "%": 14, "~": 13 }; @@ -62816,7 +62822,7 @@ class CW { return new ll(i, new ko(this, r, this.tokenRegex.lastIndex)); } } -class qRt { +class WRt { constructor(e, r) { e === void 0 && (e = {}), r === void 0 && (r = {}), this.current = void 0, this.builtins = void 0, this.undefStack = void 0, this.current = r, this.builtins = e, this.undefStack = []; } @@ -62852,7 +62858,7 @@ class qRt { r == null ? delete this.current[e] : this.current[e] = r; } } -var YRt = Afe; +var GRt = Afe; ue("\\noexpand", function(t) { var e = t.popToken(); return t.isExpandable(e.text) && (e.noexpand = !0, e.treatAsRelax = !0), { @@ -63427,9 +63433,9 @@ var Vfe = { "\\limits": !0, "\\nolimits": !0 }; -class WRt { +class XRt { constructor(e, r, n) { - this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new qRt(YRt, r.macros), this.mode = n, this.stack = []; + this.settings = void 0, this.expansionCount = void 0, this.lexer = void 0, this.macros = void 0, this.stack = void 0, this.mode = void 0, this.settings = r, this.expansionCount = 0, this.feed(e), this.macros = new WRt(GRt, r.macros), this.mode = n, this.stack = []; } feed(e) { this.lexer = new CW(e, this.settings); @@ -64115,7 +64121,7 @@ var AW = /^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗ }; class ZC { constructor(e, r) { - this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new WRt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; + this.mode = void 0, this.gullet = void 0, this.settings = void 0, this.leftrightDepth = void 0, this.nextToken = void 0, this.mode = "math", this.gullet = new XRt(e, r, this.mode), this.settings = r, this.leftrightDepth = 0; } expect(e, r) { if (r === void 0 && (r = !0), this.fetch().text !== e) @@ -64514,13 +64520,13 @@ class ZC { }; } LW.hasOwnProperty(r[0]) && !Tn[this.mode][r[0]] && (this.settings.strict && this.mode === "math" && this.settings.reportNonstrict("unicodeTextInMathMode", 'Accented Unicode text character "' + r[0] + '" used in math mode', e), r = LW[r[0]] + r.slice(1)); - var s = URt.exec(r); + var s = qRt.exec(r); s && (r = r.substring(0, s.index), r === "i" ? r = "\u0131" : r === "j" && (r = "\u0237")); var a; if (Tn[this.mode][r]) { this.settings.strict && this.mode === "math" && DL.indexOf(r) >= 0 && this.settings.reportNonstrict("unicodeTextInMathMode", 'Latin-1/Unicode text character "' + r[0] + '" used in math mode', e); var o = Tn[this.mode][r].group, l = ko.range(e), u; - if (PLt.hasOwnProperty(o)) { + if (ILt.hasOwnProperty(o)) { var h = o; u = { type: "atom", @@ -64593,10 +64599,10 @@ var KN = function(e, r) { typeof document < "u" && document.compatMode !== "CSS1Compat" && (typeof console < "u" && console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."), qfe = function() { throw new Ot("KaTeX doesn't work in quirks mode."); }); -var GRt = function(e, r) { +var HRt = function(e, r) { var n = JN(e, r).toMarkup(); return n; -}, XRt = function(e, r) { +}, ZRt = function(e, r) { var n = new PN(r); return KN(e, n); }, Yfe = function(e, r, n) { @@ -64608,28 +64614,28 @@ var GRt = function(e, r) { var n = new PN(r); try { var i = KN(e, n); - return nRt(i, e, n); + return sRt(i, e, n); } catch (s) { return Yfe(s, e, n); } -}, HRt = function(e, r) { +}, jRt = function(e, r) { var n = new PN(r); try { var i = KN(e, n); - return iRt(i, e, n); + return aRt(i, e, n); } catch (s) { return Yfe(s, e, n); } -}, ZRt = { +}, KRt = { version: "0.16.11", render: qfe, - renderToString: GRt, + renderToString: HRt, ParseError: Ot, SETTINGS_SCHEMA: I5, - __parse: XRt, + __parse: ZRt, __renderToDomTree: JN, - __renderToHTMLTree: HRt, - __setFontMetrics: ELt, + __renderToHTMLTree: jRt, + __setFontMetrics: ALt, __defineSymbol: z, __defineFunction: Nt, __defineMacro: ue, @@ -64642,20 +64648,20 @@ var GRt = function(e, r) { LineNode: ML } }; -const jRt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const JRt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - default: ZRt + default: KRt }, Symbol.toStringTag, { value: "Module" })); -var KRt = "[object Symbol]"; +var eMt = "[object Symbol]"; function G0(t) { - return typeof t == "symbol" || vl(t) && Mh(t) == KRt; + return typeof t == "symbol" || vl(t) && Mh(t) == eMt; } function Ef(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var JRt = 1 / 0, RW = gl ? gl.prototype : void 0, MW = RW ? RW.toString : void 0; +var tMt = 1 / 0, RW = gl ? gl.prototype : void 0, MW = RW ? RW.toString : void 0; function Wfe(t) { if (typeof t == "string") return t; @@ -64664,20 +64670,20 @@ function Wfe(t) { if (G0(t)) return MW ? MW.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -JRt ? "-0" : e; + return e == "0" && 1 / t == -tMt ? "-0" : e; } -var eMt = /\s/; -function tMt(t) { - for (var e = t.length; e-- && eMt.test(t.charAt(e)); ) +var rMt = /\s/; +function nMt(t) { + for (var e = t.length; e-- && rMt.test(t.charAt(e)); ) ; return e; } -var rMt = /^\s+/; -function nMt(t) { - return t && t.slice(0, tMt(t) + 1).replace(rMt, ""); +var iMt = /^\s+/; +function sMt(t) { + return t && t.slice(0, nMt(t) + 1).replace(iMt, ""); } -var DW = 0 / 0, iMt = /^[-+]0x[0-9a-f]+$/i, sMt = /^0b[01]+$/i, aMt = /^0o[0-7]+$/i, oMt = parseInt; -function lMt(t) { +var DW = 0 / 0, aMt = /^[-+]0x[0-9a-f]+$/i, oMt = /^0b[01]+$/i, lMt = /^0o[0-7]+$/i, cMt = parseInt; +function uMt(t) { if (typeof t == "number") return t; if (G0(t)) @@ -64688,17 +64694,17 @@ function lMt(t) { } if (typeof t != "string") return t === 0 ? t : +t; - t = nMt(t); - var r = sMt.test(t); - return r || aMt.test(t) ? oMt(t.slice(2), r ? 2 : 8) : iMt.test(t) ? DW : +t; + t = sMt(t); + var r = oMt.test(t); + return r || lMt.test(t) ? cMt(t.slice(2), r ? 2 : 8) : aMt.test(t) ? DW : +t; } -var PW = 1 / 0, cMt = 17976931348623157e292; +var PW = 1 / 0, hMt = 17976931348623157e292; function B5(t) { if (!t) return t === 0 ? t : 0; - if (t = lMt(t), t === PW || t === -PW) { + if (t = uMt(t), t === PW || t === -PW) { var e = t < 0 ? -1 : 1; - return e * cMt; + return e * hMt; } return t === t ? t : 0; } @@ -64719,17 +64725,17 @@ function Xfe(t, e, r, n) { return s; return -1; } -function uMt(t) { +function fMt(t) { return t !== t; } -function hMt(t, e, r) { +function dMt(t, e, r) { for (var n = r - 1, i = t.length; ++n < i; ) if (t[n] === e) return n; return -1; } function eI(t, e, r) { - return e === e ? hMt(t, e, r) : Xfe(t, uMt, r); + return e === e ? dMt(t, e, r) : Xfe(t, fMt, r); } function Hfe(t, e) { var r = t == null ? 0 : t.length; @@ -64738,48 +64744,48 @@ function Hfe(t, e) { function Bi(t) { return wu(t) ? Noe(t) : Kle(t); } -var fMt = Object.prototype, dMt = fMt.hasOwnProperty, pMt = Foe(function(t, e) { +var pMt = Object.prototype, gMt = pMt.hasOwnProperty, mMt = Foe(function(t, e) { if (iw(e) || wu(e)) { B1(e, Bi(e), t); return; } for (var r in e) - dMt.call(e, r) && sw(t, r, e[r]); + gMt.call(e, r) && sw(t, r, e[r]); }); -const Po = pMt; -var gMt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, mMt = /^\w*$/; +const Po = mMt; +var vMt = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, yMt = /^\w*$/; function tI(t, e) { if (Pr(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || G0(t) ? !0 : mMt.test(t) || !gMt.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || G0(t) ? !0 : yMt.test(t) || !vMt.test(t) || e != null && t in Object(e); } -var vMt = 500; -function yMt(t) { +var bMt = 500; +function xMt(t) { var e = I1(t, function(n) { - return r.size === vMt && r.clear(), n; + return r.size === bMt && r.clear(), n; }), r = e.cache; return e; } -var bMt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, xMt = /\\(\\)?/g, wMt = yMt(function(t) { +var wMt = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, OMt = /\\(\\)?/g, kMt = xMt(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace(bMt, function(r, n, i, s) { - e.push(i ? s.replace(xMt, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(wMt, function(r, n, i, s) { + e.push(i ? s.replace(OMt, "$1") : n || r); }), e; }); -const OMt = wMt; +const SMt = kMt; function Zfe(t) { return t == null ? "" : Wfe(t); } function jC(t, e) { - return Pr(t) ? t : tI(t, e) ? [t] : OMt(Zfe(t)); + return Pr(t) ? t : tI(t, e) ? [t] : SMt(Zfe(t)); } -var kMt = 1 / 0; +var TMt = 1 / 0; function bw(t) { if (typeof t == "string" || G0(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -kMt ? "-0" : e; + return e == "0" && 1 / t == -TMt ? "-0" : e; } function KC(t, e) { e = jC(e, t); @@ -64787,7 +64793,7 @@ function KC(t, e) { t = t[bw(e[r++])]; return r && r == n ? t : void 0; } -function SMt(t, e, r) { +function CMt(t, e, r) { var n = t == null ? void 0 : KC(t, e); return n === void 0 ? r : n; } @@ -64797,12 +64803,12 @@ function rI(t, e) { return t; } var NW = gl ? gl.isConcatSpreadable : void 0; -function TMt(t) { +function EMt(t) { return Pr(t) || Im(t) || !!(NW && t && t[NW]); } function U1(t, e, r, n, i) { var s = -1, a = t.length; - for (r || (r = TMt), i || (i = []); ++s < a; ) { + for (r || (r = EMt), i || (i = []); ++s < a; ) { var o = t[s]; e > 0 && r(o) ? e > 1 ? U1(o, e - 1, r, n, i) : rI(i, o) : n || (i[i.length] = o); } @@ -64812,7 +64818,7 @@ function is(t) { var e = t == null ? 0 : t.length; return e ? U1(t, 1) : []; } -function CMt(t) { +function _Mt(t) { return Boe($oe(t, void 0, is), t + ""); } function jfe(t, e, r) { @@ -64822,16 +64828,16 @@ function jfe(t, e, r) { s[n] = t[n + e]; return s; } -function EMt(t, e, r, n) { +function AMt(t, e, r, n) { var i = -1, s = t == null ? 0 : t.length; for (n && s && (r = t[++i]); ++i < s; ) r = e(r, t[i], i, t); return r; } -function _Mt(t, e) { +function LMt(t, e) { return t && B1(e, Bi(e), t); } -function AMt(t, e) { +function RMt(t, e) { return t && B1(e, Tp(e), t); } function nI(t, e) { @@ -64844,22 +64850,22 @@ function nI(t, e) { function Kfe() { return []; } -var LMt = Object.prototype, RMt = LMt.propertyIsEnumerable, IW = Object.getOwnPropertySymbols, MMt = IW ? function(t) { +var MMt = Object.prototype, DMt = MMt.propertyIsEnumerable, IW = Object.getOwnPropertySymbols, PMt = IW ? function(t) { return t == null ? [] : (t = Object(t), nI(IW(t), function(e) { - return RMt.call(t, e); + return DMt.call(t, e); })); } : Kfe; -const iI = MMt; -function DMt(t, e) { +const iI = PMt; +function NMt(t, e) { return B1(t, iI(t), e); } -var PMt = Object.getOwnPropertySymbols, NMt = PMt ? function(t) { +var IMt = Object.getOwnPropertySymbols, $Mt = IMt ? function(t) { for (var e = []; t; ) rI(e, iI(t)), t = tN(t); return e; } : Kfe; -const Jfe = NMt; -function IMt(t, e) { +const Jfe = $Mt; +function BMt(t, e) { return B1(t, Jfe(t), e); } function ede(t, e, r) { @@ -64872,37 +64878,35 @@ function FL(t) { function tde(t) { return ede(t, Tp, Jfe); } -var $Mt = Object.prototype, BMt = $Mt.hasOwnProperty; -function FMt(t) { +var FMt = Object.prototype, zMt = FMt.hasOwnProperty; +function QMt(t) { var e = t.length, r = new t.constructor(e); - return e && typeof t[0] == "string" && BMt.call(t, "index") && (r.index = t.index, r.input = t.input), r; + return e && typeof t[0] == "string" && zMt.call(t, "index") && (r.index = t.index, r.input = t.input), r; } -function zMt(t, e) { +function UMt(t, e) { var r = e ? eN(t.buffer) : t.buffer; return new t.constructor(r, t.byteOffset, t.byteLength); } -var QMt = /\w*$/; -function UMt(t) { - var e = new t.constructor(t.source, QMt.exec(t)); +var VMt = /\w*$/; +function qMt(t) { + var e = new t.constructor(t.source, VMt.exec(t)); return e.lastIndex = t.lastIndex, e; } var $W = gl ? gl.prototype : void 0, BW = $W ? $W.valueOf : void 0; -function VMt(t) { +function YMt(t) { return BW ? Object(BW.call(t)) : {}; } -var qMt = "[object Boolean]", YMt = "[object Date]", WMt = "[object Map]", GMt = "[object Number]", XMt = "[object RegExp]", HMt = "[object Set]", ZMt = "[object String]", jMt = "[object Symbol]", KMt = "[object ArrayBuffer]", JMt = "[object DataView]", eDt = "[object Float32Array]", tDt = "[object Float64Array]", rDt = "[object Int8Array]", nDt = "[object Int16Array]", iDt = "[object Int32Array]", sDt = "[object Uint8Array]", aDt = "[object Uint8ClampedArray]", oDt = "[object Uint16Array]", lDt = "[object Uint32Array]"; -function cDt(t, e, r) { +var WMt = "[object Boolean]", GMt = "[object Date]", XMt = "[object Map]", HMt = "[object Number]", ZMt = "[object RegExp]", jMt = "[object Set]", KMt = "[object String]", JMt = "[object Symbol]", eDt = "[object ArrayBuffer]", tDt = "[object DataView]", rDt = "[object Float32Array]", nDt = "[object Float64Array]", iDt = "[object Int8Array]", sDt = "[object Int16Array]", aDt = "[object Int32Array]", oDt = "[object Uint8Array]", lDt = "[object Uint8ClampedArray]", cDt = "[object Uint16Array]", uDt = "[object Uint32Array]"; +function hDt(t, e, r) { var n = t.constructor; switch (e) { - case KMt: + case eDt: return eN(t); - case qMt: - case YMt: + case WMt: + case GMt: return new n(+t); - case JMt: - return zMt(t, r); - case eDt: case tDt: + return UMt(t, r); case rDt: case nDt: case iDt: @@ -64910,65 +64914,67 @@ function cDt(t, e, r) { case aDt: case oDt: case lDt: + case cDt: + case uDt: return Eoe(t, r); - case WMt: - return new n(); - case GMt: - case ZMt: - return new n(t); case XMt: - return UMt(t); - case HMt: return new n(); + case HMt: + case KMt: + return new n(t); + case ZMt: + return qMt(t); case jMt: - return VMt(t); + return new n(); + case JMt: + return YMt(t); } } -var uDt = "[object Map]"; -function hDt(t) { - return vl(t) && zm(t) == uDt; +var fDt = "[object Map]"; +function dDt(t) { + return vl(t) && zm(t) == fDt; } -var FW = Xf && Xf.isMap, fDt = FW ? $1(FW) : hDt; -const dDt = fDt; -var pDt = "[object Set]"; -function gDt(t) { - return vl(t) && zm(t) == pDt; +var FW = Xf && Xf.isMap, pDt = FW ? $1(FW) : dDt; +const gDt = pDt; +var mDt = "[object Set]"; +function vDt(t) { + return vl(t) && zm(t) == mDt; } -var zW = Xf && Xf.isSet, mDt = zW ? $1(zW) : gDt; -const vDt = mDt; -var yDt = 1, bDt = 2, xDt = 4, rde = "[object Arguments]", wDt = "[object Array]", ODt = "[object Boolean]", kDt = "[object Date]", SDt = "[object Error]", nde = "[object Function]", TDt = "[object GeneratorFunction]", CDt = "[object Map]", EDt = "[object Number]", ide = "[object Object]", _Dt = "[object RegExp]", ADt = "[object Set]", LDt = "[object String]", RDt = "[object Symbol]", MDt = "[object WeakMap]", DDt = "[object ArrayBuffer]", PDt = "[object DataView]", NDt = "[object Float32Array]", IDt = "[object Float64Array]", $Dt = "[object Int8Array]", BDt = "[object Int16Array]", FDt = "[object Int32Array]", zDt = "[object Uint8Array]", QDt = "[object Uint8ClampedArray]", UDt = "[object Uint16Array]", VDt = "[object Uint32Array]", On = {}; -On[rde] = On[wDt] = On[DDt] = On[PDt] = On[ODt] = On[kDt] = On[NDt] = On[IDt] = On[$Dt] = On[BDt] = On[FDt] = On[CDt] = On[EDt] = On[ide] = On[_Dt] = On[ADt] = On[LDt] = On[RDt] = On[zDt] = On[QDt] = On[UDt] = On[VDt] = !0; -On[SDt] = On[nde] = On[MDt] = !1; +var zW = Xf && Xf.isSet, yDt = zW ? $1(zW) : vDt; +const bDt = yDt; +var xDt = 1, wDt = 2, ODt = 4, rde = "[object Arguments]", kDt = "[object Array]", SDt = "[object Boolean]", TDt = "[object Date]", CDt = "[object Error]", nde = "[object Function]", EDt = "[object GeneratorFunction]", _Dt = "[object Map]", ADt = "[object Number]", ide = "[object Object]", LDt = "[object RegExp]", RDt = "[object Set]", MDt = "[object String]", DDt = "[object Symbol]", PDt = "[object WeakMap]", NDt = "[object ArrayBuffer]", IDt = "[object DataView]", $Dt = "[object Float32Array]", BDt = "[object Float64Array]", FDt = "[object Int8Array]", zDt = "[object Int16Array]", QDt = "[object Int32Array]", UDt = "[object Uint8Array]", VDt = "[object Uint8ClampedArray]", qDt = "[object Uint16Array]", YDt = "[object Uint32Array]", On = {}; +On[rde] = On[kDt] = On[NDt] = On[IDt] = On[SDt] = On[TDt] = On[$Dt] = On[BDt] = On[FDt] = On[zDt] = On[QDt] = On[_Dt] = On[ADt] = On[ide] = On[LDt] = On[RDt] = On[MDt] = On[DDt] = On[UDt] = On[VDt] = On[qDt] = On[YDt] = !0; +On[CDt] = On[nde] = On[PDt] = !1; function t2(t, e, r, n, i, s) { - var a, o = e & yDt, l = e & bDt, u = e & xDt; + var a, o = e & xDt, l = e & wDt, u = e & ODt; if (r && (a = i ? r(t, n, i, s) : r(t)), a !== void 0) return a; if (!so(t)) return t; var h = Pr(t); if (h) { - if (a = FMt(t), !o) + if (a = QMt(t), !o) return _oe(t, a); } else { - var f = zm(t), d = f == nde || f == TDt; + var f = zm(t), d = f == nde || f == EDt; if ($m(t)) return Coe(t, o); if (f == ide || f == rde || d && !i) { if (a = l || d ? {} : Loe(t), !o) - return l ? IMt(t, AMt(a, t)) : DMt(t, _Mt(a, t)); + return l ? BMt(t, RMt(a, t)) : NMt(t, LMt(a, t)); } else { if (!On[f]) return i ? t : {}; - a = cDt(t, f, o); + a = hDt(t, f, o); } } s || (s = new Yl()); var p = s.get(t); if (p) return p; - s.set(t, a), vDt(t) ? t.forEach(function(v) { + s.set(t, a), bDt(t) ? t.forEach(function(v) { a.add(t2(v, e, r, v, t, s)); - }) : dDt(t) && t.forEach(function(v, y) { + }) : gDt(t) && t.forEach(function(v, y) { a.set(y, t2(v, e, r, y, t, s)); }); var g = u ? l ? tde : FL : l ? Tp : Bi, m = h ? void 0 : g(t); @@ -64976,13 +64982,13 @@ function t2(t, e, r, n, i, s) { m && (y = v, v = t[y]), sw(a, y, t2(v, e, r, y, t, s)); }), a; } -var qDt = 4; +var WDt = 4; function Xi(t) { - return t2(t, qDt); + return t2(t, WDt); } -var YDt = 1, WDt = 4; -function GDt(t) { - return t2(t, YDt | WDt); +var GDt = 1, XDt = 4; +function HDt(t) { + return t2(t, GDt | XDt); } function xw(t) { for (var e = -1, r = t == null ? 0 : t.length, n = 0, i = []; ++e < r; ) { @@ -64991,11 +64997,11 @@ function xw(t) { } return i; } -var XDt = "__lodash_hash_undefined__"; -function HDt(t) { - return this.__data__.set(t, XDt), this; +var ZDt = "__lodash_hash_undefined__"; +function jDt(t) { + return this.__data__.set(t, ZDt), this; } -function ZDt(t) { +function KDt(t) { return this.__data__.has(t); } function Gm(t) { @@ -65003,8 +65009,8 @@ function Gm(t) { for (this.__data__ = new Ph(); ++e < r; ) this.add(t[e]); } -Gm.prototype.add = Gm.prototype.push = HDt; -Gm.prototype.has = ZDt; +Gm.prototype.add = Gm.prototype.push = jDt; +Gm.prototype.has = KDt; function sde(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (e(t[r], r, t)) @@ -65014,15 +65020,15 @@ function sde(t, e) { function sI(t, e) { return t.has(e); } -var jDt = 1, KDt = 2; +var JDt = 1, ePt = 2; function ade(t, e, r, n, i, s) { - var a = r & jDt, o = t.length, l = e.length; + var a = r & JDt, o = t.length, l = e.length; if (o != l && !(a && l > o)) return !1; var u = s.get(t), h = s.get(e); if (u && h) return u == e && h == t; - var f = -1, d = !0, p = r & KDt ? new Gm() : void 0; + var f = -1, d = !0, p = r & ePt ? new Gm() : void 0; for (s.set(t, e), s.set(e, t); ++f < o; ) { var g = t[f], m = e[f]; if (n) @@ -65048,7 +65054,7 @@ function ade(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), d; } -function JDt(t) { +function tPt(t) { var e = -1, r = Array(t.size); return t.forEach(function(n, i) { r[++e] = [i, n]; @@ -65060,50 +65066,50 @@ function aI(t) { r[++e] = n; }), r; } -var ePt = 1, tPt = 2, rPt = "[object Boolean]", nPt = "[object Date]", iPt = "[object Error]", sPt = "[object Map]", aPt = "[object Number]", oPt = "[object RegExp]", lPt = "[object Set]", cPt = "[object String]", uPt = "[object Symbol]", hPt = "[object ArrayBuffer]", fPt = "[object DataView]", QW = gl ? gl.prototype : void 0, _A = QW ? QW.valueOf : void 0; -function dPt(t, e, r, n, i, s, a) { +var rPt = 1, nPt = 2, iPt = "[object Boolean]", sPt = "[object Date]", aPt = "[object Error]", oPt = "[object Map]", lPt = "[object Number]", cPt = "[object RegExp]", uPt = "[object Set]", hPt = "[object String]", fPt = "[object Symbol]", dPt = "[object ArrayBuffer]", pPt = "[object DataView]", QW = gl ? gl.prototype : void 0, _A = QW ? QW.valueOf : void 0; +function gPt(t, e, r, n, i, s, a) { switch (r) { - case fPt: + case pPt: if (t.byteLength != e.byteLength || t.byteOffset != e.byteOffset) return !1; t = t.buffer, e = e.buffer; - case hPt: + case dPt: return !(t.byteLength != e.byteLength || !s(new D3(t), new D3(e))); - case rPt: - case nPt: - case aPt: - return N1(+t, +e); case iPt: + case sPt: + case lPt: + return N1(+t, +e); + case aPt: return t.name == e.name && t.message == e.message; - case oPt: case cPt: + case hPt: return t == e + ""; - case sPt: - var o = JDt; - case lPt: - var l = n & ePt; + case oPt: + var o = tPt; + case uPt: + var l = n & rPt; if (o || (o = aI), t.size != e.size && !l) return !1; var u = a.get(t); if (u) return u == e; - n |= tPt, a.set(t, e); + n |= nPt, a.set(t, e); var h = ade(o(t), o(e), n, i, s, a); return a.delete(t), h; - case uPt: + case fPt: if (_A) return _A.call(t) == _A.call(e); } return !1; } -var pPt = 1, gPt = Object.prototype, mPt = gPt.hasOwnProperty; -function vPt(t, e, r, n, i, s) { - var a = r & pPt, o = FL(t), l = o.length, u = FL(e), h = u.length; +var mPt = 1, vPt = Object.prototype, yPt = vPt.hasOwnProperty; +function bPt(t, e, r, n, i, s) { + var a = r & mPt, o = FL(t), l = o.length, u = FL(e), h = u.length; if (l != h && !a) return !1; for (var f = l; f--; ) { var d = o[f]; - if (!(a ? d in e : mPt.call(e, d))) + if (!(a ? d in e : yPt.call(e, d))) return !1; } var p = s.get(t), g = s.get(e); @@ -65128,8 +65134,8 @@ function vPt(t, e, r, n, i, s) { } return s.delete(t), s.delete(e), m; } -var yPt = 1, UW = "[object Arguments]", VW = "[object Array]", g4 = "[object Object]", bPt = Object.prototype, qW = bPt.hasOwnProperty; -function xPt(t, e, r, n, i, s) { +var xPt = 1, UW = "[object Arguments]", VW = "[object Array]", g4 = "[object Object]", wPt = Object.prototype, qW = wPt.hasOwnProperty; +function OPt(t, e, r, n, i, s) { var a = Pr(t), o = Pr(e), l = a ? VW : zm(t), u = o ? VW : zm(e); l = l == UW ? g4 : l, u = u == UW ? g4 : u; var h = l == g4, f = u == g4, d = l == u; @@ -65139,21 +65145,21 @@ function xPt(t, e, r, n, i, s) { a = !0, h = !1; } if (d && !h) - return s || (s = new Yl()), a || DC(t) ? ade(t, e, r, n, i, s) : dPt(t, e, l, r, n, i, s); - if (!(r & yPt)) { + return s || (s = new Yl()), a || DC(t) ? ade(t, e, r, n, i, s) : gPt(t, e, l, r, n, i, s); + if (!(r & xPt)) { var p = h && qW.call(t, "__wrapped__"), g = f && qW.call(e, "__wrapped__"); if (p || g) { var m = p ? t.value() : t, v = g ? e.value() : e; return s || (s = new Yl()), i(m, v, r, n, s); } } - return d ? (s || (s = new Yl()), vPt(t, e, r, n, i, s)) : !1; + return d ? (s || (s = new Yl()), bPt(t, e, r, n, i, s)) : !1; } function oI(t, e, r, n, i) { - return t === e ? !0 : t == null || e == null || !vl(t) && !vl(e) ? t !== t && e !== e : xPt(t, e, r, n, oI, i); + return t === e ? !0 : t == null || e == null || !vl(t) && !vl(e) ? t !== t && e !== e : OPt(t, e, r, n, oI, i); } -var wPt = 1, OPt = 2; -function kPt(t, e, r, n) { +var kPt = 1, SPt = 2; +function TPt(t, e, r, n) { var i = r.length, s = i, a = !n; if (t == null) return !s; @@ -65172,7 +65178,7 @@ function kPt(t, e, r, n) { var f = new Yl(); if (n) var d = n(u, h, l, t, e, f); - if (!(d === void 0 ? oI(h, u, wPt | OPt, n, f) : d)) + if (!(d === void 0 ? oI(h, u, kPt | SPt, n, f) : d)) return !1; } } @@ -65181,7 +65187,7 @@ function kPt(t, e, r, n) { function ode(t) { return t === t && !so(t); } -function SPt(t) { +function CPt(t) { for (var e = Bi(t), r = e.length; r--; ) { var n = e[r], i = t[n]; e[r] = [n, i, ode(i)]; @@ -65193,13 +65199,13 @@ function lde(t, e) { return r == null ? !1 : r[t] === e && (e !== void 0 || t in Object(r)); }; } -function TPt(t) { - var e = SPt(t); +function EPt(t) { + var e = CPt(t); return e.length == 1 && e[0][2] ? lde(e[0][0], e[0][1]) : function(r) { - return r === t || kPt(r, t, e); + return r === t || TPt(r, t, e); }; } -function CPt(t, e) { +function _Pt(t, e) { return t != null && e in Object(t); } function cde(t, e, r) { @@ -65213,32 +65219,32 @@ function cde(t, e, r) { return s || ++n != i ? s : (i = t == null ? 0 : t.length, !!i && rN(i) && PC(a, i) && (Pr(t) || Im(t))); } function ude(t, e) { - return t != null && cde(t, e, CPt); + return t != null && cde(t, e, _Pt); } -var EPt = 1, _Pt = 2; -function APt(t, e) { +var APt = 1, LPt = 2; +function RPt(t, e) { return tI(t) && ode(e) ? lde(bw(t), e) : function(r) { - var n = SMt(r, t); - return n === void 0 && n === e ? ude(r, t) : oI(e, n, EPt | _Pt); + var n = CMt(r, t); + return n === void 0 && n === e ? ude(r, t) : oI(e, n, APt | LPt); }; } -function LPt(t) { +function MPt(t) { return function(e) { return e == null ? void 0 : e[t]; }; } -function RPt(t) { +function DPt(t) { return function(e) { return KC(e, t); }; } -function MPt(t) { - return tI(t) ? LPt(bw(t)) : RPt(t); +function PPt(t) { + return tI(t) ? MPt(bw(t)) : DPt(t); } function fo(t) { - return typeof t == "function" ? t : t == null ? mh : typeof t == "object" ? Pr(t) ? APt(t[0], t[1]) : TPt(t) : MPt(t); + return typeof t == "function" ? t : t == null ? mh : typeof t == "object" ? Pr(t) ? RPt(t[0], t[1]) : EPt(t) : PPt(t); } -function DPt(t, e, r, n) { +function NPt(t, e, r, n) { for (var i = -1, s = t == null ? 0 : t.length; ++i < s; ) { var a = t[i]; e(n, a, r(a), t); @@ -65248,7 +65254,7 @@ function DPt(t, e, r, n) { function lI(t, e) { return t && JP(t, e, Bi); } -function PPt(t, e) { +function IPt(t, e) { return function(r, n) { if (r == null) return r; @@ -65259,46 +65265,46 @@ function PPt(t, e) { return r; }; } -var NPt = PPt(lI); -const Lp = NPt; -function IPt(t, e, r, n) { +var $Pt = IPt(lI); +const Lp = $Pt; +function BPt(t, e, r, n) { return Lp(t, function(i, s, a) { e(n, i, r(i), a); }), n; } -function $Pt(t, e) { +function FPt(t, e) { return function(r, n) { - var i = Pr(r) ? DPt : IPt, s = e ? e() : {}; + var i = Pr(r) ? NPt : BPt, s = e ? e() : {}; return i(r, t, fo(n), s); }; } -var BPt = function() { +var zPt = function() { return gc.Date.now(); }; -const YW = BPt; -var hde = Object.prototype, FPt = hde.hasOwnProperty, zPt = aw(function(t, e) { +const YW = zPt; +var hde = Object.prototype, QPt = hde.hasOwnProperty, UPt = aw(function(t, e) { t = Object(t); var r = -1, n = e.length, i = n > 2 ? e[2] : void 0; for (i && Q0(e[0], e[1], i) && (n = 1); ++r < n; ) for (var s = e[r], a = Tp(s), o = -1, l = a.length; ++o < l; ) { var u = a[o], h = t[u]; - (h === void 0 || N1(h, hde[u]) && !FPt.call(t, u)) && (t[u] = s[u]); + (h === void 0 || N1(h, hde[u]) && !QPt.call(t, u)) && (t[u] = s[u]); } return t; }); -const JC = zPt; +const JC = UPt; function fde(t, e, r) { for (var n = -1, i = t == null ? 0 : t.length; ++n < i; ) if (r(e, t[n])) return !0; return !1; } -var QPt = 200; -function UPt(t, e, r, n) { +var VPt = 200; +function qPt(t, e, r, n) { var i = -1, s = Hfe, a = !0, o = t.length, l = [], u = e.length; if (!o) return l; - r && (e = Ef(e, $1(r))), n ? (s = fde, a = !1) : e.length >= QPt && (s = sI, a = !1, e = new Gm(e)); + r && (e = Ef(e, $1(r))), n ? (s = fde, a = !1) : e.length >= VPt && (s = sI, a = !1, e = new Gm(e)); e: for (; ++i < o; ) { var h = t[i], f = r == null ? h : r(h); @@ -65312,10 +65318,10 @@ function UPt(t, e, r, n) { } return l; } -var VPt = aw(function(t, e) { - return P3(t) ? UPt(t, U1(e, 1, P3, !0)) : []; +var YPt = aw(function(t, e) { + return P3(t) ? qPt(t, U1(e, 1, P3, !0)) : []; }); -const eE = VPt; +const eE = YPt; function cu(t) { var e = t == null ? 0 : t.length; return e ? t[e - 1] : void 0; @@ -65335,20 +65341,20 @@ function Ve(t, e) { var r = Pr(t) ? Gfe : Lp; return r(t, cI(e)); } -function qPt(t, e) { +function WPt(t, e) { for (var r = -1, n = t == null ? 0 : t.length; ++r < n; ) if (!e(t[r], r, t)) return !1; return !0; } -function YPt(t, e) { +function GPt(t, e) { var r = !0; return Lp(t, function(n, i, s) { return r = !!e(n, i, s), r; }), r; } function Hl(t, e, r) { - var n = Pr(t) ? qPt : YPt; + var n = Pr(t) ? WPt : GPt; return r && Q0(t, e, r) && (e = void 0), n(t, fo(e)); } function dde(t, e) { @@ -65361,7 +65367,7 @@ function ni(t, e) { var r = Pr(t) ? nI : dde; return r(t, fo(e)); } -function WPt(t) { +function XPt(t) { return function(e, r, n) { var i = Object(e); if (!wu(e)) { @@ -65374,16 +65380,16 @@ function WPt(t) { return a > -1 ? i[s ? e[a] : a] : void 0; }; } -var GPt = Math.max; -function XPt(t, e, r) { +var HPt = Math.max; +function ZPt(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : yw(r); - return i < 0 && (i = GPt(n + i, 0)), Xfe(t, fo(e), i); + return i < 0 && (i = HPt(n + i, 0)), Xfe(t, fo(e), i); } -var HPt = WPt(XPt); -const wh = HPt; +var jPt = XPt(ZPt); +const wh = jPt; function oc(t) { return t && t.length ? t[0] : void 0; } @@ -65400,58 +65406,58 @@ function St(t, e) { function Lo(t, e) { return U1(St(t, e), 1); } -function ZPt(t, e) { +function KPt(t, e) { return t == null ? t : JP(t, cI(e), Tp); } -function jPt(t, e) { +function JPt(t, e) { return t && lI(t, cI(e)); } -var KPt = Object.prototype, JPt = KPt.hasOwnProperty, eNt = $Pt(function(t, e, r) { - JPt.call(t, r) ? t[r].push(e) : nw(t, r, [e]); +var eNt = Object.prototype, tNt = eNt.hasOwnProperty, rNt = FPt(function(t, e, r) { + tNt.call(t, r) ? t[r].push(e) : nw(t, r, [e]); }); -const tNt = eNt; -function rNt(t, e) { +const nNt = rNt; +function iNt(t, e) { return t > e; } -var nNt = Object.prototype, iNt = nNt.hasOwnProperty; -function sNt(t, e) { - return t != null && iNt.call(t, e); +var sNt = Object.prototype, aNt = sNt.hasOwnProperty; +function oNt(t, e) { + return t != null && aNt.call(t, e); } function _t(t, e) { - return t != null && cde(t, e, sNt); + return t != null && cde(t, e, oNt); } -var aNt = "[object String]"; +var lNt = "[object String]"; function ao(t) { - return typeof t == "string" || !Pr(t) && vl(t) && Mh(t) == aNt; + return typeof t == "string" || !Pr(t) && vl(t) && Mh(t) == lNt; } -function oNt(t, e) { +function cNt(t, e) { return Ef(e, function(r) { return t[r]; }); } function un(t) { - return t == null ? [] : oNt(t, Bi(t)); + return t == null ? [] : cNt(t, Bi(t)); } -var lNt = Math.max; +var uNt = Math.max; function $a(t, e, r, n) { t = wu(t) ? t : un(t), r = r && !n ? yw(r) : 0; var i = t.length; - return r < 0 && (r = lNt(i + r, 0)), ao(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && eI(t, e, r) > -1; + return r < 0 && (r = uNt(i + r, 0)), ao(t) ? r <= i && t.indexOf(e, r) > -1 : !!i && eI(t, e, r) > -1; } -var cNt = Math.max; +var hNt = Math.max; function WW(t, e, r) { var n = t == null ? 0 : t.length; if (!n) return -1; var i = r == null ? 0 : yw(r); - return i < 0 && (i = cNt(n + i, 0)), eI(t, e, i); + return i < 0 && (i = hNt(n + i, 0)), eI(t, e, i); } -var uNt = "[object RegExp]"; -function hNt(t) { - return vl(t) && Mh(t) == uNt; +var fNt = "[object RegExp]"; +function dNt(t) { + return vl(t) && Mh(t) == fNt; } -var GW = Xf && Xf.isRegExp, fNt = GW ? $1(GW) : hNt; -const Oh = fNt; +var GW = Xf && Xf.isRegExp, pNt = GW ? $1(GW) : dNt; +const Oh = pNt; function tn(t) { return t === void 0; } @@ -65473,7 +65479,7 @@ function uI(t, e, r) { return l; } function X0(t) { - return t && t.length ? uI(t, mh, rNt) : void 0; + return t && t.length ? uI(t, mh, iNt) : void 0; } function Xm(t) { return t && t.length ? uI(t, mh, gde) : void 0; @@ -65481,10 +65487,10 @@ function Xm(t) { function hI(t, e) { return t && t.length ? uI(t, fo(e), gde) : void 0; } -var dNt = "Expected a function"; -function pNt(t) { +var gNt = "Expected a function"; +function mNt(t) { if (typeof t != "function") - throw new TypeError(dNt); + throw new TypeError(gNt); return function() { var e = arguments; switch (e.length) { @@ -65500,7 +65506,7 @@ function pNt(t) { return !t.apply(this, e); }; } -function gNt(t, e, r, n) { +function vNt(t, e, r, n) { if (!so(t)) return t; e = jC(e, t); @@ -65519,7 +65525,7 @@ function gNt(t, e, r, n) { function mde(t, e, r) { for (var n = -1, i = e.length, s = {}; ++n < i; ) { var a = e[n], o = KC(t, a); - r(o, a) && gNt(s, jC(a, t), o); + r(o, a) && vNt(s, jC(a, t), o); } return s; } @@ -65533,13 +65539,13 @@ function vc(t, e) { return e(n, i[0]); }); } -function mNt(t, e) { +function yNt(t, e) { var r = t.length; for (t.sort(e); r--; ) t[r] = t[r].value; return t; } -function vNt(t, e) { +function bNt(t, e) { if (t !== e) { var r = t !== void 0, n = t === null, i = t === t, s = G0(t), a = e !== void 0, o = e === null, l = e === e, u = G0(e); if (!o && !u && !s && t > e || s && a && l && !o && !u || n && a && l || !r && l || !i) @@ -65549,9 +65555,9 @@ function vNt(t, e) { } return 0; } -function yNt(t, e, r) { +function xNt(t, e, r) { for (var n = -1, i = t.criteria, s = e.criteria, a = i.length, o = r.length; ++n < a; ) { - var l = vNt(i[n], s[n]); + var l = bNt(i[n], s[n]); if (l) { if (n >= o) return l; @@ -65561,7 +65567,7 @@ function yNt(t, e, r) { } return t.index - e.index; } -function bNt(t, e, r) { +function wNt(t, e, r) { e.length ? e = Ef(e, function(s) { return Pr(s) ? function(a) { return KC(a, s.length === 1 ? s[0] : s); @@ -65575,73 +65581,73 @@ function bNt(t, e, r) { }); return { criteria: l, index: ++n, value: s }; }); - return mNt(i, function(s, a) { - return yNt(s, a, r); + return yNt(i, function(s, a) { + return xNt(s, a, r); }); } -function xNt(t, e) { +function ONt(t, e) { return mde(t, e, function(r, n) { return ude(t, n); }); } -var wNt = CMt(function(t, e) { - return t == null ? {} : xNt(t, e); +var kNt = _Mt(function(t, e) { + return t == null ? {} : ONt(t, e); }); -const oS = wNt; -var ONt = Math.ceil, kNt = Math.max; -function SNt(t, e, r, n) { - for (var i = -1, s = kNt(ONt((e - t) / (r || 1)), 0), a = Array(s); s--; ) +const oS = kNt; +var SNt = Math.ceil, TNt = Math.max; +function CNt(t, e, r, n) { + for (var i = -1, s = TNt(SNt((e - t) / (r || 1)), 0), a = Array(s); s--; ) a[n ? s : ++i] = t, t += r; return a; } -function TNt(t) { +function ENt(t) { return function(e, r, n) { - return n && typeof n != "number" && Q0(e, r, n) && (r = n = void 0), e = B5(e), r === void 0 ? (r = e, e = 0) : r = B5(r), n = n === void 0 ? e < r ? 1 : -1 : B5(n), SNt(e, r, n, t); + return n && typeof n != "number" && Q0(e, r, n) && (r = n = void 0), e = B5(e), r === void 0 ? (r = e, e = 0) : r = B5(r), n = n === void 0 ? e < r ? 1 : -1 : B5(n), CNt(e, r, n, t); }; } -var CNt = TNt(); -const Hm = CNt; -function ENt(t, e, r, n, i) { +var _Nt = ENt(); +const Hm = _Nt; +function ANt(t, e, r, n, i) { return i(t, function(s, a, o) { r = n ? (n = !1, s) : e(r, s, a, o); }), r; } function Li(t, e, r) { - var n = Pr(t) ? EMt : ENt, i = arguments.length < 3; + var n = Pr(t) ? AMt : ANt, i = arguments.length < 3; return n(t, fo(e), r, i, Lp); } function rE(t, e) { var r = Pr(t) ? nI : dde; - return r(t, pNt(fo(e))); + return r(t, mNt(fo(e))); } -function _Nt(t, e) { +function LNt(t, e) { var r; return Lp(t, function(n, i, s) { return r = e(n, i, s), !r; }), !!r; } function vde(t, e, r) { - var n = Pr(t) ? sde : _Nt; + var n = Pr(t) ? sde : LNt; return r && Q0(t, e, r) && (e = void 0), n(t, fo(e)); } -var ANt = aw(function(t, e) { +var RNt = aw(function(t, e) { if (t == null) return []; var r = e.length; - return r > 1 && Q0(t, e[0], e[1]) ? e = [] : r > 2 && Q0(e[0], e[1], e[2]) && (e = [e[0]]), bNt(t, U1(e, 1), []); + return r > 1 && Q0(t, e[0], e[1]) ? e = [] : r > 2 && Q0(e[0], e[1], e[2]) && (e = [e[0]]), wNt(t, U1(e, 1), []); }); -const ww = ANt; -var LNt = 1 / 0, RNt = Vg && 1 / aI(new Vg([, -0]))[1] == LNt ? function(t) { +const ww = RNt; +var MNt = 1 / 0, DNt = Vg && 1 / aI(new Vg([, -0]))[1] == MNt ? function(t) { return new Vg(t); } : Mi; -const MNt = RNt; -var DNt = 200; +const PNt = DNt; +var NNt = 200; function fI(t, e, r) { var n = -1, i = Hfe, s = t.length, a = !0, o = [], l = o; if (r) a = !1, i = fde; - else if (s >= DNt) { - var u = e ? null : MNt(t); + else if (s >= NNt) { + var u = e ? null : PNt(t); if (u) return aI(u); a = !1, i = sI, l = new Gm(); @@ -65660,32 +65666,32 @@ function fI(t, e, r) { } return o; } -var PNt = aw(function(t) { +var INt = aw(function(t) { return fI(U1(t, 1, P3, !0)); }); -const NNt = PNt; +const $Nt = INt; function dI(t) { return t && t.length ? fI(t) : []; } -function INt(t, e) { +function BNt(t, e) { return t && t.length ? fI(t, fo(e)) : []; } -var $Nt = 0; +var FNt = 0; function pI(t) { - var e = ++$Nt; + var e = ++FNt; return Zfe(t) + e; } -function BNt(t, e, r) { +function zNt(t, e, r) { for (var n = -1, i = t.length, s = e.length, a = {}; ++n < i; ) { var o = n < s ? e[n] : void 0; r(a, t[n], o); } return a; } -function FNt(t, e) { - return BNt(t || [], e || [], sw); +function QNt(t, e) { + return zNt(t || [], e || [], sw); } -var zNt = "\0", Pd = "\0", XW = ""; +var UNt = "\0", Pd = "\0", XW = ""; class Ki { constructor(e = {}) { this._isDirected = _t(e, "directed") ? e.directed : !0, this._isMultigraph = _t(e, "multigraph") ? e.multigraph : !1, this._isCompound = _t(e, "compound") ? e.compound : !1, this._label = void 0, this._defaultNodeLabelFn = xg(void 0), this._defaultEdgeLabelFn = xg(void 0), this._nodes = {}, this._isCompound && (this._parent = {}, this._children = {}, this._children[Pd] = {}), this._in = {}, this._preds = {}, this._out = {}, this._sucs = {}, this._edgeObjs = {}, this._edgeLabels = {}; @@ -65802,7 +65808,7 @@ class Ki { neighbors(e) { var r = this.predecessors(e); if (r) - return NNt(r, this.successors(e)); + return $Nt(r, this.successors(e)); } isLeaf(e) { var r; @@ -65854,7 +65860,7 @@ class Ki { if (!tn(n) && !this._isMultigraph) throw new Error("Cannot set a named edge when isMultigraph = false"); this.setNode(e), this.setNode(r), this._edgeLabels[o] = s ? i : this._defaultEdgeLabelFn(e, r, n); - var l = QNt(this._isDirected, e, r, n); + var l = VNt(this._isDirected, e, r, n); return e = l.v, r = l.w, Object.freeze(l), this._edgeObjs[o] = l, HW(this._preds[r], e), HW(this._sucs[e], r), this._in[r][o] = l, this._out[e][o] = l, this._edgeCount++, this; } edge(e, r, n) { @@ -65907,9 +65913,9 @@ function py(t, e, r, n) { var a = i; i = s, s = a; } - return i + XW + s + XW + (tn(n) ? zNt : n); + return i + XW + s + XW + (tn(n) ? UNt : n); } -function QNt(t, e, r, n) { +function VNt(t, e, r, n) { var i = "" + e, s = "" + r; if (!t && i > s) { var a = i; @@ -65921,7 +65927,7 @@ function QNt(t, e, r, n) { function AA(t, e) { return py(t, e.v, e.w, e.name); } -class UNt { +class qNt { constructor() { var e = {}; e._next = e._prev = e, this._sentinel = e; @@ -65937,29 +65943,29 @@ class UNt { } toString() { for (var e = [], r = this._sentinel, n = r._prev; n !== r; ) - e.push(JSON.stringify(n, VNt)), n = n._prev; + e.push(JSON.stringify(n, YNt)), n = n._prev; return "[" + e.join(", ") + "]"; } } function jW(t) { t._prev._next = t._next, t._next._prev = t._prev, delete t._next, delete t._prev; } -function VNt(t, e) { +function YNt(t, e) { if (t !== "_next" && t !== "_prev") return e; } -var qNt = xg(1); -function YNt(t, e) { +var WNt = xg(1); +function GNt(t, e) { if (t.nodeCount() <= 1) return []; - var r = GNt(t, e || qNt), n = WNt(r.graph, r.buckets, r.zeroIdx); + var r = HNt(t, e || WNt), n = XNt(r.graph, r.buckets, r.zeroIdx); return is( St(n, function(i) { return t.outEdges(i.v, i.w); }) ); } -function WNt(t, e, r) { +function XNt(t, e, r) { for (var n = [], i = e[e.length - 1], s = e[0], a; t.nodeCount(); ) { for (; a = s.dequeue(); ) LA(t, e, r, a); @@ -65985,7 +65991,7 @@ function LA(t, e, r, n, i) { u.in -= o, zL(e, r, u); }), t.removeNode(n.v), s; } -function GNt(t, e) { +function HNt(t, e) { var r = new Ki(), n = 0, i = 0; Ve(t.nodes(), function(o) { r.setNode(o, { v: o, in: 0, out: 0 }); @@ -65994,7 +66000,7 @@ function GNt(t, e) { r.setEdge(o.v, o.w, h), i = Math.max(i, r.node(o.v).out += u), n = Math.max(n, r.node(o.w).in += u); }); var s = Hm(i + n + 3).map(function() { - return new UNt(); + return new qNt(); }), a = n + 1; return Ve(r.nodes(), function(o) { zL(s, a, r.node(o)); @@ -66003,8 +66009,8 @@ function GNt(t, e) { function zL(t, e, r) { r.out ? r.in ? t[r.out - r.in + e].enqueue(r) : t[t.length - 1].enqueue(r) : t[0].enqueue(r); } -function XNt(t) { - var e = t.graph().acyclicer === "greedy" ? YNt(t, r(t)) : HNt(t); +function ZNt(t) { + var e = t.graph().acyclicer === "greedy" ? GNt(t, r(t)) : jNt(t); Ve(e, function(n) { var i = t.edge(n); t.removeEdge(n), i.forwardName = n.name, i.reversed = !0, t.setEdge(n.w, n.v, i, pI("rev")); @@ -66015,7 +66021,7 @@ function XNt(t) { }; } } -function HNt(t) { +function jNt(t) { var e = [], r = {}, n = {}; function i(s) { _t(n, s) || (n[s] = !0, r[s] = !0, Ve(t.outEdges(s), function(a) { @@ -66024,7 +66030,7 @@ function HNt(t) { } return Ve(t.nodes(), i), e; } -function ZNt(t) { +function KNt(t) { Ve(t.edges(), function(e) { var r = t.edge(e); if (r.reversed) { @@ -66041,7 +66047,7 @@ function V1(t, e, r, n) { while (t.hasNode(i)); return r.dummy = e, t.setNode(i, r), i; } -function jNt(t) { +function JNt(t) { var e = new Ki().setGraph(t.graph()); return Ve(t.nodes(), function(r) { e.setNode(r, t.node(r)); @@ -66077,7 +66083,7 @@ function nE(t) { tn(i) || (e[i][n.order] = r); }), e; } -function KNt(t) { +function eIt(t) { var e = Xm( St(t.nodes(), function(r) { return t.node(r).rank; @@ -66088,7 +66094,7 @@ function KNt(t) { _t(n, "rank") && (n.rank -= e); }); } -function JNt(t) { +function tIt(t) { var e = Xm( St(t.nodes(), function(s) { return t.node(s).rank; @@ -66121,13 +66127,13 @@ function bde(t) { }) ); } -function eIt(t, e) { +function rIt(t, e) { var r = { lhs: [], rhs: [] }; return Ve(t, function(n) { e(n) ? r.lhs.push(n) : r.rhs.push(n); }), r; } -function tIt(t, e) { +function nIt(t, e) { var r = YW(); try { return e(); @@ -66135,10 +66141,10 @@ function tIt(t, e) { console.log(t + " time: " + (YW() - r) + "ms"); } } -function rIt(t, e) { +function iIt(t, e) { return e(); } -function nIt(t) { +function sIt(t) { function e(r) { var n = t.children(r), i = t.node(r); if (n.length && Ve(n, e), _t(i, "minRank")) { @@ -66153,13 +66159,13 @@ function eG(t, e, r, n, i, s) { var a = { width: 0, height: 0, rank: s, borderType: e }, o = i[e][s - 1], l = V1(t, "border", a, r); i[e][s] = l, t.setParent(l, n), o && t.setEdge(o, l, { weight: 1 }); } -function iIt(t) { +function aIt(t) { var e = t.graph().rankdir.toLowerCase(); (e === "lr" || e === "rl") && xde(t); } -function sIt(t) { +function oIt(t) { var e = t.graph().rankdir.toLowerCase(); - (e === "bt" || e === "rl") && aIt(t), (e === "lr" || e === "rl") && (oIt(t), xde(t)); + (e === "bt" || e === "rl") && lIt(t), (e === "lr" || e === "rl") && (cIt(t), xde(t)); } function xde(t) { Ve(t.nodes(), function(e) { @@ -66172,7 +66178,7 @@ function tG(t) { var e = t.width; t.width = t.height, t.height = e; } -function aIt(t) { +function lIt(t) { Ve(t.nodes(), function(e) { RA(t.node(e)); }), Ve(t.edges(), function(e) { @@ -66183,7 +66189,7 @@ function aIt(t) { function RA(t) { t.y = -t.y; } -function oIt(t) { +function cIt(t) { Ve(t.nodes(), function(e) { MA(t.node(e)); }), Ve(t.edges(), function(e) { @@ -66195,12 +66201,12 @@ function MA(t) { var e = t.x; t.x = t.y, t.y = e; } -function lIt(t) { +function uIt(t) { t.graph().dummyChains = [], Ve(t.edges(), function(e) { - cIt(t, e); + hIt(t, e); }); } -function cIt(t, e) { +function hIt(t, e) { var r = e.v, n = t.node(r).rank, i = e.w, s = t.node(i).rank, a = e.name, o = t.edge(e), l = o.labelRank; if (s !== n + 1) { t.removeEdge(e); @@ -66216,7 +66222,7 @@ function cIt(t, e) { t.setEdge(r, i, { weight: o.weight }, a); } } -function uIt(t) { +function fIt(t) { Ve(t.graph().dummyChains, function(e) { var r = t.node(e), n = r.edgeLabel, i; for (t.setEdge(r.edgeObj, n); r.dummy; ) @@ -66245,11 +66251,11 @@ function vb(t, e) { function wde(t) { var e = new Ki({ directed: !1 }), r = t.nodes()[0], n = t.nodeCount(); e.setNode(r, {}); - for (var i, s; hIt(e, t) < n; ) - i = fIt(e, t), s = e.hasNode(i.v) ? vb(t, i) : -vb(t, i), dIt(e, t, s); + for (var i, s; dIt(e, t) < n; ) + i = pIt(e, t), s = e.hasNode(i.v) ? vb(t, i) : -vb(t, i), gIt(e, t, s); return e; } -function hIt(t, e) { +function dIt(t, e) { function r(n) { Ve(e.nodeEdges(n), function(i) { var s = i.v, a = n === s ? i.w : s; @@ -66258,20 +66264,20 @@ function hIt(t, e) { } return Ve(t.nodes(), r), t.nodeCount(); } -function fIt(t, e) { +function pIt(t, e) { return hI(e.edges(), function(r) { if (t.hasNode(r.v) !== t.hasNode(r.w)) return vb(e, r); }); } -function dIt(t, e, r) { +function gIt(t, e, r) { Ve(t.nodes(), function(n) { e.node(n).rank += r; }); } -function pIt() { +function mIt() { } -pIt.prototype = new Error(); +mIt.prototype = new Error(); function Ode(t, e, r) { Pr(e) || (e = [e]); var n = (t.isDirected() ? t.successors : t.neighbors).bind(t), i = [], s = {}; @@ -66286,10 +66292,10 @@ function kde(t, e, r, n, i, s) { kde(t, a, r, n, i, s); }), r && s.push(e)); } -function gIt(t, e) { +function vIt(t, e) { return Ode(t, e, "post"); } -function mIt(t, e) { +function yIt(t, e) { return Ode(t, e, "pre"); } Rp.initLowLimValues = vI; @@ -66299,19 +66305,19 @@ Rp.leaveEdge = Cde; Rp.enterEdge = Ede; Rp.exchangeEdges = _de; function Rp(t) { - t = jNt(t), gI(t); + t = JNt(t), gI(t); var e = wde(t); vI(e), mI(e, t); for (var r, n; r = Cde(e); ) n = Ede(e, t, r), _de(e, t, r, n); } function mI(t, e) { - var r = gIt(t, t.nodes()); + var r = vIt(t, t.nodes()); r = r.slice(0, r.length - 1), Ve(r, function(n) { - vIt(t, e, n); + bIt(t, e, n); }); } -function vIt(t, e, r) { +function bIt(t, e, r) { var n = t.node(r), i = n.parent; t.edge(r, i).cutvalue = Sde(t, e, r); } @@ -66321,7 +66327,7 @@ function Sde(t, e, r) { var u = l.v === r, h = u ? l.w : l.v; if (h !== i) { var f = u === s, d = e.edge(l).weight; - if (o += f ? d : -d, bIt(t, r, h)) { + if (o += f ? d : -d, wIt(t, r, h)) { var p = t.edge(r, h).cutvalue; o += f ? -p : p; } @@ -66356,51 +66362,51 @@ function Ede(t, e, r) { } function _de(t, e, r, n) { var i = r.v, s = r.w; - t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), vI(t), mI(t, e), yIt(t, e); + t.removeEdge(i, s), t.setEdge(n.v, n.w, {}), vI(t), mI(t, e), xIt(t, e); } -function yIt(t, e) { +function xIt(t, e) { var r = wh(t.nodes(), function(i) { return !e.node(i).parent; - }), n = mIt(t, r); + }), n = yIt(t, r); n = n.slice(1), Ve(n, function(i) { var s = t.node(i).parent, a = e.edge(i, s), o = !1; a || (a = e.edge(s, i), o = !0), e.node(i).rank = e.node(s).rank + (o ? a.minlen : -a.minlen); }); } -function bIt(t, e, r) { +function wIt(t, e, r) { return t.hasEdge(e, r); } function rG(t, e, r) { return r.low <= e.lim && e.lim <= r.lim; } -function xIt(t) { +function OIt(t) { switch (t.graph().ranker) { case "network-simplex": nG(t); break; case "tight-tree": - OIt(t); + SIt(t); break; case "longest-path": - wIt(t); + kIt(t); break; default: nG(t); } } -var wIt = gI; -function OIt(t) { +var kIt = gI; +function SIt(t) { gI(t), wde(t); } function nG(t) { Rp(t); } -function kIt(t) { - var e = V1(t, "root", {}, "_root"), r = SIt(t), n = X0(un(r)) - 1, i = 2 * n + 1; +function TIt(t) { + var e = V1(t, "root", {}, "_root"), r = CIt(t), n = X0(un(r)) - 1, i = 2 * n + 1; t.graph().nestingRoot = e, Ve(t.edges(), function(a) { t.edge(a).minlen *= i; }); - var s = TIt(t) + 1; + var s = EIt(t) + 1; Ve(t.children(), function(a) { Ade(t, e, i, s, n, r, a); }), t.graph().nodeRankFactor = i; @@ -66426,7 +66432,7 @@ function Ade(t, e, r, n, i, s, a) { }); }), t.parent(a) || t.setEdge(e, l, { weight: 0, minlen: i + s[a] }); } -function SIt(t) { +function CIt(t) { var e = {}; function r(n, i) { var s = t.children(n); @@ -66438,7 +66444,7 @@ function SIt(t) { r(n, 1); }), e; } -function TIt(t) { +function EIt(t) { return Li( t.edges(), function(e, r) { @@ -66447,14 +66453,14 @@ function TIt(t) { 0 ); } -function CIt(t) { +function _It(t) { var e = t.graph(); t.removeNode(e.nestingRoot), delete e.nestingRoot, Ve(t.edges(), function(r) { var n = t.edge(r); n.nestingEdge && t.removeEdge(r); }); } -function EIt(t, e, r) { +function AIt(t, e, r) { var n = {}, i; Ve(r, function(s) { for (var a = t.parent(s), o, l; a; ) { @@ -66466,8 +66472,8 @@ function EIt(t, e, r) { } }); } -function _It(t, e, r) { - var n = AIt(t), i = new Ki({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { +function LIt(t, e, r) { + var n = RIt(t), i = new Ki({ compound: !0 }).setGraph({ root: n }).setDefaultNodeLabel(function(s) { return t.node(s); }); return Ve(t.nodes(), function(s) { @@ -66481,18 +66487,18 @@ function _It(t, e, r) { })); }), i; } -function AIt(t) { +function RIt(t) { for (var e; t.hasNode(e = pI("_root")); ) ; return e; } -function LIt(t, e) { +function MIt(t, e) { for (var r = 0, n = 1; n < e.length; ++n) - r += RIt(t, e[n - 1], e[n]); + r += DIt(t, e[n - 1], e[n]); return r; } -function RIt(t, e, r) { - for (var n = FNt( +function DIt(t, e, r) { + for (var n = QNt( r, St(r, function(u, h) { return h; @@ -66523,7 +66529,7 @@ function RIt(t, e, r) { }) ), l; } -function MIt(t) { +function PIt(t) { var e = {}, r = ni(t.nodes(), function(o) { return !t.children(o).length; }), n = X0( @@ -66545,7 +66551,7 @@ function MIt(t) { }); return Ve(a, s), i; } -function DIt(t, e) { +function NIt(t, e) { return St(e, function(r) { var n = t.inEdges(r); if (n.length) { @@ -66569,7 +66575,7 @@ function DIt(t, e) { return { v: r }; }); } -function PIt(t, e) { +function IIt(t, e) { var r = {}; Ve(t, function(i, s) { var a = r[i.v] = { @@ -66587,13 +66593,13 @@ function PIt(t, e) { var n = ni(r, function(i) { return !i.indegree; }); - return NIt(n); + return $It(n); } -function NIt(t) { +function $It(t) { var e = []; function r(s) { return function(a) { - a.merged || (tn(a.barycenter) || tn(s.barycenter) || a.barycenter >= s.barycenter) && IIt(s, a); + a.merged || (tn(a.barycenter) || tn(s.barycenter) || a.barycenter >= s.barycenter) && BIt(s, a); }; } function n(s) { @@ -66614,17 +66620,17 @@ function NIt(t) { } ); } -function IIt(t, e) { +function BIt(t, e) { var r = 0, n = 0; t.weight && (r += t.barycenter * t.weight, n += t.weight), e.weight && (r += e.barycenter * e.weight, n += e.weight), t.vs = e.vs.concat(t.vs), t.barycenter = r / n, t.weight = n, t.i = Math.min(e.i, t.i), e.merged = !0; } -function $It(t, e) { - var r = eIt(t, function(h) { +function FIt(t, e) { + var r = rIt(t, function(h) { return _t(h, "barycenter"); }), n = r.lhs, i = ww(r.rhs, function(h) { return -h.i; }), s = [], a = 0, o = 0, l = 0; - n.sort(BIt(!!e)), l = iG(s, i, l), Ve(n, function(h) { + n.sort(zIt(!!e)), l = iG(s, i, l), Ve(n, function(h) { l += h.vs.length, s.push(h.vs), a += h.barycenter * h.weight, o += h.weight, l = iG(s, i, l); }); var u = { vs: is(s) }; @@ -66635,7 +66641,7 @@ function iG(t, e, r) { e.pop(), t.push(n.vs), r++; return r; } -function BIt(t) { +function zIt(t) { return function(e, r) { return e.barycenter < r.barycenter ? -1 : e.barycenter > r.barycenter ? 1 : t ? r.i - e.i : e.i - r.i; }; @@ -66645,23 +66651,23 @@ function Lde(t, e, r, n) { a && (i = ni(i, function(g) { return g !== a && g !== o; })); - var u = DIt(t, i); + var u = NIt(t, i); Ve(u, function(g) { if (t.children(g.v).length) { var m = Lde(t, g.v, r, n); - l[g.v] = m, _t(m, "barycenter") && zIt(g, m); + l[g.v] = m, _t(m, "barycenter") && UIt(g, m); } }); - var h = PIt(u, r); - FIt(h, l); - var f = $It(h, n); + var h = IIt(u, r); + QIt(h, l); + var f = FIt(h, n); if (a && (f.vs = is([a, f.vs, o]), t.predecessors(a).length)) { var d = t.node(t.predecessors(a)[0]), p = t.node(t.predecessors(o)[0]); _t(f, "barycenter") || (f.barycenter = 0, f.weight = 0), f.barycenter = (f.barycenter * f.weight + d.order + p.order) / (f.weight + 2), f.weight += 2; } return f; } -function FIt(t, e) { +function QIt(t, e) { Ve(t, function(r) { r.vs = is( r.vs.map(function(n) { @@ -66670,31 +66676,31 @@ function FIt(t, e) { ); }); } -function zIt(t, e) { +function UIt(t, e) { tn(t.barycenter) ? (t.barycenter = e.barycenter, t.weight = e.weight) : (t.barycenter = (t.barycenter * t.weight + e.barycenter * e.weight) / (t.weight + e.weight), t.weight += e.weight); } -function QIt(t) { - var e = bde(t), r = sG(t, Hm(1, e + 1), "inEdges"), n = sG(t, Hm(e - 1, -1, -1), "outEdges"), i = MIt(t); +function VIt(t) { + var e = bde(t), r = sG(t, Hm(1, e + 1), "inEdges"), n = sG(t, Hm(e - 1, -1, -1), "outEdges"), i = PIt(t); aG(t, i); for (var s = Number.POSITIVE_INFINITY, a, o = 0, l = 0; l < 4; ++o, ++l) { - UIt(o % 2 ? r : n, o % 4 >= 2), i = nE(t); - var u = LIt(t, i); - u < s && (l = 0, a = GDt(i), s = u); + qIt(o % 2 ? r : n, o % 4 >= 2), i = nE(t); + var u = MIt(t, i); + u < s && (l = 0, a = HDt(i), s = u); } aG(t, a); } function sG(t, e, r) { return St(e, function(n) { - return _It(t, n, r); + return LIt(t, n, r); }); } -function UIt(t, e) { +function qIt(t, e) { var r = new Ki(); Ve(t, function(n) { var i = n.graph().root, s = Lde(n, i, r, e); Ve(s.vs, function(a, o) { n.node(a).order = o; - }), EIt(n, r, s.vs); + }), AIt(n, r, s.vs); }); } function aG(t, e) { @@ -66704,10 +66710,10 @@ function aG(t, e) { }); }); } -function VIt(t) { - var e = YIt(t); +function YIt(t) { + var e = GIt(t); Ve(t.graph().dummyChains, function(r) { - for (var n = t.node(r), i = n.edgeObj, s = qIt(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { + for (var n = t.node(r), i = n.edgeObj, s = WIt(t, e, i.v, i.w), a = s.path, o = s.lca, l = 0, u = a[l], h = !0; r !== i.w; ) { if (n = t.node(r), h) { for (; (u = a[l]) !== o && t.node(u).maxRank < n.rank; ) l++; @@ -66722,7 +66728,7 @@ function VIt(t) { } }); } -function qIt(t, e, r, n) { +function WIt(t, e, r, n) { var i = [], s = [], a = Math.min(e[r].low, e[n].low), o = Math.max(e[r].lim, e[n].lim), l, u; l = r; do @@ -66732,7 +66738,7 @@ function qIt(t, e, r, n) { s.push(l); return { path: i.concat(s.reverse()), lca: u }; } -function YIt(t) { +function GIt(t) { var e = {}, r = 0; function n(i) { var s = r; @@ -66740,12 +66746,12 @@ function YIt(t) { } return Ve(t.children(), n), e; } -function WIt(t, e) { +function XIt(t, e) { var r = {}; function n(i, s) { var a = 0, o = 0, l = i.length, u = cu(s); return Ve(s, function(h, f) { - var d = XIt(t, h), p = d ? t.node(d).order : l; + var d = ZIt(t, h), p = d ? t.node(d).order : l; (d || h === u) && (Ve(s.slice(o, f + 1), function(g) { Ve(t.predecessors(g), function(m) { var v = t.node(m), y = v.order; @@ -66756,7 +66762,7 @@ function WIt(t, e) { } return Li(e, n), r; } -function GIt(t, e) { +function HIt(t, e) { var r = {}; function n(s, a, o, l, u) { var h; @@ -66779,7 +66785,7 @@ function GIt(t, e) { } return Li(e, i), r; } -function XIt(t, e) { +function ZIt(t, e) { if (t.node(e).dummy) return wh(t.predecessors(e), function(r) { return t.node(r).dummy; @@ -66793,14 +66799,14 @@ function Rde(t, e, r) { var i = t[e]; i || (t[e] = i = {}), i[r] = !0; } -function HIt(t, e, r) { +function jIt(t, e, r) { if (e > r) { var n = e; e = r, r = n; } return _t(t[e], r); } -function ZIt(t, e, r, n) { +function KIt(t, e, r, n) { var i = {}, s = {}, a = {}; return Ve(e, function(o) { Ve(o, function(l, u) { @@ -66816,14 +66822,14 @@ function ZIt(t, e, r, n) { }); for (var f = (h.length - 1) / 2, d = Math.floor(f), p = Math.ceil(f); d <= p; ++d) { var g = h[d]; - s[u] === u && l < a[g] && !HIt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); + s[u] === u && l < a[g] && !jIt(r, u, g) && (s[g] = u, s[u] = i[u] = i[g], l = a[g]); } } }); }), { root: i, align: s }; } -function jIt(t, e, r, n, i) { - var s = {}, a = KIt(t, e, r, i), o = i ? "borderLeft" : "borderRight"; +function JIt(t, e, r, n, i) { + var s = {}, a = e$t(t, e, r, i), o = i ? "borderLeft" : "borderRight"; function l(f, d) { for (var p = a.nodes(), g = p.pop(), m = {}; g; ) m[g] ? f(g) : (m[g] = !0, p.push(g), p = p.concat(d(g))), g = p.pop(); @@ -66843,8 +66849,8 @@ function jIt(t, e, r, n, i) { s[f] = s[r[f]]; }), s; } -function KIt(t, e, r, n) { - var i = new Ki(), s = t.graph(), a = n$t(s.nodesep, s.edgesep, n); +function e$t(t, e, r, n) { + var i = new Ki(), s = t.graph(), a = s$t(s.nodesep, s.edgesep, n); return Ve(e, function(o) { var l; Ve(o, function(u) { @@ -66857,16 +66863,16 @@ function KIt(t, e, r, n) { }); }), i; } -function JIt(t, e) { +function t$t(t, e) { return hI(un(e), function(r) { var n = Number.NEGATIVE_INFINITY, i = Number.POSITIVE_INFINITY; - return ZPt(r, function(s, a) { - var o = i$t(t, a) / 2; + return KPt(r, function(s, a) { + var o = a$t(t, a) / 2; n = Math.max(s + o, n), i = Math.min(s - o, i); }), n - i; }); } -function e$t(t, e) { +function r$t(t, e) { var r = un(e), n = Xm(r), i = X0(r); Ve(["u", "d"], function(s) { Ve(["l", "r"], function(a) { @@ -66880,7 +66886,7 @@ function e$t(t, e) { }); }); } -function t$t(t, e) { +function n$t(t, e) { return tE(t.ul, function(r, n) { if (e) return t[e.toLowerCase()][n]; @@ -66888,23 +66894,23 @@ function t$t(t, e) { return (i[1] + i[2]) / 2; }); } -function r$t(t) { - var e = nE(t), r = N3(WIt(t, e), GIt(t, e)), n = {}, i; +function i$t(t) { + var e = nE(t), r = N3(XIt(t, e), HIt(t, e)), n = {}, i; Ve(["u", "d"], function(a) { i = a === "u" ? e : un(e).reverse(), Ve(["l", "r"], function(o) { o === "r" && (i = St(i, function(f) { return un(f).reverse(); })); - var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = ZIt(t, i, r, l), h = jIt(t, i, u.root, u.align, o === "r"); + var l = (a === "u" ? t.predecessors : t.successors).bind(t), u = KIt(t, i, r, l), h = JIt(t, i, u.root, u.align, o === "r"); o === "r" && (h = tE(h, function(f) { return -f; })), n[a + o] = h; }); }); - var s = JIt(t, n); - return e$t(n, s), t$t(n, t.graph().align); + var s = t$t(t, n); + return r$t(n, s), n$t(n, t.graph().align); } -function n$t(t, e, r) { +function s$t(t, e, r) { return function(n, i, s) { var a = n.node(i), o = n.node(s), l = 0, u; if (l += a.width / 2, _t(a, "labelpos")) @@ -66928,15 +66934,15 @@ function n$t(t, e, r) { return u && (l += r ? u : -u), u = 0, l; }; } -function i$t(t, e) { +function a$t(t, e) { return t.node(e).width; } -function s$t(t) { - t = yde(t), a$t(t), jPt(r$t(t), function(e, r) { +function o$t(t) { + t = yde(t), l$t(t), JPt(i$t(t), function(e, r) { t.node(r).x = e; }); } -function a$t(t) { +function l$t(t) { var e = nE(t), r = t.graph().ranksep, n = 0; Ve(e, function(i) { var s = X0( @@ -66950,76 +66956,76 @@ function a$t(t) { }); } function q1(t, e) { - var r = e && e.debugTiming ? tIt : rIt; + var r = e && e.debugTiming ? nIt : iIt; r("layout", function() { var n = r(" buildLayoutGraph", function() { - return v$t(t); + return b$t(t); }); r(" runLayout", function() { - o$t(n, r); + c$t(n, r); }), r(" updateInputGraph", function() { - l$t(t, n); + u$t(t, n); }); }); } -function o$t(t, e) { +function c$t(t, e) { e(" makeSpaceForEdgeLabels", function() { - y$t(t); + x$t(t); }), e(" removeSelfEdges", function() { - E$t(t); + A$t(t); }), e(" acyclic", function() { - XNt(t); + ZNt(t); }), e(" nestingGraph.run", function() { - kIt(t); + TIt(t); }), e(" rank", function() { - xIt(yde(t)); + OIt(yde(t)); }), e(" injectEdgeLabelProxies", function() { - b$t(t); + w$t(t); }), e(" removeEmptyRanks", function() { - JNt(t); + tIt(t); }), e(" nestingGraph.cleanup", function() { - CIt(t); + _It(t); }), e(" normalizeRanks", function() { - KNt(t); + eIt(t); }), e(" assignRankMinMax", function() { - x$t(t); + O$t(t); }), e(" removeEdgeLabelProxies", function() { - w$t(t); + k$t(t); }), e(" normalize.run", function() { - lIt(t); + uIt(t); }), e(" parentDummyChains", function() { - VIt(t); + YIt(t); }), e(" addBorderSegments", function() { - nIt(t); + sIt(t); }), e(" order", function() { - QIt(t); + VIt(t); }), e(" insertSelfEdges", function() { - _$t(t); + L$t(t); }), e(" adjustCoordinateSystem", function() { - iIt(t); + aIt(t); }), e(" position", function() { - s$t(t); + o$t(t); }), e(" positionSelfEdges", function() { - A$t(t); + R$t(t); }), e(" removeBorderNodes", function() { - C$t(t); + _$t(t); }), e(" normalize.undo", function() { - uIt(t); + fIt(t); }), e(" fixupEdgeLabelCoords", function() { - S$t(t); + C$t(t); }), e(" undoCoordinateSystem", function() { - sIt(t); + oIt(t); }), e(" translateGraph", function() { - O$t(t); + S$t(t); }), e(" assignNodeIntersects", function() { - k$t(t); - }), e(" reversePoints", function() { T$t(t); + }), e(" reversePoints", function() { + E$t(t); }), e(" acyclic.undo", function() { - ZNt(t); + KNt(t); }); } -function l$t(t, e) { +function u$t(t, e) { Ve(t.nodes(), function(r) { var n = t.node(r), i = e.node(r); n && (n.x = i.x, n.y = i.y, e.children(r).length && (n.width = i.width, n.height = i.height)); @@ -67028,37 +67034,37 @@ function l$t(t, e) { n.points = i.points, _t(i, "x") && (n.x = i.x, n.y = i.y); }), t.graph().width = e.graph().width, t.graph().height = e.graph().height; } -var c$t = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], u$t = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, h$t = ["acyclicer", "ranker", "rankdir", "align"], f$t = ["width", "height"], d$t = { width: 0, height: 0 }, p$t = ["minlen", "weight", "width", "height", "labeloffset"], g$t = { +var h$t = ["nodesep", "edgesep", "ranksep", "marginx", "marginy"], f$t = { ranksep: 50, edgesep: 20, nodesep: 50, rankdir: "tb" }, d$t = ["acyclicer", "ranker", "rankdir", "align"], p$t = ["width", "height"], g$t = { width: 0, height: 0 }, m$t = ["minlen", "weight", "width", "height", "labeloffset"], v$t = { minlen: 1, weight: 1, width: 0, height: 0, labeloffset: 10, labelpos: "r" -}, m$t = ["labelpos"]; -function v$t(t) { +}, y$t = ["labelpos"]; +function b$t(t) { var e = new Ki({ multigraph: !0, compound: !0 }), r = PA(t.graph()); return e.setGraph( - N3({}, u$t, DA(r, c$t), oS(r, h$t)) + N3({}, f$t, DA(r, h$t), oS(r, d$t)) ), Ve(t.nodes(), function(n) { var i = PA(t.node(n)); - e.setNode(n, JC(DA(i, f$t), d$t)), e.setParent(n, t.parent(n)); + e.setNode(n, JC(DA(i, p$t), g$t)), e.setParent(n, t.parent(n)); }), Ve(t.edges(), function(n) { var i = PA(t.edge(n)); e.setEdge( n, - N3({}, g$t, DA(i, p$t), oS(i, m$t)) + N3({}, v$t, DA(i, m$t), oS(i, y$t)) ); }), e; } -function y$t(t) { +function x$t(t) { var e = t.graph(); e.ranksep /= 2, Ve(t.edges(), function(r) { var n = t.edge(r); n.minlen *= 2, n.labelpos.toLowerCase() !== "c" && (e.rankdir === "TB" || e.rankdir === "BT" ? n.width += n.labeloffset : n.height += n.labeloffset); }); } -function b$t(t) { +function w$t(t) { Ve(t.edges(), function(e) { var r = t.edge(e); if (r.width && r.height) { @@ -67067,20 +67073,20 @@ function b$t(t) { } }); } -function x$t(t) { +function O$t(t) { var e = 0; Ve(t.nodes(), function(r) { var n = t.node(r); n.borderTop && (n.minRank = t.node(n.borderTop).rank, n.maxRank = t.node(n.borderBottom).rank, e = X0(e, n.maxRank)); }), t.graph().maxRank = e; } -function w$t(t) { +function k$t(t) { Ve(t.nodes(), function(e) { var r = t.node(e); r.dummy === "edge-proxy" && (t.edge(r.e).labelRank = r.rank, t.removeNode(e)); }); } -function O$t(t) { +function S$t(t) { var e = Number.POSITIVE_INFINITY, r = 0, n = Number.POSITIVE_INFINITY, i = 0, s = t.graph(), a = s.marginx || 0, o = s.marginy || 0; function l(u) { var h = u.x, f = u.y, d = u.width, p = u.height; @@ -67101,13 +67107,13 @@ function O$t(t) { }), _t(h, "x") && (h.x -= e), _t(h, "y") && (h.y -= n); }), s.width = r - e + a, s.height = i - n + o; } -function k$t(t) { +function T$t(t) { Ve(t.edges(), function(e) { var r = t.edge(e), n = t.node(e.v), i = t.node(e.w), s, a; r.points ? (s = r.points[0], a = r.points[r.points.length - 1]) : (r.points = [], s = i, a = n), r.points.unshift(KW(n, s)), r.points.push(KW(i, a)); }); } -function S$t(t) { +function C$t(t) { Ve(t.edges(), function(e) { var r = t.edge(e); if (_t(r, "x")) @@ -67121,13 +67127,13 @@ function S$t(t) { } }); } -function T$t(t) { +function E$t(t) { Ve(t.edges(), function(e) { var r = t.edge(e); r.reversed && r.points.reverse(); }); } -function C$t(t) { +function _$t(t) { Ve(t.nodes(), function(e) { if (t.children(e).length) { var r = t.node(e), n = t.node(r.borderTop), i = t.node(r.borderBottom), s = t.node(cu(r.borderLeft)), a = t.node(cu(r.borderRight)); @@ -67137,7 +67143,7 @@ function C$t(t) { t.node(e).dummy === "border" && t.removeNode(e); }); } -function E$t(t) { +function A$t(t) { Ve(t.edges(), function(e) { if (e.v === e.w) { var r = t.node(e.v); @@ -67145,7 +67151,7 @@ function E$t(t) { } }); } -function _$t(t) { +function L$t(t) { var e = nE(t); Ve(e, function(r) { var n = 0; @@ -67169,7 +67175,7 @@ function _$t(t) { }); }); } -function A$t(t) { +function R$t(t) { Ve(t.nodes(), function(e) { var r = t.node(e); if (r.dummy === "selfedge") { @@ -67200,29 +67206,29 @@ function _i(t) { multigraph: t.isMultigraph(), compound: t.isCompound() }, - nodes: L$t(t), - edges: R$t(t) + nodes: M$t(t), + edges: D$t(t) }; return tn(t.graph()) || (e.value = Xi(t.graph())), e; } -function L$t(t) { +function M$t(t) { return St(t.nodes(), function(e) { var r = t.node(e), n = t.parent(e), i = { v: e }; return tn(r) || (i.value = r), tn(n) || (i.parent = n), i; }); } -function R$t(t) { +function D$t(t) { return St(t.edges(), function(e) { var r = t.edge(e), n = { v: e.v, w: e.w }; return tn(e.name) || (n.name = e.name), tn(r) || (n.value = r), n; }); } -var Rr = /* @__PURE__ */ new Map(), p0 = /* @__PURE__ */ new Map(), Mde = /* @__PURE__ */ new Map(), M$t = /* @__PURE__ */ x(() => { +var Rr = /* @__PURE__ */ new Map(), p0 = /* @__PURE__ */ new Map(), Mde = /* @__PURE__ */ new Map(), P$t = /* @__PURE__ */ x(() => { p0.clear(), Mde.clear(), Rr.clear(); }, "clear"), lS = /* @__PURE__ */ x((t, e) => { const r = p0.get(e) || []; return H.trace("In isDescendant", e, " ", t, " = ", r.includes(t)), r.includes(t); -}, "isDescendant"), D$t = /* @__PURE__ */ x((t, e) => { +}, "isDescendant"), N$t = /* @__PURE__ */ x((t, e) => { const r = p0.get(e) || []; return H.info("Descendants of ", e, " is ", r), H.info("Edge is ", t), t.v === e || t.w === e ? !1 : r ? r.includes(t.v) || lS(t.v, e) || lS(t.w, e) || r.includes(t.w) : (H.debug("Tilt, ", e, ",not in descendants"), !1); }, "edgeInCluster"), Dde = /* @__PURE__ */ x((t, e, r, n) => { @@ -67255,7 +67261,7 @@ var Rr = /* @__PURE__ */ new Map(), p0 = /* @__PURE__ */ new Map(), Mde = /* @__ const u = e.edge(l.v, l.w, l.name); H.info("Edge data", u, n); try { - D$t(l, n) ? (H.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), H.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : H.info( + N$t(l, n) ? (H.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), H.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : H.info( "Skipping copy of edge ", l.v, "-->", @@ -67278,7 +67284,7 @@ var Rr = /* @__PURE__ */ new Map(), p0 = /* @__PURE__ */ new Map(), Mde = /* @__ for (const i of r) Mde.set(i, t), n = [...n, ...Pde(i, e)]; return n; -}, "extractDescendants"), P$t = /* @__PURE__ */ x((t, e, r) => { +}, "extractDescendants"), I$t = /* @__PURE__ */ x((t, e, r) => { const n = t.edges().filter((l) => l.v === e || l.w === e), i = t.edges().filter((l) => l.v === r || l.w === r), s = n.map((l) => ({ v: l.v === e ? r : l.v, w: l.w === e ? e : l.w })), a = i.map((l) => ({ v: l.v, w: l.w })); return s.filter((l) => a.some((u) => l.v === u.v && l.w === u.w)); }, "findCommonEdges"), yb = /* @__PURE__ */ x((t, e, r) => { @@ -67287,7 +67293,7 @@ var Rr = /* @__PURE__ */ new Map(), p0 = /* @__PURE__ */ new Map(), Mde = /* @__ return t; let i; for (const s of n) { - const a = yb(s, e, r), o = P$t(e, r, a); + const a = yb(s, e, r), o = I$t(e, r, a); if (a) if (o.length > 0) i = a; @@ -67295,7 +67301,7 @@ var Rr = /* @__PURE__ */ new Map(), p0 = /* @__PURE__ */ new Map(), Mde = /* @__ return a; } return i; -}, "findNonClusterChild"), oG = /* @__PURE__ */ x((t) => !Rr.has(t) || !Rr.get(t).externalConnections ? t : Rr.has(t) ? Rr.get(t).id : t, "getAnchorId"), N$t = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), oG = /* @__PURE__ */ x((t) => !Rr.has(t) || !Rr.get(t).externalConnections ? t : Rr.has(t) ? Rr.get(t).id : t, "getAnchorId"), $$t = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { H.debug("Opting out, no graph "); return; @@ -67427,7 +67433,7 @@ var Rr = /* @__PURE__ */ new Map(), p0 = /* @__PURE__ */ new Map(), Mde = /* @__ const i = t.children(n), s = Ide(t, i); r = [...r, ...s]; }), r; -}, "sorter"), I$t = /* @__PURE__ */ x((t) => Ide(t, t.children()), "sortNodesByHierarchy"), $de = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { +}, "sorter"), B$t = /* @__PURE__ */ x((t) => Ide(t, t.children()), "sortNodesByHierarchy"), $de = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { H.warn("Graph in recursive render:XAX", _i(e), i); const a = e.graph().rankdir; H.trace("Dir in recursive render - dir:", a); @@ -67504,7 +67510,7 @@ Parent cluster`, }, "processEdges"))(), H.info("Graph before layout:", JSON.stringify(_i(e))), H.info("############################################# XXX"), H.info("### Layout ### XXX"), H.info("############################################# XXX"), q1(e), H.info("Graph after layout:", JSON.stringify(_i(e))); let p = 0, { subGraphTitleTotalMargin: g } = bp(s); return await Promise.all( - I$t(e).map(async function(m) { + B$t(e).map(async function(m) { var y; const v = e.node(m); if (H.info( @@ -67569,7 +67575,7 @@ Parent cluster`, const v = e.node(m); H.info(m, v.type, v.diff), v.isGroup && (p = v.diff); }), H.warn("Returning from recursive render XAX", o, p), { elem: o, diff: p }; -}, "recursiveRender"), $$t = /* @__PURE__ */ x(async (t, e) => { +}, "recursiveRender"), F$t = /* @__PURE__ */ x(async (t, e) => { var s, a, o, l, u, h; const r = new Ki({ multigraph: !0, @@ -67583,7 +67589,7 @@ Parent cluster`, }).setDefaultEdgeLabel(function() { return {}; }), n = e.select("g"); - Ile(n, t.markers, t.type, t.diagramId), YCt(), XTt(), YTt(), M$t(), t.nodes.forEach((f) => { + Ile(n, t.markers, t.type, t.diagramId), YCt(), XTt(), YTt(), P$t(), t.nodes.forEach((f) => { r.setNode(f.id, { ...f }), f.parentId && r.setParent(f.id, f.parentId); }), H.debug("Edges:", t.edges), t.edges.forEach((f) => { if (f.start === f.end) { @@ -67615,7 +67621,7 @@ Parent cluster`, v.label = "", v.arrowTypeEnd = "none", v.id = d + "-cyclic-special-1", y.arrowTypeEnd = "none", y.id = d + "-cyclic-special-mid", b.label = "", m.isGroup && (v.fromCluster = d, b.toCluster = d), b.id = d + "-cyclic-special-2", r.setEdge(d, p, v, d + "-cyclic-special-0"), r.setEdge(p, g, y, d + "-cyclic-special-1"), r.setEdge(g, d, b, d + "-cyc { const r = t.append("rect"); @@ -67647,17 +67653,17 @@ var iE = /* @__PURE__ */ x((t, e) => { class: "rect" }; iE(t, r).lower(); -}, "drawBackgroundRect"), F$t = /* @__PURE__ */ x((t, e) => { +}, "drawBackgroundRect"), Q$t = /* @__PURE__ */ x((t, e) => { const r = e.text.replace(M1, " "), n = t.append("text"); n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), z$t = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawText"), U$t = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("image"); i.attr("x", e), i.attr("y", r); const s = md(n); i.attr("xlink:href", s); -}, "drawImage"), Q$t = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawImage"), V$t = /* @__PURE__ */ x((t, e, r, n) => { const i = t.append("use"); i.attr("x", e), i.attr("y", r); const s = md(n); @@ -68293,7 +68299,7 @@ Expecting ` + ft.join(", ") + ", got '" + (this.terminals_[xt] || xt) + "'" : st return x(Ge, "Parser"), Ge.prototype = He, He.Parser = Ge, new Ge(); }(); cS.parser = cS; -var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ +var q$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ { alias: "global", label: { text: "global" }, @@ -68302,11 +68308,11 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ link: null, parentBoundary: "" } -], bb = [], bI = "", xI = !1, uS = 4, hS = 2, Fde, V$t = /* @__PURE__ */ x(function() { +], bb = [], bI = "", xI = !1, uS = 4, hS = 2, Fde, Y$t = /* @__PURE__ */ x(function() { return Fde; -}, "getC4Type"), q$t = /* @__PURE__ */ x(function(t) { +}, "getC4Type"), W$t = /* @__PURE__ */ x(function(t) { Fde = yi(t, ke()); -}, "setC4Type"), Y$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { +}, "setC4Type"), G$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l) { if (t == null || e === void 0 || e === null || r === void 0 || r === null || n === void 0 || n === null) return; let u = {}; @@ -68341,7 +68347,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else u.link = l; u.wrap = yd(); -}, "addRel"), W$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "addRel"), X$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { if (e === null || r === null) return; let o = {}; @@ -68369,7 +68375,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else o.link = a; o.typeC4Shape = { text: t }, o.parentBoundary = _a, o.wrap = yd(); -}, "addPersonOrSystem"), G$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addPersonOrSystem"), H$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -68404,7 +68410,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else l.link = o; l.wrap = yd(), l.typeC4Shape = { text: t }, l.parentBoundary = _a; -}, "addContainer"), X$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainer"), Z$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -68439,7 +68445,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else l.link = o; l.wrap = yd(), l.typeC4Shape = { text: t }, l.parentBoundary = _a; -}, "addComponent"), H$t = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addComponent"), j$t = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -68462,7 +68468,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else s.link = i; s.parentBoundary = _a, s.wrap = yd(), Zl = _a, _a = t, _f.push(Zl); -}, "addPersonOrSystemBoundary"), Z$t = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addPersonOrSystemBoundary"), K$t = /* @__PURE__ */ x(function(t, e, r, n, i) { if (t === null || e === null) return; let s = {}; @@ -68485,7 +68491,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else s.link = i; s.parentBoundary = _a, s.wrap = yd(), Zl = _a, _a = t, _f.push(Zl); -}, "addContainerBoundary"), j$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { +}, "addContainerBoundary"), J$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o) { if (e === null || r === null) return; let l = {}; @@ -68515,9 +68521,9 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else l.link = o; l.nodeType = t, l.parentBoundary = _a, l.wrap = yd(), Zl = _a, _a = e, _f.push(Zl); -}, "addDeploymentNode"), K$t = /* @__PURE__ */ x(function() { +}, "addDeploymentNode"), eBt = /* @__PURE__ */ x(function() { _a = Zl, _f.pop(), Zl = _f.pop(), _f.push(Zl); -}, "popBoundaryParseStack"), J$t = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { +}, "popBoundaryParseStack"), tBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a, o, l, u, h) { let f = lc.find((d) => d.alias === e); if (!(f === void 0 && (f = uu.find((d) => d.alias === e), f === void 0))) { if (r != null) @@ -68575,7 +68581,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else f.legendSprite = h; } -}, "updateElStyle"), eBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "updateElStyle"), rBt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { const o = bb.find((l) => l.from === e && l.to === r); if (o !== void 0) { if (n != null) @@ -68603,7 +68609,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else o.offsetY = parseInt(a); } -}, "updateRelStyle"), tBt = /* @__PURE__ */ x(function(t, e, r) { +}, "updateRelStyle"), nBt = /* @__PURE__ */ x(function(t, e, r) { let n = uS, i = hS; if (typeof e == "object") { const s = Object.values(e)[0]; @@ -68616,31 +68622,31 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ } else i = parseInt(r); n >= 1 && (uS = n), i >= 1 && (hS = i); -}, "updateLayoutConfig"), rBt = /* @__PURE__ */ x(function() { +}, "updateLayoutConfig"), iBt = /* @__PURE__ */ x(function() { return uS; -}, "getC4ShapeInRow"), nBt = /* @__PURE__ */ x(function() { +}, "getC4ShapeInRow"), sBt = /* @__PURE__ */ x(function() { return hS; -}, "getC4BoundaryInRow"), iBt = /* @__PURE__ */ x(function() { +}, "getC4BoundaryInRow"), aBt = /* @__PURE__ */ x(function() { return _a; -}, "getCurrentBoundaryParse"), sBt = /* @__PURE__ */ x(function() { +}, "getCurrentBoundaryParse"), oBt = /* @__PURE__ */ x(function() { return Zl; }, "getParentBoundaryParse"), zde = /* @__PURE__ */ x(function(t) { return t == null ? lc : lc.filter((e) => e.parentBoundary === t); -}, "getC4ShapeArray"), aBt = /* @__PURE__ */ x(function(t) { +}, "getC4ShapeArray"), lBt = /* @__PURE__ */ x(function(t) { return lc.find((e) => e.alias === t); -}, "getC4Shape"), oBt = /* @__PURE__ */ x(function(t) { +}, "getC4Shape"), cBt = /* @__PURE__ */ x(function(t) { return Object.keys(zde(t)); }, "getC4ShapeKeys"), Qde = /* @__PURE__ */ x(function(t) { return t == null ? uu : uu.filter((e) => e.parentBoundary === t); -}, "getBoundaries"), lBt = Qde, cBt = /* @__PURE__ */ x(function() { +}, "getBoundaries"), uBt = Qde, hBt = /* @__PURE__ */ x(function() { return bb; -}, "getRels"), uBt = /* @__PURE__ */ x(function() { +}, "getRels"), fBt = /* @__PURE__ */ x(function() { return bI; -}, "getTitle"), hBt = /* @__PURE__ */ x(function(t) { +}, "getTitle"), dBt = /* @__PURE__ */ x(function(t) { xI = t; }, "setWrap"), yd = /* @__PURE__ */ x(function() { return xI; -}, "autoWrap"), fBt = /* @__PURE__ */ x(function() { +}, "autoWrap"), pBt = /* @__PURE__ */ x(function() { lc = [], uu = [ { alias: "global", @@ -68651,7 +68657,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ parentBoundary: "" } ], Zl = "", _a = "global", _f = [""], bb = [], _f = [""], bI = "", xI = !1, uS = 4, hS = 2; -}, "clear"), dBt = { +}, "clear"), gBt = { SOLID: 0, DOTTED: 1, NOTE: 2, @@ -68675,52 +68681,52 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ RECT_END: 23, SOLID_POINT: 24, DOTTED_POINT: 25 -}, pBt = { +}, mBt = { FILLED: 0, OPEN: 1 -}, gBt = { +}, vBt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 -}, mBt = /* @__PURE__ */ x(function(t) { +}, yBt = /* @__PURE__ */ x(function(t) { bI = yi(t, ke()); }, "setTitle"), QL = { - addPersonOrSystem: W$t, - addPersonOrSystemBoundary: H$t, - addContainer: G$t, - addContainerBoundary: Z$t, - addComponent: X$t, - addDeploymentNode: j$t, - popBoundaryParseStack: K$t, - addRel: Y$t, - updateElStyle: J$t, - updateRelStyle: eBt, - updateLayoutConfig: tBt, + addPersonOrSystem: X$t, + addPersonOrSystemBoundary: j$t, + addContainer: H$t, + addContainerBoundary: K$t, + addComponent: Z$t, + addDeploymentNode: J$t, + popBoundaryParseStack: eBt, + addRel: G$t, + updateElStyle: tBt, + updateRelStyle: rBt, + updateLayoutConfig: nBt, autoWrap: yd, - setWrap: hBt, + setWrap: dBt, getC4ShapeArray: zde, - getC4Shape: aBt, - getC4ShapeKeys: oBt, + getC4Shape: lBt, + getC4ShapeKeys: cBt, getBoundaries: Qde, - getBoundarys: lBt, - getCurrentBoundaryParse: iBt, - getParentBoundaryParse: sBt, - getRels: cBt, - getTitle: uBt, - getC4Type: V$t, - getC4ShapeInRow: rBt, - getC4BoundaryInRow: nBt, + getBoundarys: uBt, + getCurrentBoundaryParse: aBt, + getParentBoundaryParse: oBt, + getRels: hBt, + getTitle: fBt, + getC4Type: Y$t, + getC4ShapeInRow: iBt, + getC4BoundaryInRow: sBt, setAccTitle: cs, getAccTitle: Ds, getAccDescription: Ns, setAccDescription: Ps, getConfig: /* @__PURE__ */ x(() => ke().c4, "getConfig"), - clear: fBt, - LINETYPE: dBt, - ARROWTYPE: pBt, - PLACEMENT: gBt, - setTitle: mBt, - setC4Type: q$t + clear: pBt, + LINETYPE: gBt, + ARROWTYPE: mBt, + PLACEMENT: vBt, + setTitle: yBt, + setC4Type: W$t }, wI = /* @__PURE__ */ x(function(t, e) { return iE(t, e); }, "drawRect"), Ude = /* @__PURE__ */ x(function(t, e, r, n, i, s) { @@ -68728,7 +68734,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ a.attr("width", e), a.attr("height", r), a.attr("x", n), a.attr("y", i); let o = s.startsWith("data:image/png;base64") ? s : md(s); a.attr("xlink:href", o); -}, "drawImage"), vBt = /* @__PURE__ */ x((t, e, r) => { +}, "drawImage"), bBt = /* @__PURE__ */ x((t, e, r) => { const n = t.append("g"); let i = 0; for (let s of e) { @@ -68767,7 +68773,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ f )); } -}, "drawRels"), yBt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawRels"), xBt = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"); let i = e.bgColor ? e.bgColor : "none", s = e.borderColor ? e.borderColor : "#444444", a = e.fontColor ? e.fontColor : "black", o = { "stroke-width": 1, "stroke-dasharray": "7.0,7.0" }; e.nodeType && (o = { "stroke-width": 1 }); @@ -68812,7 +68818,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ { fill: "#444444" }, u )); -}, "drawBoundary"), bBt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawBoundary"), wBt = /* @__PURE__ */ x(function(t, e, r) { var f; let n = e.bgColor ? e.bgColor : r[e.typeC4Shape.text + "_bg_color"], i = e.borderColor ? e.borderColor : r[e.typeC4Shape.text + "_border_color"], s = e.fontColor ? e.fontColor : "#FFFFFF", a = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAIAAADYYG7QAAACD0lEQVR4Xu2YoU4EMRCGT+4j8Ai8AhaH4QHgAUjQuFMECUgMIUgwJAgMhgQsAYUiJCiQIBBY+EITsjfTdme6V24v4c8vyGbb+ZjOtN0bNcvjQXmkH83WvYBWto6PLm6v7p7uH1/w2fXD+PBycX1Pv2l3IdDm/vn7x+dXQiAubRzoURa7gRZWd0iGRIiJbOnhnfYBQZNJjNbuyY2eJG8fkDE3bbG4ep6MHUAsgYxmE3nVs6VsBWJSGccsOlFPmLIViMzLOB7pCVO2AtHJMohH7Fh6zqitQK7m0rJvAVYgGcEpe//PLdDz65sM4pF9N7ICcXDKIB5Nv6j7tD0NoSdM2QrU9Gg0ewE1LqBhHR3BBdvj2vapnidjHxD/q6vd7Pvhr31AwcY8eXMTXAKECZZJFXuEq27aLgQK5uLMohCenGGuGewOxSjBvYBqeG6B+Nqiblggdjnc+ZXDy+FNFpFzw76O3UBAROuXh6FoiAcf5g9eTvUgzy0nWg6I8cXHRUpg5bOVBCo+KDpFajOf23GgPme7RSQ+lacIENUgJ6gg1k6HjgOlqnLqip4tEuhv0hNEMXUD0clyXE3p6pZA0S2nnvTlXwLJEZWlb7cTQH1+USgTN4VhAenm/wea1OCAOmqo6fE1WCb9WSKBah+rbUWPWAmE2Rvk0ApiB45eOyNAzU8xcTvj8KvkKEoOaIYeHNA3ZuygAvFMUO0AAAAASUVORK5CYII="; switch (e.typeC4Shape.text) { @@ -68866,7 +68872,7 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ ); break; } - let u = _Bt(r, e.typeC4Shape.text); + let u = LBt(r, e.typeC4Shape.text); switch (o.append("text").attr("fill", s).attr("font-family", u.fontFamily).attr("font-size", u.fontSize - 2).attr("font-style", "italic").attr("lengthAdjust", "spacing").attr("textLength", e.typeC4Shape.width).attr("x", e.x + e.width / 2 - e.typeC4Shape.width / 2).attr("y", e.y + e.typeC4Shape.Y).text("<<" + e.typeC4Shape.text + ">>"), e.typeC4Shape.text) { case "person": case "external_person": @@ -68918,33 +68924,33 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ { fill: s }, h )), e.height; -}, "drawC4Shape"), xBt = /* @__PURE__ */ x(function(t) { +}, "drawC4Shape"), OBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), wBt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), kBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), OBt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), SBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), kBt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), TBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z"); -}, "insertArrowHead"), SBt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), CBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowend").attr("refX", 1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 z"); -}, "insertArrowEnd"), TBt = /* @__PURE__ */ x(function(t) { +}, "insertArrowEnd"), EBt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 18).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertArrowFilledHead"), CBt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), _Bt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6); -}, "insertDynamicNumber"), EBt = /* @__PURE__ */ x(function(t) { +}, "insertDynamicNumber"), ABt = /* @__PURE__ */ x(function(t) { const r = t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 16).attr("refY", 4); r.append("path").attr("fill", "black").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 9,2 V 6 L16,4 Z"), r.append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1px").attr("d", "M 0,1 L 6,7 M 6,1 L 0,7"); -}, "insertArrowCrossHead"), _Bt = /* @__PURE__ */ x((t, e) => ({ +}, "insertArrowCrossHead"), LBt = /* @__PURE__ */ x((t, e) => ({ fontFamily: t[e + "FontFamily"], fontSize: t[e + "FontSize"], fontWeight: t[e + "FontWeight"] @@ -68976,18 +68982,18 @@ var U$t = cS, lc = [], _f = [""], _a = "global", Zl = "", uu = [ }; }(), Rc = { drawRect: wI, - drawBoundary: yBt, - drawC4Shape: bBt, - drawRels: vBt, + drawBoundary: xBt, + drawC4Shape: wBt, + drawRels: bBt, drawImage: Ude, - insertArrowHead: kBt, - insertArrowEnd: SBt, - insertArrowFilledHead: TBt, - insertDynamicNumber: CBt, - insertArrowCrossHead: EBt, - insertDatabaseIcon: xBt, - insertComputerIcon: wBt, - insertClockIcon: OBt + insertArrowHead: TBt, + insertArrowEnd: CBt, + insertArrowFilledHead: EBt, + insertDynamicNumber: _Bt, + insertArrowCrossHead: ABt, + insertDatabaseIcon: OBt, + insertComputerIcon: kBt, + insertClockIcon: SBt }, fS = 0, dS = 0, Vde = 4, UL = 2; cS.yy = QL; var Wt = {}, rx, qde = (rx = class { @@ -69035,7 +69041,7 @@ var Wt = {}, rx, qde = (rx = class { fontFamily: t.boundaryFontFamily, fontSize: t.boundaryFontSize, fontWeight: t.boundaryFontWeight -}), "boundaryFont"), ABt = /* @__PURE__ */ x((t) => ({ +}), "boundaryFont"), RBt = /* @__PURE__ */ x((t) => ({ fontFamily: t.messageFontFamily, fontSize: t.messageFontSize, fontWeight: t.messageFontWeight @@ -69112,22 +69118,22 @@ var Yde = /* @__PURE__ */ x(function(t, e, r) { a + l / u * t.height / 2, n + t.height ) : r < i && n > s ? f >= h ? d = new Vo(r + t.width, o - h * t.width / 2) : d = new Vo(a + t.height / 2 * l / u, n) : r > i && n > s && (f >= h ? d = new Vo(r, o - t.width / 2 * h) : d = new Vo(a - t.height / 2 * l / u, n)), d; -}, "getIntersectPoint"), LBt = /* @__PURE__ */ x(function(t, e) { +}, "getIntersectPoint"), MBt = /* @__PURE__ */ x(function(t, e) { let r = { x: 0, y: 0 }; r.x = e.x + e.width / 2, r.y = e.y + e.height / 2; let n = lG(t, r); r.x = t.x + t.width / 2, r.y = t.y + t.height / 2; let i = lG(e, r); return { startPoint: n, endPoint: i }; -}, "getIntersectPoints"), RBt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getIntersectPoints"), DBt = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0; for (let s of e) { i = i + 1; - let a = s.wrap && Wt.wrap, o = ABt(Wt); + let a = s.wrap && Wt.wrap, o = RBt(Wt); n.db.getC4Type() === "C4Dynamic" && (s.label.text = i + ": " + s.label.text); let u = Wl(s.label.text, o); il("label", s, a, o, u), s.techn && s.techn.text !== "" && (u = Wl(s.techn.text, o), il("techn", s, a, o, u)), s.descr && s.descr.text !== "" && (u = Wl(s.descr.text, o), il("descr", s, a, o, u)); - let h = r(s.from), f = r(s.to), d = LBt(h, f); + let h = r(s.from), f = r(s.to), d = MBt(h, f); s.startPoint = d.startPoint, s.endPoint = d.endPoint; } Rc.drawRels(t, e, Wt); @@ -69198,7 +69204,7 @@ function OI(t, e, r, n, i) { } } x(OI, "drawInsideBoundary"); -var MBt = /* @__PURE__ */ x(function(t, e, r, n) { +var PBt = /* @__PURE__ */ x(function(t, e, r, n) { Wt = ke().c4; const i = ke().securityLevel; let s; @@ -69217,7 +69223,7 @@ var MBt = /* @__PURE__ */ x(function(t, e, r, n) { ), u.data.widthLimit = screen.availWidth, fS = Wt.diagramMarginX, dS = Wt.diagramMarginY; const h = n.db.getTitle(); let f = n.db.getBoundarys(""); - OI(l, "", u, f, n), Rc.insertArrowHead(l), Rc.insertArrowEnd(l), Rc.insertArrowCrossHead(l), Rc.insertArrowFilledHead(l), RBt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = fS, u.data.stopy = dS; + OI(l, "", u, f, n), Rc.insertArrowHead(l), Rc.insertArrowEnd(l), Rc.insertArrowCrossHead(l), Rc.insertArrowFilledHead(l), DBt(l, n.db.getRels(), n.db.getC4Shape, n), u.data.stopx = fS, u.data.stopy = dS; const d = u.data; let g = d.stopy - d.starty + 2 * Wt.diagramMarginY; const v = d.stopx - d.startx + 2 * Wt.diagramMarginX; @@ -69231,34 +69237,34 @@ var MBt = /* @__PURE__ */ x(function(t, e, r, n) { drawPersonOrSystemArray: Wde, drawBoundary: Yde, setConf: VL, - draw: MBt -}, DBt = /* @__PURE__ */ x((t) => `.person { + draw: PBt +}, NBt = /* @__PURE__ */ x((t) => `.person { stroke: ${t.personBorder}; fill: ${t.personBkg}; } -`, "getStyles"), PBt = DBt, NBt = { - parser: U$t, +`, "getStyles"), IBt = NBt, $Bt = { + parser: q$t, db: QL, renderer: cG, - styles: PBt, + styles: IBt, init: /* @__PURE__ */ x(({ c4: t, wrap: e }) => { cG.setConf(t), QL.setWrap(e); }, "init") }; -const IBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const BBt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: NBt + diagram: $Bt }, Symbol.toStringTag, { value: "Module" })); var Gde = /* @__PURE__ */ x((t, e) => { let r; return e === "sandbox" && (r = ht("#i" + t)), ht(e === "sandbox" ? r.nodes()[0].contentDocument.body : "body").select(`[id="${t}"]`); }, "getDiagramElement"), Xde = /* @__PURE__ */ x((t, e, r, n) => { t.attr("class", r); - const { width: i, height: s, x: a, y: o } = $Bt(t, e); + const { width: i, height: s, x: a, y: o } = FBt(t, e); Ms(t, s, i, n); - const l = BBt(a, o, i, s, e); + const l = zBt(a, o, i, s, e); t.attr("viewBox", l), H.debug(`viewBox configured: ${l} with padding: ${e}`); -}, "setupViewPortForSVG"), $Bt = /* @__PURE__ */ x((t, e) => { +}, "setupViewPortForSVG"), FBt = /* @__PURE__ */ x((t, e) => { var n; const r = ((n = t.node()) == null ? void 0 : n.getBBox()) || { width: 0, height: 0, x: 0, y: 0 }; return { @@ -69267,7 +69273,7 @@ var Gde = /* @__PURE__ */ x((t, e) => { x: r.x, y: r.y }; -}, "calculateDimensionsWithPadding"), BBt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); +}, "calculateDimensionsWithPadding"), zBt = /* @__PURE__ */ x((t, e, r, n, i) => `${t - i} ${e - i} ${r} ${n}`, "createViewBox"); function qL(t, e) { e && t.attr("style", e); } @@ -69277,7 +69283,7 @@ function Hde(t) { return s.html(n), qL(s, t.labelStyle), s.attr("class", i), qL(r, t.labelStyle), r.style("display", "inline-block"), r.style("white-space", "nowrap"), r.attr("xmlns", "http://www.w3.org/1999/xhtml"), e.node(); } x(Hde, "addHtmlLabel"); -var FBt = /* @__PURE__ */ x((t, e, r, n) => { +var QBt = /* @__PURE__ */ x((t, e, r, n) => { let i = t || ""; if (typeof i == "object" && (i = i[0]), Pn(ke().flowchart.htmlLabels)) { i = i.replace(/\\n|\n/g, "
"), H.debug("vertexText" + i); @@ -69298,7 +69304,7 @@ var FBt = /* @__PURE__ */ x((t, e, r, n) => { } return s; } -}, "createLabel"), ja = FBt, hs = /* @__PURE__ */ x(async (t, e, r, n) => { +}, "createLabel"), ja = QBt, hs = /* @__PURE__ */ x(async (t, e, r, n) => { const i = ke(); let s; const a = e.useHtmlLabels || Pn(i.flowchart.htmlLabels); @@ -69360,7 +69366,7 @@ function yc(t, e, r, n) { ).attr("class", "label-container").attr("transform", "translate(" + -e / 2 + "," + r / 2 + ")"); } x(yc, "insertPolygonShape"); -var zBt = /* @__PURE__ */ x((t) => { +var UBt = /* @__PURE__ */ x((t) => { const e = /* @__PURE__ */ new Set(); for (const r of t) switch (r) { @@ -69375,8 +69381,8 @@ var zBt = /* @__PURE__ */ x((t) => { break; } return e; -}, "expandAndDeduplicateDirections"), QBt = /* @__PURE__ */ x((t, e, r) => { - const n = zBt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; +}, "expandAndDeduplicateDirections"), VBt = /* @__PURE__ */ x((t, e, r) => { + const n = UBt(t), i = 2, s = e.height + 2 * r.padding, a = s / i, o = e.width + 2 * a + r.padding, l = r.padding / 2; return n.has("right") && n.has("left") && n.has("up") && n.has("down") ? [ { x: 0, y: 0 }, { x: a, y: 0 }, @@ -69494,7 +69500,7 @@ function Zde(t, e) { return t.intersect(e); } x(Zde, "intersectNode"); -var UBt = Zde; +var qBt = Zde; function jde(t, e, r, n) { var i = t.x, s = t.y, a = i - n.x, o = s - n.y, l = Math.sqrt(e * e * o * o + r * r * a * a), u = Math.abs(e * r * a / l); n.x < i && (u = -u); @@ -69507,7 +69513,7 @@ function Jde(t, e, r) { return Kde(t, e, e, r); } x(Jde, "intersectCircle"); -var VBt = Jde; +var YBt = Jde; function e0e(t, e, r, n) { var i, s, a, o, l, u, h, f, d, p, g, m, v, y, b; if (i = e.y - t.y, a = t.x - e.x, l = e.x * t.y - t.x * e.y, d = i * r.x + a * r.y + l, p = i * n.x + a * n.y + l, !(d !== 0 && p !== 0 && YL(d, p)) && (s = n.y - r.y, o = r.x - n.x, u = n.x * r.y - r.x * n.y, h = s * t.x + o * t.y + u, f = s * e.x + o * e.y + u, !(h !== 0 && f !== 0 && YL(h, f)) && (g = i * o - s * a, g !== 0))) @@ -69518,14 +69524,14 @@ function YL(t, e) { return t * e > 0; } x(YL, "sameSign"); -var qBt = e0e, YBt = t0e; +var WBt = e0e, GBt = t0e; function t0e(t, e, r) { var n = t.x, i = t.y, s = [], a = Number.POSITIVE_INFINITY, o = Number.POSITIVE_INFINITY; typeof e.forEach == "function" ? e.forEach(function(g) { a = Math.min(a, g.x), o = Math.min(o, g.y); }) : (a = Math.min(a, e.x), o = Math.min(o, e.y)); for (var l = n - t.width / 2 - a, u = i - t.height / 2 - o, h = 0; h < e.length; h++) { - var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = qBt( + var f = e[h], d = e[h < e.length - 1 ? h + 1 : 0], p = WBt( t, r, { x: l + f.x, y: u + f.y }, @@ -69539,16 +69545,16 @@ function t0e(t, e, r) { }), s[0]) : t; } x(t0e, "intersectPolygon"); -var WBt = /* @__PURE__ */ x((t, e) => { +var XBt = /* @__PURE__ */ x((t, e) => { var r = t.x, n = t.y, i = e.x - r, s = e.y - n, a = t.width / 2, o = t.height / 2, l, u; return Math.abs(s) * a > Math.abs(i) * o ? (s < 0 && (o = -o), l = s === 0 ? 0 : o * i / s, u = o) : (i < 0 && (a = -a), l = a, u = i === 0 ? 0 : a * s / i), { x: r + l, y: n + u }; -}, "intersectRect"), Ow = WBt, Qn = { - node: UBt, - circle: VBt, +}, "intersectRect"), Ow = XBt, Qn = { + node: qBt, + circle: YBt, ellipse: Kde, - polygon: YBt, + polygon: GBt, rect: Ow -}, GBt = /* @__PURE__ */ x(async (t, e) => { +}, HBt = /* @__PURE__ */ x(async (t, e) => { e.useHtmlLabels || ke().flowchart.htmlLabels || (e.centerLabel = !0); const { shapeSvg: n, bbox: i, halfPadding: s } = await hs( t, @@ -69561,7 +69567,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return a.attr("rx", e.rx).attr("ry", e.ry).attr("x", -i.width / 2 - s).attr("y", -i.height / 2 - s).attr("width", i.width + e.padding).attr("height", i.height + e.padding), Zn(e, a), e.intersect = function(o) { return Qn.rect(e, o); }, n; -}, "note"), XBt = GBt, uG = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), $o = /* @__PURE__ */ x((t, e) => `${e || "node default"}${uG(t.classes)} ${uG( +}, "note"), ZBt = HBt, uG = /* @__PURE__ */ x((t) => t ? " " + t : "", "formatClass"), $o = /* @__PURE__ */ x((t, e) => `${e || "node default"}${uG(t.classes)} ${uG( t.class )}`, "getClassesFromNode"), hG = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( @@ -69580,7 +69586,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return l.attr("style", e.style), Zn(e, l), e.intersect = function(u) { return H.warn("Intersect called"), Qn.polygon(e, o, u); }, r; -}, "question"), HBt = /* @__PURE__ */ x((t, e) => { +}, "question"), jBt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = 28, i = [ { x: 0, y: n / 2 }, { x: n / 2, y: 0 }, @@ -69595,7 +69601,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { ).attr("class", "state-start").attr("r", 7).attr("width", 28).attr("height", 28), e.width = 28, e.height = 28, e.intersect = function(a) { return Qn.circle(e, 14, a); }, r; -}, "choice"), ZBt = /* @__PURE__ */ x(async (t, e) => { +}, "choice"), KBt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( t, e, @@ -69612,12 +69618,12 @@ var WBt = /* @__PURE__ */ x((t, e) => { return u.attr("style", e.style), Zn(e, u), e.intersect = function(h) { return Qn.polygon(e, l, h); }, r; -}, "hexagon"), jBt = /* @__PURE__ */ x(async (t, e) => { - const { shapeSvg: r, bbox: n } = await hs(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = QBt(e.directions, n, e), u = yc(r, o, s, l); +}, "hexagon"), JBt = /* @__PURE__ */ x(async (t, e) => { + const { shapeSvg: r, bbox: n } = await hs(t, e, void 0, !0), i = 2, s = n.height + 2 * e.padding, a = s / i, o = n.width + 2 * a + e.padding, l = VBt(e.directions, n, e), u = yc(r, o, s, l); return u.attr("style", e.style), Zn(e, u), e.intersect = function(h) { return Qn.polygon(e, l, h); }, r; -}, "block_arrow"), KBt = /* @__PURE__ */ x(async (t, e) => { +}, "block_arrow"), eFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( t, e, @@ -69633,7 +69639,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return yc(r, i, s, a).attr("style", e.style), e.width = i + s, e.height = s, e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "rect_left_inv_arrow"), JBt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_left_inv_arrow"), tFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs(t, e, $o(e), !0), i = n.width + e.padding, s = n.height + e.padding, a = [ { x: -2 * s / 6, y: 0 }, { x: i - s / 6, y: 0 }, @@ -69643,7 +69649,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "lean_right"), eFt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_right"), rFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( t, e, @@ -69658,7 +69664,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "lean_left"), tFt = /* @__PURE__ */ x(async (t, e) => { +}, "lean_left"), nFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( t, e, @@ -69673,7 +69679,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "trapezoid"), rFt = /* @__PURE__ */ x(async (t, e) => { +}, "trapezoid"), iFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( t, e, @@ -69688,7 +69694,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "inv_trapezoid"), nFt = /* @__PURE__ */ x(async (t, e) => { +}, "inv_trapezoid"), sFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( t, e, @@ -69704,7 +69710,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "rect_right_inv_arrow"), iFt = /* @__PURE__ */ x(async (t, e) => { +}, "rect_right_inv_arrow"), aFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( t, e, @@ -69719,7 +69725,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { } return f; }, r; -}, "cylinder"), sFt = /* @__PURE__ */ x(async (t, e) => { +}, "cylinder"), oFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await hs( t, e, @@ -69735,7 +69741,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return Zn(e, s), e.intersect = function(h) { return Qn.rect(e, h); }, r; -}, "rect"), aFt = /* @__PURE__ */ x(async (t, e) => { +}, "rect"), lFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await hs( t, e, @@ -69751,7 +69757,7 @@ var WBt = /* @__PURE__ */ x((t, e) => { return Zn(e, s), e.intersect = function(h) { return Qn.rect(e, h); }, r; -}, "composite"), oFt = /* @__PURE__ */ x(async (t, e) => { +}, "composite"), cFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r } = await hs(t, e, "label", !0); H.trace("Classes = ", e.class); const n = r.insert("rect", ":first-child"), i = 0, s = 0; @@ -69774,7 +69780,7 @@ function sE(t, e, r, n) { e.includes("t") ? (H.debug("add top border"), s(r)) : a(r), e.includes("r") ? (H.debug("add right border"), s(n)) : a(n), e.includes("b") ? (H.debug("add bottom border"), s(r)) : a(r), e.includes("l") ? (H.debug("add left border"), s(n)) : a(n), t.attr("stroke-dasharray", i.join(" ")); } x(sE, "applyNodePropertyBorders"); -var lFt = /* @__PURE__ */ x((t, e) => { +var uFt = /* @__PURE__ */ x((t, e) => { let r; e.classes ? r = "node " + e.classes : r = "node default"; const n = t.insert("g").attr("class", r).attr("id", e.domId || e.id), i = n.insert("rect", ":first-child"), s = n.insert("line"), a = n.insert("g").attr("class", "label"), o = e.labelText.flat ? e.labelText.flat() : e.labelText; @@ -69809,7 +69815,7 @@ var lFt = /* @__PURE__ */ x((t, e) => { ), i.attr("class", "outer title-state").attr("x", -h.width / 2 - g).attr("y", -h.height / 2 - g).attr("width", h.width + e.padding).attr("height", h.height + e.padding), s.attr("class", "divider").attr("x1", -h.width / 2 - g).attr("x2", h.width / 2 + g).attr("y1", -h.height / 2 - g + d.height + g).attr("y2", -h.height / 2 - g + d.height + g), Zn(e, i), e.intersect = function(m) { return Qn.rect(e, m); }, n; -}, "rectWithTitle"), cFt = /* @__PURE__ */ x(async (t, e) => { +}, "rectWithTitle"), hFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( t, e, @@ -69819,7 +69825,7 @@ var lFt = /* @__PURE__ */ x((t, e) => { return Zn(e, a), e.intersect = function(o) { return Qn.rect(e, o); }, r; -}, "stadium"), uFt = /* @__PURE__ */ x(async (t, e) => { +}, "stadium"), fFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await hs( t, e, @@ -69829,7 +69835,7 @@ var lFt = /* @__PURE__ */ x((t, e) => { return s.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), H.info("Circle main"), Zn(e, s), e.intersect = function(a) { return H.info("Circle intersect", e, n.width / 2 + i, a), Qn.circle(e, n.width / 2 + i, a); }, r; -}, "circle"), hFt = /* @__PURE__ */ x(async (t, e) => { +}, "circle"), dFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n, halfPadding: i } = await hs( t, e, @@ -69839,7 +69845,7 @@ var lFt = /* @__PURE__ */ x((t, e) => { return a.attr("class", e.class), o.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i + s).attr("width", n.width + e.padding + s * 2).attr("height", n.height + e.padding + s * 2), l.attr("style", e.style).attr("rx", e.rx).attr("ry", e.ry).attr("r", n.width / 2 + i).attr("width", n.width + e.padding).attr("height", n.height + e.padding), H.info("DoubleCircle main"), Zn(e, o), e.intersect = function(u) { return H.info("DoubleCircle intersect", e, n.width / 2 + i + s, u), Qn.circle(e, n.width / 2 + i + s, u); }, r; -}, "doublecircle"), fFt = /* @__PURE__ */ x(async (t, e) => { +}, "doublecircle"), pFt = /* @__PURE__ */ x(async (t, e) => { const { shapeSvg: r, bbox: n } = await hs( t, e, @@ -69860,7 +69866,7 @@ var lFt = /* @__PURE__ */ x((t, e) => { return o.attr("style", e.style), Zn(e, o), e.intersect = function(l) { return Qn.polygon(e, a, l); }, r; -}, "subroutine"), dFt = /* @__PURE__ */ x((t, e) => { +}, "subroutine"), gFt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"); return n.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), Zn(e, n), e.intersect = function(i) { return Qn.circle(e, 7, i); @@ -69873,12 +69879,12 @@ var lFt = /* @__PURE__ */ x((t, e) => { return Zn(e, a), e.height = e.height + e.padding / 2, e.width = e.width + e.padding / 2, e.intersect = function(o) { return Qn.rect(e, o); }, n; -}, "forkJoin"), pFt = /* @__PURE__ */ x((t, e) => { +}, "forkJoin"), mFt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "node default").attr("id", e.domId || e.id), n = r.insert("circle", ":first-child"), i = r.insert("circle", ":first-child"); return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), n.attr("class", "state-end").attr("r", 5).attr("width", 10).attr("height", 10), Zn(e, i), e.intersect = function(s) { return Qn.circle(e, 7, s); }, r; -}, "end"), gFt = /* @__PURE__ */ x((t, e) => { +}, "end"), vFt = /* @__PURE__ */ x((t, e) => { var A; const r = e.padding / 2, n = 4, i = 8; let s; @@ -69975,31 +69981,31 @@ var lFt = /* @__PURE__ */ x((t, e) => { }, a; }, "class_box"), dG = { rhombus: hG, - composite: aFt, + composite: lFt, question: hG, - rect: sFt, - labelRect: oFt, - rectWithTitle: lFt, - choice: HBt, - circle: uFt, - doublecircle: hFt, - stadium: cFt, - hexagon: ZBt, - block_arrow: jBt, - rect_left_inv_arrow: KBt, - lean_right: JBt, - lean_left: eFt, - trapezoid: tFt, - inv_trapezoid: rFt, - rect_right_inv_arrow: nFt, - cylinder: iFt, - start: dFt, - end: pFt, - note: XBt, - subroutine: fFt, + rect: oFt, + labelRect: cFt, + rectWithTitle: uFt, + choice: jBt, + circle: fFt, + doublecircle: dFt, + stadium: hFt, + hexagon: KBt, + block_arrow: JBt, + rect_left_inv_arrow: eFt, + lean_right: tFt, + lean_left: rFt, + trapezoid: nFt, + inv_trapezoid: iFt, + rect_right_inv_arrow: sFt, + cylinder: aFt, + start: gFt, + end: mFt, + note: ZBt, + subroutine: pFt, fork: fG, join: fG, - class_box: gFt + class_box: vFt }, Wg = {}, kI = /* @__PURE__ */ x(async (t, e, r) => { let n, i; if (e.link) { @@ -70008,9 +70014,9 @@ var lFt = /* @__PURE__ */ x((t, e) => { } else i = await dG[e.shape](t, e, r), n = i; return e.tooltip && i.attr("title", e.tooltip), e.class && i.attr("class", "node default " + e.class), Wg[e.id] = n, e.haveCallback && Wg[e.id].attr("class", Wg[e.id].attr("class") + " clickable"), n; -}, "insertNode"), mFt = /* @__PURE__ */ x((t, e) => { +}, "insertNode"), yFt = /* @__PURE__ */ x((t, e) => { Wg[e.id] = t; -}, "setNodeElem"), vFt = /* @__PURE__ */ x(() => { +}, "setNodeElem"), bFt = /* @__PURE__ */ x(() => { Wg = {}; }, "clear"), WL = /* @__PURE__ */ x((t) => { const e = Wg[t.id]; @@ -70025,19 +70031,19 @@ var lFt = /* @__PURE__ */ x((t, e) => { "transform", "translate(" + (t.x + n - t.width / 2) + ", " + (t.y - t.height / 2 - r) + ")" ) : e.attr("transform", "translate(" + t.x + ", " + t.y + ")"), n; -}, "positionNode"), yFt = "flowchart-", pG = 0, Zm = ke(), ed = /* @__PURE__ */ new Map(), Va = [], xb = /* @__PURE__ */ new Map(), kh = [], SI = /* @__PURE__ */ new Map(), TI = /* @__PURE__ */ new Map(), z5 = 0, GL = !0, qo, aE, oE = [], lE = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Zm), "sanitizeText"), cE = /* @__PURE__ */ x(function(t) { +}, "positionNode"), xFt = "flowchart-", pG = 0, Zm = ke(), ed = /* @__PURE__ */ new Map(), Va = [], xb = /* @__PURE__ */ new Map(), kh = [], SI = /* @__PURE__ */ new Map(), TI = /* @__PURE__ */ new Map(), z5 = 0, GL = !0, qo, aE, oE = [], lE = /* @__PURE__ */ x((t) => mt.sanitizeText(t, Zm), "sanitizeText"), cE = /* @__PURE__ */ x(function(t) { for (const e of ed.values()) if (e.id === t) return e.domId; return t; -}, "lookUpDomId"), bFt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { +}, "lookUpDomId"), wFt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a = {}) { if (!t || t.trim().length === 0) return; let o, l = ed.get(t); l === void 0 && (l = { id: t, labelType: "text", - domId: yFt + t + "-" + pG, + domId: xFt + t + "-" + pG, styles: [], classes: [] }, ed.set(t, l)), pG++, e !== void 0 ? (Zm = ke(), o = lE(e.text.trim()), l.labelType = e.type, o.startsWith('"') && o.endsWith('"') && (o = o.substring(1, o.length - 1)), l.text = o) : l.text === void 0 && (l.text = t), r !== void 0 && (l.type = r), n != null && n.forEach(function(u) { @@ -70045,7 +70051,7 @@ var lFt = /* @__PURE__ */ x((t, e) => { }), i != null && i.forEach(function(u) { l.classes.push(u); }), s !== void 0 && (l.dir = s), l.props === void 0 ? l.props = a : a !== void 0 && Object.assign(l.props, a); -}, "addVertex"), xFt = /* @__PURE__ */ x(function(t, e, r) { +}, "addVertex"), OFt = /* @__PURE__ */ x(function(t, e, r) { var o; const s = { start: t, end: e, type: void 0, text: "", labelType: "text" }; H.info("abc78 Got edge...", s); @@ -70060,16 +70066,16 @@ Initialize mermaid with maxEdges set to a higher number to allow more edges. You cannot set this config via configuration inside the diagram as it is a secure config. You have to call mermaid.initialize.` ); -}, "addSingleLink"), wFt = /* @__PURE__ */ x(function(t, e, r) { +}, "addSingleLink"), kFt = /* @__PURE__ */ x(function(t, e, r) { H.info("addLink", t, e, r); for (const n of t) for (const i of e) - xFt(n, i, r); -}, "addLink"), OFt = /* @__PURE__ */ x(function(t, e) { + OFt(n, i, r); +}, "addLink"), SFt = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { r === "default" ? Va.defaultInterpolate = e : Va[r].interpolate = e; }); -}, "updateLinkInterpolate"), kFt = /* @__PURE__ */ x(function(t, e) { +}, "updateLinkInterpolate"), TFt = /* @__PURE__ */ x(function(t, e) { t.forEach(function(r) { var n, i, s, a, o, l, u; if (typeof r == "number" && r >= Va.length) @@ -70078,7 +70084,7 @@ You have to call mermaid.initialize.` ); r === "default" ? Va.defaultStyle = e : (Va[r].style = e, ((s = (i = (n = Va[r]) == null ? void 0 : n.style) == null ? void 0 : i.length) != null ? s : 0) > 0 && !((o = (a = Va[r]) == null ? void 0 : a.style) != null && o.some((h) => h == null ? void 0 : h.startsWith("fill"))) && ((u = (l = Va[r]) == null ? void 0 : l.style) == null || u.push("fill:none"))); }); -}, "updateLink"), SFt = /* @__PURE__ */ x(function(t, e) { +}, "updateLink"), CFt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = xb.get(r); n === void 0 && (n = { id: r, styles: [], textStyles: [] }, xb.set(r, n)), e != null && e.forEach(function(i) { @@ -70089,7 +70095,7 @@ You have to call mermaid.initialize.` n.styles.push(i); }); }); -}, "addClass"), TFt = /* @__PURE__ */ x(function(t) { +}, "addClass"), EFt = /* @__PURE__ */ x(function(t) { qo = t, /.*/.exec(qo) && (qo = "LR"), /.*v/.exec(qo) && (qo = "TB"), qo === "TD" && (qo = "TB"); }, "setDirection"), CI = /* @__PURE__ */ x(function(t, e) { for (const r of t.split(",")) { @@ -70098,13 +70104,13 @@ You have to call mermaid.initialize.` const i = SI.get(r); i && i.classes.push(e); } -}, "setClass"), CFt = /* @__PURE__ */ x(function(t, e) { +}, "setClass"), _Ft = /* @__PURE__ */ x(function(t, e) { if (e !== void 0) { e = lE(e); for (const r of t.split(",")) TI.set(aE === "gen-1" ? cE(r) : r, e); } -}, "setTooltip"), EFt = /* @__PURE__ */ x(function(t, e, r) { +}, "setTooltip"), AFt = /* @__PURE__ */ x(function(t, e, r) { const n = cE(t); if (ke().securityLevel !== "loose" || e === void 0) return; @@ -70128,18 +70134,18 @@ You have to call mermaid.initialize.` !1 ); })); -}, "setClickFun"), _Ft = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickFun"), LFt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { const i = ed.get(n); i !== void 0 && (i.link = gr.formatUrl(e, Zm), i.linkTarget = r); }), CI(t, "clickable"); }, "setLink"), r0e = /* @__PURE__ */ x(function(t) { return TI.get(t); -}, "getTooltip"), AFt = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), RFt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - EFt(n, e, r); + AFt(n, e, r); }), CI(t, "clickable"); -}, "setClickEvent"), LFt = /* @__PURE__ */ x(function(t) { +}, "setClickEvent"), MFt = /* @__PURE__ */ x(function(t) { oE.forEach(function(e) { e(t); }); @@ -70149,7 +70155,7 @@ You have to call mermaid.initialize.` return ed; }, "getVertices"), s0e = /* @__PURE__ */ x(function() { return Va; -}, "getEdges"), RFt = /* @__PURE__ */ x(function() { +}, "getEdges"), DFt = /* @__PURE__ */ x(function() { return xb; }, "getClasses"), a0e = /* @__PURE__ */ x(function(t) { let e = ht(".mermaidTooltip"); @@ -70164,13 +70170,13 @@ You have to call mermaid.initialize.` }); }, "setupToolTips"); oE.push(a0e); -var MFt = /* @__PURE__ */ x(function(t = "gen-1") { +var PFt = /* @__PURE__ */ x(function(t = "gen-1") { ed = /* @__PURE__ */ new Map(), xb = /* @__PURE__ */ new Map(), Va = [], oE = [a0e], kh = [], SI = /* @__PURE__ */ new Map(), z5 = 0, TI = /* @__PURE__ */ new Map(), GL = !0, aE = t, Zm = ke(), ls(); -}, "clear"), DFt = /* @__PURE__ */ x((t) => { +}, "clear"), NFt = /* @__PURE__ */ x((t) => { aE = t || "gen-2"; -}, "setGen"), PFt = /* @__PURE__ */ x(function() { +}, "setGen"), IFt = /* @__PURE__ */ x(function() { return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;"; -}, "defaultStyle"), NFt = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultStyle"), $Ft = /* @__PURE__ */ x(function(t, e, r) { let n = t.text.trim(), i = r.text; t === r && /\s/.exec(r.text) && (n = void 0); function s(u) { @@ -70196,7 +70202,7 @@ var MFt = /* @__PURE__ */ x(function(t = "gen-1") { labelType: r.type }; return H.info("Adding", l.id, l.nodes, l.dir), l.nodes = h0e(l, kh).nodes, kh.push(l), SI.set(n, l), n; -}, "addSubGraph"), IFt = /* @__PURE__ */ x(function(t) { +}, "addSubGraph"), BFt = /* @__PURE__ */ x(function(t) { for (const [e, r] of kh.entries()) if (r.id === t) return e; @@ -70215,7 +70221,7 @@ var MFt = /* @__PURE__ */ x(function(t = "gen-1") { }; let n = 0, i = 1; for (; n < r.length; ) { - const s = IFt(r[n]); + const s = BFt(r[n]); if (s >= 0) { const a = l0e(t, s); if (a.result) @@ -70231,13 +70237,13 @@ var MFt = /* @__PURE__ */ x(function(t = "gen-1") { result: !1, count: i }; -}, "indexNodes2"), $Ft = /* @__PURE__ */ x(function(t) { +}, "indexNodes2"), FFt = /* @__PURE__ */ x(function(t) { return o0e[t]; -}, "getDepthFirstPos"), BFt = /* @__PURE__ */ x(function() { +}, "getDepthFirstPos"), zFt = /* @__PURE__ */ x(function() { gy = -1, kh.length > 0 && l0e("none", kh.length - 1); }, "indexNodes"), c0e = /* @__PURE__ */ x(function() { return kh; -}, "getSubGraphs"), FFt = /* @__PURE__ */ x(() => GL ? (GL = !1, !0) : !1, "firstGraph"), zFt = /* @__PURE__ */ x((t) => { +}, "getSubGraphs"), QFt = /* @__PURE__ */ x(() => GL ? (GL = !1, !0) : !1, "firstGraph"), UFt = /* @__PURE__ */ x((t) => { let e = t.trim(), r = "arrow_open"; switch (e[0]) { case "<": @@ -70252,13 +70258,13 @@ var MFt = /* @__PURE__ */ x(function(t = "gen-1") { } let n = "normal"; return e.includes("=") && (n = "thick"), e.includes(".") && (n = "dotted"), { type: r, stroke: n }; -}, "destructStartLink"), QFt = /* @__PURE__ */ x((t, e) => { +}, "destructStartLink"), VFt = /* @__PURE__ */ x((t, e) => { const r = e.length; let n = 0; for (let i = 0; i < r; ++i) e[i] === t && ++n; return n; -}, "countChar"), UFt = /* @__PURE__ */ x((t) => { +}, "countChar"), qFt = /* @__PURE__ */ x((t) => { const e = t.trim(); let r = e.slice(0, -1), n = "arrow_open"; switch (e.slice(-1)) { @@ -70274,13 +70280,13 @@ var MFt = /* @__PURE__ */ x(function(t = "gen-1") { } let i = "normal", s = r.length - 1; r.startsWith("=") && (i = "thick"), r.startsWith("~") && (i = "invisible"); - const a = QFt(".", r); + const a = VFt(".", r); return a && (i = "dotted", s = a), { type: n, stroke: i, length: s }; -}, "destructEndLink"), VFt = /* @__PURE__ */ x((t, e) => { - const r = UFt(t); +}, "destructEndLink"), YFt = /* @__PURE__ */ x((t, e) => { + const r = qFt(t); let n; if (e) { - if (n = zFt(e), n.stroke !== r.stroke) + if (n = UFt(e), n.stroke !== r.stroke) return { type: "INVALID", stroke: "INVALID" }; if (n.type === "arrow_open") n.type = r.type; @@ -70302,12 +70308,12 @@ var MFt = /* @__PURE__ */ x(function(t = "gen-1") { return t.nodes.forEach((n, i) => { u0e(e, n) || r.push(t.nodes[i]); }), { nodes: r }; -}, "makeUniq"), qFt = { - firstGraph: FFt -}, YFt = /* @__PURE__ */ x((t) => { +}, "makeUniq"), WFt = { + firstGraph: QFt +}, GFt = /* @__PURE__ */ x((t) => { var e; return t.type === "square" ? "squareRect" : t.type === "round" ? "roundedRect" : (e = t.type) != null ? e : "squareRect"; -}, "getTypeFromVertex"), WFt = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), GFt = /* @__PURE__ */ x((t) => { +}, "getTypeFromVertex"), XFt = /* @__PURE__ */ x((t, e) => t.find((r) => r.id === e), "findNode"), HFt = /* @__PURE__ */ x((t) => { let e = "none", r = "arrow_point"; switch (t) { case "arrow_point": @@ -70322,9 +70328,9 @@ var MFt = /* @__PURE__ */ x(function(t = "gen-1") { break; } return { arrowTypeStart: e, arrowTypeEnd: r }; -}, "destructEdgeType"), XFt = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "destructEdgeType"), ZFt = /* @__PURE__ */ x((t, e, r, n, i, s) => { var u, h; - const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = WFt(e, t.id); + const a = r.get(t.id), o = (u = n.get(t.id)) != null ? u : !1, l = XFt(e, t.id); l ? (l.cssStyles = t.styles, l.cssCompiledStyles = pS(t.classes), l.cssClasses = t.classes.join(" ")) : e.push({ id: t.id, label: t.text, @@ -70334,7 +70340,7 @@ var MFt = /* @__PURE__ */ x(function(t = "gen-1") { cssStyles: t.styles, cssCompiledStyles: pS(["default", "node", ...t.classes]), cssClasses: "default " + t.classes.join(" "), - shape: YFt(t), + shape: GFt(t), dir: t.dir, domId: t.domId, isGroup: o, @@ -70354,7 +70360,7 @@ function pS(t) { return e; } x(pS, "getCompiledStyles"); -var HFt = /* @__PURE__ */ x(() => { +var jFt = /* @__PURE__ */ x(() => { const t = ke(), e = [], r = [], n = c0e(), i = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(); for (let l = n.length - 1; l >= 0; l--) { const u = n[l]; @@ -70379,12 +70385,12 @@ var HFt = /* @__PURE__ */ x(() => { }); } i0e().forEach((l) => { - XFt(l, e, i, s, t, t.look || "classic"); + ZFt(l, e, i, s, t, t.look || "classic"); }); const o = s0e(); return o.forEach((l, u) => { var g, m; - const { arrowTypeStart: h, arrowTypeEnd: f } = GFt(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; + const { arrowTypeStart: h, arrowTypeEnd: f } = HFt(l.type), d = [...(g = o.defaultStyle) != null ? g : []]; l.style && d.push(...l.style); const p = { id: Zoe(l.start, l.end, { counter: u, prefix: "L" }), @@ -70411,41 +70417,41 @@ var HFt = /* @__PURE__ */ x(() => { setAccTitle: cs, getAccTitle: Ds, getAccDescription: Ns, - getData: HFt, + getData: jFt, setAccDescription: Ps, - addVertex: bFt, + addVertex: wFt, lookUpDomId: cE, - addLink: wFt, - updateLinkInterpolate: OFt, - updateLink: kFt, - addClass: SFt, - setDirection: TFt, + addLink: kFt, + updateLinkInterpolate: SFt, + updateLink: TFt, + addClass: CFt, + setDirection: EFt, setClass: CI, - setTooltip: CFt, + setTooltip: _Ft, getTooltip: r0e, - setClickEvent: AFt, - setLink: _Ft, - bindFunctions: LFt, + setClickEvent: RFt, + setLink: LFt, + bindFunctions: MFt, getDirection: n0e, getVertices: i0e, getEdges: s0e, - getClasses: RFt, - clear: MFt, - setGen: DFt, - defaultStyle: PFt, - addSubGraph: NFt, - getDepthFirstPos: $Ft, - indexNodes: BFt, + getClasses: DFt, + clear: PFt, + setGen: NFt, + defaultStyle: IFt, + addSubGraph: $Ft, + getDepthFirstPos: FFt, + indexNodes: zFt, getSubGraphs: c0e, - destructLink: VFt, - lex: qFt, + destructLink: YFt, + lex: WFt, exists: u0e, makeUniq: h0e, setDiagramTitle: Na, getDiagramTitle: Is -}, ZFt = /* @__PURE__ */ x(function(t, e) { +}, KFt = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), jFt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), JFt = /* @__PURE__ */ x(async function(t, e, r, n) { var p, g; H.info("REF0:"), H.info("Drawing state diagram (v2)", e); const { securityLevel: i, flowchart: s, layout: a } = ke(); @@ -70483,9 +70489,9 @@ var HFt = /* @__PURE__ */ x(() => { return O.node(); }); } -}, "draw"), KFt = { - getClasses: ZFt, - draw: jFt +}, "draw"), ezt = { + getClasses: KFt, + draw: JFt }, XL = function() { var t = /* @__PURE__ */ x(function(lr, ut, Et, Pt) { for (Et = Et || {}, Pt = lr.length; Pt--; Et[lr[Pt]] = ut) @@ -71255,10 +71261,10 @@ Expecting ` + Fa.join(", ") + ", got '" + (this.terminals_[$n] || $n) + "'" : fv return x(br, "Parser"), br.prototype = Xe, Xe.Parser = br, new br(); }(); XL.parser = XL; -var JFt = XL, ezt = /* @__PURE__ */ x((t, e) => { +var tzt = XL, rzt = /* @__PURE__ */ x((t, e) => { const r = Dse, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return k0(n, i, s, e); -}, "fade"), tzt = /* @__PURE__ */ x((t) => `.label { +}, "fade"), nzt = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -71338,7 +71344,7 @@ var JFt = XL, ezt = /* @__PURE__ */ x((t, e) => { /* For html labels only */ .labelBkg { - background-color: ${ezt(t.edgeLabelBackground, 0.5)}; + background-color: ${rzt(t.edgeLabelBackground, 0.5)}; // background-color: } @@ -71378,47 +71384,47 @@ var JFt = XL, ezt = /* @__PURE__ */ x((t, e) => { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), rzt = tzt, nzt = { - parser: JFt, +`, "getStyles"), izt = nzt, szt = { + parser: tzt, db: NA, - renderer: KFt, - styles: rzt, + renderer: ezt, + styles: izt, init: /* @__PURE__ */ x((t) => { t.flowchart || (t.flowchart = {}), t.layout && FV({ layout: t.layout }), t.flowchart.arrowMarkerAbsolute = t.arrowMarkerAbsolute, FV({ flowchart: { arrowMarkerAbsolute: t.arrowMarkerAbsolute } }), NA.clear(), NA.setGen("gen-2"); }, "init") }; const EI = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: nzt -}, Symbol.toStringTag, { value: "Module" })), izt = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; -function szt(t) { - return typeof t == "string" && izt.test(t); + diagram: szt +}, Symbol.toStringTag, { value: "Module" })), azt = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i; +function ozt(t) { + return typeof t == "string" && azt.test(t); } const ds = []; for (let t = 0; t < 256; ++t) ds.push((t + 256).toString(16).slice(1)); -function azt(t, e = 0) { +function lzt(t, e = 0) { return ds[t[e + 0]] + ds[t[e + 1]] + ds[t[e + 2]] + ds[t[e + 3]] + "-" + ds[t[e + 4]] + ds[t[e + 5]] + "-" + ds[t[e + 6]] + ds[t[e + 7]] + "-" + ds[t[e + 8]] + ds[t[e + 9]] + "-" + ds[t[e + 10]] + ds[t[e + 11]] + ds[t[e + 12]] + ds[t[e + 13]] + ds[t[e + 14]] + ds[t[e + 15]]; } -function ozt(t) { - if (!szt(t)) +function czt(t) { + if (!ozt(t)) throw TypeError("Invalid UUID"); let e; const r = new Uint8Array(16); return r[0] = (e = parseInt(t.slice(0, 8), 16)) >>> 24, r[1] = e >>> 16 & 255, r[2] = e >>> 8 & 255, r[3] = e & 255, r[4] = (e = parseInt(t.slice(9, 13), 16)) >>> 8, r[5] = e & 255, r[6] = (e = parseInt(t.slice(14, 18), 16)) >>> 8, r[7] = e & 255, r[8] = (e = parseInt(t.slice(19, 23), 16)) >>> 8, r[9] = e & 255, r[10] = (e = parseInt(t.slice(24, 36), 16)) / 1099511627776 & 255, r[11] = e / 4294967296 & 255, r[12] = e >>> 24 & 255, r[13] = e >>> 16 & 255, r[14] = e >>> 8 & 255, r[15] = e & 255, r; } -function lzt(t) { +function uzt(t) { t = unescape(encodeURIComponent(t)); const e = []; for (let r = 0; r < t.length; ++r) e.push(t.charCodeAt(r)); return e; } -const czt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", uzt = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; -function hzt(t, e, r) { +const hzt = "6ba7b810-9dad-11d1-80b4-00c04fd430c8", fzt = "6ba7b811-9dad-11d1-80b4-00c04fd430c8"; +function dzt(t, e, r) { function n(i, s, a, o) { var l; - if (typeof i == "string" && (i = lzt(i)), typeof s == "string" && (s = ozt(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) + if (typeof i == "string" && (i = uzt(i)), typeof s == "string" && (s = czt(s)), ((l = s) === null || l === void 0 ? void 0 : l.length) !== 16) throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)"); let u = new Uint8Array(16 + i.length); if (u.set(s), u.set(i, s.length), u = r(u), u[6] = u[6] & 15 | e, u[8] = u[8] & 63 | 128, a) { @@ -71427,15 +71433,15 @@ function hzt(t, e, r) { a[o + h] = u[h]; return a; } - return azt(u); + return lzt(u); } try { n.name = t; } catch { } - return n.DNS = czt, n.URL = uzt, n; + return n.DNS = hzt, n.URL = fzt, n; } -function fzt(t, e, r, n) { +function pzt(t, e, r, n) { switch (t) { case 0: return e & r ^ ~e & n; @@ -71450,7 +71456,7 @@ function fzt(t, e, r, n) { function IA(t, e) { return t << e | t >>> 32 - e; } -function dzt(t) { +function gzt(t) { const e = [1518500249, 1859775393, 2400959708, 3395469782], r = [1732584193, 4023233417, 2562383102, 271733878, 3285377520]; if (typeof t == "string") { const a = unescape(encodeURIComponent(t)); @@ -71476,14 +71482,14 @@ function dzt(t) { o[p] = IA(o[p - 3] ^ o[p - 8] ^ o[p - 14] ^ o[p - 16], 1); let l = r[0], u = r[1], h = r[2], f = r[3], d = r[4]; for (let p = 0; p < 80; ++p) { - const g = Math.floor(p / 20), m = IA(l, 5) + fzt(g, u, h, f) + d + e[g] + o[p] >>> 0; + const g = Math.floor(p / 20), m = IA(l, 5) + pzt(g, u, h, f) + d + e[g] + o[p] >>> 0; d = f, f = h, h = IA(u, 30) >>> 0, u = l, l = m; } r[0] = r[0] + l >>> 0, r[1] = r[1] + u >>> 0, r[2] = r[2] + h >>> 0, r[3] = r[3] + f >>> 0, r[4] = r[4] + d >>> 0; } return [r[0] >> 24 & 255, r[0] >> 16 & 255, r[0] >> 8 & 255, r[0] & 255, r[1] >> 24 & 255, r[1] >> 16 & 255, r[1] >> 8 & 255, r[1] & 255, r[2] >> 24 & 255, r[2] >> 16 & 255, r[2] >> 8 & 255, r[2] & 255, r[3] >> 24 & 255, r[3] >> 16 & 255, r[3] >> 8 & 255, r[3] & 255, r[4] >> 24 & 255, r[4] >> 16 & 255, r[4] >> 8 & 255, r[4] & 255]; } -const pzt = hzt("v5", 80, dzt), gzt = pzt; +const mzt = dzt("v5", 80, gzt), vzt = mzt; var HL = function() { var t = /* @__PURE__ */ x(function(A, E, R, _) { for (R = R || {}, _ = A.length; _--; R[A[_]] = E) @@ -71968,22 +71974,22 @@ Expecting ` + he.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : _e = return x(T, "Parser"), T.prototype = S, S.Parser = T, new T(); }(); HL.parser = HL; -var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { +var yzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], bzt = { ZERO_OR_ONE: "ZERO_OR_ONE", ZERO_OR_MORE: "ZERO_OR_MORE", ONE_OR_MORE: "ONE_OR_MORE", ONLY_ONE: "ONLY_ONE", MD_PARENT: "MD_PARENT" -}, yzt = { +}, xzt = { NON_IDENTIFYING: "NON_IDENTIFYING", IDENTIFYING: "IDENTIFYING" }, f0e = /* @__PURE__ */ x(function(t, e = void 0) { return Zd.has(t) ? !Zd.get(t).alias && e && (Zd.get(t).alias = e, H.info(`Add alias '${e}' to entity '${t}'`)) : (Zd.set(t, { attributes: [], alias: e }), H.info("Added new entity :", t)), Zd.get(t); -}, "addEntity"), bzt = /* @__PURE__ */ x(() => Zd, "getEntities"), xzt = /* @__PURE__ */ x(function(t, e) { +}, "addEntity"), wzt = /* @__PURE__ */ x(() => Zd, "getEntities"), Ozt = /* @__PURE__ */ x(function(t, e) { let r = f0e(t), n; for (n = e.length - 1; n >= 0; n--) r.attributes.push(e[n]), H.debug("Added attribute ", e[n].attributeName); -}, "addAttributes"), wzt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addAttributes"), kzt = /* @__PURE__ */ x(function(t, e, r, n) { let i = { entityA: t, roleA: e, @@ -71991,18 +71997,18 @@ var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { relSpec: n }; _I.push(i), H.debug("Added new relationship :", i); -}, "addRelationship"), Ozt = /* @__PURE__ */ x(() => _I, "getRelationships"), kzt = /* @__PURE__ */ x(function() { +}, "addRelationship"), Szt = /* @__PURE__ */ x(() => _I, "getRelationships"), Tzt = /* @__PURE__ */ x(function() { Zd = /* @__PURE__ */ new Map(), _I = [], ls(); -}, "clear"), Szt = { - Cardinality: vzt, - Identification: yzt, +}, "clear"), Czt = { + Cardinality: bzt, + Identification: xzt, getConfig: /* @__PURE__ */ x(() => ke().er, "getConfig"), addEntity: f0e, - addAttributes: xzt, - getEntities: bzt, - addRelationship: wzt, - getRelationships: Ozt, - clear: kzt, + addAttributes: Ozt, + getEntities: wzt, + addRelationship: kzt, + getRelationships: Szt, + clear: Tzt, setAccTitle: cs, getAccTitle: Ds, setAccDescription: Ps, @@ -72020,17 +72026,17 @@ var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { ZERO_OR_MORE_END: "ZERO_OR_MORE_END", MD_PARENT_END: "MD_PARENT_END", MD_PARENT_START: "MD_PARENT_START" -}, Tzt = /* @__PURE__ */ x(function(t, e) { +}, Ezt = /* @__PURE__ */ x(function(t, e) { let r; t.append("defs").append("marker").attr("id", Al.MD_PARENT_START).attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", Al.MD_PARENT_END).attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", Al.ONLY_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18 M15,0 L15,18"), t.append("defs").append("marker").attr("id", Al.ONLY_ONE_END).attr("refX", 18).attr("refY", 9).attr("markerWidth", 18).attr("markerHeight", 18).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,0 L3,18 M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", Al.ZERO_OR_ONE_START).attr("refX", 0).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 21).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M9,0 L9,18"), r = t.append("defs").append("marker").attr("id", Al.ZERO_OR_ONE_END).attr("refX", 30).attr("refY", 9).attr("markerWidth", 30).attr("markerHeight", 18).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 9).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,0 L21,18"), t.append("defs").append("marker").attr("id", Al.ONE_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q 18,0 36,18 Q 18,36 0,18 M42,9 L42,27"), t.append("defs").append("marker").attr("id", Al.ONE_OR_MORE_END).attr("refX", 27).attr("refY", 18).attr("markerWidth", 45).attr("markerHeight", 36).attr("orient", "auto").append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M3,9 L3,27 M9,18 Q27,0 45,18 Q27,36 9,18"), r = t.append("defs").append("marker").attr("id", Al.ZERO_OR_MORE_START).attr("refX", 18).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 48).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M0,18 Q18,0 36,18 Q18,36 0,18"), r = t.append("defs").append("marker").attr("id", Al.ZERO_OR_MORE_END).attr("refX", 39).attr("refY", 18).attr("markerWidth", 57).attr("markerHeight", 36).attr("orient", "auto"), r.append("circle").attr("stroke", e.stroke).attr("fill", "white").attr("cx", 9).attr("cy", 18).attr("r", 6), r.append("path").attr("stroke", e.stroke).attr("fill", "none").attr("d", "M21,18 Q39,0 57,18 Q39,36 21,18"); }, "insertMarkers"), Ll = { ERMarkers: Al, - insertMarkers: Tzt -}, Czt = /[^\dA-Za-z](\W)*/g, Ii = {}, wb = /* @__PURE__ */ new Map(), Ezt = /* @__PURE__ */ x(function(t) { + insertMarkers: Ezt +}, _zt = /[^\dA-Za-z](\W)*/g, Ii = {}, wb = /* @__PURE__ */ new Map(), Azt = /* @__PURE__ */ x(function(t) { const e = Object.keys(t); for (const r of e) Ii[r] = t[r]; -}, "setConf"), _zt = /* @__PURE__ */ x((t, e, r) => { +}, "setConf"), Lzt = /* @__PURE__ */ x((t, e, r) => { const n = Ii.entityPadding / 3, i = Ii.entityPadding / 3, s = Ii.fontSize * 0.85, a = e.node().getBBox(), o = []; let l = !1, u = !1, h = 0, f = 0, d = 0, p = 0, g = a.height + n * 2, m = 1; r.forEach((w) => { @@ -72103,7 +72109,7 @@ var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { } else b.height = Math.max(Ii.minEntityHeight, g), e.attr("transform", "translate(" + b.width / 2 + "," + b.height / 2 + ")"); return b; -}, "drawAttributes"), Azt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawAttributes"), Rzt = /* @__PURE__ */ x(function(t, e, r) { const n = [...e.keys()]; let i; return n.forEach(function(s) { @@ -72112,7 +72118,7 @@ var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { wb.set(s, a); const o = t.append("g").attr("id", a); i = i === void 0 ? a : i; - const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", ke().fontFamily).style("font-size", Ii.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = _zt( + const l = "text-" + a, u = o.append("text").classed("er entityLabel", !0).attr("id", l).attr("x", 0).attr("y", 0).style("dominant-baseline", "middle").style("text-anchor", "middle").style("font-family", ke().fontFamily).style("font-size", Ii.fontSize + "px").text((g = e.get(s).alias) != null ? g : s), { width: h, height: f } = Lzt( o, u, e.get(s).attributes @@ -72124,7 +72130,7 @@ var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { id: a }); }), i; -}, "drawEntities"), Lzt = /* @__PURE__ */ x(function(t, e) { +}, "drawEntities"), Mzt = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && t.select("#" + r).attr( "transform", @@ -72133,7 +72139,7 @@ var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { }); }, "adjustEntities"), d0e = /* @__PURE__ */ x(function(t) { return (t.entityA + t.roleA + t.entityB).replace(/\s/g, ""); -}, "getEdgeName"), Rzt = /* @__PURE__ */ x(function(t, e) { +}, "getEdgeName"), Dzt = /* @__PURE__ */ x(function(t, e) { return t.forEach(function(r) { e.setEdge( wb.get(r.entityA), @@ -72142,7 +72148,7 @@ var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { d0e(r) ); }), t; -}, "addRelationships"), gG = 0, Mzt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addRelationships"), gG = 0, Pzt = /* @__PURE__ */ x(function(t, e, r, n, i) { gG++; const s = r.edge( wb.get(e.entityA), @@ -72209,7 +72215,7 @@ var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { } const g = p.node().getBBox(); t.insert("rect", "#" + f).classed("er relationshipLabelBox", !0).attr("x", h.x - g.width / 2).attr("y", h.y - g.height / 2).attr("width", g.width).attr("height", g.height); -}, "drawRelationshipFromLayout"), Dzt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawRelationshipFromLayout"), Nzt = /* @__PURE__ */ x(function(t, e, r, n) { Ii = ke().er, H.info("Drawing ER diagram"); const i = ke().securityLevel; let s; @@ -72231,20 +72237,20 @@ var mzt = HL, Zd = /* @__PURE__ */ new Map(), _I = [], vzt = { }).setDefaultEdgeLabel(function() { return {}; }); - const u = Azt(o, n.db.getEntities(), l), h = Rzt(n.db.getRelationships(), l); - q1(l), Lzt(o, l), h.forEach(function(m) { - Mzt(o, m, l, u, n); + const u = Rzt(o, n.db.getEntities(), l), h = Dzt(n.db.getRelationships(), l); + q1(l), Mzt(o, l), h.forEach(function(m) { + Pzt(o, m, l, u, n); }); const f = Ii.diagramPadding; gr.insertTitle(o, "entityTitleText", Ii.titleTopMargin, n.db.getDiagramTitle()); const d = o.node().getBBox(), p = d.width + f * 2, g = d.height + f * 2; Ms(o, g, p, Ii.useMaxWidth), o.attr("viewBox", `${d.x - f} ${d.y - f} ${p} ${g}`); -}, "draw"), Pzt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; +}, "draw"), Izt = "28e9f9db-3c8d-5aa5-9faf-44286ae5937c"; function p0e(t = "", e = "") { - const r = t.replace(Czt, ""); - return `${ZL(e)}${ZL(r)}${gzt( + const r = t.replace(_zt, ""); + return `${ZL(e)}${ZL(r)}${vzt( t, - Pzt + Izt )}`; } x(p0e, "generateId"); @@ -72252,10 +72258,10 @@ function ZL(t = "") { return t.length > 0 ? `${t}-` : ""; } x(ZL, "strWithHyphen"); -var Nzt = { - setConf: Ezt, - draw: Dzt -}, Izt = /* @__PURE__ */ x((t) => ` +var $zt = { + setConf: Azt, + draw: Nzt +}, Bzt = /* @__PURE__ */ x((t) => ` .entityBox { fill: ${t.mainBkg}; stroke: ${t.nodeBorder}; @@ -72300,15 +72306,15 @@ var Nzt = { stroke-width: 1; } -`, "getStyles"), $zt = Izt, Bzt = { - parser: mzt, - db: Szt, - renderer: Nzt, - styles: $zt +`, "getStyles"), Fzt = Bzt, zzt = { + parser: yzt, + db: Czt, + renderer: $zt, + styles: Fzt }; -const Fzt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Qzt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Bzt + diagram: zzt }, Symbol.toStringTag, { value: "Module" })); function kw(t, e) { var r, n, i; @@ -72331,7 +72337,7 @@ function Js(t) { function Gc(t) { return typeof t == "object" && t !== null && typeof t.$refText == "string"; } -function zzt(t) { +function Uzt(t) { return typeof t == "object" && t !== null && typeof t.name == "string" && typeof t.type == "string" && typeof t.path == "string"; } function Q5(t) { @@ -72447,7 +72453,7 @@ class Gs { const r = this.iterator(); let n = "", i, s = !1; do - i = r.next(), i.done || (s && (n += e), n += Qzt(i.value)), s = !0; + i = r.next(), i.done || (s && (n += e), n += Vzt(i.value)), s = !0; while (!i.done); return n; } @@ -72633,13 +72639,13 @@ class Gs { }); } } -function Qzt(t) { +function Vzt(t) { return typeof t == "string" ? t : typeof t > "u" ? "undefined" : typeof t.toString == "function" ? t.toString() : Object.prototype.toString.call(t); } function gS(t) { return !!t && typeof t[Symbol.iterator] == "function"; } -const Uzt = new Gs(() => { +const qzt = new Gs(() => { }, () => Go), Go = Object.freeze({ done: !0, value: void 0 }); function ws(...t) { if (t.length === 1) { @@ -72670,7 +72676,7 @@ function ws(...t) { } } while (e.iterator || e.array || e.collIndex < t.length); return Go; - }) : Uzt; + }) : qzt; } class mS extends Gs { constructor(e, r, n) { @@ -72722,7 +72728,7 @@ var jL; function KL(t) { return new mS(t, (e) => jm(e) ? e.content : [], { includeRoot: !0 }); } -function Vzt(t, e) { +function Yzt(t, e) { for (; t.container; ) if (t = t.container, t === e) return !0; @@ -72755,7 +72761,7 @@ var rf; (function(t) { t[t.Before = 0] = "Before", t[t.After = 1] = "After", t[t.OverlapFront = 2] = "OverlapFront", t[t.OverlapBack = 3] = "OverlapBack", t[t.Inside = 4] = "Inside"; })(rf || (rf = {})); -function qzt(t, e) { +function Wzt(t, e) { if (t.end.line < e.start.line || t.end.line === e.start.line && t.end.character < t.start.character) return rf.Before; if (t.start.line > e.end.line || t.start.line === e.end.line && t.start.character > e.end.character) @@ -72763,13 +72769,13 @@ function qzt(t, e) { const r = t.start.line > e.start.line || t.start.line === e.start.line && t.start.character >= e.start.character, n = t.end.line < e.end.line || t.end.line === e.end.line && t.end.character <= e.end.character; return r && n ? rf.Inside : r ? rf.OverlapBack : rf.OverlapFront; } -function Yzt(t, e) { - return qzt(t, e) > rf.After; -} -const Wzt = /^[\w\p{L}]$/u; function Gzt(t, e) { + return Wzt(t, e) > rf.After; +} +const Xzt = /^[\w\p{L}]$/u; +function Hzt(t, e) { if (t) { - const r = Xzt(t, !0); + const r = Zzt(t, !0); if (r && mG(r, e)) return r; if (v0e(t)) { @@ -72785,7 +72791,7 @@ function Gzt(t, e) { function mG(t, e) { return m0e(t) && e.includes(t.tokenType.name); } -function Xzt(t, e = !0) { +function Zzt(t, e = !0) { for (; t.container; ) { const r = t.container; let n = r.content.indexOf(t); @@ -72806,23 +72812,23 @@ class y0e extends Error { function uE(t) { throw new Error("Error! The input value was not handled."); } -const $A = "AbstractRule", BA = "AbstractType", vG = "Condition", Hzt = "TypeDefinition", yG = "ValueLiteral", b0e = "AbstractElement"; -function Zzt(t) { +const $A = "AbstractRule", BA = "AbstractType", vG = "Condition", jzt = "TypeDefinition", yG = "ValueLiteral", b0e = "AbstractElement"; +function Kzt(t) { return sn.isInstance(t, b0e); } -const jzt = "ArrayLiteral", Kzt = "ArrayType", x0e = "BooleanLiteral"; -function Jzt(t) { +const Jzt = "ArrayLiteral", eQt = "ArrayType", x0e = "BooleanLiteral"; +function tQt(t) { return sn.isInstance(t, x0e); } const w0e = "Conjunction"; -function eQt(t) { +function rQt(t) { return sn.isInstance(t, w0e); } const O0e = "Disjunction"; -function tQt(t) { +function nQt(t) { return sn.isInstance(t, O0e); } -const rQt = "Grammar", k0e = "InferredType"; +const iQt = "Grammar", k0e = "InferredType"; function S0e(t) { return sn.isInstance(t, k0e); } @@ -72831,26 +72837,26 @@ function C0e(t) { return sn.isInstance(t, T0e); } const E0e = "Negation"; -function nQt(t) { +function sQt(t) { return sn.isInstance(t, E0e); } -const iQt = "NumberLiteral", sQt = "Parameter", _0e = "ParameterReference"; -function aQt(t) { +const aQt = "NumberLiteral", oQt = "Parameter", _0e = "ParameterReference"; +function lQt(t) { return sn.isInstance(t, _0e); } const A0e = "ParserRule"; function wl(t) { return sn.isInstance(t, A0e); } -const oQt = "ReferenceType", lQt = "ReturnType"; -function cQt(t) { - return sn.isInstance(t, lQt); +const cQt = "ReferenceType", uQt = "ReturnType"; +function hQt(t) { + return sn.isInstance(t, uQt); } const L0e = "SimpleType"; -function uQt(t) { +function fQt(t) { return sn.isInstance(t, L0e); } -const hQt = "StringLiteral", eR = "TerminalRule"; +const dQt = "StringLiteral", eR = "TerminalRule"; function Dp(t) { return sn.isInstance(t, eR); } @@ -72858,7 +72864,7 @@ const R0e = "Type"; function M0e(t) { return sn.isInstance(t, R0e); } -const fQt = "UnionType", D0e = "Action"; +const pQt = "UnionType", D0e = "Action"; function hE(t) { return sn.isInstance(t, D0e); } @@ -72871,7 +72877,7 @@ function H0(t) { return sn.isInstance(t, I0e); } const $0e = "CharacterRange"; -function dQt(t) { +function gQt(t) { return sn.isInstance(t, $0e); } const B0e = "CrossReference"; @@ -72879,7 +72885,7 @@ function LI(t) { return sn.isInstance(t, B0e); } const F0e = "EndOfFile"; -function pQt(t) { +function mQt(t) { return sn.isInstance(t, F0e); } const z0e = "Group"; @@ -72891,11 +72897,11 @@ function Z0(t) { return sn.isInstance(t, Q0e); } const U0e = "NegatedToken"; -function gQt(t) { +function vQt(t) { return sn.isInstance(t, U0e); } const V0e = "RegexToken"; -function mQt(t) { +function yQt(t) { return sn.isInstance(t, V0e); } const q0e = "RuleCall"; @@ -72903,11 +72909,11 @@ function j0(t) { return sn.isInstance(t, q0e); } const Y0e = "TerminalAlternatives"; -function vQt(t) { +function bQt(t) { return sn.isInstance(t, Y0e); } const W0e = "TerminalGroup"; -function yQt(t) { +function xQt(t) { return sn.isInstance(t, W0e); } const G0e = "TerminalRuleCall"; @@ -72919,11 +72925,11 @@ function Z0e(t) { return sn.isInstance(t, H0e); } const j0e = "UntilToken"; -function bQt(t) { +function wQt(t) { return sn.isInstance(t, j0e); } const K0e = "Wildcard"; -function xQt(t) { +function OQt(t) { return sn.isInstance(t, K0e); } class J0e extends g0e { @@ -72950,15 +72956,15 @@ class J0e extends g0e { case j0e: case K0e: return this.isSubtype(b0e, r); - case jzt: - case iQt: - case hQt: + case Jzt: + case aQt: + case dQt: return this.isSubtype(yG, r); - case Kzt: - case oQt: + case eQt: + case cQt: case L0e: - case fQt: - return this.isSubtype(Hzt, r); + case pQt: + return this.isSubtype(jzt, r); case x0e: return this.isSubtype(vG, r) || this.isSubtype(yG, r); case w0e: @@ -72992,10 +72998,10 @@ class J0e extends g0e { case "RuleCall:rule": return $A; case "Grammar:usedGrammars": - return rQt; + return iQt; case "NamedArgument:parameter": case "ParameterReference:parameter": - return sQt; + return oQt; case "TerminalRuleCall:rule": return eR; default: @@ -73377,7 +73383,7 @@ class J0e extends g0e { } } const sn = new J0e(); -function wQt(t) { +function kQt(t) { for (const [e, r] of Object.entries(t)) e.startsWith("$") || (Array.isArray(r) ? r.forEach((n, i) => { Js(n) && (n.$container = t, n.$containerProperty = e, n.$containerIndex = i); @@ -73392,12 +73398,12 @@ function fE(t, e) { } } function hu(t) { - const r = OQt(t).$document; + const r = SQt(t).$document; if (!r) throw new Error("AST node has no document."); return r; } -function OQt(t) { +function SQt(t) { for (; t.$container; ) t = t.$container; return t; @@ -73450,7 +73456,7 @@ function tR(t, e) { if (!e) return !0; const n = (r = t.$cstNode) === null || r === void 0 ? void 0 : r.range; - return n ? Yzt(n, e) : !1; + return n ? Gzt(n, e) : !1; } function epe(t) { return new Gs(() => ({ @@ -73478,7 +73484,7 @@ function epe(t) { return Go; }); } -function kQt(t, e) { +function TQt(t, e) { const r = t.getTypeMetaData(e.$type), n = e; for (const i of r.properties) i.defaultValue !== void 0 && n[i.name] === void 0 && (n[i.name] = tpe(i.defaultValue)); @@ -73504,7 +73510,7 @@ function Hp(t) { throw Error("Internal Error - Should never get here!"); return !0; } -function SQt() { +function CQt() { throw Error("Internal Error - Should never get here!"); } function bG(t) { @@ -73546,7 +73552,7 @@ const xG = [ dr("\u205F"), dr("\u3000"), dr("\uFEFF") -], TQt = /[0-9a-fA-F]/, m4 = /[0-9]/, CQt = /[1-9]/; +], EQt = /[0-9a-fA-F]/, m4 = /[0-9]/, _Qt = /[1-9]/; class rpe { constructor() { this.idx = 0, this.input = "", this.groupIdx = 0; @@ -73659,7 +73665,7 @@ class rpe { loc: this.loc(e) }; } - return SQt(); + return CQt(); } quantifier(e = !1) { let r; @@ -73946,7 +73952,7 @@ class rpe { } positiveInteger() { let e = this.popChar(); - if (CQt.test(e) === !1) + if (_Qt.test(e) === !1) throw Error("Expecting a positive integer"); for (; m4.test(this.peekChar(0)); ) e += this.popChar(); @@ -74088,7 +74094,7 @@ class rpe { let r = ""; for (let i = 0; i < e; i++) { const s = this.popChar(); - if (TQt.test(s) === !1) + if (EQt.test(s) === !1) throw Error("Expecting a HexDecimal digits"); r += s; } @@ -74202,8 +74208,8 @@ class dE { visitQuantifier(e) { } } -const EQt = /\r?\n/gm, _Qt = new rpe(); -class AQt extends dE { +const AQt = /\r?\n/gm, LQt = new rpe(); +class RQt extends dE { constructor() { super(...arguments), this.isStarting = !0, this.endRegexpStack = [], this.multiline = !1; } @@ -74243,10 +74249,10 @@ class AQt extends dE { e.type === "Group" && e.quantifier || super.visitChildren(e); } } -const zA = new AQt(); -function LQt(t) { +const zA = new RQt(); +function MQt(t) { try { - return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), zA.reset(t), zA.visit(_Qt.pattern(t)), zA.multiline; + return typeof t == "string" && (t = new RegExp(t)), t = t.toString(), zA.reset(t), zA.visit(LQt.pattern(t)), zA.multiline; } catch { return !1; } @@ -74257,14 +74263,14 @@ function wG(t) { function pE(t) { return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } -function RQt(t) { +function DQt(t) { return Array.prototype.map.call(t, (e) => /\w/.test(e) ? `[${e.toLowerCase()}${e.toUpperCase()}]` : pE(e)).join(""); } -function MQt(t, e) { - const r = DQt(t), n = e.match(r); +function PQt(t, e) { + const r = NQt(t), n = e.match(r); return !!n && n[0].length > 0; } -function DQt(t) { +function NQt(t) { typeof t == "string" && (t = new RegExp(t)); const e = t, r = t.source; let n = 0; @@ -74352,17 +74358,17 @@ function DQt(t) { } return new RegExp(i(), t.flags); } -function PQt(t) { +function IQt(t) { return t.rules.find((e) => wl(e) && e.entry); } -function NQt(t) { +function $Qt(t) { return t.rules.filter((e) => Dp(e) && e.hidden); } function npe(t, e) { - const r = /* @__PURE__ */ new Set(), n = PQt(t); + const r = /* @__PURE__ */ new Set(), n = IQt(t); if (!n) return new Set(t.rules); - const i = [n].concat(NQt(t)); + const i = [n].concat($Qt(t)); for (const a of i) ipe(a, r, e); const s = /* @__PURE__ */ new Set(); @@ -74378,7 +74384,7 @@ function ipe(t, e, r) { } }); } -function IQt(t) { +function BQt(t) { if (t.terminal) return t.terminal; if (t.type.ref) { @@ -74386,10 +74392,10 @@ function IQt(t) { return e == null ? void 0 : e.terminal; } } -function $Qt(t) { +function FQt(t) { return t.hidden && !NI(t).test(" "); } -function BQt(t, e) { +function zQt(t, e) { return !t || !e ? [] : DI(t, e, t.astNode, !0); } function spe(t, e, r) { @@ -74407,14 +74413,14 @@ function DI(t, e, r, n) { } return jm(t) && t.astNode === r ? t.content.flatMap((i) => DI(i, e, r, !1)) : []; } -function FQt(t, e, r) { +function QQt(t, e, r) { if (!t) return; - const n = zQt(t, e, t == null ? void 0 : t.astNode); + const n = UQt(t, e, t == null ? void 0 : t.astNode); if (n.length !== 0) return r !== void 0 ? r = Math.max(0, Math.min(r, n.length - 1)) : r = 0, n[r]; } -function zQt(t, e, r) { +function UQt(t, e, r) { if (t.astNode !== r) return []; if (Z0(t.grammarSource) && t.grammarSource.value === e) @@ -74430,7 +74436,7 @@ function zQt(t, e, r) { while (!i.done); return s; } -function QQt(t) { +function VQt(t) { var e; const r = t.astNode; for (; r === ((e = t.container) === null || e === void 0 ? void 0 : e.astNode); ) { @@ -74458,7 +74464,7 @@ function ope(t, e, r) { return r.set(t, s), s; if (j0(s) && wl(s.rule.ref)) return i(s, s.rule.ref); - if (uQt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) + if (fQt(s) && ((n = s.typeRef) === null || n === void 0 ? void 0 : n.ref)) return i(s, s.typeRef.ref); } } @@ -74500,24 +74506,24 @@ function gE(t) { var e; if (wl(t)) return PI(t) ? t.name : (e = cpe(t)) !== null && e !== void 0 ? e : t.name; - if (C0e(t) || M0e(t) || cQt(t)) + if (C0e(t) || M0e(t) || hQt(t)) return t.name; if (hE(t)) { - const r = UQt(t); + const r = qQt(t); if (r) return r; } else if (S0e(t)) return t.name; throw new Error("Cannot get name of Unknown Type"); } -function UQt(t) { +function qQt(t) { var e; if (t.inferredType) return t.inferredType.name; if (!((e = t.type) === null || e === void 0) && e.ref) return gE(t.type.ref); } -function VQt(t) { +function YQt(t) { var e, r, n; return Dp(t) ? (r = (e = t.type) === null || e === void 0 ? void 0 : e.name) !== null && r !== void 0 ? r : "string" : PI(t) ? t.name : (n = cpe(t)) !== null && n !== void 0 ? n : t.name; } @@ -74531,12 +74537,12 @@ function NI(t) { } const II = /[\s\S]/.source; function Y1(t, e) { - if (vQt(t)) - return qQt(t); - if (yQt(t)) - return YQt(t); - if (dQt(t)) - return XQt(t); + if (bQt(t)) + return WQt(t); + if (xQt(t)) + return GQt(t); + if (gQt(t)) + return ZQt(t); if (X0e(t)) { const r = t.rule.ref; if (!r) @@ -74546,11 +74552,11 @@ function Y1(t, e) { lookahead: t.lookahead }); } else { - if (gQt(t)) - return GQt(t); - if (bQt(t)) - return WQt(t); - if (mQt(t)) { + if (vQt(t)) + return HQt(t); + if (wQt(t)) + return XQt(t); + if (yQt(t)) { const r = t.regex.lastIndexOf("/"), n = t.regex.substring(1, r), i = t.regex.substring(r + 1); return e && (e.i = i.includes("i"), e.s = i.includes("s"), e.u = i.includes("u")), sh(n, { cardinality: t.cardinality, @@ -74558,7 +74564,7 @@ function Y1(t, e) { wrap: !1 }); } else { - if (xQt(t)) + if (OQt(t)) return sh(II, { cardinality: t.cardinality, lookahead: t.lookahead @@ -74567,31 +74573,31 @@ function Y1(t, e) { } } } -function qQt(t) { +function WQt(t) { return sh(t.elements.map((e) => Y1(e)).join("|"), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function YQt(t) { +function GQt(t) { return sh(t.elements.map((e) => Y1(e)).join(""), { cardinality: t.cardinality, lookahead: t.lookahead }); } -function WQt(t) { +function XQt(t) { return sh(`${II}*?${Y1(t.terminal)}`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function GQt(t) { +function HQt(t) { return sh(`(?!${Y1(t.terminal)})${II}*?`, { cardinality: t.cardinality, lookahead: t.lookahead }); } -function XQt(t) { +function ZQt(t) { return t.right ? sh(`[${QA(t.left)}-${QA(t.right)}]`, { cardinality: t.cardinality, lookahead: t.lookahead, @@ -74609,13 +74615,13 @@ function sh(t, e) { var r; return (e.wrap !== !1 || e.lookahead) && (t = `(${(r = e.lookahead) !== null && r !== void 0 ? r : ""}${t})`), e.cardinality ? `${t}${e.cardinality}` : t; } -function HQt(t) { +function jQt(t) { const e = [], r = t.Grammar; for (const n of r.rules) - Dp(n) && $Qt(n) && LQt(NI(n)) && e.push(n.name); + Dp(n) && FQt(n) && MQt(NI(n)) && e.push(n.name); return { multilineCommentRules: e, - nameRegexp: Wzt + nameRegexp: Xzt }; } function rR(t) { @@ -74638,10 +74644,10 @@ function fpe(t) { } return n(), n(), t; } -function ZQt(t) { - return jQt(t) ? t.LABEL : t.name; +function KQt(t) { + return JQt(t) ? t.LABEL : t.name; } -function jQt(t) { +function JQt(t) { return ao(t.LABEL) && t.LABEL !== ""; } class Cu { @@ -74727,7 +74733,7 @@ class In { e.visit(this); } } -function KQt(t) { +function eUt(t) { return St(t, U5); } function U5(t) { @@ -74789,7 +74795,7 @@ function U5(t) { const r = { type: "Terminal", name: t.terminalType.name, - label: ZQt(t.terminalType), + label: KQt(t.terminalType), idx: t.idx }; ao(t.label) && (r.terminalLabel = t.label); @@ -74856,13 +74862,13 @@ class G1 { visitRule(e) { } } -function JQt(t) { +function tUt(t) { return t instanceof oo || t instanceof Es || t instanceof ei || t instanceof Bo || t instanceof Fo || t instanceof po || t instanceof In || t instanceof W1; } function xS(t, e = []) { return t instanceof Es || t instanceof ei || t instanceof po ? !0 : t instanceof go ? vde(t.definition, (n) => xS(n, e)) : t instanceof Ma && $a(e, t) ? !1 : t instanceof Cu ? (t instanceof Ma && e.push(t), Hl(t.definition, (n) => xS(n, e))) : !1; } -function eUt(t) { +function rUt(t) { return t instanceof go; } function Pc(t) { @@ -74963,14 +74969,14 @@ function Tw(t) { if (t instanceof Ma) return Tw(t.referencedRule); if (t instanceof In) + return sUt(t); + if (tUt(t)) return nUt(t); - if (JQt(t)) - return tUt(t); - if (eUt(t)) - return rUt(t); + if (rUt(t)) + return iUt(t); throw Error("non exhaustive match"); } -function tUt(t) { +function nUt(t) { let e = []; const r = t.definition; let n = 0, i = r.length > n, s, a = !0; @@ -74978,15 +74984,15 @@ function tUt(t) { s = r[n], a = xS(s), e = e.concat(Tw(s)), n = n + 1, i = r.length > n; return dI(e); } -function rUt(t) { +function iUt(t) { const e = St(t.definition, (r) => Tw(r)); return dI(is(e)); } -function nUt(t) { +function sUt(t) { return [t.terminalType]; } const dpe = "_~IN~_"; -class iUt extends mE { +class aUt extends mE { constructor(e) { super(), this.topProd = e, this.follows = {}; } @@ -74996,37 +75002,37 @@ class iUt extends mE { walkTerminal(e, r, n) { } walkProdRef(e, r, n) { - const i = aUt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new oo({ definition: s }), o = Tw(a); + const i = lUt(e.referencedRule, e.idx) + this.topProd.name, s = r.concat(n), a = new oo({ definition: s }), o = Tw(a); this.follows[i] = o; } } -function sUt(t) { +function oUt(t) { const e = {}; return Ve(t, (r) => { - const n = new iUt(r).startWalking(); + const n = new aUt(r).startWalking(); Po(e, n); }), e; } -function aUt(t, e) { +function lUt(t, e) { return t.name + e + dpe; } let V5 = {}; -const oUt = new rpe(); +const cUt = new rpe(); function vE(t) { const e = t.toString(); if (V5.hasOwnProperty(e)) return V5[e]; { - const r = oUt.pattern(e); + const r = cUt.pattern(e); return V5[e] = r, r; } } -function lUt() { +function uUt() { V5 = {}; } const ppe = "Complement Sets are not supported for first char optimization", wS = `Unable to use "first char" lexer optimizations: `; -function cUt(t, e = !1) { +function hUt(t, e = !1) { try { const r = vE(t); return nR(r.value, {}, r.flags.ignoreCase); @@ -75114,9 +75120,9 @@ function nR(t, e, r) { } function v4(t, e, r) { const n = td(t); - e[n] = n, r === !0 && uUt(t, e); + e[n] = n, r === !0 && fUt(t, e); } -function uUt(t, e) { +function fUt(t, e) { const r = String.fromCharCode(t), n = r.toUpperCase(); if (n !== r) { const i = td(n.charCodeAt(0)); @@ -75143,7 +75149,7 @@ function iR(t) { const e = t.quantifier; return e && e.atLeast === 0 ? !0 : t.value ? Pr(t.value) ? Hl(t.value, iR) : iR(t.value) : !1; } -class hUt extends dE { +class dUt extends dE { constructor(e) { super(), this.targetCharCodes = e, this.found = !1; } @@ -75169,14 +75175,14 @@ class hUt extends dE { } function $I(t, e) { if (e instanceof RegExp) { - const r = vE(e), n = new hUt(t); + const r = vE(e), n = new dUt(t); return n.visit(r), n.found; } else return wh(e, (r) => $a(t, r.charCodeAt(0))) !== void 0; } const K0 = "PATTERN", my = "defaultMode", y4 = "modes"; let gpe = typeof new RegExp("(?:)").sticky == "boolean"; -function fUt(t, e) { +function pUt(t, e) { e = JC(e, { useSticky: gpe, debug: !1, @@ -75188,7 +75194,7 @@ function fUt(t, e) { }); const r = e.tracer; r("initCharCodeToOptimizedIndexMap", () => { - NUt(); + $Ut(); }); let n; r("Reject Lexer.NA", () => { @@ -75259,7 +75265,7 @@ function fUt(t, e) { }); let d, p, g, m; r("Misc Mapping #2", () => { - d = St(n, mpe), p = St(s, MUt), g = Li(n, (b, w) => { + d = St(n, mpe), p = St(s, PUt), g = Li(n, (b, w) => { const O = w.GROUP; return ao(O) && O !== no.SKIPPED && (b[O] = []), b; }, {}), m = St(s, (b, w) => ({ @@ -75294,7 +75300,7 @@ function fUt(t, e) { This will disable the lexer's first char optimizations. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`); else { - const S = cUt(w.PATTERN, e.ensureOptimizations); + const S = hUt(w.PATTERN, e.ensureOptimizations); Hr(S) && (v = !1), Ve(S, (C) => { UA(b, C, m[O]); }); @@ -75313,19 +75319,19 @@ function fUt(t, e) { canBeOptimized: v }; } -function dUt(t, e) { +function gUt(t, e) { let r = []; - const n = gUt(t); + const n = vUt(t); r = r.concat(n.errors); - const i = mUt(n.valid), s = i.valid; - return r = r.concat(i.errors), r = r.concat(pUt(s)), r = r.concat(SUt(s)), r = r.concat(TUt(s, e)), r = r.concat(CUt(s)), r; + const i = yUt(n.valid), s = i.valid; + return r = r.concat(i.errors), r = r.concat(mUt(s)), r = r.concat(CUt(s)), r = r.concat(EUt(s, e)), r = r.concat(_Ut(s)), r; } -function pUt(t) { +function mUt(t) { let e = []; const r = ni(t, (n) => Oh(n[K0])); - return e = e.concat(yUt(r)), e = e.concat(wUt(r)), e = e.concat(OUt(r)), e = e.concat(kUt(r)), e = e.concat(bUt(r)), e; + return e = e.concat(xUt(r)), e = e.concat(kUt(r)), e = e.concat(SUt(r)), e = e.concat(TUt(r)), e = e.concat(wUt(r)), e; } -function gUt(t) { +function vUt(t) { const e = ni(t, (i) => !_t(i, K0)), r = St(e, (i) => ({ message: "Token Type: ->" + i.name + "<- missing static 'PATTERN' property", type: ti.MISSING_PATTERN, @@ -75333,7 +75339,7 @@ function gUt(t) { })), n = eE(t, e); return { errors: r, valid: n }; } -function mUt(t) { +function yUt(t) { const e = ni(t, (i) => { const s = i[K0]; return !Oh(s) && !ml(s) && !_t(s, "exec") && !ao(s); @@ -75344,8 +75350,8 @@ function mUt(t) { })), n = eE(t, e); return { errors: r, valid: n }; } -const vUt = /[^\\][$]/; -function yUt(t) { +const bUt = /[^\\][$]/; +function xUt(t) { class e extends dE { constructor() { super(...arguments), this.found = !1; @@ -75360,7 +75366,7 @@ function yUt(t) { const a = vE(s), o = new e(); return o.visit(a), o.found; } catch { - return vUt.test(s.source); + return bUt.test(s.source); } }); return St(r, (i) => ({ @@ -75371,7 +75377,7 @@ function yUt(t) { tokenTypes: [i] })); } -function bUt(t) { +function wUt(t) { const e = ni(t, (n) => n.PATTERN.test("")); return St(e, (n) => ({ message: "Token Type: ->" + n.name + "<- static 'PATTERN' must not match an empty string", @@ -75379,8 +75385,8 @@ function bUt(t) { tokenTypes: [n] })); } -const xUt = /[^\\[][\^]|^\^/; -function wUt(t) { +const OUt = /[^\\[][\^]|^\^/; +function kUt(t) { class e extends dE { constructor() { super(...arguments), this.found = !1; @@ -75395,7 +75401,7 @@ function wUt(t) { const a = vE(s), o = new e(); return o.visit(a), o.found; } catch { - return xUt.test(s.source); + return OUt.test(s.source); } }); return St(r, (i) => ({ @@ -75406,7 +75412,7 @@ function wUt(t) { tokenTypes: [i] })); } -function OUt(t) { +function SUt(t) { const e = ni(t, (n) => { const i = n[K0]; return i instanceof RegExp && (i.multiline || i.global); @@ -75417,7 +75423,7 @@ function OUt(t) { tokenTypes: [n] })); } -function kUt(t) { +function TUt(t) { const e = []; let r = St(t, (s) => Li(t, (a, o) => (s.PATTERN.source === o.PATTERN.source && !$a(e, o) && o.PATTERN !== no.NA && (e.push(o), a.push(o)), a), [])); r = xw(r); @@ -75431,7 +75437,7 @@ function kUt(t) { }; }); } -function SUt(t) { +function CUt(t) { const e = ni(t, (n) => { if (!_t(n, "GROUP")) return !1; @@ -75444,7 +75450,7 @@ function SUt(t) { tokenTypes: [n] })); } -function TUt(t, e) { +function EUt(t, e) { const r = ni(t, (i) => i.PUSH_MODE !== void 0 && !$a(e, i.PUSH_MODE)); return St(r, (i) => ({ message: `Token Type: ->${i.name}<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->${i.PUSH_MODE}<-which does not exist`, @@ -75452,14 +75458,14 @@ function TUt(t, e) { tokenTypes: [i] })); } -function CUt(t) { +function _Ut(t) { const e = [], r = Li(t, (n, i, s) => { const a = i.PATTERN; - return a === no.NA || (ao(a) ? n.push({ str: a, idx: s, tokenType: i }) : Oh(a) && _Ut(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; + return a === no.NA || (ao(a) ? n.push({ str: a, idx: s, tokenType: i }) : Oh(a) && LUt(a) && n.push({ str: a.source, idx: s, tokenType: i })), n; }, []); return Ve(t, (n, i) => { Ve(r, ({ str: s, idx: a, tokenType: o }) => { - if (i < a && EUt(s, n.PATTERN)) { + if (i < a && AUt(s, n.PATTERN)) { const l = `Token: ->${o.name}<- can never be matched. Because it appears AFTER the Token Type ->${n.name}<-in the lexer's definition. See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; @@ -75472,7 +75478,7 @@ See https://chevrotain.io/docs/guide/resolving_lexer_errors.html#UNREACHABLE`; }); }), e; } -function EUt(t, e) { +function AUt(t, e) { if (Oh(e)) { const r = e.exec(t); return r !== null && r.index === 0; @@ -75486,7 +75492,7 @@ function EUt(t, e) { throw Error("non exhaustive match"); } } -function _Ut(t) { +function LUt(t) { return wh([ ".", "\\", @@ -75511,7 +75517,7 @@ function TG(t) { const e = t.ignoreCase ? "iy" : "y"; return new RegExp(`${t.source}`, e); } -function AUt(t, e, r) { +function RUt(t, e, r) { const n = []; return _t(t, my) || n.push({ message: "A MultiMode Lexer cannot be initialized without a <" + my + `> property in its definition @@ -75546,7 +75552,7 @@ function AUt(t, e, r) { }); }), n; } -function LUt(t, e, r) { +function MUt(t, e, r) { const n = []; let i = !1; const s = xw(is(un(t.modes))), a = rE(s, (l) => l[K0] === no.NA), o = ype(r); @@ -75554,7 +75560,7 @@ function LUt(t, e, r) { const u = vpe(l, o); if (u !== !1) { const f = { - message: PUt(l, u), + message: IUt(l, u), type: u.issue, tokenType: l }; @@ -75570,7 +75576,7 @@ function LUt(t, e, r) { type: ti.NO_LINE_BREAKS_FLAGS }), n; } -function RUt(t) { +function DUt(t) { const e = {}, r = Bi(t); return Ve(r, (n) => { const i = t[n]; @@ -75592,10 +75598,10 @@ function mpe(t) { return !1; throw Error("non exhaustive match"); } -function MUt(t) { +function PUt(t) { return ao(t) && t.length === 1 ? t.charCodeAt(0) : !1; } -const DUt = { +const NUt = { test: function(t) { const e = t.length; for (let r = this.lastIndex; r < e; r++) { @@ -75630,7 +75636,7 @@ function vpe(t, e) { throw Error("non exhaustive match"); } } -function PUt(t, e) { +function IUt(t, e) { if (e.issue === ti.IDENTIFY_TERMINATOR) return `Warning: unable to identify line terminator usage in pattern. The problem is in the <${t.name}> Token Type @@ -75653,7 +75659,7 @@ let q5 = []; function td(t) { return t < vy ? t : q5[t]; } -function NUt() { +function $Ut() { if (Hr(q5)) { q5 = new Array(65536); for (let t = 0; t < 65536; t++) @@ -75670,12 +75676,12 @@ function OS(t, e) { let CG = 1; const bpe = {}; function Ew(t) { - const e = IUt(t); - $Ut(e), FUt(e), BUt(e), Ve(e, (r) => { + const e = BUt(t); + FUt(e), QUt(e), zUt(e), Ve(e, (r) => { r.isParent = r.categoryMatches.length > 0; }); } -function IUt(t) { +function BUt(t) { let e = Xi(t), r = t, n = !0; for (; n; ) { r = xw(is(St(r, (s) => s.CATEGORIES))); @@ -75684,19 +75690,19 @@ function IUt(t) { } return e; } -function $Ut(t) { +function FUt(t) { Ve(t, (e) => { - wpe(e) || (bpe[CG] = e, e.tokenTypeIdx = CG++), EG(e) && !Pr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), EG(e) || (e.CATEGORIES = []), zUt(e) || (e.categoryMatches = []), QUt(e) || (e.categoryMatchesMap = {}); + wpe(e) || (bpe[CG] = e, e.tokenTypeIdx = CG++), EG(e) && !Pr(e.CATEGORIES) && (e.CATEGORIES = [e.CATEGORIES]), EG(e) || (e.CATEGORIES = []), UUt(e) || (e.categoryMatches = []), VUt(e) || (e.categoryMatchesMap = {}); }); } -function BUt(t) { +function zUt(t) { Ve(t, (e) => { e.categoryMatches = [], Ve(e.categoryMatchesMap, (r, n) => { e.categoryMatches.push(bpe[n].tokenTypeIdx); }); }); } -function FUt(t) { +function QUt(t) { Ve(t, (e) => { xpe([], e); }); @@ -75715,16 +75721,16 @@ function wpe(t) { function EG(t) { return _t(t, "CATEGORIES"); } -function zUt(t) { +function UUt(t) { return _t(t, "categoryMatches"); } -function QUt(t) { +function VUt(t) { return _t(t, "categoryMatchesMap"); } -function UUt(t) { +function qUt(t) { return _t(t, "tokenTypeIdx"); } -const VUt = { +const YUt = { buildUnableToPopLexerModeMessage(t) { return `Unable to pop Lexer Mode after encountering Token ->${t.image}<- The Mode Stack is empty`; }, @@ -75744,7 +75750,7 @@ const yy = { `, "\r"], ensureOptimizations: !1, safeMode: !1, - errorMessageProvider: VUt, + errorMessageProvider: YUt, traceInitPerf: !1, skipValidations: !1, recoveryEnabled: !0 @@ -75770,7 +75776,7 @@ a boolean 2nd argument is no longer supported`); let i, s = !0; this.TRACE_INIT("Lexer Config handling", () => { if (this.config.lineTerminatorsPattern === yy.lineTerminatorsPattern) - this.config.lineTerminatorsPattern = DUt; + this.config.lineTerminatorsPattern = NUt; else if (this.config.lineTerminatorCharacters === yy.lineTerminatorCharacters) throw Error(`Error: Missing property on the Lexer config. For details See: https://chevrotain.io/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`); @@ -75781,9 +75787,9 @@ a boolean 2nd argument is no longer supported`); defaultMode: my } : (s = !1, i = Xi(e)); }), this.config.skipValidations === !1 && (this.TRACE_INIT("performRuntimeChecks", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(AUt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(RUt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); }), this.TRACE_INIT("performWarningRuntimeChecks", () => { - this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(LUt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); + this.lexerDefinitionWarning = this.lexerDefinitionWarning.concat(MUt(i, this.trackStartLines, this.config.lineTerminatorCharacters)); })), i.modes = i.modes ? i.modes : {}, Ve(i.modes, (o, l) => { i.modes[l] = rE(o, (u) => tn(u)); }); @@ -75791,12 +75797,12 @@ a boolean 2nd argument is no longer supported`); if (Ve(i.modes, (o, l) => { this.TRACE_INIT(`Mode: <${l}> processing`, () => { if (this.modes.push(l), this.config.skipValidations === !1 && this.TRACE_INIT("validatePatterns", () => { - this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(dUt(o, a)); + this.lexerDefinitionErrors = this.lexerDefinitionErrors.concat(gUt(o, a)); }), Hr(this.lexerDefinitionErrors)) { Ew(o); let u; this.TRACE_INIT("analyzeTokenTypes", () => { - u = fUt(o, { + u = pUt(o, { lineTerminatorCharacters: this.config.lineTerminatorCharacters, positionTracking: r.positionTracking, ensureOptimizations: r.ensureOptimizations, @@ -75831,7 +75837,7 @@ a boolean 2nd argument is no longer supported`); Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode. Or inspect the console log for details on how to resolve these issues.`); }), this.TRACE_INIT("clearRegExpParserCache", () => { - lUt(); + uUt(); }), this.TRACE_INIT("toFastProperties", () => { fpe(this); }); @@ -75852,7 +75858,7 @@ a boolean 2nd argument is no longer supported`); let O = 0, S = 0; const C = this.hasCustom ? 0 : Math.floor(e.length / 10), T = new Array(C), A = []; let E = this.trackStartLines ? 1 : void 0, R = this.trackStartLines ? 1 : void 0; - const _ = RUt(this.emptyGroups), L = this.trackStartLines, $ = this.config.lineTerminatorsPattern; + const _ = DUt(this.emptyGroups), L = this.trackStartLines, $ = this.config.lineTerminatorsPattern; let k = 0, N = [], M = []; const D = [], P = []; Object.freeze(P); @@ -76025,13 +76031,13 @@ function Xg(t) { function Ope(t) { return ao(t.LABEL) && t.LABEL !== ""; } -const qUt = "parent", _G = "categories", AG = "label", LG = "group", RG = "push_mode", MG = "pop_mode", DG = "longer_alt", PG = "line_breaks", NG = "start_chars_hint"; +const WUt = "parent", _G = "categories", AG = "label", LG = "group", RG = "push_mode", MG = "pop_mode", DG = "longer_alt", PG = "line_breaks", NG = "start_chars_hint"; function kpe(t) { - return YUt(t); + return GUt(t); } -function YUt(t) { +function GUt(t) { const e = t.pattern, r = {}; - if (r.name = t.name, tn(e) || (r.PATTERN = e), _t(t, qUt)) + if (r.name = t.name, tn(e) || (r.PATTERN = e), _t(t, WUt)) throw `The parent property is no longer supported. See: https://github.com/chevrotain/chevrotain/issues/564#issuecomment-349062346 for details.`; return _t(t, _G) && (r.CATEGORIES = t[_G]), Ew([r]), _t(t, AG) && (r.LABEL = t[AG]), _t(t, LG) && (r.GROUP = t[LG]), _t(t, MG) && (r.POP_MODE = t[MG]), _t(t, RG) && (r.PUSH_MODE = t[RG]), _t(t, DG) && (r.LONGER_ALT = t[DG]), _t(t, PG) && (r.LINE_BREAKS = t[PG]), _t(t, NG) && (r.START_CHARS_HINT = t[NG]), r; @@ -76086,7 +76092,7 @@ but found: '` + oc(e).image + "'"; } }; Object.freeze(Og); -const WUt = { +const XUt = { buildRuleNotFoundError(t, e) { return "Invalid grammar, reference to a rule which is not defined: ->" + e.nonTerminalName + `<- inside top level rule: ->` + t.name + "<-"; @@ -76161,11 +76167,11 @@ see: https://en.wikipedia.org/wiki/LL_parser#Left_factoring.`; return t.topLevelRule instanceof W1 ? e = t.topLevelRule.name : e = t.topLevelRule, `Duplicate definition, rule: ->${e}<- is already defined in the grammar: ->${t.grammarName}<-`; } }; -function GUt(t, e) { - const r = new XUt(t, e); +function HUt(t, e) { + const r = new ZUt(t, e); return r.resolveRefs(), r.errors; } -class XUt extends G1 { +class ZUt extends G1 { constructor(e, r) { super(), this.nameToTopRule = e, this.errMsgProvider = r, this.errors = []; } @@ -76189,7 +76195,7 @@ class XUt extends G1 { } } } -class HUt extends mE { +class jUt extends mE { constructor(e, r) { super(), this.topProd = e, this.path = r, this.possibleTokTypes = [], this.nextProductionName = "", this.nextProductionOccurrence = 0, this.found = !1, this.isAtEndOfPath = !1; } @@ -76211,7 +76217,7 @@ class HUt extends mE { Hr(this.ruleStack) ? (this.nextProductionName = "", this.nextProductionOccurrence = 0, this.isAtEndOfPath = !0) : (this.nextProductionName = this.ruleStack.pop(), this.nextProductionOccurrence = this.occurrenceStack.pop()); } } -class ZUt extends HUt { +class KUt extends jUt { constructor(e, r) { super(e, r), this.path = r, this.nextTerminalName = "", this.nextTerminalOccurrence = 0, this.nextTerminalName = this.path.lastTok.name, this.nextTerminalOccurrence = this.path.lastTokOccurrence; } @@ -76234,7 +76240,7 @@ class yE extends mE { return this.walk(this.topRule), this.result; } } -class jUt extends yE { +class JUt extends yE { walkMany(e, r, n) { if (e.idx === this.occurrence) { const i = oc(r.concat(n)); @@ -76252,7 +76258,7 @@ class IG extends yE { super.walkManySep(e, r, n); } } -class KUt extends yE { +class eVt extends yE { walkAtLeastOne(e, r, n) { if (e.idx === this.occurrence) { const i = oc(r.concat(n)); @@ -76489,13 +76495,13 @@ function Tpe(t, e, r, n) { occurrenceStack: v }); else if (y instanceof W1) - f.push(JUt(y, g, m, v)); + f.push(tVt(y, g, m, v)); else throw Error("non exhaustive match"); } return h; } -function JUt(t, e, r, n) { +function tVt(t, e, r, n) { const i = Xi(r); i.push(t.name); const s = Xi(n); @@ -76529,15 +76535,15 @@ function BG(t) { const { occurrence: e, rule: r, prodType: n, maxLookahead: i } = t, s = FI(n); return s === Yn.ALTERNATION ? bE(e, r, i) : xE(e, r, s, i); } -function eVt(t, e, r, n, i, s) { +function rVt(t, e, r, n, i, s) { const a = bE(t, e, r), o = _pe(a) ? OS : Cw; return s(a, n, o, i); } -function tVt(t, e, r, n, i, s) { +function nVt(t, e, r, n, i, s) { const a = xE(t, e, i, r), o = _pe(a) ? OS : Cw; return s(a[0], o, n); } -function rVt(t, e, r, n) { +function iVt(t, e, r, n) { const i = t.length, s = Hl(t, (a) => Hl(a, (o) => o.length === 1)); if (e) return function(a) { @@ -76585,7 +76591,7 @@ function rVt(t, e, r, n) { } }; } -function nVt(t, e, r) { +function sVt(t, e, r) { const n = Hl(t, (s) => s.length === 1), i = t.length; if (n && !r) { const s = is(t); @@ -76618,7 +76624,7 @@ function nVt(t, e, r) { return !1; }; } -class iVt extends mE { +class aVt extends mE { constructor(e, r, n) { super(), this.topProd = e, this.targetOccurrence = r, this.targetProdType = n; } @@ -76692,7 +76698,7 @@ function VA(t) { } return e; } -function sVt(t, e, r) { +function oVt(t, e, r) { for (let n = 0; n < t.length; n++) { if (n === r) continue; @@ -76723,7 +76729,7 @@ function Epe(t, e) { const u = o[l]; for (let h = 0; h < u.length; h++) { const f = u[h].partialPath, d = u[h].suffixDef, p = VA(f); - if (sVt(i, p, l) || Hr(d) || f.length === e) { + if (oVt(i, p, l) || Hr(d) || f.length === e) { const m = n[l]; if (aR(m, f) === !1) { m.push(f); @@ -76753,7 +76759,7 @@ function bE(t, e, r, n) { function xE(t, e, r, n) { const i = new Cpe(t, r); e.accept(i); - const s = i.result, o = new iVt(e, t, r).startWalking(), l = new oo({ definition: s }), u = new oo({ definition: o }); + const s = i.result, o = new aVt(e, t, r).startWalking(), l = new oo({ definition: s }), u = new oo({ definition: o }); return Epe([l, u], n); } function aR(t, e) { @@ -76771,7 +76777,7 @@ function aR(t, e) { } return !1; } -function aVt(t, e) { +function lVt(t, e) { return t.length < e.length && Hl(t, (r, n) => { const i = e[n]; return r === i || i.categoryMatchesMap[r.tokenTypeIdx]; @@ -76780,7 +76786,7 @@ function aVt(t, e) { function _pe(t) { return Hl(t, (e) => Hl(e, (r) => Hl(r, (n) => Hr(n.categoryMatches)))); } -function oVt(t) { +function cVt(t) { const e = t.lookaheadStrategy.validate({ rules: t.rules, tokenTypes: t.tokenTypes, @@ -76788,14 +76794,14 @@ function oVt(t) { }); return St(e, (r) => Object.assign({ type: Da.CUSTOM_LOOKAHEAD_VALIDATION }, r)); } -function lVt(t, e, r, n) { - const i = Lo(t, (l) => cVt(l, r)), s = wVt(t, e, r), a = Lo(t, (l) => vVt(l, r)), o = Lo(t, (l) => fVt(l, t, n, r)); +function uVt(t, e, r, n) { + const i = Lo(t, (l) => hVt(l, r)), s = kVt(t, e, r), a = Lo(t, (l) => bVt(l, r)), o = Lo(t, (l) => pVt(l, t, n, r)); return i.concat(s, a, o); } -function cVt(t, e) { - const r = new hVt(); +function hVt(t, e) { + const r = new dVt(); t.accept(r); - const n = r.allProductions, i = tNt(n, uVt), s = vc(i, (o) => o.length > 1); + const n = r.allProductions, i = nNt(n, fVt), s = vc(i, (o) => o.length > 1); return St(un(s), (o) => { const l = oc(o), u = e.buildDuplicateFoundError(t, o), h = Pc(l), f = { message: u, @@ -76807,13 +76813,13 @@ function cVt(t, e) { return d && (f.parameter = d), f; }); } -function uVt(t) { +function fVt(t) { return `${Pc(t)}_#_${t.idx}_#_${Ape(t)}`; } function Ape(t) { return t instanceof In ? t.terminalType.name : t instanceof Ma ? t.nonTerminalName : ""; } -class hVt extends G1 { +class dVt extends G1 { constructor() { super(...arguments), this.allProductions = []; } @@ -76842,7 +76848,7 @@ class hVt extends G1 { this.allProductions.push(e); } } -function fVt(t, e, r, n) { +function pVt(t, e, r, n) { const i = []; if (Li(e, (a, o) => o.name === t.name ? a + 1 : a, 0) > 1) { const a = n.buildDuplicateRuleNameError({ @@ -76857,7 +76863,7 @@ function fVt(t, e, r, n) { } return i; } -function dVt(t, e, r) { +function gVt(t, e, r) { const n = []; let i; return $a(e, t) || (i = `Invalid rule override, rule: ->${t}<- cannot be overridden in the grammar: ->${r}<-as it is not defined in any of the super grammars `, n.push({ @@ -76915,7 +76921,7 @@ class zI extends G1 { this.alternations.push(e); } } -function pVt(t, e) { +function mVt(t, e) { const r = new zI(); t.accept(r); const n = r.alternations; @@ -76939,16 +76945,16 @@ function pVt(t, e) { }); }); } -function gVt(t, e, r) { +function vVt(t, e, r) { const n = new zI(); t.accept(n); let i = n.alternations; return i = rE(i, (a) => a.ignoreAmbiguities === !0), Lo(i, (a) => { - const o = a.idx, l = a.maxLookahead || e, u = bE(o, t, l, a), h = bVt(u, a, t, r), f = xVt(u, a, t, r); + const o = a.idx, l = a.maxLookahead || e, u = bE(o, t, l, a), h = wVt(u, a, t, r), f = OVt(u, a, t, r); return h.concat(f); }); } -class mVt extends G1 { +class yVt extends G1 { constructor() { super(...arguments), this.allProductions = []; } @@ -76965,7 +76971,7 @@ class mVt extends G1 { this.allProductions.push(e); } } -function vVt(t, e) { +function bVt(t, e) { const r = new zI(); t.accept(r); const n = r.alternations; @@ -76981,10 +76987,10 @@ function vVt(t, e) { } ] : []); } -function yVt(t, e, r) { +function xVt(t, e, r) { const n = []; return Ve(t, (i) => { - const s = new mVt(); + const s = new yVt(); i.accept(s); const a = s.allProductions; Ve(a, (o) => { @@ -77003,7 +77009,7 @@ function yVt(t, e, r) { }); }), n; } -function bVt(t, e, r, n) { +function wVt(t, e, r, n) { const i = [], s = Li(t, (o, l, u) => (e.definition[u].ignoreAmbiguities === !0 || Ve(l, (h) => { const f = [u]; Ve(t, (d, p) => { @@ -77029,7 +77035,7 @@ function bVt(t, e, r, n) { }; }); } -function xVt(t, e, r, n) { +function OVt(t, e, r, n) { const i = Li(t, (a, o, l) => { const u = St(o, (h) => ({ idx: l, path: h })); return a.concat(u); @@ -77037,7 +77043,7 @@ function xVt(t, e, r, n) { return xw(Lo(i, (a) => { if (e.definition[a.idx].ignoreAmbiguities === !0) return []; - const l = a.idx, u = a.path, h = ni(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && aVt(d.path, u)); + const l = a.idx, u = a.path, h = ni(i, (d) => e.definition[d.idx].ignoreAmbiguities !== !0 && d.idx < l && lVt(d.path, u)); return St(h, (d) => { const p = [d.idx + 1, l + 1], g = e.idx === 0 ? "" : e.idx; return { @@ -77055,7 +77061,7 @@ function xVt(t, e, r, n) { }); })); } -function wVt(t, e, r) { +function kVt(t, e, r) { const n = [], i = St(e, (s) => s.name); return Ve(t, (s) => { const a = s.name; @@ -77069,18 +77075,18 @@ function wVt(t, e, r) { } }), n; } -function OVt(t) { +function SVt(t) { const e = JC(t, { - errMsgProvider: WUt + errMsgProvider: XUt }), r = {}; return Ve(t.rules, (n) => { r[n.name] = n; - }), GUt(r, e.errMsgProvider); + }), HUt(r, e.errMsgProvider); } -function kVt(t) { +function TVt(t) { return t = JC(t, { errMsgProvider: g0 - }), lVt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); + }), uVt(t.rules, t.tokenTypes, t.errMsgProvider, t.grammarName); } const Rpe = "MismatchedTokenException", Mpe = "NoViableAltException", Dpe = "EarlyExitException", Ppe = "NotAllInputParsedException", Npe = [ Rpe, @@ -77102,30 +77108,30 @@ class Ipe extends wE { super(e, r), this.previousToken = n, this.name = Rpe; } } -class SVt extends wE { +class CVt extends wE { constructor(e, r, n) { super(e, r), this.previousToken = n, this.name = Mpe; } } -class TVt extends wE { +class EVt extends wE { constructor(e, r) { super(e, r), this.name = Ppe; } } -class CVt extends wE { +class _Vt extends wE { constructor(e, r, n) { super(e, r), this.previousToken = n, this.name = Dpe; } } const qA = {}, $pe = "InRuleRecoveryException"; -class EVt extends Error { +class AVt extends Error { constructor(e) { super(e), this.name = $pe; } } -class _Vt { +class LVt { initRecoverable(e) { - this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = _t(e, "recoveryEnabled") ? e.recoveryEnabled : Sh.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = AVt); + this.firstAfterRepMap = {}, this.resyncFollows = {}, this.recoveryEnabled = _t(e, "recoveryEnabled") ? e.recoveryEnabled : Sh.recoveryEnabled, this.recoveryEnabled && (this.attemptInRepetitionRecovery = RVt); } getTokenToInsert(e) { const r = BI(e, "", NaN, NaN, NaN, NaN, NaN, NaN); @@ -77176,7 +77182,7 @@ class _Vt { const n = this.SKIP_TOKEN(); return this.consumeToken(), n; } - throw new EVt("sad sad panda"); + throw new AVt("sad sad panda"); } canPerformInRuleRecovery(e, r) { return this.canRecoverWithSingleTokenInsertion(e, r) || this.canRecoverWithSingleTokenDeletion(e); @@ -77257,7 +77263,7 @@ class _Vt { return St(this.RULE_STACK, (e) => this.shortRuleNameToFullName(e)); } } -function AVt(t, e, r, n, i, s, a) { +function RVt(t, e, r, n, i, s, a) { const o = this.getKeyForAutomaticLookahead(n, i); let l = this.firstAfterRepMap[o]; if (l === void 0) { @@ -77268,7 +77274,7 @@ function AVt(t, e, r, n, i, s, a) { const f = l.isEndOfRule; this.RULE_STACK.length === 1 && f && u === void 0 && (u = rd, h = 1), !(u === void 0 || h === void 0) && this.shouldInRepetitionRecoveryBeTried(u, h, a) && this.tryInRepetitionRecovery(t, e, r, u); } -const LVt = 4, bd = 8, Bpe = 1 << bd, Fpe = 2 << bd, oR = 3 << bd, lR = 4 << bd, cR = 5 << bd, W5 = 6 << bd; +const MVt = 4, bd = 8, Bpe = 1 << bd, Fpe = 2 << bd, oR = 3 << bd, lR = 4 << bd, cR = 5 << bd, W5 = 6 << bd; function YA(t, e, r) { return r | e | t; } @@ -77294,29 +77300,29 @@ class QI { return Lo(e, (r) => Lpe(r, r, g0)); } validateEmptyOrAlternatives(e) { - return Lo(e, (r) => pVt(r, g0)); + return Lo(e, (r) => mVt(r, g0)); } validateAmbiguousAlternationAlternatives(e, r) { - return Lo(e, (n) => gVt(n, r, g0)); + return Lo(e, (n) => vVt(n, r, g0)); } validateSomeNonEmptyLookaheadPath(e, r) { - return yVt(e, r, g0); + return xVt(e, r, g0); } buildLookaheadForAlternation(e) { - return eVt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, rVt); + return rVt(e.prodOccurrence, e.rule, e.maxLookahead, e.hasPredicates, e.dynamicTokensEnabled, iVt); } buildLookaheadForOptional(e) { - return tVt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, FI(e.prodType), nVt); + return nVt(e.prodOccurrence, e.rule, e.maxLookahead, e.dynamicTokensEnabled, FI(e.prodType), sVt); } } -class RVt { +class DVt { initLooksAhead(e) { this.dynamicTokensEnabled = _t(e, "dynamicTokensEnabled") ? e.dynamicTokensEnabled : Sh.dynamicTokensEnabled, this.maxLookahead = _t(e, "maxLookahead") ? e.maxLookahead : Sh.maxLookahead, this.lookaheadStrategy = _t(e, "lookaheadStrategy") ? e.lookaheadStrategy : new QI({ maxLookahead: this.maxLookahead }), this.lookAheadFuncsCache = /* @__PURE__ */ new Map(); } preComputeLookaheadFunctions(e) { Ve(e, (r) => { this.TRACE_INIT(`${r.name} Rule Lookahead`, () => { - const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = DVt(r); + const { alternation: n, repetition: i, option: s, repetitionMandatory: a, repetitionMandatoryWithSeparator: o, repetitionWithSeparator: l } = NVt(r); Ve(n, (u) => { const h = u.idx === 0 ? "" : u.idx; this.TRACE_INIT(`${Pc(u)}${h}`, () => { @@ -77366,7 +77372,7 @@ class RVt { this.lookAheadFuncsCache.set(e, r); } } -class MVt extends G1 { +class PVt extends G1 { constructor() { super(...arguments), this.dslMethods = { option: [], @@ -77406,8 +77412,8 @@ class MVt extends G1 { this.dslMethods.alternation.push(e); } } -const b4 = new MVt(); -function DVt(t) { +const b4 = new PVt(); +function NVt(t) { b4.reset(), t.accept(b4); const e = b4.dslMethods; return b4.reset(), e; @@ -77418,22 +77424,22 @@ function zG(t, e) { function QG(t, e) { isNaN(t.startOffset) === !0 ? (t.startOffset = e.startOffset, t.startColumn = e.startColumn, t.startLine = e.startLine, t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine) : t.endOffset < e.endOffset && (t.endOffset = e.endOffset, t.endColumn = e.endColumn, t.endLine = e.endLine); } -function PVt(t, e, r) { +function IVt(t, e, r) { t.children[r] === void 0 ? t.children[r] = [e] : t.children[r].push(e); } -function NVt(t, e, r) { +function $Vt(t, e, r) { t.children[e] === void 0 ? t.children[e] = [r] : t.children[e].push(r); } -const IVt = "name"; +const BVt = "name"; function zpe(t, e) { - Object.defineProperty(t, IVt, { + Object.defineProperty(t, BVt, { enumerable: !1, configurable: !0, writable: !1, value: e }); } -function $Vt(t, e) { +function FVt(t, e) { const r = Bi(t), n = r.length; for (let i = 0; i < n; i++) { const s = r[i], a = t[s], o = a.length; @@ -77443,7 +77449,7 @@ function $Vt(t, e) { } } } -function BVt(t, e) { +function zVt(t, e) { const r = function() { }; zpe(r, t + "BaseSemantics"); @@ -77453,7 +77459,7 @@ function BVt(t, e) { return this[i.name](i.children, s); }, validateVisitor: function() { - const i = zVt(this, e); + const i = UVt(this, e); if (!Hr(i)) { const s = St(i, (a) => a.msg); throw Error(`Errors Detected in CST Visitor <${this.constructor.name}>: @@ -77466,23 +77472,23 @@ function BVt(t, e) { }; return r.prototype = n, r.prototype.constructor = r, r._RULE_NAMES = e, r; } -function FVt(t, e, r) { +function QVt(t, e, r) { const n = function() { }; zpe(n, t + "BaseSemanticsWithDefaults"); const i = Object.create(r.prototype); return Ve(e, (s) => { - i[s] = $Vt; + i[s] = FVt; }), n.prototype = i, n.prototype.constructor = n, n; } var uR; (function(t) { t[t.REDUNDANT_METHOD = 0] = "REDUNDANT_METHOD", t[t.MISSING_METHOD = 1] = "MISSING_METHOD"; })(uR || (uR = {})); -function zVt(t, e) { - return QVt(t, e); +function UVt(t, e) { + return VVt(t, e); } -function QVt(t, e) { +function VVt(t, e) { const r = ni(e, (i) => ml(t[i]) === !1), n = St(r, (i) => ({ msg: `Missing visitor method: <${i}> on ${t.constructor.name} CST Visitor.`, type: uR.MISSING_METHOD, @@ -77490,7 +77496,7 @@ function QVt(t, e) { })); return xw(n); } -class UVt { +class qVt { initTreeBuilder(e) { if (this.CST_STACK = [], this.outputCst = e.outputCst, this.nodeLocationTracking = _t(e, "nodeLocationTracking") ? e.nodeLocationTracking : Sh.nodeLocationTracking, !this.outputCst) this.cstInvocationStateUpdate = Mi, this.cstFinallyStateUpdate = Mi, this.cstPostTerminal = Mi, this.cstPostNonTerminal = Mi, this.cstPostRule = Mi; @@ -77556,22 +77562,22 @@ class UVt { } cstPostTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - PVt(n, r, e), this.setNodeLocationFromToken(n.location, r); + IVt(n, r, e), this.setNodeLocationFromToken(n.location, r); } cstPostNonTerminal(e, r) { const n = this.CST_STACK[this.CST_STACK.length - 1]; - NVt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); + $Vt(n, r, e), this.setNodeLocationFromNode(n.location, e.location); } getBaseCstVisitorConstructor() { if (tn(this.baseCstVisitorConstructor)) { - const e = BVt(this.className, Bi(this.gastProductionsCache)); + const e = zVt(this.className, Bi(this.gastProductionsCache)); return this.baseCstVisitorConstructor = e, e; } return this.baseCstVisitorConstructor; } getBaseCstVisitorConstructorWithDefaults() { if (tn(this.baseCstVisitorWithDefaultsConstructor)) { - const e = FVt(this.className, Bi(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); + const e = QVt(this.className, Bi(this.gastProductionsCache), this.getBaseCstVisitorConstructor()); return this.baseCstVisitorWithDefaultsConstructor = e, e; } return this.baseCstVisitorWithDefaultsConstructor; @@ -77589,7 +77595,7 @@ class UVt { return e[e.length - 1]; } } -class VVt { +class YVt { initLexerAdapter() { this.tokVector = [], this.tokVectorLength = 0, this.currIdx = -1; } @@ -77627,7 +77633,7 @@ class VVt { return this.exportLexerState(); } } -class qVt { +class WVt { ACTION(e) { return e.call(this); } @@ -77906,7 +77912,7 @@ class qVt { return this[e] = i, i; } OVERRIDE_RULE(e, r, n = CS) { - const i = dVt(e, this.definedRulesNames, this.className); + const i = gVt(e, this.definedRulesNames, this.className); this.definitionErrors = this.definitionErrors.concat(i); const s = this.defineRule(e, r, n); return this[e] = s, s; @@ -77930,10 +77936,10 @@ class qVt { return this.gastProductionsCache; } getSerializedGastProductions() { - return KQt(un(this.gastProductionsCache)); + return eUt(un(this.gastProductionsCache)); } } -class YVt { +class GVt { initRecognizerEngine(e, r) { if (this.className = this.constructor.name, this.shortRuleNameToFull = {}, this.fullRuleNameToShort = {}, this.ruleShortNameIdx = 256, this.tokenMatcher = OS, this.subruleIdx = 0, this.definedRulesNames = [], this.tokensMap = {}, this.isBackTrackingStack = [], this.RULE_STACK = [], this.RULE_OCCURRENCE_STACK = [], this.gastProductionsCache = {}, _t(r, "serializedGrammar")) throw Error(`The Parser's configuration can no longer contain a property. @@ -77951,7 +77957,7 @@ class YVt { } if (Pr(e)) this.tokensMap = Li(e, (s, a) => (s[a.name] = a, s), {}); - else if (_t(e, "modes") && Hl(is(un(e.modes)), UUt)) { + else if (_t(e, "modes") && Hl(is(un(e.modes)), qUt)) { const s = is(un(e.modes)), a = dI(s); this.tokensMap = Li(a, (o, l) => (o[l.name] = l, o), {}); } else if (so(e)) @@ -77966,7 +77972,7 @@ class YVt { if (this.selfAnalysisDone) throw Error(`Grammar rule <${e}> may not be defined after the 'performSelfAnalysis' method has been called' Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`); - const i = _t(n, "resyncEnabled") ? n.resyncEnabled : CS.resyncEnabled, s = _t(n, "recoveryValueFunc") ? n.recoveryValueFunc : CS.recoveryValueFunc, a = this.ruleShortNameIdx << LVt + bd; + const i = _t(n, "resyncEnabled") ? n.resyncEnabled : CS.resyncEnabled, s = _t(n, "recoveryValueFunc") ? n.recoveryValueFunc : CS.recoveryValueFunc, a = this.ruleShortNameIdx << MVt + bd; this.ruleShortNameIdx++, this.shortRuleNameToFull[a] = e, this.fullRuleNameToShort[e] = a; let o; return this.outputCst === !0 ? o = function(...h) { @@ -78055,7 +78061,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis a = this.doSingleRepetition(s); } else throw this.raiseEarlyExitException(e, Yn.REPETITION_MANDATORY, r.ERR_MSG); - this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, lR, e, KUt); + this.attemptInRepetitionRecovery(this.atLeastOneInternal, [e, r], i, lR, e, eVt); } atLeastOneSepFirstInternal(e, r) { const n = this.getKeyForAutomaticLookahead(W5, e); @@ -78102,7 +78108,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis i, oR, e, - jUt, + JUt, a ); } @@ -78153,7 +78159,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis firstRedundant: e, ruleName: this.getCurrRuleFullName() }); - this.SAVE_ERROR(new TVt(r, e)); + this.SAVE_ERROR(new EVt(r, e)); } } subruleInternal(e, r, n) { @@ -78231,7 +78237,7 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis this.resetLexerState(), this.subruleIdx = 0, this.isBackTrackingStack = [], this.errors = [], this.RULE_STACK = [], this.CST_STACK = [], this.RULE_OCCURRENCE_STACK = []; } } -class WVt { +class XVt { initErrorHandler(e) { this._errors = [], this.errorMessageProvider = _t(e, "errorMessageProvider") ? e.errorMessageProvider : Sh.errorMessageProvider; } @@ -78260,7 +78266,7 @@ class WVt { customUserDescription: n, ruleName: i }); - throw this.SAVE_ERROR(new CVt(u, this.LA(1), this.LA(0))); + throw this.SAVE_ERROR(new _Vt(u, this.LA(1), this.LA(0))); } raiseNoAltException(e, r) { const n = this.getCurrRuleFullName(), i = this.getGAstProductions()[n], s = bE(e, i, this.maxLookahead), a = []; @@ -78273,10 +78279,10 @@ class WVt { customUserDescription: r, ruleName: this.getCurrRuleFullName() }); - throw this.SAVE_ERROR(new SVt(l, this.LA(1), o)); + throw this.SAVE_ERROR(new CVt(l, this.LA(1), o)); } } -class GVt { +class HVt { initContentAssist() { } computeContentAssist(e, r) { @@ -78287,7 +78293,7 @@ class GVt { } getNextPossibleTokenTypes(e) { const r = oc(e.ruleStack), i = this.getGAstProductions()[r]; - return new ZUt(i, e).startWalking(); + return new KUt(i, e).startWalking(); } } const OE = { @@ -78308,12 +78314,12 @@ const Upe = BI( -1 ); Object.freeze(Upe); -const XVt = { +const ZVt = { name: `This CSTNode indicates the Parser is in Recording Phase See: https://chevrotain.io/docs/guide/internals.html#grammar-recording for details`, children: {} }; -class HVt { +class jVt { initGastRecorder(e) { this.recordingProdStack = [], this.RECORDING_PHASE = !1; } @@ -78404,7 +78410,7 @@ class HVt { qv.call(this, po, r, e, UG); } orInternalRecord(e, r) { - return ZVt.call(this, e, r); + return KVt.call(this, e, r); } subruleInternalRecord(e, r, n) { if (SS(r), !e || _t(e, "ruleName") === !1) { @@ -78418,7 +78424,7 @@ class HVt { label: n == null ? void 0 : n.LABEL, referencedRule: void 0 }); - return i.definition.push(a), this.outputCst ? XVt : OE; + return i.definition.push(a), this.outputCst ? ZVt : OE; } consumeInternalRecord(e, r, n) { if (SS(r), !wpe(e)) { @@ -78439,7 +78445,7 @@ function qv(t, e, r, n = !1) { const i = cu(this.recordingProdStack), s = ml(e) ? e : e.DEF, a = new t({ definition: [], idx: r }); return n && (a.separator = e.SEP), _t(e, "MAX_LOOKAHEAD") && (a.maxLookahead = e.MAX_LOOKAHEAD), this.recordingProdStack.push(a), s.call(this), i.definition.push(a), this.recordingProdStack.pop(), OE; } -function ZVt(t, e) { +function KVt(t, e) { SS(e); const r = cu(this.recordingProdStack), n = Pr(t) === !1, i = n === !1 ? t : t.DEF, s = new go({ definition: [], @@ -78465,7 +78471,7 @@ function SS(t) { throw e.KNOWN_RECORDER_ERROR = !0, e; } } -class jVt { +class JVt { initPerformanceTracer(e) { if (_t(e, "traceInitPerf")) { const r = e.traceInitPerf, n = typeof r == "number"; @@ -78485,7 +78491,7 @@ class jVt { return r(); } } -function KVt(t, e) { +function eqt(t, e) { e.forEach((r) => { const n = r.prototype; Object.getOwnPropertyNames(n).forEach((i) => { @@ -78547,17 +78553,17 @@ class _w { }); let n = []; if (this.TRACE_INIT("Grammar Resolving", () => { - n = OVt({ + n = SVt({ rules: un(this.gastProductionsCache) }), this.definitionErrors = this.definitionErrors.concat(n); }), this.TRACE_INIT("Grammar Validations", () => { if (Hr(n) && this.skipValidations === !1) { - const i = kVt({ + const i = TVt({ rules: un(this.gastProductionsCache), tokenTypes: un(this.tokensMap), errMsgProvider: g0, grammarName: r - }), s = oVt({ + }), s = cVt({ lookaheadStrategy: this.lookaheadStrategy, rules: un(this.gastProductionsCache), tokenTypes: un(this.tokensMap), @@ -78566,7 +78572,7 @@ class _w { this.definitionErrors = this.definitionErrors.concat(i, s); } }), Hr(this.definitionErrors) && (this.recoveryEnabled && this.TRACE_INIT("computeAllProdsFollows", () => { - const i = sUt(un(this.gastProductionsCache)); + const i = oUt(un(this.gastProductionsCache)); this.resyncFollows = i; }), this.TRACE_INIT("ComputeLookaheadFunctions", () => { var i, s; @@ -78592,19 +78598,19 @@ class _w { } } _w.DEFER_DEFINITION_ERRORS_HANDLING = !1; -KVt(_w, [ - _Vt, - RVt, - UVt, - VVt, - YVt, +eqt(_w, [ + LVt, + DVt, qVt, - WVt, + YVt, GVt, + WVt, + XVt, HVt, - jVt + jVt, + JVt ]); -class JVt extends _w { +class tqt extends _w { constructor(e, r = Sh) { const n = Xi(r); n.outputCst = !1, super(e, n); @@ -78613,7 +78619,7 @@ class JVt extends _w { function Km(t, e, r) { return `${t.name}_${e}_${r}`; } -const nd = 1, eqt = 2, Vpe = 4, qpe = 5, Aw = 7, tqt = 8, rqt = 9, nqt = 10, iqt = 11, Ype = 12; +const nd = 1, rqt = 2, Vpe = 4, qpe = 5, Aw = 7, nqt = 8, iqt = 9, sqt = 10, aqt = 11, Ype = 12; class UI { constructor(e) { this.target = e; @@ -78643,7 +78649,7 @@ class qI extends UI { return !0; } } -function sqt(t) { +function oqt(t) { const e = { decisionMap: {}, decisionStates: [], @@ -78651,19 +78657,19 @@ function sqt(t) { ruleToStopState: /* @__PURE__ */ new Map(), states: [] }; - aqt(e, t); + lqt(e, t); const r = t.length; for (let n = 0; n < r; n++) { const i = t[n], s = Pp(e, i, i); - s !== void 0 && vqt(e, i, s); + s !== void 0 && bqt(e, i, s); } return e; } -function aqt(t, e) { +function lqt(t, e) { const r = e.length; for (let n = 0; n < r; n++) { const i = e[n], s = ss(t, i, void 0, { - type: eqt + type: rqt }), a = ss(t, i, void 0, { type: Aw }); @@ -78671,9 +78677,9 @@ function aqt(t, e) { } } function Gpe(t, e, r) { - return r instanceof In ? YI(t, e, r.terminalType, r) : r instanceof Ma ? mqt(t, e, r) : r instanceof go ? hqt(t, e, r) : r instanceof Es ? fqt(t, e, r) : r instanceof ei ? oqt(t, e, r) : r instanceof po ? lqt(t, e, r) : r instanceof Bo ? cqt(t, e, r) : r instanceof Fo ? uqt(t, e, r) : Pp(t, e, r); + return r instanceof In ? YI(t, e, r.terminalType, r) : r instanceof Ma ? yqt(t, e, r) : r instanceof go ? dqt(t, e, r) : r instanceof Es ? pqt(t, e, r) : r instanceof ei ? cqt(t, e, r) : r instanceof po ? uqt(t, e, r) : r instanceof Bo ? hqt(t, e, r) : r instanceof Fo ? fqt(t, e, r) : Pp(t, e, r); } -function oqt(t, e, r) { +function cqt(t, e, r) { const n = ss(t, e, r, { type: qpe }); @@ -78681,7 +78687,7 @@ function oqt(t, e, r) { const i = X1(t, e, n, r, Pp(t, e, r)); return Hpe(t, e, r, i); } -function lqt(t, e, r) { +function uqt(t, e, r) { const n = ss(t, e, r, { type: qpe }); @@ -78689,7 +78695,7 @@ function lqt(t, e, r) { const i = X1(t, e, n, r, Pp(t, e, r)), s = YI(t, e, r.separator, r); return Hpe(t, e, r, i, s); } -function cqt(t, e, r) { +function hqt(t, e, r) { const n = ss(t, e, r, { type: Vpe }); @@ -78697,7 +78703,7 @@ function cqt(t, e, r) { const i = X1(t, e, n, r, Pp(t, e, r)); return Xpe(t, e, r, i); } -function uqt(t, e, r) { +function fqt(t, e, r) { const n = ss(t, e, r, { type: Vpe }); @@ -78705,7 +78711,7 @@ function uqt(t, e, r) { const i = X1(t, e, n, r, Pp(t, e, r)), s = YI(t, e, r.separator, r); return Xpe(t, e, r, i, s); } -function hqt(t, e, r) { +function dqt(t, e, r) { const n = ss(t, e, r, { type: nd }); @@ -78713,21 +78719,21 @@ function hqt(t, e, r) { const i = St(r.definition, (a) => Gpe(t, e, a)); return X1(t, e, n, r, ...i); } -function fqt(t, e, r) { +function pqt(t, e, r) { const n = ss(t, e, r, { type: nd }); xd(t, n); const i = X1(t, e, n, r, Pp(t, e, r)); - return dqt(t, e, r, i); + return gqt(t, e, r, i); } function Pp(t, e, r) { const n = ni(St(r.definition, (i) => Gpe(t, e, i)), (i) => i !== void 0); - return n.length === 1 ? n[0] : n.length === 0 ? void 0 : gqt(t, n); + return n.length === 1 ? n[0] : n.length === 0 ? void 0 : vqt(t, n); } function Xpe(t, e, r, n, i) { const s = n.left, a = n.right, o = ss(t, e, r, { - type: iqt + type: aqt }); xd(t, o); const l = ss(t, e, r, { @@ -78740,20 +78746,20 @@ function Xpe(t, e, r, n, i) { } function Hpe(t, e, r, n, i) { const s = n.left, a = n.right, o = ss(t, e, r, { - type: nqt + type: sqt }); xd(t, o); const l = ss(t, e, r, { type: Ype }), u = ss(t, e, r, { - type: rqt + type: iqt }); return o.loopback = u, l.loopback = u, Oi(o, s), Oi(o, l), Oi(a, u), i !== void 0 ? (Oi(u, l), Oi(u, i.left), Oi(i.right, s)) : Oi(u, o), t.decisionMap[Km(e, i ? "RepetitionWithSeparator" : "Repetition", r.idx)] = o, { left: o, right: l }; } -function dqt(t, e, r, n) { +function gqt(t, e, r, n) { const i = n.left, s = n.right; return Oi(i, s), t.decisionMap[Km(e, "Option", r.idx)] = i, n; } @@ -78762,7 +78768,7 @@ function xd(t, e) { } function X1(t, e, r, n, ...i) { const s = ss(t, e, n, { - type: tqt, + type: nqt, start: r }); r.end = s; @@ -78772,9 +78778,9 @@ function X1(t, e, r, n, ...i) { left: r, right: s }; - return t.decisionMap[Km(e, pqt(n), n.idx)] = r, a; + return t.decisionMap[Km(e, mqt(n), n.idx)] = r, a; } -function pqt(t) { +function mqt(t) { if (t instanceof go) return "Alternation"; if (t instanceof Es) @@ -78789,14 +78795,14 @@ function pqt(t) { return "RepetitionMandatoryWithSeparator"; throw new Error("Invalid production type encountered"); } -function gqt(t, e) { +function vqt(t, e) { const r = e.length; for (let s = 0; s < r - 1; s++) { const a = e[s]; let o; a.left.transitions.length === 1 && (o = a.left.transitions[0]); const l = o instanceof qI, u = o, h = e[s + 1].left; - a.left.type === nd && a.right.type === nd && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, yqt(t, a.right)) : Oi(a.right, h); + a.left.type === nd && a.right.type === nd && o !== void 0 && (l && u.followState === a.right || o.target === a.right) ? (l ? u.followState = h : o.target = h, xqt(t, a.right)) : Oi(a.right, h); } const n = e[0], i = e[r - 1]; return { @@ -78815,7 +78821,7 @@ function YI(t, e, r, n) { right: s }; } -function mqt(t, e, r) { +function yqt(t, e, r) { const n = r.referencedRule, i = t.ruleToStartState.get(n), s = ss(t, e, r, { type: nd }), a = ss(t, e, r, { @@ -78826,7 +78832,7 @@ function mqt(t, e, r) { right: a }; } -function vqt(t, e, r) { +function bqt(t, e, r) { const n = t.ruleToStartState.get(e); Oi(n, r.left); const i = t.ruleToStopState.get(e); @@ -78854,7 +78860,7 @@ function ss(t, e, r, n) { function WI(t, e) { t.transitions.length === 0 && (t.epsilonOnlyTransitions = e.isEpsilon()), t.transitions.push(e); } -function yqt(t, e) { +function xqt(t, e) { t.states.splice(t.states.indexOf(e), 1); } const ES = {}; @@ -78888,7 +78894,7 @@ class hR { function Zpe(t, e = !0) { return `${e ? `a${t.alt}` : ""}s${t.state.stateNumber}:${t.stack.map((r) => r.stateNumber.toString()).join("_")}`; } -function bqt(t, e) { +function wqt(t, e) { const r = {}; return (n) => { const i = n.toString(); @@ -78919,13 +78925,13 @@ class jpe { } } const WG = new jpe(); -class xqt extends QI { +class Oqt extends QI { constructor(e) { var r; super(), this.logging = (r = e == null ? void 0 : e.logging) !== null && r !== void 0 ? r : (n) => console.log(n); } initialize(e) { - this.atn = sqt(e.rules), this.dfas = wqt(this.atn); + this.atn = oqt(e.rules), this.dfas = kqt(this.atn); } validateAmbiguousAlternationAlternatives() { return []; @@ -79024,53 +79030,53 @@ function GG(t, e = !0) { } return !0; } -function wqt(t) { +function kqt(t) { const e = t.decisionStates.length, r = Array(e); for (let n = 0; n < e; n++) - r[n] = bqt(t.decisionStates[n], n); + r[n] = wqt(t.decisionStates[n], n); return r; } function WA(t, e, r, n) { const i = t[e](r); let s = i.start; if (s === void 0) { - const o = Mqt(i.atnStartState); + const o = Pqt(i.atnStartState); s = Jpe(i, Kpe(o)), i.start = s; } - return Oqt.apply(this, [i, s, r, n]); + return Sqt.apply(this, [i, s, r, n]); } -function Oqt(t, e, r, n) { +function Sqt(t, e, r, n) { let i = e, s = 1; const a = []; let o = this.LA(s++); for (; ; ) { - let l = _qt(i, o); - if (l === void 0 && (l = kqt.apply(this, [t, i, o, s, r, n])), l === ES) - return Eqt(a, i, o); + let l = Lqt(i, o); + if (l === void 0 && (l = Tqt.apply(this, [t, i, o, s, r, n])), l === ES) + return Aqt(a, i, o); if (l.isAcceptState === !0) return l.prediction; i = l, a.push(o), o = this.LA(s++); } } -function kqt(t, e, r, n, i, s) { - const a = Aqt(e.configs, r, i); +function Tqt(t, e, r, n, i, s) { + const a = Rqt(e.configs, r, i); if (a.size === 0) return XG(t, e, r, ES), ES; let o = Kpe(a); - const l = Rqt(a, i); + const l = Dqt(a, i); if (l !== void 0) o.isAcceptState = !0, o.prediction = l, o.configs.uniqueAlt = l; - else if (Iqt(a)) { + else if (Bqt(a)) { const u = Xm(a.alts); - o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, Sqt.apply(this, [t, n, a.alts, s]); + o.isAcceptState = !0, o.prediction = u, o.configs.uniqueAlt = u, Cqt.apply(this, [t, n, a.alts, s]); } return o = XG(t, e, r, o), o; } -function Sqt(t, e, r, n) { +function Cqt(t, e, r, n) { const i = []; for (let u = 1; u <= e; u++) i.push(this.LA(u).tokenType); - const s = t.atnStartState, a = s.rule, o = s.production, l = Tqt({ + const s = t.atnStartState, a = s.rule, o = s.production, l = Eqt({ topLevelRule: a, ambiguityIndices: r, production: o, @@ -79078,15 +79084,15 @@ function Sqt(t, e, r, n) { }); n(l); } -function Tqt(t) { +function Eqt(t) { const e = St(t.prefixPath, (i) => Xg(i)).join(", "), r = t.production.idx === 0 ? "" : t.production.idx; - let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${Cqt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, + let n = `Ambiguous Alternatives Detected: <${t.ambiguityIndices.join(", ")}> in <${_qt(t.production)}${r}> inside <${t.topLevelRule.name}> Rule, <${e}> may appears as a prefix path in all these alternatives. `; return n = n + `See: https://chevrotain.io/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES For Further details.`, n; } -function Cqt(t) { +function _qt(t) { if (t instanceof Ma) return "SUBRULE"; if (t instanceof Es) @@ -79105,18 +79111,18 @@ function Cqt(t) { return "CONSUME"; throw Error("non exhaustive match"); } -function Eqt(t, e, r) { - const n = Lo(e.configs.elements, (s) => s.state.transitions), i = INt(n.filter((s) => s instanceof VI).map((s) => s.tokenType), (s) => s.tokenTypeIdx); +function Aqt(t, e, r) { + const n = Lo(e.configs.elements, (s) => s.state.transitions), i = BNt(n.filter((s) => s instanceof VI).map((s) => s.tokenType), (s) => s.tokenTypeIdx); return { actualToken: r, possibleTokenTypes: i, tokenPath: t }; } -function _qt(t, e) { +function Lqt(t, e) { return t.edges[e.tokenTypeIdx]; } -function Aqt(t, e, r) { +function Rqt(t, e, r) { const n = new hR(), i = []; for (const a of t.elements) { if (r.is(a.alt) === !1) @@ -79127,7 +79133,7 @@ function Aqt(t, e, r) { } const o = a.state.transitions.length; for (let l = 0; l < o; l++) { - const u = a.state.transitions[l], h = Lqt(u, e); + const u = a.state.transitions[l], h = Mqt(u, e); h !== void 0 && n.add({ state: h, alt: a.alt, @@ -79141,16 +79147,16 @@ function Aqt(t, e, r) { for (const a of n.elements) _S(a, s); } - if (i.length > 0 && !Pqt(s)) + if (i.length > 0 && !Iqt(s)) for (const a of i) s.add(a); return s; } -function Lqt(t, e) { +function Mqt(t, e) { if (t instanceof VI && Spe(e, t.tokenType)) return t.target; } -function Rqt(t, e) { +function Dqt(t, e) { let r; for (const n of t.elements) if (e.is(n.alt) === !0) { @@ -79178,7 +79184,7 @@ function Jpe(t, e) { const r = e.configs.key, n = t.states[r]; return n !== void 0 ? n : (e.configs.finalize(), t.states[r] = e, e); } -function Mqt(t) { +function Pqt(t) { const e = new hR(), r = t.transitions.length; for (let n = 0; n < r; n++) { const s = { @@ -79207,11 +79213,11 @@ function _S(t, e) { r.epsilonOnlyTransitions || e.add(t); const n = r.transitions.length; for (let i = 0; i < n; i++) { - const s = r.transitions[i], a = Dqt(t, s); + const s = r.transitions[i], a = Nqt(t, s); a !== void 0 && _S(a, e); } } -function Dqt(t, e) { +function Nqt(t, e) { if (e instanceof Wpe) return { state: e.target, @@ -79227,25 +79233,25 @@ function Dqt(t, e) { }; } } -function Pqt(t) { +function Iqt(t) { for (const e of t.elements) if (e.state.type === Aw) return !0; return !1; } -function Nqt(t) { +function $qt(t) { for (const e of t.elements) if (e.state.type !== Aw) return !1; return !0; } -function Iqt(t) { - if (Nqt(t)) +function Bqt(t) { + if ($qt(t)) return !0; - const e = $qt(t.elements); - return Bqt(e) && !Fqt(e); + const e = Fqt(t.elements); + return zqt(e) && !Qqt(e); } -function $qt(t) { +function Fqt(t) { const e = /* @__PURE__ */ new Map(); for (const r of t) { const n = Zpe(r, !1); @@ -79254,13 +79260,13 @@ function $qt(t) { } return e; } -function Bqt(t) { +function zqt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length > 1) return !0; return !1; } -function Fqt(t) { +function Qqt(t) { for (const e of Array.from(t.values())) if (Object.keys(e).length === 1) return !0; @@ -80042,7 +80048,7 @@ var XX; var HX; (function(t) { function e(s, a, o, l) { - return new zqt(s, a, o, l); + return new Uqt(s, a, o, l); } t.create = e; function r(s) { @@ -80081,7 +80087,7 @@ var HX; return s; } })(HX || (HX = {})); -class zqt { +class Uqt { constructor(e, r, n, i) { this._uri = e, this._languageId = r, this._version = n, this._content = i, this._lineOffsets = void 0; } @@ -80191,7 +80197,7 @@ var We; } t.typedArray = d; })(We || (We = {})); -class Qqt { +class Vqt { constructor() { this.nodeStack = []; } @@ -80375,7 +80381,7 @@ class nge { constructor(e) { this._unorderedGroups = /* @__PURE__ */ new Map(), this.lexer = e.parser.Lexer; const r = this.lexer.definition; - this.wrapper = new Wqt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); + this.wrapper = new Xqt(r, Object.assign(Object.assign({}, e.parser.ParserConfig), { errorMessageProvider: e.parser.ParserErrorMessageProvider })); } alternatives(e, r) { this.wrapper.wrapOr(e, r); @@ -80402,12 +80408,12 @@ class nge { this.wrapper.wrapSelfAnalysis(); } } -class Uqt extends nge { +class qqt extends nge { get current() { return this.stack[this.stack.length - 1]; } constructor(e) { - super(e), this.nodeBuilder = new Qqt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; + super(e), this.nodeBuilder = new Vqt(), this.stack = [], this.assignmentMap = /* @__PURE__ */ new Map(), this.linker = e.references.Linker, this.converter = e.parser.ValueConverter, this.astReflection = e.shared.AstReflection; } rule(e, r) { const n = e.fragment ? void 0 : PI(e) ? CR : gE(e), i = this.wrapper.DEFINE_RULE(rge(e.name), this.startImplementation(n, r).bind(this)); @@ -80493,7 +80499,7 @@ class Uqt extends nge { if (this.isRecording()) return; const r = this.current; - return wQt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), GA(r) ? this.converter.convert(r.value, r.$cstNode) : (kQt(this.astReflection, r), r); + return kQt(r), this.nodeBuilder.construct(r), e && this.stack.pop(), GA(r) ? this.converter.convert(r.value, r.$cstNode) : (TQt(this.astReflection, r), r); } getAssignment(e) { if (!this.assignmentMap.has(e)) { @@ -80532,7 +80538,7 @@ class Uqt extends nge { return this.wrapper.definitionErrors; } } -class Vqt { +class Yqt { buildMismatchTokenMessage(e) { return Og.buildMismatchTokenMessage(e); } @@ -80546,7 +80552,7 @@ class Vqt { return Og.buildEarlyExitMessage(e); } } -class ige extends Vqt { +class ige extends Yqt { buildMismatchTokenMessage({ expected: e, actual: r }) { return `Expecting ${e.LABEL ? "`" + e.LABEL + "`" : e.name.endsWith(":KW") ? `keyword '${e.name.substring(0, e.name.length - 3)}'` : `token of type '${e.name}'`} but found \`${r.image}\`.`; } @@ -80554,7 +80560,7 @@ class ige extends Vqt { return `Expecting end of file but found \`${e.image}\`.`; } } -class qqt extends nge { +class Wqt extends nge { constructor() { super(...arguments), this.tokens = [], this.elementStack = [], this.lastElementStack = [], this.nextTokenIndex = 0, this.stackSize = 0; } @@ -80617,16 +80623,16 @@ class qqt extends nge { return this.wrapper.currIdx; } } -const Yqt = { +const Gqt = { recoveryEnabled: !0, nodeLocationTracking: "full", skipValidations: !0, errorMessageProvider: new ige() }; -class Wqt extends JVt { +class Xqt extends tqt { constructor(e, r) { const n = r && "maxLookahead" in r; - super(e, Object.assign(Object.assign(Object.assign({}, Yqt), { lookaheadStrategy: n ? new QI({ maxLookahead: r.maxLookahead }) : new xqt() }), r)); + super(e, Object.assign(Object.assign(Object.assign({}, Gqt), { lookaheadStrategy: n ? new QI({ maxLookahead: r.maxLookahead }) : new Oqt() }), r)); } get IS_RECORDING() { return this.RECORDING_PHASE; @@ -80659,14 +80665,14 @@ class Wqt extends JVt { } } function sge(t, e, r) { - return Gqt({ + return Hqt({ parser: e, tokens: r, rules: /* @__PURE__ */ new Map(), ruleNames: /* @__PURE__ */ new Map() }, t), e; } -function Gqt(t, e) { +function Hqt(t, e) { const r = npe(e, !1), n = ws(e.rules).filter(wl).filter((i) => r.has(i)); for (const i of n) { const s = Object.assign(Object.assign({}, t), { consume: 1, optional: 1, subrule: 1, many: 1, or: 1 }); @@ -80676,36 +80682,36 @@ function Gqt(t, e) { function J0(t, e, r = !1) { let n; if (Z0(e)) - n = eYt(t, e); + n = rYt(t, e); else if (hE(e)) - n = Xqt(t, e); + n = Zqt(t, e); else if (H0(e)) n = J0(t, e.terminal); else if (LI(e)) n = age(t, e); else if (j0(e)) - n = Hqt(t, e); - else if (N0e(e)) n = jqt(t, e); + else if (N0e(e)) + n = Jqt(t, e); else if (Z0e(e)) - n = Kqt(t, e); + n = eYt(t, e); else if (RI(e)) - n = Jqt(t, e); - else if (pQt(e)) { + n = tYt(t, e); + else if (mQt(e)) { const i = t.consume++; n = () => t.parser.consume(i, rd, e); } else throw new y0e(e.$cstNode, `Unexpected element type: ${e.$type}`); return oge(t, r ? void 0 : PS(e), n, e.cardinality); } -function Xqt(t, e) { +function Zqt(t, e) { const r = gE(e); return () => t.parser.action(r, e); } -function Hqt(t, e) { +function jqt(t, e) { const r = e.rule.ref; if (wl(r)) { - const n = t.subrule++, i = e.arguments.length > 0 ? Zqt(r, e.arguments) : () => ({}); + const n = t.subrule++, i = e.arguments.length > 0 ? Kqt(r, e.arguments) : () => ({}); return (s) => t.parser.subrule(n, lge(t, r), e, i(s)); } else if (Dp(r)) { const n = t.consume++, i = ER(t, r.name); @@ -80715,7 +80721,7 @@ function Hqt(t, e) { else throw new y0e(e.$cstNode, `Undefined rule type: ${e.$type}`); } -function Zqt(t, e) { +function Kqt(t, e) { const r = e.map((n) => Qu(n.value)); return (n) => { const i = {}; @@ -80727,25 +80733,25 @@ function Zqt(t, e) { }; } function Qu(t) { - if (tQt(t)) { + if (nQt(t)) { const e = Qu(t.left), r = Qu(t.right); return (n) => e(n) || r(n); - } else if (eQt(t)) { + } else if (rQt(t)) { const e = Qu(t.left), r = Qu(t.right); return (n) => e(n) && r(n); - } else if (nQt(t)) { + } else if (sQt(t)) { const e = Qu(t.value); return (r) => !e(r); - } else if (aQt(t)) { + } else if (lQt(t)) { const e = t.parameter.ref.name; return (r) => r !== void 0 && r[e] === !0; - } else if (Jzt(t)) { + } else if (tQt(t)) { const e = Boolean(t.true); return () => e; } uE(); } -function jqt(t, e) { +function Jqt(t, e) { if (e.elements.length === 1) return J0(t, e.elements[0]); { @@ -80765,7 +80771,7 @@ function jqt(t, e) { })); } } -function Kqt(t, e) { +function eYt(t, e) { if (e.elements.length === 1) return J0(t, e.elements[0]); const r = []; @@ -80798,7 +80804,7 @@ function Kqt(t, e) { a(o), t.parser.isRecording() || t.parser.unorderedGroups.delete(i(n, t.parser)); }; } -function Jqt(t, e) { +function tYt(t, e) { const r = e.elements.map((n) => J0(t, n)); return (n) => r.forEach((i) => i(n)); } @@ -80828,7 +80834,7 @@ function age(t, e, r = e.terminal) { return age(t, e, i); } } -function eYt(t, e) { +function rYt(t, e) { const r = t.consume++, n = t.tokens[e.value]; if (!n) throw new Error("Could not find token for keyword: " + e.value); @@ -80887,12 +80893,12 @@ function oge(t, e, r, n) { uE(); } function lge(t, e) { - const r = tYt(t, e), n = t.rules.get(r); + const r = nYt(t, e), n = t.rules.get(r); if (!n) throw new Error(`Rule "${r}" not found."`); return n; } -function tYt(t, e) { +function nYt(t, e) { if (wl(e)) return e.name; if (t.ruleNames.has(e)) @@ -80910,16 +80916,16 @@ function ER(t, e) { throw new Error(`Token "${e}" not found."`); return r; } -function rYt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new qqt(t); +function iYt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new Wqt(t); return sge(e, n, r.definition), n.finalize(), n; } -function nYt(t) { - const e = iYt(t); +function sYt(t) { + const e = aYt(t); return e.finalize(), e; } -function iYt(t) { - const e = t.Grammar, r = t.parser.Lexer, n = new Uqt(t); +function aYt(t) { + const e = t.Grammar, r = t.parser.Lexer, n = new qqt(t); return sge(e, n, r.definition); } class cge { @@ -80959,19 +80965,19 @@ class cge { }; } buildKeywordPattern(e, r) { - return r ? new RegExp(RQt(e.value)) : e.value; + return r ? new RegExp(DQt(e.value)) : e.value; } findLongerAlt(e, r) { return r.reduce((n, i) => { const s = i == null ? void 0 : i.PATTERN; - return (s == null ? void 0 : s.source) && MQt("^" + s.source + "$", e.value) && n.push(i), n; + return (s == null ? void 0 : s.source) && PQt("^" + s.source + "$", e.value) && n.push(i), n; }, []); } } class uge { convert(e, r) { let n = r.grammarSource; - if (LI(n) && (n = IQt(n)), j0(n)) { + if (LI(n) && (n = BQt(n)), j0(n)) { const i = n.rule.ref; if (!i) throw new Error("This cst node was not parsed by a rule."); @@ -80989,7 +80995,7 @@ class uge { case "ID": return $u.convertID(r); } - switch ((i = VQt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { + switch ((i = YQt(e)) === null || i === void 0 ? void 0 : i.toLowerCase()) { case "number": return $u.convertNumber(r); case "boolean": @@ -81084,38 +81090,38 @@ kE.default = AR; var Xs = {}; Object.defineProperty(Xs, "__esModule", { value: !0 }); Xs.stringArray = Xs.array = Xs.func = Xs.error = Xs.number = Xs.string = Xs.boolean = void 0; -function sYt(t) { +function oYt(t) { return t === !0 || t === !1; } -Xs.boolean = sYt; +Xs.boolean = oYt; function hge(t) { return typeof t == "string" || t instanceof String; } Xs.string = hge; -function aYt(t) { +function lYt(t) { return typeof t == "number" || t instanceof Number; } -Xs.number = aYt; -function oYt(t) { +Xs.number = lYt; +function cYt(t) { return t instanceof Error; } -Xs.error = oYt; -function lYt(t) { +Xs.error = cYt; +function uYt(t) { return typeof t == "function"; } -Xs.func = lYt; +Xs.func = uYt; function fge(t) { return Array.isArray(t); } Xs.array = fge; -function cYt(t) { +function hYt(t) { return fge(t) && t.every((e) => hge(e)); } -Xs.stringArray = cYt; +Xs.stringArray = hYt; var r1 = {}; Object.defineProperty(r1, "__esModule", { value: !0 }); r1.Emitter = r1.Event = void 0; -const uYt = kE; +const fYt = kE; var jX; (function(t) { const e = { dispose() { @@ -81124,7 +81130,7 @@ var jX; return e; }; })(jX || (r1.Event = jX = {})); -class hYt { +class dYt { add(e, r = null, n) { this._callbacks || (this._callbacks = [], this._contexts = []), this._callbacks.push(e), this._contexts.push(r), Array.isArray(n) && n.push({ dispose: () => this.remove(e, r) }); } @@ -81150,7 +81156,7 @@ class hYt { try { r.push(n[s].apply(i[s], e)); } catch (o) { - (0, uYt.default)().console.error(o); + (0, fYt.default)().console.error(o); } return r; } @@ -81167,7 +81173,7 @@ class SE { } get event() { return this._event || (this._event = (e, r, n) => { - this._callbacks || (this._callbacks = new hYt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); + this._callbacks || (this._callbacks = new dYt()), this._options && this._options.onFirstListenerAdd && this._callbacks.isEmpty() && this._options.onFirstListenerAdd(this), this._callbacks.add(e, r); const i = { dispose: () => { !this._callbacks || (this._callbacks.remove(e, r), i.dispose = SE._noop, this._options && this._options.onLastListenerRemove && this._callbacks.isEmpty() && this._options.onLastListenerRemove(this)); @@ -81189,7 +81195,7 @@ SE._noop = function() { var as; Object.defineProperty(kb, "__esModule", { value: !0 }); var LR = kb.CancellationTokenSource = as = kb.CancellationToken = void 0; -const fYt = kE, dYt = Xs, RR = r1; +const pYt = kE, gYt = Xs, RR = r1; var NS; (function(t) { t.None = Object.freeze({ @@ -81201,12 +81207,12 @@ var NS; }); function e(r) { const n = r; - return n && (n === t.None || n === t.Cancelled || dYt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); + return n && (n === t.None || n === t.Cancelled || gYt.boolean(n.isCancellationRequested) && !!n.onCancellationRequested); } t.is = e; })(NS || (as = kb.CancellationToken = NS = {})); -const pYt = Object.freeze(function(t, e) { - const r = (0, fYt.default)().timer.setTimeout(t.bind(e), 0); +const mYt = Object.freeze(function(t, e) { + const r = (0, pYt.default)().timer.setTimeout(t.bind(e), 0); return { dispose() { r.dispose(); } }; @@ -81222,13 +81228,13 @@ class KX { return this._isCancelled; } get onCancellationRequested() { - return this._isCancelled ? pYt : (this._emitter || (this._emitter = new RR.Emitter()), this._emitter.event); + return this._isCancelled ? mYt : (this._emitter || (this._emitter = new RR.Emitter()), this._emitter.event); } dispose() { this._emitter && (this._emitter.dispose(), this._emitter = void 0); } } -class gYt { +class vYt { get token() { return this._token || (this._token = new KX()), this._token; } @@ -81239,13 +81245,13 @@ class gYt { this._token ? this._token instanceof KX && this._token.dispose() : this._token = NS.None; } } -LR = kb.CancellationTokenSource = gYt; -function mYt() { +LR = kb.CancellationTokenSource = vYt; +function yYt() { return new Promise((t) => { typeof setImmediate > "u" ? setTimeout(t, 0) : setImmediate(t); }); } -let JX = 0, vYt = 10; +let JX = 0, bYt = 10; const IS = Symbol("OperationCancelled"); function HI(t) { return t === IS; @@ -81254,7 +81260,7 @@ async function jl(t) { if (t === as.None) return; const e = Date.now(); - if (e - JX >= vYt && (JX = e, await mYt()), t.isCancellationRequested) + if (e - JX >= bYt && (JX = e, await yYt()), t.isCancellationRequested) throw IS; } class ZI { @@ -81365,7 +81371,7 @@ var MR; } t.update = r; function n(i, s) { - const a = i.getText(), o = DR(s.map(yYt), (h, f) => { + const a = i.getText(), o = DR(s.map(xYt), (h, f) => { const d = h.range.start.line - f.range.start.line; return d === 0 ? h.range.start.character - f.range.start.character : d; }); @@ -81410,7 +81416,7 @@ function pge(t) { const e = t.start, r = t.end; return e.line > r.line || e.line === r.line && e.character > r.character ? { start: r, end: e } : t; } -function yYt(t) { +function xYt(t) { const e = pge(t.range); return e !== t.range ? { newText: t.newText, range: e } : t; } @@ -81805,7 +81811,7 @@ var Bn; (function(t) { t[t.Changed = 0] = "Changed", t[t.Parsed = 1] = "Parsed", t[t.IndexedContent = 2] = "IndexedContent", t[t.ComputedScopes = 3] = "ComputedScopes", t[t.Linked = 4] = "Linked", t[t.IndexedReferences = 5] = "IndexedReferences", t[t.Validated = 6] = "Validated"; })(Bn || (Bn = {})); -class bYt { +class wYt { constructor(e) { this.serviceRegistry = e.ServiceRegistry, this.textDocuments = e.workspace.TextDocuments, this.fileSystemProvider = e.workspace.FileSystemProvider; } @@ -81894,7 +81900,7 @@ class bYt { return () => i != null ? i : i = MR.create(e.toString(), n.getServices(e).LanguageMetaData.languageId, 0, r != null ? r : ""); } } -class xYt { +class OYt { constructor(e) { this.documentMap = /* @__PURE__ */ new Map(), this.langiumDocumentFactory = e.workspace.LangiumDocumentFactory; } @@ -81935,7 +81941,7 @@ class xYt { return n && (n.state = Bn.Changed, this.documentMap.delete(r)), n; } } -class wYt { +class kYt { constructor(e) { this.reflection = e.shared.AstReflection, this.langiumDocuments = () => e.shared.workspace.LangiumDocuments, this.scopeProvider = e.references.ScopeProvider, this.astNodeLocator = e.workspace.AstNodeLocator; } @@ -81976,7 +81982,7 @@ class wYt { var o; if (Js(this._ref)) return this._ref; - if (zzt(this._nodeDescription)) { + if (Uzt(this._nodeDescription)) { const l = s.loadAstNode(this._nodeDescription); this._ref = l != null ? l : s.createLinkingError({ reference: a, container: e, property: r }, this._nodeDescription); } else if (this._ref === void 0) { @@ -82026,25 +82032,25 @@ class wYt { return Object.assign(Object.assign({}, e), { message: `Could not resolve reference to ${i} named '${e.reference.$refText}'.`, targetDescription: r }); } } -function OYt(t) { +function SYt(t) { return typeof t.name == "string"; } -class kYt { +class TYt { getName(e) { - if (OYt(e)) + if (SYt(e)) return e.name; } getNameNode(e) { return spe(e.$cstNode, "name"); } } -class SYt { +class CYt { constructor(e) { this.nameProvider = e.references.NameProvider, this.index = e.shared.workspace.IndexManager, this.nodeLocator = e.workspace.AstNodeLocator; } findDeclaration(e) { if (e) { - const r = QQt(e), n = e.astNode; + const r = VQt(e), n = e.astNode; if (r && n) { const i = n[r.feature]; if (Gc(i)) @@ -82057,7 +82063,7 @@ class SYt { } if (n) { const i = this.nameProvider.getNameNode(n); - if (i && (i === e || Vzt(e, i))) + if (i && (i === e || Yzt(e, i))) return n; } } @@ -82181,7 +82187,7 @@ class tH { return r !== void 0 ? (this.map.delete(e), this.inverse.delete(r), !0) : !1; } } -class TYt { +class EYt { constructor(e) { this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider; } @@ -82229,7 +82235,7 @@ class rH { return this.outerScope.getElement(e); } } -class CYt { +class _Yt { constructor(e, r, n) { var i; this.elements = /* @__PURE__ */ new Map(), this.caseInsensitive = (i = n == null ? void 0 : n.caseInsensitive) !== null && i !== void 0 ? i : !1; @@ -82266,7 +82272,7 @@ class mge { throw new Error("This cache has already been disposed"); } } -class EYt extends mge { +class AYt extends mge { constructor() { super(...arguments), this.cache = /* @__PURE__ */ new Map(); } @@ -82292,7 +82298,7 @@ class EYt extends mge { this.throwIfDisposed(), this.cache.clear(); } } -class _Yt extends mge { +class LYt extends mge { constructor(e) { super(), this.cache = /* @__PURE__ */ new Map(), this.converter = e != null ? e : (r) => r; } @@ -82329,16 +82335,16 @@ class _Yt extends mge { return n || (n = /* @__PURE__ */ new Map(), this.cache.set(r, n)), n; } } -class AYt extends EYt { +class RYt extends AYt { constructor(e) { super(), this.onDispose(e.workspace.DocumentBuilder.onUpdate(() => { this.clear(); })); } } -class LYt { +class MYt { constructor(e) { - this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new AYt(e.shared); + this.reflection = e.shared.AstReflection, this.nameProvider = e.references.NameProvider, this.descriptions = e.workspace.AstNodeDescriptionProvider, this.indexManager = e.shared.workspace.IndexManager, this.globalScopeCache = new RYt(e.shared); } getScope(e) { const r = [], n = this.reflection.getReferenceType(e), i = hu(e.container).precomputedScopes; @@ -82366,16 +82372,16 @@ class LYt { return new rH(i, r, n); } getGlobalScope(e, r) { - return this.globalScopeCache.get(e, () => new CYt(this.indexManager.allElements(e))); + return this.globalScopeCache.get(e, () => new _Yt(this.indexManager.allElements(e))); } } -function RYt(t) { +function DYt(t) { return typeof t.$comment == "string"; } function nH(t) { return typeof t == "object" && !!t && ("$ref" in t || "$error" in t); } -class MYt { +class PYt { constructor(e) { this.ignoreProperties = /* @__PURE__ */ new Set(["$container", "$containerProperty", "$containerIndex", "$document", "$cstNode"]), this.langiumDocuments = e.shared.workspace.LangiumDocuments, this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider, this.commentProvider = e.documentation.CommentProvider; } @@ -82431,7 +82437,7 @@ class MYt { if (e.$cstNode) { const n = e.$textRegion = r(e.$cstNode), i = n.assignments = {}; return Object.keys(e).filter((s) => !s.startsWith("$")).forEach((s) => { - const a = BQt(e.$cstNode, s).map(r); + const a = zQt(e.$cstNode, s).map(r); a.length !== 0 && (i[s] = a); }), e; } @@ -82495,7 +82501,7 @@ class MYt { } } } -class DYt { +class NYt { register(e) { if (!this.singleton && !this.map) { this.singleton = e; @@ -82530,7 +82536,7 @@ var $S; (function(t) { t.all = ["fast", "slow", "built-in"]; })($S || ($S = {})); -class PYt { +class IYt { constructor(e) { this.entries = new jI(), this.reflection = e.shared.AstReflection; } @@ -82582,7 +82588,7 @@ class PYt { return r && (n = n.filter((i) => r.includes(i.category))), n.map((i) => i.check); } } -class NYt { +class $Yt { constructor(e) { this.validationRegistry = e.validation.ValidationRegistry, this.metadata = e.LanguageMetaData; } @@ -82690,7 +82696,7 @@ class NYt { toDiagnostic(e, r, n) { return { message: r, - range: IYt(n), + range: BYt(n), severity: XA(e), code: n.code, codeDescription: n.codeDescription, @@ -82704,11 +82710,11 @@ class NYt { return this.metadata.languageId; } } -function IYt(t) { +function BYt(t) { if (t.range) return t.range; let e; - return typeof t.property == "string" ? e = spe(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = FQt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { + return typeof t.property == "string" ? e = spe(t.node.$cstNode, t.property, t.index) : typeof t.keyword == "string" && (e = QQt(t.node.$cstNode, t.keyword, t.index)), e != null || (e = t.node.$cstNode), e ? e.range : { start: { line: 0, character: 0 }, end: { line: 0, character: 0 } }; @@ -82731,7 +82737,7 @@ var Kh; (function(t) { t.LexingError = "lexing-error", t.ParsingError = "parsing-error", t.LinkingError = "linking-error"; })(Kh || (Kh = {})); -class $Yt { +class FYt { constructor(e) { this.astNodeLocator = e.workspace.AstNodeLocator, this.nameProvider = e.references.NameProvider; } @@ -82758,7 +82764,7 @@ class $Yt { }; } } -class BYt { +class zYt { constructor(e) { this.nodeLocator = e.workspace.AstNodeLocator; } @@ -82786,7 +82792,7 @@ class BYt { }; } } -class FYt { +class QYt { constructor() { this.segmentSeparator = "/", this.indexSeparator = "@"; } @@ -82815,7 +82821,7 @@ class FYt { }, e); } } -class zYt { +class UYt { constructor(e) { this._ready = new ZI(), this.settings = {}, this.workspaceConfig = !1, this.serviceRegistry = e.ServiceRegistry; } @@ -82872,7 +82878,7 @@ var BS; } t.create = e; })(BS || (BS = {})); -class QYt { +class VYt { constructor(e) { this.updateBuildOptions = { validation: { @@ -83016,9 +83022,9 @@ class QYt { return (n = (r = this.buildState.get(e.uri.toString())) === null || r === void 0 ? void 0 : r.options) !== null && n !== void 0 ? n : {}; } } -class UYt { +class qYt { constructor(e) { - this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new _Yt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; + this.symbolIndex = /* @__PURE__ */ new Map(), this.symbolByTypeIndex = new LYt(), this.referenceIndex = /* @__PURE__ */ new Map(), this.documents = e.workspace.LangiumDocuments, this.serviceRegistry = e.ServiceRegistry, this.astReflection = e.AstReflection; } findAllReferences(e, r) { const n = hu(e).uri, i = []; @@ -83056,7 +83062,7 @@ class UYt { return n ? n.some((i) => !i.local && r.has(i.targetUri.toString())) : !1; } } -class VYt { +class YYt { constructor(e) { this.initialBuildOptions = {}, this._ready = new ZI(), this.serviceRegistry = e.ServiceRegistry, this.langiumDocuments = e.workspace.LangiumDocuments, this.documentBuilder = e.workspace.DocumentBuilder, this.fileSystemProvider = e.workspace.FileSystemProvider, this.mutex = e.workspace.WorkspaceLock; } @@ -83115,7 +83121,7 @@ class VYt { return !1; } } -class qYt { +class WYt { constructor(e) { const r = e.parser.TokenBuilder.buildTokens(e.Grammar, { caseInsensitive: e.LanguageMetaData.caseInsensitive @@ -83145,30 +83151,30 @@ class qYt { return r.forEach((i) => n[i.name] = i), n; } } -function YYt(t) { +function GYt(t) { return Array.isArray(t) && (t.length === 0 || "name" in t[0]); } function vge(t) { return t && "modes" in t && "defaultMode" in t; } function sH(t) { - return !YYt(t) && !vge(t); + return !GYt(t) && !vge(t); } -function WYt(t, e, r) { +function XYt(t, e, r) { let n, i; typeof t == "string" ? (i = e, n = r) : (i = t.range.start, n = e), i || (i = Kr.create(0, 0)); - const s = yge(t), a = KI(n), o = HYt({ + const s = yge(t), a = KI(n), o = jYt({ lines: s, position: i, options: a }); - return eWt({ + return rWt({ index: 0, tokens: o, position: i }); } -function GYt(t, e) { +function HYt(t, e) { const r = KI(e), n = yge(t); if (n.length === 0) return !1; @@ -83177,10 +83183,10 @@ function GYt(t, e) { } function yge(t) { let e = ""; - return typeof t == "string" ? e = t : e = t.text, e.split(EQt); + return typeof t == "string" ? e = t : e = t.text, e.split(AQt); } -const aH = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, XYt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; -function HYt(t) { +const aH = /\s*(@([\p{L}][\p{L}\p{N}]*)?)/uy, ZYt = /\{(@[\p{L}][\p{L}\p{N}]*)(\s*)([^\r\n}]+)?\}/gu; +function jYt(t) { var e, r, n; const i = []; let s = t.position.line, a = t.position.character; @@ -83198,7 +83204,7 @@ function HYt(t) { const p = (n = t.options.end) === null || n === void 0 ? void 0 : n.exec(h); p && (h = h.substring(0, p.index)); } - if (h = h.substring(0, JYt(h)), PR(h, f) >= h.length) { + if (h = h.substring(0, tWt(h)), PR(h, f) >= h.length) { if (i.length > 0) { const p = Kr.create(s, a); i.push({ @@ -83219,15 +83225,15 @@ function HYt(t) { }), f += g.length, f = PR(h, f); } if (f < h.length) { - const g = h.substring(f), m = Array.from(g.matchAll(XYt)); - i.push(...ZYt(m, g, s, a + f)); + const g = h.substring(f), m = Array.from(g.matchAll(ZYt)); + i.push(...KYt(m, g, s, a + f)); } } s++, a = 0; } return i.length > 0 && i[i.length - 1].type === "break" ? i.slice(0, -1) : i; } -function ZYt(t, e, r, n) { +function KYt(t, e, r, n) { const i = []; if (t.length === 0) { const s = Kr.create(r, n), a = Kr.create(r, n + e.length); @@ -83276,38 +83282,38 @@ function ZYt(t, e, r, n) { } return i; } -const jYt = /\S/, KYt = /\s*$/; +const JYt = /\S/, eWt = /\s*$/; function PR(t, e) { - const r = t.substring(e).match(jYt); + const r = t.substring(e).match(JYt); return r ? e + r.index : t.length; } -function JYt(t) { - const e = t.match(KYt); +function tWt(t) { + const e = t.match(eWt); if (e && typeof e.index == "number") return e.index; } -function eWt(t) { +function rWt(t) { var e, r, n, i; const s = Kr.create(t.position.line, t.position.character); if (t.tokens.length === 0) return new oH([], Ir.create(s, s)); const a = []; for (; t.index < t.tokens.length; ) { - const u = tWt(t, a[a.length - 1]); + const u = nWt(t, a[a.length - 1]); u && a.push(u); } const o = (r = (e = a[0]) === null || e === void 0 ? void 0 : e.range.start) !== null && r !== void 0 ? r : s, l = (i = (n = a[a.length - 1]) === null || n === void 0 ? void 0 : n.range.end) !== null && i !== void 0 ? i : s; return new oH(a, Ir.create(o, l)); } -function tWt(t, e) { +function nWt(t, e) { const r = t.tokens[t.index]; if (r.type === "tag") return xge(t, !1); if (r.type === "text" || r.type === "inline-tag") return bge(t); - rWt(r, e), t.index++; + iWt(r, e), t.index++; } -function rWt(t, e) { +function iWt(t, e) { if (e) { const r = new Oge("", t.range); "inlines" in e ? e.inlines.push(r) : e.content.inlines.push(r); @@ -83319,10 +83325,10 @@ function bge(t) { let n = e; const i = []; for (; e && e.type !== "break" && e.type !== "tag"; ) - i.push(nWt(t)), n = e, e = t.tokens[t.index]; + i.push(sWt(t)), n = e, e = t.tokens[t.index]; return new NR(i, Ir.create(r.range.start, n.range.end)); } -function nWt(t) { +function sWt(t) { return t.tokens[t.index].type === "inline-tag" ? xge(t, !0) : wge(t); } function xge(t, e) { @@ -83418,7 +83424,7 @@ ${r}`), this.inline ? `{${e}}` : e; toMarkdownDefault(e) { const r = this.content.toMarkdown(e); if (this.inline) { - const s = iWt(this.name, r, e != null ? e : {}); + const s = aWt(this.name, r, e != null ? e : {}); if (typeof s == "string") return s; } @@ -83429,7 +83435,7 @@ ${r}`), this.inline ? `{${e}}` : e; ${r}`), this.inline ? `{${i}}` : i; } } -function iWt(t, e, r) { +function aWt(t, e, r) { var n, i; if (t === "linkplain" || t === "linkcode" || t === "link") { const s = e.indexOf(" "); @@ -83438,10 +83444,10 @@ function iWt(t, e, r) { const l = PR(e, s); a = e.substring(l), e = e.substring(0, s); } - return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : sWt(e, a); + return (t === "linkcode" || t === "link" && r.link === "code") && (a = `\`${a}\``), (i = (n = r.renderLink) === null || n === void 0 ? void 0 : n.call(r, e, a)) !== null && i !== void 0 ? i : oWt(e, a); } } -function sWt(t, e) { +function oWt(t, e) { try { return n1.parse(t, !0), `[${e}](${t})`; } catch { @@ -83489,14 +83495,14 @@ function lH(t) { `; } -class aWt { +class lWt { constructor(e) { this.indexManager = e.shared.workspace.IndexManager, this.commentProvider = e.documentation.CommentProvider; } getDocumentation(e) { const r = this.commentProvider.getComment(e); - if (r && GYt(r)) - return WYt(r).toMarkdown({ + if (r && HYt(r)) + return XYt(r).toMarkdown({ renderLink: (i, s) => this.documentationLinkRenderer(e, i, s), renderTag: (i) => this.documentationTagRenderer(e, i) }); @@ -83528,16 +83534,16 @@ class aWt { return this.indexManager.allElements().find((i) => i.name === r); } } -class oWt { +class cWt { constructor(e) { this.grammarConfig = () => e.parser.GrammarConfig; } getComment(e) { var r; - return RYt(e) ? e.$comment : (r = Gzt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; + return DYt(e) ? e.$comment : (r = Hzt(e.$cstNode, this.grammarConfig().multilineCommentRules)) === null || r === void 0 ? void 0 : r.text; } } -class lWt { +class uWt { constructor(e) { this.syncParser = e.parser.LangiumParser; } @@ -83545,7 +83551,7 @@ class lWt { return Promise.resolve(this.syncParser.parse(e)); } } -class cWt { +class hWt { constructor() { this.previousTokenSource = new LR(), this.writeQueue = [], this.readQueue = [], this.done = !0; } @@ -83588,7 +83594,7 @@ class cWt { this.previousTokenSource.cancel(); } } -class uWt { +class fWt { constructor(e) { this.grammarElementIdMap = new tH(), this.tokenTypeIdMap = new tH(), this.grammar = e.Grammar, this.lexer = e.parser.Lexer, this.linker = e.references.Linker; } @@ -83714,60 +83720,60 @@ class uWt { createGrammarElementIdMap() { let e = 0; for (const r of Gg(this.grammar)) - Zzt(r) && this.grammarElementIdMap.set(r, e++); + Kzt(r) && this.grammarElementIdMap.set(r, e++); } } function H1(t) { return { documentation: { - CommentProvider: (e) => new oWt(e), - DocumentationProvider: (e) => new aWt(e) + CommentProvider: (e) => new cWt(e), + DocumentationProvider: (e) => new lWt(e) }, parser: { - AsyncParser: (e) => new lWt(e), - GrammarConfig: (e) => HQt(e), - LangiumParser: (e) => nYt(e), - CompletionParser: (e) => rYt(e), + AsyncParser: (e) => new uWt(e), + GrammarConfig: (e) => jQt(e), + LangiumParser: (e) => sYt(e), + CompletionParser: (e) => iYt(e), ValueConverter: () => new uge(), TokenBuilder: () => new cge(), - Lexer: (e) => new qYt(e), + Lexer: (e) => new WYt(e), ParserErrorMessageProvider: () => new ige() }, workspace: { - AstNodeLocator: () => new FYt(), - AstNodeDescriptionProvider: (e) => new $Yt(e), - ReferenceDescriptionProvider: (e) => new BYt(e) + AstNodeLocator: () => new QYt(), + AstNodeDescriptionProvider: (e) => new FYt(e), + ReferenceDescriptionProvider: (e) => new zYt(e) }, references: { - Linker: (e) => new wYt(e), - NameProvider: () => new kYt(), - ScopeProvider: (e) => new LYt(e), - ScopeComputation: (e) => new TYt(e), - References: (e) => new SYt(e) + Linker: (e) => new kYt(e), + NameProvider: () => new TYt(), + ScopeProvider: (e) => new MYt(e), + ScopeComputation: (e) => new EYt(e), + References: (e) => new CYt(e) }, serializer: { - Hydrator: (e) => new uWt(e), - JsonSerializer: (e) => new MYt(e) + Hydrator: (e) => new fWt(e), + JsonSerializer: (e) => new PYt(e) }, validation: { - DocumentValidator: (e) => new NYt(e), - ValidationRegistry: (e) => new PYt(e) + DocumentValidator: (e) => new $Yt(e), + ValidationRegistry: (e) => new IYt(e) }, shared: () => t.shared }; } function Z1(t) { return { - ServiceRegistry: () => new DYt(), + ServiceRegistry: () => new NYt(), workspace: { - LangiumDocuments: (e) => new xYt(e), - LangiumDocumentFactory: (e) => new bYt(e), - DocumentBuilder: (e) => new QYt(e), - IndexManager: (e) => new UYt(e), - WorkspaceManager: (e) => new VYt(e), + LangiumDocuments: (e) => new OYt(e), + LangiumDocumentFactory: (e) => new wYt(e), + DocumentBuilder: (e) => new VYt(e), + IndexManager: (e) => new qYt(e), + WorkspaceManager: (e) => new YYt(e), FileSystemProvider: (e) => t.fileSystemProvider(e), - WorkspaceLock: () => new cWt(), - ConfigurationProvider: (e) => new zYt(e) + WorkspaceLock: () => new hWt(), + ConfigurationProvider: (e) => new UYt(e) } }; } @@ -83820,7 +83826,7 @@ function FS(t, e) { } return t; } -class hWt { +class dWt { readFile() { throw new Error("No file system is available."); } @@ -83829,8 +83835,8 @@ class hWt { } } const j1 = { - fileSystemProvider: () => new hWt() -}, fWt = { + fileSystemProvider: () => new dWt() +}, pWt = { Grammar: () => { }, LanguageMetaData: () => ({ @@ -83838,86 +83844,86 @@ const j1 = { fileExtensions: [".langium"], languageId: "langium" }) -}, dWt = { +}, gWt = { AstReflection: () => new J0e() }; -function pWt() { - const t = Ol(Z1(j1), dWt), e = Ol(H1({ shared: t }), fWt); +function mWt() { + const t = Ol(Z1(j1), gWt), e = Ol(H1({ shared: t }), pWt); return t.ServiceRegistry.register(e), e; } function Lw(t) { var e; - const r = pWt(), n = r.serializer.JsonSerializer.deserialize(t); + const r = mWt(), n = r.serializer.JsonSerializer.deserialize(t); return r.shared.workspace.LangiumDocumentFactory.fromModel(n, n1.parse(`memory://${(e = n.name) !== null && e !== void 0 ? e : "grammar"}.langium`)), n; } -var gWt = Object.defineProperty, qt = (t, e) => gWt(t, "name", { value: e, configurable: !0 }), mWt = "Statement", vWt = "Architecture"; -function yWt(t) { - return bc.isInstance(t, vWt); +var vWt = Object.defineProperty, qt = (t, e) => vWt(t, "name", { value: e, configurable: !0 }), yWt = "Statement", bWt = "Architecture"; +function xWt(t) { + return bc.isInstance(t, bWt); } -qt(yWt, "isArchitecture"); +qt(xWt, "isArchitecture"); var Sge = "Branch"; -function bWt(t) { +function wWt(t) { return bc.isInstance(t, Sge); } -qt(bWt, "isBranch"); -var xWt = "Checkout", wWt = "CherryPicking", Tge = "Commit"; -function OWt(t) { +qt(wWt, "isBranch"); +var OWt = "Checkout", kWt = "CherryPicking", Tge = "Commit"; +function SWt(t) { return bc.isInstance(t, Tge); } -qt(OWt, "isCommit"); -var kWt = "Common"; -function SWt(t) { - return bc.isInstance(t, kWt); +qt(SWt, "isCommit"); +var TWt = "Common"; +function CWt(t) { + return bc.isInstance(t, TWt); } -qt(SWt, "isCommon"); +qt(CWt, "isCommon"); var Cge = "GitGraph"; -function TWt(t) { +function EWt(t) { return bc.isInstance(t, Cge); } -qt(TWt, "isGitGraph"); -var CWt = "Info"; -function EWt(t) { - return bc.isInstance(t, CWt); +qt(EWt, "isGitGraph"); +var _Wt = "Info"; +function AWt(t) { + return bc.isInstance(t, _Wt); } -qt(EWt, "isInfo"); +qt(AWt, "isInfo"); var Ege = "Merge"; -function _Wt(t) { - return bc.isInstance(t, Ege); -} -qt(_Wt, "isMerge"); -var AWt = "Packet"; function LWt(t) { - return bc.isInstance(t, AWt); + return bc.isInstance(t, Ege); } -qt(LWt, "isPacket"); -var RWt = "PacketBlock"; +qt(LWt, "isMerge"); +var RWt = "Packet"; function MWt(t) { return bc.isInstance(t, RWt); } -qt(MWt, "isPacketBlock"); -var DWt = "Pie"; +qt(MWt, "isPacket"); +var DWt = "PacketBlock"; function PWt(t) { return bc.isInstance(t, DWt); } -qt(PWt, "isPie"); -var NWt = "PieSection"; +qt(PWt, "isPacketBlock"); +var NWt = "Pie"; function IWt(t) { return bc.isInstance(t, NWt); } -qt(IWt, "isPieSection"); -var $Wt = "Direction", sx, _ge = (sx = class extends g0e { +qt(IWt, "isPie"); +var $Wt = "PieSection"; +function BWt(t) { + return bc.isInstance(t, $Wt); +} +qt(BWt, "isPieSection"); +var FWt = "Direction", sx, _ge = (sx = class extends g0e { getAllTypes() { return ["Architecture", "Branch", "Checkout", "CherryPicking", "Commit", "Common", "Direction", "Edge", "GitGraph", "Group", "Info", "Junction", "Merge", "Packet", "PacketBlock", "Pie", "PieSection", "Service", "Statement"]; } computeIsSubtype(e, r) { switch (e) { case Sge: - case xWt: - case wWt: + case OWt: + case kWt: case Tge: case Ege: - return this.isSubtype(mWt, r); - case $Wt: + return this.isSubtype(yWt, r); + case FWt: return this.isSubtype(Cge, r); default: return !1; @@ -84119,36 +84125,28 @@ var $Wt = "Direction", sx, _ge = (sx = class extends g0e { } }, (() => { qt(sx, "MermaidAstReflection"); -})(), sx), bc = new _ge(), x4, BWt = /* @__PURE__ */ qt(() => x4 != null ? x4 : x4 = Lw('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), w4, FWt = /* @__PURE__ */ qt(() => w4 != null ? w4 : w4 = Lw(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), O4, zWt = /* @__PURE__ */ qt(() => O4 != null ? O4 : O4 = Lw('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), k4, QWt = /* @__PURE__ */ qt(() => k4 != null ? k4 : k4 = Lw('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), S4, UWt = /* @__PURE__ */ qt(() => S4 != null ? S4 : S4 = Lw(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), VWt = { +})(), sx), bc = new _ge(), x4, zWt = /* @__PURE__ */ qt(() => x4 != null ? x4 : x4 = Lw('{"$type":"Grammar","isDeclared":true,"name":"Info","imports":[],"rules":[{"$type":"ParserRule","name":"Info","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"info"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"Keyword","value":"showInfo"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"*"}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"?"}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "InfoGrammar"), w4, QWt = /* @__PURE__ */ qt(() => w4 != null ? w4 : w4 = Lw(`{"$type":"Grammar","isDeclared":true,"name":"Packet","imports":[],"rules":[{"$type":"ParserRule","name":"Packet","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"packet-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"blocks","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PacketBlock","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"start","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"end","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}}],"cardinality":"?"},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/0|[1-9][0-9]*/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}`), "PacketGrammar"), O4, UWt = /* @__PURE__ */ qt(() => O4 != null ? O4 : O4 = Lw('{"$type":"Grammar","isDeclared":true,"name":"Pie","imports":[],"rules":[{"$type":"ParserRule","name":"Pie","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"pie"},{"$type":"Assignment","feature":"showData","operator":"?=","terminal":{"$type":"Keyword","value":"showData"},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"*"}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"Assignment","feature":"sections","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]},"cardinality":"+"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"PieSection","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"label","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}},{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"value","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"PIE_SECTION_LABEL","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]+\\"/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"PIE_SECTION_VALUE","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/(0|[1-9][0-9]*)(\\\\.[0-9]+)?/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "PieGrammar"), k4, VWt = /* @__PURE__ */ qt(() => k4 != null ? k4 : k4 = Lw('{"$type":"Grammar","isDeclared":true,"name":"Architecture","imports":[],"rules":[{"$type":"ParserRule","name":"Architecture","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"Keyword","value":"architecture-beta"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]}]},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[],"cardinality":"*"}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","fragment":true,"definition":{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"groups","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}},{"$type":"Assignment","feature":"services","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@6"},"arguments":[]}},{"$type":"Assignment","feature":"junctions","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@7"},"arguments":[]}},{"$type":"Assignment","feature":"edges","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@8"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"LeftPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Keyword","value":":"},{"$type":"Assignment","feature":"lhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"RightPort","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"rhsDir","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@9"},"arguments":[]}},{"$type":"Keyword","value":":"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Arrow","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]},{"$type":"Assignment","feature":"lhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"--"},{"$type":"Group","elements":[{"$type":"Keyword","value":"-"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]}},{"$type":"Keyword","value":"-"}]}]},{"$type":"Assignment","feature":"rhsInto","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Group","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"group"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Service","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"service"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"iconText","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"Assignment","feature":"icon","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]}}],"cardinality":"?"},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},"cardinality":"?"},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Junction","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"junction"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"in"},{"$type":"Assignment","feature":"in","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Edge","definition":{"$type":"Group","elements":[{"$type":"Assignment","feature":"lhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"lhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]},{"$type":"Assignment","feature":"rhsId","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@10"},"arguments":[]}},{"$type":"Assignment","feature":"rhsGroup","operator":"?=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"ARROW_DIRECTION","definition":{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"TerminalAlternatives","elements":[{"$type":"CharacterRange","left":{"$type":"Keyword","value":"L"}},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"R"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"T"}}]},{"$type":"CharacterRange","left":{"$type":"Keyword","value":"B"}}]},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ID","definition":{"$type":"RegexToken","regex":"/[\\\\w]+/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TEXT_ICON","definition":{"$type":"RegexToken","regex":"/\\\\(\\"[^\\"]+\\"\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_ICON","definition":{"$type":"RegexToken","regex":"/\\\\([\\\\w-:]+\\\\)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARCH_TITLE","definition":{"$type":"RegexToken","regex":"/\\\\[[\\\\w ]+\\\\]/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_GROUP","definition":{"$type":"RegexToken","regex":"/\\\\{group\\\\}/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ARROW_INTO","definition":{"$type":"RegexToken","regex":"/<|>/"},"fragment":false,"hidden":false},{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@21"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false}],"definesHiddenTokens":false,"hiddenTokens":[],"interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"types":[],"usedGrammars":[]}'), "ArchitectureGrammar"), S4, qWt = /* @__PURE__ */ qt(() => S4 != null ? S4 : S4 = Lw(`{"$type":"Grammar","isDeclared":true,"name":"GitGraph","interfaces":[{"$type":"Interface","name":"Common","attributes":[{"$type":"TypeAttribute","name":"accDescr","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"accTitle","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}},{"$type":"TypeAttribute","name":"title","isOptional":true,"type":{"$type":"SimpleType","primitiveType":"string"}}],"superTypes":[]}],"rules":[{"$type":"ParserRule","name":"TitleAndAccessibilities","fragment":true,"definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Assignment","feature":"accDescr","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@3"},"arguments":[]}},{"$type":"Assignment","feature":"accTitle","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@4"},"arguments":[]}},{"$type":"Assignment","feature":"title","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@5"},"arguments":[]}}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}],"cardinality":"+"},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"EOL","fragment":true,"dataType":"string","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"+"},{"$type":"EndOfFile"}]},"definesHiddenTokens":false,"entry":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"NEWLINE","definition":{"$type":"RegexToken","regex":"/\\\\r?\\\\n/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_DESCR","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accDescr(?:[\\\\t ]*:([^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)|\\\\s*{([^}]*)})/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ACC_TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*accTitle[\\\\t ]*:(?:[^\\\\n\\\\r]*?(?=%%)|[^\\\\n\\\\r]*)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"TITLE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*title(?:[\\\\t ][^\\\\n\\\\r]*?(?=%%)|[\\\\t ][^\\\\n\\\\r]*|)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","hidden":true,"name":"WHITESPACE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]+/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"YAML","definition":{"$type":"RegexToken","regex":"/---[\\\\t ]*\\\\r?\\\\n(?:[\\\\S\\\\s]*?\\\\r?\\\\n)?---(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"DIRECTIVE","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%{[\\\\S\\\\s]*?}%%(?:\\\\r?\\\\n|(?!\\\\S))/"},"fragment":false},{"$type":"TerminalRule","hidden":true,"name":"SINGLE_LINE_COMMENT","definition":{"$type":"RegexToken","regex":"/[\\\\t ]*%%[^\\\\n\\\\r]*/"},"fragment":false},{"$type":"ParserRule","name":"GitGraph","entry":true,"definition":{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"Keyword","value":":"}]},{"$type":"Keyword","value":"gitGraph:"},{"$type":"Group","elements":[{"$type":"Keyword","value":"gitGraph"},{"$type":"RuleCall","rule":{"$ref":"#/rules@12"},"arguments":[]},{"$type":"Keyword","value":":"}]}]},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Group","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[],"cardinality":"*"},{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@0"},"arguments":[]},{"$type":"Assignment","feature":"statements","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@11"},"arguments":[]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@2"},"arguments":[]}],"cardinality":"*"}]}]},"definesHiddenTokens":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Statement","definition":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@13"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@14"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@15"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@16"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@17"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Direction","definition":{"$type":"Assignment","feature":"dir","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"LR"},{"$type":"Keyword","value":"TB"},{"$type":"Keyword","value":"BT"}]}},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Commit","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"commit"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"msg:","cardinality":"?"},{"$type":"Assignment","feature":"message","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Branch","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"branch"},{"$type":"Assignment","feature":"name","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Group","elements":[{"$type":"Keyword","value":"order:"},{"$type":"Assignment","feature":"order","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@18"},"arguments":[]}}],"cardinality":"?"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Merge","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"merge"},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"type:"},{"$type":"Assignment","feature":"type","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"NORMAL"},{"$type":"Keyword","value":"REVERSE"},{"$type":"Keyword","value":"HIGHLIGHT"}]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"Checkout","definition":{"$type":"Group","elements":[{"$type":"Alternatives","elements":[{"$type":"Keyword","value":"checkout"},{"$type":"Keyword","value":"switch"}]},{"$type":"Assignment","feature":"branch","operator":"=","terminal":{"$type":"Alternatives","elements":[{"$type":"RuleCall","rule":{"$ref":"#/rules@19"},"arguments":[]},{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}]}},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"ParserRule","name":"CherryPicking","definition":{"$type":"Group","elements":[{"$type":"Keyword","value":"cherry-pick"},{"$type":"Alternatives","elements":[{"$type":"Group","elements":[{"$type":"Keyword","value":"id:"},{"$type":"Assignment","feature":"id","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"tag:"},{"$type":"Assignment","feature":"tags","operator":"+=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]},{"$type":"Group","elements":[{"$type":"Keyword","value":"parent:"},{"$type":"Assignment","feature":"parent","operator":"=","terminal":{"$type":"RuleCall","rule":{"$ref":"#/rules@20"},"arguments":[]}}]}],"cardinality":"*"},{"$type":"RuleCall","rule":{"$ref":"#/rules@1"},"arguments":[]}]},"definesHiddenTokens":false,"entry":false,"fragment":false,"hiddenTokens":[],"parameters":[],"wildcard":false},{"$type":"TerminalRule","name":"INT","type":{"$type":"ReturnType","name":"number"},"definition":{"$type":"RegexToken","regex":"/[0-9]+(?=\\\\s)/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"ID","type":{"$type":"ReturnType","name":"string"},"definition":{"$type":"RegexToken","regex":"/\\\\w([-\\\\./\\\\w]*[-\\\\w])?/"},"fragment":false,"hidden":false},{"$type":"TerminalRule","name":"STRING","definition":{"$type":"RegexToken","regex":"/\\"[^\\"]*\\"|'[^']*'/"},"fragment":false,"hidden":false}],"definesHiddenTokens":false,"hiddenTokens":[],"imports":[],"types":[],"usedGrammars":[]}`), "GitGraphGrammar"), YWt = { languageId: "info", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, qWt = { +}, WWt = { languageId: "packet", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, YWt = { +}, GWt = { languageId: "pie", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, WWt = { +}, XWt = { languageId: "architecture", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 -}, GWt = { +}, HWt = { languageId: "gitGraph", fileExtensions: [".mmd", ".mermaid"], caseInsensitive: !1 }, Rw = { AstReflection: /* @__PURE__ */ qt(() => new _ge(), "AstReflection") -}, XWt = { - Grammar: /* @__PURE__ */ qt(() => BWt(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ qt(() => VWt, "LanguageMetaData"), - parser: {} -}, HWt = { - Grammar: /* @__PURE__ */ qt(() => FWt(), "Grammar"), - LanguageMetaData: /* @__PURE__ */ qt(() => qWt, "LanguageMetaData"), - parser: {} }, ZWt = { Grammar: /* @__PURE__ */ qt(() => zWt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ qt(() => YWt, "LanguageMetaData"), @@ -84161,17 +84159,25 @@ var $Wt = "Direction", sx, _ge = (sx = class extends g0e { Grammar: /* @__PURE__ */ qt(() => UWt(), "Grammar"), LanguageMetaData: /* @__PURE__ */ qt(() => GWt, "LanguageMetaData"), parser: {} -}, JWt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, eGt = /accTitle[\t ]*:([^\n\r]*)/, tGt = /title([\t ][^\n\r]*|)/, rGt = { - ACC_DESCR: JWt, - ACC_TITLE: eGt, - TITLE: tGt +}, JWt = { + Grammar: /* @__PURE__ */ qt(() => VWt(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ qt(() => XWt, "LanguageMetaData"), + parser: {} +}, eGt = { + Grammar: /* @__PURE__ */ qt(() => qWt(), "Grammar"), + LanguageMetaData: /* @__PURE__ */ qt(() => HWt, "LanguageMetaData"), + parser: {} +}, tGt = /accDescr(?:[\t ]*:([^\n\r]*)|\s*{([^}]*)})/, rGt = /accTitle[\t ]*:([^\n\r]*)/, nGt = /title([\t ][^\n\r]*|)/, iGt = { + ACC_DESCR: tGt, + ACC_TITLE: rGt, + TITLE: nGt }, ax, JI = (ax = class extends uge { runConverter(e, r, n) { let i = this.runCommonConverter(e, r, n); return i === void 0 && (i = this.runCustomConverter(e, r, n)), i === void 0 ? super.runConverter(e, r, n) : i; } runCommonConverter(e, r, n) { - const i = rGt[e.name]; + const i = iGt[e.name]; if (i === void 0) return; const s = i.exec(r); @@ -84205,7 +84211,7 @@ var $Wt = "Direction", sx, _ge = (sx = class extends g0e { })(), lx), cx; cx = class extends K1 { }, qt(cx, "CommonTokenBuilder"); -var ux, nGt = (ux = class extends K1 { +var ux, sGt = (ux = class extends K1 { constructor() { super(["gitGraph"]); } @@ -84213,7 +84219,7 @@ var ux, nGt = (ux = class extends K1 { qt(ux, "GitGraphTokenBuilder"); })(), ux), Age = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new nGt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ qt(() => new sGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new e$(), "ValueConverter") } }; @@ -84223,13 +84229,13 @@ function Lge(t = j1) { Rw ), r = Ol( H1({ shared: e }), - KWt, + eGt, Age ); return e.ServiceRegistry.register(r), { shared: e, GitGraph: r }; } qt(Lge, "createGitGraphServices"); -var hx, iGt = (hx = class extends K1 { +var hx, aGt = (hx = class extends K1 { constructor() { super(["info", "showInfo"]); } @@ -84237,7 +84243,7 @@ var hx, iGt = (hx = class extends K1 { qt(hx, "InfoTokenBuilder"); })(), hx), Rge = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new iGt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ qt(() => new aGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new e$(), "ValueConverter") } }; @@ -84247,13 +84253,13 @@ function Mge(t = j1) { Rw ), r = Ol( H1({ shared: e }), - XWt, + ZWt, Rge ); return e.ServiceRegistry.register(r), { shared: e, Info: r }; } qt(Mge, "createInfoServices"); -var fx, sGt = (fx = class extends K1 { +var fx, oGt = (fx = class extends K1 { constructor() { super(["packet-beta"]); } @@ -84261,7 +84267,7 @@ var fx, sGt = (fx = class extends K1 { qt(fx, "PacketTokenBuilder"); })(), fx), Dge = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new sGt(), "TokenBuilder"), + TokenBuilder: /* @__PURE__ */ qt(() => new oGt(), "TokenBuilder"), ValueConverter: /* @__PURE__ */ qt(() => new e$(), "ValueConverter") } }; @@ -84271,19 +84277,19 @@ function Pge(t = j1) { Rw ), r = Ol( H1({ shared: e }), - HWt, + jWt, Dge ); return e.ServiceRegistry.register(r), { shared: e, Packet: r }; } qt(Pge, "createPacketServices"); -var dx, aGt = (dx = class extends K1 { +var dx, lGt = (dx = class extends K1 { constructor() { super(["pie", "showData"]); } }, (() => { qt(dx, "PieTokenBuilder"); -})(), dx), px, oGt = (px = class extends JI { +})(), dx), px, cGt = (px = class extends JI { runCustomConverter(e, r, n) { if (e.name === "PIE_SECTION_LABEL") return r.replace(/"/g, "").trim(); @@ -84292,8 +84298,8 @@ var dx, aGt = (dx = class extends K1 { qt(px, "PieValueConverter"); })(), px), Nge = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new aGt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ qt(() => new oGt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ qt(() => new lGt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ qt(() => new cGt(), "ValueConverter") } }; function Ige(t = j1) { @@ -84302,19 +84308,19 @@ function Ige(t = j1) { Rw ), r = Ol( H1({ shared: e }), - ZWt, + KWt, Nge ); return e.ServiceRegistry.register(r), { shared: e, Pie: r }; } qt(Ige, "createPieServices"); -var gx, lGt = (gx = class extends K1 { +var gx, uGt = (gx = class extends K1 { constructor() { super(["architecture"]); } }, (() => { qt(gx, "ArchitectureTokenBuilder"); -})(), gx), mx, cGt = (mx = class extends JI { +})(), gx), mx, hGt = (mx = class extends JI { runCustomConverter(e, r, n) { if (e.name === "ARCH_ICON") return r.replace(/[()]/g, "").trim(); @@ -84327,8 +84333,8 @@ var gx, lGt = (gx = class extends K1 { qt(mx, "ArchitectureValueConverter"); })(), mx), $ge = { parser: { - TokenBuilder: /* @__PURE__ */ qt(() => new lGt(), "TokenBuilder"), - ValueConverter: /* @__PURE__ */ qt(() => new cGt(), "ValueConverter") + TokenBuilder: /* @__PURE__ */ qt(() => new uGt(), "TokenBuilder"), + ValueConverter: /* @__PURE__ */ qt(() => new hGt(), "ValueConverter") } }; function Bge(t = j1) { @@ -84337,46 +84343,46 @@ function Bge(t = j1) { Rw ), r = Ol( H1({ shared: e }), - jWt, + JWt, $ge ); return e.ServiceRegistry.register(r), { shared: e, Architecture: r }; } qt(Bge, "createArchitectureServices"); -var jd = {}, uGt = { +var jd = {}, fGt = { info: /* @__PURE__ */ qt(async () => { - const { createInfoServices: t } = await Promise.resolve().then(() => phr), e = t().Info.parser.LangiumParser; + const { createInfoServices: t } = await Promise.resolve().then(() => mhr), e = t().Info.parser.LangiumParser; jd.info = e; }, "info"), packet: /* @__PURE__ */ qt(async () => { - const { createPacketServices: t } = await Promise.resolve().then(() => ghr), e = t().Packet.parser.LangiumParser; + const { createPacketServices: t } = await Promise.resolve().then(() => vhr), e = t().Packet.parser.LangiumParser; jd.packet = e; }, "packet"), pie: /* @__PURE__ */ qt(async () => { - const { createPieServices: t } = await Promise.resolve().then(() => mhr), e = t().Pie.parser.LangiumParser; + const { createPieServices: t } = await Promise.resolve().then(() => yhr), e = t().Pie.parser.LangiumParser; jd.pie = e; }, "pie"), architecture: /* @__PURE__ */ qt(async () => { - const { createArchitectureServices: t } = await Promise.resolve().then(() => vhr), e = t().Architecture.parser.LangiumParser; + const { createArchitectureServices: t } = await Promise.resolve().then(() => bhr), e = t().Architecture.parser.LangiumParser; jd.architecture = e; }, "architecture"), gitGraph: /* @__PURE__ */ qt(async () => { - const { createGitGraphServices: t } = await Promise.resolve().then(() => yhr), e = t().GitGraph.parser.LangiumParser; + const { createGitGraphServices: t } = await Promise.resolve().then(() => xhr), e = t().GitGraph.parser.LangiumParser; jd.gitGraph = e; }, "gitGraph") }; async function J1(t, e) { - const r = uGt[t]; + const r = fGt[t]; if (!r) throw new Error(`Unknown diagram type: ${t}`); jd[t] || await r(); const i = jd[t].parse(e); if (i.lexerErrors.length > 0 || i.parserErrors.length > 0) - throw new hGt(i); + throw new dGt(i); return i.value; } qt(J1, "parse"); -var vx, hGt = (vx = class extends Error { +var vx, dGt = (vx = class extends Error { constructor(e) { const r = e.lexerErrors.map((i) => i.message).join(` `), n = e.parserErrors.map((i) => i.message).join(` @@ -84391,8 +84397,8 @@ var vx, hGt = (vx = class extends Error { HIGHLIGHT: 2, MERGE: 3, CHERRY_PICK: 4 -}, fGt = cn.gitGraph, Np = /* @__PURE__ */ x(() => Nh({ - ...fGt, +}, pGt = cn.gitGraph, Np = /* @__PURE__ */ x(() => Nh({ + ...pGt, ...Ai().gitGraph }), "getConfig"), Mt = new AI(() => { const t = Np(), e = t.mainBranchName, r = t.mainBranchOrder; @@ -84420,18 +84426,18 @@ function Fge(t, e) { }, []); } x(Fge, "uniqBy"); -var dGt = /* @__PURE__ */ x(function(t) { +var gGt = /* @__PURE__ */ x(function(t) { Mt.records.direction = t; -}, "setDirection"), pGt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), mGt = /* @__PURE__ */ x(function(t) { H.debug("options str", t), t = t == null ? void 0 : t.trim(), t = t || "{}"; try { Mt.records.options = JSON.parse(t); } catch (e) { H.error("error while parsing gitGraph options", e.message); } -}, "setOptions"), gGt = /* @__PURE__ */ x(function() { +}, "setOptions"), vGt = /* @__PURE__ */ x(function() { return Mt.records.options; -}, "getOptions"), mGt = /* @__PURE__ */ x(function(t) { +}, "getOptions"), yGt = /* @__PURE__ */ x(function(t) { let e = t.msg, r = t.id; const n = t.type; let i = t.tags; @@ -84448,7 +84454,7 @@ var dGt = /* @__PURE__ */ x(function(t) { branch: Mt.records.currBranch }; Mt.records.head = a, H.info("main branch", s.mainBranchName), Mt.records.commits.set(a.id, a), Mt.records.branches.set(Mt.records.currBranch, a.id), H.debug("in pushCommit " + a.id); -}, "commit"), vGt = /* @__PURE__ */ x(function(t) { +}, "commit"), bGt = /* @__PURE__ */ x(function(t) { let e = t.name; const r = t.order; if (e = mt.sanitizeText(e, Np()), Mt.records.branches.has(e)) @@ -84456,7 +84462,7 @@ var dGt = /* @__PURE__ */ x(function(t) { `Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")` ); Mt.records.branches.set(e, Mt.records.head != null ? Mt.records.head.id : null), Mt.records.branchConfig.set(e, { name: e, order: r }), zge(e), H.debug("in createBranch"); -}, "branch"), yGt = /* @__PURE__ */ x((t) => { +}, "branch"), xGt = /* @__PURE__ */ x((t) => { let e = t.branch, r = t.id; const n = t.type, i = t.tags, s = Np(); e = mt.sanitizeText(e, s), r && (r = mt.sanitizeText(r, s)); @@ -84533,7 +84539,7 @@ var dGt = /* @__PURE__ */ x(function(t) { tags: i != null ? i : [] }; Mt.records.head = f, Mt.records.commits.set(f.id, f), Mt.records.branches.set(Mt.records.currBranch, f.id), H.debug(Mt.records.branches), H.debug("in mergeBranch"); -}, "merge"), bGt = /* @__PURE__ */ x(function(t) { +}, "merge"), wGt = /* @__PURE__ */ x(function(t) { let e = t.id, r = t.targetId, n = t.tags, i = t.parent; H.debug("Entering cherryPick:", e, r, n); const s = Np(); @@ -84650,13 +84656,13 @@ function t$(t) { t = Fge(t, (i) => i.id), t$(t); } x(t$, "prettyPrintCommitHistory"); -var xGt = /* @__PURE__ */ x(function() { +var OGt = /* @__PURE__ */ x(function() { H.debug(Mt.records.commits); const t = Qge()[0]; t$([t]); -}, "prettyPrint"), wGt = /* @__PURE__ */ x(function() { +}, "prettyPrint"), kGt = /* @__PURE__ */ x(function() { Mt.reset(), ls(); -}, "clear"), OGt = /* @__PURE__ */ x(function() { +}, "clear"), SGt = /* @__PURE__ */ x(function() { return [...Mt.records.branchConfig.values()].map((e, r) => e.order !== null && e.order !== void 0 ? e : { ...e, order: parseFloat(`0.${r}`) @@ -84664,61 +84670,61 @@ var xGt = /* @__PURE__ */ x(function() { var n, i; return ((n = e.order) != null ? n : 0) - ((i = r.order) != null ? i : 0); }).map(({ name: e }) => ({ name: e })); -}, "getBranchesAsObjArray"), kGt = /* @__PURE__ */ x(function() { +}, "getBranchesAsObjArray"), TGt = /* @__PURE__ */ x(function() { return Mt.records.branches; -}, "getBranches"), SGt = /* @__PURE__ */ x(function() { +}, "getBranches"), CGt = /* @__PURE__ */ x(function() { return Mt.records.commits; }, "getCommits"), Qge = /* @__PURE__ */ x(function() { const t = [...Mt.records.commits.values()]; return t.forEach(function(e) { H.debug(e.id); }), t.sort((e, r) => e.seq - r.seq), t; -}, "getCommitsArray"), TGt = /* @__PURE__ */ x(function() { +}, "getCommitsArray"), EGt = /* @__PURE__ */ x(function() { return Mt.records.currBranch; -}, "getCurrentBranch"), CGt = /* @__PURE__ */ x(function() { +}, "getCurrentBranch"), _Gt = /* @__PURE__ */ x(function() { return Mt.records.direction; -}, "getDirection"), EGt = /* @__PURE__ */ x(function() { +}, "getDirection"), AGt = /* @__PURE__ */ x(function() { return Mt.records.head; }, "getHead"), Uge = { commitType: on, getConfig: Np, - setDirection: dGt, - setOptions: pGt, - getOptions: gGt, - commit: mGt, - branch: vGt, - merge: yGt, - cherryPick: bGt, + setDirection: gGt, + setOptions: mGt, + getOptions: vGt, + commit: yGt, + branch: bGt, + merge: xGt, + cherryPick: wGt, checkout: zge, - prettyPrint: xGt, - clear: wGt, - getBranchesAsObjArray: OGt, - getBranches: kGt, - getCommits: SGt, + prettyPrint: OGt, + clear: kGt, + getBranchesAsObjArray: SGt, + getBranches: TGt, + getCommits: CGt, getCommitsArray: Qge, - getCurrentBranch: TGt, - getDirection: CGt, - getHead: EGt, + getCurrentBranch: EGt, + getDirection: _Gt, + getHead: AGt, setAccTitle: cs, getAccTitle: Ds, getAccDescription: Ns, setAccDescription: Ps, setDiagramTitle: Na, getDiagramTitle: Is -}, _Gt = /* @__PURE__ */ x((t, e) => { +}, LGt = /* @__PURE__ */ x((t, e) => { kw(t, e), t.dir && e.setDirection(t.dir); for (const r of t.statements) - AGt(r, e); -}, "populate"), AGt = /* @__PURE__ */ x((t, e) => { + RGt(r, e); +}, "populate"), RGt = /* @__PURE__ */ x((t, e) => { const n = { - Commit: /* @__PURE__ */ x((i) => e.commit(LGt(i)), "Commit"), - Branch: /* @__PURE__ */ x((i) => e.branch(RGt(i)), "Branch"), - Merge: /* @__PURE__ */ x((i) => e.merge(MGt(i)), "Merge"), - Checkout: /* @__PURE__ */ x((i) => e.checkout(DGt(i)), "Checkout"), - CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(PGt(i)), "CherryPicking") + Commit: /* @__PURE__ */ x((i) => e.commit(MGt(i)), "Commit"), + Branch: /* @__PURE__ */ x((i) => e.branch(DGt(i)), "Branch"), + Merge: /* @__PURE__ */ x((i) => e.merge(PGt(i)), "Merge"), + Checkout: /* @__PURE__ */ x((i) => e.checkout(NGt(i)), "Checkout"), + CherryPicking: /* @__PURE__ */ x((i) => e.cherryPick(IGt(i)), "CherryPicking") }[t.$type]; n ? n(t) : H.error(`Unknown statement type: ${t.$type}`); -}, "parseStatement"), LGt = /* @__PURE__ */ x((t) => { +}, "parseStatement"), MGt = /* @__PURE__ */ x((t) => { var r, n; return { id: t.id, @@ -84726,13 +84732,13 @@ var xGt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? on[t.type] : on.NORMAL, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseCommit"), RGt = /* @__PURE__ */ x((t) => { +}, "parseCommit"), DGt = /* @__PURE__ */ x((t) => { var r; return { name: t.name, order: (r = t.order) != null ? r : 0 }; -}, "parseBranch"), MGt = /* @__PURE__ */ x((t) => { +}, "parseBranch"), PGt = /* @__PURE__ */ x((t) => { var r, n; return { branch: t.branch, @@ -84740,7 +84746,7 @@ var xGt = /* @__PURE__ */ x(function() { type: t.type !== void 0 ? on[t.type] : void 0, tags: (n = t.tags) != null ? n : void 0 }; -}, "parseMerge"), DGt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), PGt = /* @__PURE__ */ x((t) => { +}, "parseMerge"), NGt = /* @__PURE__ */ x((t) => t.branch, "parseCheckout"), IGt = /* @__PURE__ */ x((t) => { var r; return { id: t.id, @@ -84748,12 +84754,12 @@ var xGt = /* @__PURE__ */ x(function() { tags: ((r = t.tags) == null ? void 0 : r.length) === 0 ? void 0 : t.tags, parent: t.parent }; -}, "parseCherryPicking"), NGt = { +}, "parseCherryPicking"), $Gt = { parse: /* @__PURE__ */ x(async (t) => { const e = await J1("gitGraph", t); - H.debug(e), _Gt(e, Uge); + H.debug(e), LGt(e, Uge); }, "parse") -}, jA = ke(), Ti = jA == null ? void 0 : jA.gitGraph, gf = 10, mf = 40, Ac = 4, zu = 2, Kd = 8, Ka = /* @__PURE__ */ new Map(), io = /* @__PURE__ */ new Map(), zS = 30, by = /* @__PURE__ */ new Map(), QS = [], nf = 0, Nr = "LR", IGt = /* @__PURE__ */ x(() => { +}, jA = ke(), Ti = jA == null ? void 0 : jA.gitGraph, gf = 10, mf = 40, Ac = 4, zu = 2, Kd = 8, Ka = /* @__PURE__ */ new Map(), io = /* @__PURE__ */ new Map(), zS = 30, by = /* @__PURE__ */ new Map(), QS = [], nf = 0, Nr = "LR", BGt = /* @__PURE__ */ x(() => { Ka.clear(), io.clear(), by.clear(), nf = 0, QS = [], Nr = "LR"; }, "clear"), Vge = /* @__PURE__ */ x((t) => { const e = document.createElementNS("http://www.w3.org/2000/svg", "text"); @@ -84768,32 +84774,32 @@ var xGt = /* @__PURE__ */ x(function() { const s = Nr === "TB" || Nr == "BT" ? (a = io.get(i)) == null ? void 0 : a.y : (o = io.get(i)) == null ? void 0 : o.x; s !== void 0 && r(s, n) && (e = i, n = s); }), e; -}, "findClosestParent"), $Gt = /* @__PURE__ */ x((t) => { +}, "findClosestParent"), FGt = /* @__PURE__ */ x((t) => { let e = "", r = 1 / 0; return t.forEach((n) => { const i = io.get(n).y; i <= r && (e = n, r = i); }), e || void 0; -}, "findClosestParentBT"), BGt = /* @__PURE__ */ x((t, e, r) => { +}, "findClosestParentBT"), zGt = /* @__PURE__ */ x((t, e, r) => { let n = r, i = r; const s = []; t.forEach((a) => { const o = e.get(a); if (!o) throw new Error(`Commit not found for key ${a}`); - o.parents.length ? (n = zGt(o), i = Math.max(n, i)) : s.push(o), QGt(o, n); + o.parents.length ? (n = UGt(o), i = Math.max(n, i)) : s.push(o), VGt(o, n); }), n = i, s.forEach((a) => { - UGt(a, n, r); + qGt(a, n, r); }), t.forEach((a) => { const o = e.get(a); if (o != null && o.parents.length) { - const l = $Gt(o.parents); + const l = FGt(o.parents); n = io.get(l).y - mf, n <= i && (i = n); const u = Ka.get(o.branch).pos, h = n - gf; io.set(o.id, { x: u, y: h }); } }); -}, "setParallelBTPos"), FGt = /* @__PURE__ */ x((t) => { +}, "setParallelBTPos"), QGt = /* @__PURE__ */ x((t) => { var n; const e = qge(t.parents.filter((i) => i !== null)); if (!e) @@ -84802,19 +84808,19 @@ var xGt = /* @__PURE__ */ x(function() { if (r === void 0) throw new Error(`Closest parent position not found for commit ${t.id}`); return r; -}, "findClosestParentPos"), zGt = /* @__PURE__ */ x((t) => FGt(t) + mf, "calculateCommitPosition"), QGt = /* @__PURE__ */ x((t, e) => { +}, "findClosestParentPos"), UGt = /* @__PURE__ */ x((t) => QGt(t) + mf, "calculateCommitPosition"), VGt = /* @__PURE__ */ x((t, e) => { const r = Ka.get(t.branch); if (!r) throw new Error(`Branch not found for commit ${t.id}`); const n = r.pos, i = e + gf; return io.set(t.id, { x: n, y: i }), { x: n, y: i }; -}, "setCommitPosition"), UGt = /* @__PURE__ */ x((t, e, r) => { +}, "setCommitPosition"), qGt = /* @__PURE__ */ x((t, e, r) => { const n = Ka.get(t.branch); if (!n) throw new Error(`Branch not found for commit ${t.id}`); const i = e + r, s = n.pos; io.set(t.id, { x: s, y: i }); -}, "setRootPosition"), VGt = /* @__PURE__ */ x((t, e, r, n, i, s) => { +}, "setRootPosition"), YGt = /* @__PURE__ */ x((t, e, r, n, i, s) => { if (s === on.HIGHLIGHT) t.append("rect").attr("x", r.x - 10).attr("y", r.y - 10).attr("width", 20).attr("height", 20).attr( "class", @@ -84839,7 +84845,7 @@ var xGt = /* @__PURE__ */ x(function() { `M ${r.x - 5},${r.y - 5}L${r.x + 5},${r.y + 5}M${r.x - 5},${r.y + 5}L${r.x + 5},${r.y - 5}` ).attr("class", `commit ${n} ${e.id} commit${i % Kd}`); } -}, "drawCommitBullet"), qGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitBullet"), WGt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.type !== on.CHERRY_PICK && (e.customId && e.type === on.MERGE || e.type !== on.MERGE) && (Ti == null ? void 0 : Ti.showCommitLabel)) { const s = t.append("g"), a = s.insert("rect").attr("class", "commit-label-bkg"), o = s.append("text").attr("x", n).attr("y", r.y + 25).attr("class", "commit-label").text(e.id), l = (i = o.node()) == null ? void 0 : i.getBBox(); @@ -84860,7 +84866,7 @@ var xGt = /* @__PURE__ */ x(function() { ); } } -}, "drawCommitLabel"), YGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawCommitLabel"), GGt = /* @__PURE__ */ x((t, e, r, n) => { var i; if (e.tags.length > 0) { let s = 0, a = 0, o = 0; @@ -84902,7 +84908,7 @@ var xGt = /* @__PURE__ */ x(function() { } } } -}, "drawCommitTags"), WGt = /* @__PURE__ */ x((t) => { +}, "drawCommitTags"), XGt = /* @__PURE__ */ x((t) => { var r; switch ((r = t.customType) != null ? r : t.type) { case on.NORMAL: @@ -84918,7 +84924,7 @@ var xGt = /* @__PURE__ */ x(function() { default: return "commit-normal"; } -}, "getCommitClassType"), GGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "getCommitClassType"), HGt = /* @__PURE__ */ x((t, e, r, n) => { var s, a, o; const i = { x: 0, y: 0 }; if (t.parents.length > 0) { @@ -84930,7 +84936,7 @@ var xGt = /* @__PURE__ */ x(function() { } else return e === "TB" ? zS : e === "BT" ? ((o = n.get(t.id)) != null ? o : i).y - mf : 0; return 0; -}, "calculatePosition"), XGt = /* @__PURE__ */ x((t, e, r) => { +}, "calculatePosition"), ZGt = /* @__PURE__ */ x((t, e, r) => { var a, o; const n = Nr === "BT" && r ? e : e + gf, i = Nr === "TB" || Nr === "BT" ? n : (a = Ka.get(t.branch)) == null ? void 0 : a.pos, s = Nr === "TB" || Nr === "BT" ? (o = Ka.get(t.branch)) == null ? void 0 : o.pos : n; if (s === void 0 || i === void 0) @@ -84948,20 +84954,20 @@ var xGt = /* @__PURE__ */ x(function() { return p !== void 0 && g !== void 0 ? p - g : 0; }, "sortKeys"); let u = a.sort(l); - Nr === "BT" && (o && BGt(u, e, s), u = u.reverse()), u.forEach((f) => { + Nr === "BT" && (o && zGt(u, e, s), u = u.reverse()), u.forEach((f) => { var g, m, v; const d = e.get(f); if (!d) throw new Error(`Commit not found for key ${f}`); - o && (s = GGt(d, Nr, s, io)); - const p = XGt(d, s, o); + o && (s = HGt(d, Nr, s, io)); + const p = ZGt(d, s, o); if (r) { - const y = WGt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Ka.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; - VGt(n, d, p, y, w, b), qGt(i, d, p, s), YGt(i, d, p, s); + const y = XGt(d), b = (g = d.customType) != null ? g : d.type, w = (v = (m = Ka.get(d.branch)) == null ? void 0 : m.index) != null ? v : 0; + YGt(n, d, p, y, w, b), WGt(i, d, p, s), GGt(i, d, p, s); } Nr === "TB" || Nr === "BT" ? io.set(d.id, { x: p.x, y: p.posWithOffset }) : io.set(d.id, { x: p.posWithOffset, y: p.y }), s = Nr === "BT" && o ? s + mf : s + mf + gf, s > nf && (nf = s); }); -}, "drawCommits"), HGt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "drawCommits"), jGt = /* @__PURE__ */ x((t, e, r, n, i) => { const a = (Nr === "TB" || Nr === "BT" ? r.x < n.x : r.y < n.y) ? e.branch : t.branch, o = /* @__PURE__ */ x((u) => u.branch === a, "isOnBranchToGetCurve"), l = /* @__PURE__ */ x((u) => u.seq > t.seq && u.seq < e.seq, "isBetweenCommits"); return [...i.values()].some((u) => l(u) && o(u)); }, "shouldRerouteArrow"), xy = /* @__PURE__ */ x((t, e, r = 0) => { @@ -84972,12 +84978,12 @@ var xGt = /* @__PURE__ */ x(function() { return QS.push(n), n; const s = Math.abs(t - e); return xy(t, e - s / 5, r + 1); -}, "findLane"), ZGt = /* @__PURE__ */ x((t, e, r, n) => { +}, "findLane"), KGt = /* @__PURE__ */ x((t, e, r, n) => { var p, g, m, v, y; const i = io.get(e.id), s = io.get(r.id); if (i === void 0 || s === void 0) throw new Error(`Commit positions not found for commits ${e.id} and ${r.id}`); - const a = HGt(e, r, i, s, n); + const a = jGt(e, r, i, s, n); let o = "", l = "", u = 0, h = 0, f = (p = Ka.get(r.branch)) == null ? void 0 : p.index; r.type === on.MERGE && e.id !== r.parents[0] && (f = (g = Ka.get(e.branch)) == null ? void 0 : g.index); let d; @@ -84990,15 +84996,15 @@ var xGt = /* @__PURE__ */ x(function() { if (d === void 0) throw new Error("Line definition not found"); t.append("path").attr("d", d).attr("class", "arrow arrow" + f % Kd); -}, "drawArrow"), jGt = /* @__PURE__ */ x((t, e) => { +}, "drawArrow"), JGt = /* @__PURE__ */ x((t, e) => { const r = t.append("g").attr("class", "commit-arrows"); [...e.keys()].forEach((n) => { const i = e.get(n); i.parents && i.parents.length > 0 && i.parents.forEach((s) => { - ZGt(r, e.get(s), i, e); + KGt(r, e.get(s), i, e); }); }); -}, "drawArrows"), KGt = /* @__PURE__ */ x((t, e) => { +}, "drawArrows"), eXt = /* @__PURE__ */ x((t, e) => { const r = t.append("g"); e.forEach((n, i) => { var g; @@ -85015,11 +85021,11 @@ var xGt = /* @__PURE__ */ x(function() { "translate(" + (-p.width - 14 - ((Ti == null ? void 0 : Ti.rotateCommitLabel) === !0 ? 30 : 0)) + ", " + (a - p.height / 2 - 1) + ")" ), Nr === "TB" ? (h.attr("x", a - p.width / 2 - 10).attr("y", 0), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", 0)")) : Nr === "BT" ? (h.attr("x", a - p.width / 2 - 10).attr("y", nf), d.attr("transform", "translate(" + (a - p.width / 2 - 5) + ", " + nf + ")")) : h.attr("transform", "translate(-19, " + (a - p.height / 2) + ")"); }); -}, "drawBranches"), JGt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawBranches"), tXt = /* @__PURE__ */ x(function(t, e, r, n, i) { return Ka.set(t, { pos: e, index: r }), e += 50 + (i ? 40 : 0) + (Nr === "TB" || Nr === "BT" ? n.width / 2 : 0), e; -}, "setBranchPosition"), eXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "setBranchPosition"), rXt = /* @__PURE__ */ x(function(t, e, r, n) { var u, h; - if (IGt(), H.debug("in gitgraph renderer", t + ` + if (BGt(), H.debug("in gitgraph renderer", t + ` `, "id:", e, r), !Ti) throw new Error("GitGraph config not found"); const i = (u = Ti.rotateCommitLabel) != null ? u : !1, s = n.db; @@ -85033,8 +85039,8 @@ var xGt = /* @__PURE__ */ x(function() { const p = Vge(f.name), g = o.append("g"), m = g.insert("g").attr("class", "branchLabel"), v = m.insert("g").attr("class", "label branch-label"); (b = v.node()) == null || b.appendChild(p); const y = p.getBBox(); - l = JGt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); - }), dH(o, by, !1), Ti.showBranches && KGt(o, a), jGt(o, by), dH(o, by, !0), gr.insertTitle( + l = tXt(f.name, l, d, y, i), v.remove(), m.remove(), g.remove(); + }), dH(o, by, !1), Ti.showBranches && eXt(o, a), JGt(o, by), dH(o, by, !0), gr.insertTitle( o, "gitTitleText", (h = Ti.titleTopMargin) != null ? h : 0, @@ -85045,9 +85051,9 @@ var xGt = /* @__PURE__ */ x(function() { Ti.diagramPadding, Ti.useMaxWidth ); -}, "draw"), tXt = { - draw: eXt -}, rXt = /* @__PURE__ */ x((t) => ` +}, "draw"), nXt = { + draw: rXt +}, iXt = /* @__PURE__ */ x((t) => ` .commit-id, .commit-msg, .branch-label { @@ -85100,15 +85106,15 @@ var xGt = /* @__PURE__ */ x(function() { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), nXt = rXt, iXt = { - parser: NGt, +`, "getStyles"), sXt = iXt, aXt = { + parser: $Gt, db: Uge, - renderer: tXt, - styles: nXt + renderer: nXt, + styles: sXt }; -const sXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const oXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: iXt + diagram: aXt }, Symbol.toStringTag, { value: "Module" })); var Yge = { exports: {} }; (function(t, e) { @@ -85138,7 +85144,7 @@ var Yge = { exports: {} }; }; }); })(Yge); -const aXt = Yge.exports; +const lXt = Yge.exports; var Wge = { exports: {} }; (function(t, e) { (function(r, n) { @@ -85271,7 +85277,7 @@ var Wge = { exports: {} }; }; }); })(Wge); -const oXt = Wge.exports; +const cXt = Wge.exports; var Gge = { exports: {} }; (function(t, e) { (function(r, n) { @@ -85321,7 +85327,7 @@ var Gge = { exports: {} }; }; }); })(Gge); -const lXt = Gge.exports; +const uXt = Gge.exports; var $R = function() { var t = /* @__PURE__ */ x(function($, k, N, M) { for (N = N || {}, M = $.length; M--; N[$[M]] = k) @@ -85817,55 +85823,55 @@ Expecting ` + Ge.join(", ") + ", got '" + (this.terminals_[ae] || ae) + "'" : Ie return x(L, "Parser"), L.prototype = R, R.Parser = L, new L(); }(); $R.parser = $R; -var cXt = $R; -js.extend(aXt); -js.extend(oXt); +var hXt = $R; js.extend(lXt); -var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw = [], Dw = [], s$ = /* @__PURE__ */ new Map(), a$ = [], US = [], i1 = "", o$ = "", Xge = ["active", "done", "crit", "milestone"], l$ = [], Pw = !1, c$ = !1, u$ = "sunday", VS = "saturday", BR = 0, uXt = /* @__PURE__ */ x(function() { +js.extend(cXt); +js.extend(uXt); +var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw = [], Dw = [], s$ = /* @__PURE__ */ new Map(), a$ = [], US = [], i1 = "", o$ = "", Xge = ["active", "done", "crit", "milestone"], l$ = [], Pw = !1, c$ = !1, u$ = "sunday", VS = "saturday", BR = 0, fXt = /* @__PURE__ */ x(function() { a$ = [], US = [], i1 = "", l$ = [], G5 = 0, zR = void 0, X5 = void 0, Di = [], Xc = "", r$ = "", o$ = "", n$ = void 0, i$ = "", Mw = [], Dw = [], Pw = !1, c$ = !1, BR = 0, s$ = /* @__PURE__ */ new Map(), ls(), u$ = "sunday", VS = "saturday"; -}, "clear"), hXt = /* @__PURE__ */ x(function(t) { +}, "clear"), dXt = /* @__PURE__ */ x(function(t) { r$ = t; -}, "setAxisFormat"), fXt = /* @__PURE__ */ x(function() { +}, "setAxisFormat"), pXt = /* @__PURE__ */ x(function() { return r$; -}, "getAxisFormat"), dXt = /* @__PURE__ */ x(function(t) { +}, "getAxisFormat"), gXt = /* @__PURE__ */ x(function(t) { n$ = t; -}, "setTickInterval"), pXt = /* @__PURE__ */ x(function() { +}, "setTickInterval"), mXt = /* @__PURE__ */ x(function() { return n$; -}, "getTickInterval"), gXt = /* @__PURE__ */ x(function(t) { +}, "getTickInterval"), vXt = /* @__PURE__ */ x(function(t) { i$ = t; -}, "setTodayMarker"), mXt = /* @__PURE__ */ x(function() { +}, "setTodayMarker"), yXt = /* @__PURE__ */ x(function() { return i$; -}, "getTodayMarker"), vXt = /* @__PURE__ */ x(function(t) { +}, "getTodayMarker"), bXt = /* @__PURE__ */ x(function(t) { Xc = t; -}, "setDateFormat"), yXt = /* @__PURE__ */ x(function() { +}, "setDateFormat"), xXt = /* @__PURE__ */ x(function() { Pw = !0; -}, "enableInclusiveEndDates"), bXt = /* @__PURE__ */ x(function() { +}, "enableInclusiveEndDates"), wXt = /* @__PURE__ */ x(function() { return Pw; -}, "endDatesAreInclusive"), xXt = /* @__PURE__ */ x(function() { +}, "endDatesAreInclusive"), OXt = /* @__PURE__ */ x(function() { c$ = !0; -}, "enableTopAxis"), wXt = /* @__PURE__ */ x(function() { +}, "enableTopAxis"), kXt = /* @__PURE__ */ x(function() { return c$; -}, "topAxisEnabled"), OXt = /* @__PURE__ */ x(function(t) { +}, "topAxisEnabled"), SXt = /* @__PURE__ */ x(function(t) { o$ = t; -}, "setDisplayMode"), kXt = /* @__PURE__ */ x(function() { +}, "setDisplayMode"), TXt = /* @__PURE__ */ x(function() { return o$; -}, "getDisplayMode"), SXt = /* @__PURE__ */ x(function() { +}, "getDisplayMode"), CXt = /* @__PURE__ */ x(function() { return Xc; -}, "getDateFormat"), TXt = /* @__PURE__ */ x(function(t) { +}, "getDateFormat"), EXt = /* @__PURE__ */ x(function(t) { Mw = t.toLowerCase().split(/[\s,]+/); -}, "setIncludes"), CXt = /* @__PURE__ */ x(function() { +}, "setIncludes"), _Xt = /* @__PURE__ */ x(function() { return Mw; -}, "getIncludes"), EXt = /* @__PURE__ */ x(function(t) { +}, "getIncludes"), AXt = /* @__PURE__ */ x(function(t) { Dw = t.toLowerCase().split(/[\s,]+/); -}, "setExcludes"), _Xt = /* @__PURE__ */ x(function() { +}, "setExcludes"), LXt = /* @__PURE__ */ x(function() { return Dw; -}, "getExcludes"), AXt = /* @__PURE__ */ x(function() { +}, "getExcludes"), RXt = /* @__PURE__ */ x(function() { return s$; -}, "getLinks"), LXt = /* @__PURE__ */ x(function(t) { +}, "getLinks"), MXt = /* @__PURE__ */ x(function(t) { i1 = t, a$.push(t); -}, "addSection"), RXt = /* @__PURE__ */ x(function() { +}, "addSection"), DXt = /* @__PURE__ */ x(function() { return a$; -}, "getSections"), MXt = /* @__PURE__ */ x(function() { +}, "getSections"), PXt = /* @__PURE__ */ x(function() { let t = gH(); const e = 10; let r = 0; @@ -85874,11 +85880,11 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw return US = Di, US; }, "getTasks"), Hge = /* @__PURE__ */ x(function(t, e, r, n) { return n.includes(t.format(e.trim())) ? !1 : r.includes("weekends") && (t.isoWeekday() === pH[VS] || t.isoWeekday() === pH[VS] + 1) || r.includes(t.format("dddd").toLowerCase()) ? !0 : r.includes(t.format(e.trim())); -}, "isInvalidDate"), DXt = /* @__PURE__ */ x(function(t) { +}, "isInvalidDate"), NXt = /* @__PURE__ */ x(function(t) { u$ = t; -}, "setWeekday"), PXt = /* @__PURE__ */ x(function() { +}, "setWeekday"), IXt = /* @__PURE__ */ x(function() { return u$; -}, "getWeekday"), NXt = /* @__PURE__ */ x(function(t) { +}, "getWeekday"), $Xt = /* @__PURE__ */ x(function(t) { VS = t; }, "setWeekend"), Zge = /* @__PURE__ */ x(function(t, e, r, n) { if (!r.length || t.manualEndTime) @@ -85887,7 +85893,7 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw t.startTime instanceof Date ? i = js(t.startTime) : i = js(t.startTime, e, !0), i = i.add(1, "d"); let s; t.endTime instanceof Date ? s = js(t.endTime) : s = js(t.endTime, e, !0); - const [a, o] = IXt( + const [a, o] = BXt( i, s, e, @@ -85895,7 +85901,7 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw n ); t.endTime = a.toDate(), t.renderEndTime = o; -}, "checkTaskDates"), IXt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "checkTaskDates"), BXt = /* @__PURE__ */ x(function(t, e, r, n, i) { let s = !1, a = null; for (; t <= e; ) s || (a = e.toDate()), s = Hge(t, r, n, i), s && (e = e.add(1, "d")), t = t.add(1, "d"); @@ -85953,7 +85959,7 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw return o.toDate(); }, "getEndDate"), G5 = 0, Hg = /* @__PURE__ */ x(function(t) { return t === void 0 ? (G5 = G5 + 1, "task" + G5) : t; -}, "parseId"), $Xt = /* @__PURE__ */ x(function(t, e) { +}, "parseId"), FXt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; @@ -85973,7 +85979,7 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw break; } return s && (i.endTime = Kge(i.startTime, Xc, s, Pw), i.manualEndTime = js(s, "YYYY-MM-DD", !0).isValid(), Zge(i, Xc, Dw, Mw)), i; -}, "compileData"), BXt = /* @__PURE__ */ x(function(t, e) { +}, "compileData"), zXt = /* @__PURE__ */ x(function(t, e) { let r; e.substr(0, 1) === ":" ? r = e.substr(1, e.length) : r = e; const n = r.split(","), i = {}; @@ -86007,7 +86013,7 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw break; } return i; -}, "parseData"), zR, X5, Di = [], Jge = {}, FXt = /* @__PURE__ */ x(function(t, e) { +}, "parseData"), zR, X5, Di = [], Jge = {}, QXt = /* @__PURE__ */ x(function(t, e) { const r = { section: i1, type: i1, @@ -86017,21 +86023,21 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw raw: { data: e }, task: t, classes: [] - }, n = BXt(X5, e); + }, n = zXt(X5, e); r.raw.startTime = n.startTime, r.raw.endTime = n.endTime, r.id = n.id, r.prevTaskId = X5, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, r.order = BR, BR++; const i = Di.push(r); X5 = r.id, Jge[r.id] = i - 1; }, "addTask"), Ip = /* @__PURE__ */ x(function(t) { const e = Jge[t]; return Di[e]; -}, "findTaskById"), zXt = /* @__PURE__ */ x(function(t, e) { +}, "findTaskById"), UXt = /* @__PURE__ */ x(function(t, e) { const r = { section: i1, type: i1, description: t, task: t, classes: [] - }, n = $Xt(zR, e); + }, n = FXt(zR, e); r.startTime = n.startTime, r.endTime = n.endTime, r.id = n.id, r.active = n.active, r.done = n.done, r.crit = n.crit, r.milestone = n.milestone, zR = r, US.push(r); }, "addTaskOrg"), gH = /* @__PURE__ */ x(function() { const t = /* @__PURE__ */ x(function(r) { @@ -86062,7 +86068,7 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw for (const [r, n] of Di.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), QXt = /* @__PURE__ */ x(function(t, e) { +}, "compileTasks"), VXt = /* @__PURE__ */ x(function(t, e) { let r = e; ke().securityLevel !== "loose" && (r = md(e)), t.split(",").forEach(function(n) { Ip(n) !== void 0 && (tme(n, () => { @@ -86074,7 +86080,7 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw let n = Ip(r); n !== void 0 && n.classes.push(e); }); -}, "setClass"), UXt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClass"), qXt = /* @__PURE__ */ x(function(t, e, r) { if (ke().securityLevel !== "loose" || e === void 0) return; let n = []; @@ -86103,56 +86109,56 @@ var pH = { friday: 5, saturday: 6 }, Xc = "", r$ = "", n$ = void 0, i$ = "", Mw }); } ); -}, "pushFun"), VXt = /* @__PURE__ */ x(function(t, e, r) { +}, "pushFun"), YXt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - UXt(n, e, r); + qXt(n, e, r); }), eme(t, "clickable"); -}, "setClickEvent"), qXt = /* @__PURE__ */ x(function(t) { +}, "setClickEvent"), WXt = /* @__PURE__ */ x(function(t) { l$.forEach(function(e) { e(t); }); -}, "bindFunctions"), YXt = { +}, "bindFunctions"), GXt = { getConfig: /* @__PURE__ */ x(() => ke().gantt, "getConfig"), - clear: uXt, - setDateFormat: vXt, - getDateFormat: SXt, - enableInclusiveEndDates: yXt, - endDatesAreInclusive: bXt, - enableTopAxis: xXt, - topAxisEnabled: wXt, - setAxisFormat: hXt, - getAxisFormat: fXt, - setTickInterval: dXt, - getTickInterval: pXt, - setTodayMarker: gXt, - getTodayMarker: mXt, + clear: fXt, + setDateFormat: bXt, + getDateFormat: CXt, + enableInclusiveEndDates: xXt, + endDatesAreInclusive: wXt, + enableTopAxis: OXt, + topAxisEnabled: kXt, + setAxisFormat: dXt, + getAxisFormat: pXt, + setTickInterval: gXt, + getTickInterval: mXt, + setTodayMarker: vXt, + getTodayMarker: yXt, setAccTitle: cs, getAccTitle: Ds, setDiagramTitle: Na, getDiagramTitle: Is, - setDisplayMode: OXt, - getDisplayMode: kXt, + setDisplayMode: SXt, + getDisplayMode: TXt, setAccDescription: Ps, getAccDescription: Ns, - addSection: LXt, - getSections: RXt, - getTasks: MXt, - addTask: FXt, + addSection: MXt, + getSections: DXt, + getTasks: PXt, + addTask: QXt, findTaskById: Ip, - addTaskOrg: zXt, - setIncludes: TXt, - getIncludes: CXt, - setExcludes: EXt, - getExcludes: _Xt, - setClickEvent: VXt, - setLink: QXt, - getLinks: AXt, - bindFunctions: qXt, + addTaskOrg: UXt, + setIncludes: EXt, + getIncludes: _Xt, + setExcludes: AXt, + getExcludes: LXt, + setClickEvent: YXt, + setLink: VXt, + getLinks: RXt, + bindFunctions: WXt, parseDuration: jge, isInvalidDate: Hge, - setWeekday: DXt, - getWeekday: PXt, - setWeekend: NXt + setWeekday: NXt, + getWeekday: IXt, + setWeekend: $Xt }; function h$(t, e, r) { let n = !0; @@ -86163,7 +86169,7 @@ function h$(t, e, r) { }); } x(h$, "getTaskTags"); -var WXt = /* @__PURE__ */ x(function() { +var XXt = /* @__PURE__ */ x(function() { H.debug("Something is calling, setConf, remove the call"); }, "setConf"), mH = { monday: eb, @@ -86173,7 +86179,7 @@ var WXt = /* @__PURE__ */ x(function() { friday: eoe, saturday: toe, sunday: rw -}, GXt = /* @__PURE__ */ x((t, e) => { +}, HXt = /* @__PURE__ */ x((t, e) => { let r = [...t].map(() => -1 / 0), n = [...t].sort((s, a) => s.startTime - a.startTime || s.order - a.order), i = 0; for (const s of n) for (let a = 0; a < r.length; a++) @@ -86182,7 +86188,7 @@ var WXt = /* @__PURE__ */ x(function() { break; } return i; -}, "getMaxIntersections"), Pu, XXt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getMaxIntersections"), Pu, ZXt = /* @__PURE__ */ x(function(t, e, r, n) { const i = ke().gantt, s = ke().securityLevel; let a; s === "sandbox" && (a = ht("#i" + e)); @@ -86201,7 +86207,7 @@ var WXt = /* @__PURE__ */ x(function() { A[R.section] === void 0 ? A[R.section] = [R] : A[R.section].push(R); let E = 0; for (const R of Object.keys(A)) { - const _ = GXt(A[R], E) + 1; + const _ = HXt(A[R], E) + 1; E += _, p += _ * (i.barHeight + i.barGap), d[R] = _; } } else { @@ -86444,10 +86450,10 @@ var WXt = /* @__PURE__ */ x(function() { return R; } x(T, "checkUnique"); -}, "draw"), HXt = { - setConf: WXt, - draw: XXt -}, ZXt = /* @__PURE__ */ x((t) => ` +}, "draw"), jXt = { + setConf: XXt, + draw: ZXt +}, KXt = /* @__PURE__ */ x((t) => ` .mermaid-main-font { font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } @@ -86698,68 +86704,68 @@ var WXt = /* @__PURE__ */ x(function() { fill: ${t.titleColor || t.textColor}; font-family: var(--mermaid-font-family, "trebuchet ms", verdana, arial, sans-serif); } -`, "getStyles"), jXt = ZXt, KXt = { - parser: cXt, - db: YXt, - renderer: HXt, - styles: jXt +`, "getStyles"), JXt = KXt, eHt = { + parser: hXt, + db: GXt, + renderer: jXt, + styles: JXt }; -const JXt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const tHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: KXt + diagram: eHt }, Symbol.toStringTag, { value: "Module" })); -var eHt = { +var rHt = { parse: /* @__PURE__ */ x(async (t) => { const e = await J1("info", t); H.debug(e); }, "parse") -}, tHt = { version: K9 }, rHt = /* @__PURE__ */ x(() => tHt.version, "getVersion"), nHt = { - getVersion: rHt -}, iHt = /* @__PURE__ */ x((t, e, r) => { +}, nHt = { version: K9 }, iHt = /* @__PURE__ */ x(() => nHt.version, "getVersion"), sHt = { + getVersion: iHt +}, aHt = /* @__PURE__ */ x((t, e, r) => { H.debug(`rendering info diagram ` + t); const n = _p(e); Ms(n, 100, 400, !0), n.append("g").append("text").attr("x", 100).attr("y", 40).attr("class", "version").attr("font-size", 32).style("text-anchor", "middle").text(`v${r}`); -}, "draw"), sHt = { draw: iHt }, aHt = { - parser: eHt, - db: nHt, - renderer: sHt +}, "draw"), oHt = { draw: aHt }, lHt = { + parser: rHt, + db: sHt, + renderer: oHt }; -const oHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const cHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: aHt + diagram: lHt }, Symbol.toStringTag, { value: "Module" })); var rme = cn.pie, f$ = { sections: /* @__PURE__ */ new Map(), showData: !1, config: rme -}, qS = f$.sections, d$ = f$.showData, lHt = structuredClone(rme), cHt = /* @__PURE__ */ x(() => structuredClone(lHt), "getConfig"), uHt = /* @__PURE__ */ x(() => { +}, qS = f$.sections, d$ = f$.showData, uHt = structuredClone(rme), hHt = /* @__PURE__ */ x(() => structuredClone(uHt), "getConfig"), fHt = /* @__PURE__ */ x(() => { qS = /* @__PURE__ */ new Map(), d$ = f$.showData, ls(); -}, "clear"), hHt = /* @__PURE__ */ x(({ label: t, value: e }) => { +}, "clear"), dHt = /* @__PURE__ */ x(({ label: t, value: e }) => { qS.has(t) || (qS.set(t, e), H.debug(`added new section: ${t}, with value: ${e}`)); -}, "addSection"), fHt = /* @__PURE__ */ x(() => qS, "getSections"), dHt = /* @__PURE__ */ x((t) => { +}, "addSection"), pHt = /* @__PURE__ */ x(() => qS, "getSections"), gHt = /* @__PURE__ */ x((t) => { d$ = t; -}, "setShowData"), pHt = /* @__PURE__ */ x(() => d$, "getShowData"), nme = { - getConfig: cHt, - clear: uHt, +}, "setShowData"), mHt = /* @__PURE__ */ x(() => d$, "getShowData"), nme = { + getConfig: hHt, + clear: fHt, setDiagramTitle: Na, getDiagramTitle: Is, setAccTitle: cs, getAccTitle: Ds, setAccDescription: Ps, getAccDescription: Ns, - addSection: hHt, - getSections: fHt, - setShowData: dHt, - getShowData: pHt -}, gHt = /* @__PURE__ */ x((t, e) => { + addSection: dHt, + getSections: pHt, + setShowData: gHt, + getShowData: mHt +}, vHt = /* @__PURE__ */ x((t, e) => { kw(t, e), e.setShowData(t.showData), t.sections.map(e.addSection); -}, "populateDb"), mHt = { +}, "populateDb"), yHt = { parse: /* @__PURE__ */ x(async (t) => { const e = await J1("pie", t); - H.debug(e), gHt(e, nme); + H.debug(e), vHt(e, nme); }, "parse") -}, vHt = /* @__PURE__ */ x((t) => ` +}, bHt = /* @__PURE__ */ x((t) => ` .pieCircle{ stroke: ${t.pieStrokeColor}; stroke-width : ${t.pieStrokeWidth}; @@ -86787,7 +86793,7 @@ var rme = cn.pie, f$ = { font-family: ${t.fontFamily}; font-size: ${t.pieLegendTextSize}; } -`, "getStyles"), yHt = vHt, bHt = /* @__PURE__ */ x((t) => { +`, "getStyles"), xHt = bHt, wHt = /* @__PURE__ */ x((t) => { const e = [...t.entries()].map((n) => ({ label: n[0], value: n[1] @@ -86795,7 +86801,7 @@ var rme = cn.pie, f$ = { return M5t().value( (n) => n.value )(e); -}, "createPieArcs"), xHt = /* @__PURE__ */ x((t, e, r, n) => { +}, "createPieArcs"), OHt = /* @__PURE__ */ x((t, e, r, n) => { H.debug(`rendering pie chart ` + t); const i = n.db, s = ke(), a = Nh(i.getConfig(), s.pie), o = 40, l = 18, u = 4, h = 450, f = h, d = _p(e), p = d.append("g"); @@ -86805,7 +86811,7 @@ var rme = cn.pie, f$ = { m != null || (m = 2); const v = a.textPosition, y = Math.min(f, h) / 2 - o, b = Nm().innerRadius(0).outerRadius(y), w = Nm().innerRadius(y * v).outerRadius(y * v); p.append("circle").attr("cx", 0).attr("cy", 0).attr("r", y + m / 2).attr("class", "pieOuterCircle"); - const O = i.getSections(), S = bHt(O), C = [ + const O = i.getSections(), S = wHt(O), C = [ g.pie1, g.pie2, g.pie3, @@ -86839,15 +86845,15 @@ var rme = cn.pie, f$ = { }) ), _ = f + o + l + u + R; d.attr("viewBox", `0 0 ${_} ${h}`), Ms(d, h, _, a.useMaxWidth); -}, "draw"), wHt = { draw: xHt }, OHt = { - parser: mHt, +}, "draw"), kHt = { draw: OHt }, SHt = { + parser: yHt, db: nme, - renderer: wHt, - styles: yHt + renderer: kHt, + styles: xHt }; -const kHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const THt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: OHt + diagram: SHt }, Symbol.toStringTag, { value: "Module" })); var QR = function() { var t = /* @__PURE__ */ x(function(ve, we, Ee, Re) { @@ -87318,7 +87324,7 @@ Expecting ` + Br.join(", ") + ", got '" + (this.terminals_[st] || st) + "'" : Gr return x(ge, "Parser"), ge.prototype = fe, fe.Parser = ge, new ge(); }(); QR.parser = QR; -var SHt = QR, ya = RP(), yx, THt = (yx = class { +var CHt = QR, ya = RP(), yx, EHt = (yx = class { constructor() { this.classes = /* @__PURE__ */ new Map(), this.config = this.getDefaultConfig(), this.themeConfig = this.getDefaultThemeConfig(), this.data = this.getDefaultData(); } @@ -87674,12 +87680,12 @@ function sme(t) { return !/^\d+px$/.test(t); } x(sme, "validateSizeInPixels"); -var CHt = ke(); +var _Ht = ke(); function Eu(t) { - return yi(t.trim(), CHt); + return yi(t.trim(), _Ht); } x(Eu, "textSanitizer"); -var ks = new THt(); +var ks = new EHt(); function ame(t) { ks.setData({ quadrant1Text: Eu(t.text) }); } @@ -87784,9 +87790,9 @@ function yme() { }), ks.setData({ titleText: Is() }), ks.build(); } x(yme, "getQuadrantData"); -var EHt = /* @__PURE__ */ x(function() { +var AHt = /* @__PURE__ */ x(function() { ks.clear(), ls(); -}, "clear"), _Ht = { +}, "clear"), LHt = { setWidth: mme, setHeight: vme, setQuadrant1Text: ame, @@ -87801,14 +87807,14 @@ var EHt = /* @__PURE__ */ x(function() { addPoint: pme, addClass: gme, getQuadrantData: yme, - clear: EHt, + clear: AHt, setAccTitle: cs, getAccTitle: Ds, setDiagramTitle: Na, getDiagramTitle: Is, getAccDescription: Ns, setAccDescription: Ps -}, AHt = /* @__PURE__ */ x((t, e, r, n) => { +}, RHt = /* @__PURE__ */ x((t, e, r, n) => { var A, E, R, _, L, $; function i(k) { return k === "top" ? "hanging" : "middle"; @@ -87842,17 +87848,17 @@ var EHt = /* @__PURE__ */ x(function() { "dominant-baseline", (k) => i(k.text.horizontalPos) ).attr("text-anchor", (k) => s(k.text.verticalPos)).attr("transform", (k) => a(k.text)); -}, "draw"), LHt = { - draw: AHt -}, RHt = { - parser: SHt, - db: _Ht, - renderer: LHt, +}, "draw"), MHt = { + draw: RHt +}, DHt = { + parser: CHt, + db: LHt, + renderer: MHt, styles: /* @__PURE__ */ x(() => "", "styles") }; -const MHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const PHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: RHt + diagram: DHt }, Symbol.toStringTag, { value: "Module" })); var VR = function() { var t = /* @__PURE__ */ x(function(N, M, D, P) { @@ -88298,7 +88304,7 @@ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[Me] || Me) + "'" : X return x(k, "Parser"), k.prototype = L, L.Parser = k, new k(); }(); VR.parser = VR; -var DHt = VR; +var NHt = VR; function qR(t) { return t.type === "bar"; } @@ -88588,7 +88594,7 @@ var xx, bme = (xx = class { } }, (() => { x(wx, "BaseAxis"); -})(), wx), Ox, PHt = (Ox = class extends xme { +})(), wx), Ox, IHt = (Ox = class extends xme { constructor(e, r, n, i, s) { super(e, i, s, r), this.categories = n, this.scale = Q9().domain(this.categories).range(this.getRange()); } @@ -88607,7 +88613,7 @@ var xx, bme = (xx = class { } }, (() => { x(Ox, "BandAxis"); -})(), Ox), kx, NHt = (kx = class extends xme { +})(), Ox), kx, $Ht = (kx = class extends xme { constructor(e, r, n, i, s) { super(e, i, s, r), this.domain = n, this.scale = Mm().domain(this.domain).range(this.getRange()); } @@ -88626,13 +88632,13 @@ var xx, bme = (xx = class { })(), kx); function YR(t, e, r, n) { const i = new bme(n); - return p$(t) ? new PHt( + return p$(t) ? new IHt( e, r, t.categories, t.title, i - ) : new NHt( + ) : new $Ht( e, r, [t.min, t.max], @@ -88641,7 +88647,7 @@ function YR(t, e, r, n) { ); } x(YR, "getAxis"); -var Sx, IHt = (Sx = class { +var Sx, BHt = (Sx = class { constructor(e, r, n, i) { this.textDimensionCalculator = e, this.chartConfig = r, this.chartData = n, this.chartThemeConfig = i, this.boundingRect = { x: 0, @@ -88687,10 +88693,10 @@ var Sx, IHt = (Sx = class { })(), Sx); function wme(t, e, r, n) { const i = new bme(n); - return new IHt(i, t, e, r); + return new BHt(i, t, e, r); } x(wme, "getChartTitleComponent"); -var Tx, $Ht = (Tx = class { +var Tx, FHt = (Tx = class { constructor(e, r, n, i, s) { this.plotData = e, this.xAxis = r, this.yAxis = n, this.orientation = i, this.plotIndex = s; } @@ -88716,7 +88722,7 @@ var Tx, $Ht = (Tx = class { } }, (() => { x(Tx, "LinePlot"); -})(), Tx), Cx, BHt = (Cx = class { +})(), Tx), Cx, zHt = (Cx = class { constructor(e, r, n, i, s, a) { this.barData = e, this.boundingRect = r, this.xAxis = n, this.yAxis = i, this.orientation = s, this.plotIndex = a; } @@ -88757,7 +88763,7 @@ var Tx, $Ht = (Tx = class { } }, (() => { x(Cx, "BarPlot"); -})(), Cx), Ex, FHt = (Ex = class { +})(), Cx), Ex, QHt = (Ex = class { constructor(e, r, n) { this.chartConfig = e, this.chartData = r, this.chartThemeConfig = n, this.boundingRect = { x: 0, @@ -88786,7 +88792,7 @@ var Tx, $Ht = (Tx = class { switch (n.type) { case "line": { - const i = new $Ht( + const i = new FHt( n, this.xAxis, this.yAxis, @@ -88798,7 +88804,7 @@ var Tx, $Ht = (Tx = class { break; case "bar": { - const i = new BHt( + const i = new zHt( n, this.boundingRect, this.xAxis, @@ -88816,10 +88822,10 @@ var Tx, $Ht = (Tx = class { x(Ex, "BasePlot"); })(), Ex); function Ome(t, e, r) { - return new FHt(t, e, r); + return new QHt(t, e, r); } x(Ome, "getPlotComponent"); -var _x, zHt = (_x = class { +var _x, UHt = (_x = class { constructor(e, r, n, i) { this.chartConfig = e, this.chartData = r, this.componentStore = { title: wme(e, r, n, i), @@ -88903,9 +88909,9 @@ var _x, zHt = (_x = class { } }, (() => { x(_x, "Orchestrator"); -})(), _x), Ax, QHt = (Ax = class { +})(), _x), Ax, VHt = (Ax = class { static build(e, r, n, i) { - return new zHt(e, r, n, i).getDrawableElement(); + return new UHt(e, r, n, i).getDrawableElement(); } }, (() => { x(Ax, "XYChartBuilder"); @@ -89031,7 +89037,7 @@ x(Mme, "setBarData"); function Dme() { if (an.plots.length === 0) throw Error("No Plot to render, please provide a plot with some data"); - return an.title = Is(), QHt.build(Cb, an, Eb, kme); + return an.title = Is(), VHt.build(Cb, an, Eb, kme); } x(Dme, "getDrawableElem"); function Pme() { @@ -89042,11 +89048,11 @@ function Nme() { return Cb; } x(Nme, "getChartConfig"); -var UHt = /* @__PURE__ */ x(function() { +var qHt = /* @__PURE__ */ x(function() { ls(), Tb = 0, Cb = v$(), an = y$(), Eb = m$(), WR = Eb.plotColorPalette.split(",").map((t) => t.trim()), EE = !1, g$ = !1; -}, "clear"), VHt = { +}, "clear"), YHt = { getDrawableElem: Dme, - clear: UHt, + clear: qHt, setAccTitle: cs, getAccTitle: Ds, setDiagramTitle: Na, @@ -89064,7 +89070,7 @@ var UHt = /* @__PURE__ */ x(function() { setTmpSVGG: Sme, getChartThemeConfig: Pme, getChartConfig: Nme -}, qHt = /* @__PURE__ */ x((t, e, r, n) => { +}, WHt = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getChartThemeConfig(), a = i.getChartConfig(); function o(v) { return v === "top" ? "text-before-edge" : "middle"; @@ -89107,16 +89113,16 @@ var UHt = /* @__PURE__ */ x(function() { break; } } -}, "draw"), YHt = { - draw: qHt -}, WHt = { - parser: DHt, - db: VHt, - renderer: YHt +}, "draw"), GHt = { + draw: WHt +}, XHt = { + parser: NHt, + db: YHt, + renderer: GHt }; -const GHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const HHt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: WHt + diagram: XHt }, Symbol.toStringTag, { value: "Module" })); var GR = function() { var t = /* @__PURE__ */ x(function(ee, Y, re, se) { @@ -89586,23 +89592,23 @@ Expecting ` + Ee.join(", ") + ", got '" + (this.terminals_[le] || le) + "'" : Re return x(W, "Parser"), W.prototype = Q, Q.Parser = W, new W(); }(); GR.parser = GR; -var XHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* @__PURE__ */ new Map(), HHt = { +var ZHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* @__PURE__ */ new Map(), jHt = { REQUIREMENT: "Requirement", FUNCTIONAL_REQUIREMENT: "Functional Requirement", INTERFACE_REQUIREMENT: "Interface Requirement", PERFORMANCE_REQUIREMENT: "Performance Requirement", PHYSICAL_REQUIREMENT: "Physical Requirement", DESIGN_CONSTRAINT: "Design Constraint" -}, ZHt = { +}, KHt = { LOW_RISK: "Low", MED_RISK: "Medium", HIGH_RISK: "High" -}, jHt = { +}, JHt = { VERIFY_ANALYSIS: "Analysis", VERIFY_DEMONSTRATION: "Demonstration", VERIFY_INSPECTION: "Inspection", VERIFY_TEST: "Test" -}, KHt = { +}, eZt = { CONTAINS: "contains", COPIES: "copies", DERIVES: "derives", @@ -89610,61 +89616,61 @@ var XHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* VERIFIES: "verifies", REFINES: "refines", TRACES: "traces" -}, JHt = /* @__PURE__ */ x((t, e) => (r2.has(t) || r2.set(t, { +}, tZt = /* @__PURE__ */ x((t, e) => (r2.has(t) || r2.set(t, { name: t, type: e, id: Ja.id, text: Ja.text, risk: Ja.risk, verifyMethod: Ja.verifyMethod -}), Ja = {}, r2.get(t)), "addRequirement"), eZt = /* @__PURE__ */ x(() => r2, "getRequirements"), tZt = /* @__PURE__ */ x((t) => { +}), Ja = {}, r2.get(t)), "addRequirement"), rZt = /* @__PURE__ */ x(() => r2, "getRequirements"), nZt = /* @__PURE__ */ x((t) => { Ja !== void 0 && (Ja.id = t); -}, "setNewReqId"), rZt = /* @__PURE__ */ x((t) => { +}, "setNewReqId"), iZt = /* @__PURE__ */ x((t) => { Ja !== void 0 && (Ja.text = t); -}, "setNewReqText"), nZt = /* @__PURE__ */ x((t) => { +}, "setNewReqText"), sZt = /* @__PURE__ */ x((t) => { Ja !== void 0 && (Ja.risk = t); -}, "setNewReqRisk"), iZt = /* @__PURE__ */ x((t) => { +}, "setNewReqRisk"), aZt = /* @__PURE__ */ x((t) => { Ja !== void 0 && (Ja.verifyMethod = t); -}, "setNewReqVerifyMethod"), sZt = /* @__PURE__ */ x((t) => (n2.has(t) || (n2.set(t, { +}, "setNewReqVerifyMethod"), oZt = /* @__PURE__ */ x((t) => (n2.has(t) || (n2.set(t, { name: t, type: Af.type, docRef: Af.docRef -}), H.info("Added new requirement: ", t)), Af = {}, n2.get(t)), "addElement"), aZt = /* @__PURE__ */ x(() => n2, "getElements"), oZt = /* @__PURE__ */ x((t) => { +}), H.info("Added new requirement: ", t)), Af = {}, n2.get(t)), "addElement"), lZt = /* @__PURE__ */ x(() => n2, "getElements"), cZt = /* @__PURE__ */ x((t) => { Af !== void 0 && (Af.type = t); -}, "setNewElementType"), lZt = /* @__PURE__ */ x((t) => { +}, "setNewElementType"), uZt = /* @__PURE__ */ x((t) => { Af !== void 0 && (Af.docRef = t); -}, "setNewElementDocRef"), cZt = /* @__PURE__ */ x((t, e, r) => { +}, "setNewElementDocRef"), hZt = /* @__PURE__ */ x((t, e, r) => { O$.push({ type: t, src: e, dst: r }); -}, "addRelationship"), uZt = /* @__PURE__ */ x(() => O$, "getRelationships"), hZt = /* @__PURE__ */ x(() => { +}, "addRelationship"), fZt = /* @__PURE__ */ x(() => O$, "getRelationships"), dZt = /* @__PURE__ */ x(() => { O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* @__PURE__ */ new Map(), ls(); -}, "clear"), fZt = { - RequirementType: HHt, - RiskLevel: ZHt, - VerifyType: jHt, - Relationships: KHt, +}, "clear"), pZt = { + RequirementType: jHt, + RiskLevel: KHt, + VerifyType: JHt, + Relationships: eZt, getConfig: /* @__PURE__ */ x(() => ke().req, "getConfig"), - addRequirement: JHt, - getRequirements: eZt, - setNewReqId: tZt, - setNewReqText: rZt, - setNewReqRisk: nZt, - setNewReqVerifyMethod: iZt, + addRequirement: tZt, + getRequirements: rZt, + setNewReqId: nZt, + setNewReqText: iZt, + setNewReqRisk: sZt, + setNewReqVerifyMethod: aZt, setAccTitle: cs, getAccTitle: Ds, setAccDescription: Ps, getAccDescription: Ns, - addElement: sZt, - getElements: aZt, - setNewElementType: oZt, - setNewElementDocRef: lZt, - addRelationship: cZt, - getRelationships: uZt, - clear: hZt -}, dZt = /* @__PURE__ */ x((t) => ` + addElement: oZt, + getElements: lZt, + setNewElementType: cZt, + setNewElementDocRef: uZt, + addRelationship: hZt, + getRelationships: fZt, + clear: dZt +}, gZt = /* @__PURE__ */ x((t) => ` marker { fill: ${t.relationColor}; @@ -89707,10 +89713,10 @@ var XHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* fill: ${t.relationLabelColor}; } -`, "getStyles"), pZt = dZt, XR = { +`, "getStyles"), mZt = gZt, XR = { CONTAINS: "contains", ARROW: "arrow" -}, gZt = /* @__PURE__ */ x((t, e) => { +}, vZt = /* @__PURE__ */ x((t, e) => { let r = t.append("defs").append("marker").attr("id", XR.CONTAINS + "_line_ending").attr("refX", 0).attr("refY", e.line_height / 2).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("g"); r.append("circle").attr("cx", e.line_height / 2).attr("cy", e.line_height / 2).attr("r", e.line_height / 2).attr("fill", "none"), r.append("line").attr("x1", 0).attr("x2", e.line_height).attr("y1", e.line_height / 2).attr("y2", e.line_height / 2).attr("stroke-width", 1), r.append("line").attr("y1", 0).attr("y2", e.line_height).attr("x1", e.line_height / 2).attr("x2", e.line_height / 2).attr("stroke-width", 1), t.append("defs").append("marker").attr("id", XR.ARROW + "_line_ending").attr("refX", e.line_height).attr("refY", 0.5 * e.line_height).attr("markerWidth", e.line_height).attr("markerHeight", e.line_height).attr("orient", "auto").append("path").attr( "d", @@ -89721,7 +89727,7 @@ var XHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* ).attr("stroke-width", 1); }, "insertLineEndings"), Ime = { ReqMarkers: XR, - insertLineEndings: gZt + insertLineEndings: vZt }, Jn = {}, bH = 0, $me = /* @__PURE__ */ x((t, e) => t.insert("rect", "#" + e).attr("class", "req reqBox").attr("x", 0).attr("y", 0).attr("width", Jn.rect_min_width + "px").attr("height", Jn.rect_min_height + "px"), "newRectNode"), Bme = /* @__PURE__ */ x((t, e, r) => { let n = Jn.rect_min_width / 2, i = t.append("text").attr("class", "req reqLabel reqTitle").attr("id", e).attr("x", n).attr("y", Jn.rect_padding).attr("dominant-baseline", "hanging"), s = 0; r.forEach((u) => { @@ -89751,12 +89757,12 @@ var XHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* }), o.forEach((l) => { i.append("tspan").attr("x", Jn.rect_padding).attr("dy", Jn.line_height).text(l); }), i; -}, "newBodyNode"), mZt = /* @__PURE__ */ x((t, e, r, n) => { +}, "newBodyNode"), yZt = /* @__PURE__ */ x((t, e, r, n) => { const i = e.node().getTotalLength(), s = e.node().getPointAtLength(i * 0.5), a = "rel" + bH; bH++; const l = t.append("text").attr("class", "req relationshipLabel").attr("id", a).attr("x", s.x).attr("y", s.y).attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(n).node().getBBox(); t.insert("rect", "#" + a).attr("class", "req reqLabelBox").attr("x", s.x - l.width / 2).attr("y", s.y - l.height / 2).attr("width", l.width).attr("height", l.height).attr("fill", "white").attr("fill-opacity", "85%"); -}, "addEdgeLabel"), vZt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "addEdgeLabel"), bZt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = r.edge(s1(e.src), s1(e.dst)), a = Wf().x(function(l) { return l.x; }).y(function(l) { @@ -89768,8 +89774,8 @@ var XHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* ) : (o.attr("stroke-dasharray", "10,7"), o.attr( "marker-end", "url(" + mt.getUrl(Jn.arrowMarkerAbsolute) + "#" + Ime.ReqMarkers.ARROW + "_line_ending)" - )), mZt(t, o, Jn, `<<${e.type}>>`); -}, "drawRelationshipFromLayout"), yZt = /* @__PURE__ */ x((t, e, r) => { + )), yZt(t, o, Jn, `<<${e.type}>>`); +}, "drawRelationshipFromLayout"), xZt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { i = s1(i), H.info("Added new requirement: ", i); const s = r.append("g").attr("id", i), a = "req-" + i, o = $me(s, a); @@ -89798,7 +89804,7 @@ var XHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* id: i }); }); -}, "drawReqs"), bZt = /* @__PURE__ */ x((t, e, r) => { +}, "drawReqs"), wZt = /* @__PURE__ */ x((t, e, r) => { t.forEach((n, i) => { const s = s1(i), a = r.append("g").attr("id", s), o = "element-" + s, l = $me(a, o); let u = [], h = Bme(a, o + "_title", ["<>", `${i}`]); @@ -89818,17 +89824,17 @@ var XHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* id: s }); }); -}, "drawElements"), xZt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { +}, "drawElements"), OZt = /* @__PURE__ */ x((t, e) => (t.forEach(function(r) { let n = s1(r.src), i = s1(r.dst); e.setEdge(n, i, { relationship: r }); -}), t), "addRelationships"), wZt = /* @__PURE__ */ x(function(t, e) { +}), t), "addRelationships"), kZt = /* @__PURE__ */ x(function(t, e) { e.nodes().forEach(function(r) { r !== void 0 && e.node(r) !== void 0 && (t.select("#" + r), t.select("#" + r).attr( "transform", "translate(" + (e.node(r).x - e.node(r).width / 2) + "," + (e.node(r).y - e.node(r).height / 2) + " )" )); }); -}, "adjustEntities"), s1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), OZt = /* @__PURE__ */ x((t, e, r, n) => { +}, "adjustEntities"), s1 = /* @__PURE__ */ x((t) => t.replace(/\s/g, "").replace(/\./g, "_"), "elementString"), SZt = /* @__PURE__ */ x((t, e, r, n) => { Jn = ke().requirement; const i = Jn.securityLevel; let s; @@ -89850,22 +89856,22 @@ var XHt = GR, O$ = [], Ja = {}, r2 = /* @__PURE__ */ new Map(), Af = {}, n2 = /* return {}; }); let u = n.db.getRequirements(), h = n.db.getElements(), f = n.db.getRelationships(); - yZt(u, l, o), bZt(h, l, o), xZt(f, l), q1(l), wZt(o, l), f.forEach(function(v) { - vZt(o, v, l, e, n); + xZt(u, l, o), wZt(h, l, o), OZt(f, l), q1(l), kZt(o, l), f.forEach(function(v) { + bZt(o, v, l, e, n); }); const d = Jn.rect_padding, p = o.node().getBBox(), g = p.width + d * 2, m = p.height + d * 2; Ms(o, m, g, Jn.useMaxWidth), o.attr("viewBox", `${p.x - d} ${p.y - d} ${g} ${m}`); -}, "draw"), kZt = { - draw: OZt -}, SZt = { - parser: XHt, - db: fZt, - renderer: kZt, - styles: pZt -}; -const TZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, "draw"), TZt = { + draw: SZt +}, CZt = { + parser: ZHt, + db: pZt, + renderer: TZt, + styles: mZt +}; +const EZt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: SZt + diagram: CZt }, Symbol.toStringTag, { value: "Module" })); var HR = function() { var t = /* @__PURE__ */ x(function(U, Z, G, K) { @@ -90457,7 +90463,7 @@ Expecting ` + Le.join(", ") + ", got '" + (this.terminals_[pe] || pe) + "'" : tt return x(se, "Parser"), se.prototype = Y, Y.Parser = se, new se(); }(); HR.parser = HR; -var CZt = HR, Gt = new AI(() => ({ +var _Zt = HR, Gt = new AI(() => ({ prevActor: void 0, actors: /* @__PURE__ */ new Map(), createdActors: /* @__PURE__ */ new Map(), @@ -90470,7 +90476,7 @@ var CZt = HR, Gt = new AI(() => ({ currentBox: void 0, lastCreated: void 0, lastDestroyed: void 0 -})), EZt = /* @__PURE__ */ x(function(t) { +})), AZt = /* @__PURE__ */ x(function(t) { var e; Gt.records.boxes.push({ name: t.text, @@ -90506,14 +90512,14 @@ var CZt = HR, Gt = new AI(() => ({ o && (o.nextActor = t); } Gt.records.currentBox && Gt.records.currentBox.actorKeys.push(t), Gt.records.prevActor = t; -}, "addActor"), _Zt = /* @__PURE__ */ x((t) => { +}, "addActor"), LZt = /* @__PURE__ */ x((t) => { let e, r = 0; if (!t) return 0; for (e = 0; e < Gt.records.messages.length; e++) Gt.records.messages[e].type === _b.ACTIVE_START && Gt.records.messages[e].from === t && r++, Gt.records.messages[e].type === _b.ACTIVE_END && Gt.records.messages[e].from === t && r--; return r; -}, "activationCount"), AZt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "activationCount"), RZt = /* @__PURE__ */ x(function(t, e, r, n) { var i; Gt.records.messages.push({ from: t, @@ -90524,7 +90530,7 @@ var CZt = HR, Gt = new AI(() => ({ }); }, "addMessage"), ai = /* @__PURE__ */ x(function(t, e, r, n, i = !1) { var s, a; - if (n === _b.ACTIVE_END && _Zt(t != null ? t : "") < 1) { + if (n === _b.ACTIVE_END && LZt(t != null ? t : "") < 1) { const l = new Error("Trying to inactivate an inactive participant (" + t + ")"); throw l.hash = { text: "->>-", @@ -90542,29 +90548,29 @@ var CZt = HR, Gt = new AI(() => ({ type: n, activate: i }), !0; -}, "addSignal"), LZt = /* @__PURE__ */ x(function() { +}, "addSignal"), MZt = /* @__PURE__ */ x(function() { return Gt.records.boxes.length > 0; -}, "hasAtLeastOneBox"), RZt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBox"), DZt = /* @__PURE__ */ x(function() { return Gt.records.boxes.some((t) => t.name); -}, "hasAtLeastOneBoxWithTitle"), MZt = /* @__PURE__ */ x(function() { +}, "hasAtLeastOneBoxWithTitle"), PZt = /* @__PURE__ */ x(function() { return Gt.records.messages; -}, "getMessages"), DZt = /* @__PURE__ */ x(function() { +}, "getMessages"), NZt = /* @__PURE__ */ x(function() { return Gt.records.boxes; -}, "getBoxes"), PZt = /* @__PURE__ */ x(function() { +}, "getBoxes"), IZt = /* @__PURE__ */ x(function() { return Gt.records.actors; -}, "getActors"), NZt = /* @__PURE__ */ x(function() { +}, "getActors"), $Zt = /* @__PURE__ */ x(function() { return Gt.records.createdActors; -}, "getCreatedActors"), IZt = /* @__PURE__ */ x(function() { +}, "getCreatedActors"), BZt = /* @__PURE__ */ x(function() { return Gt.records.destroyedActors; }, "getDestroyedActors"), Nw = /* @__PURE__ */ x(function(t) { return Gt.records.actors.get(t); -}, "getActor"), $Zt = /* @__PURE__ */ x(function() { +}, "getActor"), FZt = /* @__PURE__ */ x(function() { return [...Gt.records.actors.keys()]; -}, "getActorKeys"), BZt = /* @__PURE__ */ x(function() { +}, "getActorKeys"), zZt = /* @__PURE__ */ x(function() { Gt.records.sequenceNumbersEnabled = !0; -}, "enableSequenceNumbers"), FZt = /* @__PURE__ */ x(function() { +}, "enableSequenceNumbers"), QZt = /* @__PURE__ */ x(function() { Gt.records.sequenceNumbersEnabled = !1; -}, "disableSequenceNumbers"), zZt = /* @__PURE__ */ x(() => Gt.records.sequenceNumbersEnabled, "showSequenceNumbers"), QZt = /* @__PURE__ */ x(function(t) { +}, "disableSequenceNumbers"), UZt = /* @__PURE__ */ x(() => Gt.records.sequenceNumbersEnabled, "showSequenceNumbers"), VZt = /* @__PURE__ */ x(function(t) { Gt.records.wrapEnabled = t; }, "setWrap"), zme = /* @__PURE__ */ x((t) => { if (t === void 0) @@ -90575,15 +90581,15 @@ var CZt = HR, Gt = new AI(() => ({ }, "extractWrap"), ep = /* @__PURE__ */ x(() => { var t, e; return Gt.records.wrapEnabled !== void 0 ? Gt.records.wrapEnabled : (e = (t = ke().sequence) == null ? void 0 : t.wrap) != null ? e : !1; -}, "autoWrap"), UZt = /* @__PURE__ */ x(function() { +}, "autoWrap"), qZt = /* @__PURE__ */ x(function() { Gt.reset(), ls(); -}, "clear"), VZt = /* @__PURE__ */ x(function(t) { +}, "clear"), YZt = /* @__PURE__ */ x(function(t) { const e = t.trim(), { wrap: r, cleanedText: n } = zme(e), i = { text: n, wrap: r }; return H.debug(`parseMessage: ${JSON.stringify(i)}`), i; -}, "parseMessage"), qZt = /* @__PURE__ */ x(function(t) { +}, "parseMessage"), WZt = /* @__PURE__ */ x(function(t) { const e = /^((?:rgba?|hsla?)\s*\(.*\)|\w*)(.*)$/.exec(t); let r = e != null && e[1] ? e[1].trim() : "transparent", n = e != null && e[2] ? e[2].trim() : void 0; if (window != null && window.CSS) @@ -90631,10 +90637,10 @@ var CZt = HR, Gt = new AI(() => ({ PAR_OVER_START: 32, BIDIRECTIONAL_SOLID: 33, BIDIRECTIONAL_DOTTED: 34 -}, YZt = { +}, GZt = { FILLED: 0, OPEN: 1 -}, WZt = { +}, XZt = { LEFTOF: 0, RIGHTOF: 1, OVER: 2 @@ -90664,7 +90670,7 @@ var CZt = HR, Gt = new AI(() => ({ } catch (n) { H.error("error while parsing actor link text", n); } -}, "addLinks"), GZt = /* @__PURE__ */ x(function(t, e) { +}, "addLinks"), HZt = /* @__PURE__ */ x(function(t, e) { const r = Nw(t); try { const n = {}; @@ -90714,7 +90720,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { } catch (i) { H.error("error while parsing actor details text", i); } -}, "addDetails"), XZt = /* @__PURE__ */ x(function(t, e) { +}, "addDetails"), ZZt = /* @__PURE__ */ x(function(t, e) { if ((t == null ? void 0 : t.properties) !== void 0) return t.properties[e]; }, "getActorProperty"), Wme = /* @__PURE__ */ x(function(t) { @@ -90763,7 +90769,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { Ume(t.actor, t.text); break; case "addALink": - GZt(t.actor, t.text); + HZt(t.actor, t.text); break; case "addProperties": Vme(t.actor, t.text); @@ -90788,7 +90794,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { ai(t.from, t.to, t.msg, t.signalType, t.activate); break; case "boxStart": - EZt(t.boxData); + AZt(t.boxData); break; case "boxEnd": qme(); @@ -90850,42 +90856,42 @@ var Yme = /* @__PURE__ */ x(function(t, e) { } }, "apply"), xH = { addActor: ZR, - addMessage: AZt, + addMessage: RZt, addSignal: ai, addLinks: Ume, addDetails: Yme, addProperties: Vme, autoWrap: ep, - setWrap: QZt, - enableSequenceNumbers: BZt, - disableSequenceNumbers: FZt, - showSequenceNumbers: zZt, - getMessages: MZt, - getActors: PZt, - getCreatedActors: NZt, - getDestroyedActors: IZt, + setWrap: VZt, + enableSequenceNumbers: zZt, + disableSequenceNumbers: QZt, + showSequenceNumbers: UZt, + getMessages: PZt, + getActors: IZt, + getCreatedActors: $Zt, + getDestroyedActors: BZt, getActor: Nw, - getActorKeys: $Zt, - getActorProperty: XZt, + getActorKeys: FZt, + getActorProperty: ZZt, getAccTitle: Ds, - getBoxes: DZt, + getBoxes: NZt, getDiagramTitle: Is, setDiagramTitle: Na, getConfig: /* @__PURE__ */ x(() => ke().sequence, "getConfig"), - clear: UZt, - parseMessage: VZt, - parseBoxData: qZt, + clear: qZt, + parseMessage: YZt, + parseBoxData: WZt, LINETYPE: _b, - ARROWTYPE: YZt, - PLACEMENT: WZt, + ARROWTYPE: GZt, + PLACEMENT: XZt, addNote: Qme, setAccTitle: cs, apply: Wme, setAccDescription: Ps, getAccDescription: Ns, - hasAtLeastOneBox: LZt, - hasAtLeastOneBoxWithTitle: RZt -}, HZt = /* @__PURE__ */ x((t) => `.actor { + hasAtLeastOneBox: MZt, + hasAtLeastOneBoxWithTitle: DZt +}, jZt = /* @__PURE__ */ x((t) => `.actor { stroke: ${t.actorBorder}; fill: ${t.actorBkg}; } @@ -91001,9 +91007,9 @@ var Yme = /* @__PURE__ */ x(function(t, e) { fill: ${t.actorBkg}; stroke-width: 2px; } -`, "getStyles"), ZZt = HZt, m0 = 18 * 2, Gme = "actor-top", Xme = "actor-bottom", jZt = "actor-box", wH = "actor-man", S$ = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), KZt = jZt, m0 = 18 * 2, Gme = "actor-top", Xme = "actor-bottom", JZt = "actor-box", wH = "actor-man", S$ = /* @__PURE__ */ x(function(t, e) { return iE(t, e); -}, "drawRect"), KZt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "drawRect"), ejt = /* @__PURE__ */ x(function(t, e, r, n, i) { if (e.links === void 0 || e.links === null || Object.keys(e.links).length === 0) return { height: 0, width: 0 }; const s = e.links, a = e.actorCnt, o = e.rectData; @@ -91019,7 +91025,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { var p = 20; for (let v in s) { var g = u.append("a"), m = md(s[v]); - g.attr("xlink:href", m), g.attr("target", "_blank"), gjt(n)( + g.attr("xlink:href", m), g.attr("target", "_blank"), vjt(n)( v, g, o.x + 10, @@ -91032,7 +91038,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { } } return d.attr("height", p), { height: o.height + p, width: f }; -}, "drawPopup"), JZt = /* @__PURE__ */ x(function(t) { +}, "drawPopup"), tjt = /* @__PURE__ */ x(function(t) { return "var pu = document.getElementById('" + t + "'); if (pu != null) { pu.style.display = pu.style.display == 'block' ? 'none' : 'block'; }"; }, "popupMenuToggle"), YS = /* @__PURE__ */ x(async function(t, e, r = null) { let n = t.append("foreignObject"); @@ -91112,18 +91118,18 @@ var Yme = /* @__PURE__ */ x(function(t, e) { const s = e.get(i), a = t.select("#actor" + s.actorCnt); !n.mirrorActors && s.stopy ? a.attr("y2", s.stopy + s.height / 2) : n.mirrorActors && a.attr("y2", s.stopy); }); -}, "fixLifeLineHeights"), ejt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "fixLifeLineHeights"), rjt = /* @__PURE__ */ x(function(t, e, r, n) { var p, g; const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 5, o = t.append("g").lower(); var l = o; - n || (Bc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", JZt(`actor${Bc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + Bc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = Bc, e.links != null && l.attr("id", "root-" + Bc)); + n || (Bc++, Object.keys(e.links || {}).length && !r.forceMenus && l.attr("onclick", tjt(`actor${Bc}_popup`)).attr("cursor", "pointer"), l.append("line").attr("id", "actor" + Bc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), l = o.append("g"), e.actorCnt = Bc, e.links != null && l.attr("id", "root-" + Bc)); const u = Mp(); var h = "actor"; (p = e.properties) != null && p.class ? h = e.properties.class : u.fill = "#eaeaea", n ? h += ` ${Xme}` : h += ` ${Gme}`, u.x = e.x, u.y = i, u.width = e.width, u.height = e.height, u.class = h, u.rx = 3, u.ry = 3, u.name = e.name; const f = S$(l, u); if (e.rectData = u, (g = e.properties) != null && g.icon) { const m = e.properties.icon.trim(); - m.charAt(0) === "@" ? Q$t(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : z$t(l, u.x + u.width - 20, u.y + 10, m); + m.charAt(0) === "@" ? V$t(l, u.x + u.width - 20, u.y + 10, m.substr(1)) : U$t(l, u.x + u.width - 20, u.y + 10, m); } T$(r, Ra(e.description))( e.description, @@ -91132,7 +91138,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { u.y, u.width, u.height, - { class: `actor ${jZt}` }, + { class: `actor ${JZt}` }, r ); let d = e.height; @@ -91141,7 +91147,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { e.height = m.height, d = m.height; } return d; -}, "drawActorTypeParticipant"), tjt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawActorTypeParticipant"), njt = /* @__PURE__ */ x(function(t, e, r, n) { const i = n ? e.stopy : e.starty, s = e.x + e.width / 2, a = i + 80, o = t.append("g").lower(); n || (Bc++, o.append("line").attr("id", "actor" + Bc).attr("x1", s).attr("y1", a).attr("x2", s).attr("y2", 2e3).attr("class", "actor-line 200").attr("stroke-width", "0.5px").attr("stroke", "#999").attr("name", e.name), e.actorCnt = Bc); const l = t.append("g"); @@ -91162,14 +91168,14 @@ var Yme = /* @__PURE__ */ x(function(t, e) { { class: `actor ${wH}` }, r ), e.height; -}, "drawActorTypeActor"), rjt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActorTypeActor"), ijt = /* @__PURE__ */ x(async function(t, e, r, n) { switch (e.type) { case "actor": - return await tjt(t, e, r, n); + return await njt(t, e, r, n); case "participant": - return await ejt(t, e, r, n); + return await rjt(t, e, r, n); } -}, "drawActor"), njt = /* @__PURE__ */ x(function(t, e, r) { +}, "drawActor"), sjt = /* @__PURE__ */ x(function(t, e, r) { const i = t.append("g"); jme(i, e), e.name && T$(r)( e.name, @@ -91181,12 +91187,12 @@ var Yme = /* @__PURE__ */ x(function(t, e) { { class: "text" }, r ), i.lower(); -}, "drawBox"), ijt = /* @__PURE__ */ x(function(t) { +}, "drawBox"), ajt = /* @__PURE__ */ x(function(t) { return t.append("g"); -}, "anchorElement"), sjt = /* @__PURE__ */ x(function(t, e, r, n, i) { +}, "anchorElement"), ojt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = Mp(), a = e.anchored; s.x = e.startx, s.y = e.starty, s.class = "activation" + i % 3, s.width = e.stopx - e.startx, s.height = r - e.starty, S$(a, s); -}, "drawActivation"), ajt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "drawActivation"), ljt = /* @__PURE__ */ x(async function(t, e, r, n) { const { boxMargin: i, boxTextMargin: s, @@ -91220,28 +91226,28 @@ var Yme = /* @__PURE__ */ x(function(t, e) { return e.height = Math.round(e.stopy - e.starty), f; }, "drawLoop"), jme = /* @__PURE__ */ x(function(t, e) { Bde(t, e); -}, "drawBackgroundRect"), ojt = /* @__PURE__ */ x(function(t) { +}, "drawBackgroundRect"), cjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "database").attr("fill-rule", "evenodd").attr("clip-rule", "evenodd").append("path").attr("transform", "scale(.5)").attr( "d", "M12.258.001l.256.004.255.005.253.008.251.01.249.012.247.015.246.016.242.019.241.02.239.023.236.024.233.027.231.028.229.031.225.032.223.034.22.036.217.038.214.04.211.041.208.043.205.045.201.046.198.048.194.05.191.051.187.053.183.054.18.056.175.057.172.059.168.06.163.061.16.063.155.064.15.066.074.033.073.033.071.034.07.034.069.035.068.035.067.035.066.035.064.036.064.036.062.036.06.036.06.037.058.037.058.037.055.038.055.038.053.038.052.038.051.039.05.039.048.039.047.039.045.04.044.04.043.04.041.04.04.041.039.041.037.041.036.041.034.041.033.042.032.042.03.042.029.042.027.042.026.043.024.043.023.043.021.043.02.043.018.044.017.043.015.044.013.044.012.044.011.045.009.044.007.045.006.045.004.045.002.045.001.045v17l-.001.045-.002.045-.004.045-.006.045-.007.045-.009.044-.011.045-.012.044-.013.044-.015.044-.017.043-.018.044-.02.043-.021.043-.023.043-.024.043-.026.043-.027.042-.029.042-.03.042-.032.042-.033.042-.034.041-.036.041-.037.041-.039.041-.04.041-.041.04-.043.04-.044.04-.045.04-.047.039-.048.039-.05.039-.051.039-.052.038-.053.038-.055.038-.055.038-.058.037-.058.037-.06.037-.06.036-.062.036-.064.036-.064.036-.066.035-.067.035-.068.035-.069.035-.07.034-.071.034-.073.033-.074.033-.15.066-.155.064-.16.063-.163.061-.168.06-.172.059-.175.057-.18.056-.183.054-.187.053-.191.051-.194.05-.198.048-.201.046-.205.045-.208.043-.211.041-.214.04-.217.038-.22.036-.223.034-.225.032-.229.031-.231.028-.233.027-.236.024-.239.023-.241.02-.242.019-.246.016-.247.015-.249.012-.251.01-.253.008-.255.005-.256.004-.258.001-.258-.001-.256-.004-.255-.005-.253-.008-.251-.01-.249-.012-.247-.015-.245-.016-.243-.019-.241-.02-.238-.023-.236-.024-.234-.027-.231-.028-.228-.031-.226-.032-.223-.034-.22-.036-.217-.038-.214-.04-.211-.041-.208-.043-.204-.045-.201-.046-.198-.048-.195-.05-.19-.051-.187-.053-.184-.054-.179-.056-.176-.057-.172-.059-.167-.06-.164-.061-.159-.063-.155-.064-.151-.066-.074-.033-.072-.033-.072-.034-.07-.034-.069-.035-.068-.035-.067-.035-.066-.035-.064-.036-.063-.036-.062-.036-.061-.036-.06-.037-.058-.037-.057-.037-.056-.038-.055-.038-.053-.038-.052-.038-.051-.039-.049-.039-.049-.039-.046-.039-.046-.04-.044-.04-.043-.04-.041-.04-.04-.041-.039-.041-.037-.041-.036-.041-.034-.041-.033-.042-.032-.042-.03-.042-.029-.042-.027-.042-.026-.043-.024-.043-.023-.043-.021-.043-.02-.043-.018-.044-.017-.043-.015-.044-.013-.044-.012-.044-.011-.045-.009-.044-.007-.045-.006-.045-.004-.045-.002-.045-.001-.045v-17l.001-.045.002-.045.004-.045.006-.045.007-.045.009-.044.011-.045.012-.044.013-.044.015-.044.017-.043.018-.044.02-.043.021-.043.023-.043.024-.043.026-.043.027-.042.029-.042.03-.042.032-.042.033-.042.034-.041.036-.041.037-.041.039-.041.04-.041.041-.04.043-.04.044-.04.046-.04.046-.039.049-.039.049-.039.051-.039.052-.038.053-.038.055-.038.056-.038.057-.037.058-.037.06-.037.061-.036.062-.036.063-.036.064-.036.066-.035.067-.035.068-.035.069-.035.07-.034.072-.034.072-.033.074-.033.151-.066.155-.064.159-.063.164-.061.167-.06.172-.059.176-.057.179-.056.184-.054.187-.053.19-.051.195-.05.198-.048.201-.046.204-.045.208-.043.211-.041.214-.04.217-.038.22-.036.223-.034.226-.032.228-.031.231-.028.234-.027.236-.024.238-.023.241-.02.243-.019.245-.016.247-.015.249-.012.251-.01.253-.008.255-.005.256-.004.258-.001.258.001zm-9.258 20.499v.01l.001.021.003.021.004.022.005.021.006.022.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.023.018.024.019.024.021.024.022.025.023.024.024.025.052.049.056.05.061.051.066.051.07.051.075.051.079.052.084.052.088.052.092.052.097.052.102.051.105.052.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.048.144.049.147.047.152.047.155.047.16.045.163.045.167.043.171.043.176.041.178.041.183.039.187.039.19.037.194.035.197.035.202.033.204.031.209.03.212.029.216.027.219.025.222.024.226.021.23.02.233.018.236.016.24.015.243.012.246.01.249.008.253.005.256.004.259.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.021.224-.024.22-.026.216-.027.212-.028.21-.031.205-.031.202-.034.198-.034.194-.036.191-.037.187-.039.183-.04.179-.04.175-.042.172-.043.168-.044.163-.045.16-.046.155-.046.152-.047.148-.048.143-.049.139-.049.136-.05.131-.05.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.053.083-.051.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.05.023-.024.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.023.01-.022.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.127l-.077.055-.08.053-.083.054-.085.053-.087.052-.09.052-.093.051-.095.05-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.045-.118.044-.12.043-.122.042-.124.042-.126.041-.128.04-.13.04-.132.038-.134.038-.135.037-.138.037-.139.035-.142.035-.143.034-.144.033-.147.032-.148.031-.15.03-.151.03-.153.029-.154.027-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.01-.179.008-.179.008-.181.006-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.006-.179-.008-.179-.008-.178-.01-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.027-.153-.029-.151-.03-.15-.03-.148-.031-.146-.032-.145-.033-.143-.034-.141-.035-.14-.035-.137-.037-.136-.037-.134-.038-.132-.038-.13-.04-.128-.04-.126-.041-.124-.042-.122-.042-.12-.044-.117-.043-.116-.045-.113-.045-.112-.046-.109-.047-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.05-.093-.052-.09-.051-.087-.052-.085-.053-.083-.054-.08-.054-.077-.054v4.127zm0-5.654v.011l.001.021.003.021.004.021.005.022.006.022.007.022.009.022.01.022.011.023.012.023.013.023.015.024.016.023.017.024.018.024.019.024.021.024.022.024.023.025.024.024.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.052.11.051.114.051.119.052.123.05.127.051.131.05.135.049.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.044.171.042.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.022.23.02.233.018.236.016.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.012.241-.015.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.048.139-.05.136-.049.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.051.051-.049.023-.025.023-.024.021-.025.02-.024.019-.024.018-.024.017-.024.015-.023.014-.023.013-.024.012-.022.01-.023.01-.023.008-.022.006-.022.006-.022.004-.021.004-.022.001-.021.001-.021v-4.139l-.077.054-.08.054-.083.054-.085.052-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.049-.105.048-.106.047-.109.047-.111.046-.114.045-.115.044-.118.044-.12.044-.122.042-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.035-.143.033-.144.033-.147.033-.148.031-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.025-.161.024-.162.023-.163.022-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.011-.178.009-.179.009-.179.007-.181.007-.182.005-.182.004-.184.003-.184.002h-.37l-.184-.002-.184-.003-.182-.004-.182-.005-.181-.007-.179-.007-.179-.009-.178-.009-.176-.011-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.022-.162-.023-.161-.024-.159-.025-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.031-.146-.033-.145-.033-.143-.033-.141-.035-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.04-.126-.041-.124-.042-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.047-.105-.048-.102-.049-.1-.049-.097-.05-.095-.051-.093-.051-.09-.051-.087-.053-.085-.052-.083-.054-.08-.054-.077-.054v4.139zm0-5.666v.011l.001.02.003.022.004.021.005.022.006.021.007.022.009.023.01.022.011.023.012.023.013.023.015.023.016.024.017.024.018.023.019.024.021.025.022.024.023.024.024.025.052.05.056.05.061.05.066.051.07.051.075.052.079.051.084.052.088.052.092.052.097.052.102.052.105.051.11.052.114.051.119.051.123.051.127.05.131.05.135.05.139.049.144.048.147.048.152.047.155.046.16.045.163.045.167.043.171.043.176.042.178.04.183.04.187.038.19.037.194.036.197.034.202.033.204.032.209.03.212.028.216.027.219.025.222.024.226.021.23.02.233.018.236.017.24.014.243.012.246.01.249.008.253.006.256.003.259.001.26-.001.257-.003.254-.006.25-.008.247-.01.244-.013.241-.014.237-.016.233-.018.231-.02.226-.022.224-.024.22-.025.216-.027.212-.029.21-.03.205-.032.202-.033.198-.035.194-.036.191-.037.187-.039.183-.039.179-.041.175-.042.172-.043.168-.044.163-.045.16-.045.155-.047.152-.047.148-.048.143-.049.139-.049.136-.049.131-.051.126-.05.123-.051.118-.052.114-.051.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.052.07-.051.065-.051.06-.051.056-.05.051-.049.023-.025.023-.025.021-.024.02-.024.019-.024.018-.024.017-.024.015-.023.014-.024.013-.023.012-.023.01-.022.01-.023.008-.022.006-.022.006-.022.004-.022.004-.021.001-.021.001-.021v-4.153l-.077.054-.08.054-.083.053-.085.053-.087.053-.09.051-.093.051-.095.051-.097.05-.1.049-.102.048-.105.048-.106.048-.109.046-.111.046-.114.046-.115.044-.118.044-.12.043-.122.043-.124.042-.126.041-.128.04-.13.039-.132.039-.134.038-.135.037-.138.036-.139.036-.142.034-.143.034-.144.033-.147.032-.148.032-.15.03-.151.03-.153.028-.154.028-.156.027-.158.026-.159.024-.161.024-.162.023-.163.023-.165.021-.166.02-.167.019-.169.018-.169.017-.171.016-.173.015-.173.014-.175.013-.175.012-.177.01-.178.01-.179.009-.179.007-.181.006-.182.006-.182.004-.184.003-.184.001-.185.001-.185-.001-.184-.001-.184-.003-.182-.004-.182-.006-.181-.006-.179-.007-.179-.009-.178-.01-.176-.01-.176-.012-.175-.013-.173-.014-.172-.015-.171-.016-.17-.017-.169-.018-.167-.019-.166-.02-.165-.021-.163-.023-.162-.023-.161-.024-.159-.024-.157-.026-.156-.027-.155-.028-.153-.028-.151-.03-.15-.03-.148-.032-.146-.032-.145-.033-.143-.034-.141-.034-.14-.036-.137-.036-.136-.037-.134-.038-.132-.039-.13-.039-.128-.041-.126-.041-.124-.041-.122-.043-.12-.043-.117-.044-.116-.044-.113-.046-.112-.046-.109-.046-.106-.048-.105-.048-.102-.048-.1-.05-.097-.049-.095-.051-.093-.051-.09-.052-.087-.052-.085-.053-.083-.053-.08-.054-.077-.054v4.153zm8.74-8.179l-.257.004-.254.005-.25.008-.247.011-.244.012-.241.014-.237.016-.233.018-.231.021-.226.022-.224.023-.22.026-.216.027-.212.028-.21.031-.205.032-.202.033-.198.034-.194.036-.191.038-.187.038-.183.04-.179.041-.175.042-.172.043-.168.043-.163.045-.16.046-.155.046-.152.048-.148.048-.143.048-.139.049-.136.05-.131.05-.126.051-.123.051-.118.051-.114.052-.11.052-.106.052-.101.052-.096.052-.092.052-.088.052-.083.052-.079.052-.074.051-.07.052-.065.051-.06.05-.056.05-.051.05-.023.025-.023.024-.021.024-.02.025-.019.024-.018.024-.017.023-.015.024-.014.023-.013.023-.012.023-.01.023-.01.022-.008.022-.006.023-.006.021-.004.022-.004.021-.001.021-.001.021.001.021.001.021.004.021.004.022.006.021.006.023.008.022.01.022.01.023.012.023.013.023.014.023.015.024.017.023.018.024.019.024.02.025.021.024.023.024.023.025.051.05.056.05.06.05.065.051.07.052.074.051.079.052.083.052.088.052.092.052.096.052.101.052.106.052.11.052.114.052.118.051.123.051.126.051.131.05.136.05.139.049.143.048.148.048.152.048.155.046.16.046.163.045.168.043.172.043.175.042.179.041.183.04.187.038.191.038.194.036.198.034.202.033.205.032.21.031.212.028.216.027.22.026.224.023.226.022.231.021.233.018.237.016.241.014.244.012.247.011.25.008.254.005.257.004.26.001.26-.001.257-.004.254-.005.25-.008.247-.011.244-.012.241-.014.237-.016.233-.018.231-.021.226-.022.224-.023.22-.026.216-.027.212-.028.21-.031.205-.032.202-.033.198-.034.194-.036.191-.038.187-.038.183-.04.179-.041.175-.042.172-.043.168-.043.163-.045.16-.046.155-.046.152-.048.148-.048.143-.048.139-.049.136-.05.131-.05.126-.051.123-.051.118-.051.114-.052.11-.052.106-.052.101-.052.096-.052.092-.052.088-.052.083-.052.079-.052.074-.051.07-.052.065-.051.06-.05.056-.05.051-.05.023-.025.023-.024.021-.024.02-.025.019-.024.018-.024.017-.023.015-.024.014-.023.013-.023.012-.023.01-.023.01-.022.008-.022.006-.023.006-.021.004-.022.004-.021.001-.021.001-.021-.001-.021-.001-.021-.004-.021-.004-.022-.006-.021-.006-.023-.008-.022-.01-.022-.01-.023-.012-.023-.013-.023-.014-.023-.015-.024-.017-.023-.018-.024-.019-.024-.02-.025-.021-.024-.023-.024-.023-.025-.051-.05-.056-.05-.06-.05-.065-.051-.07-.052-.074-.051-.079-.052-.083-.052-.088-.052-.092-.052-.096-.052-.101-.052-.106-.052-.11-.052-.114-.052-.118-.051-.123-.051-.126-.051-.131-.05-.136-.05-.139-.049-.143-.048-.148-.048-.152-.048-.155-.046-.16-.046-.163-.045-.168-.043-.172-.043-.175-.042-.179-.041-.183-.04-.187-.038-.191-.038-.194-.036-.198-.034-.202-.033-.205-.032-.21-.031-.212-.028-.216-.027-.22-.026-.224-.023-.226-.022-.231-.021-.233-.018-.237-.016-.241-.014-.244-.012-.247-.011-.25-.008-.254-.005-.257-.004-.26-.001-.26.001z" ); -}, "insertDatabaseIcon"), ljt = /* @__PURE__ */ x(function(t) { +}, "insertDatabaseIcon"), ujt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "computer").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M2 2v13h20v-13h-20zm18 11h-16v-9h16v9zm-10.228 6l.466-1h3.524l.467 1h-4.457zm14.228 3h-24l2-6h2.104l-1.33 4h18.45l-1.297-4h2.073l2 6zm-5-10h-14v-7h14v7z" ); -}, "insertComputerIcon"), cjt = /* @__PURE__ */ x(function(t) { +}, "insertComputerIcon"), hjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("symbol").attr("id", "clock").attr("width", "24").attr("height", "24").append("path").attr("transform", "scale(.5)").attr( "d", "M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm5.848 12.459c.202.038.202.333.001.372-1.907.361-6.045 1.111-6.547 1.111-.719 0-1.301-.582-1.301-1.301 0-.512.77-5.447 1.125-7.445.034-.192.312-.181.343.014l.985 6.238 5.394 1.011z" ); -}, "insertClockIcon"), ujt = /* @__PURE__ */ x(function(t) { +}, "insertClockIcon"), fjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 7.9).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto-start-reverse").append("path").attr("d", "M -1 0 L 10 5 L 0 10 z"); -}, "insertArrowHead"), hjt = /* @__PURE__ */ x(function(t) { +}, "insertArrowHead"), djt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "filled-head").attr("refX", 15.5).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertArrowFilledHead"), fjt = /* @__PURE__ */ x(function(t) { +}, "insertArrowFilledHead"), pjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "sequencenumber").attr("refX", 15).attr("refY", 15).attr("markerWidth", 60).attr("markerHeight", 40).attr("orient", "auto").append("circle").attr("cx", 15).attr("cy", 15).attr("r", 6); -}, "insertSequenceNumber"), djt = /* @__PURE__ */ x(function(t) { +}, "insertSequenceNumber"), gjt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "crosshead").attr("markerWidth", 15).attr("markerHeight", 8).attr("orient", "auto").attr("refX", 4).attr("refY", 4.5).append("path").attr("fill", "none").attr("stroke", "#000000").style("stroke-dasharray", "0, 0").attr("stroke-width", "1pt").attr("d", "M 1,2 L 6,7 M 6,2 L 1,7"); }, "insertArrowCrossHead"), Kme = /* @__PURE__ */ x(function() { return { @@ -91258,7 +91264,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { tspan: !0, valign: void 0 }; -}, "getTextObj"), pjt = /* @__PURE__ */ x(function() { +}, "getTextObj"), mjt = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -91301,7 +91307,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { return x(i, "_setTextAttrs"), function(s, a = !1) { return a ? n : s.textPlacement === "fo" ? r : s.textPlacement === "old" ? t : e; }; -}(), gjt = /* @__PURE__ */ function() { +}(), vjt = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h) { const f = s.append("text").attr("x", a).attr("y", o).style("text-anchor", "start").text(i); n(f, h); @@ -91331,22 +91337,22 @@ var Yme = /* @__PURE__ */ x(function(t, e) { drawRect: S$, drawText: a1, drawLabel: Hme, - drawActor: rjt, - drawBox: njt, - drawPopup: KZt, - anchorElement: ijt, - drawActivation: sjt, - drawLoop: ajt, + drawActor: ijt, + drawBox: sjt, + drawPopup: ejt, + anchorElement: ajt, + drawActivation: ojt, + drawLoop: ljt, drawBackgroundRect: jme, - insertArrowHead: ujt, - insertArrowFilledHead: hjt, - insertSequenceNumber: fjt, - insertArrowCrossHead: djt, - insertDatabaseIcon: ojt, - insertComputerIcon: ljt, - insertClockIcon: cjt, + insertArrowHead: fjt, + insertArrowFilledHead: djt, + insertSequenceNumber: pjt, + insertArrowCrossHead: gjt, + insertDatabaseIcon: cjt, + insertComputerIcon: ujt, + insertClockIcon: hjt, getTextObj: Kme, - getNoteRect: pjt, + getNoteRect: mjt, fixLifeLineHeights: Zme, sanitizeUrl: md }, Qe = {}, dt = { @@ -91487,7 +91493,7 @@ var Yme = /* @__PURE__ */ x(function(t, e) { getBounds: /* @__PURE__ */ x(function() { return { bounds: this.data, models: this.models }; }, "getBounds") -}, mjt = /* @__PURE__ */ x(async function(t, e) { +}, yjt = /* @__PURE__ */ x(async function(t, e) { dt.bumpVerticalPos(Qe.boxMargin), e.height = Qe.boxMargin, e.starty = dt.getVerticalPos(); const r = Mp(); r.x = e.startx, r.y = e.starty, r.width = e.width || Qe.width, r.class = "note"; @@ -91533,7 +91539,7 @@ async function Jme(t, e) { return dt.bumpVerticalPos(u), e.height += u, e.stopy = e.starty + e.height, dt.insert(e.fromBounds, e.starty, e.toBounds, e.stopy), l; } x(Jme, "boundMessage"); -var vjt = /* @__PURE__ */ x(async function(t, e, r, n) { +var bjt = /* @__PURE__ */ x(async function(t, e, r, n) { const { startx: i, stopx: s, starty: a, message: o, type: l, sequenceIndex: u, sequenceVisible: h } = e, f = gr.calculateTextDimensions(o, tp(Qe)), d = yI(); d.x = i, d.y = a + 10, d.width = s - i, d.class = "messageText", d.dy = "1em", d.text = o, d.fontFamily = Qe.messageFontFamily, d.fontSize = Qe.messageFontSize, d.fontWeight = Qe.messageFontWeight, d.anchor = Qe.messageAlign, d.valign = "center", d.textMargin = Qe.wrapPadding, d.tspan = !1, Ra(d.text) ? await YS(t, d, { startx: i, stopx: s, starty: r }) : a1(t, d); const p = f.width; @@ -91547,7 +91553,7 @@ var vjt = /* @__PURE__ */ x(async function(t, e, r, n) { ) : (g = t.append("line"), g.attr("x1", i), g.attr("y1", r), g.attr("x2", s), g.attr("y2", r)), l === n.db.LINETYPE.DOTTED || l === n.db.LINETYPE.DOTTED_CROSS || l === n.db.LINETYPE.DOTTED_POINT || l === n.db.LINETYPE.DOTTED_OPEN || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED ? (g.style("stroke-dasharray", "3, 3"), g.attr("class", "messageLine1")) : g.attr("class", "messageLine0"); let m = ""; Qe.arrowMarkerAbsolute && (m = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, m = m.replace(/\(/g, "\\("), m = m.replace(/\)/g, "\\)")), g.attr("stroke-width", 2), g.attr("stroke", "none"), g.style("fill", "none"), (l === n.db.LINETYPE.SOLID || l === n.db.LINETYPE.DOTTED) && g.attr("marker-end", "url(" + m + "#arrowhead)"), (l === n.db.LINETYPE.BIDIRECTIONAL_SOLID || l === n.db.LINETYPE.BIDIRECTIONAL_DOTTED) && (g.attr("marker-start", "url(" + m + "#arrowhead)"), g.attr("marker-end", "url(" + m + "#arrowhead)")), (l === n.db.LINETYPE.SOLID_POINT || l === n.db.LINETYPE.DOTTED_POINT) && g.attr("marker-end", "url(" + m + "#filled-head)"), (l === n.db.LINETYPE.SOLID_CROSS || l === n.db.LINETYPE.DOTTED_CROSS) && g.attr("marker-end", "url(" + m + "#crosshead)"), (h || Qe.showSequenceNumbers) && (g.attr("marker-start", "url(" + m + "#sequencenumber)"), t.append("text").attr("x", i).attr("y", r + 4).attr("font-family", "sans-serif").attr("font-size", "12px").attr("text-anchor", "middle").attr("class", "sequenceNumber").text(u)); -}, "drawMessage"), yjt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { +}, "drawMessage"), xjt = /* @__PURE__ */ x(function(t, e, r, n, i, s, a) { let o = 0, l = 0, u, h = 0; for (const f of n) { const d = e.get(f), p = d.box; @@ -91573,7 +91579,7 @@ var vjt = /* @__PURE__ */ x(async function(t, e, r, n) { }, "drawActors"), e1e = /* @__PURE__ */ x(function(t, e, r, n) { let i = 0, s = 0; for (const a of r) { - const o = e.get(a), l = xjt(o), u = oi.drawPopup( + const o = e.get(a), l = Ojt(o), u = oi.drawPopup( t, o, l, @@ -91664,7 +91670,7 @@ function r1e(t, e, r, n, i, s, a) { } } x(r1e, "adjustCreatedDestroyedData"); -var bjt = /* @__PURE__ */ x(async function(t, e, r, n) { +var wjt = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, sequence: s } = ke(); Qe = s; let a; @@ -91680,8 +91686,8 @@ var bjt = /* @__PURE__ */ x(async function(t, e, r, n) { P.add(I.from), P.add(I.to); }), g = g.filter((I) => P.has(I)); } - yjt(u, h, f, g, 0, m, !1); - const O = await kjt(m, h, w, n); + xjt(u, h, f, g, 0, m, !1); + const O = await Tjt(m, h, w, n); oi.insertArrowHead(u), oi.insertArrowCrossHead(u), oi.insertArrowFilledHead(u), oi.insertSequenceNumber(u); function S(P, I) { const F = dt.endActivation(P); @@ -91701,7 +91707,7 @@ var bjt = /* @__PURE__ */ x(async function(t, e, r, n) { let I, F, B; switch (P.type) { case n.db.LINETYPE.NOTE: - dt.resetVerticalPos(), F = P.noteModel, await mjt(u, F); + dt.resetVerticalPos(), F = P.noteModel, await yjt(u, F); break; case n.db.LINETYPE.ACTIVE_START: dt.newActivation(P, u, h); @@ -91856,7 +91862,7 @@ var bjt = /* @__PURE__ */ x(async function(t, e, r, n) { } H.debug("createdActors", f), H.debug("destroyedActors", d), await KR(u, h, g, !1); for (const P of A) - await vjt(u, P.messageModel, P.lineStartY, n); + await bjt(u, P.messageModel, P.lineStartY, n); Qe.mirrorActors && await KR(u, h, g, !0), E.forEach((P) => oi.drawBackgroundRect(u, P)), Zme(u, h, g, Qe); for (const P of dt.models.boxes) P.height = dt.getVerticalPos() - P.y, dt.insert(P.x, P.y, P.x + P.width, P.height), P.startx = P.x, P.starty = P.y, P.stopx = P.startx + P.width, P.stopy = P.starty + P.height, P.stroke = "rgb(0,0,0, 0.5)", oi.drawBox(u, P, Qe); @@ -91914,7 +91920,7 @@ async function n1e(t, e, r) { return H.debug("maxMessageWidthPerActor:", n), n; } x(n1e, "getMaxMessageWidthPerActor"); -var xjt = /* @__PURE__ */ x(function(t) { +var Ojt = /* @__PURE__ */ x(function(t) { let e = 0; const r = jR(Qe); for (const n in t.links) { @@ -91963,7 +91969,7 @@ async function i1e(t, e, r) { }), r.forEach((s) => s.textMaxHeight = i), mt.getMax(n, Qe.height); } x(i1e, "calculateActorMargins"); -var wjt = /* @__PURE__ */ x(async function(t, e, r) { +var kjt = /* @__PURE__ */ x(async function(t, e, r) { const n = e.get(t.from), i = e.get(t.to), s = n.x, a = i.x, o = t.wrap && t.message; let l = Ra(t.message) ? await Kx(t.message, ke()) : gr.calculateTextDimensions( o ? gr.wrapLabel(t.message, Qe.width, ug(Qe)) : t.message, @@ -91994,7 +92000,7 @@ var wjt = /* @__PURE__ */ x(async function(t, e, r) { )), H.debug( `NM:[${u.startx},${u.stopx},${u.starty},${u.stopy}:${u.width},${u.height}=${t.message}]` ), u; -}, "buildNoteModel"), Ojt = /* @__PURE__ */ x(function(t, e, r) { +}, "buildNoteModel"), Sjt = /* @__PURE__ */ x(function(t, e, r) { if (![ r.db.LINETYPE.SOLID_OPEN, r.db.LINETYPE.DOTTED_OPEN, @@ -92038,7 +92044,7 @@ var wjt = /* @__PURE__ */ x(async function(t, e, r) { fromBounds: Math.min.apply(null, d), toBounds: Math.max.apply(null, d) }; -}, "buildMessageModel"), kjt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "buildMessageModel"), Tjt = /* @__PURE__ */ x(async function(t, e, r, n) { const i = {}, s = []; let a, o, l; for (const u of t) { @@ -92089,9 +92095,9 @@ var wjt = /* @__PURE__ */ x(async function(t, e, r) { } break; } - u.placement !== void 0 ? (o = await wjt(u, e, n), u.noteModel = o, s.forEach((f) => { + u.placement !== void 0 ? (o = await kjt(u, e, n), u.noteModel = o, s.forEach((f) => { a = f, a.from = mt.getMin(a.from, o.startx), a.to = mt.getMax(a.to, o.startx + o.width), a.width = mt.getMax(a.width, Math.abs(a.from - a.to)) - Qe.labelBoxWidth; - })) : (l = Ojt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { + })) : (l = Sjt(u, e, n), u.msgModel = l, l.startx && l.stopx && s.length > 0 && s.forEach((f) => { if (a = f, l.startx === l.stopx) { const d = e.get(u.from), p = e.get(u.to); a.from = mt.getMin( @@ -92108,24 +92114,24 @@ var wjt = /* @__PURE__ */ x(async function(t, e, r) { })); } return dt.activations = [], H.debug("Loop type widths:", i), i; -}, "calculateLoopBounds"), Sjt = { +}, "calculateLoopBounds"), Cjt = { bounds: dt, drawActors: KR, drawActorsPopup: e1e, setConf: t1e, - draw: bjt -}, Tjt = { - parser: CZt, + draw: wjt +}, Ejt = { + parser: _Zt, db: xH, - renderer: Sjt, - styles: ZZt, + renderer: Cjt, + styles: KZt, init: /* @__PURE__ */ x(({ wrap: t }) => { xH.setWrap(t); }, "init") }; -const Cjt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const _jt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Tjt + diagram: Ejt }, Symbol.toStringTag, { value: "Module" })); var JR = function() { var t = /* @__PURE__ */ x(function(Ge, Ie, de, X) { @@ -92846,7 +92852,7 @@ var s1e = JR, kH = ["#", "+", "~", "-", ""], Lx, SH = (Lx = class { n = rp(i[0]), r = rp(i[1]); } return { className: n, type: r }; -}, "splitClassNameAndType"), Ejt = /* @__PURE__ */ x(function(t, e) { +}, "splitClassNameAndType"), Ajt = /* @__PURE__ */ x(function(t, e) { const r = mt.sanitizeText(t, ke()); e && (e = rp(e)); const { className: n } = np(r); @@ -92872,19 +92878,19 @@ var s1e = JR, kH = ["#", "+", "~", "-", ""], Lx, SH = (Lx = class { if (Hi.has(e)) return Hi.get(e).domId; throw new Error("Class not found: " + e); -}, "lookUpDomId"), _jt = /* @__PURE__ */ x(function() { +}, "lookUpDomId"), Ljt = /* @__PURE__ */ x(function() { C$ = [], Hi = /* @__PURE__ */ new Map(), WS = [], Ab = [], Ab.push(l1e), Th = /* @__PURE__ */ new Map(), eM = 0, _$ = "TB", ls(); -}, "clear"), Ajt = /* @__PURE__ */ x(function(t) { +}, "clear"), Rjt = /* @__PURE__ */ x(function(t) { return Hi.get(t); -}, "getClass"), Ljt = /* @__PURE__ */ x(function() { +}, "getClass"), Mjt = /* @__PURE__ */ x(function() { return Hi; -}, "getClasses"), Rjt = /* @__PURE__ */ x(function() { +}, "getClasses"), Djt = /* @__PURE__ */ x(function() { return C$; -}, "getRelations"), Mjt = /* @__PURE__ */ x(function() { +}, "getRelations"), Pjt = /* @__PURE__ */ x(function() { return WS; -}, "getNotes"), Djt = /* @__PURE__ */ x(function(t) { +}, "getNotes"), Njt = /* @__PURE__ */ x(function(t) { H.debug("Adding relation: " + JSON.stringify(t)), GS(t.id1), GS(t.id2), t.id1 = np(t.id1).className, t.id2 = np(t.id2).className, t.relationTitle1 = mt.sanitizeText(t.relationTitle1.trim(), ke()), t.relationTitle2 = mt.sanitizeText(t.relationTitle2.trim(), ke()), C$.push(t); -}, "addRelation"), Pjt = /* @__PURE__ */ x(function(t, e) { +}, "addRelation"), Ijt = /* @__PURE__ */ x(function(t, e) { const r = np(t).className; Hi.get(r).annotations.push(e); }, "addAnnotation"), o1e = /* @__PURE__ */ x(function(t, e) { @@ -92894,16 +92900,16 @@ var s1e = JR, kH = ["#", "+", "~", "-", ""], Lx, SH = (Lx = class { const i = e.trim(); i.startsWith("<<") && i.endsWith(">>") ? n.annotations.push(rp(i.substring(2, i.length - 2))) : i.indexOf(")") > 0 ? n.methods.push(new SH(i, "method")) : i && n.members.push(new SH(i, "attribute")); } -}, "addMember"), Njt = /* @__PURE__ */ x(function(t, e) { +}, "addMember"), $jt = /* @__PURE__ */ x(function(t, e) { Array.isArray(e) && (e.reverse(), e.forEach((r) => o1e(t, r))); -}, "addMembers"), Ijt = /* @__PURE__ */ x(function(t, e) { +}, "addMembers"), Bjt = /* @__PURE__ */ x(function(t, e) { const r = { id: `note${WS.length}`, class: e, text: t }; WS.push(r); -}, "addNote"), $jt = /* @__PURE__ */ x(function(t) { +}, "addNote"), Fjt = /* @__PURE__ */ x(function(t) { return t.startsWith(":") && (t = t.substring(1)), rp(t.trim()); }, "cleanupLabel"), E$ = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { @@ -92912,13 +92918,13 @@ var s1e = JR, kH = ["#", "+", "~", "-", ""], Lx, SH = (Lx = class { const i = Hi.get(n); i && i.cssClasses.push(e); }); -}, "setCssClass"), Bjt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), zjt = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { e !== void 0 && (Hi.get(r).tooltip = rp(e)); }); -}, "setTooltip"), Fjt = /* @__PURE__ */ x(function(t, e) { +}, "setTooltip"), Qjt = /* @__PURE__ */ x(function(t, e) { return e && Th.has(e) ? Th.get(e).classes.get(t).tooltip : Hi.get(t).tooltip; -}, "getTooltip"), zjt = /* @__PURE__ */ x(function(t, e, r) { +}, "getTooltip"), Ujt = /* @__PURE__ */ x(function(t, e, r) { const n = ke(); t.split(",").forEach(function(i) { let s = i; @@ -92926,11 +92932,11 @@ var s1e = JR, kH = ["#", "+", "~", "-", ""], Lx, SH = (Lx = class { const a = Hi.get(s); a && (a.link = gr.formatUrl(e, n), n.securityLevel === "sandbox" ? a.linkTarget = "_top" : typeof r == "string" ? a.linkTarget = rp(r) : a.linkTarget = "_blank"); }), E$(t, "clickable"); -}, "setLink"), Qjt = /* @__PURE__ */ x(function(t, e, r) { +}, "setLink"), Vjt = /* @__PURE__ */ x(function(t, e, r) { t.split(",").forEach(function(n) { - Ujt(n, e, r), Hi.get(n).haveCallback = !0; + qjt(n, e, r), Hi.get(n).haveCallback = !0; }), E$(t, "clickable"); -}, "setClickEvent"), Ujt = /* @__PURE__ */ x(function(t, e, r) { +}, "setClickEvent"), qjt = /* @__PURE__ */ x(function(t, e, r) { const n = mt.sanitizeText(t, ke()); if (ke().securityLevel !== "loose" || e === void 0) return; @@ -92956,14 +92962,14 @@ var s1e = JR, kH = ["#", "+", "~", "-", ""], Lx, SH = (Lx = class { ); }); } -}, "setClickFunc"), Vjt = /* @__PURE__ */ x(function(t) { +}, "setClickFunc"), Yjt = /* @__PURE__ */ x(function(t) { Ab.forEach(function(e) { e(t); }); -}, "bindFunctions"), qjt = { +}, "bindFunctions"), Wjt = { LINE: 0, DOTTED_LINE: 1 -}, Yjt = { +}, Gjt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, @@ -92982,26 +92988,26 @@ var s1e = JR, kH = ["#", "+", "~", "-", ""], Lx, SH = (Lx = class { }); }, "setupToolTips"); Ab.push(l1e); -var _$ = "TB", Wjt = /* @__PURE__ */ x(() => _$, "getDirection"), Gjt = /* @__PURE__ */ x((t) => { +var _$ = "TB", Xjt = /* @__PURE__ */ x(() => _$, "getDirection"), Hjt = /* @__PURE__ */ x((t) => { _$ = t; -}, "setDirection"), Xjt = /* @__PURE__ */ x(function(t) { +}, "setDirection"), Zjt = /* @__PURE__ */ x(function(t) { Th.has(t) || (Th.set(t, { id: t, classes: /* @__PURE__ */ new Map(), children: {}, domId: RE + t + "-" + eM }), eM++); -}, "addNamespace"), Hjt = /* @__PURE__ */ x(function(t) { +}, "addNamespace"), jjt = /* @__PURE__ */ x(function(t) { return Th.get(t); -}, "getNamespace"), Zjt = /* @__PURE__ */ x(function() { +}, "getNamespace"), Kjt = /* @__PURE__ */ x(function() { return Th; -}, "getNamespaces"), jjt = /* @__PURE__ */ x(function(t, e) { +}, "getNamespaces"), Jjt = /* @__PURE__ */ x(function(t, e) { if (!!Th.has(t)) for (const r of e) { const { className: n } = np(r); Hi.get(n).parent = t, Th.get(t).classes.set(n, Hi.get(n)); } -}, "addClassesToNamespace"), Kjt = /* @__PURE__ */ x(function(t, e) { +}, "addClassesToNamespace"), eKt = /* @__PURE__ */ x(function(t, e) { const r = Hi.get(t); if (!(!e || !r)) for (const n of e) @@ -93013,37 +93019,37 @@ var _$ = "TB", Wjt = /* @__PURE__ */ x(() => _$, "getDirection"), Gjt = /* @__PU setAccDescription: Ps, getConfig: /* @__PURE__ */ x(() => ke().class, "getConfig"), addClass: GS, - bindFunctions: Vjt, - clear: _jt, - getClass: Ajt, - getClasses: Ljt, - getNotes: Mjt, - addAnnotation: Pjt, - addNote: Ijt, - getRelations: Rjt, - addRelation: Djt, - getDirection: Wjt, - setDirection: Gjt, + bindFunctions: Yjt, + clear: Ljt, + getClass: Rjt, + getClasses: Mjt, + getNotes: Pjt, + addAnnotation: Ijt, + addNote: Bjt, + getRelations: Djt, + addRelation: Njt, + getDirection: Xjt, + setDirection: Hjt, addMember: o1e, - addMembers: Njt, - cleanupLabel: $jt, - lineType: qjt, - relationType: Yjt, - setClickEvent: Qjt, + addMembers: $jt, + cleanupLabel: Fjt, + lineType: Wjt, + relationType: Gjt, + setClickEvent: Vjt, setCssClass: E$, - setLink: zjt, - getTooltip: Fjt, - setTooltip: Bjt, + setLink: Ujt, + getTooltip: Qjt, + setTooltip: zjt, lookUpDomId: a1e, setDiagramTitle: Na, getDiagramTitle: Is, - setClassLabel: Ejt, - addNamespace: Xjt, - addClassesToNamespace: jjt, - getNamespace: Hjt, - getNamespaces: Zjt, - setCssStyle: Kjt -}, Jjt = /* @__PURE__ */ x((t) => `g.classGroup text { + setClassLabel: Ajt, + addNamespace: Zjt, + addClassesToNamespace: Jjt, + getNamespace: jjt, + getNamespaces: Kjt, + setCssStyle: eKt +}, tKt = /* @__PURE__ */ x((t) => `g.classGroup text { fill: ${t.nodeBorder || t.classText}; stroke: none; font-family: ${t.fontFamily}; @@ -93197,7 +93203,7 @@ g.classGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), c1e = Jjt, CH = 0, eKt = /* @__PURE__ */ x(function(t, e, r, n, i) { +`, "getStyles"), c1e = tKt, CH = 0, rKt = /* @__PURE__ */ x(function(t, e, r, n, i) { const s = /* @__PURE__ */ x(function(b) { switch (b) { case i.db.relationType.AGGREGATION: @@ -93250,7 +93256,7 @@ g.classGroup line { b.insert("rect", ":first-child").attr("class", "box").attr("x", O.x - n.padding / 2).attr("y", O.y - n.padding / 2).attr("width", O.width + n.padding).attr("height", O.height + n.padding); } H.info("Rendering relation " + JSON.stringify(r)), r.relationTitle1 !== void 0 && r.relationTitle1 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type1").attr("x", g).attr("y", m).attr("fill", "black").attr("font-size", "6").text(r.relationTitle1), r.relationTitle2 !== void 0 && r.relationTitle2 !== "none" && t.append("g").attr("class", "cardinality").append("text").attr("class", "type2").attr("x", v).attr("y", y).attr("fill", "black").attr("font-size", "6").text(r.relationTitle2), CH++; -}, "drawEdge"), tKt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "drawEdge"), nKt = /* @__PURE__ */ x(function(t, e, r, n) { H.debug("Rendering class ", e, r); const i = e.id, s = { id: i, @@ -93294,7 +93300,7 @@ g.classGroup line { }, "drawClass"), u1e = /* @__PURE__ */ x(function(t) { let e = t.id; return t.type && (e += "<" + Gy(t.type) + ">"), e; -}, "getClassTitleString"), rKt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "getClassTitleString"), iKt = /* @__PURE__ */ x(function(t, e, r, n) { H.debug("Rendering note ", e, r); const i = e.id, s = { id: i, @@ -93320,23 +93326,23 @@ g.classGroup line { s !== "" && a.attr("style", e.cssStyle), r || a.attr("dy", n.textHeight); }, "addTspan"), KA = { getClassTitleString: u1e, - drawClass: tKt, - drawEdge: eKt, - drawNote: rKt + drawClass: nKt, + drawEdge: rKt, + drawNote: iKt }, H5 = {}, C4 = 20, Wv = /* @__PURE__ */ x(function(t) { const e = Object.entries(H5).find((r) => r[1].label === t); if (e) return e[0]; -}, "getGraphId"), nKt = /* @__PURE__ */ x(function(t) { +}, "getGraphId"), sKt = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "extensionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", "extensionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"), t.append("defs").append("marker").attr("id", "compositionStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "compositionEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "aggregationStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "aggregationEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", "dependencyStart").attr("class", "extension").attr("refX", 0).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.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 18,7 L9,13 L14,7 L9,1 Z"); -}, "insertMarkers"), iKt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), aKt = /* @__PURE__ */ x(function(t, e, r, n) { const i = ke().class; H5 = {}, H.info("Rendering diagram " + t); const s = ke().securityLevel; let a; s === "sandbox" && (a = ht("#i" + e)); const o = ht(s === "sandbox" ? a.nodes()[0].contentDocument.body : "body"), l = o.select(`[id='${e}']`); - nKt(l); + sKt(l); const u = new Ki({ multigraph: !0 }); @@ -93392,56 +93398,56 @@ g.classGroup line { Ms(l, v, m, i.useMaxWidth); const y = `${g.x - C4} ${g.y - C4} ${m} ${v}`; H.debug(`viewBox ${y}`), l.attr("viewBox", y); -}, "draw"), sKt = { - draw: iKt -}, aKt = { +}, "draw"), oKt = { + draw: aKt +}, lKt = { parser: s1e, db: XS, - renderer: sKt, + renderer: oKt, styles: c1e, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, XS.clear(); }, "init") }; -const oKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const cKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: aKt + diagram: lKt }, Symbol.toStringTag, { value: "Module" })); -var lKt = /* @__PURE__ */ x((t, e, r, n) => { +var uKt = /* @__PURE__ */ x((t, e, r, n) => { e.forEach((i) => { - yKt[i](t, r, n); + xKt[i](t, r, n); }); -}, "insertMarkers"), cKt = /* @__PURE__ */ x((t, e, r) => { +}, "insertMarkers"), hKt = /* @__PURE__ */ x((t, e, r) => { H.trace("Making markers for ", r), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionStart").attr("class", "marker extension " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 1,7 L18,13 V 1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-extensionEnd").attr("class", "marker extension " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 1,1 V 13 L18,7 Z"); -}, "extension"), uKt = /* @__PURE__ */ x((t, e, r) => { +}, "extension"), fKt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionStart").attr("class", "marker composition " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-compositionEnd").attr("class", "marker composition " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "composition"), hKt = /* @__PURE__ */ x((t, e, r) => { +}, "composition"), dKt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationStart").attr("class", "marker aggregation " + e).attr("refX", 18).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-aggregationEnd").attr("class", "marker aggregation " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L1,7 L9,1 Z"); -}, "aggregation"), fKt = /* @__PURE__ */ x((t, e, r) => { +}, "aggregation"), pKt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyStart").attr("class", "marker dependency " + e).attr("refX", 6).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("path").attr("d", "M 5,7 L9,13 L1,7 L9,1 Z"), t.append("defs").append("marker").attr("id", r + "_" + e + "-dependencyEnd").attr("class", "marker dependency " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 28).attr("orient", "auto").append("path").attr("d", "M 18,7 L9,13 L14,7 L9,1 Z"); -}, "dependency"), dKt = /* @__PURE__ */ x((t, e, r) => { +}, "dependency"), gKt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopStart").attr("class", "marker lollipop " + e).attr("refX", 13).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6), t.append("defs").append("marker").attr("id", r + "_" + e + "-lollipopEnd").attr("class", "marker lollipop " + e).attr("refX", 1).attr("refY", 7).attr("markerWidth", 190).attr("markerHeight", 240).attr("orient", "auto").append("circle").attr("stroke", "black").attr("fill", "transparent").attr("cx", 7).attr("cy", 7).attr("r", 6); -}, "lollipop"), pKt = /* @__PURE__ */ x((t, e, r) => { +}, "lollipop"), mKt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-pointEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 6).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 0 L 10 5 L 0 10 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-pointStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 4.5).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 12).attr("markerHeight", 12).attr("orient", "auto").append("path").attr("d", "M 0 5 L 10 10 L 10 0 z").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "point"), gKt = /* @__PURE__ */ x((t, e, r) => { +}, "point"), vKt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-circleEnd").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", 11).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-circleStart").attr("class", "marker " + e).attr("viewBox", "0 0 10 10").attr("refX", -1).attr("refY", 5).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("circle").attr("cx", "5").attr("cy", "5").attr("r", "5").attr("class", "arrowMarkerPath").style("stroke-width", 1).style("stroke-dasharray", "1,0"); -}, "circle"), mKt = /* @__PURE__ */ x((t, e, r) => { +}, "circle"), yKt = /* @__PURE__ */ x((t, e, r) => { t.append("marker").attr("id", r + "_" + e + "-crossEnd").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", 12).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"), t.append("marker").attr("id", r + "_" + e + "-crossStart").attr("class", "marker cross " + e).attr("viewBox", "0 0 11 11").attr("refX", -1).attr("refY", 5.2).attr("markerUnits", "userSpaceOnUse").attr("markerWidth", 11).attr("markerHeight", 11).attr("orient", "auto").append("path").attr("d", "M 1,1 l 9,9 M 10,1 l -9,9").attr("class", "arrowMarkerPath").style("stroke-width", 2).style("stroke-dasharray", "1,0"); -}, "cross"), vKt = /* @__PURE__ */ x((t, e, r) => { +}, "cross"), bKt = /* @__PURE__ */ x((t, e, r) => { t.append("defs").append("marker").attr("id", r + "_" + e + "-barbEnd").attr("refX", 19).attr("refY", 7).attr("markerWidth", 20).attr("markerHeight", 14).attr("markerUnits", "strokeWidth").attr("orient", "auto").append("path").attr("d", "M 19,7 L9,13 L14,7 L9,1 Z"); -}, "barb"), yKt = { - extension: cKt, - composition: uKt, - aggregation: hKt, - dependency: fKt, - lollipop: dKt, - point: pKt, - circle: gKt, - cross: mKt, - barb: vKt -}, h1e = lKt, bKt = /* @__PURE__ */ x((t, e, r, n, i) => { +}, "barb"), xKt = { + extension: hKt, + composition: fKt, + aggregation: dKt, + dependency: pKt, + lollipop: gKt, + point: mKt, + circle: vKt, + cross: yKt, + barb: bKt +}, h1e = uKt, wKt = /* @__PURE__ */ x((t, e, r, n, i) => { e.arrowTypeStart && _H(t, "start", e.arrowTypeStart, r, n, i), e.arrowTypeEnd && _H(t, "end", e.arrowTypeEnd, r, n, i); -}, "addEdgeMarkers"), xKt = { +}, "addEdgeMarkers"), OKt = { arrow_cross: "cross", arrow_point: "point", arrow_barb: "barb", @@ -93452,14 +93458,14 @@ var lKt = /* @__PURE__ */ x((t, e, r, n) => { dependency: "dependency", lollipop: "lollipop" }, _H = /* @__PURE__ */ x((t, e, r, n, i, s) => { - const a = xKt[r]; + const a = OKt[r]; if (!a) { H.warn(`Unknown arrow type: ${r}`); return; } const o = e === "start" ? "Start" : "End"; t.attr(`marker-${e}`, `url(${n}#${i}_${s}-${a}${o})`); -}, "addEdgeMarker"), HS = {}, ms = {}, wKt = /* @__PURE__ */ x(() => { +}, "addEdgeMarker"), HS = {}, ms = {}, kKt = /* @__PURE__ */ x(() => { HS = {}, ms = {}; }, "clear"), f1e = /* @__PURE__ */ x((t, e) => { const r = ke(), n = Pn(r.flowchart.htmlLabels), i = e.labelType === "markdown" ? Ou( @@ -93573,10 +93579,10 @@ var d1e = /* @__PURE__ */ x((t, e) => { } s.attr("transform", `translate(${a}, ${o})`); } -}, "positionEdgeLabel"), OKt = /* @__PURE__ */ x((t, e) => { +}, "positionEdgeLabel"), SKt = /* @__PURE__ */ x((t, e) => { const r = t.x, n = t.y, i = Math.abs(e.x - r), s = Math.abs(e.y - n), a = t.width / 2, o = t.height / 2; return i >= a || s >= o; -}, "outsideNode"), kKt = /* @__PURE__ */ x((t, e, r) => { +}, "outsideNode"), TKt = /* @__PURE__ */ x((t, e, r) => { H.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(e)} insidePoint : ${JSON.stringify(r)} @@ -93601,8 +93607,8 @@ var d1e = /* @__PURE__ */ x((t, e) => { H.debug("abc88 cutPathAtIntersect", t, e); let r = [], n = t[0], i = !1; return t.forEach((s) => { - if (!OKt(e, s) && !i) { - const a = kKt(e, n, s); + if (!SKt(e, s) && !i) { + const a = TKt(e, n, s); let o = !1; r.forEach((l) => { o = o || l.x === a.x && l.y === a.y; @@ -93648,12 +93654,12 @@ var d1e = /* @__PURE__ */ x((t, e) => { } const y = t.append("path").attr("d", m(f)).attr("id", r.id).attr("class", " " + v + (r.classes ? " " + r.classes : "")).attr("style", r.style); let b = ""; - (ke().flowchart.arrowMarkerAbsolute || ke().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), bKt(y, r, b, a, i); + (ke().flowchart.arrowMarkerAbsolute || ke().state.arrowMarkerAbsolute) && (b = window.location.protocol + "//" + window.location.host + window.location.pathname + window.location.search, b = b.replace(/\(/g, "\\("), b = b.replace(/\)/g, "\\)")), wKt(y, r, b, a, i); let w = {}; return l && (w.updatedPath = o), w.originalPath = r.points, w; -}, "insertEdge"), Or = {}, Ql = {}, g1e = {}, SKt = /* @__PURE__ */ x(() => { +}, "insertEdge"), Or = {}, Ql = {}, g1e = {}, CKt = /* @__PURE__ */ x(() => { Ql = {}, g1e = {}, Or = {}; -}, "clear"), ZS = /* @__PURE__ */ x((t, e) => (H.trace("In isDescendant", e, " ", t, " = ", Ql[e].includes(t)), !!Ql[e].includes(t)), "isDescendant"), TKt = /* @__PURE__ */ x((t, e) => (H.info("Descendants of ", e, " is ", Ql[e]), H.info("Edge is ", t), t.v === e || t.w === e ? !1 : Ql[e] ? Ql[e].includes(t.v) || ZS(t.v, e) || ZS(t.w, e) || Ql[e].includes(t.w) : (H.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), m1e = /* @__PURE__ */ x((t, e, r, n) => { +}, "clear"), ZS = /* @__PURE__ */ x((t, e) => (H.trace("In isDescendant", e, " ", t, " = ", Ql[e].includes(t)), !!Ql[e].includes(t)), "isDescendant"), EKt = /* @__PURE__ */ x((t, e) => (H.info("Descendants of ", e, " is ", Ql[e]), H.info("Edge is ", t), t.v === e || t.w === e ? !1 : Ql[e] ? Ql[e].includes(t.v) || ZS(t.v, e) || ZS(t.w, e) || Ql[e].includes(t.w) : (H.debug("Tilt, ", e, ",not in descendants"), !1)), "edgeInCluster"), m1e = /* @__PURE__ */ x((t, e, r, n) => { H.warn( "Copying children of ", t, @@ -93683,7 +93689,7 @@ var d1e = /* @__PURE__ */ x((t, e) => { const u = e.edge(l.v, l.w, l.name); H.info("Edge data", u, n); try { - TKt(l, n) ? (H.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), H.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : H.info( + EKt(l, n) ? (H.info("Copying as ", l.v, l.w, u, l.name), r.setEdge(l.v, l.w, u, l.name), H.info("newGraph edges ", r.edges(), r.edge(r.edges()[0]))) : H.info( "Skipping copy of edge ", l.v, "-->", @@ -93716,7 +93722,7 @@ var d1e = /* @__PURE__ */ x((t, e) => { if (i) return H.trace("Found replacement for", t, " => ", i), i; } -}, "findNonClusterChild"), E4 = /* @__PURE__ */ x((t) => !Or[t] || !Or[t].externalConnections ? t : Or[t] ? Or[t].id : t, "getAnchorId"), CKt = /* @__PURE__ */ x((t, e) => { +}, "findNonClusterChild"), E4 = /* @__PURE__ */ x((t) => !Or[t] || !Or[t].externalConnections ? t : Or[t] ? Or[t].id : t, "getAnchorId"), _Kt = /* @__PURE__ */ x((t, e) => { if (!t || e > 10) { H.debug("Opting out, no graph "); return; @@ -93864,7 +93870,7 @@ var d1e = /* @__PURE__ */ x((t, e) => { const i = t.children(n), s = b1e(t, i); r = [...r, ...s]; }), r; -}, "sorter"), EKt = /* @__PURE__ */ x((t) => b1e(t, t.children()), "sortNodesByHierarchy"), _Kt = /* @__PURE__ */ x((t, e) => { +}, "sorter"), AKt = /* @__PURE__ */ x((t) => b1e(t, t.children()), "sortNodesByHierarchy"), LKt = /* @__PURE__ */ x((t, e) => { H.info("Creating subgraph rect for ", e.id, e); const r = ke(), n = t.insert("g").attr("class", "cluster" + (e.class ? " " + e.class : "")).attr("id", e.id), i = n.insert("rect", ":first-child"), s = Pn(r.flowchart.htmlLabels), a = n.insert("g").attr("class", "cluster-label"), o = e.labelType === "markdown" ? Ou(a, e.labelText, { style: e.labelStyle, useHtmlLabels: s }, r) : a.node().appendChild(ja(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); @@ -93886,14 +93892,14 @@ var d1e = /* @__PURE__ */ x((t, e) => { return e.width = p.width, e.height = p.height, e.intersect = function(g) { return Ow(e, g); }, n; -}, "rect"), AKt = /* @__PURE__ */ x((t, e) => { +}, "rect"), RKt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", "note-cluster").attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("rx", e.rx).attr("ry", e.ry).attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2 - s).attr("width", e.width + i).attr("height", e.height + i).attr("fill", "none"); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.intersect = function(o) { return Ow(e, o); }, r; -}, "noteGroup"), LKt = /* @__PURE__ */ x((t, e) => { +}, "noteGroup"), MKt = /* @__PURE__ */ x((t, e) => { const r = ke(), n = t.insert("g").attr("class", e.classes).attr("id", e.id), i = n.insert("rect", ":first-child"), s = n.insert("g").attr("class", "cluster-label"), a = n.append("rect"), o = s.node().appendChild(ja(e.labelText, e.labelStyle, void 0, !0)); let l = o.getBBox(); if (Pn(r.flowchart.htmlLabels)) { @@ -93912,18 +93918,18 @@ var d1e = /* @__PURE__ */ x((t, e) => { return e.height = p.height, e.intersect = function(g) { return Ow(e, g); }, n; -}, "roundedWithTitle"), RKt = /* @__PURE__ */ x((t, e) => { +}, "roundedWithTitle"), DKt = /* @__PURE__ */ x((t, e) => { const r = t.insert("g").attr("class", e.classes).attr("id", e.id), n = r.insert("rect", ":first-child"), i = 0 * e.padding, s = i / 2; n.attr("class", "divider").attr("x", e.x - e.width / 2 - s).attr("y", e.y - e.height / 2).attr("width", e.width + i).attr("height", e.height + i); const a = n.node().getBBox(); return e.width = a.width, e.height = a.height, e.diff = -e.padding / 2, e.intersect = function(o) { return Ow(e, o); }, r; -}, "divider"), MKt = { rect: _Kt, roundedWithTitle: LKt, noteGroup: AKt, divider: RKt }, x1e = {}, DKt = /* @__PURE__ */ x((t, e) => { +}, "divider"), PKt = { rect: LKt, roundedWithTitle: MKt, noteGroup: RKt, divider: DKt }, x1e = {}, NKt = /* @__PURE__ */ x((t, e) => { H.trace("Inserting cluster"); const r = e.shape || "rect"; - x1e[e.id] = MKt[r](t, e); -}, "insertCluster"), PKt = /* @__PURE__ */ x(() => { + x1e[e.id] = PKt[r](t, e); +}, "insertCluster"), IKt = /* @__PURE__ */ x(() => { x1e = {}; }, "clear"), w1e = /* @__PURE__ */ x(async (t, e, r, n, i, s) => { H.info("Graph in recursive render: XXX", _i(e), i); @@ -93955,7 +93961,7 @@ var d1e = /* @__PURE__ */ x((t, e) => { e.node(g), s ), w = b.elem; - Zn(m, w), m.diff = b.diff || 0, H.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), mFt(w, m), H.warn("Recursive render complete ", w, m); + Zn(m, w), m.diff = b.diff || 0, H.info("Node bounds (abc123)", g, m, m.width, m.x, m.y), yFt(w, m), H.warn("Recursive render complete ", w, m); } else e.children(g).length > 0 ? (H.info("Cluster - the non recursive path XXX", g, m.id, m, e), H.info(Lb(m.id, e)), Or[m.id] = { id: Lb(m.id, e), node: m }) : (H.info("Node - the non recursive path", g, m.id, m), await kI(f, e.node(g), a)); }) @@ -93967,7 +93973,7 @@ var d1e = /* @__PURE__ */ x((t, e) => { }), H.info("Graph before layout:", JSON.stringify(_i(e))), H.info("#############################################"), H.info("### Layout ###"), H.info("#############################################"), H.info(e), q1(e), H.info("Graph after layout:", JSON.stringify(_i(e))); let d = 0; const { subGraphTitleTotalMargin: p } = bp(s); - return EKt(e).forEach(function(g) { + return AKt(e).forEach(function(g) { const m = e.node(g); H.info("Position " + g + ": " + JSON.stringify(e.node(g))), H.info( "Position " + g + ": (" + m.x, @@ -93976,7 +93982,7 @@ var d1e = /* @__PURE__ */ x((t, e) => { m.width, " height: ", m.height - ), m != null && m.clusterNode ? (m.y += p, WL(m)) : e.children(g).length > 0 ? (m.height += p, DKt(l, m), Or[m.id].node = m) : (m.y += p / 2, WL(m)); + ), m != null && m.clusterNode ? (m.y += p, WL(m)) : e.children(g).length > 0 ? (m.height += p, NKt(l, m), Or[m.id].node = m) : (m.y += p / 2, WL(m)); }), e.edges().forEach(function(g) { const m = e.edge(g); H.info("Edge " + g.v + " -> " + g.w + ": " + JSON.stringify(m), m), m.points.forEach((y) => y.y += p / 2); @@ -93986,8 +93992,8 @@ var d1e = /* @__PURE__ */ x((t, e) => { const m = e.node(g); H.info(g, m.type, m.diff), m.type === "group" && (d = m.diff); }), { elem: o, diff: d }; -}, "recursiveRender"), NKt = /* @__PURE__ */ x(async (t, e, r, n, i) => { - h1e(t, r, n, i), vFt(), wKt(), PKt(), SKt(), H.warn("Graph at first:", JSON.stringify(_i(e))), CKt(e), H.warn("Graph after:", JSON.stringify(_i(e))); +}, "recursiveRender"), $Kt = /* @__PURE__ */ x(async (t, e, r, n, i) => { + h1e(t, r, n, i), bFt(), kKt(), IKt(), CKt(), H.warn("Graph at first:", JSON.stringify(_i(e))), _Kt(e), H.warn("Graph after:", JSON.stringify(_i(e))); const s = ke(); await w1e(t, e, n, i, void 0, s); }, "render"), A$ = /* @__PURE__ */ x((t) => mt.sanitizeText(t, ke()), "sanitizeText"), tM = { @@ -93995,7 +94001,7 @@ var d1e = /* @__PURE__ */ x((t, e) => { padding: 5, textHeight: 10, curve: void 0 -}, IKt = /* @__PURE__ */ x(function(t, e, r, n) { +}, BKt = /* @__PURE__ */ x(function(t, e, r, n) { H.info("keys:", [...t.keys()]), H.info(t), t.forEach(function(i) { var o, l, u; const a = { @@ -94032,7 +94038,7 @@ var d1e = /* @__PURE__ */ x((t, e) => { }; e.setNode(s.id, f), i && e.setParent(s.id, i), H.info("setNode", f); }); -}, "addClasses"), $Kt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "addClasses"), FKt = /* @__PURE__ */ x(function(t, e, r, n) { H.info(t), t.forEach(function(i, s) { var m, v, y; const a = i, o = "", l = { labelStyle: "", style: "" }, u = a.text, h = 0, f = "note", d = { @@ -94067,7 +94073,7 @@ var d1e = /* @__PURE__ */ x((t, e) => { }; e.setEdge(a.id, a.class, g, p); }); -}, "addNotes"), BKt = /* @__PURE__ */ x(function(t, e) { +}, "addNotes"), zKt = /* @__PURE__ */ x(function(t, e) { const r = ke().flowchart; let n = 0; t.forEach(function(i) { @@ -94096,12 +94102,12 @@ var d1e = /* @__PURE__ */ x((t, e) => { i.text = i.title, i.text === void 0 ? i.style !== void 0 && (s.arrowheadStyle = "fill: #333") : (s.arrowheadStyle = "fill: #333", s.labelpos = "c", ((o = (a = ke().flowchart) == null ? void 0 : a.htmlLabels) != null ? o : ke().htmlLabels) ? (s.labelType = "html", s.label = '' + i.text + "") : (s.labelType = "text", s.label = i.text.replace(mt.lineBreakRegex, ` `), i.style === void 0 && (s.style = s.style || "stroke: #333; stroke-width: 1.5px;fill:none"), s.labelStyle = s.labelStyle.replace("color:", "fill:"))), e.setEdge(i.id1, i.id2, s, n); }); -}, "addRelations"), FKt = /* @__PURE__ */ x(function(t) { +}, "addRelations"), QKt = /* @__PURE__ */ x(function(t) { tM = { ...tM, ...t }; -}, "setConf"), zKt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "setConf"), UKt = /* @__PURE__ */ x(async function(t, e, r, n) { var y, b, w, O; H.info("Drawing class - ", e); const i = (y = ke().flowchart) != null ? y : ke().class, s = ke().securityLevel; @@ -94118,11 +94124,11 @@ var d1e = /* @__PURE__ */ x((t, e) => { }).setDefaultEdgeLabel(function() { return {}; }), u = n.db.getNamespaces(), h = n.db.getClasses(), f = n.db.getRelations(), d = n.db.getNotes(); - H.info(f), IKt(u, l, e, n), O1e(h, l, e, n), BKt(f, l), $Kt(d, l, f.length + 1, h); + H.info(f), BKt(u, l, e, n), O1e(h, l, e, n), zKt(f, l), FKt(d, l, f.length + 1, h); let p; s === "sandbox" && (p = ht("#i" + e)); const g = ht(s === "sandbox" ? p.nodes()[0].contentDocument.body : "body"), m = g.select(`[id="${e}"]`), v = g.select("#" + e + " g"); - if (await NKt( + if (await $Kt( v, l, ["aggregation", "extension", "composition", "dependency", "lollipop"], @@ -94160,21 +94166,21 @@ function rM(t) { return e; } x(rM, "getArrowMarker"); -var QKt = { - setConf: FKt, - draw: zKt -}, UKt = { +var VKt = { + setConf: QKt, + draw: UKt +}, qKt = { parser: s1e, db: XS, - renderer: QKt, + renderer: VKt, styles: c1e, init: /* @__PURE__ */ x((t) => { t.class || (t.class = {}), t.class.arrowMarkerAbsolute = t.arrowMarkerAbsolute, XS.clear(); }, "init") }; -const VKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const YKt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: UKt + diagram: qKt }, Symbol.toStringTag, { value: "Module" })); var nM = function() { var t = /* @__PURE__ */ x(function(P, I, F, B) { @@ -94702,16 +94708,16 @@ Expecting ` + ye.join(", ") + ", got '" + (this.terminals_[De] || De) + "'" : ie return x(D, "Parser"), D.prototype = N, N.Parser = D, new D(); }(); nM.parser = nM; -var k1e = nM, qKt = "LR", S1e = "TB", jS = "state", L$ = "relation", YKt = "classDef", WKt = "style", GKt = "applyClass", Iw = "default", T1e = "divider", C1e = "fill:none", E1e = "fill: #333", _1e = "c", A1e = "text", L1e = "normal", JA = "rect", e7 = "rectWithTitle", XKt = "stateStart", HKt = "stateEnd", LH = "divider", RH = "roundedWithTitle", ZKt = "note", jKt = "noteGroup", $w = "statediagram", KKt = "state", JKt = `${$w}-${KKt}`, R1e = "transition", eJt = "note", tJt = "note-edge", rJt = `${R1e} ${tJt}`, nJt = `${$w}-${eJt}`, iJt = "cluster", sJt = `${$w}-${iJt}`, aJt = "cluster-alt", oJt = `${$w}-${aJt}`, M1e = "parent", D1e = "note", lJt = "state", R$ = "----", cJt = `${R$}${D1e}`, MH = `${R$}${M1e}`, P1e = /* @__PURE__ */ x((t, e = S1e) => { +var k1e = nM, WKt = "LR", S1e = "TB", jS = "state", L$ = "relation", GKt = "classDef", XKt = "style", HKt = "applyClass", Iw = "default", T1e = "divider", C1e = "fill:none", E1e = "fill: #333", _1e = "c", A1e = "text", L1e = "normal", JA = "rect", e7 = "rectWithTitle", ZKt = "stateStart", jKt = "stateEnd", LH = "divider", RH = "roundedWithTitle", KKt = "note", JKt = "noteGroup", $w = "statediagram", eJt = "state", tJt = `${$w}-${eJt}`, R1e = "transition", rJt = "note", nJt = "note-edge", iJt = `${R1e} ${nJt}`, sJt = `${$w}-${rJt}`, aJt = "cluster", oJt = `${$w}-${aJt}`, lJt = "cluster-alt", cJt = `${$w}-${lJt}`, M1e = "parent", D1e = "note", uJt = "state", R$ = "----", hJt = `${R$}${D1e}`, MH = `${R$}${M1e}`, P1e = /* @__PURE__ */ x((t, e = S1e) => { if (!t.doc) return e; let r = e; for (const n of t.doc) n.stmt === "dir" && (r = n.value); return r; -}, "getDir"), uJt = /* @__PURE__ */ x(function(t, e) { +}, "getDir"), fJt = /* @__PURE__ */ x(function(t, e) { return e.db.extract(e.db.getRootDocV2()), e.db.getClasses(); -}, "getClasses"), hJt = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), dJt = /* @__PURE__ */ x(async function(t, e, r, n) { var h, f; H.info("REF0:"), H.info("Drawing state diagram (v2)", e); const { securityLevel: i, state: s, layout: a } = ke(); @@ -94725,17 +94731,17 @@ var k1e = nM, qKt = "LR", S1e = "TB", jS = "state", L$ = "relation", YKt = "clas (h = s == null ? void 0 : s.titleTopMargin) != null ? h : 25, n.db.getDiagramTitle() ), Xde(l, u, $w, (f = s == null ? void 0 : s.useMaxWidth) != null ? f : !0); -}, "draw"), fJt = { - getClasses: uJt, - draw: hJt, +}, "draw"), pJt = { + getClasses: fJt, + draw: dJt, getDir: P1e }, Z5 = /* @__PURE__ */ new Map(), sf = 0; function j5(t = "", e = 0, r = "", n = R$) { const i = r !== null && r.length > 0 ? `${n}${r}` : ""; - return `${lJt}-${t}${i}-${e}`; + return `${uJt}-${t}${i}-${e}`; } x(j5, "stateDomId"); -var dJt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { +var gJt = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { H.trace("items", e), e.forEach((l) => { switch (l.stmt) { case jS: @@ -94821,15 +94827,15 @@ var ky = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { const l = e.id, u = r.get(l), h = N1e(u), f = I1e(u); if (H.info("dataFetcher parsedItem", e, u, f), l !== "root") { let g = JA; - e.start === !0 ? g = XKt : e.start === !1 && (g = HKt), e.type !== Iw && (g = e.type), Z5.get(l) || Z5.set(l, { + e.start === !0 ? g = ZKt : e.start === !1 && (g = jKt), e.type !== Iw && (g = e.type), Z5.get(l) || Z5.set(l, { id: l, shape: g, description: mt.sanitizeText(l, ke()), - cssClasses: `${h} ${JKt}`, + cssClasses: `${h} ${tJt}`, cssStyles: f }); const m = Z5.get(l); - e.description && (Array.isArray(m.description) ? (m.shape = e7, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = e7, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = JA, m.description = e.description), m.description = mt.sanitizeTextOrArray(m.description, ke())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === e7 && (m.type === "group" ? m.shape = RH : m.shape = JA), !m.type && e.doc && (H.info("Setting cluster for XCX", l, DH(e)), m.type = "group", m.isGroup = !0, m.dir = DH(e), m.shape = e.type === T1e ? LH : RH, m.cssClasses = `${m.cssClasses} ${sJt} ${s ? oJt : ""}`); + e.description && (Array.isArray(m.description) ? (m.shape = e7, m.description.push(e.description)) : ((d = m.description) == null ? void 0 : d.length) > 0 ? (m.shape = e7, m.description === l ? m.description = [e.description] : m.description = [m.description, e.description]) : (m.shape = JA, m.description = e.description), m.description = mt.sanitizeTextOrArray(m.description, ke())), ((p = m.description) == null ? void 0 : p.length) === 1 && m.shape === e7 && (m.type === "group" ? m.shape = RH : m.shape = JA), !m.type && e.doc && (H.info("Setting cluster for XCX", l, DH(e)), m.type = "group", m.isGroup = !0, m.dir = DH(e), m.shape = e.type === T1e ? LH : RH, m.cssClasses = `${m.cssClasses} ${oJt} ${s ? cJt : ""}`); const v = { labelStyle: "", shape: m.shape, @@ -94850,12 +94856,12 @@ var ky = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { if (v.shape === LH && (v.label = ""), t && t.id !== "root" && (H.trace("Setting node ", l, " to be child of its parent ", t.id), v.parentId = t.id), v.centerLabel = !0, e.note) { const y = { labelStyle: "", - shape: ZKt, + shape: KKt, label: e.note.text, - cssClasses: nJt, + cssClasses: sJt, cssStyles: [], cssCompilesStyles: [], - id: l + cJt + "-" + sf, + id: l + hJt + "-" + sf, domId: j5(l, sf, D1e), type: m.type, isGroup: m.type === "group", @@ -94864,7 +94870,7 @@ var ky = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { position: e.note.position }, b = l + MH, w = { labelStyle: "", - shape: jKt, + shape: JKt, label: e.note.text, cssClasses: m.cssClasses, cssStyles: [], @@ -94886,7 +94892,7 @@ var ky = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { arrowTypeEnd: "", style: C1e, labelStyle: "", - classes: rJt, + classes: iJt, arrowheadStyle: E1e, labelpos: _1e, labelType: A1e, @@ -94896,31 +94902,31 @@ var ky = /* @__PURE__ */ x((t, e, r, n, i, s, a, o) => { } else Oy(n, v, o); } - e.doc && (H.trace("Adding nodes children "), dJt(e, e.doc, r, n, i, !s, a, o)); -}, "dataFetcher"), pJt = /* @__PURE__ */ x(() => { + e.doc && (H.trace("Adding nodes children "), gJt(e, e.doc, r, n, i, !s, a, o)); +}, "dataFetcher"), mJt = /* @__PURE__ */ x(() => { Z5.clear(), sf = 0; -}, "reset"), M$ = "[*]", $1e = "start", B1e = M$, F1e = "end", PH = "color", NH = "fill", gJt = "bgFill", mJt = ","; +}, "reset"), M$ = "[*]", $1e = "start", B1e = M$, F1e = "end", PH = "color", NH = "fill", vJt = "bgFill", yJt = ","; function D$() { return /* @__PURE__ */ new Map(); } x(D$, "newClassesList"); -var KS = [], P$ = [], z1e = qKt, JS = [], jg = D$(), Q1e = /* @__PURE__ */ x(() => ({ +var KS = [], P$ = [], z1e = WKt, JS = [], jg = D$(), Q1e = /* @__PURE__ */ x(() => ({ relations: [], states: /* @__PURE__ */ new Map(), documents: {} }), "newDoc"), eT = { root: Q1e() -}, qa = eT.root, Rb = 0, IH = 0, vJt = { +}, qa = eT.root, Rb = 0, IH = 0, bJt = { LINE: 0, DOTTED_LINE: 1 -}, yJt = { +}, xJt = { AGGREGATION: 0, EXTENSION: 1, COMPOSITION: 2, DEPENDENCY: 3 -}, _4 = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), bJt = /* @__PURE__ */ x((t) => { +}, _4 = /* @__PURE__ */ x((t) => JSON.parse(JSON.stringify(t)), "clone"), wJt = /* @__PURE__ */ x((t) => { H.info("Setting root doc", t), JS = t; -}, "setRootDoc"), xJt = /* @__PURE__ */ x(() => JS, "getRootDoc"), K5 = /* @__PURE__ */ x((t, e, r) => { +}, "setRootDoc"), OJt = /* @__PURE__ */ x(() => JS, "getRootDoc"), K5 = /* @__PURE__ */ x((t, e, r) => { if (e.stmt === L$) K5(t, e.state1, !0), K5(t, e.state2, !1); else if (e.stmt === jS && (e.id === "[*]" ? (e.id = r ? t.id + "_start" : t.id + "_end", e.start = r) : e.id = e.id.trim()), e.doc) { @@ -94943,7 +94949,7 @@ var KS = [], P$ = [], z1e = qKt, JS = [], jg = D$(), Q1e = /* @__PURE__ */ x(() } e.doc.forEach((a) => K5(e, a, !0)); } -}, "docTranslator"), N$ = /* @__PURE__ */ x(() => (K5({ id: "root" }, { id: "root", doc: JS }, !0), { id: "root", doc: JS }), "getRootDocV2"), wJt = /* @__PURE__ */ x((t) => { +}, "docTranslator"), N$ = /* @__PURE__ */ x(() => (K5({ id: "root" }, { id: "root", doc: JS }, !0), { id: "root", doc: JS }), "getRootDocV2"), kJt = /* @__PURE__ */ x((t) => { let e; t.doc ? e = t.doc : e = t, H.info(e), U1e(!0), H.info("Extract initial document:", e), e.forEach((s) => { switch (H.warn("Statement", s.stmt), s.stmt) { @@ -94962,10 +94968,10 @@ var KS = [], P$ = [], z1e = qKt, JS = [], jg = D$(), Q1e = /* @__PURE__ */ x(() case L$: G1e(s.state1, s.state2, s.description); break; - case YKt: + case GKt: X1e(s.id.trim(), s.classes); break; - case WKt: + case XKt: { const a = s.id.trim().split(","), o = s.styleClass.split(","); a.forEach((l) => { @@ -94981,13 +94987,13 @@ var KS = [], P$ = [], z1e = qKt, JS = [], jg = D$(), Q1e = /* @__PURE__ */ x(() }); } break; - case GKt: + case HKt: I$(s.id.trim(), s.styleClass); break; } }); const r = V1e(), i = ke().look; - pJt(), ky(void 0, N$(), r, KS, P$, !0, i, jg), KS.forEach((s) => { + mJt(), ky(void 0, N$(), r, KS, P$, !0, i, jg), KS.forEach((s) => { if (Array.isArray(s.label)) { if (s.description = s.label.slice(1), s.isGroup && s.description.length > 0) throw new Error( @@ -95011,7 +95017,7 @@ var KS = [], P$ = [], z1e = qKt, JS = [], jg = D$(), Q1e = /* @__PURE__ */ x(() const u = qa.states.get(l); u.note = i, u.note.text = mt.sanitizeText(u.note.text, ke()); } - s && (H.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => I$(l, h.trim()))), a && (H.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => EJt(l, h.trim()))), o && (H.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => _Jt(l, h.trim()))); + s && (H.info("Setting state classes", l, s), (typeof s == "string" ? [s] : s).forEach((h) => I$(l, h.trim()))), a && (H.info("Setting state styles", l, a), (typeof a == "string" ? [a] : a).forEach((h) => AJt(l, h.trim()))), o && (H.info("Setting state styles", l, a), (typeof o == "string" ? [o] : o).forEach((h) => LJt(l, h.trim()))); }, "addState"), U1e = /* @__PURE__ */ x(function(t) { KS = [], P$ = [], eT = { root: Q1e() @@ -95020,9 +95026,9 @@ var KS = [], P$ = [], z1e = qKt, JS = [], jg = D$(), Q1e = /* @__PURE__ */ x(() return qa.states.get(t); }, "getState"), V1e = /* @__PURE__ */ x(function() { return qa.states; -}, "getStates"), OJt = /* @__PURE__ */ x(function() { +}, "getStates"), SJt = /* @__PURE__ */ x(function() { H.info("Documents = ", eT); -}, "logDocuments"), kJt = /* @__PURE__ */ x(function() { +}, "logDocuments"), TJt = /* @__PURE__ */ x(function() { return qa.relations; }, "getRelations"); function tT(t = "") { @@ -95084,20 +95090,20 @@ var G1e = /* @__PURE__ */ x(function(t, e, r) { }, "addRelation"), iM = /* @__PURE__ */ x(function(t, e) { const r = qa.states.get(t), n = e.startsWith(":") ? e.replace(":", "").trim() : e; r.descriptions.push(mt.sanitizeText(n, ke())); -}, "addDescription"), SJt = /* @__PURE__ */ x(function(t) { +}, "addDescription"), CJt = /* @__PURE__ */ x(function(t) { return t.substring(0, 1) === ":" ? t.substr(2).trim() : t.trim(); -}, "cleanupLabel"), TJt = /* @__PURE__ */ x(() => (IH++, "divider-id-" + IH), "getDividerId"), X1e = /* @__PURE__ */ x(function(t, e = "") { +}, "cleanupLabel"), EJt = /* @__PURE__ */ x(() => (IH++, "divider-id-" + IH), "getDividerId"), X1e = /* @__PURE__ */ x(function(t, e = "") { jg.has(t) || jg.set(t, { id: t, styles: [], textStyles: [] }); const r = jg.get(t); - e != null && e.split(mJt).forEach((n) => { + e != null && e.split(yJt).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); if (RegExp(PH).exec(n)) { - const a = i.replace(NH, gJt).replace(PH, NH); + const a = i.replace(NH, vJt).replace(PH, NH); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), CJt = /* @__PURE__ */ x(function() { +}, "addStyleClass"), _Jt = /* @__PURE__ */ x(function() { return jg; }, "getClasses"), I$ = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { @@ -95108,39 +95114,39 @@ var G1e = /* @__PURE__ */ x(function(t, e, r) { } n.classes.push(e); }); -}, "setCssClass"), EJt = /* @__PURE__ */ x(function(t, e) { +}, "setCssClass"), AJt = /* @__PURE__ */ x(function(t, e) { const r = ip(t); r !== void 0 && r.styles.push(e); -}, "setStyle"), _Jt = /* @__PURE__ */ x(function(t, e) { +}, "setStyle"), LJt = /* @__PURE__ */ x(function(t, e) { const r = ip(t); r !== void 0 && r.textStyles.push(e); -}, "setTextStyle"), AJt = /* @__PURE__ */ x(() => z1e, "getDirection"), LJt = /* @__PURE__ */ x((t) => { +}, "setTextStyle"), RJt = /* @__PURE__ */ x(() => z1e, "getDirection"), MJt = /* @__PURE__ */ x((t) => { z1e = t; -}, "setDirection"), RJt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), MJt = /* @__PURE__ */ x(() => { +}, "setDirection"), DJt = /* @__PURE__ */ x((t) => t && t[0] === ":" ? t.substr(1).trim() : t.trim(), "trimColon"), PJt = /* @__PURE__ */ x(() => { const t = ke(); return { nodes: KS, edges: P$, other: {}, config: t, direction: P1e(N$()) }; }, "getData"), Uu = { getConfig: /* @__PURE__ */ x(() => ke().state, "getConfig"), - getData: MJt, + getData: PJt, addState: sd, clear: U1e, getState: ip, getStates: V1e, - getRelations: kJt, - getClasses: CJt, - getDirection: AJt, + getRelations: TJt, + getClasses: _Jt, + getDirection: RJt, addRelation: G1e, - getDividerId: TJt, - setDirection: LJt, - cleanupLabel: SJt, - lineType: vJt, - relationType: yJt, - logDocuments: OJt, - getRootDoc: xJt, - setRootDoc: bJt, + getDividerId: EJt, + setDirection: MJt, + cleanupLabel: CJt, + lineType: bJt, + relationType: xJt, + logDocuments: SJt, + getRootDoc: OJt, + setRootDoc: wJt, getRootDocV2: N$, - extract: wJt, - trimColon: RJt, + extract: kJt, + trimColon: DJt, getAccTitle: Ds, setAccTitle: cs, getAccDescription: Ns, @@ -95150,7 +95156,7 @@ var G1e = /* @__PURE__ */ x(function(t, e, r) { addDescription: iM, setDiagramTitle: Na, getDiagramTitle: Is -}, DJt = /* @__PURE__ */ x((t) => ` +}, NJt = /* @__PURE__ */ x((t) => ` defs #statediagram-barbEnd { fill: ${t.transitionColor}; stroke: ${t.transitionColor}; @@ -95364,17 +95370,17 @@ g.stateGroup line { font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), H1e = DJt, $$ = {}, PJt = /* @__PURE__ */ x((t, e) => { +`, "getStyles"), H1e = NJt, $$ = {}, IJt = /* @__PURE__ */ x((t, e) => { $$[t] = e; -}, "set"), NJt = /* @__PURE__ */ x((t) => $$[t], "get"), Z1e = /* @__PURE__ */ x(() => Object.keys($$), "keys"), IJt = /* @__PURE__ */ x(() => Z1e().length, "size"), $Jt = { - get: NJt, - set: PJt, +}, "set"), $Jt = /* @__PURE__ */ x((t) => $$[t], "get"), Z1e = /* @__PURE__ */ x(() => Object.keys($$), "keys"), BJt = /* @__PURE__ */ x(() => Z1e().length, "size"), FJt = { + get: $Jt, + set: IJt, keys: Z1e, - size: IJt -}, BJt = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", ke().state.sizeUnit).attr("cx", ke().state.padding + ke().state.sizeUnit).attr("cy", ke().state.padding + ke().state.sizeUnit), "drawStartState"), FJt = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", ke().state.textHeight).attr("class", "divider").attr("x2", ke().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), zJt = /* @__PURE__ */ x((t, e) => { + size: BJt +}, zJt = /* @__PURE__ */ x((t) => t.append("circle").attr("class", "start-state").attr("r", ke().state.sizeUnit).attr("cx", ke().state.padding + ke().state.sizeUnit).attr("cy", ke().state.padding + ke().state.sizeUnit), "drawStartState"), QJt = /* @__PURE__ */ x((t) => t.append("line").style("stroke", "grey").style("stroke-dasharray", "3").attr("x1", ke().state.textHeight).attr("class", "divider").attr("x2", ke().state.textHeight * 2).attr("y1", 0).attr("y2", 0), "drawDivider"), UJt = /* @__PURE__ */ x((t, e) => { const r = t.append("text").attr("x", 2 * ke().state.padding).attr("y", ke().state.textHeight + 2 * ke().state.padding).attr("font-size", ke().state.fontSize).attr("class", "state-title").text(e.id), n = r.node().getBBox(); return t.insert("rect", ":first-child").attr("x", ke().state.padding).attr("y", ke().state.padding).attr("width", n.width + 2 * ke().state.padding).attr("height", n.height + 2 * ke().state.padding).attr("rx", ke().state.radius), r; -}, "drawSimpleState"), QJt = /* @__PURE__ */ x((t, e) => { +}, "drawSimpleState"), VJt = /* @__PURE__ */ x((t, e) => { const r = /* @__PURE__ */ x(function(d, p, g) { const m = d.append("tspan").attr("x", 2 * ke().state.padding).text(p); g || m.attr("dy", ke().state.textHeight); @@ -95388,7 +95394,7 @@ g.stateGroup line { }); const u = t.append("line").attr("x1", ke().state.padding).attr("y1", ke().state.padding + s + ke().state.dividerMargin / 2).attr("y2", ke().state.padding + s + ke().state.dividerMargin / 2).attr("class", "descr-divider"), h = a.node().getBBox(), f = Math.max(h.width, i.width); return u.attr("x2", f + 3 * ke().state.padding), t.insert("rect", ":first-child").attr("x", ke().state.padding).attr("y", ke().state.padding).attr("width", f + 2 * ke().state.padding).attr("height", h.height + s + 2 * ke().state.padding).attr("rx", ke().state.radius), t; -}, "drawDescrState"), UJt = /* @__PURE__ */ x((t, e, r) => { +}, "drawDescrState"), qJt = /* @__PURE__ */ x((t, e, r) => { const n = ke().state.padding, i = 2 * ke().state.padding, s = t.node().getBBox(), a = s.width, o = s.x, l = t.append("text").attr("x", 0).attr("y", ke().state.titleShift).attr("font-size", ke().state.fontSize).attr("class", "state-title").text(e.id), h = l.node().getBBox().width + i; let f = Math.max(h, a); f === a && (f = f + i); @@ -95406,20 +95412,20 @@ g.stateGroup line { "y", ke().state.titleShift - ke().state.textHeight - ke().state.padding ).attr("width", f).attr("height", p.height + 3 + 2 * ke().state.textHeight).attr("rx", ke().state.radius), t; -}, "addTitleAndBox"), VJt = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", ke().state.sizeUnit + ke().state.miniPadding).attr( +}, "addTitleAndBox"), YJt = /* @__PURE__ */ x((t) => (t.append("circle").attr("class", "end-state-outer").attr("r", ke().state.sizeUnit + ke().state.miniPadding).attr( "cx", ke().state.padding + ke().state.sizeUnit + ke().state.miniPadding ).attr( "cy", ke().state.padding + ke().state.sizeUnit + ke().state.miniPadding -), t.append("circle").attr("class", "end-state-inner").attr("r", ke().state.sizeUnit).attr("cx", ke().state.padding + ke().state.sizeUnit + 2).attr("cy", ke().state.padding + ke().state.sizeUnit + 2)), "drawEndState"), qJt = /* @__PURE__ */ x((t, e) => { +), t.append("circle").attr("class", "end-state-inner").attr("r", ke().state.sizeUnit).attr("cx", ke().state.padding + ke().state.sizeUnit + 2).attr("cy", ke().state.padding + ke().state.sizeUnit + 2)), "drawEndState"), WJt = /* @__PURE__ */ x((t, e) => { let r = ke().state.forkWidth, n = ke().state.forkHeight; if (e.parentId) { let i = r; r = n, n = i; } return t.append("rect").style("stroke", "black").style("fill", "black").attr("width", r).attr("height", n).attr("x", ke().state.padding).attr("y", ke().state.padding); -}, "drawForkJoinState"), YJt = /* @__PURE__ */ x((t, e, r, n) => { +}, "drawForkJoinState"), GJt = /* @__PURE__ */ x((t, e, r, n) => { let i = 0; const s = n.append("text"); s.style("text-anchor", "start"), s.attr("class", "noteText"); @@ -95439,9 +95445,9 @@ g.stateGroup line { } } return { textWidth: s.node().getBBox().width, textHeight: i }; -}, "_drawLongText"), WJt = /* @__PURE__ */ x((t, e) => { +}, "_drawLongText"), XJt = /* @__PURE__ */ x((t, e) => { e.attr("class", "state-note"); - const r = e.append("rect").attr("x", 0).attr("y", ke().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = YJt(t, 0, 0, n); + const r = e.append("rect").attr("x", 0).attr("y", ke().state.padding), n = e.append("g"), { textWidth: i, textHeight: s } = GJt(t, 0, 0, n); return r.attr("height", s + 2 * ke().state.noteMargin), r.attr("width", i + ke().state.noteMargin * 2), r; }, "drawNote"), $H = /* @__PURE__ */ x(function(t, e) { const r = e.id, n = { @@ -95450,10 +95456,10 @@ g.stateGroup line { width: 0, height: 0 }, i = t.append("g").attr("id", r).attr("class", "stateGroup"); - e.type === "start" && BJt(i), e.type === "end" && VJt(i), (e.type === "fork" || e.type === "join") && qJt(i, e), e.type === "note" && WJt(e.note.text, i), e.type === "divider" && FJt(i), e.type === "default" && e.descriptions.length === 0 && zJt(i, e), e.type === "default" && e.descriptions.length > 0 && QJt(i, e); + e.type === "start" && zJt(i), e.type === "end" && YJt(i), (e.type === "fork" || e.type === "join") && WJt(i, e), e.type === "note" && XJt(e.note.text, i), e.type === "divider" && QJt(i), e.type === "default" && e.descriptions.length === 0 && UJt(i, e), e.type === "default" && e.descriptions.length > 0 && VJt(i, e); const s = i.node().getBBox(); - return n.width = s.width + 2 * ke().state.padding, n.height = s.height + 2 * ke().state.padding, $Jt.set(r, n), n; -}, "drawState"), BH = 0, GJt = /* @__PURE__ */ x(function(t, e, r) { + return n.width = s.width + 2 * ke().state.padding, n.height = s.height + 2 * ke().state.padding, FJt.set(r, n), n; +}, "drawState"), BH = 0, HJt = /* @__PURE__ */ x(function(t, e, r) { const n = /* @__PURE__ */ x(function(l) { switch (l) { case Uu.relationType.AGGREGATION: @@ -95494,10 +95500,10 @@ g.stateGroup line { l.insert("rect", ":first-child").attr("class", "box").attr("x", u - g / 2 - ke().state.padding / 2).attr("y", h - v / 2 - ke().state.padding / 2 - 3.5).attr("width", g + ke().state.padding).attr("height", v + ke().state.padding), H.info(y); } BH++; -}, "drawEdge"), So, t7 = {}, XJt = /* @__PURE__ */ x(function() { -}, "setConf"), HJt = /* @__PURE__ */ x(function(t) { +}, "drawEdge"), So, t7 = {}, ZJt = /* @__PURE__ */ x(function() { +}, "setConf"), jJt = /* @__PURE__ */ x(function(t) { t.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"); -}, "insertMarkers"), ZJt = /* @__PURE__ */ x(function(t, e, r, n) { +}, "insertMarkers"), KJt = /* @__PURE__ */ x(function(t, e, r, n) { So = ke().state; const i = ke().securityLevel; let s; @@ -95505,7 +95511,7 @@ g.stateGroup line { const a = ht(i === "sandbox" ? s.nodes()[0].contentDocument.body : "body"), o = i === "sandbox" ? s.nodes()[0].contentDocument : document; H.debug("Rendering diagram " + t); const l = a.select(`[id='${e}']`); - HJt(l); + jJt(l); const u = n.db.getRootDoc(); j1e(u, l, void 0, !1, a, o, n); const h = So.padding, f = l.node().getBBox(), d = f.width + h * 2, p = f.height + h * 2, g = d * 1.75; @@ -95513,7 +95519,7 @@ g.stateGroup line { "viewBox", `${f.x - So.padding} ${f.y - So.padding} ` + d + " " + p ); -}, "draw"), jJt = /* @__PURE__ */ x((t) => t ? t.length * So.fontSizeFactor : 1, "getLabelWidth"), j1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { +}, "draw"), JJt = /* @__PURE__ */ x((t) => t ? t.length * So.fontSizeFactor : 1, "getLabelWidth"), j1e = /* @__PURE__ */ x((t, e, r, n, i, s, a) => { const o = new Ki({ compound: !0, multigraph: !0 @@ -95552,7 +95558,7 @@ g.stateGroup line { let O = e.append("g").attr("id", b.id).attr("class", "stateGroup"); w = j1e(b.doc, O, b.id, !n, i, s, a); { - O = UJt(O, b, n); + O = qJt(O, b, n); let S = O.node().getBBox(); w.width = S.width, w.height = S.height + So.padding / 2, t7[b.id] = { y: So.compositTitleSize }; } @@ -95577,7 +95583,7 @@ g.stateGroup line { y.id2, { relation: y, - width: jJt(y.title), + width: JJt(y.title), height: So.labelHeight * mt.getRows(y.title).length, labelpos: "c" }, @@ -95597,7 +95603,7 @@ g.stateGroup line { }); let m = g.getBBox(); o.edges().forEach(function(y) { - y !== void 0 && o.edge(y) !== void 0 && (H.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), GJt(e, o.edge(y), o.edge(y).relation)); + y !== void 0 && o.edge(y) !== void 0 && (H.debug("Edge " + y.v + " -> " + y.w + ": " + JSON.stringify(o.edge(y))), HJt(e, o.edge(y), o.edge(y).relation)); }), m = g.getBBox(); const v = { id: r || "root", @@ -95606,34 +95612,34 @@ g.stateGroup line { height: 0 }; return v.width = m.width + 2 * So.padding, v.height = m.height + 2 * So.padding, H.debug("Doc rendered", v, o), v; -}, "renderDoc"), KJt = { - setConf: XJt, - draw: ZJt -}, JJt = { +}, "renderDoc"), eer = { + setConf: ZJt, + draw: KJt +}, ter = { parser: k1e, db: Uu, - renderer: KJt, + renderer: eer, styles: H1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Uu.clear(); }, "init") }; -const eer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const rer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: JJt + diagram: ter }, Symbol.toStringTag, { value: "Module" })); -var ter = { +var ner = { parser: k1e, db: Uu, - renderer: fJt, + renderer: pJt, styles: H1e, init: /* @__PURE__ */ x((t) => { t.state || (t.state = {}), t.state.arrowMarkerAbsolute = t.arrowMarkerAbsolute, Uu.clear(); }, "init") }; -const rer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const ier = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: ter + diagram: ner }, Symbol.toStringTag, { value: "Module" })); var sM = function() { var t = /* @__PURE__ */ x(function(f, d, p, g) { @@ -95971,25 +95977,25 @@ Expecting ` + W.join(", ") + ", got '" + (this.terminals_[M] || M) + "'" : ee = return x(h, "Parser"), h.prototype = l, l.Parser = h, new h(); }(); sM.parser = sM; -var ner = sM, o1 = "", B$ = [], Mb = [], Db = [], ier = /* @__PURE__ */ x(function() { +var ser = sM, o1 = "", B$ = [], Mb = [], Db = [], aer = /* @__PURE__ */ x(function() { B$.length = 0, Mb.length = 0, o1 = "", Db.length = 0, ls(); -}, "clear"), ser = /* @__PURE__ */ x(function(t) { +}, "clear"), oer = /* @__PURE__ */ x(function(t) { o1 = t, B$.push(t); -}, "addSection"), aer = /* @__PURE__ */ x(function() { +}, "addSection"), ler = /* @__PURE__ */ x(function() { return B$; -}, "getSections"), oer = /* @__PURE__ */ x(function() { +}, "getSections"), cer = /* @__PURE__ */ x(function() { let t = FH(); const e = 100; let r = 0; for (; !t && r < e; ) t = FH(), r++; return Mb.push(...Db), Mb; -}, "getTasks"), ler = /* @__PURE__ */ x(function() { +}, "getTasks"), uer = /* @__PURE__ */ x(function() { const t = []; return Mb.forEach((r) => { r.people && t.push(...r.people); }), [...new Set(t)].sort(); -}, "updateActors"), cer = /* @__PURE__ */ x(function(t, e) { +}, "updateActors"), her = /* @__PURE__ */ x(function(t, e) { const r = e.substr(1).split(":"); let n = 0, i = []; r.length === 1 ? (n = Number(r[0]), i = []) : (n = Number(r[0]), i = r[1].split(",")); @@ -96001,7 +96007,7 @@ var ner = sM, o1 = "", B$ = [], Mb = [], Db = [], ier = /* @__PURE__ */ x(functi score: n }; Db.push(a); -}, "addTask"), uer = /* @__PURE__ */ x(function(t) { +}, "addTask"), fer = /* @__PURE__ */ x(function(t) { const e = { section: o1, type: o1, @@ -96018,24 +96024,24 @@ var ner = sM, o1 = "", B$ = [], Mb = [], Db = [], ier = /* @__PURE__ */ x(functi for (const [r, n] of Db.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), her = /* @__PURE__ */ x(function() { - return ler(); +}, "compileTasks"), der = /* @__PURE__ */ x(function() { + return uer(); }, "getActors"), zH = { getConfig: /* @__PURE__ */ x(() => ke().journey, "getConfig"), - clear: ier, + clear: aer, setDiagramTitle: Na, getDiagramTitle: Is, setAccTitle: cs, getAccTitle: Ds, setAccDescription: Ps, getAccDescription: Ns, - addSection: ser, - getSections: aer, - getTasks: oer, - addTask: cer, - addTaskOrg: uer, - getActors: her -}, fer = /* @__PURE__ */ x((t) => `.label { + addSection: oer, + getSections: ler, + getTasks: cer, + addTask: her, + addTaskOrg: fer, + getActors: der +}, per = /* @__PURE__ */ x((t) => `.label { font-family: 'trebuchet ms', verdana, arial, sans-serif; font-family: var(--mermaid-font-family); color: ${t.textColor}; @@ -96168,9 +96174,9 @@ var ner = sM, o1 = "", B$ = [], Mb = [], Db = [], ier = /* @__PURE__ */ x(functi .actor-5 { ${t.actor5 ? `fill: ${t.actor5}` : ""}; } -`, "getStyles"), der = fer, F$ = /* @__PURE__ */ x(function(t, e) { +`, "getStyles"), ger = per, F$ = /* @__PURE__ */ x(function(t, e) { return iE(t, e); -}, "drawRect"), per = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), mer = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -96191,15 +96197,15 @@ var ner = sM, o1 = "", B$ = [], Mb = [], Db = [], ier = /* @__PURE__ */ x(functi const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; }, "drawCircle"), J1e = /* @__PURE__ */ x(function(t, e) { - return F$t(t, e); -}, "drawText"), ger = /* @__PURE__ */ x(function(t, e) { + return Q$t(t, e); +}, "drawText"), ver = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, J1e(t, e); -}, "drawLabel"), mer = /* @__PURE__ */ x(function(t, e, r) { +}, "drawLabel"), yer = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = Mp(); i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width * e.taskCount + r.diagramMarginX * (e.taskCount - 1), i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, F$(n, i), eve(r)( e.text, @@ -96212,11 +96218,11 @@ var ner = sM, o1 = "", B$ = [], Mb = [], Db = [], ier = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawSection"), QH = -1, ver = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), QH = -1, ber = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); QH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + QH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), per(i, { + i.append("line").attr("id", "task" + QH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), mer(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score @@ -96246,7 +96252,7 @@ var ner = sM, o1 = "", B$ = [], Mb = [], Db = [], ier = /* @__PURE__ */ x(functi r, e.colour ); -}, "drawTask"), yer = /* @__PURE__ */ x(function(t, e) { +}, "drawTask"), xer = /* @__PURE__ */ x(function(t, e) { Bde(t, e); }, "drawBackgroundRect"), eve = /* @__PURE__ */ function() { function t(i, s, a, o, l, u, h, f) { @@ -96274,18 +96280,18 @@ var ner = sM, o1 = "", B$ = [], Mb = [], Db = [], ier = /* @__PURE__ */ x(functi return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), ber = /* @__PURE__ */ x(function(t) { +}(), wer = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z"); }, "initGraphics"), Pb = { drawRect: F$, drawCircle: K1e, - drawSection: mer, + drawSection: yer, drawText: J1e, - drawLabel: ger, - drawTask: ver, - drawBackgroundRect: yer, - initGraphics: ber -}, xer = /* @__PURE__ */ x(function(t) { + drawLabel: ver, + drawTask: ber, + drawBackgroundRect: xer, + initGraphics: wer +}, Oer = /* @__PURE__ */ x(function(t) { Object.keys(t).forEach(function(r) { ME[r] = t[r]; }); @@ -96314,7 +96320,7 @@ function tve(t) { }); } x(tve, "drawActorLegend"); -var ME = ke().journey, Jd = ME.leftMargin, wer = /* @__PURE__ */ x(function(t, e, r, n) { +var ME = ke().journey, Jd = ME.leftMargin, ker = /* @__PURE__ */ x(function(t, e, r, n) { const i = ke().journey, s = ke().securityLevel; let a; s === "sandbox" && (a = ht("#i" + e)); @@ -96331,7 +96337,7 @@ var ME = ke().journey, Jd = ME.leftMargin, wer = /* @__PURE__ */ x(function(t, e color: i.actorColours[d % i.actorColours.length], position: d }, d++; - }), tve(l), Wo.insert(0, 0, Jd, Object.keys(Xu).length * 50), Oer(l, u, 0); + }), tve(l), Wo.insert(0, 0, Jd, Object.keys(Xu).length * 50), Ser(l, u, 0); const p = Wo.getBounds(); h && l.append("text").text(h).attr("x", Jd).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 25); const g = p.stopy - p.starty + 2 * i.diagramMarginY, m = Jd + p.stopx + 2 * i.diagramMarginX; @@ -96383,7 +96389,7 @@ var ME = ke().journey, Jd = ME.leftMargin, wer = /* @__PURE__ */ x(function(t, e getBounds: /* @__PURE__ */ x(function() { return this.data; }, "getBounds") -}, r7 = ME.sectionFills, UH = ME.sectionColours, Oer = /* @__PURE__ */ x(function(t, e, r) { +}, r7 = ME.sectionFills, UH = ME.sectionColours, Ser = /* @__PURE__ */ x(function(t, e, r) { const n = ke().journey; let i = ""; const s = n.height * 2 + n.diagramMarginY, a = r + s; @@ -96410,20 +96416,20 @@ var ME = ke().journey, Jd = ME.leftMargin, wer = /* @__PURE__ */ x(function(t, e d.x = f * n.taskMargin + f * n.width + Jd, d.y = a, d.width = n.diagramMarginX, d.height = n.diagramMarginY, d.colour = u, d.fill = l, d.num = h, d.actors = p, Pb.drawTask(t, d, n), Wo.insert(d.x, d.y, d.x + d.width + n.taskMargin, 300 + 5 * 30); } }, "drawTasks"), VH = { - setConf: xer, - draw: wer -}, ker = { - parser: ner, + setConf: Oer, + draw: ker +}, Ter = { + parser: ser, db: zH, renderer: VH, - styles: der, + styles: ger, init: /* @__PURE__ */ x((t) => { VH.setConf(t.journey), zH.clear(); }, "init") }; -const Ser = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Cer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: ker + diagram: Ter }, Symbol.toStringTag, { value: "Module" })); var aM = function() { var t = /* @__PURE__ */ x(function(d, p, g, m) { @@ -96762,14 +96768,14 @@ Expecting ` + ee.join(", ") + ", got '" + (this.terminals_[D] || D) + "'" : Y = return x(f, "Parser"), f.prototype = u, u.Parser = f, new f(); }(); aM.parser = aM; -var Ter = aM, rve = {}; +var Eer = aM, rve = {}; Qse(rve, { addEvent: () => uve, addSection: () => ave, addTask: () => cve, addTaskOrg: () => hve, clear: () => sve, - default: () => Cer, + default: () => _er, getCommonDb: () => ive, getSections: () => ove, getTasks: () => lve @@ -96816,7 +96822,7 @@ var l1 = "", nve = 0, z$ = [], nT = [], c1 = [], ive = /* @__PURE__ */ x(() => M for (const [r, n] of c1.entries()) t(r), e = e && n.processed; return e; -}, "compileTasks"), Cer = { +}, "compileTasks"), _er = { clear: sve, getCommonDb: ive, addSection: ave, @@ -96825,10 +96831,10 @@ var l1 = "", nve = 0, z$ = [], nT = [], c1 = [], ive = /* @__PURE__ */ x(() => M addTask: cve, addTaskOrg: hve, addEvent: uve -}, Eer = 12, DE = /* @__PURE__ */ x(function(t, e) { +}, Aer = 12, DE = /* @__PURE__ */ x(function(t, e) { const r = t.append("rect"); return r.attr("x", e.x), r.attr("y", e.y), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("width", e.width), r.attr("height", e.height), r.attr("rx", e.rx), r.attr("ry", e.ry), e.class !== void 0 && r.attr("class", e.class), r; -}, "drawRect"), _er = /* @__PURE__ */ x(function(t, e) { +}, "drawRect"), Ler = /* @__PURE__ */ x(function(t, e) { const n = t.append("circle").attr("cx", e.cx).attr("cy", e.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), i = t.append("g"); i.append("circle").attr("cx", e.cx - 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), i.append("circle").attr("cx", e.cx + 15 / 3).attr("cy", e.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"); function s(l) { @@ -96845,7 +96851,7 @@ var l1 = "", nve = 0, z$ = [], nT = [], c1 = [], ive = /* @__PURE__ */ x(() => M l.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", e.cx - 5).attr("y1", e.cy + 7).attr("x2", e.cx + 5).attr("y2", e.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666"); } return x(o, "ambivalent"), e.score > 3 ? s(i) : e.score < 3 ? a(i) : o(i), n; -}, "drawFace"), Aer = /* @__PURE__ */ x(function(t, e) { +}, "drawFace"), Rer = /* @__PURE__ */ x(function(t, e) { const r = t.append("circle"); return r.attr("cx", e.cx), r.attr("cy", e.cy), r.attr("class", "actor-" + e.pos), r.attr("fill", e.fill), r.attr("stroke", e.stroke), r.attr("r", e.r), r.class !== void 0 && r.attr("class", r.class), e.title !== void 0 && r.append("title").text(e.title), r; }, "drawCircle"), fve = /* @__PURE__ */ x(function(t, e) { @@ -96853,14 +96859,14 @@ var l1 = "", nve = 0, z$ = [], nT = [], c1 = [], ive = /* @__PURE__ */ x(() => M n.attr("x", e.x), n.attr("y", e.y), n.attr("class", "legend"), n.style("text-anchor", e.anchor), e.class !== void 0 && n.attr("class", e.class); const i = n.append("tspan"); return i.attr("x", e.x + e.textMargin * 2), i.text(r), n; -}, "drawText"), Ler = /* @__PURE__ */ x(function(t, e) { +}, "drawText"), Mer = /* @__PURE__ */ x(function(t, e) { function r(i, s, a, o, l) { return i + "," + s + " " + (i + a) + "," + s + " " + (i + a) + "," + (s + o - l) + " " + (i + a - l * 1.2) + "," + (s + o) + " " + i + "," + (s + o); } x(r, "genPoints"); const n = t.append("polygon"); n.attr("points", r(e.x, e.y, 50, 20, 7)), n.attr("class", "labelBox"), e.y = e.y + e.labelMargin, e.x = e.x + 0.5 * e.labelMargin, fve(t, e); -}, "drawLabel"), Rer = /* @__PURE__ */ x(function(t, e, r) { +}, "drawLabel"), Der = /* @__PURE__ */ x(function(t, e, r) { const n = t.append("g"), i = Q$(); i.x = e.x, i.y = e.y, i.fill = e.fill, i.width = r.width, i.height = r.height, i.class = "journey-section section-type-" + e.num, i.rx = 3, i.ry = 3, DE(n, i), dve(r)( e.text, @@ -96873,11 +96879,11 @@ var l1 = "", nve = 0, z$ = [], nT = [], c1 = [], ive = /* @__PURE__ */ x(() => M r, e.colour ); -}, "drawSection"), YH = -1, Mer = /* @__PURE__ */ x(function(t, e, r) { +}, "drawSection"), YH = -1, Per = /* @__PURE__ */ x(function(t, e, r) { const n = e.x + r.width / 2, i = t.append("g"); YH++; const s = 300 + 5 * 30; - i.append("line").attr("id", "task" + YH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), _er(i, { + i.append("line").attr("id", "task" + YH).attr("x1", n).attr("y1", e.y).attr("x2", n).attr("y2", s).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Ler(i, { cx: n, cy: 300 + (5 - e.score) * 30, score: e.score @@ -96894,7 +96900,7 @@ var l1 = "", nve = 0, z$ = [], nT = [], c1 = [], ive = /* @__PURE__ */ x(() => M r, e.colour ); -}, "drawTask"), Der = /* @__PURE__ */ x(function(t, e) { +}, "drawTask"), Ner = /* @__PURE__ */ x(function(t, e) { DE(t, { x: e.startx, y: e.starty, @@ -96903,7 +96909,7 @@ var l1 = "", nve = 0, z$ = [], nT = [], c1 = [], ive = /* @__PURE__ */ x(() => M fill: e.fill, class: "rect" }).lower(); -}, "drawBackgroundRect"), Per = /* @__PURE__ */ x(function() { +}, "drawBackgroundRect"), Ier = /* @__PURE__ */ x(function() { return { x: 0, y: 0, @@ -96951,7 +96957,7 @@ var l1 = "", nve = 0, z$ = [], nT = [], c1 = [], ive = /* @__PURE__ */ x(() => M return x(n, "_setTextAttrs"), function(i) { return i.textPlacement === "fo" ? r : i.textPlacement === "old" ? t : e; }; -}(), Ner = /* @__PURE__ */ x(function(t) { +}(), $er = /* @__PURE__ */ x(function(t) { t.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z"); }, "initGraphics"); function U$(t, e) { @@ -96962,38 +96968,38 @@ function U$(t, e) { }); } x(U$, "wrap"); -var Ier = /* @__PURE__ */ x(function(t, e, r, n) { +var Ber = /* @__PURE__ */ x(function(t, e, r, n) { var f; - const i = r % Eer - 1, s = t.append("g"); + const i = r % Aer - 1, s = t.append("g"); e.section = i, s.attr( "class", (e.class ? e.class + " " : "") + "timeline-node " + ("section-" + i) ); const a = s.append("g"), o = s.append("g"), u = o.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(U$, e.width).node().getBBox(), h = (f = n.fontSize) != null && f.replace ? n.fontSize.replace("px", "") : n.fontSize; - return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), Ber(a, e, i, n), e; -}, "drawNode"), $er = /* @__PURE__ */ x(function(t, e, r) { + return e.height = u.height + h * 1.1 * 0.5 + e.padding, e.height = Math.max(e.height, e.maxHeight), e.width = e.width + 2 * e.padding, o.attr("transform", "translate(" + e.width / 2 + ", " + e.padding / 2 + ")"), zer(a, e, i, n), e; +}, "drawNode"), Fer = /* @__PURE__ */ x(function(t, e, r) { var o; const n = t.append("g"), s = n.append("text").text(e.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(U$, e.width).node().getBBox(), a = (o = r.fontSize) != null && o.replace ? r.fontSize.replace("px", "") : r.fontSize; return n.remove(), s.height + a * 1.1 * 0.5 + e.padding; -}, "getVirtualNodeHeight"), Ber = /* @__PURE__ */ x(function(t, e, r) { +}, "getVirtualNodeHeight"), zer = /* @__PURE__ */ x(function(t, e, r) { t.append("path").attr("id", "node-" + e.id).attr("class", "node-bkg node-" + e.type).attr( "d", `M0 ${e.height - 5} v${-e.height + 2 * 5} q0,-5 5,-5 h${e.width - 2 * 5} q5,0 5,5 v${e.height - 5} H0 Z` ), t.append("line").attr("class", "node-line-" + r).attr("x1", 0).attr("y1", e.height).attr("x2", e.width).attr("y2", e.height); }, "defaultBkg"), e0 = { drawRect: DE, - drawCircle: Aer, - drawSection: Rer, + drawCircle: Rer, + drawSection: Der, drawText: fve, - drawLabel: Ler, - drawTask: Mer, - drawBackgroundRect: Der, - getTextObj: Per, + drawLabel: Mer, + drawTask: Per, + drawBackgroundRect: Ner, + getTextObj: Ier, getNoteRect: Q$, - initGraphics: Ner, - drawNode: Ier, - getVirtualNodeHeight: $er -}, Fer = /* @__PURE__ */ x(function(t, e, r, n) { + initGraphics: $er, + drawNode: Ber, + getVirtualNodeHeight: Fer +}, Qer = /* @__PURE__ */ x(function(t, e, r, n) { var E, R, _, L, $; const i = ke(), s = (E = i.leftMargin) != null ? E : 50; H.debug("timeline", n.db); @@ -97106,7 +97112,7 @@ var Ier = /* @__PURE__ */ x(function(t, e, r, n) { if (H.debug("taskHeight after draw", v), g.attr("transform", `translate(${n}, ${i})`), s = Math.max(s, v), d.events) { const y = t.append("g").attr("class", "lineWrapper"); let b = s; - i += 100, b = b + zer(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( + i += 100, b = b + Uer(t, d.events, r, n, i, a), i -= 100, y.append("line").attr("x1", n + 190 / 2).attr("y1", i + s).attr("x2", n + 190 / 2).attr( "y2", i + s + (h ? s : u) + l + 120 ).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5"); @@ -97114,7 +97120,7 @@ var Ier = /* @__PURE__ */ x(function(t, e, r, n) { n = n + 200, h && !((f = a.timeline) != null && f.disableMulticolor) && r++; } i = i - 10; -}, "drawTasks"), zer = /* @__PURE__ */ x(function(t, e, r, n, i, s) { +}, "drawTasks"), Uer = /* @__PURE__ */ x(function(t, e, r, n, i, s) { let a = 0; const o = i; i = i + 100; @@ -97132,11 +97138,11 @@ var Ier = /* @__PURE__ */ x(function(t, e, r, n) { a = a + d, h.attr("transform", `translate(${n}, ${i})`), i = i + 10 + d; } return i = o, a; -}, "drawEvents"), Qer = { +}, "drawEvents"), Ver = { setConf: /* @__PURE__ */ x(() => { }, "setConf"), - draw: Fer -}, Uer = /* @__PURE__ */ x((t) => { + draw: Qer +}, qer = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], yp(t["lineColor" + r]) ? t["lineColor" + r] = Ht(t["lineColor" + r], 20) : t["lineColor" + r] = tr(t["lineColor" + r], 20); @@ -97177,11 +97183,11 @@ var Ier = /* @__PURE__ */ x(function(t, e, r, n) { `; } return e; -}, "genSections"), Ver = /* @__PURE__ */ x((t) => ` +}, "genSections"), Yer = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${Uer(t)} + ${qer(t)} .section-root rect, .section-root path, .section-root circle { fill: ${t.git0}; } @@ -97200,15 +97206,15 @@ var Ier = /* @__PURE__ */ x(function(t, e, r, n) { .eventWrapper { filter: brightness(120%); } -`, "getStyles"), qer = Ver, Yer = { +`, "getStyles"), Wer = Yer, Ger = { db: rve, - renderer: Qer, - parser: Ter, - styles: qer + renderer: Ver, + parser: Eer, + styles: Wer }; -const Wer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Xer = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Yer + diagram: Ger }, Symbol.toStringTag, { value: "Module" })); function Zi(t) { return Zi = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) { @@ -97241,13 +97247,13 @@ function pve(t, e, r) { }) : t[e] = r, t; } function Dl(t, e) { - return Ger(t) || Xer(t, e) || gve(t, e) || Her(); + return Her(t) || Zer(t, e) || gve(t, e) || jer(); } -function Ger(t) { +function Her(t) { if (Array.isArray(t)) return t; } -function Xer(t, e) { +function Zer(t, e) { var r = t == null ? null : typeof Symbol < "u" && t[Symbol.iterator] || t["@@iterator"]; if (r != null) { var n = [], i = !0, s = !1, a, o; @@ -97284,7 +97290,7 @@ function XH(t, e) { n[r] = t[r]; return n; } -function Her() { +function jer() { throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`); } @@ -97338,25 +97344,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho } var Ni = typeof window > "u" ? null : window, HH = Ni ? Ni.navigator : null; Ni && Ni.document; -var Zer = Zi(""), vve = Zi({}), jer = Zi(function() { -}), Ker = typeof HTMLElement > "u" ? "undefined" : Zi(HTMLElement), Bw = function(e) { +var Ker = Zi(""), vve = Zi({}), Jer = Zi(function() { +}), etr = typeof HTMLElement > "u" ? "undefined" : Zi(HTMLElement), Bw = function(e) { return e && e.instanceString && Gn(e.instanceString) ? e.instanceString() : null; }, Kt = function(e) { - return e != null && Zi(e) == Zer; + return e != null && Zi(e) == Ker; }, Gn = function(e) { - return e != null && Zi(e) === jer; + return e != null && Zi(e) === Jer; }, vn = function(e) { return !Ro(e) && (Array.isArray ? Array.isArray(e) : e != null && e instanceof Array); }, zr = function(e) { return e != null && Zi(e) === vve && !vn(e) && e.constructor === Object; -}, Jer = function(e) { +}, ttr = function(e) { return e != null && Zi(e) === vve; }, Lt = function(e) { return e != null && Zi(e) === Zi(1) && !isNaN(e); -}, etr = function(e) { +}, rtr = function(e) { return Lt(e) && Math.floor(e) === e; }, iT = function(e) { - if (Ker !== "undefined") + if (etr !== "undefined") return e != null && e instanceof HTMLElement; }, Ro = function(e) { return Fw(e) || yve(e); @@ -97368,17 +97374,17 @@ var Zer = Zi(""), vve = Zi({}), jer = Zi(function() { return Bw(e) === "core"; }, bve = function(e) { return Bw(e) === "stylesheet"; -}, ttr = function(e) { +}, ntr = function(e) { return Bw(e) === "event"; }, ad = function(e) { return e == null ? !0 : !!(e === "" || e.match(/^\s+$/)); -}, rtr = function(e) { +}, itr = function(e) { return typeof HTMLElement > "u" ? !1 : e instanceof HTMLElement; -}, ntr = function(e) { +}, str = function(e) { return zr(e) && Lt(e.x1) && Lt(e.x2) && Lt(e.y1) && Lt(e.y2); -}, itr = function(e) { - return Jer(e) && Gn(e.then); -}, str = function() { +}, atr = function(e) { + return ttr(e) && Gn(e.then); +}, otr = function() { return HH && HH.userAgent.match(/msie|trident|edge/i); }, Nb = function(e, r) { r || (r = function() { @@ -97409,9 +97415,9 @@ var Zer = Zi(""), vve = Zi({}), jer = Zi(function() { return t + "$" + e; }), ZH = function(e) { return ad(e) ? e : e.charAt(0).toUpperCase() + e.substring(1); -}, Vi = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", atr = "rgb[a]?\\((" + Vi + "[%]?)\\s*,\\s*(" + Vi + "[%]?)\\s*,\\s*(" + Vi + "[%]?)(?:\\s*,\\s*(" + Vi + "))?\\)", otr = "rgb[a]?\\((?:" + Vi + "[%]?)\\s*,\\s*(?:" + Vi + "[%]?)\\s*,\\s*(?:" + Vi + "[%]?)(?:\\s*,\\s*(?:" + Vi + "))?\\)", ltr = "hsl[a]?\\((" + Vi + ")\\s*,\\s*(" + Vi + "[%])\\s*,\\s*(" + Vi + "[%])(?:\\s*,\\s*(" + Vi + "))?\\)", ctr = "hsl[a]?\\((?:" + Vi + ")\\s*,\\s*(?:" + Vi + "[%])\\s*,\\s*(?:" + Vi + "[%])(?:\\s*,\\s*(?:" + Vi + "))?\\)", utr = "\\#[0-9a-fA-F]{3}", htr = "\\#[0-9a-fA-F]{6}", wve = function(e, r) { +}, Vi = "(?:[-+]?(?:(?:\\d+|\\d*\\.\\d+)(?:[Ee][+-]?\\d+)?))", ltr = "rgb[a]?\\((" + Vi + "[%]?)\\s*,\\s*(" + Vi + "[%]?)\\s*,\\s*(" + Vi + "[%]?)(?:\\s*,\\s*(" + Vi + "))?\\)", ctr = "rgb[a]?\\((?:" + Vi + "[%]?)\\s*,\\s*(?:" + Vi + "[%]?)\\s*,\\s*(?:" + Vi + "[%]?)(?:\\s*,\\s*(?:" + Vi + "))?\\)", utr = "hsl[a]?\\((" + Vi + ")\\s*,\\s*(" + Vi + "[%])\\s*,\\s*(" + Vi + "[%])(?:\\s*,\\s*(" + Vi + "))?\\)", htr = "hsl[a]?\\((?:" + Vi + ")\\s*,\\s*(?:" + Vi + "[%])\\s*,\\s*(?:" + Vi + "[%])(?:\\s*,\\s*(?:" + Vi + "))?\\)", ftr = "\\#[0-9a-fA-F]{3}", dtr = "\\#[0-9a-fA-F]{6}", wve = function(e, r) { return e < r ? -1 : e > r ? 1 : 0; -}, ftr = function(e, r) { +}, ptr = function(e, r) { return -1 * wve(e, r); }, ur = Object.assign != null ? Object.assign.bind(Object) : function(t) { for (var e = arguments, r = 1; r < e.length; r++) { @@ -97423,17 +97429,17 @@ var Zer = Zi(""), vve = Zi({}), jer = Zi(function() { } } return t; -}, dtr = function(e) { +}, gtr = function(e) { if (!(!(e.length === 4 || e.length === 7) || e[0] !== "#")) { var r = e.length === 4, n, i, s, a = 16; return r ? (n = parseInt(e[1] + e[1], a), i = parseInt(e[2] + e[2], a), s = parseInt(e[3] + e[3], a)) : (n = parseInt(e[1] + e[2], a), i = parseInt(e[3] + e[4], a), s = parseInt(e[5] + e[6], a)), [n, i, s]; } -}, ptr = function(e) { +}, mtr = function(e) { var r, n, i, s, a, o, l, u; function h(g, m, v) { return v < 0 && (v += 1), v > 1 && (v -= 1), v < 1 / 6 ? g + (m - g) * 6 * v : v < 1 / 2 ? m : v < 2 / 3 ? g + (m - g) * (2 / 3 - v) * 6 : g; } - var f = new RegExp("^" + ltr + "$").exec(e); + var f = new RegExp("^" + utr + "$").exec(e); if (f) { if (n = parseInt(f[1]), n < 0 ? n = (360 - -1 * n % 360) % 360 : n > 360 && (n = n % 360), n /= 360, i = parseFloat(f[2]), i < 0 || i > 100 || (i = i / 100, s = parseFloat(f[3]), s < 0 || s > 100) || (s = s / 100, a = f[4], a !== void 0 && (a = parseFloat(a), a < 0 || a > 1))) return; @@ -97446,8 +97452,8 @@ var Zer = Zi(""), vve = Zi({}), jer = Zi(function() { r = [o, l, u, a]; } return r; -}, gtr = function(e) { - var r, n = new RegExp("^" + atr + "$").exec(e); +}, vtr = function(e) { + var r, n = new RegExp("^" + ltr + "$").exec(e); if (n) { r = []; for (var i = [], s = 1; s <= 3; s++) { @@ -97467,11 +97473,11 @@ var Zer = Zi(""), vve = Zi({}), jer = Zi(function() { } } return r; -}, mtr = function(e) { - return ytr[e.toLowerCase()]; -}, vtr = function(e) { - return (vn(e) ? e : null) || mtr(e) || dtr(e) || gtr(e) || ptr(e); -}, ytr = { +}, ytr = function(e) { + return xtr[e.toLowerCase()]; +}, btr = function(e) { + return (vn(e) ? e : null) || ytr(e) || gtr(e) || vtr(e) || mtr(e); +}, xtr = { transparent: [0, 0, 0, 0], aliceblue: [240, 248, 255], antiquewhite: [250, 235, 215], @@ -97637,55 +97643,55 @@ var Zer = Zi(""), vve = Zi({}), jer = Zi(function() { } return r; }; -function btr(t) { +function wtr(t) { var e = typeof t; return t != null && (e == "object" || e == "function"); } -var sp = btr, Sy = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; -function xtr(t, e) { +var sp = wtr, Sy = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}; +function Otr(t, e) { return e = { exports: {} }, t(e, e.exports), e.exports; } -var wtr = typeof Sy == "object" && Sy && Sy.Object === Object && Sy, Otr = wtr, ktr = typeof self == "object" && self && self.Object === Object && self, Str = Otr || ktr || Function("return this")(), NE = Str, Ttr = function() { +var ktr = typeof Sy == "object" && Sy && Sy.Object === Object && Sy, Str = ktr, Ttr = typeof self == "object" && self && self.Object === Object && self, Ctr = Str || Ttr || Function("return this")(), NE = Ctr, Etr = function() { return NE.Date.now(); -}, n7 = Ttr, Ctr = /\s/; -function Etr(t) { - for (var e = t.length; e-- && Ctr.test(t.charAt(e)); ) +}, n7 = Etr, _tr = /\s/; +function Atr(t) { + for (var e = t.length; e-- && _tr.test(t.charAt(e)); ) ; return e; } -var _tr = Etr, Atr = /^\s+/; -function Ltr(t) { - return t && t.slice(0, _tr(t) + 1).replace(Atr, ""); +var Ltr = Atr, Rtr = /^\s+/; +function Mtr(t) { + return t && t.slice(0, Ltr(t) + 1).replace(Rtr, ""); } -var Rtr = Ltr, Mtr = NE.Symbol, u1 = Mtr, Sve = Object.prototype, Dtr = Sve.hasOwnProperty, Ptr = Sve.toString, Gv = u1 ? u1.toStringTag : void 0; -function Ntr(t) { - var e = Dtr.call(t, Gv), r = t[Gv]; +var Dtr = Mtr, Ptr = NE.Symbol, u1 = Ptr, Sve = Object.prototype, Ntr = Sve.hasOwnProperty, Itr = Sve.toString, Gv = u1 ? u1.toStringTag : void 0; +function $tr(t) { + var e = Ntr.call(t, Gv), r = t[Gv]; try { t[Gv] = void 0; var n = !0; } catch { } - var i = Ptr.call(t); + var i = Itr.call(t); return n && (e ? t[Gv] = r : delete t[Gv]), i; } -var Itr = Ntr, $tr = Object.prototype, Btr = $tr.toString; -function Ftr(t) { - return Btr.call(t); +var Btr = $tr, Ftr = Object.prototype, ztr = Ftr.toString; +function Qtr(t) { + return ztr.call(t); } -var ztr = Ftr, Qtr = "[object Null]", Utr = "[object Undefined]", jH = u1 ? u1.toStringTag : void 0; -function Vtr(t) { - return t == null ? t === void 0 ? Utr : Qtr : jH && jH in Object(t) ? Itr(t) : ztr(t); +var Utr = Qtr, Vtr = "[object Null]", qtr = "[object Undefined]", jH = u1 ? u1.toStringTag : void 0; +function Ytr(t) { + return t == null ? t === void 0 ? qtr : Vtr : jH && jH in Object(t) ? Btr(t) : Utr(t); } -var Tve = Vtr; -function qtr(t) { +var Tve = Ytr; +function Wtr(t) { return t != null && typeof t == "object"; } -var Ytr = qtr, Wtr = "[object Symbol]"; -function Gtr(t) { - return typeof t == "symbol" || Ytr(t) && Tve(t) == Wtr; +var Gtr = Wtr, Xtr = "[object Symbol]"; +function Htr(t) { + return typeof t == "symbol" || Gtr(t) && Tve(t) == Xtr; } -var zw = Gtr, KH = 0 / 0, Xtr = /^[-+]0x[0-9a-f]+$/i, Htr = /^0b[01]+$/i, Ztr = /^0o[0-7]+$/i, jtr = parseInt; -function Ktr(t) { +var zw = Htr, KH = 0 / 0, Ztr = /^[-+]0x[0-9a-f]+$/i, jtr = /^0b[01]+$/i, Ktr = /^0o[0-7]+$/i, Jtr = parseInt; +function err(t) { if (typeof t == "number") return t; if (zw(t)) @@ -97696,16 +97702,16 @@ function Ktr(t) { } if (typeof t != "string") return t === 0 ? t : +t; - t = Rtr(t); - var r = Htr.test(t); - return r || Ztr.test(t) ? jtr(t.slice(2), r ? 2 : 8) : Xtr.test(t) ? KH : +t; + t = Dtr(t); + var r = jtr.test(t); + return r || Ktr.test(t) ? Jtr(t.slice(2), r ? 2 : 8) : Ztr.test(t) ? KH : +t; } -var JH = Ktr, Jtr = "Expected a function", err = Math.max, trr = Math.min; -function rrr(t, e, r) { +var JH = err, trr = "Expected a function", rrr = Math.max, nrr = Math.min; +function irr(t, e, r) { var n, i, s, a, o, l, u = 0, h = !1, f = !1, d = !0; if (typeof t != "function") - throw new TypeError(Jtr); - e = JH(e) || 0, sp(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? err(JH(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); + throw new TypeError(trr); + e = JH(e) || 0, sp(r) && (h = !!r.leading, f = "maxWait" in r, s = f ? rrr(JH(r.maxWait) || 0, e) : s, d = "trailing" in r ? !!r.trailing : d); function p(C) { var T = n, A = i; return n = i = void 0, u = C, a = t.apply(A, T), a; @@ -97715,7 +97721,7 @@ function rrr(t, e, r) { } function m(C) { var T = C - l, A = C - u, E = e - T; - return f ? trr(E, s - A) : E; + return f ? nrr(E, s - A) : E; } function v(C) { var T = C - l, A = C - u; @@ -97748,11 +97754,11 @@ function rrr(t, e, r) { } return S.cancel = w, S.flush = O, S; } -var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { +var IE = irr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { return i7.now(); } : function() { return Date.now(); -}, nrr = function() { +}, srr = function() { if (Ni) { if (Ni.requestAnimationFrame) return function(t) { @@ -97777,7 +97783,7 @@ var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { }, 1e3 / 60); }; }(), sT = function(e) { - return nrr(e); + return srr(e); }, Ch = Cve, kg = 9261, Eve = 65599, Ty = 5381, _ve = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : kg, n = r, i; i = e.next(), !i.done; ) n = n * Eve + i.value | 0; @@ -97788,13 +97794,13 @@ var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { }, $b = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Ty; return (r << 5) + r + e | 0; -}, irr = function(e, r) { +}, arr = function(e, r) { return e * 2097152 + r; }, Yh = function(e) { return e[0] * 2097152 + e[1]; }, A4 = function(e, r) { return [Ib(e[0], r[0]), $b(e[1], r[1])]; -}, srr = function(e, r) { +}, orr = function(e, r) { var n = { value: 0, done: !1 @@ -97815,14 +97821,14 @@ var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { }; return _ve(a, r); }, Ave = function() { - return arr(arguments); -}, arr = function(e) { + return lrr(arguments); +}, lrr = function(e) { for (var r, n = 0; n < e.length; n++) { var i = e[n]; n === 0 ? r = ap(i) : r = ap(i, r); } return r; -}, eZ = !0, orr = console.warn != null, lrr = console.trace != null, G$ = Number.MAX_SAFE_INTEGER || 9007199254740991, Lve = function() { +}, eZ = !0, crr = console.warn != null, urr = console.trace != null, G$ = Number.MAX_SAFE_INTEGER || 9007199254740991, Lve = function() { return !0; }, aT = function() { return !1; @@ -97837,19 +97843,19 @@ var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { else return eZ; }, rn = function(e) { - !Rve() || (orr ? console.warn(e) : (console.log(e), lrr && console.trace())); -}, crr = function(e) { + !Rve() || (crr ? console.warn(e) : (console.log(e), urr && console.trace())); +}, hrr = function(e) { return ur({}, e); }, Hc = function(e) { - return e == null ? e : vn(e) ? e.slice() : zr(e) ? crr(e) : e; -}, urr = function(e) { + return e == null ? e : vn(e) ? e.slice() : zr(e) ? hrr(e) : e; +}, frr = function(e) { return e.slice(); }, Mve = function(e, r) { for (r = e = ""; e++ < 36; r += e * 51 & 52 ? (e ^ 15 ? 8 ^ Math.random() * (e ^ 20 ? 16 : 4) : 4).toString(16) : "-") ; return r; -}, hrr = {}, Dve = function() { - return hrr; +}, drr = {}, Dve = function() { + return drr; }, $s = function(e) { var r = Object.keys(e); return function(n) { @@ -97864,7 +97870,7 @@ var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { ; }, H$ = function(e) { e.splice(0, e.length); -}, frr = function(e, r) { +}, prr = function(e, r) { for (var n = 0; n < r.length; n++) { var i = r[n]; e.push(i); @@ -97873,7 +97879,7 @@ var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { return n && (r = xve(n, r)), e[r]; }, af = function(e, r, n, i) { n && (r = xve(n, r)), e[r] = i; -}, drr = /* @__PURE__ */ function() { +}, grr = /* @__PURE__ */ function() { function t() { V$(this, t), this._obj = {}; } @@ -97903,7 +97909,7 @@ var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { return this._obj[r]; } }]), t; -}(), Zc = typeof Map < "u" ? Map : drr, prr = "undefined", grr = /* @__PURE__ */ function() { +}(), Zc = typeof Map < "u" ? Map : grr, mrr = "undefined", vrr = /* @__PURE__ */ function() { function t(e) { if (V$(this, t), this._obj = /* @__PURE__ */ Object.create(null), this.size = 0, e != null) { var r; @@ -97953,7 +97959,7 @@ var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { return this.toArray().forEach(r, n); } }]), t; -}(), ev = (typeof Set > "u" ? "undefined" : Zi(Set)) !== prr ? Set : grr, $E = function(e, r) { +}(), ev = (typeof Set > "u" ? "undefined" : Zi(Set)) !== mrr ? Set : vrr, $E = function(e, r) { var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !0; if (e === void 0 || r === void 0 || !Y$(e)) { ii("An element must have a core reference and parameters set"); @@ -98095,7 +98101,7 @@ var IE = rrr, i7 = Ni ? Ni.performance : null, Cve = i7 && i7.now ? function() { }; Bb.bfs = Bb.breadthFirstSearch; Bb.dfs = Bb.depthFirstSearch; -var mrr = xtr(function(t, e) { +var yrr = Otr(function(t, e) { (function() { var r, n, i, s, a, o, l, u, h, f, d, p, g, m, v; i = Math.floor, f = Math.min, n = function(y, b) { @@ -98205,13 +98211,13 @@ var mrr = xtr(function(t, e) { return r; }); }).call(Sy); -}), Qw = mrr, vrr = $s({ +}), Qw = yrr, brr = $s({ root: null, weight: function(e) { return 1; }, directed: !1 -}), yrr = { +}), xrr = { dijkstra: function(e) { if (!zr(e)) { var r = arguments; @@ -98221,7 +98227,7 @@ var mrr = xtr(function(t, e) { directed: r[2] }; } - var n = vrr(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = Kt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; + var n = brr(e), i = n.root, s = n.weight, a = n.directed, o = this, l = s, u = Kt(i) ? this.filter(i)[0] : i[0], h = {}, f = {}, d = {}, p = this.byGroup(), g = p.nodes, m = p.edges; m.unmergeBy(function(N) { return N.isLoop(); }); @@ -98271,7 +98277,7 @@ var mrr = xtr(function(t, e) { } }; } -}, brr = { +}, wrr = { kruskal: function(e) { e = e || function(w) { return 1; @@ -98292,7 +98298,7 @@ var mrr = xtr(function(t, e) { } return o; } -}, xrr = $s({ +}, Orr = $s({ root: null, goal: null, weight: function(e) { @@ -98302,9 +98308,9 @@ var mrr = xtr(function(t, e) { return 0; }, directed: !1 -}), wrr = { +}), krr = { aStar: function(e) { - var r = this.cy(), n = xrr(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; + var r = this.cy(), n = Orr(e), i = n.root, s = n.goal, a = n.heuristic, o = n.directed, l = n.weight; i = r.collection(i)[0], s = r.collection(s)[0]; var u = i.id(), h = s.id(), f = {}, d = {}, p = {}, g = new Qw(function(F, B) { return d[F.id()] - d[B.id()]; @@ -98350,14 +98356,14 @@ var mrr = xtr(function(t, e) { steps: T }; } -}, Orr = $s({ +}, Srr = $s({ weight: function(e) { return 1; }, directed: !1 -}), krr = { +}), Trr = { floydWarshall: function(e) { - for (var r = this.cy(), n = Orr(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(q) { + for (var r = this.cy(), n = Srr(e), i = n.weight, s = n.directed, a = i, o = this.byGroup(), l = o.nodes, u = o.edges, h = l.length, f = h * h, d = function(q) { return l.indexOf(q); }, p = function(q) { return l[q]; @@ -98404,15 +98410,15 @@ var mrr = xtr(function(t, e) { }; return B; } -}, Srr = $s({ +}, Crr = $s({ weight: function(e) { return 1; }, directed: !1, root: null -}), Trr = { +}), Err = { bellmanFord: function(e) { - var r = this, n = Srr(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Zc(), m = !1, v = []; + var r = this, n = Crr(e), i = n.weight, s = n.directed, a = n.root, o = i, l = this, u = this.cy(), h = this.byGroup(), f = h.edges, d = h.nodes, p = d.length, g = new Zc(), m = !1, v = []; a = u.collection(a)[0], f.unmergeBy(function(he) { return he.isLoop(); }); @@ -98480,7 +98486,7 @@ var mrr = xtr(function(t, e) { negativeWeightCycles: v }; } -}, Crr = Math.sqrt(2), Err = function(e, r, n) { +}, _rr = Math.sqrt(2), Arr = function(e, r, n) { n.length === 0 && ii("Karger-Stein must be run on a connected (sub)graph"); for (var i = n[e], s = i[1], a = i[2], o = r[s], l = r[a], u = n, h = u.length - 1; h >= 0; h--) { var f = u[h], d = f[1], p = f[2]; @@ -98496,16 +98502,16 @@ var mrr = xtr(function(t, e) { }, s7 = function(e, r, n, i) { for (; n > i; ) { var s = Math.floor(Math.random() * r.length); - r = Err(s, e, r), n--; + r = Arr(s, e, r), n--; } return r; -}, _rr = { +}, Lrr = { kargerStein: function() { var e = this, r = this.byGroup(), n = r.nodes, i = r.edges; i.unmergeBy(function(P) { return P.isLoop(); }); - var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / Crr); + var s = n.length, a = i.length, o = Math.ceil(Math.pow(Math.log(s) / Math.LN2, 2)), l = Math.floor(s / _rr); if (s < 2) { ii("At least 2 nodes are required for Karger-Stein algorithm"); return; @@ -98546,7 +98552,7 @@ var mrr = xtr(function(t, e) { }; return D; } -}, Arr = function(e) { +}, Rrr = function(e) { return { x: e.x, y: e.y @@ -98566,25 +98572,25 @@ var mrr = xtr(function(t, e) { x: e[0], y: e[1] }; -}, Lrr = function(e) { +}, Mrr = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.min(a, i)); } return i; -}, Rrr = function(e) { +}, Drr = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = -1 / 0, s = r; s < n; s++) { var a = e[s]; isFinite(a) && (i = Math.max(a, i)); } return i; -}, Mrr = function(e) { +}, Prr = function(e) { for (var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = 0, s = 0, a = r; a < n; a++) { var o = e[a]; isFinite(o) && (i += o, s++); } return i / s; -}, Drr = function(e) { +}, Nrr = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : e.length, i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : !0, s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : !0; i ? e = e.slice(r, n) : (n < e.length && e.splice(n, e.length - n), r > 0 && e.splice(0, r)); for (var o = 0, l = e.length - 1; l >= 0; l--) { @@ -98596,7 +98602,7 @@ var mrr = xtr(function(t, e) { }); var h = e.length, f = Math.floor(h / 2); return h % 2 !== 0 ? e[f + 1 + o] : (e[f - 1 + o] + e[f + o]) / 2; -}, Prr = function(e) { +}, Irr = function(e) { return Math.PI * e / 180; }, L4 = function(e, r) { return Math.atan2(r, e) - Math.PI / 2; @@ -98609,7 +98615,7 @@ var mrr = xtr(function(t, e) { }, zd = function(e, r) { var n = r.x - e.x, i = r.y - e.y; return n * n + i * i; -}, Nrr = function(e) { +}, $rr = function(e) { for (var r = e.length, n = 0, i = 0; i < r; i++) n += e[i]; for (var s = 0; s < r; s++) @@ -98622,7 +98628,7 @@ var mrr = xtr(function(t, e) { x: es(e.x, r.x, n.x, i), y: es(e.y, r.y, n.y, i) }; -}, Irr = function(e, r, n, i) { +}, Brr = function(e, r, n, i) { var s = { x: r.x - e.x, y: r.y - e.y @@ -98666,7 +98672,7 @@ var mrr = xtr(function(t, e) { h: e.h }; } -}, $rr = function(e) { +}, Frr = function(e) { return { x1: e.x1, x2: e.x2, @@ -98675,9 +98681,9 @@ var mrr = xtr(function(t, e) { y2: e.y2, h: e.h }; -}, Brr = function(e) { +}, zrr = function(e) { e.x1 = 1 / 0, e.y1 = 1 / 0, e.x2 = -1 / 0, e.y2 = -1 / 0, e.w = 0, e.h = 0; -}, Frr = function(e, r, n) { +}, Qrr = function(e, r, n) { return { x1: e.x1 + r, x2: e.x2 + r, @@ -98688,7 +98694,7 @@ var mrr = xtr(function(t, e) { }; }, Ive = function(e, r) { e.x1 = Math.min(e.x1, r.x1), e.x2 = Math.max(e.x2, r.x2), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, r.y1), e.y2 = Math.max(e.y2, r.y2), e.h = e.y2 - e.y1; -}, zrr = function(e, r, n) { +}, Urr = function(e, r, n) { e.x1 = Math.min(e.x1, r), e.x2 = Math.max(e.x2, r), e.w = e.x2 - e.x1, e.y1 = Math.min(e.y1, n), e.y2 = Math.max(e.y2, n), e.h = e.y2 - e.y1; }, J5 = function(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0; @@ -98710,7 +98716,7 @@ var mrr = xtr(function(t, e) { return !(e.x1 > r.x2 || r.x1 > e.x2 || e.x2 < r.x1 || r.x2 < e.x1 || e.y2 < r.y1 || r.y2 < e.y1 || e.y1 > r.y2 || r.y1 > e.y2); }, h1 = function(e, r, n) { return e.x1 <= r && r <= e.x2 && e.y1 <= n && n <= e.y2; -}, Qrr = function(e, r) { +}, Vrr = function(e, r) { return h1(e, r.x, r.y); }, $ve = function(e, r) { return h1(e, r.x1, r.y1) && h1(e, r.x2, r.y2); @@ -98760,10 +98766,10 @@ var mrr = xtr(function(t, e) { return [N[0], N[1]]; } return []; -}, Urr = function(e, r, n, i, s, a, o) { +}, qrr = function(e, r, n, i, s, a, o) { var l = o, u = Math.min(n, s), h = Math.max(n, s), f = Math.min(i, a), d = Math.max(i, a); return u - l <= e && e <= h + l && f - l <= r && r <= d + l; -}, Vrr = function(e, r, n, i, s, a, o, l, u) { +}, Yrr = function(e, r, n, i, s, a, o, l, u) { var h = { x1: Math.min(n, o, s) - u, x2: Math.max(n, o, s) + u, @@ -98771,14 +98777,14 @@ var mrr = xtr(function(t, e) { y2: Math.max(i, l, a) + u }; return !(e < h.x1 || e > h.x2 || r < h.y1 || r > h.y2); -}, qrr = function(e, r, n, i) { +}, Wrr = function(e, r, n, i) { n -= i; var s = r * r - 4 * e * n; if (s < 0) return []; var a = Math.sqrt(s), o = 2 * e, l = (-r + a) / o, u = (-r - a) / o; return [l, u]; -}, Yrr = function(e, r, n, i, s) { +}, Grr = function(e, r, n, i, s) { var a = 1e-5; e === 0 && (e = a), r /= e, n /= e, i /= e; var o, l, u, h, f, d, p, g; @@ -98791,16 +98797,16 @@ var mrr = xtr(function(t, e) { return; } l = -l, h = l * l * l, h = Math.acos(u / Math.sqrt(h)), g = 2 * Math.sqrt(l), s[0] = -p + g * Math.cos(h / 3), s[2] = -p + g * Math.cos((h + 2 * Math.PI) / 3), s[4] = -p + g * Math.cos((h + 4 * Math.PI) / 3); -}, Wrr = function(e, r, n, i, s, a, o, l) { +}, Xrr = function(e, r, n, i, s, a, o, l) { var u = 1 * n * n - 4 * n * s + 2 * n * o + 4 * s * s - 4 * s * o + o * o + i * i - 4 * i * a + 2 * i * l + 4 * a * a - 4 * a * l + l * l, h = 1 * 9 * n * s - 3 * n * n - 3 * n * o - 6 * s * s + 3 * s * o + 9 * i * a - 3 * i * i - 3 * i * l - 6 * a * a + 3 * a * l, f = 1 * 3 * n * n - 6 * n * s + n * o - n * e + 2 * s * s + 2 * s * e - o * e + 3 * i * i - 6 * i * a + i * l - i * r + 2 * a * a + 2 * a * r - l * r, d = 1 * n * s - n * n + n * e - s * e + i * a - i * i + i * r - a * r, p = []; - Yrr(u, h, f, d, p); + Grr(u, h, f, d, p); for (var g = 1e-7, m = [], v = 0; v < 6; v += 2) Math.abs(p[v + 1]) < g && p[v] >= 0 && p[v] <= 1 && m.push(p[v]); m.push(1), m.push(0); for (var y = -1, b, w, O, S = 0; S < m.length; S++) b = Math.pow(1 - m[S], 2) * n + 2 * (1 - m[S]) * m[S] * s + m[S] * m[S] * o, w = Math.pow(1 - m[S], 2) * i + 2 * (1 - m[S]) * m[S] * a + m[S] * m[S] * l, O = Math.pow(b - e, 2) + Math.pow(w - r, 2), y >= 0 ? O < y && (y = O) : y = O; return y; -}, Grr = function(e, r, n, i, s, a) { +}, Hrr = function(e, r, n, i, s, a) { var o = [e - n, r - i], l = [s - n, a - i], u = l[0] * l[0] + l[1] * l[1], h = o[0] * o[0] + o[1] * o[1], f = o[0] * l[0] + o[1] * l[1], d = f * f / u; return f < 0 ? h : d > u ? (e - s) * (e - s) + (r - a) * (r - a) : h - d; }, Xa = function(e, r, n) { @@ -98823,7 +98829,7 @@ var mrr = xtr(function(t, e) { } else m = h; return Xa(e, r, m); -}, Xrr = function(e, r, n, i, s, a, o, l) { +}, Zrr = function(e, r, n, i, s, a, o, l) { for (var u = new Array(n.length * 2), h = 0; h < l.length; h++) { var f = l[h]; u[h * 4 + 0] = f.startX, u[h * 4 + 1] = f.startY, u[h * 4 + 2] = f.stopX, u[h * 4 + 3] = f.stopY; @@ -98846,7 +98852,7 @@ var mrr = xtr(function(t, e) { n[l * 4] = i + d * r, n[l * 4 + 1] = s + p * r, n[l * 4 + 2] = a + d * r, n[l * 4 + 3] = o + p * r; } return n; -}, Hrr = function(e, r, n, i, s, a) { +}, jrr = function(e, r, n, i, s, a) { var o = n - e, l = i - r; o /= s, l /= a; var u = Math.sqrt(o * o + l * l), h = u - 1; @@ -98897,7 +98903,7 @@ var mrr = xtr(function(t, e) { for (var v, y, b, w, O = 0; O < p.length / 2; O++) v = p[O * 2], y = p[O * 2 + 1], O < p.length / 2 - 1 ? (b = p[(O + 1) * 2], w = p[(O + 1) * 2 + 1]) : (b = p[0], w = p[1]), h = vf(e, r, i, s, v, y, b, w), h.length !== 0 && u.push(h[0], h[1]); return u; -}, Zrr = function(e, r, n, i, s, a, o, l, u) { +}, Krr = function(e, r, n, i, s, a, o, l, u) { var h = [], f, d = new Array(n.length * 2); u.forEach(function(b, w) { w === 0 ? (d[d.length - 2] = b.startX, d[d.length - 1] = b.startY) : (d[w * 4 - 2] = b.startX, d[w * 4 - 1] = b.startY), d[w * 4] = b.stopX, d[w * 4 + 1] = b.stopY, f = Cy(e, r, i, s, b.cx, b.cy, b.radius), f.length !== 0 && h.push(f[0], f[1]); @@ -98939,7 +98945,7 @@ var mrr = xtr(function(t, e) { return Math.min(e / 10, r / 10, 8); }, K$ = function() { return 8; -}, jrr = function(e, r, n) { +}, Jrr = function(e, r, n) { return [e - 2 * r + n, 2 * (r - e), e]; }, lM = function(e, r) { return { @@ -98947,16 +98953,16 @@ var mrr = xtr(function(t, e) { widthOffset: Math.min(100, 0.25 * e), ctrlPtOffsetPct: 0.05 }; -}, Krr = $s({ +}, enr = $s({ dampingFactor: 0.8, precision: 1e-6, iterations: 200, weight: function(e) { return 1; } -}), Jrr = { +}), tnr = { pageRank: function(e) { - for (var r = Krr(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { + for (var r = enr(e), n = r.dampingFactor, i = r.precision, s = r.iterations, a = r.weight, o = this._private.cy, l = this.byGroup(), u = l.nodes, h = l.edges, f = u.length, d = f * f, p = h.length, g = new Array(d), m = new Array(f), v = (1 - n) / f, y = 0; y < f; y++) { for (var b = 0; b < f; b++) { var w = y * f + b; g[w] = 0; @@ -98991,7 +98997,7 @@ var mrr = xtr(function(t, e) { var Y = W * f + ee; I[W] += g[Y] * P[ee]; } - Nrr(I), F = P, P = I, I = F; + $rr(I), F = P, P = I, I = F; for (var re = 0, se = 0; se < f; se++) { var U = F[se] - P[se]; re += U * U; @@ -99118,12 +99124,12 @@ var sZ = $s({ }; em.cc = em.closenessCentrality; em.ccn = em.closenessCentralityNormalised = em.closenessCentralityNormalized; -var enr = $s({ +var rnr = $s({ weight: null, directed: !1 }), cM = { betweennessCentrality: function(e) { - for (var r = enr(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { + for (var r = rnr(e), n = r.directed, i = r.weight, s = i != null, a = this.cy(), o = this.nodes(), l = {}, u = {}, h = 0, f = { set: function(w, O) { u[w] = O, O > h && (h = O); }, @@ -99183,7 +99189,7 @@ var enr = $s({ } }; cM.bc = cM.betweennessCentrality; -var tnr = $s({ +var nnr = $s({ expandFactor: 2, inflateFactor: 2, multFactor: 1, @@ -99193,13 +99199,13 @@ var tnr = $s({ return 1; } ] -}), rnr = function(e) { - return tnr(e); -}, nnr = function(e, r) { +}), inr = function(e) { + return nnr(e); +}, snr = function(e, r) { for (var n = 0, i = 0; i < r.length; i++) n += r[i](e); return n; -}, inr = function(e, r, n) { +}, anr = function(e, r, n) { for (var i = 0; i < r; i++) e[i * r + i] = n; }, Qve = function(e, r) { @@ -99210,7 +99216,7 @@ var tnr = $s({ for (var a = 0; a < r; a++) e[a * r + i] = e[a * r + i] / n; } -}, snr = function(e, r, n) { +}, onr = function(e, r, n) { for (var i = new Array(n * n), s = 0; s < n; s++) { for (var a = 0; a < n; a++) i[s * n + a] = 0; @@ -99219,56 +99225,56 @@ var tnr = $s({ i[s * n + l] += e[s * n + o] * r[o * n + l]; } return i; -}, anr = function(e, r, n) { +}, lnr = function(e, r, n) { for (var i = e.slice(0), s = 1; s < n; s++) - e = snr(e, i, r); + e = onr(e, i, r); return e; -}, onr = function(e, r, n) { +}, cnr = function(e, r, n) { for (var i = new Array(r * r), s = 0; s < r * r; s++) i[s] = Math.pow(e[s], n); return Qve(i, r), i; -}, lnr = function(e, r, n, i) { +}, unr = function(e, r, n, i) { for (var s = 0; s < n; s++) { var a = Math.round(e[s] * Math.pow(10, i)) / Math.pow(10, i), o = Math.round(r[s] * Math.pow(10, i)) / Math.pow(10, i); if (a !== o) return !1; } return !0; -}, cnr = function(e, r, n, i) { +}, hnr = function(e, r, n, i) { for (var s = [], a = 0; a < r; a++) { for (var o = [], l = 0; l < r; l++) Math.round(e[a * r + l] * 1e3) / 1e3 > 0 && o.push(n[l]); o.length !== 0 && s.push(i.collection(o)); } return s; -}, unr = function(e, r) { +}, fnr = function(e, r) { for (var n = 0; n < e.length; n++) if (!r[n] || e[n].id() !== r[n].id()) return !1; return !0; -}, hnr = function(e) { +}, dnr = function(e) { for (var r = 0; r < e.length; r++) for (var n = 0; n < e.length; n++) - r != n && unr(e[r], e[n]) && e.splice(n, 1); + r != n && fnr(e[r], e[n]) && e.splice(n, 1); return e; }, aZ = function(e) { - for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = rnr(e), a = {}, o = 0; o < r.length; o++) + for (var r = this.nodes(), n = this.edges(), i = this.cy(), s = inr(e), a = {}, o = 0; o < r.length; o++) a[r[o].id()] = o; for (var l = r.length, u = l * l, h = new Array(u), f, d = 0; d < u; d++) h[d] = 0; for (var p = 0; p < n.length; p++) { - var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = nnr(g, s.attributes); + var g = n[p], m = a[g.source().id()], v = a[g.target().id()], y = snr(g, s.attributes); h[m * l + v] += y, h[v * l + m] += y; } - inr(h, l, s.multFactor), Qve(h, l); + anr(h, l, s.multFactor), Qve(h, l); for (var b = !0, w = 0; b && w < s.maxIterations; ) - b = !1, f = anr(h, l, s.expandFactor), h = onr(f, l, s.inflateFactor), lnr(h, f, u, 4) || (b = !0), w++; - var O = cnr(h, l, r, i); - return O = hnr(O), O; -}, fnr = { + b = !1, f = lnr(h, l, s.expandFactor), h = cnr(f, l, s.inflateFactor), unr(h, f, u, 4) || (b = !0), w++; + var O = hnr(h, l, r, i); + return O = dnr(O), O; +}, pnr = { markovClustering: aZ, mcl: aZ -}, dnr = function(e) { +}, gnr = function(e) { return e; }, Uve = function(e, r) { return Math.abs(r - e); @@ -99276,17 +99282,17 @@ var tnr = $s({ return e + Uve(r, n); }, lZ = function(e, r, n) { return e + Math.pow(n - r, 2); -}, pnr = function(e) { +}, mnr = function(e) { return Math.sqrt(e); -}, gnr = function(e, r, n) { +}, vnr = function(e, r, n) { return Math.max(e, Uve(r, n)); }, Xv = function(e, r, n, i, s) { - for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : dnr, o = i, l, u, h = 0; h < e; h++) + for (var a = arguments.length > 5 && arguments[5] !== void 0 ? arguments[5] : gnr, o = i, l, u, h = 0; h < e; h++) l = r(h), u = n(h), o = s(o, l, u); return a(o); }, f1 = { euclidean: function(e, r, n) { - return e >= 2 ? Xv(e, r, n, 0, lZ, pnr) : Xv(e, r, n, 0, oZ); + return e >= 2 ? Xv(e, r, n, 0, lZ, mnr) : Xv(e, r, n, 0, oZ); }, squaredEuclidean: function(e, r, n) { return Xv(e, r, n, 0, lZ); @@ -99295,7 +99301,7 @@ var tnr = $s({ return Xv(e, r, n, 0, oZ); }, max: function(e, r, n) { - return Xv(e, r, n, -1 / 0, gnr); + return Xv(e, r, n, -1 / 0, vnr); } }; f1["squared-euclidean"] = f1.squaredEuclidean; @@ -99304,7 +99310,7 @@ function FE(t, e, r, n, i, s) { var a; return Gn(t) ? a = t : a = f1[t] || f1.euclidean, e === 0 && Gn(t) ? a(i, s) : a(e, r, n, i, s); } -var mnr = $s({ +var ynr = $s({ k: 2, m: 2, sensitivityThreshold: 1e-4, @@ -99314,7 +99320,7 @@ var mnr = $s({ testMode: !1, testCentroids: null }), J$ = function(e) { - return mnr(e); + return ynr(e); }, cT = function(e, r, n, i, s) { var a = s !== "kMedoids", o = a ? function(f) { return n[f]; @@ -99344,9 +99350,9 @@ var mnr = $s({ for (var i = [], s = null, a = 0; a < r.length; a++) s = r[a], n[s.id()] === e && i.push(s); return i; -}, vnr = function(e, r, n) { +}, bnr = function(e, r, n) { return Math.abs(r - e) <= n; -}, ynr = function(e, r, n) { +}, xnr = function(e, r, n) { for (var i = 0; i < e.length; i++) for (var s = 0; s < e[i].length; s++) { var a = Math.abs(e[i][s] - r[i][s]); @@ -99354,7 +99360,7 @@ var mnr = $s({ return !1; } return !0; -}, bnr = function(e, r, n) { +}, wnr = function(e, r, n) { for (var i = 0; i < n; i++) if (e === r[i]) return !0; @@ -99363,7 +99369,7 @@ var mnr = $s({ var n = new Array(r); if (e.length < 50) for (var i = 0; i < r; i++) { - for (var s = e[Math.floor(Math.random() * e.length)]; bnr(s, n, i); ) + for (var s = e[Math.floor(Math.random() * e.length)]; wnr(s, n, i); ) s = e[Math.floor(Math.random() * e.length)]; n[i] = s; } @@ -99375,7 +99381,7 @@ var mnr = $s({ for (var i = 0, s = 0; s < r.length; s++) i += cT("manhattan", r[s], e, n, "kMedoids"); return i; -}, xnr = function(e) { +}, Onr = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = J$(e), a = new Array(s.k), o = {}, l; s.testMode ? typeof s.testCentroids == "number" ? (s.testCentroids, l = o7(n, s.k, s.attributes)) : Zi(s.testCentroids) === "object" ? l = s.testCentroids : l = o7(n, s.k, s.attributes) : l = o7(n, s.k, s.attributes); for (var u = !0, h = 0; u && h < s.maxIterations; ) { @@ -99389,7 +99395,7 @@ var mnr = $s({ y[b] = 0; for (var w = 0; w < p.length; w++) i = p[w], y[b] += s.attributes[b](i); - v[b] = y[b] / p.length, vnr(v[b], m[b], s.sensitivityThreshold) || (u = !0); + v[b] = y[b] / p.length, bnr(v[b], m[b], s.sensitivityThreshold) || (u = !0); } l[d] = v, a[d] = r.collection(p); } @@ -99397,7 +99403,7 @@ var mnr = $s({ h++; } return a; -}, wnr = function(e) { +}, knr = function(e) { var r = this.cy(), n = this.nodes(), i = null, s = J$(e), a = new Array(s.k), o, l = {}, u, h = new Array(s.k); s.testMode ? typeof s.testCentroids == "number" || (Zi(s.testCentroids) === "object" ? o = s.testCentroids : o = cZ(n, s.k)) : o = cZ(n, s.k); for (var f = !0, d = 0; f && d < s.maxIterations; ) { @@ -99416,7 +99422,7 @@ var mnr = $s({ d++; } return a; -}, Onr = function(e, r, n, i, s) { +}, Snr = function(e, r, n, i, s) { for (var a, o, l = 0; l < r.length; l++) for (var u = 0; u < e.length; u++) i[l][u] = Math.pow(n[l][u], s.m); @@ -99427,7 +99433,7 @@ var mnr = $s({ a += i[d][h] * s.attributes[f](r[d]), o += i[d][h]; e[h][f] = a / o; } -}, knr = function(e, r, n, i, s) { +}, Tnr = function(e, r, n, i, s) { for (var a = 0; a < e.length; a++) r[a] = e[a].slice(); for (var o, l, u, h = 2 / (s.m - 1), f = 0; f < n.length; f++) @@ -99437,7 +99443,7 @@ var mnr = $s({ l = cT(s.distance, i[d], n[f], s.attributes, "cmeans"), u = cT(s.distance, i[d], n[p], s.attributes, "cmeans"), o += Math.pow(l / u, h); e[d][f] = 1 / o; } -}, Snr = function(e, r, n, i) { +}, Cnr = function(e, r, n, i) { for (var s = new Array(n.k), a = 0; a < s.length; a++) s[a] = []; for (var o, l, u = 0; u < r.length; u++) { @@ -99470,17 +99476,17 @@ var mnr = $s({ for (var y = 0; y < n.length; y++) u[y] = new Array(i.k); for (var b = !0, w = 0; b && w < i.maxIterations; ) - b = !1, Onr(a, n, o, u, i), knr(o, l, a, n, i), ynr(o, l, i.sensitivityThreshold) || (b = !0), w++; - return s = Snr(n, o, i, r), { + b = !1, Snr(a, n, o, u, i), Tnr(o, l, a, n, i), xnr(o, l, i.sensitivityThreshold) || (b = !0), w++; + return s = Cnr(n, o, i, r), { clusters: s, degreeOfMembership: o }; -}, Tnr = { - kMeans: xnr, - kMedoids: wnr, +}, Enr = { + kMeans: Onr, + kMedoids: knr, fuzzyCMeans: hZ, fcm: hZ -}, Cnr = $s({ +}, _nr = $s({ distance: "euclidean", linkage: "min", mode: "threshold", @@ -99488,11 +99494,11 @@ var mnr = $s({ addDendrogram: !1, dendrogramDepth: 0, attributes: [] -}), Enr = { +}), Anr = { single: "min", complete: "max" -}, _nr = function(e) { - var r = Cnr(e), n = Enr[r.linkage]; +}, Lnr = function(e) { + var r = _nr(e), n = Anr[r.linkage]; return n != null && (r.linkage = n), r; }, fZ = function(e, r, n, i, s) { for (var a = 0, o = 1 / 0, l, u = s.attributes, h = function(E, R) { @@ -99534,7 +99540,7 @@ var mnr = $s({ return g.key = m.key = g.index = m.index = null, !0; }, M4 = function t(e, r, n) { !e || (e.value ? r.push(e.value) : (e.left && t(e.left, r), e.right && t(e.right, r))); -}, Anr = function t(e, r) { +}, Rnr = function t(e, r) { if (!e) return ""; if (e.left && e.right) { @@ -99559,13 +99565,13 @@ var mnr = $s({ }), s.id(); } else if (e.value) return e.value.id(); -}, Lnr = function t(e, r, n) { +}, Mnr = function t(e, r, n) { if (!e) return []; var i = [], s = [], a = []; return r === 0 ? (e.left && M4(e.left, i), e.right && M4(e.right, s), a = i.concat(s), [n.collection(a)]) : r === 1 ? e.value ? [n.collection(e.value)] : (e.left && M4(e.left, i), e.right && M4(e.right, s), [n.collection(i), n.collection(s)]) : e.value ? [n.collection(e.value)] : (e.left && (i = t(e.left, r - 1, n)), e.right && (s = t(e.right, r - 1, n)), i.concat(s)); }, dZ = function(e) { - for (var r = this.cy(), n = this.nodes(), i = _nr(e), s = i.attributes, a = function(w, O) { + for (var r = this.cy(), n = this.nodes(), i = Lnr(e), s = i.attributes, a = function(w, O) { return FE(i.distance, s.length, function(S) { return s[S](w); }, function(S) { @@ -99587,20 +99593,20 @@ var mnr = $s({ for (var v = fZ(o, h, l, u, i); v; ) v = fZ(o, h, l, u, i); var y; - return i.mode === "dendrogram" ? (y = Lnr(o[0], i.dendrogramDepth, r), i.addDendrogram && Anr(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { + return i.mode === "dendrogram" ? (y = Mnr(o[0], i.dendrogramDepth, r), i.addDendrogram && Rnr(o[0], r)) : (y = new Array(o.length), o.forEach(function(b, w) { b.key = b.index = null, y[w] = r.collection(b.value); })), y; -}, Rnr = { +}, Dnr = { hierarchicalClustering: dZ, hca: dZ -}, Mnr = $s({ +}, Pnr = $s({ distance: "euclidean", preference: "median", damping: 0.8, maxIterations: 1e3, minIterations: 100, attributes: [] -}), Dnr = function(e) { +}), Nnr = function(e) { var r = e.damping, n = e.preference; 0.5 <= r && r < 1 || ii("Damping must range on [0.5, 1). Got: ".concat(r)); var i = ["median", "mean", "min", "max"]; @@ -99608,8 +99614,8 @@ var mnr = $s({ return s === n; }) || Lt(n) || ii("Preference must be one of [".concat(i.map(function(s) { return "'".concat(s, "'"); - }).join(", "), "] or a number. Got: ").concat(n)), Mnr(e); -}, Pnr = function(e, r, n, i) { + }).join(", "), "] or a number. Got: ").concat(n)), Pnr(e); +}, Inr = function(e, r, n, i) { var s = function(o, l) { return i[l](o); }; @@ -99618,10 +99624,10 @@ var mnr = $s({ }, function(a) { return s(n, a); }, r, n); -}, Nnr = function(e, r) { +}, $nr = function(e, r) { var n = null; - return r === "median" ? n = Drr(e) : r === "mean" ? n = Mrr(e) : r === "min" ? n = Lrr(e) : r === "max" ? n = Rrr(e) : n = r, n; -}, Inr = function(e, r, n) { + return r === "median" ? n = Nrr(e) : r === "mean" ? n = Prr(e) : r === "min" ? n = Mrr(e) : r === "max" ? n = Drr(e) : n = r, n; +}, Bnr = function(e, r, n) { for (var i = [], s = 0; s < e; s++) r[s * e + s] + n[s * e + s] > 0 && i.push(s); return i; @@ -99636,7 +99642,7 @@ var mnr = $s({ for (var h = 0; h < n.length; h++) i[n[h]] = n[h]; return i; -}, $nr = function(e, r, n) { +}, Fnr = function(e, r, n) { for (var i = pZ(e, r, n), s = 0; s < n.length; s++) { for (var a = [], o = 0; o < i.length; o++) i[o] === n[s] && a.push(o); @@ -99649,7 +99655,7 @@ var mnr = $s({ } return i = pZ(e, r, n), i; }, gZ = function(e) { - for (var r = this.cy(), n = this.nodes(), i = Dnr(e), s = {}, a = 0; a < n.length; a++) + for (var r = this.cy(), n = this.nodes(), i = Nnr(e), s = {}, a = 0; a < n.length; a++) s[n[a].id()] = a; var o, l, u, h, f, d; o = n.length, l = o * o, u = new Array(l); @@ -99657,8 +99663,8 @@ var mnr = $s({ u[p] = -1 / 0; for (var g = 0; g < o; g++) for (var m = 0; m < o; m++) - g !== m && (u[g * o + m] = Pnr(i.distance, n[g], n[m], i.attributes)); - h = Nnr(u, i.preference); + g !== m && (u[g * o + m] = Inr(i.distance, n[g], n[m], i.attributes)); + h = $nr(u, i.preference); for (var v = 0; v < o; v++) u[v * o + v] = h; f = new Array(l); @@ -99703,7 +99709,7 @@ var mnr = $s({ break; } } - for (var re = Inr(o, f, d), se = $nr(o, u, re), U = {}, Z = 0; Z < re.length; Z++) + for (var re = Bnr(o, f, d), se = Fnr(o, u, re), U = {}, Z = 0; Z < re.length; Z++) U[re[Z]] = []; for (var G = 0; G < n.length; G++) { var K = s[n[G].id()], oe = se[K]; @@ -99712,13 +99718,13 @@ var mnr = $s({ for (var ae = new Array(re.length), J = 0; J < re.length; J++) ae[J] = r.collection(U[re[J]]); return ae; -}, Bnr = { +}, znr = { affinityPropagation: gZ, ap: gZ -}, Fnr = $s({ +}, Qnr = $s({ root: void 0, directed: !1 -}), znr = { +}), Unr = { hierholzer: function(e) { if (!zr(e)) { var r = arguments; @@ -99727,7 +99733,7 @@ var mnr = $s({ directed: r[1] }; } - var n = Fnr(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; + var n = Qnr(e), i = n.root, s = n.directed, a = this, o = !1, l, u, h; i && (h = Kt(i) ? this.filter(i)[0].id() : i[0].id()); var f = {}, d = {}; s ? a.forEach(function(b) { @@ -99832,7 +99838,7 @@ var mnr = $s({ cut: e.spawn(h), components: s }; -}, Qnr = { +}, Vnr = { hopcroftTarjanBiconnected: D4, htbc: D4, htb: D4, @@ -99867,13 +99873,13 @@ var mnr = $s({ cut: a, components: i }; -}, Unr = { +}, qnr = { tarjanStronglyConnected: P4, tsc: P4, tscc: P4, tarjanStronglyConnectedComponents: P4 }, Yve = {}; -[Bb, yrr, brr, wrr, krr, Trr, _rr, Jrr, Jg, em, cM, fnr, Tnr, Rnr, Bnr, znr, Qnr, Unr].forEach(function(t) { +[Bb, xrr, wrr, krr, Trr, Err, Lrr, tnr, Jg, em, cM, pnr, Enr, Dnr, znr, Unr, Vnr, qnr].forEach(function(t) { ur(Yve, t); }); /*! @@ -99926,10 +99932,10 @@ var mZ = function(e, r, n, i) { r.reject(a); return; } - Vnr(r, s); + Ynr(r, s); } }; -}, Vnr = function t(e, r) { +}, Ynr = function t(e, r) { if (e === r || e.proxy === r) { e.reject(new TypeError("cannot resolve promise with itself")); return; @@ -100097,7 +100103,7 @@ ur(cp, { cp.complete = cp.completed; cp.run = cp.play; cp.running = cp.playing; -var qnr = { +var Wnr = { animated: function() { return function() { var r = this, n = r.length !== void 0, i = n ? r : [r], s = this._private.cy || this; @@ -100215,32 +100221,32 @@ var qnr = { return o.notify("draw"), this; }; } -}, Ynr = Array.isArray, zE = Ynr, Wnr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Gnr = /^\w*$/; -function Xnr(t, e) { +}, Gnr = Array.isArray, zE = Gnr, Xnr = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Hnr = /^\w*$/; +function Znr(t, e) { if (zE(t)) return !1; var r = typeof t; - return r == "number" || r == "symbol" || r == "boolean" || t == null || zw(t) ? !0 : Gnr.test(t) || !Wnr.test(t) || e != null && t in Object(e); + return r == "number" || r == "symbol" || r == "boolean" || t == null || zw(t) ? !0 : Hnr.test(t) || !Xnr.test(t) || e != null && t in Object(e); } -var Hnr = Xnr, Znr = "[object AsyncFunction]", jnr = "[object Function]", Knr = "[object GeneratorFunction]", Jnr = "[object Proxy]"; -function eir(t) { +var jnr = Znr, Knr = "[object AsyncFunction]", Jnr = "[object Function]", eir = "[object GeneratorFunction]", tir = "[object Proxy]"; +function rir(t) { if (!sp(t)) return !1; var e = Tve(t); - return e == jnr || e == Knr || e == Znr || e == Jnr; + return e == Jnr || e == eir || e == Knr || e == tir; } -var tir = eir, rir = NE["__core-js_shared__"], l7 = rir, bZ = function() { +var nir = rir, iir = NE["__core-js_shared__"], l7 = iir, bZ = function() { var t = /[^.]+$/.exec(l7 && l7.keys && l7.keys.IE_PROTO || ""); return t ? "Symbol(src)_1." + t : ""; }(); -function nir(t) { +function sir(t) { return !!bZ && bZ in t; } -var iir = nir, sir = Function.prototype, air = sir.toString; -function oir(t) { +var air = sir, oir = Function.prototype, lir = oir.toString; +function cir(t) { if (t != null) { try { - return air.call(t); + return lir.call(t); } catch { } try { @@ -100250,53 +100256,53 @@ function oir(t) { } return ""; } -var lir = oir, cir = /[\\^$.*+?()[\]{}|]/g, uir = /^\[object .+?Constructor\]$/, hir = Function.prototype, fir = Object.prototype, dir = hir.toString, pir = fir.hasOwnProperty, gir = RegExp( - "^" + dir.call(pir).replace(cir, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" +var uir = cir, hir = /[\\^$.*+?()[\]{}|]/g, fir = /^\[object .+?Constructor\]$/, dir = Function.prototype, pir = Object.prototype, gir = dir.toString, mir = pir.hasOwnProperty, vir = RegExp( + "^" + gir.call(mir).replace(hir, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$" ); -function mir(t) { - if (!sp(t) || iir(t)) +function yir(t) { + if (!sp(t) || air(t)) return !1; - var e = tir(t) ? gir : uir; - return e.test(lir(t)); -} -var vir = mir; -function yir(t, e) { - return t == null ? void 0 : t[e]; + var e = nir(t) ? vir : fir; + return e.test(uir(t)); } var bir = yir; function xir(t, e) { - var r = bir(t, e); - return vir(r) ? r : void 0; + return t == null ? void 0 : t[e]; } -var eB = xir, wir = eB(Object, "create"), Qb = wir; -function Oir() { +var wir = xir; +function Oir(t, e) { + var r = wir(t, e); + return bir(r) ? r : void 0; +} +var eB = Oir, kir = eB(Object, "create"), Qb = kir; +function Sir() { this.__data__ = Qb ? Qb(null) : {}, this.size = 0; } -var kir = Oir; -function Sir(t) { +var Tir = Sir; +function Cir(t) { var e = this.has(t) && delete this.__data__[t]; return this.size -= e ? 1 : 0, e; } -var Tir = Sir, Cir = "__lodash_hash_undefined__", Eir = Object.prototype, _ir = Eir.hasOwnProperty; -function Air(t) { +var Eir = Cir, _ir = "__lodash_hash_undefined__", Air = Object.prototype, Lir = Air.hasOwnProperty; +function Rir(t) { var e = this.__data__; if (Qb) { var r = e[t]; - return r === Cir ? void 0 : r; + return r === _ir ? void 0 : r; } - return _ir.call(e, t) ? e[t] : void 0; + return Lir.call(e, t) ? e[t] : void 0; } -var Lir = Air, Rir = Object.prototype, Mir = Rir.hasOwnProperty; -function Dir(t) { +var Mir = Rir, Dir = Object.prototype, Pir = Dir.hasOwnProperty; +function Nir(t) { var e = this.__data__; - return Qb ? e[t] !== void 0 : Mir.call(e, t); + return Qb ? e[t] !== void 0 : Pir.call(e, t); } -var Pir = Dir, Nir = "__lodash_hash_undefined__"; -function Iir(t, e) { +var Iir = Nir, $ir = "__lodash_hash_undefined__"; +function Bir(t, e) { var r = this.__data__; - return this.size += this.has(t) ? 0 : 1, r[t] = Qb && e === void 0 ? Nir : e, this; + return this.size += this.has(t) ? 0 : 1, r[t] = Qb && e === void 0 ? $ir : e, this; } -var $ir = Iir; +var Fir = Bir; function rv(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -100304,49 +100310,49 @@ function rv(t) { this.set(n[0], n[1]); } } -rv.prototype.clear = kir; -rv.prototype.delete = Tir; -rv.prototype.get = Lir; -rv.prototype.has = Pir; -rv.prototype.set = $ir; +rv.prototype.clear = Tir; +rv.prototype.delete = Eir; +rv.prototype.get = Mir; +rv.prototype.has = Iir; +rv.prototype.set = Fir; var xZ = rv; -function Bir() { +function zir() { this.__data__ = [], this.size = 0; } -var Fir = Bir; -function zir(t, e) { +var Qir = zir; +function Uir(t, e) { return t === e || t !== t && e !== e; } -var Zve = zir; -function Qir(t, e) { +var Zve = Uir; +function Vir(t, e) { for (var r = t.length; r--; ) if (Zve(t[r][0], e)) return r; return -1; } -var QE = Qir, Uir = Array.prototype, Vir = Uir.splice; -function qir(t) { +var QE = Vir, qir = Array.prototype, Yir = qir.splice; +function Wir(t) { var e = this.__data__, r = QE(e, t); if (r < 0) return !1; var n = e.length - 1; - return r == n ? e.pop() : Vir.call(e, r, 1), --this.size, !0; + return r == n ? e.pop() : Yir.call(e, r, 1), --this.size, !0; } -var Yir = qir; -function Wir(t) { +var Gir = Wir; +function Xir(t) { var e = this.__data__, r = QE(e, t); return r < 0 ? void 0 : e[r][1]; } -var Gir = Wir; -function Xir(t) { +var Hir = Xir; +function Zir(t) { return QE(this.__data__, t) > -1; } -var Hir = Xir; -function Zir(t, e) { +var jir = Zir; +function Kir(t, e) { var r = this.__data__, n = QE(r, t); return n < 0 ? (++this.size, r.push([t, e])) : r[n][1] = e, this; } -var jir = Zir; +var Jir = Kir; function nv(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -100354,48 +100360,48 @@ function nv(t) { this.set(n[0], n[1]); } } -nv.prototype.clear = Fir; -nv.prototype.delete = Yir; -nv.prototype.get = Gir; -nv.prototype.has = Hir; -nv.prototype.set = jir; -var Kir = nv, Jir = eB(NE, "Map"), esr = Jir; -function tsr() { +nv.prototype.clear = Qir; +nv.prototype.delete = Gir; +nv.prototype.get = Hir; +nv.prototype.has = jir; +nv.prototype.set = Jir; +var esr = nv, tsr = eB(NE, "Map"), rsr = tsr; +function nsr() { this.size = 0, this.__data__ = { hash: new xZ(), - map: new (esr || Kir)(), + map: new (rsr || esr)(), string: new xZ() }; } -var rsr = tsr; -function nsr(t) { +var isr = nsr; +function ssr(t) { var e = typeof t; return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null; } -var isr = nsr; -function ssr(t, e) { +var asr = ssr; +function osr(t, e) { var r = t.__data__; - return isr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; + return asr(e) ? r[typeof e == "string" ? "string" : "hash"] : r.map; } -var UE = ssr; -function asr(t) { +var UE = osr; +function lsr(t) { var e = UE(this, t).delete(t); return this.size -= e ? 1 : 0, e; } -var osr = asr; -function lsr(t) { - return UE(this, t).get(t); -} var csr = lsr; function usr(t) { - return UE(this, t).has(t); + return UE(this, t).get(t); } var hsr = usr; -function fsr(t, e) { +function fsr(t) { + return UE(this, t).has(t); +} +var dsr = fsr; +function psr(t, e) { var r = UE(this, t), n = r.size; return r.set(t, e), this.size += r.size == n ? 0 : 1, this; } -var dsr = fsr; +var gsr = psr; function iv(t) { var e = -1, r = t == null ? 0 : t.length; for (this.clear(); ++e < r; ) { @@ -100403,15 +100409,15 @@ function iv(t) { this.set(n[0], n[1]); } } -iv.prototype.clear = rsr; -iv.prototype.delete = osr; -iv.prototype.get = csr; -iv.prototype.has = hsr; -iv.prototype.set = dsr; -var jve = iv, psr = "Expected a function"; +iv.prototype.clear = isr; +iv.prototype.delete = csr; +iv.prototype.get = hsr; +iv.prototype.has = dsr; +iv.prototype.set = gsr; +var jve = iv, msr = "Expected a function"; function tB(t, e) { if (typeof t != "function" || e != null && typeof e != "function") - throw new TypeError(psr); + throw new TypeError(msr); var r = function() { var n = arguments, i = e ? e.apply(this, n) : n[0], s = r.cache; if (s.has(i)) @@ -100422,25 +100428,25 @@ function tB(t, e) { return r.cache = new (tB.Cache || jve)(), r; } tB.Cache = jve; -var gsr = tB, msr = 500; -function vsr(t) { - var e = gsr(t, function(n) { - return r.size === msr && r.clear(), n; +var vsr = tB, ysr = 500; +function bsr(t) { + var e = vsr(t, function(n) { + return r.size === ysr && r.clear(), n; }), r = e.cache; return e; } -var ysr = vsr, bsr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, xsr = /\\(\\)?/g, wsr = ysr(function(t) { +var xsr = bsr, wsr = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Osr = /\\(\\)?/g, ksr = xsr(function(t) { var e = []; - return t.charCodeAt(0) === 46 && e.push(""), t.replace(bsr, function(r, n, i, s) { - e.push(i ? s.replace(xsr, "$1") : n || r); + return t.charCodeAt(0) === 46 && e.push(""), t.replace(wsr, function(r, n, i, s) { + e.push(i ? s.replace(Osr, "$1") : n || r); }), e; -}), Kve = wsr; -function Osr(t, e) { +}), Kve = ksr; +function Ssr(t, e) { for (var r = -1, n = t == null ? 0 : t.length, i = Array(n); ++r < n; ) i[r] = e(t[r], r, t); return i; } -var Jve = Osr, ksr = 1 / 0, wZ = u1 ? u1.prototype : void 0, OZ = wZ ? wZ.toString : void 0; +var Jve = Ssr, Tsr = 1 / 0, wZ = u1 ? u1.prototype : void 0, OZ = wZ ? wZ.toString : void 0; function eye(t) { if (typeof t == "string") return t; @@ -100449,43 +100455,43 @@ function eye(t) { if (zw(t)) return OZ ? OZ.call(t) : ""; var e = t + ""; - return e == "0" && 1 / t == -ksr ? "-0" : e; + return e == "0" && 1 / t == -Tsr ? "-0" : e; } -var Ssr = eye; -function Tsr(t) { - return t == null ? "" : Ssr(t); +var Csr = eye; +function Esr(t) { + return t == null ? "" : Csr(t); } -var tye = Tsr; -function Csr(t, e) { - return zE(t) ? t : Hnr(t, e) ? [t] : Kve(tye(t)); +var tye = Esr; +function _sr(t, e) { + return zE(t) ? t : jnr(t, e) ? [t] : Kve(tye(t)); } -var rye = Csr, Esr = 1 / 0; -function _sr(t) { +var rye = _sr, Asr = 1 / 0; +function Lsr(t) { if (typeof t == "string" || zw(t)) return t; var e = t + ""; - return e == "0" && 1 / t == -Esr ? "-0" : e; + return e == "0" && 1 / t == -Asr ? "-0" : e; } -var rB = _sr; -function Asr(t, e) { +var rB = Lsr; +function Rsr(t, e) { e = rye(e, t); for (var r = 0, n = e.length; t != null && r < n; ) t = t[rB(e[r++])]; return r && r == n ? t : void 0; } -var Lsr = Asr; -function Rsr(t, e, r) { - var n = t == null ? void 0 : Lsr(t, e); +var Msr = Rsr; +function Dsr(t, e, r) { + var n = t == null ? void 0 : Msr(t, e); return n === void 0 ? r : n; } -var Msr = Rsr, Dsr = function() { +var Psr = Dsr, Nsr = function() { try { var t = eB(Object, "defineProperty"); return t({}, "", {}), t; } catch { } -}(), kZ = Dsr; -function Psr(t, e, r) { +}(), kZ = Nsr; +function Isr(t, e, r) { e == "__proto__" && kZ ? kZ(t, e, { configurable: !0, enumerable: !0, @@ -100493,18 +100499,18 @@ function Psr(t, e, r) { writable: !0 }) : t[e] = r; } -var Nsr = Psr, Isr = Object.prototype, $sr = Isr.hasOwnProperty; -function Bsr(t, e, r) { +var $sr = Isr, Bsr = Object.prototype, Fsr = Bsr.hasOwnProperty; +function zsr(t, e, r) { var n = t[e]; - (!($sr.call(t, e) && Zve(n, r)) || r === void 0 && !(e in t)) && Nsr(t, e, r); + (!(Fsr.call(t, e) && Zve(n, r)) || r === void 0 && !(e in t)) && $sr(t, e, r); } -var Fsr = Bsr, zsr = 9007199254740991, Qsr = /^(?:0|[1-9]\d*)$/; -function Usr(t, e) { +var Qsr = zsr, Usr = 9007199254740991, Vsr = /^(?:0|[1-9]\d*)$/; +function qsr(t, e) { var r = typeof t; - return e = e == null ? zsr : e, !!e && (r == "number" || r != "symbol" && Qsr.test(t)) && t > -1 && t % 1 == 0 && t < e; + return e = e == null ? Usr : e, !!e && (r == "number" || r != "symbol" && Vsr.test(t)) && t > -1 && t % 1 == 0 && t < e; } -var Vsr = Usr; -function qsr(t, e, r, n) { +var Ysr = qsr; +function Wsr(t, e, r, n) { if (!sp(t)) return t; e = rye(e, t); @@ -100514,28 +100520,28 @@ function qsr(t, e, r, n) { return t; if (i != a) { var h = o[l]; - u = n ? n(h, l, o) : void 0, u === void 0 && (u = sp(h) ? h : Vsr(e[i + 1]) ? [] : {}); + u = n ? n(h, l, o) : void 0, u === void 0 && (u = sp(h) ? h : Ysr(e[i + 1]) ? [] : {}); } - Fsr(o, l, u), o = o[l]; + Qsr(o, l, u), o = o[l]; } return t; } -var Ysr = qsr; -function Wsr(t, e, r) { - return t == null ? t : Ysr(t, e, r); -} var Gsr = Wsr; -function Xsr(t, e) { +function Xsr(t, e, r) { + return t == null ? t : Gsr(t, e, r); +} +var Hsr = Xsr; +function Zsr(t, e) { var r = -1, n = t.length; for (e || (e = Array(n)); ++r < n; ) e[r] = t[r]; return e; } -var Hsr = Xsr; -function Zsr(t) { - return zE(t) ? Jve(t, rB) : zw(t) ? [t] : Hsr(Kve(tye(t))); +var jsr = Zsr; +function Ksr(t) { + return zE(t) ? Jve(t, rB) : zw(t) ? [t] : jsr(Kve(tye(t))); } -var jsr = Zsr, Ksr = { +var Jsr = Ksr, ear = { data: function(e) { var r = { field: "data", @@ -100561,10 +100567,10 @@ var jsr = Zsr, Ksr = { return e = ur({}, r, e), function(i, s) { var a = e, o = this, l = o.length !== void 0, u = l ? o : [o], h = l ? o[0] : o; if (Kt(i)) { - var f = i.indexOf(".") !== -1, d = f && jsr(i); + var f = i.indexOf(".") !== -1, d = f && Jsr(i); if (a.allowGetting && s === void 0) { var p; - return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = Msr(h._private[a.field], d) : p = h._private[a.field][i]), p; + return h && (a.beforeGet(h), d && h._private[a.field][i] === void 0 ? p = Psr(h._private[a.field], d) : p = h._private[a.field][i]), p; } else if (a.allowSetting && s !== void 0) { var g = !a.immutableKeys[i]; if (g) { @@ -100572,7 +100578,7 @@ var jsr = Zsr, Ksr = { a.beforeSet(o, m); for (var v = 0, y = u.length; v < y; v++) { var b = u[v]; - a.canSet(b) && (d && h._private[a.field][i] === void 0 ? Gsr(b._private[a.field], d, s) : b._private[a.field][i] = s); + a.canSet(b) && (d && h._private[a.field][i] === void 0 ? Hsr(b._private[a.field], d, s) : b._private[a.field][i] = s); } a.updateStyle && o.updateStyle(), a.onSet(o), a.settingTriggersEvent && o[a.triggerFnName](a.settingEvent); } @@ -100632,7 +100638,7 @@ var jsr = Zsr, Ksr = { return a; }; } -}, Jsr = { +}, tar = { eventAliasesOn: function(e) { var r = e; r.addListener = r.listen = r.bind = r.on, r.unlisten = r.unbind = r.off = r.removeListener, r.trigger = r.emit, r.pon = r.promiseOn = function(n, i) { @@ -100646,10 +100652,10 @@ var jsr = Zsr, Ksr = { }; } }, Jr = {}; -[qnr, Ksr, Jsr].forEach(function(t) { +[Wnr, ear, tar].forEach(function(t) { ur(Jr, t); }); -var ear = { +var rar = { animate: Jr.animate(), animation: Jr.animation(), animated: Jr.animated(), @@ -100908,14 +100914,14 @@ var ln = function() { return !e.backgrounding(); } }].sort(function(t, e) { - return ftr(t.selector, e.selector); -}), tar = function() { + return ptr(t.selector, e.selector); +}), nar = function() { for (var t = {}, e, r = 0; r < hM.length; r++) e = hM[r], t[e.selector] = e.matches; return t; -}(), rar = function(e, r) { - return tar[e](r); -}, nar = "(" + hM.map(function(t) { +}(), iar = function(e, r) { + return nar[e](r); +}, sar = "(" + hM.map(function(t) { return t.selector; }).join("|") + ")", Zp = function(e) { return e.replace(new RegExp("\\\\(" + Fr.metaChar + ")", "g"), function(r, n) { @@ -100937,7 +100943,7 @@ var ln = function() { }, { name: "state", query: !0, - regex: nar, + regex: sar, populate: function(e, r, n) { var i = Dl(n, 1), s = i[0]; r.checks.push({ @@ -101156,7 +101162,7 @@ var ln = function() { fM.forEach(function(t) { return t.regexObj = new RegExp("^" + t.regex); }); -var iar = function(e) { +var aar = function(e) { for (var r, n, i, s = 0; s < fM.length; s++) { var a = fM[s], o = a.name, l = e.match(a.regexObj); if (l != null) { @@ -101172,17 +101178,17 @@ var iar = function(e) { name: i, remaining: e }; -}, sar = function(e) { +}, oar = function(e) { var r = e.match(/^\s+/); if (r) { var n = r[0]; e = e.substring(n.length); } return e; -}, aar = function(e) { +}, lar = function(e) { var r = this, n = r.inputText = e, i = r[0] = ln(); - for (r.length = 1, n = sar(n); ; ) { - var s = iar(n); + for (r.length = 1, n = oar(n); ; ) { + var s = aar(n); if (s.expr == null) return rn("The selector `" + e + "`is invalid"), !1; var a = s.match.slice(1), o = s.expr.populate(r, i, a); @@ -101202,7 +101208,7 @@ var iar = function(e) { h.edgeCount === 1 && rn("The selector `" + e + "` is deprecated. Edge selectors do not take effect on changes to source and target nodes after an edge is added, for performance reasons. Use a class or data selector on edges instead, updating the class or data of an edge when your app detects a change in source or target nodes."); } return !0; -}, oar = function() { +}, car = function() { if (this.toStringCache != null) return this.toStringCache; for (var e = function(h) { @@ -101262,9 +101268,9 @@ var iar = function(e) { a += s(l, l.subject), this.length > 1 && o < this.length - 1 && (a += ", "); } return this.toStringCache = a, a; -}, lar = { - parse: aar, - toString: oar +}, uar = { + parse: lar, + toString: car }, nye = function(e, r, n) { var i, s = Kt(e), a = Lt(e), o = Kt(n), l, u, h = !1, f = !1, d = !1; switch (r.indexOf("!") >= 0 && (r = r.replace("!", ""), f = !0), r.indexOf("@") >= 0 && (r = r.replace("@", ""), h = !0), (s || o || h) && (l = !s && !a ? "" : "" + e, u = "" + n), h && (e = l = l.toLowerCase(), n = u = u.toLowerCase()), r) { @@ -101297,7 +101303,7 @@ var iar = function(e) { break; } return f && (e != null || !d) && (i = !i), i; -}, car = function(e, r) { +}, har = function(e, r) { switch (r) { case "?": return !!e; @@ -101306,11 +101312,11 @@ var iar = function(e) { case "^": return e === void 0; } -}, uar = function(e) { +}, far = function(e) { return e !== void 0; }, nB = function(e, r) { return e.data(r); -}, har = function(e, r) { +}, dar = function(e, r) { return e[r](); }, si = [], Nn = function(e, r) { return e.checks.every(function(n) { @@ -101323,7 +101329,7 @@ si[Qt.GROUP] = function(t, e) { }; si[Qt.STATE] = function(t, e) { var r = t.value; - return rar(r, e); + return iar(r, e); }; si[Qt.ID] = function(t, e) { var r = t.value; @@ -101335,7 +101341,7 @@ si[Qt.CLASS] = function(t, e) { }; si[Qt.META_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; - return nye(har(e, r), n, i); + return nye(dar(e, r), n, i); }; si[Qt.DATA_COMPARE] = function(t, e) { var r = t.field, n = t.operator, i = t.value; @@ -101343,11 +101349,11 @@ si[Qt.DATA_COMPARE] = function(t, e) { }; si[Qt.DATA_BOOL] = function(t, e) { var r = t.field, n = t.operator; - return car(nB(e, r), n); + return har(nB(e, r), n); }; si[Qt.DATA_EXIST] = function(t, e) { var r = t.field; - return t.operator, uar(nB(e, r)); + return t.operator, far(nB(e, r)); }; si[Qt.UNDIRECTED_EDGE] = function(t, e) { var r = t.nodes[0], n = t.nodes[1], i = e.source(), s = e.target(); @@ -101403,7 +101409,7 @@ si[Qt.FILTER] = function(t, e) { var r = t.value; return r(e); }; -var far = function(e) { +var par = function(e) { var r = this; if (r.length === 1 && r[0].checks.length === 1 && r[0].checks[0].type === Qt.ID) return e.getElementById(r[0].checks[0].value).collection(); @@ -101418,16 +101424,16 @@ var far = function(e) { return r.text() == null && (n = function() { return !0; }), e.filter(n); -}, dar = function(e) { +}, gar = function(e) { for (var r = this, n = 0; n < r.length; n++) { var i = r[n]; if (Nn(i, e)) return !0; } return !1; -}, par = { - matches: dar, - filter: far +}, mar = { + matches: gar, + filter: par }, ld = function(e) { this.inputText = e, this.currentSubject = null, this.compoundCount = 0, this.edgeCount = 0, this.length = 0, e == null || Kt(e) && e.match(/^\s*$/) || (Ro(e) ? this.addQuery({ checks: [{ @@ -101441,7 +101447,7 @@ var far = function(e) { }] }) : Kt(e) ? this.parse(e) || (this.invalid = !0) : ii("A selector must be created from a string; found ")); }, cd = ld.prototype; -[lar, par].forEach(function(t) { +[uar, mar].forEach(function(t) { return ur(cd, t); }); cd.text = function() { @@ -101643,12 +101649,12 @@ d1.forEachUp = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; return iB(this, t, e, sye); }; -function gar(t, e, r) { +function yar(t, e, r) { sye(t, e, r), iye(t, e, r); } d1.forEachUpAndDown = function(t) { var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0; - return iB(this, t, e, gar); + return iB(this, t, e, yar); }; d1.ancestors = d1.parents; var Ub, aye; @@ -101720,7 +101726,7 @@ Ub = aye = { }; Ub.attr = Ub.data; Ub.removeAttr = Ub.removeData; -var mar = aye, VE = {}; +var bar = aye, VE = {}; function c7(t) { return function(e) { var r = this; @@ -101928,7 +101934,7 @@ Kl.modelPosition = Kl.point = Kl.position; Kl.modelPositions = Kl.points = Kl.positions; Kl.renderedPoint = Kl.renderedPosition; Kl.relativePoint = Kl.relativePosition; -var yar = oye, tm, wd; +var xar = oye, tm, wd; tm = wd = {}; wd.renderedBoundingBox = function(t) { var e = this.boundingBox(t), r = this.cy(), n = r.zoom(), i = r.pan(), s = e.x1 * n + i.x, a = e.x2 * n + i.x, o = e.y1 * n + i.y, l = e.y2 * n + i.y; @@ -102109,7 +102115,7 @@ var Xo = function(e) { } return e; } -}, bar = function(e, r) { +}, war = function(e, r) { if (!r.cy().headless()) { var n = r.pstyle("outline-opacity").value, i = r.pstyle("outline-width").value; if (n > 0 && i > 0) { @@ -102117,12 +102123,12 @@ var Xo = function(e) { ["diamond", "pentagon", "round-triangle"].includes(a) ? (l = (e.w + o * 2.4) / e.w, f = -o / 3.6) : ["concave-hexagon", "rhomboid", "right-rhomboid"].includes(a) ? l = (e.w + o * 2.4) / e.w : a === "star" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.6) / e.h, f = -o / 3.8) : a === "triangle" ? (l = (e.w + o * 2.8) / e.w, u = (e.h + o * 2.4) / e.h, f = -o / 1.4) : a === "vee" && (l = (e.w + o * 4.4) / e.w, u = (e.h + o * 3.8) / e.h, f = -o * 0.5); var d = e.h * u - e.h, p = e.w * l - e.w; if (ek(e, [Math.ceil(d / 2), Math.ceil(p / 2)]), h != 0 || f !== 0) { - var g = Frr(e, h, f); + var g = Qrr(e, h, f); Ive(e, g); } } } -}, xar = function(e, r) { +}, Oar = function(e, r) { var n = e._private.cy, i = n.styleEnabled(), s = n.headless(), a = lo(), o = e._private, l = e.isNode(), u = e.isEdge(), h, f, d, p, g, m, v = o.rstyle, y = l && i ? e.pstyle("bounds-expansion").pfValue : [0], b = function(Me) { return Me.pstyle("display").value !== "none"; }, w = !i || b(e) && (!u || b(e.source()) && b(e.target())); @@ -102136,7 +102142,7 @@ var Xo = function(e) { var _ = e.position(); g = _.x, m = _.y; var L = e.outerWidth(), $ = L / 2, k = e.outerHeight(), N = k / 2; - h = g - $, f = g + $, d = m - N, p = m + N, Nl(a, h, d, f, p), i && r.includeOutlines && bar(a, e); + h = g - $, f = g + $, d = m - N, p = m + N, Nl(a, h, d, f, p), i && r.includeOutlines && war(a, e); } else if (u && r.includeEdges) if (i && !s) { var M = e.pstyle("curve-style").strValue; @@ -102197,7 +102203,7 @@ var Xo = function(e) { var oe = o.overlayBounds = o.overlayBounds || {}; nZ(oe, a), ek(oe, y), J5(oe, 1); var ae = o.labelBounds = o.labelBounds || {}; - ae.all != null ? Brr(ae.all) : ae.all = lo(), i && r.includeLabels && (r.includeMainLabels && u7(a, e, null), u && (r.includeSourceLabels && u7(a, e, "source"), r.includeTargetLabels && u7(a, e, "target"))); + ae.all != null ? zrr(ae.all) : ae.all = lo(), i && r.includeLabels && (r.includeMainLabels && u7(a, e, null), u && (r.includeSourceLabels && u7(a, e, "source"), r.includeTargetLabels && u7(a, e, "target"))); } return a.x1 = Xo(a.x1), a.y1 = Xo(a.y1), a.x2 = Xo(a.x2), a.y2 = Xo(a.y2), a.w = Xo(a.x2 - a.x1), a.h = Xo(a.y2 - a.y1), a.w > 0 && a.h > 0 && w && (ek(a, y), J5(a, 1)), a; }, cye = function(e) { @@ -102210,14 +102216,14 @@ var Xo = function(e) { var r = e.source().position(), n = e.target().position(), i = function(a) { return Math.round(a); }; - return srr([i(r.x), i(r.y), i(n.x), i(n.y)]); + return orr([i(r.x), i(r.y), i(n.x), i(n.y)]); } else return 0; }, TZ = function(e, r) { var n = e._private, i, s = e.isEdge(), a = r == null ? CZ : cye(r), o = a === CZ, l = uye(e), u = n.bbCachePosKey === l, h = r.useCache && u, f = function(m) { return m._private.bbCache == null || m._private.styleDirty; }, d = !h || f(e) || s && f(e.source()) || f(e.target()); - if (d ? (u || e.recalculateRenderedStyle(h), i = xar(e, Vb), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { + if (d ? (u || e.recalculateRenderedStyle(h), i = Oar(e, Vb), n.bbCache = i, n.bbCachePosKey = l) : i = n.bbCache, !o) { var p = e.isNode(); i = lo(), (r.includeNodes && p || r.includeEdges && !p) && (r.includeOverlays ? Qd(i, n.overlayBounds) : Qd(i, n.bodyBounds)), r.includeLabels && (r.includeMainLabels && (!s || r.includeSourceLabels && r.includeTargetLabels) ? Qd(i, n.labelBounds.all) : (r.includeMainLabels && Qd(i, n.labelBounds.mainRot), r.includeSourceLabels && Qd(i, n.labelBounds.sourceRot), r.includeTargetLabels && Qd(i, n.labelBounds.targetRot))), i.w = i.x2 - i.x1, i.h = i.y2 - i.y1; } @@ -102277,14 +102283,14 @@ wd.boundingBoxAt = function(t) { return h._private.bbAtOldPos; }; r.startBatch(), e.forEach(a).silentPositions(t), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)); - var l = $rr(this.boundingBox({ + var l = Frr(this.boundingBox({ useCache: !1 })); return e.silentPositions(o), n && (i.dirtyCompoundBoundsCache(), i.dirtyBoundingBoxCache(), i.updateCompoundBounds(!0)), r.endBatch(), l; }; tm.boundingbox = tm.bb = tm.boundingBox; tm.renderedBoundingbox = tm.renderedBoundingBox; -var war = wd, Ey, Uw; +var kar = wd, Ey, Uw; Ey = Uw = {}; var hye = function(e) { e.uppercaseName = ZH(e.name), e.autoName = "auto" + e.uppercaseName, e.labelName = "label" + e.uppercaseName, e.outerName = "outer" + e.uppercaseName, e.uppercaseOuterName = ZH(e.outerName), Ey[e.name] = function() { @@ -102342,61 +102348,61 @@ Uw.paddedWidth = function() { var t = this[0]; return t.width() + 2 * t.padding(); }; -var Oar = Uw, kar = function(e, r) { +var Sar = Uw, Tar = function(e, r) { if (e.isEdge()) return r(e); -}, Sar = function(e, r) { +}, Car = function(e, r) { if (e.isEdge()) { var n = e.cy(); return BE(r(e), n.zoom(), n.pan()); } -}, Tar = function(e, r) { +}, Ear = function(e, r) { if (e.isEdge()) { var n = e.cy(), i = n.pan(), s = n.zoom(); return r(e).map(function(a) { return BE(a, s, i); }); } -}, Car = function(e) { +}, _ar = function(e) { return e.renderer().getControlPoints(e); -}, Ear = function(e) { +}, Aar = function(e) { return e.renderer().getSegmentPoints(e); -}, _ar = function(e) { +}, Lar = function(e) { return e.renderer().getSourceEndpoint(e); -}, Aar = function(e) { +}, Rar = function(e) { return e.renderer().getTargetEndpoint(e); -}, Lar = function(e) { +}, Mar = function(e) { return e.renderer().getEdgeMidpoint(e); }, _Z = { controlPoints: { - get: Car, + get: _ar, mult: !0 }, segmentPoints: { - get: Ear, + get: Aar, mult: !0 }, sourceEndpoint: { - get: _ar + get: Lar }, targetEndpoint: { - get: Aar + get: Rar }, midpoint: { - get: Lar + get: Mar } -}, Rar = function(e) { +}, Dar = function(e) { return "rendered" + e[0].toUpperCase() + e.substr(1); -}, Mar = Object.keys(_Z).reduce(function(t, e) { - var r = _Z[e], n = Rar(e); +}, Par = Object.keys(_Z).reduce(function(t, e) { + var r = _Z[e], n = Dar(e); return t[e] = function() { - return kar(this, r.get); - }, r.mult ? t[n] = function() { return Tar(this, r.get); + }, r.mult ? t[n] = function() { + return Ear(this, r.get); } : t[n] = function() { - return Sar(this, r.get); + return Car(this, r.get); }, t; -}, {}), Dar = ur({}, yar, war, Oar, Mar); +}, {}), Nar = ur({}, xar, kar, Sar, Par); /*! Event object based on jQuery events, MIT license @@ -102444,7 +102450,7 @@ fye.prototype = { isPropagationStopped: Zv, isImmediatePropagationStopped: Zv }; -var dye = /^([^.]+)(\.(?:[^.]+))?$/, Par = ".*", pye = { +var dye = /^([^.]+)(\.(?:[^.]+))?$/, Iar = ".*", pye = { qualifierCompare: function(e, r) { return e === r; }, @@ -102467,9 +102473,9 @@ var dye = /^([^.]+)(\.(?:[^.]+))?$/, Par = ".*", pye = { return null; }, context: null -}, AZ = Object.keys(pye), Nar = {}; +}, AZ = Object.keys(pye), $ar = {}; function qE() { - for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Nar, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < AZ.length; r++) { + for (var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $ar, e = arguments.length > 1 ? arguments[1] : void 0, r = 0; r < AZ.length; r++) { var n = AZ[r]; this[n] = t[n] || pye[n]; } @@ -102490,8 +102496,8 @@ var ud = qE.prototype, gye = function(e, r, n, i, s, a, o) { } }, LZ = function(e, r) { return e.addEventFields(e.context, r), new fye(r.type, r); -}, Iar = function(e, r, n) { - if (ttr(n)) { +}, Bar = function(e, r, n) { + if (ntr(n)) { r(e, n); return; } else if (zr(n)) { @@ -102532,7 +102538,7 @@ ud.one = function(t, e, r, n) { }; ud.removeListener = ud.off = function(t, e, r, n) { var i = this; - this.emitting !== 0 && (this.listeners = urr(this.listeners)); + this.emitting !== 0 && (this.listeners = frr(this.listeners)); for (var s = this.listeners, a = function(u) { var h = s[u]; gye(i, function(f, d, p, g, m, v) { @@ -102548,7 +102554,7 @@ ud.removeAllListeners = function() { }; ud.emit = ud.trigger = function(t, e, r) { var n = this.listeners, i = n.length; - return this.emitting++, vn(e) || (e = [e]), Iar(this, function(s, a) { + return this.emitting++, vn(e) || (e = [e]), Bar(this, function(s, a) { r != null && (n = [{ event: a.event, type: a.type, @@ -102557,9 +102563,9 @@ ud.emit = ud.trigger = function(t, e, r) { }], i = n.length); for (var o = function(h) { var f = n[h]; - if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === Par) && s.eventMatches(s.context, f, a)) { + if (f.type === a.type && (!f.namespace || f.namespace === a.namespace || f.namespace === Iar) && s.eventMatches(s.context, f, a)) { var d = [a]; - e != null && frr(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { + e != null && prr(d, e), s.beforeEmit(s.context, f, a), f.conf && f.conf.one && (s.listeners = s.listeners.filter(function(m) { return m !== f; })); var p = s.callbackContext(s.context, f, a), g = f.callback.apply(p, d); @@ -102570,7 +102576,7 @@ ud.emit = ud.trigger = function(t, e, r) { s.bubble(s.context) && !a.isPropagationStopped() && s.parent(s.context).emit(a, e); }, t), this.emitting--, this; }; -var $ar = { +var Far = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -102599,7 +102605,7 @@ var $ar = { createEmitter: function() { for (var e = 0; e < this.length; e++) { var r = this[e], n = r._private; - n.emitter || (n.emitter = new qE($ar, r)); + n.emitter || (n.emitter = new qE(Far, r)); } return this; }, @@ -102856,7 +102862,7 @@ Vr.n = Vr["&"] = Vr["."] = Vr.and = Vr.intersection = Vr.intersect; Vr["^"] = Vr["(+)"] = Vr["(-)"] = Vr.symmetricDifference = Vr.symdiff = Vr.xor; Vr.fnFilter = Vr.filterFn = Vr.stdFilter = Vr.filter; Vr.complement = Vr.abscomp = Vr.absoluteComplement; -var Bar = { +var zar = { isNode: function() { return this.group() === "nodes"; }, @@ -102956,7 +102962,7 @@ var Bar = { } }; uT.each = uT.forEach; -var Far = function() { +var Qar = function() { var e = "undefined", r = (typeof Symbol > "u" ? "undefined" : Zi(Symbol)) != e && Zi(Symbol.iterator) != e; r && (uT[Symbol.iterator] = function() { var n = this, i = { @@ -102972,12 +102978,12 @@ var Far = function() { }); }); }; -Far(); -var zar = $s({ +Qar(); +var Uar = $s({ nodeDimensionsIncludeLabels: !1 }), rk = { layoutDimensions: function(e) { - e = zar(e); + e = Uar(e); var r; if (!this.takesUpSpace()) r = { @@ -103024,7 +103030,7 @@ var zar = $s({ return null; for (var C = lo(), T = 0; T < i.length; T++) { var A = i[T], E = l(A, T); - zrr(C, E.x, E.y); + Urr(C, E.x, E.y); } return C; }, d = f(), p = Nb(function(S, C) { @@ -103300,14 +103306,14 @@ var sv = YE("eleTakesUpSpace", function(t) { _s.takesUpSpace = WE("takesUpSpace", sB({ ok: sv })); -var Qar = YE("eleInteractive", function(t) { +var Var = YE("eleInteractive", function(t) { return t.pstyle("events").value === "yes" && t.pstyle("visibility").value === "visible" && sv(t); -}), Uar = YE("parentInteractive", function(t) { +}), qar = YE("parentInteractive", function(t) { return t.pstyle("visibility").value === "visible" && sv(t); }); _s.interactive = WE("interactive", sB({ - ok: Qar, - parentOk: Uar, + ok: Var, + parentOk: qar, edgeOkViaNode: sv })); _s.noninteractive = function() { @@ -103315,12 +103321,12 @@ _s.noninteractive = function() { if (t) return !t.interactive(); }; -var Var = YE("eleVisible", function(t) { +var Yar = YE("eleVisible", function(t) { return t.pstyle("visibility").value === "visible" && t.pstyle("opacity").pfValue !== 0 && sv(t); -}), qar = sv; +}), War = sv; _s.visible = WE("visible", sB({ - ok: Var, - edgeOkViaNode: qar + ok: Yar, + edgeOkViaNode: War })); _s.hidden = function() { var t = this[0]; @@ -103987,10 +103993,10 @@ En.move = function(t) { } return this; }; -[Yve, ear, tk, Lf, d1, mar, VE, Dar, mye, vye, Bar, uT, rk, _s, Rf, na].forEach(function(t) { +[Yve, rar, tk, Lf, d1, bar, VE, Nar, mye, vye, zar, uT, rk, _s, Rf, na].forEach(function(t) { ur(En, t); }); -var Yar = { +var Gar = { add: function(e) { var r, n = this; if (Ro(e)) { @@ -104036,7 +104042,7 @@ var Yar = { } }; /*! Bezier curve function generator. Copyright Gaetan Renaudeau. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -function War(t, e, r, n) { +function Xar(t, e, r, n) { var i = 4, s = 1e-3, a = 1e-7, o = 10, l = 11, u = 1 / (l - 1), h = typeof Float32Array < "u"; if (arguments.length !== 4) return !1; @@ -104110,7 +104116,7 @@ function War(t, e, r, n) { }, A; } /*! Runge-Kutta spring physics function generator. Adapted from Framer.js, copyright Koen Bok. MIT License: http://en.wikipedia.org/wiki/MIT_License */ -var Gar = function() { +var Har = function() { function t(n) { return -n.tension * n.x - n.friction * n.v; } @@ -104147,7 +104153,7 @@ var Gar = function() { } : u; }; }(), wn = function(e, r, n, i) { - var s = War(e, r, n, i); + var s = Xar(e, r, n, i); return function(a, o, l) { return a + (o - a) * s(l); }; @@ -104183,7 +104189,7 @@ var Gar = function() { spring: function(e, r, n) { if (n === 0) return nk.linear; - var i = Gar(e, r, n); + var i = Har(e, r, n); return function(s, a, o) { return s + (a - s) * i(o); }; @@ -104217,7 +104223,7 @@ function Kp(t, e, r, n, i) { return l; } } -function Xar(t, e, r, n) { +function Zar(t, e, r, n) { var i = !n, s = t._private, a = e._private, o = a.easing, l = a.startTime, u = n ? t : t.cy(), h = u.style(); if (!a.easingImpl) if (o == null) @@ -104259,7 +104265,7 @@ function Xar(t, e, r, n) { function jv(t, e) { return t == null || e == null ? !1 : Lt(t) && Lt(e) ? !0 : !!(t && e); } -function Har(t, e, r, n) { +function jar(t, e, r, n) { var i = e._private; i.started = !0, i.startTime = r - i.progress * i.duration; } @@ -104283,7 +104289,7 @@ function zZ(t, e) { p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.frames); continue; } - !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || Har(h, w, t), Xar(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); + !O.playing && !O.applying || (O.playing && O.applying && (O.applying = !1), O.started || jar(h, w, t), Zar(h, w, t, f), O.applying && (O.applying = !1), y(O.frames), O.step != null && O.step(t), w.completed() && (p.splice(b, 1), O.hooked = !1, O.playing = !1, O.started = !1, y(O.completes)), m = !0); } return !f && p.length === 0 && g.length === 0 && n.push(h), m; } @@ -104294,7 +104300,7 @@ function zZ(t, e) { var u = i(e, !0); (s || u) && (r.length > 0 ? e.notify("draw", r) : e.notify("draw")), r.unmerge(n), e.emit("step"); } -var Zar = { +var Kar = { animate: Jr.animate(), animation: Jr.animation(), animated: Jr.animated(), @@ -104323,7 +104329,7 @@ var Zar = { zZ(a, e); }, n.beforeRenderPriorities.animations) : r(); } -}, jar = { +}, Jar = { qualifierCompare: function(e, r) { return e == null || r == null ? e == null && r == null : e.sameText(r); }, @@ -104342,7 +104348,7 @@ var Zar = { }, xye = { createEmitter: function() { var e = this._private; - return e.emitter || (e.emitter = new qE(jar, this)), this; + return e.emitter || (e.emitter = new qE(Jar, this)), this; }, emitter: function() { return this._private.emitter; @@ -104407,7 +104413,7 @@ var ik = { } }; ik.createLayout = ik.makeLayout = ik.layout; -var Kar = { +var eor = { notify: function(e, r) { var n = this._private; if (this.batching()) { @@ -104461,7 +104467,7 @@ var Kar = { } }); } -}, Jar = $s({ +}, tor = $s({ hideEdgesOnViewport: !1, textureOnViewport: !1, motionBlur: !1, @@ -104493,7 +104499,7 @@ var Kar = { return; } e.wheelSensitivity !== void 0 && rn("You have set a custom wheel sensitivity. This will make your app zoom unnaturally when using mainstream mice. You should change this value from the default only if you can guarantee that all your users will use the same hardware and OS configuration as your current machine."); - var i = Jar(e); + var i = tor(e); i.cy = r, r._private.renderer = new n(i), this.notify("init"); }, destroyRenderer: function() { @@ -104541,7 +104547,7 @@ var sk = { } }; sk.elements = sk.filter = sk.$; -var ua = {}, i2 = "t", eor = "f"; +var ua = {}, i2 = "t", ror = "f"; ua.apply = function(t) { for (var e = this, r = e._private, n = r.cy, i = n.collection(), s = 0; s < t.length; s++) { var a = t[s], o = e.getContextMeta(a); @@ -104578,7 +104584,7 @@ ua.getPropertiesDiff = function(t, e) { ua.getContextMeta = function(t) { for (var e = this, r = "", n, i = t._private.styleCxtKey || "", s = 0; s < e.length; s++) { var a = e[s], o = a.selector && a.selector.matches(t); - o ? r += i2 : r += eor; + o ? r += i2 : r += ror; } return n = e.getPropertiesDiff(i, r), t._private.styleCxtKey = r, { key: r, @@ -104676,7 +104682,7 @@ ua.updateStyleHints = function(t) { var M = i[N], D = e.styleKeys[M]; k[0] = Ib(D[0], k[0]), k[1] = $b(D[1], k[1]); } - e.styleKey = irr(k[0], k[1]); + e.styleKey = arr(k[0], k[1]); var P = e.styleKeys; e.labelDimsKey = Yh(P.labelDimensions); var I = s(t, ["label"], P.labelDimensions); @@ -105092,7 +105098,7 @@ oB.fromString = function(t) { }; var vs = {}; (function() { - var t = Vi, e = otr, r = ctr, n = utr, i = htr, s = function(U) { + var t = Vi, e = ctr, r = htr, n = ftr, i = dtr, s = function(U) { return "^" + U + "\\s*\\(\\s*([\\w\\.]+)\\s*\\)$"; }, a = function(U) { var Z = t + "|\\w+|" + e + "|" + r + "|" + n + "|" + i; @@ -106542,7 +106548,7 @@ XE.parseImpl = function(t, e, r, n) { return null; if (isNaN(e) && u.enums !== void 0) return e = a, _(); - if (u.integer && !etr(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) + if (u.integer && !rtr(e) || u.min !== void 0 && (e < u.min || u.strictMin && e === u.min) || u.max !== void 0 && (e > u.max || u.strictMax && e === u.max)) return null; var M = { name: t, @@ -106551,7 +106557,7 @@ XE.parseImpl = function(t, e, r, n) { units: L, bypass: r }; - return u.unitless || L !== "px" && L !== "em" ? M.pfValue = e : M.pfValue = L === "px" || !L ? e : this.getEmSizeInPixels() * e, (L === "ms" || L === "s") && (M.pfValue = L === "ms" ? e : 1e3 * e), (L === "deg" || L === "rad") && (M.pfValue = L === "rad" ? e : Prr(e)), L === "%" && (M.pfValue = e / 100), M; + return u.unitless || L !== "px" && L !== "em" ? M.pfValue = e : M.pfValue = L === "px" || !L ? e : this.getEmSizeInPixels() * e, (L === "ms" || L === "s") && (M.pfValue = L === "ms" ? e : 1e3 * e), (L === "deg" || L === "rad") && (M.pfValue = L === "rad" ? e : Irr(e)), L === "%" && (M.pfValue = e / 100), M; } else if (u.propList) { var D = [], P = "" + e; if (P !== "none") { @@ -106569,7 +106575,7 @@ XE.parseImpl = function(t, e, r, n) { bypass: r }; } else if (u.color) { - var Q = vtr(e); + var Q = btr(e); return Q ? { name: t, value: Q, @@ -106680,7 +106686,7 @@ ra.properties = ia.properties; ra.propertyGroups = ia.propertyGroups; ra.propertyGroupNames = ia.propertyGroupNames; ra.propertyGroupKeys = ia.propertyGroupKeys; -var tor = { +var nor = { style: function(e) { if (e) { var r = this.setStyle(e); @@ -106695,7 +106701,7 @@ var tor = { updateStyle: function() { this.mutableElements().updateStyle(); } -}, ror = "single", up = { +}, ior = "single", up = { autolock: function(e) { if (e !== void 0) this._private.autolock = !!e; @@ -106719,7 +106725,7 @@ var tor = { }, selectionType: function(e) { var r = this._private; - if (r.selectionType == null && (r.selectionType = ror), e !== void 0) + if (r.selectionType == null && (r.selectionType = ior), e !== void 0) (e === "additive" || e === "single") && (r.selectionType = e); else return r.selectionType; @@ -106810,7 +106816,7 @@ var tor = { if (Kt(e)) { var i = e; e = this.$(i); - } else if (ntr(e)) { + } else if (str(e)) { var s = e; n = { x1: s.x1, @@ -107084,7 +107090,7 @@ var Yb = function(e) { max: o.maxZoom }); var h = function(g, m) { - var v = g.some(itr); + var v = g.some(atr); if (v) return tv.all(g).then(m); m(g); @@ -107246,10 +107252,10 @@ ur(hT, { } }); hT.$id = hT.getElementById; -[Yar, Zar, xye, dM, ik, Kar, pM, sk, tor, up, qb].forEach(function(t) { +[Gar, Kar, xye, dM, ik, eor, pM, sk, nor, up, qb].forEach(function(t) { ur(hT, t); }); -var nor = { +var sor = { fit: !0, directed: !1, padding: 30, @@ -107272,7 +107278,7 @@ var nor = { transform: function(e, r) { return r; } -}, ior = { +}, aor = { maximal: !1, acyclic: !1 }, Jp = function(e) { @@ -107281,7 +107287,7 @@ var nor = { return e.scratch("breadthfirst", r); }; function wye(t) { - this.options = ur({}, nor, ior, t); + this.options = ur({}, sor, aor, t); } wye.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().filter(function(ae) { @@ -107447,7 +107453,7 @@ wye.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, oe), this; }; -var sor = { +var oor = { fit: !0, padding: 30, boundingBox: void 0, @@ -107472,7 +107478,7 @@ var sor = { } }; function Oye(t) { - this.options = ur({}, sor, t); + this.options = ur({}, oor, t); } Oye.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, s = n.nodes().not(":parent"); @@ -107503,7 +107509,7 @@ Oye.prototype.run = function() { }; return n.nodes().layoutPositions(this, e, O), this; }; -var aor = { +var lor = { fit: !0, padding: 30, startAngle: 3 / 2 * Math.PI, @@ -107536,7 +107542,7 @@ var aor = { } }; function kye(t) { - this.options = ur({}, aor, t); + this.options = ur({}, lor, t); } kye.prototype.run = function() { for (var t = this.options, e = t, r = e.counterclockwise !== void 0 ? !e.counterclockwise : e.clockwise, n = t.cy, i = e.eles, s = i.nodes().not(":parent"), a = lo(e.boundingBox ? e.boundingBox : { @@ -107607,7 +107613,7 @@ kye.prototype.run = function() { return ee[J]; }), this; }; -var f7, oor = { +var f7, cor = { ready: function() { }, stop: function() { @@ -107644,7 +107650,7 @@ var f7, oor = { minTemp: 1 }; function HE(t) { - this.options = ur({}, oor, t), this.options.layout = this; + this.options = ur({}, cor, t), this.options.layout = this; var e = this.options.eles.nodes(), r = this.options.eles.edges(), n = r.filter(function(i) { var s = i.source().data("id"), a = i.target().data("id"), o = e.some(function(u) { return u.data("id") === s; @@ -107661,12 +107667,12 @@ HE.prototype.run = function() { type: "layoutstart", layout: r }), t.debug === !0 ? f7 = !0 : f7 = !1; - var n = lor(e, r, t); - f7 && hor(n), t.randomize && dor(n); + var n = uor(e, r, t); + f7 && por(n), t.randomize && gor(n); var i = Ch(), s = function() { - por(n, e, t), t.fit === !0 && e.fit(t.padding); + mor(n, e, t), t.fit === !0 && e.fit(t.padding); }, a = function(d) { - return !(r.stopped || d >= t.numIter || (gor(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); + return !(r.stopped || d >= t.numIter || (vor(n, t), n.temperature = n.temperature * t.coolingFactor, n.temperature < t.minTemp)); }, o = function() { if (t.animate === !0 || t.animate === !1) s(), r.one("layoutstop", t.stop), r.emit({ @@ -107703,7 +107709,7 @@ HE.prototype.stop = function() { HE.prototype.destroy = function() { return this.thread && this.thread.stop(), this; }; -var lor = function(e, r, n) { +var uor = function(e, r, n) { for (var i = n.eles.edges(), s = n.eles.nodes(), a = lo(n.boundingBox ? n.boundingBox : { x1: 0, y1: 0, @@ -107753,7 +107759,7 @@ var lor = function(e, r, n) { L.id = _.data("id"), L.sourceId = _.data("source"), L.targetId = _.data("target"); var $ = Gn(n.idealEdgeLength) ? n.idealEdgeLength(_) : n.idealEdgeLength, k = Gn(n.edgeElasticity) ? n.edgeElasticity(_) : n.edgeElasticity, N = o.idToIndex[L.sourceId], M = o.idToIndex[L.targetId], D = o.indexToGraph[N], P = o.indexToGraph[M]; if (D != P) { - for (var I = cor(L.sourceId, L.targetId, o), F = o.graphSet[I], B = 0, v = o.layoutNodes[N]; F.indexOf(v.id) === -1; ) + for (var I = hor(L.sourceId, L.targetId, o), F = o.graphSet[I], B = 0, v = o.layoutNodes[N]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; for (v = o.layoutNodes[M]; F.indexOf(v.id) === -1; ) v = o.layoutNodes[o.idToIndex[v.parentId]], B++; @@ -107762,10 +107768,10 @@ var lor = function(e, r, n) { L.idealLength = $, L.elasticity = k, o.layoutEdges.push(L); } return o; -}, cor = function(e, r, n) { - var i = uor(e, r, 0, n); +}, hor = function(e, r, n) { + var i = dor(e, r, 0, n); return 2 > i.count ? 0 : i.graph; -}, uor = function t(e, r, n, i) { +}, dor = function t(e, r, n, i) { var s = i.graphSet[n]; if (-1 < s.indexOf(e) && -1 < s.indexOf(r)) return { @@ -107788,7 +107794,7 @@ var lor = function(e, r, n) { count: a, graph: n }; -}, hor, dor = function(e, r) { +}, por, gor = function(e, r) { for (var n = e.clientWidth, i = e.clientHeight, s = 0; s < e.nodeSize; s++) { var a = e.layoutNodes[s]; a.children.length === 0 && !a.isLocked && (a.positionX = Math.random() * n, a.positionY = Math.random() * i); @@ -107817,36 +107823,36 @@ var lor = function(e, r, n) { y: l.positionY }; }; -}, por = function(e, r, n) { +}, mor = function(e, r, n) { var i = n.layout, s = n.eles.nodes(), a = Sye(e, n, s); s.positions(a), e.ready !== !0 && (e.ready = !0, i.one("layoutready", n.ready), i.emit({ type: "layoutready", layout: this })); -}, gor = function(e, r, n) { - mor(e, r), bor(e), xor(e, r), wor(e), Oor(e); -}, mor = function(e, r) { +}, vor = function(e, r, n) { + yor(e, r), wor(e), Oor(e, r), kor(e), Sor(e); +}, yor = function(e, r) { for (var n = 0; n < e.graphSet.length; n++) for (var i = e.graphSet[n], s = i.length, a = 0; a < s; a++) for (var o = e.layoutNodes[e.idToIndex[i[a]]], l = a + 1; l < s; l++) { var u = e.layoutNodes[e.idToIndex[i[l]]]; - vor(o, u, e, r); + bor(o, u, e, r); } }, UZ = function(e) { return -e + 2 * e * Math.random(); -}, vor = function(e, r, n, i) { +}, bor = function(e, r, n, i) { var s = e.cmptId, a = r.cmptId; if (!(s !== a && !n.isCompound)) { var o = r.positionX - e.positionX, l = r.positionY - e.positionY, u = 1; o === 0 && l === 0 && (o = UZ(u), l = UZ(u)); - var h = yor(e, r, o, l); + var h = xor(e, r, o, l); if (h > 0) var f = i.nodeOverlap * h, d = Math.sqrt(o * o + l * l), p = f * o / d, g = f * l / d; else var m = fT(e, o, l), v = fT(r, -1 * o, -1 * l), y = v.x - m.x, b = v.y - m.y, w = y * y + b * b, d = Math.sqrt(w), f = (e.nodeRepulsion + r.nodeRepulsion) / w, p = f * y / d, g = f * b / d; e.isLocked || (e.offsetX -= p, e.offsetY -= g), r.isLocked || (r.offsetX += p, r.offsetY += g); } -}, yor = function(e, r, n, i) { +}, xor = function(e, r, n, i) { if (n > 0) var s = e.maxX - r.minX; else @@ -107859,7 +107865,7 @@ var lor = function(e, r, n) { }, fT = function(e, r, n) { var i = e.positionX, s = e.positionY, a = e.height || 1, o = e.width || 1, l = n / r, u = a / o, h = {}; return r === 0 && 0 < n || r === 0 && 0 > n ? (h.x = i, h.y = s + a / 2, h) : 0 < r && -1 * u <= l && l <= u ? (h.x = i + o / 2, h.y = s + o * n / 2 / r, h) : 0 > r && -1 * u <= l && l <= u ? (h.x = i - o / 2, h.y = s - o * n / 2 / r, h) : 0 < n && (l <= -1 * u || l >= u) ? (h.x = i + a * r / 2 / n, h.y = s + a / 2, h) : (0 > n && (l <= -1 * u || l >= u) && (h.x = i - a * r / 2 / n, h.y = s - a / 2), h); -}, bor = function(e, r) { +}, wor = function(e, r) { for (var n = 0; n < e.edgeSize; n++) { var i = e.layoutEdges[n], s = e.idToIndex[i.sourceId], a = e.layoutNodes[s], o = e.idToIndex[i.targetId], l = e.layoutNodes[o], u = l.positionX - a.positionX, h = l.positionY - a.positionY; if (!(u === 0 && h === 0)) { @@ -107871,7 +107877,7 @@ var lor = function(e, r, n) { a.isLocked || (a.offsetX += y, a.offsetY += b), l.isLocked || (l.offsetX -= y, l.offsetY -= b); } } -}, xor = function(e, r) { +}, Oor = function(e, r) { if (r.gravity !== 0) for (var n = 1, i = 0; i < e.graphSet.length; i++) { var s = e.graphSet[i], a = s.length; @@ -107890,7 +107896,7 @@ var lor = function(e, r, n) { } } } -}, wor = function(e, r) { +}, kor = function(e, r) { var n = [], i = 0, s = -1; for (n.push.apply(n, e.graphSet[0]), s += e.graphSet[0].length; i <= s; ) { var a = n[i++], o = e.idToIndex[a], l = e.layoutNodes[o], u = l.children; @@ -107902,7 +107908,7 @@ var lor = function(e, r, n) { l.offsetX = 0, l.offsetY = 0; } } -}, Oor = function(e, r) { +}, Sor = function(e, r) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && (i.maxX = void 0, i.minX = void 0, i.maxY = void 0, i.minY = void 0); @@ -107910,15 +107916,15 @@ var lor = function(e, r, n) { for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; if (!(0 < i.children.length || i.isLocked)) { - var s = kor(i.offsetX, i.offsetY, e.temperature); - i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, Sor(i, e); + var s = Tor(i.offsetX, i.offsetY, e.temperature); + i.positionX += s.x, i.positionY += s.y, i.offsetX = 0, i.offsetY = 0, i.minX = i.positionX - i.width, i.maxX = i.positionX + i.width, i.minY = i.positionY - i.height, i.maxY = i.positionY + i.height, Cor(i, e); } } for (var n = 0; n < e.nodeSize; n++) { var i = e.layoutNodes[n]; 0 < i.children.length && !i.isLocked && (i.positionX = (i.maxX + i.minX) / 2, i.positionY = (i.maxY + i.minY) / 2, i.width = i.maxX - i.minX, i.height = i.maxY - i.minY); } -}, kor = function(e, r, n) { +}, Tor = function(e, r, n) { var i = Math.sqrt(e * e + r * r); if (i > n) var s = { @@ -107931,7 +107937,7 @@ var lor = function(e, r, n) { y: r }; return s; -}, Sor = function t(e, r) { +}, Cor = function t(e, r) { var n = e.parentId; if (n != null) { var i = r.layoutNodes[r.idToIndex[n]], s = !1; @@ -107967,7 +107973,7 @@ var lor = function(e, r, n) { p += h.w + r.componentSpacing, m += h.w + r.componentSpacing, v = Math.max(v, h.h), m > y && (g += v + r.componentSpacing, p = 0, m = 0, v = 0); } } -}, Tor = { +}, Eor = { fit: !0, padding: 30, boundingBox: void 0, @@ -107994,7 +108000,7 @@ var lor = function(e, r, n) { } }; function Tye(t) { - this.options = ur({}, Tor, t); + this.options = ur({}, Eor, t); } Tye.prototype.run = function() { var t = this.options, e = t, r = t.cy, n = e.eles, i = n.nodes().not(":parent"); @@ -108089,14 +108095,14 @@ Tye.prototype.run = function() { } return this; }; -var Cor = { +var _or = { ready: function() { }, stop: function() { } }; function lB(t) { - this.options = ur({}, Cor, t); + this.options = ur({}, _or, t); } lB.prototype.run = function() { var t = this.options, e = t.eles, r = this; @@ -108110,7 +108116,7 @@ lB.prototype.run = function() { lB.prototype.stop = function() { return this; }; -var Eor = { +var Aor = { positions: void 0, zoom: void 0, pan: void 0, @@ -108130,13 +108136,13 @@ var Eor = { } }; function Cye(t) { - this.options = ur({}, Eor, t); + this.options = ur({}, Aor, t); } Cye.prototype.run = function() { var t = this.options, e = t.eles, r = e.nodes(), n = Gn(t.positions); function i(s) { if (t.positions == null) - return Arr(s.position()); + return Rrr(s.position()); if (n) return t.positions(s); var a = t.positions[s._private.data.id]; @@ -108147,7 +108153,7 @@ Cye.prototype.run = function() { return s.locked() || o == null ? !1 : o; }), this; }; -var _or = { +var Lor = { fit: !0, padding: 30, boundingBox: void 0, @@ -108164,7 +108170,7 @@ var _or = { } }; function Eye(t) { - this.options = ur({}, _or, t); + this.options = ur({}, Lor, t); } Eye.prototype.run = function() { var t = this.options, e = t.cy, r = t.eles, n = lo(t.boundingBox ? t.boundingBox : { @@ -108180,7 +108186,7 @@ Eye.prototype.run = function() { }; return r.nodes().layoutPositions(this, t, i), this; }; -var Aor = [{ +var Ror = [{ name: "breadthfirst", impl: wye }, { @@ -108438,11 +108444,11 @@ $p.findNearestElements = function(t, e, r, n) { var A = T._private, E = A.rscratch, R = T.pstyle("width").pfValue, _ = T.pstyle("arrow-scale").value, L = R / 2 + h, $ = L * L, k = L * 2, P = A.source, I = A.target, N; if (E.edgeType === "segments" || E.edgeType === "straight" || E.edgeType === "haystack") { for (var M = E.allpts, D = 0; D + 3 < M.length; D += 2) - if (Urr(t, e, M[D], M[D + 1], M[D + 2], M[D + 3], k) && $ > (N = Grr(t, e, M[D], M[D + 1], M[D + 2], M[D + 3]))) + if (qrr(t, e, M[D], M[D + 1], M[D + 2], M[D + 3], k) && $ > (N = Hrr(t, e, M[D], M[D + 1], M[D + 2], M[D + 3]))) return v(T, N), !0; } else if (E.edgeType === "bezier" || E.edgeType === "multibezier" || E.edgeType === "self" || E.edgeType === "compound") { for (var M = E.allpts, D = 0; D + 5 < E.allpts.length; D += 4) - if (Vrr(t, e, M[D], M[D + 1], M[D + 2], M[D + 3], M[D + 4], M[D + 5], k) && $ > (N = Wrr(t, e, M[D], M[D + 1], M[D + 2], M[D + 3], M[D + 4], M[D + 5]))) + if (Yrr(t, e, M[D], M[D + 1], M[D + 2], M[D + 3], M[D + 4], M[D + 5], k) && $ > (N = Xrr(t, e, M[D], M[D + 1], M[D + 2], M[D + 3], M[D + 4], M[D + 5]))) return v(T, N), !0; } for (var P = P || A.source, I = I || A.target, F = i.getArrowWidth(R, _), B = [{ @@ -108538,7 +108544,7 @@ $p.getAllInBox = function(t, e, r, n) { continue; if (y.edgeType === "bezier" || y.edgeType === "multibezier" || y.edgeType === "self" || y.edgeType === "compound" || y.edgeType === "segments" || y.edgeType === "haystack") { for (var b = v.rstyle.bezierPts || v.rstyle.linePts || v.rstyle.haystackPts, w = !0, O = 0; O < b.length; O++) - if (!Qrr(h, b[O])) { + if (!Vrr(h, b[O])) { w = !1; break; } @@ -108607,10 +108613,10 @@ dT.getArrowWidth = dT.getArrowHeight = function(t, e) { }; var gM, mM, _c = {}, Yo = {}, WZ, GZ, t0, ak, Nu, Nd, Ud, Cc, eg, F4, Aye, Lye, vM, yM, XZ, HZ = function(e, r, n) { n.x = r.x - e.x, n.y = r.y - e.y, n.len = Math.sqrt(n.x * n.x + n.y * n.y), n.nx = n.x / n.len, n.ny = n.y / n.len, n.ang = Math.atan2(n.ny, n.nx); -}, Lor = function(e, r) { +}, Mor = function(e, r) { r.x = e.x * -1, r.y = e.y * -1, r.nx = e.nx * -1, r.ny = e.ny * -1, r.ang = e.ang > 0 ? -(Math.PI - e.ang) : Math.PI + e.ang; -}, Ror = function(e, r, n, i, s) { - if (e !== XZ ? HZ(r, e, _c) : Lor(Yo, _c), HZ(r, n, Yo), WZ = _c.nx * Yo.ny - _c.ny * Yo.nx, GZ = _c.nx * Yo.nx - _c.ny * -Yo.ny, Nu = Math.asin(Math.max(-1, Math.min(1, WZ))), Math.abs(Nu) < 1e-6) { +}, Dor = function(e, r, n, i, s) { + if (e !== XZ ? HZ(r, e, _c) : Mor(Yo, _c), HZ(r, n, Yo), WZ = _c.nx * Yo.ny - _c.ny * Yo.nx, GZ = _c.nx * Yo.nx - _c.ny * -Yo.ny, Nu = Math.asin(Math.max(-1, Math.min(1, WZ))), Math.abs(Nu) < 1e-6) { gM = r.x, mM = r.y, Ud = eg = 0; return; } @@ -108632,7 +108638,7 @@ function uB(t, e, r, n) { startAngle: void 0, endAngle: void 0, counterClockwise: void 0 - } : (Ror(t, e, r, n, i), { + } : (Dor(t, e, r, n, i), { cx: gM, cy: mM, radius: Ud, @@ -109166,7 +109172,7 @@ qw.getTargetEndpoint = function(t) { } }; var hB = {}; -function Mor(t, e, r) { +function Por(t, e, r) { for (var n = function(u, h, f, d) { return es(u, h, f, d); }, i = e._private, s = i.rstyle.bezierPts, a = 0; a < t.bezierProjPcts.length; a++) { @@ -109182,7 +109188,7 @@ hB.storeEdgeProjections = function(t) { if (e.rstyle.bezierPts = null, e.rstyle.linePts = null, e.rstyle.haystackPts = null, n === "multibezier" || n === "bezier" || n === "self" || n === "compound") { e.rstyle.bezierPts = []; for (var i = 0; i + 5 < r.allpts.length; i += 4) - Mor(this, t, r.allpts.slice(i, i + 6)); + Por(this, t, r.allpts.slice(i, i + 6)); } else if (n === "segments") for (var s = e.rstyle.linePts = [], i = 0; i + 1 < r.allpts.length; i += 2) s.push({ @@ -109238,7 +109244,7 @@ var Dye = function(e, r) { }, Pye = function(e, r) { var n = r.x - e.x, i = r.y - e.y; return Dye(n, i); -}, Dor = function(e, r, n, i) { +}, Nor = function(e, r, n, i) { var s = Fb(0, i - 1e-3, 1), a = Fb(0, i + 1e-3, 1), o = Kg(e, r, n, s), l = Kg(e, r, n, a); return Pye(o, l); }; @@ -109326,7 +109332,7 @@ _u.recalculateEdgeLabelProjections = function(t) { break; } var A = v.cp, E = v.segment, R = (g - y) / E.length, _ = E.t1 - E.t0, L = p ? E.t0 + _ * R : E.t1 - _ * R; - L = Fb(0, L, 1), e = Kg(A.p0, A.p1, A.p2, L), d = Dor(A.p0, A.p1, A.p2, L); + L = Fb(0, L, 1), e = Kg(A.p0, A.p1, A.p2, L), d = Nor(A.p0, A.p1, A.p2, L); break; } case "straight": @@ -109347,7 +109353,7 @@ _u.recalculateEdgeLabelProjections = function(t) { }), k = op(M, D), N = $, $ += k, !($ >= g)); I += 2) ; var F = g - N, B = F / k; - B = Fb(0, B, 1), e = Irr(M, D, B), d = Pye(M, D); + B = Fb(0, B, 1), e = Brr(M, D, B), d = Pye(M, D); break; } } @@ -109589,7 +109595,7 @@ ov.registerBinding = function(t, e, r, n) { return s.on.apply(s, i); }; ov.binder = function(t) { - var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || rtr(t); + var e = this, r = e.cy.window(), n = t === r || t === r.document || t === r.document.body || itr(t); if (e.supportsPassiveEvents == null) { var i = !1; try { @@ -110540,7 +110546,7 @@ Bh.generateEllipse = function() { this.renderer.nodeShapeImpl(this.name, e, r, n, i, s); }, intersectLine: function(e, r, n, i, s, a, o, l) { - return Hrr(s, a, e, r, n / 2 + o, i / 2 + o); + return jrr(s, a, e, r, n / 2 + o, i / 2 + o); }, checkPoint: function(e, r, n, i, s, a, o, l) { return v0(e, r, i, s, a, o, n); @@ -110572,10 +110578,10 @@ Bh.generateRoundPolygon = function(t, e) { this.renderer.nodeShapeImpl("round-polygon", n, i, s, a, o, this.points, this.getOrCreateCorners(i, s, a, o, l, u, "drawCorners")); }, intersectLine: function(n, i, s, a, o, l, u, h, f) { - return Zrr(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); + return Krr(o, l, this.points, n, i, s, a, u, this.getOrCreateCorners(n, i, s, a, h, f, "corners")); }, checkPoint: function(n, i, s, a, o, l, u, h, f) { - return Xrr(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); + return Zrr(n, i, this.points, l, u, a, o, this.getOrCreateCorners(l, u, a, o, h, f, "corners")); } }; }; @@ -110687,7 +110693,7 @@ Bh.generateBarrel = function() { for (var d = this.generateBarrelBezierPts(i, s, a, o), p = function(A, E, R) { var _ = R[4], L = R[2], $ = R[0], k = R[5], N = R[1], M = Math.min(_, $), D = Math.max(_, $), P = Math.min(k, N), I = Math.max(k, N); if (M <= A && A <= D && P <= E && E <= I) { - var F = jrr(_, L, $), B = qrr(F[0], F[1], F[2], A), Q = B.filter(function(q) { + var F = Jrr(_, L, $), B = Wrr(F[0], F[1], F[2], A), Q = B.filter(function(q) { return 0 <= q && q <= 1; }); if (Q.length > 0) @@ -110803,9 +110809,9 @@ Yw.startRenderLoop = function() { sT(r); } }; -var Por = function(e) { +var Ior = function(e) { this.init(e); -}, Bye = Por, lv = Bye.prototype; +}, Bye = Ior, lv = Bye.prototype; lv.clientFunctions = ["redrawHint", "render", "renderTo", "matchCanvasSize", "nodeShapeImpl", "arrowShapeImpl"]; lv.init = function(t) { var e = this; @@ -110913,7 +110919,7 @@ var d7 = 1e3 / 60, Fye = { } }; } -}, Nor = /* @__PURE__ */ function() { +}, $or = /* @__PURE__ */ function() { function t(e) { var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : aT; V$(this, t), this.idsByKey = new Zc(), this.keyForId = new Zc(), this.cachesByLvl = new Zc(), this.lvls = [], this.getKey = e, this.doesEleInvalidateKey = r; @@ -111036,11 +111042,11 @@ var d7 = 1e3 / 60, Fye = { return s && this.invalidateKey(i), s || this.getNumberOfIdsForKey(i) === 0; } }]), t; -}(), JZ = 25, z4 = 50, ok = -4, bM = 3, Ior = 7.99, $or = 8, Bor = 1024, For = 1024, zor = 1024, Qor = 0.2, Uor = 0.8, Vor = 10, qor = 0.15, Yor = 0.1, Wor = 0.9, Gor = 0.9, Xor = 100, Hor = 1, Tg = { +}(), JZ = 25, z4 = 50, ok = -4, bM = 3, Bor = 7.99, For = 8, zor = 1024, Qor = 1024, Uor = 1024, Vor = 0.2, qor = 0.8, Yor = 10, Wor = 0.15, Gor = 0.1, Xor = 0.9, Hor = 0.9, Zor = 100, jor = 1, Tg = { dequeue: "dequeue", downscale: "downscale", highQuality: "highQuality" -}, Zor = $s({ +}, Kor = $s({ getKey: null, doesEleInvalidateKey: aT, drawElement: null, @@ -111053,8 +111059,8 @@ var d7 = 1e3 / 60, Fye = { }), _y = function(e, r) { var n = this; n.renderer = e, n.onDequeues = []; - var i = Zor(r); - ur(n, i), n.lookup = new Nor(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); + var i = Kor(r); + ur(n, i), n.lookup = new $or(i.getKey, i.doesEleInvalidateKey), n.setupDequeueing(); }, Ji = _y.prototype; Ji.reasons = Tg; Ji.getTextureQueue = function(t) { @@ -111081,7 +111087,7 @@ Ji.getElement = function(t, e, r, n, i) { return null; if (n == null && (n = Math.ceil(Z$(o * r))), n < ok) n = ok; - else if (o >= Ior || n > bM) + else if (o >= Bor || n > bM) return null; var u = Math.pow(2, n), h = e.h * u, f = e.w * u, d = a.eleTextBiggerThanMin(t, u); if (!this.isVisible(t, d)) @@ -111090,7 +111096,7 @@ Ji.getElement = function(t, e, r, n, i) { if (p && p.invalidated && (p.invalidated = !1, p.texture.invalidatedWidth -= p.width), p) return p; var g; - if (h <= JZ ? g = JZ : h <= z4 ? g = z4 : g = Math.ceil(h / z4) * z4, h > zor || f > For) + if (h <= JZ ? g = JZ : h <= z4 ? g = z4 : g = Math.ceil(h / z4) * z4, h > Uor || f > Qor) return null; var m = s.getTextureQueue(g), v = m[m.length - 2], y = function() { return s.recycleTexture(g, f) || s.addTexture(g, f); @@ -111139,7 +111145,7 @@ Ji.getElement = function(t, e, r, n, i) { width: f, height: h, scaledLabelShown: d - }, v.usedWidth += Math.ceil(f + $or), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; + }, v.usedWidth += Math.ceil(f + For), v.eleCaches.push(p), l.set(t, n, p), s.checkTextureFullness(v), p; }; Ji.invalidateElements = function(t) { for (var e = 0; e < t.length; e++) @@ -111162,11 +111168,11 @@ Ji.invalidateElement = function(t) { } }; Ji.checkTextureUtility = function(t) { - t.invalidatedWidth >= Qor * t.width && this.retireTexture(t); + t.invalidatedWidth >= Vor * t.width && this.retireTexture(t); }; Ji.checkTextureFullness = function(t) { var e = this, r = e.getTextureQueue(t.height); - t.usedWidth / t.width > Uor && t.fullnessChecks >= Vor ? od(r, t) : t.fullnessChecks++; + t.usedWidth / t.width > qor && t.fullnessChecks >= Yor ? od(r, t) : t.fullnessChecks++; }; Ji.retireTexture = function(t) { var e = this, r = t.height, n = e.getTextureQueue(r), i = this.lookup; @@ -111181,7 +111187,7 @@ Ji.retireTexture = function(t) { }; Ji.addTexture = function(t, e) { var r = this, n = r.getTextureQueue(t), i = {}; - return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(Bor, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; + return n.push(i), i.eleCaches = [], i.height = t, i.width = Math.max(zor, e), i.usedWidth = 0, i.invalidatedWidth = 0, i.fullnessChecks = 0, i.canvas = r.renderer.makeOffscreenCanvas(i.width, i.height), i.context = i.canvas.getContext("2d"), i; }; Ji.recycleTexture = function(t, e) { for (var r = this, n = r.getTextureQueue(t), i = r.getRetiredTextureQueue(t), s = 0; s < i.length; s++) { @@ -111205,7 +111211,7 @@ Ji.queueElement = function(t, e) { } }; Ji.dequeue = function(t) { - for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < Hor && r.size() > 0; a++) { + for (var e = this, r = e.getElementQueue(), n = e.getElementKeyToQueue(), i = [], s = e.lookup, a = 0; a < jor && r.size() > 0; a++) { var o = r.pop(), l = o.key, u = o.eles[0], h = s.hasCache(u, o.level); if (n[l] = null, h) continue; @@ -111226,11 +111232,11 @@ Ji.offDequeue = function(t) { od(this.onDequeues, t); }; Ji.setupDequeueing = Fye.setupDequeueing({ - deqRedrawThreshold: Xor, - deqCost: qor, - deqAvgCost: Yor, - deqNoDrawCost: Wor, - deqFastCost: Gor, + deqRedrawThreshold: Zor, + deqCost: Wor, + deqAvgCost: Gor, + deqNoDrawCost: Xor, + deqFastCost: Hor, deq: function(e, r, n) { return e.dequeue(r, n); }, @@ -111253,21 +111259,21 @@ Ji.setupDequeueing = Fye.setupDequeueing({ return e.renderer.beforeRenderPriorities.eleTxrDeq; } }); -var jor = 1, s2 = -4, pT = 2, Kor = 3.99, Jor = 50, elr = 50, tlr = 0.15, rlr = 0.1, nlr = 0.9, ilr = 0.9, slr = 1, ej = 250, alr = 4e3 * 4e3, olr = !0, zye = function(e) { +var Jor = 1, s2 = -4, pT = 2, elr = 3.99, tlr = 50, rlr = 50, nlr = 0.15, ilr = 0.1, slr = 0.9, alr = 0.9, olr = 1, ej = 250, llr = 4e3 * 4e3, clr = !0, zye = function(e) { var r = this, n = r.renderer = e, i = n.cy; r.layersByLevel = {}, r.firstGet = !0, r.lastInvalidationTime = Ch() - 2 * ej, r.skipping = !1, r.eleTxrDeqs = i.collection(), r.scheduleElementRefinement = IE(function() { r.refineElementTextures(r.eleTxrDeqs), r.eleTxrDeqs.unmerge(r.eleTxrDeqs); - }, elr), n.beforeRender(function(a, o) { + }, rlr), n.beforeRender(function(a, o) { o - r.lastInvalidationTime <= ej ? r.skipping = !0 : r.skipping = !1; }, n.beforeRenderPriorities.lyrTxrSkip); var s = function(o, l) { return l.reqs - o.reqs; }; r.layersQueue = new Qw(s), r.setupDequeueing(); -}, Bs = zye.prototype, tj = 0, llr = Math.pow(2, 53) - 1; +}, Bs = zye.prototype, tj = 0, ulr = Math.pow(2, 53) - 1; Bs.makeLayer = function(t, e) { var r = Math.pow(2, e), n = Math.ceil(t.w * r), i = Math.ceil(t.h * r), s = this.renderer.makeOffscreenCanvas(n, i), a = { - id: tj = ++tj % llr, + id: tj = ++tj % ulr, bb: t, level: e, width: n, @@ -111285,7 +111291,7 @@ Bs.getLayers = function(t, e, r) { if (n.firstGet = !1, r == null) { if (r = Math.ceil(Z$(a * e)), r < s2) r = s2; - else if (a >= Kor || r > pT) + else if (a >= elr || r > pT) return null; } n.validateLayersElesOrdering(r, t); @@ -111320,7 +111326,7 @@ Bs.getLayers = function(t, e, r) { var _ = R.after; m(); var L = f.w * u * (f.h * u); - if (L > alr) + if (L > llr) return null; var $ = n.makeLayer(f, r); if (_ != null) { @@ -111332,7 +111338,7 @@ Bs.getLayers = function(t, e, r) { }; if (n.skipping && !o) return null; - for (var y = null, b = t.length / jor, w = !o, O = 0; O < t.length; O++) { + for (var y = null, b = t.length / Jor, w = !o, O = 0; O < t.length; O++) { var S = t[O], C = S._private.rscratch, T = C.imgLayerCaches = C.imgLayerCaches || {}, A = T[r]; if (A) { y = A; @@ -111352,7 +111358,7 @@ Bs.getEleLevelForLayerLevel = function(t, e) { }; Bs.drawEleInLayer = function(t, e, r, n) { var i = this, s = this.renderer, a = t.context, o = e.boundingBox(); - o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, olr), s.setImgSmoothing(a, !0)); + o.w === 0 || o.h === 0 || !e.visible() || (r = i.getEleLevelForLayerLevel(r, n), s.setImgSmoothing(a, !1), s.drawCachedElement(a, e, null, null, r, clr), s.setImgSmoothing(a, !0)); }; Bs.levelIsComplete = function(t, e) { var r = this, n = r.layersByLevel[t]; @@ -111443,7 +111449,7 @@ Bs.queueLayer = function(t, e) { } }; Bs.dequeue = function(t) { - for (var e = this, r = e.layersQueue, n = [], i = 0; i < slr && r.size() !== 0; ) { + for (var e = this, r = e.layersQueue, n = [], i = 0; i < olr && r.size() !== 0; ) { var s = r.peek(); if (s.replacement) { r.pop(); @@ -111478,11 +111484,11 @@ Bs.requestRedraw = IE(function() { t.redrawHint("eles", !0), t.redrawHint("drag", !0), t.redraw(); }, 100); Bs.setupDequeueing = Fye.setupDequeueing({ - deqRedrawThreshold: Jor, - deqCost: tlr, - deqAvgCost: rlr, - deqNoDrawCost: nlr, - deqFastCost: ilr, + deqRedrawThreshold: tlr, + deqCost: nlr, + deqAvgCost: ilr, + deqNoDrawCost: slr, + deqFastCost: alr, deq: function(e, r) { return e.dequeue(r); }, @@ -111493,13 +111499,13 @@ Bs.setupDequeueing = Fye.setupDequeueing({ } }); var Qye = {}, rj; -function clr(t, e) { +function hlr(t, e) { for (var r = 0; r < e.length; r++) { var n = e[r]; t.lineTo(n.x, n.y); } } -function ulr(t, e, r) { +function flr(t, e, r) { for (var n, i = 0; i < e.length; i++) { var s = e[i]; i === 0 && (n = s), t.lineTo(s.x, s.y); @@ -111520,7 +111526,7 @@ function nj(t, e, r) { } t.closePath && t.closePath(); } -function hlr(t, e, r, n, i) { +function dlr(t, e, r, n, i) { t.beginPath && t.beginPath(), t.arc(r, n, i, 0, Math.PI * 2, !1); var s = e, a = s[0]; t.moveTo(a.x, a.y); @@ -111530,17 +111536,17 @@ function hlr(t, e, r, n, i) { } t.closePath && t.closePath(); } -function flr(t, e, r, n) { +function plr(t, e, r, n) { t.arc(e, r, n, 0, Math.PI * 2, !1); } Qye.arrowShapeImpl = function(t) { return (rj || (rj = { - polygon: clr, - "triangle-backcurve": ulr, + polygon: hlr, + "triangle-backcurve": flr, "triangle-tee": nj, - "circle-triangle": hlr, + "circle-triangle": dlr, "triangle-cross": nj, - circle: flr + circle: plr }))[t]; }; var Au = {}; @@ -111578,15 +111584,15 @@ Au.drawCachedElementPortion = function(t, e, r, n, i, s, a, o) { r.drawElement(t, e); } }; -var dlr = function() { +var glr = function() { return 0; -}, plr = function(e, r) { +}, mlr = function(e, r) { return e.getTextAngle(r, null); -}, glr = function(e, r) { +}, vlr = function(e, r) { return e.getTextAngle(r, "source"); -}, mlr = function(e, r) { +}, ylr = function(e, r) { return e.getTextAngle(r, "target"); -}, vlr = function(e, r) { +}, blr = function(e, r) { return r.effectiveOpacity(); }, p7 = function(e, r) { return r.pstyle("text-opacity").pfValue * r.effectiveOpacity(); @@ -111595,7 +111601,7 @@ Au.drawCachedElement = function(t, e, r, n, i, s) { var a = this, o = a.data, l = o.eleTxrCache, u = o.lblTxrCache, h = o.slbTxrCache, f = o.tlbTxrCache, d = e.boundingBox(), p = s === !0 ? l.reasons.highQuality : null; if (!(d.w === 0 || d.h === 0 || !e.visible()) && (!n || j$(d, n))) { var g = e.isEdge(), m = e.element()._private.rscratch.badLine; - a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, dlr, vlr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, plr, p7), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, glr, p7), a.drawCachedElementPortion(t, e, f, r, i, p, mlr, p7)), a.drawElementOverlay(t, e); + a.drawElementUnderlay(t, e), a.drawCachedElementPortion(t, e, l, r, i, p, glr, blr), (!g || !m) && a.drawCachedElementPortion(t, e, u, r, i, p, mlr, p7), g && !m && (a.drawCachedElementPortion(t, e, h, r, i, p, vlr, p7), a.drawCachedElementPortion(t, e, f, r, i, p, ylr, p7)), a.drawElementOverlay(t, e); } }; Au.drawElements = function(t, e) { @@ -112155,7 +112161,7 @@ cv.drawPie = function(t, e, r, n) { g === 0 || f >= 1 || f + y > 1 || (t.beginPath(), t.moveTo(a, o), t.arc(a, o, h, b, O), t.closePath(), this.colorFillStyle(t, m[0], m[1], m[2], v), t.fill(), f += y); } }; -var zo = {}, ylr = 100; +var zo = {}, xlr = 100; zo.getPixelRatio = function() { var t = this.data.contexts[0]; if (this.forcedPixelRatio != null) @@ -112398,7 +112404,7 @@ zo.render = function(t) { } a.prevViewport = T, a.clearingMotionBlur && (a.clearingMotionBlur = !1, a.motionBlurCleared = !0, a.motionBlur = !0), d && (a.motionBlurTimeout = setTimeout(function() { a.motionBlurTimeout = null, a.clearedForMotionBlur[a.NODE] = !1, a.clearedForMotionBlur[a.DRAG] = !1, a.motionBlur = !1, a.clearingMotionBlur = !f, a.mbFrames = 0, h[a.NODE] = !0, h[a.DRAG] = !0, a.redraw(); - }, ylr)), e || l.emit("render"); + }, xlr)), e || l.emit("render"); }; var Od = {}; Od.drawPolygonPath = function(t, e, r, n, i, s) { @@ -112473,7 +112479,7 @@ Ww.bufferCanvasImage = function(t) { } return d; }; -function blr(t, e) { +function wlr(t, e) { for (var r = atob(t), n = new ArrayBuffer(r.length), i = new Uint8Array(n), s = 0; s < r.length; s++) i[s] = r.charCodeAt(s); return new Blob([n], { @@ -112500,7 +112506,7 @@ function Yye(t, e, r) { } }); case "blob": - return blr(aj(n()), r); + return wlr(aj(n()), r); case "base64": return aj(n()); case "base64uri": @@ -112536,7 +112542,7 @@ Wye.nodeShapeImpl = function(t, e, r, n, i, s, a, o) { return this.drawBarrelPath(e, r, n, i, s); } }; -var xlr = Gye, Ur = Gye.prototype; +var Olr = Gye, Ur = Gye.prototype; Ur.CANVAS_LAYERS = 3; Ur.SELECT_BOX = 0; Ur.DRAG = 1; @@ -112567,7 +112573,7 @@ function Gye(t) { "-webkit-tap-highlight-color": "rgba(0,0,0,0)", "outline-style": "none" }; - str() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); + otr() && (l["-ms-touch-action"] = "none", l["touch-action"] = "none"); for (var u = 0; u < Ur.CANVAS_LAYERS; u++) { var h = e.data.canvases[u] = n.createElement("canvas"); e.data.contexts[u] = h.getContext("2d"), Object.keys(l).forEach(function(se) { @@ -112722,14 +112728,14 @@ Ur.redrawHint = function(t, e) { break; } }; -var wlr = typeof Path2D < "u"; +var klr = typeof Path2D < "u"; Ur.path2dEnabled = function(t) { if (t === void 0) return this.pathsEnabled; this.pathsEnabled = !!t; }; Ur.usePaths = function() { - return wlr && this.pathsEnabled; + return klr && this.pathsEnabled; }; Ur.setImgSmoothing = function(t, e) { t.imageSmoothingEnabled != null ? t.imageSmoothingEnabled = e : (t.webkitImageSmoothingEnabled = e, t.mozImageSmoothingEnabled = e, t.msImageSmoothingEnabled = e); @@ -112750,7 +112756,7 @@ Ur.makeOffscreenCanvas = function(t, e) { [Qye, Au, Fh, fB, Bp, cv, zo, Od, Ww, Wye].forEach(function(t) { ur(Ur, t); }); -var Olr = [{ +var Slr = [{ name: "null", impl: _ye }, { @@ -112758,13 +112764,13 @@ var Olr = [{ impl: Bye }, { name: "canvas", - impl: xlr -}], klr = [{ + impl: Olr +}], Tlr = [{ type: "layout", - extensions: Aor + extensions: Ror }, { type: "renderer", - extensions: Olr + extensions: Slr }], Xye = {}, Hye = {}; function Zye(t, e, r) { var n = r, i = function(A) { @@ -112877,14 +112883,14 @@ function jye(t, e) { keys: [t, e] }); } -function Slr(t, e, r, n, i) { +function Clr(t, e, r, n, i) { return Ove({ map: Hye, keys: [t, e, r, n], value: i }); } -function Tlr(t, e, r, n) { +function Elr(t, e, r, n) { return kve({ map: Hye, keys: [t, e, r, n] @@ -112896,13 +112902,13 @@ var OM = function() { if (arguments.length === 3) return Zye.apply(null, arguments); if (arguments.length === 4) - return Tlr.apply(null, arguments); + return Elr.apply(null, arguments); if (arguments.length === 5) - return Slr.apply(null, arguments); + return Clr.apply(null, arguments); ii("Invalid extension access syntax"); }; Yb.prototype.extension = OM; -klr.forEach(function(t) { +Tlr.forEach(function(t) { t.extensions.forEach(function(e) { Zye(t.type, e.name, e.impl); }); @@ -112961,7 +112967,7 @@ hp.appendToStyle = function(t) { } return t; }; -var Clr = "3.30.2", du = function(e) { +var _lr = "3.30.2", du = function(e) { if (e === void 0 && (e = {}), zr(e)) return new Yb(e); if (Kt(e)) @@ -112974,10 +112980,10 @@ du.use = function(t) { du.warnings = function(t) { return Rve(t); }; -du.version = Clr; +du.version = _lr; du.stylesheet = du.Stylesheet = Kye; var Jye = { exports: {} }, m7 = { exports: {} }, v7 = { exports: {} }, oj; -function Elr() { +function Alr() { return oj || (oj = 1, function(t, e) { (function(n, i) { t.exports = i(); @@ -114507,10 +114513,10 @@ function Elr() { }(v7)), v7.exports; } var lj; -function _lr() { +function Llr() { return lj || (lj = 1, function(t, e) { (function(n, i) { - t.exports = i(Elr()); + t.exports = i(Alr()); })(wa, function(r) { return function(n) { var i = {}; @@ -115028,7 +115034,7 @@ function _lr() { } (function(t, e) { (function(n, i) { - t.exports = i(_lr()); + t.exports = i(Llr()); })(wa, function(r) { return function(n) { var i = {}; @@ -115194,7 +115200,7 @@ function _lr() { ]); }); })(Jye); -const Alr = /* @__PURE__ */ Gj(Jye.exports); +const Rlr = /* @__PURE__ */ Gj(Jye.exports); var kM = function() { var t = /* @__PURE__ */ x(function(O, S, C, T) { for (C = C || {}, T = O.length; T--; C[O[T]] = S) @@ -115582,14 +115588,14 @@ Expecting ` + oe.join(", ") + ", got '" + (this.terminals_[ee] || ee) + "'" : ae return x(w, "Parser"), w.prototype = y, y.Parser = w, new w(); }(); kM.parser = kM; -var Llr = kM, Jl = [], e2e = 0, dB = {}, Rlr = /* @__PURE__ */ x(() => { +var Mlr = kM, Jl = [], e2e = 0, dB = {}, Dlr = /* @__PURE__ */ x(() => { Jl = [], e2e = 0, dB = {}; -}, "clear"), Mlr = /* @__PURE__ */ x(function(t) { +}, "clear"), Plr = /* @__PURE__ */ x(function(t) { for (let e = Jl.length - 1; e >= 0; e--) if (Jl[e].level < t) return Jl[e]; return null; -}, "getParent"), Dlr = /* @__PURE__ */ x(() => Jl.length > 0 ? Jl[0] : null, "getMindmap"), Plr = /* @__PURE__ */ x((t, e, r, n) => { +}, "getParent"), Nlr = /* @__PURE__ */ x(() => Jl.length > 0 ? Jl[0] : null, "getMindmap"), Ilr = /* @__PURE__ */ x((t, e, r, n) => { var l, u, h, f; H.info("addNode", t, e, r, n); const i = ke(); @@ -115609,7 +115615,7 @@ var Llr = kM, Jl = [], e2e = 0, dB = {}, Rlr = /* @__PURE__ */ x(() => { children: [], width: (f = (h = i.mindmap) == null ? void 0 : h.maxNodeWidth) != null ? f : cn.mindmap.maxNodeWidth, padding: s - }, o = Mlr(t); + }, o = Plr(t); if (o) o.children.push(a), Jl.push(a); else if (Jl.length === 0) @@ -115627,7 +115633,7 @@ var Llr = kM, Jl = [], e2e = 0, dB = {}, Rlr = /* @__PURE__ */ x(() => { CLOUD: 4, BANG: 5, HEXAGON: 6 -}, Nlr = /* @__PURE__ */ x((t, e) => { +}, $lr = /* @__PURE__ */ x((t, e) => { switch (H.debug("In get type", t, e), t) { case "[": return $i.RECT; @@ -115644,14 +115650,14 @@ var Llr = kM, Jl = [], e2e = 0, dB = {}, Rlr = /* @__PURE__ */ x(() => { default: return $i.DEFAULT; } -}, "getType"), Ilr = /* @__PURE__ */ x((t, e) => { +}, "getType"), Blr = /* @__PURE__ */ x((t, e) => { dB[t] = e; -}, "setElementForId"), $lr = /* @__PURE__ */ x((t) => { +}, "setElementForId"), Flr = /* @__PURE__ */ x((t) => { if (!t) return; const e = ke(), r = Jl[Jl.length - 1]; t.icon && (r.icon = yi(t.icon, e)), t.class && (r.class = yi(t.class, e)); -}, "decorateNode"), Blr = /* @__PURE__ */ x((t) => { +}, "decorateNode"), zlr = /* @__PURE__ */ x((t) => { switch (t) { case $i.DEFAULT: return "no-border"; @@ -115670,25 +115676,25 @@ var Llr = kM, Jl = [], e2e = 0, dB = {}, Rlr = /* @__PURE__ */ x(() => { default: return "no-border"; } -}, "type2Str"), Flr = /* @__PURE__ */ x(() => H, "getLogger"), zlr = /* @__PURE__ */ x((t) => dB[t], "getElementById"), Qlr = { - clear: Rlr, - addNode: Plr, - getMindmap: Dlr, +}, "type2Str"), Qlr = /* @__PURE__ */ x(() => H, "getLogger"), Ulr = /* @__PURE__ */ x((t) => dB[t], "getElementById"), Vlr = { + clear: Dlr, + addNode: Ilr, + getMindmap: Nlr, nodeType: $i, - getType: Nlr, - setElementForId: Ilr, - decorateNode: $lr, - type2Str: Blr, - getLogger: Flr, - getElementById: zlr -}, Ulr = Qlr, Vlr = 12, qlr = /* @__PURE__ */ x(function(t, e, r, n) { + getType: $lr, + setElementForId: Blr, + decorateNode: Flr, + type2Str: zlr, + getLogger: Qlr, + getElementById: Ulr +}, qlr = Vlr, Ylr = 12, Wlr = /* @__PURE__ */ x(function(t, e, r, n) { e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", `M0 ${r.height - 5} v${-r.height + 2 * 5} q0,-5 5,-5 h${r.width - 2 * 5} q5,0 5,5 v${r.height - 5} H0 Z` ), e.append("line").attr("class", "node-line-" + n).attr("x1", 0).attr("y1", r.height).attr("x2", r.width).attr("y2", r.height); -}, "defaultBkg"), Ylr = /* @__PURE__ */ x(function(t, e, r) { +}, "defaultBkg"), Glr = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("width", r.width); -}, "rectBkg"), Wlr = /* @__PURE__ */ x(function(t, e, r) { +}, "rectBkg"), Xlr = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n, a = 0.25 * n, o = 0.35 * n, l = 0.2 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -115708,7 +115714,7 @@ var Llr = kM, Jl = [], e2e = 0, dB = {}, Rlr = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "cloudBkg"), Glr = /* @__PURE__ */ x(function(t, e, r) { +}, "cloudBkg"), Hlr = /* @__PURE__ */ x(function(t, e, r) { const n = r.width, i = r.height, s = 0.15 * n; e.append("path").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr( "d", @@ -115732,7 +115738,7 @@ var Llr = kM, Jl = [], e2e = 0, dB = {}, Rlr = /* @__PURE__ */ x(() => { H0 V0 Z` ); -}, "bangBkg"), Xlr = /* @__PURE__ */ x(function(t, e, r) { +}, "bangBkg"), Zlr = /* @__PURE__ */ x(function(t, e, r) { e.append("circle").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("r", r.width / 2); }, "circleBkg"); function t2e(t, e, r, n, i) { @@ -115744,7 +115750,7 @@ function t2e(t, e, r, n, i) { ).attr("transform", "translate(" + (i.width - e) / 2 + ", " + r + ")"); } x(t2e, "insertPolygonShape"); -var Hlr = /* @__PURE__ */ x(function(t, e, r) { +var jlr = /* @__PURE__ */ x(function(t, e, r) { const n = r.height, s = n / 4, a = r.width - r.padding + 2 * s, o = [ { x: s, y: 0 }, { x: a - s, y: 0 }, @@ -115754,10 +115760,10 @@ var Hlr = /* @__PURE__ */ x(function(t, e, r) { { x: 0, y: -n / 2 } ]; t2e(e, a, n, o, r); -}, "hexagonBkg"), Zlr = /* @__PURE__ */ x(function(t, e, r) { +}, "hexagonBkg"), Klr = /* @__PURE__ */ x(function(t, e, r) { e.append("rect").attr("id", "node-" + r.id).attr("class", "node-bkg node-" + t.type2Str(r.type)).attr("height", r.height).attr("rx", r.padding).attr("ry", r.padding).attr("width", r.width); -}, "roundedRectBkg"), jlr = /* @__PURE__ */ x(async function(t, e, r, n, i) { - const s = i.htmlLabels, a = n % (Vlr - 1), o = e.append("g"); +}, "roundedRectBkg"), Jlr = /* @__PURE__ */ x(async function(t, e, r, n, i) { + const s = i.htmlLabels, a = n % (Ylr - 1), o = e.append("g"); r.section = a; let l = "section-" + a; a < 0 && (l += " section-root"), o.attr("class", (r.class ? r.class + " " : "") + "mindmap-node " + l); @@ -115799,35 +115805,35 @@ var Hlr = /* @__PURE__ */ x(function(t, e, r) { } switch (r.type) { case t.nodeType.DEFAULT: - qlr(t, u, r, a); + Wlr(t, u, r, a); break; case t.nodeType.ROUNDED_RECT: - Zlr(t, u, r, a); + Klr(t, u, r, a); break; case t.nodeType.RECT: - Ylr(t, u, r, a); + Glr(t, u, r, a); break; case t.nodeType.CIRCLE: - u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), Xlr(t, u, r, a); + u.attr("transform", "translate(" + r.width / 2 + ", " + +r.height / 2 + ")"), Zlr(t, u, r, a); break; case t.nodeType.CLOUD: - Wlr(t, u, r, a); + Xlr(t, u, r, a); break; case t.nodeType.BANG: - Glr(t, u, r, a); + Hlr(t, u, r, a); break; case t.nodeType.HEXAGON: - Hlr(t, u, r, a); + jlr(t, u, r, a); break; } return t.setElementForId(r.id, o), r.height; -}, "drawNode"), Klr = /* @__PURE__ */ x(function(t, e) { +}, "drawNode"), ecr = /* @__PURE__ */ x(function(t, e) { const r = t.getElementById(e.id), n = e.x || 0, i = e.y || 0; r.attr("transform", "translate(" + n + "," + i + ")"); }, "positionNode"); -du.use(Alr); +du.use(Rlr); async function pB(t, e, r, n, i) { - await jlr(t, e, r, n, i), r.children && await Promise.all( + await Jlr(t, e, r, n, i), r.children && await Promise.all( r.children.map( (s, a) => pB(t, e, s, n < 0 ? a : n, i) ) @@ -115910,7 +115916,7 @@ x(n2e, "layoutMindmap"); function i2e(t, e) { e.nodes().map((r, n) => { const i = r.data(); - i.x = r.position().x, i.y = r.position().y, Klr(t, i); + i.x = r.position().x, i.y = r.position().y, ecr(t, i); const s = t.getElementById(i.nodeId); H.info("Id:", n, "Position: (", r.position().x, ", ", r.position().y, ")", i), s.attr( "transform", @@ -115919,7 +115925,7 @@ function i2e(t, e) { }); } x(i2e, "positionNodes"); -var Jlr = /* @__PURE__ */ x(async (t, e, r, n) => { +var tcr = /* @__PURE__ */ x(async (t, e, r, n) => { var f, d, p, g; H.debug(`Rendering mindmap diagram ` + t); @@ -115939,9 +115945,9 @@ var Jlr = /* @__PURE__ */ x(async (t, e, r, n) => { (d = (f = a.mindmap) == null ? void 0 : f.padding) != null ? d : cn.mindmap.padding, (g = (p = a.mindmap) == null ? void 0 : p.useMaxWidth) != null ? g : cn.mindmap.useMaxWidth ); -}, "draw"), ecr = { - draw: Jlr -}, tcr = /* @__PURE__ */ x((t) => { +}, "draw"), rcr = { + draw: tcr +}, ncr = /* @__PURE__ */ x((t) => { let e = ""; for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], yp(t["lineColor" + r]) ? t["lineColor" + r] = Ht(t["lineColor" + r], 20) : t["lineColor" + r] = tr(t["lineColor" + r], 20); @@ -115978,11 +115984,11 @@ var Jlr = /* @__PURE__ */ x(async (t, e, r, n) => { `; } return e; -}, "genSections"), rcr = /* @__PURE__ */ x((t) => ` +}, "genSections"), icr = /* @__PURE__ */ x((t) => ` .edge { stroke-width: 3; } - ${tcr(t)} + ${ncr(t)} .section-root rect, .section-root path, .section-root circle, .section-root polygon { fill: ${t.git0}; } @@ -116005,15 +116011,15 @@ var Jlr = /* @__PURE__ */ x(async (t, e, r, n) => { dominant-baseline: middle; text-align: center; } -`, "getStyles"), ncr = rcr, icr = { - db: Ulr, - renderer: ecr, - parser: Llr, - styles: ncr +`, "getStyles"), scr = icr, acr = { + db: qlr, + renderer: rcr, + parser: Mlr, + styles: scr }; -const scr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const ocr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: icr + diagram: acr }, Symbol.toStringTag, { value: "Module" })); function cj(t, e) { let r; @@ -116051,20 +116057,20 @@ function y7(t, e) { } return r; } -function acr(t) { +function lcr(t) { return t.target.depth; } -function ocr(t) { +function ccr(t) { return t.depth; } -function lcr(t, e) { +function ucr(t, e) { return e - 1 - t.height; } function a2e(t, e) { return t.sourceLinks.length ? t.depth : e - 1; } -function ccr(t) { - return t.targetLinks.length ? t.depth : t.sourceLinks.length ? s2e(t.sourceLinks, acr) - 1 : 0; +function hcr(t) { + return t.targetLinks.length ? t.depth : t.sourceLinks.length ? s2e(t.sourceLinks, lcr) - 1 : 0; } function Q4(t) { return function() { @@ -116083,13 +116089,13 @@ function gT(t, e) { function b7(t) { return t.value; } -function ucr(t) { +function fcr(t) { return t.index; } -function hcr(t) { +function dcr(t) { return t.nodes; } -function fcr(t) { +function pcr(t) { return t.links; } function fj(t, e) { @@ -116107,8 +116113,8 @@ function dj({ nodes: t }) { i.y1 = n + i.width / 2, n += i.width; } } -function dcr() { - let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = ucr, l = a2e, u, h, f = hcr, d = fcr, p = 6; +function gcr() { + let t = 0, e = 0, r = 1, n = 1, i = 24, s = 8, a, o = fcr, l = a2e, u, h, f = dcr, d = pcr, p = 6; function g() { const N = { nodes: f.apply(null, arguments), links: d.apply(null, arguments) }; return m(N), v(N), y(N), b(N), S(N), dj(N), N; @@ -116312,7 +116318,7 @@ function dcr() { } return g; } -var SM = Math.PI, TM = 2 * SM, Vd = 1e-6, pcr = TM - Vd; +var SM = Math.PI, TM = 2 * SM, Vd = 1e-6, mcr = TM - Vd; function CM() { this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = ""; } @@ -116356,7 +116362,7 @@ CM.prototype = o2e.prototype = { var a = r * Math.cos(n), o = r * Math.sin(n), l = t + a, u = e + o, h = 1 ^ s, f = s ? n - i : i - n; if (r < 0) throw new Error("negative radius: " + r); - this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > Vd || Math.abs(this._y1 - u) > Vd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % TM + TM), f > pcr ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > Vd && (this._ += "A" + r + "," + r + ",0," + +(f >= SM) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); + this._x1 === null ? this._ += "M" + l + "," + u : (Math.abs(this._x1 - l) > Vd || Math.abs(this._y1 - u) > Vd) && (this._ += "L" + l + "," + u), r && (f < 0 && (f = f % TM + TM), f > mcr ? this._ += "A" + r + "," + r + ",0,1," + h + "," + (t - a) + "," + (e - o) + "A" + r + "," + r + ",0,1," + h + "," + (this._x1 = l) + "," + (this._y1 = u) : f > Vd && (this._ += "A" + r + "," + r + ",0," + +(f >= SM) + "," + h + "," + (this._x1 = t + r * Math.cos(i)) + "," + (this._y1 = e + r * Math.sin(i)))); }, rect: function(t, e, r, n) { this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +r + "v" + +n + "h" + -r + "Z"; @@ -116370,23 +116376,23 @@ function pj(t) { return t; }; } -function gcr(t) { +function vcr(t) { return t[0]; } -function mcr(t) { +function ycr(t) { return t[1]; } -var vcr = Array.prototype.slice; -function ycr(t) { +var bcr = Array.prototype.slice; +function xcr(t) { return t.source; } -function bcr(t) { +function wcr(t) { return t.target; } -function xcr(t) { - var e = ycr, r = bcr, n = gcr, i = mcr, s = null; +function Ocr(t) { + var e = xcr, r = wcr, n = vcr, i = ycr, s = null; function a() { - var o, l = vcr.call(arguments), u = e.apply(this, l), h = r.apply(this, l); + var o, l = bcr.call(arguments), u = e.apply(this, l), h = r.apply(this, l); if (s || (s = o = o2e()), t(s, +n.apply(this, (l[0] = u, l)), +i.apply(this, l), +n.apply(this, (l[0] = h, l)), +i.apply(this, l)), o) return s = null, o + "" || null; } @@ -116402,20 +116408,20 @@ function xcr(t) { return arguments.length ? (s = o == null ? null : o, a) : s; }, a; } -function wcr(t, e, r, n, i) { +function kcr(t, e, r, n, i) { t.moveTo(e, r), t.bezierCurveTo(e = (e + n) / 2, r, e, i, n, i); } -function Ocr() { - return xcr(wcr); +function Scr() { + return Ocr(kcr); } -function kcr(t) { +function Tcr(t) { return [t.source.x1, t.y0]; } -function Scr(t) { +function Ccr(t) { return [t.target.x0, t.y1]; } -function Tcr() { - return Ocr().source(kcr).target(Scr); +function Ecr() { + return Scr().source(Tcr).target(Ccr); } var EM = function() { var t = /* @__PURE__ */ x(function(o, l, u, h) { @@ -116707,48 +116713,48 @@ Expecting ` + F.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : B = " return x(a, "Parser"), a.prototype = i, i.Parser = a, new a(); }(); EM.parser = EM; -var mT = EM, KE = [], JE = [], vT = /* @__PURE__ */ new Map(), Ccr = /* @__PURE__ */ x(() => { +var mT = EM, KE = [], JE = [], vT = /* @__PURE__ */ new Map(), _cr = /* @__PURE__ */ x(() => { KE = [], JE = [], vT = /* @__PURE__ */ new Map(), ls(); -}, "clear"), Rx, Ecr = (Rx = class { +}, "clear"), Rx, Acr = (Rx = class { constructor(e, r, n = 0) { this.source = e, this.target = r, this.value = n; } }, (() => { x(Rx, "SankeyLink"); -})(), Rx), _cr = /* @__PURE__ */ x((t, e, r) => { - KE.push(new Ecr(t, e, r)); -}, "addLink"), Mx, Acr = (Mx = class { +})(), Rx), Lcr = /* @__PURE__ */ x((t, e, r) => { + KE.push(new Acr(t, e, r)); +}, "addLink"), Mx, Rcr = (Mx = class { constructor(e) { this.ID = e; } }, (() => { x(Mx, "SankeyNode"); -})(), Mx), Lcr = /* @__PURE__ */ x((t) => { +})(), Mx), Mcr = /* @__PURE__ */ x((t) => { t = mt.sanitizeText(t, ke()); let e = vT.get(t); - return e === void 0 && (e = new Acr(t), vT.set(t, e), JE.push(e)), e; -}, "findOrCreateNode"), Rcr = /* @__PURE__ */ x(() => JE, "getNodes"), Mcr = /* @__PURE__ */ x(() => KE, "getLinks"), Dcr = /* @__PURE__ */ x(() => ({ + return e === void 0 && (e = new Rcr(t), vT.set(t, e), JE.push(e)), e; +}, "findOrCreateNode"), Dcr = /* @__PURE__ */ x(() => JE, "getNodes"), Pcr = /* @__PURE__ */ x(() => KE, "getLinks"), Ncr = /* @__PURE__ */ x(() => ({ nodes: JE.map((t) => ({ id: t.ID })), links: KE.map((t) => ({ source: t.source.ID, target: t.target.ID, value: t.value })) -}), "getGraph"), Pcr = { +}), "getGraph"), Icr = { nodesMap: vT, getConfig: /* @__PURE__ */ x(() => ke().sankey, "getConfig"), - getNodes: Rcr, - getLinks: Mcr, - getGraph: Dcr, - addLink: _cr, - findOrCreateNode: Lcr, + getNodes: Dcr, + getLinks: Pcr, + getGraph: Ncr, + addLink: Lcr, + findOrCreateNode: Mcr, getAccTitle: Ds, setAccTitle: cs, getAccDescription: Ns, setAccDescription: Ps, getDiagramTitle: Is, setDiagramTitle: Na, - clear: Ccr + clear: _cr }, yf, gj = (yf = class { static next(e) { return new yf(e + ++yf.count); @@ -116763,18 +116769,18 @@ var mT = EM, KE = [], JE = [], vT = /* @__PURE__ */ new Map(), Ccr = /* @__PURE_ x(yf, "Uid"); })(), (() => { yf.count = 0; -})(), yf), Ncr = { - left: ocr, - right: lcr, - center: ccr, +})(), yf), $cr = { + left: ccr, + right: ucr, + center: hcr, justify: a2e -}, Icr = /* @__PURE__ */ x(function(t, e, r, n) { +}, Bcr = /* @__PURE__ */ x(function(t, e, r, n) { var R, _, L, $, k, N, M, D; const { securityLevel: i, sankey: s } = ke(), a = rae.sankey; let o; i === "sandbox" && (o = ht("#i" + e)); - const l = ht(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : ht(`[id="${e}"]`), h = (R = s == null ? void 0 : s.width) != null ? R : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (L = s == null ? void 0 : s.useMaxWidth) != null ? L : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (N = s == null ? void 0 : s.suffix) != null ? N : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = Ncr[p], w = 10; - dcr().nodeId((P) => P.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ + const l = ht(i === "sandbox" ? o.nodes()[0].contentDocument.body : "body"), u = i === "sandbox" ? l.select(`[id="${e}"]`) : ht(`[id="${e}"]`), h = (R = s == null ? void 0 : s.width) != null ? R : a.width, f = (_ = s == null ? void 0 : s.height) != null ? _ : a.width, d = (L = s == null ? void 0 : s.useMaxWidth) != null ? L : a.useMaxWidth, p = ($ = s == null ? void 0 : s.nodeAlignment) != null ? $ : a.nodeAlignment, g = (k = s == null ? void 0 : s.prefix) != null ? k : a.prefix, m = (N = s == null ? void 0 : s.suffix) != null ? N : a.suffix, v = (M = s == null ? void 0 : s.showValues) != null ? M : a.showValues, y = n.db.getGraph(), b = $cr[p], w = 10; + gcr().nodeId((P) => P.id).nodeWidth(w).nodePadding(10 + (v ? 15 : 0)).nodeAlign(b).extent([ [0, 0], [h, f] ])(y); @@ -116804,45 +116810,45 @@ ${g}${Math.round(I * 100) / 100}${m}` : P, "getText"); default: E = A; } - T.append("path").attr("d", Tcr()).attr("stroke", E).attr("stroke-width", (P) => Math.max(1, P.width)), D1(void 0, u, 0, d); -}, "draw"), $cr = { - draw: Icr -}, Bcr = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` -`).trim(), "prepareTextForParsing"), Fcr = mT.parse.bind(mT); -mT.parse = (t) => Fcr(Bcr(t)); -var zcr = { + T.append("path").attr("d", Ecr()).attr("stroke", E).attr("stroke-width", (P) => Math.max(1, P.width)), D1(void 0, u, 0, d); +}, "draw"), Fcr = { + draw: Bcr +}, zcr = /* @__PURE__ */ x((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, ` +`).trim(), "prepareTextForParsing"), Qcr = mT.parse.bind(mT); +mT.parse = (t) => Qcr(zcr(t)); +var Ucr = { parser: mT, - db: Pcr, - renderer: $cr + db: Icr, + renderer: Fcr }; -const Qcr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Vcr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: zcr + diagram: Ucr }, Symbol.toStringTag, { value: "Module" })); var l2e = { packet: [] -}, mB = structuredClone(l2e), Ucr = cn.packet, Vcr = /* @__PURE__ */ x(() => { +}, mB = structuredClone(l2e), qcr = cn.packet, Ycr = /* @__PURE__ */ x(() => { const t = Nh({ - ...Ucr, + ...qcr, ...Ai().packet }); return t.showBits && (t.paddingY += 10), t; -}, "getConfig"), qcr = /* @__PURE__ */ x(() => mB.packet, "getPacket"), Ycr = /* @__PURE__ */ x((t) => { +}, "getConfig"), Wcr = /* @__PURE__ */ x(() => mB.packet, "getPacket"), Gcr = /* @__PURE__ */ x((t) => { t.length > 0 && mB.packet.push(t); -}, "pushWord"), Wcr = /* @__PURE__ */ x(() => { +}, "pushWord"), Xcr = /* @__PURE__ */ x(() => { ls(), mB = structuredClone(l2e); }, "clear"), hg = { - pushWord: Ycr, - getPacket: qcr, - getConfig: Vcr, - clear: Wcr, + pushWord: Gcr, + getPacket: Wcr, + getConfig: Ycr, + clear: Xcr, setAccTitle: cs, getAccTitle: Ds, setDiagramTitle: Na, getDiagramTitle: Is, getAccDescription: Ns, setAccDescription: Ps -}, Gcr = 1e4, Xcr = /* @__PURE__ */ x((t) => { +}, Hcr = 1e4, Zcr = /* @__PURE__ */ x((t) => { kw(t, hg); let e = -1, r = [], n = 1; const { bitsPerRow: i } = hg.getConfig(); @@ -116853,15 +116859,15 @@ var l2e = { throw new Error( `Packet block ${s} - ${a != null ? a : s} is not contiguous. It should start from ${e + 1}.` ); - for (e = a != null ? a : s, H.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && hg.getPacket().length < Gcr; ) { - const [l, u] = Hcr({ start: s, end: a, label: o }, n, i); + for (e = a != null ? a : s, H.debug(`Packet block ${s} - ${e} with label ${o}`); r.length <= i + 1 && hg.getPacket().length < Hcr; ) { + const [l, u] = jcr({ start: s, end: a, label: o }, n, i); if (r.push(l), l.end + 1 === n * i && (hg.pushWord(r), r = [], n++), !u) break; ({ start: s, end: a, label: o } = u); } } hg.pushWord(r); -}, "populate"), Hcr = /* @__PURE__ */ x((t, e, r) => { +}, "populate"), jcr = /* @__PURE__ */ x((t, e, r) => { if (t.end === void 0 && (t.end = t.start), t.start > t.end) throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`); return t.end + 1 <= e * r ? [t, void 0] : [ @@ -116876,18 +116882,18 @@ var l2e = { label: t.label } ]; -}, "getNextFittingBlock"), Zcr = { +}, "getNextFittingBlock"), Kcr = { parse: /* @__PURE__ */ x(async (t) => { const e = await J1("packet", t); - H.debug(e), Xcr(e); + H.debug(e), Zcr(e); }, "parse") -}, jcr = /* @__PURE__ */ x((t, e, r, n) => { +}, Jcr = /* @__PURE__ */ x((t, e, r, n) => { const i = n.db, s = i.getConfig(), { rowHeight: a, paddingY: o, bitWidth: l, bitsPerRow: u } = s, h = i.getPacket(), f = i.getDiagramTitle(), d = a + o, p = d * (h.length + 1) - (f ? 0 : a), g = l * u + 2, m = _p(e); m.attr("viewbox", `0 0 ${g} ${p}`), Ms(m, p, g, s.useMaxWidth); for (const [v, y] of h.entries()) - Kcr(m, y, v, s); + eur(m, y, v, s); m.append("text").text(f).attr("x", g / 2).attr("y", p - d / 2).attr("dominant-baseline", "middle").attr("text-anchor", "middle").attr("class", "packetTitle"); -}, "draw"), Kcr = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { +}, "draw"), eur = /* @__PURE__ */ x((t, e, r, { rowHeight: n, paddingX: i, paddingY: s, bitWidth: a, bitsPerRow: o, showBits: l }) => { const u = t.append("g"), h = r * (n + s) + s; for (const f of e) { const d = f.start % o * a + 1, p = (f.end - f.start + 1) * a - i; @@ -116896,7 +116902,7 @@ var l2e = { const g = f.end === f.start, m = h - 2; u.append("text").attr("x", d + (g ? p / 2 : 0)).attr("y", m).attr("class", "packetByte start").attr("dominant-baseline", "auto").attr("text-anchor", g ? "middle" : "start").text(f.start), g || u.append("text").attr("x", d + p).attr("y", m).attr("class", "packetByte end").attr("dominant-baseline", "auto").attr("text-anchor", "end").text(f.end); } -}, "drawWord"), Jcr = { draw: jcr }, eur = { +}, "drawWord"), tur = { draw: Jcr }, rur = { byteFontSize: "10px", startByteColor: "black", endByteColor: "black", @@ -116907,8 +116913,8 @@ var l2e = { blockStrokeColor: "black", blockStrokeWidth: "1", blockFillColor: "#efefef" -}, tur = /* @__PURE__ */ x(({ packet: t } = {}) => { - const e = Nh(eur, t); +}, nur = /* @__PURE__ */ x(({ packet: t } = {}) => { + const e = Nh(rur, t); return ` .packetByte { font-size: ${e.byteFontSize}; @@ -116933,15 +116939,15 @@ var l2e = { fill: ${e.blockFillColor}; } `; -}, "styles"), rur = { - parser: Zcr, +}, "styles"), iur = { + parser: Kcr, db: hg, - renderer: Jcr, - styles: tur + renderer: tur, + styles: nur }; -const nur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const sur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: rur + diagram: iur }, Symbol.toStringTag, { value: "Module" })); var _M = function() { var t = /* @__PURE__ */ x(function(w, O, S, C) { @@ -117527,20 +117533,20 @@ Expecting ` + K.join(", ") + ", got '" + (this.terminals_[W] || W) + "'" : oe = return x(b, "Parser"), b.prototype = v, v.Parser = b, new b(); }(); _M.parser = _M; -var iur = _M, ec = /* @__PURE__ */ new Map(), vB = [], AM = /* @__PURE__ */ new Map(), mj = "color", vj = "fill", sur = "bgFill", c2e = ",", aur = ke(), yT = /* @__PURE__ */ new Map(), our = /* @__PURE__ */ x((t) => mt.sanitizeText(t, aur), "sanitizeText"), lur = /* @__PURE__ */ x(function(t, e = "") { +var aur = _M, ec = /* @__PURE__ */ new Map(), vB = [], AM = /* @__PURE__ */ new Map(), mj = "color", vj = "fill", our = "bgFill", c2e = ",", lur = ke(), yT = /* @__PURE__ */ new Map(), cur = /* @__PURE__ */ x((t) => mt.sanitizeText(t, lur), "sanitizeText"), uur = /* @__PURE__ */ x(function(t, e = "") { let r = yT.get(t); r || (r = { id: t, styles: [], textStyles: [] }, yT.set(t, r)), e != null && e.split(c2e).forEach((n) => { const i = n.replace(/([^;]*);/, "$1").trim(); if (RegExp(mj).exec(n)) { - const a = i.replace(vj, sur).replace(mj, vj); + const a = i.replace(vj, our).replace(mj, vj); r.textStyles.push(a); } r.styles.push(i); }); -}, "addStyleClass"), cur = /* @__PURE__ */ x(function(t, e = "") { +}, "addStyleClass"), hur = /* @__PURE__ */ x(function(t, e = "") { const r = ec.get(t); e != null && (r.styles = e.split(c2e)); -}, "addStyle2Node"), uur = /* @__PURE__ */ x(function(t, e) { +}, "addStyle2Node"), fur = /* @__PURE__ */ x(function(t, e) { t.split(",").forEach(function(r) { let n = ec.get(r); if (n === void 0) { @@ -117553,16 +117559,16 @@ var iur = _M, ec = /* @__PURE__ */ new Map(), vB = [], AM = /* @__PURE__ */ new var i, s, a, o; const r = t.flat(), n = []; for (const l of r) { - if (l.label && (l.label = our(l.label)), l.type === "classDef") { - lur(l.id, l.css); + if (l.label && (l.label = cur(l.label)), l.type === "classDef") { + uur(l.id, l.css); continue; } if (l.type === "applyClass") { - uur(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); + fur(l.id, (i = l == null ? void 0 : l.styleClass) != null ? i : ""); continue; } if (l.type === "applyStyles") { - l != null && l.stylesStr && cur(l.id, l == null ? void 0 : l.stylesStr); + l != null && l.stylesStr && hur(l.id, l == null ? void 0 : l.stylesStr); continue; } if (l.type === "column-setting") @@ -117584,7 +117590,7 @@ var iur = _M, ec = /* @__PURE__ */ new Map(), vB = [], AM = /* @__PURE__ */ new } } e.children = n; -}, "populateBlockDatabase"), yB = [], a2 = { id: "root", type: "composite", children: [], columns: -1 }, hur = /* @__PURE__ */ x(() => { +}, "populateBlockDatabase"), yB = [], a2 = { id: "root", type: "composite", children: [], columns: -1 }, dur = /* @__PURE__ */ x(() => { H.debug("Clear called"), ls(), a2 = { id: "root", type: "composite", children: [], columns: -1 }, ec = /* @__PURE__ */ new Map([["root", a2]]), yB = [], yT = /* @__PURE__ */ new Map(), vB = [], AM = /* @__PURE__ */ new Map(); }, "clear"); function h2e(t) { @@ -117644,35 +117650,35 @@ function d2e(t) { } } x(d2e, "edgeStrToEdgeData"); -var yj = 0, fur = /* @__PURE__ */ x(() => (yj++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + yj), "generateId"), dur = /* @__PURE__ */ x((t) => { +var yj = 0, pur = /* @__PURE__ */ x(() => (yj++, "id-" + Math.random().toString(36).substr(2, 12) + "-" + yj), "generateId"), gur = /* @__PURE__ */ x((t) => { a2.children = t, u2e(t, a2), yB = a2.children; -}, "setHierarchy"), pur = /* @__PURE__ */ x((t) => { +}, "setHierarchy"), mur = /* @__PURE__ */ x((t) => { const e = ec.get(t); return e ? e.columns ? e.columns : e.children ? e.children.length : -1 : -1; -}, "getColumns"), gur = /* @__PURE__ */ x(() => [...ec.values()], "getBlocksFlat"), mur = /* @__PURE__ */ x(() => yB || [], "getBlocks"), vur = /* @__PURE__ */ x(() => vB, "getEdges"), yur = /* @__PURE__ */ x((t) => ec.get(t), "getBlock"), bur = /* @__PURE__ */ x((t) => { +}, "getColumns"), vur = /* @__PURE__ */ x(() => [...ec.values()], "getBlocksFlat"), yur = /* @__PURE__ */ x(() => yB || [], "getBlocks"), bur = /* @__PURE__ */ x(() => vB, "getEdges"), xur = /* @__PURE__ */ x((t) => ec.get(t), "getBlock"), wur = /* @__PURE__ */ x((t) => { ec.set(t.id, t); -}, "setBlock"), xur = /* @__PURE__ */ x(() => console, "getLogger"), wur = /* @__PURE__ */ x(function() { +}, "setBlock"), Our = /* @__PURE__ */ x(() => console, "getLogger"), kur = /* @__PURE__ */ x(function() { return yT; -}, "getClasses"), Our = { +}, "getClasses"), Sur = { getConfig: /* @__PURE__ */ x(() => Ai().block, "getConfig"), typeStr2Type: h2e, edgeTypeStr2Type: f2e, edgeStrToEdgeData: d2e, - getLogger: xur, - getBlocksFlat: gur, - getBlocks: mur, - getEdges: vur, - setHierarchy: dur, - getBlock: yur, - setBlock: bur, - getColumns: pur, - getClasses: wur, - clear: hur, - generateId: fur -}, kur = Our, U4 = /* @__PURE__ */ x((t, e) => { + getLogger: Our, + getBlocksFlat: vur, + getBlocks: yur, + getEdges: bur, + setHierarchy: gur, + getBlock: xur, + setBlock: wur, + getColumns: mur, + getClasses: kur, + clear: dur, + generateId: pur +}, Tur = Sur, U4 = /* @__PURE__ */ x((t, e) => { const r = Dse, n = r(t, "r"), i = r(t, "g"), s = r(t, "b"); return k0(n, i, s, e); -}, "fade"), Sur = /* @__PURE__ */ x((t) => `.label { +}, "fade"), Cur = /* @__PURE__ */ x((t) => `.label { font-family: ${t.fontFamily}; color: ${t.nodeTextColor || t.textColor}; } @@ -117784,7 +117790,7 @@ var yj = 0, fur = /* @__PURE__ */ x(() => (yj++, "id-" + Math.random().toString( font-size: 18px; fill: ${t.textColor}; } -`, "getStyles"), Tur = Sur, Sj, Tj, Cj, li = (Cj = (Tj = (Sj = ke()) == null ? void 0 : Sj.block) == null ? void 0 : Tj.padding) != null ? Cj : 8; +`, "getStyles"), Eur = Cur, Sj, Tj, Cj, li = (Cj = (Tj = (Sj = ke()) == null ? void 0 : Sj.block) == null ? void 0 : Tj.padding) != null ? Cj : 8; function p2e(t, e) { if (t === 0 || !Number.isInteger(t)) throw new Error("Columns must be an integer !== 0."); @@ -117798,7 +117804,7 @@ function p2e(t, e) { return { px: r, py: n }; } x(p2e, "calculateBlockPosition"); -var Cur = /* @__PURE__ */ x((t) => { +var _ur = /* @__PURE__ */ x((t) => { var n, i; let e = 0, r = 0; for (const s of t.children) { @@ -117839,7 +117845,7 @@ function bT(t, e, r = 0, n = 0) { if (((l = t.children) == null ? void 0 : l.length) > 0) { for (const L of t.children) bT(L, e); - const S = Cur(t); + const S = _ur(t); i = S.width, s = S.height, H.debug("setBlockSizes abc95 maxWidth of", t.id, ":s children is ", i, s); for (const L of t.children) L.size && (H.debug( @@ -118124,9 +118130,9 @@ async function x2e(t, e, r, n, i) { } } x(x2e, "insertEdges"); -var Eur = /* @__PURE__ */ x(function(t, e) { +var Aur = /* @__PURE__ */ x(function(t, e) { return e.db.getClasses(); -}, "getClasses"), _ur = /* @__PURE__ */ x(async function(t, e, r, n) { +}, "getClasses"), Lur = /* @__PURE__ */ x(async function(t, e, r, n) { const { securityLevel: i, block: s } = Ai(), a = n.db; let o; i === "sandbox" && (o = ht("#i" + e)); @@ -118142,21 +118148,21 @@ var Eur = /* @__PURE__ */ x(function(t, e) { `${v.x - 5} ${v.y - 5} ${v.width + 10} ${v.height + 10}` ); } -}, "draw"), Aur = { - draw: _ur, - getClasses: Eur -}, Lur = { - parser: iur, - db: kur, - renderer: Aur, - styles: Tur +}, "draw"), Rur = { + draw: Lur, + getClasses: Aur +}, Mur = { + parser: aur, + db: Tur, + renderer: Rur, + styles: Eur }; -const Rur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const Dur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: Lur + diagram: Mur }, Symbol.toStringTag, { value: "Module" })); var w2e = { exports: {} }, x7 = { exports: {} }, w7 = { exports: {} }, bj; -function Mur() { +function Pur() { return bj || (bj = 1, function(t, e) { (function(n, i) { t.exports = i(); @@ -119986,10 +119992,10 @@ function Mur() { }(w7)), w7.exports; } var xj; -function Dur() { +function Nur() { return xj || (xj = 1, function(t, e) { (function(n, i) { - t.exports = i(Mur()); + t.exports = i(Pur()); })(wa, function(r) { return (() => { var n = { @@ -121185,7 +121191,7 @@ function Dur() { } (function(t, e) { (function(n, i) { - t.exports = i(Dur()); + t.exports = i(Nur()); })(wa, function(r) { return (() => { var n = { @@ -121783,7 +121789,7 @@ function Dur() { })(); }); })(w2e); -const Pur = w2e.exports; +const Iur = w2e.exports; var wj = { L: "left", R: "right", @@ -121799,7 +121805,7 @@ var wj = { R: /* @__PURE__ */ x((t, e) => t - 2, "R"), T: /* @__PURE__ */ x((t, e) => t - e + 2, "T"), B: /* @__PURE__ */ x((t, e) => t - 2, "B") -}, Nur = /* @__PURE__ */ x(function(t) { +}, $ur = /* @__PURE__ */ x(function(t) { return Ya(t) ? t === "L" ? "R" : "L" : t === "T" ? "B" : "T"; }, "getOppositeArchitectureDirection"), kj = /* @__PURE__ */ x(function(t) { const e = t; @@ -121813,22 +121819,22 @@ var wj = { }, "isArchitectureDirectionY"), O2e = /* @__PURE__ */ x(function(t, e) { const r = Ya(t) && hd(e), n = hd(t) && Ya(e); return r || n; -}, "isArchitectureDirectionXY"), Iur = /* @__PURE__ */ x(function(t) { +}, "isArchitectureDirectionXY"), Bur = /* @__PURE__ */ x(function(t) { const e = t[0], r = t[1], n = Ya(e) && hd(r), i = hd(e) && Ya(r); return n || i; -}, "isArchitecturePairXY"), $ur = /* @__PURE__ */ x(function(t) { +}, "isArchitecturePairXY"), Fur = /* @__PURE__ */ x(function(t) { return t !== "LL" && t !== "RR" && t !== "TT" && t !== "BB"; }, "isValidArchitectureDirectionPair"), LM = /* @__PURE__ */ x(function(t, e) { const r = `${t}${e}`; - return $ur(r) ? r : void 0; -}, "getArchitectureDirectionPair"), Bur = /* @__PURE__ */ x(function([t, e], r) { + return Fur(r) ? r : void 0; +}, "getArchitectureDirectionPair"), zur = /* @__PURE__ */ x(function([t, e], r) { const n = r[0], i = r[1]; return Ya(n) ? hd(i) ? [t + (n === "L" ? -1 : 1), e + (i === "T" ? 1 : -1)] : [t + (n === "L" ? -1 : 1), e] : Ya(i) ? [t + (i === "L" ? 1 : -1), e + (n === "T" ? 1 : -1)] : [t, e + (n === "T" ? 1 : -1)]; -}, "shiftPositionByArchitectureDirectionPair"), Fur = /* @__PURE__ */ x(function(t) { +}, "shiftPositionByArchitectureDirectionPair"), Qur = /* @__PURE__ */ x(function(t) { return t === "LT" || t === "TL" ? [1, 1] : t === "BL" || t === "LB" ? [1, -1] : t === "BR" || t === "RB" ? [-1, -1] : [-1, 1]; -}, "getArchitectureDirectionXYFactors"), zur = /* @__PURE__ */ x(function(t) { +}, "getArchitectureDirectionXYFactors"), Uur = /* @__PURE__ */ x(function(t) { return t.type === "service"; -}, "isArchitectureService"), Qur = /* @__PURE__ */ x(function(t) { +}, "isArchitectureService"), Vur = /* @__PURE__ */ x(function(t) { return t.type === "junction"; }, "isArchitectureJunction"), k2e = /* @__PURE__ */ x((t) => t.data(), "edgeData"), Cg = /* @__PURE__ */ x((t) => t.data(), "nodeData"), S2e = cn.architecture, kr = new AI(() => ({ nodes: {}, @@ -121838,9 +121844,9 @@ var wj = { config: S2e, dataStructures: void 0, elements: {} -})), Uur = /* @__PURE__ */ x(() => { +})), qur = /* @__PURE__ */ x(() => { kr.reset(), ls(); -}, "clear"), Vur = /* @__PURE__ */ x(function({ +}, "clear"), Yur = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, @@ -121870,14 +121876,14 @@ var wj = { edges: [], in: r }; -}, "addService"), qur = /* @__PURE__ */ x(() => Object.values(kr.records.nodes).filter(zur), "getServices"), Yur = /* @__PURE__ */ x(function({ id: t, in: e }) { +}, "addService"), Wur = /* @__PURE__ */ x(() => Object.values(kr.records.nodes).filter(Uur), "getServices"), Gur = /* @__PURE__ */ x(function({ id: t, in: e }) { kr.records.registeredIds[t] = "node", kr.records.nodes[t] = { id: t, type: "junction", edges: [], in: e }; -}, "addJunction"), Wur = /* @__PURE__ */ x(() => Object.values(kr.records.nodes).filter(Qur), "getJunctions"), Gur = /* @__PURE__ */ x(() => Object.values(kr.records.nodes), "getNodes"), Xur = /* @__PURE__ */ x((t) => kr.records.nodes[t], "getNode"), Hur = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { +}, "addJunction"), Xur = /* @__PURE__ */ x(() => Object.values(kr.records.nodes).filter(Vur), "getJunctions"), Hur = /* @__PURE__ */ x(() => Object.values(kr.records.nodes), "getNodes"), Zur = /* @__PURE__ */ x((t) => kr.records.nodes[t], "getNode"), jur = /* @__PURE__ */ x(function({ id: t, icon: e, in: r, title: n }) { if (kr.records.registeredIds[t] !== void 0) throw new Error( `The group id [${t}] is already in use by another ${kr.records.registeredIds[t]}` @@ -121898,7 +121904,7 @@ var wj = { title: n, in: r }; -}, "addGroup"), Zur = /* @__PURE__ */ x(() => Object.values(kr.records.groups), "getGroups"), jur = /* @__PURE__ */ x(function({ +}, "addGroup"), Kur = /* @__PURE__ */ x(() => Object.values(kr.records.groups), "getGroups"), Jur = /* @__PURE__ */ x(function({ lhsId: t, rhsId: e, lhsDir: r, @@ -121946,7 +121952,7 @@ var wj = { title: l }; kr.records.edges.push(f), kr.records.nodes[t] && kr.records.nodes[e] && (kr.records.nodes[t].edges.push(kr.records.edges[kr.records.edges.length - 1]), kr.records.nodes[e].edges.push(kr.records.edges[kr.records.edges.length - 1])); -}, "addEdge"), Kur = /* @__PURE__ */ x(() => kr.records.edges, "getEdges"), Jur = /* @__PURE__ */ x(() => { +}, "addEdge"), ehr = /* @__PURE__ */ x(() => kr.records.edges, "getEdges"), thr = /* @__PURE__ */ x(() => { if (kr.records.dataStructures === void 0) { const t = Object.entries(kr.records.nodes).reduce((a, [o, l]) => (a[o] = l.edges.reduce((u, h) => { if (h.lhsId === o) { @@ -121968,7 +121974,7 @@ var wj = { r[u] = 1, delete n[u]; const h = t[u], [f, d] = o[u]; Object.entries(h).forEach(([p, g]) => { - r[g] || (o[g] = Bur( + r[g] || (o[g] = zur( [f, d], p ), l.push(g)); @@ -121985,43 +121991,43 @@ var wj = { }; } return kr.records.dataStructures; -}, "getDataStructures"), ehr = /* @__PURE__ */ x((t, e) => { +}, "getDataStructures"), rhr = /* @__PURE__ */ x((t, e) => { kr.records.elements[t] = e; -}, "setElementForId"), thr = /* @__PURE__ */ x((t) => kr.records.elements[t], "getElementById"), xT = { - clear: Uur, +}, "setElementForId"), nhr = /* @__PURE__ */ x((t) => kr.records.elements[t], "getElementById"), xT = { + clear: qur, setDiagramTitle: Na, getDiagramTitle: Is, setAccTitle: cs, getAccTitle: Ds, setAccDescription: Ps, getAccDescription: Ns, - addService: Vur, - getServices: qur, - addJunction: Yur, - getJunctions: Wur, - getNodes: Gur, - getNode: Xur, - addGroup: Hur, - getGroups: Zur, - addEdge: jur, - getEdges: Kur, - setElementForId: ehr, - getElementById: thr, - getDataStructures: Jur + addService: Yur, + getServices: Wur, + addJunction: Gur, + getJunctions: Xur, + getNodes: Hur, + getNode: Zur, + addGroup: jur, + getGroups: Kur, + addEdge: Jur, + getEdges: ehr, + setElementForId: rhr, + getElementById: nhr, + getDataStructures: thr }; function qi(t) { const e = ke().architecture; return e != null && e[t] ? e[t] : S2e[t]; } x(qi, "getConfigField"); -var rhr = /* @__PURE__ */ x((t, e) => { +var ihr = /* @__PURE__ */ x((t, e) => { kw(t, e), t.groups.map(e.addGroup), t.services.map((r) => e.addService({ ...r, type: "service" })), t.junctions.map((r) => e.addJunction({ ...r, type: "junction" })), t.edges.map(e.addEdge); -}, "populateDb"), nhr = { +}, "populateDb"), shr = { parse: /* @__PURE__ */ x(async (t) => { const e = await J1("architecture", t); - H.debug(e), rhr(e, xT); + H.debug(e), ihr(e, xT); }, "parse") -}, ihr = /* @__PURE__ */ x((t) => ` +}, ahr = /* @__PURE__ */ x((t) => ` .edge { stroke-width: ${t.archEdgeWidth}; stroke: ${t.archEdgeColor}; @@ -122052,7 +122058,7 @@ var rhr = /* @__PURE__ */ x((t, e) => { display: -webkit-box; -webkit-box-orient: vertical; } -`, "getStyles"), shr = ihr, rg = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), Wb = { +`, "getStyles"), ohr = ahr, rg = /* @__PURE__ */ x((t) => `${t}`, "wrapIcon"), Wb = { prefix: "mermaid-architecture", height: 80, width: 80, @@ -122087,7 +122093,7 @@ var rhr = /* @__PURE__ */ x((t, e) => { body: rg("") } } -}, ahr = /* @__PURE__ */ x(async function(t, e) { +}, lhr = /* @__PURE__ */ x(async function(t, e) { const r = qi("padding"), n = qi("iconSize"), i = n / 2, s = n / 6, a = s / 2; await Promise.all( e.edges().map(async (o) => { @@ -122137,8 +122143,8 @@ var rhr = /* @__PURE__ */ x((t, e) => { $.attr("transform", "translate(" + w + ", " + O + ") rotate(-90)"); else if (_ === "XY") { const k = LM(u, p); - if (k && Iur(k)) { - const N = $.node().getBoundingClientRect(), [M, D] = Fur(k); + if (k && Bur(k)) { + const N = $.node().getBoundingClientRect(), [M, D] = Qur(k); $.attr("dominant-baseline", "auto").attr("transform", `rotate(${-1 * M * D * 45})`); const P = $.node().getBoundingClientRect(); $.attr( @@ -122155,7 +122161,7 @@ var rhr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawEdges"), ohr = /* @__PURE__ */ x(async function(t, e) { +}, "drawEdges"), chr = /* @__PURE__ */ x(async function(t, e) { const n = qi("padding") * 0.75, i = qi("fontSize"), a = qi("iconSize") / 2; await Promise.all( e.nodes().map(async (o) => { @@ -122193,7 +122199,7 @@ var rhr = /* @__PURE__ */ x((t, e) => { } }) ); -}, "drawGroups"), lhr = /* @__PURE__ */ x(async function(t, e, r) { +}, "drawGroups"), uhr = /* @__PURE__ */ x(async function(t, e, r) { var n; for (const i of r) { const s = e.append("g"), a = qi("iconSize"); @@ -122233,7 +122239,7 @@ var rhr = /* @__PURE__ */ x((t, e) => { i.width = l, i.height = u, t.setElementForId(i.id, s); } return 0; -}, "drawServices"), chr = /* @__PURE__ */ x(function(t, e, r) { +}, "drawServices"), hhr = /* @__PURE__ */ x(function(t, e, r) { r.forEach((n) => { const i = e.append("g"), s = qi("iconSize"); i.append("g").append("rect").attr("id", "node-" + n.id).attr("fill-opacity", "0").attr("width", s).attr("height", s), i.attr("class", "architecture-junction"); @@ -122247,7 +122253,7 @@ oae([ icons: Wb } ]); -du.use(Pur); +du.use(Iur); function T2e(t, e) { t.forEach((r) => { e.add({ @@ -122375,7 +122381,7 @@ function R2e(t) { const g = r([f[0] + p[0], f[1] + p[1]]), m = s[g]; m && !o[g] && (a.push(g), e.push({ [wj[d]]: m, - [wj[Nur(d)]]: h, + [wj[$ur(d)]]: h, gap: 1.5 * qi("iconSize") })); }); @@ -122512,51 +122518,51 @@ function M2e(t, e, r, n, { spatialMaps: i }) { }); } x(M2e, "layoutArchitecture"); -var uhr = /* @__PURE__ */ x(async (t, e, r, n) => { +var fhr = /* @__PURE__ */ x(async (t, e, r, n) => { const i = n.db, s = i.getServices(), a = i.getJunctions(), o = i.getGroups(), l = i.getEdges(), u = i.getDataStructures(), h = _p(e), f = h.append("g"); f.attr("class", "architecture-edges"); const d = h.append("g"); d.attr("class", "architecture-services"); const p = h.append("g"); - p.attr("class", "architecture-groups"), await lhr(i, d, s), chr(i, d, a); + p.attr("class", "architecture-groups"), await uhr(i, d, s), hhr(i, d, a); const g = await M2e(s, a, o, l, u); - await ahr(f, g), await ohr(p, g), E2e(i, g), D1(void 0, h, qi("padding"), qi("useMaxWidth")); -}, "draw"), hhr = { draw: uhr }, fhr = { - parser: nhr, + await lhr(f, g), await chr(p, g), E2e(i, g), D1(void 0, h, qi("padding"), qi("useMaxWidth")); +}, "draw"), dhr = { draw: fhr }, phr = { + parser: shr, db: xT, - renderer: hhr, - styles: shr + renderer: dhr, + styles: ohr }; -const dhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +const ghr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, - diagram: fhr -}, Symbol.toStringTag, { value: "Module" })), phr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ + diagram: phr +}, Symbol.toStringTag, { value: "Module" })), mhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, InfoModule: Rge, createInfoServices: Mge -}, Symbol.toStringTag, { value: "Module" })), ghr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), vhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, PacketModule: Dge, createPacketServices: Pge -}, Symbol.toStringTag, { value: "Module" })), mhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), yhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, PieModule: Nge, createPieServices: Ige -}, Symbol.toStringTag, { value: "Module" })), vhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), bhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, ArchitectureModule: $ge, createArchitectureServices: Bge -}, Symbol.toStringTag, { value: "Module" })), yhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ +}, Symbol.toStringTag, { value: "Module" })), xhr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, GitGraphModule: Age, createGitGraphServices: Lge }, Symbol.toStringTag, { value: "Module" })); export { - Ohr as MystEditorGit, + Shr as MystEditorGit, Zhe as MystEditorPreact, Sv as batch, sP as computed, - khr as default, + Thr as default, a7t as defaultButtons, nC as effect, Qv as predefinedButtons, diff --git a/docs/collaboration.html b/docs/collaboration.html index 57420ca..e4b0649 100644 --- a/docs/collaboration.html +++ b/docs/collaboration.html @@ -472,7 +472,7 @@

Other Collaborative Features6aec69a5 + 96959578 @ main diff --git a/docs/comments.html b/docs/comments.html index 5d2de2a..0c88a0c 100644 --- a/docs/comments.html +++ b/docs/comments.html @@ -622,7 +622,7 @@

Suggestions - 6aec69a5 + 96959578 @ main diff --git a/docs/genindex.html b/docs/genindex.html index 831b23d..c65cb81 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -367,7 +367,7 @@ - 6aec69a5 + 96959578 @ main diff --git a/docs/index.html b/docs/index.html index 6a912ea..f3df119 100644 --- a/docs/index.html +++ b/docs/index.html @@ -426,7 +426,7 @@

MyST Editor - User Manual - 6aec69a5 + 96959578 @ main diff --git a/docs/introduction.html b/docs/introduction.html index a1e7f04..060eecd 100644 --- a/docs/introduction.html +++ b/docs/introduction.html @@ -426,7 +426,7 @@

Introduction - 6aec69a5 + 96959578 @ main diff --git a/docs/mermaid.html b/docs/mermaid.html index 0220da3..5e27246 100644 --- a/docs/mermaid.html +++ b/docs/mermaid.html @@ -430,7 +430,7 @@

Mermaid Diagrams6aec69a5 + 96959578 @ main diff --git a/docs/rich-links.html b/docs/rich-links.html index 212c71f..72afac7 100644 --- a/docs/rich-links.html +++ b/docs/rich-links.html @@ -506,7 +506,7 @@

View Mode Buttons6aec69a5 + 96959578 @ main