@foris/ai-agent 0.7.0 → 0.7.1-beta.2

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 (64) hide show
  1. package/dist/_baseUniq-Bo-J_G8t.js +479 -0
  2. package/dist/ai-agent.es.js +1 -1
  3. package/dist/ai-agent.umd.js +504 -504
  4. package/dist/ai-chat-panel/ChatPanel.d.ts +3 -2
  5. package/dist/{arc-D25sVj89.js → arc-D6vW-5z7.js} +1 -1
  6. package/dist/architecture-U656AL7Q-CPDaOg6H.js +11 -0
  7. package/dist/{architectureDiagram-VXUJARFQ-Cgk-YoAJ.js → architectureDiagram-VXUJARFQ-aNTRrbg8.js} +8 -6
  8. package/dist/{blockDiagram-VD42YOAC-DEl6OtG0.js → blockDiagram-VD42YOAC-D__rdg-y.js} +801 -937
  9. package/dist/{c4Diagram-YG6GDRKO-C_brDMc_.js → c4Diagram-YG6GDRKO-Ad-zGtIo.js} +3 -3
  10. package/dist/{channel-BP0bUxGp.js → channel-CJ6nZxxi.js} +1 -1
  11. package/dist/{chunk-4BX2VUAB-C5fELlqE.js → chunk-4BX2VUAB-sv6CSdNg.js} +1 -1
  12. package/dist/{chunk-55IACEB6-DaHkCIMI.js → chunk-55IACEB6-tWLXzb2x.js} +1 -1
  13. package/dist/{chunk-B4BG7PRW-C2Vtaq9f.js → chunk-B4BG7PRW-wp7Bc04i.js} +4 -4
  14. package/dist/{chunk-DI55MBZ5-DmM1ZmJ9.js → chunk-DI55MBZ5-BAXA-Ihc.js} +3 -3
  15. package/dist/{chunk-FMBD7UC4-MWLCTT_V.js → chunk-FMBD7UC4-CqgCvnFf.js} +1 -1
  16. package/dist/{chunk-QN33PNHL-BFfd-KsX.js → chunk-QN33PNHL-Xr4FEi7o.js} +1 -1
  17. package/dist/{chunk-QZHKN3VN-DvYwzcYM.js → chunk-QZHKN3VN-CW0xSatw.js} +1 -1
  18. package/dist/{chunk-TZMSLE5B-B_VLLszl.js → chunk-TZMSLE5B-CG4p6VwM.js} +1 -1
  19. package/dist/{classDiagram-2ON5EDUG-CEjscqbc.js → classDiagram-2ON5EDUG-BwMk_mJR.js} +6 -6
  20. package/dist/{classDiagram-v2-WZHVMYZB-CEjscqbc.js → classDiagram-v2-WZHVMYZB-BwMk_mJR.js} +6 -6
  21. package/dist/clone-42WwOfNY.js +8 -0
  22. package/dist/{code-block-QI2IAROF-MPMUtVbZ.js → code-block-QI2IAROF-Dmk5lA1i.js} +1 -1
  23. package/dist/{cose-bilkent-S5V4N54A-DNnmrjSK.js → cose-bilkent-S5V4N54A-CQVvTQey.js} +2 -2
  24. package/dist/{dagre-6UL2VRFP-c7TGz1C2.js → dagre-6UL2VRFP-CZLotLZh.js} +54 -55
  25. package/dist/{diagram-PSM6KHXK-CyVHRF5H.js → diagram-PSM6KHXK-99LoQEL6.js} +9 -7
  26. package/dist/{diagram-QEK2KX5R-BQj43c4D.js → diagram-QEK2KX5R-Bcf8pK3Z.js} +8 -6
  27. package/dist/{diagram-S2PKOQOG-Dp2Zxf6h.js → diagram-S2PKOQOG-Bc7Lic_C.js} +12 -10
  28. package/dist/{erDiagram-Q2GNP2WA-UU_sJ3Nk.js → erDiagram-Q2GNP2WA-Bdr3nWHa.js} +5 -5
  29. package/dist/{flowDiagram-NV44I4VS-DmHh0Mw6.js → flowDiagram-NV44I4VS-By1cH5Mx.js} +6 -6
  30. package/dist/{ganttDiagram-JELNMOA3-B2DD6FxH.js → ganttDiagram-JELNMOA3-DBUWvf88.js} +3 -3
  31. package/dist/gitGraph-F6HP7TQM-DyZaN85C.js +11 -0
  32. package/dist/{gitGraphDiagram-NY62KEGX-BIUvS6sD.js → gitGraphDiagram-NY62KEGX-D201ZDzD.js} +71 -69
  33. package/dist/graph-vxIytVZ1.js +381 -0
  34. package/dist/{index-DWpc-Mxs.js → index-2q9HQ6jv.js} +4157 -4170
  35. package/dist/info-NVLQJR56-Bk44kkrd.js +11 -0
  36. package/dist/infoDiagram-WHAUD3N6-CQvG7eEX.js +29 -0
  37. package/dist/{journeyDiagram-XKPGCS4Q-Dia_QTZe.js → journeyDiagram-XKPGCS4Q-BO4UASto.js} +5 -5
  38. package/dist/{kanban-definition-3W4ZIXB7-ClIKCv5J.js → kanban-definition-3W4ZIXB7-zTTXrQZo.js} +3 -3
  39. package/dist/layout-CFP0NQPV.js +1443 -0
  40. package/dist/{linear-ZyP8gWvJ.js → linear-DQjYFf2K.js} +25 -25
  41. package/dist/{mermaid-NA5CF7SZ-BbXrnAMx.js → mermaid-NA5CF7SZ-Dxy04QGl.js} +1 -1
  42. package/dist/{treemap-KMMF4GRG-D_L55G0b.js → mermaid-parser.core-3bjcG0rb.js} +5934 -5793
  43. package/dist/{mermaid.core-Ce2qm3MW.js → mermaid.core-D77TS0_l.js} +112 -88
  44. package/dist/min-D8aWZ538.js +38 -0
  45. package/dist/{mindmap-definition-VGOIOE7T-CUj7ttm7.js → mindmap-definition-VGOIOE7T-C4eFUgdU.js} +15 -15
  46. package/dist/packet-BFZMPI3H-BXyr1-Ur.js +11 -0
  47. package/dist/pie-7BOR55EZ-BdDEpKOx.js +11 -0
  48. package/dist/pieDiagram-ADFJNKIX-Cagn8I7E.js +168 -0
  49. package/dist/{quadrantDiagram-AYHSOK5B-C4-Gx7bz.js → quadrantDiagram-AYHSOK5B-CBbS2k6R.js} +3 -3
  50. package/dist/radar-NHE76QYJ-rrlsBycr.js +11 -0
  51. package/dist/{requirementDiagram-UZGBJVZJ-Cr3_wZVs.js → requirementDiagram-UZGBJVZJ-BubvO9b2.js} +4 -4
  52. package/dist/{sankeyDiagram-TZEHDZUN-DqXQCv8A.js → sankeyDiagram-TZEHDZUN-2TYAQPq1.js} +2 -2
  53. package/dist/{sequenceDiagram-WL72ISMW-DFW243PP.js → sequenceDiagram-WL72ISMW-C5LXKyO6.js} +4 -4
  54. package/dist/{stateDiagram-FKZM4ZOC-C7xue1N-.js → stateDiagram-FKZM4ZOC-tqWNEvX8.js} +11 -9
  55. package/dist/{stateDiagram-v2-4FDKWEC3-CxbMhTx0.js → stateDiagram-v2-4FDKWEC3-DwNtkzmN.js} +5 -5
  56. package/dist/style.css +1 -1
  57. package/dist/{timeline-definition-IT6M3QCI-HXVoEY4s.js → timeline-definition-IT6M3QCI-DsDBzGHV.js} +3 -3
  58. package/dist/treemap-KMMF4GRG-BNrkQfZw.js +11 -0
  59. package/dist/{xychartDiagram-PRI3JC2R-7Isc60Pi.js → xychartDiagram-PRI3JC2R-C96721pe.js} +3 -3
  60. package/package.json +1 -1
  61. package/dist/graph-DB2UxkYH.js +0 -1190
  62. package/dist/infoDiagram-WHAUD3N6-Cz5rmERs.js +0 -27
  63. package/dist/layout-Q6wQN5dr.js +0 -1730
  64. package/dist/pieDiagram-ADFJNKIX-w5KEkOWO.js +0 -166
