@snowcone-app/canvas 0.46.9 → 0.46.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/{CanvasRenderer-CmIQSVCK.js → CanvasRenderer-CLL5V71e.js} +4 -4
  2. package/dist/{CanvasRenderer-CmIQSVCK.js.map → CanvasRenderer-CLL5V71e.js.map} +1 -1
  3. package/dist/{ContextualToolbars-BG90V6-s.js → ContextualToolbars-DnsfOy7x.js} +138 -137
  4. package/dist/ContextualToolbars-DnsfOy7x.js.map +1 -0
  5. package/dist/{EditorCanvasImpl-C7y7UNl1.js → EditorCanvasImpl-DDBa3pvE.js} +8 -8
  6. package/dist/{EditorCanvasImpl-C7y7UNl1.js.map → EditorCanvasImpl-DDBa3pvE.js.map} +1 -1
  7. package/dist/ExportManager-BR5uca6R.js +5579 -0
  8. package/dist/ExportManager-BR5uca6R.js.map +1 -0
  9. package/dist/{ImagePanel-BaEJnUvS.js → ImagePanel-Bez-5INu.js} +6 -6
  10. package/dist/{ImagePanel-BaEJnUvS.js.map → ImagePanel-Bez-5INu.js.map} +1 -1
  11. package/dist/{SnowconeCanvas-C6FmL0pj.js → SnowconeCanvas-Cjnp1ztd.js} +10 -10
  12. package/dist/{SnowconeCanvas-C6FmL0pj.js.map → SnowconeCanvas-Cjnp1ztd.js.map} +1 -1
  13. package/dist/advanced.mjs +16 -16
  14. package/dist/{compose-Ce53EW1v.js → compose-CZslfDUm.js} +3 -3
  15. package/dist/{compose-Ce53EW1v.js.map → compose-CZslfDUm.js.map} +1 -1
  16. package/dist/constants.d.ts +0 -1
  17. package/dist/{custom-icons-BA-MX7Y2.js → custom-icons-DIqddGX1.js} +2 -2
  18. package/dist/{custom-icons-BA-MX7Y2.js.map → custom-icons-DIqddGX1.js.map} +1 -1
  19. package/dist/{design-builder-HKRo18WT.js → design-builder-CCPB3WRx.js} +4 -4
  20. package/dist/design-builder-CCPB3WRx.js.map +1 -0
  21. package/dist/{embed-CYlEe_Xv.js → embed-BydDaNDy.js} +9 -9
  22. package/dist/{embed-CYlEe_Xv.js.map → embed-BydDaNDy.js.map} +1 -1
  23. package/dist/embed.mjs +6 -6
  24. package/dist/{export-worker.bundle.string-CyMb_XjB.js → export-worker.bundle.string-DG2f-C1t.js} +1490 -1487
  25. package/dist/{export-worker.bundle.string-CyMb_XjB.js.map → export-worker.bundle.string-DG2f-C1t.js.map} +1 -1
  26. package/dist/{FontAnalyzer-CLMJi2Sw.js → fontAnalysisCache-B2lh7X-_.js} +1408 -3329
  27. package/dist/fontAnalysisCache-B2lh7X-_.js.map +1 -0
  28. package/dist/{guards-Dk86a-kH.js → guards-2oykBUel.js} +2 -2
  29. package/dist/{guards-Dk86a-kH.js.map → guards-2oykBUel.js.map} +1 -1
  30. package/dist/index.mjs +9 -9
  31. package/dist/internals.mjs +5 -5
  32. package/dist/{template-fields-3CH15MFC.js → template-fields-cNoo8zDC.js} +6 -6
  33. package/dist/template-fields-cNoo8zDC.js.map +1 -0
  34. package/dist/testing.mjs +3 -3
  35. package/dist/{useCommands-C6nE770t.js → useCommands-mpsd0_l5.js} +17 -17
  36. package/dist/{useCommands-C6nE770t.js.map → useCommands-mpsd0_l5.js.map} +1 -1
  37. package/dist/{usePieceGuideBundle-DJfjOVEd.js → usePieceGuideBundle-BuxwVcb5.js} +2 -2
  38. package/dist/{usePieceGuideBundle-DJfjOVEd.js.map → usePieceGuideBundle-BuxwVcb5.js.map} +1 -1
  39. package/dist/utils/fontAnalysisCache.d.ts +14 -0
  40. package/dist/{validation-C3FHoCbQ.js → validation-DjdrFk2P.js} +11 -11
  41. package/dist/{validation-C3FHoCbQ.js.map → validation-DjdrFk2P.js.map} +1 -1
  42. package/dist/workers/export-worker.bundle.string.d.ts +1 -1
  43. package/example/package.json +1 -1
  44. package/package.json +3 -3
  45. package/dist/ContextualToolbars-BG90V6-s.js.map +0 -1
  46. package/dist/ExportManager-DEJgxB0S.js +0 -3647
  47. package/dist/ExportManager-DEJgxB0S.js.map +0 -1
  48. package/dist/FontAnalyzer-CLMJi2Sw.js.map +0 -1
  49. package/dist/design-builder-HKRo18WT.js.map +0 -1
  50. package/dist/template-fields-3CH15MFC.js.map +0 -1
@@ -2,14 +2,14 @@ import { jsx as t, jsxs as p, Fragment as Ve } from "react/jsx-runtime";
2
2
  import * as re from "react";
3
3
  import Le, { useRef as W, useEffect as G, useCallback as S, useState as N, useLayoutEffect as Uo, useMemo as We, memo as Bo, useSyncExternalStore as Mr } from "react";
4
4
  import { createPortal as $o } from "react-dom";
5
- import { b as Pt, e as jo, c as Er, n as Ir } from "./design-builder-HKRo18WT.js";
6
- import { u as Ho, I as Q, a as De, V as Rr, i as de, m as wt, B as J, W as Lr, T as pe, q as me, r as he, X as $, w as Vt, b as Wo, U as tt, D as zr, C as Ar, j as Fr, S as Or } from "./useCommands-C6nE770t.js";
7
- import { R as xs, L as Ne, a as _r, I as Ur, T as ct } from "./custom-icons-BA-MX7Y2.js";
8
- import { I as Xe, c as Zt, aU as Vo, aZ as Yo, aV as To, a_ as Br, Y as $r, a$ as jr, b0 as Hr, b1 as Wr, b2 as Vr, b3 as No, X as So, V as Yr, G as Et, T as $e, o as Xr, S as Xs, P as Xo, q as qr, b4 as Kr, aY as Gr } from "./FontAnalyzer-CLMJi2Sw.js";
5
+ import { b as Pt, e as jo, c as Er, n as Ir } from "./design-builder-CCPB3WRx.js";
6
+ import { u as Ho, I as Q, a as De, V as Rr, i as de, m as wt, B as J, W as Lr, T as pe, q as me, r as he, X as $, w as Vt, b as Wo, U as tt, D as zr, C as Ar, j as Fr, S as Or } from "./useCommands-mpsd0_l5.js";
7
+ import { R as xs, L as Ne, a as _r, I as Ur, T as ct } from "./custom-icons-DIqddGX1.js";
8
+ import { I as Xe, c as Zt, aW as Vo, a_ as Yo, Y as Br, a$ as $r, b0 as jr, b1 as Hr, b2 as To, X as No, V as Wr, G as Et, T as $e, o as Vr, S as Xs, P as Xo, q as Yr, b3 as Xr, aZ as qr } from "./fontAnalysisCache-B2lh7X-_.js";
9
9
  import { isNeutralAdjustments as qo, NEUTRAL_ADJUSTMENTS as Ko } from "@snowcone-app/design/wire";
10
10
  import * as It from "@radix-ui/react-popover";
11
11
  import * as pt from "@radix-ui/react-slider";
12
- import { T as Do, S as Go, U as qs, V as Ks, X as Po, Y as Gs, G as $s, H as Pr, J as Zr, K as Jr, Z as Mo } from "./ExportManager-DEJgxB0S.js";
12
+ import { T as So, U as Go, V as qs, X as Ks, Y as Po, Z as Gs, G as $s, H as Kr, S as Do, _ as Gr, J as Pr, K as Zr, $ as Jr, a0 as Mo } from "./ExportManager-BR5uca6R.js";
13
13
  import * as on from "@radix-ui/react-collapsible";
14
14
  import * as Ps from "@radix-ui/react-switch";
15
15
  import * as Zs from "@radix-ui/react-checkbox";
@@ -57,7 +57,7 @@ function ta(e, s, n, o) {
57
57
  const c = e.clone();
58
58
  return c.imageUrl = s, c.transformData = { ...c.transformData, engrave: { ...n } }, c.imageLoaded = !1, c.imageElement = null, c.onLoadCallback = (a) => o(a), c.loadImage(s), c;
59
59
  }
