hplx-feature-library 1.0.103 → 1.0.104

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.
@@ -664,8 +664,8 @@ async function l5(...o) {
664
664
  O,
665
665
  0
666
666
  ];
667
- const k = !Gt(S), F = x(), Y = F.data, q = F._c, $ = Gt(q) ? Y : q;
668
- if (k && (S = ji(S) ? S($, Y) : S, D({
667
+ const k = !Gt(S), F = x(), X = F.data, q = F._c, $ = Gt(q) ? X : q;
668
+ if (k && (S = ji(S) ? S($, X) : S, D({
669
669
  data: S,
670
670
  _c: $
671
671
  })), ji(L))
@@ -847,7 +847,7 @@ const kv = ln.use || // This extra generic is to avoid TypeScript mixing up the
847
847
  }), jv = {
848
848
  dedupe: !0
849
849
  }, C2 = Promise.resolve(Lr), p9 = (o, u, C) => {
850
- const { cache: P, compare: N, suspense: g, fallbackData: p, revalidateOnMount: m, revalidateIfStale: S, refreshInterval: h, refreshWhenHidden: b, refreshWhenOffline: R, keepPreviousData: T } = C, [y, x, D, H] = bl.get(P), [G, E] = m1(o), v = Yt(!1), M = Yt(!1), L = Yt(G), j = Yt(u), Q = Yt(C), O = () => Q.current, k = () => O().isVisible() && O().isOnline(), [F, Y, q, $] = i5(P, G), re = Yt({}).current, ee = Gt(p) ? Gt(C.fallback) ? Lr : C.fallback[G] : p, pe = (Re, Be) => {
850
+ const { cache: P, compare: N, suspense: g, fallbackData: p, revalidateOnMount: m, revalidateIfStale: S, refreshInterval: h, refreshWhenHidden: b, refreshWhenOffline: R, keepPreviousData: T } = C, [y, x, D, H] = bl.get(P), [G, E] = m1(o), v = Yt(!1), M = Yt(!1), L = Yt(G), j = Yt(u), Q = Yt(C), O = () => Q.current, k = () => O().isVisible() && O().isOnline(), [F, X, q, $] = i5(P, G), re = Yt({}).current, ee = Gt(p) ? Gt(C.fallback) ? Lr : C.fallback[G] : p, pe = (Re, Be) => {
851
851
  for (const Ge in re) {
852
852
  const et = Ge;
853
853
  if (et === "data") {
@@ -896,7 +896,7 @@ const kv = ln.use || // This extra generic is to avoid TypeScript mixing up the
896
896
  isValidating: !1,
897
897
  isLoading: !1
898
898
  }, St = () => {
899
- Y(gt);
899
+ X(gt);
900
900
  }, dn = () => {
901
901
  const kt = D[G];
902
902
  kt && kt[1] === et && delete D[G];
@@ -905,7 +905,7 @@ const kv = ln.use || // This extra generic is to avoid TypeScript mixing up the
905
905
  };
906
906
  Gt(F().data) && (nn.isLoading = !0);
907
907
  try {
908
- if (Rt && (Y(nn), C.loadingTimeout && Gt(F().data) && setTimeout(() => {
908
+ if (Rt && (X(nn), C.loadingTimeout && Gt(F().data) && setTimeout(() => {
909
909
  qe && ct() && O().onLoadingSlow(G, C);
910
910
  }, C.loadingTimeout), D[G] = [
911
911
  Be(E),
@@ -975,7 +975,7 @@ const kv = ln.use || // This extra generic is to avoid TypeScript mixing up the
975
975
  return we(mt);
976
976
  }
977
977
  });
978
- return M.current = !1, L.current = G, v.current = !0, Y({
978
+ return M.current = !1, L.current = G, v.current = !0, X({
979
979
  _k: E
980
980
  }), se && (D[G] || (Gt(oe) || If ? Re() : _6(Re))), () => {
981
981
  M.current = !0, et();
@@ -1113,11 +1113,11 @@ function b9({
1113
1113
  setIsUploading: g,
1114
1114
  onHeaderBackClickCb: p
1115
1115
  }) {
1116
- const [m, S] = ot(!1), [h, b] = ot(""), [R, T] = ot(null), y = Yt(null), x = Yt(null), D = Yt(null), { documentView: H, setDocumentView: G } = Ia(), [E, v] = ot(""), [M, L] = ot(""), { setSearch: j, setTypes: Q, setDates: O, setPage: k, setHasData: F } = fi(), [Y, q] = ot([]), { setCompareMode: $, setShowPreview: re } = fi(), { clearSelectedDocuments: ee } = Ia();
1116
+ const [m, S] = ot(!1), [h, b] = ot(""), [R, T] = ot(null), y = Yt(null), x = Yt(null), D = Yt(null), { documentView: H, setDocumentView: G } = Ia(), [E, v] = ot(""), [M, L] = ot(""), { setSearch: j, setTypes: Q, setDates: O, setPage: k, setHasData: F } = fi(), [X, q] = ot([]), { setCompareMode: $, setShowPreview: re } = fi(), { clearSelectedDocuments: ee } = Ia();
1117
1117
  sn(() => {
1118
- const ae = Y.map((Ce) => Ce === "unspecified" ? "" : Ce);
1118
+ const ae = X.map((Ce) => Ce === "unspecified" ? "" : Ce);
1119
1119
  Q(ae);
1120
- }, [Y, Q]);
1120
+ }, [X, Q]);
1121
1121
  const pe = () => {
1122
1122
  S(!m), T(null);
1123
1123
  }, z = (ae) => {
@@ -1125,7 +1125,7 @@ function b9({
1125
1125
  }, B = (ae) => {
1126
1126
  T(R === ae ? null : ae);
1127
1127
  }, W = (ae) => {
1128
- const Ce = Y.includes(ae) ? Y.filter((we) => we !== ae) : [...Y, ae];
1128
+ const Ce = X.includes(ae) ? X.filter((we) => we !== ae) : [...X, ae];
1129
1129
  q(Ce);
1130
1130
  }, I = (ae, Ce) => {
1131
1131
  O((we) => ({ ...we, [ae]: Ce }));
@@ -1163,7 +1163,7 @@ function b9({
1163
1163
  children: /* @__PURE__ */ K.jsx(
1164
1164
  a6,
1165
1165
  {
1166
- isMarked: Y.includes(ae.value),
1166
+ isMarked: X.includes(ae.value),
1167
1167
  onClick: () => W(ae.value),
1168
1168
  size: "sm",
1169
1169
  text: /* @__PURE__ */ K.jsx("span", { children: ae.label })
@@ -1546,7 +1546,7 @@ function wn() {
1546
1546
  return this.m;
1547
1547
  }
1548
1548
  decompose() {
1549
- const M = this.m[0], L = this.m[1], j = this.m[2], Q = this.m[3], O = this.m[4], k = this.m[5], F = M * Q - L * j, Y = {
1549
+ const M = this.m[0], L = this.m[1], j = this.m[2], Q = this.m[3], O = this.m[4], k = this.m[5], F = M * Q - L * j, X = {
1550
1550
  x: O,
1551
1551
  y: k,
1552
1552
  rotation: 0,
@@ -1557,12 +1557,12 @@ function wn() {
1557
1557
  };
1558
1558
  if (M != 0 || L != 0) {
1559
1559
  const q = Math.sqrt(M * M + L * L);
1560
- Y.rotation = L > 0 ? Math.acos(M / q) : -Math.acos(M / q), Y.scaleX = q, Y.scaleY = F / q, Y.skewX = (M * j + L * Q) / F, Y.skewY = 0;
1560
+ X.rotation = L > 0 ? Math.acos(M / q) : -Math.acos(M / q), X.scaleX = q, X.scaleY = F / q, X.skewX = (M * j + L * Q) / F, X.skewY = 0;
1561
1561
  } else if (j != 0 || Q != 0) {
1562
1562
  const q = Math.sqrt(j * j + Q * Q);
1563
- Y.rotation = Math.PI / 2 - (Q > 0 ? Math.acos(-j / q) : -Math.acos(j / q)), Y.scaleX = F / q, Y.scaleY = q, Y.skewX = 0, Y.skewY = (M * j + L * Q) / F;
1563
+ X.rotation = Math.PI / 2 - (Q > 0 ? Math.acos(-j / q) : -Math.acos(j / q)), X.scaleX = F / q, X.scaleY = q, X.skewX = 0, X.skewY = (M * j + L * Q) / F;
1564
1564
  }
1565
- return Y.rotation = o.Util._getRotation(Y.rotation), Y;
1565
+ return X.rotation = o.Util._getRotation(X.rotation), X;
1566
1566
  }
1567
1567
  }
1568
1568
  o.Transform = C;
@@ -1895,18 +1895,18 @@ function wn() {
1895
1895
  _hslColorToRGBA(v) {
1896
1896
  if (/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.test(v)) {
1897
1897
  const [M, ...L] = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(v), j = Number(L[0]) / 360, Q = Number(L[1]) / 100, O = Number(L[2]) / 100;
1898
- let k, F, Y;
1898
+ let k, F, X;
1899
1899
  if (Q === 0)
1900
- return Y = O * 255, {
1901
- r: Math.round(Y),
1902
- g: Math.round(Y),
1903
- b: Math.round(Y),
1900
+ return X = O * 255, {
1901
+ r: Math.round(X),
1902
+ g: Math.round(X),
1903
+ b: Math.round(X),
1904
1904
  a: 1
1905
1905
  };
1906
1906
  O < 0.5 ? k = O * (1 + Q) : k = O + Q - O * Q;
1907
1907
  const q = 2 * O - k, $ = [0, 0, 0];
1908
1908
  for (let re = 0; re < 3; re++)
1909
- F = j + 1 / 3 * -(re - 1), F < 0 && F++, F > 1 && F--, 6 * F < 1 ? Y = q + (k - q) * 6 * F : 2 * F < 1 ? Y = k : 3 * F < 2 ? Y = q + (k - q) * (2 / 3 - F) * 6 : Y = q, $[re] = Y * 255;
1909
+ F = j + 1 / 3 * -(re - 1), F < 0 && F++, F > 1 && F--, 6 * F < 1 ? X = q + (k - q) * 6 * F : 2 * F < 1 ? X = k : 3 * F < 2 ? X = q + (k - q) * (2 / 3 - F) * 6 : X = q, $[re] = X * 255;
1910
1910
  return {
1911
1911
  r: Math.round($[0]),
1912
1912
  g: Math.round($[1]),
@@ -1962,15 +1962,15 @@ function wn() {
1962
1962
  return M <= v && v < L;
1963
1963
  },
1964
1964
  _getProjectionToSegment(v, M, L, j, Q, O) {
1965
- let k, F, Y;
1965
+ let k, F, X;
1966
1966
  const q = (v - L) * (v - L) + (M - j) * (M - j);
1967
1967
  if (q == 0)
1968
- k = v, F = M, Y = (Q - L) * (Q - L) + (O - j) * (O - j);
1968
+ k = v, F = M, X = (Q - L) * (Q - L) + (O - j) * (O - j);
1969
1969
  else {
1970
1970
  const $ = ((Q - v) * (L - v) + (O - M) * (j - M)) / q;
1971
- $ < 0 ? (k = v, F = M, Y = (v - Q) * (v - Q) + (M - O) * (M - O)) : $ > 1 ? (k = L, F = j, Y = (L - Q) * (L - Q) + (j - O) * (j - O)) : (k = v + $ * (L - v), F = M + $ * (j - M), Y = (k - Q) * (k - Q) + (F - O) * (F - O));
1971
+ $ < 0 ? (k = v, F = M, X = (v - Q) * (v - Q) + (M - O) * (M - O)) : $ > 1 ? (k = L, F = j, X = (L - Q) * (L - Q) + (j - O) * (j - O)) : (k = v + $ * (L - v), F = M + $ * (j - M), X = (k - Q) * (k - Q) + (F - O) * (F - O));
1972
1972
  }
1973
- return [k, F, Y];
1973
+ return [k, F, X];
1974
1974
  },
1975
1975
  _getProjectionToLine(v, M, L) {
1976
1976
  const j = o.Util.cloneObject(v);
@@ -1978,7 +1978,7 @@ function wn() {
1978
1978
  return M.forEach(function(O, k) {
1979
1979
  if (!L && k === M.length - 1)
1980
1980
  return;
1981
- const F = M[(k + 1) % M.length], Y = o.Util._getProjectionToSegment(O.x, O.y, F.x, F.y, v.x, v.y), q = Y[0], $ = Y[1], re = Y[2];
1981
+ const F = M[(k + 1) % M.length], X = o.Util._getProjectionToSegment(O.x, O.y, F.x, F.y, v.x, v.y), q = X[0], $ = X[1], re = X[2];
1982
1982
  re < Q && (j.x = q, j.y = $, Q = re);
1983
1983
  }), j;
1984
1984
  },
@@ -2129,7 +2129,7 @@ function c5() {
2129
2129
  getTrace(E, v) {
2130
2130
  let M = this.traceArr, L = M.length, j = "", Q, O, k, F;
2131
2131
  for (Q = 0; Q < L; Q++)
2132
- O = M[Q], k = O.method, k ? (F = O.args, j += k, E ? j += h : o.Util._isArray(F[0]) ? j += p + F.join(P) + m : (v && (F = F.map((Y) => typeof Y == "number" ? Math.floor(Y) : Y)), j += N + F.join(P) + g)) : (j += O.property, E || (j += b + O.val)), j += S;
2132
+ O = M[Q], k = O.method, k ? (F = O.args, j += k, E ? j += h : o.Util._isArray(F[0]) ? j += p + F.join(P) + m : (v && (F = F.map((X) => typeof X == "number" ? Math.floor(X) : X)), j += N + F.join(P) + g)) : (j += O.property, E || (j += b + O.val)), j += S;
2133
2133
  return j;
2134
2134
  }
2135
2135
  clearTrace() {
@@ -2203,8 +2203,8 @@ function c5() {
2203
2203
  return this._context.createRadialGradient(E, v, M, L, j, Q);
2204
2204
  }
2205
2205
  drawImage(E, v, M, L, j, Q, O, k, F) {
2206
- const Y = arguments, q = this._context;
2207
- Y.length === 3 ? q.drawImage(E, v, M) : Y.length === 5 ? q.drawImage(E, v, M, L, j) : Y.length === 9 && q.drawImage(E, v, M, L, j, Q, O, k, F);
2206
+ const X = arguments, q = this._context;
2207
+ X.length === 3 ? q.drawImage(E, v, M) : X.length === 5 ? q.drawImage(E, v, M, L, j) : X.length === 9 && q.drawImage(E, v, M, L, j, Q, O, k, F);
2208
2208
  }
2209
2209
  ellipse(E, v, M, L, j, Q, O, k) {
2210
2210
  this._context.ellipse(E, v, M, L, j, Q, O, k);
@@ -2387,8 +2387,8 @@ function c5() {
2387
2387
  const j = (v = E.getShadowRGBA()) !== null && v !== void 0 ? v : "black", Q = (M = E.getShadowBlur()) !== null && M !== void 0 ? M : 5, O = (L = E.getShadowOffset()) !== null && L !== void 0 ? L : {
2388
2388
  x: 0,
2389
2389
  y: 0
2390
- }, k = E.getAbsoluteScale(), F = this.canvas.getPixelRatio(), Y = k.x * F, q = k.y * F;
2391
- this.setAttr("shadowColor", j), this.setAttr("shadowBlur", Q * Math.min(Math.abs(Y), Math.abs(q))), this.setAttr("shadowOffsetX", O.x * Y), this.setAttr("shadowOffsetY", O.y * q);
2390
+ }, k = E.getAbsoluteScale(), F = this.canvas.getPixelRatio(), X = k.x * F, q = k.y * F;
2391
+ this.setAttr("shadowColor", j), this.setAttr("shadowBlur", Q * Math.min(Math.abs(X), Math.abs(q))), this.setAttr("shadowOffsetX", O.x * X), this.setAttr("shadowOffsetY", O.y * q);
2392
2392
  }
2393
2393
  }
2394
2394
  El.SceneContext = D;
@@ -2723,7 +2723,7 @@ var N2;
2723
2723
  function Mn() {
2724
2724
  if (N2) return $c;
2725
2725
  N2 = 1, Object.defineProperty($c, "__esModule", { value: !0 }), $c.Node = void 0;
2726
- const o = n0(), u = g1(), C = wt(), P = Ct(), N = wn(), g = Ot(), p = "absoluteOpacity", m = "allEventListeners", S = "absoluteTransform", h = "absoluteScale", b = "canvas", R = "Change", T = "children", y = "konva", x = "listening", D = "mouseenter", H = "mouseleave", G = "pointerenter", E = "pointerleave", v = "touchenter", M = "touchleave", L = "set", j = "Shape", Q = " ", O = "stage", k = "transform", F = "Stage", Y = "visible", q = [
2726
+ const o = n0(), u = g1(), C = wt(), P = Ct(), N = wn(), g = Ot(), p = "absoluteOpacity", m = "allEventListeners", S = "absoluteTransform", h = "absoluteScale", b = "canvas", R = "Change", T = "children", y = "konva", x = "listening", D = "mouseenter", H = "mouseleave", G = "pointerenter", E = "pointerleave", v = "touchenter", M = "touchleave", L = "set", j = "Shape", Q = " ", O = "stage", k = "transform", F = "Stage", X = "visible", q = [
2727
2727
  "xChange.konva",
2728
2728
  "yChange.konva",
2729
2729
  "scaleXChange.konva",
@@ -2922,7 +2922,7 @@ function Mn() {
2922
2922
  return this.isDragging() && this.stopDrag(), u.DD._dragElements.delete(this._id), this._remove(), this;
2923
2923
  }
2924
2924
  _clearCaches() {
2925
- this._clearSelfAndDescendantCache(S), this._clearSelfAndDescendantCache(p), this._clearSelfAndDescendantCache(h), this._clearSelfAndDescendantCache(O), this._clearSelfAndDescendantCache(Y), this._clearSelfAndDescendantCache(x);
2925
+ this._clearSelfAndDescendantCache(S), this._clearSelfAndDescendantCache(p), this._clearSelfAndDescendantCache(h), this._clearSelfAndDescendantCache(O), this._clearSelfAndDescendantCache(X), this._clearSelfAndDescendantCache(x);
2926
2926
  }
2927
2927
  _remove() {
2928
2928
  this._clearCaches();
@@ -2964,7 +2964,7 @@ function Mn() {
2964
2964
  return W && W !== z && this !== z ? W._isListening(z) : !0;
2965
2965
  }
2966
2966
  isVisible() {
2967
- return this._getCache(Y, this._isVisible);
2967
+ return this._getCache(X, this._isVisible);
2968
2968
  }
2969
2969
  _isVisible(z) {
2970
2970
  if (!this.visible())
@@ -3516,7 +3516,7 @@ function Mn() {
3516
3516
  }
3517
3517
  this._clearCache(k), this._clearSelfAndDescendantCache(S);
3518
3518
  }), re.prototype.on.call(re.prototype, "visibleChange.konva", function() {
3519
- this._clearSelfAndDescendantCache(Y);
3519
+ this._clearSelfAndDescendantCache(X);
3520
3520
  }), re.prototype.on.call(re.prototype, "listeningChange.konva", function() {
3521
3521
  this._clearSelfAndDescendantCache(x);
3522
3522
  }), re.prototype.on.call(re.prototype, "opacityChange.konva", function() {
@@ -3763,7 +3763,7 @@ var L2;
3763
3763
  function A9() {
3764
3764
  return L2 || (L2 = 1, function(o) {
3765
3765
  Object.defineProperty(o, "__esModule", { value: !0 }), o.Stage = o.stages = void 0;
3766
- const u = wn(), C = wt(), P = r0(), N = Ct(), g = n0(), p = g1(), m = Ct(), S = f5(), h = "Stage", b = "string", R = "px", T = "mouseout", y = "mouseleave", x = "mouseover", D = "mouseenter", H = "mousemove", G = "mousedown", E = "mouseup", v = "pointermove", M = "pointerdown", L = "pointerup", j = "pointercancel", Q = "lostpointercapture", O = "pointerout", k = "pointerleave", F = "pointerover", Y = "pointerenter", q = "contextmenu", $ = "touchstart", re = "touchend", ee = "touchmove", pe = "touchcancel", z = "wheel", B = 5, W = [
3766
+ const u = wn(), C = wt(), P = r0(), N = Ct(), g = n0(), p = g1(), m = Ct(), S = f5(), h = "Stage", b = "string", R = "px", T = "mouseout", y = "mouseleave", x = "mouseover", D = "mouseenter", H = "mousemove", G = "mousedown", E = "mouseup", v = "pointermove", M = "pointerdown", L = "pointerup", j = "pointercancel", Q = "lostpointercapture", O = "pointerout", k = "pointerleave", F = "pointerover", X = "pointerenter", q = "contextmenu", $ = "touchstart", re = "touchend", ee = "touchmove", pe = "touchcancel", z = "wheel", B = 5, W = [
3767
3767
  [D, "_pointerenter"],
3768
3768
  [G, "_pointerdown"],
3769
3769
  [H, "_pointermove"],
@@ -3787,7 +3787,7 @@ function A9() {
3787
3787
  [O]: T,
3788
3788
  [k]: y,
3789
3789
  [F]: x,
3790
- [Y]: D,
3790
+ [X]: D,
3791
3791
  [v]: H,
3792
3792
  [M]: G,
3793
3793
  [L]: E,
@@ -3799,7 +3799,7 @@ function A9() {
3799
3799
  [O]: "touchout",
3800
3800
  [k]: "touchleave",
3801
3801
  [F]: "touchover",
3802
- [Y]: "touchenter",
3802
+ [X]: "touchenter",
3803
3803
  [v]: ee,
3804
3804
  [M]: $,
3805
3805
  [L]: re,
@@ -3811,7 +3811,7 @@ function A9() {
3811
3811
  [O]: O,
3812
3812
  [k]: k,
3813
3813
  [F]: F,
3814
- [Y]: Y,
3814
+ [X]: X,
3815
3815
  [v]: v,
3816
3816
  [M]: M,
3817
3817
  [L]: L,
@@ -4239,10 +4239,10 @@ function sr() {
4239
4239
  class O extends N.Node {
4240
4240
  constructor(F) {
4241
4241
  super(F);
4242
- let Y;
4243
- for (; Y = C.Util.getRandomColor(), !(Y && !(Y in o.shapes)); )
4242
+ let X;
4243
+ for (; X = C.Util.getRandomColor(), !(X && !(X in o.shapes)); )
4244
4244
  ;
4245
- this.colorKey = Y, o.shapes[Y] = this;
4245
+ this.colorKey = X, o.shapes[X] = this;
4246
4246
  }
4247
4247
  getContext() {
4248
4248
  return C.Util.warn("shape.getContext() method is deprecated. Please do not use it."), this.getLayer().getContext();
@@ -4267,8 +4267,8 @@ function sr() {
4267
4267
  }
4268
4268
  __getFillPattern() {
4269
4269
  if (this.fillPatternImage()) {
4270
- const Y = x().createPattern(this.fillPatternImage(), this.fillPatternRepeat() || "repeat");
4271
- if (Y && Y.setTransform) {
4270
+ const X = x().createPattern(this.fillPatternImage(), this.fillPatternRepeat() || "repeat");
4271
+ if (X && X.setTransform) {
4272
4272
  const q = new C.Transform();
4273
4273
  q.translate(this.fillPatternX(), this.fillPatternY()), q.rotate(u.Konva.getAngle(this.fillPatternRotation())), q.scale(this.fillPatternScaleX(), this.fillPatternScaleY()), q.translate(-1 * this.fillPatternOffsetX(), -1 * this.fillPatternOffsetY());
4274
4274
  const $ = q.getMatrix(), re = typeof DOMMatrix > "u" ? {
@@ -4279,9 +4279,9 @@ function sr() {
4279
4279
  e: $[4],
4280
4280
  f: $[5]
4281
4281
  } : new DOMMatrix($);
4282
- Y.setTransform(re);
4282
+ X.setTransform(re);
4283
4283
  }
4284
- return Y;
4284
+ return X;
4285
4285
  }
4286
4286
  }
4287
4287
  _getLinearGradient() {
@@ -4290,7 +4290,7 @@ function sr() {
4290
4290
  __getLinearGradient() {
4291
4291
  const F = this.fillLinearGradientColorStops();
4292
4292
  if (F) {
4293
- const Y = x(), q = this.fillLinearGradientStartPoint(), $ = this.fillLinearGradientEndPoint(), re = Y.createLinearGradient(q.x, q.y, $.x, $.y);
4293
+ const X = x(), q = this.fillLinearGradientStartPoint(), $ = this.fillLinearGradientEndPoint(), re = X.createLinearGradient(q.x, q.y, $.x, $.y);
4294
4294
  for (let ee = 0; ee < F.length; ee += 2)
4295
4295
  re.addColorStop(F[ee], F[ee + 1]);
4296
4296
  return re;
@@ -4302,7 +4302,7 @@ function sr() {
4302
4302
  __getRadialGradient() {
4303
4303
  const F = this.fillRadialGradientColorStops();
4304
4304
  if (F) {
4305
- const Y = x(), q = this.fillRadialGradientStartPoint(), $ = this.fillRadialGradientEndPoint(), re = Y.createRadialGradient(q.x, q.y, this.fillRadialGradientStartRadius(), $.x, $.y, this.fillRadialGradientEndRadius());
4305
+ const X = x(), q = this.fillRadialGradientStartPoint(), $ = this.fillRadialGradientEndPoint(), re = X.createRadialGradient(q.x, q.y, this.fillRadialGradientStartRadius(), $.x, $.y, this.fillRadialGradientEndRadius());
4306
4306
  for (let ee = 0; ee < F.length; ee += 2)
4307
4307
  re.addColorStop(F[ee], F[ee + 1]);
4308
4308
  return re;
@@ -4340,18 +4340,18 @@ function sr() {
4340
4340
  return F === "auto" ? this.hasStroke() : this.strokeEnabled() && !!F;
4341
4341
  }
4342
4342
  intersects(F) {
4343
- const Y = this.getStage();
4344
- if (!Y)
4343
+ const X = this.getStage();
4344
+ if (!X)
4345
4345
  return !1;
4346
- const q = Y.bufferHitCanvas;
4346
+ const q = X.bufferHitCanvas;
4347
4347
  return q.getContext().clear(), this.drawHit(q, void 0, !0), q.context.getImageData(Math.round(F.x), Math.round(F.y), 1, 1).data[3] > 0;
4348
4348
  }
4349
4349
  destroy() {
4350
4350
  return N.Node.prototype.destroy.call(this), delete o.shapes[this.colorKey], delete this.colorKey, this;
4351
4351
  }
4352
4352
  _useBufferCanvas(F) {
4353
- var Y;
4354
- if (!((Y = this.attrs.perfectDrawEnabled) !== null && Y !== void 0 ? Y : !0))
4353
+ var X;
4354
+ if (!((X = this.attrs.perfectDrawEnabled) !== null && X !== void 0 ? X : !0))
4355
4355
  return !1;
4356
4356
  const $ = F || this.hasFill(), re = this.hasStroke(), ee = this.getAbsoluteOpacity() !== 1;
4357
4357
  if ($ && re && ee)
@@ -4375,15 +4375,15 @@ function sr() {
4375
4375
  };
4376
4376
  }
4377
4377
  getClientRect(F = {}) {
4378
- let Y = !1, q = this.getParent();
4378
+ let X = !1, q = this.getParent();
4379
4379
  for (; q; ) {
4380
4380
  if (q.isCached()) {
4381
- Y = !0;
4381
+ X = !0;
4382
4382
  break;
4383
4383
  }
4384
4384
  q = q.getParent();
4385
4385
  }
4386
- const $ = F.skipTransform, re = F.relativeTo || Y && this.getStage() || void 0, ee = this.getSelfRect(), z = !F.skipStroke && this.hasStroke() && this.strokeWidth() || 0, B = ee.width + z, W = ee.height + z, I = !F.skipShadow && this.hasShadow(), J = I ? this.shadowOffsetX() : 0, oe = I ? this.shadowOffsetY() : 0, ne = B + Math.abs(J), me = W + Math.abs(oe), Ae = I && this.shadowBlur() || 0, se = ne + Ae * 2, _ = me + Ae * 2, ae = {
4386
+ const $ = F.skipTransform, re = F.relativeTo || X && this.getStage() || void 0, ee = this.getSelfRect(), z = !F.skipStroke && this.hasStroke() && this.strokeWidth() || 0, B = ee.width + z, W = ee.height + z, I = !F.skipShadow && this.hasShadow(), J = I ? this.shadowOffsetX() : 0, oe = I ? this.shadowOffsetY() : 0, ne = B + Math.abs(J), me = W + Math.abs(oe), Ae = I && this.shadowBlur() || 0, se = ne + Ae * 2, _ = me + Ae * 2, ae = {
4387
4387
  width: se,
4388
4388
  height: _,
4389
4389
  x: -(z / 2 + Ae) + Math.min(J, 0) + ee.x,
@@ -4391,15 +4391,15 @@ function sr() {
4391
4391
  };
4392
4392
  return $ ? ae : this._transformedRect(ae, re);
4393
4393
  }
4394
- drawScene(F, Y, q) {
4394
+ drawScene(F, X, q) {
4395
4395
  const $ = this.getLayer(), re = F || $.getCanvas(), ee = re.getContext(), pe = this._getCanvasCache(), z = this.getSceneFunc(), B = this.hasShadow();
4396
4396
  let W;
4397
- const I = Y === this;
4397
+ const I = X === this;
4398
4398
  if (!this.isVisible() && !I)
4399
4399
  return this;
4400
4400
  if (pe) {
4401
4401
  ee.save();
4402
- const J = this.getAbsoluteTransform(Y).getMatrix();
4402
+ const J = this.getAbsoluteTransform(X).getMatrix();
4403
4403
  return ee.transform(J[0], J[1], J[2], J[3], J[4], J[5]), this._drawCachedSceneCanvas(ee), ee.restore(), this;
4404
4404
  }
4405
4405
  if (!z)
@@ -4408,38 +4408,38 @@ function sr() {
4408
4408
  W = this.getStage();
4409
4409
  const J = q || W.bufferCanvas, oe = J.getContext();
4410
4410
  oe.clear(), oe.save(), oe._applyLineJoin(this);
4411
- const ne = this.getAbsoluteTransform(Y).getMatrix();
4411
+ const ne = this.getAbsoluteTransform(X).getMatrix();
4412
4412
  oe.transform(ne[0], ne[1], ne[2], ne[3], ne[4], ne[5]), z.call(this, oe, this), oe.restore();
4413
4413
  const me = J.pixelRatio;
4414
4414
  B && ee._applyShadow(this), ee._applyOpacity(this), ee._applyGlobalCompositeOperation(this), ee.drawImage(J._canvas, J.x || 0, J.y || 0, J.width / me, J.height / me);
4415
4415
  } else {
4416
4416
  if (ee._applyLineJoin(this), !I) {
4417
- const J = this.getAbsoluteTransform(Y).getMatrix();
4417
+ const J = this.getAbsoluteTransform(X).getMatrix();
4418
4418
  ee.transform(J[0], J[1], J[2], J[3], J[4], J[5]), ee._applyOpacity(this), ee._applyGlobalCompositeOperation(this);
4419
4419
  }
4420
4420
  B && ee._applyShadow(this), z.call(this, ee, this);
4421
4421
  }
4422
4422
  return ee.restore(), this;
4423
4423
  }
4424
- drawHit(F, Y, q = !1) {
4425
- if (!this.shouldDrawHit(Y, q))
4424
+ drawHit(F, X, q = !1) {
4425
+ if (!this.shouldDrawHit(X, q))
4426
4426
  return this;
4427
4427
  const $ = this.getLayer(), re = F || $.hitCanvas, ee = re && re.getContext(), pe = this.hitFunc() || this.sceneFunc(), z = this._getCanvasCache(), B = z && z.hit;
4428
4428
  if (this.colorKey || C.Util.warn("Looks like your canvas has a destroyed shape in it. Do not reuse shape after you destroyed it. If you want to reuse shape you should call remove() instead of destroy()"), B) {
4429
4429
  ee.save();
4430
- const I = this.getAbsoluteTransform(Y).getMatrix();
4430
+ const I = this.getAbsoluteTransform(X).getMatrix();
4431
4431
  return ee.transform(I[0], I[1], I[2], I[3], I[4], I[5]), this._drawCachedHitCanvas(ee), ee.restore(), this;
4432
4432
  }
4433
4433
  if (!pe)
4434
4434
  return this;
4435
- if (ee.save(), ee._applyLineJoin(this), !(this === Y)) {
4436
- const I = this.getAbsoluteTransform(Y).getMatrix();
4435
+ if (ee.save(), ee._applyLineJoin(this), !(this === X)) {
4436
+ const I = this.getAbsoluteTransform(X).getMatrix();
4437
4437
  ee.transform(I[0], I[1], I[2], I[3], I[4], I[5]);
4438
4438
  }
4439
4439
  return pe.call(this, ee, this), ee.restore(), this;
4440
4440
  }
4441
4441
  drawHitFromCache(F = 0) {
4442
- const Y = this._getCanvasCache(), q = this._getCachedSceneCanvas(), $ = Y.hit, re = $.getContext(), ee = $.getWidth(), pe = $.getHeight();
4442
+ const X = this._getCanvasCache(), q = this._getCachedSceneCanvas(), $ = X.hit, re = $.getContext(), ee = $.getWidth(), pe = $.getHeight();
4443
4443
  re.clear(), re.drawImage(q._canvas, 0, 0, ee, pe);
4444
4444
  try {
4445
4445
  const z = re.getImageData(0, 0, ee, pe), B = z.data, W = B.length, I = C.Util._hexToRgb(this.colorKey);
@@ -6169,7 +6169,7 @@ function x1() {
6169
6169
  for (; v.length > 0 && !isNaN(v[0]); ) {
6170
6170
  let M = "", L = [];
6171
6171
  const j = T, Q = y;
6172
- let O, k, F, Y, q, $, re, ee, pe, z;
6172
+ let O, k, F, X, q, $, re, ee, pe, z;
6173
6173
  switch (E) {
6174
6174
  case "l":
6175
6175
  T += v.shift(), y += v.shift(), M = "L", L.push(T, y);
@@ -6228,10 +6228,10 @@ function x1() {
6228
6228
  k = T, F = y, O = b[b.length - 1], O.command === "Q" && (k = T + (T - O.points[0]), F = y + (y - O.points[1])), T += v.shift(), y += v.shift(), M = "Q", L.push(k, F, T, y);
6229
6229
  break;
6230
6230
  case "A":
6231
- Y = v.shift(), q = v.shift(), $ = v.shift(), re = v.shift(), ee = v.shift(), pe = T, z = y, T = v.shift(), y = v.shift(), M = "A", L = this.convertEndpointToCenterParameterization(pe, z, T, y, re, ee, Y, q, $);
6231
+ X = v.shift(), q = v.shift(), $ = v.shift(), re = v.shift(), ee = v.shift(), pe = T, z = y, T = v.shift(), y = v.shift(), M = "A", L = this.convertEndpointToCenterParameterization(pe, z, T, y, re, ee, X, q, $);
6232
6232
  break;
6233
6233
  case "a":
6234
- Y = v.shift(), q = v.shift(), $ = v.shift(), re = v.shift(), ee = v.shift(), pe = T, z = y, T += v.shift(), y += v.shift(), M = "A", L = this.convertEndpointToCenterParameterization(pe, z, T, y, re, ee, Y, q, $);
6234
+ X = v.shift(), q = v.shift(), $ = v.shift(), re = v.shift(), ee = v.shift(), pe = T, z = y, T += v.shift(), y += v.shift(), M = "A", L = this.convertEndpointToCenterParameterization(pe, z, T, y, re, ee, X, q, $);
6235
6235
  break;
6236
6236
  }
6237
6237
  b.push({
@@ -6288,9 +6288,9 @@ function x1() {
6288
6288
  return (ee[0] * pe[0] + ee[1] * pe[1]) / (O(ee) * O(pe));
6289
6289
  }, F = function(ee, pe) {
6290
6290
  return (ee[0] * pe[1] < ee[1] * pe[0] ? -1 : 1) * Math.acos(k(ee, pe));
6291
- }, Y = F([1, 0], [(H - M) / T, (G - L) / y]), q = [(H - M) / T, (G - L) / y], $ = [(-1 * H - M) / T, (-1 * G - L) / y];
6291
+ }, X = F([1, 0], [(H - M) / T, (G - L) / y]), q = [(H - M) / T, (G - L) / y], $ = [(-1 * H - M) / T, (-1 * G - L) / y];
6292
6292
  let re = F(q, $);
6293
- return k(q, $) <= -1 && (re = Math.PI), k(q, $) >= 1 && (re = 0), R === 0 && re > 0 && (re = re - 2 * Math.PI), R === 1 && re < 0 && (re = re + 2 * Math.PI), [j, Q, T, y, Y, re, D, R];
6293
+ return k(q, $) <= -1 && (re = Math.PI), k(q, $) >= 1 && (re = 0), R === 0 && re > 0 && (re = re - 2 * Math.PI), R === 1 && re < 0 && (re = re + 2 * Math.PI), [j, Q, T, y, X, re, D, R];
6294
6294
  }
6295
6295
  };
6296
6296
  return uf.Path = N, N.prototype.className = "Path", N.prototype._attrsAffectingSize = ["data"], (0, u._registerNode)(N), o.Factory.addGetterSetter(N, "data"), uf;
@@ -6748,7 +6748,7 @@ function v5() {
6748
6748
  return ne;
6749
6749
  }, []);
6750
6750
  }
6751
- const m = "auto", S = "center", h = "inherit", b = "justify", R = "Change.konva", T = "2d", y = "-", x = "left", D = "text", H = "Text", G = "top", E = "bottom", v = "middle", M = "normal", L = "px ", j = " ", Q = "right", O = "rtl", k = "word", F = "char", Y = "none", q = "…", $ = [
6751
+ const m = "auto", S = "center", h = "inherit", b = "justify", R = "Change.konva", T = "2d", y = "-", x = "left", D = "text", H = "Text", G = "top", E = "bottom", v = "middle", M = "normal", L = "px ", j = " ", Q = "right", O = "rtl", k = "word", F = "char", X = "none", q = "…", $ = [
6752
6752
  "direction",
6753
6753
  "fontFamily",
6754
6754
  "fontSize",
@@ -6894,7 +6894,7 @@ function v5() {
6894
6894
  }
6895
6895
  _setTextData() {
6896
6896
  let ne = this.text().split(`
6897
- `), me = +this.fontSize(), Ae = 0, se = this.lineHeight() * me, _ = this.attrs.width, ae = this.attrs.height, Ce = _ !== m && _ !== void 0, we = ae !== m && ae !== void 0, Me = this.padding(), Ye = _ - Me * 2, Re = ae - Me * 2, Be = 0, Ge = this.wrap(), et = Ge !== Y, qe = Ge !== F && et, mt = this.ellipsis();
6897
+ `), me = +this.fontSize(), Ae = 0, se = this.lineHeight() * me, _ = this.attrs.width, ae = this.attrs.height, Ce = _ !== m && _ !== void 0, we = ae !== m && ae !== void 0, Me = this.padding(), Ye = _ - Me * 2, Re = ae - Me * 2, Be = 0, Ge = this.wrap(), et = Ge !== X, qe = Ge !== F && et, mt = this.ellipsis();
6898
6898
  this.textArr = [], z().font = this._getContextFont();
6899
6899
  const Rt = mt ? this._getTextWidth(q) : 0;
6900
6900
  for (let ct = 0, gt = ne.length; ct < gt; ++ct) {
@@ -6938,7 +6938,7 @@ function v5() {
6938
6938
  }
6939
6939
  _shouldHandleEllipsis(ne) {
6940
6940
  const me = +this.fontSize(), Ae = this.lineHeight() * me, se = this.attrs.height, _ = se !== m && se !== void 0, ae = this.padding(), Ce = se - ae * 2;
6941
- return !(this.wrap() !== Y) || _ && ne + Ae > Ce;
6941
+ return !(this.wrap() !== X) || _ && ne + Ae > Ce;
6942
6942
  }
6943
6943
  _tryToAddEllipsisToLastLine() {
6944
6944
  const ne = this.attrs.width, me = ne !== m && ne !== void 0, Ae = this.padding(), se = ne - Ae * 2, _ = this.ellipsis(), ae = this.textArr[this.textArr.length - 1];
@@ -7057,15 +7057,15 @@ function H9() {
7057
7057
  if (!k)
7058
7058
  return;
7059
7059
  const F = P.Path.getLineLength(Q.x, Q.y, k.x, k.y);
7060
- let Y = 0;
7060
+ let X = 0;
7061
7061
  if (G)
7062
7062
  try {
7063
- Y = G(M[j - 1], M[j]) * this.fontSize();
7063
+ X = G(M[j - 1], M[j]) * this.fontSize();
7064
7064
  } catch {
7065
- Y = 0;
7065
+ X = 0;
7066
7066
  }
7067
- Q.x += Y, k.x += Y, this.textWidth += Y;
7068
- const q = P.Path.getPointOnLine(Y + F / 2, Q.x, Q.y, k.x, k.y), $ = Math.atan2(k.y - Q.y, k.x - Q.x);
7067
+ Q.x += X, k.x += X, this.textWidth += X;
7068
+ const q = P.Path.getPointOnLine(X + F / 2, Q.x, Q.y, k.x, k.y), $ = Math.atan2(k.y - Q.y, k.x - Q.x);
7069
7069
  this.glyphInfo.push({
7070
7070
  transposeX: q.x,
7071
7071
  transposeY: q.y,
@@ -7151,8 +7151,8 @@ function k9() {
7151
7151
  if (O === "rotater")
7152
7152
  return F;
7153
7153
  k += o.Util.degToRad(y[O] || 0);
7154
- const Y = (o.Util.radToDeg(k) % 360 + 360) % 360;
7155
- return o.Util._inRange(Y, 315 + 22.5, 360) || o.Util._inRange(Y, 0, 22.5) ? "ns-resize" : o.Util._inRange(Y, 45 - 22.5, 45 + 22.5) ? "nesw-resize" : o.Util._inRange(Y, 90 - 22.5, 90 + 22.5) ? "ew-resize" : o.Util._inRange(Y, 135 - 22.5, 135 + 22.5) ? "nwse-resize" : o.Util._inRange(Y, 180 - 22.5, 180 + 22.5) ? "ns-resize" : o.Util._inRange(Y, 225 - 22.5, 225 + 22.5) ? "nesw-resize" : o.Util._inRange(Y, 270 - 22.5, 270 + 22.5) ? "ew-resize" : o.Util._inRange(Y, 315 - 22.5, 315 + 22.5) ? "nwse-resize" : (o.Util.error("Transformer has unknown angle for cursor detection: " + Y), "pointer");
7154
+ const X = (o.Util.radToDeg(k) % 360 + 360) % 360;
7155
+ return o.Util._inRange(X, 315 + 22.5, 360) || o.Util._inRange(X, 0, 22.5) ? "ns-resize" : o.Util._inRange(X, 45 - 22.5, 45 + 22.5) ? "nesw-resize" : o.Util._inRange(X, 90 - 22.5, 90 + 22.5) ? "ew-resize" : o.Util._inRange(X, 135 - 22.5, 135 + 22.5) ? "nwse-resize" : o.Util._inRange(X, 180 - 22.5, 180 + 22.5) ? "ns-resize" : o.Util._inRange(X, 225 - 22.5, 225 + 22.5) ? "nesw-resize" : o.Util._inRange(X, 270 - 22.5, 270 + 22.5) ? "ew-resize" : o.Util._inRange(X, 315 - 22.5, 315 + 22.5) ? "nwse-resize" : (o.Util.error("Transformer has unknown angle for cursor detection: " + X), "pointer");
7156
7156
  }
7157
7157
  const H = [
7158
7158
  "top-left",
@@ -7171,11 +7171,11 @@ function k9() {
7171
7171
  };
7172
7172
  }
7173
7173
  function E(O, k, F) {
7174
- const Y = F.x + (O.x - F.x) * Math.cos(k) - (O.y - F.y) * Math.sin(k), q = F.y + (O.x - F.x) * Math.sin(k) + (O.y - F.y) * Math.cos(k);
7174
+ const X = F.x + (O.x - F.x) * Math.cos(k) - (O.y - F.y) * Math.sin(k), q = F.y + (O.x - F.x) * Math.sin(k) + (O.y - F.y) * Math.cos(k);
7175
7175
  return {
7176
7176
  ...O,
7177
7177
  rotation: O.rotation + k,
7178
- x: Y,
7178
+ x: X,
7179
7179
  y: q
7180
7180
  };
7181
7181
  }
@@ -7184,12 +7184,12 @@ function k9() {
7184
7184
  return E(O, k, F);
7185
7185
  }
7186
7186
  function M(O, k, F) {
7187
- let Y = k;
7187
+ let X = k;
7188
7188
  for (let q = 0; q < O.length; q++) {
7189
7189
  const $ = p.Konva.getAngle(O[q]), re = Math.abs($ - k) % (Math.PI * 2);
7190
- Math.min(re, Math.PI * 2 - re) < F && (Y = $);
7190
+ Math.min(re, Math.PI * 2 - re) < F && (X = $);
7191
7191
  }
7192
- return Y;
7192
+ return X;
7193
7193
  }
7194
7194
  let L = 0, j = class extends g.Group {
7195
7195
  constructor(k) {
@@ -7223,9 +7223,9 @@ function k9() {
7223
7223
  }
7224
7224
  _proxyDrag(k) {
7225
7225
  let F;
7226
- k.on(`dragstart.${this._getEventNamespace()}`, (Y) => {
7227
- F = k.getAbsolutePosition(), !this.isDragging() && k !== this.findOne(".back") && this.startDrag(Y, !1);
7228
- }), k.on(`dragmove.${this._getEventNamespace()}`, (Y) => {
7226
+ k.on(`dragstart.${this._getEventNamespace()}`, (X) => {
7227
+ F = k.getAbsolutePosition(), !this.isDragging() && k !== this.findOne(".back") && this.startDrag(X, !1);
7228
+ }), k.on(`dragmove.${this._getEventNamespace()}`, (X) => {
7229
7229
  if (!F)
7230
7230
  return;
7231
7231
  const q = k.getAbsolutePosition(), $ = q.x - F.x, re = q.y - F.y;
@@ -7236,7 +7236,7 @@ function k9() {
7236
7236
  ee.setAbsolutePosition({
7237
7237
  x: pe.x + $,
7238
7238
  y: pe.y + re
7239
- }), ee.startDrag(Y);
7239
+ }), ee.startDrag(X);
7240
7240
  }), F = null;
7241
7241
  });
7242
7242
  }
@@ -7257,12 +7257,12 @@ function k9() {
7257
7257
  _getNodeRect() {
7258
7258
  return this._getCache(R, this.__getNodeRect);
7259
7259
  }
7260
- __getNodeShape(k, F = this.rotation(), Y) {
7260
+ __getNodeShape(k, F = this.rotation(), X) {
7261
7261
  const q = k.getClientRect({
7262
7262
  skipTransform: !0,
7263
7263
  skipShadow: !0,
7264
7264
  skipStroke: this.ignoreStroke()
7265
- }), $ = k.getAbsoluteScale(Y), re = k.getAbsolutePosition(Y), ee = q.x * $.x - k.offsetX() * $.x, pe = q.y * $.y - k.offsetY() * $.y, z = (p.Konva.getAngle(k.getAbsoluteRotation()) + Math.PI * 2) % (Math.PI * 2), B = {
7265
+ }), $ = k.getAbsoluteScale(X), re = k.getAbsolutePosition(X), ee = q.x * $.x - k.offsetX() * $.x, pe = q.y * $.y - k.offsetY() * $.y, z = (p.Konva.getAngle(k.getAbsoluteRotation()) + Math.PI * 2) % (Math.PI * 2), B = {
7266
7266
  x: re.x + ee * Math.cos(z) + pe * Math.sin(-z),
7267
7267
  y: re.y + pe * Math.cos(z) + ee * Math.sin(z),
7268
7268
  width: q.width * $.x,
@@ -7300,14 +7300,14 @@ function k9() {
7300
7300
  F.push(oe);
7301
7301
  });
7302
7302
  });
7303
- const Y = new o.Transform();
7304
- Y.rotate(-p.Konva.getAngle(this.rotation()));
7303
+ const X = new o.Transform();
7304
+ X.rotate(-p.Konva.getAngle(this.rotation()));
7305
7305
  let q = 1 / 0, $ = 1 / 0, re = -1 / 0, ee = -1 / 0;
7306
7306
  F.forEach(function(z) {
7307
- const B = Y.point(z);
7307
+ const B = X.point(z);
7308
7308
  q === void 0 && (q = re = B.x, $ = ee = B.y), q = Math.min(q, B.x), $ = Math.min($, B.y), re = Math.max(re, B.x), ee = Math.max(ee, B.y);
7309
- }), Y.invert();
7310
- const pe = Y.point({ x: q, y: $ });
7309
+ }), X.invert();
7310
+ const pe = X.point({ x: q, y: $ });
7311
7311
  return {
7312
7312
  x: pe.x,
7313
7313
  y: pe.y,
@@ -7342,9 +7342,9 @@ function k9() {
7342
7342
  dragDistance: 0,
7343
7343
  draggable: !0,
7344
7344
  hitStrokeWidth: x ? 10 : "auto"
7345
- }), Y = this;
7345
+ }), X = this;
7346
7346
  F.on("mousedown touchstart", function(q) {
7347
- Y._handleMouseDown(q);
7347
+ X._handleMouseDown(q);
7348
7348
  }), F.on("dragstart", (q) => {
7349
7349
  F.stopDrag(), q.cancelBubble = !0;
7350
7350
  }), F.on("dragend", (q) => {
@@ -7362,15 +7362,15 @@ function k9() {
7362
7362
  width: 0,
7363
7363
  height: 0,
7364
7364
  draggable: !0,
7365
- sceneFunc(F, Y) {
7366
- const q = Y.getParent(), $ = q.padding();
7367
- F.beginPath(), F.rect(-$, -$, Y.width() + $ * 2, Y.height() + $ * 2), F.moveTo(Y.width() / 2, -$), q.rotateEnabled() && q.rotateLineVisible() && F.lineTo(Y.width() / 2, -q.rotateAnchorOffset() * o.Util._sign(Y.height()) - $), F.fillStrokeShape(Y);
7365
+ sceneFunc(F, X) {
7366
+ const q = X.getParent(), $ = q.padding();
7367
+ F.beginPath(), F.rect(-$, -$, X.width() + $ * 2, X.height() + $ * 2), F.moveTo(X.width() / 2, -$), q.rotateEnabled() && q.rotateLineVisible() && F.lineTo(X.width() / 2, -q.rotateAnchorOffset() * o.Util._sign(X.height()) - $), F.fillStrokeShape(X);
7368
7368
  },
7369
- hitFunc: (F, Y) => {
7369
+ hitFunc: (F, X) => {
7370
7370
  if (!this.shouldOverdrawWholeArea())
7371
7371
  return;
7372
7372
  const q = this.padding();
7373
- F.beginPath(), F.rect(-q, -q, Y.width() + q * 2, Y.height() + q * 2), F.fillStrokeShape(Y);
7373
+ F.beginPath(), F.rect(-q, -q, X.width() + q * 2, X.height() + q * 2), F.fillStrokeShape(X);
7374
7374
  }
7375
7375
  });
7376
7376
  this.add(k), this._proxyDrag(k), k.on("dragstart", (F) => {
@@ -7387,8 +7387,8 @@ function k9() {
7387
7387
  if (this._transforming)
7388
7388
  return;
7389
7389
  this._movingAnchorName = k.target.name().split(" ")[0];
7390
- const F = this._getNodeRect(), Y = F.width, q = F.height, $ = Math.sqrt(Math.pow(Y, 2) + Math.pow(q, 2));
7391
- this.sin = Math.abs(q / $), this.cos = Math.abs(Y / $), typeof window < "u" && (window.addEventListener("mousemove", this._handleMouseMove), window.addEventListener("touchmove", this._handleMouseMove), window.addEventListener("mouseup", this._handleMouseUp, !0), window.addEventListener("touchend", this._handleMouseUp, !0)), this._transforming = !0;
7390
+ const F = this._getNodeRect(), X = F.width, q = F.height, $ = Math.sqrt(Math.pow(X, 2) + Math.pow(q, 2));
7391
+ this.sin = Math.abs(q / $), this.cos = Math.abs(X / $), typeof window < "u" && (window.addEventListener("mousemove", this._handleMouseMove), window.addEventListener("touchmove", this._handleMouseMove), window.addEventListener("mouseup", this._handleMouseUp, !0), window.addEventListener("touchend", this._handleMouseUp, !0)), this._transforming = !0;
7392
7392
  const re = k.target.getAbsolutePosition(), ee = k.target.getStage().getPointerPosition();
7393
7393
  this._anchorDragOffset = {
7394
7394
  x: ee.x - re.x,
@@ -7398,7 +7398,7 @@ function k9() {
7398
7398
  });
7399
7399
  }
7400
7400
  _handleMouseMove(k) {
7401
- let F, Y, q;
7401
+ let F, X, q;
7402
7402
  const $ = this.findOne("." + this._movingAnchorName), re = $.getStage();
7403
7403
  re.setPointersPositions(k);
7404
7404
  const ee = re.getPointerPosition();
@@ -7413,8 +7413,8 @@ function k9() {
7413
7413
  return;
7414
7414
  if (this._movingAnchorName === "rotater") {
7415
7415
  const se = this._getNodeRect();
7416
- F = $.x() - se.width / 2, Y = -$.y() + se.height / 2;
7417
- let _ = Math.atan2(-Y, F) + Math.PI / 2;
7416
+ F = $.x() - se.width / 2, X = -$.y() + se.height / 2;
7417
+ let _ = Math.atan2(-X, F) + Math.PI / 2;
7418
7418
  se.height < 0 && (_ -= Math.PI);
7419
7419
  const Ce = p.Konva.getAngle(this.rotation()) + _, we = p.Konva.getAngle(this.rotationSnapTolerance()), Ye = M(this.rotationSnaps(), Ce, we) - se.rotation, Re = v(se, Ye);
7420
7420
  this._fitNodesInto(Re, k);
@@ -7435,7 +7435,7 @@ function k9() {
7435
7435
  };
7436
7436
  q = Math.sqrt(Math.pow(se.x - $.x(), 2) + Math.pow(se.y - $.y(), 2));
7437
7437
  const _ = this.findOne(".top-left").x() > se.x ? -1 : 1, ae = this.findOne(".top-left").y() > se.y ? -1 : 1;
7438
- F = q * this.cos * _, Y = q * this.sin * ae, this.findOne(".top-left").x(se.x - F), this.findOne(".top-left").y(se.y - Y);
7438
+ F = q * this.cos * _, X = q * this.sin * ae, this.findOne(".top-left").x(se.x - F), this.findOne(".top-left").y(se.y - X);
7439
7439
  }
7440
7440
  } else if (this._movingAnchorName === "top-center")
7441
7441
  this.findOne(".top-left").y($.y());
@@ -7450,7 +7450,7 @@ function k9() {
7450
7450
  };
7451
7451
  q = Math.sqrt(Math.pow($.x() - se.x, 2) + Math.pow(se.y - $.y(), 2));
7452
7452
  const _ = this.findOne(".top-right").x() < se.x ? -1 : 1, ae = this.findOne(".top-right").y() > se.y ? -1 : 1;
7453
- F = q * this.cos * _, Y = q * this.sin * ae, this.findOne(".top-right").x(se.x + F), this.findOne(".top-right").y(se.y - Y);
7453
+ F = q * this.cos * _, X = q * this.sin * ae, this.findOne(".top-right").x(se.x + F), this.findOne(".top-right").y(se.y - X);
7454
7454
  }
7455
7455
  var oe = $.position();
7456
7456
  this.findOne(".top-left").y(oe.y), this.findOne(".bottom-right").x(oe.x);
@@ -7469,7 +7469,7 @@ function k9() {
7469
7469
  };
7470
7470
  q = Math.sqrt(Math.pow(se.x - $.x(), 2) + Math.pow($.y() - se.y, 2));
7471
7471
  const _ = se.x < $.x() ? -1 : 1, ae = $.y() < se.y ? -1 : 1;
7472
- F = q * this.cos * _, Y = q * this.sin * ae, $.x(se.x - F), $.y(se.y + Y);
7472
+ F = q * this.cos * _, X = q * this.sin * ae, $.x(se.x - F), $.y(se.y + X);
7473
7473
  }
7474
7474
  oe = $.position(), this.findOne(".top-left").x(oe.x), this.findOne(".bottom-right").y(oe.y);
7475
7475
  } else if (this._movingAnchorName === "bottom-center")
@@ -7485,7 +7485,7 @@ function k9() {
7485
7485
  };
7486
7486
  q = Math.sqrt(Math.pow($.x() - se.x, 2) + Math.pow($.y() - se.y, 2));
7487
7487
  const _ = this.findOne(".bottom-right").x() < se.x ? -1 : 1, ae = this.findOne(".bottom-right").y() < se.y ? -1 : 1;
7488
- F = q * this.cos * _, Y = q * this.sin * ae, this.findOne(".bottom-right").x(se.x + F), this.findOne(".bottom-right").y(se.y + Y);
7488
+ F = q * this.cos * _, X = q * this.sin * ae, this.findOne(".bottom-right").x(se.x + F), this.findOne(".bottom-right").y(se.y + X);
7489
7489
  }
7490
7490
  } else
7491
7491
  console.error(new Error("Wrong position argument of selection resizer: " + this._movingAnchorName));
@@ -7500,11 +7500,11 @@ function k9() {
7500
7500
  });
7501
7501
  }
7502
7502
  const ne = this.findOne(".top-left").getAbsolutePosition();
7503
- F = ne.x, Y = ne.y;
7503
+ F = ne.x, X = ne.y;
7504
7504
  const me = this.findOne(".bottom-right").x() - this.findOne(".top-left").x(), Ae = this.findOne(".bottom-right").y() - this.findOne(".top-left").y();
7505
7505
  this._fitNodesInto({
7506
7506
  x: F,
7507
- y: Y,
7507
+ y: X,
7508
7508
  width: me,
7509
7509
  height: Ae,
7510
7510
  rotation: p.Konva.getAngle(this.rotation())
@@ -7520,15 +7520,15 @@ function k9() {
7520
7520
  var F;
7521
7521
  if (this._transforming) {
7522
7522
  this._transforming = !1, typeof window < "u" && (window.removeEventListener("mousemove", this._handleMouseMove), window.removeEventListener("touchmove", this._handleMouseMove), window.removeEventListener("mouseup", this._handleMouseUp, !0), window.removeEventListener("touchend", this._handleMouseUp, !0));
7523
- const Y = this.getNode();
7524
- L--, this._fire("transformend", { evt: k, target: Y }), (F = this.getLayer()) === null || F === void 0 || F.batchDraw(), Y && this._nodes.forEach((q) => {
7523
+ const X = this.getNode();
7524
+ L--, this._fire("transformend", { evt: k, target: X }), (F = this.getLayer()) === null || F === void 0 || F.batchDraw(), X && this._nodes.forEach((q) => {
7525
7525
  var $;
7526
7526
  q._fire("transformend", { evt: k, target: q }), ($ = q.getLayer()) === null || $ === void 0 || $.batchDraw();
7527
7527
  }), this._movingAnchorName = null;
7528
7528
  }
7529
7529
  }
7530
7530
  _fitNodesInto(k, F) {
7531
- const Y = this._getNodeRect(), q = 1;
7531
+ const X = this._getNodeRect(), q = 1;
7532
7532
  if (o.Util._inRange(k.width, -this.padding() * 2 - q, q)) {
7533
7533
  this.update();
7534
7534
  return;
@@ -7565,11 +7565,11 @@ function k9() {
7565
7565
  this._movingAnchorName = this._movingAnchorName.replace("bottom", "top"), this._anchorDragOffset.x -= I.x, this._anchorDragOffset.y -= I.y, k.height += this.padding() * 2;
7566
7566
  }
7567
7567
  if (this.boundBoxFunc()) {
7568
- const I = this.boundBoxFunc()(Y, k);
7568
+ const I = this.boundBoxFunc()(X, k);
7569
7569
  I ? k = I : o.Util.warn("boundBoxFunc returned falsy. You should return new bound rect from it!");
7570
7570
  }
7571
7571
  const re = 1e7, ee = new o.Transform();
7572
- ee.translate(Y.x, Y.y), ee.rotate(Y.rotation), ee.scale(Y.width / re, Y.height / re);
7572
+ ee.translate(X.x, X.y), ee.rotate(X.rotation), ee.scale(X.width / re, X.height / re);
7573
7573
  const pe = new o.Transform(), z = k.width / re, B = k.height / re;
7574
7574
  this.flipEnabled() === !1 ? (pe.translate(k.x, k.y), pe.rotate(k.rotation), pe.translate(k.width < 0 ? k.width : 0, k.height < 0 ? k.height : 0), pe.scale(Math.abs(z), Math.abs(B))) : (pe.translate(k.x, k.y), pe.rotate(k.rotation), pe.scale(z, B));
7575
7575
  const W = pe.multiply(ee.invert());
@@ -7595,7 +7595,7 @@ function k9() {
7595
7595
  var k;
7596
7596
  const F = this._getNodeRect();
7597
7597
  this.rotation(o.Util._getRotation(F.rotation));
7598
- const Y = F.width, q = F.height, $ = this.enabledAnchors(), re = this.resizeEnabled(), ee = this.padding(), pe = this.anchorSize(), z = this.find("._anchor");
7598
+ const X = F.width, q = F.height, $ = this.enabledAnchors(), re = this.resizeEnabled(), ee = this.padding(), pe = this.anchorSize(), z = this.find("._anchor");
7599
7599
  z.forEach((W) => {
7600
7600
  W.setAttrs({
7601
7601
  width: pe,
@@ -7614,12 +7614,12 @@ function k9() {
7614
7614
  offsetY: pe / 2 + ee,
7615
7615
  visible: re && $.indexOf("top-left") >= 0
7616
7616
  }), this._batchChangeChild(".top-center", {
7617
- x: Y / 2,
7617
+ x: X / 2,
7618
7618
  y: 0,
7619
7619
  offsetY: pe / 2 + ee,
7620
7620
  visible: re && $.indexOf("top-center") >= 0
7621
7621
  }), this._batchChangeChild(".top-right", {
7622
- x: Y,
7622
+ x: X,
7623
7623
  y: 0,
7624
7624
  offsetX: pe / 2 - ee,
7625
7625
  offsetY: pe / 2 + ee,
@@ -7630,7 +7630,7 @@ function k9() {
7630
7630
  offsetX: pe / 2 + ee,
7631
7631
  visible: re && $.indexOf("middle-left") >= 0
7632
7632
  }), this._batchChangeChild(".middle-right", {
7633
- x: Y,
7633
+ x: X,
7634
7634
  y: q / 2,
7635
7635
  offsetX: pe / 2 - ee,
7636
7636
  visible: re && $.indexOf("middle-right") >= 0
@@ -7641,22 +7641,22 @@ function k9() {
7641
7641
  offsetY: pe / 2 - ee,
7642
7642
  visible: re && $.indexOf("bottom-left") >= 0
7643
7643
  }), this._batchChangeChild(".bottom-center", {
7644
- x: Y / 2,
7644
+ x: X / 2,
7645
7645
  y: q,
7646
7646
  offsetY: pe / 2 - ee,
7647
7647
  visible: re && $.indexOf("bottom-center") >= 0
7648
7648
  }), this._batchChangeChild(".bottom-right", {
7649
- x: Y,
7649
+ x: X,
7650
7650
  y: q,
7651
7651
  offsetX: pe / 2 - ee,
7652
7652
  offsetY: pe / 2 - ee,
7653
7653
  visible: re && $.indexOf("bottom-right") >= 0
7654
7654
  }), this._batchChangeChild(".rotater", {
7655
- x: Y / 2,
7655
+ x: X / 2,
7656
7656
  y: -this.rotateAnchorOffset() * o.Util._sign(q) - ee,
7657
7657
  visible: this.rotateEnabled()
7658
7658
  }), this._batchChangeChild(".back", {
7659
- width: Y,
7659
+ width: X,
7660
7660
  height: q,
7661
7661
  visible: this.borderEnabled(),
7662
7662
  stroke: this.borderStroke(),
@@ -8256,33 +8256,33 @@ function V9() {
8256
8256
  ];
8257
8257
  function p(S, h) {
8258
8258
  const b = S.data, R = S.width, T = S.height;
8259
- let y, x, D, H, G, E, v, M, L, j, Q, O, k, F, Y, q, $, re, ee, pe;
8259
+ let y, x, D, H, G, E, v, M, L, j, Q, O, k, F, X, q, $, re, ee, pe;
8260
8260
  const z = h + h + 1, B = R - 1, W = T - 1, I = h + 1, J = I * (I + 1) / 2, oe = new P(), ne = N[h], me = g[h];
8261
8261
  let Ae = null, se = oe, _ = null, ae = null;
8262
8262
  for (let Ce = 1; Ce < z; Ce++)
8263
8263
  se = se.next = new P(), Ce === I && (Ae = se);
8264
8264
  se.next = oe, D = x = 0;
8265
8265
  for (let Ce = 0; Ce < T; Ce++) {
8266
- O = k = F = Y = H = G = E = v = 0, M = I * (q = b[x]), L = I * ($ = b[x + 1]), j = I * (re = b[x + 2]), Q = I * (ee = b[x + 3]), H += J * q, G += J * $, E += J * re, v += J * ee, se = oe;
8266
+ O = k = F = X = H = G = E = v = 0, M = I * (q = b[x]), L = I * ($ = b[x + 1]), j = I * (re = b[x + 2]), Q = I * (ee = b[x + 3]), H += J * q, G += J * $, E += J * re, v += J * ee, se = oe;
8267
8267
  for (let we = 0; we < I; we++)
8268
8268
  se.r = q, se.g = $, se.b = re, se.a = ee, se = se.next;
8269
8269
  for (let we = 1; we < I; we++)
8270
- y = x + ((B < we ? B : we) << 2), H += (se.r = q = b[y]) * (pe = I - we), G += (se.g = $ = b[y + 1]) * pe, E += (se.b = re = b[y + 2]) * pe, v += (se.a = ee = b[y + 3]) * pe, O += q, k += $, F += re, Y += ee, se = se.next;
8270
+ y = x + ((B < we ? B : we) << 2), H += (se.r = q = b[y]) * (pe = I - we), G += (se.g = $ = b[y + 1]) * pe, E += (se.b = re = b[y + 2]) * pe, v += (se.a = ee = b[y + 3]) * pe, O += q, k += $, F += re, X += ee, se = se.next;
8271
8271
  _ = oe, ae = Ae;
8272
8272
  for (let we = 0; we < R; we++)
8273
- b[x + 3] = ee = v * ne >> me, ee !== 0 ? (ee = 255 / ee, b[x] = (H * ne >> me) * ee, b[x + 1] = (G * ne >> me) * ee, b[x + 2] = (E * ne >> me) * ee) : b[x] = b[x + 1] = b[x + 2] = 0, H -= M, G -= L, E -= j, v -= Q, M -= _.r, L -= _.g, j -= _.b, Q -= _.a, y = D + ((y = we + h + 1) < B ? y : B) << 2, O += _.r = b[y], k += _.g = b[y + 1], F += _.b = b[y + 2], Y += _.a = b[y + 3], H += O, G += k, E += F, v += Y, _ = _.next, M += q = ae.r, L += $ = ae.g, j += re = ae.b, Q += ee = ae.a, O -= q, k -= $, F -= re, Y -= ee, ae = ae.next, x += 4;
8273
+ b[x + 3] = ee = v * ne >> me, ee !== 0 ? (ee = 255 / ee, b[x] = (H * ne >> me) * ee, b[x + 1] = (G * ne >> me) * ee, b[x + 2] = (E * ne >> me) * ee) : b[x] = b[x + 1] = b[x + 2] = 0, H -= M, G -= L, E -= j, v -= Q, M -= _.r, L -= _.g, j -= _.b, Q -= _.a, y = D + ((y = we + h + 1) < B ? y : B) << 2, O += _.r = b[y], k += _.g = b[y + 1], F += _.b = b[y + 2], X += _.a = b[y + 3], H += O, G += k, E += F, v += X, _ = _.next, M += q = ae.r, L += $ = ae.g, j += re = ae.b, Q += ee = ae.a, O -= q, k -= $, F -= re, X -= ee, ae = ae.next, x += 4;
8274
8274
  D += R;
8275
8275
  }
8276
8276
  for (let Ce = 0; Ce < R; Ce++) {
8277
- k = F = Y = O = G = E = v = H = 0, x = Ce << 2, M = I * (q = b[x]), L = I * ($ = b[x + 1]), j = I * (re = b[x + 2]), Q = I * (ee = b[x + 3]), H += J * q, G += J * $, E += J * re, v += J * ee, se = oe;
8277
+ k = F = X = O = G = E = v = H = 0, x = Ce << 2, M = I * (q = b[x]), L = I * ($ = b[x + 1]), j = I * (re = b[x + 2]), Q = I * (ee = b[x + 3]), H += J * q, G += J * $, E += J * re, v += J * ee, se = oe;
8278
8278
  for (let Me = 0; Me < I; Me++)
8279
8279
  se.r = q, se.g = $, se.b = re, se.a = ee, se = se.next;
8280
8280
  let we = R;
8281
8281
  for (let Me = 1; Me <= h; Me++)
8282
- x = we + Ce << 2, H += (se.r = q = b[x]) * (pe = I - Me), G += (se.g = $ = b[x + 1]) * pe, E += (se.b = re = b[x + 2]) * pe, v += (se.a = ee = b[x + 3]) * pe, O += q, k += $, F += re, Y += ee, se = se.next, Me < W && (we += R);
8282
+ x = we + Ce << 2, H += (se.r = q = b[x]) * (pe = I - Me), G += (se.g = $ = b[x + 1]) * pe, E += (se.b = re = b[x + 2]) * pe, v += (se.a = ee = b[x + 3]) * pe, O += q, k += $, F += re, X += ee, se = se.next, Me < W && (we += R);
8283
8283
  x = Ce, _ = oe, ae = Ae;
8284
8284
  for (let Me = 0; Me < T; Me++)
8285
- y = x << 2, b[y + 3] = ee = v * ne >> me, ee > 0 ? (ee = 255 / ee, b[y] = (H * ne >> me) * ee, b[y + 1] = (G * ne >> me) * ee, b[y + 2] = (E * ne >> me) * ee) : b[y] = b[y + 1] = b[y + 2] = 0, H -= M, G -= L, E -= j, v -= Q, M -= _.r, L -= _.g, j -= _.b, Q -= _.a, y = Ce + ((y = Me + I) < W ? y : W) * R << 2, H += O += _.r = b[y], G += k += _.g = b[y + 1], E += F += _.b = b[y + 2], v += Y += _.a = b[y + 3], _ = _.next, M += q = ae.r, L += $ = ae.g, j += re = ae.b, Q += ee = ae.a, O -= q, k -= $, F -= re, Y -= ee, ae = ae.next, x += R;
8285
+ y = x << 2, b[y + 3] = ee = v * ne >> me, ee > 0 ? (ee = 255 / ee, b[y] = (H * ne >> me) * ee, b[y + 1] = (G * ne >> me) * ee, b[y + 2] = (E * ne >> me) * ee) : b[y] = b[y + 1] = b[y + 2] = 0, H -= M, G -= L, E -= j, v -= Q, M -= _.r, L -= _.g, j -= _.b, Q -= _.a, y = Ce + ((y = Me + I) < W ? y : W) * R << 2, H += O += _.r = b[y], G += k += _.g = b[y + 1], E += F += _.b = b[y + 2], v += X += _.a = b[y + 3], _ = _.next, M += q = ae.r, L += $ = ae.g, j += re = ae.b, Q += ee = ae.a, O -= q, k -= $, F -= re, X -= ee, ae = ae.next, x += R;
8286
8286
  }
8287
8287
  }
8288
8288
  const m = function(h) {
@@ -8360,13 +8360,13 @@ function X9() {
8360
8360
  let j = D;
8361
8361
  M + j < 1 && (j = 0), M + j > R && (j = 0);
8362
8362
  const Q = v + (M - 1 + j) * 4, O = b[L] - b[Q], k = b[L + 1] - b[Q + 1], F = b[L + 2] - b[Q + 2];
8363
- let Y = O;
8364
- const q = Y > 0 ? Y : -Y, $ = k > 0 ? k : -k, re = F > 0 ? F : -F;
8365
- if ($ > q && (Y = k), re > q && (Y = F), Y *= p, h) {
8366
- const ee = b[L] + Y, pe = b[L + 1] + Y, z = b[L + 2] + Y;
8363
+ let X = O;
8364
+ const q = X > 0 ? X : -X, $ = k > 0 ? k : -k, re = F > 0 ? F : -F;
8365
+ if ($ > q && (X = k), re > q && (X = F), X *= p, h) {
8366
+ const ee = b[L] + X, pe = b[L + 1] + X, z = b[L + 2] + X;
8367
8367
  b[L] = ee > 255 ? 255 : ee < 0 ? 0 : ee, b[L + 1] = pe > 255 ? 255 : pe < 0 ? 0 : pe, b[L + 2] = z > 255 ? 255 : z < 0 ? 0 : z;
8368
8368
  } else {
8369
- let ee = m - Y;
8369
+ let ee = m - X;
8370
8370
  ee < 0 ? ee = 0 : ee > 255 && (ee = 255), b[L] = b[L + 1] = b[L + 2] = ee;
8371
8371
  }
8372
8372
  } while (--M);
@@ -8478,9 +8478,9 @@ function q9() {
8478
8478
  const O = Math.sin(Q * j), k = Math.cos(Q * j);
8479
8479
  for (let F = 0; F < M; F += 1) {
8480
8480
  G = Math.floor(x + H * F / M * k), E = Math.floor(D + H * F / M * O);
8481
- let Y = (E * T + G) * 4;
8482
- const q = b[Y + 0], $ = b[Y + 1], re = b[Y + 2], ee = b[Y + 3];
8483
- Y = (Q + F * T) * 4, R[Y + 0] = q, R[Y + 1] = $, R[Y + 2] = re, R[Y + 3] = ee;
8481
+ let X = (E * T + G) * 4;
8482
+ const q = b[X + 0], $ = b[X + 1], re = b[X + 2], ee = b[X + 3];
8483
+ X = (Q + F * T) * 4, R[X + 0] = q, R[X + 1] = $, R[X + 2] = re, R[X + 3] = ee;
8484
8484
  }
8485
8485
  }
8486
8486
  }, g = function(m, S, h) {
@@ -8492,9 +8492,9 @@ function q9() {
8492
8492
  let Q, O;
8493
8493
  for (G = 0; G < T; G += 1)
8494
8494
  for (E = 0; E < y; E += 1) {
8495
- const k = G - x, F = E - D, Y = Math.sqrt(k * k + F * F) * M / H;
8495
+ const k = G - x, F = E - D, X = Math.sqrt(k * k + F * F) * M / H;
8496
8496
  let q = (Math.atan2(F, k) * 180 / Math.PI + 360 + j) % 360;
8497
- q = q * L / 360, Q = Math.floor(q), O = Math.floor(Y);
8497
+ q = q * L / 360, Q = Math.floor(q), O = Math.floor(X);
8498
8498
  let $ = (O * T + Q) * 4;
8499
8499
  const re = b[$ + 0], ee = b[$ + 1], pe = b[$ + 2], z = b[$ + 3];
8500
8500
  $ = (E * T + G) * 4, R[$ + 0] = re, R[$ + 1] = ee, R[$ + 2] = pe, R[$ + 3] = z;
@@ -8516,9 +8516,9 @@ function q9() {
8516
8516
  for (; k <= 8; )
8517
8517
  k = k * 2, M -= 1;
8518
8518
  k = Math.ceil(k);
8519
- let F = k, Y = 0, q = F, $ = 1;
8520
- for (j + k > S && (Y = F, q = 0, $ = -1), R = 0; R < h; R += 1)
8521
- for (b = Y; b !== q; b += $)
8519
+ let F = k, X = 0, q = F, $ = 1;
8520
+ for (j + k > S && (X = F, q = 0, $ = -1), R = 0; R < h; R += 1)
8521
+ for (b = X; b !== q; b += $)
8522
8522
  T = Math.round(b + j) % S, E = (S * R + T) * 4, x = O.data[E + 0], D = O.data[E + 1], H = O.data[E + 2], G = O.data[E + 3], v = (S * R + b) * 4, O.data[v + 0] = x, O.data[v + 1] = D, O.data[v + 2] = H, O.data[v + 3] = G;
8523
8523
  for (R = 0; R < h; R += 1)
8524
8524
  for (F = Math.floor(k), y = 0; y < M; y += 1) {
@@ -8578,8 +8578,8 @@ function K9() {
8578
8578
  for (let O = 0; O < H; O++) {
8579
8579
  const k = v + Q - G, F = M + O - G;
8580
8580
  if (k >= 0 && k < x && F >= 0 && F < y) {
8581
- const Y = k * y + F, q = D[Q * H + O];
8582
- j += T[Y] * q;
8581
+ const X = k * y + F, q = D[Q * H + O];
8582
+ j += T[X] * q;
8583
8583
  }
8584
8584
  }
8585
8585
  E[L] = j === 255 * 8 ? 255 : 0;
@@ -8596,8 +8596,8 @@ function K9() {
8596
8596
  for (let O = 0; O < H; O++) {
8597
8597
  const k = v + Q - G, F = M + O - G;
8598
8598
  if (k >= 0 && k < x && F >= 0 && F < y) {
8599
- const Y = k * y + F, q = D[Q * H + O];
8600
- j += T[Y] * q;
8599
+ const X = k * y + F, q = D[Q * H + O];
8600
+ j += T[X] * q;
8601
8601
  }
8602
8602
  }
8603
8603
  E[L] = j >= 255 * 4 ? 255 : 0;
@@ -8614,8 +8614,8 @@ function K9() {
8614
8614
  for (let O = 0; O < H; O++) {
8615
8615
  const k = v + Q - G, F = M + O - G;
8616
8616
  if (k >= 0 && k < x && F >= 0 && F < y) {
8617
- const Y = k * y + F, q = D[Q * H + O];
8618
- j += T[Y] * q;
8617
+ const X = k * y + F, q = D[Q * H + O];
8618
+ j += T[X] * q;
8619
8619
  }
8620
8620
  }
8621
8621
  E[L] = j;
@@ -8770,7 +8770,7 @@ var by;
8770
8770
  function s7() {
8771
8771
  if (by) return Kc;
8772
8772
  by = 1, Object.defineProperty(Kc, "__esModule", { value: !0 }), Kc.Konva = void 0;
8773
- const o = d1(), u = D9(), C = P9(), P = M9(), N = L9(), g = O9(), p = z9(), m = h5(), S = x1(), h = p5(), b = F9(), R = U9(), T = G9(), y = B9(), x = v5(), D = H9(), H = k9(), G = j9(), E = V9(), v = I9(), M = Y9(), L = X9(), j = W9(), Q = Q9(), O = _9(), k = J9(), F = Z9(), Y = q9(), q = K9(), $ = $9(), re = e7(), ee = t7(), pe = n7(), z = r7(), B = a7(), W = i7(), I = l7();
8773
+ const o = d1(), u = D9(), C = P9(), P = M9(), N = L9(), g = O9(), p = z9(), m = h5(), S = x1(), h = p5(), b = F9(), R = U9(), T = G9(), y = B9(), x = v5(), D = H9(), H = k9(), G = j9(), E = V9(), v = I9(), M = Y9(), L = X9(), j = W9(), Q = Q9(), O = _9(), k = J9(), F = Z9(), X = q9(), q = K9(), $ = $9(), re = e7(), ee = t7(), pe = n7(), z = r7(), B = a7(), W = i7(), I = l7();
8774
8774
  return Kc.Konva = o.Konva.Util._assign(o.Konva, {
8775
8775
  Arc: u.Arc,
8776
8776
  Arrow: C.Arrow,
@@ -8800,7 +8800,7 @@ function s7() {
8800
8800
  HSL: O.HSL,
8801
8801
  HSV: k.HSV,
8802
8802
  Invert: F.Invert,
8803
- Kaleidoscope: Y.Kaleidoscope,
8803
+ Kaleidoscope: X.Kaleidoscope,
8804
8804
  Mask: q.Mask,
8805
8805
  Noise: $.Noise,
8806
8806
  Pixelate: re.Pixelate,
@@ -8910,7 +8910,7 @@ function d7() {
8910
8910
  x = !1, D && (D = !1, G(O), O = -1), y = !0;
8911
8911
  var I = T;
8912
8912
  try {
8913
- for (v(W), R = C(S); R !== null && (!(R.expirationTime > W) || B && !Y()); ) {
8913
+ for (v(W), R = C(S); R !== null && (!(R.expirationTime > W) || B && !X()); ) {
8914
8914
  var J = R.callback;
8915
8915
  if (typeof J == "function") {
8916
8916
  R.callback = null, T = R.priorityLevel;
@@ -8930,7 +8930,7 @@ function d7() {
8930
8930
  }
8931
8931
  }
8932
8932
  var j = !1, Q = null, O = -1, k = 5, F = -1;
8933
- function Y() {
8933
+ function X() {
8934
8934
  return !(o.unstable_now() - F < k);
8935
8935
  }
8936
8936
  function q() {
@@ -9031,7 +9031,7 @@ function d7() {
9031
9031
  oe = 5e3;
9032
9032
  }
9033
9033
  return oe = I + oe, B = { id: b++, callback: W, priorityLevel: B, startTime: I, expirationTime: oe, sortIndex: -1 }, I > J ? (B.sortIndex = I, u(h, B), C(S) === null && B === C(h) && (D ? (G(O), O = -1) : D = !0, z(M, I - J))) : (B.sortIndex = oe, u(S, B), x || y || (x = !0, pe(L))), B;
9034
- }, o.unstable_shouldYield = Y, o.unstable_wrapCallback = function(B) {
9034
+ }, o.unstable_shouldYield = X, o.unstable_wrapCallback = function(B) {
9035
9035
  var W = T;
9036
9036
  return function() {
9037
9037
  var I = T;
@@ -9113,7 +9113,7 @@ function h7() {
9113
9113
  return G.now() - E;
9114
9114
  };
9115
9115
  }
9116
- var v = 1073741823, M = -1, L = 250, j = 5e3, Q = 1e4, O = v, k = [], F = [], Y = 1, q = null, $ = R, re = !1, ee = !1, pe = !1, z = typeof setTimeout == "function" ? setTimeout : null, B = typeof clearTimeout == "function" ? clearTimeout : null, W = typeof setImmediate < "u" ? setImmediate : null;
9116
+ var v = 1073741823, M = -1, L = 250, j = 5e3, Q = 1e4, O = v, k = [], F = [], X = 1, q = null, $ = R, re = !1, ee = !1, pe = !1, z = typeof setTimeout == "function" ? setTimeout : null, B = typeof clearTimeout == "function" ? clearTimeout : null, W = typeof setImmediate < "u" ? setImmediate : null;
9117
9117
  typeof navigator < "u" && navigator.scheduling !== void 0 && navigator.scheduling.isInputPending !== void 0 && navigator.scheduling.isInputPending.bind(navigator.scheduling);
9118
9118
  function I(Ne) {
9119
9119
  for (var Ve = N(F); Ve !== null; ) {
@@ -9240,7 +9240,7 @@ function h7() {
9240
9240
  break;
9241
9241
  }
9242
9242
  var Xe = Jt + _e, pn = {
9243
- id: Y++,
9243
+ id: X++,
9244
9244
  callback: Ve,
9245
9245
  priorityLevel: Ne,
9246
9246
  startTime: Jt,
@@ -9445,7 +9445,7 @@ function p7() {
9445
9445
  function F(n) {
9446
9446
  if (k(n) !== n) throw Error(p(188));
9447
9447
  }
9448
- function Y(n) {
9448
+ function X(n) {
9449
9449
  var r = n.alternate;
9450
9450
  if (!r) {
9451
9451
  if (r = k(n), r === null) throw Error(p(188));
@@ -9472,30 +9472,30 @@ function p7() {
9472
9472
  }
9473
9473
  if (l.return !== c.return) l = d, c = A;
9474
9474
  else {
9475
- for (var X = !1, le = d.child; le; ) {
9475
+ for (var Y = !1, le = d.child; le; ) {
9476
9476
  if (le === l) {
9477
- X = !0, l = d, c = A;
9477
+ Y = !0, l = d, c = A;
9478
9478
  break;
9479
9479
  }
9480
9480
  if (le === c) {
9481
- X = !0, c = d, l = A;
9481
+ Y = !0, c = d, l = A;
9482
9482
  break;
9483
9483
  }
9484
9484
  le = le.sibling;
9485
9485
  }
9486
- if (!X) {
9486
+ if (!Y) {
9487
9487
  for (le = A.child; le; ) {
9488
9488
  if (le === l) {
9489
- X = !0, l = A, c = d;
9489
+ Y = !0, l = A, c = d;
9490
9490
  break;
9491
9491
  }
9492
9492
  if (le === c) {
9493
- X = !0, c = A, l = d;
9493
+ Y = !0, c = A, l = d;
9494
9494
  break;
9495
9495
  }
9496
9496
  le = le.sibling;
9497
9497
  }
9498
- if (!X) throw Error(p(189));
9498
+ if (!Y) throw Error(p(189));
9499
9499
  }
9500
9500
  }
9501
9501
  if (l.alternate !== c) throw Error(p(190));
@@ -9504,7 +9504,7 @@ function p7() {
9504
9504
  return l.stateNode.current === l ? n : r;
9505
9505
  }
9506
9506
  function q(n) {
9507
- return n = Y(n), n !== null ? $(n) : null;
9507
+ return n = X(n), n !== null ? $(n) : null;
9508
9508
  }
9509
9509
  function $(n) {
9510
9510
  if (n.tag === 5 || n.tag === 6) return n;
@@ -9575,16 +9575,16 @@ function p7() {
9575
9575
  if (De && c && typeof De.stack == "string") {
9576
9576
  for (var d = De.stack.split(`
9577
9577
  `), A = c.stack.split(`
9578
- `), X = d.length - 1, le = A.length - 1; 1 <= X && 0 <= le && d[X] !== A[le]; ) le--;
9579
- for (; 1 <= X && 0 <= le; X--, le--) if (d[X] !== A[le]) {
9580
- if (X !== 1 || le !== 1)
9578
+ `), Y = d.length - 1, le = A.length - 1; 1 <= Y && 0 <= le && d[Y] !== A[le]; ) le--;
9579
+ for (; 1 <= Y && 0 <= le; Y--, le--) if (d[Y] !== A[le]) {
9580
+ if (Y !== 1 || le !== 1)
9581
9581
  do
9582
- if (X--, le--, 0 > le || d[X] !== A[le]) {
9582
+ if (Y--, le--, 0 > le || d[Y] !== A[le]) {
9583
9583
  var he = `
9584
- ` + d[X].replace(" at new ", " at ");
9584
+ ` + d[Y].replace(" at new ", " at ");
9585
9585
  return n.displayName && he.includes("<anonymous>") && (he = he.replace("<anonymous>", n.displayName)), he;
9586
9586
  }
9587
- while (1 <= X && 0 <= le);
9587
+ while (1 <= Y && 0 <= le);
9588
9588
  break;
9589
9589
  }
9590
9590
  }
@@ -9695,11 +9695,11 @@ function p7() {
9695
9695
  function to(n, r) {
9696
9696
  var l = n.pendingLanes;
9697
9697
  if (l === 0) return 0;
9698
- var c = 0, d = n.suspendedLanes, A = n.pingedLanes, X = l & 268435455;
9699
- if (X !== 0) {
9700
- var le = X & ~d;
9701
- le !== 0 ? c = ds(le) : (A &= X, A !== 0 && (c = ds(A)));
9702
- } else X = l & ~d, X !== 0 ? c = ds(X) : A !== 0 && (c = ds(A));
9698
+ var c = 0, d = n.suspendedLanes, A = n.pingedLanes, Y = l & 268435455;
9699
+ if (Y !== 0) {
9700
+ var le = Y & ~d;
9701
+ le !== 0 ? c = ds(le) : (A &= Y, A !== 0 && (c = ds(A)));
9702
+ } else Y = l & ~d, Y !== 0 ? c = ds(Y) : A !== 0 && (c = ds(A));
9703
9703
  if (c === 0) return 0;
9704
9704
  if (r !== 0 && r !== c && (r & d) === 0 && (d = c & -c, A = r & -r, d >= A || d === 16 && (A & 4194240) !== 0)) return r;
9705
9705
  if ((c & 4) !== 0 && (c |= l & 16), r = n.entangledLanes, r !== 0) for (n = n.entanglements, r &= c; 0 < r; ) l = 31 - Sr(r), d = 1 << l, c |= n[l], r &= ~d;
@@ -9748,8 +9748,8 @@ function p7() {
9748
9748
  }
9749
9749
  function f0(n, r) {
9750
9750
  for (var l = n.suspendedLanes, c = n.pingedLanes, d = n.expirationTimes, A = n.pendingLanes; 0 < A; ) {
9751
- var X = 31 - Sr(A), le = 1 << X, he = d[X];
9752
- he === -1 ? ((le & l) === 0 || (le & c) !== 0) && (d[X] = c0(le, r)) : he <= r && (n.expiredLanes |= le), A &= ~le;
9751
+ var Y = 31 - Sr(A), le = 1 << Y, he = d[Y];
9752
+ he === -1 ? ((le & l) === 0 || (le & c) !== 0) && (d[Y] = c0(le, r)) : he <= r && (n.expiredLanes |= le), A &= ~le;
9753
9753
  }
9754
9754
  }
9755
9755
  function Ou(n) {
@@ -9836,8 +9836,8 @@ function p7() {
9836
9836
  c &= ~(1 << d), l += 1;
9837
9837
  var A = 32 - Sr(r) + d;
9838
9838
  if (30 < A) {
9839
- var X = d - d % 5;
9840
- A = (c & (1 << X) - 1).toString(32), c >>= X, d -= X, ha = 1 << 32 - Sr(r) + d | l << d | c, _a = A + n;
9839
+ var Y = d - d % 5;
9840
+ A = (c & (1 << Y) - 1).toString(32), c >>= Y, d -= Y, ha = 1 << 32 - Sr(r) + d | l << d | c, _a = A + n;
9841
9841
  } else ha = 1 << A | l << d | c, _a = n;
9842
9842
  }
9843
9843
  function ku(n) {
@@ -9961,9 +9961,9 @@ function p7() {
9961
9961
  }
9962
9962
  if (!c) throw Error(p(147, n));
9963
9963
  var d = c, A = "" + n;
9964
- return r !== null && r.ref !== null && typeof r.ref == "function" && r.ref._stringRef === A ? r.ref : (r = function(X) {
9964
+ return r !== null && r.ref !== null && typeof r.ref == "function" && r.ref._stringRef === A ? r.ref : (r = function(Y) {
9965
9965
  var le = d.refs;
9966
- X === null ? delete le[A] : le[A] = X;
9966
+ Y === null ? delete le[A] : le[A] = Y;
9967
9967
  }, r._stringRef = A, r);
9968
9968
  }
9969
9969
  if (typeof n != "string") throw Error(p(284));
@@ -10000,7 +10000,7 @@ function p7() {
10000
10000
  function A(ce, ie, ge) {
10001
10001
  return ce.index = ge, n ? (ge = ce.alternate, ge !== null ? (ge = ge.index, ge < ie ? (ce.flags |= 2, ie) : ge) : (ce.flags |= 2, ie)) : (ce.flags |= 1048576, ie);
10002
10002
  }
10003
- function X(ce) {
10003
+ function Y(ce) {
10004
10004
  return n && ce.alternate === null && (ce.flags |= 2), ce;
10005
10005
  }
10006
10006
  function le(ce, ie, ge, ze) {
@@ -10141,7 +10141,7 @@ function p7() {
10141
10141
  }
10142
10142
  ge.type === b ? (ie = ti(ge.props.children, ce.mode, ze, ge.key), ie.return = ce, ce = ie) : (ze = Os(ge.type, ge.key, ge.props, null, ce.mode, ze), ze.ref = gs(ce, ie, ge), ze.return = ce, ce = ze);
10143
10143
  }
10144
- return X(ce);
10144
+ return Y(ce);
10145
10145
  case h:
10146
10146
  e: {
10147
10147
  for (ut = ge.key; ie !== null; ) {
@@ -10157,7 +10157,7 @@ function p7() {
10157
10157
  }
10158
10158
  ie = pc(ge, ce.mode, ze), ie.return = ce, ce = ie;
10159
10159
  }
10160
- return X(ce);
10160
+ return Y(ce);
10161
10161
  case v:
10162
10162
  return ut = ge._init, ni(ce, ie, ut(ge._payload), ze);
10163
10163
  }
@@ -10165,7 +10165,7 @@ function p7() {
10165
10165
  if (j(ge)) return Mt(ce, ie, ge, ze);
10166
10166
  so(ce, ge);
10167
10167
  }
10168
- return typeof ge == "string" && ge !== "" || typeof ge == "number" ? (ge = "" + ge, ie !== null && ie.tag === 6 ? (l(ce, ie.sibling), ie = d(ie, ge), ie.return = ce, ce = ie) : (l(ce, ie), ie = zs(ge, ce.mode, ze), ie.return = ce, ce = ie), X(ce)) : l(ce, ie);
10168
+ return typeof ge == "string" && ge !== "" || typeof ge == "number" ? (ge = "" + ge, ie !== null && ie.tag === 6 ? (l(ce, ie.sibling), ie = d(ie, ge), ie.return = ce, ce = ie) : (l(ce, ie), ie = zs(ge, ce.mode, ze), ie.return = ce, ce = ie), Y(ce)) : l(ce, ie);
10169
10169
  }
10170
10170
  return ni;
10171
10171
  }
@@ -10243,8 +10243,8 @@ function p7() {
10243
10243
  var d = null, A = null;
10244
10244
  if (l = l.firstBaseUpdate, l !== null) {
10245
10245
  do {
10246
- var X = { eventTime: l.eventTime, lane: l.lane, tag: l.tag, payload: l.payload, callback: l.callback, next: null };
10247
- A === null ? d = A = X : A = A.next = X, l = l.next;
10246
+ var Y = { eventTime: l.eventTime, lane: l.lane, tag: l.tag, payload: l.payload, callback: l.callback, next: null };
10247
+ A === null ? d = A = Y : A = A.next = Y, l = l.next;
10248
10248
  } while (l !== null);
10249
10249
  A === null ? d = A = r : A = A.next = r;
10250
10250
  } else d = A = r;
@@ -10256,17 +10256,17 @@ function p7() {
10256
10256
  function Pl(n, r, l, c) {
10257
10257
  var d = n.updateQueue;
10258
10258
  Ma = !1;
10259
- var A = d.firstBaseUpdate, X = d.lastBaseUpdate, le = d.shared.pending;
10259
+ var A = d.firstBaseUpdate, Y = d.lastBaseUpdate, le = d.shared.pending;
10260
10260
  if (le !== null) {
10261
10261
  d.shared.pending = null;
10262
10262
  var he = le, De = he.next;
10263
- he.next = null, X === null ? A = De : X.next = De, X = he;
10263
+ he.next = null, Y === null ? A = De : Y.next = De, Y = he;
10264
10264
  var Oe = n.alternate;
10265
- Oe !== null && (Oe = Oe.updateQueue, le = Oe.lastBaseUpdate, le !== X && (le === null ? Oe.firstBaseUpdate = De : le.next = De, Oe.lastBaseUpdate = he));
10265
+ Oe !== null && (Oe = Oe.updateQueue, le = Oe.lastBaseUpdate, le !== Y && (le === null ? Oe.firstBaseUpdate = De : le.next = De, Oe.lastBaseUpdate = he));
10266
10266
  }
10267
10267
  if (A !== null) {
10268
10268
  var at = d.baseState;
10269
- X = 0, Oe = De = he = null, le = A;
10269
+ Y = 0, Oe = De = he = null, le = A;
10270
10270
  do {
10271
10271
  var He = le.lane, en = le.eventTime;
10272
10272
  if ((c & He) === He) {
@@ -10299,7 +10299,7 @@ function p7() {
10299
10299
  }
10300
10300
  }
10301
10301
  le.callback !== null && le.lane !== 0 && (n.flags |= 64, He = d.effects, He === null ? d.effects = [le] : He.push(le));
10302
- } else en = { eventTime: en, lane: He, tag: le.tag, payload: le.payload, callback: le.callback, next: null }, Oe === null ? (De = Oe = en, he = at) : Oe = Oe.next = en, X |= He;
10302
+ } else en = { eventTime: en, lane: He, tag: le.tag, payload: le.payload, callback: le.callback, next: null }, Oe === null ? (De = Oe = en, he = at) : Oe = Oe.next = en, Y |= He;
10303
10303
  if (le = le.next, le === null) {
10304
10304
  if (le = d.shared.pending, le === null) break;
10305
10305
  He = le, le = He.next, He.next = null, d.lastBaseUpdate = He, d.shared.pending = null;
@@ -10308,10 +10308,10 @@ function p7() {
10308
10308
  if (Oe === null && (he = at), d.baseState = he, d.firstBaseUpdate = De, d.lastBaseUpdate = Oe, r = d.shared.interleaved, r !== null) {
10309
10309
  d = r;
10310
10310
  do
10311
- X |= d.lane, d = d.next;
10311
+ Y |= d.lane, d = d.next;
10312
10312
  while (d !== r);
10313
10313
  } else A === null && (d.shared.lanes = 0);
10314
- fl |= X, n.lanes = X, n.memoizedState = at;
10314
+ fl |= Y, n.lanes = Y, n.memoizedState = at;
10315
10315
  }
10316
10316
  }
10317
10317
  function ud(n, r, l) {
@@ -10421,14 +10421,14 @@ function p7() {
10421
10421
  var c = an, d = c.baseQueue, A = l.pending;
10422
10422
  if (A !== null) {
10423
10423
  if (d !== null) {
10424
- var X = d.next;
10425
- d.next = A.next, A.next = X;
10424
+ var Y = d.next;
10425
+ d.next = A.next, A.next = Y;
10426
10426
  }
10427
10427
  c.baseQueue = d = A, l.pending = null;
10428
10428
  }
10429
10429
  if (d !== null) {
10430
10430
  A = d.next, c = c.baseState;
10431
- var le = X = null, he = null, De = A;
10431
+ var le = Y = null, he = null, De = A;
10432
10432
  do {
10433
10433
  var Oe = De.lane;
10434
10434
  if ((nr & Oe) === Oe) he !== null && (he = he.next = { lane: 0, action: De.action, hasEagerState: De.hasEagerState, eagerState: De.eagerState, next: null }), c = De.hasEagerState ? De.eagerState : n(c, De.action);
@@ -10440,11 +10440,11 @@ function p7() {
10440
10440
  eagerState: De.eagerState,
10441
10441
  next: null
10442
10442
  };
10443
- he === null ? (le = he = at, X = c) : he = he.next = at, Kt.lanes |= Oe, fl |= Oe;
10443
+ he === null ? (le = he = at, Y = c) : he = he.next = at, Kt.lanes |= Oe, fl |= Oe;
10444
10444
  }
10445
10445
  De = De.next;
10446
10446
  } while (De !== null && De !== A);
10447
- he === null ? X = c : he.next = le, da(c, r.memoizedState) || (Fn = !0), r.memoizedState = c, r.baseState = X, r.baseQueue = he, l.lastRenderedState = c;
10447
+ he === null ? Y = c : he.next = le, da(c, r.memoizedState) || (Fn = !0), r.memoizedState = c, r.baseState = Y, r.baseQueue = he, l.lastRenderedState = c;
10448
10448
  }
10449
10449
  if (n = l.interleaved, n !== null) {
10450
10450
  d = n;
@@ -10461,10 +10461,10 @@ function p7() {
10461
10461
  var c = l.dispatch, d = l.pending, A = r.memoizedState;
10462
10462
  if (d !== null) {
10463
10463
  l.pending = null;
10464
- var X = d = d.next;
10464
+ var Y = d = d.next;
10465
10465
  do
10466
- A = n(A, X.action), X = X.next;
10467
- while (X !== d);
10466
+ A = n(A, Y.action), Y = Y.next;
10467
+ while (Y !== d);
10468
10468
  da(A, r.memoizedState) || (Fn = !0), r.memoizedState = A, r.baseQueue === null && (r.baseState = A), l.lastRenderedState = A;
10469
10469
  }
10470
10470
  return [A, c];
@@ -10523,8 +10523,8 @@ function p7() {
10523
10523
  c = c === void 0 ? null : c;
10524
10524
  var A = void 0;
10525
10525
  if (an !== null) {
10526
- var X = an.memoizedState;
10527
- if (A = X.destroy, c !== null && go(c, X.deps)) {
10526
+ var Y = an.memoizedState;
10527
+ if (A = Y.destroy, c !== null && go(c, Y.deps)) {
10528
10528
  d.memoizedState = el(r, l, A, c);
10529
10529
  return;
10530
10530
  }
@@ -10599,8 +10599,8 @@ function p7() {
10599
10599
  else {
10600
10600
  var A = n.alternate;
10601
10601
  if (n.lanes === 0 && (A === null || A.lanes === 0) && (A = r.lastRenderedReducer, A !== null)) try {
10602
- var X = r.lastRenderedState, le = A(X, l);
10603
- if (d.hasEagerState = !0, d.eagerState = le, da(le, X)) {
10602
+ var Y = r.lastRenderedState, le = A(Y, l);
10603
+ if (d.hasEagerState = !0, d.eagerState = le, da(le, Y)) {
10604
10604
  var he = r.interleaved;
10605
10605
  he === null ? (d.next = d, Wu(r)) : (d.next = he.next, he.next = d), r.interleaved = d;
10606
10606
  return;
@@ -10740,8 +10740,8 @@ function p7() {
10740
10740
  var l = $t(), c = Ka(n), d = ta(l, c);
10741
10741
  d.tag = 2, r != null && (d.callback = r), r = Si(n, d, c), r !== null && (Wn(r, n, c, l), Nl(r, n, c));
10742
10742
  } };
10743
- function Ro(n, r, l, c, d, A, X) {
10744
- return n = n.stateNode, typeof n.shouldComponentUpdate == "function" ? n.shouldComponentUpdate(c, A, X) : r.prototype && r.prototype.isPureReactComponent ? !lo(l, c) || !lo(d, A) : !0;
10743
+ function Ro(n, r, l, c, d, A, Y) {
10744
+ return n = n.stateNode, typeof n.shouldComponentUpdate == "function" ? n.shouldComponentUpdate(c, A, Y) : r.prototype && r.prototype.isPureReactComponent ? !lo(l, c) || !lo(d, A) : !0;
10745
10745
  }
10746
10746
  function Do(n, r, l) {
10747
10747
  var c = !1, d = vi, A = r.contextType;
@@ -10804,8 +10804,8 @@ Error generating stack: ` + A.message + `
10804
10804
  var A = n.stateNode;
10805
10805
  return A !== null && typeof A.componentDidCatch == "function" && (l.callback = function() {
10806
10806
  Po(n, r), typeof c != "function" && (Ri === null ? Ri = /* @__PURE__ */ new Set([this]) : Ri.add(this));
10807
- var X = r.stack;
10808
- this.componentDidCatch(r.value, { componentStack: X !== null ? X : "" });
10807
+ var Y = r.stack;
10808
+ this.componentDidCatch(r.value, { componentStack: Y !== null ? Y : "" });
10809
10809
  }), l;
10810
10810
  }
10811
10811
  function hd(n, r, l) {
@@ -10843,8 +10843,8 @@ Error generating stack: ` + A.message + `
10843
10843
  return typeof A == "function" && !$o(A) && A.defaultProps === void 0 && l.compare === null && l.defaultProps === void 0 ? (r.tag = 15, r.type = A, md(n, r, A, c, d)) : (n = Os(l.type, null, c, r, r.mode, d), n.ref = r.ref, n.return = r, r.child = n);
10844
10844
  }
10845
10845
  if (A = n.child, (n.lanes & d) === 0) {
10846
- var X = A.memoizedProps;
10847
- if (l = l.compare, l = l !== null ? l : lo, l(X, c) && n.ref === r.ref) return Er(n, r, d);
10846
+ var Y = A.memoizedProps;
10847
+ if (l = l.compare, l = l !== null ? l : lo, l(Y, c) && n.ref === r.ref) return Er(n, r, d);
10848
10848
  }
10849
10849
  return r.flags |= 1, n = ei(A, c), n.ref = r.ref, n.return = r, r.child = n;
10850
10850
  }
@@ -10881,30 +10881,30 @@ Error generating stack: ` + A.message + `
10881
10881
  } else A = !1;
10882
10882
  if (qi(r, d), r.stateNode === null) rr(n, r), Do(r, l, c), xs(r, l, c, d), c = !0;
10883
10883
  else if (n === null) {
10884
- var X = r.stateNode, le = r.memoizedProps;
10885
- X.props = le;
10886
- var he = X.context, De = l.contextType;
10884
+ var Y = r.stateNode, le = r.memoizedProps;
10885
+ Y.props = le;
10886
+ var he = Y.context, De = l.contextType;
10887
10887
  typeof De == "object" && De !== null ? De = Ur(De) : (De = or(l) ? Wa : er.current, De = Wi(r, De));
10888
- var Oe = l.getDerivedStateFromProps, at = typeof Oe == "function" || typeof X.getSnapshotBeforeUpdate == "function";
10889
- at || typeof X.UNSAFE_componentWillReceiveProps != "function" && typeof X.componentWillReceiveProps != "function" || (le !== c || he !== De) && No(r, X, c, De), Ma = !1;
10888
+ var Oe = l.getDerivedStateFromProps, at = typeof Oe == "function" || typeof Y.getSnapshotBeforeUpdate == "function";
10889
+ at || typeof Y.UNSAFE_componentWillReceiveProps != "function" && typeof Y.componentWillReceiveProps != "function" || (le !== c || he !== De) && No(r, Y, c, De), Ma = !1;
10890
10890
  var He = r.memoizedState;
10891
- X.state = He, Pl(r, c, X, d), he = r.memoizedState, le !== c || He !== he || yr.current || Ma ? (typeof Oe == "function" && (Fl(r, l, Oe, c), he = r.memoizedState), (le = Ma || Ro(r, l, le, c, He, he, De)) ? (at || typeof X.UNSAFE_componentWillMount != "function" && typeof X.componentWillMount != "function" || (typeof X.componentWillMount == "function" && X.componentWillMount(), typeof X.UNSAFE_componentWillMount == "function" && X.UNSAFE_componentWillMount()), typeof X.componentDidMount == "function" && (r.flags |= 4194308)) : (typeof X.componentDidMount == "function" && (r.flags |= 4194308), r.memoizedProps = c, r.memoizedState = he), X.props = c, X.state = he, X.context = De, c = le) : (typeof X.componentDidMount == "function" && (r.flags |= 4194308), c = !1);
10891
+ Y.state = He, Pl(r, c, Y, d), he = r.memoizedState, le !== c || He !== he || yr.current || Ma ? (typeof Oe == "function" && (Fl(r, l, Oe, c), he = r.memoizedState), (le = Ma || Ro(r, l, le, c, He, he, De)) ? (at || typeof Y.UNSAFE_componentWillMount != "function" && typeof Y.componentWillMount != "function" || (typeof Y.componentWillMount == "function" && Y.componentWillMount(), typeof Y.UNSAFE_componentWillMount == "function" && Y.UNSAFE_componentWillMount()), typeof Y.componentDidMount == "function" && (r.flags |= 4194308)) : (typeof Y.componentDidMount == "function" && (r.flags |= 4194308), r.memoizedProps = c, r.memoizedState = he), Y.props = c, Y.state = he, Y.context = De, c = le) : (typeof Y.componentDidMount == "function" && (r.flags |= 4194308), c = !1);
10892
10892
  } else {
10893
- X = r.stateNode, vo(n, r), le = r.memoizedProps, De = r.type === r.elementType ? le : kr(r.type, le), X.props = De, at = r.pendingProps, He = X.context, he = l.contextType, typeof he == "object" && he !== null ? he = Ur(he) : (he = or(l) ? Wa : er.current, he = Wi(r, he));
10893
+ Y = r.stateNode, vo(n, r), le = r.memoizedProps, De = r.type === r.elementType ? le : kr(r.type, le), Y.props = De, at = r.pendingProps, He = Y.context, he = l.contextType, typeof he == "object" && he !== null ? he = Ur(he) : (he = or(l) ? Wa : er.current, he = Wi(r, he));
10894
10894
  var en = l.getDerivedStateFromProps;
10895
- (Oe = typeof en == "function" || typeof X.getSnapshotBeforeUpdate == "function") || typeof X.UNSAFE_componentWillReceiveProps != "function" && typeof X.componentWillReceiveProps != "function" || (le !== at || He !== he) && No(r, X, c, he), Ma = !1, He = r.memoizedState, X.state = He, Pl(r, c, X, d);
10895
+ (Oe = typeof en == "function" || typeof Y.getSnapshotBeforeUpdate == "function") || typeof Y.UNSAFE_componentWillReceiveProps != "function" && typeof Y.componentWillReceiveProps != "function" || (le !== at || He !== he) && No(r, Y, c, he), Ma = !1, He = r.memoizedState, Y.state = He, Pl(r, c, Y, d);
10896
10896
  var pt = r.memoizedState;
10897
- le !== at || He !== pt || yr.current || Ma ? (typeof en == "function" && (Fl(r, l, en, c), pt = r.memoizedState), (De = Ma || Ro(r, l, De, c, He, pt, he) || !1) ? (Oe || typeof X.UNSAFE_componentWillUpdate != "function" && typeof X.componentWillUpdate != "function" || (typeof X.componentWillUpdate == "function" && X.componentWillUpdate(c, pt, he), typeof X.UNSAFE_componentWillUpdate == "function" && X.UNSAFE_componentWillUpdate(c, pt, he)), typeof X.componentDidUpdate == "function" && (r.flags |= 4), typeof X.getSnapshotBeforeUpdate == "function" && (r.flags |= 1024)) : (typeof X.componentDidUpdate != "function" || le === n.memoizedProps && He === n.memoizedState || (r.flags |= 4), typeof X.getSnapshotBeforeUpdate != "function" || le === n.memoizedProps && He === n.memoizedState || (r.flags |= 1024), r.memoizedProps = c, r.memoizedState = pt), X.props = c, X.state = pt, X.context = he, c = De) : (typeof X.componentDidUpdate != "function" || le === n.memoizedProps && He === n.memoizedState || (r.flags |= 4), typeof X.getSnapshotBeforeUpdate != "function" || le === n.memoizedProps && He === n.memoizedState || (r.flags |= 1024), c = !1);
10897
+ le !== at || He !== pt || yr.current || Ma ? (typeof en == "function" && (Fl(r, l, en, c), pt = r.memoizedState), (De = Ma || Ro(r, l, De, c, He, pt, he) || !1) ? (Oe || typeof Y.UNSAFE_componentWillUpdate != "function" && typeof Y.componentWillUpdate != "function" || (typeof Y.componentWillUpdate == "function" && Y.componentWillUpdate(c, pt, he), typeof Y.UNSAFE_componentWillUpdate == "function" && Y.UNSAFE_componentWillUpdate(c, pt, he)), typeof Y.componentDidUpdate == "function" && (r.flags |= 4), typeof Y.getSnapshotBeforeUpdate == "function" && (r.flags |= 1024)) : (typeof Y.componentDidUpdate != "function" || le === n.memoizedProps && He === n.memoizedState || (r.flags |= 4), typeof Y.getSnapshotBeforeUpdate != "function" || le === n.memoizedProps && He === n.memoizedState || (r.flags |= 1024), r.memoizedProps = c, r.memoizedState = pt), Y.props = c, Y.state = pt, Y.context = he, c = De) : (typeof Y.componentDidUpdate != "function" || le === n.memoizedProps && He === n.memoizedState || (r.flags |= 4), typeof Y.getSnapshotBeforeUpdate != "function" || le === n.memoizedProps && He === n.memoizedState || (r.flags |= 1024), c = !1);
10898
10898
  }
10899
10899
  return zo(n, r, l, c, A, d);
10900
10900
  }
10901
10901
  function zo(n, r, l, c, d, A) {
10902
10902
  Lo(n, r);
10903
- var X = (r.flags & 128) !== 0;
10904
- if (!c && !X) return d && Ks(r, l, !1), Er(n, r, A);
10903
+ var Y = (r.flags & 128) !== 0;
10904
+ if (!c && !Y) return d && Ks(r, l, !1), Er(n, r, A);
10905
10905
  c = r.stateNode, Mo.current = r;
10906
- var le = X && typeof l.getDerivedStateFromError != "function" ? null : c.render();
10907
- return r.flags |= 1, n !== null && X ? (r.child = Dl(r, n.child, null, A), r.child = Dl(r, null, le, A)) : Un(n, r, le, A), r.memoizedState = c.state, d && Ks(r, l, !0), r.child;
10906
+ var le = Y && typeof l.getDerivedStateFromError != "function" ? null : c.render();
10907
+ return r.flags |= 1, n !== null && Y ? (r.child = Dl(r, n.child, null, A), r.child = Dl(r, null, le, A)) : Un(n, r, le, A), r.memoizedState = c.state, d && Ks(r, l, !0), r.child;
10908
10908
  }
10909
10909
  function yd(n) {
10910
10910
  var r = n.stateNode;
@@ -10918,14 +10918,14 @@ Error generating stack: ` + A.message + `
10918
10918
  return { baseLanes: n, cachePool: null, transitions: null };
10919
10919
  }
10920
10920
  function nc(n, r, l) {
10921
- var c = r.pendingProps, d = Bt.current, A = !1, X = (r.flags & 128) !== 0, le;
10922
- if ((le = X) || (le = n !== null && n.memoizedState === null ? !1 : (d & 2) !== 0), le ? (A = !0, r.flags &= -129) : (n === null || n.memoizedState !== null) && (d |= 1), Qt(Bt, d & 1), n === null)
10923
- return Iu(r), n = r.memoizedState, n !== null && (n = n.dehydrated, n !== null) ? ((r.mode & 1) === 0 ? r.lanes = 1 : jn(n) ? r.lanes = 8 : r.lanes = 1073741824, null) : (X = c.children, n = c.fallback, A ? (c = r.mode, A = r.child, X = { mode: "hidden", children: X }, (c & 1) === 0 && A !== null ? (A.childLanes = 0, A.pendingProps = X) : A = Yl(X, c, 0, null), n = ti(n, c, l, null), A.return = r, n.return = r, A.sibling = n, r.child = A, r.child.memoizedState = tc(l), r.memoizedState = Ul, n) : Fo(r, X));
10924
- if (d = n.memoizedState, d !== null && (le = d.dehydrated, le !== null)) return ll(n, r, X, c, le, d, l);
10921
+ var c = r.pendingProps, d = Bt.current, A = !1, Y = (r.flags & 128) !== 0, le;
10922
+ if ((le = Y) || (le = n !== null && n.memoizedState === null ? !1 : (d & 2) !== 0), le ? (A = !0, r.flags &= -129) : (n === null || n.memoizedState !== null) && (d |= 1), Qt(Bt, d & 1), n === null)
10923
+ return Iu(r), n = r.memoizedState, n !== null && (n = n.dehydrated, n !== null) ? ((r.mode & 1) === 0 ? r.lanes = 1 : jn(n) ? r.lanes = 8 : r.lanes = 1073741824, null) : (Y = c.children, n = c.fallback, A ? (c = r.mode, A = r.child, Y = { mode: "hidden", children: Y }, (c & 1) === 0 && A !== null ? (A.childLanes = 0, A.pendingProps = Y) : A = Yl(Y, c, 0, null), n = ti(n, c, l, null), A.return = r, n.return = r, A.sibling = n, r.child = A, r.child.memoizedState = tc(l), r.memoizedState = Ul, n) : Fo(r, Y));
10924
+ if (d = n.memoizedState, d !== null && (le = d.dehydrated, le !== null)) return ll(n, r, Y, c, le, d, l);
10925
10925
  if (A) {
10926
- A = c.fallback, X = r.mode, d = n.child, le = d.sibling;
10926
+ A = c.fallback, Y = r.mode, d = n.child, le = d.sibling;
10927
10927
  var he = { mode: "hidden", children: c.children };
10928
- return (X & 1) === 0 && r.child !== d ? (c = r.child, c.childLanes = 0, c.pendingProps = he, r.deletions = null) : (c = ei(d, he), c.subtreeFlags = d.subtreeFlags & 14680064), le !== null ? A = ei(le, A) : (A = ti(A, X, l, null), A.flags |= 2), A.return = r, c.return = r, c.sibling = A, r.child = c, c = A, A = r.child, X = n.child.memoizedState, X = X === null ? tc(l) : { baseLanes: X.baseLanes | l, cachePool: null, transitions: X.transitions }, A.memoizedState = X, A.childLanes = n.childLanes & ~l, r.memoizedState = Ul, c;
10928
+ return (Y & 1) === 0 && r.child !== d ? (c = r.child, c.childLanes = 0, c.pendingProps = he, r.deletions = null) : (c = ei(d, he), c.subtreeFlags = d.subtreeFlags & 14680064), le !== null ? A = ei(le, A) : (A = ti(A, Y, l, null), A.flags |= 2), A.return = r, c.return = r, c.sibling = A, r.child = c, c = A, A = r.child, Y = n.child.memoizedState, Y = Y === null ? tc(l) : { baseLanes: Y.baseLanes | l, cachePool: null, transitions: Y.transitions }, A.memoizedState = Y, A.childLanes = n.childLanes & ~l, r.memoizedState = Ul, c;
10929
10929
  }
10930
10930
  return A = n.child, n = A.sibling, c = ei(A, { mode: "visible", children: c.children }), (r.mode & 1) === 0 && (c.lanes = l), c.return = r, c.sibling = null, n !== null && (l = r.deletions, l === null ? (r.deletions = [n], r.flags |= 16) : l.push(n)), r.child = c, r.memoizedState = null, c;
10931
10931
  }
@@ -10935,18 +10935,18 @@ Error generating stack: ` + A.message + `
10935
10935
  function Uo(n, r, l, c) {
10936
10936
  return c !== null && Yu(c), Dl(r, n.child, null, l), n = Fo(r, r.pendingProps.children), n.flags |= 2, r.memoizedState = null, n;
10937
10937
  }
10938
- function ll(n, r, l, c, d, A, X) {
10938
+ function ll(n, r, l, c, d, A, Y) {
10939
10939
  if (l)
10940
- return r.flags & 256 ? (r.flags &= -257, c = il(Error(p(422))), Uo(n, r, X, c)) : r.memoizedState !== null ? (r.child = n.child, r.flags |= 128, null) : (A = c.fallback, d = r.mode, c = Yl({ mode: "visible", children: c.children }, d, 0, null), A = ti(A, d, X, null), A.flags |= 2, c.return = r, A.return = r, c.sibling = A, r.child = c, (r.mode & 1) !== 0 && Dl(r, n.child, null, X), r.child.memoizedState = tc(X), r.memoizedState = Ul, A);
10941
- if ((r.mode & 1) === 0) return Uo(n, r, X, null);
10940
+ return r.flags & 256 ? (r.flags &= -257, c = il(Error(p(422))), Uo(n, r, Y, c)) : r.memoizedState !== null ? (r.child = n.child, r.flags |= 128, null) : (A = c.fallback, d = r.mode, c = Yl({ mode: "visible", children: c.children }, d, 0, null), A = ti(A, d, Y, null), A.flags |= 2, c.return = r, A.return = r, c.sibling = A, r.child = c, (r.mode & 1) !== 0 && Dl(r, n.child, null, Y), r.child.memoizedState = tc(Y), r.memoizedState = Ul, A);
10941
+ if ((r.mode & 1) === 0) return Uo(n, r, Y, null);
10942
10942
  if (jn(d)) return c = Au(d).digest, A = Error(p(419)), c = il(
10943
10943
  A,
10944
10944
  c,
10945
10945
  void 0
10946
- ), Uo(n, r, X, c);
10947
- if (l = (X & n.childLanes) !== 0, Fn || l) {
10946
+ ), Uo(n, r, Y, c);
10947
+ if (l = (Y & n.childLanes) !== 0, Fn || l) {
10948
10948
  if (c = Gn, c !== null) {
10949
- switch (X & -X) {
10949
+ switch (Y & -Y) {
10950
10950
  case 4:
10951
10951
  d = 2;
10952
10952
  break;
@@ -10982,14 +10982,14 @@ Error generating stack: ` + A.message + `
10982
10982
  default:
10983
10983
  d = 0;
10984
10984
  }
10985
- d = (d & (c.suspendedLanes | X)) !== 0 ? 0 : d, d !== 0 && d !== A.retryLane && (A.retryLane = d, ea(n, d), Wn(
10985
+ d = (d & (c.suspendedLanes | Y)) !== 0 ? 0 : d, d !== 0 && d !== A.retryLane && (A.retryLane = d, ea(n, d), Wn(
10986
10986
  c,
10987
10987
  n,
10988
10988
  d,
10989
10989
  -1
10990
10990
  ));
10991
10991
  }
10992
- return Zo(), c = il(Error(p(421))), Uo(n, r, X, c);
10992
+ return Zo(), c = il(Error(p(421))), Uo(n, r, Y, c);
10993
10993
  }
10994
10994
  return us(d) ? (r.flags |= 128, r.child = n.child, r = T0.bind(null, n), _f(d, r), null) : (n = A.treeContext, Re && ($r = pi(d), Fr = r, rn = !0, pa = null, ms = !1, n !== null && (qr[Kr++] = ha, qr[Kr++] = _a, qr[Kr++] = gi, ha = n.id, _a = n.overflow, gi = r)), r = Fo(r, c.children), r.flags |= 4096, r);
10995
10995
  }
@@ -11129,8 +11129,8 @@ Error generating stack: ` + A.message + `
11129
11129
  }, bs = function() {
11130
11130
  }, Bl = function(n, r, l, c, d) {
11131
11131
  if (n = n.memoizedProps, n !== c) {
11132
- var A = r.stateNode, X = Br(Gr.current);
11133
- l = me(A, l, n, c, d, X), (r.updateQueue = l) && jr(r);
11132
+ var A = r.stateNode, Y = Br(Gr.current);
11133
+ l = me(A, l, n, c, d, Y), (r.updateQueue = l) && jr(r);
11134
11134
  }
11135
11135
  }, Ti = function(n, r, l, c) {
11136
11136
  l !== c && jr(r);
@@ -11186,11 +11186,11 @@ Error generating stack: ` + A.message + `
11186
11186
  xd(c, r, !1, !1), l.pendingChildren = c, jr(r), Vi(n, c);
11187
11187
  }
11188
11188
  }, Bl = function(n, r, l, c, d) {
11189
- var A = n.stateNode, X = n.memoizedProps;
11190
- if ((n = rc(n, r)) && X === c) r.stateNode = A;
11189
+ var A = n.stateNode, Y = n.memoizedProps;
11190
+ if ((n = rc(n, r)) && Y === c) r.stateNode = A;
11191
11191
  else {
11192
11192
  var le = r.stateNode, he = Br(Gr.current), De = null;
11193
- X !== c && (De = me(le, l, X, c, d, he)), n && De === null ? r.stateNode = A : (A = Qf(A, De, l, X, c, r, n, le), ne(A, l, c, d, he) && jr(r), r.stateNode = A, n ? jr(r) : Bo(A, r, !1, !1));
11193
+ Y !== c && (De = me(le, l, Y, c, d, he)), n && De === null ? r.stateNode = A : (A = Qf(A, De, l, Y, c, r, n, le), ne(A, l, c, d, he) && jr(r), r.stateNode = A, n ? jr(r) : Bo(A, r, !1, !1));
11194
11194
  }
11195
11195
  }, Ti = function(n, r, l, c) {
11196
11196
  l !== c ? (n = Br($i.current), l = Br(Gr.current), r.stateNode = se(c, n, l, r), jr(r)) : r.stateNode = n.stateNode;
@@ -11386,8 +11386,8 @@ Error generating stack: ` + A.message + `
11386
11386
  break;
11387
11387
  case 1:
11388
11388
  if (l !== null) {
11389
- var c = l.memoizedProps, d = l.memoizedState, A = n.stateNode, X = A.getSnapshotBeforeUpdate(n.elementType === n.type ? c : kr(n.type, c), d);
11390
- A.__reactInternalSnapshotBeforeUpdate = X;
11389
+ var c = l.memoizedProps, d = l.memoizedState, A = n.stateNode, Y = A.getSnapshotBeforeUpdate(n.elementType === n.type ? c : kr(n.type, c), d);
11390
+ A.__reactInternalSnapshotBeforeUpdate = Y;
11391
11391
  }
11392
11392
  break;
11393
11393
  case 3:
@@ -11512,8 +11512,8 @@ Error generating stack: ` + A.message + `
11512
11512
  if (!Vn && (c = l.updateQueue, c !== null && (c = c.lastEffect, c !== null))) {
11513
11513
  d = c = c.next;
11514
11514
  do {
11515
- var A = d, X = A.destroy;
11516
- A = A.tag, X !== void 0 && ((A & 2) !== 0 || (A & 4) !== 0) && sl(l, r, X), d = d.next;
11515
+ var A = d, Y = A.destroy;
11516
+ A = A.tag, Y !== void 0 && ((A & 2) !== 0 || (A & 4) !== 0) && sl(l, r, Y), d = d.next;
11517
11517
  } while (d !== c);
11518
11518
  }
11519
11519
  Fa(n, r, l);
@@ -11556,9 +11556,9 @@ Error generating stack: ` + A.message + `
11556
11556
  if (l !== null) for (var c = 0; c < l.length; c++) {
11557
11557
  var d = l[c];
11558
11558
  try {
11559
- var A = n, X = r;
11559
+ var A = n, Y = r;
11560
11560
  if (Me) {
11561
- var le = X;
11561
+ var le = Y;
11562
11562
  e: for (; le !== null; ) {
11563
11563
  switch (le.tag) {
11564
11564
  case 5:
@@ -11574,8 +11574,8 @@ Error generating stack: ` + A.message + `
11574
11574
  le = le.return;
11575
11575
  }
11576
11576
  if (In === null) throw Error(p(160));
11577
- Cn(A, X, d), In = null, Ca = !1;
11578
- } else Cn(A, X, d);
11577
+ Cn(A, Y, d), In = null, Ca = !1;
11578
+ } else Cn(A, Y, d);
11579
11579
  var he = d.alternate;
11580
11580
  he !== null && (he.return = null), d.return = null;
11581
11581
  } catch (De) {
@@ -11672,24 +11672,24 @@ Error generating stack: ` + A.message + `
11672
11672
  ra(r, n), Ea(n), d = n.child, d.flags & 8192 && (A = d.memoizedState !== null, d.stateNode.isHidden = A, !A || d.alternate !== null && d.alternate.memoizedState !== null || (Wo = On())), c & 4 && ws(n);
11673
11673
  break;
11674
11674
  case 22:
11675
- var X = l !== null && l.memoizedState !== null;
11676
- if (n.mode & 1 ? (Vn = (l = Vn) || X, ra(r, n), Vn = l) : ra(r, n), Ea(n), c & 8192) {
11677
- if (l = n.memoizedState !== null, (n.stateNode.isHidden = l) && !X && (n.mode & 1) !== 0) for (Fe = n, c = n.child; c !== null; ) {
11675
+ var Y = l !== null && l.memoizedState !== null;
11676
+ if (n.mode & 1 ? (Vn = (l = Vn) || Y, ra(r, n), Vn = l) : ra(r, n), Ea(n), c & 8192) {
11677
+ if (l = n.memoizedState !== null, (n.stateNode.isHidden = l) && !Y && (n.mode & 1) !== 0) for (Fe = n, c = n.child; c !== null; ) {
11678
11678
  for (r = Fe = c; Fe !== null; ) {
11679
- X = Fe;
11680
- var le = X.child;
11681
- switch (X.tag) {
11679
+ Y = Fe;
11680
+ var le = Y.child;
11681
+ switch (Y.tag) {
11682
11682
  case 0:
11683
11683
  case 11:
11684
11684
  case 14:
11685
11685
  case 15:
11686
- cr(4, X, X.return);
11686
+ cr(4, Y, Y.return);
11687
11687
  break;
11688
11688
  case 1:
11689
- za(X, X.return);
11690
- var he = X.stateNode;
11689
+ za(Y, Y.return);
11690
+ var he = Y.stateNode;
11691
11691
  if (typeof he.componentWillUnmount == "function") {
11692
- var De = X, Oe = X.return;
11692
+ var De = Y, Oe = Y.return;
11693
11693
  try {
11694
11694
  var at = De;
11695
11695
  he.props = at.memoizedProps, he.state = at.memoizedState, he.componentWillUnmount();
@@ -11699,15 +11699,15 @@ Error generating stack: ` + A.message + `
11699
11699
  }
11700
11700
  break;
11701
11701
  case 5:
11702
- za(X, X.return);
11702
+ za(Y, Y.return);
11703
11703
  break;
11704
11704
  case 22:
11705
- if (X.memoizedState !== null) {
11705
+ if (Y.memoizedState !== null) {
11706
11706
  Yn(r);
11707
11707
  continue;
11708
11708
  }
11709
11709
  }
11710
- le !== null ? (le.return = X, Fe = le) : Yn(r);
11710
+ le !== null ? (le.return = Y, Fe = le) : Yn(r);
11711
11711
  }
11712
11712
  c = c.sibling;
11713
11713
  }
@@ -11775,8 +11775,8 @@ Error generating stack: ` + A.message + `
11775
11775
  break;
11776
11776
  case 3:
11777
11777
  case 4:
11778
- var X = c.stateNode.containerInfo, le = lc(n);
11779
- ko(n, le, X);
11778
+ var Y = c.stateNode.containerInfo, le = lc(n);
11779
+ ko(n, le, Y);
11780
11780
  break;
11781
11781
  default:
11782
11782
  throw Error(p(161));
@@ -11796,12 +11796,12 @@ Error generating stack: ` + A.message + `
11796
11796
  for (var c = (n.mode & 1) !== 0; Fe !== null; ) {
11797
11797
  var d = Fe, A = d.child;
11798
11798
  if (d.tag === 22 && c) {
11799
- var X = d.memoizedState !== null || Ts;
11800
- if (!X) {
11799
+ var Y = d.memoizedState !== null || Ts;
11800
+ if (!Y) {
11801
11801
  var le = d.alternate, he = le !== null && le.memoizedState !== null || Vn;
11802
11802
  le = Ts;
11803
11803
  var De = Vn;
11804
- if (Ts = X, (Vn = he) && !De) for (Fe = d; Fe !== null; ) X = Fe, he = X.child, X.tag === 22 && X.memoizedState !== null ? Ue(d) : he !== null ? (he.return = X, Fe = he) : Ue(d);
11804
+ if (Ts = Y, (Vn = he) && !De) for (Fe = d; Fe !== null; ) Y = Fe, he = Y.child, Y.tag === 22 && Y.memoizedState !== null ? Ue(d) : he !== null ? (he.return = Y, Fe = he) : Ue(d);
11805
11805
  for (; A !== null; ) Fe = A, Td(A), A = A.sibling;
11806
11806
  Fe = d, Ts = le, Vn = De;
11807
11807
  }
@@ -11832,8 +11832,8 @@ Error generating stack: ` + A.message + `
11832
11832
  A !== null && ud(r, A, c);
11833
11833
  break;
11834
11834
  case 3:
11835
- var X = r.updateQueue;
11836
- if (X !== null) {
11835
+ var Y = r.updateQueue;
11836
+ if (Y !== null) {
11837
11837
  if (l = null, r.child !== null) switch (r.child.tag) {
11838
11838
  case 5:
11839
11839
  l = pe(r.child.stateNode);
@@ -11841,7 +11841,7 @@ Error generating stack: ` + A.message + `
11841
11841
  case 1:
11842
11842
  l = r.child.stateNode;
11843
11843
  }
11844
- ud(r, X, l);
11844
+ ud(r, Y, l);
11845
11845
  }
11846
11846
  break;
11847
11847
  case 5:
@@ -11940,11 +11940,11 @@ Error generating stack: ` + A.message + `
11940
11940
  }
11941
11941
  break;
11942
11942
  case 5:
11943
- var X = r.return;
11943
+ var Y = r.return;
11944
11944
  try {
11945
11945
  ic(r);
11946
11946
  } catch (he) {
11947
- Pt(r, X, he);
11947
+ Pt(r, Y, he);
11948
11948
  }
11949
11949
  }
11950
11950
  } catch (he) {
@@ -12031,9 +12031,9 @@ Error generating stack: ` + A.message + `
12031
12031
  var l = [];
12032
12032
  n = [n, 0];
12033
12033
  for (var c = 0; c < n.length; ) {
12034
- var d = n[c++], A = n[c++], X = r[A];
12034
+ var d = n[c++], A = n[c++], Y = r[A];
12035
12035
  if (d.tag !== 5 || !nn(d)) {
12036
- for (; X != null && En(d, X); ) A++, X = r[A];
12036
+ for (; Y != null && En(d, Y); ) A++, Y = r[A];
12037
12037
  if (A === r.length) l.push(d);
12038
12038
  else for (d = d.child; d !== null; ) n.push(d, A), d = d.sibling;
12039
12039
  }
@@ -12146,8 +12146,8 @@ Error generating stack: ` + A.message + `
12146
12146
  case 4:
12147
12147
  if (wr(n, c), (c & 4194240) === c) break;
12148
12148
  for (r = n.eventTimes, d = -1; 0 < c; ) {
12149
- var X = 31 - Sr(c);
12150
- A = 1 << X, X = r[X], X > d && (d = X), c &= ~A;
12149
+ var Y = 31 - Sr(c);
12150
+ A = 1 << Y, Y = r[Y], Y > d && (d = Y), c &= ~A;
12151
12151
  }
12152
12152
  if (c = d, c = On() - c, c = (120 > c ? 120 : 480 > c ? 480 : 1080 > c ? 1080 : 1920 > c ? 1920 : 3e3 > c ? 3e3 : 4320 > c ? 4320 : 1960 * wd(c / 1960)) - c, 10 < c) {
12153
12153
  n.timeoutHandle = _(pl.bind(null, n, Tr, Ua), c);
@@ -12270,8 +12270,8 @@ Error generating stack: ` + A.message + `
12270
12270
  l.interleaved = null;
12271
12271
  var d = c.next, A = l.pending;
12272
12272
  if (A !== null) {
12273
- var X = A.next;
12274
- A.next = d, c.next = X;
12273
+ var Y = A.next;
12274
+ A.next = d, c.next = Y;
12275
12275
  }
12276
12276
  l.pending = c;
12277
12277
  }
@@ -12295,16 +12295,16 @@ Error generating stack: ` + A.message + `
12295
12295
  break;
12296
12296
  }
12297
12297
  e: {
12298
- var A = n, X = l.return, le = l, he = r;
12298
+ var A = n, Y = l.return, le = l, he = r;
12299
12299
  if (r = Xn, le.flags |= 32768, he !== null && typeof he == "object" && typeof he.then == "function") {
12300
12300
  var De = he, Oe = le, at = Oe.tag;
12301
12301
  if ((Oe.mode & 1) === 0 && (at === 0 || at === 11 || at === 15)) {
12302
12302
  var He = Oe.alternate;
12303
12303
  He ? (Oe.updateQueue = He.updateQueue, Oe.memoizedState = He.memoizedState, Oe.lanes = He.lanes) : (Oe.updateQueue = null, Oe.memoizedState = null);
12304
12304
  }
12305
- var en = Xt(X);
12305
+ var en = Xt(Y);
12306
12306
  if (en !== null) {
12307
- en.flags &= -257, Es(en, X, le, A, r), en.mode & 1 && hd(A, De, r), r = en, he = De;
12307
+ en.flags &= -257, Es(en, Y, le, A, r), en.mode & 1 && hd(A, De, r), r = en, he = De;
12308
12308
  var pt = r.updateQueue;
12309
12309
  if (pt === null) {
12310
12310
  var Mt = /* @__PURE__ */ new Set();
@@ -12319,13 +12319,13 @@ Error generating stack: ` + A.message + `
12319
12319
  he = Error(p(426));
12320
12320
  }
12321
12321
  } else if (rn && le.mode & 1) {
12322
- var ni = Xt(X);
12322
+ var ni = Xt(Y);
12323
12323
  if (ni !== null) {
12324
- (ni.flags & 65536) === 0 && (ni.flags |= 256), Es(ni, X, le, A, r), Yu(al(he, le));
12324
+ (ni.flags & 65536) === 0 && (ni.flags |= 256), Es(ni, Y, le, A, r), Yu(al(he, le));
12325
12325
  break e;
12326
12326
  }
12327
12327
  }
12328
- A = he = al(he, le), Tn !== 4 && (Tn = 2), Ns === null ? Ns = [A] : Ns.push(A), A = X;
12328
+ A = he = al(he, le), Tn !== 4 && (Tn = 2), Ns === null ? Ns = [A] : Ns.push(A), A = Y;
12329
12329
  do {
12330
12330
  switch (A.tag) {
12331
12331
  case 3:
@@ -12439,10 +12439,10 @@ Error generating stack: ` + A.message + `
12439
12439
  return un(), null;
12440
12440
  })), A = (l.flags & 15990) !== 0, (l.subtreeFlags & 15990) !== 0 || A) {
12441
12441
  A = gn.transition, gn.transition = null;
12442
- var X = zt;
12442
+ var Y = zt;
12443
12443
  zt = 1;
12444
12444
  var le = yt;
12445
- yt |= 4, wi.current = null, As(n, l), ol(l, n), I(n.containerInfo), n.current = l, E0(l), p0(), yt = le, zt = X, gn.transition = A;
12445
+ yt |= 4, wi.current = null, As(n, l), ol(l, n), I(n.containerInfo), n.current = l, E0(l), p0(), yt = le, zt = Y, gn.transition = A;
12446
12446
  } else n.current = l;
12447
12447
  if (ir && (ir = !1, lr = n, jl = d), A = n.pendingLanes, A === 0 && (Ri = null), g0(l.stateNode), Pn(n, On()), r !== null) for (c = n.onRecoverableError, l = 0; l < r.length; l++) d = r[l], c(d.value, { componentStack: d.stack, digest: d.digest });
12448
12448
  if (Qo) throw Qo = !1, n = Ps, Ps = null, n;
@@ -12457,7 +12457,7 @@ Error generating stack: ` + A.message + `
12457
12457
  if (n = lr, lr = null, jl = 0, (yt & 6) !== 0) throw Error(p(331));
12458
12458
  var d = yt;
12459
12459
  for (yt |= 4, Fe = n.current; Fe !== null; ) {
12460
- var A = Fe, X = A.child;
12460
+ var A = Fe, Y = A.child;
12461
12461
  if ((Fe.flags & 16) !== 0) {
12462
12462
  var le = A.deletions;
12463
12463
  if (le !== null) {
@@ -12502,7 +12502,7 @@ Error generating stack: ` + A.message + `
12502
12502
  Fe = A;
12503
12503
  }
12504
12504
  }
12505
- if ((A.subtreeFlags & 2064) !== 0 && X !== null) X.return = A, Fe = X;
12505
+ if ((A.subtreeFlags & 2064) !== 0 && Y !== null) Y.return = A, Fe = Y;
12506
12506
  else e: for (; Fe !== null; ) {
12507
12507
  if (A = Fe, (A.flags & 2048) !== 0) switch (A.tag) {
12508
12508
  case 0:
@@ -12520,10 +12520,10 @@ Error generating stack: ` + A.message + `
12520
12520
  }
12521
12521
  var ie = n.current;
12522
12522
  for (Fe = ie; Fe !== null; ) {
12523
- X = Fe;
12524
- var ge = X.child;
12525
- if ((X.subtreeFlags & 2064) !== 0 && ge !== null) ge.return = X, Fe = ge;
12526
- else e: for (X = ie; Fe !== null; ) {
12523
+ Y = Fe;
12524
+ var ge = Y.child;
12525
+ if ((Y.subtreeFlags & 2064) !== 0 && ge !== null) ge.return = Y, Fe = ge;
12526
+ else e: for (Y = ie; Fe !== null; ) {
12527
12527
  if (le = Fe, (le.flags & 2048) !== 0) try {
12528
12528
  switch (le.tag) {
12529
12529
  case 0:
@@ -12534,7 +12534,7 @@ Error generating stack: ` + A.message + `
12534
12534
  } catch (Je) {
12535
12535
  Pt(le, le.return, Je);
12536
12536
  }
12537
- if (le === X) {
12537
+ if (le === Y) {
12538
12538
  Fe = null;
12539
12539
  break e;
12540
12540
  }
@@ -12654,8 +12654,8 @@ Error generating stack: ` + A.message + `
12654
12654
  e: {
12655
12655
  if (yd(r), n === null) throw Error(p(387));
12656
12656
  c = r.pendingProps, A = r.memoizedState, d = A.element, vo(n, r), Pl(r, c, null, l);
12657
- var X = r.memoizedState;
12658
- if (c = X.element, Re && A.isDehydrated) if (A = { element: c, isDehydrated: !1, cache: X.cache, pendingSuspenseBoundaries: X.pendingSuspenseBoundaries, transitions: X.transitions }, r.updateQueue.baseState = A, r.memoizedState = A, r.flags & 256) {
12657
+ var Y = r.memoizedState;
12658
+ if (c = Y.element, Re && A.isDehydrated) if (A = { element: c, isDehydrated: !1, cache: Y.cache, pendingSuspenseBoundaries: Y.pendingSuspenseBoundaries, transitions: Y.transitions }, r.updateQueue.baseState = A, r.memoizedState = A, r.flags & 256) {
12659
12659
  d = al(Error(p(423)), r), r = Sd(n, r, c, l, d);
12660
12660
  break e;
12661
12661
  } else if (c !== d) {
@@ -12673,7 +12673,7 @@ Error generating stack: ` + A.message + `
12673
12673
  }
12674
12674
  return r;
12675
12675
  case 5:
12676
- return ys(r), n === null && Iu(r), c = r.type, d = r.pendingProps, A = n !== null ? n.memoizedProps : null, X = d.children, Ae(c, d) ? X = null : A !== null && Ae(c, A) && (r.flags |= 32), Lo(n, r), Un(n, r, X, l), r.child;
12676
+ return ys(r), n === null && Iu(r), c = r.type, d = r.pendingProps, A = n !== null ? n.memoizedProps : null, Y = d.children, Ae(c, d) ? Y = null : A !== null && Ae(c, A) && (r.flags |= 32), Lo(n, r), Un(n, r, Y, l), r.child;
12677
12677
  case 6:
12678
12678
  return n === null && Iu(r), null;
12679
12679
  case 13:
@@ -12690,7 +12690,7 @@ Error generating stack: ` + A.message + `
12690
12690
  return Un(n, r, r.pendingProps.children, l), r.child;
12691
12691
  case 10:
12692
12692
  e: {
12693
- if (c = r.type._context, d = r.pendingProps, A = r.memoizedProps, X = d.value, Xu(r, c, X), A !== null) if (da(A.value, X)) {
12693
+ if (c = r.type._context, d = r.pendingProps, A = r.memoizedProps, Y = d.value, Xu(r, c, Y), A !== null) if (da(A.value, Y)) {
12694
12694
  if (A.children === d.children && !yr.current) {
12695
12695
  r = Er(n, r, l);
12696
12696
  break e;
@@ -12698,7 +12698,7 @@ Error generating stack: ` + A.message + `
12698
12698
  } else for (A = r.child, A !== null && (A.return = r); A !== null; ) {
12699
12699
  var le = A.dependencies;
12700
12700
  if (le !== null) {
12701
- X = A.child;
12701
+ Y = A.child;
12702
12702
  for (var he = le.firstContext; he !== null; ) {
12703
12703
  if (he.context === c) {
12704
12704
  if (A.tag === 1) {
@@ -12715,24 +12715,24 @@ Error generating stack: ` + A.message + `
12715
12715
  }
12716
12716
  he = he.next;
12717
12717
  }
12718
- } else if (A.tag === 10) X = A.type === r.type ? null : A.child;
12718
+ } else if (A.tag === 10) Y = A.type === r.type ? null : A.child;
12719
12719
  else if (A.tag === 18) {
12720
- if (X = A.return, X === null) throw Error(p(341));
12721
- X.lanes |= l, le = X.alternate, le !== null && (le.lanes |= l), po(X, l, r), X = A.sibling;
12722
- } else X = A.child;
12723
- if (X !== null) X.return = A;
12724
- else for (X = A; X !== null; ) {
12725
- if (X === r) {
12726
- X = null;
12720
+ if (Y = A.return, Y === null) throw Error(p(341));
12721
+ Y.lanes |= l, le = Y.alternate, le !== null && (le.lanes |= l), po(Y, l, r), Y = A.sibling;
12722
+ } else Y = A.child;
12723
+ if (Y !== null) Y.return = A;
12724
+ else for (Y = A; Y !== null; ) {
12725
+ if (Y === r) {
12726
+ Y = null;
12727
12727
  break;
12728
12728
  }
12729
- if (A = X.sibling, A !== null) {
12730
- A.return = X.return, X = A;
12729
+ if (A = Y.sibling, A !== null) {
12730
+ A.return = Y.return, Y = A;
12731
12731
  break;
12732
12732
  }
12733
- X = X.return;
12733
+ Y = Y.return;
12734
12734
  }
12735
- A = X;
12735
+ A = Y;
12736
12736
  }
12737
12737
  Un(n, r, d.children, l), r = r.child;
12738
12738
  }
@@ -12777,14 +12777,14 @@ Error generating stack: ` + A.message + `
12777
12777
  return l === null ? (l = Xr(n.tag, r, n.key, n.mode), l.elementType = n.elementType, l.type = n.type, l.stateNode = n.stateNode, l.alternate = n, n.alternate = l) : (l.pendingProps = r, l.type = n.type, l.flags = 0, l.subtreeFlags = 0, l.deletions = null), l.flags = n.flags & 14680064, l.childLanes = n.childLanes, l.lanes = n.lanes, l.child = n.child, l.memoizedProps = n.memoizedProps, l.memoizedState = n.memoizedState, l.updateQueue = n.updateQueue, r = n.dependencies, l.dependencies = r === null ? null : { lanes: r.lanes, firstContext: r.firstContext }, l.sibling = n.sibling, l.index = n.index, l.ref = n.ref, l;
12778
12778
  }
12779
12779
  function Os(n, r, l, c, d, A) {
12780
- var X = 2;
12781
- if (c = n, typeof n == "function") $o(n) && (X = 1);
12782
- else if (typeof n == "string") X = 5;
12780
+ var Y = 2;
12781
+ if (c = n, typeof n == "function") $o(n) && (Y = 1);
12782
+ else if (typeof n == "string") Y = 5;
12783
12783
  else e: switch (n) {
12784
12784
  case b:
12785
12785
  return ti(l.children, d, A, r);
12786
12786
  case R:
12787
- X = 8, d |= 8;
12787
+ Y = 8, d |= 8;
12788
12788
  break;
12789
12789
  case T:
12790
12790
  return n = Xr(12, l, r, d | 2), n.elementType = T, n.lanes = A, n;
@@ -12797,24 +12797,24 @@ Error generating stack: ` + A.message + `
12797
12797
  default:
12798
12798
  if (typeof n == "object" && n !== null) switch (n.$$typeof) {
12799
12799
  case y:
12800
- X = 10;
12800
+ Y = 10;
12801
12801
  break e;
12802
12802
  case x:
12803
- X = 9;
12803
+ Y = 9;
12804
12804
  break e;
12805
12805
  case D:
12806
- X = 11;
12806
+ Y = 11;
12807
12807
  break e;
12808
12808
  case E:
12809
- X = 14;
12809
+ Y = 14;
12810
12810
  break e;
12811
12811
  case v:
12812
- X = 16, c = null;
12812
+ Y = 16, c = null;
12813
12813
  break e;
12814
12814
  }
12815
12815
  throw Error(p(130, n == null ? n : typeof n, ""));
12816
12816
  }
12817
- return r = Xr(X, l, r, d), r.elementType = n, r.type = c, r.lanes = A, r;
12817
+ return r = Xr(Y, l, r, d), r.elementType = n, r.type = c, r.lanes = A, r;
12818
12818
  }
12819
12819
  function ti(n, r, l, c) {
12820
12820
  return n = Xr(7, n, c, r), n.lanes = l, n;
@@ -12831,7 +12831,7 @@ Error generating stack: ` + A.message + `
12831
12831
  function w0(n, r, l, c, d) {
12832
12832
  this.tag = r, this.containerInfo = n, this.finishedWork = this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = Ce, this.callbackNode = this.pendingContext = this.context = null, this.callbackPriority = 0, this.eventTimes = zu(0), this.expirationTimes = zu(-1), this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = zu(0), this.identifierPrefix = c, this.onRecoverableError = d, Re && (this.mutableSourceEagerHydrationData = null);
12833
12833
  }
12834
- function Ld(n, r, l, c, d, A, X, le, he) {
12834
+ function Ld(n, r, l, c, d, A, Y, le, he) {
12835
12835
  return n = new w0(n, r, l, le, he), r === 1 ? (r = 1, A === !0 && (r |= 8)) : r = 0, A = Xr(3, null, null, r), n.current = A, A.stateNode = n, A.memoizedState = { element: c, isDehydrated: l, cache: null, transitions: null, pendingSuspenseBoundaries: null }, La(A), n;
12836
12836
  }
12837
12837
  function Od(n) {
@@ -12937,12 +12937,12 @@ Error generating stack: ` + A.message + `
12937
12937
  }
12938
12938
  }, C.createComponentSelector = function(n) {
12939
12939
  return { $$typeof: Vr, value: n };
12940
- }, C.createContainer = function(n, r, l, c, d, A, X) {
12941
- return Ld(n, r, !1, null, l, c, d, A, X);
12940
+ }, C.createContainer = function(n, r, l, c, d, A, Y) {
12941
+ return Ld(n, r, !1, null, l, c, d, A, Y);
12942
12942
  }, C.createHasPseudoClassSelector = function(n) {
12943
12943
  return { $$typeof: br, value: n };
12944
- }, C.createHydrationContainer = function(n, r, l, c, d, A, X, le, he) {
12945
- return n = Ld(l, c, !0, n, d, A, X, le, he), n.context = Od(null), l = n.current, c = $t(), d = Ka(l), A = ta(c, d), A.callback = r ?? null, Si(l, A, d), n.current.lanes = d, hs(n, d, c), Pn(n, c), n;
12944
+ }, C.createHydrationContainer = function(n, r, l, c, d, A, Y, le, he) {
12945
+ return n = Ld(l, c, !0, n, d, A, Y, le, he), n.context = Od(null), l = n.current, c = $t(), d = Ka(l), A = ta(c, d), A.callback = r ?? null, Si(l, A, d), n.current.lanes = d, hs(n, d, c), Pn(n, c), n;
12946
12946
  }, C.createPortal = function(n, r, l) {
12947
12947
  var c = 3 < arguments.length && arguments[3] !== void 0 ? arguments[3] : null;
12948
12948
  return { $$typeof: h, key: c == null ? null : "" + c, children: n, containerInfo: r, implementation: l };
@@ -12960,11 +12960,11 @@ Error generating stack: ` + A.message + `
12960
12960
  zt = r, gn.transition = l;
12961
12961
  }
12962
12962
  }, C.discreteUpdates = function(n, r, l, c, d) {
12963
- var A = zt, X = gn.transition;
12963
+ var A = zt, Y = gn.transition;
12964
12964
  try {
12965
12965
  return gn.transition = null, zt = 1, n(r, l, c, d);
12966
12966
  } finally {
12967
- zt = A, gn.transition = X, yt === 0 && kl();
12967
+ zt = A, gn.transition = Y, yt === 0 && kl();
12968
12968
  }
12969
12969
  }, C.findAllNodes = uc, C.findBoundingRects = function(n, r) {
12970
12970
  if (!ct) throw Error(p(363));
@@ -12972,25 +12972,25 @@ Error generating stack: ` + A.message + `
12972
12972
  for (var l = 0; l < r.length; l++) n.push(St(r[l]));
12973
12973
  for (r = n.length - 1; 0 < r; r--) {
12974
12974
  l = n[r];
12975
- for (var c = l.x, d = c + l.width, A = l.y, X = A + l.height, le = r - 1; 0 <= le; le--) if (r !== le) {
12975
+ for (var c = l.x, d = c + l.width, A = l.y, Y = A + l.height, le = r - 1; 0 <= le; le--) if (r !== le) {
12976
12976
  var he = n[le], De = he.x, Oe = De + he.width, at = he.y, He = at + he.height;
12977
- if (c >= De && A >= at && d <= Oe && X <= He) {
12977
+ if (c >= De && A >= at && d <= Oe && Y <= He) {
12978
12978
  n.splice(r, 1);
12979
12979
  break;
12980
- } else if (c !== De || l.width !== he.width || He < A || at > X) {
12980
+ } else if (c !== De || l.width !== he.width || He < A || at > Y) {
12981
12981
  if (!(A !== at || l.height !== he.height || Oe < c || De > d)) {
12982
12982
  De > c && (he.width += De - c, he.x = c), Oe < d && (he.width = d - De), n.splice(r, 1);
12983
12983
  break;
12984
12984
  }
12985
12985
  } else {
12986
- at > A && (he.height += at - A, he.y = A), He < X && (he.height = X - at), n.splice(r, 1);
12986
+ at > A && (he.height += at - A, he.y = A), He < Y && (he.height = Y - at), n.splice(r, 1);
12987
12987
  break;
12988
12988
  }
12989
12989
  }
12990
12990
  }
12991
12991
  return n;
12992
12992
  }, C.findHostInstance = vc, C.findHostInstanceWithNoPortals = function(n) {
12993
- return n = Y(n), n = n !== null ? re(n) : null, n === null ? null : n.stateNode;
12993
+ return n = X(n), n = n !== null ? re(n) : null, n === null ? null : n.stateNode;
12994
12994
  }, C.findHostInstanceWithWarning = function(n) {
12995
12995
  return vc(n);
12996
12996
  }, C.flushControlled = function(n) {
@@ -13019,8 +13019,8 @@ Error generating stack: ` + A.message + `
13019
13019
  var l = 0, c = [];
13020
13020
  n = [sc(n), 0];
13021
13021
  for (var d = 0; d < n.length; ) {
13022
- var A = n[d++], X = n[d++], le = r[X];
13023
- if ((A.tag !== 5 || !nn(A)) && (En(A, le) && (c.push(oc(le)), X++, X > l && (l = X)), X < r.length)) for (A = A.child; A !== null; ) n.push(A, X), A = A.sibling;
13022
+ var A = n[d++], Y = n[d++], le = r[Y];
13023
+ if ((A.tag !== 5 || !nn(A)) && (En(A, le) && (c.push(oc(le)), Y++, Y > l && (l = Y)), Y < r.length)) for (A = A.child; A !== null; ) n.push(A, Y), A = A.sibling;
13024
13024
  }
13025
13025
  if (l < r.length) {
13026
13026
  for (n = []; l < r.length; l++) n.push(oc(r[l]));
@@ -13077,8 +13077,8 @@ No matching component was found for:
13077
13077
  }, C.shouldSuspend = function() {
13078
13078
  return !1;
13079
13079
  }, C.updateContainer = function(n, r, l, c) {
13080
- var d = r.current, A = $t(), X = Ka(d);
13081
- return l = Od(l), r.context === null ? r.context = l : r.pendingContext = l, r = ta(A, X), r.payload = { element: n }, c = c === void 0 ? null : c, c !== null && (r.callback = c), n = Si(d, r, X), n !== null && (Wn(n, d, X, A), Nl(n, d, X)), X;
13080
+ var d = r.current, A = $t(), Y = Ka(d);
13081
+ return l = Od(l), r.context === null ? r.context = l : r.pendingContext = l, r = ta(A, Y), r.payload = { element: n }, c = c === void 0 ? null : c, c !== null && (r.callback = c), n = Si(d, r, Y), n !== null && (Wn(n, d, Y, A), Nl(n, d, Y)), Y;
13082
13082
  }, C;
13083
13083
  }), $v;
13084
13084
  }
@@ -13130,7 +13130,7 @@ function v7() {
13130
13130
  function y(e, t) {
13131
13131
  e._reactInternals = t;
13132
13132
  }
13133
- var x = !1, D = !1, H = !1, G = !0, E = !0, v = !0, M = !0, L = 0, j = 1, Q = 2, O = 3, k = 4, F = 5, Y = 6, q = 7, $ = 8, re = 9, ee = 10, pe = 11, z = 12, B = 13, W = 14, I = 15, J = 16, oe = 17, ne = 18, me = 19, Ae = 21, se = 22, _ = 23, ae = 24, Ce = 25, we = Symbol.for("react.element"), Me = Symbol.for("react.portal"), Ye = Symbol.for("react.fragment"), Re = Symbol.for("react.strict_mode"), Be = Symbol.for("react.profiler"), Ge = Symbol.for("react.provider"), et = Symbol.for("react.context"), qe = Symbol.for("react.forward_ref"), mt = Symbol.for("react.suspense"), Rt = Symbol.for("react.suspense_list"), ct = Symbol.for("react.memo"), gt = Symbol.for("react.lazy"), St = Symbol.for("react.scope"), dn = Symbol.for("react.debug_trace_mode"), nn = Symbol.for("react.offscreen"), kt = Symbol.for("react.legacy_hidden"), dt = Symbol.for("react.cache"), jt = Symbol.for("react.tracing_marker"), hn = Symbol.iterator, _t = "@@iterator";
13133
+ var x = !1, D = !1, H = !1, G = !0, E = !0, v = !0, M = !0, L = 0, j = 1, Q = 2, O = 3, k = 4, F = 5, X = 6, q = 7, $ = 8, re = 9, ee = 10, pe = 11, z = 12, B = 13, W = 14, I = 15, J = 16, oe = 17, ne = 18, me = 19, Ae = 21, se = 22, _ = 23, ae = 24, Ce = 25, we = Symbol.for("react.element"), Me = Symbol.for("react.portal"), Ye = Symbol.for("react.fragment"), Re = Symbol.for("react.strict_mode"), Be = Symbol.for("react.profiler"), Ge = Symbol.for("react.provider"), et = Symbol.for("react.context"), qe = Symbol.for("react.forward_ref"), mt = Symbol.for("react.suspense"), Rt = Symbol.for("react.suspense_list"), ct = Symbol.for("react.memo"), gt = Symbol.for("react.lazy"), St = Symbol.for("react.scope"), dn = Symbol.for("react.debug_trace_mode"), nn = Symbol.for("react.offscreen"), kt = Symbol.for("react.legacy_hidden"), dt = Symbol.for("react.cache"), jt = Symbol.for("react.tracing_marker"), hn = Symbol.iterator, _t = "@@iterator";
13134
13134
  function Ne(e) {
13135
13135
  if (e === null || typeof e != "object")
13136
13136
  return null;
@@ -13222,7 +13222,7 @@ function v7() {
13222
13222
  return "Portal";
13223
13223
  case O:
13224
13224
  return "Root";
13225
- case Y:
13225
+ case X:
13226
13226
  return "Text";
13227
13227
  case J:
13228
13228
  return Ze(a);
@@ -13439,7 +13439,7 @@ function v7() {
13439
13439
  return t !== null ? Zs(t) : null;
13440
13440
  }
13441
13441
  function Zs(e) {
13442
- if (e.tag === F || e.tag === Y)
13442
+ if (e.tag === F || e.tag === X)
13443
13443
  return e;
13444
13444
  for (var t = e.child; t !== null; ) {
13445
13445
  var a = Zs(t);
@@ -13454,7 +13454,7 @@ function v7() {
13454
13454
  return t !== null ? Zf(t) : null;
13455
13455
  }
13456
13456
  function Zf(e) {
13457
- if (e.tag === F || e.tag === Y)
13457
+ if (e.tag === F || e.tag === X)
13458
13458
  return e;
13459
13459
  for (var t = e.child; t !== null; ) {
13460
13460
  if (t.tag !== k) {
@@ -14648,7 +14648,7 @@ function v7() {
14648
14648
  var i = t.type, s = t.pendingProps;
14649
14649
  lo(a, i, s);
14650
14650
  break;
14651
- case Y:
14651
+ case X:
14652
14652
  var f = t.pendingProps;
14653
14653
  x0(a, f);
14654
14654
  break;
@@ -14674,7 +14674,7 @@ function v7() {
14674
14674
  );
14675
14675
  break;
14676
14676
  }
14677
- case Y: {
14677
+ case X: {
14678
14678
  var ve = t.pendingProps, xe = (e.mode & Et) !== Ke;
14679
14679
  ld(
14680
14680
  w,
@@ -14700,7 +14700,7 @@ function v7() {
14700
14700
  var We = t.type, rt = t.pendingProps;
14701
14701
  so(Ee, We, rt);
14702
14702
  break;
14703
- case Y:
14703
+ case X:
14704
14704
  var $e = t.pendingProps;
14705
14705
  ad(Ee, $e);
14706
14706
  break;
@@ -14724,7 +14724,7 @@ function v7() {
14724
14724
  var a = e.type, i = e.pendingProps, s = ao(t, a, i);
14725
14725
  return s !== null ? (e.stateNode = s, un = e, Yr = ku(s), !0) : !1;
14726
14726
  }
14727
- case Y: {
14727
+ case X: {
14728
14728
  var f = e.pendingProps, w = qr(t, f);
14729
14729
  return w !== null ? (e.stateNode = w, un = e, Yr = null, !0) : !1;
14730
14730
  }
@@ -14873,7 +14873,7 @@ function v7() {
14873
14873
  function A() {
14874
14874
  return c.transition;
14875
14875
  }
14876
- function X(e, t) {
14876
+ function Y(e, t) {
14877
14877
  if (ir(e, t))
14878
14878
  return !0;
14879
14879
  if (typeof e != "object" || e === null || typeof t != "object" || t === null)
@@ -15226,7 +15226,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
15226
15226
  return e && de.alternate === null && (de.flags |= Zt), de;
15227
15227
  }
15228
15228
  function U(de, ye, fe, Pe) {
15229
- if (ye === null || ye.tag !== Y) {
15229
+ if (ye === null || ye.tag !== X) {
15230
15230
  var Qe = Dv(fe, de.mode, Pe);
15231
15231
  return Qe.return = de, Qe;
15232
15232
  } else {
@@ -15474,7 +15474,7 @@ See https://reactjs.org/link/refs-must-have-owner for more information.`);
15474
15474
  return tn;
15475
15475
  }
15476
15476
  function rt(de, ye, fe, Pe) {
15477
- if (ye !== null && ye.tag === Y) {
15477
+ if (ye !== null && ye.tag === X) {
15478
15478
  a(de, ye.sibling);
15479
15479
  var Qe = s(ye, fe);
15480
15480
  return Qe.return = de, Qe;
@@ -17411,7 +17411,7 @@ Incoming: %s`, Se, "[" + t.join(", ") + "]", "[" + e.join(", ") + "]");
17411
17411
  }
17412
17412
  return V;
17413
17413
  }
17414
- return t.prototype && t.prototype.isPureReactComponent ? !X(a, i) || !X(s, f) : !0;
17414
+ return t.prototype && t.prototype.isPureReactComponent ? !Y(a, i) || !Y(s, f) : !0;
17415
17415
  }
17416
17416
  function K5(e, t, a) {
17417
17417
  var i = e.stateNode;
@@ -17848,7 +17848,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
17848
17848
  var ve = e.child, xe = Qp(e, s);
17849
17849
  if (!xe) {
17850
17850
  var Te = ve.memoizedProps, Ee = a.compare;
17851
- if (Ee = Ee !== null ? Ee : X, Ee(Te, i) && e.ref === t.ref)
17851
+ if (Ee = Ee !== null ? Ee : Y, Ee(Te, i) && e.ref === t.ref)
17852
17852
  return gl(e, t, s);
17853
17853
  }
17854
17854
  t.flags |= pn;
@@ -17877,7 +17877,7 @@ Visit https://reactjs.org/link/error-boundaries to learn more about error bounda
17877
17877
  }
17878
17878
  if (e !== null) {
17879
17879
  var te = e.memoizedProps;
17880
- if (X(te, i) && e.ref === t.ref && // Prevent bailout if the implementation changed due to hot reload.
17880
+ if (Y(te, i) && e.ref === t.ref && // Prevent bailout if the implementation changed due to hot reload.
17881
17881
  t.type === e.type)
17882
17882
  if (li = !1, t.pendingProps = i = te, Qp(e, s))
17883
17883
  (e.flags & Au) !== Xe && (li = !0);
@@ -18735,7 +18735,7 @@ Check the render method of \`` + i + "`.");
18735
18735
  return d3(e, t, a);
18736
18736
  case F:
18737
18737
  return h3(e, t, a);
18738
- case Y:
18738
+ case X:
18739
18739
  return p3(e, t);
18740
18740
  case B:
18741
18741
  return Fm(e, t, a);
@@ -18807,7 +18807,7 @@ Check the render method of \`` + i + "`.");
18807
18807
  if (zr)
18808
18808
  zc = function(e, t, a, i) {
18809
18809
  for (var s = t.child; s !== null; ) {
18810
- if (s.tag === F || s.tag === Y)
18810
+ if (s.tag === F || s.tag === X)
18811
18811
  Wa(e, s.stateNode);
18812
18812
  else if (s.tag !== k) {
18813
18813
  if (s.child !== null) {
@@ -18844,7 +18844,7 @@ Check the render method of \`` + i + "`.");
18844
18844
  f = Ji(f, U, w, s);
18845
18845
  }
18846
18846
  Wa(e, f);
18847
- } else if (s.tag === Y) {
18847
+ } else if (s.tag === X) {
18848
18848
  var V = s.stateNode;
18849
18849
  if (a && i) {
18850
18850
  var Z = s.memoizedProps;
@@ -18879,7 +18879,7 @@ Check the render method of \`` + i + "`.");
18879
18879
  f = Ji(f, U, w, s);
18880
18880
  }
18881
18881
  $f(e, f);
18882
- } else if (s.tag === Y) {
18882
+ } else if (s.tag === X) {
18883
18883
  var V = s.stateNode;
18884
18884
  if (a && i) {
18885
18885
  var Z = s.memoizedProps;
@@ -19060,7 +19060,7 @@ Check the render method of \`` + i + "`.");
19060
19060
  }
19061
19061
  return dr(t), null;
19062
19062
  }
19063
- case Y: {
19063
+ case X: {
19064
19064
  var xe = i;
19065
19065
  if (e && t.stateNode != null) {
19066
19066
  var Te = e.memoizedProps;
@@ -19440,7 +19440,7 @@ Check the render method of \`` + i + "`.");
19440
19440
  break;
19441
19441
  }
19442
19442
  case F:
19443
- case Y:
19443
+ case X:
19444
19444
  case k:
19445
19445
  case oe:
19446
19446
  break;
@@ -19592,7 +19592,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19592
19592
  }
19593
19593
  break;
19594
19594
  }
19595
- case Y:
19595
+ case X:
19596
19596
  break;
19597
19597
  case k:
19598
19598
  break;
@@ -19676,7 +19676,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19676
19676
  Wt(e, e.return, w);
19677
19677
  }
19678
19678
  }
19679
- } else if (i.tag === Y) {
19679
+ } else if (i.tag === X) {
19680
19680
  if (a === null)
19681
19681
  try {
19682
19682
  var f = i.stateNode;
@@ -19766,7 +19766,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19766
19766
  return null;
19767
19767
  t = t.return;
19768
19768
  }
19769
- for (t.sibling.return = t.return, t = t.sibling; t.tag !== F && t.tag !== Y && t.tag !== ne; ) {
19769
+ for (t.sibling.return = t.return, t = t.sibling; t.tag !== F && t.tag !== X && t.tag !== ne; ) {
19770
19770
  if (t.flags & Zt || t.child === null || t.tag === k)
19771
19771
  continue e;
19772
19772
  t.child.return = t, t = t.child;
@@ -19799,7 +19799,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19799
19799
  }
19800
19800
  }
19801
19801
  function Zp(e, t, a) {
19802
- var i = e.tag, s = i === F || i === Y;
19802
+ var i = e.tag, s = i === F || i === X;
19803
19803
  if (s) {
19804
19804
  var f = e.stateNode;
19805
19805
  t ? Gu(a, f, t) : h0(a, f);
@@ -19813,7 +19813,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19813
19813
  }
19814
19814
  }
19815
19815
  function qp(e, t, a) {
19816
- var i = e.tag, s = i === F || i === Y;
19816
+ var i = e.tag, s = i === F || i === X;
19817
19817
  if (s) {
19818
19818
  var f = e.stateNode;
19819
19819
  t ? v0(a, f, t) : Kf(a, f);
@@ -19863,7 +19863,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
19863
19863
  case F:
19864
19864
  hr || pu(a, t);
19865
19865
  // eslint-disable-next-line-no-fallthrough
19866
- case Y: {
19866
+ case X: {
19867
19867
  if (zr) {
19868
19868
  var i = pr, s = oi;
19869
19869
  pr = null, Ui(e, t, a), pr = i, oi = s, pr !== null && (oi ? no(pr, a.stateNode) : m0(pr, a.stateNode));
@@ -20047,7 +20047,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
20047
20047
  }
20048
20048
  return;
20049
20049
  }
20050
- case Y: {
20050
+ case X: {
20051
20051
  if (ui(t, e), Gi(e), s & Dt && zr) {
20052
20052
  if (e.stateNode === null)
20053
20053
  throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");
@@ -20569,7 +20569,7 @@ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-f
20569
20569
  }
20570
20570
  break;
20571
20571
  case Nh:
20572
- if (e.tag === F || e.tag === Y) {
20572
+ if (e.tag === F || e.tag === X) {
20573
20573
  var i = d0(e);
20574
20574
  if (i !== null && i.indexOf(t.value) >= 0)
20575
20575
  return !0;
@@ -21914,7 +21914,7 @@ Check the render method of \`` + Z + "`.");
21914
21914
  return s.stateNode = f, s;
21915
21915
  }
21916
21916
  function Dv(e, t, a) {
21917
- var i = ba(Y, e, null, t);
21917
+ var i = ba(X, e, null, t);
21918
21918
  return i.lanes = a, i;
21919
21919
  }
21920
21920
  function G8() {
@@ -22677,48 +22677,48 @@ kf.injectIntoDevTools({
22677
22677
  const bS = ln.forwardRef((o, u) => ln.createElement(C5, {}, ln.createElement(SS, { ...o, forwardedRef: u }))), E5 = ({ imageUrl: o, customClassName: u = "", containerRef: C }) => {
22678
22678
  const { showPenTool: P, penColor: N, penTool: g, strokeWidth: p } = Wf(), [m, S] = ot(null), [h, b] = ot({ width: 0, height: 0 }), [R, T] = ot(!1), [y, x] = ot([]), [D, H] = ot(
22679
22679
  []
22680
- ), [G, E] = ot(null), v = Yt(null), M = Yt(null);
22680
+ ), [G, E] = ot(null), v = Yt(null), M = Yt(null), L = 600, j = 600;
22681
22681
  sn(() => {
22682
22682
  const F = new window.Image();
22683
22683
  F.onload = () => {
22684
22684
  S(F);
22685
- const q = Math.min(600 / F.width, 1);
22685
+ const X = Math.min(L / F.width, j / F.height, 1);
22686
22686
  b({
22687
- width: F.width * q,
22688
- height: F.height * q
22687
+ width: Math.min(F.width * X, L),
22688
+ height: Math.min(F.height * X, j)
22689
22689
  });
22690
22690
  }, F.src = o;
22691
22691
  }, [o]);
22692
- const L = cn(
22692
+ const Q = cn(
22693
22693
  (F) => {
22694
22694
  if (!P || !m) return;
22695
- const Y = F.target.getStage()?.getPointerPosition();
22696
- Y && (T(!0), g === gr.PEN ? x([
22695
+ const X = F.target.getStage()?.getPointerPosition();
22696
+ X && (T(!0), g === gr.PEN ? x([
22697
22697
  ...y,
22698
22698
  {
22699
- points: [{ x: Y.x, y: Y.y }],
22699
+ points: [{ x: X.x, y: X.y }],
22700
22700
  color: N,
22701
22701
  width: p
22702
22702
  }
22703
22703
  ]) : (g === gr.RECT || g === gr.CIRCLE) && E({
22704
- points: [{ x: Y.x, y: Y.y }]
22704
+ points: [{ x: X.x, y: X.y }]
22705
22705
  }));
22706
22706
  },
22707
22707
  [P, m, g, y, N, p]
22708
- ), j = cn(
22708
+ ), O = cn(
22709
22709
  (F) => {
22710
22710
  if (!P || !R || !m) return;
22711
- const Y = F.target.getStage()?.getPointerPosition();
22712
- if (Y)
22711
+ const X = F.target.getStage()?.getPointerPosition();
22712
+ if (X)
22713
22713
  if (g === gr.PEN) {
22714
22714
  const q = y[y.length - 1];
22715
- q && (q.points.push({ x: Y.x, y: Y.y }), y.splice(y.length - 1, 1, q), x([...y]));
22715
+ q && (q.points.push({ x: X.x, y: X.y }), y.splice(y.length - 1, 1, q), x([...y]));
22716
22716
  } else G && (g === gr.RECT || g === gr.CIRCLE) && E({
22717
- points: [G.points[0], { x: Y.x, y: Y.y }]
22717
+ points: [G.points[0], { x: X.x, y: X.y }]
22718
22718
  });
22719
22719
  },
22720
22720
  [P, R, m, g, y, G]
22721
- ), Q = cn(() => {
22721
+ ), k = cn(() => {
22722
22722
  !P || !m || (T(!1), G && (g === gr.RECT || g === gr.CIRCLE) && (G.points.length === 2 && H([
22723
22723
  ...D,
22724
22724
  {
@@ -22728,17 +22728,13 @@ const bS = ln.forwardRef((o, u) => ln.createElement(C5, {}, ln.createElement(SS,
22728
22728
  width: p
22729
22729
  }
22730
22730
  ]), E(null)));
22731
- }, [P, m, G, g, D, N, p]), O = () => {
22732
- if (!m) return { x: 1, y: 1 };
22733
- const Y = Math.min(600 / m.width, 1);
22734
- return { x: Y, y: Y };
22735
- };
22736
- if (sn(() => {
22731
+ }, [P, m, G, g, D, N, p]);
22732
+ return sn(() => {
22737
22733
  if (!C) return;
22738
22734
  const F = () => {
22739
- const Y = document.getElementById(C);
22740
- if (Y && m) {
22741
- const { clientWidth: q, clientHeight: $ } = Y, re = Math.min(q / m.width, $ / m.height);
22735
+ const X = document.getElementById(C);
22736
+ if (X && m) {
22737
+ const { clientWidth: q, clientHeight: $ } = X, re = Math.min(q / m.width, $ / m.height);
22742
22738
  b({
22743
22739
  width: m.width * re,
22744
22740
  height: m.height * re
@@ -22746,31 +22742,15 @@ const bS = ln.forwardRef((o, u) => ln.createElement(C5, {}, ln.createElement(SS,
22746
22742
  }
22747
22743
  };
22748
22744
  return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
22749
- }, [C, m]), !m)
22750
- return /* @__PURE__ */ K.jsx("div", { style: { position: "relative" }, children: /* @__PURE__ */ K.jsx(
22751
- "div",
22752
- {
22753
- style: {
22754
- width: 600,
22755
- height: 400,
22756
- background: "#f0f0f0",
22757
- display: "flex",
22758
- alignItems: "center",
22759
- justifyContent: "center"
22760
- },
22761
- children: "Loading image..."
22762
- }
22763
- ) });
22764
- const k = O();
22765
- return /* @__PURE__ */ K.jsx("div", { style: { position: "relative" }, className: u, children: /* @__PURE__ */ K.jsx(
22745
+ }, [C, m]), m ? /* @__PURE__ */ K.jsx("div", { style: { position: "relative" }, className: u, children: /* @__PURE__ */ K.jsx(
22766
22746
  bS,
22767
22747
  {
22768
22748
  ref: v,
22769
22749
  width: h.width,
22770
22750
  height: h.height,
22771
- onMouseDown: L,
22772
- onMousemove: j,
22773
- onMouseup: Q,
22751
+ onMouseDown: Q,
22752
+ onMousemove: O,
22753
+ onMouseup: k,
22774
22754
  style: {
22775
22755
  border: "1px solid #ccc",
22776
22756
  // height: `${imageHeight}px`,
@@ -22786,11 +22766,11 @@ const bS = ln.forwardRef((o, u) => ln.createElement(C5, {}, ln.createElement(SS,
22786
22766
  image: m,
22787
22767
  x: 0,
22788
22768
  y: 0,
22789
- width: C ? h.width : m.width * k.x,
22790
- height: C ? h.height : m.height * k.y
22769
+ width: h.width,
22770
+ height: h.height
22791
22771
  }
22792
22772
  ),
22793
- y.map((F, Y) => /* @__PURE__ */ K.jsx(
22773
+ y.map((F, X) => /* @__PURE__ */ K.jsx(
22794
22774
  CS,
22795
22775
  {
22796
22776
  points: F.points.flatMap((q) => [q.x, q.y]),
@@ -22801,9 +22781,9 @@ const bS = ln.forwardRef((o, u) => ln.createElement(C5, {}, ln.createElement(SS,
22801
22781
  lineJoin: "round",
22802
22782
  globalCompositeOperation: "source-over"
22803
22783
  },
22804
- `line-${Y}`
22784
+ `line-${X}`
22805
22785
  )),
22806
- D.map((F, Y) => {
22786
+ D.map((F, X) => {
22807
22787
  if (F.tool === gr.RECT && F.points.length === 2) {
22808
22788
  const [q, $] = F.points;
22809
22789
  return /* @__PURE__ */ K.jsx(
@@ -22817,7 +22797,7 @@ const bS = ln.forwardRef((o, u) => ln.createElement(C5, {}, ln.createElement(SS,
22817
22797
  strokeWidth: F.width,
22818
22798
  fill: "transparent"
22819
22799
  },
22820
- `rect-${Y}`
22800
+ `rect-${X}`
22821
22801
  );
22822
22802
  } else if (F.tool === gr.CIRCLE && F.points.length === 2) {
22823
22803
  const [q, $] = F.points, re = Math.sqrt(Math.pow($.x - q.x, 2) + Math.pow($.y - q.y, 2));
@@ -22831,7 +22811,7 @@ const bS = ln.forwardRef((o, u) => ln.createElement(C5, {}, ln.createElement(SS,
22831
22811
  strokeWidth: F.width,
22832
22812
  fill: "transparent"
22833
22813
  },
22834
- `circle-${Y}`
22814
+ `circle-${X}`
22835
22815
  );
22836
22816
  }
22837
22817
  return null;
@@ -22867,6 +22847,19 @@ const bS = ln.forwardRef((o, u) => ln.createElement(C5, {}, ln.createElement(SS,
22867
22847
  ] })
22868
22848
  ] })
22869
22849
  }
22850
+ ) }) : /* @__PURE__ */ K.jsx("div", { style: { position: "relative" }, children: /* @__PURE__ */ K.jsx(
22851
+ "div",
22852
+ {
22853
+ style: {
22854
+ width: 600,
22855
+ height: 400,
22856
+ background: "#f0f0f0",
22857
+ display: "flex",
22858
+ alignItems: "center",
22859
+ justifyContent: "center"
22860
+ },
22861
+ children: "Loading image..."
22862
+ }
22870
22863
  ) });
22871
22864
  };
22872
22865
  function TS(o) {
@@ -23364,7 +23357,7 @@ function XS({ isOpen: o, onClose: u, onCapture: C }) {
23364
23357
  "image/jpeg",
23365
23358
  0.8
23366
23359
  );
23367
- }), Y = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-"), q = new File([F], `captured-image-${Y}.jpg`, {
23360
+ }), X = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-"), q = new File([F], `captured-image-${X}.jpg`, {
23368
23361
  type: "image/jpeg"
23369
23362
  });
23370
23363
  await C(q), u();
@@ -23495,9 +23488,9 @@ function yx(o) {
23495
23488
  onDeleteAttachments: x,
23496
23489
  onSaveComparision: D,
23497
23490
  onHeaderBackClick: H
23498
- } = o, [G, E] = ot(!1), [v, M] = ot(!1), [L, j] = ot(""), [Q, O] = ot(!0), [k, F] = ot([]), [Y, q] = ot({ startDate: null, endDate: null }), [$, re] = ot(1), [ee, pe] = ot(""), z = Yt(null), [B, W] = ot(o6.VIEW_GRID), { documentView: I, setDocument: J, addDocuments: oe, selectedDocuments: ne, addDocument: me, updateDocument: Ae } = Ia(), se = Aa(() => I === Ws.GRID_VIEW ? 20 : 3, [I]), [_, ae] = ot(null), [Ce, we] = ot(!1), [Me, Ye] = ot(!1), Re = Aa(() => !G && !v, [G, v]), { data: Be, isLoading: Ge, error: et } = v9(
23499
- `attachments?page=${$}&page_size=${se}&query_type=${B}&search=${L}&types=${k.join(",")}&start_date=${Y.startDate}&end_date=${Y.endDate}&next_date=${ee}&patient_id=${h}&patient_role_id=${b}&doctor_id=${R}&doctor_role_id=${T}&branch_id=${y}`,
23500
- () => C($, L, k, se, B, Y, ee),
23491
+ } = o, [G, E] = ot(!1), [v, M] = ot(!1), [L, j] = ot(""), [Q, O] = ot(!0), [k, F] = ot([]), [X, q] = ot({ startDate: null, endDate: null }), [$, re] = ot(1), [ee, pe] = ot(""), z = Yt(null), [B, W] = ot(o6.VIEW_GRID), { documentView: I, setDocument: J, addDocuments: oe, selectedDocuments: ne, addDocument: me, updateDocument: Ae } = Ia(), se = Aa(() => I === Ws.GRID_VIEW ? 20 : 3, [I]), [_, ae] = ot(null), [Ce, we] = ot(!1), [Me, Ye] = ot(!1), Re = Aa(() => !G && !v, [G, v]), { data: Be, isLoading: Ge, error: et } = v9(
23492
+ `attachments?page=${$}&page_size=${se}&query_type=${B}&search=${L}&types=${k.join(",")}&start_date=${X.startDate}&end_date=${X.endDate}&next_date=${ee}&patient_id=${h}&patient_role_id=${b}&doctor_id=${R}&doctor_role_id=${T}&branch_id=${y}`,
23493
+ () => C($, L, k, se, B, X, ee),
23501
23494
  {
23502
23495
  revalidateOnFocus: !1
23503
23496
  }
@@ -23558,7 +23551,7 @@ function yx(o) {
23558
23551
  setSearch: j,
23559
23552
  types: k,
23560
23553
  setTypes: F,
23561
- dates: Y,
23554
+ dates: X,
23562
23555
  setDates: q,
23563
23556
  setHasData: O,
23564
23557
  onSaveComparision: D,