@@ -1,6 +1,6 @@
1
- import { d as Se, g as De } from "./chunk-TZMSLE5B-B_VLLszl.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-Ce2qm3MW.js";
3
- import "./index-DWpc-Mxs.js";
1
+ import { d as Se, g as De } from "./chunk-TZMSLE5B-CG4p6VwM.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-D77TS0_l.js";
3
+ import "./index-2q9HQ6jv.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  var Ft = function() {
@@ -1,4 +1,4 @@
1
- import { U as a, C as n } from "./mermaid.core-Ce2qm3MW.js";
1
+ import { U as a, C as n } from "./mermaid.core-D77TS0_l.js";
2
2
  const t = (r, o) => a.lang.round(n.parse(r)[o]);
3
3
  export {
4
4
  t as c
@@ -1,4 +1,4 @@
1
- import { _ as l } from "./mermaid.core-Ce2qm3MW.js";
1
+ import { _ as l } from "./mermaid.core-D77TS0_l.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-Ce2qm3MW.js";
1
+ import { _ as a, j as o } from "./mermaid.core-D77TS0_l.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,7 +1,7 @@
1
- import { g as et } from "./chunk-FMBD7UC4-MWLCTT_V.js";
2
- import { g as tt } from "./chunk-55IACEB6-DaHkCIMI.js";
3
- import { s as st } from "./chunk-QN33PNHL-BFfd-KsX.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-Ce2qm3MW.js";
1
+ import { g as et } from "./chunk-FMBD7UC4-CqgCvnFf.js";
2
+ import { g as tt } from "./chunk-55IACEB6-tWLXzb2x.js";
3
+ import { s as st } from "./chunk-QN33PNHL-Xr4FEi7o.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-D77TS0_l.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)
@@ -1,6 +1,6 @@
1
- import { g as te } from "./chunk-55IACEB6-DaHkCIMI.js";
2
- import { s as ee } from "./chunk-QN33PNHL-BFfd-KsX.js";
3
- import { _ as f, g as se, s as ie, b as re, c as ae, o as ne, p as oe, d as F, l as b, ab as le, e as W, v as ce, A as he, u as ue } from "./mermaid.core-Ce2qm3MW.js";
1
+ import { g as te } from "./chunk-55IACEB6-tWLXzb2x.js";
2
+ import { s as ee } from "./chunk-QN33PNHL-Xr4FEi7o.js";
3
+ import { _ as f, g as se, s as ie, b as re, c as ae, o as ne, p as oe, d as F, l as b, ab as le, e as W, v as ce, A as he, u as ue } from "./mermaid.core-D77TS0_l.js";
4
4
  var vt = function() {
5
5
  var e = /* @__PURE__ */ f(function(V, o, h, n) {
6
6
  for (h = h || {}, n = V.length; n--; h[V[n]] = o)
@@ -1,4 +1,4 @@
1
- import { _ as e } from "./mermaid.core-Ce2qm3MW.js";
1
+ import { _ as e } from "./mermaid.core-D77TS0_l.js";
2
2
  var l = /* @__PURE__ */ e(() => `
3
3
  /* Font Awesome icon styling - consolidated */
4
4
  .label-icon {
@@ -1,4 +1,4 @@
1
- import { _ as a, k as w, l as x } from "./mermaid.core-Ce2qm3MW.js";
1
+ import { _ as a, k as w, l as x } from "./mermaid.core-D77TS0_l.js";
2
2
  var d = /* @__PURE__ */ a((e, t, i, o) => {
3
3
  e.attr("class", i);
4
4
  const { width: r, height: h, x: n, y: c } = u(e, t);
@@ -1,4 +1,4 @@
1
- import { _ as s } from "./mermaid.core-Ce2qm3MW.js";
1
+ import { _ as s } from "./mermaid.core-D77TS0_l.js";
2
2
  var t, e = (t = class {
3
3
  /**
4
4
  * @param init - Function that creates the default state.
@@ -1,4 +1,4 @@
1
- import { _ as n, n as c, m as l } from "./mermaid.core-Ce2qm3MW.js";
1
+ import { _ as n, n as c, m as l } from "./mermaid.core-D77TS0_l.js";
2
2
  var o = /* @__PURE__ */ n((a, t) => {
3
3
  const e = a.append("rect");
4
4
  if (e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), t.name && e.attr("name", t.name), t.rx && e.attr("rx", t.rx), t.ry && e.attr("ry", t.ry), t.attrs !== void 0)
@@ -1,9 +1,9 @@
1
- import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-C2Vtaq9f.js";
2
- import { _ as i } from "./mermaid.core-Ce2qm3MW.js";
3
- import "./chunk-FMBD7UC4-MWLCTT_V.js";
4
- import "./chunk-55IACEB6-DaHkCIMI.js";
5
- import "./chunk-QN33PNHL-BFfd-KsX.js";
6
- import "./index-DWpc-Mxs.js";
1
+ import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-wp7Bc04i.js";
2
+ import { _ as i } from "./mermaid.core-D77TS0_l.js";
3
+ import "./chunk-FMBD7UC4-CqgCvnFf.js";
4
+ import "./chunk-55IACEB6-tWLXzb2x.js";
5
+ import "./chunk-QN33PNHL-Xr4FEi7o.js";
6
+ import "./index-2q9HQ6jv.js";
7
7
  import "react";
8
8
  import "react-dom";
9
9
  var f = {
@@ -1,9 +1,9 @@
1
- import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-C2Vtaq9f.js";
2
- import { _ as i } from "./mermaid.core-Ce2qm3MW.js";
3
- import "./chunk-FMBD7UC4-MWLCTT_V.js";
4
- import "./chunk-55IACEB6-DaHkCIMI.js";
5
- import "./chunk-QN33PNHL-BFfd-KsX.js";
6
- import "./index-DWpc-Mxs.js";
1
+ import { c as a, C as s, a as e, s as t } from "./chunk-B4BG7PRW-wp7Bc04i.js";
2
+ import { _ as i } from "./mermaid.core-D77TS0_l.js";
3
+ import "./chunk-FMBD7UC4-CqgCvnFf.js";
4
+ import "./chunk-55IACEB6-tWLXzb2x.js";
5
+ import "./chunk-QN33PNHL-Xr4FEi7o.js";
6
+ import "./index-2q9HQ6jv.js";
7
7
  import "react";
8
8
  import "react-dom";
9
9
  var f = {
@@ -0,0 +1,8 @@
1
+ import { b as r } from "./graph-vxIytVZ1.js";
2
+ var e = 4;
3
+ function a(o) {
4
+ return r(o, e);
5
+ }
6
+ export {
7
+ a as c
8
+ };
@@ -12,7 +12,7 @@ var $ = (e, r, t) => (Ce(e, r, "read from private field"), t ? t.call(e) : r.get
12
12
  r instanceof WeakSet ? r.add(e) : r.set(e, t);
13
13
  }, M = (e, r, t, n) => (Ce(e, r, "write to private field"), n ? n.call(e, t) : r.set(e, t), t);
14
14
  var be = (e, r, t) => (Ce(e, r, "access private method"), t), Ve = (e, r, t) => Br(Tr(e), t, r);
15
- import { u as Re, j as v, C as Vr, D as zr, a as Wr, b as Hr } from "./index-DWpc-Mxs.js";
15
+ import { u as Re, j as v, C as Vr, D as zr, a as Wr, b as Hr } from "./index-2q9HQ6jv.js";
16
16
  import { memo as Xr, useMemo as pr, useContext as Zr, useState as Qr, useEffect as qr } from "react";
17
17
  import "react-dom";
18
18
  function ne(e) {
@@ -1,6 +1,6 @@
1
- import { _ as V, j as lt, l as k } from "./mermaid.core-Ce2qm3MW.js";
1
+ import { _ as V, j as lt, l as k } from "./mermaid.core-D77TS0_l.js";
2
2
  import { c as J } from "./cytoscape.esm-ClN43hhW.js";
3
- import { c as $, g as gt } from "./index-DWpc-Mxs.js";
3
+ import { c as $, g as gt } from "./index-2q9HQ6jv.js";
4
4
  import "react";
5
5
  import "react-dom";
6
6
  var tt = { exports: {} }, Z = { exports: {} }, Q = { exports: {} }, q;
@@ -1,46 +1,45 @@
1
- import { _ as X, al as j, am as F, an as Y, ao as H, l as i, d as V, ap as q, aq as U, ai as $, ar as z, aj as P, ah as K, as as Q, at as W, au as Z } from "./mermaid.core-Ce2qm3MW.js";
2
- import { i as x, G as B } from "./graph-DB2UxkYH.js";
3
- import { b as L, m as A, l as I } from "./layout-Q6wQN5dr.js";
4
- import "./index-DWpc-Mxs.js";
1
+ import { _ as X, ar as F, as as Y, at as _, au as H, l as i, d as V, av as z, aw as U, ai as $, an as q, aj as P, ah as K, ax as Q, ay as W, az as Z } from "./mermaid.core-D77TS0_l.js";
2
+ import { i as x, G as B } from "./graph-vxIytVZ1.js";
3
+ import { l as I } from "./layout-CFP0NQPV.js";
4
+ import { c as L } from "./clone-42WwOfNY.js";
5
+ import { m as A } from "./min-D8aWZ538.js";
6
+ import "./index-2q9HQ6jv.js";
5
7
  import "react";
6
8
  import "react-dom";
7
- var ee = 4;
8
- function ne(e) {
9
- return L(e, ee);
10
- }
11
- function p(e) {
9
+ import "./_baseUniq-Bo-J_G8t.js";
10
+ function E(e) {
12
11
  var t = {
13
12
  options: {
14
13
  directed: e.isDirected(),
15
14
  multigraph: e.isMultigraph(),
16
15
  compound: e.isCompound()
17
16
  },
18
- nodes: te(e),
19
- edges: se(e)
17
+ nodes: ee(e),
18
+ edges: ne(e)
20
19
  };
21
- return x(e.graph()) || (t.value = ne(e.graph())), t;
20
+ return x(e.graph()) || (t.value = L(e.graph())), t;
22
21
  }
23
- function te(e) {
22
+ function ee(e) {
24
23
  return A(e.nodes(), function(t) {
25
24
  var n = e.node(t), o = e.parent(t), c = { v: t };
26
25
  return x(n) || (c.value = n), x(o) || (c.parent = o), c;
27
26
  });
28
27
  }
29
- function se(e) {
28
+ function ne(e) {
30
29
  return A(e.edges(), function(t) {
31
30
  var n = e.edge(t), o = { v: t.v, w: t.w };
32
31
  return x(t.name) || (o.name = t.name), x(n) || (o.value = n), o;
33
32
  });
34
33
  }
35
- var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ X(() => {
36
- b.clear(), G.clear(), f.clear();
34
+ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ X(() => {
35
+ b.clear(), J.clear(), f.clear();
37
36
  }, "clear"), O = /* @__PURE__ */ X((e, t) => {
38
37
  const n = b.get(t) || [];
39
38
  return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
40
- }, "isDescendant"), re = /* @__PURE__ */ X((e, t) => {
39
+ }, "isDescendant"), se = /* @__PURE__ */ X((e, t) => {
41
40
  const n = b.get(t) || [];
42
41
  return i.info("Descendants of ", t, " is ", n), i.info("Edge is ", e), e.v === t || e.w === t ? !1 : n ? n.includes(e.v) || O(e.v, t) || O(e.w, t) || n.includes(e.w) : (i.debug("Tilt, ", t, ",not in descendants"), !1);
43
- }, "edgeInCluster"), J = /* @__PURE__ */ X((e, t, n, o) => {
42
+ }, "edgeInCluster"), G = /* @__PURE__ */ X((e, t, n, o) => {
44
43
  i.warn(
45
44
  "Copying children of ",
46
45
  e,
@@ -53,7 +52,7 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE
53
52
  const c = t.children(e) || [];
54
53
  e !== o && c.push(e), i.warn("Copying (nodes) clusterId", e, "nodes", c), c.forEach((a) => {
55
54
  if (t.children(a).length > 0)
56
- J(a, t, n, o);
55
+ G(a, t, n, o);
57
56
  else {
58
57
  const r = t.node(a);
59
58
  i.info("cp ", a, " to ", o, " with parent ", e), n.setNode(a, r), o !== t.parent(a) && (i.warn("Setting parent", a, t.parent(a)), n.setParent(a, t.parent(a))), e !== o && a !== e ? (i.debug("Setting parent", a, e), n.setParent(a, e)) : (i.info("In copy ", e, "root", o, "data", t.node(e), o), i.debug(
@@ -70,7 +69,7 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE
70
69
  const v = t.edge(l.v, l.w, l.name);
71
70
  i.info("Edge data", v, o);
72
71
  try {
73
- re(l, o) ? (i.info("Copying as ", l.v, l.w, v, l.name), n.setEdge(l.v, l.w, v, l.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
72
+ se(l, o) ? (i.info("Copying as ", l.v, l.w, v, l.name), n.setEdge(l.v, l.w, v, l.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
74
73
  "Skipping copy of edge ",
75
74
  l.v,
76
75
  "-->",
@@ -91,9 +90,9 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE
91
90
  const n = t.children(e);
92
91
  let o = [...n];
93
92
  for (const c of n)
94
- G.set(c, e), o = [...o, ...R(c, t)];
93
+ J.set(c, e), o = [...o, ...R(c, t)];
95
94
  return o;
96
- }, "extractDescendants"), oe = /* @__PURE__ */ X((e, t, n) => {
95
+ }, "extractDescendants"), ie = /* @__PURE__ */ X((e, t, n) => {
97
96
  const o = e.edges().filter((l) => l.v === t || l.w === t), c = e.edges().filter((l) => l.v === n || l.w === n), a = o.map((l) => ({ v: l.v === t ? n : l.v, w: l.w === t ? t : l.w })), r = c.map((l) => ({ v: l.v, w: l.w }));
98
97
  return a.filter((l) => r.some((v) => l.v === v.v && l.w === v.w));
99
98
  }, "findCommonEdges"), D = /* @__PURE__ */ X((e, t, n) => {
@@ -102,7 +101,7 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE
102
101
  return e;
103
102
  let c;
104
103
  for (const a of o) {
105
- const r = D(a, t, n), u = oe(t, n, r);
104
+ const r = D(a, t, n), u = ie(t, n, r);
106
105
  if (r)
107
106
  if (u.length > 0)
108
107
  c = r;
@@ -110,7 +109,7 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE
110
109
  return r;
111
110
  }
112
111
  return c;
113
- }, "findNonClusterChild"), k = /* @__PURE__ */ X((e) => !f.has(e) || !f.get(e).externalConnections ? e : f.has(e) ? f.get(e).id : e, "getAnchorId"), ae = /* @__PURE__ */ X((e, t) => {
112
+ }, "findNonClusterChild"), k = /* @__PURE__ */ X((e) => !f.has(e) || !f.get(e).externalConnections ? e : f.has(e) ? f.get(e).id : e, "getAnchorId"), re = /* @__PURE__ */ X((e, t) => {
114
113
  if (!e || t > 10) {
115
114
  i.debug("Opting out, no graph ");
116
115
  return;
@@ -159,10 +158,10 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE
159
158
  }
160
159
  i.warn("Fix Replacing with XXX", c, a, n.name), e.setEdge(c, a, o, n.name);
161
160
  }
162
- }), i.warn("Adjusted Graph", p(e)), T(e, 0), i.trace(f);
161
+ }), i.warn("Adjusted Graph", E(e)), T(e, 0), i.trace(f);
163
162
  }, "adjustClustersAndEdges"), T = /* @__PURE__ */ X((e, t) => {
164
163
  var c, a;
165
- if (i.warn("extractor - ", t, p(e), e.children("D")), t > 10) {
164
+ if (i.warn("extractor - ", t, E(e), e.children("D")), t > 10) {
166
165
  i.error("Bailing out");
167
166
  return;
168
167
  }
@@ -209,13 +208,13 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE
209
208
  }).setDefaultEdgeLabel(function() {
210
209
  return {};
211
210
  });
212
- i.warn("Old graph before copy", p(e)), J(r, e, v, r), e.setNode(r, {
211
+ i.warn("Old graph before copy", E(e)), G(r, e, v, r), e.setNode(r, {
213
212
  clusterNode: !0,
214
213
  id: r,
215
214
  clusterData: f.get(r).clusterData,
216
215
  label: f.get(r).label,
217
216
  graph: v
218
- }), i.warn("New graph after copy node: (", r, ")", p(v)), i.debug("Old graph after copy", p(e));
217
+ }), i.warn("New graph after copy node: (", r, ")", E(v)), i.debug("Old graph after copy", E(e));
219
218
  } else
220
219
  i.warn(
221
220
  "Cluster ** ",
@@ -242,8 +241,8 @@ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), G = /* @__PURE
242
241
  const c = e.children(o), a = M(e, c);
243
242
  n = [...n, ...a];
244
243
  }), n;
245
- }, "sorter"), ce = /* @__PURE__ */ X((e) => M(e, e.children()), "sortNodesByHierarchy"), _ = /* @__PURE__ */ X(async (e, t, n, o, c, a) => {
246
- i.warn("Graph in recursive render:XAX", p(t), c);
244
+ }, "sorter"), oe = /* @__PURE__ */ X((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ X(async (e, t, n, o, c, a) => {
245
+ i.warn("Graph in recursive render:XAX", E(t), c);
247
246
  const r = t.graph().rankdir;
248
247
  i.trace("Dir in recursive render - dir:", r);
249
248
  const u = e.insert("g").attr("class", "root");
@@ -274,7 +273,7 @@ Parent cluster`,
274
273
  ranksep: w + 25,
275
274
  nodesep: m
276
275
  });
277
- const N = await _(
276
+ const N = await j(
278
277
  g,
279
278
  s.graph,
280
279
  n,
@@ -282,7 +281,7 @@ Parent cluster`,
282
281
  t.node(d),
283
282
  a
284
283
  ), S = N.elem;
285
- q(s, S), s.diff = N.diff || 0, i.info(
284
+ z(s, S), s.diff = N.diff || 0, i.info(
286
285
  "New compound node after recursive render XAX",
287
286
  d,
288
287
  "width",
@@ -319,10 +318,10 @@ Parent cluster`,
319
318
  ), await Z(C, w);
320
319
  });
321
320
  await Promise.all(d);
322
- }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(p(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(p(t)));
323
- let E = 0, { subGraphTitleTotalMargin: y } = z(a);
321
+ }, "processEdges"))(), i.info("Graph before layout:", JSON.stringify(E(t))), i.info("############################################# XXX"), i.info("### Layout ### XXX"), i.info("############################################# XXX"), I(t), i.info("Graph after layout:", JSON.stringify(E(t)));
322
+ let y = 0, { subGraphTitleTotalMargin: p } = q(a);
324
323
  return await Promise.all(
325
- ce(t).map(async function(d) {
324
+ oe(t).map(async function(d) {
326
325
  var w;
327
326
  const s = t.node(d);
328
327
  if (i.info(
@@ -333,7 +332,7 @@ Parent cluster`,
333
332
  " height: ",
334
333
  s.height
335
334
  ), s != null && s.clusterNode)
336
- s.y += y, i.info(
335
+ s.y += p, i.info(
337
336
  "A tainted cluster node XBX1",
338
337
  d,
339
338
  s.id,
@@ -353,12 +352,12 @@ Parent cluster`,
353
352
  s.width,
354
353
  s.height,
355
354
  t.parent(d)
356
- ), s.height += y, t.node(s.parentId);
355
+ ), s.height += p, t.node(s.parentId);
357
356
  const m = (s == null ? void 0 : s.padding) / 2 || 0, N = ((w = s == null ? void 0 : s.labelBBox) == null ? void 0 : w.height) || 0, S = N - m || 0;
358
357
  i.debug("OffsetY", S, "labelHeight", N, "halfPadding", m), await K(l, s), f.get(s.id).node = s;
359
358
  } else {
360
359
  const m = t.node(s.parentId);
361
- s.y += y / 2, i.info(
360
+ s.y += p / 2, i.info(
362
361
  "A regular node XBX1 - using the padding",
363
362
  s.id,
364
363
  "parent",
@@ -378,16 +377,16 @@ Parent cluster`,
378
377
  })
379
378
  ), t.edges().forEach(function(d) {
380
379
  const s = t.edge(d);
381
- i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(s), s), s.points.forEach((S) => S.y += y / 2);
380
+ i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(s), s), s.points.forEach((S) => S.y += p / 2);
382
381
  const w = t.node(d.v);
383
382
  var m = t.node(d.w);
384
383
  const N = Q(v, s, f, n, w, m, o);
385
384
  W(s, N);
386
385
  }), t.nodes().forEach(function(d) {
387
386
  const s = t.node(d);
388
- i.info(d, s.type, s.diff), s.isGroup && (E = s.diff);
389
- }), i.warn("Returning from recursive render XAX", u, E), { elem: u, diff: E };
390
- }, "recursiveRender"), me = /* @__PURE__ */ X(async (e, t) => {
387
+ i.info(d, s.type, s.diff), s.isGroup && (y = s.diff);
388
+ }), i.warn("Returning from recursive render XAX", u, y), { elem: u, diff: y };
389
+ }, "recursiveRender"), he = /* @__PURE__ */ X(async (e, t) => {
391
390
  var a, r, u, l, v, C;
392
391
  const n = new B({
393
392
  multigraph: !0,
@@ -401,14 +400,14 @@ Parent cluster`,
401
400
  }).setDefaultEdgeLabel(function() {
402
401
  return {};
403
402
  }), o = t.select("g");
404
- j(o, e.markers, e.type, e.diagramId), F(), Y(), H(), ie(), e.nodes.forEach((g) => {
403
+ F(o, e.markers, e.type, e.diagramId), Y(), _(), H(), te(), e.nodes.forEach((g) => {
405
404
  n.setNode(g.id, { ...g }), g.parentId && n.setParent(g.id, g.parentId);
406
405
  }), i.debug("Edges:", e.edges), e.edges.forEach((g) => {
407
406
  if (g.start === g.end) {
408
- const h = g.start, E = h + "---" + h + "---1", y = h + "---" + h + "---2", d = n.node(h);
409
- n.setNode(E, {
410
- domId: E,
411
- id: E,
407
+ const h = g.start, y = h + "---" + h + "---1", p = h + "---" + h + "---2", d = n.node(h);
408
+ n.setNode(y, {
409
+ domId: y,
410
+ id: y,
412
411
  parentId: d.parentId,
413
412
  labelStyle: "",
414
413
  label: "",
@@ -418,9 +417,9 @@ Parent cluster`,
418
417
  style: "",
419
418
  width: 10,
420
419
  height: 10
421
- }), n.setParent(E, d.parentId), n.setNode(y, {
422
- domId: y,
423
- id: y,
420
+ }), n.setParent(y, d.parentId), n.setNode(p, {
421
+ domId: p,
422
+ id: p,
424
423
  parentId: d.parentId,
425
424
  labelStyle: "",
426
425
  padding: 0,
@@ -430,14 +429,14 @@ Parent cluster`,
430
429
  style: "",
431
430
  width: 10,
432
431
  height: 10
433
- }), n.setParent(y, d.parentId);
432
+ }), n.setParent(p, d.parentId);
434
433
  const s = structuredClone(g), w = structuredClone(g), m = structuredClone(g);
435
- s.label = "", s.arrowTypeEnd = "none", s.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(h, E, s, h + "-cyclic-special-0"), n.setEdge(E, y, w, h + "-cyclic-special-1"), n.setEdge(y, h, m, h + "-cyc<lic-special-2");
434
+ s.label = "", s.arrowTypeEnd = "none", s.id = h + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = h + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = h, m.toCluster = h), m.id = h + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(h, y, s, h + "-cyclic-special-0"), n.setEdge(y, p, w, h + "-cyclic-special-1"), n.setEdge(p, h, m, h + "-cyc<lic-special-2");
436
435
  } else
437
436
  n.setEdge(g.start, g.end, { ...g }, g.id);
438
- }), i.warn("Graph at first:", JSON.stringify(p(n))), ae(n), i.warn("Graph after XAX:", JSON.stringify(p(n)));
437
+ }), i.warn("Graph at first:", JSON.stringify(E(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(E(n)));
439
438
  const c = V();
440
- await _(
439
+ await j(
441
440
  o,
442
441
  n,
443
442
  e.type,
@@ -447,5 +446,5 @@ Parent cluster`,
447
446
  );
448
447
  }, "render");
449
448
  export {
450
- me as render
449
+ he as render
451
450
  };
@@ -1,12 +1,14 @@
1
- import { s as he, g as ue, o as pe, p as fe, b as ge, c as me, _ as w, G as te, F as ae, b2 as ye, v as Se, E as ve, l as J, K as xe, k as be, b3 as P, j as Y } from "./mermaid.core-Ce2qm3MW.js";
2
- import { s as we } from "./chunk-QN33PNHL-BFfd-KsX.js";
3
- import { p as Ce } from "./chunk-4BX2VUAB-C5fELlqE.js";
4
- import { p as Te } from "./treemap-KMMF4GRG-D_L55G0b.js";
1
+ import { s as he, g as ue, o as pe, p as fe, b as ge, c as me, _ as w, G as te, F as ae, b8 as ye, v as Se, E as ve, l as J, K as xe, k as be, b9 as P, j as Y } from "./mermaid.core-D77TS0_l.js";
2
+ import { s as we } from "./chunk-QN33PNHL-Xr4FEi7o.js";
3
+ import { p as Ce } from "./chunk-4BX2VUAB-sv6CSdNg.js";
4
+ import { p as Te } from "./mermaid-parser.core-3bjcG0rb.js";
5
5
  import { b as I } from "./defaultLocale-DcQU6Vee.js";
6
6
  import { o as Z } from "./ordinal-MUacOSdK.js";
7
- import "./index-DWpc-Mxs.js";
7
+ import "./index-2q9HQ6jv.js";
8
8
  import "react";
9
9
  import "react-dom";
10
+ import "./min-D8aWZ538.js";
11
+ import "./_baseUniq-Bo-J_G8t.js";
10
12
  import "./init-DjUOC4st.js";
11
13
  function Le(t) {
12
14
  var a = 0, l = t.children, n = l && l.length;
@@ -531,7 +533,7 @@ var Qe = /* @__PURE__ */ w((t, a) => {
531
533
  font-size: ${a.titleFontSize};
532
534
  }
533
535
  `;
534
- }, "getStyles"), it = st, vt = {
536
+ }, "getStyles"), it = st, bt = {
535
537
  parser: re,
536
538
  get db() {
537
539
  return new ne();
@@ -540,5 +542,5 @@ var Qe = /* @__PURE__ */ w((t, a) => {
540
542
  styles: it
541
543
  };
542
544
  export {
543
- vt as diagram
545
+ bt as diagram
544
546
  };
@@ -1,9 +1,11 @@
1
- import { E as k, _ as l, s as R, g as E, o as F, p as I, b as _, c as D, l as G, F as y, G as C, v as P, K as z, a1 as V } from "./mermaid.core-Ce2qm3MW.js";
2
- import { p as W } from "./chunk-4BX2VUAB-C5fELlqE.js";
3
- import { p as B } from "./treemap-KMMF4GRG-D_L55G0b.js";
4
- import "./index-DWpc-Mxs.js";
1
+ import { E as k, _ as l, s as R, g as E, o as F, p as I, b as _, c as D, l as G, F as y, G as C, v as P, K as z, a1 as V } from "./mermaid.core-D77TS0_l.js";
2
+ import { p as W } from "./chunk-4BX2VUAB-sv6CSdNg.js";
3
+ import { p as B } from "./mermaid-parser.core-3bjcG0rb.js";
4
+ import "./index-2q9HQ6jv.js";
5
5
  import "react";
6
6
  import "react-dom";
7
+ import "./min-D8aWZ538.js";
8
+ import "./_baseUniq-Bo-J_G8t.js";
7
9
  var h = {
8
10
  showLegend: !0,
9
11
  ticks: 5,
@@ -213,12 +215,12 @@ var st = { draw: tt }, nt = /* @__PURE__ */ l((a, t) => {
213
215
  }
214
216
  ${nt(t, e)}
215
217
  `;
216
- }, "styles"), mt = {
218
+ }, "styles"), xt = {
217
219
  parser: Q,
218
220
  db: $,
219
221
  renderer: st,
220
222
  styles: it
221
223
  };
222
224
  export {
223
- mt as diagram
225
+ xt as diagram
224
226
  };
@@ -1,15 +1,17 @@
1
- import { E as B, s as C, g as S, o as D, p as T, b as E, c as F, _ as b, F as m, G as P, v as z, l as w, K as A, k as W } from "./mermaid.core-Ce2qm3MW.js";
2
- import { p as _ } from "./chunk-4BX2VUAB-C5fELlqE.js";
3
- import { p as N } from "./treemap-KMMF4GRG-D_L55G0b.js";
4
- import "./index-DWpc-Mxs.js";
1
+ import { E as B, s as C, g as S, o as D, p as T, b as E, c as F, _ as b, F as u, G as P, v as z, l as w, K as A, k as W } from "./mermaid.core-D77TS0_l.js";
2
+ import { p as _ } from "./chunk-4BX2VUAB-sv6CSdNg.js";
3
+ import { p as N } from "./mermaid-parser.core-3bjcG0rb.js";
4
+ import "./index-2q9HQ6jv.js";
5
5
  import "react";
6
6
  import "react-dom";
7
- var L = B.packet, u, v = (u = class {
7
+ import "./min-D8aWZ538.js";
8
+ import "./_baseUniq-Bo-J_G8t.js";
9
+ var L = B.packet, m, v = (m = class {
8
10
  constructor() {
9
11
  this.packet = [], this.setAccTitle = C, this.getAccTitle = S, this.setDiagramTitle = D, this.getDiagramTitle = T, this.getAccDescription = E, this.setAccDescription = F;
10
12
  }
11
13
  getConfig() {
12
- const t = m({
14
+ const t = u({
13
15
  ...L,
14
16
  ...P().packet
15
17
  });
@@ -24,7 +26,7 @@ var L = B.packet, u, v = (u = class {
24
26
  clear() {
25
27
  z(), this.packet = [];
26
28
  }
27
- }, b(u, "PacketDB"), u), M = 1e4, Y = /* @__PURE__ */ b((e, t) => {
29
+ }, b(m, "PacketDB"), m), M = 1e4, Y = /* @__PURE__ */ b((e, t) => {
28
30
  _(e, t);
29
31
  let o = -1, r = [], n = 1;
30
32
  const { bitsPerRow: l } = t.getConfig();
@@ -108,7 +110,7 @@ var L = B.packet, u, v = (u = class {
108
110
  blockStrokeWidth: "1",
109
111
  blockFillColor: "#efefef"
110
112
  }, H = /* @__PURE__ */ b(({ packet: e } = {}) => {
111
- const t = m(j, e);
113
+ const t = u(j, e);
112
114
  return `
113
115
  .packetByte {
114
116
  font-size: ${t.byteFontSize};
@@ -133,7 +135,7 @@ var L = B.packet, u, v = (u = class {
133
135
  fill: ${t.blockFillColor};
134
136
  }
135
137
  `;
136
- }, "styles"), V = {
138
+ }, "styles"), tt = {
137
139
  parser: x,
138
140
  get db() {
139
141
  return new v();
@@ -142,5 +144,5 @@ var L = B.packet, u, v = (u = class {
142
144
  styles: H
143
145
  };
144
146
  export {
145
- V as diagram
147
+ tt as diagram
146
148
  };
@@ -1,8 +1,8 @@
1
- import { g as Dt } from "./chunk-55IACEB6-DaHkCIMI.js";
2
- import { s as wt } from "./chunk-QN33PNHL-BFfd-KsX.js";
3
- import { _ as u, s as Vt, g as Lt, c as Mt, b as Bt, o as Ft, p as Yt, d as tt, l as D, v as Pt, t as zt, D as Gt, z as Kt, A as Zt, j as Ut, u as jt, B as Wt } from "./mermaid.core-Ce2qm3MW.js";
4
- import { c as Qt } from "./channel-BP0bUxGp.js";
5
- import "./index-DWpc-Mxs.js";
1
+ import { g as Dt } from "./chunk-55IACEB6-tWLXzb2x.js";
2
+ import { s as wt } from "./chunk-QN33PNHL-Xr4FEi7o.js";
3
+ import { _ as u, s as Vt, g as Lt, c as Mt, b as Bt, o as Ft, p as Yt, d as tt, l as D, v as Pt, t as zt, D as Gt, z as Kt, A as Zt, j as Ut, u as jt, B as Wt } from "./mermaid.core-D77TS0_l.js";
4
+ import { c as Qt } from "./channel-CJ6nZxxi.js";
5
+ import "./index-2q9HQ6jv.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  var dt = function() {
@@ -1,9 +1,9 @@
1
- import { g as qt } from "./chunk-FMBD7UC4-MWLCTT_V.js";
2
- import { d as b1, s as Ht, c as Xt, o as Qt, g as Jt, b as Zt, p as $t, _ as m, e as te, q as ee, J as se, r as ie, l as t1, t as st, u as it, j as S1, v as re, x as ae, y as Ot, z as ne, A as ue, B as oe } from "./mermaid.core-Ce2qm3MW.js";
3
- import { g as le } from "./chunk-55IACEB6-DaHkCIMI.js";
4
- import { s as ce } from "./chunk-QN33PNHL-BFfd-KsX.js";
5
- import { c as he } from "./channel-BP0bUxGp.js";
6
- import "./index-DWpc-Mxs.js";
1
+ import { g as qt } from "./chunk-FMBD7UC4-CqgCvnFf.js";
2
+ import { d as b1, s as Ht, c as Xt, o as Qt, g as Jt, b as Zt, p as $t, _ as m, e as te, q as ee, J as se, r as ie, l as t1, t as st, u as it, j as S1, v as re, x as ae, y as Ot, z as ne, A as ue, B as oe } from "./mermaid.core-D77TS0_l.js";
3
+ import { g as le } from "./chunk-55IACEB6-tWLXzb2x.js";
4
+ import { s as ce } from "./chunk-QN33PNHL-Xr4FEi7o.js";
5
+ import { c as he } from "./channel-CJ6nZxxi.js";
6
+ import "./index-2q9HQ6jv.js";
7
7
  import "react";
8
8
  import "react-dom";
9
9
  var de = "flowchart-", O1, pe = (O1 = class {
@@ -1,6 +1,6 @@
1
- import { b4 as Je, b5 as Ke, b6 as tn, b7 as en, b8 as In, b9 as se, ba as Ln, _ as d, bb as rt, d as _t, s as An, g as Wn, o as $n, p as On, c as Hn, b as Nn, v as Pn, m as Vn, l as Tt, j as Bt, k as zn, e as Rn, u as Zn } from "./mermaid.core-Ce2qm3MW.js";
2
- import { c as ne, g as re } from "./index-DWpc-Mxs.js";
3
- import { b as Bn, t as We, c as Xn, a as qn, l as Gn } from "./linear-ZyP8gWvJ.js";
1
+ import { ba as Je, bb as Ke, bc as tn, bd as en, be as In, bf as se, bg as Ln, _ as d, bh as rt, d as _t, s as An, g as Wn, o as $n, p as On, c as Hn, b as Nn, v as Pn, m as Vn, l as Tt, j as Bt, k as zn, e as Rn, u as Zn } from "./mermaid.core-D77TS0_l.js";
2
+ import { c as ne, g as re } from "./index-2q9HQ6jv.js";
3
+ import { b as Bn, t as We, c as Xn, a as qn, l as Gn } from "./linear-DQjYFf2K.js";
4
4
  import { i as jn } from "./init-DjUOC4st.js";
5
5
  import "react";
6
6
  import "react-dom";
@@ -0,0 +1,11 @@
1
+ import { G, f as s } from "./mermaid-parser.core-3bjcG0rb.js";
2
+ import "./min-D8aWZ538.js";
3
+ import "./_baseUniq-Bo-J_G8t.js";
4
+ import "./mermaid.core-D77TS0_l.js";
5
+ import "./index-2q9HQ6jv.js";
6
+ import "react";
7
+ import "react-dom";
8
+ export {
9
+ G as GitGraphModule,
10
+ s as createGitGraphServices
11
+ };