60
- function ud() {
60
+ function fd() {
61
61
  const { elements: e, artboards: s, artboardManager: n, setElements: o } = Pt(), c = W(/* @__PURE__ */ new Set()), a = W(/* @__PURE__ */ new Set());
62
62
  return G(() => {
63
63
  for (const i of s) {
@@ -1833,7 +1833,7 @@ const Ai = ({
1833
1833
  o(s === "transparent" ? "transparent" : "color");
1834
1834
  else if (D === "texture") {
1835
1835
  if (!n) {
1836
- const T = Do.getAllTextures()[0];
1836
+ const T = So.getAllTextures()[0];
1837
1837
  T && a(T.id);
1838
1838
  }
1839
1839
  o("texture");
@@ -1907,7 +1907,7 @@ const Ai = ({
1907
1907
  ] }),
1908
1908
  g === "texture" && /* @__PURE__ */ p("div", { className: "sc:flex sc:flex-col sc:gap-3", children: [
1909
1909
  /* @__PURE__ */ t("div", { className: "sc:text-sm sc:font-medium sc:text-foreground/60", children: "Select a texture" }),
1910
- /* @__PURE__ */ t("div", { className: "sc:grid sc:grid-cols-4 sc:gap-1.5", children: Do.getAllTextures().map((D) => /* @__PURE__ */ t(
1910
+ /* @__PURE__ */ t("div", { className: "sc:grid sc:grid-cols-4 sc:gap-1.5", children: So.getAllTextures().map((D) => /* @__PURE__ */ t(
1911
1911
  "button",
1912
1912
  {
1913
1913
  className: `sc:flex sc:items-center sc:justify-center sc:p-1 sc:rounded-lg sc:cursor-pointer sc:transition-all sc:border-2 ${n === D.id ? "sc:border-primary" : "sc:border-transparent sc:hover:border-primary/50"}`,
@@ -2246,7 +2246,7 @@ const Ht = Zt("FontBrowserDrawer"), Bi = ({
2246
2246
  [Y]
2247
2247
  );
2248
2248
  G(() => {
2249
- !o || oe.length === 0 || Pr(oe, {
2249
+ !o || oe.length === 0 || Kr(oe, {
2250
2250
  onLoadError: (h) => {
2251
2251
  Ht.error("Custom font failed to load:", h), P({ code: h.code, message: h.message });
2252
2252
  }
@@ -2264,10 +2264,10 @@ const Ht = Zt("FontBrowserDrawer"), Bi = ({
2264
2264
  ...j.weight !== void 0 && { weight: j.weight },
2265
2265
  ...j.style !== void 0 && { style: j.style }
2266
2266
  };
2267
- await Zr(K), Jr([K]), s({ target: { value: K.family } }), setTimeout(() => c(!1), 0);
2267
+ await Pr(K), Zr([K]), s({ target: { value: K.family } }), setTimeout(() => c(!1), 0);
2268
2268
  } catch (j) {
2269
2269
  Ht.error("Font upload failed:", j), P({
2270
- code: $r(j) ? j.code : void 0,
2270
+ code: Br(j) ? j.code : void 0,
2271
2271
  message: j instanceof Error ? j.message : String(j)
2272
2272
  });
2273
2273
  } finally {
@@ -2500,7 +2500,7 @@ const Ht = Zt("FontBrowserDrawer"), Bi = ({
2500
2500
  });
2501
2501
  }), h;
2502
2502
  }, [u]), we = We(() => {
2503
- const h = (tt.isFontsLoaded() ? tt.getAllFonts() : To).filter((H) => !ie.has(H.name.trim().toLowerCase())), w = new Set(To.map((H) => H.name)), R = [];
2503
+ const h = (tt.isFontsLoaded() ? tt.getAllFonts() : Do).filter((H) => !ie.has(H.name.trim().toLowerCase())), w = new Set(Do.map((H) => H.name)), R = [];
2504
2504
  h.forEach((H) => {
2505
2505
  if (Ee.has(H.name))
2506
2506
  if (m) {
@@ -2643,7 +2643,7 @@ const Ht = Zt("FontBrowserDrawer"), Bi = ({
2643
2643
  }
2644
2644
  ),
2645
2645
  /* @__PURE__ */ t("div", { className: "sc:relative sc:z-20 sc:px-4 sc:py-4 sc:pt-3", children: /* @__PURE__ */ t("div", { className: "sc:flex sc:gap-2 sc:overflow-x-auto", children: _e.map((h) => {
2646
- const w = h === "all" ? "All" : Br[h];
2646
+ const w = h === "all" ? "All" : Gr[h];
2647
2647
  return /* @__PURE__ */ t(
2648
2648
  J,
2649
2649
  {
@@ -2814,7 +2814,7 @@ const Ht = Zt("FontBrowserDrawer"), Bi = ({
2814
2814
  isOpen: o,
2815
2815
  onOpenChange: c
2816
2816
  }) => {
2817
- const [a, i] = N(!1), u = o !== void 0 ? o : a, g = c || i, m = e.transformType, v = Hr(m), b = jr.filter(
2817
+ const [a, i] = N(!1), u = o !== void 0 ? o : a, g = c || i, m = e.transformType, v = jr(m), b = $r.filter(
2818
2818
  (y) => y.Component && y.id !== "image" && y.id !== "group" && y.id !== "shape" && y.id !== "path"
2819
2819
  ), x = (y) => {
2820
2820
  y !== m && s(y);
@@ -2987,7 +2987,8 @@ function Pi({ onMoveForward: e, onMoveBackward: s, onDelete: n, onOpenChange: o
2987
2987
  ] }) })
2988
2988
  ] });
2989
2989
  }
2990
- function Zi({
2990
+ const Zi = Jr();
2991
+ function Ji({
2991
2992
  toolbar: e,
2992
2993
  stableElementId: s,
2993
2994
  viewportWidth: n = window.innerWidth,
@@ -3034,7 +3035,7 @@ function Zi({
3034
3035
  {
3035
3036
  value: e.getEffectiveStyle().fontFamily || e.fontFamily,
3036
3037
  onChange: (it) => e.handleFontFamilyChange(it.target.value),
3037
- fontFamilies: Wr,
3038
+ fontFamilies: Zi,
3038
3039
  isOpen: ne,
3039
3040
  onToggle: xe,
3040
3041
  showLabel: n > 700,
@@ -3209,11 +3210,11 @@ function Zi({
3209
3210
  ie && /* @__PURE__ */ t("button", { className: "sc-toolbar-btn", onClick: O, children: "Ungroup" })
3210
3211
  ] }, `text-toolbar-${s}`);
3211
3212
  }
3212
- function Ji(e, s, n) {
3213
+ function Qi(e, s, n) {
3213
3214
  const o = e.getRotationAnchor();
3214
3215
  let c;
3215
3216
  e.transformType === "circle" && "getEffectiveFontSize" in e ? c = e.getEffectiveFontSize() : c = e.fontSize;
3216
- const a = Qi(e, s, c, o);
3217
+ const a = el(e, s, c, o);
3217
3218
  return new n({
3218
3219
  id: e.id,
3219
3220
  text: e.text,
@@ -3227,7 +3228,7 @@ function Ji(e, s, n) {
3227
3228
  transformData: a.transformData
3228
3229
  });
3229
3230
  }
3230
- function Qi(e, s, n, o) {
3231
+ function el(e, s, n, o) {
3231
3232
  let c, a, i;
3232
3233
  const u = n;
3233
3234
  switch (s) {
@@ -3244,30 +3245,30 @@ function Qi(e, s, n, o) {
3244
3245
  const k = 200, C = n * e.text.length * 0.6;
3245
3246
  c = {
3246
3247
  width: Math.max(C, k),
3247
- archHeight: Yr.archHeight
3248
+ archHeight: Wr.archHeight
3248
3249
  }, a = o.x, i = o.y;
3249
3250
  break;
3250
3251
  case "wave":
3251
3252
  const M = 200, E = n * e.text.length * 0.6;
3252
3253
  c = {
3253
3254
  width: Math.max(E, M),
3254
- amplitude: So.amplitude,
3255
- frequency: So.frequency
3255
+ amplitude: No.amplitude,
3256
+ frequency: No.frequency
3256
3257
  }, a = o.x, i = o.y;
3257
3258
  break;
3258
3259
  case "flag":
3259
3260
  const D = 200, T = n * e.text.length * 0.6;
3260
3261
  c = {
3261
3262
  width: Math.max(T, D),
3262
- amplitude: No.amplitude,
3263
- frequency: No.frequency
3263
+ amplitude: To.amplitude,
3264
+ frequency: To.frequency
3264
3265
  }, a = o.x, i = o.y;
3265
3266
  break;
3266
3267
  case "lean":
3267
3268
  const I = 200, z = n * e.text.length * 0.6;
3268
3269
  c = {
3269
3270
  width: Math.max(z, I),
3270
- leanAmount: Vr.leanAmount
3271
+ leanAmount: Hr.leanAmount
3271
3272
  }, a = o.x, i = o.y;
3272
3273
  break;
3273
3274
  default:
@@ -3275,7 +3276,7 @@ function Qi(e, s, n, o) {
3275
3276
  }
3276
3277
  return { x: a, y: i, fontSize: u, transformData: c };
3277
3278
  }
3278
- function el(e = {}) {
3279
+ function tl(e = {}) {
3279
3280
  const { canvasEditorRef: s } = e, {
3280
3281
  selectedElement: n,
3281
3282
  activeChildElement: o,
@@ -3426,9 +3427,9 @@ function el(e = {}) {
3426
3427
  }, [s, T, E, D, U, B, oe]), _e = S(
3427
3428
  (h) => {
3428
3429
  if (!a) return;
3429
- const w = Xr(h);
3430
+ const w = Vr(h);
3430
3431
  if (!(w != null && w.Component)) return;
3431
- const R = Ji(a, h, w.Component);
3432
+ const R = Qi(a, h, w.Component);
3432
3433
  i(R);
3433
3434
  },
3434
3435
  [a, i]
@@ -3460,8 +3461,8 @@ function el(e = {}) {
3460
3461
  handleTransformTypeChange: _e
3461
3462
  };
3462
3463
  }
3463
- const tl = Zt("useLayerPreview");
3464
- function sl(e) {
3464
+ const sl = Zt("useLayerPreview");
3465
+ function nl(e) {
3465
3466
  var v, b, x, y, k;
3466
3467
  const { element: s, size: n = 148, backgroundColor: o = "transparent", enabled: c = !0 } = e, [a, i] = N(null), [u, g] = N(!1), m = W(null);
3467
3468
  return G(() => {
@@ -3487,7 +3488,7 @@ function sl(e) {
3487
3488
  });
3488
3489
  C && (i(E), g(!1));
3489
3490
  } catch (E) {
3490
- if (tl.warn("Failed to generate preview:", E), C) {
3491
+ if (sl.warn("Failed to generate preview:", E), C) {
3491
3492
  const D = Mo(s, {
3492
3493
  width: n,
3493
3494
  height: n,
@@ -3525,7 +3526,7 @@ function sl(e) {
3525
3526
  s instanceof Et ? (k = s.children) == null ? void 0 : k.length : null
3526
3527
  ]), { previewUrl: a, isLoading: u };
3527
3528
  }
3528
- function nl({
3529
+ function ol({
3529
3530
  element: e,
3530
3531
  onToggleLock: s,
3531
3532
  onThumbnailClick: n
@@ -3534,7 +3535,7 @@ function nl({
3534
3535
  const o = e.locked === !0;
3535
3536
  return /* @__PURE__ */ p(Ve, { children: [
3536
3537
  /* @__PURE__ */ t(
3537
- ol,
3538
+ al,
3538
3539
  {
3539
3540
  element: e,
3540
3541
  onClick: n
@@ -3543,7 +3544,7 @@ function nl({
3543
3544
  /* @__PURE__ */ t(
3544
3545
  $,
3545
3546
  {
3546
- icon: /* @__PURE__ */ t(al, { locked: o }),
3547
+ icon: /* @__PURE__ */ t(cl, { locked: o }),
3547
3548
  onClick: s,
3548
3549
  active: o,
3549
3550
  tooltip: o ? "Unlock layer" : "Lock layer",
@@ -3552,11 +3553,11 @@ function nl({
3552
3553
  )
3553
3554
  ] });
3554
3555
  }
3555
- function ol({
3556
+ function al({
3556
3557
  element: e,
3557
3558
  onClick: s
3558
3559
  }) {
3559
- const { previewUrl: n } = sl({
3560
+ const { previewUrl: n } = nl({
3560
3561
  element: e,
3561
3562
  size: 64,
3562
3563
  backgroundColor: "transparent"
@@ -3596,7 +3597,7 @@ function ol({
3596
3597
  }
3597
3598
  );
3598
3599
  }
3599
- function al({ locked: e }) {
3600
+ function cl({ locked: e }) {
3600
3601
  return /* @__PURE__ */ p("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", "aria-hidden": !0, children: [
3601
3602
  /* @__PURE__ */ t(
3602
3603
  "rect",
@@ -3631,7 +3632,7 @@ function al({ locked: e }) {
3631
3632
  )
3632
3633
  ] });
3633
3634
  }
3634
- const ys = 3, cl = 2;
3635
+ const ys = 3, rl = 2;
3635
3636
  function Sa(e) {
3636
3637
  if (e.length === 0) return null;
3637
3638
  let s = 1 / 0, n = 1 / 0, o = -1 / 0, c = -1 / 0;
@@ -3639,7 +3640,7 @@ function Sa(e) {
3639
3640
  s = Math.min(s, a.bbox.x), n = Math.min(n, a.bbox.y), o = Math.max(o, a.bbox.x + a.bbox.width), c = Math.max(c, a.bbox.y + a.bbox.height);
3640
3641
  return { x: s, y: n, width: o - s, height: c - n };
3641
3642
  }
3642
- function rl(e, s, n) {
3643
+ function il(e, s, n) {
3643
3644
  const o = [];
3644
3645
  for (const c of e) {
3645
3646
  let a = 0, i = 0;
@@ -3667,9 +3668,9 @@ function rl(e, s, n) {
3667
3668
  }
3668
3669
  return o;
3669
3670
  }
3670
- function il(e, s) {
3671
+ function ll(e, s) {
3671
3672
  if (e.length < ys)
3672
- throw new qr(
3673
+ throw new Yr(
3673
3674
  "E_DISTRIBUTE_MIN_THREE",
3674
3675
  `distribute ${s} needs at least ${ys} movable elements, got ${e.length}. Gate the action on useAlignDistribute().canDistribute (or items.length >= DISTRIBUTE_MIN_COUNT) instead of calling computeDistribute below the threshold.`,
3675
3676
  { mode: s, count: e.length, min: ys }
@@ -3716,13 +3717,13 @@ function Da() {
3716
3717
  y: y.y,
3717
3718
  bbox: y.getBoundingBox()
3718
3719
  }));
3719
- let x = b.length >= cl ? Sa(b) : null;
3720
+ let x = b.length >= rl ? Sa(b) : null;
3720
3721
  if (!x) {
3721
3722
  const y = o.getActiveArtboard();
3722
3723
  if (!y) return;
3723
3724
  x = { x: y.x, y: y.y, width: y.width, height: y.height };
3724
3725
  }
3725
- u(rl(b, v, x));
3726
+ u(il(b, v, x));
3726
3727
  },
3727
3728
  [i, o, u]
3728
3729
  ), m = S(
@@ -3733,7 +3734,7 @@ function Da() {
3733
3734
  y: x.y,
3734
3735
  bbox: x.getBoundingBox()
3735
3736
  }));
3736
- u(il(b, v));
3737
+ u(ll(b, v));
3737
3738
  },
3738
3739
  [i, u]
3739
3740
  );
@@ -3752,10 +3753,10 @@ const Ma = [
3752
3753
  { mode: "top", icon: "gravity-ui:objects-align-top", label: "Align top" },
3753
3754
  { mode: "center-v", icon: "gravity-ui:objects-align-center-vertical", label: "Align vertical centers" },
3754
3755
  { mode: "bottom", icon: "gravity-ui:objects-align-bottom", label: "Align bottom" }
3755
- ], ll = [
3756
+ ], dl = [
3756
3757
  { mode: "horizontal", icon: "gravity-ui:objects-align-justify-horizontal", label: "Distribute horizontally" },
3757
3758
  { mode: "vertical", icon: "gravity-ui:objects-align-justify-vertical", label: "Distribute vertically" }
3758
- ], dl = ({
3759
+ ], ul = ({
3759
3760
  mode: e = "floating",
3760
3761
  artboardScreenBounds: s,
3761
3762
  partAttr: n
@@ -3825,7 +3826,7 @@ const Ma = [
3825
3826
  },
3826
3827
  T
3827
3828
  )),
3828
- v && ll.map(({ mode: T, icon: I, label: z }) => /* @__PURE__ */ t(
3829
+ v && dl.map(({ mode: T, icon: I, label: z }) => /* @__PURE__ */ t(
3829
3830
  $,
3830
3831
  {
3831
3832
  icon: I,
@@ -3839,7 +3840,7 @@ const Ma = [
3839
3840
  }
3840
3841
  );
3841
3842
  return e === "floating" ? $o(D, document.body) : D;
3842
- }, ul = ({
3843
+ }, fl = ({
3843
3844
  element: e,
3844
3845
  rotationExpanded: s = !1,
3845
3846
  onRotationToggle: n,
@@ -4185,11 +4186,11 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4185
4186
  ] }) })
4186
4187
  }
4187
4188
  );
4188
- }, fd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4189
+ }, pd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4189
4190
  __proto__: null,
4190
4191
  CropPanel: vs,
4191
4192
  default: vs
4192
- }, Symbol.toStringTag, { value: "Module" })), Oe = "sc:flex sc:flex-col sc:gap-5 sc:px-5 sc:pt-4 sc:pb-4 sc:md:gap-4 sc:md:px-4 sc:md:pt-3 sc:md:pb-3", Ea = "sc:flex sc:flex-col sc:gap-5 sc:px-5 sc:pt-4 sc:pb-[calc(env(safe-area-inset-bottom,0px)+20px)] sc:md:gap-4 sc:md:px-4 sc:md:pt-2 sc:md:pb-[calc(env(safe-area-inset-bottom,0px)+16px)]", fl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4193
+ }, Symbol.toStringTag, { value: "Module" })), Oe = "sc:flex sc:flex-col sc:gap-5 sc:px-5 sc:pt-4 sc:pb-4 sc:md:gap-4 sc:md:px-4 sc:md:pt-3 sc:md:pb-3", Ea = "sc:flex sc:flex-col sc:gap-5 sc:px-5 sc:pt-4 sc:pb-[calc(env(safe-area-inset-bottom,0px)+20px)] sc:md:gap-4 sc:md:px-4 sc:md:pt-2 sc:md:pb-[calc(env(safe-area-inset-bottom,0px)+16px)]", pl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4193
4194
  "div",
4194
4195
  {
4195
4196
  className: "corner-radius-panel sc:flex sc:flex-col",
@@ -4206,7 +4207,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4206
4207
  "data-testid": `align-${s}`
4207
4208
  },
4208
4209
  s
4209
- )) }) }) }), pl = ({ value: e, onChange: s, onRotate90: n }) => /* @__PURE__ */ t(
4210
+ )) }) }) }), ml = ({ value: e, onChange: s, onRotate90: n }) => /* @__PURE__ */ t(
4210
4211
  "div",
4211
4212
  {
4212
4213
  className: "rotation-panel sc:flex sc:flex-col",
@@ -4231,7 +4232,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4231
4232
  /* @__PURE__ */ t("div", { className: "sc:pb-0.5", children: /* @__PURE__ */ t($, { icon: de.rotateCcwSquare, onClick: n, tooltip: "Rotate 90° CCW" }) })
4232
4233
  ] }) })
4233
4234
  }
4234
- ), ml = ({
4235
+ ), hl = ({
4235
4236
  value: e,
4236
4237
  onChange: s,
4237
4238
  widthValue: n,
@@ -4306,7 +4307,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4306
4307
  )
4307
4308
  ] })
4308
4309
  }
4309
- ), hl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4310
+ ), gl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4310
4311
  "div",
4311
4312
  {
4312
4313
  className: "opacity-panel sc:flex sc:flex-col",
@@ -4324,7 +4325,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4324
4325
  }
4325
4326
  ) })
4326
4327
  }
4327
- ), gl = ({ adjustments: e, onChange: s, onChangeEnd: n, onReset: o }) => {
4328
+ ), bl = ({ adjustments: e, onChange: s, onChangeEnd: n, onReset: o }) => {
4328
4329
  const c = e ?? { ...Ko }, a = qo(e), i = (u, g) => /* @__PURE__ */ t("div", { "data-testid": `adjust-${g}`, children: /* @__PURE__ */ t(
4329
4330
  ge,
4330
4331
  {
@@ -4363,7 +4364,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4363
4364
  ] })
4364
4365
  }
4365
4366
  );
4366
- }, bl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4367
+ }, yl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4367
4368
  "div",
4368
4369
  {
4369
4370
  className: "shape-corner-radius-panel sc:flex sc:flex-col",
@@ -4371,7 +4372,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4371
4372
  style: { touchAction: "pan-y" },
4372
4373
  children: /* @__PURE__ */ t("div", { className: Oe, children: /* @__PURE__ */ t(ge, { label: "Radius", value: e, onChange: s, min: 0, max: 50, unit: "%" }) })
4373
4374
  }
4374
- ), yl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4375
+ ), vl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4375
4376
  "div",
4376
4377
  {
4377
4378
  className: "shape-transparency-panel sc:flex sc:flex-col",
@@ -4389,7 +4390,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4389
4390
  }
4390
4391
  ) })
4391
4392
  }
4392
- ), vl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4393
+ ), xl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4393
4394
  "div",
4394
4395
  {
4395
4396
  className: "shape-sides-panel sc:flex sc:flex-col",
@@ -4397,7 +4398,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4397
4398
  style: { touchAction: "pan-y" },
4398
4399
  children: /* @__PURE__ */ t("div", { className: Oe, children: /* @__PURE__ */ t(ge, { label: "Sides", value: e, onChange: s, min: 3, max: 20 }) })
4399
4400
  }
4400
- ), xl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4401
+ ), Cl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4401
4402
  "div",
4402
4403
  {
4403
4404
  className: "shape-points-panel sc:flex sc:flex-col",
@@ -4405,7 +4406,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4405
4406
  style: { touchAction: "pan-y" },
4406
4407
  children: /* @__PURE__ */ t("div", { className: Oe, children: /* @__PURE__ */ t(ge, { label: "Points", value: e, onChange: s, min: 3, max: 20 }) })
4407
4408
  }
4408
- ), Cl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4409
+ ), wl = ({ value: e, onChange: s }) => /* @__PURE__ */ t(
4409
4410
  "div",
4410
4411
  {
4411
4412
  className: "shape-inner-radius-panel sc:flex sc:flex-col",
@@ -4423,11 +4424,11 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4423
4424
  }
4424
4425
  ) })
4425
4426
  }
4426
- ), wl = {
4427
+ ), kl = {
4427
4428
  solid: "Solid",
4428
4429
  linear: "Linear",
4429
4430
  radial: "Radial"
4430
- }, kl = ({
4431
+ }, Tl = ({
4431
4432
  value: e,
4432
4433
  onChange: s,
4433
4434
  fill: n,
@@ -4483,7 +4484,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4483
4484
  className: `sc:px-4 sc:py-2.5 sc:text-base sc:md:px-3 sc:md:py-1.5 sc:md:text-sm sc:transition-colors ${i === C ? "sc:bg-primary sc:text-primary-foreground" : "sc:text-foreground sc:hover:bg-muted"}`,
4484
4485
  onClick: () => v(C),
4485
4486
  "aria-pressed": i === C,
4486
- children: wl[C]
4487
+ children: kl[C]
4487
4488
  },
4488
4489
  C
4489
4490
  )) })
@@ -4529,7 +4530,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4529
4530
  ] })
4530
4531
  }
4531
4532
  );
4532
- }, Tl = ({ value: e, onChange: s, documentColors: n, imageColors: o }) => /* @__PURE__ */ t(
4533
+ }, Nl = ({ value: e, onChange: s, documentColors: n, imageColors: o }) => /* @__PURE__ */ t(
4533
4534
  "div",
4534
4535
  {
4535
4536
  className: "sc-text-color-panel sc:flex sc:flex-col",
@@ -4537,7 +4538,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4537
4538
  style: { touchAction: "pan-y" },
4538
4539
  children: /* @__PURE__ */ t("div", { className: Ea, children: /* @__PURE__ */ t(Rt, { value: e, onChange: s, documentColors: n, imageColors: o, embedded: !0 }) })
4539
4540
  }
4540
- ), Nl = ({
4541
+ ), Sl = ({
4541
4542
  mode: e,
4542
4543
  fill: s,
4543
4544
  stroke: n,
@@ -4607,7 +4608,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4607
4608
  ] })
4608
4609
  ] })
4609
4610
  }
4610
- ), Sl = ({
4611
+ ), Dl = ({
4611
4612
  textureUrl: e,
4612
4613
  opacity: s,
4613
4614
  onTextureChange: n,
@@ -4650,7 +4651,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4650
4651
  ] })
