@zenuml/core 3.49.0 → 3.49.1

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.
@@ -446,7 +446,7 @@ function YL(e) {
446
446
  ), s;
447
447
  }, e;
448
448
  }
449
- const tn = YL(PL), ir = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_GIT_BRANCH: "main", VITE_APP_GIT_HASH: "56ce3881" };
449
+ const tn = YL(PL), ir = { BASE_URL: "/", DEV: !1, MODE: "production", PROD: !0, SSR: !1, VITE_APP_GIT_BRANCH: "main", VITE_APP_GIT_HASH: "a0762fc4" };
450
450
  function m7(e) {
451
451
  return "init" in e;
452
452
  }
@@ -35954,7 +35954,7 @@ const UC = (e) => /* @__PURE__ */ w.createElement("svg", { xmlns: "http://www.w3
35954
35954
  /* @__PURE__ */ E.jsxs("span", { className: "inline-block px-2", children: [
35955
35955
  "main",
35956
35956
  ":",
35957
- "56ce3881"
35957
+ "a0762fc4"
35958
35958
  ] })
35959
35959
  ] }) : null;
35960
35960
  }, cS = "_tooltip_5kyas_1", uS = "_bottom_5kyas_29", Jg = {
@@ -36088,11 +36088,11 @@ ${n}`;
36088
36088
  }
36089
36089
  ) : /* @__PURE__ */ E.jsx("span", { children: f }) });
36090
36090
  }, hS = {
36091
- actor: () => Promise.resolve().then(() => zM),
36092
- boundary: () => Promise.resolve().then(() => BM),
36093
- control: () => Promise.resolve().then(() => HM),
36094
- database: () => Promise.resolve().then(() => jM),
36095
- entity: () => Promise.resolve().then(() => $M),
36091
+ actor: () => Promise.resolve().then(() => BM),
36092
+ boundary: () => Promise.resolve().then(() => HM),
36093
+ control: () => Promise.resolve().then(() => jM),
36094
+ database: () => Promise.resolve().then(() => $M),
36095
+ entity: () => Promise.resolve().then(() => UM),
36096
36096
  cognito: () => import("./cloud-icons-eHuugVSv.js").then((e) => e.A),
36097
36097
  elasticbeantalk: () => import("./cloud-icons-eHuugVSv.js").then((e) => e.f),
36098
36098
  kinesis: () => import("./cloud-icons-eHuugVSv.js").then((e) => e.g),
@@ -44137,15 +44137,24 @@ const Js = (e) => {
44137
44137
  )
44138
44138
  ]
44139
44139
  }
44140
- ), MN = /\b(\w+)\s*==\s*(\w+)\b/g, so = (e) => {
44140
+ );
44141
+ function MN(e, t, n) {
44142
+ if (e != null && e.start === t && e.end === n)
44143
+ return e.token;
44144
+ }
44145
+ const IN = /\b(\w+)\s*==\s*(\w+)\b/g, so = (e) => {
44141
44146
  const t = yt(En), [n, s] = Ue(ys), a = yt(Qs), o = yt(Za), u = Ze(Za), f = e.condition?.getFormattedText() ?? "", d = t === Ve.Dynamic, [m, p] = [
44142
44147
  e.condition?.start?.start,
44143
44148
  e.condition?.stop?.stop
44144
- ], y = o?.start === m && o?.end === p ? o.token : void 0, L = (b) => {
44149
+ ], y = MN(
44150
+ o,
44151
+ m,
44152
+ p
44153
+ ), L = (b) => {
44145
44154
  if (b === "" || b === f)
44146
44155
  return;
44147
44156
  let C = b;
44148
- if (Xa.test(C) && !MN.test(C) && (C = C.replace(/"/g, ""), C = `"${C}"`), m === -1 || p === -1) {
44157
+ if (Xa.test(C) && !IN.test(C) && (C = C.replace(/"/g, ""), C = `"${C}"`), m === -1 || p === -1) {
44149
44158
  console.warn("labelPosition is not set");
44150
44159
  return;
44151
44160
  }
@@ -44167,7 +44176,7 @@ const Js = (e) => {
44167
44176
  ),
44168
44177
  /* @__PURE__ */ E.jsx("label", { children: "]" })
44169
44178
  ] });
44170
- }, IN = (e) => {
44179
+ }, DN = (e) => {
44171
44180
  const {
44172
44181
  collapsed: t,
44173
44182
  toggleCollapse: n,
@@ -44219,7 +44228,7 @@ const Js = (e) => {
44219
44228
  ]
44220
44229
  }
44221
44230
  ) });
44222
- }, DN = (e) => {
44231
+ }, zN = (e) => {
44223
44232
  const t = e.context.alt(), n = t?.ifBlock(), s = t?.elseIfBlock(), a = t?.elseBlock()?.braceBlock()?.block(), o = t?.ifBlock()?.braceBlock()?.block(), u = w.useMemo(() => {
44224
44233
  const C = [E0(o)];
44225
44234
  return t?.elseIfBlock() && t.elseIfBlock().forEach((S) => {
@@ -44322,7 +44331,7 @@ const Js = (e) => {
44322
44331
  ]
44323
44332
  }
44324
44333
  );
44325
- }, zN = (e) => {
44334
+ }, BN = (e) => {
44326
44335
  const {
44327
44336
  collapsed: t,
44328
44337
  toggleCollapse: n,
@@ -44375,7 +44384,7 @@ const Js = (e) => {
44375
44384
  ]
44376
44385
  }
44377
44386
  ) });
44378
- }, BN = (e) => {
44387
+ }, HN = (e) => {
44379
44388
  const t = e.context.opt(), n = t?.parExpr()?.condition(), {
44380
44389
  collapsed: s,
44381
44390
  toggleCollapse: a,
@@ -44430,7 +44439,7 @@ const Js = (e) => {
44430
44439
  ]
44431
44440
  }
44432
44441
  );
44433
- }, HN = (e) => e.charAt(0).toUpperCase() + e.slice(1), jN = (e) => {
44442
+ }, jN = (e) => e.charAt(0).toUpperCase() + e.slice(1), $N = (e) => {
44434
44443
  const {
44435
44444
  collapsed: t,
44436
44445
  toggleCollapse: n,
@@ -44438,7 +44447,7 @@ const Js = (e) => {
44438
44447
  fragmentStyle: a,
44439
44448
  border: o,
44440
44449
  leftParticipant: u
44441
- } = ua(e.context, e.origin), f = e.context.section(), d = f?.braceBlock(), m = f?.atom()?.getFormattedText(), p = d?.block(), y = m ?? HN("section");
44450
+ } = ua(e.context, e.origin), f = e.context.section(), d = f?.braceBlock(), m = f?.atom()?.getFormattedText(), p = d?.block(), y = m ?? jN("section");
44442
44451
  return /* @__PURE__ */ E.jsx("div", { className: e.className, children: /* @__PURE__ */ E.jsxs(
44443
44452
  "div",
44444
44453
  {
@@ -44481,7 +44490,7 @@ const Js = (e) => {
44481
44490
  ]
44482
44491
  }
44483
44492
  ) });
44484
- }, $N = (e) => {
44493
+ }, UN = (e) => {
44485
44494
  const {
44486
44495
  collapsed: t,
44487
44496
  toggleCollapse: n,
@@ -44533,7 +44542,7 @@ const Js = (e) => {
44533
44542
  ]
44534
44543
  }
44535
44544
  ) });
44536
- }, UN = (e) => {
44545
+ }, FN = (e) => {
44537
44546
  const {
44538
44547
  collapsed: t,
44539
44548
  toggleCollapse: n,
@@ -44667,7 +44676,7 @@ const Js = (e) => {
44667
44676
  normalizeText: e.normalizeText,
44668
44677
  className: Ht("px-1 right", e.className)
44669
44678
  }
44670
- ), FN = (e) => {
44679
+ ), PN = (e) => {
44671
44680
  const { paddingLeft: t, fragmentStyle: n, border: s, leftParticipant: a } = ua(e.context, e.origin), o = e.context.ref().Content(), u = o?.getFormattedText(), f = [
44672
44681
  o?.start.start,
44673
44682
  o?.stop.stop
@@ -44716,7 +44725,7 @@ const Js = (e) => {
44716
44725
  ]
44717
44726
  }
44718
44727
  ) });
44719
- }, PN = "M1 1.25 L6.15 4.5 L1 7.75 Z", GN = "M1 1.25 L6.15 4.5 L1 7.75", VN = "M6 1.25 L0.85 4.5 L6 7.75 Z", ZN = "M6 1.25 L0.85 4.5 L6 7.75", YN = ({
44728
+ }, GN = "M1 1.25 L6.15 4.5 L1 7.75 Z", VN = "M1 1.25 L6.15 4.5 L1 7.75", ZN = "M6 1.25 L0.85 4.5 L6 7.75 Z", YN = "M6 1.25 L0.85 4.5 L6 7.75", XN = ({
44720
44729
  type: e = "",
44721
44730
  textStyle: t,
44722
44731
  className: n,
@@ -44729,7 +44738,7 @@ const Js = (e) => {
44729
44738
  title: m,
44730
44739
  children: p
44731
44740
  }) => {
44732
- const y = e === "creation" || e === "return", L = e === "sync", b = o ? L ? VN : ZN : L ? PN : GN;
44741
+ const y = e === "creation" || e === "return", L = e === "sync", b = o ? L ? ZN : YN : L ? GN : VN;
44733
44742
  return /* @__PURE__ */ E.jsxs(
44734
44743
  "div",
44735
44744
  {
@@ -44825,7 +44834,7 @@ const Js = (e) => {
44825
44834
  ), y(t, C.current));
44826
44835
  };
44827
44836
  return /* @__PURE__ */ E.jsx(
44828
- YN,
44837
+ XN,
44829
44838
  {
44830
44839
  type: a,
44831
44840
  textStyle: o,
@@ -44840,7 +44849,7 @@ const Js = (e) => {
44840
44849
  children: m
44841
44850
  }
44842
44851
  );
44843
- }, XN = (e) => /* @__PURE__ */ E.jsxs("div", { className: "occurrence-collapsible-header w-auto", children: [
44852
+ }, WN = (e) => /* @__PURE__ */ E.jsxs("div", { className: "occurrence-collapsible-header w-auto", children: [
44844
44853
  /* @__PURE__ */ E.jsxs(
44845
44854
  "svg",
44846
44855
  {
@@ -44911,7 +44920,7 @@ const Js = (e) => {
44911
44920
  ]
44912
44921
  }
44913
44922
  )
44914
- ] }), WN = ({
44923
+ ] }), qN = ({
44915
44924
  assignee: e,
44916
44925
  type: t,
44917
44926
  assigneePosition: n,
@@ -45013,7 +45022,7 @@ const Js = (e) => {
45013
45022
  /* @__PURE__ */ E.jsx("div", { className: "absolute w-full left-0 bg-amber-700 h-3 -top-1 flex justify-center items-center", children: /* @__PURE__ */ E.jsx("div", { className: "w-px h-full bg-black" }) }),
45014
45023
  /* @__PURE__ */ E.jsx("div", { className: "absolute w-full left-0 bg-amber-700 h-3 -bottom-1 flex justify-center items-center", children: /* @__PURE__ */ E.jsx("div", { className: "w-px h-full bg-black" }) })
45015
45024
  ] }),
45016
- L() && /* @__PURE__ */ E.jsx(XN, { collapsed: d, onClick: b }),
45025
+ L() && /* @__PURE__ */ E.jsx(WN, { collapsed: d, onClick: b }),
45017
45026
  e.context.braceBlock() && /* @__PURE__ */ E.jsx(
45018
45027
  zs,
45019
45028
  {
@@ -45046,7 +45055,7 @@ const Js = (e) => {
45046
45055
  transform: e.rtl ? "translateX(7px)" : "translateX(calc(-100% - 7px))"
45047
45056
  } : void 0,
45048
45057
  children: /* @__PURE__ */ E.jsx(
45049
- WN,
45058
+ qN,
45050
45059
  {
45051
45060
  assignee: C.assignee,
45052
45061
  type: C.type,
@@ -45079,10 +45088,10 @@ class hu {
45079
45088
  );
45080
45089
  }
45081
45090
  }
45082
- const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() === void 0 && e.From?.() === void 0, G2 = (e, t) => e?.getAncestors((n) => ((a) => {
45091
+ const KN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() === void 0 && e.From?.() === void 0, G2 = (e, t) => e?.getAncestors((n) => ((a) => {
45083
45092
  const o = a instanceof x.MessageContext, u = a instanceof x.CreationContext;
45084
45093
  return o || u;
45085
- })(n) ? n.Owner?.() === t || qN(n, t) : !1).length, KN = (e, t) => {
45094
+ })(n) ? n.Owner?.() === t || KN(n, t) : !1).length, QN = (e, t) => {
45086
45095
  if (!(e instanceof x.StatContext))
45087
45096
  return 0;
45088
45097
  const n = e?.children?.[0];
@@ -45093,7 +45102,7 @@ const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() ==
45093
45102
  source: n,
45094
45103
  target: s
45095
45104
  }) => {
45096
- const a = yt(Ls), o = n === s, u = G2(e, t), f = G2(e, n), d = KN(e, s), m = new jc(xs(a, t), u), p = new jc(xs(a, n), f), y = new jc(xs(a, s), d), L = Math.abs(p.edgeOffset(y)), b = Fk(a, n, s) < 0, C = m.centerToEdge(
45105
+ const a = yt(Ls), o = n === s, u = G2(e, t), f = G2(e, n), d = QN(e, s), m = new jc(xs(a, t), u), p = new jc(xs(a, n), f), y = new jc(xs(a, s), d), L = Math.abs(p.edgeOffset(y)), b = Fk(a, n, s) < 0, C = m.centerToEdge(
45097
45106
  b ? y : p
45098
45107
  );
45099
45108
  return {
@@ -45108,7 +45117,7 @@ const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() ==
45108
45117
  rightToLeft: b,
45109
45118
  translateX: C
45110
45119
  };
45111
- }, QN = ({
45120
+ }, JN = ({
45112
45121
  labelText: e,
45113
45122
  labelPosition: t,
45114
45123
  normalizeText: n,
@@ -45125,7 +45134,7 @@ const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() ==
45125
45134
  }
45126
45135
  ),
45127
45136
  /* @__PURE__ */ E.jsx("span", { children: "»" })
45128
- ] }) : /* @__PURE__ */ E.jsx(E.Fragment, { children: "«create»" }) : /* @__PURE__ */ E.jsx(E.Fragment, { children: `«${e || "create"}»` }), JN = (e) => {
45137
+ ] }) : /* @__PURE__ */ E.jsx(E.Fragment, { children: "«create»" }) : /* @__PURE__ */ E.jsx(E.Fragment, { children: `«${e || "create"}»` }), tO = (e) => {
45129
45138
  const t = w.useRef(null), n = yt(l3), s = yt(o3), [a, o] = w.useState(0), u = e.context?.creation(), f = u?.Owner(), d = u?.isCurrent(n), m = u?.creationBody()?.parameters(), [p, y] = [m?.start?.start, m?.stop?.stop], { translateX: L, interactionWidth: b, rightToLeft: C } = uf({
45130
45139
  context: e.context,
45131
45140
  origin: e.origin,
@@ -45190,7 +45199,7 @@ const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() ==
45190
45199
  textStyle: S,
45191
45200
  style: { width: `calc(100% - ${k}px)` },
45192
45201
  children: /* @__PURE__ */ E.jsx(
45193
- QN,
45202
+ JN,
45194
45203
  {
45195
45204
  labelText: u?.ParametersText(),
45196
45205
  labelPosition: [p, y],
@@ -45237,7 +45246,7 @@ const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() ==
45237
45246
  ) })
45238
45247
  }
45239
45248
  );
45240
- }, tO = (e) => {
45249
+ }, eO = (e) => {
45241
45250
  const t = w.useRef(null), n = yt(V0), s = yt(fi), a = Ze(fi), o = e.context?.Assignment()?.getText() || "", u = w.useMemo(() => {
45242
45251
  const m = e.context?.messageBody().func();
45243
45252
  return m ? [m.start.start, m.stop.stop] : [-1, -1];
@@ -45285,7 +45294,7 @@ const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() ==
45285
45294
  ]
45286
45295
  }
45287
45296
  );
45288
- }, eO = (e) => {
45297
+ }, nO = (e) => {
45289
45298
  const t = yt(l3), n = e.commentObj?.messageStyle, s = e.commentObj?.messageClassNames, a = e.context?.message(), o = a?.SignatureText(), u = a?.isCurrent(t), f = a?.From() || he, d = e.context?.message()?.Owner() || he, m = f === d, p = a?.messageBody().func()?.signature()[0], [y, L] = [p?.start?.start, p?.stop?.stop], {
45290
45299
  translateX: b,
45291
45300
  interactionWidth: C,
@@ -45328,7 +45337,7 @@ const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() ==
45328
45337
  children: [
45329
45338
  e.commentObj?.text && /* @__PURE__ */ E.jsx(Js, { commentObj: e.commentObj }),
45330
45339
  m ? /* @__PURE__ */ E.jsx(
45331
- tO,
45340
+ eO,
45332
45341
  {
45333
45342
  classNames: s,
45334
45343
  textStyle: n,
@@ -45372,7 +45381,7 @@ const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() ==
45372
45381
  ]
45373
45382
  }
45374
45383
  );
45375
- }, nO = (e) => {
45384
+ }, sO = (e) => {
45376
45385
  const t = e.context?.content(), n = () => t ? [t.start.start, t.stop.stop] : [-1, -1], s = w.useRef(null), a = yt(V0), o = yt(fi), u = Ze(fi), f = n(), d = o !== null && o.start === f[0] && o.end === f[1], m = () => {
45377
45386
  u(
45378
45387
  f[0] !== -1 ? { start: f[0], end: f[1], token: Date.now() } : null
@@ -45415,7 +45424,7 @@ const qN = (e, t) => t === he && e instanceof x.MessageContext && e.Owner?.() ==
45415
45424
  function Vh(e) {
45416
45425
  return e == null;
45417
45426
  }
45418
- const sO = (e) => {
45427
+ const iO = (e) => {
45419
45428
  const t = yt(l3), n = yt(o3), s = e.context?.asyncMessage(), a = s?.content()?.getFormattedText(), u = s?.ProvidedFrom() || e.origin, f = s?.to(), d = f?.name?.()?.getFormattedText() || f?.getFormattedText(), m = u === d, p = s?.content(), [y, L] = [p?.start?.start, p?.stop?.stop], { translateX: b, interactionWidth: C, rightToLeft: S } = uf({
45420
45429
  context: e.context,
45421
45430
  origin: e.origin,
@@ -45451,7 +45460,7 @@ const sO = (e) => {
45451
45460
  children: [
45452
45461
  e.comment && /* @__PURE__ */ E.jsx(Js, { commentObj: e.commentObj }),
45453
45462
  m ? /* @__PURE__ */ E.jsx(
45454
- nO,
45463
+ sO,
45455
45464
  {
45456
45465
  classNames: Ht(A),
45457
45466
  textStyle: k,
@@ -45481,7 +45490,7 @@ const sO = (e) => {
45481
45490
  ]
45482
45491
  }
45483
45492
  );
45484
- }, iO = (e) => {
45493
+ }, rO = (e) => {
45485
45494
  yt(P0);
45486
45495
  const t = yt(Ls), n = w.useMemo(() => t.getWidth(), [t]), s = xs(t, e.origin), a = e.context.divider().Note(), o = w.useMemo(() => {
45487
45496
  if (a.trim().indexOf("[") === 0 && a.indexOf("]") !== -1) {
@@ -45539,7 +45548,7 @@ const sO = (e) => {
45539
45548
  ]
45540
45549
  }
45541
45550
  );
45542
- }, rO = (e) => {
45551
+ }, aO = (e) => {
45543
45552
  const t = yt(o3), n = e.context?.ret(), s = n?.asyncMessage() || n?.returnAsyncMessage(), a = n?.Signature(), o = n?.From() || he, u = n?.ReturnTo() || he, f = s?.content() || n?.expr();
45544
45553
  let d = -1, m = -1;
45545
45554
  if (f instanceof x.AtomExprContext) {
@@ -45630,7 +45639,7 @@ const sO = (e) => {
45630
45639
  }
45631
45640
  )
45632
45641
  );
45633
- }, aO = (e) => {
45642
+ }, lO = (e) => {
45634
45643
  const t = e.context.getComment() || "", n = new r3(t), s = {
45635
45644
  className: Ht("text-left text-sm text-skin-message", {
45636
45645
  hidden: e.collapsed && !e.context.ret()
@@ -45643,31 +45652,31 @@ const sO = (e) => {
45643
45652
  };
45644
45653
  switch (!0) {
45645
45654
  case !!e.context.loop():
45646
- return /* @__PURE__ */ E.jsx(IN, { ...s });
45647
- case !!e.context.alt():
45648
45655
  return /* @__PURE__ */ E.jsx(DN, { ...s });
45649
- case !!e.context.par():
45656
+ case !!e.context.alt():
45650
45657
  return /* @__PURE__ */ E.jsx(zN, { ...s });
45651
- case !!e.context.opt():
45658
+ case !!e.context.par():
45652
45659
  return /* @__PURE__ */ E.jsx(BN, { ...s });
45660
+ case !!e.context.opt():
45661
+ return /* @__PURE__ */ E.jsx(HN, { ...s });
45653
45662
  case !!e.context.section():
45654
- return /* @__PURE__ */ E.jsx(jN, { ...s });
45655
- case !!e.context.critical():
45656
45663
  return /* @__PURE__ */ E.jsx($N, { ...s });
45657
- case !!e.context.tcf():
45664
+ case !!e.context.critical():
45658
45665
  return /* @__PURE__ */ E.jsx(UN, { ...s });
45659
- case !!e.context.ref():
45666
+ case !!e.context.tcf():
45660
45667
  return /* @__PURE__ */ E.jsx(FN, { ...s });
45668
+ case !!e.context.ref():
45669
+ return /* @__PURE__ */ E.jsx(PN, { ...s });
45661
45670
  case !!e.context.creation():
45662
- return /* @__PURE__ */ E.jsx(JN, { ...s });
45671
+ return /* @__PURE__ */ E.jsx(tO, { ...s });
45663
45672
  case !!e.context.message():
45664
- return /* @__PURE__ */ E.jsx(eO, { ...s });
45673
+ return /* @__PURE__ */ E.jsx(nO, { ...s });
45665
45674
  case !!e.context.asyncMessage():
45666
- return /* @__PURE__ */ E.jsx(sO, { ...s });
45667
- case !!e.context.divider():
45668
45675
  return /* @__PURE__ */ E.jsx(iO, { ...s });
45676
+ case !!e.context.divider():
45677
+ return /* @__PURE__ */ E.jsx(rO, { ...s });
45669
45678
  case !!e.context.ret():
45670
- return /* @__PURE__ */ E.jsx(rO, { ...s, className: "text-left text-sm text-skin-message" });
45679
+ return /* @__PURE__ */ E.jsx(aO, { ...s, className: "text-left text-sm text-skin-message" });
45671
45680
  }
45672
45681
  }, Gp = (e, t) => {
45673
45682
  const n = e.indexOf(`
@@ -45677,7 +45686,7 @@ const sO = (e) => {
45677
45686
  const t = e.split(`
45678
45687
  `).filter((n) => n.trim().length > 0);
45679
45688
  return t.length === 0 ? "" : ly(t[0]);
45680
- }, lO = (e, t) => e.split(`
45689
+ }, oO = (e, t) => e.split(`
45681
45690
  `).map((n) => {
45682
45691
  if (n.length === 0)
45683
45692
  return n;
@@ -45689,7 +45698,7 @@ const sO = (e) => {
45689
45698
  }
45690
45699
  return n;
45691
45700
  }).join(`
45692
- `), oO = ({
45701
+ `), cO = ({
45693
45702
  code: e,
45694
45703
  sourceRange: t,
45695
45704
  targetRange: n,
@@ -45698,7 +45707,7 @@ const sO = (e) => {
45698
45707
  const [a, o] = t, [u, f] = n, d = na(e, a), m = Gp(e, o), p = na(e, u), y = Gp(e, f);
45699
45708
  if (d === p)
45700
45709
  return e;
45701
- const L = e.slice(d, m), b = e.slice(p, y), C = e.slice(0, d) + e.slice(m), S = d < p, A = S ? p - L.length : p, k = S ? y - L.length : y, M = s === "before" ? A : k, $ = Vp(L).length, O = Vp(b).length, z = lO(L, O - $), _ = M > 0 && C[M - 1] !== `
45710
+ const L = e.slice(d, m), b = e.slice(p, y), C = e.slice(0, d) + e.slice(m), S = d < p, A = S ? p - L.length : p, k = S ? y - L.length : y, M = s === "before" ? A : k, $ = Vp(L).length, O = Vp(b).length, z = oO(L, O - $), _ = M > 0 && C[M - 1] !== `
45702
45711
  ` && !z.startsWith(`
45703
45712
  `), j = M < C.length && C[M] !== `
45704
45713
  ` && !z.endsWith(`
@@ -45706,11 +45715,11 @@ const sO = (e) => {
45706
45715
  ` : ""}${z}${j ? `
45707
45716
  ` : ""}`;
45708
45717
  return C.slice(0, M) + P + C.slice(M);
45709
- }, cO = (e, t) => {
45718
+ }, uO = (e, t) => {
45710
45719
  const n = e.indexOf(`
45711
45720
  `, t);
45712
45721
  return n === -1 ? e.length : n + 1;
45713
- }, uO = ({
45722
+ }, fO = ({
45714
45723
  code: e,
45715
45724
  label: t = "Divider",
45716
45725
  blockContext: n,
@@ -45729,7 +45738,7 @@ const sO = (e) => {
45729
45738
  }
45730
45739
  if (s >= a.length) {
45731
45740
  const C = a[a.length - 1];
45732
- u = cO(e, C.stop.stop);
45741
+ u = uO(e, C.stop.stop);
45733
45742
  } else {
45734
45743
  const C = a[s];
45735
45744
  u = na(e, C.start.start);
@@ -45743,7 +45752,7 @@ const sO = (e) => {
45743
45752
  code: p,
45744
45753
  labelPosition: [L, b]
45745
45754
  };
45746
- }, fO = 48, $1 = 16, dO = 5, Zh = (e) => {
45755
+ }, dO = 48, $1 = 16, hO = 5, Zh = (e) => {
45747
45756
  const t = yt(En), n = yt(G0), s = yt(K8), a = yt(hi), o = yt(Ls), u = yt(oa), f = yt(Vc), d = Ze(Vc), m = Ze(fi), p = Ze(_i), [y, L] = Ue(ys), b = yt(Qs), C = Ze(Za), [S, A] = w.useState(!1), k = w.useRef(null);
45748
45757
  w.useEffect(() => () => {
45749
45758
  k.current && clearTimeout(k.current);
@@ -45760,7 +45769,7 @@ const sO = (e) => {
45760
45769
  ), z = xs(o, e.origin) + 1, _ = w.useCallback(
45761
45770
  (it) => {
45762
45771
  it.preventDefault(), it.stopPropagation();
45763
- const U = uO({
45772
+ const U = fO({
45764
45773
  code: y,
45765
45774
  blockContext: e.blockContext,
45766
45775
  insertIndex: e.insertIndex
@@ -45836,7 +45845,7 @@ const sO = (e) => {
45836
45845
  {
45837
45846
  className: "relative flex items-center",
45838
45847
  style: {
45839
- height: fO,
45848
+ height: dO,
45840
45849
  marginLeft: `-${z}px`,
45841
45850
  width: `calc(100% + ${z}px)`
45842
45851
  },
@@ -45862,7 +45871,7 @@ const sO = (e) => {
45862
45871
  "data-testid": `message-gap-hover-${e.insertIndex}`,
45863
45872
  className: "absolute left-0 right-0",
45864
45873
  style: {
45865
- top: -8 - dO,
45874
+ top: -8 - hO,
45866
45875
  height: $1,
45867
45876
  pointerEvents: "auto"
45868
45877
  },
@@ -45873,7 +45882,7 @@ const sO = (e) => {
45873
45882
  )
45874
45883
  }
45875
45884
  );
45876
- }, hO = 4, zs = (e) => {
45885
+ }, mO = 4, zs = (e) => {
45877
45886
  const [t, n] = Ue(ys), s = yt(Qs), a = e.context?.stat() || [], o = e.enableGapHandles ?? !1, [u, f] = Ue(nw), d = w.useRef(null), [m, p] = Ue(sw), [y, L] = Ue(iw);
45878
45887
  w.useEffect(() => {
45879
45888
  d.current = u;
@@ -45889,7 +45898,7 @@ const sO = (e) => {
45889
45898
  return;
45890
45899
  const C = (A) => {
45891
45900
  const k = Math.abs(A.clientX - m.startX), M = Math.abs(A.clientY - m.startY);
45892
- Math.max(k, M) < hO || (f(m.key), p(null));
45901
+ Math.max(k, M) < mO || (f(m.key), p(null));
45893
45902
  }, S = () => {
45894
45903
  p(null);
45895
45904
  };
@@ -45905,7 +45914,7 @@ const sO = (e) => {
45905
45914
  f(null), L(null);
45906
45915
  return;
45907
45916
  }
45908
- const [A, k] = S.split("-").map(Number), [M, $] = y.key.split("-").map(Number), O = oO({
45917
+ const [A, k] = S.split("-").map(Number), [M, $] = y.key.split("-").map(Number), O = cO({
45909
45918
  code: t,
45910
45919
  sourceRange: [A, k],
45911
45920
  targetRange: [M, $],
@@ -45982,7 +45991,7 @@ const sO = (e) => {
45982
45991
  }
45983
45992
  ),
45984
45993
  /* @__PURE__ */ E.jsx(
45985
- aO,
45994
+ lO,
45986
45995
  {
45987
45996
  origin: e.origin || "",
45988
45997
  context: C,
@@ -46009,7 +46018,7 @@ const sO = (e) => {
46009
46018
  }, q1 = "_STARTER_", k3 = (e) => {
46010
46019
  const t = e.match(/^\s*/)?.[0] || "", n = e.slice(t.length), s = n.endsWith(";") ? ";" : "", a = s ? n.slice(0, -1) : n;
46011
46020
  return { indent: t, body: a, semicolon: s };
46012
- }, mO = (e) => /\{\s*$/.test(e.trimEnd()), V2 = (e) => {
46021
+ }, gO = (e) => /\{\s*$/.test(e.trimEnd()), V2 = (e) => {
46013
46022
  const { indent: t, body: n, semicolon: s } = k3(e), a = n.match(/^(.*?)\s*(-->|->)\s*(.*?)\s*:(.*)$/);
46014
46023
  return a ? {
46015
46024
  indent: t,
@@ -46022,7 +46031,7 @@ const sO = (e) => {
46022
46031
  }, oy = (e) => {
46023
46032
  const { indent: t, body: n, semicolon: s } = k3(e), a = n.match(/^new\s+(\w+)\s*\(([^)]*)\)$/);
46024
46033
  return a ? { indent: t, target: a[1], args: a[2].trim(), semicolon: s } : null;
46025
- }, gO = (e) => {
46034
+ }, pO = (e) => {
46026
46035
  const t = e.trim();
46027
46036
  if (!t) return !1;
46028
46037
  const n = t.replace(/\(.*\)$/, "");
@@ -46035,7 +46044,7 @@ const sO = (e) => {
46035
46044
  target: a,
46036
46045
  signature: o
46037
46046
  }) => {
46038
- if (t === n || mO(e) || !a)
46047
+ if (t === n || gO(e) || !a)
46039
46048
  return !1;
46040
46049
  if (t === "sync")
46041
46050
  return o ? n === "async" || n === "creation" ? !0 : !!(s && s !== q1) : !1;
@@ -46045,10 +46054,10 @@ const sO = (e) => {
46045
46054
  }
46046
46055
  if (n === "sync") {
46047
46056
  const u = V2(e);
46048
- return u ? gO(u.content) : !1;
46057
+ return u ? pO(u.content) : !1;
46049
46058
  }
46050
46059
  return !!(s && s !== q1 && a && V2(e));
46051
- }, pO = ({
46060
+ }, xO = ({
46052
46061
  line: e,
46053
46062
  currentType: t,
46054
46063
  targetType: n,
@@ -46086,7 +46095,7 @@ const sO = (e) => {
46086
46095
  }
46087
46096
  const f = n === "return" ? "-->" : "->";
46088
46097
  return `${u.indent}${u.from}${f}${u.to}:${u.content}${u.semicolon}`;
46089
- }, xO = (e) => {
46098
+ }, yO = (e) => {
46090
46099
  switch (e) {
46091
46100
  case "alt":
46092
46101
  return "if(condition) {";
@@ -46097,7 +46106,7 @@ const sO = (e) => {
46097
46106
  case "par":
46098
46107
  return "par(condition) {";
46099
46108
  }
46100
- }, yO = (e) => {
46109
+ }, bO = (e) => {
46101
46110
  switch (e) {
46102
46111
  case "alt":
46103
46112
  return 3;
@@ -46106,24 +46115,24 @@ const sO = (e) => {
46106
46115
  case "par":
46107
46116
  return `${e}(`.length;
46108
46117
  }
46109
- }, bO = ({
46118
+ }, LO = ({
46110
46119
  code: e,
46111
46120
  line: t,
46112
46121
  lineHead: n,
46113
46122
  type: s
46114
46123
  }) => {
46115
- const a = t.match(/^\s*/)?.[0] ?? "", o = t.trimStart(), u = xO(s), f = `${a} `, d = `${a}${u}
46124
+ const a = t.match(/^\s*/)?.[0] ?? "", o = t.trimStart(), u = yO(s), f = `${a} `, d = `${a}${u}
46116
46125
  ${f}${o}
46117
- ${a}}`, m = n + t.length, p = e.slice(0, n) + d + e.slice(m), y = n + a.length + yO(s), L = y + 9 - 1;
46126
+ ${a}}`, m = n + t.length, p = e.slice(0, n) + d + e.slice(m), y = n + a.length + bO(s), L = y + 9 - 1;
46118
46127
  return {
46119
46128
  code: p,
46120
46129
  conditionPosition: [y, L]
46121
46130
  };
46122
46131
  };
46123
- function LO() {
46132
+ function EO() {
46124
46133
  return /apple/i.test(navigator.vendor);
46125
46134
  }
46126
- function EO(e) {
46135
+ function vO(e) {
46127
46136
  let t = e.activeElement;
46128
46137
  for (; ((n = t) == null || (n = n.shadowRoot) == null ? void 0 : n.activeElement) != null; ) {
46129
46138
  var n;
@@ -46131,7 +46140,7 @@ function EO(e) {
46131
46140
  }
46132
46141
  return t;
46133
46142
  }
46134
- function vO(e, t) {
46143
+ function TO(e, t) {
46135
46144
  if (!e || !t)
46136
46145
  return !1;
46137
46146
  const n = t.getRootNode == null ? void 0 : t.getRootNode();
@@ -46150,15 +46159,15 @@ function vO(e, t) {
46150
46159
  function N3(e) {
46151
46160
  return e?.ownerDocument || document;
46152
46161
  }
46153
- var TO = typeof document < "u", wO = function() {
46154
- }, Ga = TO ? w.useLayoutEffect : wO;
46155
- const CO = {
46162
+ var wO = typeof document < "u", CO = function() {
46163
+ }, Ga = wO ? w.useLayoutEffect : CO;
46164
+ const SO = {
46156
46165
  ...t0
46157
- }, SO = CO.useInsertionEffect, RO = SO || ((e) => e());
46158
- function _O(e) {
46166
+ }, RO = SO.useInsertionEffect, _O = RO || ((e) => e());
46167
+ function AO(e) {
46159
46168
  const t = w.useRef(() => {
46160
46169
  });
46161
- return RO(() => {
46170
+ return _O(() => {
46162
46171
  t.current = e;
46163
46172
  }), w.useCallback(function() {
46164
46173
  for (var n = arguments.length, s = new Array(n), a = 0; a < n; a++)
@@ -46178,20 +46187,20 @@ const cy = () => ({
46178
46187
  function uy(e, t) {
46179
46188
  const n = Tx(e, cy()), s = n.length;
46180
46189
  if (s === 0) return;
46181
- const a = EO(N3(e)), o = n.indexOf(a), u = o === -1 ? t === 1 ? 0 : s - 1 : o + t;
46190
+ const a = vO(N3(e)), o = n.indexOf(a), u = o === -1 ? t === 1 ? 0 : s - 1 : o + t;
46182
46191
  return n[u];
46183
46192
  }
46184
- function AO(e) {
46193
+ function kO(e) {
46185
46194
  return uy(N3(e).body, 1) || e;
46186
46195
  }
46187
- function kO(e) {
46196
+ function NO(e) {
46188
46197
  return uy(N3(e).body, -1) || e;
46189
46198
  }
46190
46199
  function Yh(e, t) {
46191
46200
  const n = t || e.currentTarget, s = e.relatedTarget;
46192
- return !s || !vO(n, s);
46201
+ return !s || !TO(n, s);
46193
46202
  }
46194
- function NO(e) {
46203
+ function OO(e) {
46195
46204
  Tx(e, cy()).forEach((n) => {
46196
46205
  n.dataset.tabindex = n.getAttribute("tabindex") || "", n.setAttribute("tabindex", "-1");
46197
46206
  });
@@ -46202,16 +46211,16 @@ function Zp(e) {
46202
46211
  delete n.dataset.tabindex, s ? n.setAttribute("tabindex", s) : n.removeAttribute("tabindex");
46203
46212
  });
46204
46213
  }
46205
- const OO = {
46214
+ const MO = {
46206
46215
  ...t0
46207
46216
  };
46208
- let Yp = !1, MO = 0;
46217
+ let Yp = !1, IO = 0;
46209
46218
  const Xp = () => (
46210
46219
  // Ensure the id is unique with multiple independent versions of Floating UI
46211
46220
  // on <React 18
46212
- "floating-ui-" + Math.random().toString(36).slice(2, 6) + MO++
46221
+ "floating-ui-" + Math.random().toString(36).slice(2, 6) + IO++
46213
46222
  );
46214
- function IO() {
46223
+ function DO() {
46215
46224
  const [e, t] = w.useState(() => Yp ? Xp() : void 0);
46216
46225
  return Ga(() => {
46217
46226
  e == null && t(Xp());
@@ -46219,8 +46228,8 @@ function IO() {
46219
46228
  Yp = !0;
46220
46229
  }, []), e;
46221
46230
  }
46222
- const DO = OO.useId, fy = DO || IO;
46223
- function zO() {
46231
+ const zO = MO.useId, fy = zO || DO;
46232
+ function BO() {
46224
46233
  const e = /* @__PURE__ */ new Map();
46225
46234
  return {
46226
46235
  emit(t, n) {
@@ -46236,10 +46245,10 @@ function zO() {
46236
46245
  }
46237
46246
  };
46238
46247
  }
46239
- const BO = /* @__PURE__ */ w.createContext(null), HO = /* @__PURE__ */ w.createContext(null), jO = () => {
46248
+ const HO = /* @__PURE__ */ w.createContext(null), jO = /* @__PURE__ */ w.createContext(null), $O = () => {
46240
46249
  var e;
46241
- return ((e = w.useContext(BO)) == null ? void 0 : e.id) || null;
46242
- }, $O = () => w.useContext(HO);
46250
+ return ((e = w.useContext(HO)) == null ? void 0 : e.id) || null;
46251
+ }, UO = () => w.useContext(jO);
46243
46252
  function dy(e) {
46244
46253
  return "data-floating-ui-" + e;
46245
46254
  }
@@ -46258,7 +46267,7 @@ const hy = {
46258
46267
  }, Wp = /* @__PURE__ */ w.forwardRef(function(t, n) {
46259
46268
  const [s, a] = w.useState();
46260
46269
  Ga(() => {
46261
- LO() && a("button");
46270
+ EO() && a("button");
46262
46271
  }, []);
46263
46272
  const o = {
46264
46273
  ref: n,
@@ -46274,12 +46283,12 @@ const hy = {
46274
46283
  ...o
46275
46284
  });
46276
46285
  }), my = /* @__PURE__ */ w.createContext(null), qp = /* @__PURE__ */ dy("portal");
46277
- function UO(e) {
46286
+ function FO(e) {
46278
46287
  e === void 0 && (e = {});
46279
46288
  const {
46280
46289
  id: t,
46281
46290
  root: n
46282
- } = e, s = fy(), a = FO(), [o, u] = w.useState(null), f = w.useRef(null);
46291
+ } = e, s = fy(), a = PO(), [o, u] = w.useState(null), f = w.useRef(null);
46283
46292
  return Ga(() => () => {
46284
46293
  o?.remove(), queueMicrotask(() => {
46285
46294
  f.current = null;
@@ -46306,7 +46315,7 @@ function gy(e) {
46306
46315
  id: n,
46307
46316
  root: s,
46308
46317
  preserveTabOrder: a = !0
46309
- } = e, o = UO({
46318
+ } = e, o = FO({
46310
46319
  id: n,
46311
46320
  root: s
46312
46321
  }), [u, f] = w.useState(null), d = w.useRef(null), m = w.useRef(null), p = w.useRef(null), y = w.useRef(null), L = u?.modal, b = u?.open, C = (
@@ -46320,7 +46329,7 @@ function gy(e) {
46320
46329
  if (!o || !a || L)
46321
46330
  return;
46322
46331
  function S(A) {
46323
- o && Yh(A) && (A.type === "focusin" ? Zp : NO)(o);
46332
+ o && Yh(A) && (A.type === "focusin" ? Zp : OO)(o);
46324
46333
  }
46325
46334
  return o.addEventListener("focusin", S, !0), o.addEventListener("focusout", S, !0), () => {
46326
46335
  o.removeEventListener("focusin", S, !0), o.removeEventListener("focusout", S, !0);
@@ -46345,7 +46354,7 @@ function gy(e) {
46345
46354
  var A;
46346
46355
  (A = p.current) == null || A.focus();
46347
46356
  } else {
46348
- const k = u ? u.domReference : null, M = kO(k);
46357
+ const k = u ? u.domReference : null, M = NO(k);
46349
46358
  M?.focus();
46350
46359
  }
46351
46360
  }
@@ -46360,20 +46369,20 @@ function gy(e) {
46360
46369
  var A;
46361
46370
  (A = y.current) == null || A.focus();
46362
46371
  } else {
46363
- const k = u ? u.domReference : null, M = AO(k);
46372
+ const k = u ? u.domReference : null, M = kO(k);
46364
46373
  M?.focus(), u?.closeOnFocusOut && u?.onOpenChange(!1, S.nativeEvent, "focus-out");
46365
46374
  }
46366
46375
  }
46367
46376
  })]
46368
46377
  });
46369
46378
  }
46370
- const FO = () => w.useContext(my);
46371
- function PO(e) {
46379
+ const PO = () => w.useContext(my);
46380
+ function GO(e) {
46372
46381
  const {
46373
46382
  open: t = !1,
46374
46383
  onOpenChange: n,
46375
46384
  elements: s
46376
- } = e, a = fy(), o = w.useRef({}), [u] = w.useState(() => zO()), f = jO() != null, [d, m] = w.useState(s.reference), p = _O((b, C, S) => {
46385
+ } = e, a = fy(), o = w.useRef({}), [u] = w.useState(() => BO()), f = $O() != null, [d, m] = w.useState(s.reference), p = AO((b, C, S) => {
46377
46386
  o.current.openEvent = b ? C : void 0, u.emit("openchange", {
46378
46387
  open: b,
46379
46388
  event: C,
@@ -46397,18 +46406,18 @@ function PO(e) {
46397
46406
  refs: y
46398
46407
  }), [t, p, L, u, a, y]);
46399
46408
  }
46400
- function GO(e) {
46409
+ function VO(e) {
46401
46410
  e === void 0 && (e = {});
46402
46411
  const {
46403
46412
  nodeId: t
46404
- } = e, n = PO({
46413
+ } = e, n = GO({
46405
46414
  ...e,
46406
46415
  elements: {
46407
46416
  reference: null,
46408
46417
  floating: null,
46409
46418
  ...e.elements
46410
46419
  }
46411
- }), s = e.rootContext || n, a = s.elements, [o, u] = w.useState(null), [f, d] = w.useState(null), p = a?.domReference || o, y = w.useRef(null), L = $O();
46420
+ }), s = e.rootContext || n, a = s.elements, [o, u] = w.useState(null), [f, d] = w.useState(null), p = a?.domReference || o, y = w.useRef(null), L = UO();
46412
46421
  Ga(() => {
46413
46422
  p && (y.current = p);
46414
46423
  }, [p]);
@@ -46458,14 +46467,14 @@ function GO(e) {
46458
46467
  elements: k
46459
46468
  }), [b, A, k, M]);
46460
46469
  }
46461
- function VO(e) {
46470
+ function ZO(e) {
46462
46471
  const t = w.useRef(e);
46463
46472
  return w.useEffect(() => {
46464
46473
  t.current = e;
46465
46474
  }, [e]), t;
46466
46475
  }
46467
- function ZO(e, t, n) {
46468
- const s = VO(t);
46476
+ function YO(e, t, n) {
46477
+ const s = ZO(t);
46469
46478
  w.useEffect(() => {
46470
46479
  function a(o) {
46471
46480
  s.current(o);
@@ -46473,8 +46482,8 @@ function ZO(e, t, n) {
46473
46482
  return document.addEventListener(e, a, n), () => document.removeEventListener(e, a, n);
46474
46483
  }, [e, n, s]);
46475
46484
  }
46476
- const YO = (e, t) => {
46477
- ZO(
46485
+ const XO = (e, t) => {
46486
+ YO(
46478
46487
  "click",
46479
46488
  (n) => {
46480
46489
  e && (e.contains(n.target) || t(n));
@@ -46483,7 +46492,7 @@ const YO = (e, t) => {
46483
46492
  capture: !0
46484
46493
  }
46485
46494
  );
46486
- }, XO = [
46495
+ }, WO = [
46487
46496
  {
46488
46497
  name: "bold",
46489
46498
  content: "B",
@@ -46504,7 +46513,7 @@ const YO = (e, t) => {
46504
46513
  content: "S",
46505
46514
  class: "line-through"
46506
46515
  }
46507
- ], WO = ["alt", "loop", "opt", "par"], qO = () => {
46516
+ ], qO = ["alt", "loop", "opt", "par"], KO = () => {
46508
46517
  const [e, t] = Ue(ys), n = yt(Qs), s = Ze(V0), a = Ze(Za), o = Ze(_i), [u, f] = Ue(fi), [d, m] = w.useState(!1), [p, y] = w.useState([]), [L, b] = w.useState(!1), C = (U) => {
46509
46518
  t(U), n(U);
46510
46519
  }, S = w.useRef({
@@ -46521,7 +46530,7 @@ const YO = (e, t) => {
46521
46530
  signature: "",
46522
46531
  labelStart: -1,
46523
46532
  labelEnd: -1
46524
- }), { refs: A, floatingStyles: k } = GO({
46533
+ }), { refs: A, floatingStyles: k } = VO({
46525
46534
  open: d,
46526
46535
  onOpenChange: m
46527
46536
  }), M = (U) => {
@@ -46554,7 +46563,7 @@ const YO = (e, t) => {
46554
46563
  target: K.target,
46555
46564
  signature: K.signature
46556
46565
  })) return;
46557
- const nt = pO({
46566
+ const nt = xO({
46558
46567
  line: K.line,
46559
46568
  currentType: K.currentType,
46560
46569
  targetType: U,
@@ -46582,7 +46591,7 @@ const YO = (e, t) => {
46582
46591
  });
46583
46592
  }, z = (U) => {
46584
46593
  m(!1);
46585
- const K = S.current, nt = bO({
46594
+ const K = S.current, nt = LO({
46586
46595
  code: e,
46587
46596
  line: K.line,
46588
46597
  lineHead: K.lineHead,
@@ -46594,7 +46603,7 @@ const YO = (e, t) => {
46594
46603
  token: Date.now()
46595
46604
  });
46596
46605
  };
46597
- YO(A.floating.current, () => {
46606
+ XO(A.floating.current, () => {
46598
46607
  m(!1), f(null);
46599
46608
  }), w.useEffect(() => {
46600
46609
  s((U, K) => {
@@ -46633,7 +46642,7 @@ const YO = (e, t) => {
46633
46642
  return w.useEffect(() => {
46634
46643
  d || j(null);
46635
46644
  }, [d]), /* @__PURE__ */ E.jsx(gy, { children: /* @__PURE__ */ E.jsx("div", { id: "style-panel", ref: A.setFloating, style: { ...k, zIndex: 40 }, children: d && /* @__PURE__ */ E.jsxs("div", { className: "flex items-center bg-white shadow-md z-40 rounded-md p-1 gap-1", children: [
46636
- /* @__PURE__ */ E.jsx("div", { className: "flex", children: XO.map((U) => /* @__PURE__ */ E.jsx(
46645
+ /* @__PURE__ */ E.jsx("div", { className: "flex", children: WO.map((U) => /* @__PURE__ */ E.jsx(
46637
46646
  "button",
46638
46647
  {
46639
46648
  type: "button",
@@ -46756,7 +46765,7 @@ const YO = (e, t) => {
46756
46765
  children: "Wrap ▾"
46757
46766
  }
46758
46767
  ),
46759
- _ === "wrap" && /* @__PURE__ */ E.jsx("div", { className: "absolute left-0 top-full mt-1 bg-white shadow-lg rounded-md border border-gray-200 p-1 flex flex-col gap-0.5 z-50 min-w-[70px]", children: WO.map((U) => /* @__PURE__ */ E.jsx(
46768
+ _ === "wrap" && /* @__PURE__ */ E.jsx("div", { className: "absolute left-0 top-full mt-1 bg-white shadow-lg rounded-md border border-gray-200 p-1 flex flex-col gap-0.5 z-50 min-w-[70px]", children: qO.map((U) => /* @__PURE__ */ E.jsx(
46760
46769
  "button",
46761
46770
  {
46762
46771
  type: "button",
@@ -46796,17 +46805,17 @@ const YO = (e, t) => {
46796
46805
  isRoot: !0
46797
46806
  }
46798
46807
  ),
46799
- /* @__PURE__ */ E.jsx(qO, {})
46808
+ /* @__PURE__ */ E.jsx(KO, {})
46800
46809
  ]
46801
46810
  }
46802
46811
  );
46803
46812
  }, Jp = (e) => {
46804
46813
  let t = e.trim().replace(/\s+/g, " ");
46805
46814
  return Xa.test(t) && (t = t.replace(/"/g, ""), t = `"${t}"`, Xa.lastIndex = 0), t;
46806
- }, KO = (e) => {
46815
+ }, QO = (e) => {
46807
46816
  const t = [];
46808
46817
  return e.type && t.push(`@${e.type}`), e.stereotype && t.push(`<<${e.stereotype}>>`), e.emoji && t.push(`[${e.emoji}]`), t.push(Jp(e.name)), e.label && e.label !== e.name && t.push(`as ${Jp(e.label)}`), e.color && t.push(e.color), t.join(" ");
46809
- }, QO = (e, t, n, s) => {
46818
+ }, JO = (e, t, n, s) => {
46810
46819
  const a = cr(e).filter((o) => o.name !== he).map((o) => ({
46811
46820
  name: o.name,
46812
46821
  label: o.label,
@@ -46818,7 +46827,7 @@ const YO = (e, t) => {
46818
46827
  return a.splice(t, 0, {
46819
46828
  name: n,
46820
46829
  type: void 0
46821
- }), a.map(KO).join(`
46830
+ }), a.map(QO).join(`
46822
46831
  `);
46823
46832
  }, py = ({
46824
46833
  code: e,
@@ -46827,7 +46836,7 @@ const YO = (e, t) => {
46827
46836
  name: s,
46828
46837
  type: a
46829
46838
  }) => {
46830
- const o = QO(
46839
+ const o = JO(
46831
46840
  t,
46832
46841
  n,
46833
46842
  s
@@ -46842,15 +46851,15 @@ ${A}` : o;
46842
46851
  ` : "";
46843
46852
  return `${p}${L}${o}
46844
46853
  ${y}`;
46845
- }, xy = Pc / 2, JO = (e, t, n) => (e.boxRight(t) + e.boxLeft(n)) / 2, tM = (e, t) => {
46854
+ }, xy = Pc / 2, tM = (e, t, n) => (e.boxRight(t) + e.boxLeft(n)) / 2, eM = (e, t) => {
46846
46855
  if (t.length === 0) return null;
46847
46856
  const n = t[t.length - 1];
46848
46857
  return e.boxRight(n) + xy;
46849
- }, eM = (e, t) => {
46858
+ }, nM = (e, t) => {
46850
46859
  if (t.length === 0) return null;
46851
46860
  const n = t[0];
46852
46861
  return e.boxLeft(n) - xy;
46853
- }, nM = 40, Y2 = 16, Yr = 36, Xh = nM - Yr / 2, t7 = (Yr - Y2) / 2, sM = (e) => {
46862
+ }, sM = 40, Y2 = 16, Yr = 36, Xh = sM - Yr / 2, t7 = (Yr - Y2) / 2, iM = (e) => {
46854
46863
  for (let t = 1; ; t++) {
46855
46864
  const n = String.fromCharCode(64 + t);
46856
46865
  if (n.length === 1 && t <= 26 && !e.has(n))
@@ -46860,7 +46869,7 @@ ${y}`;
46860
46869
  if (!e.has(s)) return s;
46861
46870
  }
46862
46871
  }
46863
- }, iM = () => {
46872
+ }, rM = () => {
46864
46873
  const e = yt(En), t = yt(q8), n = yt(Ls), s = yt(hi), a = yt(Qs), [o, u] = Ue(ys), f = w.useMemo(
46865
46874
  () => cr(s).filter((O) => O.name !== he),
46866
46875
  [s]
@@ -46900,7 +46909,7 @@ ${y}`;
46900
46909
  const O = [];
46901
46910
  for (let z = 0; z < f.length - 1; z++)
46902
46911
  O.push(
46903
- JO(
46912
+ tM(
46904
46913
  b,
46905
46914
  f[z].name,
46906
46915
  f[z + 1].name
@@ -46908,14 +46917,14 @@ ${y}`;
46908
46917
  );
46909
46918
  return O;
46910
46919
  }, [b, f]), S = w.useMemo(
46911
- () => eM(b, m),
46920
+ () => nM(b, m),
46912
46921
  [b, m]
46913
46922
  ), A = w.useMemo(
46914
- () => tM(b, m),
46923
+ () => eM(b, m),
46915
46924
  [b, m]
46916
46925
  ), k = (O) => {
46917
46926
  if (!s) return;
46918
- const z = sM(d), _ = py({
46927
+ const z = iM(d), _ = py({
46919
46928
  code: o,
46920
46929
  rootContext: s,
46921
46930
  insertIndex: O,
@@ -47023,16 +47032,16 @@ ${y}`;
47023
47032
  }
47024
47033
  )
47025
47034
  ] });
47026
- }, rM = (e) => {
47035
+ }, aM = (e) => {
47027
47036
  const t = [];
47028
47037
  return e.type && t.push(`@${e.type}`), e.stereotype && t.push(`<<${e.stereotype}>>`), e.emoji && t.push(`[${e.emoji}]`), t.push(e.name), e.label && e.label !== e.name && t.push(`as ${e.label}`), e.color && t.push(e.color), t.join(" ");
47029
- }, aM = (e, t) => (e?.head?.()?.participant?.() ?? []).find((s) => {
47038
+ }, lM = (e, t) => (e?.head?.()?.participant?.() ?? []).find((s) => {
47030
47039
  const a = s?.name()?.getFormattedText();
47031
47040
  return a === t || a === t.split(":")[1];
47032
47041
  }), e7 = (e, t, n, s) => {
47033
- const a = aM(t, n);
47042
+ const a = lM(t, n);
47034
47043
  if (!a) return e;
47035
- const o = a?.participantType()?.getFormattedText()?.replace("@", "") ?? void 0, u = a?.COLOR?.()?.getText() ?? void 0, f = a.label?.()?.name()?.getFormattedText(), d = a.stereotype?.()?.name()?.getFormattedText(), m = a.emoji?.()?.name?.()?.getFormattedText(), p = "type" in s ? s.type ?? void 0 : o, y = "color" in s ? s.color ?? void 0 : u, L = rM({
47044
+ const o = a?.participantType()?.getFormattedText()?.replace("@", "") ?? void 0, u = a?.COLOR?.()?.getText() ?? void 0, f = a.label?.()?.name()?.getFormattedText(), d = a.stereotype?.()?.name()?.getFormattedText(), m = a.emoji?.()?.name?.()?.getFormattedText(), p = "type" in s ? s.type ?? void 0 : o, y = "color" in s ? s.color ?? void 0 : u, L = aM({
47036
47045
  name: a?.name()?.getFormattedText(),
47037
47046
  label: f,
47038
47047
  type: p,
@@ -47041,7 +47050,7 @@ ${y}`;
47041
47050
  emoji: m
47042
47051
  }), b = a.start.start, C = a.stop.stop + 1;
47043
47052
  return e.slice(0, b) + L + e.slice(C);
47044
- }, lM = [
47053
+ }, oM = [
47045
47054
  { hex: "#ef4444", name: "Red" },
47046
47055
  { hex: "#f97316", name: "Orange" },
47047
47056
  { hex: "#eab308", name: "Yellow" },
@@ -47052,14 +47061,14 @@ ${y}`;
47052
47061
  { hex: "#ec4899", name: "Pink" },
47053
47062
  { hex: "#94a3b8", name: "Gray" },
47054
47063
  { hex: "#ffffff", name: "White" }
47055
- ], oM = [
47064
+ ], cM = [
47056
47065
  { key: "Actor", label: "Actor", icon: "👤" },
47057
47066
  { key: "Boundary", label: "Boundary", icon: "⬡" },
47058
47067
  { key: "Control", label: "Control", icon: "⟳" },
47059
47068
  { key: "Entity", label: "Entity", icon: "□" },
47060
47069
  { key: "Database", label: "Database", icon: "🗄" },
47061
47070
  { key: "Queue", label: "Queue", icon: "≡" }
47062
- ], cM = () => {
47071
+ ], uM = () => {
47063
47072
  const e = yt(En), t = yt(Q8), [n, s] = Ue(ys), a = yt(Qs), o = yt(hi), [u, f] = Ue(_i), d = yt(oa), m = yt(Vc), [p, y] = w.useState(!1), [L, b] = w.useState(null), C = w.useRef(null), S = u[0] ?? null, A = S ? cr(o).find((O) => O.name === S) : null, k = A?.color?.toLowerCase() ?? null, M = A?.type ?? null;
47064
47073
  if (w.useEffect(() => {
47065
47074
  if (u.length === 1 && d && !m) {
@@ -47124,7 +47133,7 @@ ${y}`;
47124
47133
  children: [
47125
47134
  /* @__PURE__ */ E.jsx("div", { className: "text-[10px] uppercase tracking-wide text-gray-400 font-semibold px-1", children: "Color" }),
47126
47135
  /* @__PURE__ */ E.jsxs("div", { className: "flex flex-wrap gap-1 px-1", children: [
47127
- lM.map(({ hex: O, name: z }) => {
47136
+ oM.map(({ hex: O, name: z }) => {
47128
47137
  const _ = k === O.toLowerCase();
47129
47138
  return /* @__PURE__ */ E.jsx(
47130
47139
  "button",
@@ -47155,7 +47164,7 @@ ${y}`;
47155
47164
  /* @__PURE__ */ E.jsx("div", { className: "w-full h-px bg-gray-100" }),
47156
47165
  /* @__PURE__ */ E.jsx("div", { className: "text-[10px] uppercase tracking-wide text-gray-400 font-semibold px-1", children: "Type" }),
47157
47166
  /* @__PURE__ */ E.jsxs("div", { className: "flex flex-wrap gap-1 px-1", children: [
47158
- oM.map(({ key: O, label: z, icon: _ }) => {
47167
+ cM.map(({ key: O, label: z, icon: _ }) => {
47159
47168
  const j = M?.toLowerCase() === O.toLowerCase();
47160
47169
  return /* @__PURE__ */ E.jsxs(
47161
47170
  "button",
@@ -47192,7 +47201,7 @@ ${y}`;
47192
47201
  ]
47193
47202
  }
47194
47203
  ) });
47195
- }, uM = () => {
47204
+ }, fM = () => {
47196
47205
  const e = yt(En), [t, n] = Ue(ys), s = yt(Qs);
47197
47206
  if (e !== Ve.Dynamic) return null;
47198
47207
  const a = () => {
@@ -47245,7 +47254,7 @@ A` : "A";
47245
47254
  style: { paddingLeft: `${p}px` },
47246
47255
  className: "relative z-container",
47247
47256
  children: n === Ve.Dynamic ? /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
47248
- o && /* @__PURE__ */ E.jsx(uM, {}),
47257
+ o && /* @__PURE__ */ E.jsx(fM, {}),
47249
47258
  /* @__PURE__ */ E.jsx(
47250
47259
  Bh,
47251
47260
  {
@@ -47278,10 +47287,10 @@ A` : "A";
47278
47287
  pointerEvents: "none",
47279
47288
  zIndex: 40
47280
47289
  },
47281
- children: /* @__PURE__ */ E.jsx("div", { className: "relative grow h-full", children: /* @__PURE__ */ E.jsx(iM, {}) })
47290
+ children: /* @__PURE__ */ E.jsx("div", { className: "relative grow h-full", children: /* @__PURE__ */ E.jsx(rM, {}) })
47282
47291
  }
47283
47292
  ),
47284
- /* @__PURE__ */ E.jsx(cM, {})
47293
+ /* @__PURE__ */ E.jsx(uM, {})
47285
47294
  ] }) : /* @__PURE__ */ E.jsxs(E.Fragment, { children: [
47286
47295
  /* @__PURE__ */ E.jsx(
47287
47296
  Bh,
@@ -47307,7 +47316,7 @@ A` : "A";
47307
47316
  }, U1 = {
47308
47317
  backgroundColor: "white",
47309
47318
  filter: (e) => !e?.classList?.contains("hide-export")
47310
- }, fM = ({
47319
+ }, dM = ({
47311
47320
  ref: e,
47312
47321
  children: t
47313
47322
  }) => {
@@ -47448,7 +47457,7 @@ A` : "A";
47448
47457
  }
47449
47458
  );
47450
47459
  };
47451
- class dM extends w.Component {
47460
+ class hM extends w.Component {
47452
47461
  constructor(t) {
47453
47462
  super(t), this.state = { hasError: !1, error: null };
47454
47463
  }
@@ -47465,14 +47474,14 @@ class dM extends w.Component {
47465
47474
  ] }) : this.props.children;
47466
47475
  }
47467
47476
  }
47468
- const hM = "3.49.0";
47469
- function mM(e) {
47477
+ const mM = "3.49.1";
47478
+ function gM(e) {
47470
47479
  const t = Math.floor(e / 1e3), n = Math.floor(e % 1e3), s = Math.floor((e % 1e3 - n) * 1e3);
47471
47480
  return t + "s " + n + "ms " + s + "μs";
47472
47481
  }
47473
- const gM = (e, t) => {
47482
+ const pM = (e, t) => {
47474
47483
  const s = by() - t;
47475
- return tn.debug(e + " cost: " + mM(s)), s;
47484
+ return tn.debug(e + " cost: " + gM(s)), s;
47476
47485
  }, by = () => performance.now();
47477
47486
  var Wh = { exports: {} }, Ec = {}, qh = { exports: {} }, Kh = {};
47478
47487
  /**
@@ -47485,7 +47494,7 @@ var Wh = { exports: {} }, Ec = {}, qh = { exports: {} }, Kh = {};
47485
47494
  * LICENSE file in the root directory of this source tree.
47486
47495
  */
47487
47496
  var n7;
47488
- function pM() {
47497
+ function xM() {
47489
47498
  return n7 || (n7 = 1, (function(e) {
47490
47499
  function t(I, J) {
47491
47500
  var V = I.length;
@@ -47705,8 +47714,8 @@ function pM() {
47705
47714
  })(Kh)), Kh;
47706
47715
  }
47707
47716
  var s7;
47708
- function xM() {
47709
- return s7 || (s7 = 1, qh.exports = pM()), qh.exports;
47717
+ function yM() {
47718
+ return s7 || (s7 = 1, qh.exports = xM()), qh.exports;
47710
47719
  }
47711
47720
  /**
47712
47721
  * @license React
@@ -47718,10 +47727,10 @@ function xM() {
47718
47727
  * LICENSE file in the root directory of this source tree.
47719
47728
  */
47720
47729
  var i7;
47721
- function yM() {
47730
+ function bM() {
47722
47731
  if (i7) return Ec;
47723
47732
  i7 = 1;
47724
- var e = xM(), t = w0(), n = N9();
47733
+ var e = yM(), t = w0(), n = N9();
47725
47734
  function s(i) {
47726
47735
  var r = "https://react.dev/errors/" + i;
47727
47736
  if (1 < arguments.length) {
@@ -57491,7 +57500,7 @@ Error generating stack: ` + c.message + `
57491
57500
  }, Ec.version = "19.2.3", Ec;
57492
57501
  }
57493
57502
  var r7;
57494
- function bM() {
57503
+ function LM() {
57495
57504
  if (r7) return Wh.exports;
57496
57505
  r7 = 1;
57497
57506
  function e() {
@@ -57502,10 +57511,10 @@ function bM() {
57502
57511
  console.error(t);
57503
57512
  }
57504
57513
  }
57505
- return e(), Wh.exports = yM(), Wh.exports;
57514
+ return e(), Wh.exports = bM(), Wh.exports;
57506
57515
  }
57507
- var LM = bM();
57508
- const a7 = Xv + 8, EM = 16, vM = 16, TM = 28, Rc = 20, Qc = 40, l7 = 250;
57516
+ var EM = LM();
57517
+ const a7 = Xv + 8, vM = 16, TM = 16, wM = 28, Rc = 20, Qc = 40, l7 = 250;
57509
57518
  function Qh(e) {
57510
57519
  const t = {};
57511
57520
  let n = !1;
@@ -57519,14 +57528,14 @@ function Qh(e) {
57519
57528
  }
57520
57529
  return n ? t : void 0;
57521
57530
  }
57522
- function wM(e, t, n, s) {
57531
+ function CM(e, t, n, s) {
57523
57532
  return e.map((a) => {
57524
57533
  const o = t.getPosition(a.name), u = t.half(a.name), f = a.name.includes(":") && a.getDisplayName() === a.name;
57525
57534
  let d, m, p;
57526
57535
  if (s && a.name !== he) {
57527
57536
  const C = kg(a.getDisplayName());
57528
57537
  m = C;
57529
- const S = f ? vM : EM, A = a.hasIcon() ? TM : 0, k = a.emoji ? Rc : 0, M = 8;
57538
+ const S = f ? TM : vM, A = a.hasIcon() ? wM : 0, k = a.emoji ? Rc : 0, M = 8;
57530
57539
  a.stereotype && (p = kg(`«${a.stereotype}»`));
57531
57540
  const $ = p != null ? p + M : 0;
57532
57541
  d = Math.min(Math.max(C + S + A + k, $, I8), l7);
@@ -57553,7 +57562,7 @@ function wM(e, t, n, s) {
57553
57562
  };
57554
57563
  });
57555
57564
  }
57556
- function CM(e, t) {
57565
+ function SM(e, t) {
57557
57566
  return e.map((n) => ({
57558
57567
  participantName: n.name,
57559
57568
  x: n.x,
@@ -57564,7 +57573,7 @@ function CM(e, t) {
57564
57573
  dashed: !0
57565
57574
  }));
57566
57575
  }
57567
- function SM(e, t) {
57576
+ function RM(e, t) {
57568
57577
  const s = /* @__PURE__ */ new Map();
57569
57578
  for (const o of e)
57570
57579
  if (o.groupId != null) {
@@ -57591,10 +57600,10 @@ function SM(e, t) {
57591
57600
  return a;
57592
57601
  }
57593
57602
  const o7 = 15;
57594
- function RM(e, t, n, s, a, o, u = 0, f, d, m) {
57603
+ function _M(e, t, n, s, a, o, u = 0, f, d, m) {
57595
57604
  const p = e.statNode;
57596
57605
  if (!p) return null;
57597
- const y = _M(p);
57606
+ const y = AM(p);
57598
57607
  if (!y)
57599
57608
  return {
57600
57609
  fragment: {
@@ -57618,7 +57627,7 @@ function RM(e, t, n, s, a, o, u = 0, f, d, m) {
57618
57627
  fragmentComment: !0
57619
57628
  } : void 0
57620
57629
  };
57621
- const L = AM(y, e.fragmentSections), b = a.find((_) => L.includes(_)) || "", C = a.slice().reverse().find((_) => L.includes(_)) || "", A = new ho(a).getFrame(p), k = mo(A);
57630
+ const L = kM(y, e.fragmentSections), b = a.find((_) => L.includes(_)) || "", C = a.slice().reverse().find((_) => L.includes(_)) || "", A = new ho(a).getFrame(p), k = mo(A);
57622
57631
  let M, $;
57623
57632
  if (b && C) {
57624
57633
  const _ = n.distance(b, C) + n.half(b) + n.half(C), P = qa(p).filter((it) => it.from === it.to).map(
@@ -57719,7 +57728,7 @@ function RM(e, t, n, s, a, o, u = 0, f, d, m) {
57719
57728
  comment: z
57720
57729
  };
57721
57730
  }
57722
- function _M(e) {
57731
+ function AM(e) {
57723
57732
  for (const a of ["loop", "opt", "par", "critical", "section"]) {
57724
57733
  const o = e[a]?.();
57725
57734
  if (o) return o;
@@ -57734,7 +57743,7 @@ function _M(e) {
57734
57743
  function c7(e) {
57735
57744
  return !e?.start || !e?.stop ? "" : `${e.start.start}-${e.stop.stop}`;
57736
57745
  }
57737
- function AM(e, t) {
57746
+ function kM(e, t) {
57738
57747
  const n = new Set(ur(e));
57739
57748
  if (t)
57740
57749
  for (const s of t) {
@@ -57744,7 +57753,7 @@ function AM(e, t) {
57744
57753
  }
57745
57754
  return [...n];
57746
57755
  }
57747
- function kM(e) {
57756
+ function NM(e) {
57748
57757
  const t = e?.block?.();
57749
57758
  return t ? Ci(t, he, /* @__PURE__ */ new Map(), "", 0, null, 0) : [];
57750
57759
  }
@@ -57794,7 +57803,7 @@ function Ci(e, t, n, s, a, o, u) {
57794
57803
  d.push({ key: y, kind: "divider", from: "", to: "", label: z, isSelf: !1, hasBlock: !1, senderOccurrenceDepth: 0, number: b, depth: a });
57795
57804
  continue;
57796
57805
  }
57797
- const O = NM(p);
57806
+ const O = OM(p);
57798
57807
  d.push({
57799
57808
  key: y,
57800
57809
  kind: "fragment",
@@ -57811,11 +57820,11 @@ function Ci(e, t, n, s, a, o, u) {
57811
57820
  senderOccurrenceDepth: n.get(t) || 0,
57812
57821
  number: b,
57813
57822
  depth: a
57814
- }), OM(p, t, d, n, b, a);
57823
+ }), MM(p, t, d, n, b, a);
57815
57824
  }
57816
57825
  return d;
57817
57826
  }
57818
- function NM(e) {
57827
+ function OM(e) {
57819
57828
  for (const a of ["loop", "opt", "par", "critical", "section"]) {
57820
57829
  const o = e[a]?.();
57821
57830
  if (o) {
@@ -57855,7 +57864,7 @@ function NM(e) {
57855
57864
  function F1(e) {
57856
57865
  return (e?.stat?.() || []).filter((t) => !!Gc(t)).length;
57857
57866
  }
57858
- function OM(e, t, n, s, a, o) {
57867
+ function MM(e, t, n, s, a, o) {
57859
57868
  for (const d of ["loop", "opt", "par", "critical", "section"]) {
57860
57869
  const m = e[d]?.();
57861
57870
  if (m) {
@@ -57915,7 +57924,7 @@ function OM(e, t, n, s, a, o) {
57915
57924
  return;
57916
57925
  }
57917
57926
  }
57918
- function MM(e, t, n) {
57927
+ function IM(e, t, n) {
57919
57928
  const s = /* @__PURE__ */ new Map(), a = [0], o = [0];
57920
57929
  let u = 0;
57921
57930
  const f = [null], d = [null], m = [!1], p = [0], y = [!1];
@@ -57957,8 +57966,8 @@ function MM(e, t, n) {
57957
57966
  }
57958
57967
  return s.set("__totalDebt__", a[0] || 0), s;
57959
57968
  }
57960
- function IM(e, t, n, s, a) {
57961
- const o = kM(e), u = [], f = [], d = [], m = [], p = [], y = [], L = [], b = [];
57969
+ function DM(e, t, n, s, a) {
57970
+ const o = NM(e), u = [], f = [], d = [], m = [], p = [], y = [], L = [], b = [];
57962
57971
  let C = 0;
57963
57972
  const S = t.getWidth(), A = t.orderedParticipantNames(), k = /* @__PURE__ */ new Map();
57964
57973
  for (const _ of o)
@@ -57966,7 +57975,7 @@ function IM(e, t, n, s, a) {
57966
57975
  const j = _.number.lastIndexOf("."), P = j >= 0 ? _.number.substring(0, j) : "", Z = parseInt(_.number.substring(j + 1), 10), it = k.get(P) || 0;
57967
57976
  Z > it && k.set(P, Z);
57968
57977
  }
57969
- const $ = MM(o, n, 16);
57978
+ const $ = IM(o, n, 16);
57970
57979
  for (const _ of o) {
57971
57980
  const j = n.getStatementCoordinate(_.key);
57972
57981
  if (!j) continue;
@@ -58107,7 +58116,7 @@ function IM(e, t, n, s, a) {
58107
58116
  }
58108
58117
  if (_.kind === "fragment" && _.fragmentKind) {
58109
58118
  const U = { top: j.top + P, height: j.height }, K = Z?.text ? (_.comment?.trim().split(`
58110
- `).length || 0) * 20 : 0, nt = RM(
58119
+ `).length || 0) * 20 : 0, nt = _M(
58111
58120
  _,
58112
58121
  U,
58113
58122
  t,
@@ -58171,13 +58180,13 @@ function IM(e, t, n, s, a) {
58171
58180
  const z = $.get("__totalDebt__") || 0;
58172
58181
  return { messages: u, selfCalls: f, occurrences: d, creations: m, fragments: p, returns: y, dividers: L, comments: b, totalReturnDebt: z, maxReturnBottom: C };
58173
58182
  }
58174
- function DM(e) {
58175
- const { rootContext: t, coordinates: n, verticalCoordinates: s, title: a, measureText: o } = e, u = cr(t), f = s.getTotalHeight(), d = n.orderedParticipantNames(), p = new ho(d).getFrame(t), y = mo(p), L = wM(
58183
+ function zM(e) {
58184
+ const { rootContext: t, coordinates: n, verticalCoordinates: s, title: a, measureText: o } = e, u = cr(t), f = s.getTotalHeight(), d = n.orderedParticipantNames(), p = new ho(d).getFrame(t), y = mo(p), L = CM(
58176
58185
  u,
58177
58186
  n,
58178
58187
  s,
58179
58188
  o
58180
- ), b = IM(
58189
+ ), b = DM(
58181
58190
  t,
58182
58191
  n,
58183
58192
  s,
@@ -58196,7 +58205,7 @@ function DM(e) {
58196
58205
  _ + 13,
58197
58206
  j + 13,
58198
58207
  b.maxReturnBottom
58199
- ), Z = P + Qc - 28, it = CM(
58208
+ ), Z = P + Qc - 28, it = SM(
58200
58209
  L,
58201
58210
  Z
58202
58211
  ), U = ur(t), K = n.orderedParticipantNames(), nt = K.find((H) => U.includes(H)) || "", Et = K.slice().reverse().find((H) => U.includes(H)) || "", X = n.distance(nt, Et) + n.half(nt) + n.half(Et), J = qa(t).filter((H) => H.from === H.to).map(
@@ -58233,7 +58242,7 @@ function DM(e) {
58233
58242
  const W = pt.get(H) || 0, ot = N - W * c0, St = H.x + H.width;
58234
58243
  St >= ot - 20 && St < ot && (H.width = ot - H.x);
58235
58244
  }
58236
- const Y = SM(L, P);
58245
+ const Y = RM(L, P);
58237
58246
  return {
58238
58247
  width: ft,
58239
58248
  height: P,
@@ -58259,7 +58268,7 @@ const Ly = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
58259
58268
  <path d="M6.54883 11.2152L17.2025 11.2073M11.7471 8.06641V19.5806V8.06641ZM11.7471 19.4385L6.79789 23.5738L11.7471 19.4385ZM11.7551 19.4385L17.1864 23.3055L11.7551 19.4385Z" stroke="currentColor"/>
58260
58269
  </g>
58261
58270
  </svg>
58262
- `, zM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58271
+ `, BM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58263
58272
  __proto__: null,
58264
58273
  default: Ly
58265
58274
  }, Symbol.toStringTag, { value: "Module" })), Ey = `<svg width="101" height="78" viewBox="0 0 101 78" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -58267,7 +58276,7 @@ const Ly = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
58267
58276
  <path d="M27.3611 39.4482H3.93945" stroke="currentColor" stroke-width="4"/>
58268
58277
  <path d="M4.91504 4.37891V74.5168" stroke="currentColor" stroke-width="4"/>
58269
58278
  </svg>
58270
- `, BM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58279
+ `, HM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58271
58280
  __proto__: null,
58272
58281
  default: Ey
58273
58282
  }, Symbol.toStringTag, { value: "Module" })), vy = `<svg width="77" height="86" viewBox="0 0 77 86" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -58276,13 +58285,13 @@ const Ly = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
58276
58285
  <path d="M47.5352 2.30371L37.5352 11.5001L47.5352 20.6966" stroke="currentColor" stroke-width="6"/>
58277
58286
  </g>
58278
58287
  </svg>
58279
- `, HM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58288
+ `, jM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58280
58289
  __proto__: null,
58281
58290
  default: vy
58282
58291
  }, Symbol.toStringTag, { value: "Module" })), Ty = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
58283
58292
  <path fill-rule="evenodd" clip-rule="evenodd" d="M12.258 0.001L12.514 0.005L12.769 0.01L13.022 0.018L13.273 0.028L13.522 0.04L13.769 0.055L14.015 0.071L14.257 0.09L14.498 0.11L14.737 0.133L14.973 0.157L15.206 0.184L15.437 0.212L15.666 0.243L15.891 0.275L16.114 0.309L16.334 0.345L16.551 0.383L16.765 0.423L16.976 0.464L17.184 0.507L17.389 0.552L17.59 0.598L17.788 0.646L17.982 0.696L18.173 0.747L18.36 0.8L18.543 0.854L18.723 0.91L18.898 0.967L19.07 1.026L19.238 1.086L19.401 1.147L19.561 1.21L19.716 1.274L19.866 1.34L19.94 1.373L20.013 1.406L20.084 1.44L20.154 1.474L20.223 1.509L20.291 1.544L20.358 1.579L20.424 1.614L20.488 1.65L20.552 1.686L20.614 1.722L20.674 1.758L20.734 1.795L20.792 1.832L20.85 1.869L20.905 1.907L20.96 1.945L21.013 1.983L21.065 2.021L21.116 2.06L21.166 2.099L21.214 2.138L21.261 2.177L21.306 2.217L21.35 2.257L21.393 2.297L21.434 2.337L21.474 2.378L21.513 2.419L21.55 2.46L21.586 2.501L21.62 2.542L21.653 2.584L21.685 2.626L21.715 2.668L21.744 2.71L21.771 2.752L21.797 2.795L21.821 2.838L21.844 2.881L21.865 2.924L21.885 2.967L21.903 3.011L21.92 3.054L21.935 3.098L21.948 3.142L21.96 3.186L21.971 3.231L21.98 3.275L21.987 3.32L21.993 3.365L21.997 3.41L21.999 3.455L22 3.5V20.5L21.999 20.545L21.997 20.59L21.993 20.635L21.987 20.68L21.98 20.725L21.971 20.769L21.96 20.814L21.948 20.858L21.935 20.902L21.92 20.946L21.903 20.989L21.885 21.033L21.865 21.076L21.844 21.119L21.821 21.162L21.797 21.205L21.771 21.248L21.744 21.29L21.715 21.332L21.685 21.374L21.653 21.416L21.62 21.458L21.586 21.499L21.55 21.54L21.513 21.581L21.474 21.622L21.434 21.663L21.393 21.703L21.35 21.743L21.306 21.783L21.261 21.823L21.214 21.862L21.166 21.901L21.116 21.94L21.065 21.979L21.013 22.017L20.96 22.055L20.905 22.093L20.85 22.131L20.792 22.168L20.734 22.205L20.674 22.242L20.614 22.278L20.552 22.314L20.488 22.35L20.424 22.386L20.358 22.421L20.291 22.456L20.223 22.491L20.154 22.526L20.084 22.56L20.013 22.594L19.94 22.627L19.866 22.66L19.716 22.726L19.561 22.79L19.401 22.853L19.238 22.914L19.07 22.974L18.898 23.033L18.723 23.09L18.543 23.146L18.36 23.2L18.173 23.253L17.982 23.304L17.788 23.354L17.59 23.402L17.389 23.448L17.184 23.493L16.976 23.536L16.765 23.577L16.551 23.617L16.334 23.655L16.114 23.691L15.891 23.725L15.666 23.757L15.437 23.788L15.206 23.816L14.973 23.843L14.737 23.867L14.498 23.89L14.257 23.91L14.015 23.929L13.769 23.945L13.522 23.96L13.273 23.972L13.022 23.982L12.769 23.99L12.514 23.995L12.258 23.999L12 24L11.742 23.999L11.486 23.995L11.231 23.99L10.978 23.982L10.727 23.972L10.478 23.96L10.231 23.945L9.986 23.929L9.743 23.91L9.502 23.89L9.264 23.867L9.028 23.843L8.794 23.816L8.563 23.788L8.335 23.757L8.109 23.725L7.886 23.691L7.666 23.655L7.449 23.617L7.235 23.577L7.024 23.536L6.816 23.493L6.612 23.448L6.411 23.402L6.213 23.354L6.018 23.304L5.828 23.253L5.641 23.2L5.457 23.146L5.278 23.09L5.102 23.033L4.93 22.974L4.763 22.914L4.599 22.853L4.44 22.79L4.285 22.726L4.134 22.66L4.06 22.627L3.988 22.594L3.916 22.56L3.846 22.526L3.777 22.491L3.709 22.456L3.642 22.421L3.576 22.386L3.512 22.35L3.449 22.314L3.387 22.278L3.326 22.242L3.266 22.205L3.208 22.168L3.151 22.131L3.095 22.093L3.04 22.055L2.987 22.017L2.935 21.979L2.884 21.94L2.835 21.901L2.786 21.862L2.74 21.823L2.694 21.783L2.65 21.743L2.607 21.703L2.566 21.663L2.526 21.622L2.487 21.581L2.45 21.54L2.414 21.499L2.38 21.458L2.347 21.416L2.315 21.374L2.285 21.332L2.256 21.29L2.229 21.248L2.203 21.205L2.179 21.162L2.156 21.119L2.135 21.076L2.115 21.033L2.097 20.989L2.08 20.946L2.065 20.902L2.052 20.858L2.04 20.814L2.029 20.769L2.02 20.725L2.013 20.68L2.007 20.635L2.003 20.59L2.001 20.545L2 20.5V3.5L2.001 3.455L2.003 3.41L2.007 3.365L2.013 3.32L2.02 3.275L2.029 3.231L2.04 3.186L2.052 3.142L2.065 3.098L2.08 3.054L2.097 3.011L2.115 2.967L2.135 2.924L2.156 2.881L2.179 2.838L2.203 2.795L2.229 2.752L2.256 2.71L2.285 2.668L2.315 2.626L2.347 2.584L2.38 2.542L2.414 2.501L2.45 2.46L2.487 2.419L2.526 2.378L2.566 2.337L2.607 2.297L2.65 2.257L2.694 2.217L2.74 2.177L2.786 2.138L2.835 2.099L2.884 2.06L2.935 2.021L2.987 1.983L3.04 1.945L3.095 1.907L3.151 1.869L3.208 1.832L3.266 1.795L3.326 1.758L3.387 1.722L3.449 1.686L3.512 1.65L3.576 1.614L3.642 1.579L3.709 1.544L3.777 1.509L3.846 1.474L3.916 1.44L3.988 1.406L4.06 1.373L4.134 1.34L4.285 1.274L4.44 1.21L4.599 1.147L4.763 1.086L4.93 1.026L5.102 0.967L5.278 0.91L5.457 0.854L5.641 0.8L5.828 0.747L6.018 0.696L6.213 0.646L6.411 0.598L6.612 0.552L6.816 0.507L7.024 0.464L7.235 0.423L7.449 0.383L7.666 0.345L7.886 0.309L8.109 0.275L8.335 0.243L8.563 0.212L8.794 0.184L9.028 0.157L9.264 0.133L9.502 0.11L9.743 0.09L9.986 0.071L10.231 0.055L10.478 0.04L10.727 0.028L10.978 0.018L11.231 0.01L11.486 0.005L11.742 0.001L12 0L12.258 0.001V0.001ZM3 20.5V20.51L3.001 20.531L3.004 20.552L3.008 20.574L3.013 20.595L3.019 20.617L3.026 20.639L3.035 20.662L3.045 20.684L3.056 20.707L3.068 20.73L3.081 20.753L3.096 20.776L3.112 20.8L3.129 20.823L3.147 20.847L3.166 20.871L3.187 20.895L3.209 20.92L3.232 20.944L3.256 20.969L3.308 21.018L3.364 21.068L3.425 21.119L3.491 21.17L3.561 21.221L3.636 21.272L3.715 21.324L3.799 21.376L3.887 21.428L3.979 21.48L4.076 21.532L4.178 21.583L4.283 21.635L4.393 21.687L4.507 21.738L4.626 21.789L4.749 21.84L4.876 21.89L5.007 21.94L5.142 21.99L5.281 22.038L5.425 22.087L5.572 22.134L5.724 22.181L5.879 22.228L6.039 22.273L6.202 22.318L6.369 22.361L6.54 22.404L6.716 22.445L6.894 22.486L7.077 22.525L7.264 22.564L7.454 22.601L7.648 22.636L7.845 22.671L8.047 22.704L8.251 22.735L8.46 22.765L8.672 22.794L8.888 22.821L9.107 22.846L9.329 22.87L9.555 22.891L9.785 22.911L10.018 22.929L10.254 22.945L10.494 22.96L10.737 22.972L10.983 22.982L11.232 22.99L11.485 22.995L11.741 22.999L12 23L12.26 22.999L12.517 22.995L12.771 22.99L13.021 22.982L13.268 22.971L13.512 22.959L13.753 22.945L13.99 22.929L14.223 22.911L14.454 22.89L14.68 22.869L14.904 22.845L15.124 22.819L15.34 22.792L15.552 22.764L15.762 22.733L15.967 22.702L16.169 22.668L16.367 22.634L16.561 22.598L16.752 22.561L16.939 22.522L17.122 22.482L17.301 22.442L17.476 22.4L17.648 22.357L17.816 22.313L17.979 22.268L18.139 22.222L18.294 22.176L18.446 22.129L18.594 22.081L18.737 22.032L18.876 21.983L19.012 21.933L19.143 21.883L19.269 21.833L19.392 21.782L19.51 21.73L19.624 21.679L19.734 21.627L19.84 21.575L19.941 21.523L20.037 21.471L20.129 21.419L20.217 21.366L20.3 21.315L20.379 21.263L20.453 21.211L20.523 21.16L20.588 21.109L20.648 21.058L20.704 21.008L20.755 20.958L20.778 20.934L20.801 20.909L20.822 20.885L20.842 20.861L20.861 20.837L20.879 20.813L20.896 20.789L20.911 20.766L20.925 20.742L20.938 20.719L20.95 20.696L20.96 20.673L20.97 20.651L20.978 20.629L20.984 20.607L20.99 20.585L20.994 20.563L20.998 20.542L20.999 20.521L21 20.5V16.373L20.923 16.428L20.843 16.481L20.76 16.535L20.675 16.588L20.588 16.64L20.498 16.692L20.405 16.743L20.31 16.793L20.213 16.843L20.113 16.892L20.011 16.941L19.906 16.989L19.8 17.036L19.691 17.083L19.58 17.129L19.466 17.174L19.351 17.219L19.233 17.263L19.113 17.306L18.991 17.348L18.867 17.39L18.741 17.431L18.613 17.471L18.483 17.511L18.351 17.549L18.217 17.587L18.082 17.624L17.944 17.661L17.805 17.696L17.663 17.731L17.52 17.765L17.376 17.798L17.229 17.83L17.081 17.861L16.931 17.891L16.78 17.921L16.627 17.95L16.473 17.977L16.317 18.004L16.159 18.03L16 18.055L15.839 18.079L15.677 18.102L15.514 18.124L15.349 18.145L15.183 18.165L15.016 18.184L14.847 18.202L14.678 18.219L14.507 18.235L14.334 18.25L14.161 18.264L13.986 18.277L13.811 18.289L13.634 18.3L13.456 18.31L13.277 18.318L13.098 18.326L12.917 18.332L12.735 18.337L12.553 18.341L12.369 18.344L12.185 18.346H11.815L11.631 18.344L11.447 18.341L11.265 18.337L11.083 18.332L10.902 18.326L10.723 18.318L10.544 18.31L10.366 18.3L10.19 18.289L10.014 18.277L9.839 18.264L9.666 18.25L9.494 18.235L9.323 18.219L9.153 18.202L8.984 18.184L8.817 18.165L8.651 18.145L8.486 18.124L8.323 18.102L8.161 18.079L8 18.055L7.841 18.03L7.684 18.004L7.528 17.977L7.373 17.95L7.22 17.921L7.069 17.891L6.919 17.861L6.771 17.83L6.625 17.798L6.48 17.765L6.337 17.731L6.196 17.696L6.056 17.661L5.919 17.624L5.783 17.587L5.649 17.549L5.517 17.511L5.387 17.471L5.259 17.431L5.133 17.39L5.009 17.348L4.887 17.306L4.767 17.262L4.65 17.219L4.534 17.174L4.421 17.129L4.309 17.083L4.2 17.036L4.094 16.989L3.989 16.941L3.887 16.892L3.787 16.843L3.69 16.793L3.595 16.743L3.502 16.691L3.412 16.64L3.325 16.588L3.24 16.535L3.157 16.481L3.077 16.427L3 16.373V20.5V20.5ZM3 14.846V14.857L3.001 14.878L3.004 14.899L3.008 14.92L3.013 14.942L3.019 14.964L3.026 14.986L3.035 15.008L3.045 15.03L3.056 15.053L3.068 15.076L3.081 15.099L3.096 15.123L3.112 15.146L3.129 15.17L3.147 15.194L3.166 15.218L3.187 15.242L3.209 15.266L3.232 15.291L3.256 15.315L3.308 15.365L3.364 15.415L3.425 15.465L3.491 15.516L3.561 15.567L3.636 15.619L3.715 15.67L3.799 15.722L3.887 15.774L3.979 15.826L4.076 15.878L4.178 15.93L4.283 15.982L4.393 16.033L4.507 16.084L4.626 16.136L4.749 16.186L4.876 16.237L5.007 16.287L5.142 16.336L5.281 16.385L5.425 16.433L5.572 16.481L5.724 16.528L5.879 16.574L6.039 16.619L6.202 16.664L6.369 16.708L6.54 16.75L6.716 16.792L6.894 16.832L7.077 16.872L7.264 16.91L7.454 16.947L7.648 16.983L7.845 17.017L8.047 17.05L8.251 17.082L8.46 17.112L8.672 17.14L8.888 17.167L9.107 17.192L9.329 17.216L9.555 17.238L9.785 17.258L10.018 17.276L10.254 17.292L10.494 17.306L10.737 17.318L10.983 17.328L11.232 17.336L11.485 17.342L11.741 17.345L12 17.346L12.26 17.345L12.517 17.342L12.771 17.336L13.021 17.328L13.268 17.318L13.512 17.306L13.753 17.291L13.99 17.275L14.223 17.257L14.454 17.237L14.68 17.215L14.904 17.191L15.124 17.166L15.34 17.139L15.552 17.11L15.762 17.08L15.967 17.048L16.169 17.015L16.367 16.98L16.561 16.944L16.752 16.907L16.939 16.868L17.122 16.829L17.301 16.788L17.476 16.746L17.648 16.703L17.816 16.659L17.979 16.614L18.139 16.569L18.294 16.522L18.446 16.475L18.594 16.427L18.737 16.379L18.876 16.329L19.012 16.28L19.143 16.23L19.269 16.179L19.392 16.128L19.51 16.077L19.624 16.025L19.734 15.973L19.84 15.921L19.941 15.869L20.037 15.817L20.129 15.765L20.217 15.713L20.3 15.661L20.379 15.609L20.453 15.558L20.523 15.506L20.588 15.455L20.648 15.405L20.704 15.354L20.755 15.305L20.778 15.28L20.801 15.256L20.822 15.231L20.842 15.207L20.861 15.183L20.879 15.159L20.896 15.135L20.911 15.112L20.925 15.089L20.938 15.065L20.95 15.043L20.96 15.02L20.97 14.997L20.978 14.975L20.984 14.953L20.99 14.931L20.994 14.91L20.998 14.888L20.999 14.867L21 14.846V10.707L20.923 10.761L20.843 10.815L20.76 10.869L20.675 10.921L20.588 10.974L20.498 11.025L20.405 11.076L20.31 11.127L20.213 11.177L20.113 11.226L20.011 11.275L19.906 11.323L19.8 11.37L19.691 11.417L19.58 11.463L19.466 11.508L19.351 11.552L19.233 11.596L19.113 11.64L18.991 11.682L18.867 11.724L18.741 11.765L18.613 11.805L18.483 11.844L18.351 11.883L18.217 11.921L18.082 11.958L17.944 11.994L17.805 12.03L17.663 12.065L17.52 12.098L17.376 12.131L17.229 12.164L17.081 12.195L16.931 12.225L16.78 12.255L16.627 12.283L16.473 12.311L16.317 12.338L16.159 12.364L16 12.389L15.839 12.413L15.677 12.436L15.514 12.458L15.349 12.479L15.183 12.499L15.016 12.518L14.847 12.536L14.678 12.553L14.507 12.569L14.334 12.584L14.161 12.598L13.986 12.611L13.811 12.623L13.634 12.634L13.456 12.643L13.277 12.652L13.098 12.659L12.917 12.666L12.735 12.671L12.553 12.675L12.369 12.678L12.185 12.68H11.815L11.631 12.678L11.447 12.675L11.265 12.671L11.083 12.666L10.902 12.659L10.723 12.652L10.544 12.643L10.366 12.634L10.19 12.623L10.014 12.611L9.839 12.598L9.666 12.584L9.494 12.569L9.323 12.553L9.153 12.536L8.984 12.518L8.817 12.499L8.651 12.479L8.486 12.458L8.323 12.436L8.161 12.413L8 12.389L7.841 12.364L7.684 12.338L7.528 12.311L7.373 12.283L7.22 12.255L7.069 12.225L6.919 12.195L6.771 12.164L6.625 12.131L6.48 12.098L6.337 12.065L6.196 12.03L6.056 11.994L5.919 11.958L5.783 11.921L5.649 11.883L5.517 11.844L5.387 11.805L5.259 11.765L5.133 11.724L5.009 11.682L4.887 11.639L4.767 11.596L4.65 11.552L4.534 11.508L4.421 11.462L4.309 11.416L4.2 11.37L4.094 11.323L3.989 11.275L3.887 11.226L3.787 11.177L3.69 11.127L3.595 11.076L3.502 11.025L3.412 10.974L3.325 10.921L3.24 10.869L3.157 10.815L3.077 10.761L3 10.707V14.846V14.846ZM3 9.18V9.191L3.001 9.211L3.004 9.233L3.008 9.254L3.013 9.276L3.019 9.297L3.026 9.319L3.035 9.342L3.045 9.364L3.056 9.387L3.068 9.41L3.081 9.433L3.096 9.456L3.112 9.48L3.129 9.504L3.147 9.527L3.166 9.551L3.187 9.576L3.209 9.6L3.232 9.624L3.256 9.649L3.308 9.699L3.364 9.749L3.425 9.799L3.491 9.85L3.561 9.901L3.636 9.953L3.715 10.004L3.799 10.056L3.887 10.108L3.979 10.16L4.076 10.212L4.178 10.264L4.283 10.315L4.393 10.367L4.507 10.418L4.626 10.469L4.749 10.52L4.876 10.57L5.007 10.62L5.142 10.67L5.281 10.719L5.425 10.767L5.572 10.815L5.724 10.862L5.879 10.908L6.039 10.953L6.202 10.998L6.369 11.041L6.54 11.084L6.716 11.126L6.894 11.166L7.077 11.206L7.264 11.244L7.454 11.281L7.648 11.317L7.845 11.351L8.047 11.384L8.251 11.416L8.46 11.446L8.672 11.474L8.888 11.501L9.107 11.526L9.329 11.55L9.555 11.571L9.785 11.591L10.018 11.609L10.254 11.626L10.494 11.64L10.737 11.652L10.983 11.662L11.232 11.67L11.485 11.676L11.741 11.679L12 11.68L12.26 11.679L12.517 11.676L12.771 11.67L13.021 11.662L13.268 11.652L13.512 11.639L13.753 11.625L13.99 11.609L14.223 11.591L14.454 11.571L14.68 11.549L14.904 11.525L15.124 11.5L15.34 11.473L15.552 11.444L15.762 11.414L15.967 11.382L16.169 11.349L16.367 11.314L16.561 11.278L16.752 11.241L16.939 11.202L17.122 11.163L17.301 11.122L17.476 11.08L17.648 11.037L17.816 10.993L17.979 10.948L18.139 10.903L18.294 10.856L18.446 10.809L18.594 10.761L18.737 10.712L18.876 10.663L19.012 10.614L19.143 10.563L19.269 10.513L19.392 10.462L19.51 10.41L19.624 10.359L19.734 10.307L19.84 10.255L19.941 10.203L20.037 10.151L20.129 10.099L20.217 10.047L20.3 9.995L20.379 9.943L20.453 9.891L20.523 9.84L20.588 9.789L20.648 9.738L20.704 9.688L20.755 9.639L20.778 9.614L20.801 9.589L20.822 9.565L20.842 9.541L20.861 9.517L20.879 9.493L20.896 9.469L20.911 9.446L20.925 9.422L20.938 9.399L20.95 9.376L20.96 9.354L20.97 9.331L20.978 9.309L20.984 9.287L20.99 9.265L20.994 9.243L20.998 9.222L20.999 9.201L21 9.18V5.027L20.923 5.081L20.843 5.135L20.76 5.188L20.675 5.241L20.588 5.294L20.498 5.345L20.405 5.396L20.31 5.447L20.213 5.497L20.113 5.546L20.011 5.594L19.906 5.642L19.8 5.69L19.691 5.736L19.58 5.782L19.466 5.828L19.351 5.872L19.233 5.916L19.113 5.959L18.991 6.002L18.867 6.044L18.741 6.085L18.613 6.125L18.483 6.164L18.351 6.203L18.217 6.241L18.082 6.278L17.944 6.314L17.805 6.35L17.663 6.384L17.52 6.418L17.376 6.451L17.229 6.483L17.081 6.515L16.931 6.545L16.78 6.575L16.627 6.603L16.473 6.631L16.317 6.658L16.159 6.684L16 6.708L15.839 6.732L15.677 6.755L15.514 6.778L15.349 6.799L15.183 6.819L15.016 6.838L14.847 6.856L14.678 6.873L14.507 6.889L14.334 6.904L14.161 6.918L13.986 6.931L13.811 6.943L13.634 6.953L13.456 6.963L13.277 6.972L13.098 6.979L12.917 6.985L12.735 6.991L12.553 6.995L12.369 6.998L12.185 6.999L12 7L11.815 6.999L11.631 6.998L11.447 6.995L11.265 6.991L11.083 6.985L10.902 6.979L10.723 6.972L10.544 6.963L10.366 6.953L10.19 6.943L10.014 6.931L9.839 6.918L9.666 6.904L9.494 6.889L9.323 6.873L9.153 6.856L8.984 6.838L8.817 6.819L8.651 6.799L8.486 6.778L8.323 6.755L8.161 6.732L8 6.708L7.841 6.684L7.684 6.658L7.528 6.631L7.373 6.603L7.22 6.575L7.069 6.545L6.919 6.515L6.771 6.483L6.625 6.451L6.48 6.418L6.337 6.384L6.196 6.35L6.056 6.314L5.919 6.278L5.783 6.241L5.649 6.203L5.517 6.164L5.387 6.125L5.259 6.084L5.133 6.043L5.009 6.002L4.887 5.959L4.767 5.916L4.65 5.872L4.534 5.828L4.421 5.782L4.309 5.736L4.2 5.69L4.094 5.642L3.989 5.594L3.887 5.546L3.787 5.496L3.69 5.447L3.595 5.396L3.502 5.345L3.412 5.293L3.325 5.241L3.24 5.188L3.157 5.135L3.077 5.081L3 5.027V9.18V9.18ZM11.74 1.001L11.483 1.005L11.229 1.01L10.979 1.018L10.732 1.029L10.488 1.041L10.247 1.055L10.01 1.071L9.777 1.089L9.546 1.11L9.32 1.132L9.096 1.155L8.876 1.181L8.66 1.208L8.448 1.236L8.238 1.267L8.033 1.299L7.831 1.332L7.633 1.366L7.439 1.402L7.248 1.44L7.061 1.478L6.878 1.518L6.699 1.559L6.524 1.601L6.352 1.644L6.184 1.687L6.021 1.732L5.861 1.778L5.706 1.824L5.554 1.872L5.406 1.92L5.263 1.968L5.124 2.017L4.988 2.067L4.857 2.117L4.731 2.168L4.608 2.219L4.49 2.27L4.376 2.322L4.266 2.374L4.16 2.426L4.059 2.478L3.963 2.53L3.871 2.582L3.783 2.634L3.7 2.686L3.621 2.738L3.547 2.789L3.477 2.841L3.412 2.892L3.352 2.942L3.296 2.992L3.245 3.042L3.222 3.067L3.199 3.091L3.178 3.115L3.158 3.14L3.139 3.164L3.121 3.188L3.104 3.211L3.089 3.235L3.075 3.258L3.062 3.281L3.05 3.304L3.04 3.327L3.03 3.349L3.022 3.371L3.016 3.394L3.01 3.415L3.006 3.437L3.002 3.458L3.001 3.479L3 3.5L3.001 3.521L3.002 3.542L3.006 3.563L3.01 3.585L3.016 3.606L3.022 3.629L3.03 3.651L3.04 3.673L3.05 3.696L3.062 3.719L3.075 3.742L3.089 3.765L3.104 3.789L3.121 3.812L3.139 3.836L3.158 3.86L3.178 3.885L3.199 3.909L3.222 3.933L3.245 3.958L3.296 4.008L3.352 4.058L3.412 4.108L3.477 4.159L3.547 4.211L3.621 4.262L3.7 4.314L3.783 4.366L3.871 4.418L3.963 4.47L4.059 4.522L4.16 4.574L4.266 4.626L4.376 4.678L4.49 4.73L4.608 4.781L4.731 4.832L4.857 4.883L4.988 4.933L5.124 4.983L5.263 5.032L5.406 5.08L5.554 5.128L5.706 5.176L5.861 5.222L6.021 5.268L6.184 5.313L6.352 5.356L6.524 5.399L6.699 5.441L6.878 5.482L7.061 5.522L7.248 5.56L7.439 5.598L7.633 5.634L7.831 5.668L8.033 5.701L8.238 5.733L8.448 5.764L8.66 5.792L8.876 5.819L9.096 5.845L9.32 5.868L9.546 5.89L9.777 5.911L10.01 5.929L10.247 5.945L10.488 5.959L10.732 5.971L10.979 5.982L11.229 5.99L11.483 5.995L11.74 5.999L12 6L12.26 5.999L12.517 5.995L12.771 5.99L13.021 5.982L13.268 5.971L13.512 5.959L13.753 5.945L13.99 5.929L14.223 5.911L14.454 5.89L14.68 5.868L14.904 5.845L15.124 5.819L15.34 5.792L15.552 5.764L15.762 5.733L15.967 5.701L16.169 5.668L16.367 5.634L16.561 5.598L16.752 5.56L16.939 5.522L17.122 5.482L17.301 5.441L17.476 5.399L17.648 5.356L17.816 5.313L17.979 5.268L18.139 5.222L18.294 5.176L18.446 5.128L18.594 5.08L18.737 5.032L18.876 4.983L19.012 4.933L19.143 4.883L19.269 4.832L19.392 4.781L19.51 4.73L19.624 4.678L19.734 4.626L19.84 4.574L19.941 4.522L20.037 4.47L20.129 4.418L20.217 4.366L20.3 4.314L20.379 4.262L20.453 4.211L20.523 4.159L20.588 4.108L20.648 4.058L20.704 4.008L20.755 3.958L20.778 3.933L20.801 3.909L20.822 3.885L20.842 3.86L20.861 3.836L20.879 3.812L20.896 3.789L20.911 3.765L20.925 3.742L20.938 3.719L20.95 3.696L20.96 3.673L20.97 3.651L20.978 3.629L20.984 3.606L20.99 3.585L20.994 3.563L20.998 3.542L20.999 3.521L21 3.5L20.999 3.479L20.998 3.458L20.994 3.437L20.99 3.415L20.984 3.394L20.978 3.371L20.97 3.349L20.96 3.327L20.95 3.304L20.938 3.281L20.925 3.258L20.911 3.235L20.896 3.211L20.879 3.188L20.861 3.164L20.842 3.14L20.822 3.115L20.801 3.091L20.778 3.067L20.755 3.042L20.704 2.992L20.648 2.942L20.588 2.892L20.523 2.841L20.453 2.789L20.379 2.738L20.3 2.686L20.217 2.634L20.129 2.582L20.037 2.53L19.941 2.478L19.84 2.426L19.734 2.374L19.624 2.322L19.51 2.27L19.392 2.219L19.269 2.168L19.143 2.117L19.012 2.067L18.876 2.017L18.737 1.968L18.594 1.92L18.446 1.872L18.294 1.824L18.139 1.778L17.979 1.732L17.816 1.687L17.648 1.644L17.476 1.601L17.301 1.559L17.122 1.518L16.939 1.478L16.752 1.44L16.561 1.402L16.367 1.366L16.169 1.332L15.967 1.299L15.762 1.267L15.552 1.236L15.34 1.208L15.124 1.181L14.904 1.155L14.68 1.132L14.454 1.11L14.223 1.089L13.99 1.071L13.753 1.055L13.512 1.041L13.268 1.029L13.021 1.018L12.771 1.01L12.517 1.005L12.26 1.001L12 1L11.74 1.001V1.001Z" fill="currentColor"/>
58284
58293
  </svg>
58285
- `, jM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58294
+ `, $M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58286
58295
  __proto__: null,
58287
58296
  default: Ty
58288
58297
  }, Symbol.toStringTag, { value: "Module" })), wy = `<svg width="77" height="80" viewBox="0 0 77 80" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -58291,10 +58300,10 @@ const Ly = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="h
58291
58300
  <path d="M2.69922 75.4727L75.6992 75.5154" stroke="currentColor" stroke-width="4"/>
58292
58301
  </g>
58293
58302
  </svg>
58294
- `, $M = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58303
+ `, UM = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
58295
58304
  __proto__: null,
58296
58305
  default: wy
58297
- }, Symbol.toStringTag, { value: "Module" })), UM = /* @__PURE__ */ new Set([
58306
+ }, Symbol.toStringTag, { value: "Module" })), FM = /* @__PURE__ */ new Set([
58298
58307
  "fill",
58299
58308
  "fill-rule",
58300
58309
  "fill-opacity",
@@ -58317,10 +58326,10 @@ function oi(e) {
58317
58326
  const a = Array.from(
58318
58327
  t.matchAll(/([:\w-]+)="([^"]*)"/g),
58319
58328
  ([, o, u]) => ({ name: o, value: u })
58320
- ).filter(({ name: o }) => UM.has(o)).map(({ name: o, value: u }) => `${o}="${u}"`).join(" ");
58329
+ ).filter(({ name: o }) => FM.has(o)).map(({ name: o, value: u }) => `${o}="${u}"`).join(" ");
58321
58330
  return { viewBox: n, attributes: a, content: s };
58322
58331
  }
58323
- const FM = {
58332
+ const PM = {
58324
58333
  actor: oi(Ly),
58325
58334
  database: oi(Ty),
58326
58335
  ec2: oi(DL),
@@ -58336,7 +58345,7 @@ const FM = {
58336
58345
  function Cy(e) {
58337
58346
  if (!e) return;
58338
58347
  const t = e.toLowerCase();
58339
- return FM[t];
58348
+ return PM[t];
58340
58349
  }
58341
58350
  function fe(e) {
58342
58351
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
@@ -58344,19 +58353,19 @@ function fe(e) {
58344
58353
  function ff(e) {
58345
58354
  return Object.entries(e).map(([t, n]) => `${fe(t)}: ${fe(n)}`).join("; ");
58346
58355
  }
58347
- const Jc = 2, T0 = Jc / 2, Wr = 24, Jh = 4, PM = 4, GM = 8, VM = 16, u7 = 8, ZM = 16, YM = 2.75, XM = "#222";
58356
+ const Jc = 2, T0 = Jc / 2, Wr = 24, Jh = 4, GM = 4, VM = 8, ZM = 16, u7 = 8, YM = 16, XM = 2.75, WM = "#222";
58348
58357
  function f7(e) {
58349
- if (e.isStarter) return WM(e);
58358
+ if (e.isStarter) return qM(e);
58350
58359
  const t = 3, n = e.x - e.width / 2 + T0, s = e.y + T0, a = e.width - Jc, o = e.height - Jc, u = `font-family="'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji','Twemoji Mozilla',sans-serif"`, f = Cy(e.type);
58351
58360
  let d = "", m = "", p = e.x, y = "middle";
58352
58361
  const L = e.y + e.height / 2 - 0.25, b = e.stereotype ? L + u7 : L;
58353
58362
  if (f) {
58354
- const O = e.labelWidth ?? 0, z = e.emoji ? Rc : 0, _ = Wr + Jh + VM + O + z, j = e.x - _ / 2, P = j + PM, Z = e.type?.toLowerCase(), it = e.y + (e.height - Wr) / 2 + (Z === "boundary" ? YM : 0);
58363
+ const O = e.labelWidth ?? 0, z = e.emoji ? Rc : 0, _ = Wr + Jh + ZM + O + z, j = e.x - _ / 2, P = j + GM, Z = e.type?.toLowerCase(), it = e.y + (e.height - Wr) / 2 + (Z === "boundary" ? XM : 0);
58355
58364
  if (e.emoji) {
58356
58365
  const X = P + Wr + Jh;
58357
58366
  p = X + Rc + 4, m = `<text x="${X}" y="${b}" dominant-baseline="central" ${u} class="participant-emoji">${fe(to(e.emoji))}</text>`;
58358
58367
  } else
58359
- p = j + Wr + Jh + GM;
58368
+ p = j + Wr + Jh + VM;
58360
58369
  y = "start";
58361
58370
  const [, , U, K] = (f.viewBox || "0 0 24 24").split(" ").map(Number), nt = Wr / Math.max(U, K), Et = f.attributes ? ` ${f.attributes}` : "";
58362
58371
  d = `<g class="participant-icon" transform="translate(${P}, ${it}) scale(${nt})"${Et}>
@@ -58369,9 +58378,9 @@ function f7(e) {
58369
58378
  let C = "";
58370
58379
  if (e.stereotype) {
58371
58380
  const O = f && e.labelWidth != null ? p + e.labelWidth / 2 : e.x, z = "middle", _ = L - u7;
58372
- C = `<text x="${O}" y="${_}" text-anchor="${z}" dominant-baseline="central" class="stereotype-label" font-size="${ZM}"${Sy()}>${fe("«" + e.stereotype + "»")}</text>`;
58381
+ C = `<text x="${O}" y="${_}" text-anchor="${z}" dominant-baseline="central" class="stereotype-label" font-size="${YM}"${Sy()}>${fe("«" + e.stereotype + "»")}</text>`;
58373
58382
  }
58374
- const A = e.labelWidth != null && e.name.includes(":") ? ` textLength="${e.labelWidth}" lengthAdjust="spacing"` : "", { fillStyle: k, textStyle: M } = KM(e.color);
58383
+ const A = e.labelWidth != null && e.name.includes(":") ? ` textLength="${e.labelWidth}" lengthAdjust="spacing"` : "", { fillStyle: k, textStyle: M } = QM(e.color);
58375
58384
  return `<g class="participant" data-participant="${fe(e.name)}">
58376
58385
  <rect x="${n}" y="${s}" width="${a}" height="${o}" rx="${t}" class="participant-box"${k}/>
58377
58386
  ${d}
@@ -58380,7 +58389,7 @@ function f7(e) {
58380
58389
  <text x="${p}" y="${b}" text-anchor="${y}" dominant-baseline="central" class="participant-label"${A}${M}>${fe(e.label)}</text>
58381
58390
  </g>`;
58382
58391
  }
58383
- function WM(e) {
58392
+ function qM(e) {
58384
58393
  const t = Cy("actor");
58385
58394
  if (!t)
58386
58395
  return "";
@@ -58392,32 +58401,32 @@ function WM(e) {
58392
58401
  </g>
58393
58402
  </g>`;
58394
58403
  }
58395
- function qM(e) {
58404
+ function KM(e) {
58396
58405
  return e.startsWith("#") ? e : `#${e}`;
58397
58406
  }
58398
- function KM(e) {
58407
+ function QM(e) {
58399
58408
  return e ? {
58400
- fillStyle: ` style="fill:${qM(e)};"`,
58409
+ fillStyle: ` style="fill:${KM(e)};"`,
58401
58410
  textStyle: Sy()
58402
58411
  } : { fillStyle: "", textStyle: "" };
58403
58412
  }
58404
58413
  function Sy() {
58405
- return ` style="fill:${XM};"`;
58414
+ return ` style="fill:${WM};"`;
58406
58415
  }
58407
- function QM(e) {
58416
+ function JM(e) {
58408
58417
  const t = e.x + 0.5;
58409
58418
  return `<line x1="${t}" y1="${e.topY}" x2="${t}" y2="${e.bottomY}" class="lifeline" stroke-dasharray="${e.dashed ? "5,5" : "none"}" stroke-dashoffset="${e.dashed ? "5" : "0"}" shape-rendering="crispEdges"/>`;
58410
58419
  }
58411
- function JM(e) {
58420
+ function tI(e) {
58412
58421
  const t = e.fromX < e.toX, n = t ? e.fromX + 1 : e.fromX, s = t ? e.toX : e.toX + 1, a = Math.sign(e.toX - e.fromX), o = (e.fromX + e.toX) / 2 - a * 3.5 + 0.5, u = e.y - 3.5, f = e.arrowStyle === "dashed" ? ' stroke-dasharray="6,4"' : "", d = e.style ? ` style="${ff(e.style)}"` : "", m = Math.min(n, s) - 4, p = e.number ? `<text x="${m}" y="${u}" text-anchor="end" class="seq-number">${fe(e.number)}</text>` : "", y = e.y - 0.5;
58413
58422
  return `<g class="message">
58414
58423
  <line x1="${n}" y1="${y}" x2="${s}" y2="${y}" class="message-line"${f}/>
58415
- ${eI(s, y, e.isReverse, e.arrowStyle)}
58424
+ ${nI(s, y, e.isReverse, e.arrowStyle)}
58416
58425
  <text x="${o}" y="${u}" text-anchor="middle" class="message-label"${d}>${fe(Qn(e.label))}</text>
58417
58426
  ${p}
58418
58427
  </g>`;
58419
58428
  }
58420
- function tI(e) {
58429
+ function eI(e) {
58421
58430
  const t = e.x, n = e.arrowStyle === "open", s = t + 6, a = e.y + (n ? 15 : 12), o = e.y + 12, u = e.number ? `<text x="${t - 3}" y="${o}" text-anchor="end" class="seq-number">${fe(e.number)}</text>` : "", f = t + 1, d = e.y + (n ? 20 : 14);
58422
58431
  return `<g class="message self-call">
58423
58432
  <svg x="${f}" y="${d}" width="30" height="24">
@@ -58434,7 +58443,7 @@ function tI(e) {
58434
58443
  ${u}
58435
58444
  </g>`;
58436
58445
  }
58437
- function eI(e, t, n, s) {
58446
+ function nI(e, t, n, s) {
58438
58447
  const a = s !== "open" && s !== "dashed", o = a ? "M1 1.25 L6.15 4.5 L1 7.75 Z" : "M1 1.25 L6.15 4.5 L1 7.75", u = a ? "#000" : "none", f = n ? e : e - 7, d = t - 5;
58439
58448
  return `<svg x="${f}" y="${d}" width="7" height="10" viewBox="0 0 7 9" overflow="visible" class="arrow-head${a ? "" : " arrow-open"}">
58440
58449
  <g${n ? ' transform="scale(-1, 1) translate(-7, 0)"' : ""}>
@@ -58442,11 +58451,11 @@ function eI(e, t, n, s) {
58442
58451
  </g>
58443
58452
  </svg>`;
58444
58453
  }
58445
- function nI(e) {
58454
+ function sI(e) {
58446
58455
  return `<rect x="${e.x + 1}" y="${e.y + 1}" width="${e.width - 2}" height="${e.height - 2}" rx="1" class="occurrence" data-participant="${fe(e.participantName)}"/>`;
58447
58456
  }
58448
- const P1 = 25, sI = 3.89, Ha = 4, X2 = 1, t2 = X2 / 2;
58449
- function iI(e) {
58457
+ const P1 = 25, iI = 3.89, Ha = 4, X2 = 1, t2 = X2 / 2;
58458
+ function rI(e) {
58450
58459
  const t = [];
58451
58460
  t.push(
58452
58461
  `<rect x="${e.x + t2}" y="${e.y + t2}" width="${e.width - X2}" height="${e.height - X2}" rx="4" class="fragment-border"/>`
@@ -58456,8 +58465,8 @@ function iI(e) {
58456
58465
  `<rect x="${n}" y="${s}" width="${a}" height="${P1}" class="fragment-header"/>`
58457
58466
  );
58458
58467
  const o = n + 4, u = s;
58459
- t.push(aI(e.kind, o, u));
58460
- const f = rI(e.kind), d = n + 26;
58468
+ t.push(lI(e.kind, o, u));
58469
+ const f = aI(e.kind), d = n + 26;
58461
58470
  if (t.push(
58462
58471
  `<text x="${d}" y="${s + P1 / 2 - 0.5}" dominant-baseline="central" class="fragment-label">${fe(f)}</text>`
58463
58472
  ), e.number && t.push(
@@ -58507,10 +58516,10 @@ function iI(e) {
58507
58516
  </g>`;
58508
58517
  }
58509
58518
  function d7(e, t, n, s, a = "fragment-condition") {
58510
- const o = s ?? n.length * 7, u = e + sI + Ha, f = u + o + Ha;
58519
+ const o = s ?? n.length * 7, u = e + iI + Ha, f = u + o + Ha;
58511
58520
  return `<g><text x="${e}" y="${t}" class="${a}">[</text><text x="${u}" y="${t}" class="${a}" opacity="0.65">${fe(Qn(n))}</text><text x="${f}" y="${t}" class="${a}">]</text></g>`;
58512
58521
  }
58513
- function rI(e) {
58522
+ function aI(e) {
58514
58523
  switch (e) {
58515
58524
  case "alt":
58516
58525
  return "Alt";
@@ -58532,7 +58541,7 @@ function rI(e) {
58532
58541
  return e.charAt(0).toUpperCase() + e.slice(1);
58533
58542
  }
58534
58543
  }
58535
- function aI(e, t, n) {
58544
+ function lI(e, t, n) {
58536
58545
  switch (e) {
58537
58546
  case "loop":
58538
58547
  return `<svg x="${t}" y="${n}" width="20" height="24" viewBox="0 0 1024 1024" fill="#000" stroke="none">
@@ -58573,16 +58582,16 @@ function aI(e, t, n) {
58573
58582
  </svg>`;
58574
58583
  }
58575
58584
  }
58576
- function lI(e) {
58577
- const t = e.message, n = e.participant, s = t.toX < t.fromX, a = s ? n.x + n.width / 2 : n.x - n.width / 2, o = s ? t.fromX : t.fromX + 1, u = a, f = o + (u - o) / 2 + (s ? 3.5 : -3), d = t.y - 3, m = t.style ? ` style="${ff(t.style)}"` : "", p = Math.min(o, u) - 4, y = t.number ? `<text x="${p}" y="${d}" text-anchor="end" class="seq-number">${fe(t.number)}</text>` : "", L = oI(t.label, m);
58585
+ function oI(e) {
58586
+ const t = e.message, n = e.participant, s = t.toX < t.fromX, a = s ? n.x + n.width / 2 : n.x - n.width / 2, o = s ? t.fromX : t.fromX + 1, u = a, f = o + (u - o) / 2 + (s ? 3.5 : -3), d = t.y - 3, m = t.style ? ` style="${ff(t.style)}"` : "", p = Math.min(o, u) - 4, y = t.number ? `<text x="${p}" y="${d}" text-anchor="end" class="seq-number">${fe(t.number)}</text>` : "", L = cI(t.label, m);
58578
58587
  return `<g class="creation">
58579
58588
  <line x1="${o}" y1="${t.y}" x2="${u}" y2="${t.y}" class="message-line" stroke-dasharray="6,4"/>
58580
- ${cI(u, t.y, s)}
58589
+ ${uI(u, t.y, s)}
58581
58590
  <text x="${f}" y="${d}" text-anchor="middle" class="message-label">${L}</text>
58582
58591
  ${y}
58583
58592
  </g>`;
58584
58593
  }
58585
- function oI(e, t) {
58594
+ function cI(e, t) {
58586
58595
  const n = e.match(/^«(.+)»$/);
58587
58596
  if (n) {
58588
58597
  const s = n[1];
@@ -58590,13 +58599,13 @@ function oI(e, t) {
58590
58599
  }
58591
58600
  return `<tspan${t}>${fe(e)}</tspan>`;
58592
58601
  }
58593
- function cI(e, t, n) {
58602
+ function uI(e, t, n) {
58594
58603
  const u = e + (n ? 1 : -1) * 5.15, f = t - 3.25, d = t + 3.25;
58595
58604
  return `<polyline points="${u},${f} ${e},${t} ${u},${d}" fill="none" stroke-linecap="round" class="arrow-head arrow-open"/>`;
58596
58605
  }
58597
- function uI(e) {
58606
+ function fI(e) {
58598
58607
  if (e.isSelf)
58599
- return fI(e);
58608
+ return dI(e);
58600
58609
  const t = Math.min(e.fromX, e.toX), n = 3.5, s = t + Math.abs(e.toX - e.fromX) / 2 + (e.isReverse ? n : -n), a = Math.floor(e.y), o = a - 3, u = e.toX, f = 5.15, d = 3.25, m = e.isReverse ? -1 : 1, p = u - m * f, y = a - d, L = a + d, b = Math.min(e.fromX, e.toX) - 4, C = e.number ? `<text x="${b}" y="${o}" text-anchor="end" class="seq-number">${fe(e.number)}</text>` : "";
58601
58610
  return `<g class="return">
58602
58611
  <line x1="${e.fromX}" y1="${a}" x2="${e.toX}" y2="${a}" class="return-line"/>
@@ -58605,7 +58614,7 @@ function uI(e) {
58605
58614
  ${C}
58606
58615
  </g>`;
58607
58616
  }
58608
- function fI(e) {
58617
+ function dI(e) {
58609
58618
  const s = e.fromX + 4, a = e.y - 12, o = s + 12 + 4, u = e.y - 1;
58610
58619
  return `<g class="return return-self">
58611
58620
  <g transform="translate(${s},${a}) scale(${12 / 512})">
@@ -58615,9 +58624,9 @@ function fI(e) {
58615
58624
  <text x="${o}" y="${u}" text-anchor="start" class="return-label">${fe(Qn(e.label))}</text>
58616
58625
  </g>`;
58617
58626
  }
58618
- const dI = 8, hI = 28;
58619
- function mI(e) {
58620
- const t = e.label.replace(/^=+\s*|\s*=+$/g, "").trim(), n = Qn(t), s = e.width / 2, a = e.labelWidth ?? n.length * 8, o = 1, f = a + dI * 2 + o * 2 - o, d = hI - o, m = s - f / 2, p = e.y - d / 2, y = m - o / 2, L = m + f + o / 2, b = e.y;
58627
+ const hI = 8, mI = 28;
58628
+ function gI(e) {
58629
+ const t = e.label.replace(/^=+\s*|\s*=+$/g, "").trim(), n = Qn(t), s = e.width / 2, a = e.labelWidth ?? n.length * 8, o = 1, f = a + hI * 2 + o * 2 - o, d = mI - o, m = s - f / 2, p = e.y - d / 2, y = m - o / 2, L = m + f + o / 2, b = e.y;
58621
58630
  return `<g class="divider">
58622
58631
  <line x1="0" y1="${e.y}" x2="${y}" y2="${e.y}" class="divider-line"/>
58623
58632
  <line x1="${L}" y1="${e.y}" x2="${e.width}" y2="${e.y}" class="divider-line"/>
@@ -58625,7 +58634,7 @@ function mI(e) {
58625
58634
  <text x="${s}" y="${b}" text-anchor="middle" dominant-baseline="central" class="divider-label">${fe(n)}</text>
58626
58635
  </g>`;
58627
58636
  }
58628
- function gI(e) {
58637
+ function pI(e) {
58629
58638
  const t = jt.lexer(e, { gfm: !0, breaks: !0 });
58630
58639
  return W2(t);
58631
58640
  }
@@ -58677,13 +58686,13 @@ function W2(e) {
58677
58686
  };
58678
58687
  return a(e), t.map((u) => u.join(""));
58679
58688
  }
58680
- function pI(e) {
58681
- const t = e.style ? ` style="${ff(e.style)}"` : "", s = gI(e.text).map(
58689
+ function xI(e) {
58690
+ const t = e.style ? ` style="${ff(e.style)}"` : "", s = pI(e.text).map(
58682
58691
  (a, o) => o === 0 ? `<tspan x="${e.x}" y="${e.y}">${a || " "}</tspan>` : `<tspan x="${e.x}" dy="20">${a || " "}</tspan>`
58683
58692
  ).join("");
58684
58693
  return `<text class="comment-text"${t}>${s}</text>`;
58685
58694
  }
58686
- function xI(e) {
58695
+ function yI(e) {
58687
58696
  const a = e.x - 0.5, o = e.y - 1 - 1, u = e.width + 1, f = e.height + 1 + 0.5, d = e.y + 18 / 2 + 1, m = e.name ? fe(e.name) : "", p = e.x + 0.5, y = o + 0.5, L = e.width - 1, b = 19 + 0.5;
58688
58697
  return `<g class="participant-group">
58689
58698
  <rect x="${a}" y="${o}" width="${u}" height="${f}" class="group-outline" stroke-width="1" stroke-dasharray="4 3"/>
@@ -58691,7 +58700,7 @@ function xI(e) {
58691
58700
  ${m ? `<text x="${e.x + e.width / 2}" y="${d}" text-anchor="middle" dominant-baseline="middle" class="group-title-text">${m}</text>` : ""}
58692
58701
  </g>`;
58693
58702
  }
58694
- const yI = 28, bI = 4, LI = `
58703
+ const bI = 28, LI = 4, EI = `
58695
58704
  .frame-border-outer { fill: #666; }
58696
58705
  .frame-border-inner { fill: #ffffff; }
58697
58706
  .frame-header-bg { fill: #ffffff; }
@@ -58726,52 +58735,52 @@ const yI = 28, bI = 4, LI = `
58726
58735
  .group-title-bg { fill: #ffffff; stroke: none; }
58727
58736
  .group-title-text { font-family: Helvetica, Verdana, serif; font-size: 13px; font-weight: 400; fill: #222; }
58728
58737
  `;
58729
- function YI(e, t) {
58738
+ function XI(e, t) {
58730
58739
  const n = _8(e);
58731
58740
  if (!n)
58732
58741
  return { svg: "<svg></svg>", innerSvg: "", width: 0, height: 0, viewBox: "0 0 0 0", geometry: void 0 };
58733
- const s = new D8(n, b2), a = new Z8(n), o = n.title?.(), u = o && typeof o.content == "function" ? o.content() : void 0, f = u ? Qn(u) : void 0, d = DM({
58742
+ const s = new D8(n, b2), a = new Z8(n), o = n.title?.(), u = o && typeof o.content == "function" ? o.content() : void 0, f = u ? Qn(u) : void 0, d = zM({
58734
58743
  rootContext: n,
58735
58744
  coordinates: s,
58736
58745
  verticalCoordinates: a,
58737
58746
  title: f,
58738
58747
  measureText: b2
58739
58748
  });
58740
- return { ...EI(d), geometry: d };
58749
+ return { ...vI(d), geometry: d };
58741
58750
  }
58742
- function EI(e, t) {
58743
- const s = yI, a = 11 + e.frameBorderLeft, o = e.width + a + 10 + e.frameBorderRight + 1, u = e.height + 20 + s - 1, f = [];
58751
+ function vI(e, t) {
58752
+ const s = bI, a = 11 + e.frameBorderLeft, o = e.width + a + 10 + e.frameBorderRight + 1, u = e.height + 20 + s - 1, f = [];
58744
58753
  for (const _ of e.groups)
58745
- f.push(xI(_));
58754
+ f.push(yI(_));
58746
58755
  for (const _ of e.lifelines)
58747
- f.push(QM(_));
58756
+ f.push(JM(_));
58748
58757
  const d = new Set(e.creations.map((_) => _.participant.name));
58749
58758
  for (const _ of e.participants)
58750
58759
  d.has(_.name) || f.push(f7(_));
58751
58760
  for (const _ of e.occurrences)
58752
- f.push(nI(_));
58761
+ f.push(sI(_));
58753
58762
  for (const _ of e.participants)
58754
58763
  d.has(_.name) && f.push(f7(_));
58755
58764
  for (const _ of e.messages)
58756
- f.push(JM(_));
58757
- for (const _ of e.selfCalls)
58758
58765
  f.push(tI(_));
58766
+ for (const _ of e.selfCalls)
58767
+ f.push(eI(_));
58759
58768
  for (const _ of e.creations)
58760
- f.push(lI(_));
58769
+ f.push(oI(_));
58761
58770
  for (const _ of e.returns)
58762
- f.push(uI(_));
58771
+ f.push(fI(_));
58763
58772
  for (const _ of e.fragments)
58764
- f.push(iI(_));
58773
+ f.push(rI(_));
58765
58774
  for (const _ of e.dividers)
58766
- f.push(mI(_));
58775
+ f.push(gI(_));
58767
58776
  for (const _ of e.comments)
58768
- f.push(pI(_));
58769
- const m = bI, p = [
58777
+ f.push(xI(_));
58778
+ const m = LI, p = [
58770
58779
  `<rect class="frame-border-outer" x="0" y="0" width="${o}" height="${u}" rx="${m}" fill="#666"/>`,
58771
58780
  `<rect class="frame-border-inner" x="1" y="1" width="${o - 2}" height="${u - 2}" rx="${Math.max(0, m - 1)}" fill="#fff"/>`
58772
58781
  ].join(`
58773
- `), L = s + 6, b = L - 0.5, C = `<line class="frame-header-line" x1="1" y1="${b}" x2="${o - 1}" y2="${b}"/>`, S = e.title ? `<text x="5" y="${b / 2}" dominant-baseline="central" class="frame-title">${vI(e.title)}</text>` : "", A = `0 0 ${o} ${u}`, k = `<defs>
58774
- <style>${LI}</style>
58782
+ `), L = s + 6, b = L - 0.5, C = `<line class="frame-header-line" x1="1" y1="${b}" x2="${o - 1}" y2="${b}"/>`, S = e.title ? `<text x="5" y="${b / 2}" dominant-baseline="central" class="frame-title">${TI(e.title)}</text>` : "", A = `0 0 ${o} ${u}`, k = `<defs>
58783
+ <style>${EI}</style>
58775
58784
  </defs>`, M = `${p}
58776
58785
  ${C}
58777
58786
  ${S}`, $ = `<g transform="translate(${a}, ${L})">
@@ -58784,12 +58793,12 @@ ${$}`;
58784
58793
  ${O}
58785
58794
  </svg>`, innerSvg: O, width: o, height: u, viewBox: A };
58786
58795
  }
58787
- function vI(e) {
58796
+ function TI(e) {
58788
58797
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
58789
58798
  }
58790
58799
  const Tc = tn.child({ name: "core" });
58791
58800
  class Ry {
58792
- static version = hM;
58801
+ static version = mM;
58793
58802
  // UMD Compatibility Layer - Support both window.zenuml and window.zenuml.default
58794
58803
  // The problem was introduced at commit 4c46879f when we remove the named export VueSequence
58795
58804
  static default = Ry;
@@ -58807,8 +58816,8 @@ class Ry {
58807
58816
  theme: this.store.get(Zl),
58808
58817
  scoped: this.store.get(E2)
58809
58818
  });
58810
- }), LM.createRoot(this.el).render(
58811
- /* @__PURE__ */ E.jsx(w.StrictMode, { children: /* @__PURE__ */ E.jsx(bE, { store: this.store, children: /* @__PURE__ */ E.jsx("div", { className: "zenuml", children: /* @__PURE__ */ E.jsx(dM, { children: n ? /* @__PURE__ */ E.jsx(yy, {}) : /* @__PURE__ */ E.jsx(fM, {}) }) }) }) })
58819
+ }), EM.createRoot(this.el).render(
58820
+ /* @__PURE__ */ E.jsx(w.StrictMode, { children: /* @__PURE__ */ E.jsx(bE, { store: this.store, children: /* @__PURE__ */ E.jsx("div", { className: "zenuml", children: /* @__PURE__ */ E.jsx(hM, { children: n ? /* @__PURE__ */ E.jsx(yy, {}) : /* @__PURE__ */ E.jsx(dM, {}) }) }) }) })
58812
58821
  ), this.addPortalRootElement();
58813
58822
  }
58814
58823
  // DON'T REMOVE: headlessui portal root hack
@@ -58848,7 +58857,7 @@ class Ry {
58848
58857
  this.store.get($g) && s(!0);
58849
58858
  }), this.store.set(ys, this._code || "");
58850
58859
  }), setTimeout(() => {
58851
- this._lastRenderingCostMilliseconds = gM(
58860
+ this._lastRenderingCostMilliseconds = pM(
58852
58861
  "rendering end",
58853
58862
  n
58854
58863
  );
@@ -58904,6 +58913,6 @@ class Ry {
58904
58913
  }
58905
58914
  export {
58906
58915
  Ry as default,
58907
- YI as renderToSvg
58916
+ XI as renderToSvg
58908
58917
  };
58909
58918
  //# sourceMappingURL=zenuml.esm.mjs.map