@altimateai/ui-components 0.0.77-beta.3 → 0.0.77-beta.5

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/Accordion.js +402 -0
  2. package/dist/CoachForm.css +1 -1
  3. package/dist/CoachForm.js +21630 -18090
  4. package/dist/Stack.js +2820 -2260
  5. package/dist/Switch.js +128 -87
  6. package/dist/ToggleGroup.js +5956 -4781
  7. package/dist/_basePickBy.js +25 -25
  8. package/dist/_baseUniq.js +122 -122
  9. package/dist/arc.js +36 -36
  10. package/dist/architectureDiagram-VXUJARFQ.js +1 -1
  11. package/dist/assets/icons/index.js +1 -1
  12. package/dist/blockDiagram-VD42YOAC.js +1 -1
  13. package/dist/c4Diagram-YG6GDRKO.js +22 -22
  14. package/dist/channel.js +2 -2
  15. package/dist/chatbotV2/index.d.ts +61 -10
  16. package/dist/chatbotV2/index.js +442 -56
  17. package/dist/chunk-4BX2VUAB.js +1 -1
  18. package/dist/chunk-55IACEB6.js +2 -2
  19. package/dist/chunk-B4BG7PRW.js +1 -1
  20. package/dist/chunk-DI55MBZ5.js +1 -1
  21. package/dist/chunk-FMBD7UC4.js +1 -1
  22. package/dist/chunk-QN33PNHL.js +5 -5
  23. package/dist/chunk-QZHKN3VN.js +1 -1
  24. package/dist/chunk-TZMSLE5B.js +1 -1
  25. package/dist/classDiagram-2ON5EDUG.js +1 -1
  26. package/dist/classDiagram-v2-WZHVMYZB.js +1 -1
  27. package/dist/cose-bilkent-S5V4N54A.js +1 -1
  28. package/dist/dagre-6UL2VRFP.js +58 -58
  29. package/dist/dayjs.min.js +1 -1
  30. package/dist/diagram-PSM6KHXK.js +48 -48
  31. package/dist/diagram-QEK2KX5R.js +26 -26
  32. package/dist/diagram-S2PKOQOG.js +9 -9
  33. package/dist/erDiagram-Q2GNP2WA.js +12 -12
  34. package/dist/flowDiagram-NV44I4VS.js +6 -6
  35. package/dist/ganttDiagram-LVOFAZNH.js +322 -322
  36. package/dist/gitGraphDiagram-NY62KEGX.js +13 -13
  37. package/dist/graph.js +5 -5
  38. package/dist/index.css +1 -1
  39. package/dist/index.d.ts +9 -1
  40. package/dist/index.js +24 -23
  41. package/dist/index2.css +1 -0
  42. package/dist/index2.js +22 -22
  43. package/dist/infoDiagram-F6ZHWCRC.js +14 -14
  44. package/dist/journeyDiagram-XKPGCS4Q.js +1 -1
  45. package/dist/kanban-definition-3W4ZIXB7.js +54 -54
  46. package/dist/layout.js +52 -52
  47. package/dist/lineage/index.js +381 -381
  48. package/dist/main.js +6 -6
  49. package/dist/mermaid-parser.core.js +1 -1
  50. package/dist/mindmap-definition-VGOIOE7T.js +16 -16
  51. package/dist/pieDiagram-ADFJNKIX.js +25 -25
  52. package/dist/quadrantDiagram-AYHSOK5B.js +1 -1
  53. package/dist/redux-toolkit.modern.js +7 -7
  54. package/dist/requirementDiagram-UZGBJVZJ.js +1 -1
  55. package/dist/sankeyDiagram-TZEHDZUN.js +16 -16
  56. package/dist/sequenceDiagram-WL72ISMW.js +28 -28
  57. package/dist/shadcn/index.d.ts +22 -35
  58. package/dist/shadcn/index.js +6232 -4805
  59. package/dist/stateDiagram-FKZM4ZOC.js +34 -34
  60. package/dist/stateDiagram-v2-4FDKWEC3.js +6 -6
  61. package/dist/storybook/Typography.stories.tsx +93 -120
  62. package/dist/timeline-definition-IT6M3QCI.js +54 -54
  63. package/dist/xychartDiagram-PRI3JC2R.js +32 -32
  64. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { a1 as b, bh as F, bi as Y, bj as H, bk as _, ad as i, a7 as V, bl as U, bm as $, b6 as q, bb as z, b7 as P, b5 as K, bn as Q, bo as W, bp as Z } from "./CoachForm.js";
1
+ import { _ as X, aq as F, ar as Y, as as _, at as H, l as i, d as V, au as q, av as U, af as $, ak as z, ag as P, ae as K, aw as Q, ax as W, ay as Z } from "./CoachForm.js";
2
2
  import { G as B } from "./graph.js";
3
3
  import { l as I } from "./layout.js";
4
4
  import { i as x } from "./_baseUniq.js";
@@ -28,15 +28,15 @@ function ne(e) {
28
28
  return x(t.name) || (o.name = t.name), x(n) || (o.value = n), o;
29
29
  });
30
30
  }