4651
4652
  }
4652
4653
  );
4653
- }, Dl = ({
4654
+ }, Ml = ({
4654
4655
  imageUrl: e,
4655
4656
  maskType: s,
4656
4657
  opacity: n,
@@ -4719,7 +4720,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4719
4720
  ] })
4720
4721
  }
4721
4722
  );
4722
- }, Ml = ({ stroke: e, onChange: s, documentColors: n, imageColors: o }) => {
4723
+ }, El = ({ stroke: e, onChange: s, documentColors: n, imageColors: o }) => {
4723
4724
  const [c, a] = N(!1), i = (e == null ? void 0 : e.enabled) ?? !1, u = (e == null ? void 0 : e.color) ?? "#000000", g = (e == null ? void 0 : e.width) ?? 5, m = (e == null ? void 0 : e.opacity) ?? 1, v = (e == null ? void 0 : e.lineCap) ?? "butt", b = (e == null ? void 0 : e.lineJoin) ?? "miter", x = S(
4724
4725
  (k) => {
4725
4726
  s(k ? { enabled: !0, color: u, width: g, lineCap: v, lineJoin: b, opacity: m } : void 0);
@@ -4825,7 +4826,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4825
4826
  offsetX: 4,
4826
4827
  offsetY: 4,
4827
4828
  opacity: 0.5
4828
- }, El = ({ shadow: e, onChange: s, documentColors: n, imageColors: o }) => {
4829
+ }, Il = ({ shadow: e, onChange: s, documentColors: n, imageColors: o }) => {
4829
4830
  const c = (e == null ? void 0 : e.enabled) ?? !1, a = (e == null ? void 0 : e.color) ?? Wt.color, i = (e == null ? void 0 : e.blur) ?? Wt.blur, u = (e == null ? void 0 : e.offsetX) ?? Wt.offsetX, g = (e == null ? void 0 : e.offsetY) ?? Wt.offsetY, m = (e == null ? void 0 : e.opacity) ?? Wt.opacity, v = S(
4830
4831
  (x) => {
4831
4832
  s(x ? { enabled: !0, color: a, blur: i, offsetX: u, offsetY: g, opacity: m } : void 0);
@@ -4911,7 +4912,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4911
4912
  ] })
4912
4913
  }
4913
4914
  );
