@zenuml/core 3.12.0 → 3.13.0

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.
@@ -1,4 +1,4 @@
1
- import { b as L, u as H, r as F, s as Me, w as j, g as nt, d as ot, e as Q, F as Ie, m as ge, t as Ae, f as _e, n as it, p as rt, h as st, i as lt, j as te, U as at, k as Te, l as ct, T as ut, q as ft, v as dt, x as mt, y as pt, P as gt, o as Se, z as vt, A as ht, a as ve, c as yt, B as wt, C as xt, D as bt, E as Ct, G as Ot, H as Et } from "./core.4a17c405.js";
1
+ import { b as L, u as H, r as F, s as Me, w as j, g as nt, d as ot, e as Q, F as Ie, m as ge, t as Ae, f as _e, n as it, p as rt, h as st, i as lt, j as te, U as at, k as Se, l as ct, T as ut, q as ft, v as dt, x as mt, y as pt, P as gt, o as Te, z as ht, A as vt, a as he, c as yt, B as wt, C as xt, D as bt, E as Ct, G as Ot, H as Et } from "./core.c3e972e2.js";
2
2
  const ze = ["top", "right", "bottom", "left"], Re = ["start", "end"], Pe = /* @__PURE__ */ ze.reduce((e, t) => e.concat(t, t + "-" + Re[0], t + "-" + Re[1]), []), J = Math.min, Y = Math.max, le = Math.round, se = Math.floor, X = (e) => ({
3
3
  x: e,
4
4
  y: e
@@ -7,7 +7,7 @@ const ze = ["top", "right", "bottom", "left"], Re = ["start", "end"], Pe = /* @_
7
7
  right: "left",
8
8
  bottom: "top",
9
9
  top: "bottom"
10
- }, Tt = {
10
+ }, St = {
11
11
  start: "end",
12
12
  end: "start"
13
13
  };
@@ -41,12 +41,12 @@ function Ve(e, t, n) {
41
41
  let s = o === "x" ? i === (n ? "end" : "start") ? "right" : "left" : i === "start" ? "bottom" : "top";
42
42
  return t.reference[r] > t.floating[r] && (s = ce(s)), [s, ce(s)];
43
43
  }
44
- function St(e) {
44
+ function Tt(e) {
45
45
  const t = ce(e);
46
46
  return [ae(e), t, ae(t)];
47
47
  }
48
48
  function ae(e) {
49
- return e.replace(/start|end/g, (t) => Tt[t]);
49
+ return e.replace(/start|end/g, (t) => St[t]);
50
50
  }
51
51
  function Rt(e, t, n) {
52
52
  const i = ["left", "right"], o = ["right", "left"], r = ["top", "bottom"], s = ["bottom", "top"];
@@ -158,15 +158,15 @@ const Lt = async (e, t, n) => {
158
158
  x: m,
159
159
  y: d
160
160
  } = Fe(u, i, c), p = i, f = {}, a = 0;
161
- for (let v = 0; v < l.length; v++) {
161
+ for (let h = 0; h < l.length; h++) {
162
162
  const {
163
- name: w,
163
+ name: v,
164
164
  fn: g
165
- } = l[v], {
165
+ } = l[h], {
166
166
  x,
167
167
  y: b,
168
168
  data: C,
169
- reset: h
169
+ reset: w
170
170
  } = await g({
171
171
  x: m,
172
172
  y: d,
@@ -183,19 +183,19 @@ const Lt = async (e, t, n) => {
183
183
  });
184
184
  if (m = x != null ? x : m, d = b != null ? b : d, f = {
185
185
  ...f,
186
- [w]: {
187
- ...f[w],
186
+ [v]: {
187
+ ...f[v],
188
188
  ...C
189
189
  }
190
- }, h && a <= 50) {
191
- a++, typeof h == "object" && (h.placement && (p = h.placement), h.rects && (u = h.rects === !0 ? await s.getElementRects({
190
+ }, w && a <= 50) {
191
+ a++, typeof w == "object" && (w.placement && (p = w.placement), w.rects && (u = w.rects === !0 ? await s.getElementRects({
192
192
  reference: e,
193
193
  floating: t,
194
194
  strategy: o
195
- }) : h.rects), {
195
+ }) : w.rects), {
196
196
  x: m,
197
197
  y: d
198
- } = Fe(u, p, c)), v = -1;
198
+ } = Fe(u, p, c)), h = -1;
199
199
  continue;
200
200
  }
201
201
  }
@@ -223,8 +223,8 @@ async function ne(e, t) {
223
223
  elementContext: d = "floating",
224
224
  altBoundary: p = !1,
225
225
  padding: f = 0
226
- } = K(t, e), a = We(f), w = l[p ? d === "floating" ? "reference" : "floating" : d], g = ue(await r.getClippingRect({
227
- element: (n = await (r.isElement == null ? void 0 : r.isElement(w))) == null || n ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
226
+ } = K(t, e), a = We(f), v = l[p ? d === "floating" ? "reference" : "floating" : d], g = ue(await r.getClippingRect({
227
+ element: (n = await (r.isElement == null ? void 0 : r.isElement(v))) == null || n ? v : v.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(l.floating)),
228
228
  boundary: u,
229
229
  rootBoundary: m,
230
230
  strategy: c
@@ -238,16 +238,16 @@ async function ne(e, t) {
238
238
  } : {
239
239
  x: 1,
240
240
  y: 1
241
- }, h = ue(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
241
+ }, w = ue(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
242
242
  rect: x,
243
243
  offsetParent: b,
244
244
  strategy: c
245
245
  }) : x);
246
246
  return {
247
- top: (g.top - h.top + a.top) / C.y,
248
- bottom: (h.bottom - g.bottom + a.bottom) / C.y,
249
- left: (g.left - h.left + a.left) / C.x,
250
- right: (h.right - g.right + a.right) / C.x
247
+ top: (g.top - w.top + a.top) / C.y,
248
+ bottom: (w.bottom - g.bottom + a.bottom) / C.y,
249
+ left: (g.left - w.left + a.left) / C.x,
250
+ right: (w.right - g.right + a.right) / C.x
251
251
  };
252
252
  }
253
253
  const Bt = (e) => ({
@@ -271,10 +271,10 @@ const Bt = (e) => ({
271
271
  const d = We(m), p = {
272
272
  x: n,
273
273
  y: i
274
- }, f = be(o), a = xe(f), v = await s.getDimensions(u), w = f === "y", g = w ? "top" : "left", x = w ? "bottom" : "right", b = w ? "clientHeight" : "clientWidth", C = r.reference[a] + r.reference[f] - p[f] - r.floating[a], h = p[f] - r.reference[f], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
274
+ }, f = be(o), a = xe(f), h = await s.getDimensions(u), v = f === "y", g = v ? "top" : "left", x = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", C = r.reference[a] + r.reference[f] - p[f] - r.floating[a], w = p[f] - r.reference[f], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
275
275
  let E = O ? O[b] : 0;
276
276
  (!E || !await (s.isElement == null ? void 0 : s.isElement(O))) && (E = l.floating[b] || r.floating[a]);
277
- const A = C / 2 - h / 2, R = E / 2 - v[a] / 2 - 1, S = J(d[g], R), T = J(d[x], R), P = S, _ = E - v[a] - T, B = E / 2 - v[a] / 2 + A, N = ye(P, B, _), $ = !c.arrow && M(o) != null && B != N && r.reference[a] / 2 - (B < P ? S : T) - v[a] / 2 < 0, z = $ ? B < P ? B - P : B - _ : 0;
277
+ const A = C / 2 - w / 2, R = E / 2 - h[a] / 2 - 1, T = J(d[g], R), S = J(d[x], R), P = T, _ = E - h[a] - S, B = E / 2 - h[a] / 2 + A, N = ye(P, B, _), $ = !c.arrow && M(o) != null && B != N && r.reference[a] / 2 - (B < P ? T : S) - h[a] / 2 < 0, z = $ ? B < P ? B - P : B - _ : 0;
278
278
  return {
279
279
  [f]: p[f] + z,
280
280
  data: {
@@ -309,41 +309,41 @@ const Dt = function(e) {
309
309
  allowedPlacements: p = Pe,
310
310
  autoAlignment: f = !0,
311
311
  ...a
312
- } = K(e, t), v = d !== void 0 || p === Pe ? kt(d || null, f, p) : p, w = await ne(t, a), g = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, x = v[g];
312
+ } = K(e, t), h = d !== void 0 || p === Pe ? kt(d || null, f, p) : p, v = await ne(t, a), g = ((n = s.autoPlacement) == null ? void 0 : n.index) || 0, x = h[g];
313
313
  if (x == null)
314
314
  return {};
315
315
  const b = Ve(x, r, await (c.isRTL == null ? void 0 : c.isRTL(u.floating)));
316
316
  if (l !== x)
317
317
  return {
318
318
  reset: {
319
- placement: v[0]
319
+ placement: h[0]
320
320
  }
321
321
  };
322
- const C = [w[V(x)], w[b[0]], w[b[1]]], h = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
322
+ const C = [v[V(x)], v[b[0]], v[b[1]]], w = [...((i = s.autoPlacement) == null ? void 0 : i.overflows) || [], {
323
323
  placement: x,
324
324
  overflows: C
325
- }], O = v[g + 1];
325
+ }], O = h[g + 1];
326
326
  if (O)
327
327
  return {
328
328
  data: {
329
329
  index: g + 1,
330
- overflows: h
330
+ overflows: w
331
331
  },
332
332
  reset: {
333
333
  placement: O
334
334
  }
335
335
  };
336
- const E = h.map((S) => {
337
- const T = M(S.placement);
338
- return [S.placement, T && m ? S.overflows.slice(0, 2).reduce((P, _) => P + _, 0) : S.overflows[0], S.overflows];
339
- }).sort((S, T) => S[1] - T[1]), R = ((o = E.filter((S) => S[2].slice(
336
+ const E = w.map((T) => {
337
+ const S = M(T.placement);
338
+ return [T.placement, S && m ? T.overflows.slice(0, 2).reduce((P, _) => P + _, 0) : T.overflows[0], T.overflows];
339
+ }).sort((T, S) => T[1] - S[1]), R = ((o = E.filter((T) => T[2].slice(
340
340
  0,
341
- M(S[0]) ? 2 : 3
342
- ).every((T) => T <= 0))[0]) == null ? void 0 : o[0]) || E[0][0];
341
+ M(T[0]) ? 2 : 3
342
+ ).every((S) => S <= 0))[0]) == null ? void 0 : o[0]) || E[0][0];
343
343
  return R !== l ? {
344
344
  data: {
345
345
  index: g + 1,
346
- overflows: h
346
+ overflows: w
347
347
  },
348
348
  reset: {
349
349
  placement: R
@@ -370,14 +370,14 @@ const Dt = function(e) {
370
370
  fallbackPlacements: p,
371
371
  fallbackStrategy: f = "bestFit",
372
372
  fallbackAxisSideDirection: a = "none",
373
- flipAlignment: v = !0,
374
- ...w
373
+ flipAlignment: h = !0,
374
+ ...v
375
375
  } = K(e, t);
376
376
  if ((n = r.arrow) != null && n.alignmentOffset)
377
377
  return {};
378
- const g = V(o), x = V(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), C = p || (x || !v ? [ce(l)] : St(l));
379
- !p && a !== "none" && C.push(...Pt(l, v, a, b));
380
- const h = [l, ...C], O = await ne(t, w), E = [];
378
+ const g = V(o), x = V(l) === l, b = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), C = p || (x || !h ? [ce(l)] : Tt(l));
379
+ !p && a !== "none" && C.push(...Pt(l, h, a, b));
380
+ const w = [l, ...C], O = await ne(t, v), E = [];
381
381
  let A = ((i = r.flip) == null ? void 0 : i.overflows) || [];
382
382
  if (m && E.push(O[g]), d) {
383
383
  const P = Ve(o, s, b);
@@ -387,8 +387,8 @@ const Dt = function(e) {
387
387
  placement: o,
388
388
  overflows: E
389
389
  }], !E.every((P) => P <= 0)) {
390
- var R, S;
391
- const P = (((R = r.flip) == null ? void 0 : R.index) || 0) + 1, _ = h[P];
390
+ var R, T;
391
+ const P = (((R = r.flip) == null ? void 0 : R.index) || 0) + 1, _ = w[P];
392
392
  if (_)
393
393
  return {
394
394
  data: {
@@ -399,12 +399,12 @@ const Dt = function(e) {
399
399
  placement: _
400
400
  }
401
401
  };
402
- let B = (S = A.filter((N) => N.overflows[0] <= 0).sort((N, $) => N.overflows[1] - $.overflows[1])[0]) == null ? void 0 : S.placement;
402
+ let B = (T = A.filter((N) => N.overflows[0] <= 0).sort((N, $) => N.overflows[1] - $.overflows[1])[0]) == null ? void 0 : T.placement;
403
403
  if (!B)
404
404
  switch (f) {
405
405
  case "bestFit": {
406
- var T;
407
- const N = (T = A.map(($) => [$.placement, $.overflows.filter((z) => z > 0).reduce((z, tt) => z + tt, 0)]).sort(($, z) => $[1] - z[1])[0]) == null ? void 0 : T[0];
406
+ var S;
407
+ const N = (S = A.map(($) => [$.placement, $.overflows.filter((z) => z > 0).reduce((z, tt) => z + tt, 0)]).sort(($, z) => $[1] - z[1])[0]) == null ? void 0 : S[0];
408
408
  N && (B = N);
409
409
  break;
410
410
  }
@@ -533,11 +533,11 @@ const Mt = function(e) {
533
533
  mainAxis: r = !0,
534
534
  crossAxis: s = !1,
535
535
  limiter: l = {
536
- fn: (w) => {
536
+ fn: (v) => {
537
537
  let {
538
538
  x: g,
539
539
  y: x
540
- } = w;
540
+ } = v;
541
541
  return {
542
542
  x: g,
543
543
  y: x
@@ -551,23 +551,23 @@ const Mt = function(e) {
551
551
  }, m = await ne(t, c), d = fe(V(o)), p = He(d);
552
552
  let f = u[p], a = u[d];
553
553
  if (r) {
554
- const w = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = f + m[w], b = f - m[g];
554
+ const v = p === "y" ? "top" : "left", g = p === "y" ? "bottom" : "right", x = f + m[v], b = f - m[g];
555
555
  f = ye(x, f, b);
556
556
  }
557
557
  if (s) {
558
- const w = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", x = a + m[w], b = a - m[g];
558
+ const v = d === "y" ? "top" : "left", g = d === "y" ? "bottom" : "right", x = a + m[v], b = a - m[g];
559
559
  a = ye(x, a, b);
560
560
  }
561
- const v = l.fn({
561
+ const h = l.fn({
562
562
  ...t,
563
563
  [p]: f,
564
564
  [d]: a
565
565
  });
566
566
  return {
567
- ...v,
567
+ ...h,
568
568
  data: {
569
- x: v.x - n,
570
- y: v.y - i
569
+ x: h.x - n,
570
+ y: h.y - i
571
571
  }
572
572
  };
573
573
  }
@@ -705,8 +705,8 @@ function G(e, t, n, i) {
705
705
  const p = k(r), f = i && W(i) ? k(i) : i;
706
706
  let a = p.frameElement;
707
707
  for (; a && i && f !== p; ) {
708
- const v = Z(a), w = a.getBoundingClientRect(), g = D(a), x = w.left + (a.clientLeft + parseFloat(g.paddingLeft)) * v.x, b = w.top + (a.clientTop + parseFloat(g.paddingTop)) * v.y;
709
- c *= v.x, u *= v.y, m *= v.x, d *= v.y, c += x, u += b, a = k(a).frameElement;
708
+ const h = Z(a), v = a.getBoundingClientRect(), g = D(a), x = v.left + (a.clientLeft + parseFloat(g.paddingLeft)) * h.x, b = v.top + (a.clientTop + parseFloat(g.paddingTop)) * h.y;
709
+ c *= h.x, u *= h.y, m *= h.x, d *= h.y, c += x, u += b, a = k(a).frameElement;
710
710
  }
711
711
  }
712
712
  return ue({
@@ -917,13 +917,13 @@ function nn(e, t) {
917
917
  } = e.getBoundingClientRect();
918
918
  if (l || t(), !d || !p)
919
919
  return;
920
- const f = se(m), a = se(o.clientWidth - (u + d)), v = se(o.clientHeight - (m + p)), w = se(u), x = {
921
- rootMargin: -f + "px " + -a + "px " + -v + "px " + -w + "px",
920
+ const f = se(m), a = se(o.clientWidth - (u + d)), h = se(o.clientHeight - (m + p)), v = se(u), x = {
921
+ rootMargin: -f + "px " + -a + "px " + -h + "px " + -v + "px",
922
922
  threshold: Y(0, J(1, c)) || 1
923
923
  };
924
924
  let b = !0;
925
- function C(h) {
926
- const O = h[0].intersectionRatio;
925
+ function C(w) {
926
+ const O = w[0].intersectionRatio;
927
927
  if (O !== c) {
928
928
  if (!b)
929
929
  return s();
@@ -967,11 +967,11 @@ function on(e, t, n, i) {
967
967
  f && f.observe(t);
968
968
  })), n();
969
969
  }), u && !c && f.observe(u), f.observe(t));
970
- let a, v = c ? G(e) : null;
971
- c && w();
972
- function w() {
970
+ let a, h = c ? G(e) : null;
971
+ c && v();
972
+ function v() {
973
973
  const g = G(e);
974
- v && (g.x !== v.x || g.y !== v.y || g.width !== v.width || g.height !== v.height) && n(), v = g, a = requestAnimationFrame(w);
974
+ h && (g.x !== h.x || g.y !== h.y || g.width !== h.width || g.height !== h.height) && n(), h = g, a = requestAnimationFrame(v);
975
975
  }
976
976
  return n(), () => {
977
977
  m.forEach((g) => {
@@ -1012,27 +1012,27 @@ function sn(e) {
1012
1012
  function ln(e, t, n) {
1013
1013
  n === void 0 && (n = {});
1014
1014
  const i = n.whileElementsMounted, o = L(() => {
1015
- var h;
1016
- return (h = H(n.open)) != null ? h : !0;
1015
+ var w;
1016
+ return (w = H(n.open)) != null ? w : !0;
1017
1017
  }), r = L(() => H(n.middleware)), s = L(() => {
1018
- var h;
1019
- return (h = H(n.placement)) != null ? h : "bottom";
1018
+ var w;
1019
+ return (w = H(n.placement)) != null ? w : "bottom";
1020
1020
  }), l = L(() => {
1021
- var h;
1022
- return (h = H(n.strategy)) != null ? h : "absolute";
1023
- }), c = L(() => we(e.value)), u = L(() => we(t.value)), m = F(null), d = F(null), p = F(l.value), f = F(s.value), a = Me({}), v = F(!1);
1024
- let w;
1021
+ var w;
1022
+ return (w = H(n.strategy)) != null ? w : "absolute";
1023
+ }), c = L(() => we(e.value)), u = L(() => we(t.value)), m = F(null), d = F(null), p = F(l.value), f = F(s.value), a = Me({}), h = F(!1);
1024
+ let v;
1025
1025
  function g() {
1026
1026
  c.value == null || u.value == null || rn(c.value, u.value, {
1027
1027
  middleware: r.value,
1028
1028
  placement: s.value,
1029
1029
  strategy: l.value
1030
- }).then((h) => {
1031
- m.value = h.x, d.value = h.y, p.value = h.strategy, f.value = h.placement, a.value = h.middlewareData, v.value = !0;
1030
+ }).then((w) => {
1031
+ m.value = w.x, d.value = w.y, p.value = w.strategy, f.value = w.placement, a.value = w.middlewareData, h.value = !0;
1032
1032
  });
1033
1033
  }
1034
1034
  function x() {
1035
- typeof w == "function" && (w(), w = void 0);
1035
+ typeof v == "function" && (v(), v = void 0);
1036
1036
  }
1037
1037
  function b() {
1038
1038
  if (x(), i === void 0) {
@@ -1040,12 +1040,12 @@ function ln(e, t, n) {
1040
1040
  return;
1041
1041
  }
1042
1042
  if (c.value != null && u.value != null) {
1043
- w = i(c.value, u.value, g);
1043
+ v = i(c.value, u.value, g);
1044
1044
  return;
1045
1045
  }
1046
1046
  }
1047
1047
  function C() {
1048
- o.value || (v.value = !1);
1048
+ o.value || (h.value = !1);
1049
1049
  }
1050
1050
  return j([r, s, l], g, {
1051
1051
  flush: "sync"
@@ -1059,7 +1059,7 @@ function ln(e, t, n) {
1059
1059
  strategy: Q(p),
1060
1060
  placement: Q(f),
1061
1061
  middlewareData: Q(a),
1062
- isPositioned: Q(v),
1062
+ isPositioned: Q(h),
1063
1063
  update: g
1064
1064
  };
1065
1065
  }
@@ -1159,7 +1159,7 @@ function gn(e, t, n) {
1159
1159
  i();
1160
1160
  });
1161
1161
  }
1162
- const vn = (e) => {
1162
+ const hn = (e) => {
1163
1163
  switch (e) {
1164
1164
  case "top":
1165
1165
  return "origin-bottom";
@@ -1185,14 +1185,14 @@ const vn = (e) => {
1185
1185
  return "";
1186
1186
  }
1187
1187
  };
1188
- function hn(e, t) {
1188
+ function vn(e, t) {
1189
1189
  const n = L(() => {
1190
1190
  if (typeof e.originClass == "function")
1191
1191
  return e.originClass(t.value);
1192
1192
  if (typeof e.originClass == "string")
1193
1193
  return e.originClass;
1194
1194
  if (e.tailwindcssOriginClass)
1195
- return vn(t.value);
1195
+ return hn(t.value);
1196
1196
  }), i = L(
1197
1197
  () => e.enter || n.value ? `${e.enter || ""} ${n.value || ""}` : void 0
1198
1198
  ), o = L(
@@ -1243,7 +1243,7 @@ function yn(e, t = 0) {
1243
1243
  }
1244
1244
  });
1245
1245
  }
1246
- function he(e, t, n) {
1246
+ function ve(e, t, n) {
1247
1247
  pe.isServer || lt((i) => {
1248
1248
  document.addEventListener(e, t, n), i(() => document.removeEventListener(e, t, n));
1249
1249
  });
@@ -1268,16 +1268,16 @@ function wn(e, t, n = L(() => !0)) {
1268
1268
  return !yn(l, et.Loose) && l.tabIndex !== -1 && r.preventDefault(), t(r, l);
1269
1269
  }
1270
1270
  const o = F(null);
1271
- he("mousedown", (r) => {
1271
+ ve("mousedown", (r) => {
1272
1272
  var s, l;
1273
1273
  n.value && (o.value = ((l = (s = r.composedPath) == null ? void 0 : s.call(r)) == null ? void 0 : l[0]) || r.target);
1274
- }, !0), he(
1274
+ }, !0), ve(
1275
1275
  "click",
1276
1276
  (r) => {
1277
1277
  o.value && (i(r, () => o.value), o.value = null);
1278
1278
  },
1279
1279
  !0
1280
- ), he("blur", (r) => i(
1280
+ ), ve("blur", (r) => i(
1281
1281
  r,
1282
1282
  () => window.document.activeElement instanceof HTMLIFrameElement ? window.document.activeElement : null
1283
1283
  ), !0);
@@ -1374,11 +1374,11 @@ function bn(e, t, n, i) {
1374
1374
  const { floatingRef: o, props: r, mounted: s, show: l, x: c, y: u, placement: m, strategy: d, referenceElWidth: p, updateFloating: f } = i, a = ge(
1375
1375
  { ...r, as: r.floatingAs },
1376
1376
  t
1377
- ), { enterActiveClassRef: v, leaveActiveClassRef: w } = hn(a, m), g = {
1378
- enterActiveClass: v.value,
1377
+ ), { enterActiveClassRef: h, leaveActiveClassRef: v } = vn(a, m), g = {
1378
+ enterActiveClass: h.value,
1379
1379
  enterFromClass: a.enterFrom,
1380
1380
  enterToClass: a.enterTo,
1381
- leaveActiveClass: w.value,
1381
+ leaveActiveClass: v.value,
1382
1382
  leaveFromClass: a.leaveFrom,
1383
1383
  leaveToClass: a.leaveTo
1384
1384
  }, x = {
@@ -1393,10 +1393,10 @@ function bn(e, t, n, i) {
1393
1393
  l.value = !1;
1394
1394
  }
1395
1395
  }, b = {
1396
- enter: v.value,
1396
+ enter: h.value,
1397
1397
  enterFrom: a.enterFrom,
1398
1398
  enterTo: a.enterTo,
1399
- leave: w.value,
1399
+ leave: v.value,
1400
1400
  leaveFrom: a.leaveFrom,
1401
1401
  leaveTo: a.leaveTo,
1402
1402
  onBeforeEnter: x.onBeforeEnter,
@@ -1420,7 +1420,7 @@ function bn(e, t, n, i) {
1420
1420
  width: a.adaptiveWidth && typeof p.value == "number" ? `${p.value}px` : void 0
1421
1421
  }
1422
1422
  };
1423
- function h(A) {
1423
+ function w(A) {
1424
1424
  return a.portal ? te(at, () => A) : A;
1425
1425
  }
1426
1426
  function O(A) {
@@ -1434,14 +1434,14 @@ function bn(e, t, n, i) {
1434
1434
  function E() {
1435
1435
  function A() {
1436
1436
  var R;
1437
- const S = a.as === "template" ? ge(
1437
+ const T = a.as === "template" ? ge(
1438
1438
  C,
1439
1439
  n,
1440
1440
  a.dialog ? {} : { ref: o }
1441
- ) : null, T = ft(e, S);
1442
- return ((R = T.props) == null ? void 0 : R.unmount) === !1 ? (f(), T) : typeof a.show != "boolean" || a.show ? T : Te();
1441
+ ) : null, S = ft(e, T);
1442
+ return ((R = S.props) == null ? void 0 : R.unmount) === !1 ? (f(), S) : typeof a.show != "boolean" || a.show ? S : Se();
1443
1443
  }
1444
- return pe.isServer ? s.value && a.show ? A() : Te() : a.transitionChild ? te(ct, {
1444
+ return pe.isServer ? s.value && a.show ? A() : Se() : a.transitionChild ? te(ct, {
1445
1445
  key: `placement-${m.value}`,
1446
1446
  ...a.dialog ? { ref: o } : {},
1447
1447
  as: "template",
@@ -1451,7 +1451,7 @@ function bn(e, t, n, i) {
1451
1451
  ...x
1452
1452
  }, A);
1453
1453
  }
1454
- return h(
1454
+ return w(
1455
1455
  O(
1456
1456
  E()
1457
1457
  )
@@ -1460,17 +1460,17 @@ function bn(e, t, n, i) {
1460
1460
  function Cn(e, t, n, i, o) {
1461
1461
  const r = F(!1), s = Ae(i, "placement"), l = Ae(i, "strategy"), c = Me({}), u = F(null), m = F(void 0), d = F(void 0), p = L(() => ie(t)), f = L(() => ie(n)), a = L(
1462
1462
  () => $e(p) && $e(f)
1463
- ), { x: v, y: w, placement: g, strategy: x, middlewareData: b, update: C } = ln(p, f, {
1463
+ ), { x: h, y: v, placement: g, strategy: x, middlewareData: b, update: C } = ln(p, f, {
1464
1464
  placement: s,
1465
1465
  strategy: l,
1466
1466
  middleware: c,
1467
1467
  whileElementsMounted: () => {
1468
1468
  }
1469
- }), h = F(null);
1469
+ }), w = F(null);
1470
1470
  _e(() => {
1471
1471
  r.value = !0;
1472
- }), j(e, (T, P) => {
1473
- T && !P ? o("show") : !T && P && o("hide");
1472
+ }), j(e, (S, P) => {
1473
+ S && !P ? o("show") : !S && P && o("hide");
1474
1474
  }, { immediate: !0 });
1475
1475
  function O() {
1476
1476
  a.value && (C(), o("update"));
@@ -1482,9 +1482,9 @@ function Cn(e, t, n, i, o) {
1482
1482
  u,
1483
1483
  i
1484
1484
  ), j(b, () => {
1485
- const T = b.value.arrow;
1486
- m.value = T == null ? void 0 : T.x, d.value = T == null ? void 0 : T.y;
1487
- }), gn(i.adaptiveWidth, p, h), j(e, async (T, P, _) => {
1485
+ const S = b.value.arrow;
1486
+ m.value = S == null ? void 0 : S.x, d.value = S == null ? void 0 : S.y;
1487
+ }), gn(i.adaptiveWidth, p, w), j(e, async (S, P, _) => {
1488
1488
  if (await it(), e.value && a.value && i.autoUpdate) {
1489
1489
  const B = on(
1490
1490
  p.value,
@@ -1509,19 +1509,19 @@ function Cn(e, t, n, i, o) {
1509
1509
  props: i,
1510
1510
  mounted: r,
1511
1511
  show: e,
1512
- x: v,
1513
- y: w,
1512
+ x: h,
1513
+ y: v,
1514
1514
  placement: g,
1515
1515
  strategy: x,
1516
- referenceElWidth: h,
1516
+ referenceElWidth: w,
1517
1517
  updateFloating: O
1518
- }, S = {
1518
+ }, T = {
1519
1519
  ref: u,
1520
1520
  placement: g,
1521
1521
  x: m,
1522
1522
  y: d
1523
1523
  };
1524
- return rt(xn, S), { referenceApi: A, floatingApi: R, arrowApi: S, x: v, y: w, placement: g, strategy: x, referenceEl: p, floatingEl: f, middlewareData: b, update: O };
1524
+ return rt(xn, T), { referenceApi: A, floatingApi: R, arrowApi: T, x: h, y: v, placement: g, strategy: x, referenceEl: p, floatingEl: f, middlewareData: b, update: O };
1525
1525
  }
1526
1526
  ({
1527
1527
  ...y.as
@@ -1610,7 +1610,7 @@ const On = {
1610
1610
  y.as, y.placement, y.strategy, y.offset, y.shift, {
1611
1611
  ...y.flip
1612
1612
  }, y.arrow, y.autoPlacement, y.hide, y.autoUpdate, y.zIndex, y.transitionName, y.transitionType, y.enter, y.enterFrom, y.enterTo, y.leave, y.leaveFrom, y.leaveTo, y.originClass, y.tailwindcssOriginClass, y.transform, y.middleware;
1613
- const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onClick"], Rn = /* @__PURE__ */ dt({
1613
+ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Sn = ["onClick"], Rn = /* @__PURE__ */ dt({
1614
1614
  __name: "StylePanel",
1615
1615
  setup(e) {
1616
1616
  const t = F({ value: null }), n = mt(), i = L(
@@ -1623,15 +1623,15 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
1623
1623
  }, l = F([]);
1624
1624
  let c;
1625
1625
  const u = ({ show: d, reference: p, floating: f }) => {
1626
- let a, v, w, g, x, b;
1627
- n.commit("onMessageClick", (C, h) => {
1626
+ let a, h, v, g, x, b;
1627
+ n.commit("onMessageClick", (C, w) => {
1628
1628
  var O;
1629
- if (a = C.value.start.start, v = Ct(r.value, a), w = Ot(r.value, a), g = ((O = r.value.slice(v).match(/^\s*/)) == null ? void 0 : O[0]) || "", x = w.trim().startsWith("//"), x) {
1630
- const E = w.trimStart().slice(2).trimStart(), A = E.indexOf("["), R = E.indexOf("]");
1631
- b = Boolean(A === 0 && R), b ? l.value = E.slice(A + 1, R).split(",").map((S) => S.trim()) : l.value = [];
1629
+ if (a = C.value.start.start, h = Ct(r.value, a), v = Ot(r.value, a), g = ((O = r.value.slice(h).match(/^\s*/)) == null ? void 0 : O[0]) || "", x = v.trim().startsWith("//"), x) {
1630
+ const E = v.trimStart().slice(2).trimStart(), A = E.indexOf("["), R = E.indexOf("]");
1631
+ b = Boolean(A === 0 && R), b ? l.value = E.slice(A + 1, R).split(",").map((T) => T.trim()) : l.value = [];
1632
1632
  }
1633
1633
  p.value = {
1634
- getBoundingClientRect: () => h.getBoundingClientRect()
1634
+ getBoundingClientRect: () => w.getBoundingClientRect()
1635
1635
  }, t.value = C, d.value = !0;
1636
1636
  }), wn(
1637
1637
  f,
@@ -1640,24 +1640,24 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
1640
1640
  },
1641
1641
  L(() => d.value)
1642
1642
  ), c = (C) => {
1643
+ var w;
1643
1644
  if (d.value = !1, !!t.value.value)
1644
1645
  if (x) {
1645
- let h = "";
1646
+ let O = "";
1646
1647
  if (b) {
1647
- let O;
1648
- l.value.includes(C) ? O = l.value.filter((E) => E !== C) : O = [...l.value, C], h = `${g}// [${O.join(
1649
- ", "
1650
- )}] ${w.slice(w.indexOf("]") + 1).trimStart()}`;
1651
- }
1652
- h.endsWith(`
1653
- `) || (h += `
1648
+ let E;
1649
+ l.value.includes(C) ? E = l.value.filter((A) => A !== C) : E = [...l.value, C], O = `${g}// [${E.filter(Boolean).join(", ")}] ${v.slice(v.indexOf("]") + 1).trimStart()}`;
1650
+ } else
1651
+ O = `${g}// [${C}] ${v.slice((((w = v.match(/\/\/*/)) == null ? void 0 : w.index) || -2) + 2).trimStart()}`;
1652
+ O.endsWith(`
1653
+ `) || (O += `
1654
1654
  `), s(
1655
- r.value.slice(0, Et(r.value, a)) + h + r.value.slice(v)
1655
+ r.value.slice(0, Et(r.value, a)) + O + r.value.slice(h)
1656
1656
  );
1657
1657
  } else
1658
1658
  s(
1659
- r.value.slice(0, v) + `${g}// [${C}]
1660
- ` + r.value.slice(v)
1659
+ r.value.slice(0, h) + `${g}// [${C}]
1660
+ ` + r.value.slice(h)
1661
1661
  );
1662
1662
  };
1663
1663
  }, m = [
@@ -1682,7 +1682,7 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
1682
1682
  class: "line-through"
1683
1683
  }
1684
1684
  ];
1685
- return (d, p) => (Se(), vt(H(En), {
1685
+ return (d, p) => (Te(), ht(H(En), {
1686
1686
  key: "tool",
1687
1687
  onInitial: u,
1688
1688
  placement: "top",
@@ -1691,19 +1691,19 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
1691
1691
  shift: "",
1692
1692
  zIndex: "30"
1693
1693
  }, {
1694
- default: ht(() => [
1695
- ve("div", An, [
1696
- (Se(), yt(Ie, null, wt(m, (f) => ve("div", {
1694
+ default: vt(() => [
1695
+ he("div", An, [
1696
+ (Te(), yt(Ie, null, wt(m, (f) => he("div", {
1697
1697
  onClick: () => H(c)(f.class),
1698
1698
  key: f.name
1699
1699
  }, [
1700
- ve("div", {
1700
+ he("div", {
1701
1701
  class: xt(["w-6 mx-1 py-1 rounded-md text-black text-center cursor-pointer hover:bg-gray-200", [
1702
1702
  f.class,
1703
1703
  { "bg-gray-100": l.value.includes(f.class) }
1704
1704
  ]])
1705
1705
  }, bt(f.content), 3)
1706
- ], 8, Tn)), 64))
1706
+ ], 8, Sn)), 64))
1707
1707
  ])
1708
1708
  ], void 0, !0),
1709
1709
  _: 1
@@ -1713,4 +1713,4 @@ const An = { class: "flex bg-white shadow-md z-10 rounded-md p-1" }, Tn = ["onCl
1713
1713
  export {
1714
1714
  Rn as default
1715
1715
  };
1716
- //# sourceMappingURL=StylePanel.4c9f8216.js.map
1716
+ //# sourceMappingURL=StylePanel.19fa39f4.js.map
@@ -1,4 +1,4 @@
1
- import { o as e, c as o, a as t } from "./core.4a17c405.js";
1
+ import { o as e, c as o, a as t } from "./core.c3e972e2.js";
2
2
  const r = {
3
3
  xmlns: "http://www.w3.org/2000/svg",
4
4
  fill: "none",
@@ -21,4 +21,4 @@ export {
21
21
  i as default,
22
22
  c as render
23
23
  };
24
- //# sourceMappingURL=close.febc4f04.js.map
24
+ //# sourceMappingURL=close.7010e9d1.js.map