likec4 1.59.3 → 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 (49) hide show
  1. package/__app__/src/chunks/AIChat.mjs +108 -108
  2. package/__app__/src/chunks/LikeC4Styles.mjs +752 -604
  3. package/__app__/src/chunks/ProjectsOverview.mjs +72 -72
  4. package/__app__/src/chunks/es.mjs +1 -1
  5. package/__app__/src/chunks/hooks.mjs +94 -91
  6. package/__app__/src/chunks/libs/@floating-ui.mjs +3 -3
  7. package/__app__/src/chunks/libs/@mantine.mjs +1609 -892
  8. package/__app__/src/chunks/libs/@tanstack-ai.mjs +2 -2
  9. package/__app__/src/chunks/libs/@tanstack.mjs +4 -10
  10. package/__app__/src/chunks/libs/@xyflow/react.mjs +4 -4
  11. package/__app__/src/chunks/libs/d3.mjs +4 -9
  12. package/__app__/src/chunks/libs/fast-equals.mjs +61 -49
  13. package/__app__/src/chunks/libs/framer.mjs +6 -6
  14. package/__app__/src/chunks/styled-system.mjs +2578 -124
  15. package/__app__/src/main.mjs +21537 -20155
  16. package/__app__/src/style.css +1 -1
  17. package/config/schema.json +14 -0
  18. package/dist/app/render-view-client.css +1 -1
  19. package/dist/app/render-view-client.js +99 -105
  20. package/dist/chunks/filenames.mjs +6 -6
  21. package/dist/chunks/index.d.mts +7 -1
  22. package/dist/chunks/index2.d.mts +38 -21
  23. package/dist/chunks/libs/@chevrotain/gast.mjs +1 -1
  24. package/dist/chunks/libs/@chevrotain/types.d.mts +108 -0
  25. package/dist/chunks/libs/@logtape/logtape.mjs +4 -4
  26. package/dist/chunks/libs/langium.d.mts +1777 -16
  27. package/dist/chunks/libs/langium.mjs +4 -4
  28. package/dist/chunks/libs/p-queue.mjs +1 -1
  29. package/dist/chunks/libs/package-manager-detector.mjs +1 -1
  30. package/dist/chunks/libs/pako.mjs +2 -2
  31. package/dist/chunks/libs/picomatch.mjs +1 -1
  32. package/dist/chunks/libs/pretty-ms.mjs +1 -1
  33. package/dist/chunks/libs/remeda.mjs +1 -1
  34. package/dist/chunks/libs/ufo.mjs +1 -1
  35. package/dist/chunks/libs/unstorage.mjs +1 -1
  36. package/dist/chunks/libs/zod.d.mts +1717 -17
  37. package/dist/chunks/node.mjs +58 -59
  38. package/dist/chunks/vite-plugin.mjs +15 -12
  39. package/dist/cli/index.d.mts +1 -1
  40. package/dist/cli/index.mjs +104 -88
  41. package/dist/index.d.mts +3 -3
  42. package/dist/model/index.d.mts +4 -4
  43. package/dist/vite-plugin/index.d.mts +2 -2
  44. package/dist/vite-plugin/internal/index.d.mts +15 -15
  45. package/dist/vite-plugin/internal/index.mjs +72 -27
  46. package/package.json +28 -28
  47. package/react/index.d.mts +22720 -1460
  48. package/react/index.mjs +30391 -25072
  49. package/vite-plugin-modules.d.ts +4 -2
@@ -1,38 +1,38 @@
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 K, forwardRef as q, memo as ce, useContext as le, 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 { invariant as me, nonexhaustive as he } from "@likec4/core";
13
- import { BBox as ge, vector as _e } from "@likec4/core/geometry";
14
- import { invariant as Q } from "@likec4/core/utils";
15
- import { LikeC4Styles as ve } from "@likec4/core/styles";
16
- import { RichText as ye, ensureSizes as be } from "@likec4/core/types";
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
17
  //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/clamp.js