31
- var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ b(() => {
32
- N.clear(), J.clear(), f.clear();
33
- }, "clear"), O = /* @__PURE__ */ b((e, t) => {
34
- const n = N.get(t) || [];
31
+ var f = /* @__PURE__ */ new Map(), b = /* @__PURE__ */ new Map(), J = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ X(() => {
32
+ b.clear(), J.clear(), f.clear();
33
+ }, "clear"), O = /* @__PURE__ */ X((e, t) => {
34
+ const n = b.get(t) || [];
35
35
  return i.trace("In isDescendant", t, " ", e, " = ", n.includes(e)), n.includes(e);
36
- }, "isDescendant"), se = /* @__PURE__ */ b((e, t) => {
37
- const n = N.get(t) || [];
36
+ }, "isDescendant"), se = /* @__PURE__ */ X((e, t) => {
37
+ const n = b.get(t) || [];
38
38
  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);
39
- }, "edgeInCluster"), G = /* @__PURE__ */ b((e, t, n, o) => {
39
+ }, "edgeInCluster"), G = /* @__PURE__ */ X((e, t, n, o) => {
40
40
  i.warn(
41
41
  "Copying children of ",
42
42
  e,
@@ -63,10 +63,10 @@ var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE
63
63
  const u = t.edges(a);
64
64
  i.debug("Copying Edges", u), u.forEach((l) => {
65
65
  i.info("Edge", l);
66
- const v = t.edge(l.v, l.w, l.name);
67
- i.info("Edge data", v, o);
66
+ const h = t.edge(l.v, l.w, l.name);
67
+ i.info("Edge data", h, o);
68
68
  try {
69
- 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(
69
+ se(l, o) ? (i.info("Copying as ", l.v, l.w, h, l.name), n.setEdge(l.v, l.w, h, l.name), i.info("newGraph edges ", n.edges(), n.edge(n.edges()[0]))) : i.info(
70
70
  "Skipping copy of edge ",
71
71
  l.v,
72
72
  "-->",
@@ -83,16 +83,16 @@ var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE
83
83
  }
84
84
  i.debug("Removing node", a), t.removeNode(a);
85
85
  });
86
- }, "copy"), R = /* @__PURE__ */ b((e, t) => {
86
+ }, "copy"), R = /* @__PURE__ */ X((e, t) => {
87
87
  const n = t.children(e);
88
88
  let o = [...n];
89
89
  for (const c of n)
90
90
  J.set(c, e), o = [...o, ...R(c, t)];
91
91
  return o;
92
- }, "extractDescendants"), ie = /* @__PURE__ */ b((e, t, n) => {
92
+ }, "extractDescendants"), ie = /* @__PURE__ */ X((e, t, n) => {
93
93
  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 }));
94
- return a.filter((l) => r.some((v) => l.v === v.v && l.w === v.w));
95
- }, "findCommonEdges"), D = /* @__PURE__ */ b((e, t, n) => {
94
+ return a.filter((l) => r.some((h) => l.v === h.v && l.w === h.w));
95
+ }, "findCommonEdges"), D = /* @__PURE__ */ X((e, t, n) => {
96
96
  const o = t.children(e);
97
97
  if (i.trace("Searching children of id ", e, o), o.length < 1)
98
98
  return e;
@@ -106,7 +106,7 @@ var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE
106
106
  return r;
107
107
  }
108
108
  return c;
109
- }, "findNonClusterChild"), k = /* @__PURE__ */ b((e) => !f.has(e) || !f.get(e).externalConnections ? e : f.has(e) ? f.get(e).id : e, "getAnchorId"), re = /* @__PURE__ */ b((e, t) => {
109
+ }, "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) => {
110
110
  if (!e || t > 10) {
111
111
  i.debug("Opting out, no graph ");
112
112
  return;
@@ -118,13 +118,13 @@ var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE
118
118
  n,
119
119
  " Replacement id in edges: ",
120
120
  D(n, e, n)
121
- ), N.set(n, R(n, e)), f.set(n, { id: D(n, e, n), clusterData: e.node(n) }));
121
+ ), b.set(n, R(n, e)), f.set(n, { id: D(n, e, n), clusterData: e.node(n) }));
122
122
  }), e.nodes().forEach(function(n) {
123
123
  const o = e.children(n), c = e.edges();
124
- o.length > 0 ? (i.debug("Cluster identified", n, N), c.forEach((a) => {
124
+ o.length > 0 ? (i.debug("Cluster identified", n, b), c.forEach((a) => {
125
125
  const r = O(a.v, n), u = O(a.w, n);
126
- r ^ u && (i.warn("Edge: ", a, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", N.get(n)), f.get(n).externalConnections = !0);
127
- })) : i.debug("Not a cluster ", n, N);
126
+ r ^ u && (i.warn("Edge: ", a, " leaves cluster ", n), i.warn("Descendants of XXX ", n, ": ", b.get(n)), f.get(n).externalConnections = !0);
127
+ })) : i.debug("Not a cluster ", n, b);
128
128
  });
129
129
  for (let n of f.keys()) {
130
130
  const o = f.get(n).id, c = e.parent(o);
@@ -156,7 +156,7 @@ var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE
156
156
  i.warn("Fix Replacing with XXX", c, a, n.name), e.setEdge(c, a, o, n.name);
157
157
  }
158
158
  }), i.warn("Adjusted Graph", p(e)), T(e, 0), i.trace(f);
