likec4 1.59.2 → 1.59.4

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 (69) hide show
  1. package/__app__/src/chunks/AIChat.mjs +118 -123
  2. package/__app__/src/chunks/LikeC4Styles.mjs +828 -686
  3. package/__app__/src/chunks/ProjectsOverview.mjs +82 -82
  4. package/__app__/src/chunks/es.mjs +1 -1
  5. package/__app__/src/chunks/hooks.mjs +164 -135
  6. package/__app__/src/chunks/libs/@floating-ui.mjs +649 -335
  7. package/__app__/src/chunks/libs/@mantine.mjs +2934 -2040
  8. package/__app__/src/chunks/libs/@tanstack-ai.mjs +28 -28
  9. package/__app__/src/chunks/libs/@tanstack.mjs +46 -51
  10. package/__app__/src/chunks/libs/@xstate/react.mjs +59 -40
  11. package/__app__/src/chunks/libs/@xyflow/react.mjs +535 -448
  12. package/__app__/src/chunks/libs/bezier-js.mjs +10 -9
  13. package/__app__/src/chunks/libs/d3.mjs +20 -45
  14. package/__app__/src/chunks/libs/fast-equals.mjs +62 -50
  15. package/__app__/src/chunks/libs/framer.mjs +300 -279
  16. package/__app__/src/chunks/libs/zod.mjs +17 -14
  17. package/__app__/src/chunks/rolldown-runtime.mjs +2 -2
  18. package/__app__/src/chunks/styled-system.mjs +2580 -132
  19. package/__app__/src/main.mjs +24925 -23485
  20. package/__app__/src/style.css +1 -1
  21. package/config/schema.json +49 -0
  22. package/dist/app/render-view-client.css +1 -0
  23. package/dist/app/render-view-client.js +739 -0
  24. package/dist/chunks/enableServer.mjs +1 -1
  25. package/dist/chunks/filenames.mjs +7 -6
  26. package/dist/chunks/index.d.mts +18 -1
  27. package/dist/chunks/index2.d.mts +79 -26
  28. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  29. package/dist/chunks/libs/@chevrotain/regexp-to-ast.mjs +5 -5
  30. package/dist/chunks/libs/@chevrotain/types.d.mts +108 -0
  31. package/dist/chunks/libs/@logtape/logtape.mjs +4 -4
  32. package/dist/chunks/libs/@lume/kiwi.mjs +1 -1
  33. package/dist/chunks/libs/birpc.mjs +1 -1
  34. package/dist/chunks/libs/chevrotain-allstar.mjs +1 -1
  35. package/dist/chunks/libs/chevrotain.mjs +16 -16
  36. package/dist/chunks/libs/json5.mjs +3 -3
  37. package/dist/chunks/libs/langium.d.mts +1777 -16
  38. package/dist/chunks/libs/langium.mjs +11 -11
  39. package/dist/chunks/libs/merge-error-cause.mjs +2 -2
  40. package/dist/chunks/libs/p-queue.mjs +1 -1
  41. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  42. package/dist/chunks/libs/pako.mjs +2 -2
  43. package/dist/chunks/libs/picomatch.mjs +1 -1
  44. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  45. package/dist/chunks/libs/remeda.mjs +1 -1
  46. package/dist/chunks/libs/ufo.mjs +1 -1
  47. package/dist/chunks/libs/unstorage.mjs +1 -1
  48. package/dist/chunks/libs/zod.d.mts +1717 -17
  49. package/dist/chunks/libs/zod.mjs +4 -4
  50. package/dist/chunks/node.mjs +68 -57
  51. package/dist/chunks/rolldown-runtime.mjs +1 -1
  52. package/dist/chunks/sequence-view.mjs +1 -1
  53. package/dist/chunks/vite-plugin.mjs +168 -54
  54. package/dist/cli/index.d.mts +1 -1
  55. package/dist/cli/index.mjs +291 -165
  56. package/dist/config/index.d.mts +7 -1
  57. package/dist/config/index.mjs +1 -1
  58. package/dist/index.d.mts +3 -3
  59. package/dist/index.mjs +1 -1
  60. package/dist/model/index.d.mts +4 -4
  61. package/dist/vite-plugin/index.d.mts +2 -2
  62. package/dist/vite-plugin/internal/index.d.mts +72 -35
  63. package/dist/vite-plugin/internal/index.mjs +125 -44
  64. package/package.json +47 -47
  65. package/react/index.d.mts +22767 -1432
  66. package/react/index.mjs +38152 -32309
  67. package/vite-plugin-modules.d.ts +21 -1
  68. package/dist/chunks/dist.mjs +0 -10
  69. package/dist/chunks/logger.mjs +0 -1
@@ -1,76 +1,77 @@
1
1
  import { i as r } from "./rolldown-runtime.mjs";
2
2
  import { A as i, F as a, R as o, S as s, _ as c, c as l, j as u, y as d } from "./hooks.mjs";
3
- import { Mt as f, Nt as p, Ot as m, Pt as h, Qt as g, g as _, h as v, ht as y, kt as b, xt as x } from "./libs/@mantine.mjs";
4
- import { D as S, E as C, M as w, N as T, c as E, d as D, f as O, g as k, h as A, k as j, l as M, t as N, u as P } from "./styled-system.mjs";
5
- import { _ as F, a as I, b as L, f as R, g as z, h as B, i as ee, m as V, n as H, t as U } from "./libs/@xyflow/react.mjs";
6
- import { n as te, t as W } from "./libs/fast-equals.mjs";
7
- import { t as ne } from "./libs/bezier-js.mjs";
8
- import { d as re, f as ie, l as ae, n as oe, r as G, u as se } from "./libs/framer.mjs";
9
- import { createContext as ce, forwardRef as K, memo as le, useContext as q, useEffect as ue, useMemo as de, useRef as fe, useState as pe } from "react";
10
- import { c as J } from "react/compiler-runtime";
11
- import { Fragment as Y, jsx as X, jsxs as Z } from "react/jsx-runtime";
12
- import { RichText as me, invariant as he, nonexhaustive as ge } from "@likec4/core";
13
- import { BBox as Q, vector as $, vector as _e } from "@likec4/core/geometry";
14
- import { invariant as ve } from "@likec4/core/utils";
15
- import { LikeC4Styles as ye } from "@likec4/core/styles";
16
- import { RichText as be, ensureSizes as xe } from "@likec4/core/types";
17
- //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/clamp.js
3
+ import { Et as f, Lt as p, Mt as m, Nt as h, O as g, Pt as _, Rt as v, X as y, Y as b, _ as x, in as S, r as C, u as w, v as T, vt as E, xt as D, zt as O } from "./libs/@mantine.mjs";
4
+ import { A as k, I as A, L as j, M, N, _ as P, d as F, f as I, k as L, m as R, p as z, t as B, u as V, v as H } from "./styled-system.mjs";
5
+ import { _ as U, a as W, b as ee, f as te, g as ne, h as re, i as ie, m as ae, n as oe, t as se } from "./libs/@xyflow/react.mjs";
6
+ import { n as ce, t as G } from "./libs/fast-equals.mjs";
7
+ import { t as le } from "./libs/bezier-js.mjs";
8
+ import { d as ue, f as de, i as fe, l as pe, n as me, r as he, u as ge } from "./libs/framer.mjs";
9
+ import { createContext as K, forwardRef as q, memo as J, useContext as Y, useEffect as _e, useMemo as ve, useRef as ye, useState as be } from "react";
10
+ import { c as X } from "react/compiler-runtime";
11
+ import { Fragment as Z, jsx as Q, jsxs as $ } from "react/jsx-runtime";
12
+ import { invariant as xe, nonexhaustive as Se } from "@likec4/core";
13
+ import { BBox as Ce, vector as we } from "@likec4/core/geometry";
14
+ import { invariant as Te } from "@likec4/core/utils";
15
+ import { LikeC4Styles as Ee } from "@likec4/core/styles";
16
+ import { RichText as De, ensureSizes as Oe } from "@likec4/core/types";
17
+ //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/clamp.js
18
+ function t$5(...r) {
19
+ return o(ke, r);
20
+ }
21
+ r(t$5, "t");
22
+ var ke = /* @__PURE__ */ r((r, { min: i, max: a }) => i !== void 0 && r < i ? i : a !== void 0 && r > a ? a : r, "n");
23
+ //#endregion
24
+ //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/hasAtLeast.js
18
25
  function t$4(...r) {
19
- return o(Se, r);
26
+ return o(Ae, r);
20
27
  }
21
28
  r(t$4, "t");
22
- var Se = /* @__PURE__ */ r((r, { min: i, max: a }) => i !== void 0 && r < i ? i : a !== void 0 && r > a ? a : r, "n");
29
+ var Ae = /* @__PURE__ */ r((r, i) => r.length >= i, "n");
23
30
  //#endregion
24
- //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/hasAtLeast.js
31
+ //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/entries.js
25
32
  function t$3(...r) {
26
- return o(Ce, r);
27
- }
28
- r(t$3, "t");
29
- var Ce = /* @__PURE__ */ r((r, i) => r.length >= i, "n");
30
- //#endregion
31
- //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/entries.js
32
- function t$2(...r) {
33
33
  return o(Object.entries, r);
34
34
  }
35
- r(t$2, "t");
35
+ r(t$3, "t");
36
36
  //#endregion
37
- //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isArray.js
37
+ //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/isArray.js
38
38
  function e$2(r) {
39
39
  return Array.isArray(r);
40
40
  }
41
41
  r(e$2, "e");
42
42
  //#endregion
43
- //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isNumber.js
43
+ //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/isNumber.js
44
44
  function e$1(r) {
45
45
  return typeof r == "number" && !Number.isNaN(r);
46
46
  }
47
47
  r(e$1, "e");
48
48
  //#endregion
49
- //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/isTruthy.js
49
+ //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/isTruthy.js
50
50
  function e(r) {
51
51
  return !!r;
52
52
  }
53
53
  //#endregion