4914
- }, Il = ["normal", ...Kr], Rl = ({ blendMode: e, onChange: s }) => /* @__PURE__ */ t(
4915
+ }, Rl = ["normal", ...Xr], Ll = ({ blendMode: e, onChange: s }) => /* @__PURE__ */ t(
4915
4916
  "div",
4916
4917
  {
4917
4918
  className: "blend-mode-panel sc:flex sc:flex-col",
@@ -4920,7 +4921,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4920
4921
  style: { touchAction: "pan-y" },
4921
4922
  children: /* @__PURE__ */ t("div", { className: Oe, children: /* @__PURE__ */ p("div", { className: "sc:flex sc:items-center sc:gap-3", children: [
4922
4923
  /* @__PURE__ */ t(Ne, { className: "sc:text-foreground/70 sc:text-base sc:md:text-[13px]", children: "Blend" }),
4923
- /* @__PURE__ */ t("div", { className: "sc:flex sc:flex-wrap sc:rounded-md sc:border sc:border-divider sc:overflow-hidden", children: Il.map((n) => /* @__PURE__ */ t(
4924
+ /* @__PURE__ */ t("div", { className: "sc:flex sc:flex-wrap sc:rounded-md sc:border sc:border-divider sc:overflow-hidden", children: Rl.map((n) => /* @__PURE__ */ t(
4924
4925
  "button",
4925
4926
  {
4926
4927
  "data-blend-mode": n,
@@ -4933,12 +4934,12 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4933
4934
  )) })
4934
4935
  ] }) })
4935
4936
  }
4936
- ), Ll = ({ element: e, onElementUpdate: s }) => /* @__PURE__ */ t(vs, { element: e, onElementUpdate: s }), zl = {
4937
+ ), zl = ({ element: e, onElementUpdate: s }) => /* @__PURE__ */ t(vs, { element: e, onElementUpdate: s }), Al = {
4937
4938
  photo: "Photo",
4938
4939
  drawing: "Drawing",
4939
4940
  solid: "Two-tone",
4940
4941
  original: "As is"
4941
- }, Al = ({ settings: e, working: s, error: n, onChange: o, onRemoveBackground: c, removingBackground: a }) => {
4942
+ }, Fl = ({ settings: e, working: s, error: n, onChange: o, onRemoveBackground: c, removingBackground: a }) => {
4942
4943
  const i = (e == null ? void 0 : e.style) ?? "photo", u = (e == null ? void 0 : e.amount) ?? 0, g = (e == null ? void 0 : e.invert) ?? !1, [m, v] = Le.useState(Math.round(u * 100));
4943
4944
  return Le.useEffect(() => v(Math.round(u * 100)), [u]), /* @__PURE__ */ t(
4944
4945
  "div",
@@ -4960,7 +4961,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4960
4961
  disabled: s,
4961
4962
  onClick: () => b !== i && o({ style: b, amount: u, invert: g }),
4962
4963
  "data-testid": `engrave-style-${b}`,
4963
- children: zl[b]
4964
+ children: Al[b]
4964
4965
  },
4965
4966
  b
4966
4967
  )) }),
@@ -4995,7 +4996,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
4995
4996
  ] })
