@marimo-team/islands 0.13.16-dev3 → 0.13.16-dev4

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.
Files changed (85) hide show
  1. package/dist/{ConnectedDataExplorerComponent-DaX7qzkh.js → ConnectedDataExplorerComponent-W-BOfG8M.js} +1495 -1496
  2. package/dist/{VegaLite-DqttTZoC.js → VegaLite-C9hsmU75.js} +12483 -12485
  3. package/dist/{_baseUniq-C7BPwQHe.js → _baseUniq-JsDeIdvj.js} +13 -13
  4. package/dist/{any-language-editor-DUew9Rp9.js → any-language-editor-BzZqDQm_.js} +2 -2
  5. package/dist/{architectureDiagram-IEHRJDOE-a3lDrXQx.js → architectureDiagram-IEHRJDOE-DnNsdc8e.js} +1800 -1800
  6. package/dist/asn1-jKiBa2Ya.js +10 -10
  7. package/dist/assets/{save-worker-9HEtFDM0.js → save-worker-DwN_qfSx.js} +695 -702
  8. package/dist/assets/{worker-BGGm0KYZ.js → worker-BzMPE1Lq.js} +732 -739
  9. package/dist/assets/{worker-BNsqBj5w.js → worker-ISYYr8IB.js} +726 -732
  10. package/dist/blockDiagram-JOT3LUYC-C_KEbscf.js +2249 -0
  11. package/dist/{c4Diagram-VJAJSXHY-iO9Wy6JM.js → c4Diagram-VJAJSXHY-B7trZ6_H.js} +401 -400
  12. package/dist/{channel-DcjC1CFM.js → channel-CwUzkjN9.js} +1 -1
  13. package/dist/chunk-4BMEZGHF-C4_0qa8X.js +9 -0
  14. package/dist/chunk-A2AXSNBT-DApfdN4z.js +1373 -0
  15. package/dist/chunk-AEK57VVT-D_rUaIu3.js +1416 -0
  16. package/dist/{chunk-D6G4REZN-Dlv_YHcf.js → chunk-D6G4REZN-BJurAONC.js} +2 -2
  17. package/dist/{chunk-RZ5BOZE2-D8w7Mlj9.js → chunk-RZ5BOZE2-ChOs68Hz.js} +8 -8
  18. package/dist/chunk-XZIHB7SX-CGbScEEe.js +16 -0
  19. package/dist/{classDiagram-GIVACNV2-B9RHXsFh.js → classDiagram-GIVACNV2-CqVjeibK.js} +2 -2
  20. package/dist/{classDiagram-v2-COTLJTTW-B9RHXsFh.js → classDiagram-v2-COTLJTTW-CqVjeibK.js} +2 -2
  21. package/dist/clojure-CCKyeQKf.js +2 -2
  22. package/dist/{clone-D3N_odGc.js → clone-BPHB9gtw.js} +1 -1
  23. package/dist/css-bIlmDBTK.js +19 -19
  24. package/dist/{cytoscape.esm-DAyNQ0qu.js → cytoscape.esm-CCQ3SVU1.js} +2301 -2301
  25. package/dist/dagre-OKDRZEBW-EJUR9APO.js +447 -0
  26. package/dist/{data-editor-DYnEMVel.js → data-editor-CvujN_l-.js} +5785 -5795
  27. package/dist/{diagram-SSKATNLV-B7sCpaam.js → diagram-SSKATNLV-Bs-Zy3OO.js} +13 -13
  28. package/dist/{diagram-VNBRO52H-D5XB9Rqn.js → diagram-VNBRO52H-rhV7IJ0T.js} +3 -3
  29. package/dist/{erDiagram-Q7BY3M3F-Bc4bVsl5.js → erDiagram-Q7BY3M3F-DwuCpdOL.js} +263 -262
  30. package/dist/flowDiagram-4HSFHLVR-CpbGvx3R.js +1623 -0
  31. package/dist/{ganttDiagram-APWFNJXF-DX7O4yzu.js → ganttDiagram-APWFNJXF-B9ih7Ggj.js} +45 -45
  32. package/dist/gitGraphDiagram-7IBYFJ6S-tTFS2NlF.js +712 -0
  33. package/dist/{graph-3qoxqlMi.js → graph-DiSBbvS5.js} +9 -9
  34. package/dist/{index-ClcExt8M.js → index-BZo5-DOE.js} +99 -98
  35. package/dist/{index-DSv7cBZ6.js → index-CmU7bpCv.js} +4 -4
  36. package/dist/{index-DMwlOrYW.js → index-KrnLhU30.js} +9 -9
  37. package/dist/{index-DarPCnb9.js → index-TeAlNqJE.js} +28 -28
  38. package/dist/{infoDiagram-PH2N3AL5-Hpz-dZTP.js → infoDiagram-PH2N3AL5-COt3b362.js} +3 -3
  39. package/dist/javascript-WMWNx-Vj.js +47 -47
  40. package/dist/{journeyDiagram-U35MCT3I-D8lBbVPX.js → journeyDiagram-U35MCT3I-Civ2cUVg.js} +18 -18
  41. package/dist/kanban-definition-NDS4AKOZ-QxhTc8lo.js +719 -0
  42. package/dist/{katex-9tX9hjoM.js → katex-CUSbq6rG.js} +2180 -2180
  43. package/dist/{layout-BQ5ygFMS.js → layout-B0SQ1LdD.js} +27 -27
  44. package/dist/{linear-DEKTCzK7.js → linear-Bn_UtFyT.js} +2 -2
  45. package/dist/main-ClxYr2BI.js +169878 -0
  46. package/dist/main.js +1 -1
  47. package/dist/mermaid-M3c3q4Qd.js +14517 -0
  48. package/dist/{mhchem-L5-rce7L.js → mhchem-Db_f2n8C.js} +30 -30
  49. package/dist/{min-BVLo0atX.js → min-C0Jzc_ko.js} +2 -2
  50. package/dist/{mindmap-definition-ALO5MXBD-CJrYaVvo.js → mindmap-definition-ALO5MXBD-BW8IbhiG.js} +359 -359
  51. package/dist/mllike-BSnXJBGA.js +7 -7
  52. package/dist/{pieDiagram-IB7DONF6-Dctceo_p.js → pieDiagram-IB7DONF6-DIa7m5Au.js} +34 -34
  53. package/dist/pug-BqUR2bBq.js +35 -35
  54. package/dist/python-B5QdSKoL.js +18 -18
  55. package/dist/quadrantDiagram-7GDLP6J5-D1HtkiJK.js +1025 -0
  56. package/dist/{radar-MK3ICKWK-C1HW1I3s.js → radar-MK3ICKWK-Dm3jRuoE.js} +2555 -2554
  57. package/dist/{react-plotly-Cb9GFlJK.js → react-plotly-CJ3A7ju0.js} +6595 -6597
  58. package/dist/{requirementDiagram-KVF5MWMF-B1hXsRKm.js → requirementDiagram-KVF5MWMF-b-q1aUEu.js} +251 -250
  59. package/dist/rpm-IznJm2Xc.js +9 -9
  60. package/dist/{sankeyDiagram-QLVOVGJD-C4Wft0rG.js → sankeyDiagram-QLVOVGJD-Bo4y0LBQ.js} +339 -338
  61. package/dist/{sequenceDiagram-X6HHIX6F-DuI3MtaO.js → sequenceDiagram-X6HHIX6F-DMq4wla5.js} +822 -821
  62. package/dist/{slides-component-CtHXOtAT.js → slides-component-Cyh202Vq.js} +280 -280
  63. package/dist/sql-mMre1Bo3.js +9 -9
  64. package/dist/{stateDiagram-DGXRK772-BA90keZx.js → stateDiagram-DGXRK772-D_y0WAcv.js} +17 -17
  65. package/dist/{stateDiagram-v2-YXO3MK2T-BAYgRopg.js → stateDiagram-v2-YXO3MK2T-CHK5LNw7.js} +2 -2
  66. package/dist/style.css +1 -1
  67. package/dist/{time-CSFHw3Jv.js → time-YVQKuiUR.js} +2 -2
  68. package/dist/{timeline-definition-BDJGKUSR-Blc0sOvC.js → timeline-definition-BDJGKUSR-DH63_P4w.js} +261 -261
  69. package/dist/timer-BYwnU4DF.js +378 -378
  70. package/dist/ttcn-cfg-Bac_acMi.js +9 -9
  71. package/dist/{vega-component-BhqCtGzK.js → vega-component-CUFBFMjm.js} +82 -82
  72. package/dist/{xychartDiagram-VJFVF3MP-zwhLbXXB.js → xychartDiagram-VJFVF3MP-3NU7tduZ.js} +472 -471
  73. package/package.json +1 -1
  74. package/dist/blockDiagram-JOT3LUYC-CKFyxt0d.js +0 -2248
  75. package/dist/chunk-4BMEZGHF-lIaJqjDq.js +0 -9
  76. package/dist/chunk-A2AXSNBT-Cvv8kb-T.js +0 -1372
  77. package/dist/chunk-AEK57VVT-B-uzYNYV.js +0 -1415
  78. package/dist/chunk-XZIHB7SX-eF6XymTt.js +0 -15
  79. package/dist/dagre-OKDRZEBW-9GOkw9EI.js +0 -447
  80. package/dist/flowDiagram-4HSFHLVR-O0PMfC8B.js +0 -1622
  81. package/dist/gitGraphDiagram-7IBYFJ6S-Bq1HYszu.js +0 -712
  82. package/dist/kanban-definition-NDS4AKOZ-BjHkwf3p.js +0 -719
  83. package/dist/main-CtGDFKVm.js +0 -156521
  84. package/dist/mermaid-dkwEEzHU.js +0 -11991
  85. package/dist/quadrantDiagram-7GDLP6J5-BCGXIJXJ.js +0 -1024
