@foris/ai-agent 0.3.0 → 0.4.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 (57) hide show
  1. package/dist/ai-agent.es.js +3 -3
  2. package/dist/ai-agent.umd.js +619 -609
  3. package/dist/ai-prompt-code-editor/PromptCodeEditor.d.ts +15 -0
  4. package/dist/ai-prompt-code-editor/index.d.ts +1 -0
  5. package/dist/ai-prompt-code-editor/promptCodeEditor.mock.d.ts +5 -0
  6. package/dist/arc-CYayZuAl.js +85 -0
  7. package/dist/{architectureDiagram-VXUJARFQ-CuFlEJrK.js → architectureDiagram-VXUJARFQ-CqFKxLlH.js} +3 -3
  8. package/dist/{blockDiagram-VD42YOAC-Ceho4Zhj.js → blockDiagram-VD42YOAC-DEi-xIcu.js} +46 -46
  9. package/dist/{c4Diagram-YG6GDRKO-zPB3iQJ7.js → c4Diagram-YG6GDRKO-mFZhX_-U.js} +3 -3
  10. package/dist/channel-CbDO3juL.js +5 -0
  11. package/dist/{chunk-4BX2VUAB-BZlHuf6l.js → chunk-4BX2VUAB-D5qkn5BA.js} +1 -1
  12. package/dist/{chunk-55IACEB6-Dr8rgvy_.js → chunk-55IACEB6-CR8xZK7z.js} +1 -1
  13. package/dist/{chunk-B4BG7PRW-Ccllo2e-.js → chunk-B4BG7PRW-Cm3F2ypm.js} +11 -11
  14. package/dist/{chunk-DI55MBZ5-DvAROTIr.js → chunk-DI55MBZ5-CxISwEU9.js} +44 -44
  15. package/dist/{chunk-FMBD7UC4-CVr83prI.js → chunk-FMBD7UC4-DZxSUJCY.js} +1 -1
  16. package/dist/{chunk-QN33PNHL-nSyFq8_s.js → chunk-QN33PNHL-5NUdQ31M.js} +1 -1
  17. package/dist/{chunk-QZHKN3VN-Dg8JYP6e.js → chunk-QZHKN3VN-CSeHgX9s.js} +1 -1
  18. package/dist/{chunk-TZMSLE5B-Bmj6LGNW.js → chunk-TZMSLE5B-DfqMo2XK.js} +1 -1
  19. package/dist/{classDiagram-2ON5EDUG-DAkxtl6o.js → classDiagram-2ON5EDUG-6wC7c07U.js} +6 -6
  20. package/dist/{classDiagram-v2-WZHVMYZB-DAkxtl6o.js → classDiagram-v2-WZHVMYZB-6wC7c07U.js} +6 -6
  21. package/dist/code-block-QI2IAROF-zqFu2qJj.js +2812 -0
  22. package/dist/{cose-bilkent-S5V4N54A-DwRYWoaW.js → cose-bilkent-S5V4N54A-BzL4MMWZ.js} +2 -2
  23. package/dist/{dagre-6UL2VRFP-imN1Fyg8.js → dagre-6UL2VRFP-CwTDE2RX.js} +3 -3
  24. package/dist/{diagram-PSM6KHXK-DAIDeBLn.js → diagram-PSM6KHXK-UeQhynP7.js} +47 -47
  25. package/dist/{diagram-QEK2KX5R-DQFy-qK9.js → diagram-QEK2KX5R-DZy1cp9G.js} +13 -13
  26. package/dist/{diagram-S2PKOQOG-Hlk0Nx_Y.js → diagram-S2PKOQOG-DyT7Ss8-.js} +16 -16
  27. package/dist/{erDiagram-Q2GNP2WA-C8PZPSaf.js → erDiagram-Q2GNP2WA-CpzaErVm.js} +5 -5
  28. package/dist/{flowDiagram-NV44I4VS-CgTiIFnt.js → flowDiagram-NV44I4VS-BHP6h-eN.js} +6 -6
  29. package/dist/{ganttDiagram-JELNMOA3-DzYZEAE_.js → ganttDiagram-JELNMOA3-0qqei9Bz.js} +3 -3
  30. package/dist/{gitGraphDiagram-NY62KEGX-CPwI-Uag.js → gitGraphDiagram-NY62KEGX-DGukWnfa.js} +16 -16
  31. package/dist/hooks/useCodeTransform.d.ts +13 -0
  32. package/dist/{index-C2DJ8qoy.js → index-Zd10d_CE.js} +18512 -11461
  33. package/dist/index.d.ts +2 -2
  34. package/dist/{infoDiagram-WHAUD3N6-CcN7ZNYI.js → infoDiagram-WHAUD3N6-CRWuQBon.js} +2 -2
  35. package/dist/{journeyDiagram-XKPGCS4Q-BACao6jz.js → journeyDiagram-XKPGCS4Q-Bl-asDPd.js} +5 -5
  36. package/dist/{kanban-definition-3W4ZIXB7-Jb7Xwf92.js → kanban-definition-3W4ZIXB7-IdguZzXg.js} +39 -39
  37. package/dist/{linear-CxGB80S5.js → linear-CRqCHTKs.js} +1 -1
  38. package/dist/{mermaid-NA5CF7SZ-DekDSZe_.js → mermaid-NA5CF7SZ-CkTMfgBy.js} +1 -1
  39. package/dist/{mermaid.core-xMGW442o.js → mermaid.core-DyFxH-Px.js} +87 -87
  40. package/dist/{mindmap-definition-VGOIOE7T-UHZgRHb7.js → mindmap-definition-VGOIOE7T-C8jP5oWr.js} +69 -69
  41. package/dist/{pieDiagram-ADFJNKIX-CHrTFTbw.js → pieDiagram-ADFJNKIX-DuP0zFKX.js} +23 -23
  42. package/dist/{quadrantDiagram-AYHSOK5B-CDfhMB18.js → quadrantDiagram-AYHSOK5B-ACKBMWQA.js} +3 -3
  43. package/dist/{requirementDiagram-UZGBJVZJ-C0aeVQh6.js → requirementDiagram-UZGBJVZJ-DAH6cyPg.js} +4 -4
  44. package/dist/{sankeyDiagram-TZEHDZUN-kjxRgXd2.js → sankeyDiagram-TZEHDZUN-DpLK8yNI.js} +2 -2
  45. package/dist/{sequenceDiagram-WL72ISMW-Bs0jyVuH.js → sequenceDiagram-WL72ISMW-CslcsjON.js} +4 -4
  46. package/dist/{stateDiagram-FKZM4ZOC-CAWwlh9R.js → stateDiagram-FKZM4ZOC-oVuJ6JZY.js} +12 -12
  47. package/dist/{stateDiagram-v2-4FDKWEC3-9TYlTzc3.js → stateDiagram-v2-4FDKWEC3-Dw3L9jZX.js} +5 -5
  48. package/dist/style.css +1 -1
  49. package/dist/tailwind.css +52 -0
  50. package/dist/{timeline-definition-IT6M3QCI-DrPozOxH.js → timeline-definition-IT6M3QCI-D_aGDXh0.js} +47 -47
  51. package/dist/{xychartDiagram-PRI3JC2R-BkO8dJff.js → xychartDiagram-PRI3JC2R-u3osfT09.js} +35 -35
  52. package/package.json +2 -1
  53. package/dist/ai-input-action/InputAction.d.ts +0 -8
  54. package/dist/ai-input-action/index.d.ts +0 -1
  55. package/dist/arc-DN1xn8kz.js +0 -85
  56. package/dist/channel-BC4mWQQF.js +0 -5
  57. package/dist/code-block-QI2IAROF-DN-BnDmt.js +0 -9263
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { type BundledLanguage } from 'shiki';
3
+ interface PromptCodeEditorProps {
4
+ api: string;
5
+ headers?: any;
6
+ language: BundledLanguage;
7
+ disabled?: boolean;
8
+ inputLabel?: string;
9
+ inputPlaceholder?: string;
10
+ codeBlockLabel?: string;
11
+ codeBlockValue: string;
12
+ onCodeChange?: (code: string) => void;
13
+ }
14
+ export declare const PromptCodeEditor: React.FC<PromptCodeEditorProps>;
15
+ export {};
@@ -0,0 +1 @@
1
+ export { PromptCodeEditor } from './PromptCodeEditor';
@@ -0,0 +1,5 @@
1
+ export declare const MOCK_INITIAL_CODE = "{\n \"id\": 1,\n \"name\": \"test\",\n \"value\": 100\n}";
2
+ export declare const MOCK_RESPONSE: {
3
+ codeWithAnnotations: string;
4
+ modifiedCode: string;
5
+ };
@@ -0,0 +1,85 @@
1
+ import { M as ln, N as an, O as y, P as tn, Q as Y, R as O, S as _, T as un, V as rn, W as j, X as o, Y as Q, Z as sn, $ as on, a0 as fn } from "./mermaid.core-DyFxH-Px.js";
2
+ function cn(l) {
3
+ return l.innerRadius;
4
+ }
5
+ function yn(l) {
6
+ return l.outerRadius;
7
+ }
8
+ function gn(l) {
9
+ return l.startAngle;
10
+ }
11
+ function dn(l) {
12
+ return l.endAngle;
13
+ }
14
+ function mn(l) {
15
+ return l && l.padAngle;
16
+ }
17
+ function pn(l, h, D, S, v, R, V, a) {
18
+ var E = D - l, i = S - h, n = V - v, d = a - R, u = d * E - n * i;
19
+ if (!(u * u < y))
20
+ return u = (n * (h - R) - d * (l - v)) / u, [l + u * E, h + u * i];
21
+ }
22
+ function H(l, h, D, S, v, R, V) {
23
+ var a = l - D, E = h - S, i = (V ? R : -R) / j(a * a + E * E), n = i * E, d = -i * a, u = l + n, s = h + d, f = D + n, c = S + d, W = (u + f) / 2, t = (s + c) / 2, m = f - u, g = c - s, A = m * m + g * g, T = v - R, P = u * c - f * s, I = (g < 0 ? -1 : 1) * j(fn(0, T * T * A - P * P)), M = (P * g - m * I) / A, N = (-P * m - g * I) / A, w = (P * g + m * I) / A, p = (-P * m + g * I) / A, x = M - W, e = N - t, r = w - W, X = p - t;
24
+ return x * x + e * e > r * r + X * X && (M = w, N = p), {
25
+ cx: M,
26
+ cy: N,
27
+ x01: -n,
28
+ y01: -d,
29
+ x11: M * (v / T - 1),
30
+ y11: N * (v / T - 1)
31
+ };
32
+ }
33
+ function hn() {
34
+ var l = cn, h = yn, D = Q(0), S = null, v = gn, R = dn, V = mn, a = null, E = ln(i);
35
+ function i() {
36
+ var n, d, u = +l.apply(this, arguments), s = +h.apply(this, arguments), f = v.apply(this, arguments) - an, c = R.apply(this, arguments) - an, W = un(c - f), t = c > f;
37
+ if (a || (a = n = E()), s < u && (d = s, s = u, u = d), !(s > y))
38
+ a.moveTo(0, 0);
39
+ else if (W > tn - y)
40
+ a.moveTo(s * Y(f), s * O(f)), a.arc(0, 0, s, f, c, !t), u > y && (a.moveTo(u * Y(c), u * O(c)), a.arc(0, 0, u, c, f, t));
41
+ else {
42
+ var m = f, g = c, A = f, T = c, P = W, I = W, M = V.apply(this, arguments) / 2, N = M > y && (S ? +S.apply(this, arguments) : j(u * u + s * s)), w = _(un(s - u) / 2, +D.apply(this, arguments)), p = w, x = w, e, r;
43
+ if (N > y) {
44
+ var X = sn(N / u * O(M)), z = sn(N / s * O(M));
45
+ (P -= X * 2) > y ? (X *= t ? 1 : -1, A += X, T -= X) : (P = 0, A = T = (f + c) / 2), (I -= z * 2) > y ? (z *= t ? 1 : -1, m += z, g -= z) : (I = 0, m = g = (f + c) / 2);
46
+ }
47
+ var Z = s * Y(m), $ = s * O(m), B = u * Y(T), C = u * O(T);
48
+ if (w > y) {
49
+ var F = s * Y(g), G = s * O(g), J = u * Y(A), K = u * O(A), q;
50
+ if (W < rn)
51
+ if (q = pn(Z, $, J, K, F, G, B, C)) {
52
+ var L = Z - q[0], U = $ - q[1], k = F - q[0], b = G - q[1], nn = 1 / O(on((L * k + U * b) / (j(L * L + U * U) * j(k * k + b * b))) / 2), en = j(q[0] * q[0] + q[1] * q[1]);
53
+ p = _(w, (u - en) / (nn - 1)), x = _(w, (s - en) / (nn + 1));
54
+ } else
55
+ p = x = 0;
56
+ }
57
+ I > y ? x > y ? (e = H(J, K, Z, $, s, x, t), r = H(F, G, B, C, s, x, t), a.moveTo(e.cx + e.x01, e.cy + e.y01), x < w ? a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, x, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, s, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), !t), a.arc(r.cx, r.cy, x, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : (a.moveTo(Z, $), a.arc(0, 0, s, m, g, !t)) : a.moveTo(Z, $), !(u > y) || !(P > y) ? a.lineTo(B, C) : p > y ? (e = H(B, C, F, G, u, -p, t), r = H(Z, $, J, K, u, -p, t), a.lineTo(e.cx + e.x01, e.cy + e.y01), p < w ? a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(r.y01, r.x01), !t) : (a.arc(e.cx, e.cy, p, o(e.y01, e.x01), o(e.y11, e.x11), !t), a.arc(0, 0, u, o(e.cy + e.y11, e.cx + e.x11), o(r.cy + r.y11, r.cx + r.x11), t), a.arc(r.cx, r.cy, p, o(r.y11, r.x11), o(r.y01, r.x01), !t))) : a.arc(0, 0, u, T, A, t);
58
+ }
59
+ if (a.closePath(), n)
60
+ return a = null, n + "" || null;
61
+ }
62
+ return i.centroid = function() {
63
+ var n = (+l.apply(this, arguments) + +h.apply(this, arguments)) / 2, d = (+v.apply(this, arguments) + +R.apply(this, arguments)) / 2 - rn / 2;
64
+ return [Y(d) * n, O(d) * n];
65
+ }, i.innerRadius = function(n) {
66
+ return arguments.length ? (l = typeof n == "function" ? n : Q(+n), i) : l;
67
+ }, i.outerRadius = function(n) {
68
+ return arguments.length ? (h = typeof n == "function" ? n : Q(+n), i) : h;
69
+ }, i.cornerRadius = function(n) {
70
+ return arguments.length ? (D = typeof n == "function" ? n : Q(+n), i) : D;
71
+ }, i.padRadius = function(n) {
72
+ return arguments.length ? (S = n == null ? null : typeof n == "function" ? n : Q(+n), i) : S;
73
+ }, i.startAngle = function(n) {
74
+ return arguments.length ? (v = typeof n == "function" ? n : Q(+n), i) : v;
75
+ }, i.endAngle = function(n) {
76
+ return arguments.length ? (R = typeof n == "function" ? n : Q(+n), i) : R;
77
+ }, i.padAngle = function(n) {
78
+ return arguments.length ? (V = typeof n == "function" ? n : Q(+n), i) : V;
79
+ }, i.context = function(n) {
80
+ return arguments.length ? (a = n ?? null, i) : a;
81
+ }, i;
82
+ }
83
+ export {
84
+ hn as d
85
+ };
@@ -1,8 +1,8 @@
1
- import { C as Ze, s as ke, g as qe, n as Qe, o as Je, b as Ke, c as je, _ as dt, t as _e, D as tr, E as er, ax as rr, ay as ir, l as Re, j as ar, H as nr, W as or, r as sr, az as ye, d as Ee, aA as ve, i as hr } from "./mermaid.core-xMGW442o.js";
2
- import { p as lr } from "./chunk-4BX2VUAB-BZlHuf6l.js";
1
+ import { E as Ze, s as ke, g as qe, o as Qe, p as Je, b as Ke, c as je, _ as dt, v as _e, F as tr, G as er, ax as rr, ay as ir, l as Re, j as ar, K as nr, ad as or, t as sr, az as ye, d as Ee, aA as ve, i as hr } from "./mermaid.core-DyFxH-Px.js";
2
+ import { p as lr } from "./chunk-4BX2VUAB-D5qkn5BA.js";
3
3
  import { p as fr } from "./treemap-KMMF4GRG-D_L55G0b.js";