18
- function t$4(...r) {
19
- return o(xe, r);
18
+ function t$5(...r) {
19
+ return o(ke, r);
20
20
  }
21
- r(t$4, "t");
22
- var xe = /* @__PURE__ */ r((r, { min: i, max: a }) => i !== void 0 && r < i ? i : a !== void 0 && r > a ? a : r, "n");
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
23
  //#endregion
24
24
  //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/hasAtLeast.js
25
- function t$3(...r) {
26
- return o(Se, r);
25
+ function t$4(...r) {
26
+ return o(Ae, r);
27
27
  }
28
- r(t$3, "t");
29
- var Se = /* @__PURE__ */ r((r, i) => r.length >= i, "n");
28
+ r(t$4, "t");
29
+ var Ae = /* @__PURE__ */ r((r, i) => r.length >= i, "n");
30
30
  //#endregion
31
31
  //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/entries.js
32
- function t$2(...r) {
32
+ function t$3(...r) {
33
33
  return o(Object.entries, r);
34
34
  }
35
- r(t$2, "t");
35
+ r(t$3, "t");
36
36
  //#endregion
37
37
  //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/isArray.js
38
38
  function e$2(r) {
@@ -52,25 +52,26 @@ function e(r) {
52
52
  }
53
53
  //#endregion
54
54
  //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/join.js
55
- function t$1(...r) {
56
- return o(Ce, r);
55
+ function t$2(...r) {
56
+ return o(je, r);
57
57
  }
58
- r(t$1, "t");
59
- var Ce = /* @__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
61
  //#region ../../node_modules/.pnpm/remeda@2.45.0/node_modules/remeda/dist/pickBy.js
62
- function t(...r) {
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 we = 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
- }]]), Te = 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 we = i("outline", "bolt", "Bolt", [["path", {
83
84
  d: "M8 4v4",
84
85
  key: "svg-2"
85
86
  }]
86
- ]), $ = 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
- }]]), Ee = 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 we = i("outline", "bolt", "Bolt", [["path", {
102
103
  d: "M12 17v.01",
103
104
  key: "svg-2"
104
105
  }]
105
- ]), De = 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 we = i("outline", "bolt", "Bolt", [["path", {
123
124
  d: "M9 17l6 0",
124
125
  key: "svg-4"
125
126
  }]
126
- ]), Oe = 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 we = i("outline", "bolt", "Bolt", [["path", {
140
141
  d: "M3.5 11l5.5 2.5",
141
142
  key: "svg-3"
142
143
  }]
143
- ]), ke = 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 we = 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
- ]), Ae = 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
- }]]), je = 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,26 +193,26 @@ var we = 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
- ]), Me = K(null);
196
+ ]), Ve = K(null);
196
197
  function IconRendererProvider(r) {
197
- let i = J(5), { value: a, children: o } = r;
198
- if (le(Me)) {
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(Me.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
209
  function IconRenderer({ element: r, className: i, style: a }) {
209
- let o = le(Me);
210
+ let o = Y(Ve);
210
211
  if (!r || !r.icon || r.icon === "none") return null;
211
212
  let s;
212
213
  switch (!0) {
213
214
  case r.icon.startsWith("data:image/svg+xml"):
214
- s = /* @__PURE__ */ X(SvgDataUrlIcon, {
215
+ s = /* @__PURE__ */ Q(SvgDataUrlIcon, {
215
216
  dataUrl: r.icon,
216
217
  alt: r.title
217
218
  });
@@ -219,61 +220,61 @@ function IconRenderer({ element: r, className: i, style: a }) {
219
220
  case r.icon.startsWith("http://"):
220
221
  case r.icon.startsWith("https://"):
221
222
  case r.icon.startsWith("data:image"):
222
- s = /* @__PURE__ */ X("img", {
223
+ s = /* @__PURE__ */ Q("img", {
223
224
  src: r.icon,
224
225
  alt: r.title
225
226
  });
226
227
  break;
227
228
  case !!o:
228
- s = /* @__PURE__ */ X(o, { node: r });
229
+ s = /* @__PURE__ */ Q(o, { node: r });
229
230
  break;
230
- default: s = null;
231
+ default: s = /* @__PURE__ */ Q(DefaultIconRenderer, { node: r });
231
232
  }
232
- return s ? /* @__PURE__ */ X("div", {
233
- className: w(i, "likec4-element-icon"),
233
+ return s ? /* @__PURE__ */ Q("div", {
234
+ className: A(i, "likec4-element-icon"),
234
235
  "data-likec4-icon": r.icon,
235
236
  style: a,
236
237
  children: s
237
238
  }) : null;
238
239
  }
239
- var Ne = {
240
- browser: Te,
241
- cylinder: $,
242
- mobile: Ee,
243
- person: Ae,
244
- queue: ke,
245
- rectangle: Oe,
246
- storage: $,
247
- bucket: $,
248
- document: De,
249
- component: Oe
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
250
251
  };
251
252
  function IconOrShapeRenderer(r) {
252
- let i = J(12), { element: a, className: o, style: s } = r;
253
+ let i = X(12), { element: a, className: o, style: s } = r;
253
254
  if (!a.icon || a.icon === "none") {
254
- let r = Ne[a.shape], c;
255
- 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);
256
257
  let l;
257
- 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);
258
259
  let u;
259
- 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", {
260
261
  className: c,
261
262
  style: s,
262
263
  children: l
263
264
  }), i[4] = s, i[5] = c, i[6] = l, i[7] = u) : u = i[7], u;
264
265
  }
265
266
  let c;
266
- 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, {
267
268
  element: a,
268
269
  className: o,
269
270
  style: s
270
271
  }), i[8] = o, i[9] = a, i[10] = s, i[11] = c) : c = i[11], c;
271
272
  }
272
273
  function SvgDataUrlIcon(r) {
273
- let i = J(11), { dataUrl: a, alt: o } = r;
274
+ let i = X(11), { dataUrl: a, alt: o } = r;
274
275
  if (!hasCurrentColorReference(a)) {
275
276
  let r;
276
- return i[0] !== o || i[1] !== a ? (r = /* @__PURE__ */ X("img", {
277
+ return i[0] !== o || i[1] !== a ? (r = /* @__PURE__ */ Q("img", {
277
278
  src: a,
278
279
  alt: o
279
280
  }), i[0] = o, i[1] = a, i[2] = r) : r = i[2], r;
@@ -296,7 +297,7 @@ function SvgDataUrlIcon(r) {
296
297
  WebkitMaskSize: "contain"
297
298
  }, i[5] = c, i[6] = u);
298
299
  let d;
299
- return i[7] !== o || i[8] !== l || i[9] !== u ? (d = /* @__PURE__ */ X("span", {
300
+ return i[7] !== o || i[8] !== l || i[9] !== u ? (d = /* @__PURE__ */ Q("span", {
300
301
  role: l,
301
302
  "aria-label": o,
302
303
  style: u
@@ -321,37 +322,112 @@ function decodeSvgDataUrl(r) {
321
322
  return null;
322
323
  }
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", {
348
+ ...o,
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;
382
+ }
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";
324
400
  //#endregion
325
401
  //#region ../diagram/src/base/Background.tsx
326
402
  function literalToEnum(r) {
327
403
  switch (r) {
328
- case "dots": return H.Dots;
329
- case "lines": return H.Lines;
330
- case "cross": return H.Cross;
331
- default: he(r);
404
+ case "dots": return oe.Dots;
405
+ case "lines": return oe.Lines;
406
+ case "cross": return oe.Cross;
407
+ default: Se(r);
332
408
  }
333
409
  }
334
- var compareProps = (r, i) => typeof r.background == "string" && typeof i.background == "string" ? r.background === i.background : W(r.background, i.background), Pe = ce((r) => {
335
- 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;
336
412
  if (typeof a == "string") {
337
413
  let r;
338
414
  i[0] === a ? r = i[1] : (r = literalToEnum(a), i[0] = a, i[1] = r);
339
415
  let o;
340
- return i[2] === r ? o = i[3] : (o = /* @__PURE__ */ X(U, {
416
+ return i[2] === r ? o = i[3] : (o = /* @__PURE__ */ Q(se, {
341
417
  variant: r,
342
418
  size: 2,
343
419
  gap: 20
344
420
  }), i[2] = r, i[3] = o), o;
345
421
  }
346
422
  let o;
347
- 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;
348
424
  }, compareProps);
349
- Pe.displayName = "Background";
425
+ qe.displayName = "Background";
350
426
  //#endregion
351
427
  //#region ../diagram/src/hooks/useCallbackRef.ts
352
428
  function useCallbackRef(r) {
353
- let i = fe(r);
354
- return i.current = r, de(() => {
429
+ let i = ye(r);
430
+ return i.current = r, ve(() => {
355
431
  function callbackRef(...r) {
356
432
  return i.current?.(...r);
357
433
  }
@@ -361,37 +437,37 @@ function useCallbackRef(r) {
361
437
  //#endregion
362
438
  //#region ../diagram/src/hooks/useXYFlow.ts
363
439
  function useXYFlow() {
364
- return V();
440
+ return ae();
365
441
  }
366
442
  function useXYStore(r, i) {
367
- return B(r, i ?? te);
443
+ return re(r, i ?? ce);
368
444
  }
369
445
  function selectXYStore(r) {
370
446
  return r;
371
447
  }
372
448
  function useXYStoreApi() {
373
- return z();
449
+ return ne();
374
450
  }
375
451
  function useCurrentZoomAtLeast(r) {
376
- let i = J(2), t0;
377
- 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);
378
454
  }
379
455
  var selectZoom = (r) => r.transform[2] < .2;
380
456
  function useIsZoomTooSmall() {
381
- return B(selectZoom);
457
+ return re(selectZoom);
382
458
  }
383
459
  //#endregion
384
460
  //#region ../diagram/src/utils/roundDpr.ts
385
461
  function getDevicePixelRatio() {
386
462
  let r = typeof window < "u" && typeof window.devicePixelRatio == "number" ? window.devicePixelRatio : 1;
387
- return t$4(Math.floor(r), {
463
+ return t$5(Math.floor(r), {
388
464
  min: 1,
389
465
  max: 4
390
466
  });
391
467
  }
392
- var Fe;
468
+ var Je;
393
469
  function roundDpr(r) {
394
- return Fe ??= getDevicePixelRatio(), Fe < 2 ? Math.round(r) : Math.round(r * Fe) / Fe;
470
+ return Je ??= getDevicePixelRatio(), Je < 2 ? Math.round(r) : Math.round(r * Je) / Je;
395
471
  }
396
472
  //#endregion
397
473
  //#region ../diagram/src/utils/xyflow.ts
@@ -404,22 +480,22 @@ function nodeToRect(r) {
404
480
  };
405
481
  }
406
482
  function getNodeCenter(r) {
407
- 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;
408
484
  return {
409
485
  x: Math.round(o + i / 2),
410
486
  y: Math.round(s + a / 2)
411
487
  };
412
488
  }
413
489
  function getNodeIntersectionFromCenterToPoint(r, i, a = 0) {
414
- let { width: o, height: s } = r, c = ge.center(r), l = _e(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));
415
- return _e(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();
416
492
  }
417
493
  function bezierControlPoints(r) {
418
494
  let [i, ...a] = r;
419
- Q(i, "start should be defined");
495
+ Te(i, "start should be defined");
420
496
  let o = [];
421
- for (; t$3(a, 3);) {
422
- 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();
423
499
  d.length === 0 && d.push(.5), d.forEach((r) => {
424
500
  let { x: i, y: a } = u.get(r);
425
501
  o.push({
@@ -428,7 +504,7 @@ function bezierControlPoints(r) {
428
504
  });
429
505
  }), a = l, i = c;
430
506
  }
431
- return Q(a.length === 0, "all points should be consumed"), Q(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;
432
508
  }
433
509
  function isSamePoint(r, i) {
434
510
  if (r === i) return !0;
@@ -441,13 +517,13 @@ function stopPropagation(r) {
441
517
  var printPoint = (r) => `${Math.trunc(r[0])},${Math.trunc(r[1])}`;
442
518
  function bezierPath(r) {
443
519
  let [i, ...a] = r;
444
- Q(i, "start should be defined");
520
+ Te(i, "start should be defined");
445
521
  let o = `M ${printPoint(i)}`;
446
- for (; t$3(a, 3);) {
522
+ for (; t$4(a, 3);) {
447
523
  let [r, i, s, ...c] = a;
448
524
  o += ` C ${printPoint(r)} ${printPoint(i)} ${printPoint(s)}`, a = c;
449
525
  }
450
- return Q(a.length === 0, "all points should be consumed"), o;
526
+ return Te(a.length === 0, "all points should be consumed"), o;
451
527
  }
452
528
  function parsePadding(r, i) {
453
529
  if (typeof r == "number") return Math.floor((i - i / (1 + r)) * .5);
@@ -504,7 +580,7 @@ function setHovered(r, i) {
504
580
  return i === void 0 ? (i) => _setHovered(i, r) : _setHovered(r, i);
505
581
  }
506
582
  function hasSubObject(r, i) {
507
- 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));
508
584
  }
509
585
  function _setData(r, i) {
510
586
  return hasSubObject(r.data, i) ? r : mergeData(r, i);
@@ -512,24 +588,10 @@ function _setData(r, i) {
512
588
  function setData(r, i) {
513
589
  return i === void 0 ? (i) => _setData(i, r) : _setData(r, i);
514
590
  }
515
- var Ie = {
591
+ var Ye = {
516
592
  setDimmed,
517
593
  setHovered,
518
594
  setData
519
- }, Le = {
520
- Compound: 1,
521
- Edge: 20,
522
- EdgeLabel: 25,
523
- Element: 20,
524
- Max: 30
525
- }, Re = .05, ze = {
526
- default: "16px",
527
- withControls: {
528
- top: "58px",
529
- left: "16px",
530
- right: "16px",
531
- bottom: "16px"
532
- }
533
595
  };
534
596
  //#endregion
535
597
  //#region ../diagram/src/base/keyboardZoom.ts
@@ -551,7 +613,7 @@ function getKeyboardZoomAction(r) {
551
613
  }
552
614
  //#endregion
553
615
  //#region ../diagram/src/base/BaseXYFlow.tsx
554
- var Be = {
616
+ var Xe = {
555
617
  "node.a11yDescription.default": "Press Enter or Space to select this node and reveal its actions.",
556
618
  "node.a11yDescription.keyboardDisabled": "Keyboard activation is disabled.",
557
619
  "edge.a11yDescription.default": "Press Enter or Space to select this relationship and reveal its actions."
@@ -577,53 +639,53 @@ function activateFocusedElement(r) {
577
639
  }));
578
640
  }
579
641
  function BaseXYFlow(r) {
580
- 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;
581
- 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);
582
- let P = S === void 0 || S, F = E === void 0 || E, I = D === void 0 || D, L = O !== void 0 && O, z = k === void 0 ? "dots" : k, B = A === void 0 ? 0 : A, ee = j === void 0 || j, V = M !== void 0 && M, H = N === void 0 ? L || I : N, U = C !== void 0 && C, te;
583
- i[28] === B ? te = i[29] : (te = {
584
- minZoom: Re,
585
- 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,
586
648
  padding: B,
587
649
  includeHiddenNodes: !1
588
- }, i[28] = B, i[29] = te);
589
- let W = te, ne = z !== "transparent" && z !== "solid", re = useIsZoomTooSmall(), ie = useXYFlow(), ae = useXYStoreApi(), { colorScheme: oe } = f();
590
- c ||= oe === "auto" ? "system" : oe;
591
- 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;
592
- i[30] !== W || i[31] !== x || i[32] !== ie || i[33] !== F ? (t13 = (r) => {
593
- 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;
594
656
  let i = getKeyboardZoomAction(r.nativeEvent);
595
657
  if (i) switch (r.preventDefault(), i) {
596
658
  case "zoom-in":
597
- ie.zoomIn();
659
+ se.zoomIn();
598
660
  return;
599
661
  case "zoom-out":
600
- ie.zoomOut();
662
+ se.zoomOut();
601
663
  return;
602
664
  case "reset":
603
- ie.fitView(W);
665
+ se.fitView(ie);
604
666
  return;
605
667
  }
606
- }, i[30] = W, i[31] = x, i[32] = ie, i[33] = F, i[34] = t13) : t13 = i[34];
607
- let K = useCallbackRef(t13), q = c, ce = u, le = l, ue = z === "transparent" && "bg-transparent", de;
608
- i[35] !== s || i[36] !== ue ? (de = w(ue, s), i[35] = s, i[36] = ue, i[37] = de) : de = i[37];
609
- let fe;
610
- i[38] === re ? fe = i[39] : (fe = re && { "data-likec4-zoom-small": !0 }, i[38] = re, i[39] = fe);
611
- let pe = !P && F, Y;
612
- i[40] === F ? Y = i[41] : (Y = !F && { zoomActivationKeyCode: null }, i[40] = F, i[41] = Y);
613
- let me = F ? 3 : 1, he = F ? Re : 1, ge = F || P, _e;
614
- i[42] === P ? _e = i[43] : (_e = !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 && {
615
677
  panActivationKeyCode: null,
616
678
  selectionKeyCode: null
617
- }, i[42] = P, i[43] = _e);
618
- let Q;
619
- i[44] === a ? Q = i[45] : (Q = {
620
- ...Be,
679
+ }, i[45] = F, i[46] = ye);
680
+ let be;
681
+ i[47] === a ? be = i[48] : (be = {
682
+ ...Xe,
621
683
  ...a
622
- }, i[44] = a, i[45] = Q);
623
- let ve = y, ye = m, t29;
624
- 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) => {
625
687
  let { x: a, y: o, zoom: s } = i, c = roundDpr(a), l = roundDpr(o);
626
- (a !== c || o !== l) && ae.setState({ transform: [
688
+ (a !== c || o !== l) && ce.setState({ transform: [
627
689
  c,
628
690
  l,
629
691
  s
@@ -632,9 +694,9 @@ function BaseXYFlow(r) {
632
694
  y: l,
633
695
  zoom: s
634
696
  });
635
- }, i[46] = g, i[47] = ae, i[48] = t29) : t29 = i[48];
636
- let be = useCallbackRef(t29), t31;
637
- 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) => {
638
700
  if (_) {
639
701
  _(r, i);
640
702
  return;
@@ -642,11 +704,11 @@ function BaseXYFlow(r) {
642
704
  y([{
643
705
  id: i.id,
644
706
  type: "replace",
645
- item: Ie.setHovered(i, !0)
707
+ item: Ye.setHovered(i, !0)
646
708
  }]);
647
- }, i[49] = _, i[50] = y, i[51] = t31) : t31 = i[51];
648
- let xe = useCallbackRef(t31), t33;
649
- 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) => {
650
712
  if (v) {
651
713
  v(r, i);
652
714
  return;
@@ -654,11 +716,11 @@ function BaseXYFlow(r) {
654
716
  y([{
655
717
  id: i.id,
656
718
  type: "replace",
657
- item: Ie.setHovered(i, !1)
719
+ item: Ye.setHovered(i, !1)
658
720
  }]);
659
- }, i[52] = v, i[53] = y, i[54] = t33) : t33 = i[54];
660
- let Se = useCallbackRef(t33), t35;
661
- 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) => {
662
724
  if (d) {
663
725
  d(r, i);
664
726
  return;
@@ -666,89 +728,88 @@ function BaseXYFlow(r) {
666
728
  m([{
667
729
  id: i.id,
668
730
  type: "replace",
669
- item: Ie.setHovered(i, !0)
731
+ item: Ye.setHovered(i, !0)
670
732
  }]);
671
- }, i[55] = d, i[56] = m, i[57] = t35) : t35 = i[57];
672
- let Ce = useCallbackRef(t35), t37;
673
- i[58] !== p || i[59] !== m ? (t37 = (r, i) => {
674
- if (p) {
675
- 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);
676
738
  return;
677
739
  }
678
740
  m([{
679
741
  id: i.id,
680
742
  type: "replace",
681
- item: Ie.setHovered(i, !1)
743
+ item: Ye.setHovered(i, !1)
682
744
  }]);
683
- }, i[58] = p, i[59] = m, i[60] = t37) : t37 = i[60];
684
- let we = useCallbackRef(t37), t39;
685
- 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) => {
686
748
  h?.(r), r.defaultPrevented || activateFocusedElement(r);
687
- }, i[61] = h, i[62] = t39);
688
- let Te = useCallbackRef(t39), $;
689
- i[63] !== z || i[64] !== ne ? ($ = ne && /* @__PURE__ */ X(Pe, { background: z }), i[63] = z, i[64] = ne, i[65] = $) : $ = i[65];
690
- let Ee;
691
- i[66] === b ? Ee = i[67] : (Ee = b && /* @__PURE__ */ X(ViewportResizeHanlder, { onViewportResize: b }), i[66] = b, i[67] = Ee);
692
- let De;
693
- 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] !== K || 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] !== _e || i[92] !== Q || i[93] !== be || i[94] !== xe || i[95] !== Se || i[96] !== Ce || i[97] !== we || i[98] !== Te || i[99] !== $ || i[100] !== Ee || i[101] !== G || i[102] !== V || i[103] !== F ? (De = /* @__PURE__ */ Z(R, {
694
- colorMode: q,
695
- nodes: ce,
696
- edges: le,
697
- className: de,
698
- ...fe,
699
- zoomOnPinch: F,
700
- zoomOnScroll: pe,
701
- ...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,
702
764
  zoomOnDoubleClick: V,
703
- maxZoom: me,
704
- minZoom: he,
705
- fitView: ee,
706
- fitViewOptions: W,
707
- preventScrolling: ge,
765
+ maxZoom: Y,
766
+ minZoom: _e,
767
+ fitViewOptions: ie,
768
+ preventScrolling: ve,
708
769
  defaultMarkerColor: "var(--xy-edge-stroke)",
709
770
  noDragClassName: "nodrag",
710
771
  noPanClassName: "nopan",
711
772
  noWheelClassName: "nowheel",
712
- panOnScroll: P,
713
- panOnDrag: P,
714
- ..._e,
715
- elementsSelectable: I,
773
+ panOnScroll: F,
774
+ panOnDrag: F,
775
+ ...ye,
776
+ elementsSelectable: L,
716
777
  nodesFocusable: H,
717
778
  edgesFocusable: U,
718
- nodesDraggable: L,
719
- ariaLabelConfig: Q,
779
+ nodesDraggable: R,
780
+ ariaLabelConfig: be,
720
781
  nodeDragThreshold: 4,
721
782
  nodeClickDistance: 3,
722
783
  paneClickDistance: 3,
723
784
  elevateNodesOnSelect: !1,
724
785
  selectNodesOnDrag: !1,
725
- onNodesChange: ve,
726
- onEdgesChange: ye,
727
- onMoveEnd: be,
728
- onNodeMouseEnter: xe,
729
- onNodeMouseLeave: Se,
730
- onEdgeMouseEnter: Ce,
731
- onEdgeMouseLeave: we,
786
+ onNodesChange: Z,
787
+ onEdgesChange: xe,
788
+ onMoveEnd: Se,
789
+ onNodeMouseEnter: Ce,
790
+ onNodeMouseLeave: we,
791
+ onEdgeMouseEnter: Te,
792
+ onEdgeMouseLeave: Ee,
732
793
  onNodeDoubleClick: stopPropagation,
733
794
  onEdgeDoubleClick: stopPropagation,
734
- onKeyDownCapture: Te,
795
+ onKeyDownCapture: De,
735
796
  ...x,
736
- "aria-label": se,
737
- tabIndex: G,
738
- onKeyDown: K,
797
+ "aria-label": ue,
798
+ tabIndex: le,
799
+ onKeyDown: de,
739
800
  children: [
740
- $,
741
- Ee,
801
+ Oe,
802
+ ke,
742
803
  o
743
804
  ]
744
- }), 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] = K, 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] = _e, i[92] = Q, i[93] = be, i[94] = xe, i[95] = Se, i[96] = Ce, i[97] = we, i[98] = Te, i[99] = $, 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;
745
806
  }
746
807
  var selectDimensions = ({ width: r, height: i }) => (r || 1) * (i || 1), ViewportResizeHanlder = (r) => {
747
- let i = J(2), { onViewportResize: a } = r, o = B(selectDimensions), c;
808
+ let i = X(2), { onViewportResize: a } = r, o = re(selectDimensions), c;
748
809
  return i[0] === o ? c = i[1] : (c = [o], i[0] = o, i[1] = c), s(a, c), null;
749
- }, Ve = K(null), He = Ve.Provider;
810
+ }, Ze = K(null), Qe = Ze.Provider;
750
811
  function useRootContainerContext() {
751
- return le(Ve);
812
+ return Y(Ze);
752
813
  }
753
814
  function useRootContainer() {
754
815
  let r = useRootContainerContext();
@@ -764,7 +825,7 @@ function useRootContainerElement() {
764
825
  //#endregion
765
826
  //#region ../diagram/src/components/RootContainer.tsx
766
827
  function RootContainer(r) {
767
- let i = J(18), { id: a, className: o, reduceGraphics: s, children: l } = r, u = s !== void 0 && 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;
768
829
  i[0] !== f || i[1] !== a || i[2] !== u || i[3] !== m ? (h = {
769
830
  id: a,
770
831
  ref: d,
@@ -773,16 +834,16 @@ function RootContainer(r) {
773
834
  $panning: f
774
835
  }, i[0] = f, i[1] = a, i[2] = u, i[3] = m, i[4] = h) : h = i[4];
775
836
  let g = h, _;
776
- 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] = _);
777
838
  let v;
778
839
  i[7] === u ? v = i[8] : (v = u && { "data-likec4-reduced-graphics": !0 }, i[7] = u, i[8] = v);
779
840
  let y;
780
- i[9] !== l || i[10] !== g ? (y = /* @__PURE__ */ X(He, {
841
+ i[9] !== l || i[10] !== g ? (y = /* @__PURE__ */ Q(Qe, {
781
842
  value: g,
782
843
  children: l
783
844
  }), i[9] = l, i[10] = g, i[11] = y) : y = i[11];
784
845
  let b;
785
- 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", {
786
847
  id: a,
787
848
  className: _,
788
849
  ref: d,
@@ -796,77 +857,163 @@ function _temp$1() {
796
857
  }
797
858
  r(_temp$1, "_temp");
798
859
  //#endregion
799
- //#region ../diagram/src/context/DefaultMantineProvider.tsx
800
- var Ue = m({
801
- autoContrast: !0,
802
- 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",
803
890
  cursorType: "pointer",
804
- defaultRadius: "sm",
805
- 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"),
806
899
  headings: {
807
- fontWeight: "medium",
808
- sizes: {
809
- h1: { fontWeight: "bold" },
810
- h2: { fontWeight: "medium" }
811
- }
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")
812
909
  },
813
910
  fontSizes: {
814
- xxs: "var(--font-sizes-xxs)",
815
- xs: "var(--font-sizes-xs)",
816
- sm: "var(--font-sizes-sm)",
817
- md: "var(--font-sizes-md)",
818
- lg: "var(--font-sizes-lg)",
819
- xl: "var(--font-sizes-xl)"
911
+ ...sizes("fontSizes"),
912
+ xxs: t("fontSizes.xxs")
820
913
  },
821
914
  spacing: {
822
- xs: "var(--spacing-xs)",
823
- sm: "var(--spacing-sm)",
824
- md: "var(--spacing-md)",
825
- lg: "var(--spacing-lg)",
826
- xl: "var(--spacing-xl)"
915
+ ...sizes("spacing"),
916
+ xxs: t("spacing.xxs")
827
917
  },
918
+ radius: sizes("radii"),
919
+ shadows: sizes("shadows"),
920
+ lineHeights: sizes("lineHeights"),
828
921
  components: {
829
- SegmentedControl: v.extend({ vars: (r, i) => ({ root: { "--sc-font-size": r.fontSizes[i.fz ?? i.size] } }) }),
830
- Portal: x.extend({ defaultProps: { reuseTargetNode: !0 } }),
831
- 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
+ } })
832
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
+ })
833
977
  });
834
- function DefaultMantineProvider(r) {
835
- let i = J(8), a, o, s;
836
- 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);
837
- let c = s ?? Ue, l;
838
- return i[4] !== a || i[5] !== o || i[6] !== c ? (l = /* @__PURE__ */ X(b, {
839
- defaultColorScheme: "auto",
840
- 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,
841
988
  ...o,
842
989
  children: a
843
- }), 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;
844
991
  }
845
992
  //#endregion
846
993
  //#region ../diagram/src/context/EnsureMantine.tsx
847
994
  function EnsureMantine(r) {
848
- let i = J(7), { children: a } = r, o = le(p), t1;
995
+ let i = X(7), { children: a } = r, o = Y(v), t1;
849
996
  i[0] === o ? t1 = i[1] : (t1 = () => {
850
- o || console.warn("LikeC4Diagram must be a child of MantineProvider");
997
+ o || console.warn("LikeC4Diagram must be a child of LikeC4MantineProvider");
851
998
  }, i[0] = o, i[1] = t1);
852
999
  let s;
853
- 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) {
854
1001
  let r;
855
- 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;
856
1003
  }
857
1004
  let c;
858
- 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;
859
1006
  }
860
1007
  //#endregion
861
1008
  //#region ../diagram/src/context/FramerMotionConfig.tsx
862
1009
  function FramerMotionConfig(r) {
863
- 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;
864
1011
  i[0] === c ? l = i[1] : (l = c && { nonce: c }, i[0] = c, i[1] = l);
865
1012
  let u;
866
- return i[2] !== o || i[3] !== s || i[4] !== l ? (u = /* @__PURE__ */ X(ie, {
867
- features: ae,
1013
+ return i[2] !== o || i[3] !== s || i[4] !== l ? (u = /* @__PURE__ */ Q(de, {
1014
+ features: pe,
868
1015
  strict: !0,
869
- children: /* @__PURE__ */ X(se, {
1016
+ children: /* @__PURE__ */ Q(ge, {
870
1017
  reducedMotion: s,
871
1018
  ...l,
872
1019
  children: o
@@ -875,43 +1022,43 @@ function FramerMotionConfig(r) {
875
1022
  }
876
1023
  //#endregion
877
1024
  //#region ../diagram/src/context/LikeC4ModelContext.tsx
878
- var We = K(null), Ge = We.Provider, Ke = K(null), qe = Ke.Provider;
1025
+ var rt = K(null), it = rt.Provider, at = K(null), ot = at.Provider;
879
1026
  function useOptionalLikeC4Model() {
880
- return le(We);
1027
+ return Y(rt);
881
1028
  }
882
1029
  function useOptionalCurrentViewModel() {
883
- return le(Ke);
1030
+ return Y(at);
884
1031
  }
885
1032
  //#endregion
886
1033
  //#region ../diagram/src/hooks/useLikeC4Styles.ts
887
1034
  function useLikeC4Styles() {
888
- return useOptionalLikeC4Model()?.$styles ?? ve.DEFAULT;
1035
+ return useOptionalLikeC4Model()?.$styles ?? Ee.DEFAULT;
889
1036
  }
890
1037
  //#endregion
891
1038
  //#region ../diagram/src/hooks/useId.ts
892
1039
  function useId$1() {
893
- let r = J(2), i = g(), a;
1040
+ let r = X(2), i = S(), a;
894
1041
  return r[0] === i ? a = r[1] : (a = i.replace("mantine-", "likec4-"), r[0] = i, r[1] = a), a;
895
1042
  }
896
1043
  r(useId$1, "useId");
897
1044
  //#endregion
898
1045
  //#region ../diagram/src/context/LikeC4ProjectsContext.ts
899
- var Je = K(null), Ye = Je.Provider;
1046
+ var st = K(null), ct = st.Provider;
900
1047
  function useOptionalProjectsContext() {
901
- return le(Je);
1048
+ return Y(st);
902
1049
  }
903
1050
  //#endregion
904
1051
  //#region ../diagram/src/hooks/useLikeC4Project.ts
905
- var Xe = [];
1052
+ var lt = [];
906
1053
  function onProjectChange(r) {
907
1054
  console.warn(`Triggered callback to change project to ${r}, but no <LikeC4ProjectsProvider/> found`);
908
1055
  }
909
- var Ze = {
910
- projects: Xe,
1056
+ var ut = {
1057
+ projects: lt,
911
1058
  onProjectChange
912
1059
  };
913
1060
  function useLikeC4ProjectsContext() {
914
- return useOptionalProjectsContext() ?? Ze;
1061
+ return useOptionalProjectsContext() ?? ut;
915
1062
  }
916
1063
  function useLikeC4Projects() {
917
1064
  return useLikeC4ProjectsContext().projects;
@@ -925,18 +1072,57 @@ function useLikeC4ProjectId() {
925
1072
  return r.projectId;
926
1073
  }
927
1074
  //#endregion
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
+ });
1113
+ //#endregion
928
1114
  //#region ../diagram/src/base-primitives/edge/EdgeContainer.tsx
929
1115
  function EdgeContainer(r) {
930
- 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;
931
1117
  if (i[0] !== r) {
932
- let { className: _, component: v, selectable: y, selected: b, data: x, animated: S, children: C, style: T, ...E } = r;
933
- a = C, s = T, o = v === void 0 ? "g" : v;
934
- let D = y !== void 0 && y, O = b !== void 0 && b, k, A, j, M, N;
935
- 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);
936
- let P = A === void 0 ? "gray" : A, F = j !== void 0 && j, I = M !== void 0 && M, L = N !== void 0 && N, R = S !== void 0 && 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;
937
1123
  R ||= I;
938
- let z = O && "selected", B = D && "selectable";
939
- 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;
940
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];
941
1127
  let _;
942
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 ? (_ = {
@@ -953,15 +1139,15 @@ function EdgeContainer(r) {
953
1139
  let v = _;
954
1140
  if (o === "svg") {
955
1141
  let r;
956
- 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", {
957
1143
  style: s,
958
1144
  ...v,
959
1145
  children: a
960
1146
  }), i[39] = a, i[40] = v, i[41] = s, i[42] = r) : r = i[42], r;
961
1147
  }
962
- me(o === "g", "EdgeContainer: component must be \"g\" or \"svg\"");
1148
+ xe(o === "g", "EdgeContainer: component must be \"g\" or \"svg\"");
963
1149
  let y;
964
- 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", {
965
1151
  style: s,
966
1152
  ...v,
967
1153
  children: a
@@ -972,63 +1158,63 @@ function _temp(r, i) {
972
1158
  }
973
1159
  //#endregion
974
1160
  //#region ../diagram/src/base-primitives/edge/EdgeLabel.tsx
975
- var Qe = q((r, i) => {
976
- 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;
977
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);
978
- 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, T = d !== void 0 && d, E = f === void 0 ? "all" : f, D;
979
- a[8] !== _ || a[9] !== v ? (D = e(_) || e(v), a[8] = _, a[9] = v, a[10] = D) : D = a[10];
980
- let k = D, A;
981
- a[11] !== s || a[12] !== T || a[13] !== E || a[14] !== S ? (A = w("likec4-edge-label", O({
982
- pointerEvents: E,
983
- isStepEdge: T,
984
- cursor: S || T ? "pointer" : "default"
985
- }), s), a[11] = s, a[12] = T, a[13] = E, a[14] = S, a[15] = A) : A = a[15];
986
- let j = b && !x ? 1.06 : 1, M;
987
- a[16] === j ? M = a[17] : (M = { scale: j }, a[16] = j, a[17] = M);
988
- let N;
989
- 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, {
990
1176
  className: "likec4-edge-label__step-number",
991
1177
  children: l
992
- }), a[18] = T, a[19] = l, a[20] = N) : N = a[20];
993
- let P;
994
- 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, {
995
1181
  className: "likec4-edge-label__contents",
996
1182
  children: [
997
- e(_) && /* @__PURE__ */ X(C, {
1183
+ e(_) && /* @__PURE__ */ Q(L, {
998
1184
  lineClamp: 5,
999
1185
  className: "likec4-edge-label__text",
1000
1186
  children: _
1001
1187
  }),
1002
- e(v) && /* @__PURE__ */ X(C, {
1188
+ e(v) && /* @__PURE__ */ Q(L, {
1003
1189
  className: "likec4-edge-label__technology",
1004
1190
  children: "[ " + v + " ]"
1005
1191
  }),
1006
1192
  o
1007
1193
  ]
1008
- }), a[21] = o, a[22] = k, a[23] = _, a[24] = v, a[25] = P) : P = a[25];
1009
- let F;
1010
- 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, {
1011
1197
  ref: i,
1012
- className: A,
1198
+ className: D,
1013
1199
  "data-edge-id": p,
1014
- animate: M,
1200
+ animate: k,
1015
1201
  ...c,
1016
- children: [N, P]
1017
- }), 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;
1018
1204
  });
1019
- Qe.displayName = "EdgeLabel";
1205
+ pt.displayName = "EdgeLabel";
1020
1206
  //#endregion
1021
1207
  //#region ../diagram/src/base-primitives/edge/EdgeLabelContainer.tsx
1022
1208
  var toCssVarValue = (r) => r === void 0 ? "" : e$1(r) ? `${Math.trunc(r)}px` : r;
1023
1209
  function EdgeLabelContainer(r) {
1024
- let i = J(42), a, o, s, c, l, u;
1210
+ let i = X(42), a, o, s, c, l, u;
1025
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);
1026
- 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, T = b === void 0 ? "gray" : b, E = c?.x ?? y?.x, D = c?.y ?? y?.y;
1027
- if (E === void 0 || D === void 0) return null;
1028
- 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 ?? "";
1029
1215
  m ||= S;
1030
- let k = d, A;
1031
- 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);
1032
1218
  let j = m || S, M;
1033
1219
  i[9] === m ? M = i[10] : (M = m && { "data-likec4-animated": m }, i[9] = m, i[10] = M);
1034
1220
  let N;
@@ -1036,10 +1222,10 @@ function EdgeLabelContainer(r) {
1036
1222
  let P;
1037
1223
  i[13] === C ? P = i[14] : (P = C !== !1 && { "data-likec4-dimmed": C }, i[13] = C, i[14] = P);
1038
1224
  let F;
1039
- 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);
1040
1226
  let I;
1041
- i[17] === D ? I = i[18] : (I = toCssVarValue(D), i[17] = D, i[18] = I);
1042
- 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;
1043
1229
  i[19] === L ? R = i[20] : (R = { transform: L }, i[19] = L, i[20] = R);
1044
1230
  let z;
1045
1231
  i[21] === y ? z = i[22] : (z = y && { maxWidth: y.width + 20 }, i[21] = y, i[22] = z);
@@ -1049,16 +1235,16 @@ function EdgeLabelContainer(r) {
1049
1235
  ...z
1050
1236
  }, i[23] = s, i[24] = z, i[25] = B) : B = i[25];
1051
1237
  let V;
1052
- i[26] !== a || i[27] !== B ? (V = /* @__PURE__ */ X("div", {
1238
+ i[26] !== a || i[27] !== B ? (V = /* @__PURE__ */ Q("div", {
1053
1239
  style: B,
1054
1240
  children: a
1055
1241
  }), i[26] = a, i[27] = B, i[28] = V) : V = i[28];
1056
1242
  let H;
1057
- 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", {
1058
1244
  ...l,
1059
- className: A,
1245
+ className: k,
1060
1246
  "data-likec4-hovered": x,
1061
- "data-likec4-color": T,
1247
+ "data-likec4-color": w,
1062
1248
  "data-edge-active": S,
1063
1249
  "data-edge-animated": j,
1064
1250
  ...M,
@@ -1066,13 +1252,13 @@ function EdgeLabelContainer(r) {
1066
1252
  ...P,
1067
1253
  style: R,
1068
1254
  children: V
1069
- }, 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;
1070
1256
  }
1071
1257
  //#endregion
1072
1258
  //#region ../diagram/src/base-primitives/edge/EdgeMarkers.tsx
1073
1259
  var Open = (r) => {
1074
- let i = J(3), a;
1075
- 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", {
1076
1262
  d: "M0,0 L7,4 L0,8 L4,4 Z",
1077
1263
  stroke: "context-stroke",
1078
1264
  fill: "context-stroke",
@@ -1081,7 +1267,7 @@ var Open = (r) => {
1081
1267
  strokeLinecap: "round"
1082
1268
  }), i[0] = a) : a = i[0];
1083
1269
  let o;
1084
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1270
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1085
1271
  viewBox: "-4 -4 14 16",
1086
1272
  refX: 5,
1087
1273
  refY: 4,
@@ -1093,14 +1279,14 @@ var Open = (r) => {
1093
1279
  children: a
1094
1280
  }), i[1] = r, i[2] = o), o;
1095
1281
  }, Arrow = (r) => {
1096
- let i = J(3), a;
1097
- 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", {
1098
1284
  d: "M 0 0 L 8 3 L 0 6 L 1 3 z",
1099
1285
  fill: "context-stroke",
1100
1286
  strokeWidth: 0
1101
1287
  }), i[0] = a) : a = i[0];
1102
1288
  let o;
1103
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1289
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1104
1290
  viewBox: "-1 -1 12 10",
1105
1291
  refX: 4,
1106
1292
  refY: 3,
@@ -1112,14 +1298,14 @@ var Open = (r) => {
1112
1298
  children: a
1113
1299
  }), i[1] = r, i[2] = o), o;
1114
1300
  }, Crow = (r) => {
1115
- let i = J(3), a;
1116
- 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", {
1117
1303
  d: "M 8 0 L 0 4 L 8 8 M 8 4 L 0 4",
1118
1304
  fill: "none",
1119
1305
  strokeWidth: 1
1120
1306
  }), i[0] = a) : a = i[0];
1121
1307
  let o;
1122
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1308
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1123
1309
  viewBox: "-1 -1 12 12",
1124
1310
  refX: 8,
1125
1311
  refY: 4,
@@ -1131,8 +1317,8 @@ var Open = (r) => {
1131
1317
  children: a
1132
1318
  }), i[1] = r, i[2] = o), o;
1133
1319
  }, OArrow = (r) => {
1134
- let i = J(3), a;
1135
- 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", {
1136
1322
  d: "M 0 0 L 8 3 L 0 6 L 1 3 z",
1137
1323
  stroke: "context-stroke",
1138
1324
  fill: "var(--likec4-background-color)",
@@ -1141,7 +1327,7 @@ var Open = (r) => {
1141
1327
  strokeLinecap: "square"
1142
1328
  }), i[0] = a) : a = i[0];
1143
1329
  let o;
1144
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1330
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1145
1331
  viewBox: "-1 -1 12 10",
1146
1332
  refX: 4,
1147
1333
  refY: 3,
@@ -1153,15 +1339,15 @@ var Open = (r) => {
1153
1339
  children: a
1154
1340
  }), i[1] = r, i[2] = o), o;
1155
1341
  }, Diamond = (r) => {
1156
- let i = J(3), a;
1157
- 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", {
1158
1344
  d: "M5,0 L10,4 L5,8 L0,4 Z",
1159
1345
  fill: "context-stroke",
1160
1346
  strokeWidth: 0,
1161
1347
  strokeLinecap: "round"
1162
1348
  }), i[0] = a) : a = i[0];
1163
1349
  let o;
1164
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1350
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1165
1351
  viewBox: "-4 -4 16 14",
1166
1352
  refX: 5,
1167
1353
  refY: 4,
@@ -1173,8 +1359,8 @@ var Open = (r) => {
1173
1359
  children: a
1174
1360
  }), i[1] = r, i[2] = o), o;
1175
1361
  }, ODiamond = (r) => {
1176
- let i = J(3), a;
1177
- 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", {
1178
1364
  d: "M5,0 L10,4 L5,8 L0,4 Z",
1179
1365
  stroke: "context-stroke",
1180
1366
  fill: "var(--likec4-background-color)",
@@ -1182,7 +1368,7 @@ var Open = (r) => {
1182
1368
  strokeLinecap: "round"
1183
1369
  }), i[0] = a) : a = i[0];
1184
1370
  let o;
1185
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1371
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1186
1372
  viewBox: "-4 -4 16 14",
1187
1373
  refX: 6,
1188
1374
  refY: 4,
@@ -1194,8 +1380,8 @@ var Open = (r) => {
1194
1380
  children: a
1195
1381
  }), i[1] = r, i[2] = o), o;
1196
1382
  }, Dot = (r) => {
1197
- let i = J(3), a;
1198
- 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", {
1199
1385
  strokeWidth: 0,
1200
1386
  fill: "context-stroke",
1201
1387
  cx: 4,
@@ -1203,7 +1389,7 @@ var Open = (r) => {
1203
1389
  r: 3
1204
1390
  }), i[0] = a) : a = i[0];
1205
1391
  let o;
1206
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1392
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1207
1393
  viewBox: "0 0 10 10",
1208
1394
  refX: 4,
1209
1395
  refY: 4,
@@ -1213,8 +1399,8 @@ var Open = (r) => {
1213
1399
  children: a
1214
1400
  }), i[1] = r, i[2] = o), o;
1215
1401
  }, ODot = (r) => {
1216
- let i = J(3), a;
1217
- 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", {
1218
1404
  strokeWidth: 1.25,
1219
1405
  stroke: "context-stroke",
1220
1406
  fill: "var(--likec4-background-color)",
@@ -1223,7 +1409,7 @@ var Open = (r) => {
1223
1409
  r: 3
1224
1410
  }), i[0] = a) : a = i[0];
