@kong-ui-public/documentation 0.8.27-pr.2132.c7fba69a4.0 → 0.8.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_basePickBy-DF_KwdVi-HVXnmpaQ.js +151 -0
- package/dist/_baseUniq-DefQzZRT-CTix3bMY.js +614 -0
- package/dist/arc-B4xWw-B6-BGnuysbe.js +83 -0
- package/dist/architecture-I3QFYML2-7TNhn42L-52ENK4nk.js +5 -0
- package/dist/architectureDiagram-UYN6MBPD-Bg70hFZ--BirbHF75.js +4592 -0
- package/dist/astro-Uf8_VxKJ-CZxoSljj.js +16 -0
- package/dist/blockDiagram-ZHA2E4KO-Ylh05M-x-AVJfewxx.js +2247 -0
- package/dist/c-DASdrs7p-DASdrs7p.js +6 -0
- package/dist/c4Diagram-6F5ED5ID-BA0B_CmS-WdUKqC7Z.js +1581 -0
- package/dist/channel-B5uWur4x-BHu9WG2d.js +5 -0
- package/dist/chunk-5HRBRIJM-B7MbirM8-YDLjZbXN.js +24 -0
- package/dist/chunk-7U56Z5CX-CfNu7Hr2-BQzILIp1.js +1213 -0
- package/dist/chunk-ASOPGD6M-CwvgmaRl-BZAjlsEd.js +64 -0
- package/dist/chunk-KFBOBJHC-BB675Bua-GRhe6aGs.js +15 -0
- package/dist/chunk-T2TOU4HS-BgV1wucS-5Sa82KgW.js +1301 -0
- package/dist/chunk-TMUBEWPD-C22TGOO0-Bl2u--DY.js +9 -0
- package/dist/classDiagram-LNE6IOMH-D5SiSVyM-BbV9LB8E.js +14 -0
- package/dist/classDiagram-v2-MQ7JQ4JX-D5SiSVyM-BbV9LB8E.js +14 -0
- package/dist/clone-CmU1hwye-Lu5-ol5h.js +8 -0
- package/dist/csharp-CYWRhZ2R-CYWRhZ2R.js +6 -0
- package/dist/css-D1aVdRIU-D1aVdRIU.js +6 -0
- package/dist/csv-DvCncUGQ-Tno401i9.js +6 -0
- package/dist/cytoscape.esm-DAyNQ0qu-B7WxGuVh.js +16110 -0
- package/dist/dagre-4EVJKHTY-DMTVcQfE-C1Tr0EYY.js +447 -0
- package/dist/diagram-QW4FP2JN-jc61JuWr-DOMFELfS.js +126 -0
- package/dist/diff-XmNrvgM1-XmNrvgM1.js +6 -0
- package/dist/docker-DWH2onkn-DWH2onkn.js +6 -0
- package/dist/documentation.es.js +7 -0
- package/dist/documentation.umd.js +2404 -0
- package/dist/erDiagram-6RL3IURR-1byskxwI-B-wzYh8R.js +937 -0
- package/dist/flowDiagram-7ASYPVHJ-B3phEI8o-CVXSVDmh.js +1484 -0
- package/dist/ganttDiagram-NTVNEXSI-vYnO_T5c-Ccxkb7aQ.js +2491 -0
- package/dist/git-commit-BspYIY3P-VkbIfR3L.js +8 -0
- package/dist/git-rebase--zLBTjUa-DEW2tfKx.js +8 -0
- package/dist/gitGraph-YCYPL57B-DPx67Iu5-BPrLSH0g.js +5 -0
- package/dist/gitGraphDiagram-NRZ2UAAF-BHxB7Gjs-CeRxz6oW.js +712 -0
- package/dist/go-BErP6iv1-BErP6iv1.js +6 -0
- package/dist/graph-_eClejaU-DigE4Bf5.js +247 -0
- package/dist/graphql-DWpQF4JI-C-3VJmtp.js +14 -0
- package/dist/haml-CMN0hQaL-BV5BsZTy.js +10 -0
- package/dist/handlebars-Cc-7fXX5-B9YgDKzT.js +14 -0
- package/dist/haskell-CtlGos0K-CtlGos0K.js +6 -0
- package/dist/html-B0P_v3yU-BojM9zZg.js +10 -0
- package/dist/html-derivative-BJFFAxYV-iD6NAoKm.js +8 -0
- package/dist/http-Dcjm_K1m-1LFSbOE1.js +14 -0
- package/dist/index-B_RqyDIa.js +37033 -0
- package/dist/info-46DW6VJ7-DeIQKKyY-CVPexu5P.js +5 -0
- package/dist/infoDiagram-A4XQUW5V-Cx0WE_JZ-B_t8JIcX.js +22 -0
- package/dist/ini-BUcvsX-U-BUcvsX-U.js +6 -0
- package/dist/init-DjUOC4st-C8Nwz6AJ.js +16 -0
- package/dist/java-B7odJ7Ap-B7odJ7Ap.js +6 -0
- package/dist/javascript-fa8UlHZE-fa8UlHZE.js +6 -0
- package/dist/journeyDiagram-G5WM74LC-CUWL5R5G-DWlpHybW.js +810 -0
- package/dist/json-71t8ZF9g-71t8ZF9g.js +6 -0
- package/dist/json5-Z7F6rA6a-Z7F6rA6a.js +6 -0
- package/dist/jsonc-Dphhs4m2-Dphhs4m2.js +6 -0
- package/dist/jsonl-D9jj92Gg-D9jj92Gg.js +6 -0
- package/dist/jsx-Bkesy5tT-Bkesy5tT.js +6 -0
- package/dist/kanban-definition-QRCXZQQD-r5CdvT2h-BUkOeUnm.js +718 -0
- package/dist/katex-Qk2jHgyB-CF_fuFJb.js +11637 -0
- package/dist/kotlin-DCgZY7Ii-DCgZY7Ii.js +6 -0
- package/dist/latex-CZXk8SiZ-DbjDPp_f.js +11 -0
- package/dist/layout-DfjmtgNY-Bw6LFOXt.js +1321 -0
- package/dist/less-DQA4v-Nm-DQA4v-Nm.js +6 -0
- package/dist/linear-BGmbGdcc-C--Nxp9Q.js +423 -0
- package/dist/liquid-CvufO3kO-D90bBAdm.js +14 -0
- package/dist/lua-BVfhNLDr-DAa90qLN.js +8 -0
- package/dist/make-BjuHP00g-BjuHP00g.js +6 -0
- package/dist/markdown-B6guhLWd-B6guhLWd.js +6 -0
- package/dist/material-theme-lighter-BUBw43Yz-BUBw43Yz.js +4 -0
- package/dist/material-theme-palenight-C1RVm8K1-C1RVm8K1.js +4 -0
- package/dist/mdc-Bq810vct-Dr8CpN8f.js +12 -0
- package/dist/mdx-DIoECIFU-DIoECIFU.js +6 -0
- package/dist/mermaid-BZ7WHNIe-BZ7WHNIe.js +6 -0
- package/dist/mermaid-parser.core-DxgZuQQq-uP-grJig.js +12400 -0
- package/dist/mindmap-definition-GWI6TPTV-DX5GL05M-B8Eu6UCe.js +3219 -0
- package/dist/nginx-Can2eAjw-DKMoypYC.js +8 -0
- package/dist/objective-c-BGg9R27G-BGg9R27G.js +6 -0
- package/dist/ordinal-DfAQgscy-BEJTu10r.js +61 -0
- package/dist/packet-W2GHVCYJ-CI_-E3C--D1lo2o0i.js +5 -0
- package/dist/pascal-l2bqd7Dz-l2bqd7Dz.js +6 -0
- package/dist/perl-DaMQyPwp-Cxx4wmV7.js +16 -0
- package/dist/php-BL3EfPBi-BZu5YwDX.js +18 -0
- package/dist/pie-BEWT4RHE-B52QOymI-BoBX6ZnD.js +5 -0
- package/dist/pieDiagram-YF2LJOPJ-IHpbN7M9-BBPOh3m7.js +161 -0
- package/dist/plsql-oVq_K_wH-oVq_K_wH.js +6 -0
- package/dist/postcss-BZ3MNRIJ-BZ3MNRIJ.js +6 -0
- package/dist/powershell-Diwyv8Eh-Diwyv8Eh.js +6 -0
- package/dist/proto-o9HLmF90-o9HLmF90.js +6 -0
- package/dist/pug-HKe4Luo3-BYb0El_4.js +12 -0
- package/dist/python-xYxLFJY--xYxLFJY-.js +6 -0
- package/dist/quadrantDiagram-OS5C2QUG-DyfTAjs0-CvYOplDG.js +1024 -0
- package/dist/r-F-9I-ITZ-F-9I-ITZ.js +6 -0
- package/dist/reg-CMUdAgIP-CMUdAgIP.js +6 -0
- package/dist/requirementDiagram-MIRIMTAZ-DpFia6HM-BNS6fGqi.js +768 -0
- package/dist/rst-B8JEEtLI-Dyxh6LOj.js +22 -0
- package/dist/ruby-FDlfLkNa-nf7VLvCK.js +50 -0
- package/dist/rust-Pc7DCsZD-Pc7DCsZD.js +6 -0
- package/dist/sankeyDiagram-Y46BX6SQ-a6p3ZaX0-Cwasp0IA.js +805 -0
- package/dist/sass-iCyS6eP9-iCyS6eP9.js +6 -0
- package/dist/scss-DhHc4lxB-D1lMETuy.js +8 -0
- package/dist/sequenceDiagram-G6AWOVSC-DlZ7du4U-z70BwBnZ.js +2274 -0
- package/dist/shellscript-Dn0-btNd-Dn0-btNd.js +6 -0
- package/dist/shellsession-8OLo3sB6-DD6AdPYk.js +8 -0
- package/dist/splunk-CTqDjQdo-CTqDjQdo.js +6 -0
- package/dist/sql-DCkt643--DCkt643-.js +6 -0
- package/dist/ssh-config-DHHGll-v-DHHGll-v.js +6 -0
- package/dist/stateDiagram-MAYHULR4-tK3TdntS-PielUO6n.js +268 -0
- package/dist/stateDiagram-v2-4JROLMXI-Ib4sJL3A--uDyhxdT.js +14 -0
- package/dist/style.css +1 -0
- package/dist/stylus-n_9f0QQ5-n_9f0QQ5.js +6 -0
- package/dist/svelte-01qw6Rxm-Cjp5Srko.js +14 -0
- package/dist/swift-BAWqNR8A-BAWqNR8A.js +6 -0
- package/dist/timeline-definition-U7ZMHBDA-Db9d-9_E-kHwjVd5T.js +804 -0
- package/dist/toml-CQSfOn0e-CQSfOn0e.js +6 -0
- package/dist/tsx-DiGsgWT8-DiGsgWT8.js +6 -0
- package/dist/twig-DxrNSc26-BIWbKTFO.js +18 -0
- package/dist/types/components/DocumentationContent.vue.d.ts +177 -0
- package/dist/types/components/DocumentationContent.vue.d.ts.map +1 -0
- package/dist/types/components/DocumentationDisplay.vue.d.ts +323 -0
- package/dist/types/components/DocumentationDisplay.vue.d.ts.map +1 -0
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts +30 -0
- package/dist/types/components/DocumentationPageEmptyState.vue.d.ts.map +1 -0
- package/dist/types/components/ProductDocumentModal.vue.d.ts +71 -0
- package/dist/types/components/ProductDocumentModal.vue.d.ts.map +1 -0
- package/dist/types/composables/index.d.ts +6 -0
- package/dist/types/composables/index.d.ts.map +1 -0
- package/dist/types/composables/useI18n.d.ts +9 -0
- package/dist/types/composables/useI18n.d.ts.map +1 -0
- package/dist/types/external-links.d.ts +5 -0
- package/dist/types/external-links.d.ts.map +1 -0
- package/dist/types/helpers.d.ts +8 -0
- package/dist/types/helpers.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types/document-list.d.ts +28 -0
- package/dist/types/types/document-list.d.ts.map +1 -0
- package/dist/types/types/document-modal.d.ts +8 -0
- package/dist/types/types/document-modal.d.ts.map +1 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/index.d.ts.map +1 -0
- package/dist/typescript-buWNZFwO-buWNZFwO.js +6 -0
- package/dist/v-wa8Orrdd-wa8Orrdd.js +6 -0
- package/dist/vb-E2_-jk4M-E2_-jk4M.js +6 -0
- package/dist/viml-B-zWOd7Z-B-zWOd7Z.js +6 -0
- package/dist/vue-DdqTpW8B-BrYVXV7A.js +31 -0
- package/dist/vue-html-B9t4RWro-D1UeMTSX.js +10 -0
- package/dist/wasm-Bv5f0gKv-Bv5f0gKv.js +6 -0
- package/dist/wgsl-DnPoPGDU-DnPoPGDU.js +6 -0
- package/dist/xml-ChBsf5uy-0Ovnixsj.js +8 -0
- package/dist/xsl-BefjlXrd-CZ7IlB9K.js +8 -0
- package/dist/xychartDiagram-6QU3TZC5-L2EgHpF7-Dbx9eZ7M.js +1304 -0
- package/dist/yaml-Bbg74JKr-Bbg74JKr.js +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,804 @@
|
|
|
1
|
+
import { _ as r, bk as mt, bl as xt, ar as bt, af as q, g as kt, l as S, bm as _t, bn as vt, bo as wt, bp as St } from "./index-B_RqyDIa.js";
|
|
2
|
+
import { h as et } from "./arc-B4xWw-B6-BGnuysbe.js";
|
|
3
|
+
var J = function() {
|
|
4
|
+
var n = /* @__PURE__ */ r(function(x, i, c, d) {
|
|
5
|
+
for (c = c || {}, d = x.length; d--; c[x[d]] = i) ;
|
|
6
|
+
return c;
|
|
7
|
+
}, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], a = [1, 10], s = [1, 11], h = [1, 12], o = [1, 13], p = [1, 16], g = [1, 17], f = {
|
|
8
|
+
trace: /* @__PURE__ */ r(function() {
|
|
9
|
+
}, "trace"),
|
|
10
|
+
yy: {},
|
|
11
|
+
symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
|
|
12
|
+
terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
|
|
13
|
+
productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
|
|
14
|
+
performAction: /* @__PURE__ */ r(function(x, i, c, d, u, l, b) {
|
|
15
|
+
var k = l.length - 1;
|
|
16
|
+
switch (u) {
|
|
17
|
+
case 1:
|
|
18
|
+
return l[k - 1];
|
|
19
|
+
case 2:
|
|
20
|
+
this.$ = [];
|
|
21
|
+
break;
|
|
22
|
+
case 3:
|
|
23
|
+
l[k - 1].push(l[k]), this.$ = l[k - 1];
|
|
24
|
+
break;
|
|
25
|
+
case 4:
|
|
26
|
+
case 5:
|
|
27
|
+
this.$ = l[k];
|
|
28
|
+
break;
|
|
29
|
+
case 6:
|
|
30
|
+
case 7:
|
|
31
|
+
this.$ = [];
|
|
32
|
+
break;
|
|
33
|
+
case 8:
|
|
34
|
+
d.getCommonDb().setDiagramTitle(l[k].substr(6)), this.$ = l[k].substr(6);
|
|
35
|
+
break;
|
|
36
|
+
case 9:
|
|
37
|
+
this.$ = l[k].trim(), d.getCommonDb().setAccTitle(this.$);
|
|
38
|
+
break;
|
|
39
|
+
case 10:
|
|
40
|
+
case 11:
|
|
41
|
+
this.$ = l[k].trim(), d.getCommonDb().setAccDescription(this.$);
|
|
42
|
+
break;
|
|
43
|
+
case 12:
|
|
44
|
+
d.addSection(l[k].substr(8)), this.$ = l[k].substr(8);
|
|
45
|
+
break;
|
|
46
|
+
case 15:
|
|
47
|
+
d.addTask(l[k], 0, ""), this.$ = l[k];
|
|
48
|
+
break;
|
|
49
|
+
case 16:
|
|
50
|
+
d.addEvent(l[k].substr(2)), this.$ = l[k];
|
|
51
|
+
break;
|
|
52
|
+
}
|
|
53
|
+
}, "anonymous"),
|
|
54
|
+
table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: a, 14: s, 16: h, 17: o, 18: 14, 19: 15, 20: p, 21: g }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: a, 14: s, 16: h, 17: o, 18: 14, 19: 15, 20: p, 21: g }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
|
|
55
|
+
defaultActions: {},
|
|
56
|
+
parseError: /* @__PURE__ */ r(function(x, i) {
|
|
57
|
+
if (i.recoverable)
|
|
58
|
+
this.trace(x);
|
|
59
|
+
else {
|
|
60
|
+
var c = new Error(x);
|
|
61
|
+
throw c.hash = i, c;
|
|
62
|
+
}
|
|
63
|
+
}, "parseError"),
|
|
64
|
+
parse: /* @__PURE__ */ r(function(x) {
|
|
65
|
+
var i = this, c = [0], d = [], u = [null], l = [], b = this.table, k = "", $ = 0, N = 0, O = 2, L = 1, j = l.slice.call(arguments, 1), m = Object.create(this.lexer), v = { yy: {} };
|
|
66
|
+
for (var I in this.yy)
|
|
67
|
+
Object.prototype.hasOwnProperty.call(this.yy, I) && (v.yy[I] = this.yy[I]);
|
|
68
|
+
m.setInput(x, v.yy), v.yy.lexer = m, v.yy.parser = this, typeof m.yylloc > "u" && (m.yylloc = {});
|
|
69
|
+
var M = m.yylloc;
|
|
70
|
+
l.push(M);
|
|
71
|
+
var C = m.options && m.options.ranges;
|
|
72
|
+
typeof v.yy.parseError == "function" ? this.parseError = v.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
|
|
73
|
+
function B(E) {
|
|
74
|
+
c.length = c.length - 2 * E, u.length = u.length - E, l.length = l.length - E;
|
|
75
|
+
}
|
|
76
|
+
r(B, "popStack");
|
|
77
|
+
function F() {
|
|
78
|
+
var E;
|
|
79
|
+
return E = d.pop() || m.lex() || L, typeof E != "number" && (E instanceof Array && (d = E, E = d.pop()), E = i.symbols_[E] || E), E;
|
|
80
|
+
}
|
|
81
|
+
r(F, "lex");
|
|
82
|
+
for (var w, P, T, Z, R = {}, W, A, tt, V; ; ) {
|
|
83
|
+
if (P = c[c.length - 1], this.defaultActions[P] ? T = this.defaultActions[P] : ((w === null || typeof w > "u") && (w = F()), T = b[P] && b[P][w]), typeof T > "u" || !T.length || !T[0]) {
|
|
84
|
+
var G = "";
|
|
85
|
+
V = [];
|
|
86
|
+
for (W in b[P])
|
|
87
|
+
this.terminals_[W] && W > O && V.push("'" + this.terminals_[W] + "'");
|
|
88
|
+
m.showPosition ? G = "Parse error on line " + ($ + 1) + `:
|
|
89
|
+
` + m.showPosition() + `
|
|
90
|
+
Expecting ` + V.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : G = "Parse error on line " + ($ + 1) + ": Unexpected " + (w == L ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(G, {
|
|
91
|
+
text: m.match,
|
|
92
|
+
token: this.terminals_[w] || w,
|
|
93
|
+
line: m.yylineno,
|
|
94
|
+
loc: M,
|
|
95
|
+
expected: V
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
if (T[0] instanceof Array && T.length > 1)
|
|
99
|
+
throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + w);
|
|
100
|
+
switch (T[0]) {
|
|
101
|
+
case 1:
|
|
102
|
+
c.push(w), u.push(m.yytext), l.push(m.yylloc), c.push(T[1]), w = null, N = m.yyleng, k = m.yytext, $ = m.yylineno, M = m.yylloc;
|
|
103
|
+
break;
|
|
104
|
+
case 2:
|
|
105
|
+
if (A = this.productions_[T[1]][1], R.$ = u[u.length - A], R._$ = {
|
|
106
|
+
first_line: l[l.length - (A || 1)].first_line,
|
|
107
|
+
last_line: l[l.length - 1].last_line,
|
|
108
|
+
first_column: l[l.length - (A || 1)].first_column,
|
|
109
|
+
last_column: l[l.length - 1].last_column
|
|
110
|
+
}, C && (R._$.range = [
|
|
111
|
+
l[l.length - (A || 1)].range[0],
|
|
112
|
+
l[l.length - 1].range[1]
|
|
113
|
+
]), Z = this.performAction.apply(R, [
|
|
114
|
+
k,
|
|
115
|
+
N,
|
|
116
|
+
$,
|
|
117
|
+
v.yy,
|
|
118
|
+
T[1],
|
|
119
|
+
u,
|
|
120
|
+
l
|
|
121
|
+
].concat(j)), typeof Z < "u")
|
|
122
|
+
return Z;
|
|
123
|
+
A && (c = c.slice(0, -1 * A * 2), u = u.slice(0, -1 * A), l = l.slice(0, -1 * A)), c.push(this.productions_[T[1]][0]), u.push(R.$), l.push(R._$), tt = b[c[c.length - 2]][c[c.length - 1]], c.push(tt);
|
|
124
|
+
break;
|
|
125
|
+
case 3:
|
|
126
|
+
return !0;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return !0;
|
|
130
|
+
}, "parse")
|
|
131
|
+
}, y = /* @__PURE__ */ function() {
|
|
132
|
+
var x = {
|
|
133
|
+
EOF: 1,
|
|
134
|
+
parseError: /* @__PURE__ */ r(function(i, c) {
|
|
135
|
+
if (this.yy.parser)
|
|
136
|
+
this.yy.parser.parseError(i, c);
|
|
137
|
+
else
|
|
138
|
+
throw new Error(i);
|
|
139
|
+
}, "parseError"),
|
|
140
|
+
// resets the lexer, sets new input
|
|
141
|
+
setInput: /* @__PURE__ */ r(function(i, c) {
|
|
142
|
+
return this.yy = c || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
|
|
143
|
+
first_line: 1,
|
|
144
|
+
first_column: 0,
|
|
145
|
+
last_line: 1,
|
|
146
|
+
last_column: 0
|
|
147
|
+
}, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
|
|
148
|
+
}, "setInput"),
|
|
149
|
+
// consumes and returns one char from the input
|
|
150
|
+
input: /* @__PURE__ */ r(function() {
|
|
151
|
+
var i = this._input[0];
|
|
152
|
+
this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
|
|
153
|
+
var c = i.match(/(?:\r\n?|\n).*/g);
|
|
154
|
+
return c ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
|
|
155
|
+
}, "input"),
|
|
156
|
+
// unshifts one char (or a string) into the input
|
|
157
|
+
unput: /* @__PURE__ */ r(function(i) {
|
|
158
|
+
var c = i.length, d = i.split(/(?:\r\n?|\n)/g);
|
|
159
|
+
this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - c), this.offset -= c;
|
|
160
|
+
var u = this.match.split(/(?:\r\n?|\n)/g);
|
|
161
|
+
this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), d.length - 1 && (this.yylineno -= d.length - 1);
|
|
162
|
+
var l = this.yylloc.range;
|
|
163
|
+
return this.yylloc = {
|
|
164
|
+
first_line: this.yylloc.first_line,
|
|
165
|
+
last_line: this.yylineno + 1,
|
|
166
|
+
first_column: this.yylloc.first_column,
|
|
167
|
+
last_column: d ? (d.length === u.length ? this.yylloc.first_column : 0) + u[u.length - d.length].length - d[0].length : this.yylloc.first_column - c
|
|
168
|
+
}, this.options.ranges && (this.yylloc.range = [l[0], l[0] + this.yyleng - c]), this.yyleng = this.yytext.length, this;
|
|
169
|
+
}, "unput"),
|
|
170
|
+
// When called from action, caches matched text and appends it on next action
|
|
171
|
+
more: /* @__PURE__ */ r(function() {
|
|
172
|
+
return this._more = !0, this;
|
|
173
|
+
}, "more"),
|
|
174
|
+
// 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.
|
|
175
|
+
reject: /* @__PURE__ */ r(function() {
|
|
176
|
+
if (this.options.backtrack_lexer)
|
|
177
|
+
this._backtrack = !0;
|
|
178
|
+
else
|
|
179
|
+
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).
|
|
180
|
+
` + this.showPosition(), {
|
|
181
|
+
text: "",
|
|
182
|
+
token: null,
|
|
183
|
+
line: this.yylineno
|
|
184
|
+
});
|
|
185
|
+
return this;
|
|
186
|
+
}, "reject"),
|
|
187
|
+
// retain first n characters of the match
|
|
188
|
+
less: /* @__PURE__ */ r(function(i) {
|
|
189
|
+
this.unput(this.match.slice(i));
|
|
190
|
+
}, "less"),
|
|
191
|
+
// displays already matched input, i.e. for error messages
|
|
192
|
+
pastInput: /* @__PURE__ */ r(function() {
|
|
193
|
+
var i = this.matched.substr(0, this.matched.length - this.match.length);
|
|
194
|
+
return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
|
|
195
|
+
}, "pastInput"),
|
|
196
|
+
// displays upcoming input, i.e. for error messages
|
|
197
|
+
upcomingInput: /* @__PURE__ */ r(function() {
|
|
198
|
+
var i = this.match;
|
|
199
|
+
return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
|
|
200
|
+
}, "upcomingInput"),
|
|
201
|
+
// displays the character position where the lexing error occurred, i.e. for error messages
|
|
202
|
+
showPosition: /* @__PURE__ */ r(function() {
|
|
203
|
+
var i = this.pastInput(), c = new Array(i.length + 1).join("-");
|
|
204
|
+
return i + this.upcomingInput() + `
|
|
205
|
+
` + c + "^";
|
|
206
|
+
}, "showPosition"),
|
|
207
|
+
// test the lexed token: return FALSE when not a match, otherwise return token
|
|
208
|
+
test_match: /* @__PURE__ */ r(function(i, c) {
|
|
209
|
+
var d, u, l;
|
|
210
|
+
if (this.options.backtrack_lexer && (l = {
|
|
211
|
+
yylineno: this.yylineno,
|
|
212
|
+
yylloc: {
|
|
213
|
+
first_line: this.yylloc.first_line,
|
|
214
|
+
last_line: this.last_line,
|
|
215
|
+
first_column: this.yylloc.first_column,
|
|
216
|
+
last_column: this.yylloc.last_column
|
|
217
|
+
},
|
|
218
|
+
yytext: this.yytext,
|
|
219
|
+
match: this.match,
|
|
220
|
+
matches: this.matches,
|
|
221
|
+
matched: this.matched,
|
|
222
|
+
yyleng: this.yyleng,
|
|
223
|
+
offset: this.offset,
|
|
224
|
+
_more: this._more,
|
|
225
|
+
_input: this._input,
|
|
226
|
+
yy: this.yy,
|
|
227
|
+
conditionStack: this.conditionStack.slice(0),
|
|
228
|
+
done: this.done
|
|
229
|
+
}, this.options.ranges && (l.yylloc.range = this.yylloc.range.slice(0))), u = i[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
|
|
230
|
+
first_line: this.yylloc.last_line,
|
|
231
|
+
last_line: this.yylineno + 1,
|
|
232
|
+
first_column: this.yylloc.last_column,
|
|
233
|
+
last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
|
|
234
|
+
}, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], d = this.performAction.call(this, this.yy, this, c, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), d)
|
|
235
|
+
return d;
|
|
236
|
+
if (this._backtrack) {
|
|
237
|
+
for (var b in l)
|
|
238
|
+
this[b] = l[b];
|
|
239
|
+
return !1;
|
|
240
|
+
}
|
|
241
|
+
return !1;
|
|
242
|
+
}, "test_match"),
|
|
243
|
+
// return next match in input
|
|
244
|
+
next: /* @__PURE__ */ r(function() {
|
|
245
|
+
if (this.done)
|
|
246
|
+
return this.EOF;
|
|
247
|
+
this._input || (this.done = !0);
|
|
248
|
+
var i, c, d, u;
|
|
249
|
+
this._more || (this.yytext = "", this.match = "");
|
|
250
|
+
for (var l = this._currentRules(), b = 0; b < l.length; b++)
|
|
251
|
+
if (d = this._input.match(this.rules[l[b]]), d && (!c || d[0].length > c[0].length)) {
|
|
252
|
+
if (c = d, u = b, this.options.backtrack_lexer) {
|
|
253
|
+
if (i = this.test_match(d, l[b]), i !== !1)
|
|
254
|
+
return i;
|
|
255
|
+
if (this._backtrack) {
|
|
256
|
+
c = !1;
|
|
257
|
+
continue;
|
|
258
|
+
} else
|
|
259
|
+
return !1;
|
|
260
|
+
} else if (!this.options.flex)
|
|
261
|
+
break;
|
|
262
|
+
}
|
|
263
|
+
return c ? (i = this.test_match(c, l[u]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
|
|
264
|
+
` + this.showPosition(), {
|
|
265
|
+
text: "",
|
|
266
|
+
token: null,
|
|
267
|
+
line: this.yylineno
|
|
268
|
+
});
|
|
269
|
+
}, "next"),
|
|
270
|
+
// return next match that has a token
|
|
271
|
+
lex: /* @__PURE__ */ r(function() {
|
|
272
|
+
var i = this.next();
|
|
273
|
+
return i || this.lex();
|
|
274
|
+
}, "lex"),
|
|
275
|
+
// activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
|
|
276
|
+
begin: /* @__PURE__ */ r(function(i) {
|
|
277
|
+
this.conditionStack.push(i);
|
|
278
|
+
}, "begin"),
|
|
279
|
+
// pop the previously active lexer condition state off the condition stack
|
|
280
|
+
popState: /* @__PURE__ */ r(function() {
|
|
281
|
+
var i = this.conditionStack.length - 1;
|
|
282
|
+
return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
|
|
283
|
+
}, "popState"),
|
|
284
|
+
// produce the lexer rule set which is active for the currently active lexer condition state
|
|
285
|
+
_currentRules: /* @__PURE__ */ r(function() {
|
|
286
|
+
return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
|
|
287
|
+
}, "_currentRules"),
|
|
288
|
+
// return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
|
|
289
|
+
topState: /* @__PURE__ */ r(function(i) {
|
|
290
|
+
return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
|
|
291
|
+
}, "topState"),
|
|
292
|
+
// alias for begin(condition)
|
|
293
|
+
pushState: /* @__PURE__ */ r(function(i) {
|
|
294
|
+
this.begin(i);
|
|
295
|
+
}, "pushState"),
|
|
296
|
+
// return the number of states currently on the stack
|
|
297
|
+
stateStackSize: /* @__PURE__ */ r(function() {
|
|
298
|
+
return this.conditionStack.length;
|
|
299
|
+
}, "stateStackSize"),
|
|
300
|
+
options: { "case-insensitive": !0 },
|
|
301
|
+
performAction: /* @__PURE__ */ r(function(i, c, d, u) {
|
|
302
|
+
switch (d) {
|
|
303
|
+
case 0:
|
|
304
|
+
break;
|
|
305
|
+
case 1:
|
|
306
|
+
break;
|
|
307
|
+
case 2:
|
|
308
|
+
return 10;
|
|
309
|
+
case 3:
|
|
310
|
+
break;
|
|
311
|
+
case 4:
|
|
312
|
+
break;
|
|
313
|
+
case 5:
|
|
314
|
+
return 4;
|
|
315
|
+
case 6:
|
|
316
|
+
return 11;
|
|
317
|
+
case 7:
|
|
318
|
+
return this.begin("acc_title"), 12;
|
|
319
|
+
case 8:
|
|
320
|
+
return this.popState(), "acc_title_value";
|
|
321
|
+
case 9:
|
|
322
|
+
return this.begin("acc_descr"), 14;
|
|
323
|
+
case 10:
|
|
324
|
+
return this.popState(), "acc_descr_value";
|
|
325
|
+
case 11:
|
|
326
|
+
this.begin("acc_descr_multiline");
|
|
327
|
+
break;
|
|
328
|
+
case 12:
|
|
329
|
+
this.popState();
|
|
330
|
+
break;
|
|
331
|
+
case 13:
|
|
332
|
+
return "acc_descr_multiline_value";
|
|
333
|
+
case 14:
|
|
334
|
+
return 17;
|
|
335
|
+
case 15:
|
|
336
|
+
return 21;
|
|
337
|
+
case 16:
|
|
338
|
+
return 20;
|
|
339
|
+
case 17:
|
|
340
|
+
return 6;
|
|
341
|
+
case 18:
|
|
342
|
+
return "INVALID";
|
|
343
|
+
}
|
|
344
|
+
}, "anonymous"),
|
|
345
|
+
rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s[^:\n]+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
|
|
346
|
+
conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
|
|
347
|
+
};
|
|
348
|
+
return x;
|
|
349
|
+
}();
|
|
350
|
+
f.lexer = y;
|
|
351
|
+
function _() {
|
|
352
|
+
this.yy = {};
|
|
353
|
+
}
|
|
354
|
+
return r(_, "Parser"), _.prototype = f, f.Parser = _, new _();
|
|
355
|
+
}();
|
|
356
|
+
J.parser = J;
|
|
357
|
+
var $t = J, rt = {};
|
|
358
|
+
mt(rt, {
|
|
359
|
+
addEvent: () => pt,
|
|
360
|
+
addSection: () => lt,
|
|
361
|
+
addTask: () => ut,
|
|
362
|
+
addTaskOrg: () => yt,
|
|
363
|
+
clear: () => ct,
|
|
364
|
+
default: () => Et,
|
|
365
|
+
getCommonDb: () => ot,
|
|
366
|
+
getSections: () => ht,
|
|
367
|
+
getTasks: () => dt
|
|
368
|
+
});
|
|
369
|
+
var D = "", at = 0, X = [], U = [], z = [], ot = /* @__PURE__ */ r(() => xt, "getCommonDb"), ct = /* @__PURE__ */ r(function() {
|
|
370
|
+
X.length = 0, U.length = 0, D = "", z.length = 0, bt();
|
|
371
|
+
}, "clear"), lt = /* @__PURE__ */ r(function(n) {
|
|
372
|
+
D = n, X.push(n);
|
|
373
|
+
}, "addSection"), ht = /* @__PURE__ */ r(function() {
|
|
374
|
+
return X;
|
|
375
|
+
}, "getSections"), dt = /* @__PURE__ */ r(function() {
|
|
376
|
+
let n = nt();
|
|
377
|
+
const t = 100;
|
|
378
|
+
let e = 0;
|
|
379
|
+
for (; !n && e < t; )
|
|
380
|
+
n = nt(), e++;
|
|
381
|
+
return U.push(...z), U;
|
|
382
|
+
}, "getTasks"), ut = /* @__PURE__ */ r(function(n, t, e) {
|
|
383
|
+
const a = {
|
|
384
|
+
id: at++,
|
|
385
|
+
section: D,
|
|
386
|
+
type: D,
|
|
387
|
+
task: n,
|
|
388
|
+
score: t || 0,
|
|
389
|
+
//if event is defined, then add it the events array
|
|
390
|
+
events: e ? [e] : []
|
|
391
|
+
};
|
|
392
|
+
z.push(a);
|
|
393
|
+
}, "addTask"), pt = /* @__PURE__ */ r(function(n) {
|
|
394
|
+
z.find((t) => t.id === at - 1).events.push(n);
|
|
395
|
+
}, "addEvent"), yt = /* @__PURE__ */ r(function(n) {
|
|
396
|
+
const t = {
|
|
397
|
+
section: D,
|
|
398
|
+
type: D,
|
|
399
|
+
description: n,
|
|
400
|
+
task: n,
|
|
401
|
+
classes: []
|
|
402
|
+
};
|
|
403
|
+
U.push(t);
|
|
404
|
+
}, "addTaskOrg"), nt = /* @__PURE__ */ r(function() {
|
|
405
|
+
const n = /* @__PURE__ */ r(function(e) {
|
|
406
|
+
return z[e].processed;
|
|
407
|
+
}, "compileTask");
|
|
408
|
+
let t = !0;
|
|
409
|
+
for (const [e, a] of z.entries())
|
|
410
|
+
n(e), t = t && a.processed;
|
|
411
|
+
return t;
|
|
412
|
+
}, "compileTasks"), Et = {
|
|
413
|
+
clear: ct,
|
|
414
|
+
getCommonDb: ot,
|
|
415
|
+
addSection: lt,
|
|
416
|
+
getSections: ht,
|
|
417
|
+
getTasks: dt,
|
|
418
|
+
addTask: ut,
|
|
419
|
+
addTaskOrg: yt,
|
|
420
|
+
addEvent: pt
|
|
421
|
+
}, Tt = 12, Y = /* @__PURE__ */ r(function(n, t) {
|
|
422
|
+
const e = n.append("rect");
|
|
423
|
+
return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
|
|
424
|
+
}, "drawRect"), It = /* @__PURE__ */ r(function(n, t) {
|
|
425
|
+
const e = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), a = n.append("g");
|
|
426
|
+
a.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), a.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
|
|
427
|
+
function s(p) {
|
|
428
|
+
const g = et().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
429
|
+
p.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
|
|
430
|
+
}
|
|
431
|
+
r(s, "smile");
|
|
432
|
+
function h(p) {
|
|
433
|
+
const g = et().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
|
|
434
|
+
p.append("path").attr("class", "mouth").attr("d", g).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
|
|
435
|
+
}
|
|
436
|
+
r(h, "sad");
|
|
437
|
+
function o(p) {
|
|
438
|
+
p.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
|
|
439
|
+
}
|
|
440
|
+
return r(o, "ambivalent"), t.score > 3 ? s(a) : t.score < 3 ? h(a) : o(a), e;
|
|
441
|
+
}, "drawFace"), Mt = /* @__PURE__ */ r(function(n, t) {
|
|
442
|
+
const e = n.append("circle");
|
|
443
|
+
return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
|
|
444
|
+
}, "drawCircle"), gt = /* @__PURE__ */ r(function(n, t) {
|
|
445
|
+
const e = t.text.replace(/<br\s*\/?>/gi, " "), a = n.append("text");
|
|
446
|
+
a.attr("x", t.x), a.attr("y", t.y), a.attr("class", "legend"), a.style("text-anchor", t.anchor), t.class !== void 0 && a.attr("class", t.class);
|
|
447
|
+
const s = a.append("tspan");
|
|
448
|
+
return s.attr("x", t.x + t.textMargin * 2), s.text(e), a;
|
|
449
|
+
}, "drawText"), At = /* @__PURE__ */ r(function(n, t) {
|
|
450
|
+
function e(s, h, o, p, g) {
|
|
451
|
+
return s + "," + h + " " + (s + o) + "," + h + " " + (s + o) + "," + (h + p - g) + " " + (s + o - g * 1.2) + "," + (h + p) + " " + s + "," + (h + p);
|
|
452
|
+
}
|
|
453
|
+
r(e, "genPoints");
|
|
454
|
+
const a = n.append("polygon");
|
|
455
|
+
a.attr("points", e(t.x, t.y, 50, 20, 7)), a.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, gt(n, t);
|
|
456
|
+
}, "drawLabel"), Lt = /* @__PURE__ */ r(function(n, t, e) {
|
|
457
|
+
const a = n.append("g"), s = K();
|
|
458
|
+
s.x = t.x, s.y = t.y, s.fill = t.fill, s.width = e.width, s.height = e.height, s.class = "journey-section section-type-" + t.num, s.rx = 3, s.ry = 3, Y(a, s), ft(e)(
|
|
459
|
+
t.text,
|
|
460
|
+
a,
|
|
461
|
+
s.x,
|
|
462
|
+
s.y,
|
|
463
|
+
s.width,
|
|
464
|
+
s.height,
|
|
465
|
+
{ class: "journey-section section-type-" + t.num },
|
|
466
|
+
e,
|
|
467
|
+
t.colour
|
|
468
|
+
);
|
|
469
|
+
}, "drawSection"), it = -1, Pt = /* @__PURE__ */ r(function(n, t, e) {
|
|
470
|
+
const a = t.x + e.width / 2, s = n.append("g");
|
|
471
|
+
it++;
|
|
472
|
+
const h = 300 + 5 * 30;
|
|
473
|
+
s.append("line").attr("id", "task" + it).attr("x1", a).attr("y1", t.y).attr("x2", a).attr("y2", h).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), It(s, {
|
|
474
|
+
cx: a,
|
|
475
|
+
cy: 300 + (5 - t.score) * 30,
|
|
476
|
+
score: t.score
|
|
477
|
+
});
|
|
478
|
+
const o = K();
|
|
479
|
+
o.x = t.x, o.y = t.y, o.fill = t.fill, o.width = e.width, o.height = e.height, o.class = "task task-type-" + t.num, o.rx = 3, o.ry = 3, Y(s, o), ft(e)(
|
|
480
|
+
t.task,
|
|
481
|
+
s,
|
|
482
|
+
o.x,
|
|
483
|
+
o.y,
|
|
484
|
+
o.width,
|
|
485
|
+
o.height,
|
|
486
|
+
{ class: "task" },
|
|
487
|
+
e,
|
|
488
|
+
t.colour
|
|
489
|
+
);
|
|
490
|
+
}, "drawTask"), Ht = /* @__PURE__ */ r(function(n, t) {
|
|
491
|
+
Y(n, {
|
|
492
|
+
x: t.startx,
|
|
493
|
+
y: t.starty,
|
|
494
|
+
width: t.stopx - t.startx,
|
|
495
|
+
height: t.stopy - t.starty,
|
|
496
|
+
fill: t.fill,
|
|
497
|
+
class: "rect"
|
|
498
|
+
}).lower();
|
|
499
|
+
}, "drawBackgroundRect"), Ot = /* @__PURE__ */ r(function() {
|
|
500
|
+
return {
|
|
501
|
+
x: 0,
|
|
502
|
+
y: 0,
|
|
503
|
+
fill: void 0,
|
|
504
|
+
"text-anchor": "start",
|
|
505
|
+
width: 100,
|
|
506
|
+
height: 100,
|
|
507
|
+
textMargin: 0,
|
|
508
|
+
rx: 0,
|
|
509
|
+
ry: 0
|
|
510
|
+
};
|
|
511
|
+
}, "getTextObj"), K = /* @__PURE__ */ r(function() {
|
|
512
|
+
return {
|
|
513
|
+
x: 0,
|
|
514
|
+
y: 0,
|
|
515
|
+
width: 100,
|
|
516
|
+
anchor: "start",
|
|
517
|
+
height: 100,
|
|
518
|
+
rx: 0,
|
|
519
|
+
ry: 0
|
|
520
|
+
};
|
|
521
|
+
}, "getNoteRect"), ft = /* @__PURE__ */ function() {
|
|
522
|
+
function n(s, h, o, p, g, f, y, _) {
|
|
523
|
+
const x = h.append("text").attr("x", o + g / 2).attr("y", p + f / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(s);
|
|
524
|
+
a(x, y);
|
|
525
|
+
}
|
|
526
|
+
r(n, "byText");
|
|
527
|
+
function t(s, h, o, p, g, f, y, _, x) {
|
|
528
|
+
const { taskFontSize: i, taskFontFamily: c } = _, d = s.split(/<br\s*\/?>/gi);
|
|
529
|
+
for (let u = 0; u < d.length; u++) {
|
|
530
|
+
const l = u * i - i * (d.length - 1) / 2, b = h.append("text").attr("x", o + g / 2).attr("y", p).attr("fill", x).style("text-anchor", "middle").style("font-size", i).style("font-family", c);
|
|
531
|
+
b.append("tspan").attr("x", o + g / 2).attr("dy", l).text(d[u]), b.attr("y", p + f / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), a(b, y);
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
r(t, "byTspan");
|
|
535
|
+
function e(s, h, o, p, g, f, y, _) {
|
|
536
|
+
const x = h.append("switch"), i = x.append("foreignObject").attr("x", o).attr("y", p).attr("width", g).attr("height", f).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
|
|
537
|
+
i.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(s), t(s, x, o, p, g, f, y, _), a(i, y);
|
|
538
|
+
}
|
|
539
|
+
r(e, "byFo");
|
|
540
|
+
function a(s, h) {
|
|
541
|
+
for (const o in h)
|
|
542
|
+
o in h && s.attr(o, h[o]);
|
|
543
|
+
}
|
|
544
|
+
return r(a, "_setTextAttrs"), function(s) {
|
|
545
|
+
return s.textPlacement === "fo" ? e : s.textPlacement === "old" ? n : t;
|
|
546
|
+
};
|
|
547
|
+
}(), Ct = /* @__PURE__ */ r(function(n) {
|
|
548
|
+
n.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");
|
|
549
|
+
}, "initGraphics");
|
|
550
|
+
function Q(n, t) {
|
|
551
|
+
n.each(function() {
|
|
552
|
+
var e = q(this), a = e.text().split(/(\s+|<br>)/).reverse(), s, h = [], o = 1.1, p = e.attr("y"), g = parseFloat(e.attr("dy")), f = e.text(null).append("tspan").attr("x", 0).attr("y", p).attr("dy", g + "em");
|
|
553
|
+
for (let y = 0; y < a.length; y++)
|
|
554
|
+
s = a[a.length - 1 - y], h.push(s), f.text(h.join(" ").trim()), (f.node().getComputedTextLength() > t || s === "<br>") && (h.pop(), f.text(h.join(" ").trim()), s === "<br>" ? h = [""] : h = [s], f = e.append("tspan").attr("x", 0).attr("y", p).attr("dy", o + "em").text(s));
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
r(Q, "wrap");
|
|
558
|
+
var Rt = /* @__PURE__ */ r(function(n, t, e, a) {
|
|
559
|
+
var s;
|
|
560
|
+
const h = e % Tt - 1, o = n.append("g");
|
|
561
|
+
t.section = h, o.attr(
|
|
562
|
+
"class",
|
|
563
|
+
(t.class ? t.class + " " : "") + "timeline-node " + ("section-" + h)
|
|
564
|
+
);
|
|
565
|
+
const p = o.append("g"), g = o.append("g"), f = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(Q, t.width).node().getBBox(), y = (s = a.fontSize) != null && s.replace ? a.fontSize.replace("px", "") : a.fontSize;
|
|
566
|
+
return t.height = f.height + y * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), zt(p, t, h, a), t;
|
|
567
|
+
}, "drawNode"), Dt = /* @__PURE__ */ r(function(n, t, e) {
|
|
568
|
+
var a;
|
|
569
|
+
const s = n.append("g"), h = s.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(Q, t.width).node().getBBox(), o = (a = e.fontSize) != null && a.replace ? e.fontSize.replace("px", "") : e.fontSize;
|
|
570
|
+
return s.remove(), h.height + o * 1.1 * 0.5 + t.padding;
|
|
571
|
+
}, "getVirtualNodeHeight"), zt = /* @__PURE__ */ r(function(n, t, e) {
|
|
572
|
+
n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
|
|
573
|
+
"d",
|
|
574
|
+
`M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
|
|
575
|
+
), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
|
|
576
|
+
}, "defaultBkg"), H = {
|
|
577
|
+
drawRect: Y,
|
|
578
|
+
drawCircle: Mt,
|
|
579
|
+
drawSection: Lt,
|
|
580
|
+
drawText: gt,
|
|
581
|
+
drawLabel: At,
|
|
582
|
+
drawTask: Pt,
|
|
583
|
+
drawBackgroundRect: Ht,
|
|
584
|
+
getTextObj: Ot,
|
|
585
|
+
getNoteRect: K,
|
|
586
|
+
initGraphics: Ct,
|
|
587
|
+
drawNode: Rt,
|
|
588
|
+
getVirtualNodeHeight: Dt
|
|
589
|
+
}, Nt = /* @__PURE__ */ r(function(n, t, e, a) {
|
|
590
|
+
var s, h;
|
|
591
|
+
const o = kt(), p = o.leftMargin ?? 50;
|
|
592
|
+
S.debug("timeline", a.db);
|
|
593
|
+
const g = o.securityLevel;
|
|
594
|
+
let f;
|
|
595
|
+
g === "sandbox" && (f = q("#i" + t));
|
|
596
|
+
const y = (g === "sandbox" ? q(f.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
|
|
597
|
+
y.append("g");
|
|
598
|
+
const _ = a.db.getTasks(), x = a.db.getCommonDb().getDiagramTitle();
|
|
599
|
+
S.debug("task", _), H.initGraphics(y);
|
|
600
|
+
const i = a.db.getSections();
|
|
601
|
+
S.debug("sections", i);
|
|
602
|
+
let c = 0, d = 0, u = 0, l = 0, b = 50 + p, k = 50;
|
|
603
|
+
l = 50;
|
|
604
|
+
let $ = 0, N = !0;
|
|
605
|
+
i.forEach(function(m) {
|
|
606
|
+
const v = {
|
|
607
|
+
number: $,
|
|
608
|
+
descr: m,
|
|
609
|
+
section: $,
|
|
610
|
+
width: 150,
|
|
611
|
+
padding: 20,
|
|
612
|
+
maxHeight: c
|
|
613
|
+
}, I = H.getVirtualNodeHeight(y, v, o);
|
|
614
|
+
S.debug("sectionHeight before draw", I), c = Math.max(c, I + 20);
|
|
615
|
+
});
|
|
616
|
+
let O = 0, L = 0;
|
|
617
|
+
S.debug("tasks.length", _.length);
|
|
618
|
+
for (const [m, v] of _.entries()) {
|
|
619
|
+
const I = {
|
|
620
|
+
number: m,
|
|
621
|
+
descr: v,
|
|
622
|
+
section: v.section,
|
|
623
|
+
width: 150,
|
|
624
|
+
padding: 20,
|
|
625
|
+
maxHeight: d
|
|
626
|
+
}, M = H.getVirtualNodeHeight(y, I, o);
|
|
627
|
+
S.debug("taskHeight before draw", M), d = Math.max(d, M + 20), O = Math.max(O, v.events.length);
|
|
628
|
+
let C = 0;
|
|
629
|
+
for (const B of v.events) {
|
|
630
|
+
const F = {
|
|
631
|
+
descr: B,
|
|
632
|
+
section: v.section,
|
|
633
|
+
number: v.section,
|
|
634
|
+
width: 150,
|
|
635
|
+
padding: 20,
|
|
636
|
+
maxHeight: 50
|
|
637
|
+
};
|
|
638
|
+
C += H.getVirtualNodeHeight(y, F, o);
|
|
639
|
+
}
|
|
640
|
+
L = Math.max(L, C);
|
|
641
|
+
}
|
|
642
|
+
S.debug("maxSectionHeight before draw", c), S.debug("maxTaskHeight before draw", d), i && i.length > 0 ? i.forEach((m) => {
|
|
643
|
+
const v = _.filter((B) => B.section === m), I = {
|
|
644
|
+
number: $,
|
|
645
|
+
descr: m,
|
|
646
|
+
section: $,
|
|
647
|
+
width: 200 * Math.max(v.length, 1) - 50,
|
|
648
|
+
padding: 20,
|
|
649
|
+
maxHeight: c
|
|
650
|
+
};
|
|
651
|
+
S.debug("sectionNode", I);
|
|
652
|
+
const M = y.append("g"), C = H.drawNode(M, I, $, o);
|
|
653
|
+
S.debug("sectionNode output", C), M.attr("transform", `translate(${b}, ${l})`), k += c + 50, v.length > 0 && st(
|
|
654
|
+
y,
|
|
655
|
+
v,
|
|
656
|
+
$,
|
|
657
|
+
b,
|
|
658
|
+
k,
|
|
659
|
+
d,
|
|
660
|
+
o,
|
|
661
|
+
O,
|
|
662
|
+
L,
|
|
663
|
+
c,
|
|
664
|
+
!1
|
|
665
|
+
), b += 200 * Math.max(v.length, 1), k = l, $++;
|
|
666
|
+
}) : (N = !1, st(
|
|
667
|
+
y,
|
|
668
|
+
_,
|
|
669
|
+
$,
|
|
670
|
+
b,
|
|
671
|
+
k,
|
|
672
|
+
d,
|
|
673
|
+
o,
|
|
674
|
+
O,
|
|
675
|
+
L,
|
|
676
|
+
c,
|
|
677
|
+
!0
|
|
678
|
+
));
|
|
679
|
+
const j = y.node().getBBox();
|
|
680
|
+
S.debug("bounds", j), x && y.append("text").text(x).attr("x", j.width / 2 - p).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), u = N ? c + d + 150 : d + 100, y.append("g").attr("class", "lineWrapper").append("line").attr("x1", p).attr("y1", u).attr("x2", j.width + 3 * p).attr("y2", u).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), _t(
|
|
681
|
+
void 0,
|
|
682
|
+
y,
|
|
683
|
+
((s = o.timeline) == null ? void 0 : s.padding) ?? 50,
|
|
684
|
+
((h = o.timeline) == null ? void 0 : h.useMaxWidth) ?? !1
|
|
685
|
+
);
|
|
686
|
+
}, "draw"), st = /* @__PURE__ */ r(function(n, t, e, a, s, h, o, p, g, f, y) {
|
|
687
|
+
var _;
|
|
688
|
+
for (const x of t) {
|
|
689
|
+
const i = {
|
|
690
|
+
descr: x.task,
|
|
691
|
+
section: e,
|
|
692
|
+
number: e,
|
|
693
|
+
width: 150,
|
|
694
|
+
padding: 20,
|
|
695
|
+
maxHeight: h
|
|
696
|
+
};
|
|
697
|
+
S.debug("taskNode", i);
|
|
698
|
+
const c = n.append("g").attr("class", "taskWrapper"), d = H.drawNode(c, i, e, o).height;
|
|
699
|
+
if (S.debug("taskHeight after draw", d), c.attr("transform", `translate(${a}, ${s})`), h = Math.max(h, d), x.events) {
|
|
700
|
+
const u = n.append("g").attr("class", "lineWrapper");
|
|
701
|
+
let l = h;
|
|
702
|
+
s += 100, l = l + jt(n, x.events, e, a, s, o), s -= 100, u.append("line").attr("x1", a + 190 / 2).attr("y1", s + h).attr("x2", a + 190 / 2).attr(
|
|
703
|
+
"y2",
|
|
704
|
+
s + h + (y ? h : f) + g + 120
|
|
705
|
+
).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
|
|
706
|
+
}
|
|
707
|
+
a = a + 200, y && !((_ = o.timeline) != null && _.disableMulticolor) && e++;
|
|
708
|
+
}
|
|
709
|
+
s = s - 10;
|
|
710
|
+
}, "drawTasks"), jt = /* @__PURE__ */ r(function(n, t, e, a, s, h) {
|
|
711
|
+
let o = 0;
|
|
712
|
+
const p = s;
|
|
713
|
+
s = s + 100;
|
|
714
|
+
for (const g of t) {
|
|
715
|
+
const f = {
|
|
716
|
+
descr: g,
|
|
717
|
+
section: e,
|
|
718
|
+
number: e,
|
|
719
|
+
width: 150,
|
|
720
|
+
padding: 20,
|
|
721
|
+
maxHeight: 50
|
|
722
|
+
};
|
|
723
|
+
S.debug("eventNode", f);
|
|
724
|
+
const y = n.append("g").attr("class", "eventWrapper"), _ = H.drawNode(y, f, e, h).height;
|
|
725
|
+
o = o + _, y.attr("transform", `translate(${a}, ${s})`), s = s + 10 + _;
|
|
726
|
+
}
|
|
727
|
+
return s = p, o;
|
|
728
|
+
}, "drawEvents"), Bt = {
|
|
729
|
+
setConf: /* @__PURE__ */ r(() => {
|
|
730
|
+
}, "setConf"),
|
|
731
|
+
draw: Nt
|
|
732
|
+
}, Ft = /* @__PURE__ */ r((n) => {
|
|
733
|
+
let t = "";
|
|
734
|
+
for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
|
|
735
|
+
n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], vt(n["lineColor" + e]) ? n["lineColor" + e] = wt(n["lineColor" + e], 20) : n["lineColor" + e] = St(n["lineColor" + e], 20);
|
|
736
|
+
for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
|
|
737
|
+
const a = "" + (17 - 3 * e);
|
|
738
|
+
t += `
|
|
739
|
+
.section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
|
|
740
|
+
fill: ${n["cScale" + e]};
|
|
741
|
+
}
|
|
742
|
+
.section-${e - 1} text {
|
|
743
|
+
fill: ${n["cScaleLabel" + e]};
|
|
744
|
+
}
|
|
745
|
+
.node-icon-${e - 1} {
|
|
746
|
+
font-size: 40px;
|
|
747
|
+
color: ${n["cScaleLabel" + e]};
|
|
748
|
+
}
|
|
749
|
+
.section-edge-${e - 1}{
|
|
750
|
+
stroke: ${n["cScale" + e]};
|
|
751
|
+
}
|
|
752
|
+
.edge-depth-${e - 1}{
|
|
753
|
+
stroke-width: ${a};
|
|
754
|
+
}
|
|
755
|
+
.section-${e - 1} line {
|
|
756
|
+
stroke: ${n["cScaleInv" + e]} ;
|
|
757
|
+
stroke-width: 3;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.lineWrapper line{
|
|
761
|
+
stroke: ${n["cScaleLabel" + e]} ;
|
|
762
|
+
}
|
|
763
|
+
|
|
764
|
+
.disabled, .disabled circle, .disabled text {
|
|
765
|
+
fill: lightgray;
|
|
766
|
+
}
|
|
767
|
+
.disabled text {
|
|
768
|
+
fill: #efefef;
|
|
769
|
+
}
|
|
770
|
+
`;
|
|
771
|
+
}
|
|
772
|
+
return t;
|
|
773
|
+
}, "genSections"), Wt = /* @__PURE__ */ r((n) => `
|
|
774
|
+
.edge {
|
|
775
|
+
stroke-width: 3;
|
|
776
|
+
}
|
|
777
|
+
${Ft(n)}
|
|
778
|
+
.section-root rect, .section-root path, .section-root circle {
|
|
779
|
+
fill: ${n.git0};
|
|
780
|
+
}
|
|
781
|
+
.section-root text {
|
|
782
|
+
fill: ${n.gitBranchLabel0};
|
|
783
|
+
}
|
|
784
|
+
.icon-container {
|
|
785
|
+
height:100%;
|
|
786
|
+
display: flex;
|
|
787
|
+
justify-content: center;
|
|
788
|
+
align-items: center;
|
|
789
|
+
}
|
|
790
|
+
.edge {
|
|
791
|
+
fill: none;
|
|
792
|
+
}
|
|
793
|
+
.eventWrapper {
|
|
794
|
+
filter: brightness(120%);
|
|
795
|
+
}
|
|
796
|
+
`, "getStyles"), Vt = Wt, Yt = {
|
|
797
|
+
db: rt,
|
|
798
|
+
renderer: Bt,
|
|
799
|
+
parser: $t,
|
|
800
|
+
styles: Vt
|
|
801
|
+
};
|
|
802
|
+
export {
|
|
803
|
+
Yt as diagram
|
|
804
|
+
};
|