4
4
  import { c as Se } from "./cytoscape.esm-ClN43hhW.js";
5
- import { c as me, g as cr } from "./index-C2DJ8qoy.js";
5
+ import { c as me, g as cr } from "./index-Zd10d_CE.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  var Fe = { exports: {} }, ue = { exports: {} }, de = { exports: {} }, we;
@@ -1,8 +1,8 @@
1
- import { g as Ce } from "./chunk-FMBD7UC4-CVr83prI.js";
2
- import { aG as Ie, aH as Be, aI as Ae, aJ as Jt, aK as Qt, aL as Rt, aM as Oe, aN as Re, aO as te, aP as Tt, aQ as gt, aR as ee, aS as ze, aT as Me, aU as je, aV as Fe, aW as Pe, aX as We, aY as Ye, _ as g, d as z, l as L, j as R, i as mt, aZ as Ke, E as it, a_ as Z, az as re, ar as Ue, u as rt, a$ as He, R as Xe, N as Ve, k as Ge, t as $e, A as Ze, S as qe, b0 as Je, b1 as Lt, e as Qe } from "./mermaid.core-xMGW442o.js";
1
+ import { g as Ce } from "./chunk-FMBD7UC4-DZxSUJCY.js";
2
+ import { aG as Ie, aH as Be, aI as Oe, aJ as Jt, aK as Qt, aL as Rt, aM as Ae, aN as Re, aO as te, aP as Tt, aQ as gt, aR as ee, aS as ze, aT as Me, aU as je, aV as Fe, aW as Pe, aX as We, aY as Ye, _ as g, d as z, l as L, j as R, i as mt, aZ as Ke, G as it, a_ as Z, az as re, ar as Ue, u as rt, a$ as He, a9 as Xe, a4 as Ve, k as Ge, v as $e, B as Ze, aa as qe, b0 as Je, b1 as Lt, e as Qe } from "./mermaid.core-DyFxH-Px.js";
3
3
  import { G as tr } from "./graph-DB2UxkYH.js";