4996
4997
  }
4997
4998
  );
4998
- }, Fl = ({
4999
+ }, Ol = ({
4999
5000
  panelType: e,
5000
5001
  defaultIcon: s,
5001
5002
  textColorValue: n,
@@ -5077,7 +5078,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
5077
5078
  }
5078
5079
  )
5079
5080
  }
5080
- ), Ol = ({
5081
+ ), _l = ({
5081
5082
  toolbarContent: e,
5082
5083
  innerContentRef: s,
5083
5084
  shouldRender: n,
@@ -5180,7 +5181,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
5180
5181
  /* @__PURE__ */ t(Fe, { isOpen: B, children: _e })
5181
5182
  ]
5182
5183
  }
5183
- ), _l = ({
5184
+ ), Ul = ({
5184
5185
  toolbarPosition: e,
5185
5186
  toolbarHeight: s,
5186
5187
  panelWidth: n,
@@ -5206,7 +5207,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
5206
5207
  },
5207
5208
  children: /* @__PURE__ */ t(ge, { label: "Radius", value: o, onChange: c, min: 0, max: 50, unit: "%" })
5208
5209
  }
5209
- ), Ul = ({
5210
+ ), Bl = ({
5210
5211
  toolbarPosition: e,
5211
5212
  toolbarHeight: s,
5212
5213
  onAlign: n
@@ -5227,7 +5228,7 @@ const Hs = 1e3, vs = ({ element: e, onElementUpdate: s, className: n }) => {
5227
5228
  },
5228
5229
  children: /* @__PURE__ */ t(Ia, { onAlign: n })
5229
5230
  }
5230
- ), Bl = ({
5231
+ ), $l = ({
5231
5232
  toolbarPosition: e,
5232
5233
  toolbarHeight: s,
5233
5234
  element: n,
@@ -5287,7 +5288,7 @@ function Ra(e, s) {
5287
5288
  return;
5288
5289
  }
5289
5290
  }
5290
- function $l(e, s) {
5291
+ function jl(e, s) {
5291
5292
  const n = /* @__PURE__ */ new Set();
5292
5293
  for (const o of e) Ra(o, n);
5293
5294
  if (s)
@@ -5305,21 +5306,21 @@ function nn(e) {
5305
5306
  u.r < s && (s = u.r), u.r > n && (n = u.r), u.g < o && (o = u.g), u.g > c && (c = u.g), u.b < a && (a = u.b), u.b > i && (i = u.b);
5306
5307
  return { rRange: n - s, gRange: c - o, bRange: i - a };
5307
5308
  }
5308
- function jl(e) {
5309
+ function Hl(e) {
5309
5310
  const s = Math.max(e.rRange, e.gRange, e.bRange);
5310
5311
  return e.rRange === s ? "r" : e.gRange === s ? "g" : "b";
5311
5312
  }
5312
- function Hl(e) {
5313
+ function Wl(e) {
5313
5314
  return Math.max(e.rRange, e.gRange, e.bRange);
5314
5315
  }
5315
- function Wl(e) {
5316
- const s = jl(e), n = e.pixels.slice().sort((i, u) => i[s] - u[s]), o = n.length >> 1, c = n.slice(0, o), a = n.slice(o);
5316
+ function Vl(e) {
5317
+ const s = Hl(e), n = e.pixels.slice().sort((i, u) => i[s] - u[s]), o = n.length >> 1, c = n.slice(0, o), a = n.slice(o);
5317
5318
  return [
5318
5319
  { pixels: c, ...nn(c) },
5319
5320
  { pixels: a, ...nn(a) }
5320
5321
  ];
5321
5322
  }
5322
- function Vl(e) {
5323
+ function Yl(e) {
5323
5324
  let s = 0, n = 0, o = 0;
5324
5325
  for (const a of e)
5325
5326
  s += a.r, n += a.g, o += a.b;
@@ -5330,28 +5331,28 @@ function Vl(e) {
5330
5331
  b: Math.round(o / c)
5331
5332
  };
5332
5333
  }
5333
- function Yl(e, s) {
5334
+ function Xl(e, s) {
5334
5335
  if (e.length === 0) return [];
5335
5336
  const n = [{ pixels: e, ...nn(e) }];
5336
5337
  for (; n.length < s; ) {
5337
5338
  let o = -1, c = 0;
5338
5339
  for (let i = 0; i < n.length; i++) {
5339
- const u = Hl(n[i]);
5340
+ const u = Wl(n[i]);
5340
5341
  u > c && n[i].pixels.length >= 2 && (c = u, o = i);
5341
5342
  }
5342
5343
  if (o === -1) break;
5343
5344
  const a = n[o];
5344
- n.splice(o, 1), n.push(...Wl(a));
5345
+ n.splice(o, 1), n.push(...Vl(a));
5345
5346
  }
5346
5347
  return n;
5347
5348
  }
5348
- function Xl(e, s) {
5349
+ function ql(e, s) {
5349
5350
  const n = (e.r + s.r) / 2, o = e.r - s.r, c = e.g - s.g, a = e.b - s.b;
5350
5351
  return Math.sqrt(
5351
5352
  (2 + n / 256) * o * o + 4 * c * c + (2 + (255 - n) / 256) * a * a
5352
5353
  );
5353
5354
  }
5354
- function ql(e, s, n) {
5355
+ function Kl(e, s, n) {
5355
5356
  if (e.length === 0 || s <= 0) return [];
5356
5357
  const o = [e[0]], c = /* @__PURE__ */ new Set([0]);
5357
5358
  for (; o.length < s; ) {
@@ -5360,7 +5361,7 @@ function ql(e, s, n) {
5360
5361
  if (c.has(u)) continue;
5361
5362
  let g = 1 / 0;
5362
5363
  for (const m of o) {
5363
- const v = Xl(e[u], m);
5364
+ const v = ql(e[u], m);
5364
5365
  v < g && (g = v);
5365
5366
  }
5366
5367
  g > i && (i = g, a = u);
@@ -5371,17 +5372,17 @@ function ql(e, s, n) {
5371
5372
  return o;
5372
5373
  }
5373
5374
  const Vs = (e) => e.toString(16).padStart(2, "0");
5374
- function Kl(e) {
5375
+ function Gl(e) {
5375
5376
  return `#${Vs(e.r)}${Vs(e.g)}${Vs(e.b)}`;
5376
5377
  }
5377
- function Gl(e, s = 5) {
5378
+ function Pl(e, s = 5) {
5378
5379
  if (e.length === 0 || s <= 0) return [];
5379
- const n = Math.max(s * 4, 16), o = Yl(e, n);
5380
+ const n = Math.max(s * 4, 16), o = Xl(e, n);
5380
5381
  o.sort((a, i) => i.pixels.length - a.pixels.length);
5381
- const c = o.map((a) => Vl(a.pixels));
5382
- return ql(c, s, 50).map(Kl);
5382
+ const c = o.map((a) => Yl(a.pixels));
5383
+ return Kl(c, s, 50).map(Gl);
5383
5384
  }
5384
- async function Pl(e, s = 5) {
5385
+ async function Zl(e, s = 5) {
5385
5386
  if (!e) return [];
5386
5387
  const n = bs.get(e);
5387
5388
  if (n) return n;
@@ -5389,7 +5390,7 @@ async function Pl(e, s = 5) {
5389
5390
  if (o) return o;
5390
5391
  const c = (async () => {
5391
5392
  try {
5392
- const a = await Zl(e), i = 48, g = (typeof OffscreenCanvas < "u" ? new OffscreenCanvas(i, i) : (() => {
5393
+ const a = await Jl(e), i = 48, g = (typeof OffscreenCanvas < "u" ? new OffscreenCanvas(i, i) : (() => {
5393
5394
  const x = document.createElement("canvas");
5394
5395
  return x.width = i, x.height = i, x;
5395
5396
  })()).getContext("2d");
@@ -5403,7 +5404,7 @@ async function Pl(e, s = 5) {
5403
5404
  }
5404
5405
  if (v.length === 0)
5405
5406
  return bs.set(e, []), [];
5406
- const b = Gl(v, s);
5407
+ const b = Pl(v, s);
5407
5408
  return bs.set(e, b), b;
5408
5409
  } catch {
5409
5410
  return bs.set(e, []), [];
@@ -5413,13 +5414,13 @@ async function Pl(e, s = 5) {
5413
5414
  })();
5414
5415
  return Ws.set(e, c), c;
5415
5416
  }
5416
- function Zl(e) {
5417
+ function Jl(e) {
5417
5418
  return new Promise((s, n) => {
5418
5419
  const o = new Image();
5419
5420
  o.crossOrigin = "anonymous", o.onload = () => s(o), o.onerror = () => n(new Error(`Failed to load image: ${e}`)), o.src = e;
5420
5421
  });
5421
5422
  }
5422
- async function Jl(e, s = 5) {
5423
+ async function Ql(e, s = 5) {
5423
5424
  const n = [], o = /* @__PURE__ */ new Set(), c = (g) => {
5424
5425
  if (g instanceof Xe) {
5425
5426
  const m = g.imageUrl;
@@ -5430,22 +5431,22 @@ async function Jl(e, s = 5) {
5430
5431
  for (const g of e) c(g);
5431
5432
  if (n.length === 0) return [];
5432
5433
  const a = await Promise.all(
5433
- n.map((g) => Pl(g, s))
5434
+ n.map((g) => Zl(g, s))
5434
5435
  ), i = [], u = /* @__PURE__ */ new Set();
5435
5436
  for (const g of a)
5436
5437
  for (const m of g)
5437
5438
  u.has(m) || (u.add(m), i.push(m));
5438
5439
  return i;
5439
5440
  }
5440
- const Ys = Zt("ContextualToolbars"), Ql = "Background removal is temporarily unavailable.";
5441
+ const Ys = Zt("ContextualToolbars"), ed = "Background removal is temporarily unavailable.";
5441
5442
  function Oo(e, s) {
5442
5443
  const n = e instanceof Error ? e.message : "";
5443
5444
  return !n || /VITE_|NEXT_PUBLIC_|\.env/i.test(n) ? s : n;
5444
5445
  }
5445
5446
  const _o = ({ services: e, ...s }) => {
5446
- const n = /* @__PURE__ */ t(ed, { ...s });
5447
+ const n = /* @__PURE__ */ t(td, { ...s });
5447
5448
  return e ? /* @__PURE__ */ t(Ar, { services: e, children: n }) : n;
5448
- }, ed = ({
5449
+ }, td = ({
5449
5450
  mode: e = "floating",
5450
5451
  onOpenGlyphBrowser: s,
5451
5452
  onChangeImage: n,
@@ -5493,7 +5494,7 @@ const _o = ({ services: e, ...s }) => {
5493
5494
  executeAddElement: we,
5494
5495
  executeReorderElement: Ie,
5495
5496
  refreshArtboards: _e
5496
- } = Pt(), { removeBackground: h } = Wo(), w = el({ canvasEditorRef: Me }), [R, j] = N("root"), [K, Re] = N(null), [H, le] = N(null), [Je, Te] = N(!1), [He, ot] = N(!1), [Qe] = N(!1), [it, ht] = N(!1), [Lt, at] = N(!1), [l, Z] = N(() => k && {
5497
+ } = Pt(), { removeBackground: h } = Wo(), w = tl({ canvasEditorRef: Me }), [R, j] = N("root"), [K, Re] = N(null), [H, le] = N(null), [Je, Te] = N(!1), [He, ot] = N(!1), [Qe] = N(!1), [it, ht] = N(!1), [Lt, at] = N(!1), [l, Z] = N(() => k && {
5497
5498
  cornerRadius: { type: "cornerRadius", icon: "lucide:square-round-corner", label: "Corner Radius" },
5498
5499
  crop: { type: "crop", icon: "lucide:crop", label: "Crop" },
5499
5500
  rotation: { type: "rotation", icon: de.rotateLeft, label: "Rotate" },
@@ -5586,7 +5587,7 @@ const _o = ({ services: e, ...s }) => {
5586
5587
  Nn(f, F);
5587
5588
  }
5588
5589
  }).catch((F) => {
5589
- Ys.error("Error removing background:", F), ft.current && Es(Oo(F, Ql));
5590
+ Ys.error("Error removing background:", F), ft.current && Es(Oo(F, ed));
5590
5591
  }).finally(() => {
5591
5592
  ft.current && Tn(!1);
5592
5593
  });
@@ -5798,7 +5799,7 @@ const _o = ({ services: e, ...s }) => {
5798
5799
  (r) => {
5799
5800
  if (!(!d || d.transformType !== "image")) {
5800
5801
  if (ne) {
5801
- const f = d.clone(), A = Gr(r);
5802
+ const f = d.clone(), A = qr(r);
5802
5803
  A ? f.transformData.adjustments = A : delete f.transformData.adjustments, _(f);
5803
5804
  return;
5804
5805
  }
@@ -6107,7 +6108,7 @@ const _o = ({ services: e, ...s }) => {
6107
6108
  (r) => Ms(r),
6108
6109
  [Ms]
6109
6110
  ), In = We(
6110
- () => $l(Y, fe),
6111
+ () => jl(Y, fe),
6111
6112
  [Y, fe]
6112
6113
  ), Rn = We(() => {
6113
6114
  const r = new Set(In);
@@ -6133,7 +6134,7 @@ const _o = ({ services: e, ...s }) => {
6133
6134
  return;
6134
6135
  }
6135
6136
  let r = !1;
6136
- return Jl(Y).then((f) => {
6137
+ return Ql(Y).then((f) => {
6137
6138
  r || zn(f);
6138
6139
  }), () => {
6139
6140
  r = !0;
@@ -6251,7 +6252,7 @@ const _o = ({ services: e, ...s }) => {
6251
6252
  }, [e, H, Tt, b]);
6252
6253
  if (oe.length > 0)
6253
6254
  return /* @__PURE__ */ t(
6254
- dl,
6255
+ ul,
6255
6256
  {
6256
6257
  mode: e,
6257
6258
  artboardScreenBounds: v,
@@ -6260,7 +6261,7 @@ const _o = ({ services: e, ...s }) => {
6260
6261
  );
6261
6262
  const Oc = /* @__PURE__ */ p(Ve, { children: [
6262
6263
  R === "root" && d && /* @__PURE__ */ t(
6263
- nl,
6264
+ ol,
6264
6265
  {
6265
6266
  element: d,
6266
6267
  onToggleLock: dc,
@@ -6318,7 +6319,7 @@ const _o = ({ services: e, ...s }) => {
6318
6319
  }
6319
6320
  ),
6320
6321
  R === "root" && (O == null ? void 0 : O.transformType) === "group" && !ne && /* @__PURE__ */ t(
6321
- ul,
6322
+ fl,
6322
6323
  {
6323
6324
  element: O,
6324
6325
  rotationExpanded: (l == null ? void 0 : l.type) === "rotation",
@@ -6392,7 +6393,7 @@ const _o = ({ services: e, ...s }) => {
6392
6393
  }
6393
6394
  ),
6394
6395
  R === "root" && d && d.transformType !== "image" && d.transformType !== "group" && d.transformType !== "shape" && d.transformType !== "path" && /* @__PURE__ */ t(
6395
- Zi,
6396
+ Ji,
6396
6397
  {
6397
6398
  toolbar: w,
6398
6399
  stableElementId: es,
@@ -6482,7 +6483,7 @@ const _o = ({ services: e, ...s }) => {
6482
6483
  Js,
6483
6484
  {
6484
6485
  icon: /* @__PURE__ */ t(
6485
- Fl,
6486
+ Ol,
6486
6487
  {
6487
6488
  panelType: l.type,
6488
6489
  defaultIcon: l.icon,
@@ -6497,8 +6498,8 @@ const _o = ({ services: e, ...s }) => {
6497
6498
  ) })
6498
6499
  ] })
6499
6500
  }
6500
- ) : null, As = (l == null ? void 0 : l.type) === "align", Fs = (l == null ? void 0 : l.type) === "cornerRadius", Os = (l == null ? void 0 : l.type) === "crop", Fn = (l == null ? void 0 : l.type) === "rotation", On = (l == null ? void 0 : l.type) === "opacity", _s = (l == null ? void 0 : l.type) === "adjust", _n = (l == null ? void 0 : l.type) === "fontSize", Un = (l == null ? void 0 : l.type) === "shapeCornerRadius", Bn = (l == null ? void 0 : l.type) === "shapeTransparency", $n = (l == null ? void 0 : l.type) === "shapeSides", jn = (l == null ? void 0 : l.type) === "shapePoints", Hn = (l == null ? void 0 : l.type) === "shapeInnerRadius", Wn = (l == null ? void 0 : l.type) === "shapeColor", Vn = (l == null ? void 0 : l.type) === "textColor", Yn = (l == null ? void 0 : l.type) === "compositing", Xn = (l == null ? void 0 : l.type) === "distressTexture", qn = (l == null ? void 0 : l.type) === "stroke", Kn = (l == null ? void 0 : l.type) === "shadow", Gn = (l == null ? void 0 : l.type) === "blendMode", Pn = (l == null ? void 0 : l.type) === "imageMask", Zn = (d == null ? void 0 : d.transformType) === "image" && ((so = d.transformData) == null ? void 0 : so.borderRadius) || 0, _c = (d == null ? void 0 : d.rotation) || 0, Uc = (d == null ? void 0 : d.opacity) ?? 1, Bc = ((no = ae == null ? void 0 : ae.transformData) == null ? void 0 : no.borderRadius) || 0, $c = ((oo = ae == null ? void 0 : ae.transformData) == null ? void 0 : oo.fillOpacity) ?? 1, jc = ((ao = ae == null ? void 0 : ae.transformData) == null ? void 0 : ao.sides) || 5, Hc = ((co = ae == null ? void 0 : ae.transformData) == null ? void 0 : co.points) || 5, Wc = ((ro = ae == null ? void 0 : ae.transformData) == null ? void 0 : ro.innerRadius) || 0.4, Vc = ((io = ae == null ? void 0 : ae.transformData) == null ? void 0 : io.fillColor) || "#3b82f6", Yc = (lo = ae == null ? void 0 : ae.transformData) == null ? void 0 : lo.fill, Xc = ((uo = d == null ? void 0 : d.knockoutParts) == null ? void 0 : uo.fill) ?? !1, qc = ((fo = d == null ? void 0 : d.knockoutParts) == null ? void 0 : fo.stroke) ?? !1, Kc = ((po = d == null ? void 0 : d.knockoutParts) == null ? void 0 : po.scope) ?? "group", Gc = (d == null ? void 0 : d.blendMode) === "clip" ? "clip" : "knockout", Pc = As && d ? /* @__PURE__ */ t(Ia, { onAlign: Dn }) : null, Zc = Fs && (d == null ? void 0 : d.transformType) === "image" ? /* @__PURE__ */ t(fl, { value: Zn, onChange: xn }) : null, Jc = Os && (d == null ? void 0 : d.transformType) === "image" ? /* @__PURE__ */ t(Ll, { element: d, onElementUpdate: _ }) : null, Qc = Fn && d ? /* @__PURE__ */ t(pl, { value: _c, onChange: uc, onRotate90: fc }) : null, er = On && d ? /* @__PURE__ */ t(hl, { value: Uc, onChange: pc }) : null, tr = (d == null ? void 0 : d.transformType) === "image" ? (mo = d.transformData) == null ? void 0 : mo.adjustments : void 0, sr = _s && (d == null ? void 0 : d.transformType) === "image" && Ue ? /* @__PURE__ */ t(
6501
- Al,
6501
+ ) : null, As = (l == null ? void 0 : l.type) === "align", Fs = (l == null ? void 0 : l.type) === "cornerRadius", Os = (l == null ? void 0 : l.type) === "crop", Fn = (l == null ? void 0 : l.type) === "rotation", On = (l == null ? void 0 : l.type) === "opacity", _s = (l == null ? void 0 : l.type) === "adjust", _n = (l == null ? void 0 : l.type) === "fontSize", Un = (l == null ? void 0 : l.type) === "shapeCornerRadius", Bn = (l == null ? void 0 : l.type) === "shapeTransparency", $n = (l == null ? void 0 : l.type) === "shapeSides", jn = (l == null ? void 0 : l.type) === "shapePoints", Hn = (l == null ? void 0 : l.type) === "shapeInnerRadius", Wn = (l == null ? void 0 : l.type) === "shapeColor", Vn = (l == null ? void 0 : l.type) === "textColor", Yn = (l == null ? void 0 : l.type) === "compositing", Xn = (l == null ? void 0 : l.type) === "distressTexture", qn = (l == null ? void 0 : l.type) === "stroke", Kn = (l == null ? void 0 : l.type) === "shadow", Gn = (l == null ? void 0 : l.type) === "blendMode", Pn = (l == null ? void 0 : l.type) === "imageMask", Zn = (d == null ? void 0 : d.transformType) === "image" && ((so = d.transformData) == null ? void 0 : so.borderRadius) || 0, _c = (d == null ? void 0 : d.rotation) || 0, Uc = (d == null ? void 0 : d.opacity) ?? 1, Bc = ((no = ae == null ? void 0 : ae.transformData) == null ? void 0 : no.borderRadius) || 0, $c = ((oo = ae == null ? void 0 : ae.transformData) == null ? void 0 : oo.fillOpacity) ?? 1, jc = ((ao = ae == null ? void 0 : ae.transformData) == null ? void 0 : ao.sides) || 5, Hc = ((co = ae == null ? void 0 : ae.transformData) == null ? void 0 : co.points) || 5, Wc = ((ro = ae == null ? void 0 : ae.transformData) == null ? void 0 : ro.innerRadius) || 0.4, Vc = ((io = ae == null ? void 0 : ae.transformData) == null ? void 0 : io.fillColor) || "#3b82f6", Yc = (lo = ae == null ? void 0 : ae.transformData) == null ? void 0 : lo.fill, Xc = ((uo = d == null ? void 0 : d.knockoutParts) == null ? void 0 : uo.fill) ?? !1, qc = ((fo = d == null ? void 0 : d.knockoutParts) == null ? void 0 : fo.stroke) ?? !1, Kc = ((po = d == null ? void 0 : d.knockoutParts) == null ? void 0 : po.scope) ?? "group", Gc = (d == null ? void 0 : d.blendMode) === "clip" ? "clip" : "knockout", Pc = As && d ? /* @__PURE__ */ t(Ia, { onAlign: Dn }) : null, Zc = Fs && (d == null ? void 0 : d.transformType) === "image" ? /* @__PURE__ */ t(pl, { value: Zn, onChange: xn }) : null, Jc = Os && (d == null ? void 0 : d.transformType) === "image" ? /* @__PURE__ */ t(zl, { element: d, onElementUpdate: _ }) : null, Qc = Fn && d ? /* @__PURE__ */ t(ml, { value: _c, onChange: uc, onRotate90: fc }) : null, er = On && d ? /* @__PURE__ */ t(gl, { value: Uc, onChange: pc }) : null, tr = (d == null ? void 0 : d.transformType) === "image" ? (mo = d.transformData) == null ? void 0 : mo.adjustments : void 0, sr = _s && (d == null ? void 0 : d.transformType) === "image" && Ue ? /* @__PURE__ */ t(
6502
+ Fl,
6502
6503
  {
6503
6504
  settings: (ho = d.transformData) == null ? void 0 : ho.engrave,
6504
6505
  working: Fa || !((go = d.transformData) != null && go.engrave),
@@ -6512,7 +6513,7 @@ const _o = ({ services: e, ...s }) => {
6512
6513
  removingBackground: ts
6513
6514
  }
6514
6515
  ) : _s && (d == null ? void 0 : d.transformType) === "image" ? /* @__PURE__ */ t(
6515
- gl,
6516
+ bl,
6516
6517
  {
6517
6518
  adjustments: tr,
6518
6519
  onChange: Ls,
@@ -6520,7 +6521,7 @@ const _o = ({ services: e, ...s }) => {
6520
6521
  onReset: hc
6521
6522
  }
6522
6523
  ) : null, nr = _n ? /* @__PURE__ */ t(
6523
- ml,
6524
+ hl,
6524
6525
  {
6525
6526
  value: w.fontSize,
6526
6527
  onChange: w.handleFontSizeChange,
@@ -6531,8 +6532,8 @@ const _o = ({ services: e, ...s }) => {
6531
6532
  lineHeightValue: tc,
6532
6533
  onLineHeightChange: w.handleLineHeightChange
6533
6534
  }
6534
- ) : null, or = Un && ae ? /* @__PURE__ */ t(bl, { value: Bc, onChange: Ua }) : null, ar = Bn && ae ? /* @__PURE__ */ t(yl, { value: $c, onChange: Ba }) : null, cr = $n && ae ? /* @__PURE__ */ t(vl, { value: jc, onChange: $a }) : null, rr = jn && ae ? /* @__PURE__ */ t(xl, { value: Hc, onChange: ja }) : null, ir = Hn && ae ? /* @__PURE__ */ t(Cl, { value: Wc, onChange: Ha }) : null, lr = Wn && ae ? /* @__PURE__ */ t(kl, { value: Vc, onChange: Wa, fill: Yc, onFillChange: Va, documentColors: Ot, imageColors: _t }) : null, dr = Vn && d ? /* @__PURE__ */ t(Tl, { value: zs, onChange: Lc, documentColors: Ot, imageColors: _t }) : null, ur = Yn && d ? /* @__PURE__ */ t(
6535
- Nl,
6535
+ ) : null, or = Un && ae ? /* @__PURE__ */ t(yl, { value: Bc, onChange: Ua }) : null, ar = Bn && ae ? /* @__PURE__ */ t(vl, { value: $c, onChange: Ba }) : null, cr = $n && ae ? /* @__PURE__ */ t(xl, { value: jc, onChange: $a }) : null, rr = jn && ae ? /* @__PURE__ */ t(Cl, { value: Hc, onChange: ja }) : null, ir = Hn && ae ? /* @__PURE__ */ t(wl, { value: Wc, onChange: Ha }) : null, lr = Wn && ae ? /* @__PURE__ */ t(Tl, { value: Vc, onChange: Wa, fill: Yc, onFillChange: Va, documentColors: Ot, imageColors: _t }) : null, dr = Vn && d ? /* @__PURE__ */ t(Nl, { value: zs, onChange: Lc, documentColors: Ot, imageColors: _t }) : null, ur = Yn && d ? /* @__PURE__ */ t(
6536
+ Sl,
6536
6537
  {
6537
6538
  mode: Gc,
6538
6539
  fill: Xc,
@@ -6544,7 +6545,7 @@ const _o = ({ services: e, ...s }) => {
6544
6545
  onScopeChange: vc
6545
6546
  }
6546
6547
  ) : null, fr = qn && d ? /* @__PURE__ */ t(
6547
- Ml,
6548
+ El,
6548
6549
  {
6549
6550
  stroke: d.stroke,
6550
6551
  onChange: Dc,
@@ -6552,7 +6553,7 @@ const _o = ({ services: e, ...s }) => {
6552
6553
  imageColors: _t
6553
6554
  }
6554
6555
  ) : null, pr = Kn && d ? /* @__PURE__ */ t(
6555
- El,
6556
+ Il,
6556
6557
  {
6557
6558
  shadow: d.shadow,
6558
6559
  onChange: Mc,
@@ -6560,13 +6561,13 @@ const _o = ({ services: e, ...s }) => {
6560
6561
  imageColors: _t
6561
6562
  }
6562
6563
  ) : null, mr = Gn && d ? /* @__PURE__ */ t(
6563
- Rl,
6564
+ Ll,
6564
6565
  {
6565
6566
  blendMode: Vo(d.blendMode) ? d.blendMode : "normal",
6566
6567
  onChange: Ec
6567
6568
  }
6568
6569
  ) : null, hr = Xn && d ? /* @__PURE__ */ t(
6569
- Sl,
6570
+ Dl,
6570
6571
  {
6571
6572
  textureUrl: ((bo = d.distressEffect) == null ? void 0 : bo.textureUrl) ?? "",
6572
6573
  opacity: Math.round((((yo = d.distressEffect) == null ? void 0 : yo.textureOpacity) ?? 0.5) * 100),
@@ -6574,7 +6575,7 @@ const _o = ({ services: e, ...s }) => {
6574
6575
  onOpacityChange: Cc
6575
6576
  }
6576
6577
  ) : null, Ye = (vo = d == null ? void 0 : d.masks) == null ? void 0 : vo.find((r) => r.id === "quick-image-mask"), gr = Pn && d ? /* @__PURE__ */ t(
6577
- Dl,
6578
+ Ml,
6578
6579
  {
6579
6580
  imageUrl: ((xo = Ye == null ? void 0 : Ye.maskElement) == null ? void 0 : xo.imageUrl) ?? "",
6580
6581
  maskType: (Ye == null ? void 0 : Ye.type) ?? "clip",
@@ -6641,7 +6642,7 @@ const _o = ({ services: e, ...s }) => {
6641
6642
  }
6642
6643
  )
6643
6644
  ] }) : null, vr = e === "embedded" ? /* @__PURE__ */ t(
6644
- Ol,
6645
+ _l,
6645
6646
  {
6646
6647
  toolbarContent: An,
6647
6648
  innerContentRef: yt,
@@ -6691,7 +6692,7 @@ const _o = ({ services: e, ...s }) => {
6691
6692
  imageMaskPanel: gr
6692
6693
  }
6693
6694
  ) : null, xr = ut.width > 0 ? Math.max(ut.width, 200) : 280, Cr = e === "floating" && Fs && (d == null ? void 0 : d.transformType) === "image" && H ? /* @__PURE__ */ t(
6694
- _l,
6695
+ Ul,
6695
6696
  {
6696
6697
  toolbarPosition: H,
6697
6698
  toolbarHeight: ut.height || 56,
@@ -6700,7 +6701,7 @@ const _o = ({ services: e, ...s }) => {
6700
6701
  onChange: xn
6701
6702
  }
6702
6703
  ) : null, wr = e === "floating" && Os && (d == null ? void 0 : d.transformType) === "image" && H ? /* @__PURE__ */ t(
6703
- Bl,
6704
+ $l,
6704
6705
  {
6705
6706
  toolbarPosition: H,
6706
6707
  toolbarHeight: ut.height || 56,
@@ -6708,7 +6709,7 @@ const _o = ({ services: e, ...s }) => {
6708
6709
  onElementUpdate: _
6709
6710
  }
6710
6711
  ) : null, kr = e === "floating" && As && d && H ? /* @__PURE__ */ t(
6711
- Ul,
6712
+ Bl,
6712
6713
  {
6713
6714
  toolbarPosition: H,
6714
6715
  toolbarHeight: ut.height || 56,
@@ -6767,7 +6768,7 @@ const _o = ({ services: e, ...s }) => {
6767
6768
  }
6768
6769
  )
6769
6770
  ] });
6770
- }, pd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6771
+ }, md = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6771
6772
  __proto__: null,
6772
6773
  ContextualToolbars: _o,
6773
6774
  default: _o
@@ -6777,7 +6778,7 @@ export {
6777
6778
  ka as B,
6778
6779
  _o as C,
6779
6780
  oa as D,
6780
- ud as E,
6781
+ fd as E,
6781
6782
  Bi as F,
6782
6783
  Ai as I,
6783
6784
  Wi as M,
@@ -6794,16 +6795,16 @@ export {
6794
6795
  Xi as g,
6795
6796
  Oi as h,
6796
6797
  Pi as i,
6797
- Zi as j,
6798
+ Ji as j,
6798
6799
  ji as k,
6799
6800
  Ki as l,
6800
- el as m,
6801
+ tl as m,
6801
6802
  aa as n,
6802
6803
  mt as o,
6803
6804
  ca as p,
6804
6805
  ye as q,
6805
- fd as r,
6806
- pd as s,
6807
- sl as u
6806
+ pd as r,
6807
+ md as s,
6808
+ nl as u
6808
6809
  };
6809
- //# sourceMappingURL=ContextualToolbars-BG90V6-s.js.map
6810
+ //# sourceMappingURL=ContextualToolbars-DnsfOy7x.js.map