@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
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _ as
|
|
2
|
-
import { o as Mt } from "./ordinal-
|
|
1
|
+
import { _ as g, y as _t, z as xt, s as vt, g as bt, e as wt, d as St, f as lt, E as Lt, h as X, ah as Et, D as At, o as Tt } from "./index-yf1-93v5.mjs";
|
|
2
|
+
import { o as Mt } from "./ordinal-B-KqvkJf.mjs";
|
|
3
3
|
function Nt(t) {
|
|
4
4
|
for (var e = t.length / 6 | 0, i = new Array(e), a = 0; a < e; ) i[a] = "#" + t.slice(a * 6, ++a * 6);
|
|
5
5
|
return i;
|
|
@@ -97,44 +97,44 @@ function yt({ nodes: t }) {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
function Bt() {
|
|
100
|
-
let t = 0, e = 0, i = 1, a = 1, h = 24,
|
|
101
|
-
function
|
|
102
|
-
const n = { nodes:
|
|
100
|
+
let t = 0, e = 0, i = 1, a = 1, h = 24, b = 8, p, k = zt, s = mt, o, l, _ = $t, x = jt, y = 6;
|
|
101
|
+
function v() {
|
|
102
|
+
const n = { nodes: _.apply(null, arguments), links: x.apply(null, arguments) };
|
|
103
103
|
return M(n), T(n), N(n), C(n), S(n), yt(n), n;
|
|
104
104
|
}
|
|
105
|
-
|
|
105
|
+
v.update = function(n) {
|
|
106
106
|
return yt(n), n;
|
|
107
|
-
},
|
|
108
|
-
return arguments.length ? (
|
|
109
|
-
},
|
|
110
|
-
return arguments.length ? (s = typeof n == "function" ? n : q(n),
|
|
111
|
-
},
|
|
112
|
-
return arguments.length ? (o = n,
|
|
113
|
-
},
|
|
114
|
-
return arguments.length ? (h = +n,
|
|
115
|
-
},
|
|
116
|
-
return arguments.length ? (
|
|
117
|
-
},
|
|
118
|
-
return arguments.length ? (
|
|
119
|
-
},
|
|
120
|
-
return arguments.length ? (
|
|
121
|
-
},
|
|
122
|
-
return arguments.length ? (l = n,
|
|
123
|
-
},
|
|
124
|
-
return arguments.length ? (t = e = 0, i = +n[0], a = +n[1],
|
|
125
|
-
},
|
|
126
|
-
return arguments.length ? (t = +n[0][0], i = +n[1][0], e = +n[0][1], a = +n[1][1],
|
|
127
|
-
},
|
|
128
|
-
return arguments.length ? (y = +n,
|
|
107
|
+
}, v.nodeId = function(n) {
|
|
108
|
+
return arguments.length ? (k = typeof n == "function" ? n : q(n), v) : k;
|
|
109
|
+
}, v.nodeAlign = function(n) {
|
|
110
|
+
return arguments.length ? (s = typeof n == "function" ? n : q(n), v) : s;
|
|
111
|
+
}, v.nodeSort = function(n) {
|
|
112
|
+
return arguments.length ? (o = n, v) : o;
|
|
113
|
+
}, v.nodeWidth = function(n) {
|
|
114
|
+
return arguments.length ? (h = +n, v) : h;
|
|
115
|
+
}, v.nodePadding = function(n) {
|
|
116
|
+
return arguments.length ? (b = p = +n, v) : b;
|
|
117
|
+
}, v.nodes = function(n) {
|
|
118
|
+
return arguments.length ? (_ = typeof n == "function" ? n : q(n), v) : _;
|
|
119
|
+
}, v.links = function(n) {
|
|
120
|
+
return arguments.length ? (x = typeof n == "function" ? n : q(n), v) : x;
|
|
121
|
+
}, v.linkSort = function(n) {
|
|
122
|
+
return arguments.length ? (l = n, v) : l;
|
|
123
|
+
}, v.size = function(n) {
|
|
124
|
+
return arguments.length ? (t = e = 0, i = +n[0], a = +n[1], v) : [i - t, a - e];
|
|
125
|
+
}, v.extent = function(n) {
|
|
126
|
+
return arguments.length ? (t = +n[0][0], i = +n[1][0], e = +n[0][1], a = +n[1][1], v) : [[t, e], [i, a]];
|
|
127
|
+
}, v.iterations = function(n) {
|
|
128
|
+
return arguments.length ? (y = +n, v) : y;
|
|
129
129
|
};
|
|
130
130
|
function M({ nodes: n, links: f }) {
|
|
131
131
|
for (const [c, r] of n.entries())
|
|
132
132
|
r.index = c, r.sourceLinks = [], r.targetLinks = [];
|
|
133
|
-
const u = new Map(n.map((c, r) => [
|
|
133
|
+
const u = new Map(n.map((c, r) => [k(c, r, n), c]));
|
|
134
134
|
for (const [c, r] of f.entries()) {
|
|
135
135
|
r.index = c;
|
|
136
|
-
let { source:
|
|
137
|
-
typeof
|
|
136
|
+
let { source: m, target: w } = r;
|
|
137
|
+
typeof m != "object" && (m = r.source = ft(u, m)), typeof w != "object" && (w = r.target = ft(u, w)), m.sourceLinks.push(r), w.targetLinks.push(r);
|
|
138
138
|
}
|
|
139
139
|
if (l != null)
|
|
140
140
|
for (const { sourceLinks: c, targetLinks: r } of n)
|
|
@@ -148,9 +148,9 @@ function Bt() {
|
|
|
148
148
|
const f = n.length;
|
|
149
149
|
let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
|
|
150
150
|
for (; u.size; ) {
|
|
151
|
-
for (const
|
|
152
|
-
|
|
153
|
-
for (const { target: w } of
|
|
151
|
+
for (const m of u) {
|
|
152
|
+
m.depth = r;
|
|
153
|
+
for (const { target: w } of m.sourceLinks)
|
|
154
154
|
c.add(w);
|
|
155
155
|
}
|
|
156
156
|
if (++r > f) throw new Error("circular link");
|
|
@@ -161,9 +161,9 @@ function Bt() {
|
|
|
161
161
|
const f = n.length;
|
|
162
162
|
let u = new Set(n), c = /* @__PURE__ */ new Set(), r = 0;
|
|
163
163
|
for (; u.size; ) {
|
|
164
|
-
for (const
|
|
165
|
-
|
|
166
|
-
for (const { source: w } of
|
|
164
|
+
for (const m of u) {
|
|
165
|
+
m.height = r;
|
|
166
|
+
for (const { source: w } of m.targetLinks)
|
|
167
167
|
c.add(w);
|
|
168
168
|
}
|
|
169
169
|
if (++r > f) throw new Error("circular link");
|
|
@@ -173,33 +173,33 @@ function Bt() {
|
|
|
173
173
|
function z({ nodes: n }) {
|
|
174
174
|
const f = ct(n, (r) => r.depth) + 1, u = (i - t - h) / (f - 1), c = new Array(f);
|
|
175
175
|
for (const r of n) {
|
|
176
|
-
const
|
|
177
|
-
r.layer =
|
|
176
|
+
const m = Math.max(0, Math.min(f - 1, Math.floor(s.call(null, r, f))));
|
|
177
|
+
r.layer = m, r.x0 = t + m * u, r.x1 = r.x0 + h, c[m] ? c[m].push(r) : c[m] = [r];
|
|
178
178
|
}
|
|
179
179
|
if (o) for (const r of c)
|
|
180
180
|
r.sort(o);
|
|
181
181
|
return c;
|
|
182
182
|
}
|
|
183
183
|
function R(n) {
|
|
184
|
-
const f = pt(n, (u) => (a - e - (u.length - 1) *
|
|
184
|
+
const f = pt(n, (u) => (a - e - (u.length - 1) * p) / nt(u, it));
|
|
185
185
|
for (const u of n) {
|
|
186
186
|
let c = e;
|
|
187
187
|
for (const r of u) {
|
|
188
|
-
r.y0 = c, r.y1 = c + r.value * f, c = r.y1 +
|
|
189
|
-
for (const
|
|
190
|
-
|
|
188
|
+
r.y0 = c, r.y1 = c + r.value * f, c = r.y1 + p;
|
|
189
|
+
for (const m of r.sourceLinks)
|
|
190
|
+
m.width = m.value * f;
|
|
191
191
|
}
|
|
192
|
-
c = (a - c +
|
|
192
|
+
c = (a - c + p) / (u.length + 1);
|
|
193
193
|
for (let r = 0; r < u.length; ++r) {
|
|
194
|
-
const
|
|
195
|
-
|
|
194
|
+
const m = u[r];
|
|
195
|
+
m.y0 += c * (r + 1), m.y1 += c * (r + 1);
|
|
196
196
|
}
|
|
197
197
|
A(u);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function S(n) {
|
|
201
201
|
const f = z(n);
|
|
202
|
-
|
|
202
|
+
p = Math.min(b, (a - e) / (ct(f, (u) => u.length) - 1)), R(f);
|
|
203
203
|
for (let u = 0; u < y; ++u) {
|
|
204
204
|
const c = Math.pow(0.99, u), r = Math.max(1 - c, (u + 1) / y);
|
|
205
205
|
B(f, c, r), P(f, c, r);
|
|
@@ -207,8 +207,8 @@ function Bt() {
|
|
|
207
207
|
}
|
|
208
208
|
function P(n, f, u) {
|
|
209
209
|
for (let c = 1, r = n.length; c < r; ++c) {
|
|
210
|
-
const
|
|
211
|
-
for (const w of
|
|
210
|
+
const m = n[c];
|
|
211
|
+
for (const w of m) {
|
|
212
212
|
let L = 0, F = 0;
|
|
213
213
|
for (const { source: Y, value: et } of w.targetLinks) {
|
|
214
214
|
let H = et * (w.layer - Y.layer);
|
|
@@ -218,13 +218,13 @@ function Bt() {
|
|
|
218
218
|
let G = (L / F - w.y0) * f;
|
|
219
219
|
w.y0 += G, w.y1 += G, E(w);
|
|
220
220
|
}
|
|
221
|
-
o === void 0 &&
|
|
221
|
+
o === void 0 && m.sort(Q), O(m, u);
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
function B(n, f, u) {
|
|
225
225
|
for (let c = n.length, r = c - 2; r >= 0; --r) {
|
|
226
|
-
const
|
|
227
|
-
for (const w of
|
|
226
|
+
const m = n[r];
|
|
227
|
+
for (const w of m) {
|
|
228
228
|
let L = 0, F = 0;
|
|
229
229
|
for (const { target: Y, value: et } of w.sourceLinks) {
|
|
230
230
|
let H = et * (Y.layer - w.layer);
|
|
@@ -234,23 +234,23 @@ function Bt() {
|
|
|
234
234
|
let G = (L / F - w.y0) * f;
|
|
235
235
|
w.y0 += G, w.y1 += G, E(w);
|
|
236
236
|
}
|
|
237
|
-
o === void 0 &&
|
|
237
|
+
o === void 0 && m.sort(Q), O(m, u);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
function O(n, f) {
|
|
241
241
|
const u = n.length >> 1, c = n[u];
|
|
242
|
-
|
|
242
|
+
d(n, c.y0 - p, u - 1, f), D(n, c.y1 + p, u + 1, f), d(n, a, n.length - 1, f), D(n, e, 0, f);
|
|
243
243
|
}
|
|
244
244
|
function D(n, f, u, c) {
|
|
245
245
|
for (; u < n.length; ++u) {
|
|
246
|
-
const r = n[u],
|
|
247
|
-
|
|
246
|
+
const r = n[u], m = (f - r.y0) * c;
|
|
247
|
+
m > 1e-6 && (r.y0 += m, r.y1 += m), f = r.y1 + p;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
function
|
|
250
|
+
function d(n, f, u, c) {
|
|
251
251
|
for (; u >= 0; --u) {
|
|
252
|
-
const r = n[u],
|
|
253
|
-
|
|
252
|
+
const r = n[u], m = (r.y1 - f) * c;
|
|
253
|
+
m > 1e-6 && (r.y0 -= m, r.y1 -= m), f = r.y0 - p;
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
function E({ sourceLinks: n, targetLinks: f }) {
|
|
@@ -267,10 +267,10 @@ function Bt() {
|
|
|
267
267
|
f.sort(ht), u.sort(ut);
|
|
268
268
|
}
|
|
269
269
|
function $(n, f) {
|
|
270
|
-
let u = n.y0 - (n.sourceLinks.length - 1) *
|
|
270
|
+
let u = n.y0 - (n.sourceLinks.length - 1) * p / 2;
|
|
271
271
|
for (const { target: c, width: r } of n.sourceLinks) {
|
|
272
272
|
if (c === f) break;
|
|
273
|
-
u += r +
|
|
273
|
+
u += r + p;
|
|
274
274
|
}
|
|
275
275
|
for (const { source: c, width: r } of f.targetLinks) {
|
|
276
276
|
if (c === n) break;
|
|
@@ -279,10 +279,10 @@ function Bt() {
|
|
|
279
279
|
return u;
|
|
280
280
|
}
|
|
281
281
|
function I(n, f) {
|
|
282
|
-
let u = f.y0 - (f.targetLinks.length - 1) *
|
|
282
|
+
let u = f.y0 - (f.targetLinks.length - 1) * p / 2;
|
|
283
283
|
for (const { source: c, width: r } of f.targetLinks) {
|
|
284
284
|
if (c === n) break;
|
|
285
|
-
u += r +
|
|
285
|
+
u += r + p;
|
|
286
286
|
}
|
|
287
287
|
for (const { target: c, width: r } of n.sourceLinks) {
|
|
288
288
|
if (c === f) break;
|
|
@@ -290,7 +290,7 @@ function Bt() {
|
|
|
290
290
|
}
|
|
291
291
|
return u;
|
|
292
292
|
}
|
|
293
|
-
return
|
|
293
|
+
return v;
|
|
294
294
|
}
|
|
295
295
|
var st = Math.PI, rt = 2 * st, V = 1e-6, Rt = rt - V;
|
|
296
296
|
function ot() {
|
|
@@ -314,27 +314,27 @@ ot.prototype = kt.prototype = {
|
|
|
314
314
|
quadraticCurveTo: function(t, e, i, a) {
|
|
315
315
|
this._ += "Q" + +t + "," + +e + "," + (this._x1 = +i) + "," + (this._y1 = +a);
|
|
316
316
|
},
|
|
317
|
-
bezierCurveTo: function(t, e, i, a, h,
|
|
318
|
-
this._ += "C" + +t + "," + +e + "," + +i + "," + +a + "," + (this._x1 = +h) + "," + (this._y1 = +
|
|
317
|
+
bezierCurveTo: function(t, e, i, a, h, b) {
|
|
318
|
+
this._ += "C" + +t + "," + +e + "," + +i + "," + +a + "," + (this._x1 = +h) + "," + (this._y1 = +b);
|
|
319
319
|
},
|
|
320
320
|
arcTo: function(t, e, i, a, h) {
|
|
321
321
|
t = +t, e = +e, i = +i, a = +a, h = +h;
|
|
322
|
-
var
|
|
322
|
+
var b = this._x1, p = this._y1, k = i - t, s = a - e, o = b - t, l = p - e, _ = o * o + l * l;
|
|
323
323
|
if (h < 0) throw new Error("negative radius: " + h);
|
|
324
324
|
if (this._x1 === null)
|
|
325
325
|
this._ += "M" + (this._x1 = t) + "," + (this._y1 = e);
|
|
326
|
-
else if (
|
|
326
|
+
else if (_ > V) if (!(Math.abs(l * k - s * o) > V) || !h)
|
|
327
327
|
this._ += "L" + (this._x1 = t) + "," + (this._y1 = e);
|
|
328
328
|
else {
|
|
329
|
-
var
|
|
330
|
-
Math.abs(z - 1) > V && (this._ += "L" + (t + z * o) + "," + (e + z * l)), this._ += "A" + h + "," + h + ",0,0," + +(l *
|
|
329
|
+
var x = i - b, y = a - p, v = k * k + s * s, M = x * x + y * y, T = Math.sqrt(v), N = Math.sqrt(_), C = h * Math.tan((st - Math.acos((v + _ - M) / (2 * T * N))) / 2), z = C / N, R = C / T;
|
|
330
|
+
Math.abs(z - 1) > V && (this._ += "L" + (t + z * o) + "," + (e + z * l)), this._ += "A" + h + "," + h + ",0,0," + +(l * x > o * y) + "," + (this._x1 = t + R * k) + "," + (this._y1 = e + R * s);
|
|
331
331
|
}
|
|
332
332
|
},
|
|
333
|
-
arc: function(t, e, i, a, h,
|
|
334
|
-
t = +t, e = +e, i = +i,
|
|
335
|
-
var
|
|
333
|
+
arc: function(t, e, i, a, h, b) {
|
|
334
|
+
t = +t, e = +e, i = +i, b = !!b;
|
|
335
|
+
var p = i * Math.cos(a), k = i * Math.sin(a), s = t + p, o = e + k, l = 1 ^ b, _ = b ? a - h : h - a;
|
|
336
336
|
if (i < 0) throw new Error("negative radius: " + i);
|
|
337
|
-
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > V || Math.abs(this._y1 - o) > V) && (this._ += "L" + s + "," + o), i && (
|
|
337
|
+
this._x1 === null ? this._ += "M" + s + "," + o : (Math.abs(this._x1 - s) > V || Math.abs(this._y1 - o) > V) && (this._ += "L" + s + "," + o), i && (_ < 0 && (_ = _ % rt + rt), _ > Rt ? this._ += "A" + i + "," + i + ",0,1," + l + "," + (t - p) + "," + (e - k) + "A" + i + "," + i + ",0,1," + l + "," + (this._x1 = s) + "," + (this._y1 = o) : _ > V && (this._ += "A" + i + "," + i + ",0," + +(_ >= st) + "," + l + "," + (this._x1 = t + i * Math.cos(h)) + "," + (this._y1 = e + i * Math.sin(h))));
|
|
338
338
|
},
|
|
339
339
|
rect: function(t, e, i, a) {
|
|
340
340
|
this._ += "M" + (this._x0 = this._x1 = +t) + "," + (this._y0 = this._y1 = +e) + "h" + +i + "v" + +a + "h" + -i + "Z";
|
|
@@ -362,22 +362,22 @@ function Gt(t) {
|
|
|
362
362
|
return t.target;
|
|
363
363
|
}
|
|
364
364
|
function Yt(t) {
|
|
365
|
-
var e = Ut, i = Gt, a = Ft, h = Vt,
|
|
366
|
-
function
|
|
367
|
-
var
|
|
368
|
-
if (
|
|
365
|
+
var e = Ut, i = Gt, a = Ft, h = Vt, b = null;
|
|
366
|
+
function p() {
|
|
367
|
+
var k, s = Wt.call(arguments), o = e.apply(this, s), l = i.apply(this, s);
|
|
368
|
+
if (b || (b = k = kt()), t(b, +a.apply(this, (s[0] = o, s)), +h.apply(this, s), +a.apply(this, (s[0] = l, s)), +h.apply(this, s)), k) return b = null, k + "" || null;
|
|
369
369
|
}
|
|
370
|
-
return
|
|
371
|
-
return arguments.length ? (e =
|
|
372
|
-
},
|
|
373
|
-
return arguments.length ? (i =
|
|
374
|
-
},
|
|
375
|
-
return arguments.length ? (a = typeof
|
|
376
|
-
},
|
|
377
|
-
return arguments.length ? (h = typeof
|
|
378
|
-
},
|
|
379
|
-
return arguments.length ? (
|
|
380
|
-
},
|
|
370
|
+
return p.source = function(k) {
|
|
371
|
+
return arguments.length ? (e = k, p) : e;
|
|
372
|
+
}, p.target = function(k) {
|
|
373
|
+
return arguments.length ? (i = k, p) : i;
|
|
374
|
+
}, p.x = function(k) {
|
|
375
|
+
return arguments.length ? (a = typeof k == "function" ? k : dt(+k), p) : a;
|
|
376
|
+
}, p.y = function(k) {
|
|
377
|
+
return arguments.length ? (h = typeof k == "function" ? k : dt(+k), p) : h;
|
|
378
|
+
}, p.context = function(k) {
|
|
379
|
+
return arguments.length ? (b = k ?? null, p) : b;
|
|
380
|
+
}, p;
|
|
381
381
|
}
|
|
382
382
|
function Ht(t, e, i, a, h) {
|
|
383
383
|
t.moveTo(e, i), t.bezierCurveTo(e = (e + a) / 2, i, e, h, a, h);
|
|
@@ -394,23 +394,23 @@ function Qt(t) {
|
|
|
394
394
|
function Kt() {
|
|
395
395
|
return Xt().source(qt).target(Qt);
|
|
396
396
|
}
|
|
397
|
-
var at = function() {
|
|
398
|
-
var t = /* @__PURE__ */
|
|
399
|
-
for (o = o || {}, l =
|
|
397
|
+
var at = (function() {
|
|
398
|
+
var t = /* @__PURE__ */ g(function(k, s, o, l) {
|
|
399
|
+
for (o = o || {}, l = k.length; l--; o[k[l]] = s) ;
|
|
400
400
|
return o;
|
|
401
401
|
}, "o"), e = [1, 9], i = [1, 10], a = [1, 5, 10, 12], h = {
|
|
402
|
-
trace: /* @__PURE__ */
|
|
402
|
+
trace: /* @__PURE__ */ g(function() {
|
|
403
403
|
}, "trace"),
|
|
404
404
|
yy: {},
|
|
405
405
|
symbols_: { error: 2, start: 3, SANKEY: 4, NEWLINE: 5, csv: 6, opt_eof: 7, record: 8, csv_tail: 9, EOF: 10, "field[source]": 11, COMMA: 12, "field[target]": 13, "field[value]": 14, field: 15, escaped: 16, non_escaped: 17, DQUOTE: 18, ESCAPED_TEXT: 19, NON_ESCAPED_TEXT: 20, $accept: 0, $end: 1 },
|
|
406
406
|
terminals_: { 2: "error", 4: "SANKEY", 5: "NEWLINE", 10: "EOF", 11: "field[source]", 12: "COMMA", 13: "field[target]", 14: "field[value]", 18: "DQUOTE", 19: "ESCAPED_TEXT", 20: "NON_ESCAPED_TEXT" },
|
|
407
407
|
productions_: [0, [3, 4], [6, 2], [9, 2], [9, 0], [7, 1], [7, 0], [8, 5], [15, 1], [15, 1], [16, 3], [17, 1]],
|
|
408
|
-
performAction: /* @__PURE__ */
|
|
408
|
+
performAction: /* @__PURE__ */ g(function(s, o, l, _, x, y, v) {
|
|
409
409
|
var M = y.length - 1;
|
|
410
|
-
switch (
|
|
410
|
+
switch (x) {
|
|
411
411
|
case 7:
|
|
412
|
-
const T =
|
|
413
|
-
|
|
412
|
+
const T = _.findOrCreateNode(y[M - 4].trim().replaceAll('""', '"')), N = _.findOrCreateNode(y[M - 2].trim().replaceAll('""', '"')), C = parseFloat(y[M].trim());
|
|
413
|
+
_.addLink(T, N, C);
|
|
414
414
|
break;
|
|
415
415
|
case 8:
|
|
416
416
|
case 9:
|
|
@@ -424,7 +424,7 @@ var at = function() {
|
|
|
424
424
|
}, "anonymous"),
|
|
425
425
|
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, { 5: [1, 3] }, { 6: 4, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 1: [2, 6], 7: 11, 10: [1, 12] }, t(i, [2, 4], { 9: 13, 5: [1, 14] }), { 12: [1, 15] }, t(a, [2, 8]), t(a, [2, 9]), { 19: [1, 16] }, t(a, [2, 11]), { 1: [2, 1] }, { 1: [2, 5] }, t(i, [2, 2]), { 6: 17, 8: 5, 15: 6, 16: 7, 17: 8, 18: e, 20: i }, { 15: 18, 16: 7, 17: 8, 18: e, 20: i }, { 18: [1, 19] }, t(i, [2, 3]), { 12: [1, 20] }, t(a, [2, 10]), { 15: 21, 16: 7, 17: 8, 18: e, 20: i }, t([1, 5, 10], [2, 7])],
|
|
426
426
|
defaultActions: { 11: [2, 1], 12: [2, 5] },
|
|
427
|
-
parseError: /* @__PURE__ */
|
|
427
|
+
parseError: /* @__PURE__ */ g(function(s, o) {
|
|
428
428
|
if (o.recoverable)
|
|
429
429
|
this.trace(s);
|
|
430
430
|
else {
|
|
@@ -432,8 +432,8 @@ var at = function() {
|
|
|
432
432
|
throw l.hash = o, l;
|
|
433
433
|
}
|
|
434
434
|
}, "parseError"),
|
|
435
|
-
parse: /* @__PURE__ */
|
|
436
|
-
var o = this, l = [0],
|
|
435
|
+
parse: /* @__PURE__ */ g(function(s) {
|
|
436
|
+
var o = this, l = [0], _ = [], x = [null], y = [], v = this.table, M = "", T = 0, N = 0, C = 2, z = 1, R = y.slice.call(arguments, 1), S = Object.create(this.lexer), P = { yy: {} };
|
|
437
437
|
for (var B in this.yy)
|
|
438
438
|
Object.prototype.hasOwnProperty.call(this.yy, B) && (P.yy[B] = this.yy[B]);
|
|
439
439
|
S.setInput(s, P.yy), P.yy.lexer = S, P.yy.parser = this, typeof S.yylloc > "u" && (S.yylloc = {});
|
|
@@ -441,39 +441,39 @@ var at = function() {
|
|
|
441
441
|
y.push(O);
|
|
442
442
|
var D = S.options && S.options.ranges;
|
|
443
443
|
typeof P.yy.parseError == "function" ? this.parseError = P.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
444
|
-
function
|
|
445
|
-
l.length = l.length - 2 * L,
|
|
444
|
+
function d(L) {
|
|
445
|
+
l.length = l.length - 2 * L, x.length = x.length - L, y.length = y.length - L;
|
|
446
446
|
}
|
|
447
|
-
|
|
447
|
+
g(d, "popStack");
|
|
448
448
|
function E() {
|
|
449
449
|
var L;
|
|
450
|
-
return L =
|
|
450
|
+
return L = _.pop() || S.lex() || z, typeof L != "number" && (L instanceof Array && (_ = L, L = _.pop()), L = o.symbols_[L] || L), L;
|
|
451
451
|
}
|
|
452
|
-
|
|
453
|
-
for (var A, $, I, n, f = {}, u, c, r,
|
|
454
|
-
if ($ = l[l.length - 1], this.defaultActions[$] ? I = this.defaultActions[$] : ((A === null || typeof A > "u") && (A = E()), I =
|
|
452
|
+
g(E, "lex");
|
|
453
|
+
for (var A, $, I, n, f = {}, u, c, r, m; ; ) {
|
|
454
|
+
if ($ = l[l.length - 1], this.defaultActions[$] ? I = this.defaultActions[$] : ((A === null || typeof A > "u") && (A = E()), I = v[$] && v[$][A]), typeof I > "u" || !I.length || !I[0]) {
|
|
455
455
|
var w = "";
|
|
456
|
-
|
|
457
|
-
for (u in
|
|
458
|
-
this.terminals_[u] && u > C &&
|
|
456
|
+
m = [];
|
|
457
|
+
for (u in v[$])
|
|
458
|
+
this.terminals_[u] && u > C && m.push("'" + this.terminals_[u] + "'");
|
|
459
459
|
S.showPosition ? w = "Parse error on line " + (T + 1) + `:
|
|
460
460
|
` + S.showPosition() + `
|
|
461
|
-
Expecting ` +
|
|
461
|
+
Expecting ` + m.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "Parse error on line " + (T + 1) + ": Unexpected " + (A == z ? "end of input" : "'" + (this.terminals_[A] || A) + "'"), this.parseError(w, {
|
|
462
462
|
text: S.match,
|
|
463
463
|
token: this.terminals_[A] || A,
|
|
464
464
|
line: S.yylineno,
|
|
465
465
|
loc: O,
|
|
466
|
-
expected:
|
|
466
|
+
expected: m
|
|
467
467
|
});
|
|
468
468
|
}
|
|
469
469
|
if (I[0] instanceof Array && I.length > 1)
|
|
470
470
|
throw new Error("Parse Error: multiple actions possible at state: " + $ + ", token: " + A);
|
|
471
471
|
switch (I[0]) {
|
|
472
472
|
case 1:
|
|
473
|
-
l.push(A),
|
|
473
|
+
l.push(A), x.push(S.yytext), y.push(S.yylloc), l.push(I[1]), A = null, N = S.yyleng, M = S.yytext, T = S.yylineno, O = S.yylloc;
|
|
474
474
|
break;
|
|
475
475
|
case 2:
|
|
476
|
-
if (c = this.productions_[I[1]][1], f.$ =
|
|
476
|
+
if (c = this.productions_[I[1]][1], f.$ = x[x.length - c], f._$ = {
|
|
477
477
|
first_line: y[y.length - (c || 1)].first_line,
|
|
478
478
|
last_line: y[y.length - 1].last_line,
|
|
479
479
|
first_column: y[y.length - (c || 1)].first_column,
|
|
@@ -487,11 +487,11 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
487
487
|
T,
|
|
488
488
|
P.yy,
|
|
489
489
|
I[1],
|
|
490
|
-
|
|
490
|
+
x,
|
|
491
491
|
y
|
|
492
492
|
].concat(R)), typeof n < "u")
|
|
493
493
|
return n;
|
|
494
|
-
c && (l = l.slice(0, -1 * c * 2),
|
|
494
|
+
c && (l = l.slice(0, -1 * c * 2), x = x.slice(0, -1 * c), y = y.slice(0, -1 * c)), l.push(this.productions_[I[1]][0]), x.push(f.$), y.push(f._$), r = v[l[l.length - 2]][l[l.length - 1]], l.push(r);
|
|
495
495
|
break;
|
|
496
496
|
case 3:
|
|
497
497
|
return !0;
|
|
@@ -499,17 +499,17 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
499
499
|
}
|
|
500
500
|
return !0;
|
|
501
501
|
}, "parse")
|
|
502
|
-
},
|
|
503
|
-
var
|
|
502
|
+
}, b = /* @__PURE__ */ (function() {
|
|
503
|
+
var k = {
|
|
504
504
|
EOF: 1,
|
|
505
|
-
parseError: /* @__PURE__ */
|
|
505
|
+
parseError: /* @__PURE__ */ g(function(o, l) {
|
|
506
506
|
if (this.yy.parser)
|
|
507
507
|
this.yy.parser.parseError(o, l);
|
|
508
508
|
else
|
|
509
509
|
throw new Error(o);
|
|
510
510
|
}, "parseError"),
|
|
511
511
|
// resets the lexer, sets new input
|
|
512
|
-
setInput: /* @__PURE__ */
|
|
512
|
+
setInput: /* @__PURE__ */ g(function(s, o) {
|
|
513
513
|
return this.yy = o || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
514
514
|
first_line: 1,
|
|
515
515
|
first_column: 0,
|
|
@@ -518,32 +518,32 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
518
518
|
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
519
519
|
}, "setInput"),
|
|
520
520
|
// consumes and returns one char from the input
|
|
521
|
-
input: /* @__PURE__ */
|
|
521
|
+
input: /* @__PURE__ */ g(function() {
|
|
522
522
|
var s = this._input[0];
|
|
523
523
|
this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
|
|
524
524
|
var o = s.match(/(?:\r\n?|\n).*/g);
|
|
525
525
|
return o ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
|
|
526
526
|
}, "input"),
|
|
527
527
|
// unshifts one char (or a string) into the input
|
|
528
|
-
unput: /* @__PURE__ */
|
|
528
|
+
unput: /* @__PURE__ */ g(function(s) {
|
|
529
529
|
var o = s.length, l = s.split(/(?:\r\n?|\n)/g);
|
|
530
530
|
this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - o), this.offset -= o;
|
|
531
|
-
var
|
|
531
|
+
var _ = this.match.split(/(?:\r\n?|\n)/g);
|
|
532
532
|
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), l.length - 1 && (this.yylineno -= l.length - 1);
|
|
533
|
-
var
|
|
533
|
+
var x = this.yylloc.range;
|
|
534
534
|
return this.yylloc = {
|
|
535
535
|
first_line: this.yylloc.first_line,
|
|
536
536
|
last_line: this.yylineno + 1,
|
|
537
537
|
first_column: this.yylloc.first_column,
|
|
538
|
-
last_column: l ? (l.length ===
|
|
539
|
-
}, this.options.ranges && (this.yylloc.range = [
|
|
538
|
+
last_column: l ? (l.length === _.length ? this.yylloc.first_column : 0) + _[_.length - l.length].length - l[0].length : this.yylloc.first_column - o
|
|
539
|
+
}, this.options.ranges && (this.yylloc.range = [x[0], x[0] + this.yyleng - o]), this.yyleng = this.yytext.length, this;
|
|
540
540
|
}, "unput"),
|
|
541
541
|
// When called from action, caches matched text and appends it on next action
|
|
542
|
-
more: /* @__PURE__ */
|
|
542
|
+
more: /* @__PURE__ */ g(function() {
|
|
543
543
|
return this._more = !0, this;
|
|
544
544
|
}, "more"),
|
|
545
545
|
// When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
|
|
546
|
-
reject: /* @__PURE__ */
|
|
546
|
+
reject: /* @__PURE__ */ g(function() {
|
|
547
547
|
if (this.options.backtrack_lexer)
|
|
548
548
|
this._backtrack = !0;
|
|
549
549
|
else
|
|
@@ -556,29 +556,29 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
556
556
|
return this;
|
|
557
557
|
}, "reject"),
|
|
558
558
|
// retain first n characters of the match
|
|
559
|
-
less: /* @__PURE__ */
|
|
559
|
+
less: /* @__PURE__ */ g(function(s) {
|
|
560
560
|
this.unput(this.match.slice(s));
|
|
561
561
|
}, "less"),
|
|
562
562
|
// displays already matched input, i.e. for error messages
|
|
563
|
-
pastInput: /* @__PURE__ */
|
|
563
|
+
pastInput: /* @__PURE__ */ g(function() {
|
|
564
564
|
var s = this.matched.substr(0, this.matched.length - this.match.length);
|
|
565
565
|
return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
|
|
566
566
|
}, "pastInput"),
|
|
567
567
|
// displays upcoming input, i.e. for error messages
|
|
568
|
-
upcomingInput: /* @__PURE__ */
|
|
568
|
+
upcomingInput: /* @__PURE__ */ g(function() {
|
|
569
569
|
var s = this.match;
|
|
570
570
|
return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
571
571
|
}, "upcomingInput"),
|
|
572
572
|
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
573
|
-
showPosition: /* @__PURE__ */
|
|
573
|
+
showPosition: /* @__PURE__ */ g(function() {
|
|
574
574
|
var s = this.pastInput(), o = new Array(s.length + 1).join("-");
|
|
575
575
|
return s + this.upcomingInput() + `
|
|
576
576
|
` + o + "^";
|
|
577
577
|
}, "showPosition"),
|
|
578
578
|
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
579
|
-
test_match: /* @__PURE__ */
|
|
580
|
-
var l,
|
|
581
|
-
if (this.options.backtrack_lexer && (
|
|
579
|
+
test_match: /* @__PURE__ */ g(function(s, o) {
|
|
580
|
+
var l, _, x;
|
|
581
|
+
if (this.options.backtrack_lexer && (x = {
|
|
582
582
|
yylineno: this.yylineno,
|
|
583
583
|
yylloc: {
|
|
584
584
|
first_line: this.yylloc.first_line,
|
|
@@ -597,31 +597,31 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
597
597
|
yy: this.yy,
|
|
598
598
|
conditionStack: this.conditionStack.slice(0),
|
|
599
599
|
done: this.done
|
|
600
|
-
}, this.options.ranges && (
|
|
600
|
+
}, this.options.ranges && (x.yylloc.range = this.yylloc.range.slice(0))), _ = s[0].match(/(?:\r\n?|\n).*/g), _ && (this.yylineno += _.length), this.yylloc = {
|
|
601
601
|
first_line: this.yylloc.last_line,
|
|
602
602
|
last_line: this.yylineno + 1,
|
|
603
603
|
first_column: this.yylloc.last_column,
|
|
604
|
-
last_column:
|
|
604
|
+
last_column: _ ? _[_.length - 1].length - _[_.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
|
|
605
605
|
}, 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], l = this.performAction.call(this, this.yy, this, o, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), l)
|
|
606
606
|
return l;
|
|
607
607
|
if (this._backtrack) {
|
|
608
|
-
for (var y in
|
|
609
|
-
this[y] =
|
|
608
|
+
for (var y in x)
|
|
609
|
+
this[y] = x[y];
|
|
610
610
|
return !1;
|
|
611
611
|
}
|
|
612
612
|
return !1;
|
|
613
613
|
}, "test_match"),
|
|
614
614
|
// return next match in input
|
|
615
|
-
next: /* @__PURE__ */
|
|
615
|
+
next: /* @__PURE__ */ g(function() {
|
|
616
616
|
if (this.done)
|
|
617
617
|
return this.EOF;
|
|
618
618
|
this._input || (this.done = !0);
|
|
619
|
-
var s, o, l,
|
|
619
|
+
var s, o, l, _;
|
|
620
620
|
this._more || (this.yytext = "", this.match = "");
|
|
621
|
-
for (var
|
|
622
|
-
if (l = this._input.match(this.rules[
|
|
623
|
-
if (o = l,
|
|
624
|
-
if (s = this.test_match(l,
|
|
621
|
+
for (var x = this._currentRules(), y = 0; y < x.length; y++)
|
|
622
|
+
if (l = this._input.match(this.rules[x[y]]), l && (!o || l[0].length > o[0].length)) {
|
|
623
|
+
if (o = l, _ = y, this.options.backtrack_lexer) {
|
|
624
|
+
if (s = this.test_match(l, x[y]), s !== !1)
|
|
625
625
|
return s;
|
|
626
626
|
if (this._backtrack) {
|
|
627
627
|
o = !1;
|
|
@@ -631,7 +631,7 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
631
631
|
} else if (!this.options.flex)
|
|
632
632
|
break;
|
|
633
633
|
}
|
|
634
|
-
return o ? (s = this.test_match(o,
|
|
634
|
+
return o ? (s = this.test_match(o, x[_]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
635
635
|
` + this.showPosition(), {
|
|
636
636
|
text: "",
|
|
637
637
|
token: null,
|
|
@@ -639,38 +639,38 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
639
639
|
});
|
|
640
640
|
}, "next"),
|
|
641
641
|
// return next match that has a token
|
|
642
|
-
lex: /* @__PURE__ */
|
|
642
|
+
lex: /* @__PURE__ */ g(function() {
|
|
643
643
|
var o = this.next();
|
|
644
644
|
return o || this.lex();
|
|
645
645
|
}, "lex"),
|
|
646
646
|
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
647
|
-
begin: /* @__PURE__ */
|
|
647
|
+
begin: /* @__PURE__ */ g(function(o) {
|
|
648
648
|
this.conditionStack.push(o);
|
|
649
649
|
}, "begin"),
|
|
650
650
|
// pop the previously active lexer condition state off the condition stack
|
|
651
|
-
popState: /* @__PURE__ */
|
|
651
|
+
popState: /* @__PURE__ */ g(function() {
|
|
652
652
|
var o = this.conditionStack.length - 1;
|
|
653
653
|
return o > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
654
654
|
}, "popState"),
|
|
655
655
|
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
656
|
-
_currentRules: /* @__PURE__ */
|
|
656
|
+
_currentRules: /* @__PURE__ */ g(function() {
|
|
657
657
|
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
658
658
|
}, "_currentRules"),
|
|
659
659
|
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
660
|
-
topState: /* @__PURE__ */
|
|
660
|
+
topState: /* @__PURE__ */ g(function(o) {
|
|
661
661
|
return o = this.conditionStack.length - 1 - Math.abs(o || 0), o >= 0 ? this.conditionStack[o] : "INITIAL";
|
|
662
662
|
}, "topState"),
|
|
663
663
|
// alias for begin(condition)
|
|
664
|
-
pushState: /* @__PURE__ */
|
|
664
|
+
pushState: /* @__PURE__ */ g(function(o) {
|
|
665
665
|
this.begin(o);
|
|
666
666
|
}, "pushState"),
|
|
667
667
|
// return the number of states currently on the stack
|
|
668
|
-
stateStackSize: /* @__PURE__ */
|
|
668
|
+
stateStackSize: /* @__PURE__ */ g(function() {
|
|
669
669
|
return this.conditionStack.length;
|
|
670
670
|
}, "stateStackSize"),
|
|
671
671
|
options: { "case-insensitive": !0 },
|
|
672
|
-
performAction: /* @__PURE__ */
|
|
673
|
-
switch (
|
|
672
|
+
performAction: /* @__PURE__ */ g(function(o, l, _, x) {
|
|
673
|
+
switch (_) {
|
|
674
674
|
case 0:
|
|
675
675
|
return this.pushState("csv"), 4;
|
|
676
676
|
case 1:
|
|
@@ -694,32 +694,32 @@ Expecting ` + k.join(", ") + ", got '" + (this.terminals_[A] || A) + "'" : w = "
|
|
|
694
694
|
rules: [/^(?:sankey-beta\b)/i, /^(?:sankey\b)/i, /^(?:$)/i, /^(?:((\u000D\u000A)|(\u000A)))/i, /^(?:(\u002C))/i, /^(?:(\u0022))/i, /^(?:([\u0020-\u0021\u0023-\u002B\u002D-\u007E])*)/i, /^(?:(\u0022)(?!(\u0022)))/i, /^(?:(([\u0020-\u0021\u0023-\u002B\u002D-\u007E])|(\u002C)|(\u000D)|(\u000A)|(\u0022)(\u0022))*)/i],
|
|
695
695
|
conditions: { csv: { rules: [2, 3, 4, 5, 6, 7, 8], inclusive: !1 }, escaped_text: { rules: [7, 8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 8], inclusive: !0 } }
|
|
696
696
|
};
|
|
697
|
-
return
|
|
698
|
-
}();
|
|
699
|
-
h.lexer =
|
|
700
|
-
function
|
|
697
|
+
return k;
|
|
698
|
+
})();
|
|
699
|
+
h.lexer = b;
|
|
700
|
+
function p() {
|
|
701
701
|
this.yy = {};
|
|
702
702
|
}
|
|
703
|
-
return p
|
|
704
|
-
}();
|
|
703
|
+
return g(p, "Parser"), p.prototype = h, h.Parser = p, new p();
|
|
704
|
+
})();
|
|
705
705
|
at.parser = at;
|
|
706
|
-
var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
706
|
+
var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */ g(() => {
|
|
707
707
|
J = [], tt = [], Z = /* @__PURE__ */ new Map(), At();
|
|
708
708
|
}, "clear"), W, Jt = (W = class {
|
|
709
709
|
constructor(e, i, a = 0) {
|
|
710
710
|
this.source = e, this.target = i, this.value = a;
|
|
711
711
|
}
|
|
712
|
-
},
|
|
712
|
+
}, g(W, "SankeyLink"), W), te = /* @__PURE__ */ g((t, e, i) => {
|
|
713
713
|
J.push(new Jt(t, e, i));
|
|
714
714
|
}, "addLink"), U, ee = (U = class {
|
|
715
715
|
constructor(e) {
|
|
716
716
|
this.ID = e;
|
|
717
717
|
}
|
|
718
|
-
},
|
|
718
|
+
}, g(U, "SankeyNode"), U), ne = /* @__PURE__ */ g((t) => {
|
|
719
719
|
t = Tt.sanitizeText(t, lt());
|
|
720
720
|
let e = Z.get(t);
|
|
721
721
|
return e === void 0 && (e = new ee(t), Z.set(t, e), tt.push(e)), e;
|
|
722
|
-
}, "findOrCreateNode"), ie = /* @__PURE__ */
|
|
722
|
+
}, "findOrCreateNode"), ie = /* @__PURE__ */ g(() => tt, "getNodes"), se = /* @__PURE__ */ g(() => J, "getLinks"), re = /* @__PURE__ */ g(() => ({
|
|
723
723
|
nodes: tt.map((t) => ({ id: t.ID })),
|
|
724
724
|
links: J.map((t) => ({
|
|
725
725
|
source: t.source.ID,
|
|
@@ -728,7 +728,7 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
728
728
|
}))
|
|
729
729
|
}), "getGraph"), oe = {
|
|
730
730
|
nodesMap: Z,
|
|
731
|
-
getConfig: /* @__PURE__ */
|
|
731
|
+
getConfig: /* @__PURE__ */ g(() => lt().sankey, "getConfig"),
|
|
732
732
|
getNodes: ie,
|
|
733
733
|
getLinks: se,
|
|
734
734
|
getGraph: re,
|
|
@@ -751,51 +751,51 @@ var K = at, J = [], tt = [], Z = /* @__PURE__ */ new Map(), Zt = /* @__PURE__ */
|
|
|
751
751
|
toString() {
|
|
752
752
|
return "url(" + this.href + ")";
|
|
753
753
|
}
|
|
754
|
-
},
|
|
754
|
+
}, g(j, "Uid"), j.count = 0, j), ae = {
|
|
755
755
|
left: Ct,
|
|
756
756
|
right: Ot,
|
|
757
757
|
center: Dt,
|
|
758
758
|
justify: mt
|
|
759
|
-
}, le = /* @__PURE__ */
|
|
760
|
-
const { securityLevel: h, sankey:
|
|
761
|
-
let
|
|
762
|
-
h === "sandbox" && (
|
|
763
|
-
const s = h === "sandbox" ? X(
|
|
764
|
-
Bt().nodeId((
|
|
759
|
+
}, le = /* @__PURE__ */ g(function(t, e, i, a) {
|
|
760
|
+
const { securityLevel: h, sankey: b } = lt(), p = Lt.sankey;
|
|
761
|
+
let k;
|
|
762
|
+
h === "sandbox" && (k = X("#i" + e));
|
|
763
|
+
const s = h === "sandbox" ? X(k.nodes()[0].contentDocument.body) : X("body"), o = h === "sandbox" ? s.select(`[id="${e}"]`) : X(`[id="${e}"]`), l = b?.width ?? p.width, _ = b?.height ?? p.width, x = b?.useMaxWidth ?? p.useMaxWidth, y = b?.nodeAlignment ?? p.nodeAlignment, v = b?.prefix ?? p.prefix, M = b?.suffix ?? p.suffix, T = b?.showValues ?? p.showValues, N = a.db.getGraph(), C = ae[y];
|
|
764
|
+
Bt().nodeId((d) => d.id).nodeWidth(10).nodePadding(10 + (T ? 15 : 0)).nodeAlign(C).extent([
|
|
765
765
|
[0, 0],
|
|
766
|
-
[l,
|
|
766
|
+
[l, _]
|
|
767
767
|
])(N);
|
|
768
768
|
const S = Mt(It);
|
|
769
|
-
o.append("g").attr("class", "nodes").selectAll(".node").data(N.nodes).join("g").attr("class", "node").attr("id", (
|
|
770
|
-
return "translate(" +
|
|
771
|
-
}).attr("x", (
|
|
772
|
-
const P = /* @__PURE__ */
|
|
773
|
-
${
|
|
774
|
-
o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (
|
|
775
|
-
const B = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(N.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), O =
|
|
769
|
+
o.append("g").attr("class", "nodes").selectAll(".node").data(N.nodes).join("g").attr("class", "node").attr("id", (d) => (d.uid = gt.next("node-")).id).attr("transform", function(d) {
|
|
770
|
+
return "translate(" + d.x0 + "," + d.y0 + ")";
|
|
771
|
+
}).attr("x", (d) => d.x0).attr("y", (d) => d.y0).append("rect").attr("height", (d) => d.y1 - d.y0).attr("width", (d) => d.x1 - d.x0).attr("fill", (d) => S(d.id));
|
|
772
|
+
const P = /* @__PURE__ */ g(({ id: d, value: E }) => T ? `${d}
|
|
773
|
+
${v}${Math.round(E * 100) / 100}${M}` : d, "getText");
|
|
774
|
+
o.append("g").attr("class", "node-labels").attr("font-size", 14).selectAll("text").data(N.nodes).join("text").attr("x", (d) => d.x0 < l / 2 ? d.x1 + 6 : d.x0 - 6).attr("y", (d) => (d.y1 + d.y0) / 2).attr("dy", `${T ? "0" : "0.35"}em`).attr("text-anchor", (d) => d.x0 < l / 2 ? "start" : "end").text(P);
|
|
775
|
+
const B = o.append("g").attr("class", "links").attr("fill", "none").attr("stroke-opacity", 0.5).selectAll(".link").data(N.links).join("g").attr("class", "link").style("mix-blend-mode", "multiply"), O = b?.linkColor ?? "gradient";
|
|
776
776
|
if (O === "gradient") {
|
|
777
|
-
const
|
|
778
|
-
|
|
777
|
+
const d = B.append("linearGradient").attr("id", (E) => (E.uid = gt.next("linearGradient-")).id).attr("gradientUnits", "userSpaceOnUse").attr("x1", (E) => E.source.x1).attr("x2", (E) => E.target.x0);
|
|
778
|
+
d.append("stop").attr("offset", "0%").attr("stop-color", (E) => S(E.source.id)), d.append("stop").attr("offset", "100%").attr("stop-color", (E) => S(E.target.id));
|
|
779
779
|
}
|
|
780
780
|
let D;
|
|
781
781
|
switch (O) {
|
|
782
782
|
case "gradient":
|
|
783
|
-
D = /* @__PURE__ */
|
|
783
|
+
D = /* @__PURE__ */ g((d) => d.uid, "coloring");
|
|
784
784
|
break;
|
|
785
785
|
case "source":
|
|
786
|
-
D = /* @__PURE__ */
|
|
786
|
+
D = /* @__PURE__ */ g((d) => S(d.source.id), "coloring");
|
|
787
787
|
break;
|
|
788
788
|
case "target":
|
|
789
|
-
D = /* @__PURE__ */
|
|
789
|
+
D = /* @__PURE__ */ g((d) => S(d.target.id), "coloring");
|
|
790
790
|
break;
|
|
791
791
|
default:
|
|
792
792
|
D = O;
|
|
793
793
|
}
|
|
794
|
-
B.append("path").attr("d", Kt()).attr("stroke", D).attr("stroke-width", (
|
|
794
|
+
B.append("path").attr("d", Kt()).attr("stroke", D).attr("stroke-width", (d) => Math.max(1, d.width)), Et(void 0, o, 0, x);
|
|
795
795
|
}, "draw"), ce = {
|
|
796
796
|
draw: le
|
|
797
|
-
}, ue = /* @__PURE__ */
|
|
798
|
-
`).trim(), "prepareTextForParsing"), he = /* @__PURE__ */
|
|
797
|
+
}, ue = /* @__PURE__ */ g((t) => t.replaceAll(/^[^\S\n\r]+|[^\S\n\r]+$/g, "").replaceAll(/([\n\r])+/g, `
|
|
798
|
+
`).trim(), "prepareTextForParsing"), he = /* @__PURE__ */ g((t) => `.label {
|
|
799
799
|
font-family: ${t.fontFamily};
|
|
800
800
|
}`, "getStyles"), fe = he, ye = K.parse.bind(K);
|
|
801
801
|
K.parse = (t) => ye(ue(t));
|