4
- import { c as er } from "./channel-BC4mWQQF.js";
5
- import "./index-C2DJ8qoy.js";
4
+ import { c as er } from "./channel-CbDO3juL.js";
5
+ import "./index-Zd10d_CE.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  function rr(e, t) {
@@ -11,7 +11,7 @@ function rr(e, t) {
11
11
  return e;
12
12
  }
13
13
  function ae(e) {
14
- return Ie(e) ? Be(e) : Ae(e);
14
+ return Ie(e) ? Be(e) : Oe(e);
15
15
  }
16
16
  function ar(e, t) {
17
17
  return e && Jt(t, ae(t), e);
@@ -64,7 +64,7 @@ var Mt = Rt ? Rt.prototype : void 0, jt = Mt ? Mt.valueOf : void 0;
64
64
  function br(e) {
65
65
  return jt ? Object(jt.call(e)) : {};
66
66
  }
67
- var wr = "[object Boolean]", mr = "[object Date]", Lr = "[object Map]", Sr = "[object Number]", vr = "[object RegExp]", Er = "[object Set]", _r = "[object String]", kr = "[object Symbol]", Tr = "[object ArrayBuffer]", Dr = "[object DataView]", Nr = "[object Float32Array]", Cr = "[object Float64Array]", Ir = "[object Int8Array]", Br = "[object Int16Array]", Ar = "[object Int32Array]", Or = "[object Uint8Array]", Rr = "[object Uint8ClampedArray]", zr = "[object Uint16Array]", Mr = "[object Uint32Array]";
67
+ var wr = "[object Boolean]", mr = "[object Date]", Lr = "[object Map]", Sr = "[object Number]", vr = "[object RegExp]", Er = "[object Set]", _r = "[object String]", kr = "[object Symbol]", Tr = "[object ArrayBuffer]", Dr = "[object DataView]", Nr = "[object Float32Array]", Cr = "[object Float64Array]", Ir = "[object Int8Array]", Br = "[object Int16Array]", Or = "[object Int32Array]", Ar = "[object Uint8Array]", Rr = "[object Uint8ClampedArray]", zr = "[object Uint16Array]", Mr = "[object Uint32Array]";
68
68
  function jr(e, t, a) {
69
69
  var i = e.constructor;
70
70
  switch (t) {
@@ -79,12 +79,12 @@ function jr(e, t, a) {
79
79
  case Cr:
80
80
  case Ir:
81
81
  case Br:
82
- case Ar:
83
82
  case Or:
83
+ case Ar:
84
84
  case Rr:
85
85
  case zr:
86
86
  case Mr:
87
- return Oe(e, a);
87
+ return Ae(e, a);
88
88
  case Lr:
89
89
  return new i();
90
90
  case Sr:
@@ -195,8 +195,8 @@ var St = function() {
195
195
  w.getLogger().debug("Rule: LABEL link: ", c[f - 3], c[f - 1], c[f]), this.$ = { edgeTypeStr: c[f], label: c[f - 1] };
196
196
  break;
197
197
  case 18:
198
- const M = parseInt(c[f]), O = w.generateId();
199
- this.$ = { id: O, type: "space", label: "", width: M, children: [] };
198
+ const M = parseInt(c[f]), A = w.generateId();
199
+ this.$ = { id: A, type: "space", label: "", width: M, children: [] };
200
200
  break;
201
201
  case 23:
202
202
  w.getLogger().debug("Rule: (nodeStatement link node) ", c[f - 2], c[f - 1], c[f], " typestr: ", c[f - 1].edgeTypeStr);
@@ -265,7 +265,7 @@ var St = function() {
265
265
  }
266
266
  }, "parseError"),
267
267
  parse: /* @__PURE__ */ g(function(y) {
268
- var u = this, p = [0], w = [], v = [null], c = [], _ = this.table, f = "", M = 0, O = 0, H = 2, W = 1, J = c.slice.call(arguments, 1), j = Object.create(this.lexer), Q = { yy: {} };
268
+ var u = this, p = [0], w = [], v = [null], c = [], _ = this.table, f = "", M = 0, A = 0, H = 2, W = 1, J = c.slice.call(arguments, 1), j = Object.create(this.lexer), Q = { yy: {} };
269
269
  for (var yt in this.yy)
270
270
  Object.prototype.hasOwnProperty.call(this.yy, yt) && (Q.yy[yt] = this.yy[yt]);
271
271
  j.setInput(y, Q.yy), Q.yy.lexer = j, Q.yy.parser = this, typeof j.yylloc > "u" && (j.yylloc = {});
@@ -277,13 +277,13 @@ var St = function() {
277
277
  p.length = p.length - 2 * K, v.length = v.length - K, c.length = c.length - K;
278
278
  }
279
279
  g(Ne, "popStack");
280
- function At() {
280
+ function Ot() {
281
281
  var K;
282
282
  return K = w.pop() || j.lex() || W, typeof K != "number" && (K instanceof Array && (w = K, K = w.pop()), K = u.symbols_[K] || K), K;
283
283
  }
284
- g(At, "lex");
285
- for (var Y, tt, X, bt, et = {}, nt, q, Ot, lt; ; ) {
286
- if (tt = p[p.length - 1], this.defaultActions[tt] ? X = this.defaultActions[tt] : ((Y === null || typeof Y > "u") && (Y = At()), X = _[tt] && _[tt][Y]), typeof X > "u" || !X.length || !X[0]) {
284
+ g(Ot, "lex");
285
+ for (var Y, tt, X, bt, et = {}, nt, q, At, lt; ; ) {
286
+ if (tt = p[p.length - 1], this.defaultActions[tt] ? X = this.defaultActions[tt] : ((Y === null || typeof Y > "u") && (Y = Ot()), X = _[tt] && _[tt][Y]), typeof X > "u" || !X.length || !X[0]) {
287
287
  var wt = "";
288
288
  lt = [];
289
289
  for (nt in _[tt])
@@ -302,7 +302,7 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : wt =
302
302
  throw new Error("Parse Error: multiple actions possible at state: " + tt + ", token: " + Y);
303
303
  switch (X[0]) {
304
304
  case 1:
305
- p.push(Y), v.push(j.yytext), c.push(j.yylloc), p.push(X[1]), Y = null, O = j.yyleng, f = j.yytext, M = j.yylineno, xt = j.yylloc;
305
+ p.push(Y), v.push(j.yytext), c.push(j.yylloc), p.push(X[1]), Y = null, A = j.yyleng, f = j.yytext, M = j.yylineno, xt = j.yylloc;
306
306
  break;
307
307
  case 2:
308
308
  if (q = this.productions_[X[1]][1], et.$ = v[v.length - q], et._$ = {
@@ -315,7 +315,7 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : wt =
315
315
  c[c.length - 1].range[1]
316
316
  ]), bt = this.performAction.apply(et, [
317
317
  f,
318
- O,
318
+ A,
319
319
  M,
320
320
  Q.yy,
321
321
  X[1],
@@ -323,7 +323,7 @@ Expecting ` + lt.join(", ") + ", got '" + (this.terminals_[Y] || Y) + "'" : wt =
323
323
  c
324
324
  ].concat(J)), typeof bt < "u")
325
325
  return bt;
326
- q && (p = p.slice(0, -1 * q * 2), v = v.slice(0, -1 * q), c = c.slice(0, -1 * q)), p.push(this.productions_[X[1]][0]), v.push(et.$), c.push(et._$), Ot = _[p[p.length - 2]][p[p.length - 1]], p.push(Ot);
326
+ q && (p = p.slice(0, -1 * q * 2), v = v.slice(0, -1 * q), c = c.slice(0, -1 * q)), p.push(this.productions_[X[1]][0]), v.push(et.$), c.push(et._$), At = _[p[p.length - 2]][p[p.length - 1]], p.push(At);
327
327
  break;
328
328
  case 3:
329
329
  return !0;
@@ -870,14 +870,14 @@ var Kt = 0, _a = /* @__PURE__ */ g(() => (Kt++, "id-" + Math.random().toString(3
870
870
  return t ? t.columns ? t.columns : t.children ? t.children.length : -1 : -1;
871
871
  }, "getColumns"), Da = /* @__PURE__ */ g(() => [...G.values()], "getBlocksFlat"), Na = /* @__PURE__ */ g(() => Nt || [], "getBlocks"), Ca = /* @__PURE__ */ g(() => Dt, "getEdges"), Ia = /* @__PURE__ */ g((e) => G.get(e), "getBlock"), Ba = /* @__PURE__ */ g((e) => {
872
872
  G.set(e.id, e);
873
- }, "setBlock"), Aa = /* @__PURE__ */ g(() => L, "getLogger"), Oa = /* @__PURE__ */ g(function() {
873
+ }, "setBlock"), Oa = /* @__PURE__ */ g(() => L, "getLogger"), Aa = /* @__PURE__ */ g(function() {
874
874
  return ut;
875
875
  }, "getClasses"), Ra = {
876
876
  getConfig: /* @__PURE__ */ g(() => it().block, "getConfig"),
877
877
  typeStr2Type: he,
878
878
  edgeTypeStr2Type: ge,
879
879
  edgeStrToEdgeData: ue,
880
- getLogger: Aa,
880
+ getLogger: Oa,
881
881
  getBlocksFlat: Da,
882
882
  getBlocks: Na,
883
883
  getEdges: Ca,
@@ -885,7 +885,7 @@ var Kt = 0, _a = /* @__PURE__ */ g(() => (Kt++, "id-" + Math.random().toString(3
885
885
  getBlock: Ia,
886
886
  setBlock: Ba,
887
887
  getColumns: Ta,
888
- getClasses: Oa,
888
+ getClasses: Aa,
889
889
  clear: Ea,
890
890
  generateId: _a
891
891
  }, za = Ra, ct = /* @__PURE__ */ g((e, t) => {
@@ -1036,7 +1036,7 @@ var Kt = 0, _a = /* @__PURE__ */ g(() => (Kt++, "id-" + Math.random().toString(3
1036
1036
  circle: Xa,
1037
1037
  cross: Va,
1038
1038
  barb: Ga
1039
- }, Za = Fa, Zt, qt, A = ((qt = (Zt = z()) == null ? void 0 : Zt.block) == null ? void 0 : qt.padding) ?? 8;
1039
+ }, Za = Fa, Zt, qt, O = ((qt = (Zt = z()) == null ? void 0 : Zt.block) == null ? void 0 : qt.padding) ?? 8;
1040
1040
  function de(e, t) {
1041
1041
  if (e === 0 || !Number.isInteger(e))
1042
1042
  throw new Error("Columns must be an integer !== 0.");
@@ -1095,7 +1095,7 @@ function dt(e, t, a = 0, i = 0) {
1095
1095
  for (const v of e.children)
1096
1096
  v.size && (L.debug(
1097
1097
  `abc95 Setting size of children of ${e.id} id=${v.id} ${l} ${s} ${JSON.stringify(v.size)}`
1098
- ), v.size.width = l * (v.widthInColumns ?? 1) + A * ((v.widthInColumns ?? 1) - 1), v.size.height = s, v.size.x = 0, v.size.y = 0, L.debug(
1098
+ ), v.size.width = l * (v.widthInColumns ?? 1) + O * ((v.widthInColumns ?? 1) - 1), v.size.height = s, v.size.x = 0, v.size.y = 0, L.debug(
1099
1099
  `abc95 updating size of ${e.id} children child:${v.id} maxWidth:${l} maxHeight:${s}`
1100
1100
  ));
1101
1101
  for (const v of e.children)
@@ -1107,13 +1107,13 @@ function dt(e, t, a = 0, i = 0) {
1107
1107
  let y = e.children.length;
1108
1108
  T > 0 && T < D && (y = T);
1109
1109
  const u = Math.ceil(D / y);
1110
- let p = y * (l + A) + A, w = u * (s + A) + A;
1110
+ let p = y * (l + O) + O, w = u * (s + O) + O;
1111
1111
  if (p < a) {
1112
1112
  L.debug(
1113
1113
  `Detected to small sibling: abc95 ${e.id} siblingWidth ${a} siblingHeight ${i} width ${p}`
1114
1114
  ), p = a, w = i;
1115
- const v = (a - y * A - A) / y, c = (i - u * A - A) / u;
1116
- L.debug("Size indata abc88", e.id, "childWidth", v, "maxWidth", l), L.debug("Size indata abc88", e.id, "childHeight", c, "maxHeight", s), L.debug("Size indata abc88 xSize", y, "padding", A);
1115
+ const v = (a - y * O - O) / y, c = (i - u * O - O) / u;
1116
+ L.debug("Size indata abc88", e.id, "childWidth", v, "maxWidth", l), L.debug("Size indata abc88", e.id, "childHeight", c, "maxHeight", s), L.debug("Size indata abc88 xSize", y, "padding", O);
1117
1117
  for (const _ of e.children)
1118
1118
  _.size && (_.size.width = v, _.size.height = c, _.size.x = 0, _.size.y = 0);
1119
1119
  }
@@ -1123,7 +1123,7 @@ function dt(e, t, a = 0, i = 0) {
1123
1123
  p = ((x = e == null ? void 0 : e.size) == null ? void 0 : x.width) || 0;
1124
1124
  const v = T > 0 ? Math.min(e.children.length, T) : e.children.length;
1125
1125
  if (v > 0) {
1126
- const c = (p - v * A - A) / v;
1126
+ const c = (p - v * O - O) / v;
1127
1127
  L.debug("abc95 (growing to fit) width", e.id, p, (b = e.size) == null ? void 0 : b.width, c);
1128
1128
  for (const _ of e.children)
1129
1129
  _.size && (_.size.width = c);
@@ -1154,24 +1154,24 @@ function Ct(e, t) {
1154
1154
  const a = e.columns ?? -1;
1155
1155
  if (L.debug("layoutBlocks columns abc95", e.id, "=>", a, e), e.children && // find max width of children
1156
1156
  e.children.length > 0) {
1157
- const y = ((n = (r = e == null ? void 0 : e.children[0]) == null ? void 0 : r.size) == null ? void 0 : n.width) ?? 0, u = e.children.length * y + (e.children.length - 1) * A;
1157
+ const y = ((n = (r = e == null ? void 0 : e.children[0]) == null ? void 0 : r.size) == null ? void 0 : n.width) ?? 0, u = e.children.length * y + (e.children.length - 1) * O;
1158
1158
  L.debug("widthOfChildren 88", u, "posX");
1159
1159
  let p = 0;
1160
1160
  L.debug("abc91 block?.size?.x", e.id, (o = e == null ? void 0 : e.size) == null ? void 0 : o.x);
1161
- let w = (d = e == null ? void 0 : e.size) != null && d.x ? ((h = e == null ? void 0 : e.size) == null ? void 0 : h.x) + (-((x = e == null ? void 0 : e.size) == null ? void 0 : x.width) / 2 || 0) : -A, v = 0;
1161
+ let w = (d = e == null ? void 0 : e.size) != null && d.x ? ((h = e == null ? void 0 : e.size) == null ? void 0 : h.x) + (-((x = e == null ? void 0 : e.size) == null ? void 0 : x.width) / 2 || 0) : -O, v = 0;
1162
1162
  for (const c of e.children) {
1163
1163
  const _ = e;
1164
1164
  if (!c.size)
1165
1165
  continue;
1166
- const { width: f, height: M } = c.size, { px: O, py: H } = de(a, p);
1167
- if (H != v && (v = H, w = (b = e == null ? void 0 : e.size) != null && b.x ? ((m = e == null ? void 0 : e.size) == null ? void 0 : m.x) + (-((S = e == null ? void 0 : e.size) == null ? void 0 : S.width) / 2 || 0) : -A, L.debug("New row in layout for block", e.id, " and child ", c.id, v)), L.debug(
1168
- `abc89 layout blocks (child) id: ${c.id} Pos: ${p} (px, py) ${O},${H} (${(k = _ == null ? void 0 : _.size) == null ? void 0 : k.x},${(E = _ == null ? void 0 : _.size) == null ? void 0 : E.y}) parent: ${_.id} width: ${f}${A}`
1166
+ const { width: f, height: M } = c.size, { px: A, py: H } = de(a, p);
1167
+ if (H != v && (v = H, w = (b = e == null ? void 0 : e.size) != null && b.x ? ((m = e == null ? void 0 : e.size) == null ? void 0 : m.x) + (-((S = e == null ? void 0 : e.size) == null ? void 0 : S.width) / 2 || 0) : -O, L.debug("New row in layout for block", e.id, " and child ", c.id, v)), L.debug(
1168
+ `abc89 layout blocks (child) id: ${c.id} Pos: ${p} (px, py) ${A},${H} (${(k = _ == null ? void 0 : _.size) == null ? void 0 : k.x},${(E = _ == null ? void 0 : _.size) == null ? void 0 : E.y}) parent: ${_.id} width: ${f}${O}`
1169
1169
  ), _.size) {
1170
1170
  const J = f / 2;
1171
- c.size.x = w + A + J, L.debug(
1172
- `abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${w} new startingPosX${c.size.x} ${J} padding=${A} width=${f} halfWidth=${J} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${f * ((c == null ? void 0 : c.widthInColumns) ?? 1) / 2}`
1173
- ), w = c.size.x + J, c.size.y = _.size.y - _.size.height / 2 + H * (M + A) + M / 2 + A, L.debug(
1174
- `abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${w}${A}${J}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${f * ((c == null ? void 0 : c.widthInColumns) ?? 1) / 2}`
1171
+ c.size.x = w + O + J, L.debug(
1172
+ `abc91 layout blocks (calc) px, pyid:${c.id} startingPos=X${w} new startingPosX${c.size.x} ${J} padding=${O} width=${f} halfWidth=${J} => x:${c.size.x} y:${c.size.y} ${c.widthInColumns} (width * (child?.w || 1)) / 2 ${f * ((c == null ? void 0 : c.widthInColumns) ?? 1) / 2}`
1173
+ ), w = c.size.x + J, c.size.y = _.size.y - _.size.height / 2 + H * (M + O) + M / 2 + O, L.debug(
1174
+ `abc88 layout blocks (calc) px, pyid:${c.id}startingPosX${w}${O}${J}=>x:${c.size.x}y:${c.size.y}${c.widthInColumns}(width * (child?.w || 1)) / 2${f * ((c == null ? void 0 : c.widthInColumns) ?? 1) / 2}`
1175
1175
  );
1176
1176
  }
1177
1177
  c.children && Ct(c);
@@ -2017,7 +2017,7 @@ var Ns = /* @__PURE__ */ g(async (e, t) => {
2017
2017
  return r.attr("class", t.class), n.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l + s).attr("width", i.width + t.padding + s * 2).attr("height", i.height + t.padding + s * 2), o.attr("style", t.style).attr("rx", t.rx).attr("ry", t.ry).attr("r", i.width / 2 + l).attr("width", i.width + t.padding).attr("height", i.height + t.padding), L.info("DoubleCircle main"), B(t, n), t.intersect = function(d) {
2018
2018
  return L.info("DoubleCircle intersect", t, i.width / 2 + l + s, d), I.circle(t, i.width / 2 + l + s, d);
2019
2019
  }, a;
2020
- }, "doublecircle"), As = /* @__PURE__ */ g(async (e, t) => {
2020
+ }, "doublecircle"), Os = /* @__PURE__ */ g(async (e, t) => {
2021
2021
  const { shapeSvg: a, bbox: i } = await F(
2022
2022
  e,
2023
2023
  t,
@@ -2038,7 +2038,7 @@ var Ns = /* @__PURE__ */ g(async (e, t) => {
2038
2038
  return n.attr("style", t.style), B(t, n), t.intersect = function(o) {
2039
2039
  return I.polygon(t, r, o);
2040
2040
  }, a;
2041
- }, "subroutine"), Os = /* @__PURE__ */ g((e, t) => {
2041
+ }, "subroutine"), As = /* @__PURE__ */ g((e, t) => {
2042
2042
  const a = e.insert("g").attr("class", "node default").attr("id", t.domId || t.id), i = a.insert("circle", ":first-child");
2043
2043
  return i.attr("class", "state-start").attr("r", 7).attr("width", 14).attr("height", 14), B(t, i), t.intersect = function(l) {
2044
2044
  return I.circle(t, 7, l);
@@ -2095,12 +2095,12 @@ var Ns = /* @__PURE__ */ g(async (e, t) => {
2095
2095
  !0
2096
2096
  )
2097
2097
  );
2098
- let O = M.getBBox();
2098
+ let A = M.getBBox();
2099
2099
  if (Z(z().flowchart.htmlLabels)) {
2100
2100
  const H = M.children[0], W = R(M);
2101
- O = H.getBoundingClientRect(), W.attr("width", O.width), W.attr("height", O.height);
2101
+ A = H.getBoundingClientRect(), W.attr("width", A.width), W.attr("height", A.height);
2102
2102
  }
2103
- O.width > h && (h = O.width), x += O.height + i, u.push(M);
2103
+ A.width > h && (h = A.width), x += A.height + i, u.push(M);
2104
2104
  }), x += l;
2105
2105
  const p = [];
2106
2106
  if (t.classData.methods.forEach(async (c) => {
@@ -2115,12 +2115,12 @@ var Ns = /* @__PURE__ */ g(async (e, t) => {
2115
2115
  !0
2116
2116
  )
2117
2117
  );
2118
- let O = M.getBBox();
2118
+ let A = M.getBBox();
2119
2119
  if (Z(z().flowchart.htmlLabels)) {
2120
2120
  const H = M.children[0], W = R(M);
2121
- O = H.getBoundingClientRect(), W.attr("width", O.width), W.attr("height", O.height);
2121
+ A = H.getBoundingClientRect(), W.attr("width", A.width), W.attr("height", A.height);
2122
2122
  }
2123
- O.width > h && (h = O.width), x += O.height + i, p.push(M);
2123
+ A.width > h && (h = A.width), x += A.height + i, p.push(M);
2124
2124
  }), x += l, S) {
2125
2125
  let c = (h - N.width) / 2;
2126
2126
  R(E).attr(
@@ -2169,10 +2169,10 @@ var Ns = /* @__PURE__ */ g(async (e, t) => {
2169
2169
  inv_trapezoid: vs,
2170
2170
  rect_right_inv_arrow: Es,
2171
2171
  cylinder: _s,
2172
- start: Os,
2172
+ start: As,
2173
2173
  end: Rs,
2174
2174
  note: fs,
2175
- subroutine: As,
2175
+ subroutine: Os,
2176
2176
  fork: Gt,
2177
2177
  join: Gt,
2178
2178
  class_box: zs
@@ -1,6 +1,6 @@
1
- import { d as Se, g as De } from "./chunk-TZMSLE5B-Bmj6LGNW.js";
2
- import { _ as g, a as Pe, s as Be, g as Ie, b as Me, c as Le, d as Dt, w as Ne, e as $t, f as de, h as Tt, i as ge, j as jt, l as fe, k as Ye, m as je } from "./mermaid.core-xMGW442o.js";
3
- import "./index-C2DJ8qoy.js";
1
+ import { d as Se, g as De } from "./chunk-TZMSLE5B-DfqMo2XK.js";
2
+ import { _ as g, a as Pe, s as Be, g as Ie, b as Me, c as Le, d as Dt, w as Ne, e as $t, f as de, h as Tt, i as ge, j as jt, l as fe, k as Ye, m as je } from "./mermaid.core-DyFxH-Px.js";
3
+ import "./index-Zd10d_CE.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  var Ft = function() {
@@ -0,0 +1,5 @@
1
+ import { U as a, C as n } from "./mermaid.core-DyFxH-Px.js";
2
+ const t = (r, o) => a.lang.round(n.parse(r)[o]);
3
+ export {
4
+ t as c
5
+ };
@@ -1,4 +1,4 @@
1
- import { _ as l } from "./mermaid.core-xMGW442o.js";
1
+ import { _ as l } from "./mermaid.core-DyFxH-Px.js";
2
2
  function m(e, c) {
3
3
  var i, t, o;
4
4
  e.accDescr && ((i = c.setAccDescription) == null || i.call(c, e.accDescr)), e.accTitle && ((t = c.setAccTitle) == null || t.call(c, e.accTitle)), e.title && ((o = c.setDiagramTitle) == null || o.call(c, e.title));
@@ -1,4 +1,4 @@
1
- import { _ as a, j as o } from "./mermaid.core-xMGW442o.js";
1
+ import { _ as a, j as o } from "./mermaid.core-DyFxH-Px.js";
2
2
  var g = /* @__PURE__ */ a((t, e) => {
3
3
  let n;
4
4
  return e === "sandbox" && (n = o("#i" + t)), (e === "sandbox" ? o(n.nodes()[0].contentDocument.body) : o("body")).select(`[id="${t}"]`);
@@ -1,13 +1,13 @@
1
- import { g as et } from "./chunk-FMBD7UC4-CVr83prI.js";
2
- import { g as tt } from "./chunk-55IACEB6-Dr8rgvy_.js";
3
- import { s as st } from "./chunk-QN33PNHL-nSyFq8_s.js";
4
- import { _ as f, i as it, d as F, Q as R, j as Z, s as at, g as nt, c as rt, b as ut, n as lt, o as ot, e as v, t as ct, l as Oe, u as we, r as ht, y as dt, z as pt } from "./mermaid.core-xMGW442o.js";
1
+ import { g as et } from "./chunk-FMBD7UC4-DZxSUJCY.js";
2
+ import { g as tt } from "./chunk-55IACEB6-CR8xZK7z.js";
3
+ import { s as st } from "./chunk-QN33PNHL-5NUdQ31M.js";
4
+ import { _ as f, i as it, d as F, a8 as R, j as Z, s as at, g as nt, c as rt, b as ut, o as lt, p as ot, e as v, v as ct, l as Oe, u as we, t as ht, z as dt, A as pt } from "./mermaid.core-DyFxH-Px.js";
5
5
  var Ve = function() {
6
6
  var s = /* @__PURE__ */ f(function(I, o, h, p) {
7
7
  for (h = h || {}, p = I.length; p--; h[I[p]] = o)
8
8
  ;
9
9
  return h;
10
- }, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], r = [1, 42], c = [1, 26], A = [1, 24], g = [1, 25], D = [1, 32], L = [1, 33], Ae = [1, 34], m = [1, 45], fe = [1, 35], ge = [1, 36], Ce = [1, 37], me = [1, 38], be = [1, 27], Ee = [1, 28], ye = [1, 29], Te = [1, 30], ke = [1, 31], b = [1, 44], E = [1, 46], y = [1, 43], T = [1, 47], De = [1, 9], d = [1, 8, 9], te = [1, 58], se = [1, 59], ie = [1, 60], ae = [1, 61], ne = [1, 62], Fe = [1, 63], Be = [1, 64], G = [1, 8, 9, 41], Pe = [1, 76], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], re = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 50, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], ue = [13, 60, 86, 100, 102, 103], U = [13, 60, 73, 74, 86, 100, 102, 103], Me = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], _e = [1, 100], z = [1, 117], K = [1, 113], Y = [1, 109], Q = [1, 115], j = [1, 110], W = [1, 111], X = [1, 112], H = [1, 114], q = [1, 116], Re = [22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Se = [1, 8, 9, 39, 41, 44], le = [1, 8, 9, 22], Ge = [1, 145], Ue = [1, 8, 9, 61], N = [1, 8, 9, 22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Ne = {
10
+ }, "o"), i = [1, 18], a = [1, 19], u = [1, 20], l = [1, 41], r = [1, 42], c = [1, 26], A = [1, 24], g = [1, 25], D = [1, 32], L = [1, 33], Ae = [1, 34], m = [1, 45], fe = [1, 35], ge = [1, 36], Ce = [1, 37], me = [1, 38], be = [1, 27], Ee = [1, 28], ye = [1, 29], Te = [1, 30], ke = [1, 31], b = [1, 44], E = [1, 46], y = [1, 43], T = [1, 47], De = [1, 9], d = [1, 8, 9], te = [1, 58], se = [1, 59], ie = [1, 60], ae = [1, 61], ne = [1, 62], Fe = [1, 63], Be = [1, 64], G = [1, 8, 9, 41], Pe = [1, 76], P = [1, 8, 9, 12, 13, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], re = [1, 8, 9, 12, 13, 18, 20, 22, 39, 41, 44, 50, 60, 68, 69, 70, 71, 72, 73, 74, 79, 81, 86, 100, 102, 103], ue = [13, 60, 86, 100, 102, 103], U = [13, 60, 73, 74, 86, 100, 102, 103], Me = [13, 60, 68, 69, 70, 71, 72, 86, 100, 102, 103], _e = [1, 100], z = [1, 117], K = [1, 113], Y = [1, 109], j = [1, 115], Q = [1, 110], W = [1, 111], X = [1, 112], H = [1, 114], q = [1, 116], Re = [22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Se = [1, 8, 9, 39, 41, 44], le = [1, 8, 9, 22], Ge = [1, 145], Ue = [1, 8, 9, 61], N = [1, 8, 9, 22, 48, 60, 61, 82, 86, 87, 88, 89, 90], Ne = {
11
11
  trace: /* @__PURE__ */ f(function() {
12
12
  }, "trace"),
13
13
  yy: {},
@@ -227,7 +227,7 @@ var Ve = function() {
227
227
  break;
228
228
  }
229
229
  }, "anonymous"),
230
- table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 49: c, 51: A, 52: g, 54: D, 56: L, 57: Ae, 60: m, 62: fe, 63: ge, 64: Ce, 65: me, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(De, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(d, [2, 19], { 22: [1, 50] }), s(d, [2, 21]), s(d, [2, 22]), s(d, [2, 23]), s(d, [2, 24]), s(d, [2, 25]), s(d, [2, 26]), s(d, [2, 27]), s(d, [2, 28]), s(d, [2, 29]), s(d, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(d, [2, 33]), s(d, [2, 53], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: te, 69: se, 70: ie, 71: ae, 72: ne, 73: Fe, 74: Be }), { 39: [1, 65] }, s(G, [2, 40], { 39: [1, 67], 44: [1, 66] }), s(d, [2, 55]), s(d, [2, 56]), { 16: 68, 60: m, 86: b, 100: E, 102: y }, { 16: 39, 17: 40, 19: 69, 60: m, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 70, 60: m, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 71, 60: m, 86: b, 100: E, 102: y, 103: T }, { 60: [1, 72] }, { 13: [1, 73] }, { 16: 39, 17: 40, 19: 74, 60: m, 86: b, 100: E, 102: y, 103: T }, { 13: Pe, 55: 75 }, { 58: 77, 60: [1, 78] }, s(d, [2, 66]), s(d, [2, 67]), s(d, [2, 68]), s(d, [2, 69]), s(P, [2, 13], { 16: 39, 17: 40, 19: 80, 18: [1, 79], 20: [1, 81], 60: m, 86: b, 100: E, 102: y, 103: T }), s(P, [2, 15], { 20: [1, 82] }), { 15: 83, 16: 84, 17: 85, 60: m, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 86, 60: m, 86: b, 100: E, 102: y, 103: T }, s(re, [2, 123]), s(re, [2, 124]), s(re, [2, 125]), s(re, [2, 126]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 127]), s(De, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 87, 33: i, 35: a, 37: u, 42: l, 46: r, 49: c, 51: A, 52: g, 54: D, 56: L, 57: Ae, 60: m, 62: fe, 63: ge, 64: Ce, 65: me, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }), { 5: 88, 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 49: c, 51: A, 52: g, 54: D, 56: L, 57: Ae, 60: m, 62: fe, 63: ge, 64: Ce, 65: me, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }, s(d, [2, 20]), s(d, [2, 31]), s(d, [2, 32]), { 13: [1, 90], 16: 39, 17: 40, 19: 89, 60: m, 86: b, 100: E, 102: y, 103: T }, { 53: 91, 66: 56, 67: 57, 68: te, 69: se, 70: ie, 71: ae, 72: ne, 73: Fe, 74: Be }, s(d, [2, 54]), { 67: 92, 73: Fe, 74: Be }, s(ue, [2, 73], { 66: 93, 68: te, 69: se, 70: ie, 71: ae, 72: ne }), s(U, [2, 74]), s(U, [2, 75]), s(U, [2, 76]), s(U, [2, 77]), s(U, [2, 78]), s(Me, [2, 79]), s(Me, [2, 80]), { 8: [1, 95], 24: 96, 40: 94, 43: 23, 46: r }, { 16: 97, 60: m, 86: b, 100: E, 102: y }, { 41: [1, 99], 45: 98, 51: _e }, { 50: [1, 101] }, { 13: [1, 102] }, { 13: [1, 103] }, { 79: [1, 104], 81: [1, 105] }, { 22: z, 48: K, 59: 106, 60: Y, 82: Q, 84: 107, 85: 108, 86: j, 87: W, 88: X, 89: H, 90: q }, { 60: [1, 118] }, { 13: Pe, 55: 119 }, s(d, [2, 62]), s(d, [2, 128]), { 22: z, 48: K, 59: 120, 60: Y, 61: [1, 121], 82: Q, 84: 107, 85: 108, 86: j, 87: W, 88: X, 89: H, 90: q }, s(Re, [2, 64]), { 16: 39, 17: 40, 19: 122, 60: m, 86: b, 100: E, 102: y, 103: T }, s(P, [2, 16]), s(P, [2, 17]), s(P, [2, 18]), { 39: [2, 36] }, { 15: 124, 16: 84, 17: 85, 18: [1, 123], 39: [2, 9], 60: m, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 10] }, s(Se, [2, 45], { 11: 125, 12: [1, 126] }), s(De, [2, 7]), { 9: [1, 127] }, s(le, [2, 57]), { 16: 39, 17: 40, 19: 128, 60: m, 86: b, 100: E, 102: y, 103: T }, { 13: [1, 130], 16: 39, 17: 40, 19: 129, 60: m, 86: b, 100: E, 102: y, 103: T }, s(ue, [2, 72], { 66: 131, 68: te, 69: se, 70: ie, 71: ae, 72: ne }), s(ue, [2, 71]), { 41: [1, 132] }, { 24: 96, 40: 133, 43: 23, 46: r }, { 8: [1, 134], 41: [2, 37] }, s(G, [2, 41], { 39: [1, 135] }), { 41: [1, 136] }, s(G, [2, 43]), { 41: [2, 51], 45: 137, 51: _e }, { 16: 39, 17: 40, 19: 138, 60: m, 86: b, 100: E, 102: y, 103: T }, s(d, [2, 81], { 13: [1, 139] }), s(d, [2, 83], { 13: [1, 141], 77: [1, 140] }), s(d, [2, 87], { 13: [1, 142], 80: [1, 143] }), { 13: [1, 144] }, s(d, [2, 95], { 61: Ge }), s(Ue, [2, 97], { 85: 146, 22: z, 48: K, 60: Y, 82: Q, 86: j, 87: W, 88: X, 89: H, 90: q }), s(N, [2, 99]), s(N, [2, 101]), s(N, [2, 102]), s(N, [2, 103]), s(N, [2, 104]), s(N, [2, 105]), s(N, [2, 106]), s(N, [2, 107]), s(N, [2, 108]), s(N, [2, 109]), s(d, [2, 96]), s(d, [2, 61]), s(d, [2, 63], { 61: Ge }), { 60: [1, 147] }, s(P, [2, 14]), { 15: 148, 16: 84, 17: 85, 60: m, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 12] }, s(Se, [2, 46]), { 13: [1, 149] }, { 1: [2, 4] }, s(le, [2, 59]), s(le, [2, 58]), { 16: 39, 17: 40, 19: 150, 60: m, 86: b, 100: E, 102: y, 103: T }, s(ue, [2, 70]), s(d, [2, 34]), { 41: [1, 151] }, { 24: 96, 40: 152, 41: [2, 38], 43: 23, 46: r }, { 45: 153, 51: _e }, s(G, [2, 42]), { 41: [2, 52] }, s(d, [2, 50]), s(d, [2, 82]), s(d, [2, 84]), s(d, [2, 85], { 77: [1, 154] }), s(d, [2, 88]), s(d, [2, 89], { 13: [1, 155] }), s(d, [2, 91], { 13: [1, 157], 77: [1, 156] }), { 22: z, 48: K, 60: Y, 82: Q, 84: 158, 85: 108, 86: j, 87: W, 88: X, 89: H, 90: q }, s(N, [2, 100]), s(Re, [2, 65]), { 39: [2, 11] }, { 14: [1, 159] }, s(le, [2, 60]), s(d, [2, 35]), { 41: [2, 39] }, { 41: [1, 160] }, s(d, [2, 86]), s(d, [2, 90]), s(d, [2, 92]), s(d, [2, 93], { 77: [1, 161] }), s(Ue, [2, 98], { 85: 146, 22: z, 48: K, 60: Y, 82: Q, 86: j, 87: W, 88: X, 89: H, 90: q }), s(Se, [2, 8]), s(G, [2, 44]), s(d, [2, 94])],
230
+ table: [{ 3: 1, 4: 2, 5: 3, 6: 4, 7: [1, 6], 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 49: c, 51: A, 52: g, 54: D, 56: L, 57: Ae, 60: m, 62: fe, 63: ge, 64: Ce, 65: me, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }, { 1: [3] }, { 1: [2, 1] }, { 1: [2, 2] }, { 1: [2, 3] }, s(De, [2, 5], { 8: [1, 48] }), { 8: [1, 49] }, s(d, [2, 19], { 22: [1, 50] }), s(d, [2, 21]), s(d, [2, 22]), s(d, [2, 23]), s(d, [2, 24]), s(d, [2, 25]), s(d, [2, 26]), s(d, [2, 27]), s(d, [2, 28]), s(d, [2, 29]), s(d, [2, 30]), { 34: [1, 51] }, { 36: [1, 52] }, s(d, [2, 33]), s(d, [2, 53], { 53: 53, 66: 56, 67: 57, 13: [1, 54], 22: [1, 55], 68: te, 69: se, 70: ie, 71: ae, 72: ne, 73: Fe, 74: Be }), { 39: [1, 65] }, s(G, [2, 40], { 39: [1, 67], 44: [1, 66] }), s(d, [2, 55]), s(d, [2, 56]), { 16: 68, 60: m, 86: b, 100: E, 102: y }, { 16: 39, 17: 40, 19: 69, 60: m, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 70, 60: m, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 71, 60: m, 86: b, 100: E, 102: y, 103: T }, { 60: [1, 72] }, { 13: [1, 73] }, { 16: 39, 17: 40, 19: 74, 60: m, 86: b, 100: E, 102: y, 103: T }, { 13: Pe, 55: 75 }, { 58: 77, 60: [1, 78] }, s(d, [2, 66]), s(d, [2, 67]), s(d, [2, 68]), s(d, [2, 69]), s(P, [2, 13], { 16: 39, 17: 40, 19: 80, 18: [1, 79], 20: [1, 81], 60: m, 86: b, 100: E, 102: y, 103: T }), s(P, [2, 15], { 20: [1, 82] }), { 15: 83, 16: 84, 17: 85, 60: m, 86: b, 100: E, 102: y, 103: T }, { 16: 39, 17: 40, 19: 86, 60: m, 86: b, 100: E, 102: y, 103: T }, s(re, [2, 123]), s(re, [2, 124]), s(re, [2, 125]), s(re, [2, 126]), s([1, 8, 9, 12, 13, 20, 22, 39, 41, 44, 68, 69, 70, 71, 72, 73, 74, 79, 81], [2, 127]), s(De, [2, 6], { 10: 5, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 19: 21, 38: 22, 43: 23, 16: 39, 17: 40, 5: 87, 33: i, 35: a, 37: u, 42: l, 46: r, 49: c, 51: A, 52: g, 54: D, 56: L, 57: Ae, 60: m, 62: fe, 63: ge, 64: Ce, 65: me, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }), { 5: 88, 10: 5, 16: 39, 17: 40, 19: 21, 21: 7, 23: 8, 24: 9, 25: 10, 26: 11, 27: 12, 28: 13, 29: 14, 30: 15, 31: 16, 32: 17, 33: i, 35: a, 37: u, 38: 22, 42: l, 43: 23, 46: r, 49: c, 51: A, 52: g, 54: D, 56: L, 57: Ae, 60: m, 62: fe, 63: ge, 64: Ce, 65: me, 75: be, 76: Ee, 78: ye, 82: Te, 83: ke, 86: b, 100: E, 102: y, 103: T }, s(d, [2, 20]), s(d, [2, 31]), s(d, [2, 32]), { 13: [1, 90], 16: 39, 17: 40, 19: 89, 60: m, 86: b, 100: E, 102: y, 103: T }, { 53: 91, 66: 56, 67: 57, 68: te, 69: se, 70: ie, 71: ae, 72: ne, 73: Fe, 74: Be }, s(d, [2, 54]), { 67: 92, 73: Fe, 74: Be }, s(ue, [2, 73], { 66: 93, 68: te, 69: se, 70: ie, 71: ae, 72: ne }), s(U, [2, 74]), s(U, [2, 75]), s(U, [2, 76]), s(U, [2, 77]), s(U, [2, 78]), s(Me, [2, 79]), s(Me, [2, 80]), { 8: [1, 95], 24: 96, 40: 94, 43: 23, 46: r }, { 16: 97, 60: m, 86: b, 100: E, 102: y }, { 41: [1, 99], 45: 98, 51: _e }, { 50: [1, 101] }, { 13: [1, 102] }, { 13: [1, 103] }, { 79: [1, 104], 81: [1, 105] }, { 22: z, 48: K, 59: 106, 60: Y, 82: j, 84: 107, 85: 108, 86: Q, 87: W, 88: X, 89: H, 90: q }, { 60: [1, 118] }, { 13: Pe, 55: 119 }, s(d, [2, 62]), s(d, [2, 128]), { 22: z, 48: K, 59: 120, 60: Y, 61: [1, 121], 82: j, 84: 107, 85: 108, 86: Q, 87: W, 88: X, 89: H, 90: q }, s(Re, [2, 64]), { 16: 39, 17: 40, 19: 122, 60: m, 86: b, 100: E, 102: y, 103: T }, s(P, [2, 16]), s(P, [2, 17]), s(P, [2, 18]), { 39: [2, 36] }, { 15: 124, 16: 84, 17: 85, 18: [1, 123], 39: [2, 9], 60: m, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 10] }, s(Se, [2, 45], { 11: 125, 12: [1, 126] }), s(De, [2, 7]), { 9: [1, 127] }, s(le, [2, 57]), { 16: 39, 17: 40, 19: 128, 60: m, 86: b, 100: E, 102: y, 103: T }, { 13: [1, 130], 16: 39, 17: 40, 19: 129, 60: m, 86: b, 100: E, 102: y, 103: T }, s(ue, [2, 72], { 66: 131, 68: te, 69: se, 70: ie, 71: ae, 72: ne }), s(ue, [2, 71]), { 41: [1, 132] }, { 24: 96, 40: 133, 43: 23, 46: r }, { 8: [1, 134], 41: [2, 37] }, s(G, [2, 41], { 39: [1, 135] }), { 41: [1, 136] }, s(G, [2, 43]), { 41: [2, 51], 45: 137, 51: _e }, { 16: 39, 17: 40, 19: 138, 60: m, 86: b, 100: E, 102: y, 103: T }, s(d, [2, 81], { 13: [1, 139] }), s(d, [2, 83], { 13: [1, 141], 77: [1, 140] }), s(d, [2, 87], { 13: [1, 142], 80: [1, 143] }), { 13: [1, 144] }, s(d, [2, 95], { 61: Ge }), s(Ue, [2, 97], { 85: 146, 22: z, 48: K, 60: Y, 82: j, 86: Q, 87: W, 88: X, 89: H, 90: q }), s(N, [2, 99]), s(N, [2, 101]), s(N, [2, 102]), s(N, [2, 103]), s(N, [2, 104]), s(N, [2, 105]), s(N, [2, 106]), s(N, [2, 107]), s(N, [2, 108]), s(N, [2, 109]), s(d, [2, 96]), s(d, [2, 61]), s(d, [2, 63], { 61: Ge }), { 60: [1, 147] }, s(P, [2, 14]), { 15: 148, 16: 84, 17: 85, 60: m, 86: b, 100: E, 102: y, 103: T }, { 39: [2, 12] }, s(Se, [2, 46]), { 13: [1, 149] }, { 1: [2, 4] }, s(le, [2, 59]), s(le, [2, 58]), { 16: 39, 17: 40, 19: 150, 60: m, 86: b, 100: E, 102: y, 103: T }, s(ue, [2, 70]), s(d, [2, 34]), { 41: [1, 151] }, { 24: 96, 40: 152, 41: [2, 38], 43: 23, 46: r }, { 45: 153, 51: _e }, s(G, [2, 42]), { 41: [2, 52] }, s(d, [2, 50]), s(d, [2, 82]), s(d, [2, 84]), s(d, [2, 85], { 77: [1, 154] }), s(d, [2, 88]), s(d, [2, 89], { 13: [1, 155] }), s(d, [2, 91], { 13: [1, 157], 77: [1, 156] }), { 22: z, 48: K, 60: Y, 82: j, 84: 158, 85: 108, 86: Q, 87: W, 88: X, 89: H, 90: q }, s(N, [2, 100]), s(Re, [2, 65]), { 39: [2, 11] }, { 14: [1, 159] }, s(le, [2, 60]), s(d, [2, 35]), { 41: [2, 39] }, { 41: [1, 160] }, s(d, [2, 86]), s(d, [2, 90]), s(d, [2, 92]), s(d, [2, 93], { 77: [1, 161] }), s(Ue, [2, 98], { 85: 146, 22: z, 48: K, 60: Y, 82: j, 86: Q, 87: W, 88: X, 89: H, 90: q }), s(Se, [2, 8]), s(G, [2, 44]), s(d, [2, 94])],
231
231
  defaultActions: { 2: [2, 1], 3: [2, 2], 4: [2, 3], 83: [2, 36], 85: [2, 10], 124: [2, 12], 127: [2, 4], 137: [2, 52], 148: [2, 11], 152: [2, 39] },
232
232
  parseError: /* @__PURE__ */ f(function(o, h) {
233
233
  if (h.recoverable)
@@ -255,7 +255,7 @@ var Ve = function() {
255
255
  return _ = n.pop() || k.lex() || Ke, typeof _ != "number" && (_ instanceof Array && (n = _, _ = n.pop()), _ = h.symbols_[_] || _), _;
256
256
  }
257
257
  f(Ye, "lex");
258
- for (var B, w, S, ve, M = {}, he, x, Qe, de; ; ) {
258
+ for (var B, w, S, ve, M = {}, he, x, je, de; ; ) {
259
259
  if (w = p[p.length - 1], this.defaultActions[w] ? S = this.defaultActions[w] : ((B === null || typeof B > "u") && (B = Ye()), S = J[w] && J[w][B]), typeof S > "u" || !S.length || !S[0]) {
260
260
  var Ie = "";
261
261
  de = [];
@@ -296,7 +296,7 @@ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ie =
296
296
  e
297
297
  ].concat(Je)), typeof ve < "u")
298
298
  return ve;
299
- x && (p = p.slice(0, -1 * x * 2), C = C.slice(0, -1 * x), e = e.slice(0, -1 * x)), p.push(this.productions_[S[1]][0]), C.push(M.$), e.push(M._$), Qe = J[p[p.length - 2]][p[p.length - 1]], p.push(Qe);
299
+ x && (p = p.slice(0, -1 * x * 2), C = C.slice(0, -1 * x), e = e.slice(0, -1 * x)), p.push(this.productions_[S[1]][0]), C.push(M.$), e.push(M._$), je = J[p[p.length - 2]][p[p.length - 1]], p.push(je);
300
300
  break;
301
301
  case 3:
302
302
  return !0;
@@ -698,7 +698,7 @@ Expecting ` + de.join(", ") + ", got '" + (this.terminals_[B] || B) + "'" : Ie =
698
698
  return f(oe, "Parser"), oe.prototype = Ne, Ne.Parser = oe, new oe();
699
699
  }();
700
700
  Ve.parser = Ve;
701
- var Tt = Ve, je = ["#", "+", "~", "-", ""], $, We = ($ = class {
701
+ var Tt = Ve, Qe = ["#", "+", "~", "-", ""], $, We = ($ = class {
702
702
  constructor(i, a) {
703
703
  this.memberType = a, this.visibility = "", this.classifier = "", this.text = "";
704
704
  const u = it(i, F());
@@ -719,14 +719,14 @@ var Tt = Ve, je = ["#", "+", "~", "-", ""], $, We = ($ = class {
719
719
  const r = /([#+~-])?(.+)\((.*)\)([\s$*])?(.*)([$*])?/.exec(i);
720
720
  if (r) {
721
721
  const c = r[1] ? r[1].trim() : "";
722
- if (je.includes(c) && (this.visibility = c), this.id = r[2], this.parameters = r[3] ? r[3].trim() : "", a = r[4] ? r[4].trim() : "", this.returnType = r[5] ? r[5].trim() : "", a === "") {
722
+ if (Qe.includes(c) && (this.visibility = c), this.id = r[2], this.parameters = r[3] ? r[3].trim() : "", a = r[4] ? r[4].trim() : "", this.returnType = r[5] ? r[5].trim() : "", a === "") {
723
723
  const A = this.returnType.substring(this.returnType.length - 1);
724
724
  /[$*]/.exec(A) && (a = A, this.returnType = this.returnType.substring(0, this.returnType.length - 1));
725
725
  }
726
726
  }
727
727
  } else {
728
728
  const l = i.length, r = i.substring(0, 1), c = i.substring(l - 1);
729
- je.includes(r) && (this.visibility = r), /[$*]/.exec(c) && (a = c), this.id = i.substring(
729
+ Qe.includes(r) && (this.visibility = r), /[$*]/.exec(c) && (a = c), this.id = i.substring(
730
730
  this.visibility === "" ? 0 : 1,
731
731
  a === "" ? l : l - 1
732
732
  );