@blueking/ai-blueking 2.0.0-dev.2 → 2.0.0-dev.3
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/vue2/_baseFor-DAbrc8SN.js +309 -0
- package/dist/vue2/arc-BqlAOiZb.js +78 -0
- package/dist/vue2/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
- package/dist/vue2/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
- package/dist/vue2/array-TB8zN_HT.js +5 -0
- package/dist/vue2/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
- package/dist/vue2/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
- package/dist/vue2/channel-edTl5mpN.js +3 -0
- package/dist/vue2/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
- package/dist/vue2/chunk-55IACEB6-CTzuTcHv.js +6 -0
- package/dist/vue2/chunk-76Q3JFCE-BrJX66ha.js +19 -0
- package/dist/vue2/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
- package/dist/vue2/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
- package/dist/vue2/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
- package/dist/vue2/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
- package/dist/vue2/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
- package/dist/vue2/chunk-DNh5sLlG.js +18 -0
- package/dist/vue2/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
- package/dist/vue2/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
- package/dist/vue2/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
- package/dist/vue2/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
- package/dist/vue2/chunk-HN2XXSSU-DueSY85P.js +74 -0
- package/dist/vue2/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
- package/dist/vue2/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
- package/dist/vue2/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
- package/dist/vue2/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
- package/dist/vue2/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
- package/dist/vue2/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
- package/dist/vue2/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
- package/dist/vue2/chunk-QN33PNHL-DsC-XeM9.js +23 -0
- package/dist/vue2/chunk-QXUST7PY-DxFRymyS.js +486 -0
- package/dist/vue2/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
- package/dist/vue2/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
- package/dist/vue2/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
- package/dist/vue2/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
- package/dist/vue2/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
- package/dist/vue2/chunk-XAJISQIX-XsDvU4jW.js +135 -0
- package/dist/vue2/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
- package/dist/vue2/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
- package/dist/vue2/clone-Bbr3WSpg.js +7 -0
- package/dist/vue2/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
- package/dist/vue2/cytoscape.esm-nrcriBSO.js +18100 -0
- package/dist/vue2/dagre-6UL2VRFP-CTl_U96l.js +298 -0
- package/dist/vue2/dagre-DUjlMe_B.js +1496 -0
- package/dist/vue2/defaultLocale-BLATqOV5.js +177 -0
- package/dist/vue2/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
- package/dist/vue2/diagram-QEK2KX5R-CAeywSxy.js +226 -0
- package/dist/vue2/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
- package/dist/vue2/dist-xWJvauxf.js +49 -0
- package/dist/vue2/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
- package/dist/vue2/flatten-CfPhNHUL.js +34 -0
- package/dist/vue2/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
- package/dist/vue2/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
- package/dist/vue2/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
- package/dist/vue2/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
- package/dist/vue2/graphlib-KDKEjVHX.js +344 -0
- package/dist/vue2/index.es.min.js +26703 -786
- package/dist/vue2/index.umd.min.js +2796 -9
- package/dist/vue2/info-NVLQJR56-DBsOnIKy.js +7 -0
- package/dist/vue2/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
- package/dist/vue2/init-hAkIK9Bd.js +13 -0
- package/dist/vue2/isEmpty-z27q3o-D.js +32 -0
- package/dist/vue2/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
- package/dist/vue2/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
- package/dist/vue2/katex-CEAw-xiA.js +22097 -0
- package/dist/vue2/katex-D8o5-F7C.js +2 -0
- package/dist/vue2/line-wvheYP7S.js +30 -0
- package/dist/vue2/linear-STTevhnH.js +250 -0
- package/dist/vue2/math-DF_v6dOl.js +8 -0
- package/dist/vue2/mermaid-parser.core-VAa8Vi1g.js +48 -0
- package/dist/vue2/mermaid.core-vqI6KB9k.js +895 -0
- package/dist/vue2/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
- package/dist/vue2/ordinal-DOM6Fa9P.js +61 -0
- package/dist/vue2/packet-BFZMPI3H-CG049KmZ.js +7 -0
- package/dist/vue2/path-CW_-_Ti7.js +79 -0
- package/dist/vue2/pie-7BOR55EZ-BHq0KcLP.js +7 -0
- package/dist/vue2/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
- package/dist/vue2/purify.es-Cm_tUMzZ.js +547 -0
- package/dist/vue2/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
- package/dist/vue2/radar-NHE76QYJ-CUoVtrAx.js +7 -0
- package/dist/vue2/reduce-BFKSG9Rs.js +451 -0
- package/dist/vue2/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
- package/dist/vue2/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
- package/dist/vue2/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
- package/dist/vue2/src-VlKYSsxJ.js +1975 -0
- package/dist/vue2/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
- package/dist/vue2/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
- package/dist/vue2/style.css +1 -1
- package/dist/vue2/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
- package/dist/vue2/treemap-KMMF4GRG--FdijCcy.js +7 -0
- package/dist/vue2/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
- package/dist/vue3/_baseFor-DAbrc8SN.js +309 -0
- package/dist/vue3/arc-BqlAOiZb.js +78 -0
- package/dist/vue3/architecture-U656AL7Q-Dtuq8BzO.js +7 -0
- package/dist/vue3/architectureDiagram-VXUJARFQ-BQS5Ixrn.js +4052 -0
- package/dist/vue3/array-TB8zN_HT.js +5 -0
- package/dist/vue3/blockDiagram-VD42YOAC-Bp6L6c6e.js +3013 -0
- package/dist/vue3/c4Diagram-YG6GDRKO-B15ZDn3Z.js +2956 -0
- package/dist/vue3/channel-edTl5mpN.js +3 -0
- package/dist/vue3/chunk-4BX2VUAB-eAYYj1bL.js +6 -0
- package/dist/vue3/chunk-55IACEB6-CTzuTcHv.js +6 -0
- package/dist/vue3/chunk-76Q3JFCE-BrJX66ha.js +19 -0
- package/dist/vue3/chunk-ABZYJK2D-gsx40GnJ.js +1971 -0
- package/dist/vue3/chunk-ATLVNIR6-CTTwtx-5.js +65 -0
- package/dist/vue3/chunk-B4BG7PRW-D8o7VxRH.js +3108 -0
- package/dist/vue3/chunk-CVBHYZKI-Cs8lCw3u.js +10 -0
- package/dist/vue3/chunk-DI55MBZ5-Dl59YBtR.js +1994 -0
- package/dist/vue3/chunk-DNh5sLlG.js +18 -0
- package/dist/vue3/chunk-EXTU4WIE-BPc8ye_N.js +7 -0
- package/dist/vue3/chunk-FMBD7UC4-PFlLPz_s.js +3 -0
- package/dist/vue3/chunk-FPAJGGOC-DPvjUKQ8.js +13428 -0
- package/dist/vue3/chunk-FWNWRKHM-BlUTFsPK.js +56 -0
- package/dist/vue3/chunk-HN2XXSSU-DueSY85P.js +74 -0
- package/dist/vue3/chunk-JA3XYJ7Z-CRet4f6a.js +1845 -0
- package/dist/vue3/chunk-JZLCHNYA-Df0-MseJ.js +4861 -0
- package/dist/vue3/chunk-LBM3YZW2-B0-w2HZs.js +19 -0
- package/dist/vue3/chunk-LHMN2FUI-BOH3yE2u.js +19 -0
- package/dist/vue3/chunk-MI3HLSF2-6-T1J0MS.js +1140 -0
- package/dist/vue3/chunk-N4CR4FBY-jNnt5D3v.js +39 -0
- package/dist/vue3/chunk-O7ZBX7Z2-BEP34BEE.js +26 -0
- package/dist/vue3/chunk-QN33PNHL-DsC-XeM9.js +23 -0
- package/dist/vue3/chunk-QXUST7PY-DxFRymyS.js +486 -0
- package/dist/vue3/chunk-QZHKN3VN-D9B5jQvg.js +11 -0
- package/dist/vue3/chunk-S3R3BYOJ-Bs_r55Kk.js +1222 -0
- package/dist/vue3/chunk-S6J4BHB3-XXfWHJvh.js +19 -0
- package/dist/vue3/chunk-T53DSG4Q-CNvqP6Iy.js +24 -0
- package/dist/vue3/chunk-TZMSLE5B-C5ccYWGN.js +55 -0
- package/dist/vue3/chunk-XAJISQIX-XsDvU4jW.js +135 -0
- package/dist/vue3/classDiagram-2ON5EDUG-Cgf9yVXj.js +33 -0
- package/dist/vue3/classDiagram-v2-WZHVMYZB-BtF1_0UK.js +33 -0
- package/dist/vue3/clone-Bbr3WSpg.js +7 -0
- package/dist/vue3/cose-bilkent-S5V4N54A-Cmf6WLkk.js +2250 -0
- package/dist/vue3/cytoscape.esm-nrcriBSO.js +18100 -0
- package/dist/vue3/dagre-6UL2VRFP-CTl_U96l.js +298 -0
- package/dist/vue3/dagre-DUjlMe_B.js +1496 -0
- package/dist/vue3/defaultLocale-BLATqOV5.js +177 -0
- package/dist/vue3/diagram-PSM6KHXK-Bl7brR-1.js +497 -0
- package/dist/vue3/diagram-QEK2KX5R-CAeywSxy.js +226 -0
- package/dist/vue3/diagram-S2PKOQOG-6I6J4WRC.js +144 -0
- package/dist/vue3/dist-xWJvauxf.js +49 -0
- package/dist/vue3/erDiagram-Q2GNP2WA-C8EbfuTj.js +1603 -0
- package/dist/vue3/flatten-CfPhNHUL.js +34 -0
- package/dist/vue3/flowDiagram-NV44I4VS-lFr4G2WN.js +4132 -0
- package/dist/vue3/ganttDiagram-JELNMOA3-Bvtip7yn.js +3010 -0
- package/dist/vue3/gitGraph-F6HP7TQM-OQvD95bN.js +7 -0
- package/dist/vue3/gitGraphDiagram-NY62KEGX-Cjvy4fHM.js +634 -0
- package/dist/vue3/graphlib-KDKEjVHX.js +344 -0
- package/dist/vue3/index.es.min.js +26730 -813
- package/dist/vue3/index.umd.min.js +2796 -9
- package/dist/vue3/info-NVLQJR56-DBsOnIKy.js +7 -0
- package/dist/vue3/infoDiagram-WHAUD3N6-D_isj7oC.js +31 -0
- package/dist/vue3/init-hAkIK9Bd.js +13 -0
- package/dist/vue3/isEmpty-z27q3o-D.js +32 -0
- package/dist/vue3/journeyDiagram-XKPGCS4Q-DlXHMS3v.js +885 -0
- package/dist/vue3/kanban-definition-3W4ZIXB7-CV6572lv.js +971 -0
- package/dist/vue3/katex-CEAw-xiA.js +22097 -0
- package/dist/vue3/katex-D8o5-F7C.js +2 -0
- package/dist/vue3/line-wvheYP7S.js +30 -0
- package/dist/vue3/linear-STTevhnH.js +250 -0
- package/dist/vue3/math-DF_v6dOl.js +8 -0
- package/dist/vue3/mermaid-parser.core-VAa8Vi1g.js +48 -0
- package/dist/vue3/mermaid.core-vqI6KB9k.js +895 -0
- package/dist/vue3/mindmap-definition-VGOIOE7T-gtjvHqQ-.js +960 -0
- package/dist/vue3/ordinal-DOM6Fa9P.js +61 -0
- package/dist/vue3/packet-BFZMPI3H-CG049KmZ.js +7 -0
- package/dist/vue3/path-CW_-_Ti7.js +79 -0
- package/dist/vue3/pie-7BOR55EZ-BHq0KcLP.js +7 -0
- package/dist/vue3/pieDiagram-ADFJNKIX-CTUoM-kp.js +172 -0
- package/dist/vue3/purify.es-Cm_tUMzZ.js +547 -0
- package/dist/vue3/quadrantDiagram-AYHSOK5B-Njl7BMW7.js +1971 -0
- package/dist/vue3/radar-NHE76QYJ-CUoVtrAx.js +7 -0
- package/dist/vue3/reduce-BFKSG9Rs.js +451 -0
- package/dist/vue3/requirementDiagram-UZGBJVZJ-DKjE3cDK.js +2194 -0
- package/dist/vue3/sankeyDiagram-TZEHDZUN-DW2ap3zY.js +885 -0
- package/dist/vue3/sequenceDiagram-WL72ISMW-BjMq4OjH.js +3561 -0
- package/dist/vue3/src-VlKYSsxJ.js +1975 -0
- package/dist/vue3/stateDiagram-FKZM4ZOC-CnvtGM9U.js +224 -0
- package/dist/vue3/stateDiagram-v2-4FDKWEC3-C15xi-04.js +32 -0
- package/dist/vue3/style.css +1 -1
- package/dist/vue3/timeline-definition-IT6M3QCI-C7q6jdLA.js +831 -0
- package/dist/vue3/treemap-KMMF4GRG--FdijCcy.js +7 -0
- package/dist/vue3/xychartDiagram-PRI3JC2R-UcfQmj72.js +2022 -0
- package/package.json +1 -1
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
import "./purify.es-Cm_tUMzZ.js";
|
|
2
|
+
import { g as log, h as __name, m as __export, p as select_default } from "./src-VlKYSsxJ.js";
|
|
3
|
+
import { G as setupGraphViewbox, Q as is_dark_default, X as darken_default, Z as lighten_default, a as clear, b as getConfig2, o as commonDb_exports } from "./chunk-ABZYJK2D-gsx40GnJ.js";
|
|
4
|
+
import "./path-CW_-_Ti7.js";
|
|
5
|
+
import "./math-DF_v6dOl.js";
|
|
6
|
+
import { t as arc_default } from "./arc-BqlAOiZb.js";
|
|
7
|
+
var parser = (function() {
|
|
8
|
+
var e = /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
9
|
+
for (C ||= {}, w = e.length; w--; C[e[w]] = S);
|
|
10
|
+
return C;
|
|
11
|
+
}, "o"), C = [
|
|
12
|
+
6,
|
|
13
|
+
8,
|
|
14
|
+
10,
|
|
15
|
+
11,
|
|
16
|
+
12,
|
|
17
|
+
14,
|
|
18
|
+
16,
|
|
19
|
+
17,
|
|
20
|
+
20,
|
|
21
|
+
21
|
|
22
|
+
], w = [1, 9], T = [1, 10], E = [1, 11], D = [1, 12], O = [1, 13], k = [1, 16], A = [1, 17], j = {
|
|
23
|
+
trace: /* @__PURE__ */ __name(function() {}, "trace"),
|
|
24
|
+
yy: {},
|
|
25
|
+
symbols_: {
|
|
26
|
+
error: 2,
|
|
27
|
+
start: 3,
|
|
28
|
+
timeline: 4,
|
|
29
|
+
document: 5,
|
|
30
|
+
EOF: 6,
|
|
31
|
+
line: 7,
|
|
32
|
+
SPACE: 8,
|
|
33
|
+
statement: 9,
|
|
34
|
+
NEWLINE: 10,
|
|
35
|
+
title: 11,
|
|
36
|
+
acc_title: 12,
|
|
37
|
+
acc_title_value: 13,
|
|
38
|
+
acc_descr: 14,
|
|
39
|
+
acc_descr_value: 15,
|
|
40
|
+
acc_descr_multiline_value: 16,
|
|
41
|
+
section: 17,
|
|
42
|
+
period_statement: 18,
|
|
43
|
+
event_statement: 19,
|
|
44
|
+
period: 20,
|
|
45
|
+
event: 21,
|
|
46
|
+
$accept: 0,
|
|
47
|
+
$end: 1
|
|
48
|
+
},
|
|
49
|
+
terminals_: {
|
|
50
|
+
2: "error",
|
|
51
|
+
4: "timeline",
|
|
52
|
+
6: "EOF",
|
|
53
|
+
8: "SPACE",
|
|
54
|
+
10: "NEWLINE",
|
|
55
|
+
11: "title",
|
|
56
|
+
12: "acc_title",
|
|
57
|
+
13: "acc_title_value",
|
|
58
|
+
14: "acc_descr",
|
|
59
|
+
15: "acc_descr_value",
|
|
60
|
+
16: "acc_descr_multiline_value",
|
|
61
|
+
17: "section",
|
|
62
|
+
20: "period",
|
|
63
|
+
21: "event"
|
|
64
|
+
},
|
|
65
|
+
productions_: [
|
|
66
|
+
0,
|
|
67
|
+
[3, 3],
|
|
68
|
+
[5, 0],
|
|
69
|
+
[5, 2],
|
|
70
|
+
[7, 2],
|
|
71
|
+
[7, 1],
|
|
72
|
+
[7, 1],
|
|
73
|
+
[7, 1],
|
|
74
|
+
[9, 1],
|
|
75
|
+
[9, 2],
|
|
76
|
+
[9, 2],
|
|
77
|
+
[9, 1],
|
|
78
|
+
[9, 1],
|
|
79
|
+
[9, 1],
|
|
80
|
+
[9, 1],
|
|
81
|
+
[18, 1],
|
|
82
|
+
[19, 1]
|
|
83
|
+
],
|
|
84
|
+
performAction: /* @__PURE__ */ __name(function(e, S, C, w, T, E, D) {
|
|
85
|
+
var O = E.length - 1;
|
|
86
|
+
switch (T) {
|
|
87
|
+
case 1: return E[O - 1];
|
|
88
|
+
case 2:
|
|
89
|
+
this.$ = [];
|
|
90
|
+
break;
|
|
91
|
+
case 3:
|
|
92
|
+
E[O - 1].push(E[O]), this.$ = E[O - 1];
|
|
93
|
+
break;
|
|
94
|
+
case 4:
|
|
95
|
+
case 5:
|
|
96
|
+
this.$ = E[O];
|
|
97
|
+
break;
|
|
98
|
+
case 6:
|
|
99
|
+
case 7:
|
|
100
|
+
this.$ = [];
|
|
101
|
+
break;
|
|
102
|
+
case 8:
|
|
103
|
+
w.getCommonDb().setDiagramTitle(E[O].substr(6)), this.$ = E[O].substr(6);
|
|
104
|
+
break;
|
|
105
|
+
case 9:
|
|
106
|
+
this.$ = E[O].trim(), w.getCommonDb().setAccTitle(this.$);
|
|
107
|
+
break;
|
|
108
|
+
case 10:
|
|
109
|
+
case 11:
|
|
110
|
+
this.$ = E[O].trim(), w.getCommonDb().setAccDescription(this.$);
|
|
111
|
+
break;
|
|
112
|
+
case 12:
|
|
113
|
+
w.addSection(E[O].substr(8)), this.$ = E[O].substr(8);
|
|
114
|
+
break;
|
|
115
|
+
case 15:
|
|
116
|
+
w.addTask(E[O], 0, ""), this.$ = E[O];
|
|
117
|
+
break;
|
|
118
|
+
case 16:
|
|
119
|
+
w.addEvent(E[O].substr(2)), this.$ = E[O];
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}, "anonymous"),
|
|
123
|
+
table: [
|
|
124
|
+
{
|
|
125
|
+
3: 1,
|
|
126
|
+
4: [1, 2]
|
|
127
|
+
},
|
|
128
|
+
{ 1: [3] },
|
|
129
|
+
e(C, [2, 2], { 5: 3 }),
|
|
130
|
+
{
|
|
131
|
+
6: [1, 4],
|
|
132
|
+
7: 5,
|
|
133
|
+
8: [1, 6],
|
|
134
|
+
9: 7,
|
|
135
|
+
10: [1, 8],
|
|
136
|
+
11: w,
|
|
137
|
+
12: T,
|
|
138
|
+
14: E,
|
|
139
|
+
16: D,
|
|
140
|
+
17: O,
|
|
141
|
+
18: 14,
|
|
142
|
+
19: 15,
|
|
143
|
+
20: k,
|
|
144
|
+
21: A
|
|
145
|
+
},
|
|
146
|
+
e(C, [2, 7], { 1: [2, 1] }),
|
|
147
|
+
e(C, [2, 3]),
|
|
148
|
+
{
|
|
149
|
+
9: 18,
|
|
150
|
+
11: w,
|
|
151
|
+
12: T,
|
|
152
|
+
14: E,
|
|
153
|
+
16: D,
|
|
154
|
+
17: O,
|
|
155
|
+
18: 14,
|
|
156
|
+
19: 15,
|
|
157
|
+
20: k,
|
|
158
|
+
21: A
|
|
159
|
+
},
|
|
160
|
+
e(C, [2, 5]),
|
|
161
|
+
e(C, [2, 6]),
|
|
162
|
+
e(C, [2, 8]),
|
|
163
|
+
{ 13: [1, 19] },
|
|
164
|
+
{ 15: [1, 20] },
|
|
165
|
+
e(C, [2, 11]),
|
|
166
|
+
e(C, [2, 12]),
|
|
167
|
+
e(C, [2, 13]),
|
|
168
|
+
e(C, [2, 14]),
|
|
169
|
+
e(C, [2, 15]),
|
|
170
|
+
e(C, [2, 16]),
|
|
171
|
+
e(C, [2, 4]),
|
|
172
|
+
e(C, [2, 9]),
|
|
173
|
+
e(C, [2, 10])
|
|
174
|
+
],
|
|
175
|
+
defaultActions: {},
|
|
176
|
+
parseError: /* @__PURE__ */ __name(function(e, S) {
|
|
177
|
+
if (S.recoverable) this.trace(e);
|
|
178
|
+
else {
|
|
179
|
+
var C = Error(e);
|
|
180
|
+
throw C.hash = S, C;
|
|
181
|
+
}
|
|
182
|
+
}, "parseError"),
|
|
183
|
+
parse: /* @__PURE__ */ __name(function(e) {
|
|
184
|
+
var C = this, w = [0], T = [], E = [null], D = [], O = this.table, k = "", A = 0, j = 0, M = 0, N = 2, P = 1, F = D.slice.call(arguments, 1), I = Object.create(this.lexer), L = { yy: {} };
|
|
185
|
+
for (var R in this.yy) Object.prototype.hasOwnProperty.call(this.yy, R) && (L.yy[R] = this.yy[R]);
|
|
186
|
+
I.setInput(e, L.yy), L.yy.lexer = I, L.yy.parser = this, I.yylloc === void 0 && (I.yylloc = {});
|
|
187
|
+
var z = I.yylloc;
|
|
188
|
+
D.push(z);
|
|
189
|
+
var B = I.options && I.options.ranges;
|
|
190
|
+
typeof L.yy.parseError == "function" ? this.parseError = L.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
191
|
+
function V(e) {
|
|
192
|
+
w.length -= 2 * e, E.length -= e, D.length -= e;
|
|
193
|
+
}
|
|
194
|
+
__name(V, "popStack");
|
|
195
|
+
function H() {
|
|
196
|
+
var e = T.pop() || I.lex() || P;
|
|
197
|
+
return typeof e != "number" && (e instanceof Array && (T = e, e = T.pop()), e = C.symbols_[e] || e), e;
|
|
198
|
+
}
|
|
199
|
+
__name(H, "lex");
|
|
200
|
+
for (var U, W, G, K, q, J = {}, Y, X, Z, Q;;) {
|
|
201
|
+
if (G = w[w.length - 1], this.defaultActions[G] ? K = this.defaultActions[G] : (U ??= H(), K = O[G] && O[G][U]), K === void 0 || !K.length || !K[0]) {
|
|
202
|
+
var $ = "";
|
|
203
|
+
for (Y in Q = [], O[G]) this.terminals_[Y] && Y > N && Q.push("'" + this.terminals_[Y] + "'");
|
|
204
|
+
$ = I.showPosition ? "Parse error on line " + (A + 1) + ":\n" + I.showPosition() + "\nExpecting " + Q.join(", ") + ", got '" + (this.terminals_[U] || U) + "'" : "Parse error on line " + (A + 1) + ": Unexpected " + (U == P ? "end of input" : "'" + (this.terminals_[U] || U) + "'"), this.parseError($, {
|
|
205
|
+
text: I.match,
|
|
206
|
+
token: this.terminals_[U] || U,
|
|
207
|
+
line: I.yylineno,
|
|
208
|
+
loc: z,
|
|
209
|
+
expected: Q
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
if (K[0] instanceof Array && K.length > 1) throw Error("Parse Error: multiple actions possible at state: " + G + ", token: " + U);
|
|
213
|
+
switch (K[0]) {
|
|
214
|
+
case 1:
|
|
215
|
+
w.push(U), E.push(I.yytext), D.push(I.yylloc), w.push(K[1]), U = null, W ? (U = W, W = null) : (j = I.yyleng, k = I.yytext, A = I.yylineno, z = I.yylloc, M > 0 && M--);
|
|
216
|
+
break;
|
|
217
|
+
case 2:
|
|
218
|
+
if (X = this.productions_[K[1]][1], J.$ = E[E.length - X], J._$ = {
|
|
219
|
+
first_line: D[D.length - (X || 1)].first_line,
|
|
220
|
+
last_line: D[D.length - 1].last_line,
|
|
221
|
+
first_column: D[D.length - (X || 1)].first_column,
|
|
222
|
+
last_column: D[D.length - 1].last_column
|
|
223
|
+
}, B && (J._$.range = [D[D.length - (X || 1)].range[0], D[D.length - 1].range[1]]), q = this.performAction.apply(J, [
|
|
224
|
+
k,
|
|
225
|
+
j,
|
|
226
|
+
A,
|
|
227
|
+
L.yy,
|
|
228
|
+
K[1],
|
|
229
|
+
E,
|
|
230
|
+
D
|
|
231
|
+
].concat(F)), q !== void 0) return q;
|
|
232
|
+
X && (w = w.slice(0, -1 * X * 2), E = E.slice(0, -1 * X), D = D.slice(0, -1 * X)), w.push(this.productions_[K[1]][0]), E.push(J.$), D.push(J._$), Z = O[w[w.length - 2]][w[w.length - 1]], w.push(Z);
|
|
233
|
+
break;
|
|
234
|
+
case 3: return !0;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return !0;
|
|
238
|
+
}, "parse")
|
|
239
|
+
};
|
|
240
|
+
j.lexer = /* @__PURE__ */ (function() {
|
|
241
|
+
return {
|
|
242
|
+
EOF: 1,
|
|
243
|
+
parseError: /* @__PURE__ */ __name(function(e, S) {
|
|
244
|
+
if (this.yy.parser) this.yy.parser.parseError(e, S);
|
|
245
|
+
else throw Error(e);
|
|
246
|
+
}, "parseError"),
|
|
247
|
+
setInput: /* @__PURE__ */ __name(function(e, S) {
|
|
248
|
+
return this.yy = S || this.yy || {}, this._input = e, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
249
|
+
first_line: 1,
|
|
250
|
+
first_column: 0,
|
|
251
|
+
last_line: 1,
|
|
252
|
+
last_column: 0
|
|
253
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
254
|
+
}, "setInput"),
|
|
255
|
+
input: /* @__PURE__ */ __name(function() {
|
|
256
|
+
var e = this._input[0];
|
|
257
|
+
return this.yytext += e, this.yyleng++, this.offset++, this.match += e, this.matched += e, e.match(/(?:\r\n?|\n).*/g) ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), e;
|
|
258
|
+
}, "input"),
|
|
259
|
+
unput: /* @__PURE__ */ __name(function(e) {
|
|
260
|
+
var S = e.length, C = e.split(/(?:\r\n?|\n)/g);
|
|
261
|
+
this._input = e + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - S), this.offset -= S;
|
|
262
|
+
var w = this.match.split(/(?:\r\n?|\n)/g);
|
|
263
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), C.length - 1 && (this.yylineno -= C.length - 1);
|
|
264
|
+
var T = this.yylloc.range;
|
|
265
|
+
return this.yylloc = {
|
|
266
|
+
first_line: this.yylloc.first_line,
|
|
267
|
+
last_line: this.yylineno + 1,
|
|
268
|
+
first_column: this.yylloc.first_column,
|
|
269
|
+
last_column: C ? (C.length === w.length ? this.yylloc.first_column : 0) + w[w.length - C.length].length - C[0].length : this.yylloc.first_column - S
|
|
270
|
+
}, this.options.ranges && (this.yylloc.range = [T[0], T[0] + this.yyleng - S]), this.yyleng = this.yytext.length, this;
|
|
271
|
+
}, "unput"),
|
|
272
|
+
more: /* @__PURE__ */ __name(function() {
|
|
273
|
+
return this._more = !0, this;
|
|
274
|
+
}, "more"),
|
|
275
|
+
reject: /* @__PURE__ */ __name(function() {
|
|
276
|
+
if (this.options.backtrack_lexer) this._backtrack = !0;
|
|
277
|
+
else return this.parseError("Lexical error on line " + (this.yylineno + 1) + ". You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n" + this.showPosition(), {
|
|
278
|
+
text: "",
|
|
279
|
+
token: null,
|
|
280
|
+
line: this.yylineno
|
|
281
|
+
});
|
|
282
|
+
return this;
|
|
283
|
+
}, "reject"),
|
|
284
|
+
less: /* @__PURE__ */ __name(function(e) {
|
|
285
|
+
this.unput(this.match.slice(e));
|
|
286
|
+
}, "less"),
|
|
287
|
+
pastInput: /* @__PURE__ */ __name(function() {
|
|
288
|
+
var e = this.matched.substr(0, this.matched.length - this.match.length);
|
|
289
|
+
return (e.length > 20 ? "..." : "") + e.substr(-20).replace(/\n/g, "");
|
|
290
|
+
}, "pastInput"),
|
|
291
|
+
upcomingInput: /* @__PURE__ */ __name(function() {
|
|
292
|
+
var e = this.match;
|
|
293
|
+
return e.length < 20 && (e += this._input.substr(0, 20 - e.length)), (e.substr(0, 20) + (e.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
294
|
+
}, "upcomingInput"),
|
|
295
|
+
showPosition: /* @__PURE__ */ __name(function() {
|
|
296
|
+
var e = this.pastInput(), S = Array(e.length + 1).join("-");
|
|
297
|
+
return e + this.upcomingInput() + "\n" + S + "^";
|
|
298
|
+
}, "showPosition"),
|
|
299
|
+
test_match: /* @__PURE__ */ __name(function(e, S) {
|
|
300
|
+
var C, w, T;
|
|
301
|
+
if (this.options.backtrack_lexer && (T = {
|
|
302
|
+
yylineno: this.yylineno,
|
|
303
|
+
yylloc: {
|
|
304
|
+
first_line: this.yylloc.first_line,
|
|
305
|
+
last_line: this.last_line,
|
|
306
|
+
first_column: this.yylloc.first_column,
|
|
307
|
+
last_column: this.yylloc.last_column
|
|
308
|
+
},
|
|
309
|
+
yytext: this.yytext,
|
|
310
|
+
match: this.match,
|
|
311
|
+
matches: this.matches,
|
|
312
|
+
matched: this.matched,
|
|
313
|
+
yyleng: this.yyleng,
|
|
314
|
+
offset: this.offset,
|
|
315
|
+
_more: this._more,
|
|
316
|
+
_input: this._input,
|
|
317
|
+
yy: this.yy,
|
|
318
|
+
conditionStack: this.conditionStack.slice(0),
|
|
319
|
+
done: this.done
|
|
320
|
+
}, this.options.ranges && (T.yylloc.range = this.yylloc.range.slice(0))), w = e[0].match(/(?:\r\n?|\n).*/g), w && (this.yylineno += w.length), this.yylloc = {
|
|
321
|
+
first_line: this.yylloc.last_line,
|
|
322
|
+
last_line: this.yylineno + 1,
|
|
323
|
+
first_column: this.yylloc.last_column,
|
|
324
|
+
last_column: w ? w[w.length - 1].length - w[w.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + e[0].length
|
|
325
|
+
}, this.yytext += e[0], this.match += e[0], this.matches = e, 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(e[0].length), this.matched += e[0], C = this.performAction.call(this, this.yy, this, S, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), C) return C;
|
|
326
|
+
if (this._backtrack) {
|
|
327
|
+
for (var E in T) this[E] = T[E];
|
|
328
|
+
return !1;
|
|
329
|
+
}
|
|
330
|
+
return !1;
|
|
331
|
+
}, "test_match"),
|
|
332
|
+
next: /* @__PURE__ */ __name(function() {
|
|
333
|
+
if (this.done) return this.EOF;
|
|
334
|
+
this._input || (this.done = !0);
|
|
335
|
+
var e, S, C, w;
|
|
336
|
+
this._more || (this.yytext = "", this.match = "");
|
|
337
|
+
for (var T = this._currentRules(), E = 0; E < T.length; E++) if (C = this._input.match(this.rules[T[E]]), C && (!S || C[0].length > S[0].length)) {
|
|
338
|
+
if (S = C, w = E, this.options.backtrack_lexer) {
|
|
339
|
+
if (e = this.test_match(C, T[E]), e !== !1) return e;
|
|
340
|
+
if (this._backtrack) {
|
|
341
|
+
S = !1;
|
|
342
|
+
continue;
|
|
343
|
+
} else return !1;
|
|
344
|
+
} else if (!this.options.flex) break;
|
|
345
|
+
}
|
|
346
|
+
return S ? (e = this.test_match(S, T[w]), e === !1 ? !1 : e) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + ". Unrecognized text.\n" + this.showPosition(), {
|
|
347
|
+
text: "",
|
|
348
|
+
token: null,
|
|
349
|
+
line: this.yylineno
|
|
350
|
+
});
|
|
351
|
+
}, "next"),
|
|
352
|
+
lex: /* @__PURE__ */ __name(function() {
|
|
353
|
+
return this.next() || this.lex();
|
|
354
|
+
}, "lex"),
|
|
355
|
+
begin: /* @__PURE__ */ __name(function(e) {
|
|
356
|
+
this.conditionStack.push(e);
|
|
357
|
+
}, "begin"),
|
|
358
|
+
popState: /* @__PURE__ */ __name(function() {
|
|
359
|
+
return this.conditionStack.length - 1 > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
360
|
+
}, "popState"),
|
|
361
|
+
_currentRules: /* @__PURE__ */ __name(function() {
|
|
362
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
363
|
+
}, "_currentRules"),
|
|
364
|
+
topState: /* @__PURE__ */ __name(function(e) {
|
|
365
|
+
return e = this.conditionStack.length - 1 - Math.abs(e || 0), e >= 0 ? this.conditionStack[e] : "INITIAL";
|
|
366
|
+
}, "topState"),
|
|
367
|
+
pushState: /* @__PURE__ */ __name(function(e) {
|
|
368
|
+
this.begin(e);
|
|
369
|
+
}, "pushState"),
|
|
370
|
+
stateStackSize: /* @__PURE__ */ __name(function() {
|
|
371
|
+
return this.conditionStack.length;
|
|
372
|
+
}, "stateStackSize"),
|
|
373
|
+
options: { "case-insensitive": !0 },
|
|
374
|
+
performAction: /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
375
|
+
switch (C) {
|
|
376
|
+
case 0: break;
|
|
377
|
+
case 1: break;
|
|
378
|
+
case 2: return 10;
|
|
379
|
+
case 3: break;
|
|
380
|
+
case 4: break;
|
|
381
|
+
case 5: return 4;
|
|
382
|
+
case 6: return 11;
|
|
383
|
+
case 7: return this.begin("acc_title"), 12;
|
|
384
|
+
case 8: return this.popState(), "acc_title_value";
|
|
385
|
+
case 9: return this.begin("acc_descr"), 14;
|
|
386
|
+
case 10: return this.popState(), "acc_descr_value";
|
|
387
|
+
case 11:
|
|
388
|
+
this.begin("acc_descr_multiline");
|
|
389
|
+
break;
|
|
390
|
+
case 12:
|
|
391
|
+
this.popState();
|
|
392
|
+
break;
|
|
393
|
+
case 13: return "acc_descr_multiline_value";
|
|
394
|
+
case 14: return 17;
|
|
395
|
+
case 15: return 21;
|
|
396
|
+
case 16: return 20;
|
|
397
|
+
case 17: return 6;
|
|
398
|
+
case 18: return "INVALID";
|
|
399
|
+
}
|
|
400
|
+
}, "anonymous"),
|
|
401
|
+
rules: [
|
|
402
|
+
/^(?:%(?!\{)[^\n]*)/i,
|
|
403
|
+
/^(?:[^\}]%%[^\n]*)/i,
|
|
404
|
+
/^(?:[\n]+)/i,
|
|
405
|
+
/^(?:\s+)/i,
|
|
406
|
+
/^(?:#[^\n]*)/i,
|
|
407
|
+
/^(?:timeline\b)/i,
|
|
408
|
+
/^(?:title\s[^\n]+)/i,
|
|
409
|
+
/^(?:accTitle\s*:\s*)/i,
|
|
410
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
411
|
+
/^(?:accDescr\s*:\s*)/i,
|
|
412
|
+
/^(?:(?!\n||)*[^\n]*)/i,
|
|
413
|
+
/^(?:accDescr\s*\{\s*)/i,
|
|
414
|
+
/^(?:[\}])/i,
|
|
415
|
+
/^(?:[^\}]*)/i,
|
|
416
|
+
/^(?:section\s[^:\n]+)/i,
|
|
417
|
+
/^(?::\s(?:[^:\n]|:(?!\s))+)/i,
|
|
418
|
+
/^(?:[^#:\n]+)/i,
|
|
419
|
+
/^(?:$)/i,
|
|
420
|
+
/^(?:.)/i
|
|
421
|
+
],
|
|
422
|
+
conditions: {
|
|
423
|
+
acc_descr_multiline: {
|
|
424
|
+
rules: [12, 13],
|
|
425
|
+
inclusive: !1
|
|
426
|
+
},
|
|
427
|
+
acc_descr: {
|
|
428
|
+
rules: [10],
|
|
429
|
+
inclusive: !1
|
|
430
|
+
},
|
|
431
|
+
acc_title: {
|
|
432
|
+
rules: [8],
|
|
433
|
+
inclusive: !1
|
|
434
|
+
},
|
|
435
|
+
INITIAL: {
|
|
436
|
+
rules: [
|
|
437
|
+
0,
|
|
438
|
+
1,
|
|
439
|
+
2,
|
|
440
|
+
3,
|
|
441
|
+
4,
|
|
442
|
+
5,
|
|
443
|
+
6,
|
|
444
|
+
7,
|
|
445
|
+
9,
|
|
446
|
+
11,
|
|
447
|
+
14,
|
|
448
|
+
15,
|
|
449
|
+
16,
|
|
450
|
+
17,
|
|
451
|
+
18
|
|
452
|
+
],
|
|
453
|
+
inclusive: !0
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
};
|
|
457
|
+
})();
|
|
458
|
+
function M() {
|
|
459
|
+
this.yy = {};
|
|
460
|
+
}
|
|
461
|
+
return __name(M, "Parser"), M.prototype = j, j.Parser = M, new M();
|
|
462
|
+
})();
|
|
463
|
+
parser.parser = parser;
|
|
464
|
+
var timeline_default = parser, timelineDb_exports = {};
|
|
465
|
+
__export(timelineDb_exports, {
|
|
466
|
+
addEvent: () => addEvent,
|
|
467
|
+
addSection: () => addSection,
|
|
468
|
+
addTask: () => addTask,
|
|
469
|
+
addTaskOrg: () => addTaskOrg,
|
|
470
|
+
clear: () => clear2,
|
|
471
|
+
default: () => timelineDb_default,
|
|
472
|
+
getCommonDb: () => getCommonDb,
|
|
473
|
+
getSections: () => getSections,
|
|
474
|
+
getTasks: () => getTasks
|
|
475
|
+
});
|
|
476
|
+
var currentSection = "", currentTaskId = 0, sections = [], tasks = [], rawTasks = [], getCommonDb = /* @__PURE__ */ __name(() => commonDb_exports, "getCommonDb"), clear2 = /* @__PURE__ */ __name(function() {
|
|
477
|
+
sections.length = 0, tasks.length = 0, currentSection = "", rawTasks.length = 0, clear();
|
|
478
|
+
}, "clear"), addSection = /* @__PURE__ */ __name(function(e) {
|
|
479
|
+
currentSection = e, sections.push(e);
|
|
480
|
+
}, "addSection"), getSections = /* @__PURE__ */ __name(function() {
|
|
481
|
+
return sections;
|
|
482
|
+
}, "getSections"), getTasks = /* @__PURE__ */ __name(function() {
|
|
483
|
+
let e = compileTasks(), S = 0;
|
|
484
|
+
for (; !e && S < 100;) e = compileTasks(), S++;
|
|
485
|
+
return tasks.push(...rawTasks), tasks;
|
|
486
|
+
}, "getTasks"), addTask = /* @__PURE__ */ __name(function(e, S, C) {
|
|
487
|
+
let w = {
|
|
488
|
+
id: currentTaskId++,
|
|
489
|
+
section: currentSection,
|
|
490
|
+
type: currentSection,
|
|
491
|
+
task: e,
|
|
492
|
+
score: S || 0,
|
|
493
|
+
events: C ? [C] : []
|
|
494
|
+
};
|
|
495
|
+
rawTasks.push(w);
|
|
496
|
+
}, "addTask"), addEvent = /* @__PURE__ */ __name(function(e) {
|
|
497
|
+
rawTasks.find((e) => e.id === currentTaskId - 1).events.push(e);
|
|
498
|
+
}, "addEvent"), addTaskOrg = /* @__PURE__ */ __name(function(e) {
|
|
499
|
+
let S = {
|
|
500
|
+
section: currentSection,
|
|
501
|
+
type: currentSection,
|
|
502
|
+
description: e,
|
|
503
|
+
task: e,
|
|
504
|
+
classes: []
|
|
505
|
+
};
|
|
506
|
+
tasks.push(S);
|
|
507
|
+
}, "addTaskOrg"), compileTasks = /* @__PURE__ */ __name(function() {
|
|
508
|
+
let e = /* @__PURE__ */ __name(function(e) {
|
|
509
|
+
return rawTasks[e].processed;
|
|
510
|
+
}, "compileTask"), C = !0;
|
|
511
|
+
for (let [S, w] of rawTasks.entries()) e(S), C &&= w.processed;
|
|
512
|
+
return C;
|
|
513
|
+
}, "compileTasks"), timelineDb_default = {
|
|
514
|
+
clear: clear2,
|
|
515
|
+
getCommonDb,
|
|
516
|
+
addSection,
|
|
517
|
+
getSections,
|
|
518
|
+
getTasks,
|
|
519
|
+
addTask,
|
|
520
|
+
addTaskOrg,
|
|
521
|
+
addEvent
|
|
522
|
+
}, MAX_SECTIONS = 12, drawRect = /* @__PURE__ */ __name(function(e, S) {
|
|
523
|
+
let C = e.append("rect");
|
|
524
|
+
return C.attr("x", S.x), C.attr("y", S.y), C.attr("fill", S.fill), C.attr("stroke", S.stroke), C.attr("width", S.width), C.attr("height", S.height), C.attr("rx", S.rx), C.attr("ry", S.ry), S.class !== void 0 && C.attr("class", S.class), C;
|
|
525
|
+
}, "drawRect"), drawFace = /* @__PURE__ */ __name(function(e, C) {
|
|
526
|
+
let w = e.append("circle").attr("cx", C.cx).attr("cy", C.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), T = e.append("g");
|
|
527
|
+
T.append("circle").attr("cx", C.cx - 15 / 3).attr("cy", C.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), T.append("circle").attr("cx", C.cx + 15 / 3).attr("cy", C.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
528
|
+
function E(e) {
|
|
529
|
+
let S = arc_default().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
530
|
+
e.append("path").attr("class", "mouth").attr("d", S).attr("transform", "translate(" + C.cx + "," + (C.cy + 2) + ")");
|
|
531
|
+
}
|
|
532
|
+
__name(E, "smile");
|
|
533
|
+
function D(e) {
|
|
534
|
+
let S = arc_default().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(15 / 2).outerRadius(15 / 2.2);
|
|
535
|
+
e.append("path").attr("class", "mouth").attr("d", S).attr("transform", "translate(" + C.cx + "," + (C.cy + 7) + ")");
|
|
536
|
+
}
|
|
537
|
+
__name(D, "sad");
|
|
538
|
+
function O(e) {
|
|
539
|
+
e.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", C.cx - 5).attr("y1", C.cy + 7).attr("x2", C.cx + 5).attr("y2", C.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
540
|
+
}
|
|
541
|
+
return __name(O, "ambivalent"), C.score > 3 ? E(T) : C.score < 3 ? D(T) : O(T), w;
|
|
542
|
+
}, "drawFace"), drawCircle = /* @__PURE__ */ __name(function(e, S) {
|
|
543
|
+
let C = e.append("circle");
|
|
544
|
+
return C.attr("cx", S.cx), C.attr("cy", S.cy), C.attr("class", "actor-" + S.pos), C.attr("fill", S.fill), C.attr("stroke", S.stroke), C.attr("r", S.r), C.class !== void 0 && C.attr("class", C.class), S.title !== void 0 && C.append("title").text(S.title), C;
|
|
545
|
+
}, "drawCircle"), drawText = /* @__PURE__ */ __name(function(e, S) {
|
|
546
|
+
let C = S.text.replace(/<br\s*\/?>/gi, " "), w = e.append("text");
|
|
547
|
+
w.attr("x", S.x), w.attr("y", S.y), w.attr("class", "legend"), w.style("text-anchor", S.anchor), S.class !== void 0 && w.attr("class", S.class);
|
|
548
|
+
let T = w.append("tspan");
|
|
549
|
+
return T.attr("x", S.x + S.textMargin * 2), T.text(C), w;
|
|
550
|
+
}, "drawText"), drawLabel = /* @__PURE__ */ __name(function(e, C) {
|
|
551
|
+
function w(e, S, C, w, T) {
|
|
552
|
+
return e + "," + S + " " + (e + C) + "," + S + " " + (e + C) + "," + (S + w - T) + " " + (e + C - T * 1.2) + "," + (S + w) + " " + e + "," + (S + w);
|
|
553
|
+
}
|
|
554
|
+
__name(w, "genPoints");
|
|
555
|
+
let T = e.append("polygon");
|
|
556
|
+
T.attr("points", w(C.x, C.y, 50, 20, 7)), T.attr("class", "labelBox"), C.y += C.labelMargin, C.x += .5 * C.labelMargin, drawText(e, C);
|
|
557
|
+
}, "drawLabel"), drawSection = /* @__PURE__ */ __name(function(e, S, C) {
|
|
558
|
+
let w = e.append("g"), T = getNoteRect();
|
|
559
|
+
T.x = S.x, T.y = S.y, T.fill = S.fill, T.width = C.width, T.height = C.height, T.class = "journey-section section-type-" + S.num, T.rx = 3, T.ry = 3, drawRect(w, T), _drawTextCandidateFunc(C)(S.text, w, T.x, T.y, T.width, T.height, { class: "journey-section section-type-" + S.num }, C, S.colour);
|
|
560
|
+
}, "drawSection"), taskCount = -1, drawTask = /* @__PURE__ */ __name(function(e, S, C) {
|
|
561
|
+
let w = S.x + C.width / 2, T = e.append("g");
|
|
562
|
+
taskCount++, T.append("line").attr("id", "task" + taskCount).attr("x1", w).attr("y1", S.y).attr("x2", w).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), drawFace(T, {
|
|
563
|
+
cx: w,
|
|
564
|
+
cy: 300 + (5 - S.score) * 30,
|
|
565
|
+
score: S.score
|
|
566
|
+
});
|
|
567
|
+
let E = getNoteRect();
|
|
568
|
+
E.x = S.x, E.y = S.y, E.fill = S.fill, E.width = C.width, E.height = C.height, E.class = "task task-type-" + S.num, E.rx = 3, E.ry = 3, drawRect(T, E), _drawTextCandidateFunc(C)(S.task, T, E.x, E.y, E.width, E.height, { class: "task" }, C, S.colour);
|
|
569
|
+
}, "drawTask"), drawBackgroundRect = /* @__PURE__ */ __name(function(e, S) {
|
|
570
|
+
drawRect(e, {
|
|
571
|
+
x: S.startx,
|
|
572
|
+
y: S.starty,
|
|
573
|
+
width: S.stopx - S.startx,
|
|
574
|
+
height: S.stopy - S.starty,
|
|
575
|
+
fill: S.fill,
|
|
576
|
+
class: "rect"
|
|
577
|
+
}).lower();
|
|
578
|
+
}, "drawBackgroundRect"), getTextObj = /* @__PURE__ */ __name(function() {
|
|
579
|
+
return {
|
|
580
|
+
x: 0,
|
|
581
|
+
y: 0,
|
|
582
|
+
fill: void 0,
|
|
583
|
+
"text-anchor": "start",
|
|
584
|
+
width: 100,
|
|
585
|
+
height: 100,
|
|
586
|
+
textMargin: 0,
|
|
587
|
+
rx: 0,
|
|
588
|
+
ry: 0
|
|
589
|
+
};
|
|
590
|
+
}, "getTextObj"), getNoteRect = /* @__PURE__ */ __name(function() {
|
|
591
|
+
return {
|
|
592
|
+
x: 0,
|
|
593
|
+
y: 0,
|
|
594
|
+
width: 100,
|
|
595
|
+
anchor: "start",
|
|
596
|
+
height: 100,
|
|
597
|
+
rx: 0,
|
|
598
|
+
ry: 0
|
|
599
|
+
};
|
|
600
|
+
}, "getNoteRect"), _drawTextCandidateFunc = /* @__PURE__ */ (function() {
|
|
601
|
+
function e(e, S, C, w, E, D, O, k) {
|
|
602
|
+
T(S.append("text").attr("x", C + E / 2).attr("y", w + D / 2 + 5).style("font-color", k).style("text-anchor", "middle").text(e), O);
|
|
603
|
+
}
|
|
604
|
+
__name(e, "byText");
|
|
605
|
+
function C(e, S, C, w, E, D, O, k, A) {
|
|
606
|
+
let { taskFontSize: j, taskFontFamily: M } = k, N = e.split(/<br\s*\/?>/gi);
|
|
607
|
+
for (let e = 0; e < N.length; e++) {
|
|
608
|
+
let k = e * j - j * (N.length - 1) / 2, P = S.append("text").attr("x", C + E / 2).attr("y", w).attr("fill", A).style("text-anchor", "middle").style("font-size", j).style("font-family", M);
|
|
609
|
+
P.append("tspan").attr("x", C + E / 2).attr("dy", k).text(N[e]), P.attr("y", w + D / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), T(P, O);
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
__name(C, "byTspan");
|
|
613
|
+
function w(e, S, w, E, D, O, k, A) {
|
|
614
|
+
let j = S.append("switch"), M = j.append("foreignObject").attr("x", w).attr("y", E).attr("width", D).attr("height", O).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
615
|
+
M.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(e), C(e, j, w, E, D, O, k, A), T(M, k);
|
|
616
|
+
}
|
|
617
|
+
__name(w, "byFo");
|
|
618
|
+
function T(e, S) {
|
|
619
|
+
for (let C in S) C in S && e.attr(C, S[C]);
|
|
620
|
+
}
|
|
621
|
+
return __name(T, "_setTextAttrs"), function(S) {
|
|
622
|
+
return S.textPlacement === "fo" ? w : S.textPlacement === "old" ? e : C;
|
|
623
|
+
};
|
|
624
|
+
})(), initGraphics = /* @__PURE__ */ __name(function(e) {
|
|
625
|
+
e.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
|
|
626
|
+
}, "initGraphics");
|
|
627
|
+
function wrap(e, S) {
|
|
628
|
+
e.each(function() {
|
|
629
|
+
var e = select_default(this), C = e.text().split(/(\s+|<br>)/).reverse(), T, E = [], D = 1.1, O = e.attr("y"), k = parseFloat(e.attr("dy")), A = e.text(null).append("tspan").attr("x", 0).attr("y", O).attr("dy", k + "em");
|
|
630
|
+
for (let w = 0; w < C.length; w++) T = C[C.length - 1 - w], E.push(T), A.text(E.join(" ").trim()), (A.node().getComputedTextLength() > S || T === "<br>") && (E.pop(), A.text(E.join(" ").trim()), E = T === "<br>" ? [""] : [T], A = e.append("tspan").attr("x", 0).attr("y", O).attr("dy", D + "em").text(T));
|
|
631
|
+
});
|
|
632
|
+
}
|
|
633
|
+
__name(wrap, "wrap");
|
|
634
|
+
var drawNode = /* @__PURE__ */ __name(function(e, S, C, w) {
|
|
635
|
+
let T = C % MAX_SECTIONS - 1, E = e.append("g");
|
|
636
|
+
S.section = T, E.attr("class", (S.class ? S.class + " " : "") + "timeline-node " + ("section-" + T));
|
|
637
|
+
let D = E.append("g"), O = E.append("g"), k = O.append("text").text(S.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, S.width).node().getBBox(), A = w.fontSize?.replace ? w.fontSize.replace("px", "") : w.fontSize;
|
|
638
|
+
return S.height = k.height + A * 1.1 * .5 + S.padding, S.height = Math.max(S.height, S.maxHeight), S.width += 2 * S.padding, O.attr("transform", "translate(" + S.width / 2 + ", " + S.padding / 2 + ")"), defaultBkg(D, S, T, w), S;
|
|
639
|
+
}, "drawNode"), getVirtualNodeHeight = /* @__PURE__ */ __name(function(e, S, C) {
|
|
640
|
+
let w = e.append("g"), T = w.append("text").text(S.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(wrap, S.width).node().getBBox(), E = C.fontSize?.replace ? C.fontSize.replace("px", "") : C.fontSize;
|
|
641
|
+
return w.remove(), T.height + E * 1.1 * .5 + S.padding;
|
|
642
|
+
}, "getVirtualNodeHeight"), defaultBkg = /* @__PURE__ */ __name(function(e, S, C) {
|
|
643
|
+
e.append("path").attr("id", "node-" + S.id).attr("class", "node-bkg node-" + S.type).attr("d", `M0 ${S.height - 5} v${-S.height + 10} q0,-5 5,-5 h${S.width - 10} q5,0 5,5 v${S.height - 5} H0 Z`), e.append("line").attr("class", "node-line-" + C).attr("x1", 0).attr("y1", S.height).attr("x2", S.width).attr("y2", S.height);
|
|
644
|
+
}, "defaultBkg"), svgDraw_default = {
|
|
645
|
+
drawRect,
|
|
646
|
+
drawCircle,
|
|
647
|
+
drawSection,
|
|
648
|
+
drawText,
|
|
649
|
+
drawLabel,
|
|
650
|
+
drawTask,
|
|
651
|
+
drawBackgroundRect,
|
|
652
|
+
getTextObj,
|
|
653
|
+
getNoteRect,
|
|
654
|
+
initGraphics,
|
|
655
|
+
drawNode,
|
|
656
|
+
getVirtualNodeHeight
|
|
657
|
+
}, draw = /* @__PURE__ */ __name(function(S, C, E, D) {
|
|
658
|
+
let O = getConfig2(), k = O.timeline?.leftMargin ?? 50;
|
|
659
|
+
log.debug("timeline", D.db);
|
|
660
|
+
let j = O.securityLevel, M;
|
|
661
|
+
j === "sandbox" && (M = select_default("#i" + C));
|
|
662
|
+
let N = select_default(j === "sandbox" ? M.nodes()[0].contentDocument.body : "body").select("#" + C);
|
|
663
|
+
N.append("g");
|
|
664
|
+
let P = D.db.getTasks(), F = D.db.getCommonDb().getDiagramTitle();
|
|
665
|
+
log.debug("task", P), svgDraw_default.initGraphics(N);
|
|
666
|
+
let I = D.db.getSections();
|
|
667
|
+
log.debug("sections", I);
|
|
668
|
+
let L = 0, R = 0, z = 0, B = 0, V = 50 + k, H = 50;
|
|
669
|
+
B = 50;
|
|
670
|
+
let U = 0, W = !0;
|
|
671
|
+
I.forEach(function(S) {
|
|
672
|
+
let C = {
|
|
673
|
+
number: U,
|
|
674
|
+
descr: S,
|
|
675
|
+
section: U,
|
|
676
|
+
width: 150,
|
|
677
|
+
padding: 20,
|
|
678
|
+
maxHeight: L
|
|
679
|
+
}, w = svgDraw_default.getVirtualNodeHeight(N, C, O);
|
|
680
|
+
log.debug("sectionHeight before draw", w), L = Math.max(L, w + 20);
|
|
681
|
+
});
|
|
682
|
+
let G = 0, K = 0;
|
|
683
|
+
log.debug("tasks.length", P.length);
|
|
684
|
+
for (let [S, C] of P.entries()) {
|
|
685
|
+
let w = {
|
|
686
|
+
number: S,
|
|
687
|
+
descr: C,
|
|
688
|
+
section: C.section,
|
|
689
|
+
width: 150,
|
|
690
|
+
padding: 20,
|
|
691
|
+
maxHeight: R
|
|
692
|
+
}, T = svgDraw_default.getVirtualNodeHeight(N, w, O);
|
|
693
|
+
log.debug("taskHeight before draw", T), R = Math.max(R, T + 20), G = Math.max(G, C.events.length);
|
|
694
|
+
let E = 0;
|
|
695
|
+
for (let e of C.events) {
|
|
696
|
+
let S = {
|
|
697
|
+
descr: e,
|
|
698
|
+
section: C.section,
|
|
699
|
+
number: C.section,
|
|
700
|
+
width: 150,
|
|
701
|
+
padding: 20,
|
|
702
|
+
maxHeight: 50
|
|
703
|
+
};
|
|
704
|
+
E += svgDraw_default.getVirtualNodeHeight(N, S, O);
|
|
705
|
+
}
|
|
706
|
+
C.events.length > 0 && (E += (C.events.length - 1) * 10), K = Math.max(K, E);
|
|
707
|
+
}
|
|
708
|
+
log.debug("maxSectionHeight before draw", L), log.debug("maxTaskHeight before draw", R), I && I.length > 0 ? I.forEach((S) => {
|
|
709
|
+
let C = P.filter((e) => e.section === S), w = {
|
|
710
|
+
number: U,
|
|
711
|
+
descr: S,
|
|
712
|
+
section: U,
|
|
713
|
+
width: 200 * Math.max(C.length, 1) - 50,
|
|
714
|
+
padding: 20,
|
|
715
|
+
maxHeight: L
|
|
716
|
+
};
|
|
717
|
+
log.debug("sectionNode", w);
|
|
718
|
+
let T = N.append("g"), E = svgDraw_default.drawNode(T, w, U, O);
|
|
719
|
+
log.debug("sectionNode output", E), T.attr("transform", `translate(${V}, ${B})`), H += L + 50, C.length > 0 && drawTasks(N, C, U, V, H, R, O, G, K, L, !1), V += 200 * Math.max(C.length, 1), H = B, U++;
|
|
720
|
+
}) : (W = !1, drawTasks(N, P, U, V, H, R, O, G, K, L, !0));
|
|
721
|
+
let q = N.node().getBBox();
|
|
722
|
+
log.debug("bounds", q), F && N.append("text").text(F).attr("x", q.width / 2 - k).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), z = W ? L + R + 150 : R + 100, N.append("g").attr("class", "lineWrapper").append("line").attr("x1", k).attr("y1", z).attr("x2", q.width + 3 * k).attr("y2", z).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), setupGraphViewbox(void 0, N, O.timeline?.padding ?? 50, O.timeline?.useMaxWidth ?? !1);
|
|
723
|
+
}, "draw"), drawTasks = /* @__PURE__ */ __name(function(S, C, w, T, E, D, O, k, A, j, M) {
|
|
724
|
+
for (let k of C) {
|
|
725
|
+
let C = {
|
|
726
|
+
descr: k.task,
|
|
727
|
+
section: w,
|
|
728
|
+
number: w,
|
|
729
|
+
width: 150,
|
|
730
|
+
padding: 20,
|
|
731
|
+
maxHeight: D
|
|
732
|
+
};
|
|
733
|
+
log.debug("taskNode", C);
|
|
734
|
+
let j = S.append("g").attr("class", "taskWrapper"), N = svgDraw_default.drawNode(j, C, w, O).height;
|
|
735
|
+
if (log.debug("taskHeight after draw", N), j.attr("transform", `translate(${T}, ${E})`), D = Math.max(D, N), k.events) {
|
|
736
|
+
let e = S.append("g").attr("class", "lineWrapper"), C = D;
|
|
737
|
+
E += 100, C += drawEvents(S, k.events, w, T, E, O), E -= 100, e.append("line").attr("x1", T + 190 / 2).attr("y1", E + D).attr("x2", T + 190 / 2).attr("y2", E + D + 100 + A + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
738
|
+
}
|
|
739
|
+
T += 200, M && !O.timeline?.disableMulticolor && w++;
|
|
740
|
+
}
|
|
741
|
+
E -= 10;
|
|
742
|
+
}, "drawTasks"), drawEvents = /* @__PURE__ */ __name(function(S, C, w, T, E, D) {
|
|
743
|
+
let O = 0, k = E;
|
|
744
|
+
E += 100;
|
|
745
|
+
for (let k of C) {
|
|
746
|
+
let C = {
|
|
747
|
+
descr: k,
|
|
748
|
+
section: w,
|
|
749
|
+
number: w,
|
|
750
|
+
width: 150,
|
|
751
|
+
padding: 20,
|
|
752
|
+
maxHeight: 50
|
|
753
|
+
};
|
|
754
|
+
log.debug("eventNode", C);
|
|
755
|
+
let A = S.append("g").attr("class", "eventWrapper"), j = svgDraw_default.drawNode(A, C, w, D).height;
|
|
756
|
+
O += j, A.attr("transform", `translate(${T}, ${E})`), E = E + 10 + j;
|
|
757
|
+
}
|
|
758
|
+
return E = k, O;
|
|
759
|
+
}, "drawEvents"), timelineRenderer_default = {
|
|
760
|
+
setConf: /* @__PURE__ */ __name(() => {}, "setConf"),
|
|
761
|
+
draw
|
|
762
|
+
}, genSections = /* @__PURE__ */ __name((e) => {
|
|
763
|
+
let S = "";
|
|
764
|
+
for (let S = 0; S < e.THEME_COLOR_LIMIT; S++) e["lineColor" + S] = e["lineColor" + S] || e["cScaleInv" + S], is_dark_default(e["lineColor" + S]) ? e["lineColor" + S] = lighten_default(e["lineColor" + S], 20) : e["lineColor" + S] = darken_default(e["lineColor" + S], 20);
|
|
765
|
+
for (let C = 0; C < e.THEME_COLOR_LIMIT; C++) {
|
|
766
|
+
let w = "" + (17 - 3 * C);
|
|
767
|
+
S += `
|
|
768
|
+
.section-${C - 1} rect, .section-${C - 1} path, .section-${C - 1} circle, .section-${C - 1} path {
|
|
769
|
+
fill: ${e["cScale" + C]};
|
|
770
|
+
}
|
|
771
|
+
.section-${C - 1} text {
|
|
772
|
+
fill: ${e["cScaleLabel" + C]};
|
|
773
|
+
}
|
|
774
|
+
.node-icon-${C - 1} {
|
|
775
|
+
font-size: 40px;
|
|
776
|
+
color: ${e["cScaleLabel" + C]};
|
|
777
|
+
}
|
|
778
|
+
.section-edge-${C - 1}{
|
|
779
|
+
stroke: ${e["cScale" + C]};
|
|
780
|
+
}
|
|
781
|
+
.edge-depth-${C - 1}{
|
|
782
|
+
stroke-width: ${w};
|
|
783
|
+
}
|
|
784
|
+
.section-${C - 1} line {
|
|
785
|
+
stroke: ${e["cScaleInv" + C]} ;
|
|
786
|
+
stroke-width: 3;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
.lineWrapper line{
|
|
790
|
+
stroke: ${e["cScaleLabel" + C]} ;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
.disabled, .disabled circle, .disabled text {
|
|
794
|
+
fill: lightgray;
|
|
795
|
+
}
|
|
796
|
+
.disabled text {
|
|
797
|
+
fill: #efefef;
|
|
798
|
+
}
|
|
799
|
+
`;
|
|
800
|
+
}
|
|
801
|
+
return S;
|
|
802
|
+
}, "genSections"), diagram = {
|
|
803
|
+
db: timelineDb_exports,
|
|
804
|
+
renderer: timelineRenderer_default,
|
|
805
|
+
parser: timeline_default,
|
|
806
|
+
styles: /* @__PURE__ */ __name((e) => `
|
|
807
|
+
.edge {
|
|
808
|
+
stroke-width: 3;
|
|
809
|
+
}
|
|
810
|
+
${genSections(e)}
|
|
811
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
812
|
+
fill: ${e.git0};
|
|
813
|
+
}
|
|
814
|
+
.section-root text {
|
|
815
|
+
fill: ${e.gitBranchLabel0};
|
|
816
|
+
}
|
|
817
|
+
.icon-container {
|
|
818
|
+
height:100%;
|
|
819
|
+
display: flex;
|
|
820
|
+
justify-content: center;
|
|
821
|
+
align-items: center;
|
|
822
|
+
}
|
|
823
|
+
.edge {
|
|
824
|
+
fill: none;
|
|
825
|
+
}
|
|
826
|
+
.eventWrapper {
|
|
827
|
+
filter: brightness(120%);
|
|
828
|
+
}
|
|
829
|
+
`, "getStyles")
|
|
830
|
+
};
|
|
831
|
+
export { diagram };
|