54
- //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/join.js
55
- function t$1(...r) {
56
- return o(we, r);
54
+ //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/join.js
55
+ function t$2(...r) {
56
+ return o(je, r);
57
57
  }
58
- r(t$1, "t");
59
- var we = /* @__PURE__ */ r((r, i) => r.join(i), "n");
58
+ r(t$2, "t");
59
+ var je = /* @__PURE__ */ r((r, i) => r.join(i), "n");
60
60
  //#endregion
61
- //#region ../../node_modules/.pnpm/remeda@2.37.0/node_modules/remeda/dist/pickBy.js
62
- function t(...r) {
61
+ //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/pickBy.js
62
+ function t$1(...r) {
63
63
  return o(n, r);
64
64
  }
65
+ r(t$1, "t");
65
66
  function n(r, i) {
66
67
  let a = {};
67
68
  for (let [o, s] of Object.entries(r)) i(s, o, r) && (a[o] = s);
68
69
  return a;
69
70
  }
70
- var Te = i("outline", "bolt", "Bolt", [["path", {
71
+ var Me = i("outline", "bolt", "Bolt", [["path", {
71
72
  d: "M13 3l0 7l6 0l-8 11l0 -7l-6 0l8 -11",
72
73
  key: "svg-0"
73
- }]]), Ee = i("outline", "browser", "Browser", [
74
+ }]]), Ne = i("outline", "browser", "Browser", [
74
75
  ["path", {
75
76
  d: "M4 8h16",
76
77
  key: "svg-0"
@@ -83,13 +84,13 @@ var Te = i("outline", "bolt", "Bolt", [["path", {
83
84
  d: "M8 4v4",
84
85
  key: "svg-2"
85
86
  }]
86
- ]), De = i("outline", "cylinder", "Cylinder", [["path", {
87
+ ]), Pe = i("outline", "cylinder", "Cylinder", [["path", {
87
88
  d: "M5 6a7 3 0 1 0 14 0a7 3 0 1 0 -14 0",
88
89
  key: "svg-0"
89
90
  }], ["path", {
90
91
  d: "M5 6v12c0 1.657 3.134 3 7 3s7 -1.343 7 -3v-12",
91
92
  key: "svg-1"
92
- }]]), Oe = i("outline", "device-mobile", "DeviceMobile", [
93
+ }]]), Fe = i("outline", "device-mobile", "DeviceMobile", [
93
94
  ["path", {
94
95
  d: "M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14",
95
96
  key: "svg-0"
@@ -102,7 +103,7 @@ var Te = i("outline", "bolt", "Bolt", [["path", {
102
103
  d: "M12 17v.01",
103
104
  key: "svg-2"
104
105
  }]
105
- ]), ke = i("outline", "file-text", "FileText", [
106
+ ]), Ie = i("outline", "file-text", "FileText", [
106
107
  ["path", {
107
108
  d: "M14 3v4a1 1 0 0 0 1 1h4",
108
109
  key: "svg-0"
@@ -123,7 +124,7 @@ var Te = i("outline", "bolt", "Bolt", [["path", {
123
124
  d: "M9 17l6 0",
124
125
  key: "svg-4"
125
126
  }]
126
- ]), Ae = i("outline", "rectangular-prism", "RectangularPrism", [
127
+ ]), Le = i("outline", "rectangular-prism", "RectangularPrism", [
127
128
  ["path", {
128
129
  d: "M21 14.008v-5.018a1.98 1.98 0 0 0 -1 -1.717l-4 -2.008a2.016 2.016 0 0 0 -2 0l-10 5.008c-.619 .355 -1 1.01 -1 1.718v5.018c0 .709 .381 1.363 1 1.717l4 2.008a2.016 2.016 0 0 0 2 0l10 -5.008c.619 -.355 1 -1.01 1 -1.718",
129
130
  key: "svg-0"
@@ -140,7 +141,7 @@ var Te = i("outline", "bolt", "Bolt", [["path", {
140
141
  d: "M3.5 11l5.5 2.5",
141
142
  key: "svg-3"
142
143
  }]
143
- ]), je = i("outline", "reorder", "Reorder", [
144
+ ]), Re = i("outline", "reorder", "Reorder", [
144
145
  ["path", {
145
146
  d: "M3 16a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1v2a1 1 0 0 1 -1 1h-2a1 1 0 0 1 -1 -1l0 -2",
146
147
  key: "svg-0"
@@ -161,13 +162,13 @@ var Te = i("outline", "bolt", "Bolt", [["path", {
161
162
  d: "M16.5 8.5l2.5 2.5l2.5 -2.5",
162
163
  key: "svg-4"
163
164
  }]
164
- ]), Me = i("outline", "user", "User", [["path", {
165
+ ]), ze = i("outline", "user", "User", [["path", {
165
166
  d: "M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",
166
167
  key: "svg-0"
167
168
  }], ["path", {
168
169
  d: "M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",
169
170
  key: "svg-1"
170
- }]]), Ne = i("outline", "zoom-scan", "ZoomScan", [
171
+ }]]), Be = i("outline", "zoom-scan", "ZoomScan", [
171
172
  ["path", {
172
173
  d: "M8 11a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",
173
174
  key: "svg-0"
@@ -192,39 +193,26 @@ var Te = i("outline", "bolt", "Bolt", [["path", {
192
193
  d: "M17 21h2a2 2 0 0 0 2 -2v-2",
193
194
  key: "svg-5"
194
195
  }]
195
- ]), Pe = ce(null);
196
+ ]), Ve = K(null);
196
197
  function IconRendererProvider(r) {
197
- let i = J(5), { value: a, children: o } = r;
198
- if (q(Pe)) {
198
+ let i = X(5), { value: a, children: o } = r;
199
+ if (Y(Ve)) {
199
200
  let r;
200
- return i[0] === o ? r = i[1] : (r = /* @__PURE__ */ X(Y, { children: o }), i[0] = o, i[1] = r), r;
201
+ return i[0] === o ? r = i[1] : (r = /* @__PURE__ */ Q(Z, { children: o }), i[0] = o, i[1] = r), r;
201
202
  }
202
203
  let s;
203
- return i[2] !== o || i[3] !== a ? (s = /* @__PURE__ */ X(Pe.Provider, {
204
+ return i[2] !== o || i[3] !== a ? (s = /* @__PURE__ */ Q(Ve.Provider, {
204
205
  value: a,
205
206
  children: o
206
207
  }), i[2] = o, i[3] = a, i[4] = s) : s = i[4], s;
207
208
  }
208
- function decodeSvgDataUrl(r) {
209
- if (!r.startsWith("data:image/svg+xml")) return null;
210
- try {
211
- if (r.includes(";base64,")) {
212
- let i = r.split(";base64,")[1];
213
- if (i) return atob(i);
214
- } else {
215
- let i = r.split(",")[1];
216
- if (i) return decodeURIComponent(i);
217
- }
218
- } catch {}
219
- return null;
220
- }
221
209
  function IconRenderer({ element: r, className: i, style: a }) {
222
- let o = q(Pe);
210
+ let o = Y(Ve);
223
211
  if (!r || !r.icon || r.icon === "none") return null;
224
212
  let s;
225
213
  switch (!0) {
226
214
  case r.icon.startsWith("data:image/svg+xml"):
227
- s = /* @__PURE__ */ X(SvgDataUrlIcon, {
215
+ s = /* @__PURE__ */ Q(SvgDataUrlIcon, {
228
216
  dataUrl: r.icon,
229
217
  alt: r.title
230
218
  });
@@ -232,107 +220,214 @@ function IconRenderer({ element: r, className: i, style: a }) {
232
220
  case r.icon.startsWith("http://"):
233
221
  case r.icon.startsWith("https://"):
234
222
  case r.icon.startsWith("data:image"):
235
- s = /* @__PURE__ */ X("img", {
223
+ s = /* @__PURE__ */ Q("img", {
236
224
  src: r.icon,
237
225
  alt: r.title
238
226
  });
239
227
  break;
240
228
  case !!o:
241
- s = /* @__PURE__ */ X(o, { node: r });
242
- break;
243
- default:
244
- s = null;
229
+ s = /* @__PURE__ */ Q(o, { node: r });
245
230
  break;
231
+ default: s = /* @__PURE__ */ Q(DefaultIconRenderer, { node: r });
246
232
  }
247
- return s ? /* @__PURE__ */ X("div", {
248
- className: w(i, "likec4-element-icon"),
233
+ return s ? /* @__PURE__ */ Q("div", {
234
+ className: A(i, "likec4-element-icon"),
249
235
  "data-likec4-icon": r.icon,
250
236
  style: a,
251
237
  children: s
252
238
  }) : null;
253
239
  }
254
- var Fe = {
255
- browser: Ee,
256
- cylinder: De,
257
- mobile: Oe,
258
- person: Me,
259
- queue: je,
260
- rectangle: Ae,
261
- storage: De,
262
- bucket: De,
263
- document: ke,
264
- component: Ae
240
+ var He = {
241
+ browser: Ne,
242
+ cylinder: Pe,
243
+ mobile: Fe,
244
+ person: ze,
245
+ queue: Re,
246
+ rectangle: Le,
247
+ storage: Pe,
248
+ bucket: Pe,
249
+ document: Ie,
250
+ component: Le
265
251
  };
266
252
  function IconOrShapeRenderer(r) {
267
- let i = J(12), { element: a, className: o, style: s } = r;
253
+ let i = X(12), { element: a, className: o, style: s } = r;
268
254
  if (!a.icon || a.icon === "none") {
269
- let r = Fe[a.shape], c;
270
- i[0] === o ? c = i[1] : (c = w(o, "likec4-shape-icon"), i[0] = o, i[1] = c);
255
+ let r = He[a.shape], c;
256
+ i[0] === o ? c = i[1] : (c = A(o, "likec4-shape-icon"), i[0] = o, i[1] = c);
271
257
  let l;
272
- i[2] === r ? l = i[3] : (l = /* @__PURE__ */ X(r, {}), i[2] = r, i[3] = l);
258
+ i[2] === r ? l = i[3] : (l = /* @__PURE__ */ Q(r, {}), i[2] = r, i[3] = l);
273
259
  let u;
274
- return i[4] !== s || i[5] !== c || i[6] !== l ? (u = /* @__PURE__ */ X("div", {
260
+ return i[4] !== s || i[5] !== c || i[6] !== l ? (u = /* @__PURE__ */ Q("div", {
275
261
  className: c,
276
262
  style: s,
277
263
  children: l
278
264
  }), i[4] = s, i[5] = c, i[6] = l, i[7] = u) : u = i[7], u;
279
265
  }
280
266
  let c;
281
- return i[8] !== o || i[9] !== a || i[10] !== s ? (c = /* @__PURE__ */ X(IconRenderer, {
267
+ return i[8] !== o || i[9] !== a || i[10] !== s ? (c = /* @__PURE__ */ Q(IconRenderer, {
282
268
  element: a,
283
269
  className: o,
284
270
  style: s
285
271
  }), i[8] = o, i[9] = a, i[10] = s, i[11] = c) : c = i[11], c;
286
272
  }
287
273
  function SvgDataUrlIcon(r) {
288
- let i = J(11), a, o;
289
- i[0] === r ? (a = i[1], o = i[2]) : ({dataUrl: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
274
+ let i = X(11), { dataUrl: a, alt: o } = r;
275
+ if (!hasCurrentColorReference(a)) {
276
+ let r;
277
+ return i[0] !== o || i[1] !== a ? (r = /* @__PURE__ */ Q("img", {
278
+ src: a,
279
+ alt: o
280
+ }), i[0] = o, i[1] = a, i[2] = r) : r = i[2], r;
281
+ }
290
282
  let s;
291
- i[3] === a ? s = i[4] : (s = decodeSvgDataUrl(a), i[3] = a, i[4] = s);
292
- let c = s;
293
- if (!c) return null;
294
- let l;
295
- i[5] === Symbol.for("react.memo_cache_sentinel") ? (l = { display: "contents" }, i[5] = l) : l = i[5];
296
- let u;
297
- i[6] === c ? u = i[7] : (u = { __html: c }, i[6] = c, i[7] = u);
283
+ i[3] === a ? s = i[4] : (s = JSON.stringify(a), i[3] = a, i[4] = s);
284
+ let c = `url(${s})`, l = o ? "img" : void 0, u;
285
+ i[5] === c ? u = i[6] : (u = {
286
+ display: "inline-block",
287
+ width: "100%",
288
+ height: "100%",
289
+ backgroundColor: "currentColor",
290
+ maskImage: c,
291
+ maskRepeat: "no-repeat",
292
+ maskPosition: "center",
293
+ maskSize: "contain",
294
+ WebkitMaskImage: c,
295
+ WebkitMaskRepeat: "no-repeat",
296
+ WebkitMaskPosition: "center",
297
+ WebkitMaskSize: "contain"
298
+ }, i[5] = c, i[6] = u);
298
299
  let d;
299
- return i[8] !== o || i[9] !== u ? (d = /* @__PURE__ */ X("span", {
300
+ return i[7] !== o || i[8] !== l || i[9] !== u ? (d = /* @__PURE__ */ Q("span", {
301
+ role: l,
302
+ "aria-label": o,
303
+ style: u
304
+ }), i[7] = o, i[8] = l, i[9] = u, i[10] = d) : d = i[10], d;
305
+ }
306
+ function hasCurrentColorReference(r) {
307
+ return /currentcolor/i.test(decodeSvgDataUrl(r) ?? "");
308
+ }
309
+ function decodeSvgDataUrl(r) {
310
+ if (!r.startsWith("data:image/svg+xml")) return null;
311
+ try {
312
+ let i = r.indexOf(",");
313
+ if (i === -1) return null;
314
+ let a = r.slice(i + 1);
315
+ if (r.slice(0, i).endsWith(";base64")) return new TextDecoder().decode(Uint8Array.from(atob(a), (r) => r.charCodeAt(0)));
316
+ try {
317
+ return decodeURIComponent(a);
318
+ } catch {
319
+ return a;
320
+ }
321
+ } catch {
322
+ return null;
323
+ }
324
+ }
325
+ var iconUrl = (r, i) => `https://icons.like-c4.dev/${encodeURIComponent(r)}/${encodeURIComponent(i)}.svg`;
326
+ function BootstrapIconMask(r) {
327
+ let i = X(11), a, o;
328
+ i[0] === r ? (a = i[1], o = i[2]) : ({name: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
329
+ let s;
330
+ i[3] === a ? s = i[4] : (s = iconUrl("bootstrap", a), i[3] = a, i[4] = s);
331
+ let c = s, l = `url("${c}")`, u = `url("${c}")`, d;
332
+ i[5] !== l || i[6] !== u ? (d = {
333
+ display: "inline-block",
334
+ width: "100%",
335
+ height: "100%",
336
+ backgroundColor: "currentColor",
337
+ maskImage: l,
338
+ maskRepeat: "no-repeat",
339
+ maskPosition: "center",
340
+ maskSize: "contain",
341
+ WebkitMaskImage: u,
342
+ WebkitMaskRepeat: "no-repeat",
343
+ WebkitMaskPosition: "center",
344
+ WebkitMaskSize: "contain"
345
+ }, i[5] = l, i[6] = u, i[7] = d) : d = i[7];
346
+ let f = d, p;
347
+ return i[8] !== o || i[9] !== f ? (p = /* @__PURE__ */ Q("span", {
300
348
  ...o,
301
- style: l,
302
- dangerouslySetInnerHTML: u
303
- }), i[8] = o, i[9] = u, i[10] = d) : d = i[10], d;
349
+ "aria-hidden": "true",
350
+ style: f
351
+ }), i[8] = o, i[9] = f, i[10] = p) : p = i[10], p;
352
+ }
353
+ function DefaultIconRenderer(r) {
354
+ let i = X(11), a, o;
355
+ if (i[0] === r ? (a = i[1], o = i[2]) : ({node: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o), !a.icon || a.icon === "none") return null;
356
+ let s = a.icon, c, l, u;
357
+ if (i[3] !== a.icon || i[4] !== o) {
358
+ u = Symbol.for("react.early_return_sentinel");
359
+ bb0: {
360
+ let [r, i, ...a] = s.split(":");
361
+ if (!r || !i || a.length > 0) {
362
+ u = null;
363
+ break bb0;
364
+ }
365
+ if (r === "bootstrap") {
366
+ u = /* @__PURE__ */ Q(BootstrapIconMask, {
367
+ ...o,
368
+ name: i
369
+ });
370
+ break bb0;
371
+ }
372
+ c = o, l = iconUrl(r, i);
373
+ }
374
+ i[3] = a.icon, i[4] = o, i[5] = c, i[6] = l, i[7] = u;
375
+ } else c = i[5], l = i[6], u = i[7];
376
+ if (u !== Symbol.for("react.early_return_sentinel")) return u;
377
+ let d;
378
+ return i[8] !== c || i[9] !== l ? (d = /* @__PURE__ */ Q("img", {
379
+ ...c,
380
+ src: l
381
+ }), i[8] = c, i[9] = l, i[10] = d) : d = i[10], d;
304
382
  }
305
383
  //#endregion
384
+ //#region ../diagram/src/base/const.ts
385
+ var Ue = {
386
+ Compound: 1,
387
+ Edge: 20,
388
+ EdgeLabel: 25,
389
+ Element: 20,
390
+ Max: 30
391
+ }, We = .05, Ge = {
392
+ default: "16px",
393
+ withControls: {
394
+ top: "58px",
395
+ left: "16px",
396
+ right: "16px",
397
+ bottom: "16px"
398
+ }
399
+ }, Ke = typeof window > "u";
400
+ //#endregion
306
401
  //#region ../diagram/src/base/Background.tsx
307
402
  function literalToEnum(r) {
308
403
  switch (r) {
309
- case "dots": return H.Dots;
310
- case "lines": return H.Lines;
311
- case "cross": return H.Cross;
312
- default: ge(r);
404
+ case "dots": return oe.Dots;
405
+ case "lines": return oe.Lines;
406
+ case "cross": return oe.Cross;
407
+ default: Se(r);
313
408
  }
314
409
  }
315
- var compareProps = (r, i) => typeof r.background == "string" && typeof i.background == "string" ? r.background === i.background : W(r.background, i.background), Ie = le((r) => {
316
- let i = J(6), { background: a } = r;
410
+ var compareProps = (r, i) => typeof r.background == "string" && typeof i.background == "string" ? r.background === i.background : G(r.background, i.background), qe = J((r) => {
411
+ let i = X(6), { background: a } = r;
317
412
  if (typeof a == "string") {
318
413
  let r;
319
414
  i[0] === a ? r = i[1] : (r = literalToEnum(a), i[0] = a, i[1] = r);
320
415
  let o;
321
- return i[2] === r ? o = i[3] : (o = /* @__PURE__ */ X(U, {
416
+ return i[2] === r ? o = i[3] : (o = /* @__PURE__ */ Q(se, {
322
417
  variant: r,
323
418
  size: 2,
324
419
  gap: 20
325
420
  }), i[2] = r, i[3] = o), o;
326
421
  }
327
422
  let o;
328
- return i[4] === a ? o = i[5] : (o = /* @__PURE__ */ X(U, { ...a }), i[4] = a, i[5] = o), o;
423
+ return i[4] === a ? o = i[5] : (o = /* @__PURE__ */ Q(se, { ...a }), i[4] = a, i[5] = o), o;
329
424
  }, compareProps);
330
- Ie.displayName = "Background";
425
+ qe.displayName = "Background";
331
426
  //#endregion
332
427
  //#region ../diagram/src/hooks/useCallbackRef.ts
333
428
  function useCallbackRef(r) {
334
- let i = fe(r);
335
- return i.current = r, de(() => {
429
+ let i = ye(r);
430
+ return i.current = r, ve(() => {
336
431
  function callbackRef(...r) {
337
432
  return i.current?.(...r);
338
433
  }
@@ -342,37 +437,37 @@ function useCallbackRef(r) {
342
437
  //#endregion
343
438
  //#region ../diagram/src/hooks/useXYFlow.ts
344
439
  function useXYFlow() {
345
- return V();
440
+ return ae();
346
441
  }
347
442
  function useXYStore(r, i) {
348
- return B(r, i ?? te);
443
+ return re(r, i ?? ce);
349
444
  }
350
445
  function selectXYStore(r) {
351
446
  return r;
352
447
  }
353
448
  function useXYStoreApi() {
354
- return z();
449
+ return ne();
355
450
  }
356
451
  function useCurrentZoomAtLeast(r) {
357
- let i = J(2), t0;
358
- return i[0] === r ? t0 = i[1] : (t0 = (i) => i.transform[2] >= r, i[0] = r, i[1] = t0), B(t0);
452
+ let i = X(2), t0;
453
+ return i[0] === r ? t0 = i[1] : (t0 = (i) => i.transform[2] >= r, i[0] = r, i[1] = t0), re(t0);
359
454
  }
360
455
  var selectZoom = (r) => r.transform[2] < .2;
361
456
  function useIsZoomTooSmall() {
362
- return B(selectZoom);
457
+ return re(selectZoom);
363
458
  }
364
459
  //#endregion
365
460
  //#region ../diagram/src/utils/roundDpr.ts
366
461
  function getDevicePixelRatio() {
367
462
  let r = typeof window < "u" && typeof window.devicePixelRatio == "number" ? window.devicePixelRatio : 1;
368
- return t$4(Math.floor(r), {
463
+ return t$5(Math.floor(r), {
369
464
  min: 1,
370
465
  max: 4
371
466
  });
372
467
  }
373
- var Le;
468
+ var Je;
374
469
  function roundDpr(r) {
375
- return Le ??= getDevicePixelRatio(), Le < 2 ? Math.round(r) : Math.round(r * Le) / Le;
470
+ return Je ??= getDevicePixelRatio(), Je < 2 ? Math.round(r) : Math.round(r * Je) / Je;
376
471
  }
377
472
  //#endregion
378
473
  //#region ../diagram/src/utils/xyflow.ts
@@ -385,22 +480,22 @@ function nodeToRect(r) {
385
480
  };
386
481
  }
387
482
  function getNodeCenter(r) {
388
- let { width: i, height: a } = L(r), { x: o, y: s } = r.internals.positionAbsolute;
483
+ let { width: i, height: a } = ee(r), { x: o, y: s } = r.internals.positionAbsolute;
389
484
  return {
390
485
  x: Math.round(o + i / 2),
391
486
  y: Math.round(s + a / 2)
392
487
  };
393
488
  }
394
489
  function getNodeIntersectionFromCenterToPoint(r, i, a = 0) {
395
- let { width: o, height: s } = r, c = Q.center(r), l = $(i.x, i.y).subtract(c), u = (a + o / 2) / l.x, d = (a + s / 2) / l.y, f = Math.min(Math.abs(u), Math.abs(d));
396
- return $(l).multiply(f).add(c).trunc().toObject();
490
+ let { width: o, height: s } = r, c = Ce.center(r), l = we(i.x, i.y).subtract(c), u = (a + o / 2) / l.x, d = (a + s / 2) / l.y, f = Math.min(Math.abs(u), Math.abs(d));
491
+ return we(l).multiply(f).add(c).trunc().toObject();
397
492
  }
398
493
  function bezierControlPoints(r) {
399
494
  let [i, ...a] = r;
400
- ve(i, "start should be defined");
495
+ Te(i, "start should be defined");
401
496
  let o = [];
402
- for (; t$3(a, 3);) {
403
- let [r, s, c, ...l] = a, u = new ne(i[0], i[1], r[0], r[1], s[0], s[1], c[0], c[1]), d = u.inflections();
497
+ for (; t$4(a, 3);) {
498
+ let [r, s, c, ...l] = a, u = new le(i[0], i[1], r[0], r[1], s[0], s[1], c[0], c[1]), d = u.inflections();
404
499
  d.length === 0 && d.push(.5), d.forEach((r) => {
405
500
  let { x: i, y: a } = u.get(r);
406
501
  o.push({
@@ -409,7 +504,7 @@ function bezierControlPoints(r) {
409
504
  });
410
505
  }), a = l, i = c;
411
506
  }
412
- return ve(a.length === 0, "all points should be consumed"), ve(t$3(o, 1), "at least one control point should be generated"), o;
507
+ return Te(a.length === 0, "all points should be consumed"), Te(t$4(o, 1), "at least one control point should be generated"), o;
413
508
  }
414
509
  function isSamePoint(r, i) {
415
510
  if (r === i) return !0;
@@ -422,13 +517,13 @@ function stopPropagation(r) {
422
517
  var printPoint = (r) => `${Math.trunc(r[0])},${Math.trunc(r[1])}`;
423
518
  function bezierPath(r) {
424
519
  let [i, ...a] = r;
425
- ve(i, "start should be defined");
520
+ Te(i, "start should be defined");
426
521
  let o = `M ${printPoint(i)}`;
427
- for (; t$3(a, 3);) {
522
+ for (; t$4(a, 3);) {
428
523
  let [r, i, s, ...c] = a;
429
524
  o += ` C ${printPoint(r)} ${printPoint(i)} ${printPoint(s)}`, a = c;
430
525
  }
431
- return ve(a.length === 0, "all points should be consumed"), o;
526
+ return Te(a.length === 0, "all points should be consumed"), o;
432
527
  }
433
528
  function parsePadding(r, i) {
434
529
  if (typeof r == "number") return Math.floor((i - i / (1 + r)) * .5);
@@ -485,7 +580,7 @@ function setHovered(r, i) {
485
580
  return i === void 0 ? (i) => _setHovered(i, r) : _setHovered(r, i);
486
581
  }
487
582
  function hasSubObject(r, i) {
488
- return r === i || t$2(i).every(([i, a]) => W(r[i] ?? void 0, a));
583
+ return r === i || t$3(i).every(([i, a]) => G(r[i] ?? void 0, a));
489
584
  }
490
585
  function _setData(r, i) {
491
586
  return hasSubObject(r.data, i) ? r : mergeData(r, i);
@@ -493,24 +588,10 @@ function _setData(r, i) {
493
588
  function setData(r, i) {
494
589
  return i === void 0 ? (i) => _setData(i, r) : _setData(r, i);
495
590
  }
496
- var Re = {
591
+ var Ye = {
497
592
  setDimmed,
498
593
  setHovered,
499
594
  setData
500
- }, ze = {
501
- Compound: 1,
502
- Edge: 20,
503
- EdgeLabel: 25,
504
- Element: 20,
505
- Max: 30
506
- }, Be = .05, Ve = {
507
- default: "16px",
508
- withControls: {
509
- top: "58px",
510
- left: "16px",
511
- right: "16px",
512
- bottom: "16px"
513
- }
514
595
  };
515
596
  //#endregion
516
597
  //#region ../diagram/src/base/keyboardZoom.ts
@@ -532,7 +613,7 @@ function getKeyboardZoomAction(r) {
532
613
  }
533
614
  //#endregion
534
615
  //#region ../diagram/src/base/BaseXYFlow.tsx
535
- var He = {
616
+ var Xe = {
536
617
  "node.a11yDescription.default": "Press Enter or Space to select this node and reveal its actions.",
537
618
  "node.a11yDescription.keyboardDisabled": "Keyboard activation is disabled.",
538
619
  "edge.a11yDescription.default": "Press Enter or Space to select this relationship and reveal its actions."
@@ -558,53 +639,53 @@ function activateFocusedElement(r) {
558
639
  }));
559
640
  }
560
641
  function BaseXYFlow(r) {
561
- let i = J(105), a, o, s, c, l, u, d, p, m, h, g, _, v, y, b, x, S, C, T, E, D, O, k, A, j, M, N;
562
- i[0] === r ? (a = i[1], o = i[2], s = i[3], c = i[4], l = i[5], u = i[6], d = i[7], p = i[8], m = i[9], h = i[10], g = i[11], _ = i[12], v = i[13], y = i[14], b = i[15], x = i[16], S = i[17], C = i[18], T = i[19], E = i[20], D = i[21], O = i[22], k = i[23], A = i[24], j = i[25], M = i[26], N = i[27]) : ({nodes: u, edges: l, onEdgesChange: m, onNodesChange: y, className: s, pannable: S, zoomable: E, nodesSelectable: D, nodesDraggable: O, background: k, children: o, colorMode: c, fitViewPadding: A, fitView: j, zoomOnDoubleClick: M, onViewportResize: b, onMoveEnd: g, onNodeMouseEnter: _, onNodeMouseLeave: v, onEdgeMouseEnter: d, onEdgeMouseLeave: p, onKeyDownCapture: h, ariaLabelConfig: a, nodesFocusable: N, edgesFocusable: C, showControls: T, ...x} = r, i[0] = r, i[1] = a, i[2] = o, i[3] = s, i[4] = c, i[5] = l, i[6] = u, i[7] = d, i[8] = p, i[9] = m, i[10] = h, i[11] = g, i[12] = _, i[13] = v, i[14] = y, i[15] = b, i[16] = x, i[17] = S, i[18] = C, i[19] = T, i[20] = E, i[21] = D, i[22] = O, i[23] = k, i[24] = A, i[25] = j, i[26] = M, i[27] = N);
563
- let P = S === void 0 ? !0 : S, F = E === void 0 ? !0 : E, I = D === void 0 ? !0 : D, L = O === void 0 ? !1 : O, z = k === void 0 ? "dots" : k, B = A === void 0 ? 0 : A, ee = j === void 0 ? !0 : j, V = M === void 0 ? !1 : M, H = N === void 0 ? L || I : N, U = C === void 0 ? !1 : C, te;
564
- i[28] === B ? te = i[29] : (te = {
565
- minZoom: Be,
566
- maxZoom: 1,
642
+ let i = X(107), a, o, s, c, l, u, d, f, m, h, g, _, v, y, b, x, S, C, w, T, E, D, O, k, j, M, N, P;
643
+ i[0] === r ? (a = i[1], o = i[2], s = i[3], c = i[4], l = i[5], u = i[6], d = i[7], f = i[8], m = i[9], h = i[10], g = i[11], _ = i[12], v = i[13], y = i[14], b = i[15], x = i[16], S = i[17], C = i[18], w = i[19], T = i[20], E = i[21], D = i[22], O = i[23], k = i[24], j = i[25], M = i[26], N = i[27], P = i[28]) : ({nodes: u, edges: l, onEdgesChange: m, onNodesChange: y, className: s, pannable: S, zoomable: E, nodesSelectable: D, nodesDraggable: O, background: k, children: o, colorMode: c, fitViewPadding: j, zoomOnDoubleClick: M, onViewportResize: b, onMoveEnd: g, onNodeMouseEnter: _, onNodeMouseLeave: v, onEdgeMouseEnter: d, onEdgeMouseLeave: f, onKeyDownCapture: h, ariaLabelConfig: a, nodesFocusable: N, edgesFocusable: P, showControls: C, minZoom: w, maxZoom: T, ...x} = r, i[0] = r, i[1] = a, i[2] = o, i[3] = s, i[4] = c, i[5] = l, i[6] = u, i[7] = d, i[8] = f, i[9] = m, i[10] = h, i[11] = g, i[12] = _, i[13] = v, i[14] = y, i[15] = b, i[16] = x, i[17] = S, i[18] = C, i[19] = w, i[20] = T, i[21] = E, i[22] = D, i[23] = O, i[24] = k, i[25] = j, i[26] = M, i[27] = N, i[28] = P);
644
+ let F = S === void 0 || S, I = E === void 0 || E, L = D === void 0 || D, R = O !== void 0 && O, z = k === void 0 ? "dots" : k, B = j === void 0 ? 0 : j, V = M !== void 0 && M, H = N === void 0 ? R || L : N, U = P !== void 0 && P, W = w === void 0 ? We : w, ee = T === void 0 ? 3 : T, ne = Math.min(ee, 1), re;
645
+ i[29] !== B || i[30] !== W || i[31] !== ne ? (re = {
646
+ minZoom: W,
647
+ maxZoom: ne,
567
648
  padding: B,
568
649
  includeHiddenNodes: !1
569
- }, i[28] = B, i[29] = te);
570
- let W = te, ne = z !== "transparent" && z !== "solid", re = useIsZoomTooSmall(), ie = useXYFlow(), ae = useXYStoreApi(), { colorScheme: oe } = f();
571
- c ||= oe === "auto" ? "system" : oe;
572
- let G = x.tabIndex ?? (F ? 0 : void 0), se = x["aria-label"] !== void 0 || x["aria-labelledby"] !== void 0 || G === void 0 ? x["aria-label"] : "Interactive diagram", t13;
573
- i[30] !== W || i[31] !== x || i[32] !== ie || i[33] !== F ? (t13 = (r) => {
574
- if (x.onKeyDown?.(r), r.defaultPrevented || !F) return;
650
+ }, i[29] = B, i[30] = W, i[31] = ne, i[32] = re) : re = i[32];
651
+ let ie = re, ae = z !== "transparent" && z !== "solid", oe = useIsZoomTooSmall(), se = useXYFlow(), ce = useXYStoreApi(), { colorScheme: G } = p();
652
+ c ||= G === "auto" ? "system" : G;
653
+ let le = x.tabIndex ?? (I ? 0 : void 0), ue = x["aria-label"] !== void 0 || x["aria-labelledby"] !== void 0 || le === void 0 ? x["aria-label"] : "Interactive diagram", t15;
654
+ i[33] !== ie || i[34] !== x || i[35] !== se || i[36] !== I ? (t15 = (r) => {
655
+ if (x.onKeyDown?.(r), r.defaultPrevented || !I) return;
575
656
  let i = getKeyboardZoomAction(r.nativeEvent);
576
657
  if (i) switch (r.preventDefault(), i) {
577
658
  case "zoom-in":
578
- ie.zoomIn();
659
+ se.zoomIn();
579
660
  return;
580
661
  case "zoom-out":
581
- ie.zoomOut();
662
+ se.zoomOut();
582
663
  return;
583
664
  case "reset":
584
- ie.fitView(W);
665
+ se.fitView(ie);
585
666
  return;
586
667
  }
587
- }, i[30] = W, i[31] = x, i[32] = ie, i[33] = F, i[34] = t13) : t13 = i[34];
588
- let ce = useCallbackRef(t13), K = c, le = u, q = l, ue = z === "transparent" && "bg-transparent", de;
589
- i[35] !== s || i[36] !== ue ? (de = w(ue, s), i[35] = s, i[36] = ue, i[37] = de) : de = i[37];
590
- let fe;
591
- i[38] === re ? fe = i[39] : (fe = re && { "data-likec4-zoom-small": !0 }, i[38] = re, i[39] = fe);
592
- let pe = !P && F, Y;
593
- i[40] === F ? Y = i[41] : (Y = !F && { zoomActivationKeyCode: null }, i[40] = F, i[41] = Y);
594
- let me = F ? 3 : 1, he = F ? Be : 1, ge = F || P, Q;
595
- i[42] === P ? Q = i[43] : (Q = !P && {
668
+ }, i[33] = ie, i[34] = x, i[35] = se, i[36] = I, i[37] = t15) : t15 = i[37];
669
+ let de = useCallbackRef(t15), fe = c, pe = u, me = l, he = z === "transparent" && "bg-transparent", ge;
670
+ i[38] !== s || i[39] !== he ? (ge = A(he, s), i[38] = s, i[39] = he, i[40] = ge) : ge = i[40];
671
+ let K;
672
+ i[41] === oe ? K = i[42] : (K = oe && { "data-likec4-zoom-small": !0 }, i[41] = oe, i[42] = K);
673
+ let q = !F && I, J;
674
+ i[43] === I ? J = i[44] : (J = !I && { zoomActivationKeyCode: null }, i[43] = I, i[44] = J);
675
+ let Y = I ? ee : 1, _e = I ? W : 1, ve = I || F, ye;
676
+ i[45] === F ? ye = i[46] : (ye = !F && {
596
677
  panActivationKeyCode: null,
597
678
  selectionKeyCode: null
598
- }, i[42] = P, i[43] = Q);
599
- let $;
600
- i[44] === a ? $ = i[45] : ($ = {
601
- ...He,
679
+ }, i[45] = F, i[46] = ye);
680
+ let be;
681
+ i[47] === a ? be = i[48] : (be = {
682
+ ...Xe,
602
683
  ...a
603
- }, i[44] = a, i[45] = $);
604
- let _e = y, ve = m, t29;
605
- i[46] !== g || i[47] !== ae ? (t29 = (r, i) => {
684
+ }, i[47] = a, i[48] = be);
685
+ let Z = y, xe = m, t31;
686
+ i[49] !== g || i[50] !== ce ? (t31 = (r, i) => {
606
687
  let { x: a, y: o, zoom: s } = i, c = roundDpr(a), l = roundDpr(o);
607
- (a !== c || o !== l) && ae.setState({ transform: [
688
+ (a !== c || o !== l) && ce.setState({ transform: [
608
689
  c,
609
690
  l,
610
691
  s
@@ -613,9 +694,9 @@ function BaseXYFlow(r) {
613
694
  y: l,
614
695
  zoom: s
615
696
  });
616
- }, i[46] = g, i[47] = ae, i[48] = t29) : t29 = i[48];
617
- let ye = useCallbackRef(t29), t31;
618
- i[49] !== _ || i[50] !== y ? (t31 = (r, i) => {
697
+ }, i[49] = g, i[50] = ce, i[51] = t31) : t31 = i[51];
698
+ let Se = useCallbackRef(t31), t33;
699
+ i[52] !== _ || i[53] !== y ? (t33 = (r, i) => {
619
700
  if (_) {
620
701
  _(r, i);
621
702
  return;
@@ -623,11 +704,11 @@ function BaseXYFlow(r) {
623
704
  y([{
624
705
  id: i.id,
625
706
  type: "replace",
626
- item: Re.setHovered(i, !0)
707
+ item: Ye.setHovered(i, !0)
627
708
  }]);
628
- }, i[49] = _, i[50] = y, i[51] = t31) : t31 = i[51];
629
- let be = useCallbackRef(t31), t33;
630
- i[52] !== v || i[53] !== y ? (t33 = (r, i) => {
709
+ }, i[52] = _, i[53] = y, i[54] = t33) : t33 = i[54];
710
+ let Ce = useCallbackRef(t33), t35;
711
+ i[55] !== v || i[56] !== y ? (t35 = (r, i) => {
631
712
  if (v) {
632
713
  v(r, i);
633
714
  return;
@@ -635,11 +716,11 @@ function BaseXYFlow(r) {
635
716
  y([{
636
717
  id: i.id,
637
718
  type: "replace",
638
- item: Re.setHovered(i, !1)
719
+ item: Ye.setHovered(i, !1)
639
720
  }]);
640
- }, i[52] = v, i[53] = y, i[54] = t33) : t33 = i[54];
641
- let xe = useCallbackRef(t33), t35;
642
- i[55] !== d || i[56] !== m ? (t35 = (r, i) => {
721
+ }, i[55] = v, i[56] = y, i[57] = t35) : t35 = i[57];
722
+ let we = useCallbackRef(t35), t37;
723
+ i[58] !== d || i[59] !== m ? (t37 = (r, i) => {
643
724
  if (d) {
644
725
  d(r, i);
645
726
  return;
@@ -647,89 +728,88 @@ function BaseXYFlow(r) {
647
728
  m([{
648
729
  id: i.id,
649
730
  type: "replace",
650
- item: Re.setHovered(i, !0)
731
+ item: Ye.setHovered(i, !0)
651
732
  }]);
652
- }, i[55] = d, i[56] = m, i[57] = t35) : t35 = i[57];
653
- let Se = useCallbackRef(t35), t37;
654
- i[58] !== p || i[59] !== m ? (t37 = (r, i) => {
655
- if (p) {
656
- p(r, i);
733
+ }, i[58] = d, i[59] = m, i[60] = t37) : t37 = i[60];
734
+ let Te = useCallbackRef(t37), t39;
735
+ i[61] !== f || i[62] !== m ? (t39 = (r, i) => {
736
+ if (f) {
737
+ f(r, i);
657
738
  return;
658
739
  }
659
740
  m([{
660
741
  id: i.id,
661
742
  type: "replace",
662
- item: Re.setHovered(i, !1)
743
+ item: Ye.setHovered(i, !1)
663
744
  }]);
664
- }, i[58] = p, i[59] = m, i[60] = t37) : t37 = i[60];
665
- let Ce = useCallbackRef(t37), t39;
666
- i[61] === h ? t39 = i[62] : (t39 = (r) => {
745
+ }, i[61] = f, i[62] = m, i[63] = t39) : t39 = i[63];
746
+ let Ee = useCallbackRef(t39), t41;
747
+ i[64] === h ? t41 = i[65] : (t41 = (r) => {
667
748
  h?.(r), r.defaultPrevented || activateFocusedElement(r);
668
- }, i[61] = h, i[62] = t39);
669
- let we = useCallbackRef(t39), Te;
670
- i[63] !== z || i[64] !== ne ? (Te = ne && /* @__PURE__ */ X(Ie, { background: z }), i[63] = z, i[64] = ne, i[65] = Te) : Te = i[65];
671
- let Ee;
672
- i[66] === b ? Ee = i[67] : (Ee = b && /* @__PURE__ */ X(ViewportResizeHanlder, { onViewportResize: b }), i[66] = b, i[67] = Ee);
673
- let De;
674
- return i[68] !== se || i[69] !== o || i[70] !== c || i[71] !== l || i[72] !== U || i[73] !== ee || i[74] !== W || i[75] !== u || i[76] !== L || i[77] !== H || i[78] !== I || i[79] !== m || i[80] !== ce || i[81] !== y || i[82] !== P || i[83] !== x || i[84] !== de || i[85] !== fe || i[86] !== pe || i[87] !== Y || i[88] !== me || i[89] !== he || i[90] !== ge || i[91] !== Q || i[92] !== $ || i[93] !== ye || i[94] !== be || i[95] !== xe || i[96] !== Se || i[97] !== Ce || i[98] !== we || i[99] !== Te || i[100] !== Ee || i[101] !== G || i[102] !== V || i[103] !== F ? (De = /* @__PURE__ */ Z(R, {
675
- colorMode: K,
676
- nodes: le,
677
- edges: q,
678
- className: de,
679
- ...fe,
680
- zoomOnPinch: F,
681
- zoomOnScroll: pe,
682
- ...Y,
749
+ }, i[64] = h, i[65] = t41);
750
+ let De = useCallbackRef(t41), Oe;
751
+ i[66] !== z || i[67] !== ae ? (Oe = ae && /* @__PURE__ */ Q(qe, { background: z }), i[66] = z, i[67] = ae, i[68] = Oe) : Oe = i[68];
752
+ let ke;
753
+ i[69] === b ? ke = i[70] : (ke = b && /* @__PURE__ */ Q(ViewportResizeHanlder, { onViewportResize: b }), i[69] = b, i[70] = ke);
754
+ let Ae;
755
+ return i[71] !== ue || i[72] !== o || i[73] !== c || i[74] !== l || i[75] !== U || i[76] !== ie || i[77] !== u || i[78] !== R || i[79] !== H || i[80] !== L || i[81] !== m || i[82] !== de || i[83] !== y || i[84] !== F || i[85] !== x || i[86] !== ge || i[87] !== K || i[88] !== q || i[89] !== J || i[90] !== Y || i[91] !== _e || i[92] !== ve || i[93] !== ye || i[94] !== be || i[95] !== Se || i[96] !== Ce || i[97] !== we || i[98] !== Te || i[99] !== Ee || i[100] !== De || i[101] !== Oe || i[102] !== ke || i[103] !== le || i[104] !== V || i[105] !== I ? (Ae = /* @__PURE__ */ $(te, {
756
+ colorMode: fe,
757
+ nodes: pe,
758
+ edges: me,
759
+ className: ge,
760
+ ...K,
761
+ zoomOnPinch: I,
762
+ zoomOnScroll: q,
763
+ ...J,
683
764
  zoomOnDoubleClick: V,
684
- maxZoom: me,
685
- minZoom: he,
686
- fitView: ee,
687
- fitViewOptions: W,
688
- preventScrolling: ge,
765
+ maxZoom: Y,
766
+ minZoom: _e,
767
+ fitViewOptions: ie,
768
+ preventScrolling: ve,
689
769
  defaultMarkerColor: "var(--xy-edge-stroke)",
690
770
  noDragClassName: "nodrag",
691
771
  noPanClassName: "nopan",
692
772
  noWheelClassName: "nowheel",
693
- panOnScroll: P,
694
- panOnDrag: P,
695
- ...Q,
696
- elementsSelectable: I,
773
+ panOnScroll: F,
774
+ panOnDrag: F,
775
+ ...ye,
776
+ elementsSelectable: L,
697
777
  nodesFocusable: H,
698
778
  edgesFocusable: U,
699
- nodesDraggable: L,
700
- ariaLabelConfig: $,
779
+ nodesDraggable: R,
780
+ ariaLabelConfig: be,
701
781
  nodeDragThreshold: 4,
702
782
  nodeClickDistance: 3,
703
783
  paneClickDistance: 3,
704
784
  elevateNodesOnSelect: !1,
705
785
  selectNodesOnDrag: !1,
706
- onNodesChange: _e,
707
- onEdgesChange: ve,
708
- onMoveEnd: ye,
709
- onNodeMouseEnter: be,
710
- onNodeMouseLeave: xe,
711
- onEdgeMouseEnter: Se,
712
- onEdgeMouseLeave: Ce,
786
+ onNodesChange: Z,
787
+ onEdgesChange: xe,
788
+ onMoveEnd: Se,
789
+ onNodeMouseEnter: Ce,
790
+ onNodeMouseLeave: we,
791
+ onEdgeMouseEnter: Te,
792
+ onEdgeMouseLeave: Ee,
713
793
  onNodeDoubleClick: stopPropagation,
714
794
  onEdgeDoubleClick: stopPropagation,
715
- onKeyDownCapture: we,
795
+ onKeyDownCapture: De,
716
796
  ...x,
717
- "aria-label": se,
718
- tabIndex: G,
719
- onKeyDown: ce,
797
+ "aria-label": ue,
798
+ tabIndex: le,
799
+ onKeyDown: de,
720
800
  children: [
721
- Te,
722
- Ee,
801
+ Oe,
802
+ ke,
723
803
  o
724
804
  ]
725
- }), i[68] = se, i[69] = o, i[70] = c, i[71] = l, i[72] = U, i[73] = ee, i[74] = W, i[75] = u, i[76] = L, i[77] = H, i[78] = I, i[79] = m, i[80] = ce, i[81] = y, i[82] = P, i[83] = x, i[84] = de, i[85] = fe, i[86] = pe, i[87] = Y, i[88] = me, i[89] = he, i[90] = ge, i[91] = Q, i[92] = $, i[93] = ye, i[94] = be, i[95] = xe, i[96] = Se, i[97] = Ce, i[98] = we, i[99] = Te, i[100] = Ee, i[101] = G, i[102] = V, i[103] = F, i[104] = De) : De = i[104], De;
805
+ }), i[71] = ue, i[72] = o, i[73] = c, i[74] = l, i[75] = U, i[76] = ie, i[77] = u, i[78] = R, i[79] = H, i[80] = L, i[81] = m, i[82] = de, i[83] = y, i[84] = F, i[85] = x, i[86] = ge, i[87] = K, i[88] = q, i[89] = J, i[90] = Y, i[91] = _e, i[92] = ve, i[93] = ye, i[94] = be, i[95] = Se, i[96] = Ce, i[97] = we, i[98] = Te, i[99] = Ee, i[100] = De, i[101] = Oe, i[102] = ke, i[103] = le, i[104] = V, i[105] = I, i[106] = Ae) : Ae = i[106], Ae;
726
806
  }
727
807
  var selectDimensions = ({ width: r, height: i }) => (r || 1) * (i || 1), ViewportResizeHanlder = (r) => {
728
- let i = J(2), { onViewportResize: a } = r, o = B(selectDimensions), c;
808
+ let i = X(2), { onViewportResize: a } = r, o = re(selectDimensions), c;
729
809
  return i[0] === o ? c = i[1] : (c = [o], i[0] = o, i[1] = c), s(a, c), null;
730
- }, Ue = ce(null), We = Ue.Provider;
810
+ }, Ze = K(null), Qe = Ze.Provider;
731
811
  function useRootContainerContext() {
732
- return q(Ue);
812
+ return Y(Ze);
733
813
  }
734
814
  function useRootContainer() {
735
815
  let r = useRootContainerContext();
@@ -745,7 +825,7 @@ function useRootContainerElement() {
745
825
  //#endregion
746
826
  //#region ../diagram/src/components/RootContainer.tsx
747
827
  function RootContainer(r) {
748
- let i = J(18), { id: a, className: o, reduceGraphics: s, children: l } = r, u = s === void 0 ? !1 : s, d = fe(null), [f] = pe(_temp$1), p = c(f), m = `#${a}`, h;
828
+ let i = X(18), { id: a, className: o, reduceGraphics: s, children: l } = r, u = s !== void 0 && s, d = ye(null), [f] = be(_temp$1), p = c(f), m = `#${a}`, h;
749
829
  i[0] !== f || i[1] !== a || i[2] !== u || i[3] !== m ? (h = {
750
830
  id: a,
751
831
  ref: d,
@@ -754,16 +834,16 @@ function RootContainer(r) {
754
834
  $panning: f
755
835
  }, i[0] = f, i[1] = a, i[2] = u, i[3] = m, i[4] = h) : h = i[4];
756
836
  let g = h, _;
757
- i[5] === o ? _ = i[6] : (_ = w("likec4-root", o), i[5] = o, i[6] = _);
837
+ i[5] === o ? _ = i[6] : (_ = A("likec4-root", o), i[5] = o, i[6] = _);
758
838
  let v;
759
839
  i[7] === u ? v = i[8] : (v = u && { "data-likec4-reduced-graphics": !0 }, i[7] = u, i[8] = v);
760
840
  let y;
761
- i[9] !== l || i[10] !== g ? (y = /* @__PURE__ */ X(We, {
841
+ i[9] !== l || i[10] !== g ? (y = /* @__PURE__ */ Q(Qe, {
762
842
  value: g,
763
843
  children: l
764
844
  }), i[9] = l, i[10] = g, i[11] = y) : y = i[11];
765
845
  let b;
766
- return i[12] !== a || i[13] !== p || i[14] !== _ || i[15] !== v || i[16] !== y ? (b = /* @__PURE__ */ X("div", {
846
+ return i[12] !== a || i[13] !== p || i[14] !== _ || i[15] !== v || i[16] !== y ? (b = /* @__PURE__ */ Q("div", {
767
847
  id: a,
768
848
  className: _,
769
849
  ref: d,
@@ -777,77 +857,163 @@ function _temp$1() {
777
857
  }
778
858
  r(_temp$1, "_temp");
779
859
  //#endregion
780
- //#region ../diagram/src/context/DefaultMantineProvider.tsx
781
- var Ge = m({
782
- autoContrast: !0,
783
- primaryColor: "indigo",
860
+ //#region ../diagram/src/LikeC4MantineProvider.tsx
861
+ function t(r) {
862
+ return N.var(r);
863
+ }
864
+ var $e = [
865
+ "xs",
866
+ "sm",
867
+ "md",
868
+ "lg",
869
+ "xl"
870
+ ], sizes = (r) => Object.fromEntries($e.map((i) => [i, t(`${r}.${i}`)])), et = [
871
+ 0,
872
+ 1,
873
+ 2,
874
+ 3,
875
+ 4,
876
+ 5,
877
+ 6,
878
+ 7,
879
+ 8,
880
+ 9
881
+ ], mapColor = (r) => u(et, (i) => t(`colors.${r}.${i}`)), tt = [
882
+ j({ textStyle: "h1" }),
883
+ j({ textStyle: "h2" }),
884
+ j({ textStyle: "h3" }),
885
+ j({ textStyle: "h4" }),
886
+ j({ textStyle: "h5" }),
887
+ j({ textStyle: "h6" })
888
+ ], nt = h({
889
+ primaryColor: "likec4",
784
890
  cursorType: "pointer",
785
- defaultRadius: "sm",
786
- fontFamily: "var(--likec4-app-font, var(--likec4-app-font-default))",
891
+ autoContrast: !0,
892
+ primaryShade: {
893
+ light: 5,
894
+ dark: 6
895
+ },
896
+ colors: { likec4: mapColor("likec4.accent") },
897
+ fontFamily: t("fonts.body"),
898
+ fontFamilyMonospace: t("fonts.mono"),
787
899
  headings: {
788
- fontWeight: "medium",
789
- sizes: {
790
- h1: { fontWeight: "bold" },
791
- h2: { fontWeight: "medium" }
792
- }
900
+ fontFamily: t("fonts.display"),
901
+ fontWeight: t("fontWeights.bold")
902
+ },
903
+ defaultRadius: "sm",
904
+ fontWeights: {
905
+ regular: t("fontWeights.normal"),
906
+ medium: t("fontWeights.medium"),
907
+ semibold: t("fontWeights.semibold"),
908
+ bold: t("fontWeights.bold")
793
909
  },
794
910
  fontSizes: {
795
- xxs: "var(--font-sizes-xxs)",
796
- xs: "var(--font-sizes-xs)",
797
- sm: "var(--font-sizes-sm)",
798
- md: "var(--font-sizes-md)",
799
- lg: "var(--font-sizes-lg)",
800
- xl: "var(--font-sizes-xl)"
911
+ ...sizes("fontSizes"),
912
+ xxs: t("fontSizes.xxs")
801
913
  },
802
914
  spacing: {
803
- xs: "var(--spacing-xs)",
804
- sm: "var(--spacing-sm)",
805
- md: "var(--spacing-md)",
806
- lg: "var(--spacing-lg)",
807
- xl: "var(--spacing-xl)"
915
+ ...sizes("spacing"),
916
+ xxs: t("spacing.xxs")
808
917
  },
918
+ radius: sizes("radii"),
919
+ shadows: sizes("shadows"),
920
+ lineHeights: sizes("lineHeights"),
809
921
  components: {
810
- SegmentedControl: v.extend({ vars: (r, i) => ({ root: { "--sc-font-size": r.fontSizes[i.fz ?? i.size] } }) }),
811
- Portal: x.extend({ defaultProps: { reuseTargetNode: !0 } }),
812
- Tooltip: _.extend({ defaultProps: { color: "dark" } })
922
+ Card: y.extend({
923
+ defaultProps: { radius: "md" },
924
+ classNames: { root: j({ bg: "surface.default" }) }
925
+ }),
926
+ Paper: f.extend({
927
+ defaultProps: { radius: "md" },
928
+ classNames: { root: j({ bg: "surface.default" }) }
929
+ }),
930
+ Title: C.extend({ classNames: (r, i) => ({ root: tt[(i.order ?? 1) - 1] }) }),
931
+ Code: b.extend({ classNames: { root: j({ bg: "surface.code" }) } }),
932
+ Table: w.extend({ classNames: { th: j({
933
+ fontSize: "xxs",
934
+ fontWeight: "bold",
935
+ color: "text.dimmed",
936
+ textTransform: "uppercase",
937
+ letterSpacing: "caps.sm"
938
+ }) } }),
939
+ Tooltip: T.extend({ defaultProps: {
940
+ color: "dark",
941
+ fz: "xs",
942
+ withArrow: !1,
943
+ openDelay: 600,
944
+ closeDelay: 120,
945
+ offset: 8
946
+ } }),
947
+ SegmentedControl: x.extend({ vars: (r, i) => ({ root: { "--sc-font-size": r.fontSizes[i.fz ?? i.size] } }) }),
948
+ Popover: D.extend({ defaultProps: {
949
+ withArrow: !1,
950
+ radius: "sm",
951
+ shadow: "lg"
952
+ } }),
953
+ Menu: g.extend({ defaultProps: {
954
+ radius: "sm",
955
+ shadow: "lg"
956
+ } })
813
957
  }
958
+ }), semantic = (r) => ({
959
+ dark: r,
960
+ light: r
961
+ }), resolver = (r) => ({
962
+ variables: { "--mantine-radius-default": t("radii.sm") },
963
+ ...semantic({
964
+ "--mantine-color-text": t("colors.text"),
965
+ "--mantine-color-body": t("colors.surface.default"),
966
+ "--mantine-color-placeholder": t("colors.text.non-essential"),
967
+ "--mantine-color-anchor": t("colors.text.link"),
968
+ "--mantine-color-disabled": t("colors.disabled.body"),
969
+ "--mantine-color-disabled-color": t("colors.disabled.text"),
970
+ "--mantine-color-disabled-hover": t("colors.disabled.body"),
971
+ "--mantine-color-disabled-border": t("colors.disabled.border"),
972
+ "--mantine-color-default": t("colors.surface.default"),
973
+ "--mantine-color-default-color": t("colors.text"),
974
+ "--mantine-color-default-border": t("colors.border.default"),
975
+ "--mantine-color-default-hover": t("colors.surface.hover")
976
+ })
814
977
  });
815
- function DefaultMantineProvider(r) {
816
- let i = J(8), a, o, s;
817
- i[0] === r ? (a = i[1], o = i[2], s = i[3]) : ({children: a, theme: s, ...o} = r, i[0] = r, i[1] = a, i[2] = o, i[3] = s);
818
- let c = s ?? Ge, l;
819
- return i[4] !== a || i[5] !== o || i[6] !== c ? (l = /* @__PURE__ */ X(b, {
820
- defaultColorScheme: "auto",
821
- theme: c,
978
+ function LikeC4MantineProvider(r) {
979
+ let i = X(12), a, o, s, c;
980
+ i[0] === r ? (a = i[1], o = i[2], s = i[3], c = i[4]) : ({children: a, defaultColorScheme: s, theme: c, ...o} = r, i[0] = r, i[1] = a, i[2] = o, i[3] = s, i[4] = c);
981
+ let l = s === void 0 ? "auto" : s, u;
982
+ i[5] === c ? u = i[6] : (u = c ? m(nt, c) : nt, i[5] = c, i[6] = u);
983
+ let d = u, f;
984
+ return i[7] !== a || i[8] !== l || i[9] !== d || i[10] !== o ? (f = /* @__PURE__ */ Q(_, {
985
+ defaultColorScheme: l,
986
+ theme: d,
987
+ cssVariablesResolver: resolver,
822
988
  ...o,
823
989
  children: a
824
- }), i[4] = a, i[5] = o, i[6] = c, i[7] = l) : l = i[7], l;
990
+ }), i[7] = a, i[8] = l, i[9] = d, i[10] = o, i[11] = f) : f = i[11], f;
825
991
  }
826
992
  //#endregion
827
993
  //#region ../diagram/src/context/EnsureMantine.tsx
828
994
  function EnsureMantine(r) {
829
- let i = J(7), { children: a } = r, o = q(p), t1;
995
+ let i = X(7), { children: a } = r, o = Y(v), t1;
830
996
  i[0] === o ? t1 = i[1] : (t1 = () => {
831
- o || console.warn("LikeC4Diagram must be a child of MantineProvider");
997
+ o || console.warn("LikeC4Diagram must be a child of LikeC4MantineProvider");
832
998
  }, i[0] = o, i[1] = t1);
833
999
  let s;
834
- if (i[2] === Symbol.for("react.memo_cache_sentinel") ? (s = [], i[2] = s) : s = i[2], ue(t1, s), !o) {
1000
+ if (i[2] === Symbol.for("react.memo_cache_sentinel") ? (s = [], i[2] = s) : s = i[2], _e(t1, s), !o) {
835
1001
  let r;
836
- return i[3] === a ? r = i[4] : (r = /* @__PURE__ */ X(DefaultMantineProvider, { children: a }), i[3] = a, i[4] = r), r;
1002
+ return i[3] === a ? r = i[4] : (r = /* @__PURE__ */ Q(LikeC4MantineProvider, { children: a }), i[3] = a, i[4] = r), r;
837
1003
  }
838
1004
  let c;
839
- return i[5] === a ? c = i[6] : (c = /* @__PURE__ */ X(Y, { children: a }), i[5] = a, i[6] = c), c;
1005
+ return i[5] === a ? c = i[6] : (c = /* @__PURE__ */ Q(Z, { children: a }), i[5] = a, i[6] = c), c;
840
1006
  }
841
1007
  //#endregion
842
1008
  //#region ../diagram/src/context/FramerMotionConfig.tsx
843
1009
  function FramerMotionConfig(r) {
844
- let i = J(6), { reducedMotion: a, children: o } = r, s = a === void 0 ? "user" : a, c = h()?.(), l;
1010
+ let i = X(6), { reducedMotion: a, children: o } = r, s = a === void 0 ? "user" : a, c = O()?.(), l;
845
1011
  i[0] === c ? l = i[1] : (l = c && { nonce: c }, i[0] = c, i[1] = l);
846
1012
  let u;
847
- return i[2] !== o || i[3] !== s || i[4] !== l ? (u = /* @__PURE__ */ X(ie, {
848
- features: ae,
1013
+ return i[2] !== o || i[3] !== s || i[4] !== l ? (u = /* @__PURE__ */ Q(de, {
1014
+ features: pe,
849
1015
  strict: !0,
850
- children: /* @__PURE__ */ X(se, {
1016
+ children: /* @__PURE__ */ Q(ge, {
851
1017
  reducedMotion: s,
852
1018
  ...l,
853
1019
  children: o
@@ -856,38 +1022,43 @@ function FramerMotionConfig(r) {
856
1022
  }
857
1023
  //#endregion
858
1024
  //#region ../diagram/src/context/LikeC4ModelContext.tsx
859
- var Ke = ce(null), qe = Ke.Provider, Je = ce(null), Ye = Je.Provider;
1025
+ var rt = K(null), it = rt.Provider, at = K(null), ot = at.Provider;
860
1026
  function useOptionalLikeC4Model() {
861
- return q(Ke);
1027
+ return Y(rt);
862
1028
  }
863
1029
  function useOptionalCurrentViewModel() {
864
- return q(Je);
1030
+ return Y(at);
1031
+ }
1032
+ //#endregion
1033
+ //#region ../diagram/src/hooks/useLikeC4Styles.ts
1034
+ function useLikeC4Styles() {
1035
+ return useOptionalLikeC4Model()?.$styles ?? Ee.DEFAULT;
865
1036
  }
866
1037
  //#endregion
867
1038
  //#region ../diagram/src/hooks/useId.ts
868
1039
  function useId$1() {
869
- let r = J(2), i = g(), a;
1040
+ let r = X(2), i = S(), a;
870
1041
  return r[0] === i ? a = r[1] : (a = i.replace("mantine-", "likec4-"), r[0] = i, r[1] = a), a;
871
1042
  }
872
1043
  r(useId$1, "useId");
873
1044
  //#endregion
874
1045
  //#region ../diagram/src/context/LikeC4ProjectsContext.ts
875
- var Xe = ce(null), Ze = Xe.Provider;
1046
+ var st = K(null), ct = st.Provider;
876
1047
  function useOptionalProjectsContext() {
877
- return q(Xe);
1048
+ return Y(st);
878
1049
  }
879
1050
  //#endregion
880
1051
  //#region ../diagram/src/hooks/useLikeC4Project.ts
881
- var Qe = [];
1052
+ var lt = [];
882
1053
  function onProjectChange(r) {
883
1054
  console.warn(`Triggered callback to change project to ${r}, but no <LikeC4ProjectsProvider/> found`);
884
1055
  }
885
- var $e = {
886
- projects: Qe,
1056
+ var ut = {
1057
+ projects: lt,
887
1058
  onProjectChange
888
1059
  };
889
1060
  function useLikeC4ProjectsContext() {
890
- return useOptionalProjectsContext() ?? $e;
1061
+ return useOptionalProjectsContext() ?? ut;
891
1062
  }
892
1063
  function useLikeC4Projects() {
893
1064
  return useLikeC4ProjectsContext().projects;
@@ -901,53 +1072,57 @@ function useLikeC4ProjectId() {
901
1072
  return r.projectId;
902
1073
  }
903
1074
  //#endregion
904
- //#region ../diagram/src/hooks/useLikeC4Styles.ts
905
- function useLikeC4Styles() {
906
- return useOptionalLikeC4Model()?.$styles ?? ye.DEFAULT;
907
- }
908
- //#endregion
909
- //#region ../diagram/src/utils/view-bounds.ts
910
- function pickViewBounds(r, i) {
911
- if (r._type === "dynamic") try {
912
- if ((i ?? r.variant) === "sequence") return he(r.sequenceLayout, "Sequence layout is not available"), he(r.sequenceLayout.bounds, "Sequence layout bounds are not available"), r.sequenceLayout.bounds;
913
- } catch (r) {
914
- console.error(r);
915
- }
916
- return r.bounds;
917
- }
918
- function calcEdgeBounds({ points: r, controlPoints: i, labelBBox: a }) {
919
- let o = Infinity, s = Infinity, c = -Infinity, l = -Infinity;
920
- if (i) for (let r of i) o = Math.min(o, r.x), s = Math.min(s, r.y), c = Math.max(c, r.x), l = Math.max(l, r.y);
921
- else for (let [i, a] of r) o = Math.min(o, i), s = Math.min(s, a), c = Math.max(c, i), l = Math.max(l, a);
922
- return a && (o = Math.min(o, a.x), s = Math.min(s, a.y), c = Math.max(c, a.x + a.width), l = Math.max(l, a.y + a.height)), {
923
- x: o,
924
- y: s,
925
- width: c - o,
926
- height: l - s
927
- };
928
- }
929
- function calcViewBounds({ nodes: r, edges: i }) {
930
- return Q.expand(Q.merge(...r, ...i.map(calcEdgeBounds).filter((r) => isFinite(r.x) && isFinite(r.y))), 20);
931
- }
932
- //#endregion
933
- //#region ../diagram/src/utils/readableText.ts
934
- var et = /\s+/g;
935
- function readableText(r) {
936
- return me.from(r).text?.replace(et, " ").trim() || null;
937
- }
1075
+ //#region ../diagram/src/components/Logo.tsx
1076
+ var dt = q((r, i) => {
1077
+ let a = X(5), o, s;
1078
+ a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q("path", {
1079
+ fill: "#5E98AF",
1080
+ d: "M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"
1081
+ }), s = /* @__PURE__ */ Q("path", {
1082
+ className: j({
1083
+ fill: "[#FCFBF7]",
1084
+ _light: { fill: "[#222221]" }
1085
+ }),
1086
+ d: "M71.61 12.08c-.06 3.61.3 29.95.23 31.87 0 1.8 0 3.6.06 5.41 0 .3.18.58.47.58 4.1.18 8.13-.17 12.22-.11 1.34.05 2.69 0 3.97 0 1.29-.06 1.4-.59 1.35-1.63-.06-1.63-.06-3.08-.06-4.65-.06-.82-.53-1.11-1.23-1.11-2.4.06-4.8-.06-7.19.06-.4.06-.82.06-1.23.06-.7-.06-.87-.24-.93-1v-.86c-.18-4.83.17-9.83.17-14.66-.06-4.07 0-7.73-.06-11.34 0-1.57 0-3.14-.05-4.65-.06-.93 0-1.92-.24-2.85-.11-.35-.29-.81-.7-.81h-5.5c-.93 0-1.22.64-1.28 1.57v4.12ZM103.81 35c-.17-6.63-.1-13.67-.05-20.24 0-2.04-.12-4.25-.12-6.28 0-2.21-.87-2.1-2.04-2.15-1.7-.06-2.46-.06-4.15-.06-1.11-.06-1.58.23-1.58 1.34 0 5.7-.18 21.8-.12 24.13.06 2.33.3 12.91.18 15.24-.06.81 0 1.62.06 2.44.05.29.23.58.7.58 1.93-.12 3.74-.12 5.67-.17.7-.06 1.28-.24 1.58-1 .05-.4-.12-11.04-.12-13.83Zm13.92 4.47c0-2.03-.3-7.56-.23-8.72 0-.17.11-.4.17-.4.12 0 .35.11.41.17 1.87 2.44 10.64 19.36 11.7 19.42.28.06.58.06.87.06 1.99-.12 3.74 0 5.73 0 2.04 0 .7-1.98.35-2.5-.53-.76-7.48-13.14-7.9-13.9-1.16-1.98-2.16-4.13-3.32-6.05-.12-.23-.24-.58-.18-.81.12-.7.3-1.34.59-1.98a93.18 93.18 0 0 1 4.55-8.14c1.88-2.97 2.93-4.83 4.45-7.5.35-.64.58-1.34.82-2.1.05-.29-.18-.58-.53-.58-1.11-.05-5.15 0-6.43 0-.59 0-1.17.12-1.46.64-.76 1.46-8.6 15.7-9.35 16.98-.06.12-.24.18-.41.18 0 0-.12-.18-.12-.3-.06-3.25.53-13.9.4-16.04-.05-1.28-.28-1.4-1.57-1.46-1.4-.05-3.33-.05-4.73-.05-1.3 0-1.4.7-1.58 1.62-.06.18-.06 5.64-.06 8.09 0 3.54-.3 25.76.11 32.8 0 .7.18 1.1.77 1.1 1.57-.12 3.91 0 5.49 0 1.11 0 1.29-.12 1.29-1.98 0-2.5.23-4.77.23-7.85 0-.23-.06-.46-.06-.7Zm25.66-1.4h-.06c0 1.46-.05 2.97 0 4.49.06 1.86.18 3.72.3 5.58 0 .64.17.81.76.93 1.22.29 2.4.35 3.62.35 3.16-.12 6.31.11 9.47 0 1.29-.06 1.87.06 3.16-.18 1.17-.23 1.58-.87 1.58-2.61-.12-1.1-.06-1.57-.06-2.91 0-1.92-1.35-2.56-2.52-2.5-.81.06-4.73-.06-6.31-.06-2.63.06-2.22.4-2.22-2.33 0-2.2.06-5.05.06-7.32 0-1.22.11-1.63 1.28-1.63h7.31c1.17.17 1.99-.64 1.99-1.86 0-1.22.12-1.28.12-2.5l-.18-1.75c-.12-.99-.47-1.33-1.46-1.33-.64 0-1.29.05-1.93.11-2.52.18-3.68-.17-6.14 0-.82 0-.93-.11-1-.87-.23-2.27 0-4.77.24-7.04.06-.93.3-1.1 1.17-1.16l8.24-.06c1.11-.11 1.46-.06 1.4-1.16-.11-1.69.06-3.43-.11-5.12-.12-.93-.41-1.1-1.46-1.1-1.76.05-2.17.05-3.92.17-1.75.06-8.77.06-10.46.06-2.46 0-2.63-.18-2.7 2.8-.1 2.32-.05 4.7-.05 7.09 0 4.07-.23 18.66-.12 21.92Zm47.76-24.82c.06-1.92 0-3.5 0-5.35 0-2.15-3.92-1.92-5.32-1.86a18.95 18.95 0 0 0-15.08 9.77c-.82 1.57-1.4 3.2-1.81 4.88a34 34 0 0 0-.59 12.15c.41 3.78 1.4 7.56 3.74 10.59 4.04 5.3 11.46 7.15 17.83 6.16.3-.06.59-.11.82-.29.18-.11.35-.35.35-.58l.18-3.31c.06-1.05 0-1 0-2.04 0-1.4-2.93-.35-4.74-.35-1.75 0-3.62-.06-5.2-.87-2.8-1.57-4.38-4.71-5.26-7.68-1-3.2-1.23-6.63-.64-9.88.7-4.25 2.74-9.13 7.25-10.59 2.57-.87 5.31-.58 7.89-.29.35.06.58-.17.58-.46Zm26.77 15.3c.06-2.5 0-14.84 0-18.38.06-.82 0-1.63-.11-2.45-.06-.99-.24-1.28-1.29-1.33h-4.44c-.82 0-1.35.4-1.82 1.27-1.34 3.2-10.75 24.02-12.15 26.58-.53.99-1 1.63-1 2.68v4.24c0 .76-.06 1.28 1.23 1.28l11.1-.06c1.47 0 1.47.3 1.47 1.1 0 .88-.12 4.9-.12 5.3 0 .58.12 1.16 1.23 1.16h5.08c1.23 0 1.23-.7 1.23-2.03.06-1.17-.06-3.5-.06-4.66 0-.93.18-.98 1.76-.98 1.22 0 1.75-.12 1.75-.88.06-1.57 0-2.67 0-4.42 0-1.04-.93-.98-2.92-.98-.65 0-.7-.18-.7-1.05-.12-1.8-.24-4.6-.24-6.4Zm-7.25-5.94c-.05.7-.11 10.82-.11 12.27-.06.81-.24 1.05-1 1.1-1.93.06-3.85.06-5.78.06-.47 0-.65-.4-.41-.87.23-.4 4.85-11.57 6.13-14.48.18-.17.24-.35.41-.52.18-.12.41-.18.59-.23.06 0 .23.29.23.46 0 .76-.06 1.51-.06 2.21Z"
1087
+ }), a[0] = o, a[1] = s) : (o = a[0], s = a[1]);
1088
+ let c;
1089
+ return a[2] !== r || a[3] !== i ? (c = /* @__PURE__ */ $("svg", {
1090
+ ref: i,
1091
+ xmlns: "http://www.w3.org/2000/svg",
1092
+ fill: "none",
1093
+ viewBox: "0 0 222 56",
1094
+ ...r,
1095
+ children: [o, s]
1096
+ }), a[2] = r, a[3] = i, a[4] = c) : c = a[4], c;
1097
+ }), ft = q((r, i) => {
1098
+ let a = X(4), o;
1099
+ a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ Q("path", {
1100
+ fill: "#5E98AF",
1101
+ d: "M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"
1102
+ }), a[0] = o) : o = a[0];
1103
+ let s;
1104
+ return a[1] !== r || a[2] !== i ? (s = /* @__PURE__ */ Q("svg", {
1105
+ ref: i,
1106
+ xmlns: "http://www.w3.org/2000/svg",
1107
+ fill: "none",
1108
+ viewBox: "0 0 56 56",
1109
+ ...r,
1110
+ children: o
1111
+ }), a[1] = r, a[2] = i, a[3] = s) : s = a[3], s;
1112
+ });
938
1113
  //#endregion
939
1114
  //#region ../diagram/src/base-primitives/edge/EdgeContainer.tsx
940
1115
  function EdgeContainer(r) {
941
- let i = J(47), a, o, s, c, l, u, d, f, p, m, h, g;
1116
+ let i = X(47), a, o, s, c, l, u, d, f, p, m, h, g;
942
1117
  if (i[0] !== r) {
943
- let { className: _, component: v, selectable: y, selected: b, data: x, animated: S, children: C, style: T, ...E } = r;
944
- a = C, s = T, o = v === void 0 ? "g" : v;
945
- let D = y === void 0 ? !1 : y, O = b === void 0 ? !1 : b, k, A, j, M, N;
946
- i[13] === x ? (k = i[14], A = i[15], j = i[16], M = i[17], N = i[18]) : ({color: A, hovered: j, active: M, dimmed: N, ...k} = x, i[13] = x, i[14] = k, i[15] = A, i[16] = j, i[17] = M, i[18] = N);
947
- let P = A === void 0 ? "gray" : A, F = j === void 0 ? !1 : j, I = M === void 0 ? !1 : M, L = N === void 0 ? !1 : N, R = S === void 0 ? !1 : S;
1118
+ let { className: _, component: v, selectable: y, selected: b, data: x, animated: S, children: C, style: w, ...T } = r;
1119
+ a = C, s = w, o = v === void 0 ? "g" : v;
1120
+ let E = y !== void 0 && y, D = b !== void 0 && b, O, k, j, M, N;
1121
+ i[13] === x ? (O = i[14], k = i[15], j = i[16], M = i[17], N = i[18]) : ({color: k, hovered: j, active: M, dimmed: N, ...O} = x, i[13] = x, i[14] = O, i[15] = k, i[16] = j, i[17] = M, i[18] = N);
1122
+ let P = k === void 0 ? "gray" : k, F = j !== void 0 && j, I = M !== void 0 && M, L = N !== void 0 && N, R = S !== void 0 && S;
948
1123
  R ||= I;
949
- let z = O && "selected", B = D && "selectable";
950
- i[19] !== _ || i[20] !== z || i[21] !== B ? (c = w(_, "likec4-edge-container", z, B), i[19] = _, i[20] = z, i[21] = B, i[22] = c) : c = i[22], l = P, u = k.dir ?? "forward", d = I, f = F, i[23] === R ? p = i[24] : (p = R && { "data-likec4-animated": R }, i[23] = R, i[24] = p), i[25] === O ? m = i[26] : (m = O && { "data-likec4-selected": O }, i[25] = O, i[26] = m), i[27] === L ? h = i[28] : (h = L !== !1 && { "data-likec4-dimmed": L }, i[27] = L, i[28] = h), g = t(E, _temp), i[0] = r, i[1] = a, i[2] = o, i[3] = s, i[4] = c, i[5] = l, i[6] = u, i[7] = d, i[8] = f, i[9] = p, i[10] = m, i[11] = h, i[12] = g;
1124
+ let z = D && "selected", B = E && "selectable";
1125
+ i[19] !== _ || i[20] !== z || i[21] !== B ? (c = A(_, "likec4-edge-container", z, B), i[19] = _, i[20] = z, i[21] = B, i[22] = c) : c = i[22], l = P, u = O.dir ?? "forward", d = I, f = F, i[23] === R ? p = i[24] : (p = R && { "data-likec4-animated": R }, i[23] = R, i[24] = p), i[25] === D ? m = i[26] : (m = D && { "data-likec4-selected": D }, i[25] = D, i[26] = m), i[27] === L ? h = i[28] : (h = L !== !1 && { "data-likec4-dimmed": L }, i[27] = L, i[28] = h), g = t$1(T, _temp), i[0] = r, i[1] = a, i[2] = o, i[3] = s, i[4] = c, i[5] = l, i[6] = u, i[7] = d, i[8] = f, i[9] = p, i[10] = m, i[11] = h, i[12] = g;
951
1126
  } else a = i[1], o = i[2], s = i[3], c = i[4], l = i[5], u = i[6], d = i[7], f = i[8], p = i[9], m = i[10], h = i[11], g = i[12];
952
1127
  let _;
953
1128
  i[29] !== c || i[30] !== l || i[31] !== u || i[32] !== d || i[33] !== f || i[34] !== p || i[35] !== m || i[36] !== h || i[37] !== g ? (_ = {
@@ -964,15 +1139,15 @@ function EdgeContainer(r) {
964
1139
  let v = _;
965
1140
  if (o === "svg") {
966
1141
  let r;
967
- return i[39] !== a || i[40] !== v || i[41] !== s ? (r = /* @__PURE__ */ X("svg", {
1142
+ return i[39] !== a || i[40] !== v || i[41] !== s ? (r = /* @__PURE__ */ Q("svg", {
968
1143
  style: s,
969
1144
  ...v,
970
1145
  children: a
971
1146
  }), i[39] = a, i[40] = v, i[41] = s, i[42] = r) : r = i[42], r;
972
1147
  }
973
- he(o === "g", "EdgeContainer: component must be \"g\" or \"svg\"");
1148
+ xe(o === "g", "EdgeContainer: component must be \"g\" or \"svg\"");
974
1149
  let y;
975
- return i[43] !== a || i[44] !== v || i[45] !== s ? (y = /* @__PURE__ */ X("g", {
1150
+ return i[43] !== a || i[44] !== v || i[45] !== s ? (y = /* @__PURE__ */ Q("g", {
976
1151
  style: s,
977
1152
  ...v,
978
1153
  children: a
@@ -983,63 +1158,63 @@ function _temp(r, i) {
983
1158
  }
984
1159
  //#endregion
985
1160
  //#region ../diagram/src/base-primitives/edge/EdgeLabel.tsx
986
- var tt = K((r, i) => {
987
- let a = J(34), o, s, c, l, u, d, f;
1161
+ var pt = q((r, i) => {
1162
+ let a = X(34), o, s, c, l, u, d, f;
988
1163
  a[0] === r ? (o = a[1], s = a[2], c = a[3], l = a[4], u = a[5], d = a[6], f = a[7]) : ({edgeProps: u, isSequenceStep: d, stepNum: l, pointerEvents: f, className: s, children: o, ...c} = r, a[0] = r, a[1] = o, a[2] = s, a[3] = c, a[4] = l, a[5] = u, a[6] = d, a[7] = f);
989
- let { id: p, data: m, selected: h, selectable: g } = u, { label: _, technology: v, hovered: y } = m, b = y === void 0 ? !1 : y, x = h === void 0 ? !1 : h, S = g === void 0 ? !1 : g, T = d === void 0 ? !1 : d, E = f === void 0 ? "all" : f, D;
990
- a[8] !== _ || a[9] !== v ? (D = e(_) || e(v), a[8] = _, a[9] = v, a[10] = D) : D = a[10];
991
- let k = D, A;
992
- a[11] !== s || a[12] !== T || a[13] !== E || a[14] !== S ? (A = w("likec4-edge-label", O({
993
- pointerEvents: E,
994
- isStepEdge: T,
995
- cursor: S || T ? "pointer" : "default"
996
- }), s), a[11] = s, a[12] = T, a[13] = E, a[14] = S, a[15] = A) : A = a[15];
997
- let j = b && !x ? 1.06 : 1, M;
998
- a[16] === j ? M = a[17] : (M = { scale: j }, a[16] = j, a[17] = M);
999
- let N;
1000
- a[18] !== T || a[19] !== l ? (N = T && l && /* @__PURE__ */ X(C, {
1164
+ let { id: p, data: m, selected: h, selectable: g } = u, { label: _, technology: v, hovered: y } = m, b = y !== void 0 && y, x = h !== void 0 && h, S = g !== void 0 && g, C = d !== void 0 && d, w = f === void 0 ? "all" : f, T;
1165
+ a[8] !== _ || a[9] !== v ? (T = e(_) || e(v), a[8] = _, a[9] = v, a[10] = T) : T = a[10];
1166
+ let E = T, D;
1167
+ a[11] !== s || a[12] !== C || a[13] !== w || a[14] !== S ? (D = A("likec4-edge-label", R({
1168
+ pointerEvents: w,
1169
+ isStepEdge: C,
1170
+ cursor: S || C ? "pointer" : "default"
1171
+ }), s), a[11] = s, a[12] = C, a[13] = w, a[14] = S, a[15] = D) : D = a[15];
1172
+ let O = b && !x ? 1.06 : 1, k;
1173
+ a[16] === O ? k = a[17] : (k = { scale: O }, a[16] = O, a[17] = k);
1174
+ let j;
1175
+ a[18] !== C || a[19] !== l ? (j = C && l && /* @__PURE__ */ Q(L, {
1001
1176
  className: "likec4-edge-label__step-number",
1002
1177
  children: l
1003
- }), a[18] = T, a[19] = l, a[20] = N) : N = a[20];
1004
- let P;
1005
- a[21] !== o || a[22] !== k || a[23] !== _ || a[24] !== v ? (P = k && /* @__PURE__ */ Z(C, {
1178
+ }), a[18] = C, a[19] = l, a[20] = j) : j = a[20];
1179
+ let M;
1180
+ a[21] !== o || a[22] !== E || a[23] !== _ || a[24] !== v ? (M = E && /* @__PURE__ */ $(L, {
1006
1181
  className: "likec4-edge-label__contents",
1007
1182
  children: [
1008
- e(_) && /* @__PURE__ */ X(C, {
1183
+ e(_) && /* @__PURE__ */ Q(L, {
1009
1184
  lineClamp: 5,
1010
1185
  className: "likec4-edge-label__text",
1011
1186
  children: _
1012
1187
  }),
1013
- e(v) && /* @__PURE__ */ X(C, {
1188
+ e(v) && /* @__PURE__ */ Q(L, {
1014
1189
  className: "likec4-edge-label__technology",
1015
1190
  children: "[ " + v + " ]"
1016
1191
  }),
1017
1192
  o
1018
1193
  ]
1019
- }), a[21] = o, a[22] = k, a[23] = _, a[24] = v, a[25] = P) : P = a[25];
1020
- let F;
1021
- return a[26] !== p || a[27] !== i || a[28] !== c || a[29] !== M || a[30] !== N || a[31] !== P || a[32] !== A ? (F = /* @__PURE__ */ Z(G, {
1194
+ }), a[21] = o, a[22] = E, a[23] = _, a[24] = v, a[25] = M) : M = a[25];
1195
+ let N;
1196
+ return a[26] !== p || a[27] !== i || a[28] !== c || a[29] !== k || a[30] !== j || a[31] !== M || a[32] !== D ? (N = /* @__PURE__ */ $(he, {
1022
1197
  ref: i,
1023
- className: A,
1198
+ className: D,
1024
1199
  "data-edge-id": p,
1025
- animate: M,
1200
+ animate: k,
1026
1201
  ...c,
1027
- children: [N, P]
1028
- }), a[26] = p, a[27] = i, a[28] = c, a[29] = M, a[30] = N, a[31] = P, a[32] = A, a[33] = F) : F = a[33], F;
1202
+ children: [j, M]
1203
+ }), a[26] = p, a[27] = i, a[28] = c, a[29] = k, a[30] = j, a[31] = M, a[32] = D, a[33] = N) : N = a[33], N;
1029
1204
  });
1030
- tt.displayName = "EdgeLabel";
1205
+ pt.displayName = "EdgeLabel";
1031
1206
  //#endregion
1032
1207
  //#region ../diagram/src/base-primitives/edge/EdgeLabelContainer.tsx
1033
1208
  var toCssVarValue = (r) => r === void 0 ? "" : e$1(r) ? `${Math.trunc(r)}px` : r;
1034
1209
  function EdgeLabelContainer(r) {
1035
- let i = J(42), a, o, s, c, l, u;
1210
+ let i = X(42), a, o, s, c, l, u;
1036
1211
  i[0] === r ? (a = i[1], o = i[2], s = i[3], c = i[4], l = i[5], u = i[6]) : ({edgeProps: u, labelPosition: c, className: o, style: s, children: a, ...l} = r, i[0] = r, i[1] = a, i[2] = o, i[3] = s, i[4] = c, i[5] = l, i[6] = u);
1037
- let { id: d, selected: f, data: p, animated: m } = u, h = f === void 0 ? !1 : f, { hovered: g, active: _, dimmed: v, labelBBox: y, color: b } = p, x = g === void 0 ? !1 : g, S = _ === void 0 ? !1 : _, C = v === void 0 ? !1 : v, T = b === void 0 ? "gray" : b, E = c?.x ?? y?.x, D = c?.y ?? y?.y;
1038
- if (E === void 0 || D === void 0) return null;
1039
- let O = c?.translate ?? "";
1212
+ let { id: d, selected: f, data: p, animated: m } = u, h = f !== void 0 && f, { hovered: g, active: _, dimmed: v, labelBBox: y, color: b } = p, x = g !== void 0 && g, S = _ !== void 0 && _, C = v !== void 0 && v, w = b === void 0 ? "gray" : b, T = c?.x ?? y?.x, E = c?.y ?? y?.y;
1213
+ if (T === void 0 || E === void 0) return null;
1214
+ let D = c?.translate ?? "";
1040
1215
  m ||= S;
1041
- let k = d, A;
1042
- i[7] === o ? A = i[8] : (A = w("nodrag nopan", "likec4-edge-label-container", o), i[7] = o, i[8] = A);
1216
+ let O = d, k;
1217
+ i[7] === o ? k = i[8] : (k = A("nodrag nopan", "likec4-edge-label-container", o), i[7] = o, i[8] = k);
1043
1218
  let j = m || S, M;
1044
1219
  i[9] === m ? M = i[10] : (M = m && { "data-likec4-animated": m }, i[9] = m, i[10] = M);
1045
1220
  let N;
@@ -1047,10 +1222,10 @@ function EdgeLabelContainer(r) {
1047
1222
  let P;
1048
1223
  i[13] === C ? P = i[14] : (P = C !== !1 && { "data-likec4-dimmed": C }, i[13] = C, i[14] = P);
1049
1224
  let F;
1050
- i[15] === E ? F = i[16] : (F = toCssVarValue(E), i[15] = E, i[16] = F);
1225
+ i[15] === T ? F = i[16] : (F = toCssVarValue(T), i[15] = T, i[16] = F);
1051
1226
  let I;
1052
- i[17] === D ? I = i[18] : (I = toCssVarValue(D), i[17] = D, i[18] = I);
1053
- let L = `translate(${F}, ${I}) ${O}`, R;
1227
+ i[17] === E ? I = i[18] : (I = toCssVarValue(E), i[17] = E, i[18] = I);
1228
+ let L = `translate(${F}, ${I}) ${D}`, R;
1054
1229
  i[19] === L ? R = i[20] : (R = { transform: L }, i[19] = L, i[20] = R);
1055
1230
  let z;
1056
1231
  i[21] === y ? z = i[22] : (z = y && { maxWidth: y.width + 20 }, i[21] = y, i[22] = z);
@@ -1060,16 +1235,16 @@ function EdgeLabelContainer(r) {
1060
1235
  ...z
1061
1236
  }, i[23] = s, i[24] = z, i[25] = B) : B = i[25];
1062
1237
  let V;
1063
- i[26] !== a || i[27] !== B ? (V = /* @__PURE__ */ X("div", {
1238
+ i[26] !== a || i[27] !== B ? (V = /* @__PURE__ */ Q("div", {
1064
1239
  style: B,
1065
1240
  children: a
1066
1241
  }), i[26] = a, i[27] = B, i[28] = V) : V = i[28];
1067
1242
  let H;
1068
- return i[29] !== T || i[30] !== d || i[31] !== S || i[32] !== x || i[33] !== l || i[34] !== j || i[35] !== M || i[36] !== N || i[37] !== P || i[38] !== R || i[39] !== V || i[40] !== A ? (H = /* @__PURE__ */ X(ee, { children: /* @__PURE__ */ X("div", {
1243
+ return i[29] !== w || i[30] !== d || i[31] !== S || i[32] !== x || i[33] !== l || i[34] !== j || i[35] !== M || i[36] !== N || i[37] !== P || i[38] !== R || i[39] !== V || i[40] !== k ? (H = /* @__PURE__ */ Q(ie, { children: /* @__PURE__ */ Q("div", {
1069
1244
  ...l,
1070
- className: A,
1245
+ className: k,
1071
1246
  "data-likec4-hovered": x,
1072
- "data-likec4-color": T,
1247
+ "data-likec4-color": w,
1073
1248
  "data-edge-active": S,
1074
1249
  "data-edge-animated": j,
1075
1250
  ...M,
@@ -1077,13 +1252,13 @@ function EdgeLabelContainer(r) {
1077
1252
  ...P,
1078
1253
  style: R,
1079
1254
  children: V
1080
- }, k) }), i[29] = T, i[30] = d, i[31] = S, i[32] = x, i[33] = l, i[34] = j, i[35] = M, i[36] = N, i[37] = P, i[38] = R, i[39] = V, i[40] = A, i[41] = H) : H = i[41], H;
1255
+ }, O) }), i[29] = w, i[30] = d, i[31] = S, i[32] = x, i[33] = l, i[34] = j, i[35] = M, i[36] = N, i[37] = P, i[38] = R, i[39] = V, i[40] = k, i[41] = H) : H = i[41], H;
1081
1256
  }
1082
1257
  //#endregion
1083
1258
  //#region ../diagram/src/base-primitives/edge/EdgeMarkers.tsx
1084
1259
  var Open = (r) => {
1085
- let i = J(3), a;
1086
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X("path", {
1260
+ let i = X(3), a;
1261
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q("path", {
1087
1262
  d: "M0,0 L7,4 L0,8 L4,4 Z",
1088
1263
  stroke: "context-stroke",
1089
1264
  fill: "context-stroke",
@@ -1092,7 +1267,7 @@ var Open = (r) => {
1092
1267
  strokeLinecap: "round"
1093
1268
  }), i[0] = a) : a = i[0];
1094
1269
  let o;
1095
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1270
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1096
1271
  viewBox: "-4 -4 14 16",
1097
1272
  refX: 5,
1098
1273
  refY: 4,
@@ -1104,14 +1279,14 @@ var Open = (r) => {
1104
1279
  children: a
1105
1280
  }), i[1] = r, i[2] = o), o;
1106
1281
  }, Arrow = (r) => {
1107
- let i = J(3), a;
1108
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X("path", {
1282
+ let i = X(3), a;
1283
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q("path", {
1109
1284
  d: "M 0 0 L 8 3 L 0 6 L 1 3 z",
1110
1285
  fill: "context-stroke",
1111
1286
  strokeWidth: 0
1112
1287
  }), i[0] = a) : a = i[0];
1113
1288
  let o;
1114
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1289
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1115
1290
  viewBox: "-1 -1 12 10",
1116
1291
  refX: 4,
1117
1292
  refY: 3,
@@ -1123,14 +1298,14 @@ var Open = (r) => {
1123
1298
  children: a
1124
1299
  }), i[1] = r, i[2] = o), o;
1125
1300
  }, Crow = (r) => {
1126
- let i = J(3), a;
1127
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X("path", {
1301
+ let i = X(3), a;
1302
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q("path", {
1128
1303
  d: "M 8 0 L 0 4 L 8 8 M 8 4 L 0 4",
1129
1304
  fill: "none",
1130
1305
  strokeWidth: 1
1131
1306
  }), i[0] = a) : a = i[0];
1132
1307
  let o;
1133
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1308
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1134
1309
  viewBox: "-1 -1 12 12",
1135
1310
  refX: 8,
1136
1311
  refY: 4,
@@ -1142,8 +1317,8 @@ var Open = (r) => {
1142
1317
  children: a
1143
1318
  }), i[1] = r, i[2] = o), o;
1144
1319
  }, OArrow = (r) => {
1145
- let i = J(3), a;
1146
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X("path", {
1320
+ let i = X(3), a;
1321
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q("path", {
1147
1322
  d: "M 0 0 L 8 3 L 0 6 L 1 3 z",
1148
1323
  stroke: "context-stroke",
1149
1324
  fill: "var(--likec4-background-color)",
@@ -1152,7 +1327,7 @@ var Open = (r) => {
1152
1327
  strokeLinecap: "square"
1153
1328
  }), i[0] = a) : a = i[0];
1154
1329
  let o;
1155
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1330
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1156
1331
  viewBox: "-1 -1 12 10",
1157
1332
  refX: 4,
1158
1333
  refY: 3,
@@ -1164,15 +1339,15 @@ var Open = (r) => {
1164
1339
  children: a
1165
1340
  }), i[1] = r, i[2] = o), o;
1166
1341
  }, Diamond = (r) => {
1167
- let i = J(3), a;
1168
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X("path", {
1342
+ let i = X(3), a;
1343
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q("path", {
1169
1344
  d: "M5,0 L10,4 L5,8 L0,4 Z",
1170
1345
  fill: "context-stroke",
1171
1346
  strokeWidth: 0,
1172
1347
  strokeLinecap: "round"
1173
1348
  }), i[0] = a) : a = i[0];
1174
1349
  let o;
1175
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1350
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1176
1351
  viewBox: "-4 -4 16 14",
1177
1352
  refX: 5,
1178
1353
  refY: 4,
@@ -1184,8 +1359,8 @@ var Open = (r) => {
1184
1359
  children: a
1185
1360
  }), i[1] = r, i[2] = o), o;
1186
1361
  }, ODiamond = (r) => {
1187
- let i = J(3), a;
1188
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X("path", {
1362
+ let i = X(3), a;
1363
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q("path", {
1189
1364
  d: "M5,0 L10,4 L5,8 L0,4 Z",
1190
1365
  stroke: "context-stroke",
1191
1366
  fill: "var(--likec4-background-color)",
@@ -1193,7 +1368,7 @@ var Open = (r) => {
1193
1368
  strokeLinecap: "round"
1194
1369
  }), i[0] = a) : a = i[0];
1195
1370
  let o;
1196
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1371
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1197
1372
  viewBox: "-4 -4 16 14",
1198
1373
  refX: 6,
1199
1374
  refY: 4,
@@ -1205,8 +1380,8 @@ var Open = (r) => {
1205
1380
  children: a
1206
1381
  }), i[1] = r, i[2] = o), o;
1207
1382
  }, Dot = (r) => {
1208
- let i = J(3), a;
1209
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X("circle", {
1383
+ let i = X(3), a;
1384
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q("circle", {
1210
1385
  strokeWidth: 0,
1211
1386
  fill: "context-stroke",
1212
1387
  cx: 4,
@@ -1214,7 +1389,7 @@ var Open = (r) => {
1214
1389
  r: 3
1215
1390
  }), i[0] = a) : a = i[0];
1216
1391
  let o;
1217
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1392
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1218
1393
  viewBox: "0 0 10 10",
1219
1394
  refX: 4,
1220
1395
  refY: 4,
@@ -1224,8 +1399,8 @@ var Open = (r) => {
1224
1399
  children: a
1225
1400
  }), i[1] = r, i[2] = o), o;
1226
1401
  }, ODot = (r) => {
1227
- let i = J(3), a;
1228
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X("circle", {
1402
+ let i = X(3), a;
1403
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q("circle", {
1229
1404
  strokeWidth: 1.25,
1230
1405
  stroke: "context-stroke",
1231
1406
  fill: "var(--likec4-background-color)",
@@ -1234,7 +1409,7 @@ var Open = (r) => {
1234
1409
  r: 3
1235
1410
  }), i[0] = a) : a = i[0];
1236
1411
  let o;
1237
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1412
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1238
1413
  viewBox: "0 0 10 10",
1239
1414
  refX: 4,
1240
1415
  refY: 4,
@@ -1243,7 +1418,7 @@ var Open = (r) => {
1243
1418
  ...r,
1244
1419
  children: a
1245
1420
  }), i[1] = r, i[2] = o), o;
1246
- }, nt = {
1421
+ }, mt = {
1247
1422
  Arrow,
1248
1423
  Crow,
1249
1424
  OArrow,
@@ -1254,7 +1429,7 @@ var Open = (r) => {
1254
1429
  ODot
1255
1430
  };
1256
1431
  function arrowTypeToMarker(r) {
1257
- if (!(!r || r === "none")) switch (r) {
1432
+ if (r && r !== "none") switch (r) {
1258
1433
  case "normal": return "Arrow";
1259
1434
  case "crow": return "Crow";
1260
1435
  case "onormal": return "OArrow";
@@ -1264,21 +1439,21 @@ function arrowTypeToMarker(r) {
1264
1439
  case "vee": return "Open";
1265
1440
  case "dot": return "Dot";
1266
1441
  case "odot": return "ODot";
1267
- default: ge(r);
1442
+ default: Se(r);
1268
1443
  }
1269
1444
  }
1270
1445
  //#endregion
1271
1446
  //#region ../diagram/src/base-primitives/edge/EdgePath.tsx
1272
- var rt = K((r, i) => {
1273
- let a = J(54), { edgeProps: o, isDragging: s, onEdgePointerDown: c, strokeWidth: l, svgPath: u } = r, { id: d, data: f, selectable: p, style: m, interactionWidth: h } = o, { line: g, dir: _, tail: v, head: y } = f, b = p === void 0 ? !0 : p, x = s === void 0 ? !1 : s, S = arrowTypeToMarker(v), C = arrowTypeToMarker(y ?? "normal");
1447
+ var ht = q((r, i) => {
1448
+ let a = X(54), { edgeProps: o, isDragging: s, onEdgePointerDown: c, strokeWidth: l, svgPath: u } = r, { id: d, data: f, selectable: p, style: m, interactionWidth: h } = o, { line: g, dir: _, tail: v, head: y } = f, b = p === void 0 || p, x = s !== void 0 && s, S = arrowTypeToMarker(v), C = arrowTypeToMarker(y ?? "normal");
1274
1449
  _ === "back" && ([S, C] = [C, S]);
1275
- let E = S ? nt[S] : null, O = C ? nt[C] : null, k = g === "dotted", A = k || g === "dashed", j;
1276
- k ? j = "1,8" : A && (j = "8,10");
1277
- let M, N, P, F, I, L, R, z;
1278
- if (a[0] !== O || a[1] !== E || a[2] !== d || a[3] !== h || a[4] !== x || a[5] !== c || a[6] !== b || a[7] !== m || a[8] !== u || a[9] !== i) {
1279
- let r = D();
1280
- a[18] !== h || a[19] !== x || a[20] !== c || a[21] !== b || a[22] !== u ? (N = b && /* @__PURE__ */ X("path", {
1281
- className: w("react-flow__edge-interaction", T({ fill: "none" })),
1450
+ let w = S ? mt[S] : null, T = C ? mt[C] : null, E = g === "dotted", D = E || g === "dashed", O;
1451
+ E ? O = "1,8" : D && (O = "8,10");
1452
+ let k, M, N, P, F, I, L, R;
1453
+ if (a[0] !== T || a[1] !== w || a[2] !== d || a[3] !== h || a[4] !== x || a[5] !== c || a[6] !== b || a[7] !== m || a[8] !== u || a[9] !== i) {
1454
+ let r = z();
1455
+ a[18] !== h || a[19] !== x || a[20] !== c || a[21] !== b || a[22] !== u ? (M = b && /* @__PURE__ */ Q("path", {
1456
+ className: A("react-flow__edge-interaction", j({ fill: "none" })),
1282
1457
  onPointerDown: c,
1283
1458
  d: u,
1284
1459
  style: {
@@ -1287,56 +1462,56 @@ var rt = K((r, i) => {
1287
1462
  strokeOpacity: 0,
1288
1463
  ...x ? { display: "none" } : {}
1289
1464
  }
1290
- }), a[18] = h, a[19] = x, a[20] = c, a[21] = b, a[22] = u, a[23] = N) : N = a[23];
1465
+ }), a[18] = h, a[19] = x, a[20] = c, a[21] = b, a[22] = u, a[23] = M) : M = a[23];
1291
1466
  let o = `path("${u}")`, s;
1292
- a[24] === o ? s = a[25] : (s = { offsetPath: o }, a[24] = o, a[25] = s), P = /* @__PURE__ */ X("circle", {
1293
- className: w("likec4-edge-middle-point", r.middlePoint),
1467
+ a[24] === o ? s = a[25] : (s = { offsetPath: o }, a[24] = o, a[25] = s), N = /* @__PURE__ */ Q("circle", {
1468
+ className: A("likec4-edge-middle-point", r.middlePoint),
1294
1469
  "data-edge-id": d,
1295
1470
  style: s
1296
- }), L = r.markersCtx, R = c;
1471
+ }), I = r.markersCtx, L = c;
1297
1472
  let l;
1298
- a[26] !== E || a[27] !== d ? (l = E && /* @__PURE__ */ X(E, { id: "start" + d }), a[26] = E, a[27] = d, a[28] = l) : l = a[28];
1473
+ a[26] !== w || a[27] !== d ? (l = w && /* @__PURE__ */ Q(w, { id: "start" + d }), a[26] = w, a[27] = d, a[28] = l) : l = a[28];
1299
1474
  let f;
1300
- a[29] !== O || a[30] !== d ? (f = O && /* @__PURE__ */ X(O, { id: "end" + d }), a[29] = O, a[30] = d, a[31] = f) : f = a[31], a[32] !== l || a[33] !== f ? (z = /* @__PURE__ */ Z("defs", { children: [l, f] }), a[32] = l, a[33] = f, a[34] = z) : z = a[34], M = /* @__PURE__ */ X("path", {
1301
- className: w("react-flow__edge-path", "hide-on-reduced-graphics", r.pathBg, x && T({ display: "none" })),
1475
+ a[29] !== T || a[30] !== d ? (f = T && /* @__PURE__ */ Q(T, { id: "end" + d }), a[29] = T, a[30] = d, a[31] = f) : f = a[31], a[32] !== l || a[33] !== f ? (R = /* @__PURE__ */ $("defs", { children: [l, f] }), a[32] = l, a[33] = f, a[34] = R) : R = a[34], k = /* @__PURE__ */ Q("path", {
1476
+ className: A("react-flow__edge-path", "hide-on-reduced-graphics", r.pathBg, x && j({ display: "none" })),
1302
1477
  d: u,
1303
1478
  style: m,
1304
1479
  strokeLinecap: "round"
1305
- }), F = i, I = w("react-flow__edge-path", r.path, b && "react-flow__edge-interaction"), a[0] = O, a[1] = E, a[2] = d, a[3] = h, a[4] = x, a[5] = c, a[6] = b, a[7] = m, a[8] = u, a[9] = i, a[10] = M, a[11] = N, a[12] = P, a[13] = F, a[14] = I, a[15] = L, a[16] = R, a[17] = z;
1306
- } else M = a[10], N = a[11], P = a[12], F = a[13], I = a[14], L = a[15], R = a[16], z = a[17];
1307
- let B = E ? `url(#start${d})` : void 0, ee = O ? `url(#end${d})` : void 0, V;
1308
- a[35] !== j || a[36] !== l || a[37] !== m || a[38] !== u || a[39] !== B || a[40] !== ee || a[41] !== F || a[42] !== I ? (V = /* @__PURE__ */ X("path", {
1309
- ref: F,
1310
- className: I,
1480
+ }), P = i, F = A("react-flow__edge-path", r.path, b && "react-flow__edge-interaction"), a[0] = T, a[1] = w, a[2] = d, a[3] = h, a[4] = x, a[5] = c, a[6] = b, a[7] = m, a[8] = u, a[9] = i, a[10] = k, a[11] = M, a[12] = N, a[13] = P, a[14] = F, a[15] = I, a[16] = L, a[17] = R;
1481
+ } else k = a[10], M = a[11], N = a[12], P = a[13], F = a[14], I = a[15], L = a[16], R = a[17];
1482
+ let B = w ? `url(#start${d})` : void 0, V = T ? `url(#end${d})` : void 0, H;
1483
+ a[35] !== O || a[36] !== l || a[37] !== m || a[38] !== u || a[39] !== B || a[40] !== V || a[41] !== P || a[42] !== F ? (H = /* @__PURE__ */ Q("path", {
1484
+ ref: P,
1485
+ className: F,
1311
1486
  d: u,
1312
1487
  style: m,
1313
1488
  strokeWidth: l,
1314
1489
  strokeLinecap: "round",
1315
- strokeDasharray: j,
1490
+ strokeDasharray: O,
1316
1491
  markerStart: B,
1317
- markerEnd: ee
1318
- }), a[35] = j, a[36] = l, a[37] = m, a[38] = u, a[39] = B, a[40] = ee, a[41] = F, a[42] = I, a[43] = V) : V = a[43];
1319
- let H;
1320
- a[44] !== M || a[45] !== V || a[46] !== L || a[47] !== R || a[48] !== z ? (H = /* @__PURE__ */ Z("g", {
1321
- className: L,
1322
- onPointerDown: R,
1492
+ markerEnd: V
1493
+ }), a[35] = O, a[36] = l, a[37] = m, a[38] = u, a[39] = B, a[40] = V, a[41] = P, a[42] = F, a[43] = H) : H = a[43];
1494
+ let U;
1495
+ a[44] !== k || a[45] !== H || a[46] !== I || a[47] !== L || a[48] !== R ? (U = /* @__PURE__ */ $("g", {
1496
+ className: I,
1497
+ onPointerDown: L,
1323
1498
  children: [
1324
- z,
1325
- M,
1326
- V
1499
+ R,
1500
+ k,
1501
+ H
1327
1502
  ]
1328
- }), a[44] = M, a[45] = V, a[46] = L, a[47] = R, a[48] = z, a[49] = H) : H = a[49];
1329
- let U;
1330
- return a[50] !== N || a[51] !== P || a[52] !== H ? (U = /* @__PURE__ */ Z(Y, { children: [
1503
+ }), a[44] = k, a[45] = H, a[46] = I, a[47] = L, a[48] = R, a[49] = U) : U = a[49];
1504
+ let W;
1505
+ return a[50] !== M || a[51] !== N || a[52] !== U ? (W = /* @__PURE__ */ $(Z, { children: [
1506
+ M,
1331
1507
  N,
1332
- P,
1333
- H
1334
- ] }), a[50] = N, a[51] = P, a[52] = H, a[53] = U) : U = a[53], U;
1508
+ U
1509
+ ] }), a[50] = M, a[51] = N, a[52] = U, a[53] = W) : W = a[53], W;
1335
1510
  });
1336
- rt.displayName = "EdgePath";
1511
+ ht.displayName = "EdgePath";
1337
1512
  //#endregion
1338
1513
  //#region ../diagram/src/base-primitives/element/ElementActionButtons.tsx
1339
- var it = {
1514
+ var gt = {
1340
1515
  normal: {
1341
1516
  originY: 0,
1342
1517
  opacity: .75,
@@ -1357,7 +1532,7 @@ var it = {
1357
1532
  }
1358
1533
  };
1359
1534
  function ElementActionButtons(r) {
1360
- let i = J(14), { selected: a, data: o, buttons: s } = r, c = a === void 0 ? !1 : a, { hovered: l } = o, u = l === void 0 ? !1 : l, d = g();
1535
+ let i = X(14), { selected: a, data: o, buttons: s } = r, c = a !== void 0 && a, { hovered: l } = o, u = l !== void 0 && l, d = S();
1361
1536
  if (!s.length) return null;
1362
1537
  let f;
1363
1538
  bb0: switch (!0) {
@@ -1370,41 +1545,41 @@ function ElementActionButtons(r) {
1370
1545
  default: f = "normal";
1371
1546
  }
1372
1547
  let p = u || c, m;
1373
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (m = A(), i[0] = m) : m = i[0];
1374
- let h = f, _ = `${u}-${c}`, v;
1375
- i[1] === Symbol.for("react.memo_cache_sentinel") ? (v = w("nodrag nopan"), i[1] = v) : v = i[1];
1376
- let b;
1548
+ i[0] === Symbol.for("react.memo_cache_sentinel") ? (m = P(), i[0] = m) : m = i[0];
1549
+ let h = f, g = `${u}-${c}`, _;
1550
+ i[1] === Symbol.for("react.memo_cache_sentinel") ? (_ = A("nodrag nopan"), i[1] = _) : _ = i[1];
1551
+ let v;
1377
1552
  if (i[2] !== s || i[3] !== d || i[4] !== p) {
1378
1553
  let t9;
1379
- i[6] !== d || i[7] !== p ? (t9 = (r, i) => /* @__PURE__ */ X(y, {
1380
- component: oe,
1381
- className: k({}),
1554
+ i[6] !== d || i[7] !== p ? (t9 = (r, i) => /* @__PURE__ */ Q(E, {
1555
+ component: me,
1556
+ className: H({}),
1382
1557
  initial: !1,
1383
1558
  whileTap: { scale: 1 },
1384
1559
  whileHover: { scale: 1.3 },
1385
1560
  tabIndex: p ? 0 : -1,
1386
- inert: p ? void 0 : !0,
1561
+ inert: !p || void 0,
1387
1562
  "aria-label": r.ariaLabel ?? r.key ?? "Element action",
1388
1563
  onClick: r.onClick,
1389
1564
  onDoubleClick: stopPropagation,
1390
- children: r.icon || /* @__PURE__ */ X(Te, {})
1391
- }, `${d}-${r.key ?? i}`), i[6] = d, i[7] = p, i[8] = t9) : t9 = i[8], b = s.map(t9), i[2] = s, i[3] = d, i[4] = p, i[5] = b;
1392
- } else b = i[5];
1393
- let x;
1394
- return i[9] !== u || i[10] !== _ || i[11] !== b || i[12] !== f ? (x = /* @__PURE__ */ X("div", {
1565
+ children: r.icon || /* @__PURE__ */ Q(Me, {})
1566
+ }, `${d}-${r.key ?? i}`), i[6] = d, i[7] = p, i[8] = t9) : t9 = i[8], v = s.map(t9), i[2] = s, i[3] = d, i[4] = p, i[5] = v;
1567
+ } else v = i[5];
1568
+ let y;
1569
+ return i[9] !== u || i[10] !== g || i[11] !== v || i[12] !== f ? (y = /* @__PURE__ */ Q("div", {
1395
1570
  className: m,
1396
- children: /* @__PURE__ */ X(G, {
1571
+ children: /* @__PURE__ */ Q(he, {
1397
1572
  layoutRoot: !0,
1398
1573
  initial: !1,
1399
- variants: it,
1574
+ variants: gt,
1400
1575
  animate: h,
1401
- layoutDependency: _,
1576
+ layoutDependency: g,
1402
1577
  "data-likec4-hovered": u,
1403
- className: v,
1578
+ className: _,
1404
1579
  onClick: stopPropagation,
1405
- children: b
1580
+ children: v
1406
1581
  })
1407
- }), i[9] = u, i[10] = _, i[11] = b, i[12] = f, i[13] = x) : x = i[13], x;
1582
+ }), i[9] = u, i[10] = g, i[11] = v, i[12] = f, i[13] = y) : y = i[13], y;
1408
1583
  }
1409
1584
  //#endregion
1410
1585
  //#region ../diagram/src/base-primitives/element/ElementData.tsx
@@ -1413,91 +1588,96 @@ var resolveIconColor = (r, i) => {
1413
1588
  if (!a) return;
1414
1589
  let o = r.colors(a).elements;
1415
1590
  return a === i.color ? o.stroke : o.fill;
1416
- }, at = K((r, i) => {
1417
- let a = J(28), o, s, c, l;
1591
+ };
1592
+ function shouldBlendIconWithPalette(r, i) {
1593
+ return !i && r?.startsWith("bootstrap:") === !0;
1594
+ }
1595
+ var _t = q((r, i) => {
1596
+ let a = X(29), o, s, c, l;
1418
1597
  a[0] === r ? (o = a[1], s = a[2], c = a[3], l = a[4]) : ({className: o, style: l, data: s, ...c} = r, a[0] = r, a[1] = o, a[2] = s, a[3] = c, a[4] = l);
1419
1598
  let u = useLikeC4Styles(), d;
1420
1599
  a[5] !== s.style || a[6] !== u ? (d = s.style.iconSize ? u.nodeSizes(s.style).values.iconSize : void 0, a[5] = s.style, a[6] = u, a[7] = d) : d = a[7];
1421
1600
  let f = d, p;
1422
1601
  a[8] !== s || a[9] !== u ? (p = resolveIconColor(u, s), a[8] = s, a[9] = u, a[10] = p) : p = a[10];
1423
- let m = p, h;
1424
- a[11] !== o || a[12] !== s.style.iconPosition || a[13] !== m ? (h = w(o, M({
1602
+ let m = p, h = !!m, g;
1603
+ a[11] !== o || a[12] !== s.icon || a[13] !== s.style.iconPosition || a[14] !== h ? (g = A(o, F({
1425
1604
  iconPosition: s.style.iconPosition,
1426
- withIconColor: !!m
1427
- }), "likec4-element"), a[11] = o, a[12] = s.style.iconPosition, a[13] = m, a[14] = h) : h = a[14];
1428
- let g;
1429
- a[15] === f ? g = a[16] : (g = f && { "--likec4-icon-size": `${f}px` }, a[15] = f, a[16] = g);
1605
+ withIconColor: h,
1606
+ withIconBlend: shouldBlendIconWithPalette(s.icon, h)
1607
+ }), "likec4-element"), a[11] = o, a[12] = s.icon, a[13] = s.style.iconPosition, a[14] = h, a[15] = g) : g = a[15];
1430
1608
  let _;
1431
- a[17] === m ? _ = a[18] : (_ = m && { "--likec4-icon-color": m }, a[17] = m, a[18] = _);
1609
+ a[16] === f ? _ = a[17] : (_ = f && { "--likec4-icon-size": `${f}px` }, a[16] = f, a[17] = _);
1432
1610
  let v;
1433
- a[19] !== l || a[20] !== g || a[21] !== _ ? (v = {
1434
- ...l,
1435
- ...g,
1436
- ..._
1437
- }, a[19] = l, a[20] = g, a[21] = _, a[22] = v) : v = a[22];
1611
+ a[18] === m ? v = a[19] : (v = m && { "--likec4-icon-color": m }, a[18] = m, a[19] = v);
1438
1612
  let y;
1439
- return a[23] !== c || a[24] !== i || a[25] !== h || a[26] !== v ? (y = /* @__PURE__ */ X("div", {
1613
+ a[20] !== l || a[21] !== _ || a[22] !== v ? (y = {
1614
+ ...l,
1615
+ ..._,
1616
+ ...v
1617
+ }, a[20] = l, a[21] = _, a[22] = v, a[23] = y) : y = a[23];
1618
+ let b;
1619
+ return a[24] !== c || a[25] !== i || a[26] !== g || a[27] !== y ? (b = /* @__PURE__ */ Q("div", {
1440
1620
  ...c,
1441
1621
  ref: i,
1442
- className: h,
1443
- style: v
1444
- }), a[23] = c, a[24] = i, a[25] = h, a[26] = v, a[27] = y) : y = a[27], y;
1622
+ className: g,
1623
+ style: y
1624
+ }), a[24] = c, a[25] = i, a[26] = g, a[27] = y, a[28] = b) : b = a[28], b;
1445
1625
  }), Icon = (r) => {
1446
- let i = J(6), a, o;
1626
+ let i = X(6), a, o;
1447
1627
  i[0] === r ? (a = i[1], o = i[2]) : ({data: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
1448
1628
  let s;
1449
- return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ X(IconRenderer, {
1629
+ return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ Q(IconRenderer, {
1450
1630
  element: a,
1451
1631
  ...o
1452
1632
  }), i[3] = a, i[4] = o, i[5] = s) : s = i[5], s;
1453
- }, ot = K((r, i) => {
1454
- let a = J(9), o, s;
1633
+ }, vt = q((r, i) => {
1634
+ let a = X(9), o, s;
1455
1635
  a[0] === r ? (o = a[1], s = a[2]) : ({className: o, ...s} = r, a[0] = r, a[1] = o, a[2] = s);
1456
1636
  let c;
1457
- a[3] === o ? c = a[4] : (c = w(o, "likec4-element-node-content"), a[3] = o, a[4] = c);
1637
+ a[3] === o ? c = a[4] : (c = A(o, "likec4-element-node-content"), a[3] = o, a[4] = c);
1458
1638
  let l;
1459
- return a[5] !== s || a[6] !== i || a[7] !== c ? (l = /* @__PURE__ */ X("div", {
1639
+ return a[5] !== s || a[6] !== i || a[7] !== c ? (l = /* @__PURE__ */ Q("div", {
1460
1640
  ...s,
1461
1641
  className: c,
1462
1642
  ref: i
1463
1643
  }), a[5] = s, a[6] = i, a[7] = c, a[8] = l) : l = a[8], l;
1464
- }), st = K((r, i) => {
1465
- let a = J(11), o, s, c;
1644
+ }), yt = q((r, i) => {
1645
+ let a = X(11), o, s, c;
1466
1646
  a[0] === r ? (o = a[1], s = a[2], c = a[3]) : ({data: c, className: o, ...s} = r, a[0] = r, a[1] = o, a[2] = s, a[3] = c);
1467
1647
  let { title: l } = c, u;
1468
- a[4] === o ? u = a[5] : (u = w(o, "likec4-element-title"), a[4] = o, a[5] = u);
1648
+ a[4] === o ? u = a[5] : (u = A(o, "likec4-element-title"), a[4] = o, a[5] = u);
1469
1649
  let d;
1470
- return a[6] !== s || a[7] !== i || a[8] !== u || a[9] !== l ? (d = /* @__PURE__ */ X("div", {
1650
+ return a[6] !== s || a[7] !== i || a[8] !== u || a[9] !== l ? (d = /* @__PURE__ */ Q("div", {
1471
1651
  ...s,
1472
1652
  className: u,
1473
1653
  "data-likec4-node-title": "",
1474
1654
  ref: i,
1475
1655
  children: l
1476
1656
  }), a[6] = s, a[7] = i, a[8] = u, a[9] = l, a[10] = d) : d = a[10], d;
1477
- }), ct = K((r, i) => {
1478
- let a = J(10), o, s, c, l;
1657
+ }), bt = q((r, i) => {
1658
+ let a = X(10), o, s, c, l;
1479
1659
  a[0] === r ? (o = a[1], s = a[2], c = a[3], l = a[4]) : ({data: c, children: o, className: s, ...l} = r, a[0] = r, a[1] = o, a[2] = s, a[3] = c, a[4] = l);
1480
1660
  let u = c?.technology ?? o, d;
1481
- return a[5] !== s || a[6] !== l || a[7] !== i || a[8] !== u ? (d = e(u) ? /* @__PURE__ */ X("div", {
1661
+ return a[5] !== s || a[6] !== l || a[7] !== i || a[8] !== u ? (d = e(u) ? /* @__PURE__ */ Q("div", {
1482
1662
  ...l,
1483
- className: w(s, "likec4-element-technology"),
1663
+ className: A(s, "likec4-element-technology"),
1484
1664
  "data-likec4-node-technology": "",
1485
1665
  ref: i,
1486
1666
  children: u
1487
1667
  }) : null, a[5] = s, a[6] = l, a[7] = i, a[8] = u, a[9] = d) : d = a[9], d;
1488
- }), lt = K((r, i) => {
1489
- let a = J(16), o, s, c;
1668
+ }), xt = q((r, i) => {
1669
+ let a = X(16), o, s, c;
1490
1670
  a[0] === r ? (o = a[1], s = a[2], c = a[3]) : ({data: c, className: o, ...s} = r, a[0] = r, a[1] = o, a[2] = s, a[3] = c);
1491
1671
  let { description: u } = c;
1492
1672
  if (!u) return null;
1493
1673
  let d;
1494
- a[4] === u ? d = a[5] : (d = be.from(u), a[4] = u, a[5] = d);
1674
+ a[4] === u ? d = a[5] : (d = De.from(u), a[4] = u, a[5] = d);
1495
1675
  let f = d, p;
1496
- a[6] === o ? p = a[7] : (p = w(o, "likec4-element-description"), a[6] = o, a[7] = p);
1676
+ a[6] === o ? p = a[7] : (p = A(o, "likec4-element-description"), a[6] = o, a[7] = p);
1497
1677
  let m = f.isMarkdown ? "8rem" : void 0, h;
1498
1678
  a[8] === m ? h = a[9] : (h = { maxHeight: m }, a[8] = m, a[9] = h);
1499
1679
  let g;
1500
- return a[10] !== f || a[11] !== s || a[12] !== i || a[13] !== p || a[14] !== h ? (g = /* @__PURE__ */ X(l, {
1680
+ return a[10] !== f || a[11] !== s || a[12] !== i || a[13] !== p || a[14] !== h ? (g = /* @__PURE__ */ Q(l, {
1501
1681
  ...s,
1502
1682
  className: p,
1503
1683
  "data-likec4-node-description": "",
@@ -1509,36 +1689,36 @@ var resolveIconColor = (r, i) => {
1509
1689
  }), a[10] = f, a[11] = s, a[12] = i, a[13] = p, a[14] = h, a[15] = g) : g = a[15], g;
1510
1690
  });
1511
1691
  function ElementData(r) {
1512
- let i = J(9), { data: a, "aria-hidden": o } = r, s;
1513
- i[0] === a ? s = i[1] : (s = /* @__PURE__ */ X(Icon, { data: a }), i[0] = a, i[1] = s);
1692
+ let i = X(9), { data: a, "aria-hidden": o } = r, s;
1693
+ i[0] === a ? s = i[1] : (s = /* @__PURE__ */ Q(Icon, { data: a }), i[0] = a, i[1] = s);
1514
1694
  let c;
1515
- i[2] === a ? c = i[3] : (c = /* @__PURE__ */ Z(ot, { children: [
1516
- /* @__PURE__ */ X(st, { data: a }),
1517
- /* @__PURE__ */ X(ct, { data: a }),
1518
- /* @__PURE__ */ X(lt, { data: a })
1695
+ i[2] === a ? c = i[3] : (c = /* @__PURE__ */ $(vt, { children: [
1696
+ /* @__PURE__ */ Q(yt, { data: a }),
1697
+ /* @__PURE__ */ Q(bt, { data: a }),
1698
+ /* @__PURE__ */ Q(xt, { data: a })
1519
1699
  ] }), i[2] = a, i[3] = c);
1520
1700
  let l;
1521
- return i[4] !== o || i[5] !== a || i[6] !== s || i[7] !== c ? (l = /* @__PURE__ */ Z(at, {
1701
+ return i[4] !== o || i[5] !== a || i[6] !== s || i[7] !== c ? (l = /* @__PURE__ */ $(_t, {
1522
1702
  data: a,
1523
1703
  "aria-hidden": o,
1524
1704
  children: [s, c]
1525
1705
  }), i[4] = o, i[5] = a, i[6] = s, i[7] = c, i[8] = l) : l = i[8], l;
1526
1706
  }
1527
- ElementData.Root = at, ElementData.Icon = Icon, ElementData.Content = ot, ElementData.Title = st, ElementData.Technology = ct, ElementData.Description = lt;
1707
+ ElementData.Root = _t, ElementData.Icon = Icon, ElementData.Content = vt, ElementData.Title = yt, ElementData.Technology = bt, ElementData.Description = xt;
1528
1708
  //#endregion
1529
1709
  //#region ../diagram/src/base-primitives/element/ElementNodeContainer.tsx
1530
- var ut = {
1710
+ var St = {
1531
1711
  normal: { scale: 1 },
1532
1712
  hovered: { scale: 1.05 },
1533
1713
  selected: { scale: 1.02 },
1534
1714
  tap: { scale: .98 }
1535
- }, dt = K((r, i) => {
1536
- let a = J(34), o, s, c, l, u;
1715
+ }, Ct = q((r, i) => {
1716
+ let a = X(34), o, s, c, l, u;
1537
1717
  a[0] === r ? (o = a[1], s = a[2], c = a[3], l = a[4], u = a[5]) : ({nodeProps: u, className: s, style: l, children: o, ...c} = r, a[0] = r, a[1] = o, a[2] = s, a[3] = c, a[4] = l, a[5] = u);
1538
- let { selected: d, selectable: f, data: p } = u, m = d === void 0 ? !1 : d, h = f === void 0 ? !1 : f, g, _, v, y, b;
1718
+ let { selected: d, selectable: f, data: p } = u, m = d !== void 0 && d, h = f !== void 0 && f, g, _, v, y, b;
1539
1719
  if (a[6] !== m || a[7] !== p) {
1540
1720
  let { hovered: r, dimmed: i, ...o } = p;
1541
- g = o, v = r === void 0 ? !1 : r, _ = i === void 0 ? !1 : i;
1721
+ g = o, v = r !== void 0 && r, _ = i !== void 0 && i;
1542
1722
  bb0: switch (!0) {
1543
1723
  case v:
1544
1724
  b = "hovered";
@@ -1548,38 +1728,38 @@ var ut = {
1548
1728
  break bb0;
1549
1729
  default: b = "normal";
1550
1730
  }
1551
- y = xe(g.style ?? {}), a[6] = m, a[7] = p, a[8] = g, a[9] = _, a[10] = v, a[11] = y, a[12] = b;
1731
+ y = Oe(g.style ?? {}), a[6] = m, a[7] = p, a[8] = g, a[9] = _, a[10] = v, a[11] = y, a[12] = b;
1552
1732
  } else g = a[8], _ = a[9], v = a[10], y = a[11], b = a[12];
1553
- let { size: x, padding: S, textSize: C } = y, T;
1554
- a[13] === s ? T = a[14] : (T = w(P(), "group", s), a[13] = s, a[14] = T);
1555
- let E;
1556
- a[15] !== h || a[16] !== b ? (E = h && {
1733
+ let { size: x, padding: S, textSize: C } = y, w;
1734
+ a[13] === s ? w = a[14] : (w = A(I(), "group", s), a[13] = s, a[14] = w);
1735
+ let T;
1736
+ a[15] !== h || a[16] !== b ? (T = h && {
1557
1737
  animate: b,
1558
1738
  whileTap: "tap"
1559
- }, a[15] = h, a[16] = b, a[17] = E) : E = a[17];
1560
- let D;
1561
- a[18] === _ ? D = a[19] : (D = _ !== !1 && { "data-likec4-dimmed": _ }, a[18] = _, a[19] = D);
1562
- let O = l, k;
1563
- return a[20] !== o || a[21] !== g.color || a[22] !== g.shape || a[23] !== v || a[24] !== S || a[25] !== i || a[26] !== c || a[27] !== x || a[28] !== T || a[29] !== E || a[30] !== D || a[31] !== O || a[32] !== C ? (k = /* @__PURE__ */ X(G, {
1739
+ }, a[15] = h, a[16] = b, a[17] = T) : T = a[17];
1740
+ let E;
1741
+ a[18] === _ ? E = a[19] : (E = _ !== !1 && { "data-likec4-dimmed": _ }, a[18] = _, a[19] = E);
1742
+ let D = l, O;
1743
+ return a[20] !== o || a[21] !== g.color || a[22] !== g.shape || a[23] !== v || a[24] !== S || a[25] !== i || a[26] !== c || a[27] !== x || a[28] !== w || a[29] !== T || a[30] !== E || a[31] !== D || a[32] !== C ? (O = /* @__PURE__ */ Q(he, {
1564
1744
  ref: i,
1565
- className: T,
1566
- variants: ut,
1745
+ className: w,
1746
+ variants: St,
1567
1747
  initial: !1,
1568
- ...E,
1748
+ ...T,
1569
1749
  "data-likec4-hovered": v,
1570
1750
  "data-likec4-color": g.color,
1571
1751
  "data-likec4-shape": g.shape,
1572
1752
  "data-likec4-shape-size": x,
1573
1753
  "data-likec4-spacing": S,
1574
1754
  "data-likec4-text-size": C,
1575
- ...D,
1576
- style: O,
1755
+ ...E,
1756
+ style: D,
1577
1757
  tabIndex: -1,
1578
1758
  ...c,
1579
1759
  children: o
1580
- }), a[20] = o, a[21] = g.color, a[22] = g.shape, a[23] = v, a[24] = S, a[25] = i, a[26] = c, a[27] = x, a[28] = T, a[29] = E, a[30] = D, a[31] = O, a[32] = C, a[33] = k) : k = a[33], k;
1760
+ }), a[20] = o, a[21] = g.color, a[22] = g.shape, a[23] = v, a[24] = S, a[25] = i, a[26] = c, a[27] = x, a[28] = w, a[29] = T, a[30] = E, a[31] = D, a[32] = C, a[33] = O) : O = a[33], O;
1581
1761
  });
1582
- dt.displayName = "ElementNodeContainer";
1762
+ Ct.displayName = "ElementNodeContainer";
1583
1763
  //#endregion
1584
1764
  //#region ../diagram/src/base-primitives/element/ElementShape.tsx
1585
1765
  function cylinderSVGPath(r, i, a = .07) {
@@ -1637,12 +1817,12 @@ function queueSVGPath(r, i, a = .185) {
1637
1817
  rx: c
1638
1818
  };
1639
1819
  }
1640
- var ft = {
1820
+ var wt = {
1641
1821
  width: 115,
1642
1822
  height: 120,
1643
1823
  path: "M57.9197 0C10.9124 0 33.5766 54.75 33.5766 54.75C38.6131 62.25 45.3285 60.75 45.3285 66C45.3285 70.5 39.4526 72 33.5766 72.75C24.3431 72.75 15.9489 71.25 7.55474 84.75C2.51825 93 0 120 0 120H115C115 120 112.482 93 108.285 84.75C99.8905 70.5 91.4963 72.75 82.2628 72C76.3869 71.25 70.5109 69.75 70.5109 65.25C70.5109 60.75 77.2263 62.25 82.2628 54C82.2628 54.75 104.927 0 57.9197 0V0Z"
1644
1824
  }, ComponentTopLeftRect = (r) => {
1645
- let i = J(5), { index: a, size: o } = r, s, c, l, u, d;
1825
+ let i = X(5), { index: a, size: o } = r, s, c, l, u, d;
1646
1826
  bb0: switch (o) {
1647
1827
  case "xs":
1648
1828
  case "sm":
@@ -1655,10 +1835,10 @@ var ft = {
1655
1835
  case "xl":
1656
1836
  s = 70, c = 32, l = -24, u = 32, d = 18;
1657
1837
  break bb0;
1658
- default: ge(o);
1838
+ default: Se(o);
1659
1839
  }
1660
1840
  let f = u + (c + d) * a, p;
1661
- return i[0] !== c || i[1] !== l || i[2] !== f || i[3] !== s ? (p = /* @__PURE__ */ X("rect", {
1841
+ return i[0] !== c || i[1] !== l || i[2] !== f || i[3] !== s ? (p = /* @__PURE__ */ Q("rect", {
1662
1842
  x: l,
1663
1843
  y: f,
1664
1844
  width: s,
@@ -1669,26 +1849,26 @@ var ft = {
1669
1849
  }), i[0] = c, i[1] = l, i[2] = f, i[3] = s, i[4] = p) : p = i[4], p;
1670
1850
  };
1671
1851
  function ShapeSvg(r) {
1672
- let i = J(94), { shape: a, w: o, h: s, size: c } = r, l = c === void 0 ? "md" : c;
1852
+ let i = X(94), { shape: a, w: o, h: s, size: c } = r, l = c === void 0 ? "md" : c;
1673
1853
  switch (a) {
1674
1854
  case "component": {
1675
1855
  let r;
1676
- i[0] !== s || i[1] !== o ? (r = /* @__PURE__ */ X("rect", {
1856
+ i[0] !== s || i[1] !== o ? (r = /* @__PURE__ */ Q("rect", {
1677
1857
  width: o,
1678
1858
  height: s,
1679
1859
  rx: 6,
1680
1860
  strokeWidth: 0
1681
1861
  }), i[0] = s, i[1] = o, i[2] = r) : r = i[2];
1682
1862
  let a, c;
1683
- i[3] === l ? (a = i[4], c = i[5]) : (a = /* @__PURE__ */ X(ComponentTopLeftRect, {
1863
+ i[3] === l ? (a = i[4], c = i[5]) : (a = /* @__PURE__ */ Q(ComponentTopLeftRect, {
1684
1864
  index: 0,
1685
1865
  size: l
1686
- }), c = /* @__PURE__ */ X(ComponentTopLeftRect, {
1866
+ }), c = /* @__PURE__ */ Q(ComponentTopLeftRect, {
1687
1867
  index: 1,
1688
1868
  size: l
1689
1869
  }), i[3] = l, i[4] = a, i[5] = c);
1690
1870
  let u;
1691
- return i[6] !== r || i[7] !== a || i[8] !== c ? (u = /* @__PURE__ */ Z(Y, { children: [
1871
+ return i[6] !== r || i[7] !== a || i[8] !== c ? (u = /* @__PURE__ */ $(Z, { children: [
1692
1872
  r,
1693
1873
  a,
1694
1874
  c
@@ -1696,7 +1876,7 @@ function ShapeSvg(r) {
1696
1876
  }
1697
1877
  case "mobile": {
1698
1878
  let r;
1699
- i[10] !== s || i[11] !== o ? (r = /* @__PURE__ */ X("rect", {
1879
+ i[10] !== s || i[11] !== o ? (r = /* @__PURE__ */ Q("rect", {
1700
1880
  width: o,
1701
1881
  height: s,
1702
1882
  rx: 6,
@@ -1704,13 +1884,13 @@ function ShapeSvg(r) {
1704
1884
  strokeWidth: 0
1705
1885
  }), i[10] = s, i[11] = o, i[12] = r) : r = i[12];
1706
1886
  let a = s / 2, c;
1707
- i[13] === a ? c = i[14] : (c = /* @__PURE__ */ X("circle", {
1887
+ i[13] === a ? c = i[14] : (c = /* @__PURE__ */ Q("circle", {
1708
1888
  cx: 17,
1709
1889
  cy: a,
1710
1890
  r: 12
1711
1891
  }), i[13] = a, i[14] = c);
1712
1892
  let l = o - 44, u = s - 24, d;
1713
- i[15] !== l || i[16] !== u ? (d = /* @__PURE__ */ X("rect", {
1893
+ i[15] !== l || i[16] !== u ? (d = /* @__PURE__ */ Q("rect", {
1714
1894
  x: 33,
1715
1895
  y: 12,
1716
1896
  width: l,
@@ -1718,19 +1898,19 @@ function ShapeSvg(r) {
1718
1898
  rx: 5
1719
1899
  }), i[15] = l, i[16] = u, i[17] = d) : d = i[17];
1720
1900
  let f;
1721
- i[18] !== c || i[19] !== d ? (f = /* @__PURE__ */ Z("g", {
1901
+ i[18] !== c || i[19] !== d ? (f = /* @__PURE__ */ $("g", {
1722
1902
  "data-likec4-fill": "fill",
1723
1903
  strokeWidth: 0,
1724
1904
  children: [c, d]
1725
1905
  }), i[18] = c, i[19] = d, i[20] = f) : f = i[20];
1726
1906
  let p;
1727
- return i[21] !== r || i[22] !== f ? (p = /* @__PURE__ */ Z(Y, { children: [r, f] }), i[21] = r, i[22] = f, i[23] = p) : p = i[23], p;
1907
+ return i[21] !== r || i[22] !== f ? (p = /* @__PURE__ */ $(Z, { children: [r, f] }), i[21] = r, i[22] = f, i[23] = p) : p = i[23], p;
1728
1908
  }
1729
1909
  case "document": {
1730
1910
  let r;
1731
1911
  i[24] !== s || i[25] !== o ? (r = docSVGPath(o, s), i[24] = s, i[25] = o, i[26] = r) : r = i[26];
1732
1912
  let { path: a } = r, c;
1733
- return i[27] === a ? c = i[28] : (c = /* @__PURE__ */ X("path", {
1913
+ return i[27] === a ? c = i[28] : (c = /* @__PURE__ */ Q("path", {
1734
1914
  d: a,
1735
1915
  "data-likec4-fill": "fill",
1736
1916
  strokeWidth: 2
@@ -1738,7 +1918,7 @@ function ShapeSvg(r) {
1738
1918
  }
1739
1919
  case "browser": {
1740
1920
  let r;
1741
- i[29] !== s || i[30] !== o ? (r = /* @__PURE__ */ X("rect", {
1921
+ i[29] !== s || i[30] !== o ? (r = /* @__PURE__ */ Q("rect", {
1742
1922
  width: o,
1743
1923
  height: s,
1744
1924
  rx: 6,
@@ -1746,21 +1926,21 @@ function ShapeSvg(r) {
1746
1926
  strokeWidth: 0
1747
1927
  }), i[29] = s, i[30] = o, i[31] = r) : r = i[31];
1748
1928
  let a, c, l;
1749
- i[32] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X("circle", {
1929
+ i[32] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ Q("circle", {
1750
1930
  cx: 16,
1751
1931
  cy: 17,
1752
1932
  r: 7
1753
- }), c = /* @__PURE__ */ X("circle", {
1933
+ }), c = /* @__PURE__ */ Q("circle", {
1754
1934
  cx: 36,
1755
1935
  cy: 17,
1756
1936
  r: 7
1757
- }), l = /* @__PURE__ */ X("circle", {
1937
+ }), l = /* @__PURE__ */ Q("circle", {
1758
1938
  cx: 56,
1759
1939
  cy: 17,
1760
1940
  r: 7
1761
1941
  }), i[32] = a, i[33] = c, i[34] = l) : (a = i[32], c = i[33], l = i[34]);
1762
1942
  let u = o - 80, d;
1763
- i[35] === u ? d = i[36] : (d = /* @__PURE__ */ X("rect", {
1943
+ i[35] === u ? d = i[36] : (d = /* @__PURE__ */ Q("rect", {
1764
1944
  x: 70,
1765
1945
  y: 8,
1766
1946
  width: u,
@@ -1768,7 +1948,7 @@ function ShapeSvg(r) {
1768
1948
  rx: 4
1769
1949
  }), i[35] = u, i[36] = d);
1770
1950
  let f = o - 20, p = s - 42, m;
1771
- i[37] !== f || i[38] !== p ? (m = /* @__PURE__ */ X("rect", {
1951
+ i[37] !== f || i[38] !== p ? (m = /* @__PURE__ */ Q("rect", {
1772
1952
  x: 10,
1773
1953
  y: 32,
1774
1954
  width: f,
@@ -1776,7 +1956,7 @@ function ShapeSvg(r) {
1776
1956
  rx: 4
1777
1957
  }), i[37] = f, i[38] = p, i[39] = m) : m = i[39];
1778
1958
  let h;
1779
- i[40] !== m || i[41] !== d ? (h = /* @__PURE__ */ Z("g", {
1959
+ i[40] !== m || i[41] !== d ? (h = /* @__PURE__ */ $("g", {
1780
1960
  "data-likec4-fill": "fill",
1781
1961
  strokeWidth: 0,
1782
1962
  children: [
@@ -1788,44 +1968,44 @@ function ShapeSvg(r) {
1788
1968
  ]
1789
1969
  }), i[40] = m, i[41] = d, i[42] = h) : h = i[42];
1790
1970
  let g;
1791
- return i[43] !== h || i[44] !== r ? (g = /* @__PURE__ */ Z(Y, { children: [r, h] }), i[43] = h, i[44] = r, i[45] = g) : g = i[45], g;
1971
+ return i[43] !== h || i[44] !== r ? (g = /* @__PURE__ */ $(Z, { children: [r, h] }), i[43] = h, i[44] = r, i[45] = g) : g = i[45], g;
1792
1972
  }
1793
1973
  case "person": {
1794
1974
  let r;
1795
- i[46] !== s || i[47] !== o ? (r = /* @__PURE__ */ X("rect", {
1975
+ i[46] !== s || i[47] !== o ? (r = /* @__PURE__ */ Q("rect", {
1796
1976
  width: o,
1797
1977
  height: s,
1798
1978
  rx: 6,
1799
1979
  strokeWidth: 0
1800
1980
  }), i[46] = s, i[47] = o, i[48] = r) : r = i[48];
1801
- let a = o - ft.width - 6, c = s - ft.height, l;
1802
- i[49] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ X("path", {
1981
+ let a = o - wt.width - 6, c = s - wt.height, l;
1982
+ i[49] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Q("path", {
1803
1983
  strokeWidth: 0,
1804
- d: ft.path
1984
+ d: wt.path
1805
1985
  }), i[49] = l) : l = i[49];
1806
1986
  let u;
1807
- i[50] !== a || i[51] !== c ? (u = /* @__PURE__ */ X("svg", {
1987
+ i[50] !== a || i[51] !== c ? (u = /* @__PURE__ */ Q("svg", {
1808
1988
  x: a,
1809
1989
  y: c,
1810
- width: ft.width,
1811
- height: ft.height,
1812
- viewBox: `0 0 ${ft.width} ${ft.height}`,
1990
+ width: wt.width,
1991
+ height: wt.height,
1992
+ viewBox: `0 0 ${wt.width} ${wt.height}`,
1813
1993
  "data-likec4-fill": "mix-stroke",
1814
1994
  children: l
1815
1995
  }), i[50] = a, i[51] = c, i[52] = u) : u = i[52];
1816
1996
  let d;
1817
- return i[53] !== r || i[54] !== u ? (d = /* @__PURE__ */ Z(Y, { children: [r, u] }), i[53] = r, i[54] = u, i[55] = d) : d = i[55], d;
1997
+ return i[53] !== r || i[54] !== u ? (d = /* @__PURE__ */ $(Z, { children: [r, u] }), i[53] = r, i[54] = u, i[55] = d) : d = i[55], d;
1818
1998
  }
1819
1999
  case "queue": {
1820
2000
  let r;
1821
2001
  i[56] !== s || i[57] !== o ? (r = queueSVGPath(o, s), i[56] = s, i[57] = o, i[58] = r) : r = i[58];
1822
2002
  let { path: a, rx: c, ry: l } = r, u;
1823
- i[59] === a ? u = i[60] : (u = /* @__PURE__ */ X("path", {
2003
+ i[59] === a ? u = i[60] : (u = /* @__PURE__ */ Q("path", {
1824
2004
  d: a,
1825
2005
  strokeWidth: 2
1826
2006
  }), i[59] = a, i[60] = u);
1827
2007
  let d = l - .75, f;
1828
- i[61] !== c || i[62] !== l || i[63] !== d ? (f = /* @__PURE__ */ X("ellipse", {
2008
+ i[61] !== c || i[62] !== l || i[63] !== d ? (f = /* @__PURE__ */ Q("ellipse", {
1829
2009
  cx: c,
1830
2010
  cy: l,
1831
2011
  ry: d,
@@ -1834,18 +2014,18 @@ function ShapeSvg(r) {
1834
2014
  strokeWidth: 2
1835
2015
  }), i[61] = c, i[62] = l, i[63] = d, i[64] = f) : f = i[64];
1836
2016
  let p;
1837
- return i[65] !== u || i[66] !== f ? (p = /* @__PURE__ */ Z(Y, { children: [u, f] }), i[65] = u, i[66] = f, i[67] = p) : p = i[67], p;
2017
+ return i[65] !== u || i[66] !== f ? (p = /* @__PURE__ */ $(Z, { children: [u, f] }), i[65] = u, i[66] = f, i[67] = p) : p = i[67], p;
1838
2018
  }
1839
2019
  case "bucket": {
1840
2020
  let r;
1841
2021
  i[68] !== s || i[69] !== o ? (r = bucketSVGPath(o, s), i[68] = s, i[69] = o, i[70] = r) : r = i[70];
1842
2022
  let { path: a, topRx: c, topRy: l } = r, u;
1843
- i[71] === a ? u = i[72] : (u = /* @__PURE__ */ X("path", {
2023
+ i[71] === a ? u = i[72] : (u = /* @__PURE__ */ Q("path", {
1844
2024
  d: a,
1845
2025
  strokeWidth: 2
1846
2026
  }), i[71] = a, i[72] = u);
1847
2027
  let d = o / 2, f;
1848
- i[73] !== d || i[74] !== c || i[75] !== l ? (f = /* @__PURE__ */ X("ellipse", {
2028
+ i[73] !== d || i[74] !== c || i[75] !== l ? (f = /* @__PURE__ */ Q("ellipse", {
1849
2029
  cx: d,
1850
2030
  cy: l,
1851
2031
  rx: c,
@@ -1854,19 +2034,19 @@ function ShapeSvg(r) {
1854
2034
  strokeWidth: 2
1855
2035
  }), i[73] = d, i[74] = c, i[75] = l, i[76] = f) : f = i[76];
1856
2036
  let p;
1857
- return i[77] !== u || i[78] !== f ? (p = /* @__PURE__ */ Z(Y, { children: [u, f] }), i[77] = u, i[78] = f, i[79] = p) : p = i[79], p;
2037
+ return i[77] !== u || i[78] !== f ? (p = /* @__PURE__ */ $(Z, { children: [u, f] }), i[77] = u, i[78] = f, i[79] = p) : p = i[79], p;
1858
2038
  }
1859
2039
  case "storage":
1860
2040
  case "cylinder": {
1861
2041
  let r;
1862
2042
  i[80] !== s || i[81] !== o ? (r = cylinderSVGPath(o, s), i[80] = s, i[81] = o, i[82] = r) : r = i[82];
1863
2043
  let { path: a, rx: c, ry: l } = r, u;
1864
- i[83] === a ? u = i[84] : (u = /* @__PURE__ */ X("path", {
2044
+ i[83] === a ? u = i[84] : (u = /* @__PURE__ */ Q("path", {
1865
2045
  d: a,
1866
2046
  strokeWidth: 2
1867
2047
  }), i[83] = a, i[84] = u);
1868
2048
  let d = c - .75, f;
1869
- i[85] !== c || i[86] !== l || i[87] !== d ? (f = /* @__PURE__ */ X("ellipse", {
2049
+ i[85] !== c || i[86] !== l || i[87] !== d ? (f = /* @__PURE__ */ Q("ellipse", {
1870
2050
  cx: c,
1871
2051
  cy: l,
1872
2052
  ry: l,
@@ -1875,24 +2055,24 @@ function ShapeSvg(r) {
1875
2055
  strokeWidth: 2
1876
2056
  }), i[85] = c, i[86] = l, i[87] = d, i[88] = f) : f = i[88];
1877
2057
  let p;
1878
- return i[89] !== u || i[90] !== f ? (p = /* @__PURE__ */ Z(Y, { children: [u, f] }), i[89] = u, i[90] = f, i[91] = p) : p = i[91], p;
2058
+ return i[89] !== u || i[90] !== f ? (p = /* @__PURE__ */ $(Z, { children: [u, f] }), i[89] = u, i[90] = f, i[91] = p) : p = i[91], p;
1879
2059
  }
1880
2060
  default: {
1881
2061
  let r;
1882
- return i[92] === a ? r = i[93] : (r = ge(a), i[92] = a, i[93] = r), r;
2062
+ return i[92] === a ? r = i[93] : (r = Se(a), i[92] = a, i[93] = r), r;
1883
2063
  }
1884
2064
  }
1885
2065
  }
1886
2066
  function ShapeSvgOutline(r) {
1887
- let i = J(25), { shape: a, w: o, h: s } = r, c;
2067
+ let i = X(25), { shape: a, w: o, h: s } = r, c;
1888
2068
  bb0: switch (a) {
1889
2069
  case "bucket": {
1890
2070
  let r = o + 6, a = s + 6, l;
1891
2071
  i[0] !== r || i[1] !== a ? (l = bucketSVGPath(r, a), i[0] = r, i[1] = a, i[2] = l) : l = i[2];
1892
2072
  let u;
1893
- i[3] === l.path ? u = i[4] : (u = /* @__PURE__ */ X("g", {
2073
+ i[3] === l.path ? u = i[4] : (u = /* @__PURE__ */ Q("g", {
1894
2074
  transform: "translate(-3 -3)",
1895
- children: /* @__PURE__ */ X("path", { d: l.path })
2075
+ children: /* @__PURE__ */ Q("path", { d: l.path })
1896
2076
  }), i[3] = l.path, i[4] = u), c = u;
1897
2077
  break bb0;
1898
2078
  }
@@ -1900,9 +2080,9 @@ function ShapeSvgOutline(r) {
1900
2080
  let r = o + 6, a = s + 6, l;
1901
2081
  i[5] !== r || i[6] !== a ? (l = queueSVGPath(r, a), i[5] = r, i[6] = a, i[7] = l) : l = i[7];
1902
2082
  let u;
1903
- i[8] === l.path ? u = i[9] : (u = /* @__PURE__ */ X("g", {
2083
+ i[8] === l.path ? u = i[9] : (u = /* @__PURE__ */ Q("g", {
1904
2084
  transform: "translate(-3 -3)",
1905
- children: /* @__PURE__ */ X("path", { d: l.path })
2085
+ children: /* @__PURE__ */ Q("path", { d: l.path })
1906
2086
  }), i[8] = l.path, i[9] = u), c = u;
1907
2087
  break bb0;
1908
2088
  }
@@ -1910,9 +2090,9 @@ function ShapeSvgOutline(r) {
1910
2090
  let r = o + 6, a = s + 6, l;
1911
2091
  i[10] !== r || i[11] !== a ? (l = docSVGPath(r, a), i[10] = r, i[11] = a, i[12] = l) : l = i[12];
1912
2092
  let u;
1913
- i[13] === l.path ? u = i[14] : (u = /* @__PURE__ */ X("g", {
2093
+ i[13] === l.path ? u = i[14] : (u = /* @__PURE__ */ Q("g", {
1914
2094
  transform: "translate(-3 -3)",
1915
- children: /* @__PURE__ */ X("path", { d: l.path })
2095
+ children: /* @__PURE__ */ Q("path", { d: l.path })
1916
2096
  }), i[13] = l.path, i[14] = u), c = u;
1917
2097
  break bb0;
1918
2098
  }
@@ -1921,15 +2101,15 @@ function ShapeSvgOutline(r) {
1921
2101
  let r = o + 6, a = s + 6, l;
1922
2102
  i[15] !== r || i[16] !== a ? (l = cylinderSVGPath(r, a), i[15] = r, i[16] = a, i[17] = l) : l = i[17];
1923
2103
  let u;
1924
- i[18] === l.path ? u = i[19] : (u = /* @__PURE__ */ X("g", {
2104
+ i[18] === l.path ? u = i[19] : (u = /* @__PURE__ */ Q("g", {
1925
2105
  transform: "translate(-3 -3)",
1926
- children: /* @__PURE__ */ X("path", { d: l.path })
2106
+ children: /* @__PURE__ */ Q("path", { d: l.path })
1927
2107
  }), i[18] = l.path, i[19] = u), c = u;
1928
2108
  break bb0;
1929
2109
  }
1930
2110
  default: {
1931
2111
  let r = o + 6, a = s + 6, l;
1932
- i[20] !== r || i[21] !== a ? (l = /* @__PURE__ */ X("rect", {
2112
+ i[20] !== r || i[21] !== a ? (l = /* @__PURE__ */ Q("rect", {
1933
2113
  x: -3,
1934
2114
  y: -3,
1935
2115
  width: r,
@@ -1939,28 +2119,28 @@ function ShapeSvgOutline(r) {
1939
2119
  }
1940
2120
  }
1941
2121
  let l;
1942
- return i[23] === c ? l = i[24] : (l = /* @__PURE__ */ X("g", {
2122
+ return i[23] === c ? l = i[24] : (l = /* @__PURE__ */ Q("g", {
1943
2123
  className: "likec4-shape-outline",
1944
2124
  children: c
1945
2125
  }), i[23] = c, i[24] = l), l;
1946
2126
  }
1947
2127
  function ElementShape(r) {
1948
- let i = J(38), { data: a, width: o, height: s, showSelectionOutline: c } = r, l = c === void 0 ? !0 : c, u = o && o > 10 ? o : a.width, d = s && s > 10 ? s : a.height, f = a.style?.multiple ?? !1, p = a.style?.border ?? "none", m = p !== "none";
2128
+ let i = X(38), { data: a, width: o, height: s, showSelectionOutline: c } = r, l = c === void 0 || c, u = o && o > 10 ? o : a.width, d = s && s > 10 ? s : a.height, f = a.style?.multiple ?? !1, p = a.style?.border ?? "none", m = p !== "none";
1949
2129
  if (a.shape === "rectangle") {
1950
2130
  let r;
1951
2131
  i[0] === p ? r = i[1] : (r = { borderStyle: p }, i[0] = p, i[1] = r);
1952
2132
  let a;
1953
- i[2] !== l || i[3] !== m ? (a = E({
2133
+ i[2] !== l || i[3] !== m ? (a = V({
1954
2134
  shapetype: "html",
1955
2135
  withBorder: m,
1956
2136
  withOutline: l
1957
2137
  }), i[2] = l, i[3] = m, i[4] = a) : a = i[4];
1958
2138
  let o;
1959
- i[5] === f ? o = i[6] : (o = f && /* @__PURE__ */ X("div", { className: "likec4-shape-multiple" }), i[5] = f, i[6] = o);
2139
+ i[5] === f ? o = i[6] : (o = f && /* @__PURE__ */ Q("div", { className: "likec4-shape-multiple" }), i[5] = f, i[6] = o);
1960
2140
  let s;
1961
- i[7] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ X("div", { className: "likec4-shape-outline" }), i[7] = s) : s = i[7];
2141
+ i[7] === Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ Q("div", { className: "likec4-shape-outline" }), i[7] = s) : s = i[7];
1962
2142
  let c;
1963
- return i[8] !== r || i[9] !== a || i[10] !== o ? (c = /* @__PURE__ */ Z("div", {
2143
+ return i[8] !== r || i[9] !== a || i[10] !== o ? (c = /* @__PURE__ */ $("div", {
1964
2144
  "aria-hidden": !0,
1965
2145
  style: r,
1966
2146
  className: a,
@@ -1968,17 +2148,17 @@ function ElementShape(r) {
1968
2148
  }), i[8] = r, i[9] = a, i[10] = o, i[11] = c) : c = i[11], c;
1969
2149
  }
1970
2150
  let h;
1971
- i[12] === l ? h = i[13] : (h = E({
2151
+ i[12] === l ? h = i[13] : (h = V({
1972
2152
  shapetype: "svg",
1973
2153
  withOutline: l
1974
2154
  }), i[12] = l, i[13] = h);
1975
2155
  let g = h, _;
1976
- i[14] !== g || i[15] !== a.shape || i[16] !== a.style?.size || i[17] !== d || i[18] !== f || i[19] !== u ? (_ = f && /* @__PURE__ */ X("svg", {
2156
+ i[14] !== g || i[15] !== a.shape || i[16] !== a.style?.size || i[17] !== d || i[18] !== f || i[19] !== u ? (_ = f && /* @__PURE__ */ Q("svg", {
1977
2157
  "aria-hidden": !0,
1978
2158
  className: g,
1979
2159
  "data-likec4-shape-multiple": "true",
1980
2160
  viewBox: `0 0 ${u} ${d}`,
1981
- children: /* @__PURE__ */ X(ShapeSvg, {
2161
+ children: /* @__PURE__ */ Q(ShapeSvg, {
1982
2162
  shape: a.shape,
1983
2163
  size: a.style?.size,
1984
2164
  w: u,
@@ -1986,128 +2166,92 @@ function ElementShape(r) {
1986
2166
  })
1987
2167
  }), i[14] = g, i[15] = a.shape, i[16] = a.style?.size, i[17] = d, i[18] = f, i[19] = u, i[20] = _) : _ = i[20];
1988
2168
  let v = `0 0 ${u} ${d}`, y;
1989
- i[21] !== a.shape || i[22] !== d || i[23] !== u ? (y = /* @__PURE__ */ X(ShapeSvgOutline, {
2169
+ i[21] !== a.shape || i[22] !== d || i[23] !== u ? (y = /* @__PURE__ */ Q(ShapeSvgOutline, {
1990
2170
  shape: a.shape,
1991
2171
  w: u,
1992
2172
  h: d
1993
2173
  }), i[21] = a.shape, i[22] = d, i[23] = u, i[24] = y) : y = i[24];
1994
2174
  let b = a.style?.size, x;
1995
- i[25] !== a.shape || i[26] !== d || i[27] !== b || i[28] !== u ? (x = /* @__PURE__ */ X(ShapeSvg, {
2175
+ i[25] !== a.shape || i[26] !== d || i[27] !== b || i[28] !== u ? (x = /* @__PURE__ */ Q(ShapeSvg, {
1996
2176
  shape: a.shape,
1997
2177
  size: b,
1998
2178
  w: u,
1999
2179
  h: d
2000
2180
  }), i[25] = a.shape, i[26] = d, i[27] = b, i[28] = u, i[29] = x) : x = i[29];
2001
2181
  let S;
2002
- i[30] !== g || i[31] !== v || i[32] !== y || i[33] !== x ? (S = /* @__PURE__ */ Z("svg", {
2182
+ i[30] !== g || i[31] !== v || i[32] !== y || i[33] !== x ? (S = /* @__PURE__ */ $("svg", {
2003
2183
  "aria-hidden": !0,
2004
2184
  className: g,
2005
2185
  viewBox: v,
2006
2186
  children: [y, x]
2007
2187
  }), i[30] = g, i[31] = v, i[32] = y, i[33] = x, i[34] = S) : S = i[34];
2008
2188
  let C;
2009
- return i[35] !== _ || i[36] !== S ? (C = /* @__PURE__ */ Z(Y, { children: [_, S] }), i[35] = _, i[36] = S, i[37] = C) : C = i[37], C;
2189
+ return i[35] !== _ || i[36] !== S ? (C = /* @__PURE__ */ $(Z, { children: [_, S] }), i[35] = _, i[36] = S, i[37] = C) : C = i[37], C;
2010
2190
  }
2011
2191
  //#endregion
2012
2192
  //#region ../diagram/src/base-primitives/memoEdge.ts
2013
- var isSame = (r, i) => Math.abs(r - i) < 2.5, edgePropsEqual = (r, i) => r.id === i.id && W(r.selected ?? !1, i.selected ?? !1) && W(r.animated ?? !1, i.animated ?? !1) && W(r.source, i.source) && W(r.target, i.target) && isSame(r.sourceX, i.sourceX) && isSame(r.sourceY, i.sourceY) && isSame(r.targetX, i.targetX) && isSame(r.targetY, i.targetY) && W(r.sourceHandleId ?? null, i.sourceHandleId ?? null) && W(r.targetHandleId ?? null, i.targetHandleId ?? null) && W(r.sourcePosition, i.sourcePosition) && W(r.targetPosition, i.targetPosition) && W(r.data, i.data);
2193
+ var isSame = (r, i) => Math.abs(r - i) < 2.5, edgePropsEqual = (r, i) => r.id === i.id && G(r.selected ?? !1, i.selected ?? !1) && G(r.animated ?? !1, i.animated ?? !1) && G(r.source, i.source) && G(r.target, i.target) && isSame(r.sourceX, i.sourceX) && isSame(r.sourceY, i.sourceY) && isSame(r.targetX, i.targetX) && isSame(r.targetY, i.targetY) && G(r.sourceHandleId ?? null, i.sourceHandleId ?? null) && G(r.targetHandleId ?? null, i.targetHandleId ?? null) && G(r.sourcePosition, i.sourcePosition) && G(r.targetPosition, i.targetPosition) && G(r.data, i.data);
2014
2194
  function memoEdge(r) {
2015
- let i = le(r, edgePropsEqual);
2195
+ let i = J(r, edgePropsEqual);
2016
2196
  return i.displayName = `MemoEdge(${r.displayName || r.name})`, i;
2017
2197
  }
2018
2198
  //#endregion
2019
2199
  //#region ../diagram/src/base-primitives/NodeHandles.tsx
2020
2200
  function DefaultHandles(r) {
2021
- let i = J(7), { direction: a } = r, o = a === void 0 ? "TB" : a, s, c;
2201
+ let i = X(7), { direction: a } = r, o = a === void 0 ? "TB" : a, s, c;
2022
2202
  bb0: switch (o) {
2023
2203
  case "TB":
2024
- s = F.Bottom, c = F.Top;
2204
+ s = U.Bottom, c = U.Top;
2025
2205
  break bb0;
2026
2206
  case "BT":
2027
- s = F.Top, c = F.Bottom;
2207
+ s = U.Top, c = U.Bottom;
2028
2208
  break bb0;
2029
2209
  case "LR":
2030
- s = F.Right, c = F.Left;
2210
+ s = U.Right, c = U.Left;
2031
2211
  break bb0;
2032
2212
  case "RL":
2033
- s = F.Left, c = F.Right;
2213
+ s = U.Left, c = U.Right;
2034
2214
  break bb0;
2035
- default: ge(o);
2215
+ default: Se(o);
2036
2216
  }
2037
2217
  let l;
2038
- i[0] === s ? l = i[1] : (l = /* @__PURE__ */ X(I, {
2218
+ i[0] === s ? l = i[1] : (l = /* @__PURE__ */ Q(W, {
2039
2219
  type: "source",
2040
2220
  position: s,
2041
2221
  className: "likec4-node-handle-center"
2042
2222
  }), i[0] = s, i[1] = l);
2043
2223
  let u;
2044
- i[2] === c ? u = i[3] : (u = /* @__PURE__ */ X(I, {
2224
+ i[2] === c ? u = i[3] : (u = /* @__PURE__ */ Q(W, {
2045
2225
  type: "target",
2046
2226
  position: c,
2047
2227
  className: "likec4-node-handle-center"
2048
2228
  }), i[2] = c, i[3] = u);
2049
2229
  let d;
2050
- return i[4] !== l || i[5] !== u ? (d = /* @__PURE__ */ Z(Y, { children: [l, u] }), i[4] = l, i[5] = u, i[6] = d) : d = i[6], d;
2230
+ return i[4] !== l || i[5] !== u ? (d = /* @__PURE__ */ $(Z, { children: [l, u] }), i[4] = l, i[5] = u, i[6] = d) : d = i[6], d;
2051
2231
  }
2052
2232
  //#endregion
2053
- //#region ../diagram/src/components/Logo.tsx
2054
- var pt = K((r, i) => {
2055
- let a = J(5), o, s;
2056
- a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ X("path", {
2057
- fill: "#5E98AF",
2058
- d: "M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"
2059
- }), s = /* @__PURE__ */ X("path", {
2060
- className: T({
2061
- fill: "[#FCFBF7]",
2062
- _light: { fill: "[#222221]" }
2063
- }),
2064
- d: "M71.61 12.08c-.06 3.61.3 29.95.23 31.87 0 1.8 0 3.6.06 5.41 0 .3.18.58.47.58 4.1.18 8.13-.17 12.22-.11 1.34.05 2.69 0 3.97 0 1.29-.06 1.4-.59 1.35-1.63-.06-1.63-.06-3.08-.06-4.65-.06-.82-.53-1.11-1.23-1.11-2.4.06-4.8-.06-7.19.06-.4.06-.82.06-1.23.06-.7-.06-.87-.24-.93-1v-.86c-.18-4.83.17-9.83.17-14.66-.06-4.07 0-7.73-.06-11.34 0-1.57 0-3.14-.05-4.65-.06-.93 0-1.92-.24-2.85-.11-.35-.29-.81-.7-.81h-5.5c-.93 0-1.22.64-1.28 1.57v4.12ZM103.81 35c-.17-6.63-.1-13.67-.05-20.24 0-2.04-.12-4.25-.12-6.28 0-2.21-.87-2.1-2.04-2.15-1.7-.06-2.46-.06-4.15-.06-1.11-.06-1.58.23-1.58 1.34 0 5.7-.18 21.8-.12 24.13.06 2.33.3 12.91.18 15.24-.06.81 0 1.62.06 2.44.05.29.23.58.7.58 1.93-.12 3.74-.12 5.67-.17.7-.06 1.28-.24 1.58-1 .05-.4-.12-11.04-.12-13.83Zm13.92 4.47c0-2.03-.3-7.56-.23-8.72 0-.17.11-.4.17-.4.12 0 .35.11.41.17 1.87 2.44 10.64 19.36 11.7 19.42.28.06.58.06.87.06 1.99-.12 3.74 0 5.73 0 2.04 0 .7-1.98.35-2.5-.53-.76-7.48-13.14-7.9-13.9-1.16-1.98-2.16-4.13-3.32-6.05-.12-.23-.24-.58-.18-.81.12-.7.3-1.34.59-1.98a93.18 93.18 0 0 1 4.55-8.14c1.88-2.97 2.93-4.83 4.45-7.5.35-.64.58-1.34.82-2.1.05-.29-.18-.58-.53-.58-1.11-.05-5.15 0-6.43 0-.59 0-1.17.12-1.46.64-.76 1.46-8.6 15.7-9.35 16.98-.06.12-.24.18-.41.18 0 0-.12-.18-.12-.3-.06-3.25.53-13.9.4-16.04-.05-1.28-.28-1.4-1.57-1.46-1.4-.05-3.33-.05-4.73-.05-1.3 0-1.4.7-1.58 1.62-.06.18-.06 5.64-.06 8.09 0 3.54-.3 25.76.11 32.8 0 .7.18 1.1.77 1.1 1.57-.12 3.91 0 5.49 0 1.11 0 1.29-.12 1.29-1.98 0-2.5.23-4.77.23-7.85 0-.23-.06-.46-.06-.7Zm25.66-1.4h-.06c0 1.46-.05 2.97 0 4.49.06 1.86.18 3.72.3 5.58 0 .64.17.81.76.93 1.22.29 2.4.35 3.62.35 3.16-.12 6.31.11 9.47 0 1.29-.06 1.87.06 3.16-.18 1.17-.23 1.58-.87 1.58-2.61-.12-1.1-.06-1.57-.06-2.91 0-1.92-1.35-2.56-2.52-2.5-.81.06-4.73-.06-6.31-.06-2.63.06-2.22.4-2.22-2.33 0-2.2.06-5.05.06-7.32 0-1.22.11-1.63 1.28-1.63h7.31c1.17.17 1.99-.64 1.99-1.86 0-1.22.12-1.28.12-2.5l-.18-1.75c-.12-.99-.47-1.33-1.46-1.33-.64 0-1.29.05-1.93.11-2.52.18-3.68-.17-6.14 0-.82 0-.93-.11-1-.87-.23-2.27 0-4.77.24-7.04.06-.93.3-1.1 1.17-1.16l8.24-.06c1.11-.11 1.46-.06 1.4-1.16-.11-1.69.06-3.43-.11-5.12-.12-.93-.41-1.1-1.46-1.1-1.76.05-2.17.05-3.92.17-1.75.06-8.77.06-10.46.06-2.46 0-2.63-.18-2.7 2.8-.1 2.32-.05 4.7-.05 7.09 0 4.07-.23 18.66-.12 21.92Zm47.76-24.82c.06-1.92 0-3.5 0-5.35 0-2.15-3.92-1.92-5.32-1.86a18.95 18.95 0 0 0-15.08 9.77c-.82 1.57-1.4 3.2-1.81 4.88a34 34 0 0 0-.59 12.15c.41 3.78 1.4 7.56 3.74 10.59 4.04 5.3 11.46 7.15 17.83 6.16.3-.06.59-.11.82-.29.18-.11.35-.35.35-.58l.18-3.31c.06-1.05 0-1 0-2.04 0-1.4-2.93-.35-4.74-.35-1.75 0-3.62-.06-5.2-.87-2.8-1.57-4.38-4.71-5.26-7.68-1-3.2-1.23-6.63-.64-9.88.7-4.25 2.74-9.13 7.25-10.59 2.57-.87 5.31-.58 7.89-.29.35.06.58-.17.58-.46Zm26.77 15.3c.06-2.5 0-14.84 0-18.38.06-.82 0-1.63-.11-2.45-.06-.99-.24-1.28-1.29-1.33h-4.44c-.82 0-1.35.4-1.82 1.27-1.34 3.2-10.75 24.02-12.15 26.58-.53.99-1 1.63-1 2.68v4.24c0 .76-.06 1.28 1.23 1.28l11.1-.06c1.47 0 1.47.3 1.47 1.1 0 .88-.12 4.9-.12 5.3 0 .58.12 1.16 1.23 1.16h5.08c1.23 0 1.23-.7 1.23-2.03.06-1.17-.06-3.5-.06-4.66 0-.93.18-.98 1.76-.98 1.22 0 1.75-.12 1.75-.88.06-1.57 0-2.67 0-4.42 0-1.04-.93-.98-2.92-.98-.65 0-.7-.18-.7-1.05-.12-1.8-.24-4.6-.24-6.4Zm-7.25-5.94c-.05.7-.11 10.82-.11 12.27-.06.81-.24 1.05-1 1.1-1.93.06-3.85.06-5.78.06-.47 0-.65-.4-.41-.87.23-.4 4.85-11.57 6.13-14.48.18-.17.24-.35.41-.52.18-.12.41-.18.59-.23.06 0 .23.29.23.46 0 .76-.06 1.51-.06 2.21Z"
2065
- }), a[0] = o, a[1] = s) : (o = a[0], s = a[1]);
2066
- let c;
2067
- return a[2] !== r || a[3] !== i ? (c = /* @__PURE__ */ Z("svg", {
2068
- ref: i,
2069
- xmlns: "http://www.w3.org/2000/svg",
2070
- fill: "none",
2071
- viewBox: "0 0 222 56",
2072
- ...r,
2073
- children: [o, s]
2074
- }), a[2] = r, a[3] = i, a[4] = c) : c = a[4], c;
2075
- }), mt = K((r, i) => {
2076
- let a = J(4), o;
2077
- a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ X("path", {
2078
- fill: "#5E98AF",
2079
- d: "M33.95 33.78V0H2.37A2.37 2.37 0 0 0 0 2.35V33.9h33.95v-.12ZM38.57 33.78H55.6v-14.6c0-1.3-1.06-2.35-2.36-2.35H38.57v16.95ZM33.95 38.37H17.04v14.6c0 1.29 1.06 2.35 2.36 2.35h14.67V38.37h-.12ZM38.57 38.37v16.95h14.67c1.3 0 2.36-1.06 2.36-2.36v-14.6H38.57Z"
2080
- }), a[0] = o) : o = a[0];
2081
- let s;
2082
- return a[1] !== r || a[2] !== i ? (s = /* @__PURE__ */ X("svg", {
2083
- ref: i,
2084
- xmlns: "http://www.w3.org/2000/svg",
2085
- fill: "none",
2086
- viewBox: "0 0 56 56",
2087
- ...r,
2088
- children: o
2089
- }), a[1] = r, a[2] = i, a[3] = s) : s = a[3], s;
2090
- }), { withProvider: ht, withContext: gt } = S(N), shouldForwardProp = (r, i) => !i.includes(r) && (re(r) || !j(r)), _t = K((r, i) => {
2091
- let a = J(11), o, s;
2233
+ //#region ../diagram/src/components/NavigationPanel.tsx
2234
+ var { withProvider: Tt, withContext: Et } = k(B), shouldForwardProp = (r, i) => !i.includes(r) && (ue(r) || !M(r)), Dt = q((r, i) => {
2235
+ let a = X(11), o, s;
2092
2236
  a[0] === r ? (o = a[1], s = a[2]) : ({className: o, ...s} = r, a[0] = r, a[1] = o, a[2] = s);
2093
2237
  let c;
2094
- a[3] === o ? c = a[4] : (c = w("mantine-active", o), a[3] = o, a[4] = c);
2238
+ a[3] === o ? c = a[4] : (c = A("mantine-active", o), a[3] = o, a[4] = c);
2095
2239
  let l, u;
2096
- a[5] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ X(mt, { "data-logo-icon": !0 }), u = /* @__PURE__ */ X(pt, { "data-logo-full": !0 }), a[5] = l, a[6] = u) : (l = a[5], u = a[6]);
2240
+ a[5] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ Q(ft, { "data-logo-icon": !0 }), u = /* @__PURE__ */ Q(dt, { "data-logo-full": !0 }), a[5] = l, a[6] = u) : (l = a[5], u = a[6]);
2097
2241
  let d;
2098
- return a[7] !== s || a[8] !== i || a[9] !== c ? (d = /* @__PURE__ */ Z("button", {
2242
+ return a[7] !== s || a[8] !== i || a[9] !== c ? (d = /* @__PURE__ */ $("button", {
2099
2243
  ...s,
2100
2244
  ref: i,
2101
2245
  className: c,
2102
2246
  children: [l, u]
2103
2247
  }), a[7] = s, a[8] = i, a[9] = c, a[10] = d) : d = a[10], d;
2104
- }), vt = {
2105
- Root: ht(G, "root", { shouldForwardProp }),
2106
- Body: gt(G, "body", { shouldForwardProp }),
2107
- Logo: gt(_t, "logo", { shouldForwardProp }),
2108
- Label: gt(G, "label", { shouldForwardProp }),
2109
- Dropdown: gt(G, "dropdown", { shouldForwardProp })
2110
- }, scheme = (r) => `[data-mantine-color-scheme="${r}"]`, yt = scheme("dark"), generateCompoundColors = (r, i, a, o) => `
2248
+ }), Ot = {
2249
+ Root: Tt(fe.div, "root", { shouldForwardProp }),
2250
+ Body: Et(fe.div, "body", { shouldForwardProp }),
2251
+ Logo: Et(Dt, "logo", { shouldForwardProp }),
2252
+ Label: Et(fe.div, "label", { shouldForwardProp }),
2253
+ Dropdown: Et(fe.div, "dropdown", { shouldForwardProp })
2254
+ }, scheme = (r) => `[data-mantine-color-scheme="${r}"]`, kt = scheme("dark"), generateCompoundColors = (r, i, a, o) => `
2111
2255
  ${`${r} :is([data-likec4-color="${i}"][data-compound-depth="${o}"])`} {
2112
2256
  --likec4-palette-fill: ${a.fill};
2113
2257
  --likec4-palette-stroke: ${a.stroke};
@@ -2126,39 +2270,37 @@ ${u} {
2126
2270
  --likec4-palette-relation-label-bg: ${l.labelBg};
2127
2271
  --likec4-palette-relation-stroke-selected: oklch(from ${l.line} calc(l - 0.15) c h);
2128
2272
  }
2129
- ${yt} ${u} {
2273
+ ${kt} ${u} {
2130
2274
  --likec4-palette-relation-stroke-selected: oklch(from ${l.line} calc(l + 0.15) c h);
2131
2275
  }
2132
2276
 
2133
2277
  `, ...r.colorsForCompounds(c, 5).map((r, i) => generateCompoundColors(a, o, r, i + 1))].map((r) => r.trim()).join("\n");
2134
2278
  }
2135
2279
  function generateBuiltInColorStyles(r, i) {
2136
- return a(r.theme.colors, t$2(), u(([a, o]) => toStyle(r, {
2280
+ return a(r.theme.colors, t$3(), u(([a, o]) => toStyle(r, {
2137
2281
  rootSelector: i,
2138
2282
  name: a,
2139
2283
  colors: o
2140
- })), t$1("\n"));
2141
- }
2142
- function LikeC4Styles$1({ id: r }) {
2143
- let i = `#${r}`, a = h()?.(), o = useLikeC4Styles();
2144
- return /* @__PURE__ */ X(bt, {
2145
- id: r,
2146
- nonce: a,
2147
- colorsStyles: de(() => generateBuiltInColorStyles(o, i), [i, o.fingerprint])
2284
+ })), t$2("\n"));
2285
+ }
2286
+ function LikeC4Styles$1({ rootSelector: r }) {
2287
+ let i = O()?.(), a = useLikeC4Styles(), o = ve(() => generateBuiltInColorStyles(a, r), [r, a.fingerprint]);
2288
+ return /* @__PURE__ */ Q(At, {
2289
+ id: a.fingerprint,
2290
+ nonce: i,
2291
+ colorsStyles: o
2148
2292
  });
2149
2293
  }
2150
2294
  r(LikeC4Styles$1, "LikeC4Styles");
2151
- var bt = le((r) => {
2152
- let i = J(6), { id: a, nonce: o, colorsStyles: s } = r, c;
2153
- i[0] === s ? c = i[1] : (c = { __html: s }, i[0] = s, i[1] = c);
2154
- let l = o || void 0, u;
2155
- return i[2] !== a || i[3] !== c || i[4] !== l ? (u = /* @__PURE__ */ X("style", {
2295
+ var At = J((r) => {
2296
+ let i = X(4), { id: a, nonce: o, colorsStyles: s } = r, c = o || void 0, l;
2297
+ return i[0] !== s || i[1] !== a || i[2] !== c ? (l = /* @__PURE__ */ Q("style", {
2156
2298
  type: "text/css",
2157
2299
  "data-likec4-colors": a,
2158
- dangerouslySetInnerHTML: c,
2159
- nonce: l
2160
- }), i[2] = a, i[3] = c, i[4] = l, i[5] = u) : u = i[5], u;
2300
+ nonce: c,
2301
+ children: s
2302
+ }), i[0] = s, i[1] = a, i[2] = c, i[3] = l) : l = i[3], l;
2161
2303
  });
2162
- bt.displayName = "MemoizedStyle";
2304
+ At.displayName = "MemoizedStyle";
2163
2305
  //#endregion
2164
- export { stopPropagation as $, useOptionalCurrentViewModel as A, BaseXYFlow as B, useLikeC4Projects as C, useId$1 as D, useOptionalProjectsContext as E, RootContainer as F, hasSubObject as G, Be as H, useRootContainer as I, getNodeCenter as J, bezierControlPoints as K, useRootContainerContext as L, FramerMotionConfig as M, EnsureMantine as N, Ye as O, DefaultMantineProvider as P, parsePaddings as Q, useRootContainerElement as R, useLikeC4ProjectId as S, Ze as T, ze as U, Ve as V, Re as W, isSamePoint as X, getNodeIntersectionFromCenterToPoint as Y, nodeToRect as Z, calcEdgeBounds as _, t$3 as _t, DefaultHandles as a, useXYStoreApi as at, useLikeC4Styles as b, dt as c, IconRenderer as ct, rt as d, t as dt, roundDpr as et, EdgeLabelContainer as f, t$1 as ft, readableText as g, t$2 as gt, _e as h, e$2 as ht, mt as i, useXYStore as it, useOptionalLikeC4Model as j, qe as k, ElementData as l, IconRendererProvider as lt, EdgeContainer as m, e$1 as mt, vt as n, useCurrentZoomAtLeast as nt, memoEdge as o, useCallbackRef as ot, tt as p, e as pt, bezierPath as q, pt as r, useXYFlow as rt, ElementShape as s, IconOrShapeRenderer as st, LikeC4Styles$1 as t, selectXYStore as tt, ElementActionButtons as u, Ne as ut, calcViewBounds as v, t$4 as vt, useLikeC4ProjectsContext as w, useChangeLikeC4Project as x, pickViewBounds as y, useRootContainerRef as z };
2306
+ export { Ge as $, RootContainer as A, getNodeCenter as B, ot as C, FramerMotionConfig as D, useOptionalLikeC4Model as E, BaseXYFlow as F, stopPropagation as G, isSamePoint as H, Ye as I, useCurrentZoomAtLeast as J, roundDpr as K, hasSubObject as L, useRootContainerContext as M, useRootContainerElement as N, EnsureMantine as O, useRootContainerRef as P, useCallbackRef as Q, bezierControlPoints as R, useLikeC4Styles as S, useOptionalCurrentViewModel as T, nodeToRect as U, getNodeIntersectionFromCenterToPoint as V, parsePaddings as W, useXYStore as X, useXYFlow as Y, useXYStoreApi as Z, useLikeC4Projects as _, ElementShape as a, IconRendererProvider as at, useOptionalProjectsContext as b, ElementActionButtons as c, t$2 as ct, pt as d, e$2 as dt, Ke as et, EdgeContainer as f, t$3 as ft, useLikeC4ProjectId as g, useChangeLikeC4Project as h, memoEdge as i, IconRenderer as it, useRootContainer as j, LikeC4MantineProvider as k, ht as l, e as lt, ft as m, t$5 as mt, Ot as n, Ue as nt, Ct as o, Be as ot, dt as p, t$4 as pt, selectXYStore as q, DefaultHandles as r, IconOrShapeRenderer as rt, ElementData as s, t$1 as st, LikeC4Styles$1 as t, We as tt, EdgeLabelContainer as u, e$1 as ut, useLikeC4ProjectsContext as v, it as w, useId$1 as x, ct as y, bezierPath as z };