@kong-ui-public/documentation 1.5.78 → 1.6.0

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 (63) hide show
  1. package/dist/{arc-DZdQjcG8-C_2Dx6GQ.js → arc-DZdQjcG8-CduayE88.js} +2 -2
  2. package/dist/{architectureDiagram-3BPJPVTR-By_DXDyu-DTj86bUZ.js → architectureDiagram-3BPJPVTR-By_DXDyu-U3MSLbOU.js} +1506 -1513
  3. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CKP-SiVG.js +3268 -0
  4. package/dist/{c4Diagram-AAUBKEIU-ftdwlfdB-CYiERTWJ.js → c4Diagram-AAUBKEIU-ftdwlfdB-D3A61SdV.js} +11 -12
  5. package/dist/{channel-DM9j7IFL-CjNPz4Hd.js → channel-DM9j7IFL-DxqBUxfY.js} +1 -1
  6. package/dist/{chunk-2J33WTMH-CBbjVzWb-BAAd-TK5.js → chunk-2J33WTMH-CBbjVzWb-0og4LHQ-.js} +7 -8
  7. package/dist/chunk-4BX2VUAB-C_NnimAy--QQ0Db2V.js +8 -0
  8. package/dist/{chunk-55IACEB6-DZn1aNO0-_bs5ibIB.js → chunk-55IACEB6-DZn1aNO0-A3zOZ7dT.js} +1 -1
  9. package/dist/{chunk-727SXJPM-B2_6_WLv-CzbzsbtK.js → chunk-727SXJPM-B2_6_WLv-Bs3CxHaX.js} +548 -549
  10. package/dist/{chunk-AQP2D5EJ-DEAEiJjW-BPr5JvkB.js → chunk-AQP2D5EJ-DEAEiJjW-DTbwZT8N.js} +446 -458
  11. package/dist/{chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js → chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js} +1 -1
  12. package/dist/{chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js → chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js} +1 -1
  13. package/dist/{chunk-QZHKN3VN-DN6nBdn0-DxWE5zsM.js → chunk-QZHKN3VN-DN6nBdn0-BvQOETVz.js} +1 -1
  14. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-BqXc0etQ.js +17 -0
  15. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-BqXc0etQ.js +17 -0
  16. package/dist/{cose-bilkent-S5V4N54A-0ZumbVgj-BKcFQWbE.js → cose-bilkent-S5V4N54A-0ZumbVgj-0z7CQbIH.js} +465 -465
  17. package/dist/{cytoscape.esm-BDIiOYYO-BbddfVIJ.js → cytoscape.esm-BDIiOYYO-C1jMBhD8.js} +356 -371
  18. package/dist/dagre-BM42HDAG-qMWMsyLb-DGMrq3i3.js +288 -0
  19. package/dist/{dagre-DJxg_nfI-BzVw7cNP.js → dagre-DJxg_nfI-hVOVexz-.js} +9 -9
  20. package/dist/{diagram-2AECGRRQ-B2gF_dHe-DCRSlKG-.js → diagram-2AECGRRQ-B2gF_dHe-Bv_EpxRz.js} +10 -14
  21. package/dist/{diagram-5GNKFQAL-DJ9WwRrD-DtSWJY6-.js → diagram-5GNKFQAL-DJ9WwRrD-WVvm0Icu.js} +4 -4
  22. package/dist/{diagram-KO2AKTUF-RfkqD-VW-ZR9mxccc.js → diagram-KO2AKTUF-RfkqD-VW-yyAds1Qq.js} +153 -156
  23. package/dist/{diagram-LMA3HP47-Ct7s9hIt-DXtPBRn4.js → diagram-LMA3HP47-Ct7s9hIt-Dy6f9BAO.js} +21 -22
  24. package/dist/{diagram-OG6HWLK6-BSYJ2CoI-DX1BfXw6.js → diagram-OG6HWLK6-BSYJ2CoI-ckmfat-L.js} +79 -81
  25. package/dist/documentation.es.js +1 -1
  26. package/dist/documentation.umd.js +374 -374
  27. package/dist/{erDiagram-TEJ5UH35-BudwiSYX-BPA5-1u6.js → erDiagram-TEJ5UH35-BudwiSYX-bVzp1Kjr.js} +134 -135
  28. package/dist/{flowDiagram-I6XJVG4X-B23Smlxp-Cb24VZnb.js → flowDiagram-I6XJVG4X-B23Smlxp-ClHvdCdJ.js} +842 -849
  29. package/dist/{ganttDiagram-6RSMTGT7-C-i89z_P-DEdTFlTH.js → ganttDiagram-6RSMTGT7-C-i89z_P-t5UAyRM5.js} +46 -46
  30. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-Cg3smOdz.js +734 -0
  31. package/dist/{graphlib-D2YdGpuK-CM8PX5pf.js → graphlib-D2YdGpuK-CnQPmzkS.js} +17 -17
  32. package/dist/{index-Dpyqhws4.js → index-DfVKdDwj.js} +16258 -16515
  33. package/dist/{infoDiagram-5YYISTIA-CDUwzFql-BsbTK2Me.js → infoDiagram-5YYISTIA-CDUwzFql-Bmthmcp4.js} +2 -2
  34. package/dist/{ishikawaDiagram-YF4QCWOH-MfYdx0rK-DsWP0O6d.js → ishikawaDiagram-YF4QCWOH-MfYdx0rK-cbltssua.js} +137 -138
  35. package/dist/{journeyDiagram-JHISSGLW-C_udOPtJ-BkIf9B4Q.js → journeyDiagram-JHISSGLW-C_udOPtJ-BjAvgSAR.js} +13 -13
  36. package/dist/{kanban-definition-UN3LZRKU-C1Su-UOY-6sw-wDwK.js → kanban-definition-UN3LZRKU-C1Su-UOY-DZ93dsWZ.js} +334 -336
  37. package/dist/{katex-D7tFlpqA-B7yKriH4.js → katex-D7tFlpqA-BOSQxXe1.js} +254 -256
  38. package/dist/{linear-1MXhYum8-CfR5ywK4.js → linear-1MXhYum8-9C1jno9G.js} +5 -5
  39. package/dist/{mindmap-definition-RKZ34NQL-MuSV765K-Cv2rDIFS.js → mindmap-definition-RKZ34NQL-MuSV765K-Kub1iXFv.js} +94 -97
  40. package/dist/{ordinal-D9ksOc8y-CrGveXkB.js → ordinal-D9ksOc8y-2hZwLyEk.js} +1 -1
  41. package/dist/{pieDiagram-4H26LBE5-TgFp7J6_-C8m2xJbj.js → pieDiagram-4H26LBE5-TgFp7J6_-i6NxP3Xz.js} +43 -44
  42. package/dist/{quadrantDiagram-W4KKPZXB-DKPne3o_-D0Tfl8NQ.js → quadrantDiagram-W4KKPZXB-DKPne3o_-DXLHqRuR.js} +351 -353
  43. package/dist/{requirementDiagram-4Y6WPE33-vh8uUAp_-C5zLx-_o.js → requirementDiagram-4Y6WPE33-vh8uUAp_-CHtsISxP.js} +384 -386
  44. package/dist/{sankeyDiagram-5OEKKPKP-Cgs6W_El-DBrv4QL_.js → sankeyDiagram-5OEKKPKP-Cgs6W_El-D7GZyd8n.js} +178 -178
  45. package/dist/{sequenceDiagram-3UESZ5HK-C5F57Dkt-D6DqZiJP.js → sequenceDiagram-3UESZ5HK-C5F57Dkt-BW1Hb7UW.js} +643 -653
  46. package/dist/{stateDiagram-AJRCARHV-09dUKG6Y-9QhAIhCk.js → stateDiagram-AJRCARHV-09dUKG6Y-Dm2a1vNu.js} +5 -5
  47. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-DbWzZ-j-.js +16 -0
  48. package/dist/style.css +1 -1
  49. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-B5CT96H-.js +1095 -0
  50. package/dist/{vennDiagram-CIIHVFJN-DQfKxM3L-086u82L3.js → vennDiagram-CIIHVFJN-DQfKxM3L-qUaKEl7l.js} +596 -603
  51. package/dist/{wardley-L42UT6IY-BjAkE_cs-li1xYed9.js → wardley-L42UT6IY-BjAkE_cs-C-giFqos.js} +5760 -5809
  52. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-DXPF2Ee9.js +639 -0
  53. package/dist/{xychartDiagram-2RQKCTM6-ChNH3q1U--vbcTXH5.js → xychartDiagram-2RQKCTM6-ChNH3q1U-a59DsJDA.js} +10 -10
  54. package/package.json +4 -4
  55. package/dist/blockDiagram-GPEHLZMM-9Cp9Hbl7-CSQRWfog.js +0 -3278
  56. package/dist/chunk-4BX2VUAB-C_NnimAy-B-8x_g6K.js +0 -9
  57. package/dist/classDiagram-4FO5ZUOK-Du5qFrfN-DLmqgbj1.js +0 -17
  58. package/dist/classDiagram-v2-Q7XG4LA2-DM6zutfc-DLmqgbj1.js +0 -17
  59. package/dist/dagre-BM42HDAG-qMWMsyLb-BzK2-5zM.js +0 -291
  60. package/dist/gitGraphDiagram-PVQCEYII-DpVfXnUD-BtfdBLxW.js +0 -747
  61. package/dist/stateDiagram-v2-BHNVJYJU-CWqmRt12-Br5eF-5b.js +0 -16
  62. package/dist/timeline-definition-PNZ67QCA-CCndyx0V-CkhwKYjQ.js +0 -1106
  63. package/dist/wardleyDiagram-YWT4CUSO-Bf9L2NsL-CCMCDU5F.js +0 -647
