mio-previewer 0.1.8 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/_basePickBy-DX8HyU0P.cjs +1 -0
- package/dist/{_basePickBy-CFTZygnR.js → _basePickBy-DcS5DfHY.js} +8 -8
- package/dist/{_baseUniq-COpRdEZm.js → _baseUniq-l83jS7_4.js} +1 -1
- package/dist/_baseUniq-vU0U1MCI.cjs +1 -0
- package/dist/arc-B70jSpTY.cjs +1 -0
- package/dist/{arc-CA-zaVHH.js → arc-bi7W8tLs.js} +15 -15
- package/dist/{architecture-O4VJ6CD3-DhXiEYF9.js → architecture-O4VJ6CD3-C8ByyxUN.js} +1 -1
- package/dist/{architecture-O4VJ6CD3-CpYFg8kG.cjs → architecture-O4VJ6CD3-jex9YPqE.cjs} +1 -1
- package/dist/architectureDiagram-VXUJARFQ-BSJVVbTt.cjs +36 -0
- package/dist/{architectureDiagram-VXUJARFQ-CMDGkfwW.js → architectureDiagram-VXUJARFQ-b-BL2UdP.js} +132 -132
- package/dist/{blockDiagram-VD42YOAC-BboMD6jZ.cjs → blockDiagram-VD42YOAC-D4nmxP-J.cjs} +4 -4
- package/dist/{blockDiagram-VD42YOAC-B6yyyBoP.js → blockDiagram-VD42YOAC-DhCRAnFr.js} +45 -45
- package/dist/{c4Diagram-YG6GDRKO-CAnMUU5Q.cjs → c4Diagram-YG6GDRKO-Bp_YQG1M.cjs} +1 -1
- package/dist/{c4Diagram-YG6GDRKO-Bk3UfYds.js → c4Diagram-YG6GDRKO-CM4iNQrU.js} +2 -2
- package/dist/channel-Bt4_zqKM.cjs +1 -0
- package/dist/{channel-CGHeB_wL.js → channel-C7wjr4b0.js} +1 -1
- package/dist/chunk-4BX2VUAB-DN9_7iVV.cjs +1 -0
- package/dist/{chunk-4BX2VUAB-DQLiny3u.js → chunk-4BX2VUAB-InZ28TEE.js} +1 -1
- package/dist/chunk-55IACEB6-BssN5TPL.cjs +1 -0
- package/dist/{chunk-55IACEB6-BvzkNW0T.js → chunk-55IACEB6-DuQdcZe5.js} +3 -3
- package/dist/{chunk-B4BG7PRW-DNWDyosT.cjs → chunk-B4BG7PRW-BLtyK5WN.cjs} +3 -3
- package/dist/{chunk-B4BG7PRW-XH3xle9g.js → chunk-B4BG7PRW-CZmD1mOP.js} +10 -10
- package/dist/{chunk-DI55MBZ5-7cI7r4vk.js → chunk-DI55MBZ5-BhYOpZgL.js} +3 -3
- package/dist/{chunk-DI55MBZ5-DBabq0PW.cjs → chunk-DI55MBZ5-Cq5UKCn9.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-BSSIfQJH.cjs → chunk-FMBD7UC4-D8L83VzX.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-Z_IXsR9N.js → chunk-FMBD7UC4-DieuQ34J.js} +1 -1
- package/dist/chunk-QN33PNHL-BVzK2uit.cjs +1 -0
- package/dist/{chunk-QN33PNHL-dvg-wDdg.js → chunk-QN33PNHL-D-qtZN_m.js} +1 -1
- package/dist/chunk-QZHKN3VN-BVy_lsPP.cjs +1 -0
- package/dist/{chunk-QZHKN3VN-Chg9twhX.js → chunk-QZHKN3VN-iq-B0BYI.js} +1 -1
- package/dist/chunk-TZMSLE5B-BdG0scu4.cjs +1 -0
- package/dist/{chunk-TZMSLE5B-CIgbKyu_.js → chunk-TZMSLE5B-CLskNwI1.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-CC9xOx_t.js → classDiagram-2ON5EDUG-CRW-UrMH.js} +2 -2
- package/dist/classDiagram-2ON5EDUG-DynvEPIH.cjs +1 -0
- package/dist/{classDiagram-2ON5EDUG-CC9xOx_t.js → classDiagram-v2-WZHVMYZB-CRW-UrMH.js} +2 -2
- package/dist/classDiagram-v2-WZHVMYZB-DynvEPIH.cjs +1 -0
- package/dist/{clone-BrZZgHT6.js → clone-BTfuqUhz.js} +1 -1
- package/dist/clone-Tk5CWuEC.cjs +1 -0
- package/dist/cose-bilkent-S5V4N54A-BayjyXzv.cjs +1 -0
- package/dist/{cose-bilkent-S5V4N54A-CDs3BBYp.js → cose-bilkent-S5V4N54A-DWvW5ZH-.js} +1 -1
- package/dist/dagre-6UL2VRFP-CqJhtHGg.cjs +4 -0
- package/dist/{dagre-6UL2VRFP-BlMhpFnF.js → dagre-6UL2VRFP-CyO_II0i.js} +119 -119
- package/dist/diagram-PSM6KHXK-Deqqk-7H.cjs +24 -0
- package/dist/{diagram-PSM6KHXK-CoqSYWPX.js → diagram-PSM6KHXK-vEG2EZir.js} +53 -53
- package/dist/{diagram-QEK2KX5R-FqbXBaqH.js → diagram-QEK2KX5R-CcthhOYo.js} +20 -20
- package/dist/diagram-QEK2KX5R-CyVwjmz8.cjs +43 -0
- package/dist/{diagram-S2PKOQOG-u-4zOtyY.js → diagram-S2PKOQOG-C1nkRl8o.js} +23 -23
- package/dist/diagram-S2PKOQOG-D5cCXDLc.cjs +24 -0
- package/dist/{erDiagram-Q2GNP2WA-DWDeWLTL.cjs → erDiagram-Q2GNP2WA-BOk9K4o8.cjs} +1 -1
- package/dist/{erDiagram-Q2GNP2WA-CXn9GtvJ.js → erDiagram-Q2GNP2WA-DYZDQY9P.js} +4 -4
- package/dist/{flowDiagram-NV44I4VS-C60QhUiz.cjs → flowDiagram-NV44I4VS-CbBS7kpH.cjs} +3 -3
- package/dist/{flowDiagram-NV44I4VS-CvRJQSEg.js → flowDiagram-NV44I4VS-Cm5rGHKr.js} +14 -14
- package/dist/{ganttDiagram-LVOFAZNH-bsx5CB5d.js → ganttDiagram-LVOFAZNH-C9H8dTYM.js} +2 -2
- package/dist/ganttDiagram-LVOFAZNH-grl-NYJD.cjs +267 -0
- package/dist/{gitGraph-ZV4HHKMB-BjAayPSR.js → gitGraph-ZV4HHKMB-BMRuODZ5.js} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-kRwxNQnW.cjs → gitGraph-ZV4HHKMB-DQol4cxY.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-DPM59sAG.js → gitGraphDiagram-NY62KEGX-C8kfg2Wb.js} +45 -45
- package/dist/gitGraphDiagram-NY62KEGX-XHIAsakR.cjs +65 -0
- package/dist/graph-BP4aclXr.cjs +1 -0
- package/dist/{graph-CilVg985.js → graph-Cmal1ypF.js} +8 -8
- package/dist/info-63CPKGFF-BbRjNBBe.js +5 -0
- package/dist/{info-63CPKGFF-BKQtOsLZ.cjs → info-63CPKGFF-CxN4GUYe.cjs} +1 -1
- package/dist/{infoDiagram-F6ZHWCRC-B6bTTLIe.js → infoDiagram-F6ZHWCRC-D2_K2jLW.js} +2 -2
- package/dist/infoDiagram-F6ZHWCRC-DgwWwR_a.cjs +2 -0
- package/dist/{journeyDiagram-XKPGCS4Q-BKPpLUXu.js → journeyDiagram-XKPGCS4Q-BNauHD12.js} +4 -4
- package/dist/{journeyDiagram-XKPGCS4Q-CkWQvbbC.cjs → journeyDiagram-XKPGCS4Q-Cd1ptemy.cjs} +1 -1
- package/dist/{kanban-definition-3W4ZIXB7-DzI_mEvf.cjs → kanban-definition-3W4ZIXB7-BsVJ9Zr_.cjs} +2 -2
- package/dist/{kanban-definition-3W4ZIXB7-CLac2PpK.js → kanban-definition-3W4ZIXB7-aXwg7GQC.js} +44 -44
- package/dist/{layout-DOxjVt30.js → layout-CNXo_UYD.js} +4 -4
- package/dist/layout-UdmmrcAy.cjs +1 -0
- package/dist/{linear-nITCRSwN.js → linear-BJYenDkp.js} +25 -25
- package/dist/linear-yobfjqoN.cjs +1 -0
- package/dist/{mermaid-parser.core-YAHoRfr_.cjs → mermaid-parser.core-BGNM1z13.cjs} +2 -2
- package/dist/{mermaid-parser.core-BvyFzRhX.js → mermaid-parser.core-D65Eg7MW.js} +205 -205
- package/dist/{mindmap-definition-VGOIOE7T-8Pk45I0T.cjs → mindmap-definition-VGOIOE7T-BWwajGM9.cjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-BTlAV786.js → mindmap-definition-VGOIOE7T-Cj2T7UQL.js} +18 -18
- package/dist/mio-previewer.cjs.js +21 -13
- package/dist/mio-previewer.css +9 -1
- package/dist/mio-previewer.es.js +3647 -2009
- package/dist/{packet-HUATNLJX-Cn2d6cbh.js → packet-HUATNLJX-14SEU0O4.js} +1 -1
- package/dist/{packet-HUATNLJX-CNiEJWxQ.cjs → packet-HUATNLJX-Ckyin10q.cjs} +1 -1
- package/dist/{pie-WTHONI2E-CEUZL-GO.cjs → pie-WTHONI2E-BtmYKmK7.cjs} +1 -1
- package/dist/pie-WTHONI2E-C6yV7-lW.js +5 -0
- package/dist/{pieDiagram-ADFJNKIX-CgDIBKwo.js → pieDiagram-ADFJNKIX-BWiplVXs.js} +44 -44
- package/dist/pieDiagram-ADFJNKIX-DqeDsWS0.cjs +30 -0
- package/dist/plugins/custom.cjs.js +1 -1
- package/dist/plugins/custom.es.js +79 -5
- package/dist/{quadrantDiagram-AYHSOK5B-CExSZwWH.cjs → quadrantDiagram-AYHSOK5B-Bminc_qJ.cjs} +1 -1
- package/dist/{quadrantDiagram-AYHSOK5B-TlBxKPiG.js → quadrantDiagram-AYHSOK5B-FXg2sS-E.js} +2 -2
- package/dist/radar-NJJJXTRR-CF8VuBoZ.js +5 -0
- package/dist/{radar-NJJJXTRR-D3p36qrE.cjs → radar-NJJJXTRR-Dbtyn_33.cjs} +1 -1
- package/dist/{requirementDiagram-UZGBJVZJ-Dl5ijlU7.js → requirementDiagram-UZGBJVZJ-Ciz2mLOm.js} +27 -27
- package/dist/{requirementDiagram-UZGBJVZJ-BEcIIQ5C.cjs → requirementDiagram-UZGBJVZJ-Ct1bmEYE.cjs} +1 -1
- package/dist/{sankeyDiagram-TZEHDZUN-bIR5yy8v.js → sankeyDiagram-TZEHDZUN-B2xkf9t6.js} +56 -56
- package/dist/sankeyDiagram-TZEHDZUN-TSSR-gzu.cjs +10 -0
- package/dist/{sequenceDiagram-WL72ISMW-DT79Xx9V.js → sequenceDiagram-WL72ISMW-DIpwERDr.js} +3 -3
- package/dist/{sequenceDiagram-WL72ISMW-BG5OjhGw.cjs → sequenceDiagram-WL72ISMW-DtCHtJNZ.cjs} +9 -9
- package/dist/stateDiagram-FKZM4ZOC-B1VqtZxH.cjs +1 -0
- package/dist/{stateDiagram-FKZM4ZOC-CDfDuz0s.js → stateDiagram-FKZM4ZOC-DSCBCFG_.js} +16 -16
- package/dist/stateDiagram-v2-4FDKWEC3-CH9hsq70.cjs +1 -0
- package/dist/{stateDiagram-v2-4FDKWEC3-DroYR31A.js → stateDiagram-v2-4FDKWEC3-DeOAmcI6.js} +2 -2
- package/dist/{timeline-definition-IT6M3QCI-CzA493Rr.js → timeline-definition-IT6M3QCI-C2CJErQP.js} +24 -24
- package/dist/{timeline-definition-IT6M3QCI-BxCHgT34.cjs → timeline-definition-IT6M3QCI-Da0A3jAO.cjs} +5 -5
- package/dist/{treemap-75Q7IDZK-B7s32RV1.js → treemap-75Q7IDZK-BMEJe5sG.js} +1 -1
- package/dist/{treemap-75Q7IDZK-hLeVdex4.cjs → treemap-75Q7IDZK-obpm_ohS.cjs} +1 -1
- package/dist/types/composables/useImageViewerManager.d.ts +11 -0
- package/dist/types/main-image-viewer-demo.d.ts +1 -0
- package/dist/types/plugins/custom/imageViewerPlugin.d.ts +57 -0
- package/dist/types/plugins/custom/index.d.ts +2 -0
- package/dist/types/plugins/custom/mermaidPlugin.d.ts +15 -1
- package/dist/types/plugins/index.d.ts +2 -0
- package/dist/types/types.d.ts +23 -1
- package/dist/{cursorPlugin-vB5SgZWZ.cjs → viewer-3haLPWOp.cjs} +40 -40
- package/dist/{cursorPlugin-CLM_tkck.js → viewer-BVjz3IFH.js} +203 -202
- package/dist/{xychartDiagram-PRI3JC2R-DQLU-dCp.cjs → xychartDiagram-PRI3JC2R-DkdcvnXd.cjs} +1 -1
- package/dist/{xychartDiagram-PRI3JC2R-Bb_Kt4vj.js → xychartDiagram-PRI3JC2R-ttlQ38E3.js} +29 -29
- package/package.json +2 -1
- package/dist/_basePickBy-tPOC0EMH.cjs +0 -1
- package/dist/_baseUniq-DqpG5gxq.cjs +0 -1
- package/dist/arc-D6SpLjCN.cjs +0 -1
- package/dist/architectureDiagram-VXUJARFQ-C-ZDGP3T.cjs +0 -36
- package/dist/channel-By4yEUpY.cjs +0 -1
- package/dist/chunk-4BX2VUAB-r3h9zqZy.cjs +0 -1
- package/dist/chunk-55IACEB6-F8U2tzR2.cjs +0 -1
- package/dist/chunk-QN33PNHL-Cb-RTcJE.cjs +0 -1
- package/dist/chunk-QZHKN3VN-DR2ed2kF.cjs +0 -1
- package/dist/chunk-TZMSLE5B-D3CSz4N0.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-De8Dohf7.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-De8Dohf7.cjs +0 -1
- package/dist/clone-CXoO9ncp.cjs +0 -1
- package/dist/cose-bilkent-S5V4N54A-0DFD6rcw.cjs +0 -1
- package/dist/dagre-6UL2VRFP-DuUBkSw0.cjs +0 -4
- package/dist/diagram-PSM6KHXK-CmQ4F2JN.cjs +0 -24
- package/dist/diagram-QEK2KX5R-DqSiNmiR.cjs +0 -43
- package/dist/diagram-S2PKOQOG-DYEcRvla.cjs +0 -24
- package/dist/ganttDiagram-LVOFAZNH-DuTD48a9.cjs +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-DsyQIiCo.cjs +0 -65
- package/dist/graph-T55iHwif.cjs +0 -1
- package/dist/info-63CPKGFF-D-_lE7q9.js +0 -5
- package/dist/infoDiagram-F6ZHWCRC-Dfs9venE.cjs +0 -2
- package/dist/layout-LjH1X4pD.cjs +0 -1
- package/dist/linear-BZdfTIw6.cjs +0 -1
- package/dist/pie-WTHONI2E-COsOPmmh.js +0 -5
- package/dist/pieDiagram-ADFJNKIX-8mFQx_vI.cjs +0 -30
- package/dist/radar-NJJJXTRR-hKx4VhDB.js +0 -5
- package/dist/sankeyDiagram-TZEHDZUN-_AuPE8rx.cjs +0 -10
- package/dist/stateDiagram-FKZM4ZOC-CaZkY5ch.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-GfIoqgb_.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as oe } from "./chunk-FMBD7UC4-
|
|
2
|
-
import { _ as d,
|
|
3
|
-
import { c as Le } from "./clone-
|
|
4
|
-
import { G as Se } from "./graph-
|
|
5
|
-
import { c as ke } from "./channel-
|
|
1
|
+
import { g as oe } from "./chunk-FMBD7UC4-DieuQ34J.js";
|
|
2
|
+
import { _ as d, E as rt, d as O, e as he, l as L, y as de, A as ge, c as R, ai as ue, R as pe, S as fe, O as xe, aj as j, ak as Wt, al as ye, u as $, k as be, am as we, an as xt, i as yt, ao as me } from "./viewer-BVjz3IFH.js";
|
|
3
|
+
import { c as Le } from "./clone-BTfuqUhz.js";
|
|
4
|
+
import { G as Se } from "./graph-Cmal1ypF.js";
|
|
5
|
+
import { c as ke } from "./channel-C7wjr4b0.js";
|
|
6
6
|
var bt = (function() {
|
|
7
7
|
var e = /* @__PURE__ */ d(function(D, y, g, f) {
|
|
8
8
|
for (g = g || {}, f = D.length; f--; g[D[f]] = y) ;
|
|
@@ -190,7 +190,7 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : ft =
|
|
|
190
190
|
}
|
|
191
191
|
return !0;
|
|
192
192
|
}, "parse")
|
|
193
|
-
},
|
|
193
|
+
}, B = /* @__PURE__ */ (function() {
|
|
194
194
|
var D = {
|
|
195
195
|
EOF: 1,
|
|
196
196
|
parseError: /* @__PURE__ */ d(function(g, f) {
|
|
@@ -595,19 +595,19 @@ Expecting ` + it.join(", ") + ", got '" + (this.terminals_[F] || F) + "'" : ft =
|
|
|
595
595
|
};
|
|
596
596
|
return D;
|
|
597
597
|
})();
|
|
598
|
-
k.lexer =
|
|
598
|
+
k.lexer = B;
|
|
599
599
|
function _() {
|
|
600
600
|
this.yy = {};
|
|
601
601
|
}
|
|
602
602
|
return d(_, "Parser"), _.prototype = k, k.Parser = _, new _();
|
|
603
603
|
})();
|
|
604
604
|
bt.parser = bt;
|
|
605
|
-
var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Map(),
|
|
605
|
+
var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Map(), Bt = "color", Ct = "fill", Ee = "bgFill", Pt = ",", _e = R(), ct = /* @__PURE__ */ new Map(), De = /* @__PURE__ */ d((e) => be.sanitizeText(e, _e), "sanitizeText"), Ne = /* @__PURE__ */ d(function(e, t = "") {
|
|
606
606
|
let a = ct.get(e);
|
|
607
607
|
a || (a = { id: e, styles: [], textStyles: [] }, ct.set(e, a)), t?.split(Pt).forEach((i) => {
|
|
608
608
|
const l = i.replace(/([^;]*);/, "$1").trim();
|
|
609
|
-
if (RegExp(
|
|
610
|
-
const r = l.replace(
|
|
609
|
+
if (RegExp(Bt).exec(i)) {
|
|
610
|
+
const r = l.replace(Ct, Ee).replace(Bt, Ct);
|
|
611
611
|
a.textStyles.push(r);
|
|
612
612
|
}
|
|
613
613
|
a.styles.push(l);
|
|
@@ -615,7 +615,7 @@ var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Ma
|
|
|
615
615
|
}, "addStyleClass"), Te = /* @__PURE__ */ d(function(e, t = "") {
|
|
616
616
|
const a = X.get(e);
|
|
617
617
|
t != null && (a.styles = t.split(Pt));
|
|
618
|
-
}, "addStyle2Node"),
|
|
618
|
+
}, "addStyle2Node"), Be = /* @__PURE__ */ d(function(e, t) {
|
|
619
619
|
e.split(",").forEach(function(a) {
|
|
620
620
|
let i = X.get(a);
|
|
621
621
|
if (i === void 0) {
|
|
@@ -634,7 +634,7 @@ var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Ma
|
|
|
634
634
|
continue;
|
|
635
635
|
}
|
|
636
636
|
if (r.type === "applyClass") {
|
|
637
|
-
|
|
637
|
+
Be(r.id, r?.styleClass ?? "");
|
|
638
638
|
continue;
|
|
639
639
|
}
|
|
640
640
|
if (r.type === "applyStyles") {
|
|
@@ -659,7 +659,7 @@ var ve = bt, X = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Ma
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
t.children = i;
|
|
662
|
-
}, "populateBlockDatabase"), vt = [], et = { id: "root", type: "composite", children: [], columns: -1 },
|
|
662
|
+
}, "populateBlockDatabase"), vt = [], et = { id: "root", type: "composite", children: [], columns: -1 }, Ce = /* @__PURE__ */ d(() => {
|
|
663
663
|
L.debug("Clear called"), de(), et = { id: "root", type: "composite", children: [], columns: -1 }, X = /* @__PURE__ */ new Map([["root", et]]), vt = [], ct = /* @__PURE__ */ new Map(), kt = [], wt = /* @__PURE__ */ new Map();
|
|
664
664
|
}, "clear");
|
|
665
665
|
function Ht(e) {
|
|
@@ -744,7 +744,7 @@ var It = 0, Ie = /* @__PURE__ */ d(() => (It++, "id-" + Math.random().toString(3
|
|
|
744
744
|
setBlock: We,
|
|
745
745
|
getColumns: Re,
|
|
746
746
|
getClasses: Ye,
|
|
747
|
-
clear:
|
|
747
|
+
clear: Ce,
|
|
748
748
|
generateId: Ie
|
|
749
749
|
}, Ke = He, nt = /* @__PURE__ */ d((e, t) => {
|
|
750
750
|
const a = ke, i = a(e, "r"), l = a(e, "g"), s = a(e, "b");
|
|
@@ -894,7 +894,7 @@ var It = 0, Ie = /* @__PURE__ */ d(() => (It++, "id-" + Math.random().toString(3
|
|
|
894
894
|
circle: $e,
|
|
895
895
|
cross: tr,
|
|
896
896
|
barb: er
|
|
897
|
-
}, ar = je,
|
|
897
|
+
}, ar = je, C = R()?.block?.padding ?? 8;
|
|
898
898
|
function Ut(e, t) {
|
|
899
899
|
if (e === 0 || !Number.isInteger(e))
|
|
900
900
|
throw new Error("Columns must be an integer !== 0.");
|
|
@@ -952,7 +952,7 @@ function ot(e, t, a = 0, i = 0) {
|
|
|
952
952
|
for (const b of e.children)
|
|
953
953
|
b.size && (L.debug(
|
|
954
954
|
`abc95 Setting size of children of ${e.id} id=${b.id} ${l} ${s} ${JSON.stringify(b.size)}`
|
|
955
|
-
), b.size.width = l * (b.widthInColumns ?? 1) +
|
|
955
|
+
), b.size.width = l * (b.widthInColumns ?? 1) + C * ((b.widthInColumns ?? 1) - 1), b.size.height = s, b.size.x = 0, b.size.y = 0, L.debug(
|
|
956
956
|
`abc95 updating size of ${e.id} children child:${b.id} maxWidth:${l} maxHeight:${s}`
|
|
957
957
|
));
|
|
958
958
|
for (const b of e.children)
|
|
@@ -964,13 +964,13 @@ function ot(e, t, a = 0, i = 0) {
|
|
|
964
964
|
let u = e.children.length;
|
|
965
965
|
n > 0 && n < c && (u = n);
|
|
966
966
|
const o = Math.ceil(c / u);
|
|
967
|
-
let x = u * (l +
|
|
967
|
+
let x = u * (l + C) + C, w = o * (s + C) + C;
|
|
968
968
|
if (x < a) {
|
|
969
969
|
L.debug(
|
|
970
970
|
`Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${i} width ${x}`
|
|
971
971
|
), x = a, w = i;
|
|
972
|
-
const b = (a - u *
|
|
973
|
-
L.debug("Size indata abc88", e.id, "childWidth", b, "maxWidth", l), L.debug("Size indata abc88", e.id, "childHeight", S, "maxHeight", s), L.debug("Size indata abc88 xSize", u, "padding",
|
|
972
|
+
const b = (a - u * C - C) / u, S = (i - o * C - C) / o;
|
|
973
|
+
L.debug("Size indata abc88", e.id, "childWidth", b, "maxWidth", l), L.debug("Size indata abc88", e.id, "childHeight", S, "maxHeight", s), L.debug("Size indata abc88 xSize", u, "padding", C);
|
|
974
974
|
for (const v of e.children)
|
|
975
975
|
v.size && (v.size.width = b, v.size.height = S, v.size.x = 0, v.size.y = 0);
|
|
976
976
|
}
|
|
@@ -980,7 +980,7 @@ function ot(e, t, a = 0, i = 0) {
|
|
|
980
980
|
x = e?.size?.width || 0;
|
|
981
981
|
const b = n > 0 ? Math.min(e.children.length, n) : e.children.length;
|
|
982
982
|
if (b > 0) {
|
|
983
|
-
const S = (x - b *
|
|
983
|
+
const S = (x - b * C - C) / b;
|
|
984
984
|
L.debug("abc95 (growing to fit) width", e.id, x, e.size?.width, S);
|
|
985
985
|
for (const v of e.children)
|
|
986
986
|
v.size && (v.size.width = S);
|
|
@@ -1010,24 +1010,24 @@ function Et(e, t) {
|
|
|
1010
1010
|
const a = e.columns ?? -1;
|
|
1011
1011
|
if (L.debug("layoutBlocks columns abc95", e.id, "=>", a, e), e.children && // find max width of children
|
|
1012
1012
|
e.children.length > 0) {
|
|
1013
|
-
const i = e?.children[0]?.size?.width ?? 0, l = e.children.length * i + (e.children.length - 1) *
|
|
1013
|
+
const i = e?.children[0]?.size?.width ?? 0, l = e.children.length * i + (e.children.length - 1) * C;
|
|
1014
1014
|
L.debug("widthOfChildren 88", l, "posX");
|
|
1015
1015
|
let s = 0;
|
|
1016
1016
|
L.debug("abc91 block?.size?.x", e.id, e?.size?.x);
|
|
1017
|
-
let r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -
|
|
1017
|
+
let r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, n = 0;
|
|
1018
1018
|
for (const c of e.children) {
|
|
1019
1019
|
const u = e;
|
|
1020
1020
|
if (!c.size)
|
|
1021
1021
|
continue;
|
|
1022
1022
|
const { width: o, height: x } = c.size, { px: w, py: b } = Ut(a, s);
|
|
1023
|
-
if (b != n && (n = b, r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -
|
|
1024
|
-
`abc89 layout blocks (child) id: ${c.id} Pos: ${s} (px, py) ${w},${b} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${o}${
|
|
1023
|
+
if (b != n && (n = b, r = e?.size?.x ? e?.size?.x + (-e?.size?.width / 2 || 0) : -C, L.debug("New row in layout for block", e.id, " and child ", c.id, n)), L.debug(
|
|
1024
|
+
`abc89 layout blocks (child) id: ${c.id} Pos: ${s} (px, py) ${w},${b} (${u?.size?.x},${u?.size?.y}) parent: ${u.id} width: ${o}${C}`
|
|
1025
1025
|
), u.size) {
|
|
1026
1026
|
const v = o / 2;
|
|
1027
|
-
c.size.x = r +
|
|
1028
|
-
`abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${r} new startingPosX${c.size.x} ${v} padding=${
|
|
1029
|
-
), r = c.size.x + v, c.size.y = u.size.y - u.size.height / 2 + b * (x +
|
|
1030
|
-
`abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${r}${
|
|
1027
|
+
c.size.x = r + C + v, L.debug(
|
|
1028
|
+
`abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${r} new startingPosX${c.size.x} ${v} padding=${C} width=${o} halfWidth=${v} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${o * (c?.widthInColumns ?? 1) / 2}`
|
|
1029
|
+
), r = c.size.x + v, c.size.y = u.size.y - u.size.height / 2 + b * (x + C) + x / 2 + C, L.debug(
|
|
1030
|
+
`abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${r}${C}${v}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${o * (c?.widthInColumns ?? 1) / 2}`
|
|
1031
1031
|
);
|
|
1032
1032
|
}
|
|
1033
1033
|
c.children && Et(c);
|
|
@@ -1297,9 +1297,9 @@ var or = /* @__PURE__ */ d((e, t) => {
|
|
|
1297
1297
|
k += " edge-pattern-dashed";
|
|
1298
1298
|
break;
|
|
1299
1299
|
}
|
|
1300
|
-
const
|
|
1300
|
+
const B = e.append("path").attr("d", v(x)).attr("id", a.id).attr("class", " " + k + (a.classes ? " " + a.classes : "")).attr("style", a.style);
|
|
1301
1301
|
let _ = "";
|
|
1302
|
-
(R().flowchart.arrowMarkerAbsolute || R().state.arrowMarkerAbsolute) && (_ = xe(!0)), nr(
|
|
1302
|
+
(R().flowchart.arrowMarkerAbsolute || R().state.arrowMarkerAbsolute) && (_ = xe(!0)), nr(B, a, _, r, l);
|
|
1303
1303
|
let D = {};
|
|
1304
1304
|
return c && (D.updatedPath = n), D.originalPath = a.points, D;
|
|
1305
1305
|
}, "insertEdge"), ur = /* @__PURE__ */ d((e) => {
|
|
@@ -1469,9 +1469,9 @@ function Jt(e, t, a) {
|
|
|
1469
1469
|
d(Jt, "intersectCircle");
|
|
1470
1470
|
var xr = Jt;
|
|
1471
1471
|
function Qt(e, t, a, i) {
|
|
1472
|
-
var l, s, r, n, c, u, o, x, w, b, S, v, k,
|
|
1472
|
+
var l, s, r, n, c, u, o, x, w, b, S, v, k, B, _;
|
|
1473
1473
|
if (l = t.y - e.y, r = e.x - t.x, c = t.x * e.y - e.x * t.y, w = l * a.x + r * a.y + c, b = l * i.x + r * i.y + c, !(w !== 0 && b !== 0 && St(w, b)) && (s = i.y - a.y, n = a.x - i.x, u = i.x * a.y - a.x * i.y, o = s * e.x + n * e.y + u, x = s * t.x + n * t.y + u, !(o !== 0 && x !== 0 && St(o, x)) && (S = l * n - s * r, S !== 0)))
|
|
1474
|
-
return v = Math.abs(S / 2), k = r * u - n * c,
|
|
1474
|
+
return v = Math.abs(S / 2), k = r * u - n * c, B = k < 0 ? (k - v) / S : (k + v) / S, k = s * c - l * u, _ = k < 0 ? (k - v) / S : (k + v) / S, { x: B, y: _ };
|
|
1475
1475
|
}
|
|
1476
1476
|
d(Qt, "intersectLine");
|
|
1477
1477
|
function St(e, t) {
|
|
@@ -1494,7 +1494,7 @@ function $t(e, t, a) {
|
|
|
1494
1494
|
b && s.push(b);
|
|
1495
1495
|
}
|
|
1496
1496
|
return s.length ? (s.length > 1 && s.sort(function(S, v) {
|
|
1497
|
-
var k = S.x - a.x,
|
|
1497
|
+
var k = S.x - a.x, B = S.y - a.y, _ = Math.sqrt(k * k + B * B), D = v.x - a.x, y = v.y - a.y, g = Math.sqrt(D * D + y * y);
|
|
1498
1498
|
return _ < g ? -1 : _ === g ? 0 : 1;
|
|
1499
1499
|
}), s[0]) : e;
|
|
1500
1500
|
}
|
|
@@ -1540,12 +1540,12 @@ var wr = /* @__PURE__ */ d((e, t) => {
|
|
|
1540
1540
|
if (j(l.flowchart.htmlLabels)) {
|
|
1541
1541
|
const S = x.children[0], v = O(x), k = S.getElementsByTagName("img");
|
|
1542
1542
|
if (k) {
|
|
1543
|
-
const
|
|
1543
|
+
const B = u.replace(/<img[^>]*>/g, "").trim() === "";
|
|
1544
1544
|
await Promise.all(
|
|
1545
1545
|
[...k].map(
|
|
1546
1546
|
(_) => new Promise((D) => {
|
|
1547
1547
|
function y() {
|
|
1548
|
-
if (_.style.display = "flex", _.style.flexDirection = "column",
|
|
1548
|
+
if (_.style.display = "flex", _.style.flexDirection = "column", B) {
|
|
1549
1549
|
const g = l.fontSize ? l.fontSize : window.getComputedStyle(document.body).fontSize, m = parseInt(g, 10) * 5 + "px";
|
|
1550
1550
|
_.style.minWidth = m, _.style.maxWidth = m;
|
|
1551
1551
|
} else
|
|
@@ -1700,7 +1700,7 @@ var Lr = /* @__PURE__ */ d(async (e, t) => {
|
|
|
1700
1700
|
return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
|
|
1701
1701
|
return N.polygon(t, r, c);
|
|
1702
1702
|
}, a;
|
|
1703
|
-
}, "trapezoid"),
|
|
1703
|
+
}, "trapezoid"), Br = /* @__PURE__ */ d(async (e, t) => {
|
|
1704
1704
|
const { shapeSvg: a, bbox: i } = await A(
|
|
1705
1705
|
e,
|
|
1706
1706
|
t,
|
|
@@ -1715,7 +1715,7 @@ var Lr = /* @__PURE__ */ d(async (e, t) => {
|
|
|
1715
1715
|
return n.attr("style", t.style), T(t, n), t.intersect = function(c) {
|
|
1716
1716
|
return N.polygon(t, r, c);
|
|
1717
1717
|
}, a;
|
|
1718
|
-
}, "inv_trapezoid"),
|
|
1718
|
+
}, "inv_trapezoid"), Cr = /* @__PURE__ */ d(async (e, t) => {
|
|
1719
1719
|
const { shapeSvg: a, bbox: i } = await A(
|
|
1720
1720
|
e,
|
|
1721
1721
|
t,
|
|
@@ -1921,12 +1921,12 @@ var Ar = /* @__PURE__ */ d(async (e, t) => {
|
|
|
1921
1921
|
const w = r.insert("g").attr("class", "label");
|
|
1922
1922
|
let b = 0;
|
|
1923
1923
|
const S = t.classData.annotations?.[0], v = t.classData.annotations[0] ? "«" + t.classData.annotations[0] + "»" : "", k = w.node().appendChild(await K(v, t.labelStyle, !0, !0));
|
|
1924
|
-
let
|
|
1924
|
+
let B = k.getBBox();
|
|
1925
1925
|
if (j(R().flowchart.htmlLabels)) {
|
|
1926
1926
|
const E = k.children[0], h = O(k);
|
|
1927
|
-
|
|
1927
|
+
B = E.getBoundingClientRect(), h.attr("width", B.width), h.attr("height", B.height);
|
|
1928
1928
|
}
|
|
1929
|
-
t.classData.annotations[0] && (x +=
|
|
1929
|
+
t.classData.annotations[0] && (x += B.height + i, o += B.width);
|
|
1930
1930
|
let _ = t.classData.label;
|
|
1931
1931
|
t.classData.type !== void 0 && t.classData.type !== "" && (R().flowchart.htmlLabels ? _ += "<" + t.classData.type + ">" : _ += "<" + t.classData.type + ">");
|
|
1932
1932
|
const D = w.node().appendChild(await K(_, t.labelStyle, !0, !0));
|
|
@@ -1977,11 +1977,11 @@ var Ar = /* @__PURE__ */ d(async (e, t) => {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
I.width > o && (o = I.width), x += I.height + i, f.push(p);
|
|
1979
1979
|
}), x += l, S) {
|
|
1980
|
-
let E = (o -
|
|
1980
|
+
let E = (o - B.width) / 2;
|
|
1981
1981
|
O(k).attr(
|
|
1982
1982
|
"transform",
|
|
1983
1983
|
"translate( " + (-1 * o / 2 + E) + ", " + -1 * x / 2 + ")"
|
|
1984
|
-
), b =
|
|
1984
|
+
), b = B.height + i;
|
|
1985
1985
|
}
|
|
1986
1986
|
let m = (o - y.width) / 2;
|
|
1987
1987
|
return O(D).attr(
|
|
@@ -2021,8 +2021,8 @@ var Ar = /* @__PURE__ */ d(async (e, t) => {
|
|
|
2021
2021
|
lean_right: Dr,
|
|
2022
2022
|
lean_left: Nr,
|
|
2023
2023
|
trapezoid: Tr,
|
|
2024
|
-
inv_trapezoid:
|
|
2025
|
-
rect_right_inv_arrow:
|
|
2024
|
+
inv_trapezoid: Br,
|
|
2025
|
+
rect_right_inv_arrow: Cr,
|
|
2026
2026
|
cylinder: Ir,
|
|
2027
2027
|
start: Yr,
|
|
2028
2028
|
end: Hr,
|
|
@@ -2241,7 +2241,7 @@ var Ur = /* @__PURE__ */ d(function(e, t) {
|
|
|
2241
2241
|
await ae(S, x, r);
|
|
2242
2242
|
const v = jt(r);
|
|
2243
2243
|
if (await se(S, x, r), await ie(S, b, w, r, t), v) {
|
|
2244
|
-
const k = v,
|
|
2244
|
+
const k = v, B = Math.max(1, Math.round(0.125 * (k.width / k.height))), _ = k.height + B + 10, D = k.width + 10, { useMaxWidth: y } = s;
|
|
2245
2245
|
he(u, _, D, !!y), L.debug("Here Bounds", v, k), u.attr(
|
|
2246
2246
|
"viewBox",
|
|
2247
2247
|
`${k.x - 5} ${k.y - 5} ${k.width + 10} ${k.height + 10}`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./chunk-TZMSLE5B-D3CSz4N0.cjs"),u=require("./cursorPlugin-vB5SgZWZ.cjs");var Yt=(function(){var e=u.__name(function(mt,b,x,v){for(x=x||{},v=mt.length;v--;x[mt[v]]=b);return x},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],i=[1,64],n=[1,65],d=[1,66],_=[1,67],y=[1,68],p=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],nt=[1,45],it=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],_t=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],Ct=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],k=[1,83],C=[1,84],w=[1,85],T=[12,14,42],ne=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:u.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:u.__name(function(b,x,v,g,R,h,St){var f=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:i,37:n,38:d,39:_,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),e(Ct,[2,14]),e(Wt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Rt,[2,19]),e(Rt,[2,20]),{25:[1,78]},{27:[1,79]},e(Rt,[2,23]),{35:80,75:81,76:A,77:k,79:C,80:w},{35:86,75:81,76:A,77:k,79:C,80:w},{35:87,75:81,76:A,77:k,79:C,80:w},{35:88,75:81,76:A,77:k,79:C,80:w},{35:89,75:81,76:A,77:k,79:C,80:w},{35:90,75:81,76:A,77:k,79:C,80:w},{35:91,75:81,76:A,77:k,79:C,80:w},{35:92,75:81,76:A,77:k,79:C,80:w},{35:93,75:81,76:A,77:k,79:C,80:w},{35:94,75:81,76:A,77:k,79:C,80:w},{35:95,75:81,76:A,77:k,79:C,80:w},{35:96,75:81,76:A,77:k,79:C,80:w},{35:97,75:81,76:A,77:k,79:C,80:w},{35:98,75:81,76:A,77:k,79:C,80:w},{35:99,75:81,76:A,77:k,79:C,80:w},{35:100,75:81,76:A,77:k,79:C,80:w},{35:101,75:81,76:A,77:k,79:C,80:w},{35:102,75:81,76:A,77:k,79:C,80:w},{35:103,75:81,76:A,77:k,79:C,80:w},{35:104,75:81,76:A,77:k,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:A,77:k,79:C,80:w},{35:106,75:81,76:A,77:k,79:C,80:w},{35:107,75:81,76:A,77:k,79:C,80:w},{35:108,75:81,76:A,77:k,79:C,80:w},{35:109,75:81,76:A,77:k,79:C,80:w},{35:110,75:81,76:A,77:k,79:C,80:w},{35:111,75:81,76:A,77:k,79:C,80:w},{35:112,75:81,76:A,77:k,79:C,80:w},{35:113,75:81,76:A,77:k,79:C,80:w},{35:114,75:81,76:A,77:k,79:C,80:w},{35:115,75:81,76:A,77:k,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:k,79:C,80:w},{35:120,75:81,76:A,77:k,79:C,80:w},{35:121,75:81,76:A,77:k,79:C,80:w},{35:122,75:81,76:A,77:k,79:C,80:w},{35:123,75:81,76:A,77:k,79:C,80:w},{35:124,75:81,76:A,77:k,79:C,80:w},{35:125,75:81,76:A,77:k,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Wt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:i,37:n,38:d,39:_,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),e(Rt,[2,21]),e(Rt,[2,22]),e(T,[2,39]),e(ne,[2,71],{75:81,35:132,76:A,77:k,79:C,80:w}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Wt,[2,18]),e(Ct,[2,38]),e(ne,[2,72]),e(Bt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:u.__name(function(b,x){if(x.recoverable)this.trace(b);else{var v=new Error(b);throw v.hash=x,v}},"parseError"),parse:u.__name(function(b){var x=this,v=[0],g=[],R=[null],h=[],St=this.table,f="",Et=0,ie=0,xe=2,re=1,ve=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(At.yy[Qt]=this.yy[Qt]);D.setInput(b,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;h.push(Ht);var Ee=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}u.__name(Ae,"popStack");function se(){var L;return L=g.pop()||D.lex()||re,typeof L!="number"&&(L instanceof Array&&(g=L,L=g.pop()),L=x.symbols_[L]||L),L}u.__name(se,"lex");for(var I,kt,N,qt,wt={},Mt,X,le,Lt;;){if(kt=v[v.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I>"u")&&(I=se()),N=St[kt]&&St[kt][I]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in St[kt])this.terminals_[Mt]&&Mt>xe&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("./chunk-TZMSLE5B-BdG0scu4.cjs"),u=require("./viewer-3haLPWOp.cjs");var Yt=(function(){var e=u.__name(function(mt,b,x,v){for(x=x||{},v=mt.length;v--;x[mt[v]]=b);return x},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],a=[1,28],r=[1,63],i=[1,64],n=[1,65],d=[1,66],_=[1,67],y=[1,68],p=[1,69],E=[1,29],O=[1,30],S=[1,31],P=[1,32],M=[1,33],U=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],at=[1,44],nt=[1,45],it=[1,46],rt=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],_t=[1,56],ft=[1,57],pt=[1,58],yt=[1,59],gt=[1,60],Ct=[14,42],Wt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],k=[1,83],C=[1,84],w=[1,85],T=[12,14,42],ne=[12,14,33,42],Bt=[12,14,33,42,76,77,79,80],vt=[12,33],zt=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Xt={trace:u.__name(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:u.__name(function(b,x,v,g,R,h,St){var f=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:a,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{14:[1,74]},e(Ct,[2,13],{43:23,29:49,30:61,32:62,20:75,34:r,36:i,37:n,38:d,39:_,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),e(Ct,[2,14]),e(Wt,[2,16],{12:[1,76]}),e(Ct,[2,36],{12:[1,77]}),e(Rt,[2,19]),e(Rt,[2,20]),{25:[1,78]},{27:[1,79]},e(Rt,[2,23]),{35:80,75:81,76:A,77:k,79:C,80:w},{35:86,75:81,76:A,77:k,79:C,80:w},{35:87,75:81,76:A,77:k,79:C,80:w},{35:88,75:81,76:A,77:k,79:C,80:w},{35:89,75:81,76:A,77:k,79:C,80:w},{35:90,75:81,76:A,77:k,79:C,80:w},{35:91,75:81,76:A,77:k,79:C,80:w},{35:92,75:81,76:A,77:k,79:C,80:w},{35:93,75:81,76:A,77:k,79:C,80:w},{35:94,75:81,76:A,77:k,79:C,80:w},{35:95,75:81,76:A,77:k,79:C,80:w},{35:96,75:81,76:A,77:k,79:C,80:w},{35:97,75:81,76:A,77:k,79:C,80:w},{35:98,75:81,76:A,77:k,79:C,80:w},{35:99,75:81,76:A,77:k,79:C,80:w},{35:100,75:81,76:A,77:k,79:C,80:w},{35:101,75:81,76:A,77:k,79:C,80:w},{35:102,75:81,76:A,77:k,79:C,80:w},{35:103,75:81,76:A,77:k,79:C,80:w},{35:104,75:81,76:A,77:k,79:C,80:w},e(T,[2,59]),{35:105,75:81,76:A,77:k,79:C,80:w},{35:106,75:81,76:A,77:k,79:C,80:w},{35:107,75:81,76:A,77:k,79:C,80:w},{35:108,75:81,76:A,77:k,79:C,80:w},{35:109,75:81,76:A,77:k,79:C,80:w},{35:110,75:81,76:A,77:k,79:C,80:w},{35:111,75:81,76:A,77:k,79:C,80:w},{35:112,75:81,76:A,77:k,79:C,80:w},{35:113,75:81,76:A,77:k,79:C,80:w},{35:114,75:81,76:A,77:k,79:C,80:w},{35:115,75:81,76:A,77:k,79:C,80:w},{20:116,29:49,30:61,32:62,34:r,36:i,37:n,38:d,39:_,40:y,41:p,43:23,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:k,79:C,80:w},{35:120,75:81,76:A,77:k,79:C,80:w},{35:121,75:81,76:A,77:k,79:C,80:w},{35:122,75:81,76:A,77:k,79:C,80:w},{35:123,75:81,76:A,77:k,79:C,80:w},{35:124,75:81,76:A,77:k,79:C,80:w},{35:125,75:81,76:A,77:k,79:C,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ct,[2,15]),e(Wt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:a}),e(Ct,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:a,34:r,36:i,37:n,38:d,39:_,40:y,41:p,44:E,45:O,46:S,47:P,48:M,49:U,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:at,60:nt,61:it,62:rt,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:_t,71:ft,72:pt,73:yt,74:gt}),e(Rt,[2,21]),e(Rt,[2,22]),e(T,[2,39]),e(ne,[2,71],{75:81,35:132,76:A,77:k,79:C,80:w}),e(Bt,[2,73]),{78:[1,133]},e(Bt,[2,75]),e(Bt,[2,76]),e(T,[2,40]),e(T,[2,41]),e(T,[2,42]),e(T,[2,43]),e(T,[2,44]),e(T,[2,45]),e(T,[2,46]),e(T,[2,47]),e(T,[2,48]),e(T,[2,49]),e(T,[2,50]),e(T,[2,51]),e(T,[2,52]),e(T,[2,53]),e(T,[2,54]),e(T,[2,55]),e(T,[2,56]),e(T,[2,57]),e(T,[2,58]),e(T,[2,60]),e(T,[2,61]),e(T,[2,62]),e(T,[2,63]),e(T,[2,64]),e(T,[2,65]),e(T,[2,66]),e(T,[2,67]),e(T,[2,68]),e(T,[2,69]),e(T,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(vt,[2,28]),e(vt,[2,29]),e(vt,[2,30]),e(vt,[2,31]),e(vt,[2,32]),e(vt,[2,33]),e(vt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Wt,[2,18]),e(Ct,[2,38]),e(ne,[2,72]),e(Bt,[2,74]),e(T,[2,24]),e(T,[2,35]),e(zt,[2,25]),e(zt,[2,26],{12:[1,138]}),e(zt,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:u.__name(function(b,x){if(x.recoverable)this.trace(b);else{var v=new Error(b);throw v.hash=x,v}},"parseError"),parse:u.__name(function(b){var x=this,v=[0],g=[],R=[null],h=[],St=this.table,f="",Et=0,ie=0,xe=2,re=1,ve=h.slice.call(arguments,1),D=Object.create(this.lexer),At={yy:{}};for(var Qt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Qt)&&(At.yy[Qt]=this.yy[Qt]);D.setInput(b,At.yy),At.yy.lexer=D,At.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ht=D.yylloc;h.push(Ht);var Ee=D.options&&D.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ae(L){v.length=v.length-2*L,R.length=R.length-L,h.length=h.length-L}u.__name(Ae,"popStack");function se(){var L;return L=g.pop()||D.lex()||re,typeof L!="number"&&(L instanceof Array&&(g=L,L=g.pop()),L=x.symbols_[L]||L),L}u.__name(se,"lex");for(var I,kt,N,qt,wt={},Mt,X,le,Lt;;){if(kt=v[v.length-1],this.defaultActions[kt]?N=this.defaultActions[kt]:((I===null||typeof I>"u")&&(I=se()),N=St[kt]&&St[kt][I]),typeof N>"u"||!N.length||!N[0]){var Gt="";Lt=[];for(Mt in St[kt])this.terminals_[Mt]&&Mt>xe&&Lt.push("'"+this.terminals_[Mt]+"'");D.showPosition?Gt="Parse error on line "+(Et+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+Lt.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Gt="Parse error on line "+(Et+1)+": Unexpected "+(I==re?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Gt,{text:D.match,token:this.terminals_[I]||I,line:D.yylineno,loc:Ht,expected:Lt})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+kt+", token: "+I);switch(N[0]){case 1:v.push(I),R.push(D.yytext),h.push(D.yylloc),v.push(N[1]),I=null,ie=D.yyleng,f=D.yytext,Et=D.yylineno,Ht=D.yylloc;break;case 2:if(X=this.productions_[N[1]][1],wt.$=R[R.length-X],wt._$={first_line:h[h.length-(X||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(X||1)].first_column,last_column:h[h.length-1].last_column},Ee&&(wt._$.range=[h[h.length-(X||1)].range[0],h[h.length-1].range[1]]),qt=this.performAction.apply(wt,[f,ie,Et,At.yy,N[1],R,h].concat(ve)),typeof qt<"u")return qt;X&&(v=v.slice(0,-1*X*2),R=R.slice(0,-1*X),h=h.slice(0,-1*X)),v.push(this.productions_[N[1]][0]),R.push(wt.$),h.push(wt._$),le=St[v[v.length-2]][v[v.length-1]],v.push(le);break;case 3:return!0}}return!0},"parse")},be=(function(){var mt={EOF:1,parseError:u.__name(function(x,v){if(this.yy.parser)this.yy.parser.parseError(x,v);else throw new Error(x)},"parseError"),setInput:u.__name(function(b,x){return this.yy=x||this.yy||{},this._input=b,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:u.__name(function(){var b=this._input[0];this.yytext+=b,this.yyleng++,this.offset++,this.match+=b,this.matched+=b;var x=b.match(/(?:\r\n?|\n).*/g);return x?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),b},"input"),unput:u.__name(function(b){var x=b.length,v=b.split(/(?:\r\n?|\n)/g);this._input=b+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-x),this.offset-=x;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),v.length-1&&(this.yylineno-=v.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:v?(v.length===g.length?this.yylloc.first_column:0)+g[g.length-v.length].length-v[0].length:this.yylloc.first_column-x},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-x]),this.yyleng=this.yytext.length,this},"unput"),more:u.__name(function(){return this._more=!0,this},"more"),reject:u.__name(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:u.__name(function(b){this.unput(this.match.slice(b))},"less"),pastInput:u.__name(function(){var b=this.matched.substr(0,this.matched.length-this.match.length);return(b.length>20?"...":"")+b.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:u.__name(function(){var b=this.match;return b.length<20&&(b+=this._input.substr(0,20-b.length)),(b.substr(0,20)+(b.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:u.__name(function(){var b=this.pastInput(),x=new Array(b.length+1).join("-");return b+this.upcomingInput()+`
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as Se, d as De } from "./chunk-TZMSLE5B-
|
|
2
|
-
import { _ as g, s as Pe, g as Be,
|
|
1
|
+
import { g as Se, d as De } from "./chunk-TZMSLE5B-CLskNwI1.js";
|
|
2
|
+
import { _ as g, s as Pe, g as Be, a as Ie, b as Me, c as Bt, d as jt, l as de, e as Le, f as Ne, h as Tt, i as ge, j as Ye, w as je, k as $t, m as fe } from "./viewer-BVjz3IFH.js";
|
|
3
3
|
var Ft = (function() {
|
|
4
4
|
var e = /* @__PURE__ */ g(function(_t, x, m, v) {
|
|
5
5
|
for (m = m || {}, v = _t.length; v--; m[_t[v]] = x) ;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./viewer-3haLPWOp.cjs"),s=(n,r)=>e.Utils.lang.round(e.Color.parse(n)[r]);exports.channel=s;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=require("./viewer-3haLPWOp.cjs");function i(e,c){e.accDescr&&c.setAccDescription?.(e.accDescr),e.accTitle&&c.setAccTitle?.(e.accTitle),e.title&&c.setDiagramTitle?.(e.title)}t.__name(i,"populateCommonDb");exports.populateCommonDb=i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./viewer-3haLPWOp.cjs");var s=e.__name((t,n)=>{let o;return n==="sandbox"&&(o=e.select("#i"+t)),(n==="sandbox"?e.select(o.nodes()[0].contentDocument.body):e.select("body")).select(`[id="${t}"]`)},"getDiagramElement");exports.getDiagramElement=s;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as a,
|
|
2
|
-
var
|
|
1
|
+
import { _ as a, d as o } from "./viewer-BVjz3IFH.js";
|
|
2
|
+
var d = /* @__PURE__ */ a((t, e) => {
|
|
3
3
|
let n;
|
|
4
4
|
return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
|
|
5
5
|
}, "getDiagramElement");
|
|
6
6
|
export {
|
|
7
|
-
g
|
|
7
|
+
d as g
|
|
8
8
|
};
|