@ashwin_droid/notion-stream 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_baseUniq-DSwfPiGC.js → _baseUniq-CWfjzMhC.js} +1 -1
- package/dist/{_baseUniq-CT-tc-CG.mjs → _baseUniq-Db9ouzA-.mjs} +51 -51
- package/dist/{arc-DmoYXidQ.mjs → arc-CHlsWOEE.mjs} +1 -1
- package/dist/{arc-BBnIBs2j.js → arc-DxDH4CNq.js} +1 -1
- package/dist/{architecture-U656AL7Q-CMPtJMZ-.mjs → architecture-U656AL7Q-DpmenltQ.mjs} +1 -1
- package/dist/{architecture-U656AL7Q-C0ZB2O9M.js → architecture-U656AL7Q-DqUhwOXk.js} +1 -1
- package/dist/{architectureDiagram-VXUJARFQ-BYzpbF40.mjs → architectureDiagram-VXUJARFQ-C2hauZCK.mjs} +1846 -1850
- package/dist/architectureDiagram-VXUJARFQ-LwDhoqXa.js +36 -0
- package/dist/blockDiagram-VD42YOAC-Cws7af6P.js +122 -0
- package/dist/{blockDiagram-VD42YOAC-DPVTCHn5.mjs → blockDiagram-VD42YOAC-yWS4_TxE.mjs} +913 -922
- package/dist/c4Diagram-YG6GDRKO-DLoBqiir.js +10 -0
- package/dist/{c4Diagram-YG6GDRKO-C2Y4q08p.mjs → c4Diagram-YG6GDRKO-K4ShvkML.mjs} +169 -170
- package/dist/channel-BqjR_aPb.js +1 -0
- package/dist/{channel-DVpqhnow.mjs → channel-_5jzmP-I.mjs} +1 -1
- package/dist/chunk-4BX2VUAB-6hr5PCkV.js +1 -0
- package/dist/chunk-4BX2VUAB-DBTu5W6L.mjs +8 -0
- package/dist/{chunk-55IACEB6-P_FVKIbW.js → chunk-55IACEB6-BLs0Xswy.js} +1 -1
- package/dist/{chunk-55IACEB6-Du1Simcj.mjs → chunk-55IACEB6-_brNODlK.mjs} +1 -1
- package/dist/chunk-B4BG7PRW-6HdbiUFA.js +165 -0
- package/dist/{chunk-B4BG7PRW-BUKsa2yH.mjs → chunk-B4BG7PRW-CWohxZt0.mjs} +251 -252
- package/dist/chunk-DI55MBZ5-DehdsbpI.js +220 -0
- package/dist/{chunk-DI55MBZ5-C9h0qLVI.mjs → chunk-DI55MBZ5-db62NlMD.mjs} +444 -456
- package/dist/{chunk-FMBD7UC4-48-zdz-1.js → chunk-FMBD7UC4-B2j81cAo.js} +1 -1
- package/dist/{chunk-FMBD7UC4-C08-zA06.mjs → chunk-FMBD7UC4-BegOwXuP.mjs} +1 -1
- package/dist/chunk-QN33PNHL-CJ1oa0p-.js +1 -0
- package/dist/chunk-QN33PNHL-CpBQYWWf.mjs +19 -0
- package/dist/{chunk-QZHKN3VN-DbO6TJSK.mjs → chunk-QZHKN3VN-BG9vC9tQ.mjs} +1 -1
- package/dist/{chunk-QZHKN3VN-Dy2264ui.js → chunk-QZHKN3VN-DV3-w0rK.js} +1 -1
- package/dist/{chunk-TZMSLE5B-BPmI9i6R.mjs → chunk-TZMSLE5B-D3cmOS_D.mjs} +20 -20
- package/dist/{chunk-TZMSLE5B-COENnLAZ.js → chunk-TZMSLE5B-DtKjE4RE.js} +1 -1
- package/dist/{classDiagram-v2-WZHVMYZB-mzvV1Ifg.mjs → classDiagram-2ON5EDUG-DAL3V7Dx.mjs} +2 -2
- package/dist/{classDiagram-2ON5EDUG-CFFwYK87.js → classDiagram-2ON5EDUG-uOMmrtgR.js} +1 -1
- package/dist/{classDiagram-2ON5EDUG-mzvV1Ifg.mjs → classDiagram-v2-WZHVMYZB-DAL3V7Dx.mjs} +2 -2
- package/dist/{classDiagram-v2-WZHVMYZB-CFFwYK87.js → classDiagram-v2-WZHVMYZB-uOMmrtgR.js} +1 -1
- package/dist/{clone-KtLCwiKH.mjs → clone-BiSDKkgs.mjs} +1 -1
- package/dist/clone-Bl9s3LR9.js +1 -0
- package/dist/{code-block-37QAKDTI-sxlq94xm.js → code-block-37QAKDTI-BILtfzQC.js} +1 -1
- package/dist/{code-block-37QAKDTI-CmykMxjQ.mjs → code-block-37QAKDTI-MauA-22z.mjs} +1 -1
- package/dist/cose-bilkent-S5V4N54A-CPJoKUiO.js +1 -0
- package/dist/{cose-bilkent-S5V4N54A-BXcldnso.mjs → cose-bilkent-S5V4N54A-rUEUYQdF.mjs} +592 -589
- package/dist/cytoscape.esm-CNUX3VTg.js +321 -0
- package/dist/{cytoscape.esm-ZmItrg9y.mjs → cytoscape.esm-Cvf3sx9F.mjs} +56 -83
- package/dist/dagre-6UL2VRFP-b0VfOp5y.mjs +443 -0
- package/dist/dagre-6UL2VRFP-r_ADTb0O.js +4 -0
- package/dist/diagram-PSM6KHXK-CuHqLGUt.js +24 -0
- package/dist/{diagram-PSM6KHXK-DIV3jw9d.mjs → diagram-PSM6KHXK-ax3IfFcX.mjs} +45 -48
- package/dist/diagram-QEK2KX5R-B5Lo9E-s.js +43 -0
- package/dist/{diagram-QEK2KX5R-Q0M2_YtR.mjs → diagram-QEK2KX5R-Dn47K2He.mjs} +10 -14
- package/dist/diagram-S2PKOQOG-B0W-tWPV.js +24 -0
- package/dist/{diagram-S2PKOQOG-_WGA6s2-.mjs → diagram-S2PKOQOG-C5jPENyu.mjs} +22 -23
- package/dist/{erDiagram-Q2GNP2WA-CW0D_QGb.mjs → erDiagram-Q2GNP2WA-XP6-Fsuy.mjs} +77 -78
- package/dist/erDiagram-Q2GNP2WA-k7niLq9H.js +60 -0
- package/dist/flowDiagram-NV44I4VS-BAdaW0zG.js +162 -0
- package/dist/{flowDiagram-NV44I4VS-DVQ8Ntc4.mjs → flowDiagram-NV44I4VS-DzHvKZ3e.mjs} +442 -449
- package/dist/{ganttDiagram-JELNMOA3-Bk-dX6qT.mjs → ganttDiagram-JELNMOA3-BRenKPXr.mjs} +1049 -1041
- package/dist/ganttDiagram-JELNMOA3-CddDOxeO.js +267 -0
- package/dist/{gitGraph-F6HP7TQM-DvIgo2TM.js → gitGraph-F6HP7TQM-BLshE7A8.js} +1 -1
- package/dist/{gitGraph-F6HP7TQM-CsdwxYUE.mjs → gitGraph-F6HP7TQM-Dq8gDI5R.mjs} +1 -1
- package/dist/gitGraphDiagram-NY62KEGX-B-rSecLz.mjs +699 -0
- package/dist/gitGraphDiagram-NY62KEGX-C980oVrU.js +65 -0
- package/dist/{graph-BNpx6ebg.js → graph-BlL96kLy.js} +1 -1
- package/dist/{graph-C_T4ZBuC.mjs → graph-DxtCPktv.mjs} +8 -8
- package/dist/index-DIQbvlIr.js +670 -0
- package/dist/{index-oe4HpmeG.mjs → index-yf1-93v5.mjs} +22534 -22642
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -3
- package/dist/info-NVLQJR56-BQNoY6_p.mjs +5 -0
- package/dist/{info-NVLQJR56-BwFQRguW.js → info-NVLQJR56-Bls_Dqxs.js} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-CCb5k_S7.js → infoDiagram-WHAUD3N6-DwsUlSxN.js} +1 -1
- package/dist/{infoDiagram-WHAUD3N6-C-gzsm95.mjs → infoDiagram-WHAUD3N6-FnUO4LNo.mjs} +2 -2
- package/dist/journeyDiagram-XKPGCS4Q-7k1g8rPF.js +139 -0
- package/dist/{journeyDiagram-XKPGCS4Q-DzkUL_YG.mjs → journeyDiagram-XKPGCS4Q-Bvn5lhxn.mjs} +24 -26
- package/dist/kanban-definition-3W4ZIXB7-Cqf7XpzW.js +89 -0
- package/dist/kanban-definition-3W4ZIXB7-D29d9Rl2.mjs +719 -0
- package/dist/{layout-CuWQnP5Y.js → layout-B_kkbzwQ.js} +1 -1
- package/dist/{layout-Cd98WJ7r.mjs → layout-BlUfzTib.mjs} +22 -22
- package/dist/{linear-SU4e8MRt.mjs → linear-CC_oUBkf.mjs} +20 -20
- package/dist/{linear-DFDw13y6.js → linear-DF2d9TVq.js} +1 -1
- package/dist/{mermaid-4DMBBIKO-BihEtyib.js → mermaid-4DMBBIKO-2ufyMRt4.js} +1 -1
- package/dist/mermaid-4DMBBIKO-BizANXE3.mjs +4 -0
- package/dist/{mermaid-parser.core-C8Sxzqul.mjs → mermaid-parser.core-CkXMNpV7.mjs} +3404 -3369
- package/dist/mermaid-parser.core-DQkQZAvG.js +128 -0
- package/dist/{min-CppMRDFn.js → min-I7eFb2cg.js} +1 -1
- package/dist/{min-C2k771MZ.mjs → min-VPOHWCTf.mjs} +2 -2
- package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-CawQ5XYo.mjs} +170 -172
- package/dist/mindmap-definition-VGOIOE7T-d8uGKtHO.js +68 -0
- package/dist/{ordinal-C0oynhte.mjs → ordinal-B-KqvkJf.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-Cz_A86d3.mjs → packet-BFZMPI3H-BbdhMsyD.mjs} +1 -1
- package/dist/{packet-BFZMPI3H-CFx3kSkL.js → packet-BFZMPI3H-CiqPNXx_.js} +1 -1
- package/dist/{pie-7BOR55EZ-_1MqisBd.js → pie-7BOR55EZ-BfYvvrxF.js} +1 -1
- package/dist/pie-7BOR55EZ-CkKpjIfF.mjs +5 -0
- package/dist/{pieDiagram-ADFJNKIX-Bg0_gu43.js → pieDiagram-ADFJNKIX-BlNrJLdh.js} +2 -2
- package/dist/{pieDiagram-ADFJNKIX-lRs_rpwI.mjs → pieDiagram-ADFJNKIX-TQppVIgS.mjs} +21 -21
- package/dist/{quadrantDiagram-AYHSOK5B-D9kypJt6.mjs → quadrantDiagram-AYHSOK5B-CysN5Kyu.mjs} +230 -232
- package/dist/quadrantDiagram-AYHSOK5B-fy7-bMNk.js +7 -0
- package/dist/{radar-NHE76QYJ-CdtC4C8F.js → radar-NHE76QYJ-BjbmLxde.js} +1 -1
- package/dist/{radar-NHE76QYJ-B-PvZD0K.mjs → radar-NHE76QYJ-BlbyKqWL.mjs} +1 -1
- package/dist/requirementDiagram-UZGBJVZJ-CGgt75Rl.js +64 -0
- package/dist/{requirementDiagram-UZGBJVZJ-B5ulaHjE.mjs → requirementDiagram-UZGBJVZJ-CfMcIbMc.mjs} +190 -192
- package/dist/{sankeyDiagram-TZEHDZUN-DprIPFbe.mjs → sankeyDiagram-TZEHDZUN-aFz48-W2.mjs} +189 -189
- package/dist/sankeyDiagram-TZEHDZUN-q-r70ybp.js +10 -0
- package/dist/{sequenceDiagram-WL72ISMW-B4m4oag0.mjs → sequenceDiagram-WL72ISMW-B9w1iL31.mjs} +222 -229
- package/dist/sequenceDiagram-WL72ISMW-nlFlEmNQ.js +145 -0
- package/dist/{stateDiagram-FKZM4ZOC-BD4tnS-V.js → stateDiagram-FKZM4ZOC-C9DXFs3P.js} +1 -1
- package/dist/{stateDiagram-FKZM4ZOC-DjkdDbQ2.mjs → stateDiagram-FKZM4ZOC-e4SGJ8oh.mjs} +4 -4
- package/dist/{stateDiagram-v2-4FDKWEC3-sybMoxOk.js → stateDiagram-v2-4FDKWEC3-FoEBCoPy.js} +1 -1
- package/dist/{stateDiagram-v2-4FDKWEC3-AK86F3i6.mjs → stateDiagram-v2-4FDKWEC3-QUPk_c9P.mjs} +2 -2
- package/dist/timeline-definition-IT6M3QCI-BqUt3ka4.js +61 -0
- package/dist/{timeline-definition-IT6M3QCI-BFuQEeZP.mjs → timeline-definition-IT6M3QCI-Br9KrJcU.mjs} +217 -223
- package/dist/{treemap-KMMF4GRG-DTnRa789.js → treemap-KMMF4GRG-DTii969M.js} +1 -1
- package/dist/{treemap-KMMF4GRG-gtrnY16v.mjs → treemap-KMMF4GRG-DVxjgEhu.mjs} +1 -1
- package/dist/xychartDiagram-PRI3JC2R-Bi02nVw4.js +7 -0
- package/dist/{xychartDiagram-PRI3JC2R-CjXiy6m0.mjs → xychartDiagram-PRI3JC2R-BygtBGgX.mjs} +7 -7
- package/package.json +4 -4
- package/dist/architectureDiagram-VXUJARFQ-BPQoZmaM.js +0 -36
- package/dist/blockDiagram-VD42YOAC-Z3Fc3Bew.js +0 -122
- package/dist/c4Diagram-YG6GDRKO-LzDuCZ2V.js +0 -10
- package/dist/channel-6dUO0MQi.js +0 -1
- package/dist/chunk-4BX2VUAB-BwubFldI.js +0 -1
- package/dist/chunk-4BX2VUAB-DldMXCTt.mjs +0 -9
- package/dist/chunk-B4BG7PRW-CKX0VJ-S.js +0 -165
- package/dist/chunk-DI55MBZ5-CMq-O8k2.js +0 -220
- package/dist/chunk-QN33PNHL-B0sO38bZ.js +0 -1
- package/dist/chunk-QN33PNHL-B_PGnTkk.mjs +0 -20
- package/dist/clone-B0UaPT2Z.js +0 -1
- package/dist/cose-bilkent-S5V4N54A-BCaAPmuF.js +0 -1
- package/dist/cytoscape.esm-DkGgpG6d.js +0 -331
- package/dist/dagre-6UL2VRFP-By42zbLA.mjs +0 -446
- package/dist/dagre-6UL2VRFP-DCwfkcWi.js +0 -4
- package/dist/diagram-PSM6KHXK-hjXN9n1N.js +0 -24
- package/dist/diagram-QEK2KX5R-B04ODMim.js +0 -43
- package/dist/diagram-S2PKOQOG-BmCs4MZE.js +0 -24
- package/dist/erDiagram-Q2GNP2WA-4KtQUUuI.js +0 -60
- package/dist/flowDiagram-NV44I4VS-BwpfJE0U.js +0 -162
- package/dist/ganttDiagram-JELNMOA3-D7rI7u8B.js +0 -267
- package/dist/gitGraphDiagram-NY62KEGX-BDTsbSkO.mjs +0 -712
- package/dist/gitGraphDiagram-NY62KEGX-IQ8KriUw.js +0 -65
- package/dist/index-CkYZRBYn.js +0 -676
- package/dist/info-NVLQJR56-B5gDnSIT.mjs +0 -5
- package/dist/journeyDiagram-XKPGCS4Q-POnSekz9.js +0 -139
- package/dist/kanban-definition-3W4ZIXB7-BPr0_7wG.mjs +0 -720
- package/dist/kanban-definition-3W4ZIXB7-Bm064qrf.js +0 -89
- package/dist/mermaid-4DMBBIKO-DDxvQcE9.mjs +0 -4
- package/dist/mermaid-parser.core-BHAgLMGa.js +0 -128
- package/dist/mindmap-definition-VGOIOE7T-CV7bD4HY.js +0 -68
- package/dist/pie-7BOR55EZ-B0-atE_o.mjs +0 -5
- package/dist/quadrantDiagram-AYHSOK5B-B4gVakRV.js +0 -7
- package/dist/requirementDiagram-UZGBJVZJ-0zMPj-SD.js +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-Cl8-L83T.js +0 -10
- package/dist/sequenceDiagram-WL72ISMW-DRQn7Fe4.js +0 -145
- package/dist/timeline-definition-IT6M3QCI-2X4dfyLj.js +0 -61
- package/dist/xychartDiagram-PRI3JC2R-BaFd1In8.js +0 -7
package/dist/{mindmap-definition-VGOIOE7T-BUd354uH.mjs → mindmap-definition-VGOIOE7T-CawQ5XYo.mjs}
RENAMED
|
@@ -1,162 +1,161 @@
|
|
|
1
|
-
import { g as le } from "./chunk-55IACEB6-
|
|
2
|
-
import { s as he } from "./chunk-QN33PNHL-
|
|
3
|
-
import { _ as l, l as
|
|
1
|
+
import { g as le } from "./chunk-55IACEB6-_brNODlK.mjs";
|
|
2
|
+
import { s as he } from "./chunk-QN33PNHL-CpBQYWWf.mjs";
|
|
3
|
+
import { _ as l, l as I, u as de, v as ge, M as B, f as z, m as V, aH as ue, ai as pe, aj as fe, ak as ye } from "./index-yf1-93v5.mjs";
|
|
4
4
|
const E = [];
|
|
5
5
|
for (let t = 0; t < 256; ++t)
|
|
6
6
|
E.push((t + 256).toString(16).slice(1));
|
|
7
7
|
function me(t, e = 0) {
|
|
8
8
|
return (E[t[e + 0]] + E[t[e + 1]] + E[t[e + 2]] + E[t[e + 3]] + "-" + E[t[e + 4]] + E[t[e + 5]] + "-" + E[t[e + 6]] + E[t[e + 7]] + "-" + E[t[e + 8]] + E[t[e + 9]] + "-" + E[t[e + 10]] + E[t[e + 11]] + E[t[e + 12]] + E[t[e + 13]] + E[t[e + 14]] + E[t[e + 15]]).toLowerCase();
|
|
9
9
|
}
|
|
10
|
-
let
|
|
10
|
+
let W;
|
|
11
11
|
const Ee = new Uint8Array(16);
|
|
12
12
|
function _e() {
|
|
13
|
-
if (!
|
|
13
|
+
if (!W) {
|
|
14
14
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
15
15
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
16
|
-
|
|
16
|
+
W = crypto.getRandomValues.bind(crypto);
|
|
17
17
|
}
|
|
18
|
-
return
|
|
18
|
+
return W(Ee);
|
|
19
19
|
}
|
|
20
20
|
const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
|
|
21
21
|
function Se(t, e, n) {
|
|
22
|
-
var u;
|
|
23
22
|
if (ne.randomUUID && !t)
|
|
24
23
|
return ne.randomUUID();
|
|
25
24
|
t = t || {};
|
|
26
|
-
const c = t.random ??
|
|
25
|
+
const c = t.random ?? t.rng?.() ?? _e();
|
|
27
26
|
if (c.length < 16)
|
|
28
27
|
throw new Error("Random bytes length must be >= 16");
|
|
29
28
|
return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
|
|
30
29
|
}
|
|
31
|
-
var
|
|
32
|
-
var t = /* @__PURE__ */ l(function(
|
|
33
|
-
for (i = i || {},
|
|
30
|
+
var X = (function() {
|
|
31
|
+
var t = /* @__PURE__ */ l(function(x, s, i, o) {
|
|
32
|
+
for (i = i || {}, o = x.length; o--; i[x[o]] = s) ;
|
|
34
33
|
return i;
|
|
35
|
-
}, "o"), e = [1, 4], n = [1, 13], c = [1, 12],
|
|
34
|
+
}, "o"), e = [1, 4], n = [1, 13], c = [1, 12], f = [1, 15], h = [1, 16], p = [1, 20], m = [1, 19], u = [6, 7, 8], N = [1, 26], Y = [1, 24], q = [1, 25], b = [6, 7, 11], J = [1, 6, 13, 15, 16, 19, 22], K = [1, 33], Q = [1, 34], R = [1, 6, 7, 11, 13, 15, 16, 19, 22], F = {
|
|
36
35
|
trace: /* @__PURE__ */ l(function() {
|
|
37
36
|
}, "trace"),
|
|
38
37
|
yy: {},
|
|
39
38
|
symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
|
|
40
39
|
terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
|
|
41
40
|
productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
|
|
42
|
-
performAction: /* @__PURE__ */ l(function(s, i,
|
|
41
|
+
performAction: /* @__PURE__ */ l(function(s, i, o, a, g, r, w) {
|
|
43
42
|
var d = r.length - 1;
|
|
44
43
|
switch (g) {
|
|
45
44
|
case 6:
|
|
46
45
|
case 7:
|
|
47
|
-
return
|
|
46
|
+
return a;
|
|
48
47
|
case 8:
|
|
49
|
-
|
|
48
|
+
a.getLogger().trace("Stop NL ");
|
|
50
49
|
break;
|
|
51
50
|
case 9:
|
|
52
|
-
|
|
51
|
+
a.getLogger().trace("Stop EOF ");
|
|
53
52
|
break;
|
|
54
53
|
case 11:
|
|
55
|
-
|
|
54
|
+
a.getLogger().trace("Stop NL2 ");
|
|
56
55
|
break;
|
|
57
56
|
case 12:
|
|
58
|
-
|
|
57
|
+
a.getLogger().trace("Stop EOF2 ");
|
|
59
58
|
break;
|
|
60
59
|
case 15:
|
|
61
|
-
|
|
60
|
+
a.getLogger().info("Node: ", r[d].id), a.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
|
|
62
61
|
break;
|
|
63
62
|
case 16:
|
|
64
|
-
|
|
63
|
+
a.getLogger().trace("Icon: ", r[d]), a.decorateNode({ icon: r[d] });
|
|
65
64
|
break;
|
|
66
65
|
case 17:
|
|
67
66
|
case 21:
|
|
68
|
-
|
|
67
|
+
a.decorateNode({ class: r[d] });
|
|
69
68
|
break;
|
|
70
69
|
case 18:
|
|
71
|
-
|
|
70
|
+
a.getLogger().trace("SPACELIST");
|
|
72
71
|
break;
|
|
73
72
|
case 19:
|
|
74
|
-
|
|
73
|
+
a.getLogger().trace("Node: ", r[d].id), a.addNode(0, r[d].id, r[d].descr, r[d].type);
|
|
75
74
|
break;
|
|
76
75
|
case 20:
|
|
77
|
-
|
|
76
|
+
a.decorateNode({ icon: r[d] });
|
|
78
77
|
break;
|
|
79
78
|
case 25:
|
|
80
|
-
|
|
79
|
+
a.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
|
|
81
80
|
break;
|
|
82
81
|
case 26:
|
|
83
|
-
this.$ = { id: r[d], descr: r[d], type:
|
|
82
|
+
this.$ = { id: r[d], descr: r[d], type: a.nodeType.DEFAULT };
|
|
84
83
|
break;
|
|
85
84
|
case 27:
|
|
86
|
-
|
|
85
|
+
a.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: a.getType(r[d - 2], r[d]) };
|
|
87
86
|
break;
|
|
88
87
|
}
|
|
89
88
|
}, "anonymous"),
|
|
90
|
-
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15:
|
|
89
|
+
table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(u, [2, 3]), { 1: [2, 2] }, t(u, [2, 4]), t(u, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, { 6: N, 7: Y, 10: 23, 11: q }, t(b, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: m }), t(b, [2, 18]), t(b, [2, 19]), t(b, [2, 20]), t(b, [2, 21]), t(b, [2, 23]), t(b, [2, 24]), t(b, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: N, 7: Y, 10: 32, 11: q }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: f, 16: h, 17: 17, 18: 18, 19: p, 22: m }, t(J, [2, 14], { 7: K, 11: Q }), t(R, [2, 8]), t(R, [2, 9]), t(R, [2, 10]), t(b, [2, 15]), t(b, [2, 16]), t(b, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(J, [2, 13], { 7: K, 11: Q }), t(R, [2, 11]), t(R, [2, 12]), { 21: [1, 37] }, t(b, [2, 25]), t(b, [2, 27])],
|
|
91
90
|
defaultActions: { 2: [2, 1], 6: [2, 2] },
|
|
92
91
|
parseError: /* @__PURE__ */ l(function(s, i) {
|
|
93
92
|
if (i.recoverable)
|
|
94
93
|
this.trace(s);
|
|
95
94
|
else {
|
|
96
|
-
var
|
|
97
|
-
throw
|
|
95
|
+
var o = new Error(s);
|
|
96
|
+
throw o.hash = i, o;
|
|
98
97
|
}
|
|
99
98
|
}, "parseError"),
|
|
100
99
|
parse: /* @__PURE__ */ l(function(s) {
|
|
101
|
-
var i = this,
|
|
102
|
-
for (var
|
|
103
|
-
Object.prototype.hasOwnProperty.call(this.yy,
|
|
104
|
-
|
|
105
|
-
var
|
|
106
|
-
r.push(
|
|
107
|
-
var
|
|
108
|
-
typeof
|
|
109
|
-
function ce(
|
|
110
|
-
|
|
100
|
+
var i = this, o = [0], a = [], g = [null], r = [], w = this.table, d = "", U = 0, Z = 0, re = 2, ee = 1, oe = r.slice.call(arguments, 1), y = Object.create(this.lexer), v = { yy: {} };
|
|
101
|
+
for (var j in this.yy)
|
|
102
|
+
Object.prototype.hasOwnProperty.call(this.yy, j) && (v.yy[j] = this.yy[j]);
|
|
103
|
+
y.setInput(s, v.yy), v.yy.lexer = y, v.yy.parser = this, typeof y.yylloc > "u" && (y.yylloc = {});
|
|
104
|
+
var G = y.yylloc;
|
|
105
|
+
r.push(G);
|
|
106
|
+
var ae = y.options && y.options.ranges;
|
|
107
|
+
typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
108
|
+
function ce(S) {
|
|
109
|
+
o.length = o.length - 2 * S, g.length = g.length - S, r.length = r.length - S;
|
|
111
110
|
}
|
|
112
111
|
l(ce, "popStack");
|
|
113
112
|
function te() {
|
|
114
|
-
var
|
|
115
|
-
return
|
|
113
|
+
var S;
|
|
114
|
+
return S = a.pop() || y.lex() || ee, typeof S != "number" && (S instanceof Array && (a = S, S = a.pop()), S = i.symbols_[S] || S), S;
|
|
116
115
|
}
|
|
117
116
|
l(te, "lex");
|
|
118
|
-
for (var
|
|
119
|
-
if (
|
|
120
|
-
var
|
|
121
|
-
|
|
122
|
-
for (
|
|
123
|
-
this.terminals_[
|
|
124
|
-
|
|
125
|
-
` +
|
|
126
|
-
Expecting ` +
|
|
127
|
-
text:
|
|
128
|
-
token: this.terminals_[
|
|
129
|
-
line:
|
|
130
|
-
loc:
|
|
131
|
-
expected:
|
|
117
|
+
for (var _, T, D, H, O = {}, P, k, ie, M; ; ) {
|
|
118
|
+
if (T = o[o.length - 1], this.defaultActions[T] ? D = this.defaultActions[T] : ((_ === null || typeof _ > "u") && (_ = te()), D = w[T] && w[T][_]), typeof D > "u" || !D.length || !D[0]) {
|
|
119
|
+
var $ = "";
|
|
120
|
+
M = [];
|
|
121
|
+
for (P in w[T])
|
|
122
|
+
this.terminals_[P] && P > re && M.push("'" + this.terminals_[P] + "'");
|
|
123
|
+
y.showPosition ? $ = "Parse error on line " + (U + 1) + `:
|
|
124
|
+
` + y.showPosition() + `
|
|
125
|
+
Expecting ` + M.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : $ = "Parse error on line " + (U + 1) + ": Unexpected " + (_ == ee ? "end of input" : "'" + (this.terminals_[_] || _) + "'"), this.parseError($, {
|
|
126
|
+
text: y.match,
|
|
127
|
+
token: this.terminals_[_] || _,
|
|
128
|
+
line: y.yylineno,
|
|
129
|
+
loc: G,
|
|
130
|
+
expected: M
|
|
132
131
|
});
|
|
133
132
|
}
|
|
134
|
-
if (
|
|
135
|
-
throw new Error("Parse Error: multiple actions possible at state: " +
|
|
136
|
-
switch (
|
|
133
|
+
if (D[0] instanceof Array && D.length > 1)
|
|
134
|
+
throw new Error("Parse Error: multiple actions possible at state: " + T + ", token: " + _);
|
|
135
|
+
switch (D[0]) {
|
|
137
136
|
case 1:
|
|
138
|
-
|
|
137
|
+
o.push(_), g.push(y.yytext), r.push(y.yylloc), o.push(D[1]), _ = null, Z = y.yyleng, d = y.yytext, U = y.yylineno, G = y.yylloc;
|
|
139
138
|
break;
|
|
140
139
|
case 2:
|
|
141
|
-
if (
|
|
142
|
-
first_line: r[r.length - (
|
|
140
|
+
if (k = this.productions_[D[1]][1], O.$ = g[g.length - k], O._$ = {
|
|
141
|
+
first_line: r[r.length - (k || 1)].first_line,
|
|
143
142
|
last_line: r[r.length - 1].last_line,
|
|
144
|
-
first_column: r[r.length - (
|
|
143
|
+
first_column: r[r.length - (k || 1)].first_column,
|
|
145
144
|
last_column: r[r.length - 1].last_column
|
|
146
|
-
},
|
|
147
|
-
r[r.length - (
|
|
145
|
+
}, ae && (O._$.range = [
|
|
146
|
+
r[r.length - (k || 1)].range[0],
|
|
148
147
|
r[r.length - 1].range[1]
|
|
149
|
-
]),
|
|
148
|
+
]), H = this.performAction.apply(O, [
|
|
150
149
|
d,
|
|
151
150
|
Z,
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
151
|
+
U,
|
|
152
|
+
v.yy,
|
|
153
|
+
D[1],
|
|
155
154
|
g,
|
|
156
155
|
r
|
|
157
|
-
].concat(
|
|
158
|
-
return
|
|
159
|
-
|
|
156
|
+
].concat(oe)), typeof H < "u")
|
|
157
|
+
return H;
|
|
158
|
+
k && (o = o.slice(0, -1 * k * 2), g = g.slice(0, -1 * k), r = r.slice(0, -1 * k)), o.push(this.productions_[D[1]][0]), g.push(O.$), r.push(O._$), ie = w[o[o.length - 2]][o[o.length - 1]], o.push(ie);
|
|
160
159
|
break;
|
|
161
160
|
case 3:
|
|
162
161
|
return !0;
|
|
@@ -164,12 +163,12 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
164
163
|
}
|
|
165
164
|
return !0;
|
|
166
165
|
}, "parse")
|
|
167
|
-
}, se = /* @__PURE__ */ function() {
|
|
168
|
-
var
|
|
166
|
+
}, se = /* @__PURE__ */ (function() {
|
|
167
|
+
var x = {
|
|
169
168
|
EOF: 1,
|
|
170
|
-
parseError: /* @__PURE__ */ l(function(i,
|
|
169
|
+
parseError: /* @__PURE__ */ l(function(i, o) {
|
|
171
170
|
if (this.yy.parser)
|
|
172
|
-
this.yy.parser.parseError(i,
|
|
171
|
+
this.yy.parser.parseError(i, o);
|
|
173
172
|
else
|
|
174
173
|
throw new Error(i);
|
|
175
174
|
}, "parseError"),
|
|
@@ -191,16 +190,16 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
191
190
|
}, "input"),
|
|
192
191
|
// unshifts one char (or a string) into the input
|
|
193
192
|
unput: /* @__PURE__ */ l(function(s) {
|
|
194
|
-
var i = s.length,
|
|
193
|
+
var i = s.length, o = s.split(/(?:\r\n?|\n)/g);
|
|
195
194
|
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
|
|
196
|
-
var
|
|
197
|
-
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1),
|
|
195
|
+
var a = this.match.split(/(?:\r\n?|\n)/g);
|
|
196
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), o.length - 1 && (this.yylineno -= o.length - 1);
|
|
198
197
|
var g = this.yylloc.range;
|
|
199
198
|
return this.yylloc = {
|
|
200
199
|
first_line: this.yylloc.first_line,
|
|
201
200
|
last_line: this.yylineno + 1,
|
|
202
201
|
first_column: this.yylloc.first_column,
|
|
203
|
-
last_column:
|
|
202
|
+
last_column: o ? (o.length === a.length ? this.yylloc.first_column : 0) + a[a.length - o.length].length - o[0].length : this.yylloc.first_column - i
|
|
204
203
|
}, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
|
|
205
204
|
}, "unput"),
|
|
206
205
|
// When called from action, caches matched text and appends it on next action
|
|
@@ -242,7 +241,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
242
241
|
}, "showPosition"),
|
|
243
242
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
244
243
|
test_match: /* @__PURE__ */ l(function(s, i) {
|
|
245
|
-
var
|
|
244
|
+
var o, a, g;
|
|
246
245
|
if (this.options.backtrack_lexer && (g = {
|
|
247
246
|
yylineno: this.yylineno,
|
|
248
247
|
yylloc: {
|
|
@@ -262,13 +261,13 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
262
261
|
yy: this.yy,
|
|
263
262
|
conditionStack: this.conditionStack.slice(0),
|
|
264
263
|
done: this.done
|
|
265
|
-
}, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))),
|
|
264
|
+
}, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), a = s[0].match(/(?:\r\n?|\n).*/g), a && (this.yylineno += a.length), this.yylloc = {
|
|
266
265
|
first_line: this.yylloc.last_line,
|
|
267
266
|
last_line: this.yylineno + 1,
|
|
268
267
|
first_column: this.yylloc.last_column,
|
|
269
|
-
last_column:
|
|
270
|
-
}, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0],
|
|
271
|
-
return
|
|
268
|
+
last_column: a ? a[a.length - 1].length - a[a.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
|
|
269
|
+
}, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], o = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), o)
|
|
270
|
+
return o;
|
|
272
271
|
if (this._backtrack) {
|
|
273
272
|
for (var r in g)
|
|
274
273
|
this[r] = g[r];
|
|
@@ -281,12 +280,12 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
281
280
|
if (this.done)
|
|
282
281
|
return this.EOF;
|
|
283
282
|
this._input || (this.done = !0);
|
|
284
|
-
var s, i,
|
|
283
|
+
var s, i, o, a;
|
|
285
284
|
this._more || (this.yytext = "", this.match = "");
|
|
286
285
|
for (var g = this._currentRules(), r = 0; r < g.length; r++)
|
|
287
|
-
if (
|
|
288
|
-
if (i =
|
|
289
|
-
if (s = this.test_match(
|
|
286
|
+
if (o = this._input.match(this.rules[g[r]]), o && (!i || o[0].length > i[0].length)) {
|
|
287
|
+
if (i = o, a = r, this.options.backtrack_lexer) {
|
|
288
|
+
if (s = this.test_match(o, g[r]), s !== !1)
|
|
290
289
|
return s;
|
|
291
290
|
if (this._backtrack) {
|
|
292
291
|
i = !1;
|
|
@@ -296,7 +295,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
296
295
|
} else if (!this.options.flex)
|
|
297
296
|
break;
|
|
298
297
|
}
|
|
299
|
-
return i ? (s = this.test_match(i, g[
|
|
298
|
+
return i ? (s = this.test_match(i, g[a]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
300
299
|
` + this.showPosition(), {
|
|
301
300
|
text: "",
|
|
302
301
|
token: null,
|
|
@@ -334,10 +333,10 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
334
333
|
return this.conditionStack.length;
|
|
335
334
|
}, "stateStackSize"),
|
|
336
335
|
options: { "case-insensitive": !0 },
|
|
337
|
-
performAction: /* @__PURE__ */ l(function(i,
|
|
338
|
-
switch (
|
|
336
|
+
performAction: /* @__PURE__ */ l(function(i, o, a, g) {
|
|
337
|
+
switch (a) {
|
|
339
338
|
case 0:
|
|
340
|
-
return i.getLogger().trace("Found comment",
|
|
339
|
+
return i.getLogger().trace("Found comment", o.yytext), 6;
|
|
341
340
|
case 1:
|
|
342
341
|
return 8;
|
|
343
342
|
case 2:
|
|
@@ -394,7 +393,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
394
393
|
i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
|
|
395
394
|
break;
|
|
396
395
|
case 25:
|
|
397
|
-
return i.getLogger().trace("description:",
|
|
396
|
+
return i.getLogger().trace("description:", o.yytext), "NODE_DESCR";
|
|
398
397
|
case 26:
|
|
399
398
|
this.popState();
|
|
400
399
|
break;
|
|
@@ -403,7 +402,7 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
403
402
|
case 28:
|
|
404
403
|
return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
|
|
405
404
|
case 29:
|
|
406
|
-
return this.popState(), i.getLogger().trace("node end ...",
|
|
405
|
+
return this.popState(), i.getLogger().trace("node end ...", o.yytext), "NODE_DEND";
|
|
407
406
|
case 30:
|
|
408
407
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
409
408
|
case 31:
|
|
@@ -415,24 +414,24 @@ Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "
|
|
|
415
414
|
case 34:
|
|
416
415
|
return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
|
|
417
416
|
case 35:
|
|
418
|
-
return i.getLogger().trace("Long description:",
|
|
417
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
419
418
|
case 36:
|
|
420
|
-
return i.getLogger().trace("Long description:",
|
|
419
|
+
return i.getLogger().trace("Long description:", o.yytext), 20;
|
|
421
420
|
}
|
|
422
421
|
}, "anonymous"),
|
|
423
422
|
rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
|
|
424
423
|
conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
|
|
425
424
|
};
|
|
426
|
-
return
|
|
427
|
-
}();
|
|
428
|
-
|
|
429
|
-
function
|
|
425
|
+
return x;
|
|
426
|
+
})();
|
|
427
|
+
F.lexer = se;
|
|
428
|
+
function A() {
|
|
430
429
|
this.yy = {};
|
|
431
430
|
}
|
|
432
|
-
return l(
|
|
433
|
-
}();
|
|
434
|
-
|
|
435
|
-
var De =
|
|
431
|
+
return l(A, "Parser"), A.prototype = F, F.Parser = A, new A();
|
|
432
|
+
})();
|
|
433
|
+
X.parser = X;
|
|
434
|
+
var De = X, L = {
|
|
436
435
|
DEFAULT: 0,
|
|
437
436
|
NO_BORDER: 0,
|
|
438
437
|
ROUNDED_RECT: 1,
|
|
@@ -441,9 +440,9 @@ var De = q, x = {
|
|
|
441
440
|
CLOUD: 4,
|
|
442
441
|
BANG: 5,
|
|
443
442
|
HEXAGON: 6
|
|
444
|
-
},
|
|
443
|
+
}, C, Ne = (C = class {
|
|
445
444
|
constructor() {
|
|
446
|
-
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType =
|
|
445
|
+
this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = L, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
|
|
447
446
|
}
|
|
448
447
|
clear() {
|
|
449
448
|
this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
|
|
@@ -457,42 +456,41 @@ var De = q, x = {
|
|
|
457
456
|
getMindmap() {
|
|
458
457
|
return this.nodes.length > 0 ? this.nodes[0] : null;
|
|
459
458
|
}
|
|
460
|
-
addNode(e, n, c,
|
|
461
|
-
|
|
462
|
-
C.info("addNode", e, n, c, u);
|
|
459
|
+
addNode(e, n, c, f) {
|
|
460
|
+
I.info("addNode", e, n, c, f);
|
|
463
461
|
let h = !1;
|
|
464
462
|
this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
|
|
465
|
-
const p =
|
|
466
|
-
let
|
|
467
|
-
switch (
|
|
463
|
+
const p = z();
|
|
464
|
+
let m = p.mindmap?.padding ?? B.mindmap.padding;
|
|
465
|
+
switch (f) {
|
|
468
466
|
case this.nodeType.ROUNDED_RECT:
|
|
469
467
|
case this.nodeType.RECT:
|
|
470
468
|
case this.nodeType.HEXAGON:
|
|
471
|
-
|
|
469
|
+
m *= 2;
|
|
472
470
|
break;
|
|
473
471
|
}
|
|
474
|
-
const
|
|
472
|
+
const u = {
|
|
475
473
|
id: this.count++,
|
|
476
|
-
nodeId:
|
|
474
|
+
nodeId: V(n, p),
|
|
477
475
|
level: e,
|
|
478
|
-
descr:
|
|
479
|
-
type:
|
|
476
|
+
descr: V(c, p),
|
|
477
|
+
type: f,
|
|
480
478
|
children: [],
|
|
481
|
-
width:
|
|
482
|
-
padding:
|
|
479
|
+
width: p.mindmap?.maxNodeWidth ?? B.mindmap.maxNodeWidth,
|
|
480
|
+
padding: m,
|
|
483
481
|
isRoot: h
|
|
484
|
-
},
|
|
485
|
-
if (
|
|
486
|
-
|
|
482
|
+
}, N = this.getParent(e);
|
|
483
|
+
if (N)
|
|
484
|
+
N.children.push(u), this.nodes.push(u);
|
|
487
485
|
else if (h)
|
|
488
|
-
this.nodes.push(
|
|
486
|
+
this.nodes.push(u);
|
|
489
487
|
else
|
|
490
488
|
throw new Error(
|
|
491
|
-
`There can be only one root. No parent could be found for ("${
|
|
489
|
+
`There can be only one root. No parent could be found for ("${u.descr}")`
|
|
492
490
|
);
|
|
493
491
|
}
|
|
494
492
|
getType(e, n) {
|
|
495
|
-
switch (
|
|
493
|
+
switch (I.debug("In get type", e, n), e) {
|
|
496
494
|
case "[":
|
|
497
495
|
return this.nodeType.RECT;
|
|
498
496
|
case "(":
|
|
@@ -518,8 +516,8 @@ var De = q, x = {
|
|
|
518
516
|
decorateNode(e) {
|
|
519
517
|
if (!e)
|
|
520
518
|
return;
|
|
521
|
-
const n =
|
|
522
|
-
e.icon && (c.icon =
|
|
519
|
+
const n = z(), c = this.nodes[this.nodes.length - 1];
|
|
520
|
+
e.icon && (c.icon = V(e.icon, n)), e.class && (c.class = V(e.class, n));
|
|
523
521
|
}
|
|
524
522
|
type2Str(e) {
|
|
525
523
|
switch (e) {
|
|
@@ -537,6 +535,7 @@ var De = q, x = {
|
|
|
537
535
|
return "bang";
|
|
538
536
|
case this.nodeType.HEXAGON:
|
|
539
537
|
return "hexgon";
|
|
538
|
+
// cspell: disable-line
|
|
540
539
|
default:
|
|
541
540
|
return "no-border";
|
|
542
541
|
}
|
|
@@ -548,9 +547,9 @@ var De = q, x = {
|
|
|
548
547
|
*/
|
|
549
548
|
assignSections(e, n) {
|
|
550
549
|
if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
|
|
551
|
-
for (const [c,
|
|
550
|
+
for (const [c, f] of e.children.entries()) {
|
|
552
551
|
const h = e.level === 0 ? c : n;
|
|
553
|
-
this.assignSections(
|
|
552
|
+
this.assignSections(f, h);
|
|
554
553
|
}
|
|
555
554
|
}
|
|
556
555
|
/**
|
|
@@ -561,23 +560,23 @@ var De = q, x = {
|
|
|
561
560
|
flattenNodes(e, n) {
|
|
562
561
|
const c = ["mindmap-node"];
|
|
563
562
|
e.isRoot === !0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
|
|
564
|
-
const
|
|
565
|
-
switch (
|
|
566
|
-
case
|
|
563
|
+
const f = c.join(" "), h = /* @__PURE__ */ l((m) => {
|
|
564
|
+
switch (m) {
|
|
565
|
+
case L.CIRCLE:
|
|
567
566
|
return "mindmapCircle";
|
|
568
|
-
case
|
|
567
|
+
case L.RECT:
|
|
569
568
|
return "rect";
|
|
570
|
-
case
|
|
569
|
+
case L.ROUNDED_RECT:
|
|
571
570
|
return "rounded";
|
|
572
|
-
case
|
|
571
|
+
case L.CLOUD:
|
|
573
572
|
return "cloud";
|
|
574
|
-
case
|
|
573
|
+
case L.BANG:
|
|
575
574
|
return "bang";
|
|
576
|
-
case
|
|
575
|
+
case L.HEXAGON:
|
|
577
576
|
return "hexagon";
|
|
578
|
-
case
|
|
577
|
+
case L.DEFAULT:
|
|
579
578
|
return "defaultMindmapNode";
|
|
580
|
-
case
|
|
579
|
+
case L.NO_BORDER:
|
|
581
580
|
default:
|
|
582
581
|
return "rect";
|
|
583
582
|
}
|
|
@@ -590,7 +589,7 @@ var De = q, x = {
|
|
|
590
589
|
width: e.width,
|
|
591
590
|
height: e.height ?? 0,
|
|
592
591
|
padding: e.padding,
|
|
593
|
-
cssClasses:
|
|
592
|
+
cssClasses: f,
|
|
594
593
|
cssStyles: [],
|
|
595
594
|
look: "default",
|
|
596
595
|
icon: e.icon,
|
|
@@ -603,8 +602,8 @@ var De = q, x = {
|
|
|
603
602
|
section: e.section
|
|
604
603
|
};
|
|
605
604
|
if (n.push(p), e.children)
|
|
606
|
-
for (const
|
|
607
|
-
this.flattenNodes(
|
|
605
|
+
for (const m of e.children)
|
|
606
|
+
this.flattenNodes(m, n);
|
|
608
607
|
}
|
|
609
608
|
/**
|
|
610
609
|
* Generate edges from parent-child relationships in mindmap tree
|
|
@@ -614,10 +613,10 @@ var De = q, x = {
|
|
|
614
613
|
generateEdges(e, n) {
|
|
615
614
|
if (e.children)
|
|
616
615
|
for (const c of e.children) {
|
|
617
|
-
let
|
|
618
|
-
c.section !== void 0 && (
|
|
616
|
+
let f = "edge";
|
|
617
|
+
c.section !== void 0 && (f += ` section-edge-${c.section}`);
|
|
619
618
|
const h = e.level + 1;
|
|
620
|
-
|
|
619
|
+
f += ` edge-depth-${h}`;
|
|
621
620
|
const p = {
|
|
622
621
|
id: `edge_${e.id}_${c.id}`,
|
|
623
622
|
start: e.id.toString(),
|
|
@@ -626,7 +625,7 @@ var De = q, x = {
|
|
|
626
625
|
curve: "basis",
|
|
627
626
|
thickness: "normal",
|
|
628
627
|
look: "default",
|
|
629
|
-
classes:
|
|
628
|
+
classes: f,
|
|
630
629
|
// Store mindmap-specific data
|
|
631
630
|
depth: e.level,
|
|
632
631
|
section: c.section
|
|
@@ -640,29 +639,29 @@ var De = q, x = {
|
|
|
640
639
|
* @returns Structured data containing nodes, edges, and config
|
|
641
640
|
*/
|
|
642
641
|
getData() {
|
|
643
|
-
const e = this.getMindmap(), n =
|
|
644
|
-
if (
|
|
642
|
+
const e = this.getMindmap(), n = z(), f = ue().layout !== void 0, h = n;
|
|
643
|
+
if (f || (h.layout = "cose-bilkent"), !e)
|
|
645
644
|
return {
|
|
646
645
|
nodes: [],
|
|
647
646
|
edges: [],
|
|
648
647
|
config: h
|
|
649
648
|
};
|
|
650
|
-
|
|
651
|
-
const p = [],
|
|
652
|
-
this.flattenNodes(e, p), this.generateEdges(e,
|
|
653
|
-
`getData: processed ${p.length} nodes and ${
|
|
649
|
+
I.debug("getData: mindmapRoot", e, n), this.assignSections(e);
|
|
650
|
+
const p = [], m = [];
|
|
651
|
+
this.flattenNodes(e, p), this.generateEdges(e, m), I.debug(
|
|
652
|
+
`getData: processed ${p.length} nodes and ${m.length} edges`
|
|
654
653
|
);
|
|
655
|
-
const
|
|
656
|
-
for (const
|
|
657
|
-
|
|
658
|
-
shape:
|
|
659
|
-
width:
|
|
660
|
-
height:
|
|
661
|
-
padding:
|
|
654
|
+
const u = /* @__PURE__ */ new Map();
|
|
655
|
+
for (const N of p)
|
|
656
|
+
u.set(N.id, {
|
|
657
|
+
shape: N.shape,
|
|
658
|
+
width: N.width,
|
|
659
|
+
height: N.height,
|
|
660
|
+
padding: N.padding
|
|
662
661
|
});
|
|
663
662
|
return {
|
|
664
663
|
nodes: p,
|
|
665
|
-
edges:
|
|
664
|
+
edges: m,
|
|
666
665
|
config: h,
|
|
667
666
|
// Store the root node for mindmap-specific layout algorithms
|
|
668
667
|
rootNode: e,
|
|
@@ -676,7 +675,7 @@ var De = q, x = {
|
|
|
676
675
|
rankSpacing: 50,
|
|
677
676
|
// Default spacing between ranks
|
|
678
677
|
// Add shapes for ELK compatibility
|
|
679
|
-
shapes: Object.fromEntries(
|
|
678
|
+
shapes: Object.fromEntries(u),
|
|
680
679
|
// Additional properties that layout algorithms might expect
|
|
681
680
|
type: "mindmap",
|
|
682
681
|
diagramId: "mindmap-" + Se()
|
|
@@ -684,22 +683,21 @@ var De = q, x = {
|
|
|
684
683
|
}
|
|
685
684
|
// Expose logger to grammar
|
|
686
685
|
getLogger() {
|
|
687
|
-
return
|
|
686
|
+
return I;
|
|
688
687
|
}
|
|
689
|
-
}, l(
|
|
690
|
-
|
|
691
|
-
C.debug(`Rendering mindmap diagram
|
|
688
|
+
}, l(C, "MindmapDB"), C), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
|
|
689
|
+
I.debug(`Rendering mindmap diagram
|
|
692
690
|
` + t);
|
|
693
|
-
const
|
|
691
|
+
const f = c.db, h = f.getData(), p = le(e, h.config.securityLevel);
|
|
694
692
|
h.type = c.type, h.layoutAlgorithm = de(h.config.layout, {
|
|
695
693
|
fallback: "cose-bilkent"
|
|
696
|
-
}), h.diagramId = e,
|
|
697
|
-
|
|
694
|
+
}), h.diagramId = e, f.getMindmap() && (h.nodes.forEach((u) => {
|
|
695
|
+
u.shape === "rounded" ? (u.radius = 15, u.taper = 15, u.stroke = "none", u.width = 0, u.padding = 15) : u.shape === "circle" ? u.padding = 10 : u.shape === "rect" && (u.width = 0, u.padding = 10);
|
|
698
696
|
}), await ge(h, p), he(
|
|
699
697
|
p,
|
|
700
|
-
|
|
698
|
+
h.config.mindmap?.padding ?? B.mindmap.padding,
|
|
701
699
|
"mindmapDiagram",
|
|
702
|
-
|
|
700
|
+
h.config.mindmap?.useMaxWidth ?? B.mindmap.useMaxWidth
|
|
703
701
|
));
|
|
704
702
|
}, "draw"), Le = {
|
|
705
703
|
draw: ke
|