@@ -1,719 +0,0 @@
1
- import { _ as c, l as te, c as W, K as fe, $ as ye, a0 as be, a1 as me, T as _e, H as Y, i as G, v as Ee, J as ke, V as Se, W as le, X as ce } from "./mermaid-dkwEEzHU.js";
2
- var $ = function() {
3
- var t = /* @__PURE__ */ c(function(_, s, n, a) {
4
- for (n = n || {}, a = _.length; a--; n[_[a]] = s) ;
5
- return n;
6
- }, "o"), g = [1, 4], d = [1, 13], r = [1, 12], p = [1, 15], E = [1, 16], f = [1, 20], h = [1, 19], L = [6, 7, 8], C = [1, 26], w = [1, 24], N = [1, 25], i = [6, 7, 11], H = [1, 31], x = [6, 7, 11, 24], P = [1, 6, 13, 16, 17, 20, 23], M = [1, 35], U = [1, 36], A = [1, 6, 7, 11, 13, 16, 17, 20, 23], j = [1, 38], V = {
7
- trace: /* @__PURE__ */ c(function() {
8
- }, "trace"),
9
- yy: {},
10
- symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, KANBAN: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, shapeData: 15, ICON: 16, CLASS: 17, nodeWithId: 18, nodeWithoutId: 19, NODE_DSTART: 20, NODE_DESCR: 21, NODE_DEND: 22, NODE_ID: 23, SHAPE_DATA: 24, $accept: 0, $end: 1 },
11
- terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "KANBAN", 11: "EOF", 13: "SPACELIST", 16: "ICON", 17: "CLASS", 20: "NODE_DSTART", 21: "NODE_DESCR", 22: "NODE_DEND", 23: "NODE_ID", 24: "SHAPE_DATA" },
12
- productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 3], [12, 2], [12, 2], [12, 2], [12, 1], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [19, 3], [18, 1], [18, 4], [15, 2], [15, 1]],
13
- performAction: /* @__PURE__ */ c(function(s, n, a, o, u, e, B) {
14
- var l = e.length - 1;
15
- switch (u) {
16
- case 6:
17
- case 7:
18
- return o;
19
- case 8:
20
- o.getLogger().trace("Stop NL ");
21
- break;
22
- case 9:
23
- o.getLogger().trace("Stop EOF ");
24
- break;
25
- case 11:
26
- o.getLogger().trace("Stop NL2 ");
27
- break;
28
- case 12:
29
- o.getLogger().trace("Stop EOF2 ");
30
- break;
31
- case 15:
32
- o.getLogger().info("Node: ", e[l - 1].id), o.addNode(e[l - 2].length, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
33
- break;
34
- case 16:
35
- o.getLogger().info("Node: ", e[l].id), o.addNode(e[l - 1].length, e[l].id, e[l].descr, e[l].type);
36
- break;
37
- case 17:
38
- o.getLogger().trace("Icon: ", e[l]), o.decorateNode({ icon: e[l] });
39
- break;
40
- case 18:
41
- case 23:
42
- o.decorateNode({ class: e[l] });
43
- break;
44
- case 19:
45
- o.getLogger().trace("SPACELIST");
46
- break;
47
- case 20:
48
- o.getLogger().trace("Node: ", e[l - 1].id), o.addNode(0, e[l - 1].id, e[l - 1].descr, e[l - 1].type, e[l]);
49
- break;
50
- case 21:
51
- o.getLogger().trace("Node: ", e[l].id), o.addNode(0, e[l].id, e[l].descr, e[l].type);
52
- break;
53
- case 22:
54
- o.decorateNode({ icon: e[l] });
55
- break;
56
- case 27:
57
- o.getLogger().trace("node found ..", e[l - 2]), this.$ = { id: e[l - 1], descr: e[l - 1], type: o.getType(e[l - 2], e[l]) };
58
- break;
59
- case 28:
60
- this.$ = { id: e[l], descr: e[l], type: 0 };
61
- break;
62
- case 29:
63
- o.getLogger().trace("node found ..", e[l - 3]), this.$ = { id: e[l - 3], descr: e[l - 1], type: o.getType(e[l - 2], e[l]) };
64
- break;
65
- case 30:
66
- this.$ = e[l - 1] + e[l];
67
- break;
68
- case 31:
69
- this.$ = e[l];
70
- break;
71
- }
72
- }, "anonymous"),
73
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: g }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: g }, { 6: d, 7: [1, 10], 9: 9, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(L, [2, 3]), { 1: [2, 2] }, t(L, [2, 4]), t(L, [2, 5]), { 1: [2, 6], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: d, 9: 22, 12: 11, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, { 6: C, 7: w, 10: 23, 11: N }, t(i, [2, 24], { 18: 17, 19: 18, 14: 27, 16: [1, 28], 17: [1, 29], 20: f, 23: h }), t(i, [2, 19]), t(i, [2, 21], { 15: 30, 24: H }), t(i, [2, 22]), t(i, [2, 23]), t(x, [2, 25]), t(x, [2, 26]), t(x, [2, 28], { 20: [1, 32] }), { 21: [1, 33] }, { 6: C, 7: w, 10: 34, 11: N }, { 1: [2, 7], 6: d, 12: 21, 13: r, 14: 14, 16: p, 17: E, 18: 17, 19: 18, 20: f, 23: h }, t(P, [2, 14], { 7: M, 11: U }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(i, [2, 16], { 15: 37, 24: H }), t(i, [2, 17]), t(i, [2, 18]), t(i, [2, 20], { 24: j }), t(x, [2, 31]), { 21: [1, 39] }, { 22: [1, 40] }, t(P, [2, 13], { 7: M, 11: U }), t(A, [2, 11]), t(A, [2, 12]), t(i, [2, 15], { 24: j }), t(x, [2, 30]), { 22: [1, 41] }, t(x, [2, 27]), t(x, [2, 29])],
74
- defaultActions: { 2: [2, 1], 6: [2, 2] },
75
- parseError: /* @__PURE__ */ c(function(s, n) {
76
- if (n.recoverable)
77
- this.trace(s);
78
- else {
79
- var a = new Error(s);
80
- throw a.hash = n, a;
81
- }
82
- }, "parseError"),
83
- parse: /* @__PURE__ */ c(function(s) {
84
- var n = this, a = [0], o = [], u = [null], e = [], B = this.table, l = "", z = 0, ie = 0, ue = 2, re = 1, ge = e.slice.call(arguments, 1), b = Object.create(this.lexer), T = { yy: {} };
85
- for (var J in this.yy)
86
- Object.prototype.hasOwnProperty.call(this.yy, J) && (T.yy[J] = this.yy[J]);
87
- b.setInput(s, T.yy), T.yy.lexer = b, T.yy.parser = this, typeof b.yylloc > "u" && (b.yylloc = {});
88
- var q = b.yylloc;
89
- e.push(q);
90
- var de = b.options && b.options.ranges;
91
- typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
92
- function pe(S) {
93
- a.length = a.length - 2 * S, u.length = u.length - S, e.length = e.length - S;
94
- }
95
- c(pe, "popStack");
96
- function ae() {
97
- var S;
98
- return S = o.pop() || b.lex() || re, typeof S != "number" && (S instanceof Array && (o = S, S = o.pop()), S = n.symbols_[S] || S), S;
99
- }
100
- c(ae, "lex");
101
- for (var k, R, v, Q, F = {}, X, I, oe, K; ; ) {
102
- if (R = a[a.length - 1], this.defaultActions[R] ? v = this.defaultActions[R] : ((k === null || typeof k > "u") && (k = ae()), v = B[R] && B[R][k]), typeof v > "u" || !v.length || !v[0]) {
103
- var Z = "";
104
- K = [];
105
- for (X in B[R])
106
- this.terminals_[X] && X > ue && K.push("'" + this.terminals_[X] + "'");
107
- b.showPosition ? Z = "Parse error on line " + (z + 1) + `:
108
- ` + b.showPosition() + `
109
- Expecting ` + K.join(", ") + ", got '" + (this.terminals_[k] || k) + "'" : Z = "Parse error on line " + (z + 1) + ": Unexpected " + (k == re ? "end of input" : "'" + (this.terminals_[k] || k) + "'"), this.parseError(Z, {
110
- text: b.match,
111
- token: this.terminals_[k] || k,
112
- line: b.yylineno,
113
- loc: q,
114
- expected: K
115
- });
116
- }
117
- if (v[0] instanceof Array && v.length > 1)
118
- throw new Error("Parse Error: multiple actions possible at state: " + R + ", token: " + k);
119
- switch (v[0]) {
120
- case 1:
121
- a.push(k), u.push(b.yytext), e.push(b.yylloc), a.push(v[1]), k = null, ie = b.yyleng, l = b.yytext, z = b.yylineno, q = b.yylloc;
122
- break;
123
- case 2:
124
- if (I = this.productions_[v[1]][1], F.$ = u[u.length - I], F._$ = {
125
- first_line: e[e.length - (I || 1)].first_line,
126
- last_line: e[e.length - 1].last_line,
127
- first_column: e[e.length - (I || 1)].first_column,
128
- last_column: e[e.length - 1].last_column
129
- }, de && (F._$.range = [
130
- e[e.length - (I || 1)].range[0],
131
- e[e.length - 1].range[1]
132
- ]), Q = this.performAction.apply(F, [
133
- l,
134
- ie,
135
- z,
136
- T.yy,
137
- v[1],
138
- u,
139
- e
140
- ].concat(ge)), typeof Q < "u")
141
- return Q;
142
- I && (a = a.slice(0, -1 * I * 2), u = u.slice(0, -1 * I), e = e.slice(0, -1 * I)), a.push(this.productions_[v[1]][0]), u.push(F.$), e.push(F._$), oe = B[a[a.length - 2]][a[a.length - 1]], a.push(oe);
143
- break;
144
- case 3:
145
- return !0;
146
- }
147
- }
148
- return !0;
149
- }, "parse")
150
- }, m = /* @__PURE__ */ function() {
151
- var _ = {
152
- EOF: 1,
153
- parseError: /* @__PURE__ */ c(function(n, a) {
154
- if (this.yy.parser)
155
- this.yy.parser.parseError(n, a);
156
- else
157
- throw new Error(n);
158
- }, "parseError"),
159
- // resets the lexer, sets new input
160
- setInput: /* @__PURE__ */ c(function(s, n) {
161
- return this.yy = n || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
162
- first_line: 1,
163
- first_column: 0,
164
- last_line: 1,
165
- last_column: 0
166
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
167
- }, "setInput"),
168
- // consumes and returns one char from the input
169
- input: /* @__PURE__ */ c(function() {
170
- var s = this._input[0];
171
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
172
- var n = s.match(/(?:\r\n?|\n).*/g);
173
- return n ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
174
- }, "input"),
175
- // unshifts one char (or a string) into the input
176
- unput: /* @__PURE__ */ c(function(s) {
177
- var n = s.length, a = s.split(/(?:\r\n?|\n)/g);
178
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - n), this.offset -= n;
179
- var o = this.match.split(/(?:\r\n?|\n)/g);
180
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
181
- var u = this.yylloc.range;
182
- return this.yylloc = {
183
- first_line: this.yylloc.first_line,
184
- last_line: this.yylineno + 1,
185
- first_column: this.yylloc.first_column,
186
- last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - n
187
- }, this.options.ranges && (this.yylloc.range = [u[0], u[0] + this.yyleng - n]), this.yyleng = this.yytext.length, this;
188
- }, "unput"),
189
- // When called from action, caches matched text and appends it on next action
190
- more: /* @__PURE__ */ c(function() {
191
- return this._more = !0, this;
192
- }, "more"),
193
- // 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.
194
- reject: /* @__PURE__ */ c(function() {
195
- if (this.options.backtrack_lexer)
196
- this._backtrack = !0;
197
- else
198
- 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).
199
- ` + this.showPosition(), {
200
- text: "",
201
- token: null,
202
- line: this.yylineno
203
- });
204
- return this;
205
- }, "reject"),
206
- // retain first n characters of the match
207
- less: /* @__PURE__ */ c(function(s) {
208
- this.unput(this.match.slice(s));
209
- }, "less"),
210
- // displays already matched input, i.e. for error messages
211
- pastInput: /* @__PURE__ */ c(function() {
212
- var s = this.matched.substr(0, this.matched.length - this.match.length);
213
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
214
- }, "pastInput"),
215
- // displays upcoming input, i.e. for error messages
216
- upcomingInput: /* @__PURE__ */ c(function() {
217
- var s = this.match;
218
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
219
- }, "upcomingInput"),
220
- // displays the character position where the lexing error occurred, i.e. for error messages
221
- showPosition: /* @__PURE__ */ c(function() {
222
- var s = this.pastInput(), n = new Array(s.length + 1).join("-");
223
- return s + this.upcomingInput() + `
224
- ` + n + "^";
225
- }, "showPosition"),
226
- // test the lexed token: return FALSE when not a match, otherwise return token
227
- test_match: /* @__PURE__ */ c(function(s, n) {
228
- var a, o, u;
229
- if (this.options.backtrack_lexer && (u = {
230
- yylineno: this.yylineno,
231
- yylloc: {
232
- first_line: this.yylloc.first_line,
233
- last_line: this.last_line,
234
- first_column: this.yylloc.first_column,
235
- last_column: this.yylloc.last_column
236
- },
237
- yytext: this.yytext,
238
- match: this.match,
239
- matches: this.matches,
240
- matched: this.matched,
241
- yyleng: this.yyleng,
242
- offset: this.offset,
243
- _more: this._more,
244
- _input: this._input,
245
- yy: this.yy,
246
- conditionStack: this.conditionStack.slice(0),
247
- done: this.done
248
- }, this.options.ranges && (u.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
249
- first_line: this.yylloc.last_line,
250
- last_line: this.yylineno + 1,
251
- first_column: this.yylloc.last_column,
252
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
253
- }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, n, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
254
- return a;
255
- if (this._backtrack) {
256
- for (var e in u)
257
- this[e] = u[e];
258
- return !1;
259
- }
260
- return !1;
261
- }, "test_match"),
262
- // return next match in input
263
- next: /* @__PURE__ */ c(function() {
264
- if (this.done)
265
- return this.EOF;
266
- this._input || (this.done = !0);
267
- var s, n, a, o;
268
- this._more || (this.yytext = "", this.match = "");
269
- for (var u = this._currentRules(), e = 0; e < u.length; e++)
270
- if (a = this._input.match(this.rules[u[e]]), a && (!n || a[0].length > n[0].length)) {
271
- if (n = a, o = e, this.options.backtrack_lexer) {
272
- if (s = this.test_match(a, u[e]), s !== !1)
273
- return s;
274
- if (this._backtrack) {
275
- n = !1;
276
- continue;
277
- } else
278
- return !1;
279
- } else if (!this.options.flex)
280
- break;
281
- }
282
- return n ? (s = this.test_match(n, u[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
283
- ` + this.showPosition(), {
284
- text: "",
285
- token: null,
286
- line: this.yylineno
287
- });
288
- }, "next"),
289
- // return next match that has a token
290
- lex: /* @__PURE__ */ c(function() {
291
- var n = this.next();
292
- return n || this.lex();
293
- }, "lex"),
294
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
295
- begin: /* @__PURE__ */ c(function(n) {
296
- this.conditionStack.push(n);
297
- }, "begin"),
298
- // pop the previously active lexer condition state off the condition stack
299
- popState: /* @__PURE__ */ c(function() {
300
- var n = this.conditionStack.length - 1;
301
- return n > 0 ? this.conditionStack.pop() : this.conditionStack[0];
302
- }, "popState"),
303
- // produce the lexer rule set which is active for the currently active lexer condition state
304
- _currentRules: /* @__PURE__ */ c(function() {
305
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
306
- }, "_currentRules"),
307
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
308
- topState: /* @__PURE__ */ c(function(n) {
309
- return n = this.conditionStack.length - 1 - Math.abs(n || 0), n >= 0 ? this.conditionStack[n] : "INITIAL";
310
- }, "topState"),
311
- // alias for begin(condition)
312
- pushState: /* @__PURE__ */ c(function(n) {
313
- this.begin(n);
314
- }, "pushState"),
315
- // return the number of states currently on the stack
316
- stateStackSize: /* @__PURE__ */ c(function() {
317
- return this.conditionStack.length;
318
- }, "stateStackSize"),
319
- options: { "case-insensitive": !0 },
320
- performAction: /* @__PURE__ */ c(function(n, a, o, u) {
321
- switch (o) {
322
- case 0:
323
- return this.pushState("shapeData"), a.yytext = "", 24;
324
- case 1:
325
- return this.pushState("shapeDataStr"), 24;
326
- case 2:
327
- return this.popState(), 24;
328
- case 3:
329
- const e = /\n\s*/g;
330
- return a.yytext = a.yytext.replace(e, "<br/>"), 24;
331
- case 4:
332
- return 24;
333
- case 5:
334
- this.popState();
335
- break;
336
- case 6:
337
- return n.getLogger().trace("Found comment", a.yytext), 6;
338
- case 7:
339
- return 8;
340
- case 8:
341
- this.begin("CLASS");
342
- break;
343
- case 9:
344
- return this.popState(), 17;
345
- case 10:
346
- this.popState();
347
- break;
348
- case 11:
349
- n.getLogger().trace("Begin icon"), this.begin("ICON");
350
- break;
351
- case 12:
352
- return n.getLogger().trace("SPACELINE"), 6;
353
- case 13:
354
- return 7;
355
- case 14:
356
- return 16;
357
- case 15:
358
- n.getLogger().trace("end icon"), this.popState();
359
- break;
360
- case 16:
361
- return n.getLogger().trace("Exploding node"), this.begin("NODE"), 20;
362
- case 17:
363
- return n.getLogger().trace("Cloud"), this.begin("NODE"), 20;
364
- case 18:
365
- return n.getLogger().trace("Explosion Bang"), this.begin("NODE"), 20;
366
- case 19:
367
- return n.getLogger().trace("Cloud Bang"), this.begin("NODE"), 20;
368
- case 20:
369
- return this.begin("NODE"), 20;
370
- case 21:
371
- return this.begin("NODE"), 20;
372
- case 22:
373
- return this.begin("NODE"), 20;
374
- case 23:
375
- return this.begin("NODE"), 20;
376
- case 24:
377
- return 13;
378
- case 25:
379
- return 23;
380
- case 26:
381
- return 11;
382
- case 27:
383
- this.begin("NSTR2");
384
- break;
385
- case 28:
386
- return "NODE_DESCR";
387
- case 29:
388
- this.popState();
389
- break;
390
- case 30:
391
- n.getLogger().trace("Starting NSTR"), this.begin("NSTR");
392
- break;
393
- case 31:
394
- return n.getLogger().trace("description:", a.yytext), "NODE_DESCR";
395
- case 32:
396
- this.popState();
397
- break;
398
- case 33:
399
- return this.popState(), n.getLogger().trace("node end ))"), "NODE_DEND";
400
- case 34:
401
- return this.popState(), n.getLogger().trace("node end )"), "NODE_DEND";
402
- case 35:
403
- return this.popState(), n.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
404
- case 36:
405
- return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
406
- case 37:
407
- return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
408
- case 38:
409
- return this.popState(), n.getLogger().trace("node end (-"), "NODE_DEND";
410
- case 39:
411
- return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
412
- case 40:
413
- return this.popState(), n.getLogger().trace("node end (("), "NODE_DEND";
414
- case 41:
415
- return n.getLogger().trace("Long description:", a.yytext), 21;
416
- case 42:
417
- return n.getLogger().trace("Long description:", a.yytext), 21;
418
- }
419
- }, "anonymous"),
420
- rules: [/^(?:@\{)/i, /^(?:["])/i, /^(?:["])/i, /^(?:[^\"]+)/i, /^(?:[^}^"]+)/i, /^(?:\})/i, /^(?:\s*%%.*)/i, /^(?:kanban\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}@]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
421
- conditions: { shapeDataEndBracket: { rules: [], inclusive: !1 }, shapeDataStr: { rules: [2, 3], inclusive: !1 }, shapeData: { rules: [1, 4, 5], inclusive: !1 }, CLASS: { rules: [9, 10], inclusive: !1 }, ICON: { rules: [14, 15], inclusive: !1 }, NSTR2: { rules: [28, 29], inclusive: !1 }, NSTR: { rules: [31, 32], inclusive: !1 }, NODE: { rules: [27, 30, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42], inclusive: !1 }, INITIAL: { rules: [0, 6, 7, 8, 11, 12, 13, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26], inclusive: !0 } }
422
- };
423
- return _;
424
- }();
425
- V.lexer = m;
426
- function O() {
427
- this.yy = {};
428
- }
429
- return c(O, "Parser"), O.prototype = V, V.Parser = O, new O();
430
- }();
431
- $.parser = $;
432
- var Ne = $, D = [], ne = [], ee = 0, se = {}, xe = /* @__PURE__ */ c(() => {
433
- D = [], ne = [], ee = 0, se = {};
434
- }, "clear"), ve = /* @__PURE__ */ c((t) => {
435
- if (D.length === 0)
436
- return null;
437
- const g = D[0].level;
438
- let d = null;
439
- for (let r = D.length - 1; r >= 0; r--)
440
- if (D[r].level === g && !d && (d = D[r]), D[r].level < g)
441
- throw new Error('Items without section detected, found section ("' + D[r].label + '")');
442
- return t === (d == null ? void 0 : d.level) ? null : d;
443
- }, "getSection"), he = /* @__PURE__ */ c(function() {
444
- return ne;
445
- }, "getSections"), De = /* @__PURE__ */ c(function() {
446
- const t = [], g = [], d = he(), r = W();
447
- for (const p of d) {
448
- const E = {
449
- id: p.id,
450
- label: G(p.label ?? "", r),
451
- isGroup: !0,
452
- ticket: p.ticket,
453
- shape: "kanbanSection",
454
- level: p.level,
455
- look: r.look
456
- };
457
- g.push(E);
458
- const f = D.filter((h) => h.parentId === p.id);
459
- for (const h of f) {
460
- const L = {
461
- id: h.id,
462
- parentId: p.id,
463
- label: G(h.label ?? "", r),
464
- isGroup: !1,
465
- ticket: h == null ? void 0 : h.ticket,
466
- priority: h == null ? void 0 : h.priority,
467
- assigned: h == null ? void 0 : h.assigned,
468
- icon: h == null ? void 0 : h.icon,
469
- shape: "kanbanItem",
470
- level: h.level,
471
- rx: 5,
472
- ry: 5,
473
- cssStyles: ["text-align: left"]
474
- };
475
- g.push(L);
476
- }
477
- }
478
- return { nodes: g, edges: t, other: {}, config: W() };
479
- }, "getData"), Le = /* @__PURE__ */ c((t, g, d, r, p) => {
480
- var C, w;
481
- const E = W();
482
- let f = ((C = E.mindmap) == null ? void 0 : C.padding) ?? Y.mindmap.padding;
483
- switch (r) {
484
- case y.ROUNDED_RECT:
485
- case y.RECT:
486
- case y.HEXAGON:
487
- f *= 2;
488
- }
489
- const h = {
490
- id: G(g, E) || "kbn" + ee++,
491
- level: t,
492
- label: G(d, E),
493
- width: ((w = E.mindmap) == null ? void 0 : w.maxNodeWidth) ?? Y.mindmap.maxNodeWidth,
494
- padding: f,
495
- isGroup: !1
496
- };
497
- if (p !== void 0) {
498
- let N;
499
- p.includes(`
500
- `) ? N = p + `
501
- ` : N = `{
502
- ` + p + `
503
- }`;
504
- const i = Ee(N, { schema: ke });
505
- if (i.shape && (i.shape !== i.shape.toLowerCase() || i.shape.includes("_")))
506
- throw new Error(`No such shape: ${i.shape}. Shape names should be lowercase.`);
507
- i != null && i.shape && i.shape === "kanbanItem" && (h.shape = i == null ? void 0 : i.shape), i != null && i.label && (h.label = i == null ? void 0 : i.label), i != null && i.icon && (h.icon = i == null ? void 0 : i.icon.toString()), i != null && i.assigned && (h.assigned = i == null ? void 0 : i.assigned.toString()), i != null && i.ticket && (h.ticket = i == null ? void 0 : i.ticket.toString()), i != null && i.priority && (h.priority = i == null ? void 0 : i.priority);
508
- }
509
- const L = ve(t);
510
- L ? h.parentId = L.id || "kbn" + ee++ : ne.push(h), D.push(h);
511
- }, "addNode"), y = {
512
- DEFAULT: 0,
513
- NO_BORDER: 0,
514
- ROUNDED_RECT: 1,
515
- RECT: 2,
516
- CIRCLE: 3,
517
- CLOUD: 4,
518
- BANG: 5,
519
- HEXAGON: 6
520
- }, Oe = /* @__PURE__ */ c((t, g) => {
521
- switch (te.debug("In get type", t, g), t) {
522
- case "[":
523
- return y.RECT;
524
- case "(":
525
- return g === ")" ? y.ROUNDED_RECT : y.CLOUD;
526
- case "((":
527
- return y.CIRCLE;
528
- case ")":
529
- return y.CLOUD;
530
- case "))":
531
- return y.BANG;
532
- case "{{":
533
- return y.HEXAGON;
534
- default:
535
- return y.DEFAULT;
536
- }
537
- }, "getType"), Ie = /* @__PURE__ */ c((t, g) => {
538
- se[t] = g;
539
- }, "setElementForId"), Ce = /* @__PURE__ */ c((t) => {
540
- if (!t)
541
- return;
542
- const g = W(), d = D[D.length - 1];
543
- t.icon && (d.icon = G(t.icon, g)), t.class && (d.cssClasses = G(t.class, g));
544
- }, "decorateNode"), we = /* @__PURE__ */ c((t) => {
545
- switch (t) {
546
- case y.DEFAULT:
547
- return "no-border";
548
- case y.RECT:
549
- return "rect";
550
- case y.ROUNDED_RECT:
551
- return "rounded-rect";
552
- case y.CIRCLE:
553
- return "circle";
554
- case y.CLOUD:
555
- return "cloud";
556
- case y.BANG:
557
- return "bang";
558
- case y.HEXAGON:
559
- return "hexgon";
560
- // cspell: disable-line
561
- default:
562
- return "no-border";
563
- }
564
- }, "type2Str"), Ae = /* @__PURE__ */ c(() => te, "getLogger"), Te = /* @__PURE__ */ c((t) => se[t], "getElementById"), Re = {
565
- clear: xe,
566
- addNode: Le,
567
- getSections: he,
568
- getData: De,
569
- nodeType: y,
570
- getType: Oe,
571
- setElementForId: Ie,
572
- decorateNode: Ce,
573
- type2Str: we,
574
- getLogger: Ae,
575
- getElementById: Te
576
- }, Pe = Re, Ve = /* @__PURE__ */ c(async (t, g, d, r) => {
577
- var M, U, A, j, V;
578
- te.debug(`Rendering kanban diagram
579
- ` + t);
580
- const E = r.db.getData(), f = W();
581
- f.htmlLabels = !1;
582
- const h = fe(g), L = h.append("g");
583
- L.attr("class", "sections");
584
- const C = h.append("g");
585
- C.attr("class", "items");
586
- const w = E.nodes.filter(
587
- // TODO: TypeScript 5.5 will infer this predicate automatically
588
- (m) => m.isGroup
589
- );
590
- let N = 0;
591
- const i = 10, H = [];
592
- let x = 25;
593
- for (const m of w) {
594
- const O = ((M = f == null ? void 0 : f.kanban) == null ? void 0 : M.sectionWidth) || 200;
595
- N = N + 1, m.x = O * N + (N - 1) * i / 2, m.width = O, m.y = 0, m.height = O * 3, m.rx = 5, m.ry = 5, m.cssClasses = m.cssClasses + " section-" + N;
596
- const _ = await ye(L, m);
597
- x = Math.max(x, (U = _ == null ? void 0 : _.labelBBox) == null ? void 0 : U.height), H.push(_);
598
- }
599
- let P = 0;
600
- for (const m of w) {
601
- const O = H[P];
602
- P = P + 1;
603
- const _ = ((A = f == null ? void 0 : f.kanban) == null ? void 0 : A.sectionWidth) || 200, s = -_ * 3 / 2 + x;
604
- let n = s;
605
- const a = E.nodes.filter((e) => e.parentId === m.id);
606
- for (const e of a) {
607
- if (e.isGroup)
608
- throw new Error("Groups within groups are not allowed in Kanban diagrams");
609
- e.x = m.x, e.width = _ - 1.5 * i;
610
- const l = (await be(C, e, { config: f })).node().getBBox();
611
- e.y = n + l.height / 2, await me(e), n = e.y + l.height / 2 + i / 2;
612
- }
613
- const o = O.cluster.select("rect"), u = Math.max(n - s + 3 * i, 50) + (x - 25);
614
- o.attr("height", u);
615
- }
616
- _e(
617
- void 0,
618
- h,
619
- ((j = f.mindmap) == null ? void 0 : j.padding) ?? Y.kanban.padding,
620
- ((V = f.mindmap) == null ? void 0 : V.useMaxWidth) ?? Y.kanban.useMaxWidth
621
- );
622
- }, "draw"), Be = {
623
- draw: Ve
624
- }, Fe = /* @__PURE__ */ c((t) => {
625
- let g = "";
626
- for (let r = 0; r < t.THEME_COLOR_LIMIT; r++)
627
- t["lineColor" + r] = t["lineColor" + r] || t["cScaleInv" + r], Se(t["lineColor" + r]) ? t["lineColor" + r] = le(t["lineColor" + r], 20) : t["lineColor" + r] = ce(t["lineColor" + r], 20);
628
- const d = /* @__PURE__ */ c((r, p) => t.darkMode ? ce(r, p) : le(r, p), "adjuster");
629
- for (let r = 0; r < t.THEME_COLOR_LIMIT; r++) {
630
- const p = "" + (17 - 3 * r);
631
- g += `
632
- .section-${r - 1} rect, .section-${r - 1} path, .section-${r - 1} circle, .section-${r - 1} polygon, .section-${r - 1} path {
633
- fill: ${d(t["cScale" + r], 10)};
634
- stroke: ${d(t["cScale" + r], 10)};
635
-
636
- }
637
- .section-${r - 1} text {
638
- fill: ${t["cScaleLabel" + r]};
639
- }
640
- .node-icon-${r - 1} {
641
- font-size: 40px;
642
- color: ${t["cScaleLabel" + r]};
643
- }
644
- .section-edge-${r - 1}{
645
- stroke: ${t["cScale" + r]};
646
- }
647
- .edge-depth-${r - 1}{
648
- stroke-width: ${p};
649
- }
650
- .section-${r - 1} line {
651
- stroke: ${t["cScaleInv" + r]} ;
652
- stroke-width: 3;
653
- }
654
-
655
- .disabled, .disabled circle, .disabled text {
656
- fill: lightgray;
657
- }
658
- .disabled text {
659
- fill: #efefef;
660
- }
661
-
662
- .node rect,
663
- .node circle,
664
- .node ellipse,
665
- .node polygon,
666
- .node path {
667
- fill: ${t.background};
668
- stroke: ${t.nodeBorder};
669
- stroke-width: 1px;
670
- }
671
-
672
- .kanban-ticket-link {
673
- fill: ${t.background};
674
- stroke: ${t.nodeBorder};
675
- text-decoration: underline;
676
- }
677
- `;
678
- }
679
- return g;
680
- }, "genSections"), Ge = /* @__PURE__ */ c((t) => `
681
- .edge {
682
- stroke-width: 3;
683
- }
684
- ${Fe(t)}
685
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
686
- fill: ${t.git0};
687
- }
688
- .section-root text {
689
- fill: ${t.gitBranchLabel0};
690
- }
691
- .icon-container {
692
- height:100%;
693
- display: flex;
694
- justify-content: center;
695
- align-items: center;
696
- }
697
- .edge {
698
- fill: none;
699
- }
700
- .cluster-label, .label {
701
- color: ${t.textColor};
702
- fill: ${t.textColor};
703
- }
704
- .kanban-label {
705
- dy: 1em;
706
- alignment-baseline: middle;
707
- text-anchor: middle;
708
- dominant-baseline: middle;
709
- text-align: center;
710
- }
711
- `, "getStyles"), He = Ge, Ue = {
712
- db: Pe,
713
- renderer: Be,
714
- parser: Ne,
715
- styles: He
716
- };
717
- export {
718
- Ue as diagram
719
- };