react-sync-board 1.2.4 → 1.2.5

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.
@@ -94,7 +94,7 @@ function Ur() {
94
94
  var X = b.displayName || b.name || "";
95
95
  return X !== "" ? R + "(" + X + ")" : R;
96
96
  }
97
- function L(i) {
97
+ function A(i) {
98
98
  return i.displayName || "Context";
99
99
  }
100
100
  function N(i) {
@@ -122,10 +122,10 @@ function Ur() {
122
122
  switch (i.$$typeof) {
123
123
  case u:
124
124
  var b = i;
125
- return L(b) + ".Consumer";
125
+ return A(b) + ".Consumer";
126
126
  case a:
127
127
  var R = i;
128
- return L(R._context) + ".Provider";
128
+ return A(R._context) + ".Provider";
129
129
  case l:
130
130
  return M(i, i.render, "ForwardRef");
131
131
  case c:
@@ -142,18 +142,18 @@ function Ur() {
142
142
  }
143
143
  return null;
144
144
  }
145
- var U = Object.assign, J = 0, P, $, Y, V, A, F, H;
146
- function Z() {
147
- }
148
- Z.__reactDisabledLog = !0;
145
+ var U = Object.assign, J = 0, P, $, z, V, Y, F, H;
149
146
  function te() {
147
+ }
148
+ te.__reactDisabledLog = !0;
149
+ function Z() {
150
150
  {
151
151
  if (J === 0) {
152
- P = console.log, $ = console.info, Y = console.warn, V = console.error, A = console.group, F = console.groupCollapsed, H = console.groupEnd;
152
+ P = console.log, $ = console.info, z = console.warn, V = console.error, Y = console.group, F = console.groupCollapsed, H = console.groupEnd;
153
153
  var i = {
154
154
  configurable: !0,
155
155
  enumerable: !0,
156
- value: Z,
156
+ value: te,
157
157
  writable: !0
158
158
  };
159
159
  Object.defineProperties(console, {
@@ -169,7 +169,7 @@ function Ur() {
169
169
  J++;
170
170
  }
171
171
  }
172
- function le() {
172
+ function ne() {
173
173
  {
174
174
  if (J--, J === 0) {
175
175
  var i = {
@@ -185,13 +185,13 @@ function Ur() {
185
185
  value: $
186
186
  }),
187
187
  warn: U({}, i, {
188
- value: Y
188
+ value: z
189
189
  }),
190
190
  error: U({}, i, {
191
191
  value: V
192
192
  }),
193
193
  group: U({}, i, {
194
- value: A
194
+ value: Y
195
195
  }),
196
196
  groupCollapsed: U({}, i, {
197
197
  value: F
@@ -204,7 +204,7 @@ function Ur() {
204
204
  J < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
205
205
  }
206
206
  }
207
- var se = y.ReactCurrentDispatcher, me;
207
+ var ie = y.ReactCurrentDispatcher, me;
208
208
  function ge(i, b, R) {
209
209
  {
210
210
  if (me === void 0)
@@ -236,7 +236,7 @@ function Ur() {
236
236
  var X = Error.prepareStackTrace;
237
237
  Error.prepareStackTrace = void 0;
238
238
  var W;
239
- W = se.current, se.current = null, te();
239
+ W = ie.current, ie.current = null, Z();
240
240
  try {
241
241
  if (b) {
242
242
  var B = function() {
@@ -249,39 +249,39 @@ function Ur() {
249
249
  }), typeof Reflect == "object" && Reflect.construct) {
250
250
  try {
251
251
  Reflect.construct(B, []);
252
- } catch (ie) {
253
- D = ie;
252
+ } catch (ae) {
253
+ D = ae;
254
254
  }
255
255
  Reflect.construct(i, [], B);
256
256
  } else {
257
257
  try {
258
258
  B.call();
259
- } catch (ie) {
260
- D = ie;
259
+ } catch (ae) {
260
+ D = ae;
261
261
  }
262
262
  i.call(B.prototype);
263
263
  }
264
264
  } else {
265
265
  try {
266
266
  throw Error();
267
- } catch (ie) {
268
- D = ie;
267
+ } catch (ae) {
268
+ D = ae;
269
269
  }
270
270
  i();
271
271
  }
272
- } catch (ie) {
273
- if (ie && D && typeof ie.stack == "string") {
274
- for (var z = ie.stack.split(`
272
+ } catch (ae) {
273
+ if (ae && D && typeof ae.stack == "string") {
274
+ for (var L = ae.stack.split(`
275
275
  `), ee = D.stack.split(`
276
- `), q = z.length - 1, G = ee.length - 1; q >= 1 && G >= 0 && z[q] !== ee[G]; )
276
+ `), q = L.length - 1, G = ee.length - 1; q >= 1 && G >= 0 && L[q] !== ee[G]; )
277
277
  G--;
278
278
  for (; q >= 1 && G >= 0; q--, G--)
279
- if (z[q] !== ee[G]) {
279
+ if (L[q] !== ee[G]) {
280
280
  if (q !== 1 || G !== 1)
281
281
  do
282
- if (q--, G--, G < 0 || z[q] !== ee[G]) {
282
+ if (q--, G--, G < 0 || L[q] !== ee[G]) {
283
283
  var re = `
284
- ` + z[q].replace(" at new ", " at ");
284
+ ` + L[q].replace(" at new ", " at ");
285
285
  return i.displayName && re.includes("<anonymous>") && (re = re.replace("<anonymous>", i.displayName)), typeof i == "function" && je.set(i, re), re;
286
286
  }
287
287
  while (q >= 1 && G >= 0);
@@ -289,7 +289,7 @@ function Ur() {
289
289
  }
290
290
  }
291
291
  } finally {
292
- Ke = !1, se.current = W, le(), Error.prepareStackTrace = X;
292
+ Ke = !1, ie.current = W, ne(), Error.prepareStackTrace = X;
293
293
  }
294
294
  var ve = i ? i.displayName || i.name : "", Tt = ve ? ge(ve) : "";
295
295
  return typeof i == "function" && je.set(i, Tt), Tt;
@@ -343,17 +343,17 @@ function Ur() {
343
343
  var W = Function.call.bind($e);
344
344
  for (var B in i)
345
345
  if (W(i, B)) {
346
- var z = void 0;
346
+ var L = void 0;
347
347
  try {
348
348
  if (typeof i[B] != "function") {
349
349
  var ee = Error((D || "React class") + ": " + R + " type `" + B + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[B] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
350
350
  throw ee.name = "Invariant Violation", ee;
351
351
  }
352
- z = i[B](b, B, D, R, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
352
+ L = i[B](b, B, D, R, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
353
353
  } catch (q) {
354
- z = q;
354
+ L = q;
355
355
  }
356
- z && !(z instanceof Error) && (Ae(X), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", R, B, typeof z), Ae(null)), z instanceof Error && !(z.message in vt) && (vt[z.message] = !0, Ae(X), C("Failed %s type: %s", R, z.message), Ae(null));
356
+ L && !(L instanceof Error) && (Ae(X), C("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", D || "React class", R, B, typeof L), Ae(null)), L instanceof Error && !(L.message in vt) && (vt[L.message] = !0, Ae(X), C("Failed %s type: %s", R, L.message), Ae(null));
357
357
  }
358
358
  }
359
359
  }
@@ -433,7 +433,7 @@ function Ur() {
433
433
  }
434
434
  }
435
435
  var Ir = function(i, b, R, D, X, W, B) {
436
- var z = {
436
+ var L = {
437
437
  // This tag allows us to uniquely identify this as a React Element
438
438
  $$typeof: t,
439
439
  // Built-in properties that belong on the element
@@ -444,27 +444,27 @@ function Ur() {
444
444
  // Record the component responsible for creating this element.
445
445
  _owner: W
446
446
  };
447
- return z._store = {}, Object.defineProperty(z._store, "validated", {
447
+ return L._store = {}, Object.defineProperty(L._store, "validated", {
448
448
  configurable: !1,
449
449
  enumerable: !1,
450
450
  writable: !0,
451
451
  value: !1
452
- }), Object.defineProperty(z, "_self", {
452
+ }), Object.defineProperty(L, "_self", {
453
453
  configurable: !1,
454
454
  enumerable: !1,
455
455
  writable: !1,
456
456
  value: D
457
- }), Object.defineProperty(z, "_source", {
457
+ }), Object.defineProperty(L, "_source", {
458
458
  configurable: !1,
459
459
  enumerable: !1,
460
460
  writable: !1,
461
461
  value: X
462
- }), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
462
+ }), Object.freeze && (Object.freeze(L.props), Object.freeze(L)), L;
463
463
  };
464
464
  function Or(i, b, R, D, X) {
465
465
  {
466
- var W, B = {}, z = null, ee = null;
467
- R !== void 0 && (_t(R), z = "" + R), wr(b) && (_t(b.key), z = "" + b.key), Er(b) && (ee = b.ref, Cr(b, X));
466
+ var W, B = {}, L = null, ee = null;
467
+ R !== void 0 && (_t(R), L = "" + R), wr(b) && (_t(b.key), L = "" + b.key), Er(b) && (ee = b.ref, Cr(b, X));
468
468
  for (W in b)
469
469
  $e.call(b, W) && !br.hasOwnProperty(W) && (B[W] = b[W]);
470
470
  if (i && i.defaultProps) {
@@ -472,11 +472,11 @@ function Ur() {
472
472
  for (W in q)
473
473
  B[W] === void 0 && (B[W] = q[W]);
474
474
  }
475
- if (z || ee) {
475
+ if (L || ee) {
476
476
  var G = typeof i == "function" ? i.displayName || i.name || "Unknown" : i;
477
- z && xr(B, G), ee && Rr(B, G);
477
+ L && xr(B, G), ee && Rr(B, G);
478
478
  }
479
- return Ir(i, z, ee, X, D, be.current, B);
479
+ return Ir(i, L, ee, X, D, be.current, B);
480
480
  }
481
481
  }
482
482
  var Ge = y.ReactCurrentOwner, wt = y.ReactDebugCurrentFrame;
@@ -601,12 +601,12 @@ Check the top-level render call using <` + R + ">.");
601
601
  {
602
602
  var B = j(i);
603
603
  if (!B) {
604
- var z = "";
605
- (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (z += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
604
+ var L = "";
605
+ (i === void 0 || typeof i == "object" && i !== null && Object.keys(i).length === 0) && (L += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
606
606
  var ee = Tr(X);
607
- ee ? z += ee : z += Ct();
607
+ ee ? L += ee : L += Ct();
608
608
  var q;
609
- i === null ? q = "null" : He(i) ? q = "array" : i !== void 0 && i.$$typeof === t ? (q = "<" + (N(i.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : q = typeof i, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, z);
609
+ i === null ? q = "null" : He(i) ? q = "array" : i !== void 0 && i.$$typeof === t ? (q = "<" + (N(i.type) || "Unknown") + " />", L = " Did you accidentally export a JSX literal instead of a component?") : q = typeof i, C("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", q, L);
610
610
  }
611
611
  var G = Or(i, b, R, X, W);
612
612
  if (G == null)
@@ -640,7 +640,7 @@ Check the top-level render call using <` + R + ">.");
640
640
  (function(e) {
641
641
  process.env.NODE_ENV === "production" ? e.exports = Xr() : e.exports = Ur();
642
642
  })(Nr);
643
- const Wr = Ie.Fragment, T = Ie.jsx, ue = Ie.jsxs;
643
+ const Wr = Ie.Fragment, T = Ie.jsx, le = Ie.jsxs;
644
644
  let Vr = (e = 21) => crypto.getRandomValues(new Uint8Array(e)).reduce((t, r) => (r &= 63, r < 36 ? t += r.toString(36) : r < 62 ? t += (r - 26).toString(36).toUpperCase() : r > 62 ? t += "-" : t += "_", t), "");
645
645
  class Fr {
646
646
  constructor(t, r, n = null) {
@@ -1055,10 +1055,10 @@ function en() {
1055
1055
  value: null
1056
1056
  }, E.current = I) : I = E.current;
1057
1057
  var y = u(function() {
1058
- var w = !1, m, S, O = function(L) {
1058
+ var w = !1, m, S, O = function(A) {
1059
1059
  if (!w) {
1060
- w = !0, m = L;
1061
- var N = _(L);
1060
+ w = !0, m = A;
1061
+ var N = _(A);
1062
1062
  if (v !== void 0 && I.hasValue) {
1063
1063
  var U = I.value;
1064
1064
  if (v(U, N))
@@ -1067,10 +1067,10 @@ function en() {
1067
1067
  return S = N, N;
1068
1068
  }
1069
1069
  var J = m, P = S;
1070
- if (n(J, L))
1070
+ if (n(J, A))
1071
1071
  return P;
1072
- var $ = _(L);
1073
- return v !== void 0 && v(P, $) ? P : (m = L, S = $, $);
1072
+ var $ = _(A);
1073
+ return v !== void 0 && v(P, $) ? P : (m = A, S = $, $);
1074
1074
  }, k = h === void 0 ? null : h, j = function() {
1075
1075
  return O(c());
1076
1076
  }, M = k === null ? void 0 : function() {
@@ -1379,11 +1379,11 @@ const ar = g.createContext(), un = (e, t) => ({
1379
1379
  l.ready && (u(), s(!0));
1380
1380
  });
1381
1381
  }, [a]), o ? /* @__PURE__ */ T(ar.Provider, { value: a, children: t }) : null;
1382
- }, ne = (e, t) => {
1382
+ }, oe = (e, t) => {
1383
1383
  const r = _e(ar);
1384
1384
  return We(r, e, t || Ve);
1385
1385
  }, ns = () => {
1386
- const [e, t] = ne((n) => [
1386
+ const [e, t] = oe((n) => [
1387
1387
  n.itemIds,
1388
1388
  n.items
1389
1389
  ]);
@@ -1392,7 +1392,7 @@ const ar = g.createContext(), un = (e, t) => ({
1392
1392
  [e, t]
1393
1393
  );
1394
1394
  }, os = () => {
1395
- const [e, t, r] = ne((a) => [
1395
+ const [e, t, r] = oe((a) => [
1396
1396
  a.items,
1397
1397
  a.itemIds,
1398
1398
  a.getItemList
@@ -1448,7 +1448,7 @@ const ar = g.createContext(), un = (e, t) => ({
1448
1448
  }),
1449
1449
  callInteractions: (r, n) => {
1450
1450
  t().interactions[r] && t().interactions[r].forEach((o) => {
1451
- o(n);
1451
+ setTimeout(() => o(n), 0);
1452
1452
  });
1453
1453
  }
1454
1454
  }), vn = (e, t) => ({
@@ -1595,7 +1595,7 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1595
1595
  p.config.itemExtent,
1596
1596
  p.getConfiguration,
1597
1597
  p.updateConfiguration
1598
- ]), s = g.useRef([0.15, 5]), [a] = ne((p) => [p.getItemList]), u = g.useCallback(() => {
1598
+ ]), s = g.useRef([0.15, 5]), [a] = oe((p) => [p.getItemList]), u = g.useCallback(() => {
1599
1599
  const { translateX: p, translateY: w, scale: m, rotate: S } = e();
1600
1600
  return { translateX: p, translateY: w, scale: m, rotate: S };
1601
1601
  }, [e]), l = g.useCallback(
@@ -1621,7 +1621,7 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1621
1621
  translateX: k,
1622
1622
  translateY: j,
1623
1623
  scale: M,
1624
- rotate: L
1624
+ rotate: A
1625
1625
  } = {
1626
1626
  ...O,
1627
1627
  ...p(O)
@@ -1631,7 +1631,7 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1631
1631
  x: k,
1632
1632
  y: j,
1633
1633
  scale: N,
1634
- rotate: L,
1634
+ rotate: A,
1635
1635
  itemExtent: w,
1636
1636
  boardWrapperRect: m,
1637
1637
  boardSize: S
@@ -1639,7 +1639,7 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1639
1639
  translateX: U,
1640
1640
  translateY: J,
1641
1641
  scale: N,
1642
- rotate: L
1642
+ rotate: A
1643
1643
  });
1644
1644
  },
1645
1645
  [c, e, n, t]
@@ -1663,10 +1663,10 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1663
1663
  x: m.left + m.width / 2,
1664
1664
  y: m.top + m.height / 2
1665
1665
  });
1666
- const O = e(), k = c(O.scale * w), j = S.x - m.left, M = S.y - m.top, L = j - (j - O.translateX) * k / O.scale, N = M - (M - O.translateY) * k / O.scale;
1666
+ const O = e(), k = c(O.scale * w), j = S.x - m.left, M = S.y - m.top, A = j - (j - O.translateX) * k / O.scale, N = M - (M - O.translateY) * k / O.scale;
1667
1667
  h((U) => ({
1668
1668
  ...U,
1669
- translateX: L,
1669
+ translateX: A,
1670
1670
  translateY: N,
1671
1671
  scale: k
1672
1672
  }));
@@ -1674,16 +1674,16 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1674
1674
  [c, e, n, h]
1675
1675
  ), E = g.useCallback(
1676
1676
  ({ x: p, y: w, radius: m }) => {
1677
- const { rotate: S } = e(), { boardWrapperRect: O, boardSize: k } = n(), j = O.width / (m * 2), M = O.height / (m * 2), L = c(Math.min(j, M) * bn), [N, U] = Be(
1677
+ const { rotate: S } = e(), { boardWrapperRect: O, boardSize: k } = n(), j = O.width / (m * 2), M = O.height / (m * 2), A = c(Math.min(j, M) * bn), [N, U] = Be(
1678
1678
  [-k / 2 - p, -k / 2 - w],
1679
1679
  {
1680
1680
  translateX: O.width / 2,
1681
1681
  translateY: O.height / 2,
1682
- scale: L,
1682
+ scale: A,
1683
1683
  rotate: S
1684
1684
  }
1685
1685
  );
1686
- h((J) => ({ ...J, translateX: N, translateY: U, scale: L }));
1686
+ h((J) => ({ ...J, translateX: N, translateY: U, scale: A }));
1687
1687
  },
1688
1688
  [c, e, n, h]
1689
1689
  ), I = g.useCallback(() => {
@@ -1781,39 +1781,40 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1781
1781
  getItemList: v,
1782
1782
  insertItems: E,
1783
1783
  setItemList: I
1784
- } = ne(
1784
+ } = oe(
1785
1785
  ({
1786
1786
  getItems: P,
1787
1787
  getItemIds: $,
1788
- setItemIds: Y,
1788
+ setItemIds: z,
1789
1789
  updateItems: V,
1790
- moveItems: A,
1790
+ moveItems: Y,
1791
1791
  removeItemsById: F,
1792
1792
  getItemList: H,
1793
- insertItems: Z,
1794
- setItemList: te
1793
+ insertItems: te,
1794
+ setItemList: Z
1795
1795
  }) => ({
1796
1796
  getItems: P,
1797
1797
  getItemIds: $,
1798
- setItemIds: Y,
1798
+ setItemIds: z,
1799
1799
  updateItems: V,
1800
- moveItems: A,
1800
+ moveItems: Y,
1801
1801
  removeItemsById: F,
1802
1802
  getItemList: H,
1803
- insertItems: Z,
1804
- setItemList: te
1803
+ insertItems: te,
1804
+ setItemList: Z
1805
1805
  })
1806
1806
  ), y = g.useCallback(
1807
- (P, $, Y = !1) => {
1807
+ (P, $, z = !1) => {
1808
1808
  let V = $;
1809
1809
  typeof $ == "object" && (V = () => $);
1810
- const A = d().filter((Z) => P.includes(Z)), F = l(), H = Object.fromEntries(
1811
- A.map((Z) => {
1812
- const te = F[Z];
1813
- return Y ? [Z, V(te)] : [Z, V({ ...te })];
1814
- })
1815
- );
1816
- c(H, Y), n();
1810
+ const Y = d().filter((Z) => P.includes(Z)), F = l(), H = Y.map((Z) => {
1811
+ const ne = F[Z];
1812
+ return z ? [Z, V(ne)] : [Z, V({ ...ne })];
1813
+ }).filter(([, Z]) => Z);
1814
+ if (H.length === 0)
1815
+ return;
1816
+ const te = Object.fromEntries(H);
1817
+ c(te, z), n();
1817
1818
  },
1818
1819
  [d, l, n, c]
1819
1820
  ), C = g.useCallback(
@@ -1822,8 +1823,8 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1822
1823
  },
1823
1824
  [o, I, n]
1824
1825
  ), x = g.useCallback(
1825
- (P, $, Y = !1) => {
1826
- y([P], $, Y);
1826
+ (P, $, z = !1) => {
1827
+ y([P], $, z);
1827
1828
  },
1828
1829
  [y]
1829
1830
  ), p = g.useCallback(
@@ -1836,31 +1837,31 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1836
1837
  [d, l, h, n]
1837
1838
  ), w = g.useCallback(
1838
1839
  (P) => {
1839
- const $ = d(), Y = $.filter((A) => !P.includes(A)), V = $.filter(
1840
- (A) => P.includes(A)
1840
+ const $ = d(), z = $.filter((Y) => !P.includes(Y)), V = $.filter(
1841
+ (Y) => P.includes(Y)
1841
1842
  );
1842
- f([...Y, ...V]);
1843
+ f([...z, ...V]);
1843
1844
  },
1844
1845
  [d, f]
1845
1846
  ), m = g.useCallback(
1846
- (P, { type: $, size: Y } = {}) => {
1847
+ (P, { type: $, size: z } = {}) => {
1847
1848
  const { boardWrapper: V } = u();
1848
1849
  y(
1849
1850
  P,
1850
- (A) => {
1851
- const F = Ne(V, A.id);
1851
+ (Y) => {
1852
+ const F = Ne(V, Y.id);
1852
1853
  if (!F)
1853
1854
  return;
1854
1855
  const H = {
1855
1856
  type: $ || "grid",
1856
- size: Y || 1,
1857
+ size: z || 1,
1857
1858
  offset: { x: 0, y: 0 },
1858
- ...A.grid
1859
+ ...Y.grid
1859
1860
  };
1860
1861
  return an(
1861
1862
  {
1862
- x: A.x,
1863
- y: A.y,
1863
+ x: Y.x,
1864
+ y: Y.y,
1864
1865
  width: F.clientWidth,
1865
1866
  height: F.clientHeight
1866
1867
  },
@@ -1873,15 +1874,12 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1873
1874
  [u, y]
1874
1875
  ), S = g.useCallback(
1875
1876
  (P, $) => {
1876
- const Y = Bt(
1877
+ const z = Bt(
1877
1878
  l(),
1878
1879
  d(),
1879
1880
  P
1880
1881
  );
1881
- w(Y), y(Y, (V) => {
1882
- const A = { ...V };
1883
- return delete A.moving, A;
1884
- }), m(Y, $), e(P), n();
1882
+ w(z), y(z, { moving: !1 }, !0), m(z, $), e(P), n();
1885
1883
  },
1886
1884
  [
1887
1885
  y,
@@ -1899,40 +1897,44 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1899
1897
  [f]
1900
1898
  ), k = g.useCallback(
1901
1899
  (P) => {
1902
- const $ = d(), Y = $.filter(
1903
- (A) => P.includes(A)
1904
- ), V = $.map((A) => P.includes(A) ? Y.pop() : A);
1900
+ const $ = d(), z = $.filter(
1901
+ (Y) => P.includes(Y)
1902
+ ), V = $.map((Y) => P.includes(Y) ? z.pop() : Y);
1905
1903
  f(V), s();
1906
1904
  },
1907
1905
  [d, s, f]
1908
1906
  ), j = g.useCallback(
1909
1907
  (P, $) => {
1910
- const Y = l(), V = Object.fromEntries(
1911
- $.map((H, Z) => {
1912
- const te = Y[P[Z]];
1908
+ const z = l(), V = Object.fromEntries(
1909
+ $.map((H, te) => {
1910
+ const Z = z[P[te]];
1913
1911
  return [
1914
1912
  H,
1915
1913
  {
1916
- x: te.x,
1917
- y: te.y
1914
+ x: Z.x,
1915
+ y: Z.y
1918
1916
  }
1919
1917
  ];
1920
1918
  })
1921
1919
  );
1922
- y(P, (H) => ({ ...H, ...V[H.id] }));
1923
- const A = Object.fromEntries(
1924
- P.map((H, Z) => [H, $[Z]])
1925
- ), F = d().map((H) => P.includes(H) ? A[H] : H);
1920
+ y(
1921
+ P,
1922
+ (H) => V[H.id],
1923
+ !0
1924
+ );
1925
+ const Y = Object.fromEntries(
1926
+ P.map((H, te) => [H, $[te]])
1927
+ ), F = d().map((H) => P.includes(H) ? Y[H] : H);
1926
1928
  f(F);
1927
1929
  },
1928
1930
  [l, y, d, f]
1929
1931
  ), M = g.useCallback(
1930
1932
  (P, $) => {
1931
- const Y = r(), V = P.map((A, F) => !A.x || !A.y ? { ...A, x: Y.x + 2 * F, y: Y.y + 2 * F } : A);
1933
+ const z = r(), V = P.map((Y, F) => !Y.x || !Y.y ? { ...Y, x: z.x + 2 * F, y: z.y + 2 * F } : Y);
1932
1934
  E(V, $), n();
1933
1935
  },
1934
1936
  [r, E, n]
1935
- ), L = g.useCallback(
1937
+ ), A = g.useCallback(
1936
1938
  (P, $) => {
1937
1939
  M([P], $);
1938
1940
  },
@@ -1945,28 +1947,28 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1945
1947
  ), U = g.useCallback(
1946
1948
  (P) => {
1947
1949
  const $ = l();
1948
- return P.map((Y) => $[Y]);
1950
+ return P.map((z) => $[z]);
1949
1951
  },
1950
1952
  [l]
1951
1953
  ), J = g.useCallback(
1952
- ({ target: P, clientX: $, clientY: Y }, { returnLocked: V = !1, passLocked: A = !1 } = {}) => {
1954
+ ({ target: P, clientX: $, clientY: z }, { returnLocked: V = !1, passLocked: Y = !1 } = {}) => {
1953
1955
  if (["INPUT", "TEXTAREA"].includes(P.tagName))
1954
1956
  return null;
1955
1957
  const F = Oe(P, "item");
1956
1958
  if (F) {
1957
1959
  if (ye(F, "selected"))
1958
1960
  return F;
1959
- if (!A && ye(F, "locked") && !ye(P, "passthrough"))
1961
+ if (!Y && ye(F, "locked") && !ye(P, "passthrough"))
1960
1962
  return V ? F : null;
1961
1963
  if (ye(P, "passthrough")) {
1962
- const H = d(), { boardWrapper: Z } = u(), te = H.reduce((le, se) => {
1963
- const me = Ne(Z, se), ge = me.getBoundingClientRect();
1964
- return ft({ x: $, y: Y }, ge) && le.unshift(me), le;
1964
+ const H = d(), { boardWrapper: te } = u(), Z = H.reduce((ne, ie) => {
1965
+ const me = Ne(te, ie), ge = me.getBoundingClientRect();
1966
+ return ft({ x: $, y: z }, ge) && ne.unshift(me), ne;
1965
1967
  }, []);
1966
- for (let le = 0; le < te.length; le += 1) {
1967
- const se = te[le];
1968
- if (se !== F && (A || !ye(se, "locked")))
1969
- return se;
1968
+ for (let ne = 0; ne < Z.length; ne += 1) {
1969
+ const ie = Z[ne];
1970
+ if (ie !== F && (Y || !ye(ie, "locked")))
1971
+ return ie;
1970
1972
  }
1971
1973
  return null;
1972
1974
  }
@@ -1985,7 +1987,7 @@ const Sn = 100, _n = 1e3, bn = 0.8, En = ({
1985
1987
  swapItems: j,
1986
1988
  reverseItemsOrder: k,
1987
1989
  setItemList: C,
1988
- pushItem: L,
1990
+ pushItem: A,
1989
1991
  pushItems: M,
1990
1992
  removeItems: N,
1991
1993
  getItemList: v,
@@ -2068,7 +2070,7 @@ const xn = (e, t) => {
2068
2070
  const { actions: r = xn(e, t) } = e;
2069
2071
  return r.map((n) => typeof n == "string" ? { name: n } : n);
2070
2072
  }, is = () => {
2071
- const [e, t] = ne((c) => [
2073
+ const [e, t] = oe((c) => [
2072
2074
  c.items,
2073
2075
  c.getItems
2074
2076
  ]), [r, n, o] = Q((c) => [
@@ -2262,7 +2264,7 @@ const lr = g.createContext(), ut = (e) => {
2262
2264
  joinSpace: o
2263
2265
  };
2264
2266
  }, us = () => {
2265
- const [e, t, r] = ne(
2267
+ const [e, t, r] = oe(
2266
2268
  (o) => [o.boardConfig, o.getBoardConfig, o.setBoardConfig]
2267
2269
  ), n = g.useCallback(
2268
2270
  (o) => {
@@ -2278,7 +2280,7 @@ const lr = g.createContext(), ut = (e) => {
2278
2280
  const [e] = Q((t) => [t.boardState]);
2279
2281
  return e;
2280
2282
  }, fs = () => {
2281
- const [e, t, r, n] = ne((o) => [
2283
+ const [e, t, r, n] = oe((o) => [
2282
2284
  o.getSessionInfo,
2283
2285
  o.setSessionInfo,
2284
2286
  o.updateSessionInfo,
@@ -2455,7 +2457,7 @@ class zn {
2455
2457
  });
2456
2458
  }
2457
2459
  }
2458
- const oe = new zn(), Fe = ({
2460
+ const se = new zn(), Fe = ({
2459
2461
  children: e,
2460
2462
  onDrag: t = de,
2461
2463
  onDragStart: r = de,
@@ -2485,7 +2487,7 @@ const oe = new zn(), Fe = ({
2485
2487
  } = y;
2486
2488
  if (!(O || S && !nt()))
2487
2489
  if (nt() && !S)
2488
- oe.add(o, {
2490
+ se.add(o, {
2489
2491
  deltaX: -2 * C,
2490
2492
  deltaY: -2 * x,
2491
2493
  button: 1,
@@ -2506,7 +2508,7 @@ const oe = new zn(), Fe = ({
2506
2508
  M *= $n;
2507
2509
  break;
2508
2510
  }
2509
- nt() && (M *= 2), oe.add(l, { scale: M, clientX: p, clientY: w, event: y });
2511
+ nt() && (M *= 2), se.add(l, { scale: M, clientX: p, clientY: w, event: y });
2510
2512
  }
2511
2513
  }, _ = (y) => {
2512
2514
  const {
@@ -2523,11 +2525,11 @@ const oe = new zn(), Fe = ({
2523
2525
  if (c.current.pointers[m] = { clientX: p, clientY: w }, j && (c.current.mainPointer = void 0), c.current.mainPointer !== void 0) {
2524
2526
  if (c.current.mainPointer !== m)
2525
2527
  try {
2526
- const { clientX: M, clientY: L } = qt(
2528
+ const { clientX: M, clientY: A } = qt(
2527
2529
  c.current.pointers,
2528
2530
  m
2529
- ), N = (M + p) / 2, U = (L + w) / 2, J = Gt(
2530
- [M, L],
2531
+ ), N = (M + p) / 2, U = (A + w) / 2, J = Gt(
2532
+ [M, A],
2531
2533
  [p, w]
2532
2534
  );
2533
2535
  Object.assign(c.current, {
@@ -2561,7 +2563,7 @@ const oe = new zn(), Fe = ({
2561
2563
  target: C,
2562
2564
  timeStart: Date.now(),
2563
2565
  longTapTimeout: setTimeout(async () => {
2564
- c.current.noTap = !0, oe.add(a, {
2566
+ c.current.noTap = !0, se.add(a, {
2565
2567
  clientX: p,
2566
2568
  clientY: w,
2567
2569
  altKey: S,
@@ -2594,23 +2596,23 @@ const oe = new zn(), Fe = ({
2594
2596
  clientY: p
2595
2597
  }, c.current.moving = !0;
2596
2598
  const j = Object.keys(c.current.pointers).length === 2;
2597
- let M, L, N = 0;
2599
+ let M, A, N = 0;
2598
2600
  if (j) {
2599
- const { clientX: $, clientY: Y } = qt(
2601
+ const { clientX: $, clientY: z } = qt(
2600
2602
  c.current.pointers,
2601
2603
  C
2602
2604
  );
2603
- M = ($ + x) / 2, L = (Y + p) / 2, N = Gt(
2604
- [$, Y],
2605
+ M = ($ + x) / 2, A = (z + p) / 2, N = Gt(
2606
+ [$, z],
2605
2607
  [x, p]
2606
2608
  );
2607
2609
  } else
2608
- M = x, L = p;
2610
+ M = x, A = p;
2609
2611
  let U = m || w || S || O || k !== 1;
2610
2612
  d !== "drag" && (U = !U);
2611
2613
  const J = !U, P = U;
2612
2614
  if (J) {
2613
- c.current.gestureStart || (f.current.style.cursor = "move", c.current.gestureStart = !0, clearTimeout(c.current.longTapTimeout), oe.add(r, {
2615
+ c.current.gestureStart || (f.current.style.cursor = "move", c.current.gestureStart = !0, clearTimeout(c.current.longTapTimeout), se.add(r, {
2614
2616
  deltaX: 0,
2615
2617
  deltaY: 0,
2616
2618
  startX: c.current.startX,
@@ -2627,16 +2629,16 @@ const oe = new zn(), Fe = ({
2627
2629
  target: c.current.target,
2628
2630
  event: c.current.pointerDownEvent
2629
2631
  }));
2630
- const $ = M - c.current.prevX, Y = L - c.current.prevY, V = M - c.current.startX, A = L - c.current.startY;
2631
- oe.add(t, {
2632
+ const $ = M - c.current.prevX, z = A - c.current.prevY, V = M - c.current.startX, Y = A - c.current.startY;
2633
+ se.add(t, {
2632
2634
  deltaX: $,
2633
- deltaY: Y,
2635
+ deltaY: z,
2634
2636
  startX: c.current.startX,
2635
2637
  startY: c.current.startY,
2636
2638
  clientX: M,
2637
- clientY: L,
2639
+ clientY: A,
2638
2640
  distanceX: V,
2639
- distanceY: A,
2641
+ distanceY: Y,
2640
2642
  button: c.current.currentButton,
2641
2643
  altKey: w,
2642
2644
  shiftKey: m,
@@ -2648,10 +2650,10 @@ const oe = new zn(), Fe = ({
2648
2650
  }
2649
2651
  if (P) {
2650
2652
  c.current.gestureStart || (f.current.style.cursor = "move", c.current.gestureStart = !0, clearTimeout(c.current.longTapTimeout));
2651
- const $ = M - c.current.prevX, Y = L - c.current.prevY, { target: V } = c.current;
2652
- if (oe.add(o, {
2653
+ const $ = M - c.current.prevX, z = A - c.current.prevY, { target: V } = c.current;
2654
+ if (se.add(o, {
2653
2655
  deltaX: $,
2654
- deltaY: Y,
2656
+ deltaY: z,
2655
2657
  button: c.current.currentButton,
2656
2658
  altKey: w,
2657
2659
  shiftKey: m,
@@ -2660,16 +2662,16 @@ const oe = new zn(), Fe = ({
2660
2662
  target: V,
2661
2663
  event: y
2662
2664
  }), N !== c.current.prevDistance && l) {
2663
- const A = c.current.prevDistance - N;
2664
- Math.abs(A) > 0 && (oe.add(l, {
2665
- scale: A * 3,
2665
+ const Y = c.current.prevDistance - N;
2666
+ Math.abs(Y) > 0 && (se.add(l, {
2667
+ scale: Y * 3,
2666
2668
  clientX: M,
2667
- clientY: L,
2669
+ clientY: A,
2668
2670
  event: y
2669
2671
  }), c.current.prevDistance = N);
2670
2672
  }
2671
2673
  }
2672
- c.current.prevX = M, c.current.prevY = L;
2674
+ c.current.prevX = M, c.current.prevY = A;
2673
2675
  }
2674
2676
  }, E = (y) => {
2675
2677
  const {
@@ -2712,7 +2714,7 @@ const oe = new zn(), Fe = ({
2712
2714
  }
2713
2715
  }
2714
2716
  if (c.current.mainPointer = void 0, c.current.pressed = !1, clearTimeout(c.current.longTapTimeout), c.current.moving)
2715
- c.current.moving = !1, oe.add(n, {
2717
+ c.current.moving = !1, se.add(n, {
2716
2718
  deltaX: C - c.current.prevX,
2717
2719
  deltaY: x - c.current.prevY,
2718
2720
  startX: c.current.startX,
@@ -2730,7 +2732,7 @@ const oe = new zn(), Fe = ({
2730
2732
  }), f.current.style.cursor = "auto";
2731
2733
  else {
2732
2734
  const j = Date.now();
2733
- c.current.noTap ? c.current.noTap = !1 : c.current.timeStart - j < 300 && oe.add(s, {
2735
+ c.current.noTap ? c.current.noTap = !1 : c.current.timeStart - j < 300 && se.add(s, {
2734
2736
  clientX: C,
2735
2737
  clientY: x,
2736
2738
  altKey: p,
@@ -2755,7 +2757,7 @@ const oe = new zn(), Fe = ({
2755
2757
  onPointerCancel: E,
2756
2758
  onDoubleClick: (y) => {
2757
2759
  const { clientX: C, clientY: x, altKey: p, shiftKey: w, ctrlKey: m, metaKey: S, target: O } = y;
2758
- oe.add(u, {
2760
+ se.add(u, {
2759
2761
  clientX: C,
2760
2762
  clientY: x,
2761
2763
  altKey: p,
@@ -2789,7 +2791,7 @@ let Yn = { data: "" }, Bn = (e) => typeof window == "object" ? ((e ? e.querySele
2789
2791
  s[0] == "@" ? s[1] == "i" ? r = s + " " + a + ";" : n += s[1] == "f" ? fe(a, s) : s + "{" + fe(a, s[1] == "k" ? "" : t) + "}" : typeof a == "object" ? n += fe(a, t ? t.replace(/([^,])+/g, (u) => s.replace(/(^:.*)|([^,])+/g, (l) => /&/.test(l) ? l.replace(/&/g, u) : u ? u + " " + l : l)) : s) : a != null && (s = /^--/.test(s) ? s : s.replace(/[A-Z]/g, "-$&").toLowerCase(), o += fe.p ? fe.p(s, a) : s + ":" + a + ";");
2790
2792
  }
2791
2793
  return r + (t && o ? t + "{" + o + "}" : o) + n;
2792
- }, ae = {}, pr = (e) => {
2794
+ }, ce = {}, pr = (e) => {
2793
2795
  if (typeof e == "object") {
2794
2796
  let t = "";
2795
2797
  for (let r in e)
@@ -2798,25 +2800,25 @@ let Yn = { data: "" }, Bn = (e) => typeof window == "object" ? ((e ? e.querySele
2798
2800
  }
2799
2801
  return e;
2800
2802
  }, Un = (e, t, r, n, o) => {
2801
- let s = pr(e), a = ae[s] || (ae[s] = ((l) => {
2803
+ let s = pr(e), a = ce[s] || (ce[s] = ((l) => {
2802
2804
  let d = 0, f = 11;
2803
2805
  for (; d < l.length; )
2804
2806
  f = 101 * f + l.charCodeAt(d++) >>> 0;
2805
2807
  return "go" + f;
2806
2808
  })(s));
2807
- if (!ae[a]) {
2809
+ if (!ce[a]) {
2808
2810
  let l = s !== e ? e : ((d) => {
2809
2811
  let f, c, h = [{}];
2810
2812
  for (; f = Nn.exec(d.replace(Xn, "")); )
2811
2813
  f[4] ? h.shift() : f[3] ? (c = f[3].replace(Jt, " ").trim(), h.unshift(h[0][c] = h[0][c] || {})) : h[0][f[1]] = f[2].replace(Jt, " ").trim();
2812
2814
  return h[0];
2813
2815
  })(e);
2814
- ae[a] = fe(o ? { ["@keyframes " + a]: l } : l, r ? "" : "." + a);
2816
+ ce[a] = fe(o ? { ["@keyframes " + a]: l } : l, r ? "" : "." + a);
2815
2817
  }
2816
- let u = r && ae.g ? ae.g : null;
2817
- return r && (ae.g = ae[a]), ((l, d, f, c) => {
2818
+ let u = r && ce.g ? ce.g : null;
2819
+ return r && (ce.g = ce[a]), ((l, d, f, c) => {
2818
2820
  c ? d.data = d.data.replace(c, l) : d.data.indexOf(l) === -1 && (d.data = f ? l + d.data : d.data + l);
2819
- })(ae[a], t, n, u), a;
2821
+ })(ce[a], t, n, u), a;
2820
2822
  }, Wn = (e, t, r) => e.reduce((n, o, s) => {
2821
2823
  let a = t[s];
2822
2824
  if (a && a.call) {
@@ -2918,7 +2920,7 @@ const Kn = K`
2918
2920
  cursor: nwse-resize;
2919
2921
  bottom: -6px;
2920
2922
  right: -6px;
2921
- `, no = ({ onReload: e }) => /* @__PURE__ */ ue(
2923
+ `, no = ({ onReload: e }) => /* @__PURE__ */ le(
2922
2924
  "div",
2923
2925
  {
2924
2926
  className: `syncboard-error-item ${K({
@@ -3012,12 +3014,12 @@ const so = (e) => {
3012
3014
  o && I.push("locked"), l && (I.push("selected"), I.push(Hn));
3013
3015
  const y = I.join(" "), C = ({ width: S = 0, height: O = 0, keepRatio: k }) => {
3014
3016
  E((j) => {
3015
- const { offsetWidth: M, offsetHeight: L } = c.current;
3017
+ const { offsetWidth: M, offsetHeight: A } = c.current;
3016
3018
  return v({
3017
3019
  prevState: j,
3018
3020
  width: S,
3019
3021
  height: O,
3020
- actualHeight: L,
3022
+ actualHeight: A,
3021
3023
  actualWidth: M,
3022
3024
  keepRatio: k
3023
3025
  });
@@ -3035,7 +3037,7 @@ const so = (e) => {
3035
3037
  style: { transform: `rotate(${r}deg` },
3036
3038
  "data-id": n,
3037
3039
  className: y,
3038
- children: /* @__PURE__ */ ue(
3040
+ children: /* @__PURE__ */ le(
3039
3041
  "div",
3040
3042
  {
3041
3043
  style: { display: "flex" },
@@ -3058,7 +3060,7 @@ const so = (e) => {
3058
3060
  /* @__PURE__ */ T("div", { className: `corner ${Ce} ${Zn}` }),
3059
3061
  /* @__PURE__ */ T("div", { className: `corner ${Ce} ${Jn}` }),
3060
3062
  /* @__PURE__ */ T("div", { className: `center ${Ce} ${Qn}` }),
3061
- f && /* @__PURE__ */ ue(Wr, { children: [
3063
+ f && /* @__PURE__ */ le(Wr, { children: [
3062
3064
  _.b && /* @__PURE__ */ T(
3063
3065
  ot,
3064
3066
  {
@@ -3128,7 +3130,7 @@ const so = (e) => {
3128
3130
  }
3129
3131
  );
3130
3132
  }, po = rr(fo), mo = () => {
3131
- const { updateItem: e } = gt(), [t, r] = ne((d) => [
3133
+ const { updateItem: e } = gt(), [t, r] = oe((d) => [
3132
3134
  d.itemIds,
3133
3135
  d.items
3134
3136
  ]), [n, o, s, a] = Q(
@@ -3173,7 +3175,7 @@ function vo(e, ...t) {
3173
3175
  e && e.removeEventListener && e.removeEventListener(...t);
3174
3176
  }
3175
3177
  const yo = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
3176
- function ce(e, ...t) {
3178
+ function ue(e, ...t) {
3177
3179
  const r = go(), n = pt(t[1]), o = lt(
3178
3180
  () => (
3179
3181
  // as some event listeners designed to be used through `this`
@@ -3225,12 +3227,12 @@ const So = K({
3225
3227
  m.getConfiguration,
3226
3228
  m.getBoardState,
3227
3229
  m.updateBoardState
3228
- ]), { findElementUnderPointer: l } = gt(), [d] = ne((m) => [m.getItems]), [f, c] = g.useState({}), [, h] = g.useTransition(), [_, v] = g.useState(!1), E = g.useRef(null), I = g.useRef({
3230
+ ]), { findElementUnderPointer: l } = gt(), [d] = oe((m) => [m.getItems]), [f, c] = g.useState({}), [, h] = g.useTransition(), [_, v] = g.useState(!1), E = g.useRef(null), I = g.useRef({
3229
3231
  moving: !1
3230
3232
  });
3231
- return ce(document, "keydown", (m) => {
3233
+ return ue(document, "keydown", (m) => {
3232
3234
  m.key === "l" && v(!0);
3233
- }), ce(document, "keyup", (m) => {
3235
+ }), ue(document, "keyup", (m) => {
3234
3236
  m.key === "l" && v(!1);
3235
3237
  }), g.useEffect(() => (n(), () => {
3236
3238
  n();
@@ -3251,8 +3253,8 @@ const So = K({
3251
3253
  },
3252
3254
  onDrag: ({ distanceY: m, distanceX: S, startX: O, startY: k }) => {
3253
3255
  if (I.current.moving) {
3254
- const { top: j, left: M } = E.current.getBoundingClientRect(), L = O - M, N = k - j;
3255
- S > 0 ? (I.current.left = L, I.current.width = S) : (I.current.left = L + S, I.current.width = -S), m > 0 ? (I.current.top = N, I.current.height = m) : (I.current.top = N + m, I.current.height = -m), c({ ...I.current, moving: !0 });
3256
+ const { top: j, left: M } = E.current.getBoundingClientRect(), A = O - M, N = k - j;
3257
+ S > 0 ? (I.current.left = A, I.current.width = S) : (I.current.left = A + S, I.current.width = -S), m > 0 ? (I.current.top = N, I.current.height = m) : (I.current.top = N + m, I.current.height = -m), c({ ...I.current, moving: !0 });
3256
3258
  }
3257
3259
  },
3258
3260
  onDragEnd: () => {
@@ -3270,8 +3272,8 @@ const So = K({
3270
3272
  n();
3271
3273
  return;
3272
3274
  }
3273
- const L = r();
3274
- j && !L.includes(M) && (O || k ? s([M]) : o([M]));
3275
+ const A = r();
3276
+ j && !A.includes(M) && (O || k ? s([M]) : o([M]));
3275
3277
  }
3276
3278
  },
3277
3279
  onLongTap: ({ target: m }) => {
@@ -3282,7 +3284,7 @@ const So = K({
3282
3284
  }
3283
3285
  },
3284
3286
  mainAction: t ? "pan" : "drag",
3285
- children: /* @__PURE__ */ ue("div", { ref: E, children: [
3287
+ children: /* @__PURE__ */ le("div", { ref: E, children: [
3286
3288
  f.moving && /* @__PURE__ */ T(
3287
3289
  "div",
3288
3290
  {
@@ -3305,7 +3307,7 @@ const So = K({
3305
3307
  y.getSelection,
3306
3308
  y.getBoardState,
3307
3309
  y.updateBoardState
3308
- ]), [f] = ne((y) => [y.getBoardConfig]), c = g.useRef({}), h = g.useRef({
3310
+ ]), [f] = oe((y) => [y.getBoardConfig]), c = g.useRef({}), h = g.useRef({
3309
3311
  items: []
3310
3312
  }), _ = (y) => {
3311
3313
  const { ctrlKey: C, metaKey: x, event: p } = y, w = n(y);
@@ -3340,7 +3342,7 @@ const So = K({
3340
3342
  }), d({ movingItems: !1 });
3341
3343
  }
3342
3344
  };
3343
- return ce(document, "keydown", (y) => {
3345
+ return ue(document, "keydown", (y) => {
3344
3346
  if (["INPUT", "TEXTAREA"].includes(y.target.tagName))
3345
3347
  return;
3346
3348
  const C = u();
@@ -3380,12 +3382,12 @@ const So = K({
3380
3382
  }), /* @__PURE__ */ T(Fe, { onDragStart: _, onDrag: v, onDragEnd: E, children: e });
3381
3383
  }, wo = (e) => {
3382
3384
  const t = g.useRef({ hover: !1, x: 0, y: 0 });
3383
- return ce(e.current, "mousemove", (n) => {
3385
+ return ue(e.current, "mousemove", (n) => {
3384
3386
  const { clientX: o, clientY: s } = n;
3385
3387
  t.current.x = o, t.current.y = s;
3386
- }), ce(e.current, "mouseenter", () => {
3388
+ }), ue(e.current, "mouseenter", () => {
3387
3389
  t.current.hover = !0;
3388
- }), ce(e.current, "mouseleave", () => {
3390
+ }), ue(e.current, "mouseleave", () => {
3389
3391
  t.current.hover = !1;
3390
3392
  }), g.useCallback(() => t.current, []);
3391
3393
  }, Co = [...Array(5).keys()].map((e) => `Digit${e + 1}`), xo = () => {
@@ -3393,7 +3395,7 @@ const So = K({
3393
3395
  o.getBoardState,
3394
3396
  o.updateBoardState
3395
3397
  ]);
3396
- return ce(document, "keydown", (o) => {
3398
+ return ue(document, "keydown", (o) => {
3397
3399
  if (!["INPUT", "TEXTAREA"].includes(o.target.tagName) && Co.includes(o.code)) {
3398
3400
  const s = o.code, { translateX: a, translateY: u, scale: l } = r();
3399
3401
  o.altKey || o.metaKey || o.ctrlKey || o.shiftKey ? t((d) => ({
@@ -3477,7 +3479,7 @@ const So = K({
3477
3479
  }, x = (p) => {
3478
3480
  ["INPUT", "TEXTAREA"].includes(p.target.tagName) || p.key === " " && v().hover && l({ factor: 1 / 3, to: v() });
3479
3481
  };
3480
- return ce(document, "keydown", C), ce(document, "keyup", x), /* @__PURE__ */ T(
3482
+ return ue(document, "keydown", C), ue(document, "keyup", x), /* @__PURE__ */ T(
3481
3483
  Fe,
3482
3484
  {
3483
3485
  onPan: y,
@@ -3525,7 +3527,7 @@ const So = K({
3525
3527
  translateY: c.boardState.translateY,
3526
3528
  scale: c.boardState.scale
3527
3529
  }
3528
- ]), [l] = ne((c) => [c.items]), d = g.useCallback(() => {
3530
+ ]), [l] = oe((c) => [c.items]), d = g.useCallback(() => {
3529
3531
  const c = t(), { boardWrapperRect: h, boardWrapper: _ } = o();
3530
3532
  if (c.length === 0) {
3531
3533
  n(null);
@@ -3711,8 +3713,8 @@ const Fo = K({
3711
3713
  pointerEvents: "none"
3712
3714
  }), Ho = ({ color: e = "#666", size: t = 40, text: r }) => {
3713
3715
  const n = Vo(e) ? "#222" : "#EEE";
3714
- return /* @__PURE__ */ ue("div", { className: Fo, children: [
3715
- /* @__PURE__ */ ue(
3716
+ return /* @__PURE__ */ le("div", { className: Fo, children: [
3717
+ /* @__PURE__ */ le(
3716
3718
  "svg",
3717
3719
  {
3718
3720
  version: "1.1",
@@ -3795,7 +3797,7 @@ const Fo = K({
3795
3797
  }, h = () => {
3796
3798
  d(o.id);
3797
3799
  }, _ = s.reduce((v, E) => (E.id !== o.id && a[E.id] && (v[E.id] = a[E.id]), v), {});
3798
- return /* @__PURE__ */ ue("div", { onPointerMove: c, onPointerLeave: h, children: [
3800
+ return /* @__PURE__ */ le("div", { onPointerMove: c, onPointerLeave: h, children: [
3799
3801
  e,
3800
3802
  Object.entries(_).map(([v, E]) => {
3801
3803
  const [I, y] = n(E.x, E.y), C = {
@@ -3868,14 +3870,14 @@ const Fo = K({
3868
3870
  });
3869
3871
  });
3870
3872
  const _ = K({ ...es, ...r });
3871
- return /* @__PURE__ */ ue(
3873
+ return /* @__PURE__ */ le(
3872
3874
  "div",
3873
3875
  {
3874
3876
  ref: l,
3875
3877
  id: d,
3876
3878
  className: `sync-board ${_}`,
3877
3879
  children: [
3878
- /* @__PURE__ */ T(Zo, { children: /* @__PURE__ */ T(bo, { moveFirst: e, children: /* @__PURE__ */ T(Ro, { moveFirst: e, children: /* @__PURE__ */ T(Eo, { moveFirst: e, children: /* @__PURE__ */ T(u, { children: /* @__PURE__ */ ue(
3880
+ /* @__PURE__ */ T(Zo, { children: /* @__PURE__ */ T(bo, { moveFirst: e, children: /* @__PURE__ */ T(Ro, { moveFirst: e, children: /* @__PURE__ */ T(Eo, { moveFirst: e, children: /* @__PURE__ */ T(u, { children: /* @__PURE__ */ le(
3879
3881
  "div",
3880
3882
  {
3881
3883
  onContextMenu: (v) => {