1225
1411
  let o;
1226
- return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ X("marker", {
1412
+ return i[1] === r ? o = i[2] : (o = /* @__PURE__ */ Q("marker", {
1227
1413
  viewBox: "0 0 10 10",
1228
1414
  refX: 4,
1229
1415
  refY: 4,
@@ -1232,7 +1418,7 @@ var Open = (r) => {
1232
1418
  ...r,
1233
1419
  children: a
1234
1420
  }), i[1] = r, i[2] = o), o;
1235
- }, $e = {
1421
+ }, mt = {
1236
1422
  Arrow,
1237
1423
  Crow,
1238
1424
  OArrow,
@@ -1243,7 +1429,7 @@ var Open = (r) => {
1243
1429
  ODot
1244
1430
  };
1245
1431
  function arrowTypeToMarker(r) {
1246
- if (!(!r || r === "none")) switch (r) {
1432
+ if (r && r !== "none") switch (r) {
1247
1433
  case "normal": return "Arrow";
1248
1434
  case "crow": return "Crow";
1249
1435
  case "onormal": return "OArrow";
@@ -1253,21 +1439,21 @@ function arrowTypeToMarker(r) {
1253
1439
  case "vee": return "Open";
1254
1440
  case "dot": return "Dot";
1255
1441
  case "odot": return "ODot";
1256
- default: he(r);
1442
+ default: Se(r);
1257
1443
  }
1258
1444
  }
1259
1445
  //#endregion
1260
1446
  //#region ../diagram/src/base-primitives/edge/EdgePath.tsx
1261
- var et = q((r, i) => {
1262
- 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 || p, x = s !== void 0 && 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");
1263
1449
  _ === "back" && ([S, C] = [C, S]);
1264
- let E = S ? $e[S] : null, O = C ? $e[C] : null, k = g === "dotted", A = k || g === "dashed", j;
1265
- k ? j = "1,8" : A && (j = "8,10");
1266
- let M, N, P, F, I, L, R, z;
1267
- 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) {
1268
- let r = D();
1269
- a[18] !== h || a[19] !== x || a[20] !== c || a[21] !== b || a[22] !== u ? (N = b && /* @__PURE__ */ X("path", {
1270
- 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" })),
1271
1457
  onPointerDown: c,
1272
1458
  d: u,
1273
1459
  style: {
@@ -1276,56 +1462,56 @@ var et = q((r, i) => {
1276
1462
  strokeOpacity: 0,
1277
1463
  ...x ? { display: "none" } : {}
1278
1464
  }
1279
- }), 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];
1280
1466
  let o = `path("${u}")`, s;
1281
- a[24] === o ? s = a[25] : (s = { offsetPath: o }, a[24] = o, a[25] = s), P = /* @__PURE__ */ X("circle", {
1282
- 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),
1283
1469
  "data-edge-id": d,
1284
1470
  style: s
1285
- }), L = r.markersCtx, R = c;
1471
+ }), I = r.markersCtx, L = c;
1286
1472
  let l;
1287
- 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];
1288
1474
  let f;
1289
- 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", {
1290
- 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" })),
1291
1477
  d: u,
1292
1478
  style: m,
1293
1479
  strokeLinecap: "round"
1294
- }), 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;
1295
- } 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];
1296
- let B = E ? `url(#start${d})` : void 0, ee = O ? `url(#end${d})` : void 0, V;
1297
- 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", {
1298
- ref: F,
1299
- 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,
1300
1486
  d: u,
1301
1487
  style: m,
1302
1488
  strokeWidth: l,
1303
1489
  strokeLinecap: "round",
1304
- strokeDasharray: j,
1490
+ strokeDasharray: O,
1305
1491
  markerStart: B,
1306
- markerEnd: ee
1307
- }), 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];
1308
- let H;
1309
- a[44] !== M || a[45] !== V || a[46] !== L || a[47] !== R || a[48] !== z ? (H = /* @__PURE__ */ Z("g", {
1310
- className: L,
1311
- 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,
1312
1498
  children: [
1313
- z,
1314
- M,
1315
- V
1499
+ R,
1500
+ k,
1501
+ H
1316
1502
  ]
1317
- }), a[44] = M, a[45] = V, a[46] = L, a[47] = R, a[48] = z, a[49] = H) : H = a[49];
1318
- let U;
1319
- 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,
1320
1507
  N,