@@ -1,5 +1,5 @@
1
- import { p as a, g as n, a0 as o, A as i } from "./index-Dpyqhws4.js";
2
- import { r as d } from "./wardley-L42UT6IY-BjAkE_cs-li1xYed9.js";
1
+ import { p as a, g as n, a0 as o, A as i } from "./index-DfVKdDwj.js";
2
+ import { r as d } from "./wardley-L42UT6IY-BjAkE_cs-C-giFqos.js";
3
3
  var p = { parse: /* @__PURE__ */ a(async (r) => {
4
4
  let e = await d("info", r);
5
5
  n.debug(e);
@@ -1,13 +1,13 @@
1
- import { p as r, Z as ht, a1 as ut, a0 as dt, ba as yt, H as pt, a as ft, f as it, W as gt, U as mt, K as kt, G as xt, i as wt, A as bt } from "./index-Dpyqhws4.js";
2
- var Q = function() {
1
+ import { p as r, Z as ht, a1 as ut, a0 as dt, ba as yt, H as pt, a as ft, f as it, W as gt, U as mt, K as kt, G as xt, i as wt, A as bt } from "./index-DfVKdDwj.js";
2
+ var J = (function() {
3
3
  var e = /* @__PURE__ */ r(function(t, y, n, h) {
4
- for (n || (n = {}), h = t.length; h--; n[t[h]] = y) ;
4
+ for (n ||= {}, h = t.length; h--; n[t[h]] = y) ;
5
5
  return n;
6
6
  }, "o"), l = [1, 4], a = [1, 14], s = [1, 12], i = [1, 13], d = [
7
7
  6,
8
8
  7,
9
9
  8
10
- ], f = [1, 20], u = [1, 18], p = [1, 19], g = [
10
+ ], p = [1, 20], u = [1, 18], f = [1, 19], g = [
11
11
  6,
12
12
  7,
13
13
  11
@@ -16,14 +16,14 @@ var Q = function() {
16
16
  6,
17
17
  13,
18
18
  14
19
- ], m = [1, 23], S = [1, 24], $ = [
19
+ ], m = [1, 23], $ = [1, 24], I = [
20
20
  1,
21
21
  6,
22
22
  7,
23
23
  11,
24
24
  13,
25
25
  14
26
- ], L = {
26
+ ], C = {
27
27
  trace: /* @__PURE__ */ r(function() {
28
28
  }, "trace"),
29
29
  yy: {},
@@ -74,7 +74,7 @@ var Q = function() {
74
74
  [12, 1],
75
75
  [12, 1]
76
76
  ],
77
- performAction: /* @__PURE__ */ r(function(t, y, n, h, c, o, P) {
77
+ performAction: /* @__PURE__ */ r(function(t, y, n, h, c, o, B) {
78
78
  var b = o.length - 1;
79
79
  switch (c) {
80
80
  case 6:
@@ -131,19 +131,19 @@ var Q = function() {
131
131
  14: i
132
132
  },
133
133
  {
134
- 6: f,
134
+ 6: p,
135
135
  7: u,
136
136
  10: 17,
137
- 11: p
137
+ 11: f
138
138
  },
139
139
  e(g, [2, 18], { 14: [1, 21] }),
140
140
  e(g, [2, 16]),
141
141
  e(g, [2, 17]),
142
142
  {
143
- 6: f,
143
+ 6: p,
144
144
  7: u,
145
145
  10: 22,
146
- 11: p
146
+ 11: f
147
147
  },
148
148
  {
149
149
  1: [2, 7],
@@ -154,18 +154,18 @@ var Q = function() {
154
154
  },
155
155
  e(x, [2, 14], {
156
156
  7: m,
157
- 11: S
157
+ 11: $
158
158
  }),
159
- e($, [2, 8]),
160
- e($, [2, 9]),
161
- e($, [2, 10]),
159
+ e(I, [2, 8]),
160
+ e(I, [2, 9]),
161
+ e(I, [2, 10]),
162
162
  e(g, [2, 15]),
163
163
  e(x, [2, 13], {
164
164
  7: m,
165
- 11: S
165
+ 11: $
166
166
  }),
167
- e($, [2, 11]),
168
- e($, [2, 12])
167
+ e(I, [2, 11]),
168
+ e(I, [2, 12])
169
169
  ],
170
170
  defaultActions: {
171
171
  2: [2, 1],
@@ -179,57 +179,57 @@ var Q = function() {
179
179
  }
180
180
  }, "parseError"),
181
181
  parse: /* @__PURE__ */ r(function(t) {
182
- var y = this, n = [0], h = [], c = [null], o = [], P = this.table, b = "", w = 0, _ = 0, B = 0, v = 2, A = 1, M = o.slice.call(arguments, 1), k = Object.create(this.lexer), z = { yy: {} };
183
- for (var j in this.yy) Object.prototype.hasOwnProperty.call(this.yy, j) && (z.yy[j] = this.yy[j]);
184
- k.setInput(t, z.yy), z.yy.lexer = k, z.yy.parser = this, k.yylloc === void 0 && (k.yylloc = {});
185
- var E = k.yylloc;
186
- o.push(E);
187
- var O = k.options && k.options.ranges;
188
- typeof z.yy.parseError == "function" ? this.parseError = z.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
189
- function D(W) {
190
- n.length -= 2 * W, c.length -= W, o.length -= W;
182
+ var y = this, n = [0], h = [], c = [null], o = [], B = this.table, b = "", w = 0, v = 0, N = 0, S = 2, E = 1, L = o.slice.call(arguments, 1), k = Object.create(this.lexer), _ = { yy: {} };
183
+ for (var M in this.yy) Object.prototype.hasOwnProperty.call(this.yy, M) && (_.yy[M] = this.yy[M]);
184
+ k.setInput(t, _.yy), _.yy.lexer = k, _.yy.parser = this, k.yylloc === void 0 && (k.yylloc = {});
185
+ var R = k.yylloc;
186
+ o.push(R);
187
+ var Z = k.options && k.options.ranges;
188
+ typeof _.yy.parseError == "function" ? this.parseError = _.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
189
+ function V(O) {
190
+ n.length -= 2 * O, c.length -= O, o.length -= O;
191
191
  }
192
- r(D, "popStack");
193
- function F() {
194
- var W = h.pop() || k.lex() || A;
195
- return typeof W != "number" && (W instanceof Array && (h = W, W = h.pop()), W = y.symbols_[W] || W), W;
192
+ r(V, "popStack");
193
+ function Q() {
194
+ var O = h.pop() || k.lex() || E;
195
+ return typeof O != "number" && (O instanceof Array && (h = O, O = h.pop()), O = y.symbols_[O] || O), O;
196
196
  }
197
- r(F, "lex");
198
- for (var C, q, T, N, Y, H = {}, U, R, tt, V; ; ) {
199
- if (T = n[n.length - 1], this.defaultActions[T] ? N = this.defaultActions[T] : (C ?? (C = F()), N = P[T] && P[T][C]), N === void 0 || !N.length || !N[0]) {
197
+ r(Q, "lex");
198
+ for (var P, X, T, W, q, j = {}, G, z, tt, K; ; ) {
199
+ if (T = n[n.length - 1], this.defaultActions[T] ? W = this.defaultActions[T] : (P ??= Q(), W = B[T] && B[T][P]), W === void 0 || !W.length || !W[0]) {
200
200
  var et = "";
201
- for (U in V = [], P[T]) this.terminals_[U] && U > v && V.push("'" + this.terminals_[U] + "'");
201
+ for (G in K = [], B[T]) this.terminals_[G] && G > S && K.push("'" + this.terminals_[G] + "'");
202
202
  et = k.showPosition ? "Parse error on line " + (w + 1) + `:
203
203
  ` + k.showPosition() + `
204
- Expecting ` + V.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Parse error on line " + (w + 1) + ": Unexpected " + (C == A ? "end of input" : "'" + (this.terminals_[C] || C) + "'"), this.parseError(et, {
204
+ Expecting ` + K.join(", ") + ", got '" + (this.terminals_[P] || P) + "'" : "Parse error on line " + (w + 1) + ": Unexpected " + (P == E ? "end of input" : "'" + (this.terminals_[P] || P) + "'"), this.parseError(et, {
205
205
  text: k.match,
206
- token: this.terminals_[C] || C,
206
+ token: this.terminals_[P] || P,
207
207
  line: k.yylineno,
208
- loc: E,
209
- expected: V
208
+ loc: R,
209
+ expected: K
210
210
  });
211
211
  }
212
- if (N[0] instanceof Array && N.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + C);
213
- switch (N[0]) {
212
+ if (W[0] instanceof Array && W.length > 1) throw Error("Parse Error: multiple actions possible at state: " + T + ", token: " + P);
213
+ switch (W[0]) {
214
214
  case 1:
215
- n.push(C), c.push(k.yytext), o.push(k.yylloc), n.push(N[1]), C = null, q ? (C = q, q = null) : (_ = k.yyleng, b = k.yytext, w = k.yylineno, E = k.yylloc, B > 0);
215
+ n.push(P), c.push(k.yytext), o.push(k.yylloc), n.push(W[1]), P = null, X ? (P = X, X = null) : (v = k.yyleng, b = k.yytext, w = k.yylineno, R = k.yylloc, N > 0);
216
216
  break;
217
217
  case 2:
218
- if (R = this.productions_[N[1]][1], H.$ = c[c.length - R], H._$ = {
219
- first_line: o[o.length - (R || 1)].first_line,
218
+ if (z = this.productions_[W[1]][1], j.$ = c[c.length - z], j._$ = {
219
+ first_line: o[o.length - (z || 1)].first_line,
220
220
  last_line: o[o.length - 1].last_line,
221
- first_column: o[o.length - (R || 1)].first_column,
221
+ first_column: o[o.length - (z || 1)].first_column,
222
222
  last_column: o[o.length - 1].last_column
223
- }, O && (H._$.range = [o[o.length - (R || 1)].range[0], o[o.length - 1].range[1]]), Y = this.performAction.apply(H, [
223
+ }, Z && (j._$.range = [o[o.length - (z || 1)].range[0], o[o.length - 1].range[1]]), q = this.performAction.apply(j, [
224
224
  b,
225
- _,
225
+ v,
226
226
  w,
227
- z.yy,
228
- N[1],
227
+ _.yy,
228
+ W[1],
229
229
  c,
230
230
  o
231
- ].concat(M)), Y !== void 0) return Y;
232
- R && (n = n.slice(0, -1 * R * 2), c = c.slice(0, -1 * R), o = o.slice(0, -1 * R)), n.push(this.productions_[N[1]][0]), c.push(H.$), o.push(H._$), tt = P[n[n.length - 2]][n[n.length - 1]], n.push(tt);
231
+ ].concat(L)), q !== void 0) return q;
232
+ z && (n = n.slice(0, -1 * z * 2), c = c.slice(0, -1 * z), o = o.slice(0, -1 * z)), n.push(this.productions_[W[1]][0]), c.push(j.$), o.push(j._$), tt = B[n[n.length - 2]][n[n.length - 1]], n.push(tt);
233
233
  break;
234
234
  case 3:
235
235
  return !0;
@@ -238,7 +238,7 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Pars
238
238
  return !0;
239
239
  }, "parse")
240
240
  };
241
- L.lexer = /* @__PURE__ */ function() {
241
+ C.lexer = /* @__PURE__ */ (function() {
242
242
  return {
243
243
  EOF: 1,
244
244
  parseError: /* @__PURE__ */ r(function(t, y) {
@@ -419,14 +419,14 @@ Expecting ` + V.join(", ") + ", got '" + (this.terminals_[C] || C) + "'" : "Pars
419
419
  inclusive: !0
420
420
  } }
421
421
  };
422
- }();
423
- function I() {
422
+ })();
423
+ function A() {
424
424
  this.yy = {};
425
425
  }
426
- return r(I, "Parser"), I.prototype = L, L.Parser = I, new I();
427
- }();
428
- Q.parser = Q;
429
- var _t = Q, K, vt = (K = class {
426
+ return r(A, "Parser"), A.prototype = C, C.Parser = A, new A();
427
+ })();
428
+ J.parser = J;
429
+ var _t = J, H, vt = (H = class {
430
430
  constructor() {
431
431
  this.stack = [], this.clear = this.clear.bind(this), this.addNode = this.addNode.bind(this), this.getRoot = this.getRoot.bind(this);
432
432
  }
@@ -448,16 +448,16 @@ var _t = Q, K, vt = (K = class {
448
448
  }], it(s);
449
449
  return;
450
450
  }
451
- this.baseLevel ?? (this.baseLevel = l);
451
+ this.baseLevel ??= l;
452
452
  let i = l - this.baseLevel + 1;
453
453
  for (i <= 0 && (i = 1); this.stack.length > 1 && this.stack[this.stack.length - 1].level >= i; ) this.stack.pop();
454
- let d = this.stack[this.stack.length - 1].node, f = {
454
+ let d = this.stack[this.stack.length - 1].node, p = {
455
455
  text: s,
456
456
  children: []
457
457
  };
458
- d.children.push(f), this.stack.push({
458
+ d.children.push(p), this.stack.push({
459
459
  level: i,
460
- node: f
460
+ node: p
461
461
  });
462
462
  }
463
463
  getAccTitle() {
@@ -478,54 +478,53 @@ var _t = Q, K, vt = (K = class {
478
478
  setDiagramTitle(l) {
479
479
  it(l);
480
480
  }
481
- }, r(K, "IshikawaDB"), K), St = 14, Z = 250, $t = 30, It = 60, At = 5, ot = 82 * Math.PI / 180, st = Math.cos(ot), nt = Math.sin(ot), at = /* @__PURE__ */ r((e, l, a) => {
481
+ }, r(H, "IshikawaDB"), H), St = 14, D = 250, $t = 30, It = 60, At = 5, ot = 82 * Math.PI / 180, st = Math.cos(ot), nt = Math.sin(ot), at = /* @__PURE__ */ r((e, l, a) => {
482
482
  let s = e.node().getBBox(), i = s.width + l * 2, d = s.height + l * 2;
483
483
  bt(e, d, i, a), e.attr("viewBox", `${s.x - l} ${s.y - l} ${i} ${d}`);
484
484
  }, "applyPaddedViewBox"), Et = /* @__PURE__ */ r((e, l, a, s) => {
485
- var z, j;
486
485
  let i = s.db.getRoot();
487
486
  if (!i) return;
488
- let d = ht(), { look: f, handDrawnSeed: u, themeVariables: p } = d, g = ut(d.fontSize)[0] ?? St, x = f === "handDrawn", m = i.children ?? [], S = ((z = d.ishikawa) == null ? void 0 : z.diagramPadding) ?? 20, $ = ((j = d.ishikawa) == null ? void 0 : j.useMaxWidth) ?? !1, L = dt(l), I = L.append("g").attr("class", "ishikawa"), t = x ? yt.svg(L.node()) : void 0, y = t ? {
487
+ let d = ht(), { look: p, handDrawnSeed: u, themeVariables: f } = d, g = ut(d.fontSize)[0] ?? St, x = p === "handDrawn", m = i.children ?? [], $ = d.ishikawa?.diagramPadding ?? 20, I = d.ishikawa?.useMaxWidth ?? !1, C = dt(l), A = C.append("g").attr("class", "ishikawa"), t = x ? yt.svg(C.node()) : void 0, y = t ? {
489
488
  roughSvg: t,
490
489
  seed: u ?? 0,
491
- lineColor: (p == null ? void 0 : p.lineColor) ?? "#333",
492
- fillColor: (p == null ? void 0 : p.mainBkg) ?? "#fff"
490
+ lineColor: f?.lineColor ?? "#333",
491
+ fillColor: f?.mainBkg ?? "#fff"
493
492
  } : void 0, n = `ishikawa-arrow-${l}`;
494
- x || I.append("defs").append("marker").attr("id", n).attr("viewBox", "0 0 10 10").attr("refX", 0).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 Z").attr("class", "ishikawa-arrow");
495
- let h = 0, c = Z, o = x ? void 0 : G(I, h, c, h, c, "ishikawa-spine");
496
- if (Ct(I, h, c, i.text, g, y), !m.length) {
497
- x && G(I, h, c, h, c, "ishikawa-spine", y), at(L, S, $);
493
+ x || A.append("defs").append("marker").attr("id", n).attr("viewBox", "0 0 10 10").attr("refX", 0).attr("refY", 5).attr("markerWidth", 6).attr("markerHeight", 6).attr("orient", "auto").append("path").attr("d", "M 10 0 L 0 5 L 10 10 Z").attr("class", "ishikawa-arrow");
494
+ let h = 0, c = D, o = x ? void 0 : F(A, h, c, h, c, "ishikawa-spine");
495
+ if (Ct(A, h, c, i.text, g, y), !m.length) {
496
+ x && F(A, h, c, h, c, "ishikawa-spine", y), at(C, $, I);
498
497
  return;
499
498
  }
500
499
  h -= 20;
501
- let P = m.filter((E, O) => O % 2 == 0), b = m.filter((E, O) => O % 2 == 1), w = rt(P), _ = rt(b), B = w.total + _.total, v = Z, A = Z;
502
- if (B > 0) {
503
- let E = Z * 2, O = Z * 0.3;
504
- v = Math.max(O, E * (w.total / B)), A = Math.max(O, E * (_.total / B));
500
+ let B = m.filter((_, M) => M % 2 == 0), b = m.filter((_, M) => M % 2 == 1), w = rt(B), v = rt(b), N = w.total + v.total, S = D, E = D;
501
+ if (N > 0) {
502
+ let _ = D * 2, M = D * 0.3;
503
+ S = Math.max(M, _ * (w.total / N)), E = Math.max(M, _ * (v.total / N));
505
504
  }
506
- let M = g * 2;
507
- v = Math.max(v, w.max * M), A = Math.max(A, _.max * M), c = Math.max(v, Z), o && o.attr("y1", c).attr("y2", c), I.select(".ishikawa-head-group").attr("transform", `translate(0,${c})`);
505
+ let L = g * 2;
506
+ S = Math.max(S, w.max * L), E = Math.max(E, v.max * L), c = Math.max(S, D), o && o.attr("y1", c).attr("y2", c), A.select(".ishikawa-head-group").attr("transform", `translate(0,${c})`);
508
507
  let k = Math.ceil(m.length / 2);
509
- for (let E = 0; E < k; E++) {
510
- let O = I.append("g").attr("class", "ishikawa-pair");
511
- for (let [D, F, C] of [[
512
- m[E * 2],
508
+ for (let _ = 0; _ < k; _++) {
509
+ let M = A.append("g").attr("class", "ishikawa-pair");
510
+ for (let [R, Z, V] of [[
511
+ m[_ * 2],
513
512
  -1,
514
- v
513
+ S
515
514
  ], [
516
- m[E * 2 + 1],
515
+ m[_ * 2 + 1],
517
516
  1,
518
- A
519
- ]]) D && Pt(O, D, h, c, F, C, g, y);
520
- h = O.selectAll("text").nodes().reduce((D, F) => Math.min(D, F.getBBox().x), 1 / 0);
517
+ E
518
+ ]]) R && Pt(M, R, h, c, Z, V, g, y);
519
+ h = M.selectAll("text").nodes().reduce((R, Z) => Math.min(R, Z.getBBox().x), 1 / 0);
521
520
  }
522
- if (x) G(I, h, c, 0, c, "ishikawa-spine", y);
521
+ if (x) F(A, h, c, 0, c, "ishikawa-spine", y);
523
522
  else {
524
523
  o.attr("x1", h);
525
- let E = `url(#${n})`;
526
- I.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start", E);
524
+ let _ = `url(#${n})`;
525
+ A.selectAll("line.ishikawa-branch, line.ishikawa-sub-branch").attr("marker-start", _);
527
526
  }
528
- at(L, S, $);
527
+ at(C, $, I);
529
528
  }, "draw"), rt = /* @__PURE__ */ r((e) => {
530
529
  let l = /* @__PURE__ */ r((a) => a.children.reduce((s, i) => s + 1 + l(i), 0), "countDescendants");
531
530
  return e.reduce((a, s) => {
@@ -536,9 +535,9 @@ var _t = Q, K, vt = (K = class {
536
535
  max: 0
537
536
  });
538
537
  }, "sideStats"), Ct = /* @__PURE__ */ r((e, l, a, s, i, d) => {
539
- let f = Math.max(6, Math.floor(110 / (i * 0.6))), u = e.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${l},${a})`), p = X(u, ct(s, f), 0, 0, "ishikawa-head-label", "start", i), g = p.node().getBBox(), x = Math.max(60, g.width + 6), m = Math.max(40, g.height * 2 + 40), S = `M 0 ${-m / 2} L 0 ${m / 2} Q ${x * 2.4} 0 0 ${-m / 2} Z`;
538
+ let p = Math.max(6, Math.floor(110 / (i * 0.6))), u = e.append("g").attr("class", "ishikawa-head-group").attr("transform", `translate(${l},${a})`), f = U(u, ct(s, p), 0, 0, "ishikawa-head-label", "start", i), g = f.node().getBBox(), x = Math.max(60, g.width + 6), m = Math.max(40, g.height * 2 + 40), $ = `M 0 ${-m / 2} L 0 ${m / 2} Q ${x * 2.4} 0 0 ${-m / 2} Z`;
540
539
  if (d) {
541
- let $ = d.roughSvg.path(S, {
540
+ let I = d.roughSvg.path($, {
542
541
  roughness: 1.5,
543
542
  seed: d.seed,
544
543
  fill: d.fillColor,
@@ -548,18 +547,18 @@ var _t = Q, K, vt = (K = class {
548
547
  stroke: d.lineColor,
549
548
  strokeWidth: 2
550
549
  });
551
- u.insert(() => $, ":first-child").attr("class", "ishikawa-head");
552
- } else u.insert("path", ":first-child").attr("class", "ishikawa-head").attr("d", S);
553
- p.attr("transform", `translate(${(x - g.width) / 2 - g.x + 3},${-g.y - g.height / 2})`);
550
+ u.insert(() => I, ":first-child").attr("class", "ishikawa-head");
551
+ } else u.insert("path", ":first-child").attr("class", "ishikawa-head").attr("d", $);
552
+ f.attr("transform", `translate(${(x - g.width) / 2 - g.x + 3},${-g.y - g.height / 2})`);
554
553
  }, "drawHead"), Lt = /* @__PURE__ */ r((e, l) => {
555
- let a = [], s = [], i = /* @__PURE__ */ r((d, f, u) => {
556
- let p = l === -1 ? [...d].reverse() : d;
557
- for (let g of p) {
554
+ let a = [], s = [], i = /* @__PURE__ */ r((d, p, u) => {
555
+ let f = l === -1 ? [...d].reverse() : d;
556
+ for (let g of f) {
558
557
  let x = a.length, m = g.children ?? [];
559
558
  a.push({
560
559
  depth: u,
561
560
  text: ct(g.text, 15),
562
- parentIndex: f,
561
+ parentIndex: p,
563
562
  childCount: m.length
564
563
  }), u % 2 == 0 ? (s.push(x), m.length && i(m, x, u + 1)) : (m.length && i(m, x, u + 1), s.push(x));
565
564
  }
@@ -568,25 +567,25 @@ var _t = Q, K, vt = (K = class {
568
567
  entries: a,
569
568
  yOrder: s
570
569
  };
571
- }, "flattenTree"), Mt = /* @__PURE__ */ r((e, l, a, s, i, d, f) => {
572
- let u = e.append("g").attr("class", "ishikawa-label-group"), p = X(u, l, a, s + 11 * i, "ishikawa-label cause", "middle", d).node().getBBox();
573
- if (f) {
574
- let g = f.roughSvg.rectangle(p.x - 20, p.y - 2, p.width + 40, p.height + 4, {
570
+ }, "flattenTree"), Mt = /* @__PURE__ */ r((e, l, a, s, i, d, p) => {
571
+ let u = e.append("g").attr("class", "ishikawa-label-group"), f = U(u, l, a, s + 11 * i, "ishikawa-label cause", "middle", d).node().getBBox();
572
+ if (p) {
573
+ let g = p.roughSvg.rectangle(f.x - 20, f.y - 2, f.width + 40, f.height + 4, {
575
574
  roughness: 1.5,
576
- seed: f.seed,
577
- fill: f.fillColor,
575
+ seed: p.seed,
576
+ fill: p.fillColor,
578
577
  fillStyle: "hachure",
579
578
  fillWeight: 2.5,
580
579
  hachureGap: 5,
581
- stroke: f.lineColor,
580
+ stroke: p.lineColor,
582
581
  strokeWidth: 2
583
582
  });
584
583
  u.insert(() => g, ":first-child").attr("class", "ishikawa-label-box");
585
- } else u.insert("rect", ":first-child").attr("class", "ishikawa-label-box").attr("x", p.x - 20).attr("y", p.y - 2).attr("width", p.width + 40).attr("height", p.height + 4);
586
- }, "drawCauseLabel"), J = /* @__PURE__ */ r((e, l, a, s, i, d) => {
587
- let f = Math.sqrt(s * s + i * i);
588
- if (f === 0) return;
589
- let u = s / f, p = i / f, g = -p * 6, x = u * 6, m = l, S = a, $ = `M ${m} ${S} L ${m - u * 6 * 2 + g} ${S - p * 6 * 2 + x} L ${m - u * 6 * 2 - g} ${S - p * 6 * 2 - x} Z`, L = d.roughSvg.path($, {
584
+ } else u.insert("rect", ":first-child").attr("class", "ishikawa-label-box").attr("x", f.x - 20).attr("y", f.y - 2).attr("width", f.width + 40).attr("height", f.height + 4);
585
+ }, "drawCauseLabel"), Y = /* @__PURE__ */ r((e, l, a, s, i, d) => {
586
+ let p = Math.sqrt(s * s + i * i);
587
+ if (p === 0) return;
588
+ let u = s / p, f = i / p, g = -f * 6, x = u * 6, m = l, $ = a, I = `M ${m} ${$} L ${m - u * 6 * 2 + g} ${$ - f * 6 * 2 + x} L ${m - u * 6 * 2 - g} ${$ - f * 6 * 2 - x} Z`, C = d.roughSvg.path(I, {
590
589
  roughness: 1,
591
590
  seed: d.seed,
592
591
  fill: d.lineColor,
@@ -594,35 +593,35 @@ var _t = Q, K, vt = (K = class {
594
593
  stroke: d.lineColor,
595
594
  strokeWidth: 1
596
595
  });
597
- e.append(() => L);
598
- }, "drawArrowMarker"), Pt = /* @__PURE__ */ r((e, l, a, s, i, d, f, u) => {
599
- let p = l.children ?? [], g = d * (p.length ? 1 : 0.2), x = -st * g, m = nt * g * i, S = a + x, $ = s + m;
600
- if (G(e, a, s, S, $, "ishikawa-branch", u), u && J(e, a, s, a - S, s - $, u), Mt(e, l.text, S, $, i, f, u), !p.length) return;
601
- let { entries: L, yOrder: I } = Lt(p, i), t = L.length, y = Array(t);
602
- for (let [P, b] of I.entries()) y[b] = s + m * ((P + 1) / (t + 1));
596
+ e.append(() => C);
597
+ }, "drawArrowMarker"), Pt = /* @__PURE__ */ r((e, l, a, s, i, d, p, u) => {
598
+ let f = l.children ?? [], g = d * (f.length ? 1 : 0.2), x = -st * g, m = nt * g * i, $ = a + x, I = s + m;
599
+ if (F(e, a, s, $, I, "ishikawa-branch", u), u && Y(e, a, s, a - $, s - I, u), Mt(e, l.text, $, I, i, p, u), !f.length) return;
600
+ let { entries: C, yOrder: A } = Lt(f, i), t = C.length, y = Array(t);
601
+ for (let [B, b] of A.entries()) y[b] = s + m * ((B + 1) / (t + 1));
603
602
  let n = /* @__PURE__ */ new Map();
604
603
  n.set(-1, {
605
604
  x0: a,
606
605
  y0: s,
607
- x1: S,
608
- y1: $,
609
- childCount: p.length,
606
+ x1: $,
607
+ y1: I,
608
+ childCount: f.length,
610
609
  childrenDrawn: 0
611
610
  });
612
611
  let h = -st, c = nt * i, o = i < 0 ? "ishikawa-label up" : "ishikawa-label down";
613
- for (let [P, b] of L.entries()) {
614
- let w = y[P], _ = n.get(b.parentIndex), B = e.append("g").attr("class", "ishikawa-sub-group"), v = 0, A = 0, M = 0;
612
+ for (let [B, b] of C.entries()) {
613
+ let w = y[B], v = n.get(b.parentIndex), N = e.append("g").attr("class", "ishikawa-sub-group"), S = 0, E = 0, L = 0;
615
614
  if (b.depth % 2 == 0) {
616
- let k = _.y1 - _.y0;
617
- v = lt(_.x0, _.x1, k ? (w - _.y0) / k : 0.5), A = w, M = v - (b.childCount > 0 ? It + b.childCount * At : $t), G(B, v, w, M, w, "ishikawa-sub-branch", u), u && J(B, v, w, 1, 0, u), X(B, b.text, M, w, "ishikawa-label align", "end", f);
615
+ let k = v.y1 - v.y0;
616
+ S = lt(v.x0, v.x1, k ? (w - v.y0) / k : 0.5), E = w, L = S - (b.childCount > 0 ? It + b.childCount * At : $t), F(N, S, w, L, w, "ishikawa-sub-branch", u), u && Y(N, S, w, 1, 0, u), U(N, b.text, L, w, "ishikawa-label align", "end", p);
618
617
  } else {
619
- let k = _.childrenDrawn++;
620
- v = lt(_.x0, _.x1, (_.childCount - k) / (_.childCount + 1)), A = _.y0, M = v + h * ((w - A) / c), G(B, v, A, M, w, "ishikawa-sub-branch", u), u && J(B, v, A, v - M, A - w, u), X(B, b.text, M, w, o, "end", f);
618
+ let k = v.childrenDrawn++;
619
+ S = lt(v.x0, v.x1, (v.childCount - k) / (v.childCount + 1)), E = v.y0, L = S + h * ((w - E) / c), F(N, S, E, L, w, "ishikawa-sub-branch", u), u && Y(N, S, E, S - L, E - w, u), U(N, b.text, L, w, o, "end", p);
621
620
  }
622
- b.childCount > 0 && n.set(P, {
623
- x0: v,
624
- y0: A,
625
- x1: M,
621
+ b.childCount > 0 && n.set(B, {
622
+ x0: S,
623
+ y0: E,
624
+ x1: L,
626
625
  y1: w,
627
626
  childCount: b.childCount,
628
627
  childrenDrawn: 0
@@ -637,16 +636,16 @@ var _t = Q, K, vt = (K = class {
637
636
  }
638
637
  return a.join(`
639
638
  `);
640
- }, "wrapText"), X = /* @__PURE__ */ r((e, l, a, s, i, d, f) => {
641
- let u = Bt(l), p = f * 1.05, g = e.append("text").attr("class", i).attr("text-anchor", d).attr("x", a).attr("y", s - (u.length - 1) * p / 2);
642
- for (let [x, m] of u.entries()) g.append("tspan").attr("x", a).attr("dy", x === 0 ? 0 : p).text(m);
639
+ }, "wrapText"), U = /* @__PURE__ */ r((e, l, a, s, i, d, p) => {
640
+ let u = Bt(l), f = p * 1.05, g = e.append("text").attr("class", i).attr("text-anchor", d).attr("x", a).attr("y", s - (u.length - 1) * f / 2);
641
+ for (let [x, m] of u.entries()) g.append("tspan").attr("x", a).attr("dy", x === 0 ? 0 : f).text(m);
643
642
  return g;
644
- }, "drawMultilineText"), lt = /* @__PURE__ */ r((e, l, a) => e + (l - e) * a, "lerp"), G = /* @__PURE__ */ r((e, l, a, s, i, d, f) => {
645
- if (f) {
646
- let u = f.roughSvg.line(l, a, s, i, {
643
+ }, "drawMultilineText"), lt = /* @__PURE__ */ r((e, l, a) => e + (l - e) * a, "lerp"), F = /* @__PURE__ */ r((e, l, a, s, i, d, p) => {
644
+ if (p) {
645
+ let u = p.roughSvg.line(l, a, s, i, {
647
646
  roughness: 1.5,
648
- seed: f.seed,
649
- stroke: f.lineColor,
647
+ seed: p.seed,
648
+ stroke: p.lineColor,
650
649
  strokeWidth: 2
651
650
  });
652
651
  e.append(() => u).attr("class", d);
@@ -1,10 +1,10 @@
1
- import { K as gt, G as mt, W as xt, U as kt, i as _t, f as bt, p as n, Z as j, q as et, A as vt, H as $t } from "./index-Dpyqhws4.js";
2
- import { x as it } from "./arc-DZdQjcG8-C_2Dx6GQ.js";
3
- import { t as wt } from "./chunk-FMBD7UC4-D_tZ4Dxg-BUygZnCT.js";
4
- import { o as Mt, u as ot, s as Tt, a as At } from "./chunk-ND2GUHAM-Duw3k8MU-Dr8SD23L.js";
5
- var U = function() {
1
+ import { K as gt, G as mt, W as xt, U as kt, i as _t, f as bt, p as n, Z as j, q as et, A as vt, H as $t } from "./index-DfVKdDwj.js";
2
+ import { x as it } from "./arc-DZdQjcG8-CduayE88.js";
3
+ import { t as wt } from "./chunk-FMBD7UC4-D_tZ4Dxg-DwjoPGUH.js";
4
+ import { o as Mt, u as ot, s as Tt, a as At } from "./chunk-ND2GUHAM-Duw3k8MU-HmrdHLJ9.js";
5
+ var U = (function() {
6
6
  var t = /* @__PURE__ */ n(function(i, a, r, c) {
7
- for (r || (r = {}), c = i.length; c--; r[i[c]] = a) ;
7
+ for (r ||= {}, c = i.length; c--; r[i[c]] = a) ;
8
8
  return r;
9
9
  }, "o"), e = [
10
10
  6,
@@ -181,7 +181,7 @@ var U = function() {
181
181
  }
182
182
  n(J, "lex");
183
183
  for (var _, W, I, v, Y, S = {}, N, T, Q, O; ; ) {
184
- if (I = r[r.length - 1], this.defaultActions[I] ? v = this.defaultActions[I] : (_ ?? (_ = J()), v = k[I] && k[I][_]), v === void 0 || !v.length || !v[0]) {
184
+ if (I = r[r.length - 1], this.defaultActions[I] ? v = this.defaultActions[I] : (_ ??= J(), v = k[I] && k[I][_]), v === void 0 || !v.length || !v[0]) {
185
185
  var tt = "";
186
186
  for (N in O = [], k[I]) this.terminals_[N] && N > pt && O.push("'" + this.terminals_[N] + "'");
187
187
  tt = x.showPosition ? "Parse error on line " + (b + 1) + `:
@@ -223,7 +223,7 @@ Expecting ` + O.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : "Pars
223
223
  return !0;
224
224
  }, "parse")
225
225
  };
226
- f.lexer = /* @__PURE__ */ function() {
226
+ f.lexer = /* @__PURE__ */ (function() {
227
227
  return {
228
228
  EOF: 1,
229
229
  parseError: /* @__PURE__ */ n(function(i, a) {
@@ -464,12 +464,12 @@ Expecting ` + O.join(", ") + ", got '" + (this.terminals_[_] || _) + "'" : "Pars
464
464
  }
465
465
  }
466
466
  };
467
- }();
467
+ })();
468
468
  function g() {
469
469
  this.yy = {};
470
470
  }
471
471
  return n(g, "Parser"), g.prototype = f, f.Parser = g, new g();
472
- }();
472
+ })();
473
473
  U.parser = U;
474
474
  var Ct = U, P = "", H = [], B = [], L = [], Et = /* @__PURE__ */ n(function() {
475
475
  H.length = 0, B.length = 0, P = "", L.length = 0, $t();
@@ -510,7 +510,7 @@ var Ct = U, P = "", H = [], B = [], L = [], Et = /* @__PURE__ */ n(function() {
510
510
  let t = /* @__PURE__ */ n(function(l) {
511
511
  return L[l].processed;
512
512
  }, "compileTask"), e = !0;
513
- for (let [l, y] of L.entries()) t(l), e && (e = y.processed);
513
+ for (let [l, y] of L.entries()) t(l), e &&= y.processed;
514
514
  return e;
515
515
  }, "compileTasks"), rt = {
516
516
  getConfig: /* @__PURE__ */ n(() => j().journey, "getConfig"),
@@ -720,7 +720,7 @@ var Ct = U, P = "", H = [], B = [], L = [], Et = /* @__PURE__ */ n(function() {
720
720
  }), ht(l)(e.task, h, u.x, u.y, u.width, u.height, { class: "task" }, l, e.colour);
721
721
  }, "drawTask"), zt = /* @__PURE__ */ n(function(t, e) {
722
722
  Mt(t, e);
723
- }, "drawBackgroundRect"), ht = /* @__PURE__ */ function() {
723
+ }, "drawBackgroundRect"), ht = /* @__PURE__ */ (function() {
724
724
  function t(s, h, u, p, f, g, i, a) {
725
725
  y(h.append("text").attr("x", u + f / 2).attr("y", p + g / 2 + 5).style("font-color", a).style("text-anchor", "middle").text(s), i);
726
726
  }
@@ -744,7 +744,7 @@ var Ct = U, P = "", H = [], B = [], L = [], Et = /* @__PURE__ */ n(function() {
744
744
  return n(y, "_setTextAttrs"), function(s) {
745
745
  return s.textPlacement === "fo" ? l : s.textPlacement === "old" ? t : e;
746
746
  };
747
- }(), R = {
747
+ })(), R = {
748
748
  drawRect: Z,
749
749
  drawCircle: lt,
750
750
  drawSection: Nt,