159
- }, "adjustClustersAndEdges"), T = /* @__PURE__ */ b((e, t) => {
159
+ }, "adjustClustersAndEdges"), T = /* @__PURE__ */ X((e, t) => {
160
160
  var c, a;
161
161
  if (i.warn("extractor - ", t, p(e), e.children("D")), t > 10) {
162
162
  i.error("Bailing out");
@@ -193,7 +193,7 @@ var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE
193
193
  );
194
194
  let l = e.graph().rankdir === "TB" ? "LR" : "TB";
195
195
  (a = (c = f.get(r)) == null ? void 0 : c.clusterData) != null && a.dir && (l = f.get(r).clusterData.dir, i.warn("Fixing dir", f.get(r).clusterData.dir, l));
196
- const v = new B({
196
+ const h = new B({
197
197
  multigraph: !0,
198
198
  compound: !0
199
199
  }).setGraph({
@@ -205,13 +205,13 @@ var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE
205
205
  }).setDefaultEdgeLabel(function() {
206
206
  return {};
207
207
  });
208
- i.warn("Old graph before copy", p(e)), G(r, e, v, r), e.setNode(r, {
208
+ i.warn("Old graph before copy", p(e)), G(r, e, h, r), e.setNode(r, {
209
209
  clusterNode: !0,
210
210
  id: r,
211
211
  clusterData: f.get(r).clusterData,
212
212
  label: f.get(r).label,
213
- graph: v
214
- }), i.warn("New graph after copy node: (", r, ")", p(v)), i.debug("Old graph after copy", p(e));
213
+ graph: h
214
+ }), i.warn("New graph after copy node: (", r, ")", p(h)), i.debug("Old graph after copy", p(e));
215
215
  } else
216
216
  i.warn(
217
217
  "Cluster ** ",
@@ -230,7 +230,7 @@ var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE
230
230
  const u = e.node(r);
231
231
  i.warn(" Now next level", r, u), u != null && u.clusterNode && T(u.graph, t + 1);
232
232
  }
233
- }, "extractor"), M = /* @__PURE__ */ b((e, t) => {
233
+ }, "extractor"), M = /* @__PURE__ */ X((e, t) => {
234
234
  if (t.length === 0)
235
235
  return [];
236
236
  let n = Object.assign([], t);
@@ -238,13 +238,13 @@ var f = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map(), J = /* @__PURE
238
238
  const c = e.children(o), a = M(e, c);
239
239
  n = [...n, ...a];
240
240
  }), n;
241
- }, "sorter"), oe = /* @__PURE__ */ b((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ b(async (e, t, n, o, c, a) => {
241
+ }, "sorter"), oe = /* @__PURE__ */ X((e) => M(e, e.children()), "sortNodesByHierarchy"), j = /* @__PURE__ */ X(async (e, t, n, o, c, a) => {
242
242
  i.warn("Graph in recursive render:XAX", p(t), c);
243
243
  const r = t.graph().rankdir;
244
244
  i.trace("Dir in recursive render - dir:", r);
245
245
  const u = e.insert("g").attr("class", "root");
246
246
  t.nodes() ? i.info("Recursive render XXX", t.nodes()) : i.info("No nodes found for", t), t.edges().length > 0 && i.info("Recursive edges", t.edge(t.edges()[0]));
247
- const l = u.insert("g").attr("class", "clusters"), v = u.insert("g").attr("class", "edgePaths"), C = u.insert("g").attr("class", "edgeLabels"), g = u.insert("g").attr("class", "nodes");
247
+ const l = u.insert("g").attr("class", "clusters"), h = u.insert("g").attr("class", "edgePaths"), C = u.insert("g").attr("class", "edgeLabels"), g = u.insert("g").attr("class", "nodes");
248
248
  await Promise.all(
249
249
  t.nodes().map(async function(d) {
250
250
  const s = t.node(d);
@@ -270,15 +270,15 @@ Parent cluster`,
270
270
  ranksep: w + 25,
271
271
  nodesep: m
272
272
  });
273
- const E = await j(
273
+ const N = await j(
274
274
  g,
275
275
  s.graph,
276
276
  n,
277
277
  o,
278
278
  t.node(d),
279
279
  a
280
- ), S = E.elem;
281
- U(s, S), s.diff = E.diff || 0, i.info(
280
+ ), S = N.elem;
281
+ q(s, S), s.diff = N.diff || 0, i.info(
282
282
  "New compound node after recursive render XAX",
283
283
  d,
284
284
  "width",
@@ -288,7 +288,7 @@ Parent cluster`,
288
288
  s.height
289
289
  // node.x,
290
290
  // node.y
291
- ), $(S, s);
291
+ ), U(S, s);
292
292
  } else
293
293
  t.children(d).length > 0 ? (i.trace(
294
294
  "Cluster - the non recursive path XBX",
@@ -298,9 +298,9 @@ Parent cluster`,
298
298
  s.width,
299
299
  "Graph:",
300
300
  t
301
- ), i.trace(D(s.id, t)), f.set(s.id, { id: D(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", d, g, t.node(d), r), await q(g, t.node(d), { config: a, dir: r }));
301
+ ), i.trace(D(s.id, t)), f.set(s.id, { id: D(s.id, t), node: s })) : (i.trace("Node - the non recursive path XAX", d, g, t.node(d), r), await $(g, t.node(d), { config: a, dir: r }));
302
302
  })
303
- ), await (/* @__PURE__ */ b(async () => {
303
+ ), await (/* @__PURE__ */ X(async () => {
304
304
  const d = t.edges().map(async function(s) {
305
305
  const w = t.edge(s.v, s.w, s.name);
306
306
  i.info("Edge " + s.v + " -> " + s.w + ": " + JSON.stringify(s)), i.info("Edge " + s.v + " -> " + s.w + ": ", s, " ", JSON.stringify(t.edge(s))), i.info(
@@ -316,7 +316,7 @@ Parent cluster`,
316
316
  });
317
317
  await Promise.all(d);
318
318
  }, "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)));
319
- let y = 0, { subGraphTitleTotalMargin: X } = z(a);
319
+ let E = 0, { subGraphTitleTotalMargin: y } = z(a);
320
320
  return await Promise.all(
321
321
  oe(t).map(async function(d) {
322
322
  var w;
@@ -329,7 +329,7 @@ Parent cluster`,
329
329
  " height: ",
330
330
  s.height
331
331
  ), s != null && s.clusterNode)
332
- s.y += X, i.info(
332
+ s.y += y, i.info(
333
333
  "A tainted cluster node XBX1",
334
334
  d,
335
335
  s.id,
@@ -349,12 +349,12 @@ Parent cluster`,
349
349
  s.width,
350
350
  s.height,
351
351
  t.parent(d)
352
- ), s.height += X, t.node(s.parentId);
353
- const m = (s == null ? void 0 : s.padding) / 2 || 0, E = ((w = s == null ? void 0 : s.labelBBox) == null ? void 0 : w.height) || 0, S = E - m || 0;
354
- i.debug("OffsetY", S, "labelHeight", E, "halfPadding", m), await K(l, s), f.get(s.id).node = s;
352
+ ), s.height += y, t.node(s.parentId);
353
+ 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;
354
+ i.debug("OffsetY", S, "labelHeight", N, "halfPadding", m), await K(l, s), f.get(s.id).node = s;
355
355
  } else {
356
356
  const m = t.node(s.parentId);
357
- s.y += X / 2, i.info(
357
+ s.y += y / 2, i.info(
358
358
  "A regular node XBX1 - using the padding",
359
359
  s.id,
360
360
  "parent",
@@ -374,37 +374,37 @@ Parent cluster`,
374
374
  })
375
375
  ), t.edges().forEach(function(d) {
376
376
  const s = t.edge(d);
377
- i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(s), s), s.points.forEach((S) => S.y += X / 2);
377
+ i.info("Edge " + d.v + " -> " + d.w + ": " + JSON.stringify(s), s), s.points.forEach((S) => S.y += y / 2);
378
378
  const w = t.node(d.v);
379
379
  var m = t.node(d.w);
380
- const E = Q(v, s, f, n, w, m, o);
381
- W(s, E);
380
+ const N = Q(h, s, f, n, w, m, o);
381
+ W(s, N);
382
382
  }), t.nodes().forEach(function(d) {
383
383
  const s = t.node(d);
384
- i.info(d, s.type, s.diff), s.isGroup && (y = s.diff);
385
- }), i.warn("Returning from recursive render XAX", u, y), { elem: u, diff: y };
386
- }, "recursiveRender"), ge = /* @__PURE__ */ b(async (e, t) => {
387
- var a, r, u, l, v, C;
384
+ i.info(d, s.type, s.diff), s.isGroup && (E = s.diff);
385
+ }), i.warn("Returning from recursive render XAX", u, E), { elem: u, diff: E };
386
+ }, "recursiveRender"), ge = /* @__PURE__ */ X(async (e, t) => {
387
+ var a, r, u, l, h, C;
388
388
  const n = new B({
389
389
  multigraph: !0,
390
390
  compound: !0
391
391
  }).setGraph({
392
392
  rankdir: e.direction,
393
393
  nodesep: ((a = e.config) == null ? void 0 : a.nodeSpacing) || ((u = (r = e.config) == null ? void 0 : r.flowchart) == null ? void 0 : u.nodeSpacing) || e.nodeSpacing,
394
- ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (v = e.config) == null ? void 0 : v.flowchart) == null ? void 0 : C.rankSpacing) || e.rankSpacing,
394
+ ranksep: ((l = e.config) == null ? void 0 : l.rankSpacing) || ((C = (h = e.config) == null ? void 0 : h.flowchart) == null ? void 0 : C.rankSpacing) || e.rankSpacing,
395
395
  marginx: 8,
396
396
  marginy: 8
397
397
  }).setDefaultEdgeLabel(function() {
398
398
  return {};
399
399
  }), o = t.select("g");
400
- F(o, e.markers, e.type, e.diagramId), Y(), H(), _(), te(), e.nodes.forEach((g) => {
400
+ F(o, e.markers, e.type, e.diagramId), Y(), _(), H(), te(), e.nodes.forEach((g) => {
401
401
  n.setNode(g.id, { ...g }), g.parentId && n.setParent(g.id, g.parentId);
402
402
  }), i.debug("Edges:", e.edges), e.edges.forEach((g) => {
403
403
  if (g.start === g.end) {
404
- const h = g.start, y = h + "---" + h + "---1", X = h + "---" + h + "---2", d = n.node(h);
405
- n.setNode(y, {
406
- domId: y,
407
- id: y,
404
+ const v = g.start, E = v + "---" + v + "---1", y = v + "---" + v + "---2", d = n.node(v);
405
+ n.setNode(E, {
406
+ domId: E,
407
+ id: E,
408
408
  parentId: d.parentId,
409
409
  labelStyle: "",
410
410
  label: "",
@@ -414,9 +414,9 @@ Parent cluster`,
414
414
  style: "",
415
415
  width: 10,
416
416
  height: 10
417
- }), n.setParent(y, d.parentId), n.setNode(X, {
418
- domId: X,
419
- id: X,
417
+ }), n.setParent(E, d.parentId), n.setNode(y, {
418
+ domId: y,
419
+ id: y,
420
420
  parentId: d.parentId,
421
421
  labelStyle: "",
422
422
  padding: 0,
@@ -426,9 +426,9 @@ Parent cluster`,
426
426
  style: "",
427
427
  width: 10,
428
428
  height: 10
429
- }), n.setParent(X, d.parentId);
429
+ }), n.setParent(y, d.parentId);
430
430
  const s = structuredClone(g), w = structuredClone(g), m = structuredClone(g);
431
- 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, X, w, h + "-cyclic-special-1"), n.setEdge(X, h, m, h + "-cyc<lic-special-2");
431
+ s.label = "", s.arrowTypeEnd = "none", s.id = v + "-cyclic-special-1", w.arrowTypeStart = "none", w.arrowTypeEnd = "none", w.id = v + "-cyclic-special-mid", m.label = "", d.isGroup && (s.fromCluster = v, m.toCluster = v), m.id = v + "-cyclic-special-2", m.arrowTypeStart = "none", n.setEdge(v, E, s, v + "-cyclic-special-0"), n.setEdge(E, y, w, v + "-cyclic-special-1"), n.setEdge(y, v, m, v + "-cyc<lic-special-2");
432
432
  } else
433
433
  n.setEdge(g.start, g.end, { ...g }, g.id);
434
434
  }), i.warn("Graph at first:", JSON.stringify(p(n))), re(n), i.warn("Graph after XAX:", JSON.stringify(p(n)));
package/dist/dayjs.min.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { j as R } from "./index2.js";
2
2
  import { forwardRef as q } from "react";
3
- import { g as B } from "./Stack.js";
3
+ import { a as B } from "./Stack.js";
4
4
  import { c as tt, g as et } from "./redux-toolkit.modern.js";
5
5
  const nt = q(
6
6
  ({ className: T, isOpen: H = !1, children: v, ...g }, L) => H ? /* @__PURE__ */ R.jsx("div", { ref: L, className: B("al-transition-all", T), ...g, children: v }) : null
@@ -1,4 +1,4 @@
1
- import { a3 as he, a4 as ue, ag as pe, ah as fe, a5 as ge, a6 as me, a1 as w, aw as te, av as ae, bK as ye, an as Se, au as ve, ad as J, az as xe, ae as be, bL as P } from "./CoachForm.js";
1
+ import { s as he, g as ue, m as pe, n as fe, b as ge, c as me, _ as w, D as te, C as ae, bP as ye, r as Se, B as ve, l as J, G as xe, j as be, bQ as P } from "./CoachForm.js";
2
2
  import { s as we } from "./chunk-QN33PNHL.js";
3
3
  import { p as Ce } from "./chunk-4BX2VUAB.js";
4
4
  import { p as Te } from "./mermaid-parser.core.js";
@@ -48,12 +48,12 @@ function Me(t) {
48
48
  a.value = l;
49
49
  });
50
50
  }
51
- function ze(t) {
51
+ function _e(t) {
52
52
  return this.eachBefore(function(a) {
53
53
  a.children && a.children.sort(t);
54
54
  });
55
55
  }
56
- function _e(t) {
56
+ function ze(t) {
57
57
  for (var a = this, l = Ve(a, t), n = [a]; a !== l; )
58
58
  a = a.parent, n.push(a);
59
59
  for (var o = n.length; t !== l; )
@@ -96,16 +96,16 @@ function* Ee() {
96
96
  l.push(n[o]);
97
97
  while (l.length);
98
98
  }
99
- function Q(t, a) {
99
+ function K(t, a) {
100
100
  t instanceof Map ? (t = [void 0, t], a === void 0 && (a = Ie)) : a === void 0 && (a = He);
101
- for (var l = new K(t), n, o = [l], s, d, h, g; n = o.pop(); )
101
+ for (var l = new Q(t), n, o = [l], s, d, h, g; n = o.pop(); )
102
102
  if ((d = a(n.data)) && (g = (d = Array.from(d)).length))
103
103
  for (n.children = d, h = g - 1; h >= 0; --h)
104
- o.push(s = d[h] = new K(d[h])), s.parent = n, s.depth = n.depth + 1;
104
+ o.push(s = d[h] = new Q(d[h])), s.parent = n, s.depth = n.depth + 1;
105
105
  return l.eachBefore(Ge);
106
106
  }
107
107
  function We() {
108
- return Q(this).eachBefore(Oe);
108
+ return K(this).eachBefore(Oe);
109
109
  }
110
110
  function He(t) {
111
111
  return t.children;
@@ -122,19 +122,19 @@ function Ge(t) {
122
122
  t.height = a;
123
123
  while ((t = t.parent) && t.height < ++a);
124
124
  }
125
- function K(t) {
125
+ function Q(t) {
126
126
  this.data = t, this.depth = this.height = 0, this.parent = null;
127
127
  }
128
- K.prototype = Q.prototype = {
129
- constructor: K,
128
+ Q.prototype = K.prototype = {
129
+ constructor: Q,
130
130
  count: $e,
131
131
  each: Ae,
132
132
  eachAfter: ke,
133
133
  eachBefore: Fe,
134
134
  find: Ne,
135
135
  sum: Me,
136
- sort: ze,
137
- path: _e,
136
+ sort: _e,
137
+ path: ze,
138
138
  ancestors: De,
139
139
  descendants: Pe,
140
140
  leaves: Be,
@@ -142,22 +142,22 @@ K.prototype = Q.prototype = {
142
142
  copy: We,
143
143
  [Symbol.iterator]: Ee
144
144
  };
145
- function qe(t) {
145
+ function je(t) {
146
146
  if (typeof t != "function") throw new Error();
147
147
  return t;
148
148
  }
149
149
  function G() {
150
150
  return 0;
151
151
  }
152
- function q(t) {
152
+ function j(t) {
153
153
  return function() {
154
154
  return t;
155
155
  };
156
156
  }
157
- function Xe(t) {
157
+ function qe(t) {
158
158
  t.x0 = Math.round(t.x0), t.y0 = Math.round(t.y0), t.x1 = Math.round(t.x1), t.y1 = Math.round(t.y1);
159
159
  }
160
- function je(t, a, l, n, o) {
160
+ function Xe(t, a, l, n, o) {
161
161
  for (var s = t.children, d, h = -1, g = s.length, c = t.value && (n - a) / t.value; ++h < g; )
162
162
  d = s[h], d.y0 = l, d.y1 = o, d.x0 = a, d.x1 = a += d.value * c;
163
163
  }
@@ -165,7 +165,7 @@ function Ye(t, a, l, n, o) {
165
165
  for (var s = t.children, d, h = -1, g = s.length, c = t.value && (o - l) / t.value; ++h < g; )
166
166
  d = s[h], d.x0 = a, d.x1 = n, d.y0 = l, d.y1 = l += d.value * c;
167
167
  }
168
- var Ke = (1 + Math.sqrt(5)) / 2;
168
+ var Qe = (1 + Math.sqrt(5)) / 2;
169
169
  function Ue(t, a, l, n, o, s) {
170
170
  for (var d = [], h = a.children, g, c, u = 0, b = 0, r = h.length, x, S, v = a.value, p, m, N, k, V, E, M; u < r; ) {
171
171
  x = o - l, S = s - n;
@@ -179,7 +179,7 @@ function Ue(t, a, l, n, o, s) {
179
179
  }
180
180
  V = k;
181
181
  }
182
- d.push(g = { value: p, dice: x < S, children: h.slice(u, b) }), g.dice ? je(g, l, n, o, v ? n += S * p / v : s) : Ye(g, l, n, v ? l += x * p / v : o, s), v -= p, u = b;
182
+ d.push(g = { value: p, dice: x < S, children: h.slice(u, b) }), g.dice ? Xe(g, l, n, o, v ? n += S * p / v : s) : Ye(g, l, n, v ? l += x * p / v : o, s), v -= p, u = b;
183
183
  }
184
184
  return d;
185
185
  }
@@ -190,11 +190,11 @@ const Ze = function t(a) {
190
190
  return l.ratio = function(n) {
191
191
  return t((n = +n) > 1 ? n : 1);
192
192
  }, l;
193
- }(Ke);
193
+ }(Qe);
194
194
  function Je() {
195
195
  var t = Ze, a = !1, l = 1, n = 1, o = [0], s = G, d = G, h = G, g = G, c = G;
196
196
  function u(r) {
197
- return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), o = [0], a && r.eachBefore(Xe), r;
197
+ return r.x0 = r.y0 = 0, r.x1 = l, r.y1 = n, r.eachBefore(b), o = [0], a && r.eachBefore(qe), r;
198
198
  }
199
199
  function b(r) {
200
200
  var x = o[r.depth], S = r.x0 + x, v = r.y0 + x, p = r.x1 - x, m = r.y1 - x;
@@ -205,21 +205,21 @@ function Je() {
205
205
  }, u.size = function(r) {
206
206
  return arguments.length ? (l = +r[0], n = +r[1], u) : [l, n];
207
207
  }, u.tile = function(r) {
208
- return arguments.length ? (t = qe(r), u) : t;
208
+ return arguments.length ? (t = je(r), u) : t;
209
209
  }, u.padding = function(r) {
210
210
  return arguments.length ? u.paddingInner(r).paddingOuter(r) : u.paddingInner();
211
211
  }, u.paddingInner = function(r) {
212
- return arguments.length ? (s = typeof r == "function" ? r : q(+r), u) : s;
212
+ return arguments.length ? (s = typeof r == "function" ? r : j(+r), u) : s;
213
213
  }, u.paddingOuter = function(r) {
214
214
  return arguments.length ? u.paddingTop(r).paddingRight(r).paddingBottom(r).paddingLeft(r) : u.paddingTop();
215
215
  }, u.paddingTop = function(r) {
216
- return arguments.length ? (d = typeof r == "function" ? r : q(+r), u) : d;
216
+ return arguments.length ? (d = typeof r == "function" ? r : j(+r), u) : d;
217
217
  }, u.paddingRight = function(r) {
218
- return arguments.length ? (h = typeof r == "function" ? r : q(+r), u) : h;
218
+ return arguments.length ? (h = typeof r == "function" ? r : j(+r), u) : h;
219
219
  }, u.paddingBottom = function(r) {
220
- return arguments.length ? (g = typeof r == "function" ? r : q(+r), u) : g;
220
+ return arguments.length ? (g = typeof r == "function" ? r : j(+r), u) : g;
221
221
  }, u.paddingLeft = function(r) {
222
- return arguments.length ? (c = typeof r == "function" ? r : q(+r), u) : c;
222
+ return arguments.length ? (c = typeof r == "function" ? r : j(+r), u) : c;
223
223
  }, u;
224
224
  }
225
225
  var R, ne = (R = class {
@@ -280,7 +280,7 @@ function le(t) {
280
280
  }), a;
281
281
  }
282
282
  w(le, "buildHierarchy");
283
- var Qe = /* @__PURE__ */ w((t, a) => {
283
+ var Ke = /* @__PURE__ */ w((t, a) => {
284
284
  Ce(t, a);
285
285
  const l = [];
286
286
  for (const s of t.TreemapRows ?? [])
@@ -317,12 +317,12 @@ var Qe = /* @__PURE__ */ w((t, a) => {
317
317
  throw new Error(
318
318
  "parser.parser?.yy was not a TreemapDB. This is due to a bug within Mermaid, please report this issue at https://github.com/mermaid-js/mermaid/issues."
319
319
  );
320
- Qe(n, o);
320
+ Ke(n, o);
321
321
  } catch (l) {
322
322
  throw J.error("Error parsing treemap:", l), l;
323
323
  }
324
324
  }, "parse")
325
- }, tt = 10, B = 10, X = 25, at = /* @__PURE__ */ w((t, a, l, n) => {
325
+ }, tt = 10, B = 10, q = 25, at = /* @__PURE__ */ w((t, a, l, n) => {
326
326
  const o = n.db, s = o.getConfig(), d = s.padding ?? tt, h = o.getDiagramTitle(), g = o.getRoot(), { themeVariables: c } = te();
327
327
  if (!g)
328
328
  return;
@@ -387,15 +387,15 @@ var Qe = /* @__PURE__ */ w((t, a) => {
387
387
  c.cScaleLabel11
388
388
  ]);
389
389
  h && b.append("text").attr("x", S / 2).attr("y", u / 2).attr("class", "treemapTitle").attr("text-anchor", "middle").attr("dominant-baseline", "middle").text(h);
390
- const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), E = Q(g).sum((e) => e.value ?? 0).sort((e, i) => (i.value ?? 0) - (e.value ?? 0)), ee = Je().size([r, x]).paddingTop(
391
- (e) => e.children && e.children.length > 0 ? X + B : 0
390
+ const V = b.append("g").attr("transform", `translate(0, ${u})`).attr("class", "treemapContainer"), E = K(g).sum((e) => e.value ?? 0).sort((e, i) => (i.value ?? 0) - (e.value ?? 0)), ee = Je().size([r, x]).paddingTop(
391
+ (e) => e.children && e.children.length > 0 ? q + B : 0
392
392
  ).paddingInner(d).paddingLeft((e) => e.children && e.children.length > 0 ? B : 0).paddingRight((e) => e.children && e.children.length > 0 ? B : 0).paddingBottom((e) => e.children && e.children.length > 0 ? B : 0).round(!0)(E), se = ee.descendants().filter((e) => e.children && e.children.length > 0), W = V.selectAll(".treemapSection").data(se).enter().append("g").attr("class", "treemapSection").attr("transform", (e) => `translate(${e.x0},${e.y0})`);
393
- W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", X).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), W.append("clipPath").attr("id", (e, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", X), W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, i) => `treemapSection section${i}`).attr("fill", (e) => m(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => N(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
393
+ W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", q).attr("class", "treemapSectionHeader").attr("fill", "none").attr("fill-opacity", 0.6).attr("stroke-width", 0.6).attr("style", (e) => e.depth === 0 ? "display: none;" : ""), W.append("clipPath").attr("id", (e, i) => `clip-section-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 12)).attr("height", q), W.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", (e, i) => `treemapSection section${i}`).attr("fill", (e) => m(e.data.name)).attr("fill-opacity", 0.6).attr("stroke", (e) => N(e.data.name)).attr("stroke-width", 2).attr("stroke-opacity", 0.4).attr("style", (e) => {
394
394
  if (e.depth === 0)
395
395
  return "display: none;";
396
396
  const i = P({ cssCompiledStyles: e.data.cssCompiledStyles });
397
397
  return i.nodeStyles + ";" + i.borderStyles.join(";");
398
- }), W.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", X / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => {
398
+ }), W.append("text").attr("class", "treemapSectionLabel").attr("x", 6).attr("y", q / 2).attr("dominant-baseline", "middle").text((e) => e.depth === 0 ? "" : e.data.name).attr("font-weight", "bold").attr("style", (e) => {
399
399
  if (e.depth === 0)
400
400
  return "display: none;";
401
401
  const i = "dominant-baseline: middle; font-size: 12px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
@@ -421,14 +421,14 @@ var Qe = /* @__PURE__ */ w((t, a) => {
421
421
  break;
422
422
  }
423
423
  }
424
- }), s.showValues !== !1 && W.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", X / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? p(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
424
+ }), s.showValues !== !1 && W.append("text").attr("class", "treemapSectionValue").attr("x", (e) => e.x1 - e.x0 - 10).attr("y", q / 2).attr("text-anchor", "end").attr("dominant-baseline", "middle").text((e) => e.value ? p(e.value) : "").attr("font-style", "italic").attr("style", (e) => {
425
425
  if (e.depth === 0)
426
426
  return "display: none;";
427
427
  const i = "text-anchor: end; dominant-baseline: middle; font-size: 10px; fill:" + k(e.data.name) + "; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
428
428
  return i + f.labelStyles.replace("color:", "fill:");
429
429
  });
430
- const ie = ee.leaves(), j = V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class", (e, i) => `treemapNode treemapLeafGroup leaf${i}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
431
- j.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("style", (e) => P({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("stroke-width", 3), j.append("clipPath").attr("id", (e, i) => `clip-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), j.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
430
+ const ie = ee.leaves(), X = V.selectAll(".treemapLeafGroup").data(ie).enter().append("g").attr("class", (e, i) => `treemapNode treemapLeafGroup leaf${i}${e.data.classSelector ? ` ${e.data.classSelector}` : ""}x`).attr("transform", (e) => `translate(${e.x0},${e.y0})`);
431
+ X.append("rect").attr("width", (e) => e.x1 - e.x0).attr("height", (e) => e.y1 - e.y0).attr("class", "treemapLeaf").attr("fill", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("style", (e) => P({ cssCompiledStyles: e.data.cssCompiledStyles }).nodeStyles).attr("fill-opacity", 0.3).attr("stroke", (e) => e.parent ? m(e.parent.data.name) : m(e.data.name)).attr("stroke-width", 3), X.append("clipPath").attr("id", (e, i) => `clip-${a}-${i}`).append("rect").attr("width", (e) => Math.max(0, e.x1 - e.x0 - 4)).attr("height", (e) => Math.max(0, e.y1 - e.y0 - 4)), X.append("text").attr("class", "treemapLabel").attr("x", (e) => (e.x1 - e.x0) / 2).attr("y", (e) => (e.y1 - e.y0) / 2).attr("style", (e) => {
432
432
  const i = "text-anchor: middle; dominant-baseline: middle; font-size: 38px;fill:" + k(e.data.name) + ";", f = P({ cssCompiledStyles: e.data.cssCompiledStyles });
433
433
  return i + f.labelStyles.replace("color:", "fill:");
434
434
  }).attr("clip-path", (e, i) => `url(#clip-${a}-${i})`).text((e) => e.data.name).each(function(e) {
@@ -438,20 +438,20 @@ var Qe = /* @__PURE__ */ w((t, a) => {
438
438
  return;
439
439
  }
440
440
  let y = parseInt(i.style("font-size"), 10);
441
- const z = 8, T = 28, L = 0.6, _ = 6, H = 2;
442
- for (; $.getComputedTextLength() > D && y > z; )
441
+ const _ = 8, T = 28, L = 0.6, z = 6, H = 2;
442
+ for (; $.getComputedTextLength() > D && y > _; )
443
443
  y--, i.style("font-size", `${y}px`);
444
444
  let I = Math.max(
445
- _,
445
+ z,
446
446
  Math.min(T, Math.round(y * L))
447
447
  ), U = y + H + I;
448
- for (; U > F && y > z && (y--, I = Math.max(
449
- _,
448
+ for (; U > F && y > _ && (y--, I = Math.max(
449
+ z,
450
450
  Math.min(T, Math.round(y * L))
451
- ), !(I < _ && y === z)); )
451
+ ), !(I < z && y === _)); )
452
452
  i.style("font-size", `${y}px`), U = y + H + I;
453
- i.style("font-size", `${y}px`), ($.getComputedTextLength() > D || y < z || F < y) && i.style("display", "none");
454
- }), s.showValues !== !1 && j.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
453
+ i.style("font-size", `${y}px`), ($.getComputedTextLength() > D || y < _ || F < y) && i.style("display", "none");
454
+ }), s.showValues !== !1 && X.append("text").attr("class", "treemapValue").attr("x", (i) => (i.x1 - i.x0) / 2).attr("y", function(i) {
455
455
  return (i.y1 - i.y0) / 2;
456
456
  }).attr("style", (i) => {
457
457
  const f = "text-anchor: middle; dominant-baseline: hanging; font-size: 28px;fill:" + k(i.data.name) + ";", C = P({ cssCompiledStyles: i.data.cssCompiledStyles });
@@ -467,15 +467,15 @@ var Qe = /* @__PURE__ */ w((t, a) => {
467
467
  f.style("display", "none");
468
468
  return;
469
469
  }
470
- const A = parseFloat($.style("font-size")), D = 28, F = 0.6, y = 6, z = 2, T = Math.max(
470
+ const A = parseFloat($.style("font-size")), D = 28, F = 0.6, y = 6, _ = 2, T = Math.max(
471
471
  y,
472
472
  Math.min(D, Math.round(A * F))
473
473
  );
474
474
  f.style("font-size", `${T}px`);
475
- const _ = (i.y1 - i.y0) / 2 + A / 2 + z;
476
- f.attr("y", _);
475
+ const z = (i.y1 - i.y0) / 2 + A / 2 + _;
476
+ f.attr("y", z);
477
477
  const H = i.x1 - i.x0, ce = i.y1 - i.y0 - 4, de = H - 2 * 4;
478
- f.node().getComputedTextLength() > de || _ + T > ce || T < y ? f.style("display", "none") : f.style("display", null);
478
+ f.node().getComputedTextLength() > de || z + T > ce || T < y ? f.style("display", "none") : f.style("display", null);
479
479
  });
480
480
  const oe = s.diagramPadding ?? 8;
481
481
  we(b, oe, "flowchart", (s == null ? void 0 : s.useMaxWidth) || !1);