@sme.up/ketchup2 2.0.0-SNAPSHOT-20250924134246 → 2.0.0-SNAPSHOT-20250925132231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_basePickBy-DYlj7_wy.cjs → _basePickBy-B3ExQo_s.cjs} +1 -1
- package/dist/{_basePickBy-CRG1-TYC.js → _basePickBy-BL0rx8h5.js} +2 -2
- package/dist/{_baseUniq-1w7oURyZ.cjs → _baseUniq-Cp2_6kKU.cjs} +1 -1
- package/dist/{_baseUniq-CERW2dMD.js → _baseUniq-JMaHwlAX.js} +1 -1
- package/dist/{arc-CM9X65_T.js → arc-CtQbSDgd.js} +1 -1
- package/dist/{arc-nfAj92_u.cjs → arc-DAVlflGi.cjs} +1 -1
- package/dist/{architecture-O4VJ6CD3-X5MtcgTO.js → architecture-O4VJ6CD3-BzL2gWod.js} +1 -1
- package/dist/{architecture-O4VJ6CD3-Dle14oBE.cjs → architecture-O4VJ6CD3-RVc_EWTc.cjs} +1 -1
- package/dist/{architectureDiagram-W76B3OCA-DUxIrce2.js → architectureDiagram-VXUJARFQ-DWhBSBGC.js} +491 -490
- package/dist/{architectureDiagram-W76B3OCA-x3nF88ir.cjs → architectureDiagram-VXUJARFQ-Q87qXXGK.cjs} +3 -3
- package/dist/basic-components/typography/typography-types.d.ts +0 -1
- package/dist/basic-components/typography/typography-types.d.ts.map +1 -1
- package/dist/basic-components/typography/typography.d.ts.map +1 -1
- package/dist/{blockDiagram-QIGZ2CNN-DZccr48L.js → blockDiagram-VD42YOAC-0Nd3p-SE.js} +5 -5
- package/dist/{blockDiagram-QIGZ2CNN-C0BgVtTB.cjs → blockDiagram-VD42YOAC-Ch3gwWE6.cjs} +1 -1
- package/dist/{c4Diagram-FPNF74CW-DOdjAXNa.js → c4Diagram-YG6GDRKO-CNikh7Le.js} +2 -2
- package/dist/{c4Diagram-FPNF74CW-CqrfBOip.cjs → c4Diagram-YG6GDRKO-CdFkug04.cjs} +1 -1
- package/dist/{channel-xx0NgvRG.js → channel-DyIrm_E_.js} +1 -1
- package/dist/channel-h4SkGM2G.cjs +1 -0
- package/dist/{chunk-4BX2VUAB-DDwXc_7d.cjs → chunk-4BX2VUAB-CjiheXVM.cjs} +1 -1
- package/dist/{chunk-4BX2VUAB-B9ksHSov.js → chunk-4BX2VUAB-CzqEt7TW.js} +1 -1
- package/dist/{chunk-55IACEB6-Bc-iW8ou.cjs → chunk-55IACEB6-CRCDcfnE.cjs} +1 -1
- package/dist/{chunk-55IACEB6-DTko0gu6.js → chunk-55IACEB6-CZA0gFBu.js} +1 -1
- package/dist/{chunk-K7UQS3LO-CVEl5gPA.cjs → chunk-B4BG7PRW-BUVnKFV5.cjs} +1 -1
- package/dist/{chunk-K7UQS3LO-BNoTHrw1.js → chunk-B4BG7PRW-eaCv6zLN.js} +4 -4
- package/dist/{chunk-TVAH2DTR-DeeNJJ6p.js → chunk-DI55MBZ5-BpTaRIX0.js} +3 -3
- package/dist/{chunk-TVAH2DTR-E9fTthWt.cjs → chunk-DI55MBZ5-MDFDkhgB.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-BhF2NGSk.cjs → chunk-FMBD7UC4-B1vndIVZ.cjs} +1 -1
- package/dist/{chunk-FMBD7UC4-CzTbmKGm.js → chunk-FMBD7UC4-B2uRzcSV.js} +1 -1
- package/dist/{chunk-QN33PNHL-CJly00zq.cjs → chunk-QN33PNHL-Bm4IsSoV.cjs} +1 -1
- package/dist/{chunk-QN33PNHL-myR6APrE.js → chunk-QN33PNHL-ObF_wnJ0.js} +1 -1
- package/dist/{chunk-QZHKN3VN-C8yaOJMV.js → chunk-QZHKN3VN-BLNjV6gl.js} +1 -1
- package/dist/{chunk-QZHKN3VN-W4IpRRvo.cjs → chunk-QZHKN3VN-CQOs1jEr.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-BhVdgjMc.cjs → chunk-TZMSLE5B-CoiQGwpD.cjs} +1 -1
- package/dist/{chunk-TZMSLE5B-Cs1mfyqm.js → chunk-TZMSLE5B-vK-1jUpC.js} +1 -1
- package/dist/{classDiagram-v2-RKCZMP56-Apddqi2k.js → classDiagram-2ON5EDUG-CtwBR21d.js} +2 -2
- package/dist/{classDiagram-KNZD7YFC-sMl_it_Y.cjs → classDiagram-2ON5EDUG-JZRwcUj7.cjs} +1 -1
- package/dist/{classDiagram-KNZD7YFC-Apddqi2k.js → classDiagram-v2-WZHVMYZB-CtwBR21d.js} +2 -2
- package/dist/{classDiagram-v2-RKCZMP56-sMl_it_Y.cjs → classDiagram-v2-WZHVMYZB-JZRwcUj7.cjs} +1 -1
- package/dist/clone-BP5egsYY.cjs +1 -0
- package/dist/{clone-BifQzgNr.js → clone-CkHwHH7A.js} +1 -1
- package/dist/components/tab-bar/tab-bar-assets.d.ts +1 -0
- package/dist/components/tab-bar/tab-bar-assets.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar-types.d.ts +4 -0
- package/dist/components/tab-bar/tab-bar-types.d.ts.map +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/{cose-bilkent-S5V4N54A-D8NUZruv.js → cose-bilkent-S5V4N54A-B86FhmWm.js} +1 -1
- package/dist/{cose-bilkent-S5V4N54A-C_-0U_dl.cjs → cose-bilkent-S5V4N54A-DISfD43Z.cjs} +1 -1
- package/dist/{dagre-5GWH7T2D-22Wwu5-a.js → dagre-6UL2VRFP-BUHKxXFg.js} +6 -6
- package/dist/{dagre-5GWH7T2D-C5GY6xnq.cjs → dagre-6UL2VRFP-DvtPmM0x.cjs} +1 -1
- package/dist/{diagram-N5W7TBWH-COqpHceV.cjs → diagram-PSM6KHXK-BMek6a2x.cjs} +1 -1
- package/dist/{diagram-N5W7TBWH-ClK3fFzE.js → diagram-PSM6KHXK-e1Lz3rqF.js} +4 -4
- package/dist/{diagram-QEK2KX5R-Csfv4YSF.cjs → diagram-QEK2KX5R-BMYm_WPb.cjs} +1 -1
- package/dist/{diagram-QEK2KX5R-DDfqtTHS.js → diagram-QEK2KX5R-CmXS3SAd.js} +3 -3
- package/dist/{diagram-S2PKOQOG-Bu12iQVK.cjs → diagram-S2PKOQOG-lPGlXNTZ.cjs} +1 -1
- package/dist/{diagram-S2PKOQOG-GGfVbOoy.js → diagram-S2PKOQOG-s1vmipIL.js} +3 -3
- package/dist/{erDiagram-AWTI2OKA-Xr6FhxFx.js → erDiagram-Q2GNP2WA-DJGqgRSd.js} +4 -4
- package/dist/{erDiagram-AWTI2OKA-2ZkjbD0D.cjs → erDiagram-Q2GNP2WA-x4PjoD7o.cjs} +1 -1
- package/dist/{flowDiagram-PVAE7QVJ-BUVY92cQ.js → flowDiagram-NV44I4VS-DX3GqyAL.js} +5 -5
- package/dist/{flowDiagram-PVAE7QVJ-DNmmHSNn.cjs → flowDiagram-NV44I4VS-DzCvbUVv.cjs} +1 -1
- package/dist/{ganttDiagram-OWAHRB6G-BoYAoDYa.cjs → ganttDiagram-LVOFAZNH-C6GrJiTP.cjs} +4 -4
- package/dist/{ganttDiagram-OWAHRB6G-CT0GTShu.js → ganttDiagram-LVOFAZNH-R6srbPx9.js} +59 -58
- package/dist/{gitGraph-ZV4HHKMB-CRR9dZIw.js → gitGraph-ZV4HHKMB-B8izvjhD.js} +1 -1
- package/dist/{gitGraph-ZV4HHKMB-DFETHnDe.cjs → gitGraph-ZV4HHKMB-D5GXlm8k.cjs} +1 -1
- package/dist/{gitGraphDiagram-NY62KEGX-DIckFh6u.js → gitGraphDiagram-NY62KEGX-B5uqoNKT.js} +4 -4
- package/dist/{gitGraphDiagram-NY62KEGX-Cf0pDsnE.cjs → gitGraphDiagram-NY62KEGX-BCEQsOWv.cjs} +1 -1
- package/dist/{graph-DEDrdhXD.cjs → graph-CM8DvT7i.cjs} +1 -1
- package/dist/{graph-An_BE7n8.js → graph-DlNFHhIM.js} +2 -2
- package/dist/{index-Bc5H4y6-.js → index-CLesa_SQ.js} +10212 -10617
- package/dist/{index-CIVfowVG.cjs → index-hpqWwZz6.cjs} +141 -137
- package/dist/info-63CPKGFF-CML6SLw3.js +5 -0
- package/dist/{info-63CPKGFF-VQN2vmVL.cjs → info-63CPKGFF-CaCg-P11.cjs} +1 -1
- package/dist/{infoDiagram-STP46IZ2-Bu5ND0xY.js → infoDiagram-F6ZHWCRC-tvZx47cu.js} +2 -2
- package/dist/{infoDiagram-STP46IZ2-C3LNkyMW.cjs → infoDiagram-F6ZHWCRC-wmNlVOet.cjs} +1 -1
- package/dist/{journeyDiagram-BIP6EPQ6-DKrGIKC0.js → journeyDiagram-XKPGCS4Q-7myDqFLl.js} +4 -4
- package/dist/{journeyDiagram-BIP6EPQ6-EzX4BiVl.cjs → journeyDiagram-XKPGCS4Q-BJ23H_OS.cjs} +1 -1
- package/dist/{kanban-definition-6OIFK2YF-BMSBQ71x.cjs → kanban-definition-3W4ZIXB7-CePgiXeY.cjs} +1 -1
- package/dist/{kanban-definition-6OIFK2YF-DpsMqvb7.js → kanban-definition-3W4ZIXB7-WD7_XRgC.js} +2 -2
- package/dist/ketchup2.cjs.js +1 -1
- package/dist/ketchup2.es.js +1 -1
- package/dist/{layout-t-gziaR6.js → layout-fkkpiEmE.js} +4 -4
- package/dist/{layout-DOXPVDq2.cjs → layout-qczswZby.cjs} +1 -1
- package/dist/{linear-BWr8zvcs.js → linear-5eyuTXFe.js} +1 -1
- package/dist/{linear-fchT6nPX.cjs → linear-DSl9z5SD.cjs} +1 -1
- package/dist/{mermaid-parser.core-Dty-ueuF.js → mermaid-parser.core-B0Cu2wmR.js} +11 -11
- package/dist/{mermaid-parser.core-BKijFcQf.cjs → mermaid-parser.core-B5iH6WFA.cjs} +2 -2
- package/dist/{mindmap-definition-Q6HEUPPD-CA9-3fP0.cjs → mindmap-definition-VGOIOE7T-DzkDz-Fn.cjs} +5 -5
- package/dist/{mindmap-definition-Q6HEUPPD-D-wFtB-o.js → mindmap-definition-VGOIOE7T-Yn9uJRF6.js} +89 -86
- package/dist/{packet-HUATNLJX-DRyr7fFA.cjs → packet-HUATNLJX-CeGo3twM.cjs} +1 -1
- package/dist/{packet-HUATNLJX-DFejBoYp.js → packet-HUATNLJX-D9ravJL6.js} +1 -1
- package/dist/pie-WTHONI2E-CjVYVFFU.js +5 -0
- package/dist/{pie-WTHONI2E--jf6c4b-.cjs → pie-WTHONI2E-MXpdyMV3.cjs} +1 -1
- package/dist/{pieDiagram-ADFJNKIX-CSb_0-bS.cjs → pieDiagram-ADFJNKIX--XzljQFr.cjs} +1 -1
- package/dist/{pieDiagram-ADFJNKIX-BibbNAEb.js → pieDiagram-ADFJNKIX-tlWh0NWf.js} +4 -4
- package/dist/{quadrantDiagram-LMRXKWRM-CcE5KMhb.cjs → quadrantDiagram-AYHSOK5B-B86ZRi04.cjs} +1 -1
- package/dist/{quadrantDiagram-LMRXKWRM-ChjecZUa.js → quadrantDiagram-AYHSOK5B-D1fgZQu2.js} +2 -2
- package/dist/radar-NJJJXTRR-CiQisY7J.js +5 -0
- package/dist/{radar-NJJJXTRR-C3jombh2.cjs → radar-NJJJXTRR-DRw_FFXV.cjs} +1 -1
- package/dist/{requirementDiagram-4UW4RH46-C0zPAxcP.js → requirementDiagram-UZGBJVZJ-B7F_keBJ.js} +3 -3
- package/dist/{requirementDiagram-4UW4RH46-oa7C7tpX.cjs → requirementDiagram-UZGBJVZJ-Bw-nhBsq.cjs} +1 -1
- package/dist/{sankeyDiagram-GR3RE2ED-DLS0dylu.js → sankeyDiagram-TZEHDZUN-DpIBuooa.js} +1 -1
- package/dist/{sankeyDiagram-GR3RE2ED-n-R_yrud.cjs → sankeyDiagram-TZEHDZUN-QPcwY38i.cjs} +1 -1
- package/dist/{sequenceDiagram-C3RYC4MD-n2GL9ZWA.cjs → sequenceDiagram-WL72ISMW-DsVs_xTz.cjs} +1 -1
- package/dist/{sequenceDiagram-C3RYC4MD-C7NKNTeA.js → sequenceDiagram-WL72ISMW-Hcsfdr6L.js} +3 -3
- package/dist/{stateDiagram-KXAO66HF-C9gB2KSd.js → stateDiagram-FKZM4ZOC-BD6N3Pl-.js} +4 -4
- package/dist/{stateDiagram-KXAO66HF-CRPtwGMi.cjs → stateDiagram-FKZM4ZOC-ZC6ttJL-.cjs} +1 -1
- package/dist/{stateDiagram-v2-UMBNRL4Z-XglCdCqj.js → stateDiagram-v2-4FDKWEC3-CBGskmyi.js} +2 -2
- package/dist/{stateDiagram-v2-UMBNRL4Z-DBFiT_J4.cjs → stateDiagram-v2-4FDKWEC3-DaP9xxD4.cjs} +1 -1
- package/dist/{timeline-definition-XQNQX7LJ-CM5WfdSb.js → timeline-definition-IT6M3QCI-B3xgxeWe.js} +2 -2
- package/dist/{timeline-definition-XQNQX7LJ-BzkBXgPJ.cjs → timeline-definition-IT6M3QCI-eSxsbkuX.cjs} +1 -1
- package/dist/{treemap-75Q7IDZK-Cj4TrH5r.cjs → treemap-75Q7IDZK-BBlnDdHw.cjs} +1 -1
- package/dist/{treemap-75Q7IDZK-y3hAZocG.js → treemap-75Q7IDZK-PUgxXUnY.js} +1 -1
- package/dist/types/data-structures.d.ts +4 -0
- package/dist/types/data-structures.d.ts.map +1 -1
- package/dist/{xychartDiagram-6GGTOJPD-DRvHKAk8.cjs → xychartDiagram-PRI3JC2R-B-SqrEQ6.cjs} +1 -1
- package/dist/{xychartDiagram-6GGTOJPD-BkfqbsRj.js → xychartDiagram-PRI3JC2R-D1hnnp7d.js} +2 -2
- package/package.json +16 -16
- package/dist/channel-9rlsl1rz.cjs +0 -1
- package/dist/clone-JreM5N17.cjs +0 -1
- package/dist/info-63CPKGFF-CSqiz9yG.js +0 -5
- package/dist/pie-WTHONI2E-ccaZLebz.js +0 -5
- package/dist/radar-NJJJXTRR-BT__6ZNz.js +0 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b1 as nn, b2 as Ln, b3 as rn, b4 as an, b5 as sn, b6 as se, b7 as An, aJ as we, _ as h, g as In, s as Wn, q as On, p as Hn, a as Nn, b as Vn, c as _t, d as Bt, e as Pn, b8 as at, l as Kt, k as zn, j as Rn, y as qn, u as Bn } from "./index-
|
|
2
|
-
import { b as Zn, t as Oe, c as Xn, a as Gn, l as Qn } from "./linear-
|
|
3
|
-
import { i as
|
|
4
|
-
function
|
|
1
|
+
import { b1 as nn, b2 as Ln, b3 as rn, b4 as an, b5 as sn, b6 as se, b7 as An, aJ as we, _ as h, g as In, s as Wn, q as On, p as Hn, a as Nn, b as Vn, c as _t, d as Bt, e as Pn, b8 as at, l as Kt, k as zn, j as Rn, y as qn, u as Bn } from "./index-CLesa_SQ.js";
|
|
2
|
+
import { b as Zn, t as Oe, c as Xn, a as Gn, l as Qn } from "./linear-5eyuTXFe.js";
|
|
3
|
+
import { i as $n } from "./init-DjUOC4st.js";
|
|
4
|
+
function jn(t, e) {
|
|
5
5
|
let n;
|
|
6
6
|
if (e === void 0)
|
|
7
7
|
for (const r of t)
|
|
@@ -47,15 +47,15 @@ function ar() {
|
|
|
47
47
|
function on(t, e) {
|
|
48
48
|
var n = [], r = null, a = null, i = 6, s = 6, y = 3, _ = typeof window < "u" && window.devicePixelRatio > 1 ? 0 : 0.5, p = t === Xt || t === Zt ? -1 : 1, g = t === Zt || t === oe ? "x" : "y", E = t === Xt || t === ke ? tr : er;
|
|
49
49
|
function C(b) {
|
|
50
|
-
var X = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), O = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Kn), M = Math.max(i, 0) + y, I = e.range(), V = +I[0] + _, W = +I[I.length - 1] + _, B = (e.bandwidth ? rr : nr)(e.copy(), _),
|
|
51
|
-
D = D.merge(D.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), H = H.merge(Y), F = F.merge(Y.append("line").attr("stroke", "currentColor").attr(g + "2", p * i)), S = S.merge(Y.append("text").attr("fill", "currentColor").attr(g, p * M).attr("dy", t === Xt ? "0em" : t === ke ? "0.71em" : "0.32em")), b !==
|
|
50
|
+
var X = r ?? (e.ticks ? e.ticks.apply(e, n) : e.domain()), O = a ?? (e.tickFormat ? e.tickFormat.apply(e, n) : Kn), M = Math.max(i, 0) + y, I = e.range(), V = +I[0] + _, W = +I[I.length - 1] + _, B = (e.bandwidth ? rr : nr)(e.copy(), _), $ = b.selection ? b.selection() : b, D = $.selectAll(".domain").data([null]), H = $.selectAll(".tick").data(X, e).order(), x = H.exit(), Y = H.enter().append("g").attr("class", "tick"), F = H.select("line"), S = H.select("text");
|
|
51
|
+
D = D.merge(D.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor")), H = H.merge(Y), F = F.merge(Y.append("line").attr("stroke", "currentColor").attr(g + "2", p * i)), S = S.merge(Y.append("text").attr("fill", "currentColor").attr(g, p * M).attr("dy", t === Xt ? "0em" : t === ke ? "0.71em" : "0.32em")), b !== $ && (D = D.transition(b), H = H.transition(b), F = F.transition(b), S = S.transition(b), x = x.transition(b).attr("opacity", He).attr("transform", function(v) {
|
|
52
52
|
return isFinite(v = B(v)) ? E(v + _) : this.getAttribute("transform");
|
|
53
53
|
}), Y.attr("opacity", He).attr("transform", function(v) {
|
|
54
54
|
var U = this.parentNode.__axis;
|
|
55
55
|
return E((U && isFinite(U = U(v)) ? U : B(v)) + _);
|
|
56
56
|
})), x.remove(), D.attr("d", t === Zt || t === oe ? s ? "M" + p * s + "," + V + "H" + _ + "V" + W + "H" + p * s : "M" + _ + "," + V + "V" + W : s ? "M" + V + "," + p * s + "V" + _ + "H" + W + "V" + p * s : "M" + V + "," + _ + "H" + W), H.attr("opacity", 1).attr("transform", function(v) {
|
|
57
57
|
return E(B(v) + _);
|
|
58
|
-
}), F.attr(g + "2", p * i), S.attr(g, p * M).text(O),
|
|
58
|
+
}), F.attr(g + "2", p * i), S.attr(g, p * M).text(O), $.filter(ar).attr("fill", "none").attr("font-size", 10).attr("font-family", "sans-serif").attr("text-anchor", t === oe ? "start" : t === Zt ? "end" : "middle"), $.each(function() {
|
|
59
59
|
this.__axis = B;
|
|
60
60
|
});
|
|
61
61
|
}
|
|
@@ -393,8 +393,8 @@ function Mr(t) {
|
|
|
393
393
|
I: Xr,
|
|
394
394
|
j: Gr,
|
|
395
395
|
L: Tn,
|
|
396
|
-
m:
|
|
397
|
-
M:
|
|
396
|
+
m: $r,
|
|
397
|
+
M: jr,
|
|
398
398
|
p: o,
|
|
399
399
|
q: z,
|
|
400
400
|
Q: Ge,
|
|
@@ -428,7 +428,7 @@ function Mr(t) {
|
|
|
428
428
|
L: xn,
|
|
429
429
|
m: da,
|
|
430
430
|
M: ma,
|
|
431
|
-
p:
|
|
431
|
+
p: j,
|
|
432
432
|
q: it,
|
|
433
433
|
Q: Ge,
|
|
434
434
|
s: Qe,
|
|
@@ -444,7 +444,7 @@ function Mr(t) {
|
|
|
444
444
|
Y: wa,
|
|
445
445
|
Z: Ca,
|
|
446
446
|
"%": Xe
|
|
447
|
-
},
|
|
447
|
+
}, $ = {
|
|
448
448
|
a: F,
|
|
449
449
|
A: S,
|
|
450
450
|
b: v,
|
|
@@ -504,7 +504,7 @@ function Mr(t) {
|
|
|
504
504
|
for (var J = 0, L = A.length, Q = N.length, Z, rt; J < L; ) {
|
|
505
505
|
if (f >= Q) return -1;
|
|
506
506
|
if (Z = A.charCodeAt(J++), Z === 37) {
|
|
507
|
-
if (Z = A.charAt(J++), rt =
|
|
507
|
+
if (Z = A.charAt(J++), rt = $[Z in Ve ? A.charAt(J++) : Z], !rt || (f = rt(k, N, f)) < 0) return -1;
|
|
508
508
|
} else if (Z != N.charCodeAt(f++))
|
|
509
509
|
return -1;
|
|
510
510
|
}
|
|
@@ -569,7 +569,7 @@ function Mr(t) {
|
|
|
569
569
|
function G(k) {
|
|
570
570
|
return y[k.getUTCMonth()];
|
|
571
571
|
}
|
|
572
|
-
function
|
|
572
|
+
function j(k) {
|
|
573
573
|
return a[+(k.getUTCHours() >= 12)];
|
|
574
574
|
}
|
|
575
575
|
function it(k) {
|
|
@@ -714,10 +714,10 @@ function Tn(t, e) {
|
|
|
714
714
|
function Qr(t, e) {
|
|
715
715
|
return Tn(t, e) + "000";
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function $r(t, e) {
|
|
718
718
|
return q(t.getMonth() + 1, e, 2);
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function jr(t, e) {
|
|
721
721
|
return q(t.getMinutes(), e, 2);
|
|
722
722
|
}
|
|
723
723
|
function Jr(t, e) {
|
|
@@ -854,7 +854,7 @@ function Sa(t) {
|
|
|
854
854
|
}
|
|
855
855
|
function Dn(t, e, n, r, a, i, s, y, _, p) {
|
|
856
856
|
var g = Xn(), E = g.invert, C = g.domain, b = p(".%L"), X = p(":%S"), O = p("%I:%M"), M = p("%I %p"), I = p("%a %d"), V = p("%b %d"), W = p("%B"), B = p("%Y");
|
|
857
|
-
function
|
|
857
|
+
function $(D) {
|
|
858
858
|
return (_(D) < D ? b : y(D) < D ? X : s(D) < D ? O : i(D) < D ? M : r(D) < D ? a(D) < D ? I : V : n(D) < D ? W : B)(D);
|
|
859
859
|
}
|
|
860
860
|
return g.invert = function(D) {
|
|
@@ -865,7 +865,7 @@ function Dn(t, e, n, r, a, i, s, y, _, p) {
|
|
|
865
865
|
var H = C();
|
|
866
866
|
return t(H[0], H[H.length - 1], D ?? 10);
|
|
867
867
|
}, g.tickFormat = function(D, H) {
|
|
868
|
-
return H == null ?
|
|
868
|
+
return H == null ? $ : p(H);
|
|
869
869
|
}, g.nice = function(D) {
|
|
870
870
|
var H = C();
|
|
871
871
|
return (!D || typeof D.range != "function") && (D = e(H[0], H[H.length - 1], D ?? 10)), D ? C(mr(H, D)) : g;
|
|
@@ -874,11 +874,11 @@ function Dn(t, e, n, r, a, i, s, y, _, p) {
|
|
|
874
874
|
}, g;
|
|
875
875
|
}
|
|
876
876
|
function Fa() {
|
|
877
|
-
return
|
|
877
|
+
return $n.apply(Dn(Dr, Cr, kt, Nt, Vt, Tt, Ot, Wt, vt, ne).domain([new Date(2e3, 0, 1), new Date(2e3, 0, 2)]), arguments);
|
|
878
878
|
}
|
|
879
|
-
var Gt = { exports: {} }, Ya = Gt.exports,
|
|
879
|
+
var Gt = { exports: {} }, Ya = Gt.exports, $e;
|
|
880
880
|
function Ua() {
|
|
881
|
-
return
|
|
881
|
+
return $e || ($e = 1, function(t, e) {
|
|
882
882
|
(function(n, r) {
|
|
883
883
|
t.exports = r();
|
|
884
884
|
})(Ya, function() {
|
|
@@ -907,9 +907,9 @@ function Ua() {
|
|
|
907
907
|
}
|
|
908
908
|
var Ea = Ua();
|
|
909
909
|
const La = /* @__PURE__ */ we(Ea);
|
|
910
|
-
var Qt = { exports: {} }, Aa = Qt.exports,
|
|
910
|
+
var Qt = { exports: {} }, Aa = Qt.exports, je;
|
|
911
911
|
function Ia() {
|
|
912
|
-
return
|
|
912
|
+
return je || (je = 1, function(t, e) {
|
|
913
913
|
(function(n, r) {
|
|
914
914
|
t.exports = r();
|
|
915
915
|
})(Aa, function() {
|
|
@@ -973,9 +973,9 @@ function Ia() {
|
|
|
973
973
|
return S || V[v] || n[v] || V[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(l, m, T) {
|
|
974
974
|
return m || T.slice(1);
|
|
975
975
|
});
|
|
976
|
-
})).match(r), B = W.length,
|
|
977
|
-
var D = W[
|
|
978
|
-
W[
|
|
976
|
+
})).match(r), B = W.length, $ = 0; $ < B; $ += 1) {
|
|
977
|
+
var D = W[$], H = X[D], x = H && H[0], Y = H && H[1];
|
|
978
|
+
W[$] = Y ? { regex: x, parser: Y } : D.replace(/^\[|\]$/g, "");
|
|
979
979
|
}
|
|
980
980
|
return function(F) {
|
|
981
981
|
for (var S = {}, v = 0, U = 0; v < B; v += 1) {
|
|
@@ -998,8 +998,8 @@ function Ia() {
|
|
|
998
998
|
return function(M, I, V) {
|
|
999
999
|
V.p.customParseFormat = !0, M && M.parseTwoDigitYear && (p = M.parseTwoDigitYear);
|
|
1000
1000
|
var W = I.prototype, B = W.parse;
|
|
1001
|
-
W.parse = function(
|
|
1002
|
-
var D =
|
|
1001
|
+
W.parse = function($) {
|
|
1002
|
+
var D = $.date, H = $.utc, x = $.args;
|
|
1003
1003
|
this.$u = H;
|
|
1004
1004
|
var Y = x[1];
|
|
1005
1005
|
if (typeof Y == "string") {
|
|
@@ -1007,9 +1007,9 @@ function Ia() {
|
|
|
1007
1007
|
S && (U = x[2]), _ = this.$locale(), !F && U && (_ = V.Ls[U]), this.$d = function(d, w, c, u) {
|
|
1008
1008
|
try {
|
|
1009
1009
|
if (["x", "X"].indexOf(w) > -1) return new Date((w === "X" ? 1e3 : 1) * d);
|
|
1010
|
-
var o = O(w)(d), z = o.year, P = o.month, R = o.day, K = o.hours, G = o.minutes,
|
|
1010
|
+
var o = O(w)(d), z = o.year, P = o.month, R = o.day, K = o.hours, G = o.minutes, j = o.seconds, it = o.milliseconds, k = o.zone, A = o.week, N = /* @__PURE__ */ new Date(), f = R || (z || P ? 1 : N.getDate()), J = z || N.getFullYear(), L = 0;
|
|
1011
1011
|
z && !P || (L = P > 0 ? P - 1 : N.getMonth());
|
|
1012
|
-
var Q, Z = K || 0, rt = G || 0, st =
|
|
1012
|
+
var Q, Z = K || 0, rt = G || 0, st = j || 0, pt = it || 0;
|
|
1013
1013
|
return k ? new Date(Date.UTC(J, L, f, Z, rt, st, pt + 60 * k.offset * 1e3)) : c ? new Date(Date.UTC(J, L, f, Z, rt, st, pt)) : (Q = new Date(J, L, f, Z, rt, st, pt), A && (Q = u(Q).week(A).toDate()), Q);
|
|
1014
1014
|
} catch {
|
|
1015
1015
|
return /* @__PURE__ */ new Date("");
|
|
@@ -1024,7 +1024,7 @@ function Ia() {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
m === l && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1026
1026
|
}
|
|
1027
|
-
else B.call(this,
|
|
1027
|
+
else B.call(this, $);
|
|
1028
1028
|
};
|
|
1029
1029
|
};
|
|
1030
1030
|
});
|
|
@@ -1032,7 +1032,7 @@ function Ia() {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
var Wa = Ia();
|
|
1034
1034
|
const Oa = /* @__PURE__ */ we(Wa);
|
|
1035
|
-
var
|
|
1035
|
+
var $t = { exports: {} }, Ha = $t.exports, Je;
|
|
1036
1036
|
function Na() {
|
|
1037
1037
|
return Je || (Je = 1, function(t, e) {
|
|
1038
1038
|
(function(n, r) {
|
|
@@ -1080,7 +1080,7 @@ function Na() {
|
|
|
1080
1080
|
};
|
|
1081
1081
|
};
|
|
1082
1082
|
});
|
|
1083
|
-
}(
|
|
1083
|
+
}($t)), $t.exports;
|
|
1084
1084
|
}
|
|
1085
1085
|
var Va = Na();
|
|
1086
1086
|
const Pa = /* @__PURE__ */ we(Va);
|
|
@@ -1088,7 +1088,7 @@ var ve = function() {
|
|
|
1088
1088
|
var t = /* @__PURE__ */ h(function(U, l, m, T) {
|
|
1089
1089
|
for (m = m || {}, T = U.length; T--; m[U[T]] = l) ;
|
|
1090
1090
|
return m;
|
|
1091
|
-
}, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], n = [1, 26], r = [1, 27], a = [1, 28], i = [1, 29], s = [1, 30], y = [1, 31], _ = [1, 32], p = [1, 33], g = [1, 34], E = [1, 9], C = [1, 10], b = [1, 11], X = [1, 12], O = [1, 13], M = [1, 14], I = [1, 15], V = [1, 16], W = [1, 19], B = [1, 20],
|
|
1091
|
+
}, "o"), e = [6, 8, 10, 12, 13, 14, 15, 16, 17, 18, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 35, 36, 38, 40], n = [1, 26], r = [1, 27], a = [1, 28], i = [1, 29], s = [1, 30], y = [1, 31], _ = [1, 32], p = [1, 33], g = [1, 34], E = [1, 9], C = [1, 10], b = [1, 11], X = [1, 12], O = [1, 13], M = [1, 14], I = [1, 15], V = [1, 16], W = [1, 19], B = [1, 20], $ = [1, 21], D = [1, 22], H = [1, 23], x = [1, 25], Y = [1, 35], F = {
|
|
1092
1092
|
trace: /* @__PURE__ */ h(function() {
|
|
1093
1093
|
}, "trace"),
|
|
1094
1094
|
yy: {},
|
|
@@ -1217,7 +1217,7 @@ var ve = function() {
|
|
|
1217
1217
|
break;
|
|
1218
1218
|
}
|
|
1219
1219
|
}, "anonymous"),
|
|
1220
|
-
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: X, 26: O, 27: M, 28: I, 29: V, 30: W, 31: B, 33:
|
|
1220
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, t(e, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: 17, 12: n, 13: r, 14: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: X, 26: O, 27: M, 28: I, 29: V, 30: W, 31: B, 33: $, 35: D, 36: H, 37: 24, 38: x, 40: Y }, t(e, [2, 7], { 1: [2, 1] }), t(e, [2, 3]), { 9: 36, 11: 17, 12: n, 13: r, 14: a, 15: i, 16: s, 17: y, 18: _, 19: 18, 20: p, 21: g, 22: E, 23: C, 24: b, 25: X, 26: O, 27: M, 28: I, 29: V, 30: W, 31: B, 33: $, 35: D, 36: H, 37: 24, 38: x, 40: Y }, t(e, [2, 5]), t(e, [2, 6]), t(e, [2, 17]), t(e, [2, 18]), t(e, [2, 19]), t(e, [2, 20]), t(e, [2, 21]), t(e, [2, 22]), t(e, [2, 23]), t(e, [2, 24]), t(e, [2, 25]), t(e, [2, 26]), t(e, [2, 27]), { 32: [1, 37] }, { 34: [1, 38] }, t(e, [2, 30]), t(e, [2, 31]), t(e, [2, 32]), { 39: [1, 39] }, t(e, [2, 8]), t(e, [2, 9]), t(e, [2, 10]), t(e, [2, 11]), t(e, [2, 12]), t(e, [2, 13]), t(e, [2, 14]), t(e, [2, 15]), t(e, [2, 16]), { 41: [1, 40], 43: [1, 41] }, t(e, [2, 4]), t(e, [2, 28]), t(e, [2, 29]), t(e, [2, 33]), t(e, [2, 34], { 42: [1, 42], 43: [1, 43] }), t(e, [2, 40], { 41: [1, 44] }), t(e, [2, 35], { 43: [1, 45] }), t(e, [2, 36]), t(e, [2, 38], { 42: [1, 46] }), t(e, [2, 37]), t(e, [2, 39])],
|
|
1221
1221
|
defaultActions: {},
|
|
1222
1222
|
parseError: /* @__PURE__ */ h(function(l, m) {
|
|
1223
1223
|
if (m.recoverable)
|
|
@@ -1228,13 +1228,13 @@ var ve = function() {
|
|
|
1228
1228
|
}
|
|
1229
1229
|
}, "parseError"),
|
|
1230
1230
|
parse: /* @__PURE__ */ h(function(l) {
|
|
1231
|
-
var m = this, T = [0], d = [], w = [null], c = [], u = this.table, o = "", z = 0, P = 0, R = 2, K = 1, G = c.slice.call(arguments, 1),
|
|
1231
|
+
var m = this, T = [0], d = [], w = [null], c = [], u = this.table, o = "", z = 0, P = 0, R = 2, K = 1, G = c.slice.call(arguments, 1), j = Object.create(this.lexer), it = { yy: {} };
|
|
1232
1232
|
for (var k in this.yy)
|
|
1233
1233
|
Object.prototype.hasOwnProperty.call(this.yy, k) && (it.yy[k] = this.yy[k]);
|
|
1234
|
-
|
|
1235
|
-
var A =
|
|
1234
|
+
j.setInput(l, it.yy), it.yy.lexer = j, it.yy.parser = this, typeof j.yylloc > "u" && (j.yylloc = {});
|
|
1235
|
+
var A = j.yylloc;
|
|
1236
1236
|
c.push(A);
|
|
1237
|
-
var N =
|
|
1237
|
+
var N = j.options && j.options.ranges;
|
|
1238
1238
|
typeof it.yy.parseError == "function" ? this.parseError = it.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
1239
1239
|
function f(ot) {
|
|
1240
1240
|
T.length = T.length - 2 * ot, w.length = w.length - ot, c.length = c.length - ot;
|
|
@@ -1242,7 +1242,7 @@ var ve = function() {
|
|
|
1242
1242
|
h(f, "popStack");
|
|
1243
1243
|
function J() {
|
|
1244
1244
|
var ot;
|
|
1245
|
-
return ot = d.pop() ||
|
|
1245
|
+
return ot = d.pop() || j.lex() || K, typeof ot != "number" && (ot instanceof Array && (d = ot, ot = d.pop()), ot = m.symbols_[ot] || ot), ot;
|
|
1246
1246
|
}
|
|
1247
1247
|
h(J, "lex");
|
|
1248
1248
|
for (var L, Q, Z, rt, st = {}, pt, ut, We, qt; ; ) {
|
|
@@ -1251,12 +1251,12 @@ var ve = function() {
|
|
|
1251
1251
|
qt = [];
|
|
1252
1252
|
for (pt in u[Q])
|
|
1253
1253
|
this.terminals_[pt] && pt > R && qt.push("'" + this.terminals_[pt] + "'");
|
|
1254
|
-
|
|
1255
|
-
` +
|
|
1254
|
+
j.showPosition ? ie = "Parse error on line " + (z + 1) + `:
|
|
1255
|
+
` + j.showPosition() + `
|
|
1256
1256
|
Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : ie = "Parse error on line " + (z + 1) + ": Unexpected " + (L == K ? "end of input" : "'" + (this.terminals_[L] || L) + "'"), this.parseError(ie, {
|
|
1257
|
-
text:
|
|
1257
|
+
text: j.match,
|
|
1258
1258
|
token: this.terminals_[L] || L,
|
|
1259
|
-
line:
|
|
1259
|
+
line: j.yylineno,
|
|
1260
1260
|
loc: A,
|
|
1261
1261
|
expected: qt
|
|
1262
1262
|
});
|
|
@@ -1265,7 +1265,7 @@ Expecting ` + qt.join(", ") + ", got '" + (this.terminals_[L] || L) + "'" : ie =
|
|
|
1265
1265
|
throw new Error("Parse Error: multiple actions possible at state: " + Q + ", token: " + L);
|
|
1266
1266
|
switch (Z[0]) {
|
|
1267
1267
|
case 1:
|
|
1268
|
-
T.push(L), w.push(
|
|
1268
|
+
T.push(L), w.push(j.yytext), c.push(j.yylloc), T.push(Z[1]), L = null, P = j.yyleng, o = j.yytext, z = j.yylineno, A = j.yylloc;
|
|
1269
1269
|
break;
|
|
1270
1270
|
case 2:
|
|
1271
1271
|
if (ut = this.productions_[Z[1]][1], st.$ = w[w.length - ut], st._$ = {
|
|
@@ -1601,7 +1601,7 @@ at.extend(La);
|
|
|
1601
1601
|
at.extend(Oa);
|
|
1602
1602
|
at.extend(Pa);
|
|
1603
1603
|
var Ke = { friday: 5, saturday: 6 }, lt = "", Me = "", _e = void 0, Se = "", Pt = [], zt = [], Fe = /* @__PURE__ */ new Map(), Ye = [], re = [], Et = "", Ue = "", Cn = ["active", "done", "crit", "milestone", "vert"], Ee = [], Rt = !1, Le = !1, Ae = "sunday", ae = "saturday", Te = 0, Ra = /* @__PURE__ */ h(function() {
|
|
1604
|
-
Ye = [], re = [], Et = "", Ee = [],
|
|
1604
|
+
Ye = [], re = [], Et = "", Ee = [], jt = 0, xe = void 0, Jt = void 0, tt = [], lt = "", Me = "", Ue = "", _e = void 0, Se = "", Pt = [], zt = [], Rt = !1, Le = !1, Te = 0, Fe = /* @__PURE__ */ new Map(), qn(), Ae = "sunday", ae = "saturday";
|
|
1605
1605
|
}, "clear"), qa = /* @__PURE__ */ h(function(t) {
|
|
1606
1606
|
Me = t;
|
|
1607
1607
|
}, "setAxisFormat"), Ba = /* @__PURE__ */ h(function() {
|
|
@@ -1614,9 +1614,9 @@ var Ke = { friday: 5, saturday: 6 }, lt = "", Me = "", _e = void 0, Se = "", Pt
|
|
|
1614
1614
|
Se = t;
|
|
1615
1615
|
}, "setTodayMarker"), Qa = /* @__PURE__ */ h(function() {
|
|
1616
1616
|
return Se;
|
|
1617
|
-
}, "getTodayMarker"),
|
|
1617
|
+
}, "getTodayMarker"), $a = /* @__PURE__ */ h(function(t) {
|
|
1618
1618
|
lt = t;
|
|
1619
|
-
}, "setDateFormat"),
|
|
1619
|
+
}, "setDateFormat"), ja = /* @__PURE__ */ h(function() {
|
|
1620
1620
|
Rt = !0;
|
|
1621
1621
|
}, "enableInclusiveEndDates"), Ja = /* @__PURE__ */ h(function() {
|
|
1622
1622
|
return Rt;
|
|
@@ -1681,7 +1681,8 @@ var Ke = { friday: 5, saturday: 6 }, lt = "", Me = "", _e = void 0, Se = "", Pt
|
|
|
1681
1681
|
i || (s = e.toDate()), i = Mn(t, n, r, a), i && (e = e.add(1, "d")), t = t.add(1, "d");
|
|
1682
1682
|
return [e, s];
|
|
1683
1683
|
}, "fixTaskDates"), be = /* @__PURE__ */ h(function(t, e, n) {
|
|
1684
|
-
n = n.trim()
|
|
1684
|
+
if (n = n.trim(), (e.trim() === "x" || e.trim() === "X") && /^\d+$/.test(n))
|
|
1685
|
+
return new Date(Number(n));
|
|
1685
1686
|
const a = /^after\s+(?<ids>[\d\w- ]+)/.exec(n);
|
|
1686
1687
|
if (a !== null) {
|
|
1687
1688
|
let s = null;
|
|
@@ -1736,8 +1737,8 @@ var Ke = { friday: 5, saturday: 6 }, lt = "", Me = "", _e = void 0, Se = "", Pt
|
|
|
1736
1737
|
g.isValid() && (y = g);
|
|
1737
1738
|
}
|
|
1738
1739
|
return y.toDate();
|
|
1739
|
-
}, "getEndDate"),
|
|
1740
|
-
return t === void 0 ? (
|
|
1740
|
+
}, "getEndDate"), jt = 0, Ft = /* @__PURE__ */ h(function(t) {
|
|
1741
|
+
return t === void 0 ? (jt = jt + 1, "task" + jt) : t;
|
|
1741
1742
|
}, "parseId"), yi = /* @__PURE__ */ h(function(t, e) {
|
|
1742
1743
|
let n;
|
|
1743
1744
|
e.substr(0, 1) === ":" ? n = e.substr(1, e.length) : n = e;
|
|
@@ -1899,9 +1900,9 @@ var Ke = { friday: 5, saturday: 6 }, lt = "", Me = "", _e = void 0, Se = "", Pt
|
|
|
1899
1900
|
}, "bindFunctions"), Di = {
|
|
1900
1901
|
getConfig: /* @__PURE__ */ h(() => _t().gantt, "getConfig"),
|
|
1901
1902
|
clear: Ra,
|
|
1902
|
-
setDateFormat:
|
|
1903
|
+
setDateFormat: $a,
|
|
1903
1904
|
getDateFormat: ri,
|
|
1904
|
-
enableInclusiveEndDates:
|
|
1905
|
+
enableInclusiveEndDates: ja,
|
|
1905
1906
|
endDatesAreInclusive: Ja,
|
|
1906
1907
|
enableTopAxis: Ka,
|
|
1907
1908
|
topAxisEnabled: ti,
|
|
@@ -1999,7 +2000,7 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
1999
2000
|
Jn(g, function(x) {
|
|
2000
2001
|
return x.startTime;
|
|
2001
2002
|
}),
|
|
2002
|
-
|
|
2003
|
+
jn(g, function(x) {
|
|
2003
2004
|
return x.endTime;
|
|
2004
2005
|
})
|
|
2005
2006
|
]).rangeRound([0, ht - a.leftPadding - a.rightPadding]);
|
|
@@ -2020,7 +2021,7 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
2020
2021
|
x,
|
|
2021
2022
|
r.db.getExcludes(),
|
|
2022
2023
|
r.db.getIncludes()
|
|
2023
|
-
), B(l, U, Y, F), V(x, v, U, l, S, m, Y),
|
|
2024
|
+
), B(l, U, Y, F), V(x, v, U, l, S, m, Y), $(v, U), D(l, U, Y, F);
|
|
2024
2025
|
}
|
|
2025
2026
|
h(I, "makeGantt");
|
|
2026
2027
|
function V(x, Y, F, S, v, U, l) {
|
|
@@ -2078,8 +2079,8 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
2078
2079
|
let R = "";
|
|
2079
2080
|
u.classes.length > 0 && (R = u.classes.join(" "));
|
|
2080
2081
|
let K = 0;
|
|
2081
|
-
for (const [
|
|
2082
|
-
u.type === it && (K =
|
|
2082
|
+
for (const [j, it] of E.entries())
|
|
2083
|
+
u.type === it && (K = j % a.numberSectionStyles);
|
|
2083
2084
|
let G = "";
|
|
2084
2085
|
return u.active && (u.crit ? G = "activeCritText" + K : G = "activeText" + K), u.done ? u.crit ? G = G + " doneCritText" + K : G = G + " doneText" + K : u.crit && (G = G + " critText" + K), u.milestone && (G += " milestoneText"), u.vert && (G += " vertText"), P > z - o ? z + P + 1.5 * a.leftPadding > l ? R + " taskTextOutsideLeft taskTextOutside" + K + " " + G : R + " taskTextOutsideRight taskTextOutside" + K + " " + G + " width-" + P : R + " taskText taskText" + K + " " + G + " width-" + P;
|
|
2085
2086
|
}), _t().securityLevel === "sandbox") {
|
|
@@ -2189,7 +2190,7 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
2189
2190
|
}
|
|
2190
2191
|
}
|
|
2191
2192
|
h(B, "makeGrid");
|
|
2192
|
-
function
|
|
2193
|
+
function $(x, Y) {
|
|
2193
2194
|
let F = 0;
|
|
2194
2195
|
const S = Object.keys(C).map((v) => [v, C[v]]);
|
|
2195
2196
|
X.append("g").selectAll("text").data(S).enter().append(function(v) {
|
|
@@ -2213,7 +2214,7 @@ var Ci = /* @__PURE__ */ h(function() {
|
|
|
2213
2214
|
return "sectionTitle";
|
|
2214
2215
|
});
|
|
2215
2216
|
}
|
|
2216
|
-
h(
|
|
2217
|
+
h($, "vertLabels");
|
|
2217
2218
|
function D(x, Y, F, S) {
|
|
2218
2219
|
const v = r.db.getTodayMarker();
|
|
2219
2220
|
if (v === "off")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./mermaid-parser.core-B5iH6WFA.cjs");exports.GitGraphModule=e.GitGraphModule;exports.createGitGraphServices=e.createGitGraphServices;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as Y } from "./chunk-4BX2VUAB-
|
|
2
|
-
import { I as K } from "./chunk-QZHKN3VN-
|
|
3
|
-
import { _ as l, q as U, p as V, s as X, g as J, a as Q, b as Z, l as m, c as rr, d as er, u as tr, C as ar, y as sr, k as C, D as nr, E as or, F as cr, G as ir } from "./index-
|
|
4
|
-
import { p as dr } from "./mermaid-parser.core-
|
|
1
|
+
import { p as Y } from "./chunk-4BX2VUAB-CzqEt7TW.js";
|
|
2
|
+
import { I as K } from "./chunk-QZHKN3VN-BLNjV6gl.js";
|
|
3
|
+
import { _ as l, q as U, p as V, s as X, g as J, a as Q, b as Z, l as m, c as rr, d as er, u as tr, C as ar, y as sr, k as C, D as nr, E as or, F as cr, G as ir } from "./index-CLesa_SQ.js";
|
|
4
|
+
import { p as dr } from "./mermaid-parser.core-B0Cu2wmR.js";
|
|
5
5
|
var p = {
|
|
6
6
|
NORMAL: 0,
|
|
7
7
|
REVERSE: 1,
|
package/dist/{gitGraphDiagram-NY62KEGX-Cf0pDsnE.cjs → gitGraphDiagram-NY62KEGX-BCEQsOWv.cjs}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-DDwXc_7d.cjs"),j=require("./chunk-QZHKN3VN-W4IpRRvo.cjs"),s=require("./index-CIVfowVG.cjs"),K=require("./mermaid-parser.core-BKijFcQf.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("./chunk-4BX2VUAB-CjiheXVM.cjs"),j=require("./chunk-QZHKN3VN-CQOs1jEr.cjs"),s=require("./index-hpqWwZz6.cjs"),K=require("./mermaid-parser.core-B5iH6WFA.cjs");var x={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4},U=s.defaultConfig_default.gitGraph,L=s.__name(()=>s.cleanAndMerge({...U,...s.getConfig().gitGraph}),"getConfig"),i=new j.ImperativeState(()=>{const t=L(),e=t.mainBranchName,n=t.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:n}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function G(){return s.random({length:7})}s.__name(G,"getID");function H(t,e){const n=Object.create(null);return t.reduce((o,r)=>{const a=e(r);return n[a]||(n[a]=!0,o.push(r)),o},[])}s.__name(H,"uniqBy");var Y=s.__name(function(t){i.records.direction=t},"setDirection"),V=s.__name(function(t){s.log.debug("options str",t),t=t?.trim(),t=t||"{}";try{i.records.options=JSON.parse(t)}catch(e){s.log.error("error while parsing gitGraph options",e.message)}},"setOptions"),X=s.__name(function(){return i.records.options},"getOptions"),Q=s.__name(function(t){let e=t.msg,n=t.id;const o=t.type;let r=t.tags;s.log.info("commit",e,n,o,r),s.log.debug("Entering commit:",e,n,o,r);const a=L();n=s.common_default.sanitizeText(n,a),e=s.common_default.sanitizeText(e,a),r=r?.map(c=>s.common_default.sanitizeText(c,a));const l={id:n||i.records.seq+"-"+G(),message:e,seq:i.records.seq++,type:o??x.NORMAL,tags:r??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=l,s.log.info("main branch",a.mainBranchName),i.records.commits.has(l.id)&&s.log.warn(`Commit ID ${l.id} already exists`),i.records.commits.set(l.id,l),i.records.branches.set(i.records.currBranch,l.id),s.log.debug("in pushCommit "+l.id)},"commit"),J=s.__name(function(t){let e=t.name;const n=t.order;if(e=s.common_default.sanitizeText(e,L()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:n}),D(e),s.log.debug("in createBranch")},"branch"),Z=s.__name(t=>{let e=t.branch,n=t.id;const o=t.type,r=t.tags,a=L();e=s.common_default.sanitizeText(e,a),n&&(n=s.common_default.sanitizeText(n,a));const l=i.records.branches.get(i.records.currBranch),c=i.records.branches.get(e),f=l?i.records.commits.get(l):void 0,h=c?i.records.commits.get(c):void 0;if(f&&h&&f.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){const d=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(f===void 0||!f){const d=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},d}if(!i.records.branches.has(e)){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},d}if(h===void 0||!h){const d=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},d}if(f===h){const d=new Error('Incorrect usage of "merge". Both branches have same head');throw d.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},d}if(n&&i.records.commits.has(n)){const d=new Error('Incorrect usage of "merge". Commit with id:'+n+" already exists, use different custom id");throw d.hash={text:`merge ${e} ${n} ${o} ${r?.join(" ")}`,token:`merge ${e} ${n} ${o} ${r?.join(" ")}`,expected:[`merge ${e} ${n}_UNIQUE ${o} ${r?.join(" ")}`]},d}const $=c||"",g={id:n||`${i.records.seq}-${G()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,$],branch:i.records.currBranch,type:x.MERGE,customType:o,customId:!!n,tags:r??[]};i.records.head=g,i.records.commits.set(g.id,g),i.records.branches.set(i.records.currBranch,g.id),s.log.debug(i.records.branches),s.log.debug("in mergeBranch")},"merge"),ee=s.__name(function(t){let e=t.id,n=t.targetId,o=t.tags,r=t.parent;s.log.debug("Entering cherryPick:",e,n,o);const a=L();if(e=s.common_default.sanitizeText(e,a),n=s.common_default.sanitizeText(n,a),o=o?.map(f=>s.common_default.sanitizeText(f,a)),r=s.common_default.sanitizeText(r,a),!e||!i.records.commits.has(e)){const f=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw f.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},f}const l=i.records.commits.get(e);if(l===void 0||!l)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(r&&!(Array.isArray(l.parents)&&l.parents.includes(r)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");const c=l.branch;if(l.type===x.MERGE&&!r)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!n||!i.records.commits.has(n)){if(c===i.records.currBranch){const g=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const f=i.records.branches.get(i.records.currBranch);if(f===void 0||!f){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const h=i.records.commits.get(f);if(h===void 0||!h){const g=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw g.hash={text:`cherryPick ${e} ${n}`,token:`cherryPick ${e} ${n}`,expected:["cherry-pick abc"]},g}const $={id:i.records.seq+"-"+G(),message:`cherry-picked ${l?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,l.id],branch:i.records.currBranch,type:x.CHERRY_PICK,tags:o?o.filter(Boolean):[`cherry-pick:${l.id}${l.type===x.MERGE?`|parent:${r}`:""}`]};i.records.head=$,i.records.commits.set($.id,$),i.records.branches.set(i.records.currBranch,$.id),s.log.debug(i.records.branches),s.log.debug("in cherryPick")}},"cherryPick"),D=s.__name(function(t){if(t=s.common_default.sanitizeText(t,L()),i.records.branches.has(t)){i.records.currBranch=t;const e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{const e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${t}")`);throw e.hash={text:`checkout ${t}`,token:`checkout ${t}`,expected:[`branch ${t}`]},e}},"checkout");function A(t,e,n){const o=t.indexOf(e);o===-1?t.push(n):t.splice(o,1,n)}s.__name(A,"upsert");function q(t){const e=t.reduce((r,a)=>r.seq>a.seq?r:a,t[0]);let n="";t.forEach(function(r){r===e?n+=" *":n+=" |"});const o=[n,e.id,e.seq];for(const r in i.records.branches)i.records.branches.get(r)===e.id&&o.push(r);if(s.log.debug(o.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){const r=i.records.commits.get(e.parents[0]);A(t,e,r),e.parents[1]&&t.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){const r=i.records.commits.get(e.parents[0]);A(t,e,r)}}t=H(t,r=>r.id),q(t)}s.__name(q,"prettyPrintCommitHistory");var re=s.__name(function(){s.log.debug(i.records.commits);const t=N()[0];q([t])},"prettyPrint"),te=s.__name(function(){i.reset(),s.clear()},"clear"),ae=s.__name(function(){return[...i.records.branchConfig.values()].map((e,n)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${n}`)}).sort((e,n)=>(e.order??0)-(n.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ne=s.__name(function(){return i.records.branches},"getBranches"),se=s.__name(function(){return i.records.commits},"getCommits"),N=s.__name(function(){const t=[...i.records.commits.values()];return t.forEach(function(e){s.log.debug(e.id)}),t.sort((e,n)=>e.seq-n.seq),t},"getCommitsArray"),oe=s.__name(function(){return i.records.currBranch},"getCurrentBranch"),ce=s.__name(function(){return i.records.direction},"getDirection"),ie=s.__name(function(){return i.records.head},"getHead"),z={commitType:x,getConfig:L,setDirection:Y,setOptions:V,getOptions:X,commit:Q,branch:J,merge:Z,cherryPick:ee,checkout:D,prettyPrint:re,clear:te,getBranchesAsObjArray:ae,getBranches:ne,getCommits:se,getCommitsArray:N,getCurrentBranch:oe,getDirection:ce,getHead:ie,setAccTitle:s.setAccTitle,getAccTitle:s.getAccTitle,getAccDescription:s.getAccDescription,setAccDescription:s.setAccDescription,setDiagramTitle:s.setDiagramTitle,getDiagramTitle:s.getDiagramTitle},de=s.__name((t,e)=>{W.populateCommonDb(t,e),t.dir&&e.setDirection(t.dir);for(const n of t.statements)le(n,e)},"populate"),le=s.__name((t,e)=>{const o={Commit:s.__name(r=>e.commit(he(r)),"Commit"),Branch:s.__name(r=>e.branch($e(r)),"Branch"),Merge:s.__name(r=>e.merge(fe(r)),"Merge"),Checkout:s.__name(r=>e.checkout(ge(r)),"Checkout"),CherryPicking:s.__name(r=>e.cherryPick(ye(r)),"CherryPicking")}[t.$type];o?o(t):s.log.error(`Unknown statement type: ${t.$type}`)},"parseStatement"),he=s.__name(t=>({id:t.id,msg:t.message??"",type:t.type!==void 0?x[t.type]:x.NORMAL,tags:t.tags??void 0}),"parseCommit"),$e=s.__name(t=>({name:t.name,order:t.order??0}),"parseBranch"),fe=s.__name(t=>({branch:t.branch,id:t.id??"",type:t.type!==void 0?x[t.type]:void 0,tags:t.tags??void 0}),"parseMerge"),ge=s.__name(t=>t.branch,"parseCheckout"),ye=s.__name(t=>({id:t.id,targetId:"",tags:t.tags?.length===0?void 0:t.tags,parent:t.parent}),"parseCherryPicking"),ue={parse:s.__name(async t=>{const e=await K.parse("gitGraph",t);s.log.debug(e),de(e,z)},"parse")},me=s.getConfig2(),_=me?.gitGraph,E=10,T=40,w=4,v=2,B=8,p=new Map,b=new Map,I=30,k=new Map,R=[],C=0,u="LR",xe=s.__name(()=>{p.clear(),b.clear(),k.clear(),C=0,R=[],u="LR"},"clear"),F=s.__name(t=>{const e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof t=="string"?t.split(/\\n|\n|<br\s*\/?>/gi):t).forEach(o=>{const r=document.createElementNS("http://www.w3.org/2000/svg","tspan");r.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),r.setAttribute("dy","1em"),r.setAttribute("x","0"),r.setAttribute("class","row"),r.textContent=o.trim(),e.appendChild(r)}),e},"drawText"),S=s.__name(t=>{let e,n,o;return u==="BT"?(n=s.__name((r,a)=>r<=a,"comparisonFunc"),o=1/0):(n=s.__name((r,a)=>r>=a,"comparisonFunc"),o=0),t.forEach(r=>{const a=u==="TB"||u=="BT"?b.get(r)?.y:b.get(r)?.x;a!==void 0&&n(a,o)&&(e=r,o=a)}),e},"findClosestParent"),pe=s.__name(t=>{let e="",n=1/0;return t.forEach(o=>{const r=b.get(o).y;r<=n&&(e=o,n=r)}),e||void 0},"findClosestParentBT"),be=s.__name((t,e,n)=>{let o=n,r=n;const a=[];t.forEach(l=>{const c=e.get(l);if(!c)throw new Error(`Commit not found for key ${l}`);c.parents.length?(o=we(c),r=Math.max(o,r)):a.push(c),ve(c,o)}),o=r,a.forEach(l=>{Ce(l,o,n)}),t.forEach(l=>{const c=e.get(l);if(c?.parents.length){const f=pe(c.parents);o=b.get(f).y-T,o<=r&&(r=o);const h=p.get(c.branch).pos,$=o-E;b.set(c.id,{x:h,y:$})}})},"setParallelBTPos"),_e=s.__name(t=>{const e=S(t.parents.filter(o=>o!==null));if(!e)throw new Error(`Closest parent not found for commit ${t.id}`);const n=b.get(e)?.y;if(n===void 0)throw new Error(`Closest parent position not found for commit ${t.id}`);return n},"findClosestParentPos"),we=s.__name(t=>_e(t)+T,"calculateCommitPosition"),ve=s.__name((t,e)=>{const n=p.get(t.branch);if(!n)throw new Error(`Branch not found for commit ${t.id}`);const o=n.pos,r=e+E;return b.set(t.id,{x:o,y:r}),{x:o,y:r}},"setCommitPosition"),Ce=s.__name((t,e,n)=>{const o=p.get(t.branch);if(!o)throw new Error(`Branch not found for commit ${t.id}`);const r=e+n,a=o.pos;b.set(t.id,{x:a,y:r})},"setRootPosition"),Ee=s.__name((t,e,n,o,r,a)=>{if(a===x.HIGHLIGHT)t.append("rect").attr("x",n.x-10).attr("y",n.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${r%B} ${o}-outer`),t.append("rect").attr("x",n.x-6).attr("y",n.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${r%B} ${o}-inner`);else if(a===x.CHERRY_PICK)t.append("circle").attr("cx",n.x).attr("cy",n.y).attr("r",10).attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x-3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("circle").attr("cx",n.x+3).attr("cy",n.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x+3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`),t.append("line").attr("x1",n.x-3).attr("y1",n.y+1).attr("x2",n.x).attr("y2",n.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${o}`);else{const l=t.append("circle");if(l.attr("cx",n.x),l.attr("cy",n.y),l.attr("r",e.type===x.MERGE?9:10),l.attr("class",`commit ${e.id} commit${r%B}`),a===x.MERGE){const c=t.append("circle");c.attr("cx",n.x),c.attr("cy",n.y),c.attr("r",6),c.attr("class",`commit ${o} ${e.id} commit${r%B}`)}a===x.REVERSE&&t.append("path").attr("d",`M ${n.x-5},${n.y-5}L${n.x+5},${n.y+5}M${n.x-5},${n.y+5}L${n.x+5},${n.y-5}`).attr("class",`commit ${o} ${e.id} commit${r%B}`)}},"drawCommitBullet"),Te=s.__name((t,e,n,o)=>{if(e.type!==x.CHERRY_PICK&&(e.customId&&e.type===x.MERGE||e.type!==x.MERGE)&&_?.showCommitLabel){const r=t.append("g"),a=r.insert("rect").attr("class","commit-label-bkg"),l=r.append("text").attr("x",o).attr("y",n.y+25).attr("class","commit-label").text(e.id),c=l.node()?.getBBox();if(c&&(a.attr("x",n.posWithOffset-c.width/2-v).attr("y",n.y+13.5).attr("width",c.width+2*v).attr("height",c.height+2*v),u==="TB"||u==="BT"?(a.attr("x",n.x-(c.width+4*w+5)).attr("y",n.y-12),l.attr("x",n.x-(c.width+4*w)).attr("y",n.y+c.height-12)):l.attr("x",n.posWithOffset-c.width/2),_.rotateCommitLabel))if(u==="TB"||u==="BT")l.attr("transform","rotate(-45, "+n.x+", "+n.y+")"),a.attr("transform","rotate(-45, "+n.x+", "+n.y+")");else{const f=-7.5-(c.width+10)/25*9.5,h=10+c.width/25*8.5;r.attr("transform","translate("+f+", "+h+") rotate(-45, "+o+", "+n.y+")")}}},"drawCommitLabel"),Be=s.__name((t,e,n,o)=>{if(e.tags.length>0){let r=0,a=0,l=0;const c=[];for(const f of e.tags.reverse()){const h=t.insert("polygon"),$=t.append("circle"),g=t.append("text").attr("y",n.y-16-r).attr("class","tag-label").text(f),d=g.node()?.getBBox();if(!d)throw new Error("Tag bbox not found");a=Math.max(a,d.width),l=Math.max(l,d.height),g.attr("x",n.posWithOffset-d.width/2),c.push({tag:g,hole:$,rect:h,yOffset:r}),r+=20}for(const{tag:f,hole:h,rect:$,yOffset:g}of c){const d=l/2,y=n.y-19.2-g;if($.attr("class","tag-label-bkg").attr("points",`
|
|
2
2
|
${o-a/2-w/2},${y+v}
|
|
3
3
|
${o-a/2-w/2},${y-v}
|
|
4
4
|
${n.posWithOffset-a/2-w},${y-d-v}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const u=require("./index-
|
|
1
|
+
"use strict";const u=require("./index-hpqWwZz6.cjs"),n=require("./_baseUniq-Cp2_6kKU.cjs");var b=u.baseRest(function(o){return n.baseUniq(n.baseFlatten(o,1,u.isArrayLikeObject,!0))}),E="\0",a="\0",g="";class f{constructor(e={}){this._isDirected=Object.prototype.hasOwnProperty.call(e,"directed")?e.directed:!0,this._isMultigraph=Object.prototype.hasOwnProperty.call(e,"multigraph")?e.multigraph:!1,this._isCompound=Object.prototype.hasOwnProperty.call(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=u.constant$1(void 0),this._defaultEdgeLabelFn=u.constant$1(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[a]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultNodeLabelFn=e,this}nodeCount(){return this._nodeCount}nodes(){return n.keys(this._nodes)}sources(){var e=this;return n.filter(this.nodes(),function(t){return u.isEmpty(e._in[t])})}sinks(){var e=this;return n.filter(this.nodes(),function(t){return u.isEmpty(e._out[t])})}setNodes(e,t){var s=arguments,i=this;return n.forEach(e,function(r){s.length>1?i.setNode(r,t):i.setNode(r)}),this}setNode(e,t){return Object.prototype.hasOwnProperty.call(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=a,this._children[e]={},this._children[a][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return Object.prototype.hasOwnProperty.call(this._nodes,e)}removeNode(e){if(Object.prototype.hasOwnProperty.call(this._nodes,e)){var t=s=>this.removeEdge(this._edgeObjs[s]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],n.forEach(this.children(e),s=>{this.setParent(s)}),delete this._children[e]),n.forEach(n.keys(this._in[e]),t),delete this._in[e],delete this._preds[e],n.forEach(n.keys(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(n.isUndefined(t))t=a;else{t+="";for(var s=t;!n.isUndefined(s);s=this.parent(s))if(s===e)throw new Error("Setting "+t+" as parent of "+e+" would create a cycle");this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}parent(e){if(this._isCompound){var t=this._parent[e];if(t!==a)return t}}children(e){if(n.isUndefined(e)&&(e=a),this._isCompound){var t=this._children[e];if(t)return n.keys(t)}else{if(e===a)return this.nodes();if(this.hasNode(e))return[]}}predecessors(e){var t=this._preds[e];if(t)return n.keys(t)}successors(e){var t=this._sucs[e];if(t)return n.keys(t)}neighbors(e){var t=this.predecessors(e);if(t)return b(t,this.successors(e))}isLeaf(e){var t;return this.isDirected()?t=this.successors(e):t=this.neighbors(e),t.length===0}filterNodes(e){var t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph());var s=this;n.forEach(this._nodes,function(h,d){e(d)&&t.setNode(d,h)}),n.forEach(this._edgeObjs,function(h){t.hasNode(h.v)&&t.hasNode(h.w)&&t.setEdge(h,s.edge(h))});var i={};function r(h){var d=s.parent(h);return d===void 0||t.hasNode(d)?(i[h]=d,d):d in i?i[d]:r(d)}return this._isCompound&&n.forEach(t.nodes(),function(h){t.setParent(h,r(h))}),t}setDefaultEdgeLabel(e){return u.isFunction(e)||(e=u.constant$1(e)),this._defaultEdgeLabelFn=e,this}edgeCount(){return this._edgeCount}edges(){return n.values(this._edgeObjs)}setPath(e,t){var s=this,i=arguments;return n.reduce(e,function(r,h){return i.length>1?s.setEdge(r,h,t):s.setEdge(r,h),h}),this}setEdge(){var e,t,s,i,r=!1,h=arguments[0];typeof h=="object"&&h!==null&&"v"in h?(e=h.v,t=h.w,s=h.name,arguments.length===2&&(i=arguments[1],r=!0)):(e=h,t=arguments[1],s=arguments[3],arguments.length>2&&(i=arguments[2],r=!0)),e=""+e,t=""+t,n.isUndefined(s)||(s=""+s);var d=_(this._isDirected,e,t,s);if(Object.prototype.hasOwnProperty.call(this._edgeLabels,d))return r&&(this._edgeLabels[d]=i),this;if(!n.isUndefined(s)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(t),this._edgeLabels[d]=r?i:this._defaultEdgeLabelFn(e,t,s);var l=y(this._isDirected,e,t,s);return e=l.v,t=l.w,Object.freeze(l),this._edgeObjs[d]=l,p(this._preds[t],e),p(this._sucs[e],t),this._in[t][d]=l,this._out[e][d]=l,this._edgeCount++,this}edge(e,t,s){var i=arguments.length===1?c(this._isDirected,arguments[0]):_(this._isDirected,e,t,s);return this._edgeLabels[i]}hasEdge(e,t,s){var i=arguments.length===1?c(this._isDirected,arguments[0]):_(this._isDirected,e,t,s);return Object.prototype.hasOwnProperty.call(this._edgeLabels,i)}removeEdge(e,t,s){var i=arguments.length===1?c(this._isDirected,arguments[0]):_(this._isDirected,e,t,s),r=this._edgeObjs[i];return r&&(e=r.v,t=r.w,delete this._edgeLabels[i],delete this._edgeObjs[i],m(this._preds[t],e),m(this._sucs[e],t),delete this._in[t][i],delete this._out[e][i],this._edgeCount--),this}inEdges(e,t){var s=this._in[e];if(s){var i=n.values(s);return t?n.filter(i,function(r){return r.v===t}):i}}outEdges(e,t){var s=this._out[e];if(s){var i=n.values(s);return t?n.filter(i,function(r){return r.w===t}):i}}nodeEdges(e,t){var s=this.inEdges(e,t);if(s)return s.concat(this.outEdges(e,t))}}f.prototype._nodeCount=0;f.prototype._edgeCount=0;function p(o,e){o[e]?o[e]++:o[e]=1}function m(o,e){--o[e]||delete o[e]}function _(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var h=i;i=r,r=h}return i+g+r+g+(n.isUndefined(s)?E:s)}function y(o,e,t,s){var i=""+e,r=""+t;if(!o&&i>r){var h=i;i=r,r=h}var d={v:i,w:r};return s&&(d.name=s),d}function c(o,e){return _(o,e.v,e.w,e.name)}exports.Graph=f;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { aC as N, aD as j, aE as f, aF as b, aG as E } from "./index-
|
|
2
|
-
import { a as v, c as P, k as _, f as g, d, i as l, v as p, r as D } from "./_baseUniq-
|
|
1
|
+
import { aC as N, aD as j, aE as f, aF as b, aG as E } from "./index-CLesa_SQ.js";
|
|
2
|
+
import { a as v, c as P, k as _, f as g, d, i as l, v as p, r as D } from "./_baseUniq-JMaHwlAX.js";
|
|
3
3
|
var w = N(function(o) {
|
|
4
4
|
return v(P(o, 1, j, !0));
|
|
5
5
|
}), F = "\0", a = "\0", O = "";
|