1321
- P,
1322
- H
1323
- ] }), 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;
1324
1510
  });
1325
- et.displayName = "EdgePath";
1511
+ ht.displayName = "EdgePath";
1326
1512
  //#endregion
1327
1513
  //#region ../diagram/src/base-primitives/element/ElementActionButtons.tsx
1328
- var tt = {
1514
+ var gt = {
1329
1515
  normal: {
1330
1516
  originY: 0,
1331
1517
  opacity: .75,
@@ -1346,7 +1532,7 @@ var tt = {
1346
1532
  }
1347
1533
  };
1348
1534
  function ElementActionButtons(r) {
1349
- let i = J(14), { selected: a, data: o, buttons: s } = r, c = a !== void 0 && a, { hovered: l } = o, u = l !== void 0 && 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();
1350
1536
  if (!s.length) return null;
1351
1537
  let f;
1352
1538
  bb0: switch (!0) {
@@ -1359,15 +1545,15 @@ function ElementActionButtons(r) {
1359
1545
  default: f = "normal";
1360
1546
  }
1361
1547
  let p = u || c, m;
1362
- i[0] === Symbol.for("react.memo_cache_sentinel") ? (m = A(), i[0] = m) : m = i[0];
1363
- let h = f, _ = `${u}-${c}`, v;
1364
- i[1] === Symbol.for("react.memo_cache_sentinel") ? (v = w("nodrag nopan"), i[1] = v) : v = i[1];
1365
- 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;
1366
1552
  if (i[2] !== s || i[3] !== d || i[4] !== p) {
1367
1553
  let t9;
1368
- i[6] !== d || i[7] !== p ? (t9 = (r, i) => /* @__PURE__ */ X(y, {
1369
- component: oe,
1370
- className: k({}),
1554
+ i[6] !== d || i[7] !== p ? (t9 = (r, i) => /* @__PURE__ */ Q(E, {
1555
+ component: me,
1556
+ className: H({}),
1371
1557
  initial: !1,
1372
1558
  whileTap: { scale: 1 },
1373
1559
  whileHover: { scale: 1.3 },
@@ -1376,24 +1562,24 @@ function ElementActionButtons(r) {
1376
1562
  "aria-label": r.ariaLabel ?? r.key ?? "Element action",
1377
1563
  onClick: r.onClick,
1378
1564
  onDoubleClick: stopPropagation,
1379
- children: r.icon || /* @__PURE__ */ X(we, {})
1380
- }, `${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;
1381
- } else b = i[5];
1382
- let x;
1383
- 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", {
1384
1570
  className: m,
1385
- children: /* @__PURE__ */ X(G, {
1571
+ children: /* @__PURE__ */ Q(he, {
1386
1572
  layoutRoot: !0,
1387
1573
  initial: !1,
1388
- variants: tt,
1574
+ variants: gt,
1389
1575
  animate: h,
1390
- layoutDependency: _,
1576
+ layoutDependency: g,
1391
1577
  "data-likec4-hovered": u,
1392
- className: v,
1578
+ className: _,
1393
1579
  onClick: stopPropagation,
1394
- children: b
1580
+ children: v
1395
1581
  })
1396
- }), 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;
1397
1583
  }
1398
1584
  //#endregion
1399
1585
  //#region ../diagram/src/base-primitives/element/ElementData.tsx
@@ -1406,15 +1592,15 @@ var resolveIconColor = (r, i) => {
1406
1592
  function shouldBlendIconWithPalette(r, i) {
1407
1593
  return !i && r?.startsWith("bootstrap:") === !0;
1408
1594
  }
1409
- var nt = q((r, i) => {
1410
- let a = J(29), o, s, c, l;
1595
+ var _t = q((r, i) => {
1596
+ let a = X(29), o, s, c, l;
1411
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);
1412
1598
  let u = useLikeC4Styles(), d;
1413
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];
1414
1600
  let f = d, p;
1415
1601
  a[8] !== s || a[9] !== u ? (p = resolveIconColor(u, s), a[8] = s, a[9] = u, a[10] = p) : p = a[10];
1416
1602
  let m = p, h = !!m, g;
1417
- a[11] !== o || a[12] !== s.icon || a[13] !== s.style.iconPosition || a[14] !== h ? (g = w(o, M({
1603
+ a[11] !== o || a[12] !== s.icon || a[13] !== s.style.iconPosition || a[14] !== h ? (g = A(o, F({
1418
1604
  iconPosition: s.style.iconPosition,
1419
1605
  withIconColor: h,
1420
1606
  withIconBlend: shouldBlendIconWithPalette(s.icon, h)
@@ -1430,68 +1616,68 @@ var nt = q((r, i) => {
1430
1616
  ...v
1431
1617
  }, a[20] = l, a[21] = _, a[22] = v, a[23] = y) : y = a[23];
1432
1618
  let b;
1433
- return a[24] !== c || a[25] !== i || a[26] !== g || a[27] !== y ? (b = /* @__PURE__ */ X("div", {
1619
+ return a[24] !== c || a[25] !== i || a[26] !== g || a[27] !== y ? (b = /* @__PURE__ */ Q("div", {
1434
1620
  ...c,
1435
1621
  ref: i,
1436
1622
  className: g,
1437
1623
  style: y
1438
1624
  }), a[24] = c, a[25] = i, a[26] = g, a[27] = y, a[28] = b) : b = a[28], b;
1439
1625
  }), Icon = (r) => {
1440
- let i = J(6), a, o;
1626
+ let i = X(6), a, o;
1441
1627
  i[0] === r ? (a = i[1], o = i[2]) : ({data: a, ...o} = r, i[0] = r, i[1] = a, i[2] = o);
1442
1628
  let s;
1443
- return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ X(IconRenderer, {
1629
+ return i[3] !== a || i[4] !== o ? (s = /* @__PURE__ */ Q(IconRenderer, {
1444
1630
  element: a,
1445
1631
  ...o
1446
1632
  }), i[3] = a, i[4] = o, i[5] = s) : s = i[5], s;
1447
- }, rt = q((r, i) => {
1448
- let a = J(9), o, s;
1633
+ }, vt = q((r, i) => {
1634
+ let a = X(9), o, s;
1449
1635
  a[0] === r ? (o = a[1], s = a[2]) : ({className: o, ...s} = r, a[0] = r, a[1] = o, a[2] = s);
1450
1636
  let c;
1451
- 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);
1452
1638
  let l;
1453
- 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", {
1454
1640
  ...s,
1455
1641
  className: c,
1456
1642
  ref: i
1457
1643
  }), a[5] = s, a[6] = i, a[7] = c, a[8] = l) : l = a[8], l;
1458
- }), it = q((r, i) => {
1459
- let a = J(11), o, s, c;
1644
+ }), yt = q((r, i) => {
1645
+ let a = X(11), o, s, c;
1460
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);
1461
1647
  let { title: l } = c, u;
1462
- 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);
1463
1649
  let d;
1464
- 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", {
1465
1651
  ...s,
1466
1652
  className: u,
1467
1653
  "data-likec4-node-title": "",
1468
1654
  ref: i,
1469
1655
  children: l
1470
1656
  }), a[6] = s, a[7] = i, a[8] = u, a[9] = l, a[10] = d) : d = a[10], d;
1471
- }), at = q((r, i) => {
1472
- let a = J(10), o, s, c, l;
1657
+ }), bt = q((r, i) => {
1658
+ let a = X(10), o, s, c, l;
1473
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);
1474
1660
  let u = c?.technology ?? o, d;
1475
- 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", {
1476
1662
  ...l,
1477
- className: w(s, "likec4-element-technology"),
1663
+ className: A(s, "likec4-element-technology"),
1478
1664
  "data-likec4-node-technology": "",
1479
1665
  ref: i,
1480
1666
  children: u
1481
1667
  }) : null, a[5] = s, a[6] = l, a[7] = i, a[8] = u, a[9] = d) : d = a[9], d;
1482
- }), ot = q((r, i) => {
1483
- let a = J(16), o, s, c;
1668
+ }), xt = q((r, i) => {
1669
+ let a = X(16), o, s, c;
1484
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);
1485
1671
  let { description: u } = c;
1486
1672
  if (!u) return null;
1487
1673
  let d;
1488
- a[4] === u ? d = a[5] : (d = ye.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);
1489
1675
  let f = d, p;
1490
- 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);
1491
1677
  let m = f.isMarkdown ? "8rem" : void 0, h;
1492
1678
  a[8] === m ? h = a[9] : (h = { maxHeight: m }, a[8] = m, a[9] = h);
1493
1679
  let g;
1494
- 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, {
1495
1681
  ...s,
1496
1682
  className: p,
1497
1683
  "data-likec4-node-description": "",
@@ -1503,31 +1689,31 @@ var nt = q((r, i) => {
1503
1689
  }), a[10] = f, a[11] = s, a[12] = i, a[13] = p, a[14] = h, a[15] = g) : g = a[15], g;
1504
1690
  });
1505
1691
  function ElementData(r) {
1506
- let i = J(9), { data: a, "aria-hidden": o } = r, s;
1507
- 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);
1508
1694
  let c;
1509
- i[2] === a ? c = i[3] : (c = /* @__PURE__ */ Z(rt, { children: [
1510
- /* @__PURE__ */ X(it, { data: a }),
1511
- /* @__PURE__ */ X(at, { data: a }),
1512
- /* @__PURE__ */ X(ot, { 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 })
1513
1699
  ] }), i[2] = a, i[3] = c);
1514
1700
  let l;
1515
- return i[4] !== o || i[5] !== a || i[6] !== s || i[7] !== c ? (l = /* @__PURE__ */ Z(nt, {
1701
+ return i[4] !== o || i[5] !== a || i[6] !== s || i[7] !== c ? (l = /* @__PURE__ */ $(_t, {
1516
1702
  data: a,
1517
1703
  "aria-hidden": o,
1518
1704
  children: [s, c]
1519
1705
  }), i[4] = o, i[5] = a, i[6] = s, i[7] = c, i[8] = l) : l = i[8], l;
1520
1706
  }
1521
- ElementData.Root = nt, ElementData.Icon = Icon, ElementData.Content = rt, ElementData.Title = it, ElementData.Technology = at, ElementData.Description = ot;
1707
+ ElementData.Root = _t, ElementData.Icon = Icon, ElementData.Content = vt, ElementData.Title = yt, ElementData.Technology = bt, ElementData.Description = xt;
1522
1708
  //#endregion
1523
1709
  //#region ../diagram/src/base-primitives/element/ElementNodeContainer.tsx
1524
- var st = {
1710
+ var St = {
1525
1711
  normal: { scale: 1 },
1526
1712
  hovered: { scale: 1.05 },
1527
1713
  selected: { scale: 1.02 },
1528
1714
  tap: { scale: .98 }
1529
- }, ct = q((r, i) => {
1530
- let a = J(34), o, s, c, l, u;
1715
+ }, Ct = q((r, i) => {
1716
+ let a = X(34), o, s, c, l, u;
1531
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);
1532
1718
  let { selected: d, selectable: f, data: p } = u, m = d !== void 0 && d, h = f !== void 0 && f, g, _, v, y, b;
1533
1719
  if (a[6] !== m || a[7] !== p) {
@@ -1542,38 +1728,38 @@ var st = {
1542
1728
  break bb0;
1543
1729
  default: b = "normal";
1544
1730
  }
1545
- y = be(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;
1546
1732
  } else g = a[8], _ = a[9], v = a[10], y = a[11], b = a[12];
1547
- let { size: x, padding: S, textSize: C } = y, T;
1548
- a[13] === s ? T = a[14] : (T = w(P(), "group", s), a[13] = s, a[14] = T);
1549
- let E;
1550
- 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 && {
1551
1737
  animate: b,
1552
1738
  whileTap: "tap"
1553
- }, a[15] = h, a[16] = b, a[17] = E) : E = a[17];
1554
- let D;
1555
- a[18] === _ ? D = a[19] : (D = _ !== !1 && { "data-likec4-dimmed": _ }, a[18] = _, a[19] = D);
1556
- let O = l, k;
1557
- 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, {
1558
1744
  ref: i,
1559
- className: T,
1560
- variants: st,
1745
+ className: w,
1746
+ variants: St,
1561
1747
  initial: !1,
1562
- ...E,
1748
+ ...T,
1563
1749
  "data-likec4-hovered": v,
1564
1750
  "data-likec4-color": g.color,
1565
1751
  "data-likec4-shape": g.shape,
1566
1752
  "data-likec4-shape-size": x,
1567
1753
  "data-likec4-spacing": S,
1568
1754
  "data-likec4-text-size": C,
1569
- ...D,
1570
- style: O,
1755
+ ...E,
1756
+ style: D,
1571
1757
  tabIndex: -1,
1572
1758
  ...c,
1573
1759
  children: o
1574
- }), 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;
1575
1761
  });
1576
- ct.displayName = "ElementNodeContainer";
1762
+ Ct.displayName = "ElementNodeContainer";
1577
1763
  //#endregion
1578
1764
  //#region ../diagram/src/base-primitives/element/ElementShape.tsx
1579
1765
  function cylinderSVGPath(r, i, a = .07) {
@@ -1631,12 +1817,12 @@ function queueSVGPath(r, i, a = .185) {
1631
1817
  rx: c
1632
1818
  };
1633
1819
  }
1634
- var lt = {
1820
+ var wt = {
1635
1821
  width: 115,
1636
1822
  height: 120,
1637
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"
1638
1824
  }, ComponentTopLeftRect = (r) => {
1639
- 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;
1640
1826
  bb0: switch (o) {
1641
1827
  case "xs":
1642
1828
  case "sm":
@@ -1649,10 +1835,10 @@ var lt = {
1649
1835
  case "xl":
1650
1836
  s = 70, c = 32, l = -24, u = 32, d = 18;
1651
1837
  break bb0;
1652
- default: he(o);
1838
+ default: Se(o);
1653
1839
  }
1654
1840
  let f = u + (c + d) * a, p;
1655
- 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", {
1656
1842
  x: l,
1657
1843
  y: f,
1658
1844
  width: s,
@@ -1663,26 +1849,26 @@ var lt = {
1663
1849
  }), i[0] = c, i[1] = l, i[2] = f, i[3] = s, i[4] = p) : p = i[4], p;
1664
1850
  };
1665
1851
  function ShapeSvg(r) {
1666
- 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;
1667
1853
  switch (a) {
1668
1854
  case "component": {
1669
1855
  let r;
1670
- i[0] !== s || i[1] !== o ? (r = /* @__PURE__ */ X("rect", {
1856
+ i[0] !== s || i[1] !== o ? (r = /* @__PURE__ */ Q("rect", {
1671
1857
  width: o,
1672
1858
  height: s,
1673
1859
  rx: 6,
1674
1860
  strokeWidth: 0
1675
1861
  }), i[0] = s, i[1] = o, i[2] = r) : r = i[2];
1676
1862
  let a, c;
1677
- 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, {
1678
1864
  index: 0,
1679
1865
  size: l
1680
- }), c = /* @__PURE__ */ X(ComponentTopLeftRect, {
1866
+ }), c = /* @__PURE__ */ Q(ComponentTopLeftRect, {
1681
1867
  index: 1,
1682
1868
  size: l
1683
1869
  }), i[3] = l, i[4] = a, i[5] = c);
1684
1870
  let u;
1685
- 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: [
1686
1872
  r,
1687
1873
  a,
1688
1874
  c
@@ -1690,7 +1876,7 @@ function ShapeSvg(r) {
1690
1876
  }
1691
1877
  case "mobile": {
1692
1878
  let r;
1693
- i[10] !== s || i[11] !== o ? (r = /* @__PURE__ */ X("rect", {
1879
+ i[10] !== s || i[11] !== o ? (r = /* @__PURE__ */ Q("rect", {
1694
1880
  width: o,
1695
1881
  height: s,
1696
1882
  rx: 6,
@@ -1698,13 +1884,13 @@ function ShapeSvg(r) {
1698
1884
  strokeWidth: 0
1699
1885
  }), i[10] = s, i[11] = o, i[12] = r) : r = i[12];
1700
1886
  let a = s / 2, c;
1701
- i[13] === a ? c = i[14] : (c = /* @__PURE__ */ X("circle", {
1887
+ i[13] === a ? c = i[14] : (c = /* @__PURE__ */ Q("circle", {
1702
1888
  cx: 17,
1703
1889
  cy: a,
1704
1890
  r: 12
1705
1891
  }), i[13] = a, i[14] = c);
1706
1892
  let l = o - 44, u = s - 24, d;
1707
- i[15] !== l || i[16] !== u ? (d = /* @__PURE__ */ X("rect", {
1893
+ i[15] !== l || i[16] !== u ? (d = /* @__PURE__ */ Q("rect", {
1708
1894
  x: 33,
1709
1895
  y: 12,
1710
1896
  width: l,
@@ -1712,19 +1898,19 @@ function ShapeSvg(r) {
1712
1898
  rx: 5
1713
1899
  }), i[15] = l, i[16] = u, i[17] = d) : d = i[17];
1714
1900
  let f;
1715
- i[18] !== c || i[19] !== d ? (f = /* @__PURE__ */ Z("g", {
1901
+ i[18] !== c || i[19] !== d ? (f = /* @__PURE__ */ $("g", {
1716
1902
  "data-likec4-fill": "fill",
1717
1903
  strokeWidth: 0,
1718
1904
  children: [c, d]
1719
1905
  }), i[18] = c, i[19] = d, i[20] = f) : f = i[20];
1720
1906
  let p;
1721
- 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;
1722
1908
  }
1723
1909
  case "document": {
1724
1910
  let r;
1725
1911
  i[24] !== s || i[25] !== o ? (r = docSVGPath(o, s), i[24] = s, i[25] = o, i[26] = r) : r = i[26];
1726
1912
  let { path: a } = r, c;
1727
- return i[27] === a ? c = i[28] : (c = /* @__PURE__ */ X("path", {
1913
+ return i[27] === a ? c = i[28] : (c = /* @__PURE__ */ Q("path", {
1728
1914
  d: a,
1729
1915
  "data-likec4-fill": "fill",
1730
1916
  strokeWidth: 2
@@ -1732,7 +1918,7 @@ function ShapeSvg(r) {
1732
1918
  }
1733
1919
  case "browser": {
1734
1920
  let r;
1735
- i[29] !== s || i[30] !== o ? (r = /* @__PURE__ */ X("rect", {
1921
+ i[29] !== s || i[30] !== o ? (r = /* @__PURE__ */ Q("rect", {
1736
1922
  width: o,
1737
1923
  height: s,
1738
1924
  rx: 6,
@@ -1740,21 +1926,21 @@ function ShapeSvg(r) {
1740
1926
  strokeWidth: 0
1741
1927
  }), i[29] = s, i[30] = o, i[31] = r) : r = i[31];
1742
1928
  let a, c, l;
1743
- 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", {
1744
1930
  cx: 16,
1745
1931
  cy: 17,
1746
1932
  r: 7
1747
- }), c = /* @__PURE__ */ X("circle", {
1933
+ }), c = /* @__PURE__ */ Q("circle", {
1748
1934
  cx: 36,
1749
1935
  cy: 17,
1750
1936
  r: 7
1751
- }), l = /* @__PURE__ */ X("circle", {
1937
+ }), l = /* @__PURE__ */ Q("circle", {
1752
1938
  cx: 56,
1753
1939
  cy: 17,
1754
1940
  r: 7
1755
1941
  }), i[32] = a, i[33] = c, i[34] = l) : (a = i[32], c = i[33], l = i[34]);
1756
1942
  let u = o - 80, d;
1757
- i[35] === u ? d = i[36] : (d = /* @__PURE__ */ X("rect", {
1943
+ i[35] === u ? d = i[36] : (d = /* @__PURE__ */ Q("rect", {
1758
1944
  x: 70,
1759
1945
  y: 8,
1760
1946
  width: u,
@@ -1762,7 +1948,7 @@ function ShapeSvg(r) {
1762
1948
  rx: 4
1763
1949
  }), i[35] = u, i[36] = d);
1764
1950
  let f = o - 20, p = s - 42, m;
1765
- i[37] !== f || i[38] !== p ? (m = /* @__PURE__ */ X("rect", {
1951
+ i[37] !== f || i[38] !== p ? (m = /* @__PURE__ */ Q("rect", {
1766
1952
  x: 10,
1767
1953
  y: 32,
1768
1954
  width: f,
@@ -1770,7 +1956,7 @@ function ShapeSvg(r) {
1770
1956
  rx: 4
1771
1957
  }), i[37] = f, i[38] = p, i[39] = m) : m = i[39];
1772
1958
  let h;
1773
- i[40] !== m || i[41] !== d ? (h = /* @__PURE__ */ Z("g", {
1959
+ i[40] !== m || i[41] !== d ? (h = /* @__PURE__ */ $("g", {
1774
1960
  "data-likec4-fill": "fill",
1775
1961
  strokeWidth: 0,
1776
1962
  children: [
@@ -1782,44 +1968,44 @@ function ShapeSvg(r) {
1782
1968
  ]
1783
1969
  }), i[40] = m, i[41] = d, i[42] = h) : h = i[42];
1784
1970
  let g;
1785
- 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;
1786
1972
  }
1787
1973
  case "person": {
1788
1974
  let r;
1789
- i[46] !== s || i[47] !== o ? (r = /* @__PURE__ */ X("rect", {
1975
+ i[46] !== s || i[47] !== o ? (r = /* @__PURE__ */ Q("rect", {
1790
1976
  width: o,
1791
1977
  height: s,
1792
1978
  rx: 6,
1793
1979
  strokeWidth: 0
1794
1980
  }), i[46] = s, i[47] = o, i[48] = r) : r = i[48];
1795
- let a = o - lt.width - 6, c = s - lt.height, l;
1796
- 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", {
1797
1983
  strokeWidth: 0,
1798
- d: lt.path
1984
+ d: wt.path
1799
1985
  }), i[49] = l) : l = i[49];
1800
1986
  let u;
1801
- i[50] !== a || i[51] !== c ? (u = /* @__PURE__ */ X("svg", {
1987
+ i[50] !== a || i[51] !== c ? (u = /* @__PURE__ */ Q("svg", {
1802
1988
  x: a,
1803
1989
  y: c,
1804
- width: lt.width,
1805
- height: lt.height,
1806
- viewBox: `0 0 ${lt.width} ${lt.height}`,
1990
+ width: wt.width,
1991
+ height: wt.height,
1992
+ viewBox: `0 0 ${wt.width} ${wt.height}`,
1807
1993
  "data-likec4-fill": "mix-stroke",
1808
1994
  children: l
1809
1995
  }), i[50] = a, i[51] = c, i[52] = u) : u = i[52];
1810
1996
  let d;
1811
- 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;
1812
1998
  }
1813
1999
  case "queue": {
1814
2000
  let r;
1815
2001
  i[56] !== s || i[57] !== o ? (r = queueSVGPath(o, s), i[56] = s, i[57] = o, i[58] = r) : r = i[58];
1816
2002
  let { path: a, rx: c, ry: l } = r, u;
1817
- i[59] === a ? u = i[60] : (u = /* @__PURE__ */ X("path", {
2003
+ i[59] === a ? u = i[60] : (u = /* @__PURE__ */ Q("path", {
1818
2004
  d: a,
1819
2005
  strokeWidth: 2
1820
2006
  }), i[59] = a, i[60] = u);
1821
2007
  let d = l - .75, f;
1822
- 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", {
1823
2009
  cx: c,
1824
2010
  cy: l,
1825
2011
  ry: d,
@@ -1828,18 +2014,18 @@ function ShapeSvg(r) {
1828
2014
  strokeWidth: 2
1829
2015
  }), i[61] = c, i[62] = l, i[63] = d, i[64] = f) : f = i[64];
1830
2016
  let p;
1831
- 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;
1832
2018
  }
1833
2019
  case "bucket": {
1834
2020
  let r;
1835
2021
  i[68] !== s || i[69] !== o ? (r = bucketSVGPath(o, s), i[68] = s, i[69] = o, i[70] = r) : r = i[70];
1836
2022
  let { path: a, topRx: c, topRy: l } = r, u;
1837
- i[71] === a ? u = i[72] : (u = /* @__PURE__ */ X("path", {
2023
+ i[71] === a ? u = i[72] : (u = /* @__PURE__ */ Q("path", {
1838
2024
  d: a,
1839
2025
  strokeWidth: 2
1840
2026
  }), i[71] = a, i[72] = u);
1841
2027
  let d = o / 2, f;
1842
- 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", {
1843
2029
  cx: d,
1844
2030
  cy: l,
1845
2031
  rx: c,
@@ -1848,19 +2034,19 @@ function ShapeSvg(r) {
1848
2034
  strokeWidth: 2
1849
2035
  }), i[73] = d, i[74] = c, i[75] = l, i[76] = f) : f = i[76];
1850
2036
  let p;
1851
- 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;
1852
2038
  }
1853
2039
  case "storage":
1854
2040
  case "cylinder": {
1855
2041
  let r;
1856
2042
  i[80] !== s || i[81] !== o ? (r = cylinderSVGPath(o, s), i[80] = s, i[81] = o, i[82] = r) : r = i[82];
1857
2043
  let { path: a, rx: c, ry: l } = r, u;
1858
- i[83] === a ? u = i[84] : (u = /* @__PURE__ */ X("path", {
2044
+ i[83] === a ? u = i[84] : (u = /* @__PURE__ */ Q("path", {
1859
2045
  d: a,
1860
2046
  strokeWidth: 2
1861
2047
  }), i[83] = a, i[84] = u);
1862
2048
  let d = c - .75, f;
1863
- 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", {
1864
2050
  cx: c,
1865
2051
  cy: l,
1866
2052
  ry: l,
@@ -1869,24 +2055,24 @@ function ShapeSvg(r) {
1869
2055
  strokeWidth: 2
1870
2056
  }), i[85] = c, i[86] = l, i[87] = d, i[88] = f) : f = i[88];
1871
2057
  let p;
1872
- 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;
1873
2059
  }
1874
2060
  default: {
1875
2061
  let r;
1876
- return i[92] === a ? r = i[93] : (r = he(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;
1877
2063
  }
1878
2064
  }
1879
2065
  }
1880
2066
  function ShapeSvgOutline(r) {
1881
- 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;
1882
2068
  bb0: switch (a) {
1883
2069
  case "bucket": {
1884
2070
  let r = o + 6, a = s + 6, l;
1885
2071
  i[0] !== r || i[1] !== a ? (l = bucketSVGPath(r, a), i[0] = r, i[1] = a, i[2] = l) : l = i[2];
1886
2072
  let u;
1887
- i[3] === l.path ? u = i[4] : (u = /* @__PURE__ */ X("g", {
2073
+ i[3] === l.path ? u = i[4] : (u = /* @__PURE__ */ Q("g", {
1888
2074
  transform: "translate(-3 -3)",
1889
- children: /* @__PURE__ */ X("path", { d: l.path })
2075
+ children: /* @__PURE__ */ Q("path", { d: l.path })
1890
2076
  }), i[3] = l.path, i[4] = u), c = u;
1891
2077
  break bb0;
1892
2078
  }
@@ -1894,9 +2080,9 @@ function ShapeSvgOutline(r) {
1894
2080
  let r = o + 6, a = s + 6, l;
1895
2081
  i[5] !== r || i[6] !== a ? (l = queueSVGPath(r, a), i[5] = r, i[6] = a, i[7] = l) : l = i[7];
1896
2082
  let u;
1897
- i[8] === l.path ? u = i[9] : (u = /* @__PURE__ */ X("g", {
2083
+ i[8] === l.path ? u = i[9] : (u = /* @__PURE__ */ Q("g", {
1898
2084
  transform: "translate(-3 -3)",
1899
- children: /* @__PURE__ */ X("path", { d: l.path })
2085
+ children: /* @__PURE__ */ Q("path", { d: l.path })
1900
2086
  }), i[8] = l.path, i[9] = u), c = u;
1901
2087
  break bb0;
1902
2088
  }
@@ -1904,9 +2090,9 @@ function ShapeSvgOutline(r) {
1904
2090
  let r = o + 6, a = s + 6, l;
1905
2091
  i[10] !== r || i[11] !== a ? (l = docSVGPath(r, a), i[10] = r, i[11] = a, i[12] = l) : l = i[12];
1906
2092
  let u;
1907
- i[13] === l.path ? u = i[14] : (u = /* @__PURE__ */ X("g", {
2093
+ i[13] === l.path ? u = i[14] : (u = /* @__PURE__ */ Q("g", {
1908
2094
  transform: "translate(-3 -3)",
1909
- children: /* @__PURE__ */ X("path", { d: l.path })
2095
+ children: /* @__PURE__ */ Q("path", { d: l.path })
1910
2096
  }), i[13] = l.path, i[14] = u), c = u;
1911
2097
  break bb0;
1912
2098
  }
@@ -1915,15 +2101,15 @@ function ShapeSvgOutline(r) {
1915
2101
  let r = o + 6, a = s + 6, l;
1916
2102
  i[15] !== r || i[16] !== a ? (l = cylinderSVGPath(r, a), i[15] = r, i[16] = a, i[17] = l) : l = i[17];
1917
2103
  let u;
1918
- i[18] === l.path ? u = i[19] : (u = /* @__PURE__ */ X("g", {
2104
+ i[18] === l.path ? u = i[19] : (u = /* @__PURE__ */ Q("g", {
1919
2105
  transform: "translate(-3 -3)",
1920
- children: /* @__PURE__ */ X("path", { d: l.path })
2106
+ children: /* @__PURE__ */ Q("path", { d: l.path })
1921
2107
  }), i[18] = l.path, i[19] = u), c = u;
1922
2108
  break bb0;
1923
2109
  }
1924
2110
  default: {
1925
2111
  let r = o + 6, a = s + 6, l;
1926
- i[20] !== r || i[21] !== a ? (l = /* @__PURE__ */ X("rect", {
2112
+ i[20] !== r || i[21] !== a ? (l = /* @__PURE__ */ Q("rect", {
1927
2113
  x: -3,
1928
2114
  y: -3,
1929
2115
  width: r,
@@ -1933,28 +2119,28 @@ function ShapeSvgOutline(r) {
1933
2119
  }
1934
2120
  }
1935
2121
  let l;
1936
- return i[23] === c ? l = i[24] : (l = /* @__PURE__ */ X("g", {
2122
+ return i[23] === c ? l = i[24] : (l = /* @__PURE__ */ Q("g", {
1937
2123
  className: "likec4-shape-outline",
1938
2124
  children: c
1939
2125
  }), i[23] = c, i[24] = l), l;
1940
2126
  }
1941
2127
  function ElementShape(r) {
1942
- let i = J(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";
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";
1943
2129
  if (a.shape === "rectangle") {
1944
2130
  let r;
1945
2131
  i[0] === p ? r = i[1] : (r = { borderStyle: p }, i[0] = p, i[1] = r);
1946
2132
  let a;
1947
- i[2] !== l || i[3] !== m ? (a = E({
2133
+ i[2] !== l || i[3] !== m ? (a = V({
1948
2134
  shapetype: "html",
1949
2135
  withBorder: m,
1950
2136
  withOutline: l
1951
2137
  }), i[2] = l, i[3] = m, i[4] = a) : a = i[4];
1952
2138
  let o;
1953
- 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);
1954
2140
  let s;
1955
- 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];
1956
2142
  let c;
1957
- 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", {
1958
2144
  "aria-hidden": !0,
1959
2145
  style: r,
1960
2146
  className: a,
@@ -1962,17 +2148,17 @@ function ElementShape(r) {
1962
2148
  }), i[8] = r, i[9] = a, i[10] = o, i[11] = c) : c = i[11], c;
1963
2149
  }
1964
2150
  let h;
1965
- i[12] === l ? h = i[13] : (h = E({
2151
+ i[12] === l ? h = i[13] : (h = V({
1966
2152
  shapetype: "svg",
1967
2153
  withOutline: l
1968
2154
  }), i[12] = l, i[13] = h);
1969
2155
  let g = h, _;
1970
- 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", {
1971
2157
  "aria-hidden": !0,
1972
2158
  className: g,
1973
2159
  "data-likec4-shape-multiple": "true",
1974
2160
  viewBox: `0 0 ${u} ${d}`,
1975
- children: /* @__PURE__ */ X(ShapeSvg, {
2161
+ children: /* @__PURE__ */ Q(ShapeSvg, {
1976
2162
  shape: a.shape,
1977
2163
  size: a.style?.size,
1978
2164
  w: u,
@@ -1980,128 +2166,92 @@ function ElementShape(r) {
1980
2166
  })
1981
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];
1982
2168
  let v = `0 0 ${u} ${d}`, y;
1983
- 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, {
1984
2170
  shape: a.shape,
1985
2171
  w: u,
1986
2172
  h: d
1987
2173
  }), i[21] = a.shape, i[22] = d, i[23] = u, i[24] = y) : y = i[24];
1988
2174
  let b = a.style?.size, x;
1989
- 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, {
1990
2176
  shape: a.shape,
1991
2177
  size: b,
1992
2178
  w: u,
1993
2179
  h: d
1994
2180
  }), i[25] = a.shape, i[26] = d, i[27] = b, i[28] = u, i[29] = x) : x = i[29];
1995
2181
  let S;
1996
- 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", {
1997
2183
  "aria-hidden": !0,
1998
2184
  className: g,
1999
2185
  viewBox: v,
2000
2186
  children: [y, x]
2001
2187
  }), i[30] = g, i[31] = v, i[32] = y, i[33] = x, i[34] = S) : S = i[34];
2002
2188
  let C;
2003
- 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;
2004
2190
  }
2005
2191
  //#endregion
2006
2192
  //#region ../diagram/src/base-primitives/memoEdge.ts
2007
- 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);
2008
2194
  function memoEdge(r) {
2009
- let i = ce(r, edgePropsEqual);
2195
+ let i = J(r, edgePropsEqual);
2010
2196
  return i.displayName = `MemoEdge(${r.displayName || r.name})`, i;
2011
2197
  }
2012
2198
  //#endregion
2013
2199
  //#region ../diagram/src/base-primitives/NodeHandles.tsx
2014
2200
  function DefaultHandles(r) {
2015
- 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;
2016
2202
  bb0: switch (o) {
2017
2203
  case "TB":
2018
- s = F.Bottom, c = F.Top;
2204
+ s = U.Bottom, c = U.Top;
2019
2205
  break bb0;
2020
2206
  case "BT":
2021
- s = F.Top, c = F.Bottom;
2207
+ s = U.Top, c = U.Bottom;
2022
2208
  break bb0;
2023
2209
  case "LR":
2024
- s = F.Right, c = F.Left;
2210
+ s = U.Right, c = U.Left;
2025
2211
  break bb0;
2026
2212
  case "RL":
2027
- s = F.Left, c = F.Right;
2213
+ s = U.Left, c = U.Right;
2028
2214
  break bb0;
2029
- default: he(o);
2215
+ default: Se(o);
2030
2216
  }
2031
2217
  let l;
2032
- i[0] === s ? l = i[1] : (l = /* @__PURE__ */ X(I, {
2218
+ i[0] === s ? l = i[1] : (l = /* @__PURE__ */ Q(W, {
2033
2219
  type: "source",
2034
2220
  position: s,
2035
2221
  className: "likec4-node-handle-center"
2036
2222
  }), i[0] = s, i[1] = l);
2037
2223
  let u;
2038
- i[2] === c ? u = i[3] : (u = /* @__PURE__ */ X(I, {
2224
+ i[2] === c ? u = i[3] : (u = /* @__PURE__ */ Q(W, {
2039
2225
  type: "target",
2040
2226
  position: c,
2041
2227
  className: "likec4-node-handle-center"
2042
2228
  }), i[2] = c, i[3] = u);
2043
2229
  let d;
2044
- 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;
2045
2231
  }
2046
2232
  //#endregion
2047
- //#region ../diagram/src/components/Logo.tsx
2048
- var ut = q((r, i) => {
2049
- let a = J(5), o, s;
2050
- a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ X("path", {
2051
- fill: "#5E98AF",
2052
- 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"
2053
- }), s = /* @__PURE__ */ X("path", {
2054
- className: T({
2055
- fill: "[#FCFBF7]",
2056
- _light: { fill: "[#222221]" }
2057
- }),
2058
- 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"
2059
- }), a[0] = o, a[1] = s) : (o = a[0], s = a[1]);
2060
- let c;
2061
- return a[2] !== r || a[3] !== i ? (c = /* @__PURE__ */ Z("svg", {
2062
- ref: i,
2063
- xmlns: "http://www.w3.org/2000/svg",
2064
- fill: "none",
2065
- viewBox: "0 0 222 56",
2066
- ...r,
2067
- children: [o, s]
2068
- }), a[2] = r, a[3] = i, a[4] = c) : c = a[4], c;
2069
- }), dt = q((r, i) => {
2070
- let a = J(4), o;
2071
- a[0] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ X("path", {
2072
- fill: "#5E98AF",
2073
- 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"
2074
- }), a[0] = o) : o = a[0];
2075
- let s;
2076
- return a[1] !== r || a[2] !== i ? (s = /* @__PURE__ */ X("svg", {
2077
- ref: i,
2078
- xmlns: "http://www.w3.org/2000/svg",
2079
- fill: "none",
2080
- viewBox: "0 0 56 56",
2081
- ...r,
2082
- children: o
2083
- }), a[1] = r, a[2] = i, a[3] = s) : s = a[3], s;
2084
- }), { withProvider: ft, withContext: pt } = S(N), shouldForwardProp = (r, i) => !i.includes(r) && (re(r) || !j(r)), mt = q((r, i) => {
2085
- 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;
2086
2236
  a[0] === r ? (o = a[1], s = a[2]) : ({className: o, ...s} = r, a[0] = r, a[1] = o, a[2] = s);
2087
2237
  let c;
2088
- 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);
2089
2239
  let l, u;
2090
- a[5] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ X(dt, { "data-logo-icon": !0 }), u = /* @__PURE__ */ X(ut, { "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]);
2091
2241
  let d;
2092
- 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", {
2093
2243
  ...s,
2094
2244
  ref: i,
2095
2245
  className: c,
2096
2246
  children: [l, u]
2097
2247
  }), a[7] = s, a[8] = i, a[9] = c, a[10] = d) : d = a[10], d;
2098
- }), ht = {
2099
- Root: ft(G, "root", { shouldForwardProp }),
2100
- Body: pt(G, "body", { shouldForwardProp }),
2101
- Logo: pt(mt, "logo", { shouldForwardProp }),
2102
- Label: pt(G, "label", { shouldForwardProp }),
2103
- Dropdown: pt(G, "dropdown", { shouldForwardProp })
2104
- }, scheme = (r) => `[data-mantine-color-scheme="${r}"]`, gt = 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) => `
2105
2255
  ${`${r} :is([data-likec4-color="${i}"][data-compound-depth="${o}"])`} {
2106
2256
  --likec4-palette-fill: ${a.fill};
2107
2257
  --likec4-palette-stroke: ${a.stroke};
@@ -2120,39 +2270,37 @@ ${u} {
2120
2270
  --likec4-palette-relation-label-bg: ${l.labelBg};
2121
2271
  --likec4-palette-relation-stroke-selected: oklch(from ${l.line} calc(l - 0.15) c h);
2122
2272
  }
2123
- ${gt} ${u} {
2273
+ ${kt} ${u} {
2124
2274
  --likec4-palette-relation-stroke-selected: oklch(from ${l.line} calc(l + 0.15) c h);
2125
2275
  }
2126
2276
 
2127
2277
  `, ...r.colorsForCompounds(c, 5).map((r, i) => generateCompoundColors(a, o, r, i + 1))].map((r) => r.trim()).join("\n");
2128
2278
  }
2129
2279
  function generateBuiltInColorStyles(r, i) {
2130
- 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, {
2131
2281
  rootSelector: i,
2132
2282
  name: a,
2133
2283
  colors: o
2134
- })), t$1("\n"));
2135
- }
2136
- function LikeC4Styles$1({ id: r }) {
2137
- let i = `#${r}`, a = h()?.(), o = useLikeC4Styles(), s = de(() => generateBuiltInColorStyles(o, i), [i, o.fingerprint]);
2138
- return /* @__PURE__ */ X(_t, {
2139
- id: r,
2140
- nonce: a,
2141
- colorsStyles: s
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
2142
2292
  });
2143
2293
  }
2144
2294
  r(LikeC4Styles$1, "LikeC4Styles");
2145
- var _t = ce((r) => {
2146
- let i = J(6), { id: a, nonce: o, colorsStyles: s } = r, c;
2147
- i[0] === s ? c = i[1] : (c = { __html: s }, i[0] = s, i[1] = c);
2148
- let l = o || void 0, u;
2149
- 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", {
2150
2298
  type: "text/css",
2151
2299
  "data-likec4-colors": a,
2152
- dangerouslySetInnerHTML: c,
2153
- nonce: l
2154
- }), 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;
2155
2303
  });
2156
- _t.displayName = "MemoizedStyle";
2304
+ At.displayName = "MemoizedStyle";
2157
2305
  //#endregion
2158
- export { useXYStore as $, RootContainer as A, hasSubObject as B, qe as C, FramerMotionConfig as D, useOptionalLikeC4Model as E, BaseXYFlow as F, isSamePoint as G, bezierPath as H, ze as I, stopPropagation as J, nodeToRect as K, Re as L, useRootContainerContext as M, useRootContainerElement as N, EnsureMantine as O, useRootContainerRef as P, useXYFlow as Q, Le as R, useLikeC4Styles as S, useOptionalCurrentViewModel as T, getNodeCenter as U, bezierControlPoints as V, getNodeIntersectionFromCenterToPoint as W, selectXYStore as X, roundDpr as Y, useCurrentZoomAtLeast as Z, useLikeC4Projects as _, DefaultHandles as a, je as at, useOptionalProjectsContext as b, ct as c, e as ct, et as d, t$2 as dt, useXYStoreApi as et, EdgeLabelContainer as f, t$3 as ft, useLikeC4ProjectId as g, useChangeLikeC4Project as h, dt as i, IconRendererProvider as it, useRootContainer as j, DefaultMantineProvider as k, ElementData as l, e$1 as lt, EdgeContainer as m, ht as n, IconOrShapeRenderer as nt, memoEdge as o, t as ot, Qe as p, t$4 as pt, parsePaddings as q, ut as r, IconRenderer as rt, ElementShape as s, t$1 as st, LikeC4Styles$1 as t, useCallbackRef as tt, ElementActionButtons as u, e$2 as ut, useLikeC4ProjectsContext as v, Ge as w, useId$1 as x, Ye as y, Ie 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 };