@fileverse-dev/dsheet 2.1.2-dropIn-mri-2 → 2.1.2-dropIn-mri-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  var GW = Object.defineProperty;
2
2
  var WW = (e, t, l) => t in e ? GW(e, t, { enumerable: !0, configurable: !0, writable: !0, value: l }) : e[t] = l;
3
3
  var Ce = (e, t, l) => WW(e, typeof t != "symbol" ? t + "" : t, l);
4
- import wt, { useRef as we, useContext as ot, useState as Se, useMemo as lt, useEffect as Ye, useCallback as Ve, useLayoutEffect as Gl, forwardRef as cm, createElement as Or, useSyncExternalStore as XW, useImperativeHandle as gW, createContext as om, memo as fW } from "react";
5
- import { g as Qc, a as Je, b as zt, r as Et, d as li, s as Pd, h as He, i as fc, j as Vc, l as bt, k as VW, m as Po, n as qn, o as tl, p as _t, q as Yn, t as lZ, u as Kt, v as iZ, w as It, x as nZ, y as $a, z as dm, A as sZ, B as xn, C as yi, D as Ri, E as cZ, F as oZ, G as dZ, H as am, I as pi, J as Un, K as YW, L as xW, M as Pc, N as rm, O as Vl, P as Ad, Q as SW, R as Cl, S as RW, T as Ao, U as um, V as mm, W as md, X as Ci, Y as aZ, Z as LW, _ as al, $ as jl, a0 as wW, a1 as rZ, a2 as Ac, a3 as Gi, a4 as el, a5 as JW, a6 as Yl, a7 as ks, a8 as Bs, a9 as Go, aa as er, ab as Li, ac as _d, ad as Dr, ae as uZ, af as Is, ag as hd, ah as CW, ai as _c, aj as HW, ak as qd, al as qc, am as Wo, an as Xo, ao as vt, ap as xi, aq as Ut, ar as zl, as as il, at as bn, au as $d, av as ni, aw as Zn, ax as Oi, ay as Uh, az as kW, aA as Xs, aB as Xn, aC as Kh, aD as BW, aE as mZ, aF as $c, aG as FW, aH as Ai, aI as Kl, aJ as NW, aK as Sn, aL as vW, aM as xl, aN as dn, aO as TW, aP as hZ, aQ as bZ, aR as ZZ, aS as IZ, aT as yZ, aU as pZ, aV as GZ, aW as WZ, aX as hm, aY as Yc, aZ as gs, a_ as XZ, a$ as UW, b0 as gZ, b1 as go, b2 as KW, b3 as xc, b4 as tr, b5 as MW, b6 as jW, b7 as zW, b8 as EW, b9 as OW, ba as ea, bb as ii, bc as nl, bd as fs, be as Sc, bf as DW, bg as Vs, bh as bd, bi as ti, bj as gn, bk as ta, bl as Zd, bm as ns, bn as QW, bo as PW, bp as On, bq as $l, br as la, bs as ia, bt as fZ, bu as on, bv as fo, bw as AW, bx as _W, by as _i, bz as na, bA as Zl, bB as $t, bC as VZ, bD as YZ, bE as Dn, bF as sa, bG as qW, bH as $W, bI as eX, bJ as tX, bK as lX, bL as xZ, bM as SZ, bN as Fn, bO as RZ, bP as iX, bQ as Qr, bR as LZ, bS as nX, bT as wZ, bU as JZ, bV as CZ, bW as HZ, bX as kZ, bY as BZ, bZ as bm, b_ as ca, b$ as sX, c0 as FZ, c1 as In, c2 as Di, c3 as yn, c4 as pn, c5 as _o, c6 as cX, c7 as NZ, c8 as oX, c9 as Zm, ca as vZ, cb as dX, cc as TZ, cd as UZ, ce as KZ, cf as Pr, cg as MZ, ch as jZ, ci as aX, cj as zZ, ck as wi, cl as rX, cm as EZ, cn as Im, co as OZ, cp as uX, cq as Id, cr as mX, cs as DZ, ct as QZ, cu as ji, cv as PZ, cw as AZ, cx as hX, cy as Rc, cz as Ar, cA as _r, cB as ym, cC as pm, cD as Gm, cE as _Z, cF as qZ, cG as $Z, cH as bX, cI as ZX, cJ as Lc, cK as wc, cL as eI, cM as qr, cN as IX, c as an, cO as Mh, cP as yX, cQ as pX, e as oa, f as eo, cR as GX, cS as WX, cT as jh, cU as zh, cV as Eh, cW as Oh, cX as XX, cY as gX, cZ as Dh } from "./executeStringFunction-Don8m4mk.js";
4
+ import wt, { useRef as we, useContext as ot, useState as Se, useMemo as lt, useEffect as xe, useCallback as Ve, useLayoutEffect as Gl, forwardRef as cm, createElement as Or, useSyncExternalStore as XW, useImperativeHandle as gW, createContext as om, memo as fW } from "react";
5
+ import { g as Qc, a as Je, b as zt, r as Et, d as li, s as Pd, h as He, i as fc, j as Vc, l as bt, k as VW, m as Po, n as qn, o as tl, p as _t, q as Yn, t as lZ, u as Kt, v as iZ, w as It, x as nZ, y as $a, z as dm, A as sZ, B as xn, C as yi, D as Ri, E as cZ, F as oZ, G as dZ, H as am, I as pi, J as Un, K as YW, L as xW, M as Pc, N as rm, O as Vl, P as Ad, Q as SW, R as Cl, S as RW, T as Ao, U as um, V as mm, W as md, X as Ci, Y as aZ, Z as LW, _ as al, $ as jl, a0 as wW, a1 as rZ, a2 as Ac, a3 as Gi, a4 as el, a5 as JW, a6 as Yl, a7 as ks, a8 as Bs, a9 as Go, aa as er, ab as Li, ac as _d, ad as Dr, ae as uZ, af as Is, ag as hd, ah as CW, ai as _c, aj as HW, ak as qd, al as qc, am as Wo, an as Xo, ao as vt, ap as xi, aq as Ut, ar as zl, as as il, at as bn, au as $d, av as ni, aw as Zn, ax as Oi, ay as Uh, az as kW, aA as Xs, aB as Xn, aC as Kh, aD as BW, aE as mZ, aF as $c, aG as FW, aH as Ai, aI as Kl, aJ as NW, aK as Sn, aL as vW, aM as xl, aN as dn, aO as TW, aP as hZ, aQ as bZ, aR as ZZ, aS as IZ, aT as yZ, aU as pZ, aV as GZ, aW as WZ, aX as hm, aY as Yc, aZ as gs, a_ as XZ, a$ as UW, b0 as gZ, b1 as go, b2 as KW, b3 as xc, b4 as tr, b5 as MW, b6 as jW, b7 as zW, b8 as EW, b9 as OW, ba as ea, bb as ii, bc as nl, bd as fs, be as Sc, bf as DW, bg as Vs, bh as bd, bi as ti, bj as gn, bk as ta, bl as Zd, bm as ns, bn as QW, bo as PW, bp as On, bq as $l, br as la, bs as ia, bt as fZ, bu as on, bv as fo, bw as AW, bx as _W, by as _i, bz as na, bA as Zl, bB as $t, bC as VZ, bD as YZ, bE as Dn, bF as sa, bG as qW, bH as $W, bI as eX, bJ as tX, bK as lX, bL as xZ, bM as SZ, bN as Fn, bO as RZ, bP as iX, bQ as Qr, bR as LZ, bS as nX, bT as wZ, bU as JZ, bV as CZ, bW as HZ, bX as kZ, bY as BZ, bZ as bm, b_ as ca, b$ as sX, c0 as FZ, c1 as In, c2 as Di, c3 as yn, c4 as pn, c5 as _o, c6 as cX, c7 as NZ, c8 as oX, c9 as Zm, ca as vZ, cb as dX, cc as TZ, cd as UZ, ce as KZ, cf as Pr, cg as MZ, ch as jZ, ci as aX, cj as zZ, ck as wi, cl as rX, cm as EZ, cn as Im, co as OZ, cp as uX, cq as Id, cr as mX, cs as DZ, ct as QZ, cu as ji, cv as PZ, cw as AZ, cx as hX, cy as Rc, cz as Ar, cA as _r, cB as ym, cC as pm, cD as Gm, cE as _Z, cF as qZ, cG as $Z, cH as bX, cI as ZX, cJ as Lc, cK as wc, cL as eI, cM as qr, cN as IX, c as an, cO as Mh, cP as yX, cQ as pX, e as oa, f as eo, cR as GX, cS as WX, cT as jh, cU as zh, cV as Eh, cW as Oh, cX as XX, cY as gX, cZ as Dh } from "./executeStringFunction-CdefKC3n.js";
6
6
  import * as Fe from "yjs";
7
7
  import { p as $r, E as fX, C as lr, a as Qh, D as tI, H as VX, b as YX, T as xX } from "./constants-yStXQJiK.js";
8
8
  import { IndexeddbPersistence as SX } from "y-indexeddb";
@@ -54,57 +54,57 @@ var $h;
54
54
  function PX() {
55
55
  return $h || ($h = 1, process.env.NODE_ENV !== "production" && function() {
56
56
  var e = wt, t = Symbol.for("react.element"), l = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), n = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), r = Symbol.for("react.suspense_list"), m = Symbol.for("react.memo"), h = Symbol.for("react.lazy"), b = Symbol.for("react.offscreen"), Z = Symbol.iterator, I = "@@iterator";
57
- function G(Xe) {
58
- if (Xe === null || typeof Xe != "object")
57
+ function G(ge) {
58
+ if (ge === null || typeof ge != "object")
59
59
  return null;
60
- var Ue = Z && Xe[Z] || Xe[I];
60
+ var Ue = Z && ge[Z] || ge[I];
61
61
  return typeof Ue == "function" ? Ue : null;
62
62
  }
63
63
  var p = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
64
- function f(Xe) {
64
+ function f(ge) {
65
65
  {
66
66
  for (var Ue = arguments.length, qe = new Array(Ue > 1 ? Ue - 1 : 0), ut = 1; ut < Ue; ut++)
67
67
  qe[ut - 1] = arguments[ut];
68
- W("error", Xe, qe);
68
+ W("error", ge, qe);
69
69
  }
70
70
  }
71
- function W(Xe, Ue, qe) {
71
+ function W(ge, Ue, qe) {
72
72
  {
73
73
  var ut = p.ReactDebugCurrentFrame, xt = ut.getStackAddendum();
74
74
  xt !== "" && (Ue += "%s", qe = qe.concat([xt]));
75
75
  var Jt = qe.map(function(gt) {
76
76
  return String(gt);
77
77
  });
78
- Jt.unshift("Warning: " + Ue), Function.prototype.apply.call(console[Xe], console, Jt);
78
+ Jt.unshift("Warning: " + Ue), Function.prototype.apply.call(console[ge], console, Jt);
79
79
  }
80
80
  }
81
81
  var y = !1, g = !1, X = !1, x = !1, V = !1, N;
82
82
  N = Symbol.for("react.module.reference");
83
- function Q(Xe) {
84
- return !!(typeof Xe == "string" || typeof Xe == "function" || Xe === i || Xe === s || V || Xe === n || Xe === u || Xe === r || x || Xe === b || y || g || X || typeof Xe == "object" && Xe !== null && (Xe.$$typeof === h || Xe.$$typeof === m || Xe.$$typeof === a || Xe.$$typeof === c || Xe.$$typeof === d || // This needs to include all possible module reference object
83
+ function Q(ge) {
84
+ return !!(typeof ge == "string" || typeof ge == "function" || ge === i || ge === s || V || ge === n || ge === u || ge === r || x || ge === b || y || g || X || typeof ge == "object" && ge !== null && (ge.$$typeof === h || ge.$$typeof === m || ge.$$typeof === a || ge.$$typeof === c || ge.$$typeof === d || // This needs to include all possible module reference object
85
85
  // types supported by any Flight configuration anywhere since
86
86
  // we don't know which Flight build this will end up being used
87
87
  // with.
88
- Xe.$$typeof === N || Xe.getModuleId !== void 0));
88
+ ge.$$typeof === N || ge.getModuleId !== void 0));
89
89
  }
90
- function A(Xe, Ue, qe) {
91
- var ut = Xe.displayName;
90
+ function A(ge, Ue, qe) {
91
+ var ut = ge.displayName;
92
92
  if (ut)
93
93
  return ut;
94
94
  var xt = Ue.displayName || Ue.name || "";
95
95
  return xt !== "" ? qe + "(" + xt + ")" : qe;
96
96
  }
97
- function E(Xe) {
98
- return Xe.displayName || "Context";
97
+ function E(ge) {
98
+ return ge.displayName || "Context";
99
99
  }
100
- function Y(Xe) {
101
- if (Xe == null)
100
+ function Y(ge) {
101
+ if (ge == null)
102
102
  return null;
103
- if (typeof Xe.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof Xe == "function")
104
- return Xe.displayName || Xe.name || null;
105
- if (typeof Xe == "string")
106
- return Xe;
107
- switch (Xe) {
103
+ if (typeof ge.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof ge == "function")
104
+ return ge.displayName || ge.name || null;
105
+ if (typeof ge == "string")
106
+ return ge;
107
+ switch (ge) {
108
108
  case i:
109
109
  return "Fragment";
110
110
  case l:
@@ -118,21 +118,21 @@ function PX() {
118
118
  case r:
119
119
  return "SuspenseList";
120
120
  }
121
- if (typeof Xe == "object")
122
- switch (Xe.$$typeof) {
121
+ if (typeof ge == "object")
122
+ switch (ge.$$typeof) {
123
123
  case c:
124
- var Ue = Xe;
124
+ var Ue = ge;
125
125
  return E(Ue) + ".Consumer";
126
126
  case a:
127
- var qe = Xe;
127
+ var qe = ge;
128
128
  return E(qe._context) + ".Provider";
129
129
  case d:
130
- return A(Xe, Xe.render, "ForwardRef");
130
+ return A(ge, ge.render, "ForwardRef");
131
131
  case m:
132
- var ut = Xe.displayName || null;
133
- return ut !== null ? ut : Y(Xe.type) || "Memo";
132
+ var ut = ge.displayName || null;
133
+ return ut !== null ? ut : Y(ge.type) || "Memo";
134
134
  case h: {
135
- var xt = Xe, Jt = xt._payload, gt = xt._init;
135
+ var xt = ge, Jt = xt._payload, gt = xt._init;
136
136
  try {
137
137
  return Y(gt(Jt));
138
138
  } catch {
@@ -150,20 +150,20 @@ function PX() {
150
150
  {
151
151
  if (S === 0) {
152
152
  C = console.log, K = console.info, F = console.warn, k = console.error, w = console.group, T = console.groupCollapsed, B = console.groupEnd;
153
- var Xe = {
153
+ var ge = {
154
154
  configurable: !0,
155
155
  enumerable: !0,
156
156
  value: ee,
157
157
  writable: !0
158
158
  };
159
159
  Object.defineProperties(console, {
160
- info: Xe,
161
- log: Xe,
162
- warn: Xe,
163
- error: Xe,
164
- group: Xe,
165
- groupCollapsed: Xe,
166
- groupEnd: Xe
160
+ info: ge,
161
+ log: ge,
162
+ warn: ge,
163
+ error: ge,
164
+ group: ge,
165
+ groupCollapsed: ge,
166
+ groupEnd: ge
167
167
  });
168
168
  }
169
169
  S++;
@@ -172,31 +172,31 @@ function PX() {
172
172
  function ne() {
173
173
  {
174
174
  if (S--, S === 0) {
175
- var Xe = {
175
+ var ge = {
176
176
  configurable: !0,
177
177
  enumerable: !0,
178
178
  writable: !0
179
179
  };
180
180
  Object.defineProperties(console, {
181
- log: L({}, Xe, {
181
+ log: L({}, ge, {
182
182
  value: C
183
183
  }),
184
- info: L({}, Xe, {
184
+ info: L({}, ge, {
185
185
  value: K
186
186
  }),
187
- warn: L({}, Xe, {
187
+ warn: L({}, ge, {
188
188
  value: F
189
189
  }),
190
- error: L({}, Xe, {
190
+ error: L({}, ge, {
191
191
  value: k
192
192
  }),
193
- group: L({}, Xe, {
193
+ group: L({}, ge, {
194
194
  value: w
195
195
  }),
196
- groupCollapsed: L({}, Xe, {
196
+ groupCollapsed: L({}, ge, {
197
197
  value: T
198
198
  }),
199
- groupEnd: L({}, Xe, {
199
+ groupEnd: L({}, ge, {
200
200
  value: B
201
201
  })
202
202
  });
@@ -205,7 +205,7 @@ function PX() {
205
205
  }
206
206
  }
207
207
  var te = p.ReactCurrentDispatcher, J;
208
- function P(Xe, Ue, qe) {
208
+ function P(ge, Ue, qe) {
209
209
  {
210
210
  if (J === void 0)
211
211
  try {
@@ -215,7 +215,7 @@ function PX() {
215
215
  J = ut && ut[1] || "";
216
216
  }
217
217
  return `
218
- ` + J + Xe;
218
+ ` + J + ge;
219
219
  }
220
220
  }
221
221
  var z = !1, R;
@@ -223,11 +223,11 @@ function PX() {
223
223
  var v = typeof WeakMap == "function" ? WeakMap : Map;
224
224
  R = new v();
225
225
  }
226
- function oe(Xe, Ue) {
227
- if (!Xe || z)
226
+ function oe(ge, Ue) {
227
+ if (!ge || z)
228
228
  return "";
229
229
  {
230
- var qe = R.get(Xe);
230
+ var qe = R.get(ge);
231
231
  if (qe !== void 0)
232
232
  return qe;
233
233
  }
@@ -252,14 +252,14 @@ function PX() {
252
252
  } catch (Xl) {
253
253
  ut = Xl;
254
254
  }
255
- Reflect.construct(Xe, [], gt);
255
+ Reflect.construct(ge, [], gt);
256
256
  } else {
257
257
  try {
258
258
  gt.call();
259
259
  } catch (Xl) {
260
260
  ut = Xl;
261
261
  }
262
- Xe.call(gt.prototype);
262
+ ge.call(gt.prototype);
263
263
  }
264
264
  } else {
265
265
  try {
@@ -267,7 +267,7 @@ function PX() {
267
267
  } catch (Xl) {
268
268
  ut = Xl;
269
269
  }
270
- Xe();
270
+ ge();
271
271
  }
272
272
  } catch (Xl) {
273
273
  if (Xl && ut && typeof Xl.stack == "string") {
@@ -282,7 +282,7 @@ function PX() {
282
282
  if (Ot--, Pt--, Pt < 0 || yt[Ot] !== yl[Pt]) {
283
283
  var Hl = `
284
284
  ` + yt[Ot].replace(" at new ", " at ");
285
- return Xe.displayName && Hl.includes("<anonymous>") && (Hl = Hl.replace("<anonymous>", Xe.displayName)), typeof Xe == "function" && R.set(Xe, Hl), Hl;
285
+ return ge.displayName && Hl.includes("<anonymous>") && (Hl = Hl.replace("<anonymous>", ge.displayName)), typeof ge == "function" && R.set(ge, Hl), Hl;
286
286
  }
287
287
  while (Ot >= 1 && Pt >= 0);
288
288
  break;
@@ -291,37 +291,37 @@ function PX() {
291
291
  } finally {
292
292
  z = !1, te.current = Jt, ne(), Error.prepareStackTrace = xt;
293
293
  }
294
- var Ui = Xe ? Xe.displayName || Xe.name : "", Xi = Ui ? P(Ui) : "";
295
- return typeof Xe == "function" && R.set(Xe, Xi), Xi;
294
+ var Ui = ge ? ge.displayName || ge.name : "", Xi = Ui ? P(Ui) : "";
295
+ return typeof ge == "function" && R.set(ge, Xi), Xi;
296
296
  }
297
- function j(Xe, Ue, qe) {
298
- return oe(Xe, !1);
297
+ function j(ge, Ue, qe) {
298
+ return oe(ge, !1);
299
299
  }
300
- function O(Xe) {
301
- var Ue = Xe.prototype;
300
+ function O(ge) {
301
+ var Ue = ge.prototype;
302
302
  return !!(Ue && Ue.isReactComponent);
303
303
  }
304
- function le(Xe, Ue, qe) {
305
- if (Xe == null)
304
+ function le(ge, Ue, qe) {
305
+ if (ge == null)
306
306
  return "";
307
- if (typeof Xe == "function")
308
- return oe(Xe, O(Xe));
309
- if (typeof Xe == "string")
310
- return P(Xe);
311
- switch (Xe) {
307
+ if (typeof ge == "function")
308
+ return oe(ge, O(ge));
309
+ if (typeof ge == "string")
310
+ return P(ge);
311
+ switch (ge) {
312
312
  case u:
313
313
  return P("Suspense");
314
314
  case r:
315
315
  return P("SuspenseList");
316
316
  }
317
- if (typeof Xe == "object")
318
- switch (Xe.$$typeof) {
317
+ if (typeof ge == "object")
318
+ switch (ge.$$typeof) {
319
319
  case d:
320
- return j(Xe.render);
320
+ return j(ge.render);
321
321
  case m:
322
- return le(Xe.type, Ue, qe);
322
+ return le(ge.type, Ue, qe);
323
323
  case h: {
324
- var ut = Xe, xt = ut._payload, Jt = ut._init;
324
+ var ut = ge, xt = ut._payload, Jt = ut._init;
325
325
  try {
326
326
  return le(Jt(xt), Ue, qe);
327
327
  } catch {
@@ -331,25 +331,25 @@ function PX() {
331
331
  return "";
332
332
  }
333
333
  var Ie = Object.prototype.hasOwnProperty, ue = {}, he = p.ReactDebugCurrentFrame;
334
- function pe(Xe) {
335
- if (Xe) {
336
- var Ue = Xe._owner, qe = le(Xe.type, Xe._source, Ue ? Ue.type : null);
334
+ function pe(ge) {
335
+ if (ge) {
336
+ var Ue = ge._owner, qe = le(ge.type, ge._source, Ue ? Ue.type : null);
337
337
  he.setExtraStackFrame(qe);
338
338
  } else
339
339
  he.setExtraStackFrame(null);
340
340
  }
341
- function q(Xe, Ue, qe, ut, xt) {
341
+ function q(ge, Ue, qe, ut, xt) {
342
342
  {
343
343
  var Jt = Function.call.bind(Ie);
344
- for (var gt in Xe)
345
- if (Jt(Xe, gt)) {
344
+ for (var gt in ge)
345
+ if (Jt(ge, gt)) {
346
346
  var yt = void 0;
347
347
  try {
348
- if (typeof Xe[gt] != "function") {
349
- var yl = Error((ut || "React class") + ": " + qe + " type `" + gt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof Xe[gt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
348
+ if (typeof ge[gt] != "function") {
349
+ var yl = Error((ut || "React class") + ": " + qe + " type `" + gt + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof ge[gt] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
350
350
  throw yl.name = "Invariant Violation", yl;
351
351
  }
352
- yt = Xe[gt](Ue, gt, ut, qe, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
352
+ yt = ge[gt](Ue, gt, ut, qe, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
353
353
  } catch (Ot) {
354
354
  yt = Ot;
355
355
  }
@@ -358,28 +358,28 @@ function PX() {
358
358
  }
359
359
  }
360
360
  var ae = Array.isArray;
361
- function be(Xe) {
362
- return ae(Xe);
361
+ function be(ge) {
362
+ return ae(ge);
363
363
  }
364
- function _(Xe) {
364
+ function _(ge) {
365
365
  {
366
- var Ue = typeof Symbol == "function" && Symbol.toStringTag, qe = Ue && Xe[Symbol.toStringTag] || Xe.constructor.name || "Object";
366
+ var Ue = typeof Symbol == "function" && Symbol.toStringTag, qe = Ue && ge[Symbol.toStringTag] || ge.constructor.name || "Object";
367
367
  return qe;
368
368
  }
369
369
  }
370
- function de(Xe) {
370
+ function de(ge) {
371
371
  try {
372
- return me(Xe), !1;
372
+ return me(ge), !1;
373
373
  } catch {
374
374
  return !0;
375
375
  }
376
376
  }
377
- function me(Xe) {
378
- return "" + Xe;
377
+ function me(ge) {
378
+ return "" + ge;
379
379
  }
380
- function U(Xe) {
381
- if (de(Xe))
382
- return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _(Xe)), me(Xe);
380
+ function U(ge) {
381
+ if (de(ge))
382
+ return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", _(ge)), me(ge);
383
383
  }
384
384
  var H = p.ReactCurrentOwner, ie = {
385
385
  key: !0,
@@ -387,53 +387,53 @@ function PX() {
387
387
  __self: !0,
388
388
  __source: !0
389
389
  }, D, se;
390
- function re(Xe) {
391
- if (Ie.call(Xe, "ref")) {
392
- var Ue = Object.getOwnPropertyDescriptor(Xe, "ref").get;
390
+ function re(ge) {
391
+ if (Ie.call(ge, "ref")) {
392
+ var Ue = Object.getOwnPropertyDescriptor(ge, "ref").get;
393
393
  if (Ue && Ue.isReactWarning)
394
394
  return !1;
395
395
  }
396
- return Xe.ref !== void 0;
396
+ return ge.ref !== void 0;
397
397
  }
398
- function Ze(Xe) {
399
- if (Ie.call(Xe, "key")) {
400
- var Ue = Object.getOwnPropertyDescriptor(Xe, "key").get;
398
+ function Ze(ge) {
399
+ if (Ie.call(ge, "key")) {
400
+ var Ue = Object.getOwnPropertyDescriptor(ge, "key").get;
401
401
  if (Ue && Ue.isReactWarning)
402
402
  return !1;
403
403
  }
404
- return Xe.key !== void 0;
404
+ return ge.key !== void 0;
405
405
  }
406
- function ce(Xe, Ue) {
407
- typeof Xe.ref == "string" && H.current;
406
+ function ce(ge, Ue) {
407
+ typeof ge.ref == "string" && H.current;
408
408
  }
409
- function ye(Xe, Ue) {
409
+ function ye(ge, Ue) {
410
410
  {
411
411
  var qe = function() {
412
412
  D || (D = !0, f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ue));
413
413
  };
414
- qe.isReactWarning = !0, Object.defineProperty(Xe, "key", {
414
+ qe.isReactWarning = !0, Object.defineProperty(ge, "key", {
415
415
  get: qe,
416
416
  configurable: !0
417
417
  });
418
418
  }
419
419
  }
420
- function fe(Xe, Ue) {
420
+ function fe(ge, Ue) {
421
421
  {
422
422
  var qe = function() {
423
423
  se || (se = !0, f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", Ue));
424
424
  };
425
- qe.isReactWarning = !0, Object.defineProperty(Xe, "ref", {
425
+ qe.isReactWarning = !0, Object.defineProperty(ge, "ref", {
426
426
  get: qe,
427
427
  configurable: !0
428
428
  });
429
429
  }
430
430
  }
431
- var xe = function(Xe, Ue, qe, ut, xt, Jt, gt) {
431
+ var Ye = function(ge, Ue, qe, ut, xt, Jt, gt) {
432
432
  var yt = {
433
433
  // This tag allows us to uniquely identify this as a React Element
434
434
  $$typeof: t,
435
435
  // Built-in properties that belong on the element
436
- type: Xe,
436
+ type: ge,
437
437
  key: Ue,
438
438
  ref: qe,
439
439
  props: gt,
@@ -457,58 +457,58 @@ function PX() {
457
457
  value: xt
458
458
  }), Object.freeze && (Object.freeze(yt.props), Object.freeze(yt)), yt;
459
459
  };
460
- function Ge(Xe, Ue, qe, ut, xt) {
460
+ function Ge(ge, Ue, qe, ut, xt) {
461
461
  {
462
462
  var Jt, gt = {}, yt = null, yl = null;
463
463
  qe !== void 0 && (U(qe), yt = "" + qe), Ze(Ue) && (U(Ue.key), yt = "" + Ue.key), re(Ue) && (yl = Ue.ref, ce(Ue, xt));
464
464
  for (Jt in Ue)
465
465
  Ie.call(Ue, Jt) && !ie.hasOwnProperty(Jt) && (gt[Jt] = Ue[Jt]);
466
- if (Xe && Xe.defaultProps) {
467
- var Ot = Xe.defaultProps;
466
+ if (ge && ge.defaultProps) {
467
+ var Ot = ge.defaultProps;
468
468
  for (Jt in Ot)
469
469
  gt[Jt] === void 0 && (gt[Jt] = Ot[Jt]);
470
470
  }
471
471
  if (yt || yl) {
472
- var Pt = typeof Xe == "function" ? Xe.displayName || Xe.name || "Unknown" : Xe;
472
+ var Pt = typeof ge == "function" ? ge.displayName || ge.name || "Unknown" : ge;
473
473
  yt && ye(gt, Pt), yl && fe(gt, Pt);
474
474
  }
475
- return xe(Xe, yt, yl, xt, ut, H.current, gt);
475
+ return Ye(ge, yt, yl, xt, ut, H.current, gt);
476
476
  }
477
477
  }
478
- var ge = p.ReactCurrentOwner, Le = p.ReactDebugCurrentFrame;
479
- function Re(Xe) {
480
- if (Xe) {
481
- var Ue = Xe._owner, qe = le(Xe.type, Xe._source, Ue ? Ue.type : null);
478
+ var Xe = p.ReactCurrentOwner, Le = p.ReactDebugCurrentFrame;
479
+ function Re(ge) {
480
+ if (ge) {
481
+ var Ue = ge._owner, qe = le(ge.type, ge._source, Ue ? Ue.type : null);
482
482
  Le.setExtraStackFrame(qe);
483
483
  } else
484
484
  Le.setExtraStackFrame(null);
485
485
  }
486
486
  var Te;
487
487
  Te = !1;
488
- function Pe(Xe) {
489
- return typeof Xe == "object" && Xe !== null && Xe.$$typeof === t;
488
+ function Pe(ge) {
489
+ return typeof ge == "object" && ge !== null && ge.$$typeof === t;
490
490
  }
491
491
  function ke() {
492
492
  {
493
- if (ge.current) {
494
- var Xe = Y(ge.current.type);
495
- if (Xe)
493
+ if (Xe.current) {
494
+ var ge = Y(Xe.current.type);
495
+ if (ge)
496
496
  return `
497
497
 
498
- Check the render method of \`` + Xe + "`.";
498
+ Check the render method of \`` + ge + "`.";
499
499
  }
500
500
  return "";
501
501
  }
502
502
  }
503
- function Be(Xe) {
503
+ function Be(ge) {
504
504
  return "";
505
505
  }
506
506
  var ve = {};
507
- function Ee(Xe) {
507
+ function Ee(ge) {
508
508
  {
509
509
  var Ue = ke();
510
510
  if (!Ue) {
511
- var qe = typeof Xe == "string" ? Xe : Xe.displayName || Xe.name;
511
+ var qe = typeof ge == "string" ? ge : ge.displayName || ge.name;
512
512
  qe && (Ue = `
513
513
 
514
514
  Check the top-level render call using <` + qe + ">.");
@@ -516,41 +516,41 @@ Check the top-level render call using <` + qe + ">.");
516
516
  return Ue;
517
517
  }
518
518
  }
519
- function Me(Xe, Ue) {
519
+ function Me(ge, Ue) {
520
520
  {
521
- if (!Xe._store || Xe._store.validated || Xe.key != null)
521
+ if (!ge._store || ge._store.validated || ge.key != null)
522
522
  return;
523
- Xe._store.validated = !0;
523
+ ge._store.validated = !0;
524
524
  var qe = Ee(Ue);
525
525
  if (ve[qe])
526
526
  return;
527
527
  ve[qe] = !0;
528
528
  var ut = "";
529
- Xe && Xe._owner && Xe._owner !== ge.current && (ut = " It was passed a child from " + Y(Xe._owner.type) + "."), Re(Xe), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', qe, ut), Re(null);
529
+ ge && ge._owner && ge._owner !== Xe.current && (ut = " It was passed a child from " + Y(ge._owner.type) + "."), Re(ge), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', qe, ut), Re(null);
530
530
  }
531
531
  }
532
- function Oe(Xe, Ue) {
532
+ function Oe(ge, Ue) {
533
533
  {
534
- if (typeof Xe != "object")
534
+ if (typeof ge != "object")
535
535
  return;
536
- if (be(Xe))
537
- for (var qe = 0; qe < Xe.length; qe++) {
538
- var ut = Xe[qe];
536
+ if (be(ge))
537
+ for (var qe = 0; qe < ge.length; qe++) {
538
+ var ut = ge[qe];
539
539
  Pe(ut) && Me(ut, Ue);
540
540
  }
541
- else if (Pe(Xe))
542
- Xe._store && (Xe._store.validated = !0);
543
- else if (Xe) {
544
- var xt = G(Xe);
545
- if (typeof xt == "function" && xt !== Xe.entries)
546
- for (var Jt = xt.call(Xe), gt; !(gt = Jt.next()).done; )
541
+ else if (Pe(ge))
542
+ ge._store && (ge._store.validated = !0);
543
+ else if (ge) {
544
+ var xt = G(ge);
545
+ if (typeof xt == "function" && xt !== ge.entries)
546
+ for (var Jt = xt.call(ge), gt; !(gt = Jt.next()).done; )
547
547
  Pe(gt.value) && Me(gt.value, Ue);
548
548
  }
549
549
  }
550
550
  }
551
- function _e(Xe) {
551
+ function _e(ge) {
552
552
  {
553
- var Ue = Xe.type;
553
+ var Ue = ge.type;
554
554
  if (Ue == null || typeof Ue == "string")
555
555
  return;
556
556
  var qe;
@@ -564,7 +564,7 @@ Check the top-level render call using <` + qe + ">.");
564
564
  return;
565
565
  if (qe) {
566
566
  var ut = Y(Ue);
567
- q(qe, Xe.props, "prop", ut, Xe);
567
+ q(qe, ge.props, "prop", ut, ge);
568
568
  } else if (Ue.PropTypes !== void 0 && !Te) {
569
569
  Te = !0;
570
570
  var xt = Y(Ue);
@@ -573,31 +573,31 @@ Check the top-level render call using <` + qe + ">.");
573
573
  typeof Ue.getDefaultProps == "function" && !Ue.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
574
574
  }
575
575
  }
576
- function $e(Xe) {
576
+ function $e(ge) {
577
577
  {
578
- for (var Ue = Object.keys(Xe.props), qe = 0; qe < Ue.length; qe++) {
578
+ for (var Ue = Object.keys(ge.props), qe = 0; qe < Ue.length; qe++) {
579
579
  var ut = Ue[qe];
580
580
  if (ut !== "children" && ut !== "key") {
581
- Re(Xe), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ut), Re(null);
581
+ Re(ge), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ut), Re(null);
582
582
  break;
583
583
  }
584
584
  }
585
- Xe.ref !== null && (Re(Xe), f("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
585
+ ge.ref !== null && (Re(ge), f("Invalid attribute `ref` supplied to `React.Fragment`."), Re(null));
586
586
  }
587
587
  }
588
588
  var nt = {};
589
- function Wt(Xe, Ue, qe, ut, xt, Jt) {
589
+ function Wt(ge, Ue, qe, ut, xt, Jt) {
590
590
  {
591
- var gt = Q(Xe);
591
+ var gt = Q(ge);
592
592
  if (!gt) {
593
593
  var yt = "";
594
- (Xe === void 0 || typeof Xe == "object" && Xe !== null && Object.keys(Xe).length === 0) && (yt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
+ (ge === void 0 || typeof ge == "object" && ge !== null && Object.keys(ge).length === 0) && (yt += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
595
595
  var yl = Be();
596
596
  yl ? yt += yl : yt += ke();
597
597
  var Ot;
598
- Xe === null ? Ot = "null" : be(Xe) ? Ot = "array" : Xe !== void 0 && Xe.$$typeof === t ? (Ot = "<" + (Y(Xe.type) || "Unknown") + " />", yt = " Did you accidentally export a JSX literal instead of a component?") : Ot = typeof Xe, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ot, yt);
598
+ ge === null ? Ot = "null" : be(ge) ? Ot = "array" : ge !== void 0 && ge.$$typeof === t ? (Ot = "<" + (Y(ge.type) || "Unknown") + " />", yt = " Did you accidentally export a JSX literal instead of a component?") : Ot = typeof ge, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ot, yt);
599
599
  }
600
- var Pt = Ge(Xe, Ue, qe, xt, Jt);
600
+ var Pt = Ge(ge, Ue, qe, xt, Jt);
601
601
  if (Pt == null)
602
602
  return Pt;
603
603
  if (gt) {
@@ -606,15 +606,15 @@ Check the top-level render call using <` + qe + ">.");
606
606
  if (ut)
607
607
  if (be(Hl)) {
608
608
  for (var Ui = 0; Ui < Hl.length; Ui++)
609
- Oe(Hl[Ui], Xe);
609
+ Oe(Hl[Ui], ge);
610
610
  Object.freeze && Object.freeze(Hl);
611
611
  } else
612
612
  f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
613
613
  else
614
- Oe(Hl, Xe);
614
+ Oe(Hl, ge);
615
615
  }
616
616
  if (Ie.call(Ue, "key")) {
617
- var Xi = Y(Xe), Xl = Object.keys(Ue).filter(function(po) {
617
+ var Xi = Y(ge), Xl = Object.keys(Ue).filter(function(po) {
618
618
  return po !== "key";
619
619
  }), cs = Xl.length > 0 ? "{key: someKey, " + Xl.join(": ..., ") + ": ...}" : "{key: someKey}";
620
620
  if (!nt[Xi + cs]) {
@@ -627,14 +627,14 @@ React keys must be passed directly to JSX without using spread:
627
627
  <%s key={someKey} {...props} />`, cs, Xi, yo, Xi), nt[Xi + cs] = !0;
628
628
  }
629
629
  }
630
- return Xe === i ? $e(Pt) : _e(Pt), Pt;
630
+ return ge === i ? $e(Pt) : _e(Pt), Pt;
631
631
  }
632
632
  }
633
- function Ft(Xe, Ue, qe) {
634
- return Wt(Xe, Ue, qe, !0);
633
+ function Ft(ge, Ue, qe) {
634
+ return Wt(ge, Ue, qe, !0);
635
635
  }
636
- function Mt(Xe, Ue, qe) {
637
- return Wt(Xe, Ue, qe, !1);
636
+ function Mt(ge, Ue, qe) {
637
+ return Wt(ge, Ue, qe, !1);
638
638
  }
639
639
  var Qt = Mt, qt = Ft;
640
640
  _s.Fragment = i, _s.jsx = Qt, _s.jsxs = qt;
@@ -3832,12 +3832,12 @@ class wm {
3832
3832
  for (let se = 0; se < (ae == null ? void 0 : ae.length); se += 1) {
3833
3833
  const re = H, Ze = ie + se * (me + D);
3834
3834
  let ce;
3835
- if (he == null || he.forEach((xe, Ge) => {
3836
- xe === ae[se] && (ce = `rgba(${q == null ? void 0 : q[Ge]}, 1)`);
3835
+ if (he == null || he.forEach((Ye, Ge) => {
3836
+ Ye === ae[se] && (ce = `rgba(${q == null ? void 0 : q[Ge]}, 1)`);
3837
3837
  }), d.beginPath(), d.fillStyle = ce || "rgba(232, 235, 236, 1)", d.roundRect(re, Ze, de, me, U), d.fill(), d.closePath(), se === 0) {
3838
- const xe = 7 * this.sheetCtx.zoomRatio, Ge = 4 * this.sheetCtx.zoomRatio, ge = re - 2 + de - xe - 2 * this.sheetCtx.zoomRatio, Le = Ze + (me - Ge) / 2;
3839
- d.beginPath(), d.fillStyle = "rgba(0, 0, 0, 1)", d.moveTo(ge, Le), d.lineTo(ge + xe, Le), d.lineTo(
3840
- ge + xe / 2,
3838
+ const Ye = 7 * this.sheetCtx.zoomRatio, Ge = 4 * this.sheetCtx.zoomRatio, Xe = re - 2 + de - Ye - 2 * this.sheetCtx.zoomRatio, Le = Ze + (me - Ge) / 2;
3839
+ d.beginPath(), d.fillStyle = "rgba(0, 0, 0, 1)", d.moveTo(Xe, Le), d.lineTo(Xe + Ye, Le), d.lineTo(
3840
+ Xe + Ye / 2,
3841
3841
  Le + Ge
3842
3842
  ), d.closePath(), d.fill();
3843
3843
  }
@@ -5213,8 +5213,8 @@ function cl(e, t, l, i, n) {
5213
5213
  const ye = Math.ceil(re / e.length);
5214
5214
  Ze === 0 && (se = je(ce.m).add(D * ye, "months").diff(je(ce.m), "days"));
5215
5215
  const fe = je(ce.m).add(se, "days").day();
5216
- let xe;
5217
- fe === 0 ? xe = je(ce.m).add(se, "days").subtract(2, "days").format("YYYY-MM-DD") : fe === 6 ? xe = je(ce.m).add(se, "days").subtract(1, "days").format("YYYY-MM-DD") : xe = je(ce.m).add(se, "days").format("YYYY-MM-DD"), ce.m = xe, ce.v = (C = vt(xe)) == null ? void 0 : C[2], s.push(ce);
5216
+ let Ye;
5217
+ fe === 0 ? Ye = je(ce.m).add(se, "days").subtract(2, "days").format("YYYY-MM-DD") : fe === 6 ? Ye = je(ce.m).add(se, "days").subtract(1, "days").format("YYYY-MM-DD") : Ye = je(ce.m).add(se, "days").format("YYYY-MM-DD"), ce.m = Ye, ce.v = (C = vt(Ye)) == null ? void 0 : C[2], s.push(ce);
5218
5218
  }
5219
5219
  }
5220
5220
  } else {
@@ -5227,8 +5227,8 @@ function cl(e, t, l, i, n) {
5227
5227
  const ye = Math.ceil(re / e.length);
5228
5228
  Ze === 0 && (se = je(ce.m).add(D * ye, "days").diff(je(ce.m), "days"));
5229
5229
  const fe = je(ce.m).add(se, "days").day();
5230
- let xe;
5231
- fe === 0 ? xe = je(ce.m).add(se, "days").subtract(2, "days").format("YYYY-MM-DD") : fe === 6 ? xe = je(ce.m).add(se, "days").subtract(1, "days").format("YYYY-MM-DD") : xe = je(ce.m).add(se, "days").format("YYYY-MM-DD"), ce.m = xe, ce.v = (K = vt(xe)) == null ? void 0 : K[2], s.push(ce);
5230
+ let Ye;
5231
+ fe === 0 ? Ye = je(ce.m).add(se, "days").subtract(2, "days").format("YYYY-MM-DD") : fe === 6 ? Ye = je(ce.m).add(se, "days").subtract(1, "days").format("YYYY-MM-DD") : Ye = je(ce.m).add(se, "days").format("YYYY-MM-DD"), ce.m = Ye, ce.v = (K = vt(Ye)) == null ? void 0 : K[2], s.push(ce);
5232
5232
  }
5233
5233
  }
5234
5234
  }
@@ -5241,8 +5241,8 @@ function cl(e, t, l, i, n) {
5241
5241
  const Ze = (re - 1) % e.length, ce = M.cloneDeep(e[Ze]), ye = (w = e[e.length - 1]) == null ? void 0 : w.m;
5242
5242
  if (ce != null) {
5243
5243
  const fe = je(ye).add(se * re, "months").day();
5244
- let xe;
5245
- fe === 0 ? xe = je(ye).add(se * re, "months").subtract(2, "days").format("YYYY-MM-DD") : fe === 6 ? xe = je(ye).add(se * re, "months").subtract(1, "days").format("YYYY-MM-DD") : xe = je(ye).add(se * re, "months").format("YYYY-MM-DD"), ce.m = xe, ce.v = (T = vt(xe)) == null ? void 0 : T[2], s.push(ce);
5244
+ let Ye;
5245
+ fe === 0 ? Ye = je(ye).add(se * re, "months").subtract(2, "days").format("YYYY-MM-DD") : fe === 6 ? Ye = je(ye).add(se * re, "months").subtract(1, "days").format("YYYY-MM-DD") : Ye = je(ye).add(se * re, "months").format("YYYY-MM-DD"), ce.m = Ye, ce.v = (T = vt(Ye)) == null ? void 0 : T[2], s.push(ce);
5246
5246
  }
5247
5247
  }
5248
5248
  } else if (!D[0] && D[2])
@@ -5255,9 +5255,9 @@ function cl(e, t, l, i, n) {
5255
5255
  if (ye != null) {
5256
5256
  const fe = Math.ceil(Ze / e.length);
5257
5257
  ce === 0 && (re = je(ye.m).add(se * fe, "months").diff(je(ye.m), "days"));
5258
- const xe = je(ye.m).add(re, "days").day();
5258
+ const Ye = je(ye.m).add(re, "days").day();
5259
5259
  let Ge;
5260
- xe === 0 ? Ge = je(ye.m).add(re, "days").subtract(2, "days").format("YYYY-MM-DD") : xe === 6 ? Ge = je(ye.m).add(re, "days").subtract(1, "days").format("YYYY-MM-DD") : Ge = je(ye.m).add(re, "days").format("YYYY-MM-DD"), ye.m = Ge, ye.v = ($ = vt(Ge)) == null ? void 0 : $[2], s.push(ye);
5260
+ Ye === 0 ? Ge = je(ye.m).add(re, "days").subtract(2, "days").format("YYYY-MM-DD") : Ye === 6 ? Ge = je(ye.m).add(re, "days").subtract(1, "days").format("YYYY-MM-DD") : Ge = je(ye.m).add(re, "days").format("YYYY-MM-DD"), ye.m = Ge, ye.v = ($ = vt(Ge)) == null ? void 0 : $[2], s.push(ye);
5261
5261
  }
5262
5262
  }
5263
5263
  } else {
@@ -5269,9 +5269,9 @@ function cl(e, t, l, i, n) {
5269
5269
  if (ye != null) {
5270
5270
  const fe = Math.ceil(Ze / e.length);
5271
5271
  ce === 0 && (re = je(ye.m).add(se * fe, "days").diff(je(ye.m), "days"));
5272
- const xe = je(ye.m).add(re, "days").day();
5272
+ const Ye = je(ye.m).add(re, "days").day();
5273
5273
  let Ge;
5274
- xe === 0 ? Ge = je(ye.m).add(re, "days").subtract(2, "days").format("YYYY-MM-DD") : xe === 6 ? Ge = je(ye.m).add(re, "days").subtract(1, "days").format("YYYY-MM-DD") : Ge = je(ye.m).add(re, "days").format("YYYY-MM-DD"), ye.m = Ge, ye.v = (ne = vt(Ge)) == null ? void 0 : ne[2], s.push(ye);
5274
+ Ye === 0 ? Ge = je(ye.m).add(re, "days").subtract(2, "days").format("YYYY-MM-DD") : Ye === 6 ? Ge = je(ye.m).add(re, "days").subtract(1, "days").format("YYYY-MM-DD") : Ge = je(ye.m).add(re, "days").format("YYYY-MM-DD"), ye.m = Ge, ye.v = (ne = vt(Ge)) == null ? void 0 : ne[2], s.push(ye);
5275
5275
  }
5276
5276
  }
5277
5277
  }
@@ -5313,8 +5313,8 @@ function cl(e, t, l, i, n) {
5313
5313
  if (ye != null) {
5314
5314
  const fe = Math.ceil(Ze / e.length);
5315
5315
  ce === 0 && (re = je(ye.m).add(se * fe, "months").diff(je(ye.m), "days"));
5316
- const xe = je(ye.m).add(re, "days").format("YYYY-MM-DD");
5317
- ye.m = xe, ye.v = (le = vt(xe)) == null ? void 0 : le[2], s.push(ye);
5316
+ const Ye = je(ye.m).add(re, "days").format("YYYY-MM-DD");
5317
+ ye.m = Ye, ye.v = (le = vt(Ye)) == null ? void 0 : le[2], s.push(ye);
5318
5318
  }
5319
5319
  }
5320
5320
  } else
@@ -5354,8 +5354,8 @@ function cl(e, t, l, i, n) {
5354
5354
  const ce = (Ze - 1) % e.length, ye = M.cloneDeep(e[ce]), fe = Math.ceil(Ze / e.length);
5355
5355
  if (ye != null) {
5356
5356
  ce === 0 && (re = je(ye.m).add(se * fe, "years").diff(je(ye.m), "days"));
5357
- const xe = je(ye.m).add(re, "days").format("YYYY-MM-DD");
5358
- ye.m = xe, ye.v = (H = vt(xe)) == null ? void 0 : H[2], s.push(ye);
5357
+ const Ye = je(ye.m).add(re, "days").format("YYYY-MM-DD");
5358
+ ye.m = Ye, ye.v = (H = vt(Ye)) == null ? void 0 : H[2], s.push(ye);
5359
5359
  }
5360
5360
  }
5361
5361
  } else
@@ -12177,7 +12177,7 @@ function Sp(e, t, l = !1) {
12177
12177
  for (let ce = $; ce < ne; ce += 1) {
12178
12178
  if (z != null && z.has(ce.toString())) continue;
12179
12179
  if (w[`${d + re - ee}_${r + ce - $}`] && !w[`${d + re - ee}_${r + ce - $}`].s) {
12180
- const xe = {
12180
+ const Ye = {
12181
12181
  rangeType: "cell",
12182
12182
  value: {
12183
12183
  row_index: re,
@@ -12188,9 +12188,9 @@ function Sp(e, t, l = !1) {
12188
12188
  b: w[`${d + re - ee}_${r + ce - $}`].b
12189
12189
  }
12190
12190
  };
12191
- M.isNil(n.borderInfo) && (n.borderInfo = []), n.borderInfo.push(xe);
12191
+ M.isNil(n.borderInfo) && (n.borderInfo = []), n.borderInfo.push(Ye);
12192
12192
  } else if (w[`${re}_${ce}`]) {
12193
- const xe = {
12193
+ const Ye = {
12194
12194
  rangeType: "cell",
12195
12195
  value: {
12196
12196
  row_index: re,
@@ -12201,45 +12201,45 @@ function Sp(e, t, l = !1) {
12201
12201
  b: null
12202
12202
  }
12203
12203
  };
12204
- M.isNil(n.borderInfo) && (n.borderInfo = []), n.borderInfo.push(xe);
12204
+ M.isNil(n.borderInfo) && (n.borderInfo = []), n.borderInfo.push(Ye);
12205
12205
  } else if (w[`${d + re - ee}_${r + ce - $}`]) {
12206
- const xe = {
12206
+ const Ye = {
12207
12207
  rangeType: "range",
12208
12208
  borderType: "border-slash",
12209
12209
  color: w[`${d + re - f}_${r + ce - y}`].s.color,
12210
12210
  style: w[`${d + re - f}_${r + ce - y}`].s.style,
12211
12211
  range: Kt(e, [{ row: [re, re], column: [ce, ce] }])
12212
12212
  };
12213
- n.borderInfo == null && (n.borderInfo = []), n.borderInfo.push(xe);
12213
+ n.borderInfo == null && (n.borderInfo = []), n.borderInfo.push(Ye);
12214
12214
  }
12215
12215
  if (T[`${d + re - ee}_${r + ce - $}`]) {
12216
12216
  M.isNil(B) && (B = M.cloneDeep(
12217
12217
  ((O = e.luckysheetfile[Je(e, e.currentSheetId)]) == null ? void 0 : O.dataVerification) || {}
12218
12218
  ));
12219
- const xe = T[`${d + re - ee}_${r + ce - $}`];
12220
- B[`${re}_${ce}`] = xe, F.push({
12219
+ const Ye = T[`${d + re - ee}_${r + ce - $}`];
12220
+ B[`${re}_${ce}`] = Ye, F.push({
12221
12221
  sheetId: e.currentSheetId,
12222
12222
  path: ["dataVerification"],
12223
12223
  key: `${re}_${ce}`,
12224
- value: JSON.parse(JSON.stringify(xe)),
12224
+ value: JSON.parse(JSON.stringify(Ye)),
12225
12225
  type: "update"
12226
12226
  });
12227
12227
  }
12228
12228
  ((le = Ze[ce]) == null ? void 0 : le.mc) != null && ("rs" in Ze[ce].mc && delete n.merge[`${Ze[ce].mc.r}_${Ze[ce].mc.c}`], delete Ze[ce].mc);
12229
12229
  let ye = null;
12230
12230
  if ((Ie = Z[re - ee]) != null && Ie[ce - $]) {
12231
- const xe = Z[re - ee][ce - $];
12232
- ye = A ? X5(xe) : xe, ye != null && ye.v && (ye != null && ye.f) && (ye != null && ye.isDataBlockFormula) && h.length === 1 && (ye.m = "Loading...");
12231
+ const Ye = Z[re - ee][ce - $];
12232
+ ye = A ? X5(Ye) : Ye, ye != null && ye.v && (ye != null && ye.f) && (ye != null && ye.isDataBlockFormula) && h.length === 1 && (ye.m = "Loading...");
12233
12233
  }
12234
12234
  let fe = !1;
12235
12235
  if (!M.isNil(ye) && !M.isNil(ye.f)) {
12236
- let xe = ye.f, Ge = !1;
12237
- const ge = d + (re - ee), Le = r + (ce - $);
12236
+ let Ye = ye.f, Ge = !1;
12237
+ const Xe = d + (re - ee), Le = r + (ce - $);
12238
12238
  try {
12239
- xe = bp(
12239
+ Ye = bp(
12240
12240
  ye.f,
12241
12241
  Le,
12242
- ge,
12242
+ Xe,
12243
12243
  ce,
12244
12244
  re
12245
12245
  );
@@ -12253,14 +12253,14 @@ function Sp(e, t, l = !1) {
12253
12253
  if (!Ge) {
12254
12254
  const Re = li(
12255
12255
  e,
12256
- xe,
12256
+ Ye,
12257
12257
  re,
12258
12258
  ce,
12259
12259
  void 0,
12260
12260
  void 0,
12261
12261
  !0
12262
12262
  );
12263
- if (ye.f = xe, !(Re[1] instanceof Promise) && !Re[3])
12263
+ if (ye.f = Ye, !(Re[1] instanceof Promise) && !Re[3])
12264
12264
  if (Array.isArray(Re[1])) {
12265
12265
  const Pe = Re[1];
12266
12266
  ye.m = String(Pe[0][0]), Pd(
@@ -12276,7 +12276,7 @@ function Sp(e, t, l = !1) {
12276
12276
  );
12277
12277
  } else
12278
12278
  ye.m = String(Re[1]), ye.v = String(Re[1]);
12279
- else Re[3] && (ye.error = Re[3], ye.m = "#ERROR", ye.f = xe, delete ye.ct, delete ye.v, delete ye.tb, delete ye.ht);
12279
+ else Re[3] && (ye.error = Re[3], ye.m = "#ERROR", ye.f = Ye, delete ye.ct, delete ye.v, delete ye.tb, delete ye.ht);
12280
12280
  const { afterUpdateCell: Te } = e.hooks;
12281
12281
  Te && (Te(re, ce, null, {
12282
12282
  ...ye,
@@ -12317,9 +12317,9 @@ function Sp(e, t, l = !1) {
12317
12317
  for (let ye = 1; ye <= N; ye += 1)
12318
12318
  for (let fe = 1; fe <= Q; fe += 1) {
12319
12319
  ee = f + (ye - 1) * I, $ = y + (fe - 1) * G, te = f + ye * I, ne = y + fe * G;
12320
- for (let xe = 0; xe < Ze.length; xe += 1) {
12320
+ for (let Ye = 0; Ye < Ze.length; Ye += 1) {
12321
12321
  const Ge = xi(
12322
- Ze[xe],
12322
+ Ze[Ye],
12323
12323
  { row: [d, u], column: [r, m] },
12324
12324
  { row: [ee, te - 1], column: [$, ne - 1] },
12325
12325
  "operatePart"
@@ -12337,10 +12337,10 @@ function Sp(e, t, l = !1) {
12337
12337
  (_ = e.luckysheet_copy_save) == null ? void 0 : _.dataSheetId
12338
12338
  ), D = Je(e, e.currentSheetId), se = e.luckysheetfile[ie].hyperlink, re = e.luckysheetfile[ie].data;
12339
12339
  e.luckysheetfile[D].hyperlink || (e.luckysheetfile[D].hyperlink = {});
12340
- const Ze = e.luckysheetfile[D].hyperlink, ce = I === 1 && G === 1, ye = ce ? `${d}_${r}` : null, fe = ce && se ? se[ye] : null, xe = ce && re ? (de = re[d]) == null ? void 0 : de[r] : null;
12340
+ const Ze = e.luckysheetfile[D].hyperlink, ce = I === 1 && G === 1, ye = ce ? `${d}_${r}` : null, fe = ce && se ? se[ye] : null, Ye = ce && re ? (de = re[d]) == null ? void 0 : de[r] : null;
12341
12341
  for (let Ge = 1; Ge <= N; Ge += 1)
12342
- for (let ge = 1; ge <= Q; ge += 1) {
12343
- const Le = f + (Ge - 1) * I, Re = y + (ge - 1) * G, Te = f + Ge * I, Pe = y + ge * G;
12342
+ for (let Xe = 1; Xe <= Q; Xe += 1) {
12343
+ const Le = f + (Ge - 1) * I, Re = y + (Xe - 1) * G, Te = f + Ge * I, Pe = y + Xe * G;
12344
12344
  for (let ke = Le; ke < Te; ke += 1)
12345
12345
  for (let Be = Re; Be < Pe; Be += 1) {
12346
12346
  let ve;
@@ -12362,8 +12362,8 @@ function Sp(e, t, l = !1) {
12362
12362
  const Me = (me = E[ke]) == null ? void 0 : me[Be];
12363
12363
  if (Me) {
12364
12364
  let Oe;
12365
- if (ce && xe)
12366
- Oe = xe;
12365
+ if (ce && Ye)
12366
+ Oe = Ye;
12367
12367
  else {
12368
12368
  const _e = d + (ke - Le), $e = r + (Be - Re);
12369
12369
  Oe = (U = re == null ? void 0 : re[_e]) == null ? void 0 : U[$e];
@@ -13284,22 +13284,22 @@ const N5 = (e, t) => {
13284
13284
  var Le;
13285
13285
  const Ze = ((Le = ee[0]) == null ? void 0 : Le.length) ?? 0, ce = Array.from({ length: Ze }, (Re, Te) => Te), ye = te, fe = P;
13286
13286
  if (fe <= 0) return {};
13287
- const xe = ce.splice(ye, fe);
13287
+ const Ye = ce.splice(ye, fe);
13288
13288
  let Ge = R;
13289
- Ge < 0 && (Ge = 0), Ge > ce.length && (Ge = ce.length), ce.splice(Ge, 0, ...xe);
13290
- const ge = {};
13289
+ Ge < 0 && (Ge = 0), Ge > ce.length && (Ge = ce.length), ce.splice(Ge, 0, ...Ye);
13290
+ const Xe = {};
13291
13291
  return ce.forEach((Re, Te) => {
13292
- ge[Re] = Te;
13293
- }), ge;
13292
+ Xe[Re] = Te;
13293
+ }), Xe;
13294
13294
  })();
13295
13295
  if (B.config) {
13296
13296
  const Ze = (ce) => {
13297
13297
  if (!ce) return ce;
13298
13298
  const ye = {};
13299
13299
  return Object.keys(ce).forEach((fe) => {
13300
- const xe = parseInt(fe, 10);
13301
- if (!Number.isFinite(xe)) return;
13302
- const Ge = le[xe] != null ? le[xe] : xe;
13300
+ const Ye = parseInt(fe, 10);
13301
+ if (!Number.isFinite(Ye)) return;
13302
+ const Ge = le[Ye] != null ? le[Ye] : Ye;
13303
13303
  ye[Ge] = ce[fe];
13304
13304
  }), ye;
13305
13305
  };
@@ -13309,46 +13309,46 @@ const N5 = (e, t) => {
13309
13309
  }
13310
13310
  if (Array.isArray(B.luckysheet_conditionformat_save)) {
13311
13311
  const Ze = (ce) => {
13312
- const ye = (xe) => {
13313
- if (!Array.isArray(xe) || xe.length !== 2) return null;
13314
- const Ge = Number(xe[0]), ge = Number(xe[1]);
13315
- return !Number.isFinite(Ge) || !Number.isFinite(ge) ? null : Ge <= ge ? [Ge, ge] : [ge, Ge];
13316
- }, fe = (xe) => {
13312
+ const ye = (Ye) => {
13313
+ if (!Array.isArray(Ye) || Ye.length !== 2) return null;
13314
+ const Ge = Number(Ye[0]), Xe = Number(Ye[1]);
13315
+ return !Number.isFinite(Ge) || !Number.isFinite(Xe) ? null : Ge <= Xe ? [Ge, Xe] : [Xe, Ge];
13316
+ }, fe = (Ye) => {
13317
13317
  const Ge = [];
13318
- if (xe.length === 0) return Ge;
13319
- let ge = xe[0], Le = xe[0];
13320
- for (let Re = 1; Re < xe.length; Re += 1) {
13321
- const Te = xe[Re];
13318
+ if (Ye.length === 0) return Ge;
13319
+ let Xe = Ye[0], Le = Ye[0];
13320
+ for (let Re = 1; Re < Ye.length; Re += 1) {
13321
+ const Te = Ye[Re];
13322
13322
  if (Te === Le || Te === Le + 1) {
13323
13323
  Le = Te;
13324
13324
  continue;
13325
13325
  }
13326
- Ge.push([ge, Le]), ge = Te, Le = Te;
13326
+ Ge.push([Xe, Le]), Xe = Te, Le = Te;
13327
13327
  }
13328
- return Ge.push([ge, Le]), Ge;
13328
+ return Ge.push([Xe, Le]), Ge;
13329
13329
  };
13330
- return ce.map((xe) => {
13331
- const Ge = Array.isArray(xe == null ? void 0 : xe.cellrange) ? xe.cellrange : [], ge = [];
13330
+ return ce.map((Ye) => {
13331
+ const Ge = Array.isArray(Ye == null ? void 0 : Ye.cellrange) ? Ye.cellrange : [], Xe = [];
13332
13332
  return Ge.forEach((Le) => {
13333
13333
  const Re = ye(Le == null ? void 0 : Le.row), Te = ye(Le == null ? void 0 : Le.column);
13334
13334
  if (!Re || !Te) return;
13335
13335
  const [Pe, ke] = Re, [Be, ve] = Te;
13336
13336
  if (ve < oe || Be > j) {
13337
- ge.push({ row: [Pe, ke], column: [Be, ve] });
13337
+ Xe.push({ row: [Pe, ke], column: [Be, ve] });
13338
13338
  return;
13339
13339
  }
13340
13340
  const Ee = [];
13341
13341
  for (let Oe = Be; Oe <= ve; Oe += 1)
13342
13342
  Ee.push(le[Oe] != null ? le[Oe] : Oe);
13343
13343
  Ee.sort((Oe, _e) => Oe - _e), fe(Ee).forEach(([Oe, _e]) => {
13344
- ge.push({
13344
+ Xe.push({
13345
13345
  row: [Pe, ke],
13346
13346
  column: [Oe, _e]
13347
13347
  });
13348
13348
  });
13349
13349
  }), {
13350
- ...xe,
13351
- cellrange: ge
13350
+ ...Ye,
13351
+ cellrange: Xe
13352
13352
  };
13353
13353
  });
13354
13354
  };
@@ -13360,11 +13360,11 @@ const N5 = (e, t) => {
13360
13360
  const Ze = (ce) => {
13361
13361
  const ye = (Ge) => {
13362
13362
  if (!Array.isArray(Ge) || Ge.length !== 2) return null;
13363
- const ge = Number(Ge[0]), Le = Number(Ge[1]);
13364
- return !Number.isFinite(ge) || !Number.isFinite(Le) ? null : ge <= Le ? [ge, Le] : [Le, ge];
13363
+ const Xe = Number(Ge[0]), Le = Number(Ge[1]);
13364
+ return !Number.isFinite(Xe) || !Number.isFinite(Le) ? null : Xe <= Le ? [Xe, Le] : [Le, Xe];
13365
13365
  }, fe = (Ge) => {
13366
- const ge = [];
13367
- if (Ge.length === 0) return ge;
13366
+ const Xe = [];
13367
+ if (Ge.length === 0) return Xe;
13368
13368
  let Le = Ge[0], Re = Ge[0];
13369
13369
  for (let Te = 1; Te < Ge.length; Te += 1) {
13370
13370
  const Pe = Ge[Te];
@@ -13372,27 +13372,27 @@ const N5 = (e, t) => {
13372
13372
  Re = Pe;
13373
13373
  continue;
13374
13374
  }
13375
- ge.push([Le, Re]), Le = Pe, Re = Pe;
13375
+ Xe.push([Le, Re]), Le = Pe, Re = Pe;
13376
13376
  }
13377
- return ge.push([Le, Re]), ge;
13378
- }, xe = [];
13377
+ return Xe.push([Le, Re]), Xe;
13378
+ }, Ye = [];
13379
13379
  return ce.forEach((Ge) => {
13380
13380
  var Ee, Me;
13381
- const ge = ye((Ee = Ge == null ? void 0 : Ge.cellrange) == null ? void 0 : Ee.row), Le = ye((Me = Ge == null ? void 0 : Ge.cellrange) == null ? void 0 : Me.column);
13382
- if (!ge || !Le) {
13383
- xe.push(Ge);
13381
+ const Xe = ye((Ee = Ge == null ? void 0 : Ge.cellrange) == null ? void 0 : Ee.row), Le = ye((Me = Ge == null ? void 0 : Ge.cellrange) == null ? void 0 : Me.column);
13382
+ if (!Xe || !Le) {
13383
+ Ye.push(Ge);
13384
13384
  return;
13385
13385
  }
13386
- const [Re, Te] = ge, [Pe, ke] = Le;
13386
+ const [Re, Te] = Xe, [Pe, ke] = Le;
13387
13387
  if (ke < oe || Pe > j) {
13388
- xe.push(Ge);
13388
+ Ye.push(Ge);
13389
13389
  return;
13390
13390
  }
13391
13391
  const Be = [];
13392
13392
  for (let Oe = Pe; Oe <= ke; Oe += 1)
13393
13393
  Be.push(le[Oe] != null ? le[Oe] : Oe);
13394
13394
  Be.sort((Oe, _e) => Oe - _e), fe(Be).forEach(([Oe, _e]) => {
13395
- xe.push({
13395
+ Ye.push({
13396
13396
  ...Ge,
13397
13397
  cellrange: {
13398
13398
  ...Ge.cellrange || {},
@@ -13401,7 +13401,7 @@ const N5 = (e, t) => {
13401
13401
  }
13402
13402
  });
13403
13403
  });
13404
- }), xe;
13404
+ }), Ye;
13405
13405
  };
13406
13406
  B.luckysheet_alternateformat_save = Ze(
13407
13407
  B.luckysheet_alternateformat_save
@@ -13428,10 +13428,10 @@ const N5 = (e, t) => {
13428
13428
  );
13429
13429
  Object.keys(B.dataVerification).forEach((ye) => {
13430
13430
  var Re;
13431
- const fe = (Re = B.dataVerification) == null ? void 0 : Re[ye], xe = ye.split("_");
13432
- if (xe.length !== 2) return;
13433
- const Ge = parseInt(xe[1], 10), ge = le[Ge] != null ? le[Ge] : Ge, Le = fe && { ...fe };
13434
- Le && (Le.value1 = ce(Le.value1), Le.value2 = ce(Le.value2), Le.rangeTxt = ce(Le.rangeTxt)), Ze[`${xe[0]}_${ge}`] = Le;
13431
+ const fe = (Re = B.dataVerification) == null ? void 0 : Re[ye], Ye = ye.split("_");
13432
+ if (Ye.length !== 2) return;
13433
+ const Ge = parseInt(Ye[1], 10), Xe = le[Ge] != null ? le[Ge] : Ge, Le = fe && { ...fe };
13434
+ Le && (Le.value1 = ce(Le.value1), Le.value2 = ce(Le.value2), Le.rangeTxt = ce(Le.rangeTxt)), Ze[`${Ye[0]}_${Xe}`] = Le;
13435
13435
  }), B.dataVerification = Ze;
13436
13436
  }
13437
13437
  if (B.hyperlink) {
@@ -13442,8 +13442,8 @@ const N5 = (e, t) => {
13442
13442
  if (!ye) return;
13443
13443
  const fe = ce.split("_");
13444
13444
  if (fe.length !== 2) return;
13445
- const xe = fe[0], Ge = parseInt(fe[1], 10), ge = le[Ge] != null ? le[Ge] : Ge;
13446
- Ze[`${xe}_${ge}`] = ye;
13445
+ const Ye = fe[0], Ge = parseInt(fe[1], 10), Xe = le[Ge] != null ? le[Ge] : Ge;
13446
+ Ze[`${Ye}_${Xe}`] = ye;
13447
13447
  }), B.hyperlink = Ze;
13448
13448
  }
13449
13449
  const Ie = ((U = ee[0]) == null ? void 0 : U.length) ?? 0;
@@ -13547,7 +13547,7 @@ const N5 = (e, t) => {
13547
13547
  e.visibledatacolumn
13548
13548
  )[1] - 2 + e.scrollLeft : e.scrollLeft;
13549
13549
  }, [e.visibledatacolumn, b == null ? void 0 : b.frozen, e.scrollLeft]), G = we(u);
13550
- Ye(() => {
13550
+ xe(() => {
13551
13551
  G.current = u;
13552
13552
  }, [u]);
13553
13553
  const { initiateDrag: p, getColIndexClicked: f, isColDoubleClicked: W, mouseDown: y } = T5(i, G), g = Ve(
@@ -13690,7 +13690,7 @@ const N5 = (e, t) => {
13690
13690
  },
13691
13691
  [l.cellArea, l.globalCache, l.workbookContainer, t]
13692
13692
  );
13693
- Ye(() => {
13693
+ xe(() => {
13694
13694
  const K = e.luckysheet_select_save;
13695
13695
  if (M.isNil(K) || (r([]), K.every(
13696
13696
  (ee) => !!(ee != null && ee.row_select) && !(ee != null && ee.column_select)
@@ -13711,7 +13711,7 @@ const N5 = (e, t) => {
13711
13711
  r(B);
13712
13712
  }, [e.luckysheet_select_save, e.visibledatacolumn]);
13713
13713
  const [A, E] = Se([]);
13714
- Ye(() => {
13714
+ xe(() => {
13715
13715
  var k, w;
13716
13716
  if (h == null) return;
13717
13717
  const K = [], F = (w = (k = e.luckysheetfile[h]) == null ? void 0 : k.config) == null ? void 0 : w.colhidden;
@@ -13765,7 +13765,7 @@ const N5 = (e, t) => {
13765
13765
  );
13766
13766
  }));
13767
13767
  };
13768
- Ye(() => {
13768
+ xe(() => {
13769
13769
  i.current.scrollLeft = e.scrollLeft;
13770
13770
  }, [e.scrollLeft]);
13771
13771
  const L = (K) => {
@@ -14150,23 +14150,23 @@ const N5 = (e, t) => {
14150
14150
  const O = He(T), le = (() => {
14151
14151
  const ce = Array.from({ length: ee.length }, (Le, Re) => Re), ye = ne, fe = J;
14152
14152
  if (fe <= 0) return {};
14153
- const xe = ce.splice(ye, fe);
14153
+ const Ye = ce.splice(ye, fe);
14154
14154
  let Ge = z;
14155
- Ge < 0 && (Ge = 0), Ge > ce.length && (Ge = ce.length), ce.splice(Ge, 0, ...xe);
14156
- const ge = {};
14155
+ Ge < 0 && (Ge = 0), Ge > ce.length && (Ge = ce.length), ce.splice(Ge, 0, ...Ye);
14156
+ const Xe = {};
14157
14157
  return ce.forEach((Le, Re) => {
14158
- ge[Le] = Re;
14159
- }), ge;
14158
+ Xe[Le] = Re;
14159
+ }), Xe;
14160
14160
  })();
14161
14161
  if (B.config) {
14162
14162
  const ce = (ye) => {
14163
14163
  if (!ye) return ye;
14164
14164
  const fe = {};
14165
- return Object.keys(ye).forEach((xe) => {
14166
- const Ge = parseInt(xe, 10);
14165
+ return Object.keys(ye).forEach((Ye) => {
14166
+ const Ge = parseInt(Ye, 10);
14167
14167
  if (!Number.isFinite(Ge)) return;
14168
- const ge = le[Ge] != null ? le[Ge] : Ge;
14169
- fe[ge] = ye[xe];
14168
+ const Xe = le[Ge] != null ? le[Ge] : Ge;
14169
+ fe[Xe] = ye[Ye];
14170
14170
  }), fe;
14171
14171
  };
14172
14172
  B.config.rowlen = ce(B.config.rowlen), B.config.customHeight = ce(
@@ -14177,11 +14177,11 @@ const N5 = (e, t) => {
14177
14177
  const ce = (ye) => {
14178
14178
  const fe = (Ge) => {
14179
14179
  if (!Array.isArray(Ge) || Ge.length !== 2) return null;
14180
- const ge = Number(Ge[0]), Le = Number(Ge[1]);
14181
- return !Number.isFinite(ge) || !Number.isFinite(Le) ? null : ge <= Le ? [ge, Le] : [Le, ge];
14182
- }, xe = (Ge) => {
14183
- const ge = [];
14184
- if (Ge.length === 0) return ge;
14180
+ const Xe = Number(Ge[0]), Le = Number(Ge[1]);
14181
+ return !Number.isFinite(Xe) || !Number.isFinite(Le) ? null : Xe <= Le ? [Xe, Le] : [Le, Xe];
14182
+ }, Ye = (Ge) => {
14183
+ const Xe = [];
14184
+ if (Ge.length === 0) return Xe;
14185
14185
  let Le = Ge[0], Re = Ge[0];
14186
14186
  for (let Te = 1; Te < Ge.length; Te += 1) {
14187
14187
  const Pe = Ge[Te];
@@ -14189,13 +14189,13 @@ const N5 = (e, t) => {
14189
14189
  Re = Pe;
14190
14190
  continue;
14191
14191
  }
14192
- ge.push([Le, Re]), Le = Pe, Re = Pe;
14192
+ Xe.push([Le, Re]), Le = Pe, Re = Pe;
14193
14193
  }
14194
- return ge.push([Le, Re]), ge;
14194
+ return Xe.push([Le, Re]), Xe;
14195
14195
  };
14196
14196
  return ye.map((Ge) => {
14197
- const ge = Array.isArray(Ge == null ? void 0 : Ge.cellrange) ? Ge.cellrange : [], Le = [];
14198
- return ge.forEach((Re) => {
14197
+ const Xe = Array.isArray(Ge == null ? void 0 : Ge.cellrange) ? Ge.cellrange : [], Le = [];
14198
+ return Xe.forEach((Re) => {
14199
14199
  const Te = fe(Re == null ? void 0 : Re.row), Pe = fe(Re == null ? void 0 : Re.column);
14200
14200
  if (!Te || !Pe) return;
14201
14201
  const [ke, Be] = Te, [ve, Ee] = Pe;
@@ -14206,7 +14206,7 @@ const N5 = (e, t) => {
14206
14206
  const Me = [];
14207
14207
  for (let _e = ke; _e <= Be; _e += 1)
14208
14208
  Me.push(le[_e] != null ? le[_e] : _e);
14209
- Me.sort((_e, $e) => _e - $e), xe(Me).forEach(([_e, $e]) => {
14209
+ Me.sort((_e, $e) => _e - $e), Ye(Me).forEach(([_e, $e]) => {
14210
14210
  Le.push({
14211
14211
  row: [_e, $e],
14212
14212
  column: [ve, Ee]
@@ -14224,16 +14224,16 @@ const N5 = (e, t) => {
14224
14224
  }
14225
14225
  if (Array.isArray(B.luckysheet_alternateformat_save)) {
14226
14226
  const ce = (ye) => {
14227
- const fe = (ge) => {
14228
- if (!Array.isArray(ge) || ge.length !== 2) return null;
14229
- const Le = Number(ge[0]), Re = Number(ge[1]);
14227
+ const fe = (Xe) => {
14228
+ if (!Array.isArray(Xe) || Xe.length !== 2) return null;
14229
+ const Le = Number(Xe[0]), Re = Number(Xe[1]);
14230
14230
  return !Number.isFinite(Le) || !Number.isFinite(Re) ? null : Le <= Re ? [Le, Re] : [Re, Le];
14231
- }, xe = (ge) => {
14231
+ }, Ye = (Xe) => {
14232
14232
  const Le = [];
14233
- if (ge.length === 0) return Le;
14234
- let Re = ge[0], Te = ge[0];
14235
- for (let Pe = 1; Pe < ge.length; Pe += 1) {
14236
- const ke = ge[Pe];
14233
+ if (Xe.length === 0) return Le;
14234
+ let Re = Xe[0], Te = Xe[0];
14235
+ for (let Pe = 1; Pe < Xe.length; Pe += 1) {
14236
+ const ke = Xe[Pe];
14237
14237
  if (ke === Te || ke === Te + 1) {
14238
14238
  Te = ke;
14239
14239
  continue;
@@ -14242,26 +14242,26 @@ const N5 = (e, t) => {
14242
14242
  }
14243
14243
  return Le.push([Re, Te]), Le;
14244
14244
  }, Ge = [];
14245
- return ye.forEach((ge) => {
14245
+ return ye.forEach((Xe) => {
14246
14246
  var Me, Oe;
14247
- const Le = fe((Me = ge == null ? void 0 : ge.cellrange) == null ? void 0 : Me.row), Re = fe((Oe = ge == null ? void 0 : ge.cellrange) == null ? void 0 : Oe.column);
14247
+ const Le = fe((Me = Xe == null ? void 0 : Xe.cellrange) == null ? void 0 : Me.row), Re = fe((Oe = Xe == null ? void 0 : Xe.cellrange) == null ? void 0 : Oe.column);
14248
14248
  if (!Le || !Re) {
14249
- Ge.push(ge);
14249
+ Ge.push(Xe);
14250
14250
  return;
14251
14251
  }
14252
14252
  const [Te, Pe] = Le, [ke, Be] = Re;
14253
14253
  if (Pe < v || Te > oe) {
14254
- Ge.push(ge);
14254
+ Ge.push(Xe);
14255
14255
  return;
14256
14256
  }
14257
14257
  const ve = [];
14258
14258
  for (let _e = Te; _e <= Pe; _e += 1)
14259
14259
  ve.push(le[_e] != null ? le[_e] : _e);
14260
- ve.sort((_e, $e) => _e - $e), xe(ve).forEach(([_e, $e]) => {
14260
+ ve.sort((_e, $e) => _e - $e), Ye(ve).forEach(([_e, $e]) => {
14261
14261
  Ge.push({
14262
- ...ge,
14262
+ ...Xe,
14263
14263
  cellrange: {
14264
- ...ge.cellrange || {},
14264
+ ...Xe.cellrange || {},
14265
14265
  row: [_e, $e],
14266
14266
  column: [ke, Be]
14267
14267
  }
@@ -14294,9 +14294,9 @@ const N5 = (e, t) => {
14294
14294
  );
14295
14295
  Object.keys(B.dataVerification).forEach((fe) => {
14296
14296
  var Te;
14297
- const xe = (Te = B.dataVerification) == null ? void 0 : Te[fe], Ge = fe.split("_");
14297
+ const Ye = (Te = B.dataVerification) == null ? void 0 : Te[fe], Ge = fe.split("_");
14298
14298
  if (Ge.length !== 2) return;
14299
- const ge = parseInt(Ge[0], 10), Le = le[ge] != null ? le[ge] : ge, Re = xe && { ...xe };
14299
+ const Xe = parseInt(Ge[0], 10), Le = le[Xe] != null ? le[Xe] : Xe, Re = Ye && { ...Ye };
14300
14300
  Re && (Re.value1 = ye(Re.value1), Re.value2 = ye(Re.value2), Re.rangeTxt = ye(Re.rangeTxt)), ce[`${Le}_${Ge[1]}`] = Re;
14301
14301
  }), B.dataVerification = ce;
14302
14302
  }
@@ -14306,10 +14306,10 @@ const N5 = (e, t) => {
14306
14306
  var Re;
14307
14307
  const fe = (Re = B.hyperlink) == null ? void 0 : Re[ye];
14308
14308
  if (!fe) return;
14309
- const xe = ye.split("_");
14310
- if (xe.length !== 2) return;
14311
- const Ge = parseInt(xe[0], 10), ge = xe[1], Le = le[Ge] != null ? le[Ge] : Ge;
14312
- ce[`${Le}_${ge}`] = fe;
14309
+ const Ye = ye.split("_");
14310
+ if (Ye.length !== 2) return;
14311
+ const Ge = parseInt(Ye[0], 10), Xe = Ye[1], Le = le[Ge] != null ? le[Ge] : Ge;
14312
+ ce[`${Le}_${Xe}`] = fe;
14313
14313
  }), B.hyperlink = ce;
14314
14314
  }
14315
14315
  const Ie = ((me = ee[0]) == null ? void 0 : me.length) ?? 0;
@@ -14317,9 +14317,9 @@ const N5 = (e, t) => {
14317
14317
  const ye = ee[ce];
14318
14318
  if (ye)
14319
14319
  for (let fe = 0; fe < Ie; fe += 1) {
14320
- const xe = ye[fe];
14321
- if (!xe) continue;
14322
- !!((U = B.hyperlink) != null && U[`${ce}_${fe}`]) ? xe.hl = { r: ce, c: fe, id: c.currentSheetId } : xe.hl && delete xe.hl;
14320
+ const Ye = ye[fe];
14321
+ if (!Ye) continue;
14322
+ !!((U = B.hyperlink) != null && U[`${ce}_${fe}`]) ? Ye.hl = { r: ce, c: fe, id: c.currentSheetId } : Ye.hl && delete Ye.hl;
14323
14323
  }
14324
14324
  }
14325
14325
  T.commentBoxes = [], T.hoveredCommentBox = void 0, T.editingCommentBox = void 0;
@@ -14357,11 +14357,11 @@ const N5 = (e, t) => {
14357
14357
  for (let ce = v; ce <= oe; ce += 1) {
14358
14358
  const ye = ee[ce];
14359
14359
  for (let fe = 0; fe < q; fe += 1) {
14360
- const xe = ye == null ? void 0 : ye[fe];
14360
+ const Ye = ye == null ? void 0 : ye[fe];
14361
14361
  pe.push({
14362
14362
  sheetId: T.currentSheetId,
14363
14363
  path: ["celldata"],
14364
- value: { r: ce, c: fe, v: xe ?? null },
14364
+ value: { r: ce, c: fe, v: Ye ?? null },
14365
14365
  key: `${ce}_${fe}`,
14366
14366
  type: "update"
14367
14367
  });
@@ -14427,7 +14427,7 @@ const N5 = (e, t) => {
14427
14427
  e.visibledatarow
14428
14428
  )[1] + e.scrollTop : e.scrollTop;
14429
14429
  }, [e.visibledatarow, b == null ? void 0 : b.frozen, e.scrollTop]), p = we(r);
14430
- Ye(() => {
14430
+ xe(() => {
14431
14431
  p.current = r;
14432
14432
  }, [r]);
14433
14433
  const f = Ve(
@@ -14573,7 +14573,7 @@ const N5 = (e, t) => {
14573
14573
  },
14574
14574
  [i.workbookContainer, t, l, i.cellArea]
14575
14575
  );
14576
- Ye(() => {
14576
+ xe(() => {
14577
14577
  const F = e.luckysheet_select_save || [];
14578
14578
  if (M.isNil(F) || (m([]), F.every(
14579
14579
  ($) => !!($ != null && $.column_select) && !($ != null && $.row_select)
@@ -14594,7 +14594,7 @@ const N5 = (e, t) => {
14594
14594
  m(ee);
14595
14595
  }, [e.luckysheet_select_save, e.visibledatarow]);
14596
14596
  const [E, Y] = Se([]);
14597
- Ye(() => {
14597
+ xe(() => {
14598
14598
  if (h == null) return;
14599
14599
  const F = [], k = I;
14600
14600
  k ? (Object.keys(k).forEach((w) => {
@@ -14643,7 +14643,7 @@ const N5 = (e, t) => {
14643
14643
  );
14644
14644
  }));
14645
14645
  };
14646
- Ye(() => {
14646
+ xe(() => {
14647
14647
  s.current.scrollTop = e.scrollTop;
14648
14648
  }, [e.scrollTop]);
14649
14649
  const S = (F) => {
@@ -14792,10 +14792,10 @@ const N5 = (e, t) => {
14792
14792
  );
14793
14793
  }, Jp = ({ ...e }) => {
14794
14794
  const t = we(""), l = we(null), { autoFocus: i, initialContent: n, onChange: s } = e;
14795
- Ye(() => {
14795
+ xe(() => {
14796
14796
  var r;
14797
14797
  i && ((r = l.current) == null || r.focus());
14798
- }, [i]), Ye(() => {
14798
+ }, [i]), xe(() => {
14799
14799
  n && l.current != null && (l.current.innerHTML = n);
14800
14800
  }, [n]);
14801
14801
  const a = Ve(
@@ -15284,14 +15284,14 @@ If "derivatives": exchange name (e.g., "binance_futures").`,
15284
15284
  t,
15285
15285
  Z
15286
15286
  ]);
15287
- return Ye(() => {
15287
+ return xe(() => {
15288
15288
  G();
15289
15289
  }, [
15290
15290
  G,
15291
15291
  (f = n.functionCandidates) == null ? void 0 : f.length,
15292
15292
  (W = n.defaultCandidates) == null ? void 0 : W.length,
15293
15293
  n.functionHint
15294
- ]), Ye(() => {
15294
+ ]), xe(() => {
15295
15295
  if (l === "fx") return;
15296
15296
  const y = document.querySelector(
15297
15297
  "#luckysheet-input-box .luckysheet-input-box-inner"
@@ -15606,12 +15606,12 @@ If "derivatives": exchange name (e.g., "binance_futures").`,
15606
15606
  dragHasMoved: i
15607
15607
  }) => {
15608
15608
  const s = l, [a, c] = Se({ x: 0, y: s }), [d, u] = Se(!1), [r, m] = Se({ x: 0, y: 0 }), [h, b] = Se({ x: 0, y: 0 }), Z = we(null);
15609
- Ye(() => {
15609
+ xe(() => {
15610
15610
  if (Z.current) {
15611
15611
  const g = Z.current.getBoundingClientRect(), X = g.left + window.scrollX, x = g.top + window.scrollY;
15612
15612
  b({ x: X, y: x });
15613
15613
  }
15614
- }, []), Ye(() => {
15614
+ }, []), xe(() => {
15615
15615
  c({ x: a.x, y: l });
15616
15616
  }, [l]);
15617
15617
  const I = (g) => {
@@ -15689,7 +15689,7 @@ If "derivatives": exchange name (e.g., "binance_futures").`,
15689
15689
  }, Hp = (e) => {
15690
15690
  var C;
15691
15691
  const { showFormulaHint: t, handleShowFormulaHint: l, commaCount: i, functionName: n } = e, s = we(!1), { context: a } = ot(rt), c = al(a) === "fx", d = (C = a.luckysheet_select_save) == null ? void 0 : C[0], { formulaMore: u } = bt(a), r = n ? a.formulaCache.functionlistMap[n] : a.formulaCache.functionlistMap[(a == null ? void 0 : a.functionHint) || ""], [m, h] = Se(""), [b, Z] = Se(!0), [I, G] = Se(!1), p = localStorage.getItem("formula-expand") === "true", [f, W] = Se(p);
15692
- Ye(() => {
15692
+ xe(() => {
15693
15693
  if (!r) return;
15694
15694
  if (!r.API_KEY) {
15695
15695
  h(""), G(!1), Z(!1);
@@ -15724,7 +15724,7 @@ If "derivatives": exchange name (e.g., "binance_futures").`,
15724
15724
  d == null ? void 0 : d.top,
15725
15725
  c
15726
15726
  ]);
15727
- Ye(() => {
15727
+ xe(() => {
15728
15728
  if (c) return;
15729
15729
  const K = document.querySelector(
15730
15730
  "#luckysheet-input-box .luckysheet-input-box-inner"
@@ -15757,7 +15757,7 @@ If "derivatives": exchange name (e.g., "binance_futures").`,
15757
15757
  const F = parseInt(K.substring(0, 2), 16), k = parseInt(K.substring(2, 4), 16), w = parseInt(K.substring(4, 6), 16);
15758
15758
  return `${F}, ${k}, ${w}`;
15759
15759
  }, L = (K) => K ? `rgb(${Y(K)}, 0.4)` : "#FFDF0A";
15760
- if (Ye(() => {
15760
+ if (xe(() => {
15761
15761
  A(!1);
15762
15762
  const K = setTimeout(() => A(!0), 40);
15763
15763
  return () => clearTimeout(K);
@@ -16408,7 +16408,7 @@ const kp = ({
16408
16408
  };
16409
16409
  function Sd(e) {
16410
16410
  const t = we(null);
16411
- return Ye(() => {
16411
+ return xe(() => {
16412
16412
  t.current = e;
16413
16413
  }, [e]), t.current;
16414
16414
  }
@@ -16695,7 +16695,7 @@ function Tp(e, t, l, i, n) {
16695
16695
  }
16696
16696
  function Up(e, t, l) {
16697
16697
  const [, i] = Se(0), n = we(l);
16698
- n.current = l, Ye(() => {
16698
+ n.current = l, xe(() => {
16699
16699
  if (!t)
16700
16700
  return () => {
16701
16701
  };
@@ -17556,7 +17556,7 @@ function nV(e, t, l) {
17556
17556
  const x = e.visibledatarow[s], V = s <= 0 ? 0 : e.visibledatarow[s - 1];
17557
17557
  return x == null ? (t == null ? void 0 : t.height) ?? 0 : Math.max(0, x - V - 1);
17558
17558
  }, [i, s, e.visibledatarow, t == null ? void 0 : t.height]), d = (g = e.luckysheet_cols_change_size_start) == null ? void 0 : g[1], u = i && !!e.luckysheet_cols_change_size && typeof d == "number" && typeof n == "number" && d === n, [r, m] = Se(null), h = we(e.visibledatacolumn);
17559
- h.current = e.visibledatacolumn, Ye(() => {
17559
+ h.current = e.visibledatacolumn, xe(() => {
17560
17560
  if (!u) {
17561
17561
  m(null);
17562
17562
  return;
@@ -17579,7 +17579,7 @@ function nV(e, t, l) {
17579
17579
  };
17580
17580
  }, [u, n, l]);
17581
17581
  const b = (X = e.luckysheet_rows_change_size_start) == null ? void 0 : X[1], Z = i && !!e.luckysheet_rows_change_size && typeof b == "number" && typeof s == "number" && b === s, [I, G] = Se(null), p = we(e.visibledatarow);
17582
- return p.current = e.visibledatarow, Ye(() => {
17582
+ return p.current = e.visibledatarow, xe(() => {
17583
17583
  if (!Z) {
17584
17584
  G(null);
17585
17585
  return;
@@ -17616,8 +17616,8 @@ function nV(e, t, l) {
17616
17616
  ]);
17617
17617
  }
17618
17618
  const sV = () => {
17619
- var Xe, Ue, qe, ut, xt, Jt, gt, yt, yl, Ot, Pt, Hl, Ui, Xi, Xl, cs, yo, po, Th;
17620
- const { context: e, setContext: t, refs: l } = ot(rt), i = we(null), n = we(null), s = Sd(e.luckysheetCellUpdate), a = Sd(e.currentSheetId), [c, d] = Se(!1), [u, r] = Se(!1), [m, h] = Se(""), [b, Z] = Se(""), [I, G] = Se(!1), p = we(null), [f, W] = Se({ left: 0, top: 0 }), y = (Xe = e.luckysheet_select_save) == null ? void 0 : Xe[0], [g, X] = Se(
17619
+ var ge, Ue, qe, ut, xt, Jt, gt, yt, yl, Ot, Pt, Hl, Ui, Xi, Xl, cs, yo, po, Th;
17620
+ const { context: e, setContext: t, refs: l } = ot(rt), i = we(null), n = we(null), s = Sd(e.luckysheetCellUpdate), a = Sd(e.currentSheetId), [c, d] = Se(!1), [u, r] = Se(!1), [m, h] = Se(""), [b, Z] = Se(""), [I, G] = Se(!1), p = we(null), [f, W] = Se({ left: 0, top: 0 }), y = (ge = e.luckysheet_select_save) == null ? void 0 : ge[0], [g, X] = Se(
17621
17621
  {}
17622
17622
  ), [x, V] = Se(0), [N, Q] = Se(!1), A = localStorage.getItem("formulaMore") === "true", [E, Y] = Se(!A), [L, S] = Se(!1), C = we(null), [K, F] = Se(0), [k, w] = Se(!1), T = y == null ? void 0 : y.row_focus, B = y == null ? void 0 : y.column_focus, ee = nV(
17623
17623
  e,
@@ -17652,7 +17652,7 @@ const sV = () => {
17652
17652
  }, _ = () => {
17653
17653
  localStorage.setItem("formulaMore", String(E)), Y(!E);
17654
17654
  };
17655
- Ye(() => {
17655
+ xe(() => {
17656
17656
  var We;
17657
17657
  if (!$) {
17658
17658
  C.current = null;
@@ -17764,13 +17764,13 @@ const sV = () => {
17764
17764
  e.luckysheetfile,
17765
17765
  e.currentSheetId,
17766
17766
  y
17767
- ]), Ye(() => {
17767
+ ]), xe(() => {
17768
17768
  M.isEmpty(e.luckysheetCellUpdate) && (i.current && (i.current.innerHTML = ""), n.current = null, delete l.globalCache.pendingTypeOverCell, delete l.globalCache.linkEditorOpenSnapshot, Q(!1), R());
17769
17769
  }, [e.luckysheetCellUpdate, R, l.globalCache]);
17770
17770
  const H = we(e);
17771
17771
  H.current = e;
17772
17772
  const ie = we(null), D = we(0);
17773
- Ye(() => {
17773
+ xe(() => {
17774
17774
  if (M.isEmpty(e.luckysheetCellUpdate) || !l.cellInput.current)
17775
17775
  return;
17776
17776
  ie.current = null;
@@ -17826,25 +17826,25 @@ const sV = () => {
17826
17826
  l.cellInput,
17827
17827
  l.globalCache,
17828
17828
  t
17829
- ]), Ye(() => {
17829
+ ]), xe(() => {
17830
17830
  M.isEmpty(e.luckysheetCellUpdate) || delete l.globalCache.pendingTypeOverCell;
17831
- }, [e.luckysheetCellUpdate, l.globalCache]), Ye(() => {
17831
+ }, [e.luckysheetCellUpdate, l.globalCache]), xe(() => {
17832
17832
  if (M.isEmpty(e.luckysheetCellUpdate) || !l.cellInput.current) {
17833
17833
  J.current = null, P.current = null;
17834
17834
  return;
17835
17835
  }
17836
17836
  const We = l.cellInput.current.innerText ?? "";
17837
17837
  ae(We) || (J.current = null, P.current = null);
17838
- }, [e.luckysheetCellUpdate, l.cellInput, ae]), Ye(() => {
17838
+ }, [e.luckysheetCellUpdate, l.cellInput, ae]), xe(() => {
17839
17839
  M.isEmpty(e.luckysheetCellUpdate) || M.isEmpty(s) || M.isEqual(s, e.luckysheetCellUpdate) || t((We) => {
17840
17840
  We.formulaRangeHighlight = [], We.formulaRangeSelect = void 0, We.formulaCache.selectingRangeIndex = -1, We.formulaCache.func_selectedrange = void 0, We.formulaCache.rangestart = !1, We.formulaCache.rangedrag_column_start = !1, We.formulaCache.rangedrag_row_start = !1, We.formulaCache.rangechangeindex = void 0;
17841
17841
  });
17842
- }, [e.luckysheetCellUpdate, s, t]), Ye(() => {
17842
+ }, [e.luckysheetCellUpdate, s, t]), xe(() => {
17843
17843
  d(Im(e));
17844
- }, [e.luckysheet_select_save]), Ye(() => {
17844
+ }, [e.luckysheet_select_save]), xe(() => {
17845
17845
  var We;
17846
17846
  (!y || (We = e.rangeDialog) != null && We.show || M.isEmpty(e.luckysheetCellUpdate)) && r(!1);
17847
- }, [y, (ut = e.rangeDialog) == null ? void 0 : ut.show, e.luckysheetCellUpdate]), Ye(() => {
17847
+ }, [y, (ut = e.rangeDialog) == null ? void 0 : ut.show, e.luckysheetCellUpdate]), xe(() => {
17848
17848
  u || t((We) => {
17849
17849
  M.isEmpty(We.formulaRangeHighlight) && !We.formulaRangeSelect && We.formulaCache.selectingRangeIndex === -1 && !We.formulaCache.func_selectedrange || (We.formulaRangeHighlight = [], We.formulaRangeSelect = void 0, We.formulaCache.selectingRangeIndex = -1, We.formulaCache.func_selectedrange = void 0, We.formulaCache.rangestart = !1, We.formulaCache.rangedrag_column_start = !1, We.formulaCache.rangedrag_row_start = !1, We.formulaCache.rangechangeindex = void 0, We.formulaCache.rangeSelectionActive = null);
17850
17850
  });
@@ -17892,7 +17892,7 @@ const sV = () => {
17892
17892
  [se, re]
17893
17893
  ), fe = (We) => {
17894
17894
  We.stopPropagation(), We.preventDefault();
17895
- }, xe = lt(() => {
17895
+ }, Ye = lt(() => {
17896
17896
  var Ke, De, Qe, Xt;
17897
17897
  const We = e.formulaCache.func_selectedrange, Ne = e.formulaCache.formulaKeyboardRefSync === !0;
17898
17898
  return We ? [
@@ -17908,7 +17908,7 @@ const sV = () => {
17908
17908
  e.formulaCache.func_selectedrange,
17909
17909
  e.formulaCache.formulaKeyboardRefSync
17910
17910
  ]);
17911
- Ye(() => {
17911
+ xe(() => {
17912
17912
  var Ne;
17913
17913
  const We = l.cellInput.current;
17914
17914
  !((Ne = e.luckysheet_select_save) != null && Ne[0]) || !We || t((Ke) => {
@@ -17966,7 +17966,7 @@ const sV = () => {
17966
17966
  e.luckysheet_select_save,
17967
17967
  (xt = e.rangeDialog) == null ? void 0 : xt.show,
17968
17968
  e.formulaRangeNavRevision,
17969
- xe
17969
+ Ye
17970
17970
  // isInputBoxActive,
17971
17971
  ]);
17972
17972
  const Ge = Ve(
@@ -18266,7 +18266,7 @@ const sV = () => {
18266
18266
  return mt.selectNodeContents(tt), mt.setEnd(Qe.startContainer, Qe.startOffset), mt.toString().length !== (tt.textContent ?? "").length ? !1 : (Xt(tt), !0);
18267
18267
  })();
18268
18268
  }, []);
18269
- const ge = () => {
18269
+ const Xe = () => {
18270
18270
  var Qe, Xt, pt, tt;
18271
18271
  const We = (Qe = document.getElementsByClassName("fx-search")) == null ? void 0 : Qe[0], Ne = (Xt = document.getElementsByClassName("cell-search")) == null ? void 0 : Xt[0];
18272
18272
  We && (We.style.display = "none"), Ne && (Ne.style.display = "block");
@@ -18354,7 +18354,7 @@ const sV = () => {
18354
18354
  (We, Ne) => {
18355
18355
  var Xt, pt;
18356
18356
  if (e.isFlvReadOnly) return;
18357
- ge(), (pt = (Xt = i.current) == null ? void 0 : Xt.innerText) == null || pt.trim();
18357
+ Xe(), (pt = (Xt = i.current) == null ? void 0 : Xt.innerText) == null || pt.trim();
18358
18358
  const Ke = Fp(i.current);
18359
18359
  if (Q(Ke), S(
18360
18360
  ys((i == null ? void 0 : i.current) ?? null)
@@ -18482,7 +18482,7 @@ const sV = () => {
18482
18482
  e.scrollLeft,
18483
18483
  e.scrollTop
18484
18484
  ]);
18485
- Ye(() => {
18485
+ xe(() => {
18486
18486
  var We;
18487
18487
  if (y && !((We = e.rangeDialog) != null && We.show) && !u && !M.isEmpty(e.luckysheetCellUpdate)) {
18488
18488
  const Ne = l.cellArea.current;
@@ -18508,7 +18508,7 @@ const sV = () => {
18508
18508
  const We = y.row_focus || 0, Ne = y.column_focus || 0, Ke = Li(Ne), De = We + 1;
18509
18509
  return `${Ke}${De}`;
18510
18510
  }, [y]);
18511
- Ye(() => {
18511
+ xe(() => {
18512
18512
  var We;
18513
18513
  u && (h($e()), X((We = e.luckysheet_select_save) == null ? void 0 : We[0]));
18514
18514
  }, [u]), Gl(() => {
@@ -18530,7 +18530,7 @@ const sV = () => {
18530
18530
  e.scrollLeft,
18531
18531
  e.scrollTop,
18532
18532
  s
18533
- ]), Ye(() => {
18533
+ ]), xe(() => {
18534
18534
  const We = (Ne) => {
18535
18535
  Ne.key === "F10" && (Ne.preventDefault(), _());
18536
18536
  };
@@ -18557,7 +18557,7 @@ const sV = () => {
18557
18557
  (Pt = e.linkCard) == null ? void 0 : Pt.r,
18558
18558
  (Hl = e.linkCard) == null ? void 0 : Hl.c,
18559
18559
  e.luckysheetCellUpdate
18560
- ]), Ye(() => {
18560
+ ]), xe(() => {
18561
18561
  if (!(((s == null ? void 0 : s.length) ?? 0) === 0 && e.luckysheetCellUpdate.length === 2)) return;
18562
18562
  const [Ne, Ke] = e.luckysheetCellUpdate, De = e.linkCard;
18563
18563
  !De || De.isEditing || De.r !== Ne || De.c !== Ke || t((Qe) => {
@@ -18660,7 +18660,7 @@ const sV = () => {
18660
18660
  }
18661
18661
  return null;
18662
18662
  }, []), Mt = vp(i.current) ?? e.functionHint ?? Ft(), Qt = Mt ? e.formulaCache.functionlistMap[Mt] : null, qt = e.luckysheetCellUpdate.length > 0 && al(e) === "cell";
18663
- return Ye(() => {
18663
+ return xe(() => {
18664
18664
  var Ne;
18665
18665
  if (!qt) return;
18666
18666
  const We = (((Ne = i.current) == null ? void 0 : Ne.innerText) || "").replace(/\u200b/g, "");
@@ -18731,7 +18731,7 @@ const sV = () => {
18731
18731
  be(), te.current = !1, F((Ne) => Ne + 1);
18732
18732
  },
18733
18733
  onMouseUp: () => {
18734
- if (ge(), t((Ne) => {
18734
+ if (Xe(), t((Ne) => {
18735
18735
  ti(Ne, "cell");
18736
18736
  }), S(
18737
18737
  ys((i == null ? void 0 : i.current) ?? null)
@@ -18878,7 +18878,7 @@ const sV = () => {
18878
18878
  );
18879
18879
  }, kb = ({ axis: e }) => {
18880
18880
  const { context: t, refs: l, setContext: i } = ot(rt);
18881
- return Ye(() => {
18881
+ return xe(() => {
18882
18882
  e === "x" ? l.scrollbarX.current.scrollLeft = t.scrollLeft : l.scrollbarY.current.scrollTop = t.scrollTop;
18883
18883
  }, [e === "x" ? t.scrollLeft : t.scrollTop]), /* @__PURE__ */ o.jsx(
18884
18884
  "div",
@@ -19115,7 +19115,7 @@ const rV = ({ getContainer: e }) => {
19115
19115
  q.showSearch = !1, q.showReplace = !1, q.findReplacePrefill = void 0, q.searchRangeScopeHighlight = null, q.searchRangeScopeEmphasis = !1, q.showFormulasFromFindReplace = !1, q.findReplaceHiddenDuringRangePick = !1, q.findReplaceRestoreVisibility = void 0;
19116
19116
  });
19117
19117
  }, [i.globalCache, l]);
19118
- Ye(() => {
19118
+ xe(() => {
19119
19119
  const ae = !!(t.showSearch || t.showReplace) && !!L.formulaCheck;
19120
19120
  !!t.showFormulasFromFindReplace !== ae && l((be) => {
19121
19121
  be.showFormulasFromFindReplace = ae;
@@ -19126,7 +19126,7 @@ const rV = ({ getContainer: e }) => {
19126
19126
  t.showFormulasFromFindReplace,
19127
19127
  L.formulaCheck,
19128
19128
  l
19129
- ]), Ye(() => {
19129
+ ]), xe(() => {
19130
19130
  if (!(t.showSearch || t.showReplace)) return;
19131
19131
  const q = t.findReplacePrefill;
19132
19132
  q == null || q === "" || (a(q), Z(null), l((ae) => {
@@ -19137,7 +19137,7 @@ const rV = ({ getContainer: e }) => {
19137
19137
  t.showReplace,
19138
19138
  t.findReplacePrefill,
19139
19139
  l
19140
- ]), Ye(() => {
19140
+ ]), xe(() => {
19141
19141
  (t.showSearch || t.showReplace) && Z(null);
19142
19142
  }, [t.showSearch, t.showReplace]);
19143
19143
  const te = Ve(
@@ -19152,14 +19152,14 @@ const rV = ({ getContainer: e }) => {
19152
19152
  },
19153
19153
  [e]
19154
19154
  );
19155
- Ye(() => {
19155
+ xe(() => {
19156
19156
  const q = !!(t.showSearch || t.showReplace || t.findReplaceHiddenDuringRangePick);
19157
19157
  q && !Q.current && g({ x: 0, y: 0 }), Q.current = q;
19158
19158
  }, [
19159
19159
  t.showSearch,
19160
19160
  t.showReplace,
19161
19161
  t.findReplaceHiddenDuringRangePick
19162
- ]), Ye(() => {
19162
+ ]), xe(() => {
19163
19163
  if (!!!(t.showSearch || t.showReplace || t.findReplaceHiddenDuringRangePick)) return;
19164
19164
  const ae = e(), be = new ResizeObserver(() => {
19165
19165
  g((_) => te(_.x, _.y));
@@ -19205,7 +19205,7 @@ const rV = ({ getContainer: e }) => {
19205
19205
  },
19206
19206
  [te]
19207
19207
  );
19208
- Ye(
19208
+ xe(
19209
19209
  () => () => {
19210
19210
  N.current = null, document.body.style.userSelect = "", document.body.style.webkitUserSelect = "";
19211
19211
  },
@@ -19219,7 +19219,7 @@ const rV = ({ getContainer: e }) => {
19219
19219
  ),
19220
19220
  []
19221
19221
  ), v = Math.max(0, Math.floor(E / ds)), oe = Math.min(v + Bb + 2, u.length), j = u.slice(v, oe), O = u.length * ds, le = we(C);
19222
- Ye(() => {
19222
+ xe(() => {
19223
19223
  if (C === "specificRange" && le.current !== "specificRange") {
19224
19224
  const q = t.luckysheet_select_save;
19225
19225
  if (q && q.length > 0) {
@@ -19237,7 +19237,7 @@ const rV = ({ getContainer: e }) => {
19237
19237
  C !== "specificRange" && (B(null), l((q) => {
19238
19238
  q.searchRangeScopeHighlight = null, q.searchRangeScopeEmphasis = !1;
19239
19239
  })), le.current = C;
19240
- }, [C]), Ye(() => {
19240
+ }, [C]), xe(() => {
19241
19241
  if (!(t.showSearch || t.showReplace || t.findReplaceHiddenDuringRangePick) || C !== "specificRange") return;
19242
19242
  const q = setTimeout(() => {
19243
19243
  const ae = cc(k, A.current);
@@ -19254,7 +19254,7 @@ const rV = ({ getContainer: e }) => {
19254
19254
  t.findReplaceHiddenDuringRangePick,
19255
19255
  t.currentSheetId,
19256
19256
  l
19257
- ]), Ye(() => {
19257
+ ]), xe(() => {
19258
19258
  const q = t.rangeDialog;
19259
19259
  if (!q || q.show || q.type !== "searchRange") return;
19260
19260
  const ae = t.findReplaceRestoreVisibility;
@@ -20033,7 +20033,7 @@ const hV = ({
20033
20033
  (B, ee) => `${B}::${String(ee ?? "").trim().toLowerCase()}`,
20034
20034
  []
20035
20035
  );
20036
- Ye(() => {
20036
+ xe(() => {
20037
20037
  if (d) return;
20038
20038
  let B = !1;
20039
20039
  const ee = S.filter(
@@ -20124,7 +20124,7 @@ const hV = ({
20124
20124
  );
20125
20125
  if (Gl(() => {
20126
20126
  X(s), y(i), V(n);
20127
- }, [l, s, i, n, c]), Ye(() => {
20127
+ }, [l, s, i, n, c]), xe(() => {
20128
20128
  const B = document.querySelector(
20129
20129
  ".luckysheet-cs-draghandle-top.luckysheet-cs-draghandle"
20130
20130
  ), ee = Z.current;
@@ -20163,7 +20163,7 @@ const hV = ({
20163
20163
  }), () => {
20164
20164
  B = !0;
20165
20165
  };
20166
- }, [d, l, x]), Ye(() => {
20166
+ }, [d, l, x]), xe(() => {
20167
20167
  if (!d) return;
20168
20168
  const B = Date.now(), ee = (ne) => ne instanceof Element ? !!ne.closest(
20169
20169
  ".fortune-link-type-dropdown, .fortune-sheet-dropdown, [data-radix-popper-content-wrapper]"
@@ -20572,7 +20572,7 @@ const hV = ({
20572
20572
  visibledatarow: c,
20573
20573
  visibledatacolumn: d
20574
20574
  } = t, u = Je(t, t.currentSheetId), { filter_select: r, frozen: m } = t.luckysheetfile[u], h = t.isFlvReadOnly || !It(t), b = we("");
20575
- Ye(() => {
20575
+ xe(() => {
20576
20576
  let X = `${s ?? ""}|`;
20577
20577
  if (r != null && r.row && (r != null && r.column)) {
20578
20578
  const [x, V] = r.row, [N, Q] = r.column;
@@ -20900,7 +20900,7 @@ const hV = ({
20900
20900
  }, IV = () => {
20901
20901
  var a;
20902
20902
  const { context: e, setContext: t, refs: l, settings: i } = ot(rt), n = He(e);
20903
- Ye(() => {
20903
+ xe(() => {
20904
20904
  var c;
20905
20905
  if (n) {
20906
20906
  const d = [];
@@ -20913,7 +20913,7 @@ const hV = ({
20913
20913
  jI(u, d);
20914
20914
  });
20915
20915
  }
20916
- }, [n, t]), Ye(() => {
20916
+ }, [n, t]), xe(() => {
20917
20917
  if (!e.editingCommentBox) return;
20918
20918
  const c = (d) => {
20919
20919
  d.key === "Escape" && (t((u) => {
@@ -21046,12 +21046,12 @@ const hV = ({
21046
21046
  Y();
21047
21047
  const L = requestAnimationFrame(Y);
21048
21048
  return () => cancelAnimationFrame(L);
21049
- }, [(V = e.rangeDialog) == null ? void 0 : V.show, Z]), Ye(() => {
21049
+ }, [(V = e.rangeDialog) == null ? void 0 : V.show, Z]), xe(() => {
21050
21050
  var L, S;
21051
21051
  if (!((L = e.rangeDialog) != null && L.show)) return;
21052
21052
  const Y = yV(((S = e.rangeDialog) == null ? void 0 : S.rangeTxt) ?? "");
21053
21053
  a(Y), d(null), b.current = "";
21054
- }, [(N = e.rangeDialog) == null ? void 0 : N.show, (Q = e.rangeDialog) == null ? void 0 : Q.rangeTxt]), Ye(() => {
21054
+ }, [(N = e.rangeDialog) == null ? void 0 : N.show, (Q = e.rangeDialog) == null ? void 0 : Q.rangeTxt]), xe(() => {
21055
21055
  var L;
21056
21056
  if (!((L = e.rangeDialog) != null && L.show) || c === null) return;
21057
21057
  const Y = I();
@@ -21303,7 +21303,7 @@ function Al() {
21303
21303
  };
21304
21304
  }
21305
21305
  function vs(e, t, l, i) {
21306
- Ye(() => {
21306
+ xe(() => {
21307
21307
  function n(s) {
21308
21308
  e && e.current && !e.current.contains(s.target) && t();
21309
21309
  }
@@ -21320,7 +21320,7 @@ const GV = () => {
21320
21320
  e.luckysheetfile[I].dataVerification[`${(p = Z.luckysheet_select_save) == null ? void 0 : p[0].row_focus}_${(f = Z.luckysheet_select_save) == null ? void 0 : f[0].column_focus}`] || (Z.dataVerificationDropDownList = !1);
21321
21321
  });
21322
21322
  }, [t]);
21323
- return vs(l, b, [b]), Ye(() => {
21323
+ return vs(l, b, [b]), xe(() => {
21324
21324
  if (!e.luckysheet_select_save) return;
21325
21325
  const Z = e.luckysheet_select_save[e.luckysheet_select_save.length - 1], I = Z.row_focus, G = Z.column_focus;
21326
21326
  if (I == null || G == null) return;
@@ -21342,7 +21342,7 @@ const GV = () => {
21342
21342
  left: f,
21343
21343
  top: p
21344
21344
  }), a(x.type2 === "true");
21345
- }, [e.luckysheet_select_save]), Ye(() => {
21345
+ }, [e.luckysheet_select_save]), xe(() => {
21346
21346
  if (!e.luckysheet_select_save) return;
21347
21347
  const Z = e.luckysheet_select_save[e.luckysheet_select_save.length - 1], I = Z.row_focus, G = Z.column_focus;
21348
21348
  if (I == null || G == null) return;
@@ -21452,7 +21452,7 @@ const GV = () => {
21452
21452
  );
21453
21453
  return (s == null ? void 0 : s.iframes) || [];
21454
21454
  }, [e.luckysheetfile, e.currentSheetId]);
21455
- return Ye(() => {
21455
+ return xe(() => {
21456
21456
  const s = (a) => {
21457
21457
  if (!i.current) return;
21458
21458
  const c = i.current.querySelectorAll(
@@ -22036,13 +22036,13 @@ const SV = () => {
22036
22036
  { insertRowColOp: j }
22037
22037
  );
22038
22038
  }, [e, s.rowOverLimit, t, G]);
22039
- return Ye(() => {
22039
+ return xe(() => {
22040
22040
  e.warnDialog && setTimeout(() => {
22041
22041
  h(e.warnDialog, "yesno", "Invalid data", "Retry"), t((v) => {
22042
22042
  v.warnDialog = void 0;
22043
22043
  });
22044
22044
  }, 240);
22045
- }, [e.warnDialog, t, h]), Ye(() => {
22045
+ }, [e.warnDialog, t, h]), xe(() => {
22046
22046
  i.cellArea.current.scrollLeft = e.scrollLeft, i.cellArea.current.scrollTop = e.scrollTop;
22047
22047
  }, [
22048
22048
  e.scrollLeft,
@@ -22067,11 +22067,11 @@ const SV = () => {
22067
22067
  e.commentBoxes,
22068
22068
  e.hoveredCommentBox,
22069
22069
  e.editingCommentBox
22070
- ]), Ye(() => (document.addEventListener("mousemove", A), () => {
22070
+ ]), xe(() => (document.addEventListener("mousemove", A), () => {
22071
22071
  document.removeEventListener("mousemove", A);
22072
- }), [A]), Ye(() => (document.addEventListener("mouseup", E), () => {
22072
+ }), [A]), xe(() => (document.addEventListener("mouseup", E), () => {
22073
22073
  document.removeEventListener("mouseup", E);
22074
- }), [E]), Ye(() => (document.addEventListener("keydown", Y), () => {
22074
+ }), [E]), xe(() => (document.addEventListener("keydown", Y), () => {
22075
22075
  document.removeEventListener("keydown", Y);
22076
22076
  }), [Y]), /* @__PURE__ */ o.jsxs(
22077
22077
  "div",
@@ -22822,7 +22822,7 @@ const SV = () => {
22822
22822
  I(), G(), p();
22823
22823
  };
22824
22824
  }
22825
- Ye(() => {
22825
+ xe(() => {
22826
22826
  const r = e.current, m = l.scrollbarX.current, h = l.scrollbarY.current;
22827
22827
  return !r || !m || !h ? () => {
22828
22828
  } : u(
@@ -22834,7 +22834,7 @@ const SV = () => {
22834
22834
  }, LV = ({ sheet: e }) => {
22835
22835
  var d, u, r;
22836
22836
  const { data: t } = e, l = we(null), i = we(null), { context: n, setContext: s, refs: a, settings: c } = ot(rt);
22837
- return Ye(() => {
22837
+ return xe(() => {
22838
22838
  function m() {
22839
22839
  t && s((h) => {
22840
22840
  c.devicePixelRatio === 0 && (h.devicePixelRatio = (globalThis || window).devicePixelRatio), Ai(h, t), qr(
@@ -22847,7 +22847,7 @@ const SV = () => {
22847
22847
  return window.addEventListener("resize", m), () => {
22848
22848
  window.removeEventListener("resize", m);
22849
22849
  };
22850
- }, [t, a.canvas, s, c.devicePixelRatio]), Ye(() => {
22850
+ }, [t, a.canvas, s, c.devicePixelRatio]), xe(() => {
22851
22851
  t && s((m) => Ai(m, t));
22852
22852
  }, [
22853
22853
  (d = n.config) == null ? void 0 : d.rowlen,
@@ -22857,7 +22857,7 @@ const SV = () => {
22857
22857
  t,
22858
22858
  n.zoomRatio,
22859
22859
  s
22860
- ]), Ye(() => {
22860
+ ]), xe(() => {
22861
22861
  s(
22862
22862
  (m) => qr(
22863
22863
  m,
@@ -22871,7 +22871,7 @@ const SV = () => {
22871
22871
  n.rowHeaderWidth,
22872
22872
  n.columnHeaderHeight,
22873
22873
  n.devicePixelRatio
22874
- ]), Ye(() => {
22874
+ ]), xe(() => {
22875
22875
  cI(n, a.globalCache, n.currentSheetId);
22876
22876
  }, [
22877
22877
  a.globalCache,
@@ -22879,7 +22879,7 @@ const SV = () => {
22879
22879
  n.currentSheetId,
22880
22880
  n.visibledatacolumn,
22881
22881
  n.visibledatarow
22882
- ]), Ye(() => {
22882
+ ]), xe(() => {
22883
22883
  if (n.groupValuesRefreshData.length > 0)
22884
22884
  return;
22885
22885
  const m = new wm(a.canvas.current, n), h = () => {
@@ -23394,7 +23394,7 @@ const oi = ({
23394
23394
  n,
23395
23395
  l.splitConfirmToExe
23396
23396
  ]);
23397
- return Ye(() => {
23397
+ return xe(() => {
23398
23398
  u((Z) => (Z = uu(n, e), Z));
23399
23399
  }, [e, n]), /* @__PURE__ */ o.jsxs("div", { id: "fortune-split-column", children: [
23400
23400
  /* @__PURE__ */ o.jsx("div", { className: "splitDataPreview text-heading-xsm", children: l.splitDataPreview }),
@@ -24059,7 +24059,7 @@ const oi = ({
24059
24059
  placeholder: n = "Enter a value..."
24060
24060
  }) => {
24061
24061
  const [s, a] = Se(""), [c, d] = Se(!1), u = we(null);
24062
- if (Ye(() => {
24062
+ if (xe(() => {
24063
24063
  if (e && u.current) {
24064
24064
  const h = setTimeout(() => {
24065
24065
  var b;
@@ -24522,7 +24522,7 @@ function rr(e) {
24522
24522
  c(!1);
24523
24523
  }, i));
24524
24524
  }, [t, u, i, c]);
24525
- Ye(() => () => {
24525
+ xe(() => () => {
24526
24526
  u();
24527
24527
  }, [u]);
24528
24528
  const m = Ve(() => {
@@ -24645,7 +24645,7 @@ function PV({
24645
24645
  const u = 2, r = Math.max(0, c - u * 2), m = 24, h = c / d * r, b = Math.max(m, Math.floor(h)), Z = d - c, I = Z > 0 ? a.scrollTop / Z : 0, G = Math.max(0, r - b), p = u + Math.round(I * G);
24646
24646
  n({ top: p, height: b });
24647
24647
  }, []);
24648
- return Ye(() => {
24648
+ return xe(() => {
24649
24649
  s();
24650
24650
  const a = () => s();
24651
24651
  return window.addEventListener("resize", a), () => window.removeEventListener("resize", a);
@@ -24862,9 +24862,9 @@ const AV = () => {
24862
24862
  }
24863
24863
  m({ left: E.width, right: void 0, top: F });
24864
24864
  }, [n]);
24865
- return Ye(() => {
24865
+ return xe(() => {
24866
24866
  x();
24867
- }, [x]), Ye(() => {
24867
+ }, [x]), xe(() => {
24868
24868
  if (!n) return;
24869
24869
  const A = () => x();
24870
24870
  return window.addEventListener("resize", A), () => window.removeEventListener("resize", A);
@@ -25267,7 +25267,7 @@ const AV = () => {
25267
25267
  ie == null || ie.focus();
25268
25268
  });
25269
25269
  }, [n, a.cellInput, a.fxInput]), m = we(n), h = we(null), [b, Z] = Se(-1), [I, G] = Se([]), [p, f] = Se(!1), [W, y] = Se(window.innerWidth >= 1480), { showDialog: g, hideDialog: X } = Al(), { showAlert: x, hideAlert: V } = qi();
25270
- Ye(() => {
25270
+ xe(() => {
25271
25271
  const H = a.globalCache;
25272
25272
  if (H)
25273
25273
  return H.onHyperlinkInsertBlocked = () => {
@@ -25326,14 +25326,14 @@ const AV = () => {
25326
25326
  },
25327
25327
  []
25328
25328
  );
25329
- Ye(() => {
25329
+ xe(() => {
25330
25330
  const H = () => {
25331
25331
  y(window.innerWidth >= 1480);
25332
25332
  };
25333
25333
  return window.addEventListener("resize", H), () => window.removeEventListener("resize", H);
25334
- }, []), Ye(() => {
25334
+ }, []), xe(() => {
25335
25335
  Z(-1);
25336
- }, [c.toolbarItems, c.customToolbarItems]), Ye(() => {
25336
+ }, [c.toolbarItems, c.customToolbarItems]), xe(() => {
25337
25337
  if (b === -1) {
25338
25338
  const H = h.current;
25339
25339
  if (!H) return;
@@ -25346,7 +25346,7 @@ const AV = () => {
25346
25346
  }
25347
25347
  G(D);
25348
25348
  }
25349
- }, [b, oe]), Ye(() => {
25349
+ }, [b, oe]), xe(() => {
25350
25350
  if (W) {
25351
25351
  Z(-1), e(null);
25352
25352
  return;
@@ -25368,7 +25368,7 @@ const AV = () => {
25368
25368
  c.toolbarItems.length,
25369
25369
  oe,
25370
25370
  W
25371
- ]), Ye(() => {
25371
+ ]), xe(() => {
25372
25372
  s((H) => {
25373
25373
  H.dataVerification.dataRegulation.value1 = "value1";
25374
25374
  });
@@ -25394,19 +25394,19 @@ const AV = () => {
25394
25394
  },
25395
25395
  [n, s]
25396
25396
  ), { openRemoveDuplicatesDialog: ae } = JV();
25397
- Ye(() => {
25397
+ xe(() => {
25398
25398
  window.dataVerificationClick = pe, window.conditionalFormatClick = q, window.removeDuplicatesClick = ae;
25399
- }, [pe, q, ae]), Ye(() => {
25399
+ }, [pe, q, ae]), xe(() => {
25400
25400
  Y != null && (a.globalCache.recentTextColor = ji(Y, "fc"), a.globalCache.recentBackgroundColor = ji(Y, "bg"));
25401
25401
  }, [Y, a.globalCache]);
25402
25402
  const be = Ve(
25403
25403
  (H, ie) => {
25404
- var re, Ze, ce, ye, fe, xe;
25404
+ var re, Ze, ce, ye, fe, Ye;
25405
25405
  const D = L[H];
25406
25406
  if (H === "|")
25407
25407
  return /* @__PURE__ */ o.jsx(Ub, {}, ie);
25408
25408
  if (["font-color", "background"].includes(H)) {
25409
- const Ge = Y != null ? ji(Y, "fc") : "#000000", ge = Y != null ? ji(Y, "bg") : void 0, Le = (Re) => {
25409
+ const Ge = Y != null ? ji(Y, "fc") : "#000000", Xe = Y != null ? ji(Y, "bg") : void 0, Le = (Re) => {
25410
25410
  s(
25411
25411
  (Te) => (H === "font-color" ? CI : HI)(
25412
25412
  Te,
@@ -25422,7 +25422,7 @@ const AV = () => {
25422
25422
  style: {
25423
25423
  width: 24,
25424
25424
  height: 4,
25425
- backgroundColor: H === "font-color" ? Ge : ge,
25425
+ backgroundColor: H === "font-color" ? Ge : Xe,
25426
25426
  position: "absolute",
25427
25427
  bottom: 2,
25428
25428
  left: 3,
@@ -25438,7 +25438,7 @@ const AV = () => {
25438
25438
  showArrow: !1,
25439
25439
  fillColor: H === "font-color" ? Ge : void 0,
25440
25440
  onClick: () => {
25441
- const Re = H === "font-color" ? Ge : ge;
25441
+ const Re = H === "font-color" ? Ge : Xe;
25442
25442
  Re && Le(Re);
25443
25443
  },
25444
25444
  children: (Re) => /* @__PURE__ */ o.jsx(
@@ -25459,13 +25459,13 @@ const AV = () => {
25459
25459
  if (H === "format") {
25460
25460
  let Ge = O[0].text;
25461
25461
  if (Y) {
25462
- const ge = ji(Y, "ct"), Le = M.find(O, (Re) => Re.value === (ge == null ? void 0 : ge.fa));
25463
- if ((ge == null ? void 0 : ge.fa) != null) {
25464
- const Re = /[hH]:/.test(ge.fa);
25465
- ge.t === "d" ? Ge = Re ? "Date time" : "Date" : ge.t === "g" && ge.fa === "General" ? Ge = O[0].text : Le != null ? Ge = Le.text : ge.fa.includes("%") ? Ge = ge.fa === "0%" ? O[0].text : "Percent" : rm(ge.fa) ? Ge = Re ? "Date time" : "Date" : OZ(
25466
- ge.fa,
25462
+ const Xe = ji(Y, "ct"), Le = M.find(O, (Re) => Re.value === (Xe == null ? void 0 : Xe.fa));
25463
+ if ((Xe == null ? void 0 : Xe.fa) != null) {
25464
+ const Re = /[hH]:/.test(Xe.fa);
25465
+ Xe.t === "d" ? Ge = Re ? "Date time" : "Date" : Xe.t === "g" && Xe.fa === "General" ? Ge = O[0].text : Le != null ? Ge = Le.text : Xe.fa.includes("%") ? Ge = Xe.fa === "0%" ? O[0].text : "Percent" : rm(Xe.fa) ? Ge = Re ? "Date time" : "Date" : OZ(
25466
+ Xe.fa,
25467
25467
  bt(n).currencyDetail
25468
- ) ? Ge = O[0].text : ge.t === "n" || ge.fa.includes("#,##0") || ge.fa === "0" || ge.fa === "0.00" ? Ge = "Number" : Ge = O[0].text;
25468
+ ) ? Ge = O[0].text : Xe.t === "n" || Xe.fa.includes("#,##0") || Xe.fa === "0" || Xe.fa === "0.00" ? Ge = "Number" : Ge = O[0].text;
25469
25469
  }
25470
25470
  }
25471
25471
  return /* @__PURE__ */ o.jsx(
@@ -25474,7 +25474,7 @@ const AV = () => {
25474
25474
  text: Ge,
25475
25475
  tooltip: D,
25476
25476
  showArrow: !1,
25477
- children: (ge) => /* @__PURE__ */ o.jsx(di, { children: O.map(
25477
+ children: (Xe) => /* @__PURE__ */ o.jsx(di, { children: O.map(
25478
25478
  ({
25479
25479
  text: Le,
25480
25480
  value: Re,
@@ -25493,7 +25493,7 @@ const AV = () => {
25493
25493
  ),
25494
25494
  void 0,
25495
25495
  "Currency Format"
25496
- ), ge(!1);
25496
+ ), Xe(!1);
25497
25497
  },
25498
25498
  children: /* @__PURE__ */ o.jsxs("div", { className: "fortune-toolbar-menu-line", children: [
25499
25499
  /* @__PURE__ */ o.jsxs("div", { className: "flex gap-2 items-center", children: [
@@ -25514,7 +25514,7 @@ const AV = () => {
25514
25514
  Ml,
25515
25515
  {
25516
25516
  onClick: () => {
25517
- ge(!1), s((ke) => {
25517
+ Xe(!1), s((ke) => {
25518
25518
  const Be = He(ke);
25519
25519
  Be != null && rl(
25520
25520
  ke,
@@ -25549,7 +25549,7 @@ const AV = () => {
25549
25549
  }
25550
25550
  if (H === "font") {
25551
25551
  let Ge = z[0];
25552
- return (Y == null ? void 0 : Y.ff) != null && (M.isNumber(Y.ff) ? Ge = z[Y.ff] : Ge = Y.ff), /* @__PURE__ */ o.jsx(pl, { text: Ge, tooltip: D, showArrow: !1, children: (ge) => /* @__PURE__ */ o.jsx(di, { children: z.map((Le) => /* @__PURE__ */ o.jsx(
25552
+ return (Y == null ? void 0 : Y.ff) != null && (M.isNumber(Y.ff) ? Ge = z[Y.ff] : Ge = Y.ff), /* @__PURE__ */ o.jsx(pl, { text: Ge, tooltip: D, showArrow: !1, children: (Xe) => /* @__PURE__ */ o.jsx(di, { children: z.map((Le) => /* @__PURE__ */ o.jsx(
25553
25553
  Ml,
25554
25554
  {
25555
25555
  onClick: () => {
@@ -25557,7 +25557,7 @@ const AV = () => {
25557
25557
  Ge = Le;
25558
25558
  const Te = He(Re);
25559
25559
  Te && rl(Re, a.cellInput.current, Te, "ff", Le);
25560
- }), ge(!1);
25560
+ }), Xe(!1);
25561
25561
  },
25562
25562
  children: Le
25563
25563
  },
@@ -25594,7 +25594,7 @@ const AV = () => {
25594
25594
  36,
25595
25595
  48,
25596
25596
  72
25597
- ].map((ge) => /* @__PURE__ */ o.jsx(
25597
+ ].map((Xe) => /* @__PURE__ */ o.jsx(
25598
25598
  "div",
25599
25599
  {
25600
25600
  className: "fortune-toolbar-select-option text-body-sm text-center color-text-default",
@@ -25613,14 +25613,14 @@ const AV = () => {
25613
25613
  (Le) => BI(
25614
25614
  Le,
25615
25615
  a.cellInput.current,
25616
- ge,
25616
+ Xe,
25617
25617
  a.canvas.current.getContext("2d")
25618
25618
  )
25619
25619
  ), Ge(!1);
25620
25620
  },
25621
- children: ge
25621
+ children: Xe
25622
25622
  },
25623
- ge
25623
+ Xe
25624
25624
  ))
25625
25625
  }
25626
25626
  )
@@ -25648,10 +25648,10 @@ const AV = () => {
25648
25648
  return /* @__PURE__ */ o.jsx(
25649
25649
  pl,
25650
25650
  {
25651
- iconId: ((re = M.find(Ge, (ge) => `${ge.value}` == `${Y == null ? void 0 : Y.ht}`)) == null ? void 0 : re.title) || "align-left",
25651
+ iconId: ((re = M.find(Ge, (Xe) => `${Xe.value}` == `${Y == null ? void 0 : Y.ht}`)) == null ? void 0 : re.title) || "align-left",
25652
25652
  tooltip: L.horizontalAlign,
25653
25653
  showArrow: !1,
25654
- children: (ge) => /* @__PURE__ */ o.jsx(
25654
+ children: (Xe) => /* @__PURE__ */ o.jsx(
25655
25655
  di,
25656
25656
  {
25657
25657
  style: {
@@ -25677,7 +25677,7 @@ const AV = () => {
25677
25677
  a.cellInput.current,
25678
25678
  Le.replace("align-", "")
25679
25679
  );
25680
- }), ge(!1);
25680
+ }), Xe(!1);
25681
25681
  },
25682
25682
  tabIndex: 0
25683
25683
  },
@@ -25711,10 +25711,10 @@ const AV = () => {
25711
25711
  return /* @__PURE__ */ o.jsx(
25712
25712
  pl,
25713
25713
  {
25714
- iconId: ((Ze = M.find(Ge, (ge) => `${ge.value}` == `${Y == null ? void 0 : Y.vt}`)) == null ? void 0 : Ze.title) || "align-top",
25714
+ iconId: ((Ze = M.find(Ge, (Xe) => `${Xe.value}` == `${Y == null ? void 0 : Y.vt}`)) == null ? void 0 : Ze.title) || "align-top",
25715
25715
  tooltip: L.verticalAlign,
25716
25716
  showArrow: !1,
25717
- children: (ge) => /* @__PURE__ */ o.jsx(
25717
+ children: (Xe) => /* @__PURE__ */ o.jsx(
25718
25718
  di,
25719
25719
  {
25720
25720
  style: {
@@ -25740,7 +25740,7 @@ const AV = () => {
25740
25740
  a.cellInput.current,
25741
25741
  Le.replace("align-", "")
25742
25742
  );
25743
- }), ge(!1);
25743
+ }), Xe(!1);
25744
25744
  },
25745
25745
  tabIndex: 0
25746
25746
  },
@@ -25876,7 +25876,7 @@ const AV = () => {
25876
25876
  iconId: "locationCondition",
25877
25877
  tooltip: J.location,
25878
25878
  showArrow: !1,
25879
- children: (ge) => /* @__PURE__ */ o.jsx(di, { children: Ge.map(({ text: Le, value: Re }) => /* @__PURE__ */ o.jsx(
25879
+ children: (Xe) => /* @__PURE__ */ o.jsx(di, { children: Ge.map(({ text: Le, value: Re }) => /* @__PURE__ */ o.jsx(
25880
25880
  Ml,
25881
25881
  {
25882
25882
  onClick: () => {
@@ -25981,7 +25981,7 @@ const AV = () => {
25981
25981
  );
25982
25982
  });
25983
25983
  }
25984
- ke.length === 0 && Re !== "location" && g(J.locationTipNotFindCell, "ok"), ge(!1);
25984
+ ke.length === 0 && Re !== "location" && g(J.locationTipNotFindCell, "ok"), Xe(!1);
25985
25985
  },
25986
25986
  children: /* @__PURE__ */ o.jsx("div", { className: "fortune-toolbar-menu-line", children: Le })
25987
25987
  },
@@ -26016,10 +26016,10 @@ const AV = () => {
26016
26016
  );
26017
26017
  if (H === "comment") {
26018
26018
  const Ge = (ce = n.luckysheet_select_save) == null ? void 0 : ce[n.luckysheet_select_save.length - 1];
26019
- let ge = Ge == null ? void 0 : Ge.row_focus, Le = Ge == null ? void 0 : Ge.column_focus;
26020
- Ge ? (ge == null && ([ge] = Ge.row), Le == null && ([Le] = Ge.column)) : (ge = 0, Le = 0);
26019
+ let Xe = Ge == null ? void 0 : Ge.row_focus, Le = Ge == null ? void 0 : Ge.column_focus;
26020
+ Ge ? (Xe == null && ([Xe] = Ge.row), Le == null && ([Le] = Ge.column)) : (Xe = 0, Le = 0);
26021
26021
  let Re;
26022
- return ((fe = (ye = Q == null ? void 0 : Q[ge]) == null ? void 0 : ye[Le]) == null ? void 0 : fe.ps) != null ? Re = [
26022
+ return ((fe = (ye = Q == null ? void 0 : Q[Xe]) == null ? void 0 : ye[Le]) == null ? void 0 : fe.ps) != null ? Re = [
26023
26023
  { key: "edit", text: P.edit, onClick: Jm },
26024
26024
  { key: "delete", text: P.delete, onClick: MI },
26025
26025
  {
@@ -26065,7 +26065,7 @@ const AV = () => {
26065
26065
  (ve) => Be(
26066
26066
  ve,
26067
26067
  a.globalCache,
26068
- ge,
26068
+ Xe,
26069
26069
  Le
26070
26070
  )
26071
26071
  ), Te(!1);
@@ -26109,14 +26109,14 @@ const AV = () => {
26109
26109
  });
26110
26110
  return;
26111
26111
  }
26112
- const ge = R.confirmMerge;
26113
- x(ge, "yesno", () => {
26112
+ const Xe = R.confirmMerge;
26113
+ x(Xe, "yesno", () => {
26114
26114
  s((Le) => {
26115
26115
  vn(Le, "merge-all");
26116
26116
  }), V();
26117
26117
  });
26118
26118
  },
26119
- children: (ge) => /* @__PURE__ */ o.jsxs(di, { children: [
26119
+ children: (Xe) => /* @__PURE__ */ o.jsxs(di, { children: [
26120
26120
  Ge.map(({ text: Le, value: Re, icon: Te }) => /* @__PURE__ */ o.jsx(
26121
26121
  Ml,
26122
26122
  {
@@ -26124,9 +26124,9 @@ const AV = () => {
26124
26124
  if (Re === "merge-cancel")
26125
26125
  s((Pe) => {
26126
26126
  vn(Pe, Re);
26127
- }), ge(!1);
26127
+ }), Xe(!1);
26128
26128
  else {
26129
- if (ge(!1), !iu(n)) {
26129
+ if (Xe(!1), !iu(n)) {
26130
26130
  s((ke) => {
26131
26131
  vn(ke, Re);
26132
26132
  });
@@ -26158,7 +26158,7 @@ const AV = () => {
26158
26158
  Ml,
26159
26159
  {
26160
26160
  onClick: () => {
26161
- ge(!1), q(n.luckysheet_select_save);
26161
+ Xe(!1), q(n.luckysheet_select_save);
26162
26162
  },
26163
26163
  children: /* @__PURE__ */ o.jsxs(
26164
26164
  "div",
@@ -26242,17 +26242,17 @@ const AV = () => {
26242
26242
  tooltip: D,
26243
26243
  text: "边框设置",
26244
26244
  showArrow: !1,
26245
- onClick: () => s((ge) => {
26246
- Qn(ge, "border-all", le, Ie);
26245
+ onClick: () => s((Xe) => {
26246
+ Qn(Xe, "border-all", le, Ie);
26247
26247
  }),
26248
- children: (ge) => /* @__PURE__ */ o.jsx("div", { className: "fortune-toolbar-select fortune-border-grid", children: Ge.map(({ value: Le, icon: Re }) => /* @__PURE__ */ o.jsx(
26248
+ children: (Xe) => /* @__PURE__ */ o.jsx("div", { className: "fortune-toolbar-select fortune-border-grid", children: Ge.map(({ value: Le, icon: Re }) => /* @__PURE__ */ o.jsx(
26249
26249
  "div",
26250
26250
  {
26251
26251
  className: "fortune-border-grid-item",
26252
26252
  onClick: () => {
26253
26253
  s((Te) => {
26254
26254
  Qn(Te, Le, le, Ie);
26255
- }), ge(!1);
26255
+ }), Xe(!1);
26256
26256
  },
26257
26257
  children: /* @__PURE__ */ o.jsx(ze, { name: Re, width: 16, height: 16 })
26258
26258
  },
@@ -26287,16 +26287,16 @@ const AV = () => {
26287
26287
  iconId: "freeze-row-col",
26288
26288
  tooltip: D,
26289
26289
  showArrow: !1,
26290
- onClick: () => s((ge) => {
26291
- su(ge, "freeze-row-col");
26290
+ onClick: () => s((Xe) => {
26291
+ su(Xe, "freeze-row-col");
26292
26292
  }),
26293
- children: (ge) => /* @__PURE__ */ o.jsx(di, { children: Ge.map(({ text: Le, value: Re }) => /* @__PURE__ */ o.jsx(
26293
+ children: (Xe) => /* @__PURE__ */ o.jsx(di, { children: Ge.map(({ text: Le, value: Re }) => /* @__PURE__ */ o.jsx(
26294
26294
  Ml,
26295
26295
  {
26296
26296
  onClick: () => {
26297
26297
  s((Te) => {
26298
26298
  su(Te, Re);
26299
- }), ge(!1);
26299
+ }), Xe(!1);
26300
26300
  },
26301
26301
  children: /* @__PURE__ */ o.jsxs("div", { className: "fortune-toolbar-menu-line", children: [
26302
26302
  Le,
@@ -26327,11 +26327,11 @@ const AV = () => {
26327
26327
  value: "wrap"
26328
26328
  }
26329
26329
  ];
26330
- let ge = Ge[0];
26331
- return (Y == null ? void 0 : Y.tb) != null && (ge = M.get(Ge, Y.tb)), /* @__PURE__ */ o.jsx(
26330
+ let Xe = Ge[0];
26331
+ return (Y == null ? void 0 : Y.tb) != null && (Xe = M.get(Ge, Y.tb)), /* @__PURE__ */ o.jsx(
26332
26332
  pl,
26333
26333
  {
26334
- iconId: ge.iconId,
26334
+ iconId: Xe.iconId,
26335
26335
  tooltip: L.textWrap,
26336
26336
  showArrow: !1,
26337
26337
  children: (Le) => /* @__PURE__ */ o.jsx(
@@ -26348,7 +26348,7 @@ const AV = () => {
26348
26348
  children: Ge.map(({ iconId: Re, value: Te }) => /* @__PURE__ */ o.jsx(
26349
26349
  ft,
26350
26350
  {
26351
- isActive: ge.value === Te,
26351
+ isActive: Xe.value === Te,
26352
26352
  icon: Gs(Re),
26353
26353
  variant: "ghost",
26354
26354
  onClick: () => {
@@ -26403,11 +26403,11 @@ const AV = () => {
26403
26403
  value: "rotation-down"
26404
26404
  }
26405
26405
  ];
26406
- let ge = Ge[0];
26407
- return (Y == null ? void 0 : Y.tr) != null && (ge = M.get(Ge, Y.tr)), /* @__PURE__ */ o.jsx(
26406
+ let Xe = Ge[0];
26407
+ return (Y == null ? void 0 : Y.tr) != null && (Xe = M.get(Ge, Y.tr)), /* @__PURE__ */ o.jsx(
26408
26408
  pl,
26409
26409
  {
26410
- iconId: ge.iconId,
26410
+ iconId: Xe.iconId,
26411
26411
  tooltip: L.textRotate,
26412
26412
  showArrow: !1,
26413
26413
  children: (Le) => /* @__PURE__ */ o.jsx(di, { children: Ge.map(({ text: Re, iconId: Te, value: Pe }) => /* @__PURE__ */ o.jsx(
@@ -26456,7 +26456,7 @@ const AV = () => {
26456
26456
  H
26457
26457
  );
26458
26458
  if (H === "filter") {
26459
- const Ge = !M.isEmpty(n.luckysheet_filter_save) || n.filterOptions != null, ge = n.allowEdit === !1 || n.isFlvReadOnly, Le = ge ? Ge && n.viewerFilterVisible !== !1 : Ge, Re = L.sortAndFilter, Te = ge ? !Ge : !1;
26459
+ const Ge = !M.isEmpty(n.luckysheet_filter_save) || n.filterOptions != null, Xe = n.allowEdit === !1 || n.isFlvReadOnly, Le = Xe ? Ge && n.viewerFilterVisible !== !1 : Ge, Re = L.sortAndFilter, Te = Xe ? !Ge : !1;
26460
26460
  return /* @__PURE__ */ o.jsx(Wl, { text: Re, position: "bottom", children: /* @__PURE__ */ o.jsx(
26461
26461
  "div",
26462
26462
  {
@@ -26468,7 +26468,7 @@ const AV = () => {
26468
26468
  style: Te ? { pointerEvents: "none", opacity: 0.45 } : {},
26469
26469
  onClick: () => {
26470
26470
  Te || s((Pe) => {
26471
- if (ge) {
26471
+ if (Xe) {
26472
26472
  gy(Pe);
26473
26473
  return;
26474
26474
  }
@@ -26529,7 +26529,7 @@ const AV = () => {
26529
26529
  iconId: H,
26530
26530
  tooltip: D,
26531
26531
  disabled: (H === "number-decrease" || H === "number-increase") && n.luckysheetCellUpdate.length > 0 || !!se,
26532
- selected: (xe = vI(H)) == null ? void 0 : xe(Y),
26532
+ selected: (Ye = vI(H)) == null ? void 0 : Ye(Y),
26533
26533
  onMouseDown: (Ge) => {
26534
26534
  if (H === "link") {
26535
26535
  if (se) {
@@ -26544,9 +26544,9 @@ const AV = () => {
26544
26544
  }
26545
26545
  },
26546
26546
  onClick: () => {
26547
- var Ge, ge;
26547
+ var Ge, Xe;
26548
26548
  if (H === "link" && se) {
26549
- (ge = (Ge = a.globalCache) == null ? void 0 : Ge.onHyperlinkInsertBlocked) == null || ge.call(Ge);
26549
+ (Xe = (Ge = a.globalCache) == null ? void 0 : Ge.onHyperlinkInsertBlocked) == null || Xe.call(Ge);
26550
26550
  return;
26551
26551
  }
26552
26552
  s((Le) => {
@@ -26773,7 +26773,7 @@ const AV = () => {
26773
26773
  ), G = we(null), [p, f] = Se(!1), W = (oe = c.luckysheet_select_save) == null ? void 0 : oe[0], y = we(null), g = !M.isEmpty(c.luckysheetCellUpdate) && W ? `${c.currentSheetId}:${W.row_focus}:${W.column_focus}` : null, X = g && ((j = y.current) == null ? void 0 : j.cellKey) === g ? y.current.top : null, x = Sd(c.luckysheetCellUpdate), V = Sd(c.currentSheetId), N = we(""), Q = we(null), A = () => {
26774
26774
  localStorage.setItem("formulaMore", String(i)), n(!i);
26775
26775
  };
26776
- Ye(() => {
26776
+ xe(() => {
26777
26777
  var O;
26778
26778
  if (!g) {
26779
26779
  y.current = null;
@@ -26791,12 +26791,12 @@ const AV = () => {
26791
26791
  },
26792
26792
  [g]
26793
26793
  );
26794
- Ye(() => {
26794
+ xe(() => {
26795
26795
  const O = (le) => {
26796
26796
  le.key === "F10" && (le.preventDefault(), A());
26797
26797
  };
26798
26798
  return window.addEventListener("keydown", O), () => window.removeEventListener("keydown", O);
26799
- }, [i]), Ye(() => {
26799
+ }, [i]), xe(() => {
26800
26800
  var Ie, ue;
26801
26801
  if (f(Im(c)), c.luckysheetCellUpdate.length > 0)
26802
26802
  return;
@@ -26856,9 +26856,9 @@ const AV = () => {
26856
26856
  V,
26857
26857
  u.fxInput,
26858
26858
  u.globalCache
26859
- ]), Ye(() => {
26859
+ ]), xe(() => {
26860
26860
  M.isEmpty(c.luckysheetCellUpdate) && (delete u.globalCache.pendingTypeOverCell, h());
26861
- }, [c.luckysheetCellUpdate, h, u.globalCache]), Ye(() => {
26861
+ }, [c.luckysheetCellUpdate, h, u.globalCache]), xe(() => {
26862
26862
  var le;
26863
26863
  if (M.isEmpty(c.luckysheetCellUpdate) || !u.fxInput.current) {
26864
26864
  Q.current = null;
@@ -27389,7 +27389,7 @@ const AV = () => {
27389
27389
  ]), Gl(() => {
27390
27390
  var X, x;
27391
27391
  e.showQuickSearch && ((X = c.current) == null || X.focus(), (x = c.current) == null || x.select());
27392
- }, [e.showQuickSearch, e.quickSearchFocusNonce]), Ye(() => {
27392
+ }, [e.showQuickSearch, e.quickSearchFocusNonce]), xe(() => {
27393
27393
  var x;
27394
27394
  if (e.showQuickSearch) {
27395
27395
  r.current = !0;
@@ -27399,7 +27399,7 @@ const AV = () => {
27399
27399
  r.current = !1;
27400
27400
  const X = l.globalCache.quickSearchReturnFocus;
27401
27401
  l.globalCache.quickSearchReturnFocus = null, X instanceof HTMLElement ? X.focus() : (x = l.workbookContainer.current) == null || x.focus();
27402
- }, [e.showQuickSearch, l]), Ye(() => {
27402
+ }, [e.showQuickSearch, l]), xe(() => {
27403
27403
  if (e.showQuickSearch)
27404
27404
  return d.current && clearTimeout(d.current), d.current = setTimeout(() => {
27405
27405
  var N;
@@ -27466,7 +27466,7 @@ const AV = () => {
27466
27466
  t,
27467
27467
  l.globalCache.undoList.length,
27468
27468
  l.globalCache.redoList.length
27469
- ]), Ye(
27469
+ ]), xe(
27470
27470
  () => () => {
27471
27471
  var X;
27472
27472
  (X = u.current) == null || X.abort();
@@ -27595,7 +27595,7 @@ const AV = () => {
27595
27595
  };
27596
27596
  var n9 = typeof an == "object" && an && an.Object === Object && an, s9 = typeof self == "object" && self && self.Object === Object && self;
27597
27597
  n9 || s9 || Function("return this")();
27598
- var c9 = typeof window < "u" ? Gl : Ye, o9 = typeof window > "u";
27598
+ var c9 = typeof window < "u" ? Gl : xe, o9 = typeof window > "u";
27599
27599
  function La(e, {
27600
27600
  defaultValue: t = !1,
27601
27601
  initializeWithValue: l = !0
@@ -27613,7 +27613,7 @@ function La(e, {
27613
27613
  }
27614
27614
  const Ob = (e) => String(e).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-"), d9 = ({ sheet: e, isDropPlaceholder: t }) => {
27615
27615
  const { context: l, setContext: i, refs: n, settings: s } = ot(rt), [a, c] = Se(!1), d = we(null), u = we(null), [r, m] = Se(!1), { showAlert: h } = qi(), b = e.id != null ? Ob(String(e.id)) : "placeholder", Z = e.name ? Ob(e.name) : "";
27616
- Ye(() => {
27616
+ xe(() => {
27617
27617
  i((W) => {
27618
27618
  const y = l.sheetScrollRecord[W == null ? void 0 : W.currentSheetId];
27619
27619
  if (y)
@@ -27633,7 +27633,7 @@ const Ob = (e) => String(e).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-"),
27633
27633
  l.sheetScrollRecord,
27634
27634
  i,
27635
27635
  s.suppressInitialCellSelection
27636
- ]), Ye(() => {
27636
+ ]), xe(() => {
27637
27637
  if (u.current) {
27638
27638
  if (a) {
27639
27639
  if (window.getSelection) {
@@ -27941,7 +27941,7 @@ const Ob = (e) => String(e).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-"),
27941
27941
  behavior: "smooth"
27942
27942
  });
27943
27943
  }, []);
27944
- Ye(() => {
27944
+ xe(() => {
27945
27945
  if (t.luckysheet_select_save) {
27946
27946
  const N = JZ(
27947
27947
  t
@@ -27949,7 +27949,7 @@ const Ob = (e) => String(e).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-"),
27949
27949
  );
27950
27950
  b(N);
27951
27951
  }
27952
- }, [t.luckysheet_select_save]), Ye(() => {
27952
+ }, [t.luckysheet_select_save]), xe(() => {
27953
27953
  const V = s.current;
27954
27954
  V && u(V.scrollWidth - 2 > V.clientWidth);
27955
27955
  }, [t.luckysheetfile]);
@@ -27975,10 +27975,10 @@ const Ob = (e) => String(e).replace(/[^a-zA-Z0-9-]/g, "-").replace(/-+/g, "-"),
27975
27975
  const V = document.getElementById("corner-plus");
27976
27976
  V && (V.style.display = "block");
27977
27977
  };
27978
- Ye(() => {
27978
+ xe(() => {
27979
27979
  const V = document.getElementById("corner-plus");
27980
27980
  V && (V.style.display = "none");
27981
- }, [e]), Ye(() => {
27981
+ }, [e]), xe(() => {
27982
27982
  var V;
27983
27983
  (V = i.onSheetCountChange) == null || V.call(i, t.luckysheetfile.length);
27984
27984
  }, [t.luckysheetfile.length]);
@@ -32625,7 +32625,7 @@ const Z9 = /* @__PURE__ */ Qc(b9), I9 = () => {
32625
32625
  const { context: t, setContext: l } = ot(rt), [i, n] = Se(
32626
32626
  t.luckysheetfile[Je(t, t.currentSheetId)].color
32627
32627
  );
32628
- return Ye(() => {
32628
+ return xe(() => {
32629
32629
  l((s) => {
32630
32630
  if (s.allowEdit === !1) return;
32631
32631
  const a = Je(s, s.currentSheetId);
@@ -32971,7 +32971,7 @@ const $p = ({ context: e }) => {
32971
32971
  () => Db(e),
32972
32972
  [e]
32973
32973
  );
32974
- Ye(() => {
32974
+ xe(() => {
32975
32975
  var ie, D;
32976
32976
  if (i) return;
32977
32977
  const _ = Je(e, e == null ? void 0 : e.currentSheetId) || 0, de = e.luckysheetfile[_].luckysheet_conditionformat_save;
@@ -32981,14 +32981,14 @@ const $p = ({ context: e }) => {
32981
32981
  const Ze = de[se].cellrange || [];
32982
32982
  if (!Ze.length || !me || !U) return;
32983
32983
  Ze.some((ye) => {
32984
- const fe = ye.column, xe = ye.row, Ge = !(me[1] < fe[0] || me[0] > fe[1]), ge = !(U[1] < xe[0] || U[0] > xe[1]);
32985
- return Ge && ge;
32984
+ const fe = ye.column, Ye = ye.row, Ge = !(me[1] < fe[0] || me[0] > fe[1]), Xe = !(U[1] < Ye[0] || U[0] > Ye[1]);
32985
+ return Ge && Xe;
32986
32986
  }) && H.push(se);
32987
32987
  }), p(H)), !s.current && (H.length > 0 ? n(!1) : r.current && (n(!0), b(ne || ""), r.current = !1));
32988
- }, [e, i, ne]), Ye(() => {
32988
+ }, [e, i, ne]), xe(() => {
32989
32989
  var _;
32990
32990
  h === null && ((_ = e.rangeDialog) != null && _.show || b(ne || ""));
32991
- }, [(pe = e.rangeDialog) == null ? void 0 : pe.show, h, ne]), Ye(() => {
32991
+ }, [(pe = e.rangeDialog) == null ? void 0 : pe.show, h, ne]), xe(() => {
32992
32992
  var U, H, ie;
32993
32993
  if (!!((U = e.rangeDialog) != null && U.show)) {
32994
32994
  m.current = !0;
@@ -33064,7 +33064,7 @@ const $p = ({ context: e }) => {
33064
33064
  },
33065
33065
  [V]
33066
33066
  );
33067
- Ye(() => {
33067
+ xe(() => {
33068
33068
  te();
33069
33069
  }, [
33070
33070
  t,
@@ -33074,18 +33074,18 @@ const $p = ({ context: e }) => {
33074
33074
  ee,
33075
33075
  S,
33076
33076
  c
33077
- ]), Ye(() => {
33077
+ ]), xe(() => {
33078
33078
  V((_) => {
33079
33079
  _.conditionFormatDraftActive = i;
33080
33080
  });
33081
- }, [i, V]), Ye(
33081
+ }, [i, V]), xe(
33082
33082
  () => () => {
33083
33083
  V((_) => {
33084
33084
  _.conditionFormatDraftActive = !1;
33085
33085
  });
33086
33086
  },
33087
33087
  [V]
33088
- ), Ye(() => {
33088
+ ), xe(() => {
33089
33089
  if (!i) return;
33090
33090
  if (a.current) {
33091
33091
  a.current = !1;
@@ -33170,7 +33170,7 @@ const $p = ({ context: e }) => {
33170
33170
  h
33171
33171
  ]
33172
33172
  );
33173
- Ye(() => {
33173
+ xe(() => {
33174
33174
  V((_) => {
33175
33175
  if (_.conditionRules.rulesType = t, !_.rangeDialog) return;
33176
33176
  _.rangeDialog.type === "" && (_.conditionRules = {
@@ -33252,14 +33252,14 @@ const $p = ({ context: e }) => {
33252
33252
  },
33253
33253
  [V]
33254
33254
  );
33255
- Ye(() => {
33255
+ xe(() => {
33256
33256
  Ie();
33257
- }, [e == null ? void 0 : e.currentSheetId, Ie]), Ye(
33257
+ }, [e == null ? void 0 : e.currentSheetId, Ie]), xe(
33258
33258
  () => () => {
33259
33259
  Ie();
33260
33260
  },
33261
33261
  [Ie]
33262
- ), Ye(() => {
33262
+ ), xe(() => {
33263
33263
  i && V((_) => {
33264
33264
  _.conditionalFormatRuleHoverRanges = null;
33265
33265
  });
@@ -33906,21 +33906,21 @@ const $p = ({ context: e }) => {
33906
33906
  d(_);
33907
33907
  const me = f[_];
33908
33908
  V((D) => {
33909
- var ye, fe, xe, Ge;
33909
+ var ye, fe, Ye, Ge;
33910
33910
  const se = Je(
33911
33911
  D,
33912
33912
  D.currentSheetId
33913
33913
  );
33914
33914
  ((fe = (ye = D.luckysheetfile[se]) == null ? void 0 : ye.conditionRules) == null ? void 0 : fe.editKey) === void 0 && (D.luckysheetfile[se].conditionRules.editKey = _);
33915
- const re = me.conditionName, Ze = (xe = D.luckysheetfile[se]) == null ? void 0 : xe.conditionRules;
33915
+ const re = me.conditionName, Ze = (Ye = D.luckysheetfile[se]) == null ? void 0 : Ye.conditionRules;
33916
33916
  if (re === "dateIs" || re === "dateBefore" || re === "dateAfter") {
33917
- const ge = PZ(
33917
+ const Xe = PZ(
33918
33918
  me.conditionValue
33919
33919
  );
33920
- D.conditionRules.datePreset = ge.preset, D.conditionRules.dateValue = ge.snapshotOrExact, D.conditionRules.dateFormat = ge.format, Ze && (Ze.datePreset = ge.preset, Ze.dateValue = ge.snapshotOrExact, Ze.dateFormat = ge.format);
33920
+ D.conditionRules.datePreset = Xe.preset, D.conditionRules.dateValue = Xe.snapshotOrExact, D.conditionRules.dateFormat = Xe.format, Ze && (Ze.datePreset = Xe.preset, Ze.dateValue = Xe.snapshotOrExact, Ze.dateFormat = Xe.format);
33921
33921
  } else if (re === "occurrenceDate") {
33922
- const ge = (Ge = me.conditionValue) != null && Ge[0] ? String(me.conditionValue[0]) : "";
33923
- D.conditionRules.dateValue = ge, Ze && (Ze.dateValue = ge);
33922
+ const Xe = (Ge = me.conditionValue) != null && Ge[0] ? String(me.conditionValue[0]) : "";
33923
+ D.conditionRules.dateValue = Xe, Ze && (Ze.dateValue = Xe);
33924
33924
  }
33925
33925
  const ce = _b(me);
33926
33926
  D.conditionRules.textColor = {
@@ -34743,7 +34743,7 @@ const $b = ({ item: e, isChecked: t, onChange: l, isItemVisible: i }) => {
34743
34743
  if (v == null || oe == null) return;
34744
34744
  const j = window.innerWidth, O = M.cloneDeep(L);
34745
34745
  oe.left + oe.width > j && (O.left -= oe.width, S(O));
34746
- }, [L]), Ye(() => {
34746
+ }, [L]), xe(() => {
34747
34747
  if (b == null) return;
34748
34748
  Q(""), k(!1), g.current = {}, X.current = (d == null ? void 0 : d.hiddenRows) || [];
34749
34749
  const v = Vy(
@@ -34761,7 +34761,7 @@ const $b = ({ item: e, isChecked: t, onChange: l, isItemVisible: i }) => {
34761
34761
  r,
34762
34762
  X,
34763
34763
  d == null ? void 0 : d.hiddenRows
34764
- ]), Ye(() => {
34764
+ ]), xe(() => {
34765
34765
  b != null && K(
34766
34766
  Yy(s.current, b, u, m)
34767
34767
  );
@@ -35060,7 +35060,7 @@ const $b = ({ item: e, isChecked: t, onChange: l, isItemVisible: i }) => {
35060
35060
  );
35061
35061
  }, J9 = ({ sheet: e, isDropPlaceholder: t }) => {
35062
35062
  const { context: l, setContext: i, refs: n, settings: s } = ot(rt), a = we(null);
35063
- return Ye(() => {
35063
+ return xe(() => {
35064
35064
  i((c) => {
35065
35065
  const d = l.sheetScrollRecord[c == null ? void 0 : c.currentSheetId];
35066
35066
  if (d)
@@ -35420,7 +35420,7 @@ const M9 = ({
35420
35420
  { id: Zr(), value: `Option ${W}`, color: "228, 232, 237" }
35421
35421
  ]);
35422
35422
  };
35423
- Ye(() => {
35423
+ xe(() => {
35424
35424
  e.length === 0 && t((y) => [
35425
35425
  ...y,
35426
35426
  { id: Zr(), value: "Option 1", color: "228, 232, 237" },
@@ -35648,11 +35648,11 @@ const z9 = () => {
35648
35648
  return C;
35649
35649
  return null;
35650
35650
  }, [e.luckysheetfile, e.currentSheetId]), [u, r] = Se([]), m = u.map((S) => S.value).join(","), h = u.map((S) => S.color).join(",");
35651
- Ye(() => {
35651
+ xe(() => {
35652
35652
  t((S) => {
35653
35653
  S.dataVerification.dataRegulation.color = h, S.dataVerification.dataRegulation.value1 = m;
35654
35654
  });
35655
- }, [u]), Ye(() => {
35655
+ }, [u]), xe(() => {
35656
35656
  var T, B, ee, $, ne, te, J, P, z;
35657
35657
  const S = (ee = (B = (T = e.luckysheet_select_save) == null ? void 0 : T[0]) == null ? void 0 : B.row) == null ? void 0 : ee[0], C = (te = (ne = ($ = e.luckysheet_select_save) == null ? void 0 : $[0]) == null ? void 0 : ne.column) == null ? void 0 : te[0], K = d(), F = ((J = e.luckysheetfile[K]) == null ? void 0 : J.dataVerification) ?? {};
35658
35658
  if (!F) return;
@@ -35771,7 +35771,7 @@ const z9 = () => {
35771
35771
  l
35772
35772
  ]
35773
35773
  );
35774
- Ye(() => {
35774
+ xe(() => {
35775
35775
  t((S) => {
35776
35776
  var w, T, B;
35777
35777
  let C = "";
@@ -36237,7 +36237,7 @@ const i0 = (e) => {
36237
36237
  });
36238
36238
  };
36239
36239
  le.forEach((_) => {
36240
- var se, re, Ze, ce, ye, fe, xe;
36240
+ var se, re, Ze, ce, ye, fe, Ye;
36241
36241
  const de = _.path;
36242
36242
  if ((de == null ? void 0 : de[0]) !== "luckysheetfile") return;
36243
36243
  const me = de[1];
@@ -36251,19 +36251,19 @@ const i0 = (e) => {
36251
36251
  return;
36252
36252
  }
36253
36253
  if (M.isNumber(de[3]) && de.length === 4) {
36254
- const Ge = de[3], ge = ((Ze = U == null ? void 0 : U.data) == null ? void 0 : Ze[Ge]) ?? [], Le = ((ce = H == null ? void 0 : H.data) == null ? void 0 : ce[Ge]) ?? [], Re = Math.max(ge.length ?? 0, Le.length ?? 0);
36254
+ const Ge = de[3], Xe = ((Ze = U == null ? void 0 : U.data) == null ? void 0 : Ze[Ge]) ?? [], Le = ((ce = H == null ? void 0 : H.data) == null ? void 0 : ce[Ge]) ?? [], Re = Math.max(Xe.length ?? 0, Le.length ?? 0);
36255
36255
  for (let Te = 0; Te < Re; Te += 1)
36256
- M.isEqual(ge[Te] ?? null, Le[Te] ?? null) || ae(ie, Ge, Te);
36256
+ M.isEqual(Xe[Te] ?? null, Le[Te] ?? null) || ae(ie, Ge, Te);
36257
36257
  return;
36258
36258
  }
36259
36259
  if (de.length === 3) {
36260
- const Ge = H == null ? void 0 : H.data, ge = (Ge == null ? void 0 : Ge.length) ?? 0, Le = ge > 0 ? ((ye = Ge == null ? void 0 : Ge[0]) == null ? void 0 : ye.length) ?? 0 : 0;
36261
- if (ge * Le > 5e4 && ue) {
36260
+ const Ge = H == null ? void 0 : H.data, Xe = (Ge == null ? void 0 : Ge.length) ?? 0, Le = Xe > 0 ? ((ye = Ge == null ? void 0 : Ge[0]) == null ? void 0 : ye.length) ?? 0 : 0;
36261
+ if (Xe * Le > 5e4 && ue) {
36262
36262
  ue(ie);
36263
36263
  return;
36264
36264
  }
36265
- for (let Te = 0; Te < ge; Te += 1) {
36266
- const Pe = ((fe = U == null ? void 0 : U.data) == null ? void 0 : fe[Te]) ?? [], ke = ((xe = H == null ? void 0 : H.data) == null ? void 0 : xe[Te]) ?? [], Be = Math.max(
36265
+ for (let Te = 0; Te < Xe; Te += 1) {
36266
+ const Pe = ((fe = U == null ? void 0 : U.data) == null ? void 0 : fe[Te]) ?? [], ke = ((Ye = H == null ? void 0 : H.data) == null ? void 0 : Ye[Te]) ?? [], Be = Math.max(
36267
36267
  Pe.length ?? 0,
36268
36268
  ke.length ?? 0
36269
36269
  );
@@ -36487,12 +36487,12 @@ const i0 = (e) => {
36487
36487
  return he;
36488
36488
  });
36489
36489
  }, [V, d]);
36490
- Ye(() => {
36490
+ xe(() => {
36491
36491
  var j, O;
36492
36492
  (O = (j = X.hooks) == null ? void 0 : j.afterActivateSheet) == null || O.call(j, p.currentSheetId);
36493
- }, [p.currentSheetId]), Ye(() => {
36493
+ }, [p.currentSheetId]), xe(() => {
36494
36494
  ch("bitcoin", "usd");
36495
- }, []), Ye(() => {
36495
+ }, []), xe(() => {
36496
36496
  var j, O;
36497
36497
  f((le) => {
36498
36498
  const Ie = He(le), he = (Vc(Ie) ?? []).some((ae) => {
@@ -36537,7 +36537,7 @@ const i0 = (e) => {
36537
36537
  E
36538
36538
  ]
36539
36539
  );
36540
- Ye(() => {
36540
+ xe(() => {
36541
36541
  var j;
36542
36542
  (j = p == null ? void 0 : p.hooks) != null && j.sheetLengthChange && p.hooks.sheetLengthChange();
36543
36543
  }, [p.luckysheetfile.length]);
@@ -36547,74 +36547,74 @@ const i0 = (e) => {
36547
36547
  (O) => O.id === (p == null ? void 0 : p.currentSheetId)
36548
36548
  );
36549
36549
  }, [p == null ? void 0 : p.luckysheetfile, p == null ? void 0 : p.currentSheetId]);
36550
- Ye(() => {
36550
+ xe(() => {
36551
36551
  var j;
36552
36552
  (j = p == null ? void 0 : p.hooks) != null && j.calcChainChange && p.hooks.calcChainChange();
36553
- }, [C == null ? void 0 : C.calcChain]), Ye(() => {
36553
+ }, [C == null ? void 0 : C.calcChain]), xe(() => {
36554
36554
  var j;
36555
36555
  (j = p == null ? void 0 : p.hooks) != null && j.afterImagesChange && p.hooks.afterImagesChange();
36556
- }, [C == null ? void 0 : C.images]), Ye(() => {
36556
+ }, [C == null ? void 0 : C.images]), xe(() => {
36557
36557
  var j;
36558
36558
  (j = p == null ? void 0 : p.hooks) != null && j.afterIframesChange && p.hooks.afterIframesChange();
36559
- }, [C == null ? void 0 : C.iframes]), Ye(() => {
36559
+ }, [C == null ? void 0 : C.iframes]), xe(() => {
36560
36560
  var j;
36561
36561
  (j = p == null ? void 0 : p.hooks) != null && j.afterFrozenChange && p.hooks.afterFrozenChange();
36562
- }, [C == null ? void 0 : C.frozen]), Ye(() => {
36562
+ }, [C == null ? void 0 : C.frozen]), xe(() => {
36563
36563
  var j;
36564
36564
  (j = p == null ? void 0 : p.hooks) != null && j.afterOrderChanges && p.hooks.afterOrderChanges();
36565
36565
  }, [C == null ? void 0 : C.order]);
36566
36566
  const K = lt(() => ((p == null ? void 0 : p.luckysheetfile) ?? []).map((j) => `${j.id}:${j.color ?? ""}`).join("|"), [p == null ? void 0 : p.luckysheetfile]);
36567
- Ye(() => {
36567
+ xe(() => {
36568
36568
  var j;
36569
36569
  (j = p == null ? void 0 : p.hooks) != null && j.afterColorChanges && p.hooks.afterColorChanges();
36570
36570
  }, [K]);
36571
36571
  const F = lt(() => ((p == null ? void 0 : p.luckysheetfile) ?? []).map((j) => `${j.id}:${j.hide ?? 0}`).join("|"), [p == null ? void 0 : p.luckysheetfile]);
36572
- Ye(() => {
36572
+ xe(() => {
36573
36573
  var j;
36574
36574
  (j = p == null ? void 0 : p.hooks) != null && j.afterHideChanges && p.hooks.afterHideChanges();
36575
- }, [F]), Ye(() => {
36575
+ }, [F]), xe(() => {
36576
36576
  var j;
36577
36577
  (j = p == null ? void 0 : p.hooks) != null && j.afterConfigChanges && p.hooks.afterConfigChanges();
36578
- }, [C == null ? void 0 : C.config]), Ye(() => {
36578
+ }, [C == null ? void 0 : C.config]), xe(() => {
36579
36579
  var j;
36580
36580
  (j = p == null ? void 0 : p.hooks) != null && j.afterColRowChanges && p.hooks.afterColRowChanges();
36581
- }, [C == null ? void 0 : C.row, C == null ? void 0 : C.column]), Ye(() => {
36581
+ }, [C == null ? void 0 : C.row, C == null ? void 0 : C.column]), xe(() => {
36582
36582
  var j;
36583
36583
  (j = p == null ? void 0 : p.hooks) != null && j.afterShowGridLinesChange && p.hooks.afterShowGridLinesChange();
36584
- }, [C == null ? void 0 : C.showGridLines]), Ye(() => {
36584
+ }, [C == null ? void 0 : C.showGridLines]), xe(() => {
36585
36585
  var j;
36586
36586
  (j = p == null ? void 0 : p.hooks) != null && j.afterNameChanges && p.hooks.afterNameChanges();
36587
- }, [C == null ? void 0 : C.name]), Ye(() => {
36587
+ }, [C == null ? void 0 : C.name]), xe(() => {
36588
36588
  var j;
36589
36589
  (j = p == null ? void 0 : p.hooks) != null && j.afterStatusChanges && p.hooks.afterStatusChanges();
36590
- }, [C == null ? void 0 : C.status]), Ye(() => {
36590
+ }, [C == null ? void 0 : C.status]), xe(() => {
36591
36591
  var j;
36592
36592
  (j = p == null ? void 0 : p.hooks) != null && j.dataVerificationChange && p.hooks.dataVerificationChange();
36593
- }, [C == null ? void 0 : C.dataVerification]), Ye(() => {
36593
+ }, [C == null ? void 0 : C.dataVerification]), xe(() => {
36594
36594
  var j;
36595
36595
  (j = p == null ? void 0 : p.hooks) != null && j.liveQueryChange && p.hooks.liveQueryChange();
36596
- }, [C == null ? void 0 : C.liveQueryList]), Ye(() => {
36596
+ }, [C == null ? void 0 : C.liveQueryList]), xe(() => {
36597
36597
  var j;
36598
36598
  (j = p == null ? void 0 : p.hooks) != null && j.imageListChange && p.hooks.imageListChange();
36599
- }, [C == null ? void 0 : C.images]), Ye(() => {
36599
+ }, [C == null ? void 0 : C.images]), xe(() => {
36600
36600
  var j;
36601
36601
  (j = p == null ? void 0 : p.hooks) != null && j.iframeListChange && p.hooks.iframeListChange();
36602
- }, [C == null ? void 0 : C.iframes]), Ye(() => {
36602
+ }, [C == null ? void 0 : C.iframes]), xe(() => {
36603
36603
  var j;
36604
36604
  (j = p == null ? void 0 : p.hooks) != null && j.conditionRulesChange && p.hooks.conditionRulesChange();
36605
- }, [C == null ? void 0 : C.conditionRules]), Ye(() => {
36605
+ }, [C == null ? void 0 : C.conditionRules]), xe(() => {
36606
36606
  var j;
36607
36607
  (j = p == null ? void 0 : p.hooks) != null && j.conditionFormatChange && p.hooks.conditionFormatChange();
36608
- }, [C == null ? void 0 : C.luckysheet_conditionformat_save]), Ye(() => {
36608
+ }, [C == null ? void 0 : C.luckysheet_conditionformat_save]), xe(() => {
36609
36609
  var j;
36610
36610
  (j = p == null ? void 0 : p.hooks) != null && j.filterSelectChange && p.hooks.filterSelectChange();
36611
- }, [C == null ? void 0 : C.filter_select]), Ye(() => {
36611
+ }, [C == null ? void 0 : C.filter_select]), xe(() => {
36612
36612
  var j;
36613
36613
  (j = p == null ? void 0 : p.hooks) != null && j.filterChange && p.hooks.filterChange();
36614
- }, [C == null ? void 0 : C.filter]), Ye(() => {
36614
+ }, [C == null ? void 0 : C.filter]), xe(() => {
36615
36615
  var j;
36616
36616
  (j = p == null ? void 0 : p.hooks) != null && j.hyperlinkChange && p.hooks.hyperlinkChange();
36617
- }, [C == null ? void 0 : C.hyperlink]), Ye(() => {
36617
+ }, [C == null ? void 0 : C.hyperlink]), xe(() => {
36618
36618
  (async () => {
36619
36619
  const O = X.lang ?? (navigator.languages && navigator.languages[0] || navigator.language || // @ts-ignore
36620
36620
  navigator.userLanguage || "en");
@@ -36680,7 +36680,7 @@ const i0 = (e) => {
36680
36680
  ]);
36681
36681
  const k = navigator.platform.toUpperCase().includes("MAC");
36682
36682
  let w = !1, T, B = !1, ee;
36683
- Ye(() => {
36683
+ xe(() => {
36684
36684
  const j = (le) => {
36685
36685
  const Ie = document.activeElement;
36686
36686
  if (!Ie || Ie === document.body || Ie === document.documentElement || le != null && le.contains(Ie)) return !1;
@@ -36881,11 +36881,11 @@ const i0 = (e) => {
36881
36881
  ), te = Ve(() => {
36882
36882
  g(null);
36883
36883
  }, []);
36884
- Ye(() => (document.addEventListener("paste", ne), () => {
36884
+ xe(() => (document.addEventListener("paste", ne), () => {
36885
36885
  document.removeEventListener("paste", ne);
36886
36886
  }), [ne]);
36887
36887
  const J = !!p.isFormulaCalculating, P = (v = p.formulaAsyncEval) == null ? void 0 : v.total;
36888
- Ye(() => {
36888
+ xe(() => {
36889
36889
  if (!J || P == null)
36890
36890
  return;
36891
36891
  let j = !1, O = null;
@@ -36934,7 +36934,7 @@ const i0 = (e) => {
36934
36934
  if (j) return;
36935
36935
  E(
36936
36936
  (Ze) => {
36937
- var fe, xe;
36937
+ var fe, Ye, Ge, Xe;
36938
36938
  const ce = Ze.formulaAsyncEval;
36939
36939
  if (!ce || ce.nextIndex !== pe) return;
36940
36940
  wZ(
@@ -36951,10 +36951,12 @@ const i0 = (e) => {
36951
36951
  lastChunkMs: ye,
36952
36952
  lastChunkSize: H.length,
36953
36953
  completedChunks: (((fe = ce.debug) == null ? void 0 : fe.completedChunks) ?? 0) + 1,
36954
- fallbackChunks: ((xe = ce.debug) == null ? void 0 : xe.fallbackChunks) ?? 0,
36954
+ fallbackChunks: ((Ye = ce.debug) == null ? void 0 : Ye.fallbackChunks) ?? 0,
36955
36955
  workerAvailable: !0,
36956
36956
  unsafeFormulaCount: ie,
36957
36957
  workerFormulaCount: H.length,
36958
+ totalWorkerFormulas: (((Ge = ce.debug) == null ? void 0 : Ge.totalWorkerFormulas) ?? 0) + H.length,
36959
+ totalMainThreadFormulas: ((Xe = ce.debug) == null ? void 0 : Xe.totalMainThreadFormulas) ?? 0,
36958
36960
  lastError: null
36959
36961
  }, le(Ze);
36960
36962
  },
@@ -36965,7 +36967,7 @@ const i0 = (e) => {
36965
36967
  const re = se instanceof Error ? se.message : String(se);
36966
36968
  E(
36967
36969
  (Ze) => {
36968
- var fe, xe;
36970
+ var fe, Ye, Ge, Xe;
36969
36971
  const ce = Ze.formulaAsyncEval;
36970
36972
  if (!ce || ce.nextIndex !== pe) return;
36971
36973
  _r(
@@ -36979,10 +36981,12 @@ const i0 = (e) => {
36979
36981
  lastChunkMs: ye,
36980
36982
  lastChunkSize: H.length,
36981
36983
  completedChunks: (((fe = ce.debug) == null ? void 0 : fe.completedChunks) ?? 0) + 1,
36982
- fallbackChunks: (((xe = ce.debug) == null ? void 0 : xe.fallbackChunks) ?? 0) + 1,
36984
+ fallbackChunks: (((Ye = ce.debug) == null ? void 0 : Ye.fallbackChunks) ?? 0) + 1,
36983
36985
  workerAvailable: !1,
36984
36986
  unsafeFormulaCount: ie,
36985
36987
  workerFormulaCount: 0,
36988
+ totalWorkerFormulas: ((Ge = ce.debug) == null ? void 0 : Ge.totalWorkerFormulas) ?? 0,
36989
+ totalMainThreadFormulas: (((Xe = ce.debug) == null ? void 0 : Xe.totalMainThreadFormulas) ?? 0) + H.length,
36986
36990
  lastError: re
36987
36991
  }, le(Ze);
36988
36992
  },
@@ -36992,7 +36996,7 @@ const i0 = (e) => {
36992
36996
  else
36993
36997
  E(
36994
36998
  (se) => {
36995
- var ce, ye;
36999
+ var ce, ye, fe, Ye;
36996
37000
  const re = se.formulaAsyncEval;
36997
37001
  if (!re || re.nextIndex !== pe) return;
36998
37002
  _r(
@@ -37010,6 +37014,8 @@ const i0 = (e) => {
37010
37014
  workerAvailable: q,
37011
37015
  unsafeFormulaCount: ie,
37012
37016
  workerFormulaCount: 0,
37017
+ totalWorkerFormulas: ((fe = re.debug) == null ? void 0 : fe.totalWorkerFormulas) ?? 0,
37018
+ totalMainThreadFormulas: (((Ye = re.debug) == null ? void 0 : Ye.totalMainThreadFormulas) ?? 0) + H.length,
37013
37019
  lastError: q && ie > 0 ? `${ie} formula(s) in this chunk require the main formula engine` : null
37014
37020
  }, le(se);
37015
37021
  },
@@ -37092,6 +37098,16 @@ const i0 = (e) => {
37092
37098
  "Fallbacks: ",
37093
37099
  p.formulaAsyncEval.debug.fallbackChunks
37094
37100
  ] }),
37101
+ /* @__PURE__ */ o.jsxs("div", { children: [
37102
+ "Worker formulas total:",
37103
+ " ",
37104
+ p.formulaAsyncEval.debug.totalWorkerFormulas
37105
+ ] }),
37106
+ /* @__PURE__ */ o.jsxs("div", { children: [
37107
+ "Main-engine formulas total:",
37108
+ " ",
37109
+ p.formulaAsyncEval.debug.totalMainThreadFormulas
37110
+ ] }),
37095
37111
  /* @__PURE__ */ o.jsxs("div", { children: [
37096
37112
  "Worker:",
37097
37113
  " ",
@@ -37198,7 +37214,7 @@ const i0 = (e) => {
37198
37214
  isReadOnly: l = !1,
37199
37215
  loading: i = !1
37200
37216
  }) => {
37201
- Ye(() => {
37217
+ xe(() => {
37202
37218
  const n = () => {
37203
37219
  const c = document.getElementsByClassName(
37204
37220
  "template-button"
@@ -37215,7 +37231,7 @@ const i0 = (e) => {
37215
37231
  return () => {
37216
37232
  clearInterval(a);
37217
37233
  };
37218
- }, [e, t]), Ye(() => {
37234
+ }, [e, t]), xe(() => {
37219
37235
  if (l && i) {
37220
37236
  const n = document.querySelectorAll(
37221
37237
  ".luckysheet-sheets-item-name"
@@ -37237,7 +37253,7 @@ const i0 = (e) => {
37237
37253
  a.disconnect();
37238
37254
  };
37239
37255
  }
37240
- }, [l, i]), Ye(() => {
37256
+ }, [l, i]), xe(() => {
37241
37257
  const n = "readonly-pointer-events-style";
37242
37258
  let s = document.getElementById(n);
37243
37259
  l ? s || (s = document.createElement("style"), s.id = n, s.innerHTML = `
@@ -37251,7 +37267,7 @@ const i0 = (e) => {
37251
37267
  }, [l]);
37252
37268
  }, Zc = "animate-[pulse_2s_ease-in-out_infinite]", P9 = (e) => {
37253
37269
  const [t, l] = Se({ width: 0, height: 0 });
37254
- return Ye(() => {
37270
+ return xe(() => {
37255
37271
  const i = () => {
37256
37272
  if (e.current) {
37257
37273
  const s = e.current.getBoundingClientRect();
@@ -41325,8 +41341,8 @@ var kG = {};
41325
41341
  J[R] = P[R] - z[R];
41326
41342
  }
41327
41343
  function x(J, P, z) {
41328
- let R, v, oe = 0, j = 0, O = 0, le = 0, Ie = 0, ue = 0, he = 0, pe = 0, q = 0, ae = 0, be = 0, _ = 0, de = 0, me = 0, U = 0, H = 0, ie = 0, D = 0, se = 0, re = 0, Ze = 0, ce = 0, ye = 0, fe = 0, xe = 0, Ge = 0, ge = 0, Le = 0, Re = 0, Te = 0, Pe = 0, ke = z[0], Be = z[1], ve = z[2], Ee = z[3], Me = z[4], Oe = z[5], _e = z[6], $e = z[7], nt = z[8], Wt = z[9], Ft = z[10], Mt = z[11], Qt = z[12], qt = z[13], Xe = z[14], Ue = z[15];
41329
- R = P[0], oe += R * ke, j += R * Be, O += R * ve, le += R * Ee, Ie += R * Me, ue += R * Oe, he += R * _e, pe += R * $e, q += R * nt, ae += R * Wt, be += R * Ft, _ += R * Mt, de += R * Qt, me += R * qt, U += R * Xe, H += R * Ue, R = P[1], j += R * ke, O += R * Be, le += R * ve, Ie += R * Ee, ue += R * Me, he += R * Oe, pe += R * _e, q += R * $e, ae += R * nt, be += R * Wt, _ += R * Ft, de += R * Mt, me += R * Qt, U += R * qt, H += R * Xe, ie += R * Ue, R = P[2], O += R * ke, le += R * Be, Ie += R * ve, ue += R * Ee, he += R * Me, pe += R * Oe, q += R * _e, ae += R * $e, be += R * nt, _ += R * Wt, de += R * Ft, me += R * Mt, U += R * Qt, H += R * qt, ie += R * Xe, D += R * Ue, R = P[3], le += R * ke, Ie += R * Be, ue += R * ve, he += R * Ee, pe += R * Me, q += R * Oe, ae += R * _e, be += R * $e, _ += R * nt, de += R * Wt, me += R * Ft, U += R * Mt, H += R * Qt, ie += R * qt, D += R * Xe, se += R * Ue, R = P[4], Ie += R * ke, ue += R * Be, he += R * ve, pe += R * Ee, q += R * Me, ae += R * Oe, be += R * _e, _ += R * $e, de += R * nt, me += R * Wt, U += R * Ft, H += R * Mt, ie += R * Qt, D += R * qt, se += R * Xe, re += R * Ue, R = P[5], ue += R * ke, he += R * Be, pe += R * ve, q += R * Ee, ae += R * Me, be += R * Oe, _ += R * _e, de += R * $e, me += R * nt, U += R * Wt, H += R * Ft, ie += R * Mt, D += R * Qt, se += R * qt, re += R * Xe, Ze += R * Ue, R = P[6], he += R * ke, pe += R * Be, q += R * ve, ae += R * Ee, be += R * Me, _ += R * Oe, de += R * _e, me += R * $e, U += R * nt, H += R * Wt, ie += R * Ft, D += R * Mt, se += R * Qt, re += R * qt, Ze += R * Xe, ce += R * Ue, R = P[7], pe += R * ke, q += R * Be, ae += R * ve, be += R * Ee, _ += R * Me, de += R * Oe, me += R * _e, U += R * $e, H += R * nt, ie += R * Wt, D += R * Ft, se += R * Mt, re += R * Qt, Ze += R * qt, ce += R * Xe, ye += R * Ue, R = P[8], q += R * ke, ae += R * Be, be += R * ve, _ += R * Ee, de += R * Me, me += R * Oe, U += R * _e, H += R * $e, ie += R * nt, D += R * Wt, se += R * Ft, re += R * Mt, Ze += R * Qt, ce += R * qt, ye += R * Xe, fe += R * Ue, R = P[9], ae += R * ke, be += R * Be, _ += R * ve, de += R * Ee, me += R * Me, U += R * Oe, H += R * _e, ie += R * $e, D += R * nt, se += R * Wt, re += R * Ft, Ze += R * Mt, ce += R * Qt, ye += R * qt, fe += R * Xe, xe += R * Ue, R = P[10], be += R * ke, _ += R * Be, de += R * ve, me += R * Ee, U += R * Me, H += R * Oe, ie += R * _e, D += R * $e, se += R * nt, re += R * Wt, Ze += R * Ft, ce += R * Mt, ye += R * Qt, fe += R * qt, xe += R * Xe, Ge += R * Ue, R = P[11], _ += R * ke, de += R * Be, me += R * ve, U += R * Ee, H += R * Me, ie += R * Oe, D += R * _e, se += R * $e, re += R * nt, Ze += R * Wt, ce += R * Ft, ye += R * Mt, fe += R * Qt, xe += R * qt, Ge += R * Xe, ge += R * Ue, R = P[12], de += R * ke, me += R * Be, U += R * ve, H += R * Ee, ie += R * Me, D += R * Oe, se += R * _e, re += R * $e, Ze += R * nt, ce += R * Wt, ye += R * Ft, fe += R * Mt, xe += R * Qt, Ge += R * qt, ge += R * Xe, Le += R * Ue, R = P[13], me += R * ke, U += R * Be, H += R * ve, ie += R * Ee, D += R * Me, se += R * Oe, re += R * _e, Ze += R * $e, ce += R * nt, ye += R * Wt, fe += R * Ft, xe += R * Mt, Ge += R * Qt, ge += R * qt, Le += R * Xe, Re += R * Ue, R = P[14], U += R * ke, H += R * Be, ie += R * ve, D += R * Ee, se += R * Me, re += R * Oe, Ze += R * _e, ce += R * $e, ye += R * nt, fe += R * Wt, xe += R * Ft, Ge += R * Mt, ge += R * Qt, Le += R * qt, Re += R * Xe, Te += R * Ue, R = P[15], H += R * ke, ie += R * Be, D += R * ve, se += R * Ee, re += R * Me, Ze += R * Oe, ce += R * _e, ye += R * $e, fe += R * nt, xe += R * Wt, Ge += R * Ft, ge += R * Mt, Le += R * Qt, Re += R * qt, Te += R * Xe, Pe += R * Ue, oe += 38 * ie, j += 38 * D, O += 38 * se, le += 38 * re, Ie += 38 * Ze, ue += 38 * ce, he += 38 * ye, pe += 38 * fe, q += 38 * xe, ae += 38 * Ge, be += 38 * ge, _ += 38 * Le, de += 38 * Re, me += 38 * Te, U += 38 * Pe, v = 1, R = oe + v + 65535, v = Math.floor(R / 65536), oe = R - v * 65536, R = j + v + 65535, v = Math.floor(R / 65536), j = R - v * 65536, R = O + v + 65535, v = Math.floor(R / 65536), O = R - v * 65536, R = le + v + 65535, v = Math.floor(R / 65536), le = R - v * 65536, R = Ie + v + 65535, v = Math.floor(R / 65536), Ie = R - v * 65536, R = ue + v + 65535, v = Math.floor(R / 65536), ue = R - v * 65536, R = he + v + 65535, v = Math.floor(R / 65536), he = R - v * 65536, R = pe + v + 65535, v = Math.floor(R / 65536), pe = R - v * 65536, R = q + v + 65535, v = Math.floor(R / 65536), q = R - v * 65536, R = ae + v + 65535, v = Math.floor(R / 65536), ae = R - v * 65536, R = be + v + 65535, v = Math.floor(R / 65536), be = R - v * 65536, R = _ + v + 65535, v = Math.floor(R / 65536), _ = R - v * 65536, R = de + v + 65535, v = Math.floor(R / 65536), de = R - v * 65536, R = me + v + 65535, v = Math.floor(R / 65536), me = R - v * 65536, R = U + v + 65535, v = Math.floor(R / 65536), U = R - v * 65536, R = H + v + 65535, v = Math.floor(R / 65536), H = R - v * 65536, oe += v - 1 + 37 * (v - 1), v = 1, R = oe + v + 65535, v = Math.floor(R / 65536), oe = R - v * 65536, R = j + v + 65535, v = Math.floor(R / 65536), j = R - v * 65536, R = O + v + 65535, v = Math.floor(R / 65536), O = R - v * 65536, R = le + v + 65535, v = Math.floor(R / 65536), le = R - v * 65536, R = Ie + v + 65535, v = Math.floor(R / 65536), Ie = R - v * 65536, R = ue + v + 65535, v = Math.floor(R / 65536), ue = R - v * 65536, R = he + v + 65535, v = Math.floor(R / 65536), he = R - v * 65536, R = pe + v + 65535, v = Math.floor(R / 65536), pe = R - v * 65536, R = q + v + 65535, v = Math.floor(R / 65536), q = R - v * 65536, R = ae + v + 65535, v = Math.floor(R / 65536), ae = R - v * 65536, R = be + v + 65535, v = Math.floor(R / 65536), be = R - v * 65536, R = _ + v + 65535, v = Math.floor(R / 65536), _ = R - v * 65536, R = de + v + 65535, v = Math.floor(R / 65536), de = R - v * 65536, R = me + v + 65535, v = Math.floor(R / 65536), me = R - v * 65536, R = U + v + 65535, v = Math.floor(R / 65536), U = R - v * 65536, R = H + v + 65535, v = Math.floor(R / 65536), H = R - v * 65536, oe += v - 1 + 37 * (v - 1), J[0] = oe, J[1] = j, J[2] = O, J[3] = le, J[4] = Ie, J[5] = ue, J[6] = he, J[7] = pe, J[8] = q, J[9] = ae, J[10] = be, J[11] = _, J[12] = de, J[13] = me, J[14] = U, J[15] = H;
41344
+ let R, v, oe = 0, j = 0, O = 0, le = 0, Ie = 0, ue = 0, he = 0, pe = 0, q = 0, ae = 0, be = 0, _ = 0, de = 0, me = 0, U = 0, H = 0, ie = 0, D = 0, se = 0, re = 0, Ze = 0, ce = 0, ye = 0, fe = 0, Ye = 0, Ge = 0, Xe = 0, Le = 0, Re = 0, Te = 0, Pe = 0, ke = z[0], Be = z[1], ve = z[2], Ee = z[3], Me = z[4], Oe = z[5], _e = z[6], $e = z[7], nt = z[8], Wt = z[9], Ft = z[10], Mt = z[11], Qt = z[12], qt = z[13], ge = z[14], Ue = z[15];
41345
+ R = P[0], oe += R * ke, j += R * Be, O += R * ve, le += R * Ee, Ie += R * Me, ue += R * Oe, he += R * _e, pe += R * $e, q += R * nt, ae += R * Wt, be += R * Ft, _ += R * Mt, de += R * Qt, me += R * qt, U += R * ge, H += R * Ue, R = P[1], j += R * ke, O += R * Be, le += R * ve, Ie += R * Ee, ue += R * Me, he += R * Oe, pe += R * _e, q += R * $e, ae += R * nt, be += R * Wt, _ += R * Ft, de += R * Mt, me += R * Qt, U += R * qt, H += R * ge, ie += R * Ue, R = P[2], O += R * ke, le += R * Be, Ie += R * ve, ue += R * Ee, he += R * Me, pe += R * Oe, q += R * _e, ae += R * $e, be += R * nt, _ += R * Wt, de += R * Ft, me += R * Mt, U += R * Qt, H += R * qt, ie += R * ge, D += R * Ue, R = P[3], le += R * ke, Ie += R * Be, ue += R * ve, he += R * Ee, pe += R * Me, q += R * Oe, ae += R * _e, be += R * $e, _ += R * nt, de += R * Wt, me += R * Ft, U += R * Mt, H += R * Qt, ie += R * qt, D += R * ge, se += R * Ue, R = P[4], Ie += R * ke, ue += R * Be, he += R * ve, pe += R * Ee, q += R * Me, ae += R * Oe, be += R * _e, _ += R * $e, de += R * nt, me += R * Wt, U += R * Ft, H += R * Mt, ie += R * Qt, D += R * qt, se += R * ge, re += R * Ue, R = P[5], ue += R * ke, he += R * Be, pe += R * ve, q += R * Ee, ae += R * Me, be += R * Oe, _ += R * _e, de += R * $e, me += R * nt, U += R * Wt, H += R * Ft, ie += R * Mt, D += R * Qt, se += R * qt, re += R * ge, Ze += R * Ue, R = P[6], he += R * ke, pe += R * Be, q += R * ve, ae += R * Ee, be += R * Me, _ += R * Oe, de += R * _e, me += R * $e, U += R * nt, H += R * Wt, ie += R * Ft, D += R * Mt, se += R * Qt, re += R * qt, Ze += R * ge, ce += R * Ue, R = P[7], pe += R * ke, q += R * Be, ae += R * ve, be += R * Ee, _ += R * Me, de += R * Oe, me += R * _e, U += R * $e, H += R * nt, ie += R * Wt, D += R * Ft, se += R * Mt, re += R * Qt, Ze += R * qt, ce += R * ge, ye += R * Ue, R = P[8], q += R * ke, ae += R * Be, be += R * ve, _ += R * Ee, de += R * Me, me += R * Oe, U += R * _e, H += R * $e, ie += R * nt, D += R * Wt, se += R * Ft, re += R * Mt, Ze += R * Qt, ce += R * qt, ye += R * ge, fe += R * Ue, R = P[9], ae += R * ke, be += R * Be, _ += R * ve, de += R * Ee, me += R * Me, U += R * Oe, H += R * _e, ie += R * $e, D += R * nt, se += R * Wt, re += R * Ft, Ze += R * Mt, ce += R * Qt, ye += R * qt, fe += R * ge, Ye += R * Ue, R = P[10], be += R * ke, _ += R * Be, de += R * ve, me += R * Ee, U += R * Me, H += R * Oe, ie += R * _e, D += R * $e, se += R * nt, re += R * Wt, Ze += R * Ft, ce += R * Mt, ye += R * Qt, fe += R * qt, Ye += R * ge, Ge += R * Ue, R = P[11], _ += R * ke, de += R * Be, me += R * ve, U += R * Ee, H += R * Me, ie += R * Oe, D += R * _e, se += R * $e, re += R * nt, Ze += R * Wt, ce += R * Ft, ye += R * Mt, fe += R * Qt, Ye += R * qt, Ge += R * ge, Xe += R * Ue, R = P[12], de += R * ke, me += R * Be, U += R * ve, H += R * Ee, ie += R * Me, D += R * Oe, se += R * _e, re += R * $e, Ze += R * nt, ce += R * Wt, ye += R * Ft, fe += R * Mt, Ye += R * Qt, Ge += R * qt, Xe += R * ge, Le += R * Ue, R = P[13], me += R * ke, U += R * Be, H += R * ve, ie += R * Ee, D += R * Me, se += R * Oe, re += R * _e, Ze += R * $e, ce += R * nt, ye += R * Wt, fe += R * Ft, Ye += R * Mt, Ge += R * Qt, Xe += R * qt, Le += R * ge, Re += R * Ue, R = P[14], U += R * ke, H += R * Be, ie += R * ve, D += R * Ee, se += R * Me, re += R * Oe, Ze += R * _e, ce += R * $e, ye += R * nt, fe += R * Wt, Ye += R * Ft, Ge += R * Mt, Xe += R * Qt, Le += R * qt, Re += R * ge, Te += R * Ue, R = P[15], H += R * ke, ie += R * Be, D += R * ve, se += R * Ee, re += R * Me, Ze += R * Oe, ce += R * _e, ye += R * $e, fe += R * nt, Ye += R * Wt, Ge += R * Ft, Xe += R * Mt, Le += R * Qt, Re += R * qt, Te += R * ge, Pe += R * Ue, oe += 38 * ie, j += 38 * D, O += 38 * se, le += 38 * re, Ie += 38 * Ze, ue += 38 * ce, he += 38 * ye, pe += 38 * fe, q += 38 * Ye, ae += 38 * Ge, be += 38 * Xe, _ += 38 * Le, de += 38 * Re, me += 38 * Te, U += 38 * Pe, v = 1, R = oe + v + 65535, v = Math.floor(R / 65536), oe = R - v * 65536, R = j + v + 65535, v = Math.floor(R / 65536), j = R - v * 65536, R = O + v + 65535, v = Math.floor(R / 65536), O = R - v * 65536, R = le + v + 65535, v = Math.floor(R / 65536), le = R - v * 65536, R = Ie + v + 65535, v = Math.floor(R / 65536), Ie = R - v * 65536, R = ue + v + 65535, v = Math.floor(R / 65536), ue = R - v * 65536, R = he + v + 65535, v = Math.floor(R / 65536), he = R - v * 65536, R = pe + v + 65535, v = Math.floor(R / 65536), pe = R - v * 65536, R = q + v + 65535, v = Math.floor(R / 65536), q = R - v * 65536, R = ae + v + 65535, v = Math.floor(R / 65536), ae = R - v * 65536, R = be + v + 65535, v = Math.floor(R / 65536), be = R - v * 65536, R = _ + v + 65535, v = Math.floor(R / 65536), _ = R - v * 65536, R = de + v + 65535, v = Math.floor(R / 65536), de = R - v * 65536, R = me + v + 65535, v = Math.floor(R / 65536), me = R - v * 65536, R = U + v + 65535, v = Math.floor(R / 65536), U = R - v * 65536, R = H + v + 65535, v = Math.floor(R / 65536), H = R - v * 65536, oe += v - 1 + 37 * (v - 1), v = 1, R = oe + v + 65535, v = Math.floor(R / 65536), oe = R - v * 65536, R = j + v + 65535, v = Math.floor(R / 65536), j = R - v * 65536, R = O + v + 65535, v = Math.floor(R / 65536), O = R - v * 65536, R = le + v + 65535, v = Math.floor(R / 65536), le = R - v * 65536, R = Ie + v + 65535, v = Math.floor(R / 65536), Ie = R - v * 65536, R = ue + v + 65535, v = Math.floor(R / 65536), ue = R - v * 65536, R = he + v + 65535, v = Math.floor(R / 65536), he = R - v * 65536, R = pe + v + 65535, v = Math.floor(R / 65536), pe = R - v * 65536, R = q + v + 65535, v = Math.floor(R / 65536), q = R - v * 65536, R = ae + v + 65535, v = Math.floor(R / 65536), ae = R - v * 65536, R = be + v + 65535, v = Math.floor(R / 65536), be = R - v * 65536, R = _ + v + 65535, v = Math.floor(R / 65536), _ = R - v * 65536, R = de + v + 65535, v = Math.floor(R / 65536), de = R - v * 65536, R = me + v + 65535, v = Math.floor(R / 65536), me = R - v * 65536, R = U + v + 65535, v = Math.floor(R / 65536), U = R - v * 65536, R = H + v + 65535, v = Math.floor(R / 65536), H = R - v * 65536, oe += v - 1 + 37 * (v - 1), J[0] = oe, J[1] = j, J[2] = O, J[3] = le, J[4] = Ie, J[5] = ue, J[6] = he, J[7] = pe, J[8] = q, J[9] = ae, J[10] = be, J[11] = _, J[12] = de, J[13] = me, J[14] = U, J[15] = H;
41330
41346
  }
41331
41347
  function V(J, P) {
41332
41348
  x(J, P, P);
@@ -41784,11 +41800,11 @@ var KG = { exports: {} };
41784
41800
  return new h(this.value >= 0 ? this.value : -this.value);
41785
41801
  };
41786
41802
  function N(U, H) {
41787
- var ie = U.length, D = H.length, se = ie + D, re = p(se), Ze = i, ce, ye, fe, xe, Ge;
41803
+ var ie = U.length, D = H.length, se = ie + D, re = p(se), Ze = i, ce, ye, fe, Ye, Ge;
41788
41804
  for (fe = 0; fe < ie; ++fe) {
41789
- xe = U[fe];
41790
- for (var ge = 0; ge < D; ++ge)
41791
- Ge = H[ge], ce = xe * Ge + re[fe + ge], ye = Math.floor(ce / Ze), re[fe + ge] = ce - ye * Ze, re[fe + ge + 1] += ye;
41805
+ Ye = U[fe];
41806
+ for (var Xe = 0; Xe < D; ++Xe)
41807
+ Ge = H[Xe], ce = Ye * Ge + re[fe + Xe], ye = Math.floor(ce / Ze), re[fe + Xe] = ce - ye * Ze, re[fe + Xe + 1] += ye;
41792
41808
  }
41793
41809
  return G(re), re;
41794
41810
  }
@@ -41808,8 +41824,8 @@ var KG = { exports: {} };
41808
41824
  var ie = Math.max(U.length, H.length);
41809
41825
  if (ie <= 30) return N(U, H);
41810
41826
  ie = Math.ceil(ie / 2);
41811
- var D = U.slice(ie), se = U.slice(0, ie), re = H.slice(ie), Ze = H.slice(0, ie), ce = E(se, Ze), ye = E(D, re), fe = E(y(se, D), y(Ze, re)), xe = y(y(ce, A(X(X(fe, ce), ye), ie)), A(ye, 2 * ie));
41812
- return G(xe), xe;
41827
+ var D = U.slice(ie), se = U.slice(0, ie), re = H.slice(ie), Ze = H.slice(0, ie), ce = E(se, Ze), ye = E(D, re), fe = E(y(se, D), y(Ze, re)), Ye = y(y(ce, A(X(X(fe, ce), ye), ie)), A(ye, 2 * ie));
41828
+ return G(Ye), Ye;
41813
41829
  }
41814
41830
  function Y(U, H) {
41815
41831
  return -0.012 * U - 0.012 * H + 15e-6 * U * H > 0;
@@ -41857,26 +41873,26 @@ var KG = { exports: {} };
41857
41873
  return new h(this.value * this.value);
41858
41874
  };
41859
41875
  function C(U, H) {
41860
- var ie = U.length, D = H.length, se = i, re = p(H.length), Ze = H[D - 1], ce = Math.ceil(se / (2 * Ze)), ye = Q(U, ce), fe = Q(H, ce), xe, Ge, ge, Le, Re, Te, Pe;
41876
+ var ie = U.length, D = H.length, se = i, re = p(H.length), Ze = H[D - 1], ce = Math.ceil(se / (2 * Ze)), ye = Q(U, ce), fe = Q(H, ce), Ye, Ge, Xe, Le, Re, Te, Pe;
41861
41877
  for (ye.length <= ie && ye.push(0), fe.push(0), Ze = fe[D - 1], Ge = ie - D; Ge >= 0; Ge--) {
41862
- for (xe = se - 1, ye[Ge + D] !== Ze && (xe = Math.floor((ye[Ge + D] * se + ye[Ge + D - 1]) / Ze)), ge = 0, Le = 0, Te = fe.length, Re = 0; Re < Te; Re++)
41863
- ge += xe * fe[Re], Pe = Math.floor(ge / se), Le += ye[Ge + Re] - (ge - Pe * se), ge = Pe, Le < 0 ? (ye[Ge + Re] = Le + se, Le = -1) : (ye[Ge + Re] = Le, Le = 0);
41878
+ for (Ye = se - 1, ye[Ge + D] !== Ze && (Ye = Math.floor((ye[Ge + D] * se + ye[Ge + D - 1]) / Ze)), Xe = 0, Le = 0, Te = fe.length, Re = 0; Re < Te; Re++)
41879
+ Xe += Ye * fe[Re], Pe = Math.floor(Xe / se), Le += ye[Ge + Re] - (Xe - Pe * se), Xe = Pe, Le < 0 ? (ye[Ge + Re] = Le + se, Le = -1) : (ye[Ge + Re] = Le, Le = 0);
41864
41880
  for (; Le !== 0; ) {
41865
- for (xe -= 1, ge = 0, Re = 0; Re < Te; Re++)
41866
- ge += ye[Ge + Re] - se + fe[Re], ge < 0 ? (ye[Ge + Re] = ge + se, ge = 0) : (ye[Ge + Re] = ge, ge = 1);
41867
- Le += ge;
41881
+ for (Ye -= 1, Xe = 0, Re = 0; Re < Te; Re++)
41882
+ Xe += ye[Ge + Re] - se + fe[Re], Xe < 0 ? (ye[Ge + Re] = Xe + se, Xe = 0) : (ye[Ge + Re] = Xe, Xe = 1);
41883
+ Le += Xe;
41868
41884
  }
41869
- re[Ge] = xe;
41885
+ re[Ge] = Ye;
41870
41886
  }
41871
41887
  return ye = F(ye, ce)[0], [I(re), I(ye)];
41872
41888
  }
41873
41889
  function K(U, H) {
41874
- for (var ie = U.length, D = H.length, se = [], re = [], Ze = i, ce, ye, fe, xe, Ge; ie; ) {
41890
+ for (var ie = U.length, D = H.length, se = [], re = [], Ze = i, ce, ye, fe, Ye, Ge; ie; ) {
41875
41891
  if (re.unshift(U[--ie]), G(re), w(re, H) < 0) {
41876
41892
  se.push(0);
41877
41893
  continue;
41878
41894
  }
41879
- ye = re.length, fe = re[ye - 1] * Ze + re[ye - 2], xe = H[D - 1] * Ze + H[D - 2], ye > D && (fe = (fe + 1) * Ze), ce = Math.ceil(fe / xe);
41895
+ ye = re.length, fe = re[ye - 1] * Ze + re[ye - 2], Ye = H[D - 1] * Ze + H[D - 2], ye > D && (fe = (fe + 1) * Ze), ce = Math.ceil(fe / Ye);
41880
41896
  do {
41881
41897
  if (Ge = Q(H, ce), w(Ge, re) <= 0) break;
41882
41898
  ce--;
@@ -41914,8 +41930,8 @@ var KG = { exports: {} };
41914
41930
  if (fe === -1) return [u[0], U];
41915
41931
  if (fe === 0) return [u[U.sign === D.sign ? 1 : -1], u[0]];
41916
41932
  se.length + re.length <= 200 ? ie = C(se, re) : ie = K(se, re), Ze = ie[0];
41917
- var xe = U.sign !== D.sign, Ge = ie[1], ge = U.sign;
41918
- return typeof Ze == "number" ? (xe && (Ze = -Ze), Ze = new m(Ze)) : Ze = new r(Ze, xe), typeof Ge == "number" ? (ge && (Ge = -Ge), Ge = new m(Ge)) : Ge = new r(Ge, ge), [Ze, Ge];
41933
+ var Ye = U.sign !== D.sign, Ge = ie[1], Xe = U.sign;
41934
+ return typeof Ze == "number" ? (Ye && (Ze = -Ze), Ze = new m(Ze)) : Ze = new r(Ze, Ye), typeof Ge == "number" ? (Xe && (Ge = -Ge), Ge = new m(Ge)) : Ge = new r(Ge, Xe), [Ze, Ge];
41919
41935
  }
41920
41936
  r.prototype.divmod = function(U) {
41921
41937
  var H = k(this, U);
@@ -42133,11 +42149,11 @@ var KG = { exports: {} };
42133
42149
  }, h.prototype.shiftRight = m.prototype.shiftRight = r.prototype.shiftRight;
42134
42150
  function J(U, H, ie) {
42135
42151
  H = de(H);
42136
- for (var D = U.isNegative(), se = H.isNegative(), re = D ? U.not() : U, Ze = se ? H.not() : H, ce = 0, ye = 0, fe = null, xe = null, Ge = []; !re.isZero() || !Ze.isZero(); )
42137
- fe = k(re, ne), ce = fe[1].toJSNumber(), D && (ce = ne - 1 - ce), xe = k(Ze, ne), ye = xe[1].toJSNumber(), se && (ye = ne - 1 - ye), re = fe[0], Ze = xe[0], Ge.push(ie(ce, ye));
42138
- for (var ge = ie(D ? 1 : 0, se ? 1 : 0) !== 0 ? t(-1) : t(0), Le = Ge.length - 1; Le >= 0; Le -= 1)
42139
- ge = ge.multiply(ne).add(t(Ge[Le]));
42140
- return ge;
42152
+ for (var D = U.isNegative(), se = H.isNegative(), re = D ? U.not() : U, Ze = se ? H.not() : H, ce = 0, ye = 0, fe = null, Ye = null, Ge = []; !re.isZero() || !Ze.isZero(); )
42153
+ fe = k(re, ne), ce = fe[1].toJSNumber(), D && (ce = ne - 1 - ce), Ye = k(Ze, ne), ye = Ye[1].toJSNumber(), se && (ye = ne - 1 - ye), re = fe[0], Ze = Ye[0], Ge.push(ie(ce, ye));
42154
+ for (var Xe = ie(D ? 1 : 0, se ? 1 : 0) !== 0 ? t(-1) : t(0), Le = Ge.length - 1; Le >= 0; Le -= 1)
42155
+ Xe = Xe.multiply(ne).add(t(Ge[Le]));
42156
+ return Xe;
42141
42157
  }
42142
42158
  r.prototype.not = function() {
42143
42159
  return this.negate().prev();
@@ -42198,9 +42214,9 @@ var KG = { exports: {} };
42198
42214
  U = de(U), H = de(H);
42199
42215
  var D = ie || Math.random, se = j(U, H), re = oe(U, H), Ze = re.subtract(se).add(1);
42200
42216
  if (Ze.isSmall) return se.add(Math.floor(D() * Ze));
42201
- for (var ce = q(Ze, i).value, ye = [], fe = !0, xe = 0; xe < ce.length; xe++) {
42202
- var Ge = fe ? ce[xe] + (xe + 1 < ce.length ? ce[xe + 1] / i : 0) : i, ge = f(D() * Ge);
42203
- ye.push(ge), ge < ce[xe] && (fe = !1);
42217
+ for (var ce = q(Ze, i).value, ye = [], fe = !0, Ye = 0; Ye < ce.length; Ye++) {
42218
+ var Ge = fe ? ce[Ye] + (Ye + 1 < ce.length ? ce[Ye + 1] / i : 0) : i, Xe = f(D() * Ge);
42219
+ ye.push(Xe), Xe < ce[Ye] && (fe = !1);
42204
42220
  }
42205
42221
  return se.add(u.fromArray(ye, i, !1));
42206
42222
  }
@@ -42217,8 +42233,8 @@ var KG = { exports: {} };
42217
42233
  }
42218
42234
  }
42219
42235
  H = de(H);
42220
- var fe = [], xe = U[0] === "-";
42221
- for (re = xe ? 1 : 0; re < U.length; re++) {
42236
+ var fe = [], Ye = U[0] === "-";
42237
+ for (re = Ye ? 1 : 0; re < U.length; re++) {
42222
42238
  var ye = U[re];
42223
42239
  if (ye in ce) fe.push(de(ce[ye]));
42224
42240
  else if (ye === "<") {
@@ -42229,7 +42245,7 @@ var KG = { exports: {} };
42229
42245
  fe.push(de(U.slice(Ge + 1, re)));
42230
42246
  } else throw new Error(ye + " is not a valid character");
42231
42247
  }
42232
- return he(fe, H, xe);
42248
+ return he(fe, H, Ye);
42233
42249
  };
42234
42250
  function he(U, H, ie) {
42235
42251
  var D = u[0], se = u[1], re;
@@ -42325,8 +42341,8 @@ var KG = { exports: {} };
42325
42341
  if (!ce) throw new Error("Invalid integer: " + U);
42326
42342
  if (d)
42327
42343
  return new h(BigInt(ie ? "-" + U : U));
42328
- for (var ye = [], fe = U.length, xe = n, Ge = fe - xe; fe > 0; )
42329
- ye.push(+U.slice(Ge, fe)), Ge -= xe, Ge < 0 && (Ge = 0), fe -= xe;
42344
+ for (var ye = [], fe = U.length, Ye = n, Ge = fe - Ye; fe > 0; )
42345
+ ye.push(+U.slice(Ge, fe)), Ge -= Ye, Ge < 0 && (Ge = 0), fe -= Ye;
42330
42346
  return G(ye), new r(ye, ie);
42331
42347
  }
42332
42348
  function _(U) {
@@ -47692,7 +47708,7 @@ const BJ = { status: "idle" }, FJ = (e) => {
47692
47708
  const n = i.current;
47693
47709
  n.updateRefs(e.services, e.callbacks, e.onLocalUpdate);
47694
47710
  const s = n.isConnected, a = n.awareness;
47695
- Ye(() => {
47711
+ xe(() => {
47696
47712
  if (!s || !e.ydoc) return;
47697
47713
  const b = (Z, I) => {
47698
47714
  var G;
@@ -47703,7 +47719,7 @@ const BJ = { status: "idle" }, FJ = (e) => {
47703
47719
  return e.ydoc.on("update", b), () => {
47704
47720
  e.ydoc.off("update", b);
47705
47721
  };
47706
- }, [e.ydoc, s]), Ye(() => {
47722
+ }, [e.ydoc, s]), xe(() => {
47707
47723
  if (!a) return;
47708
47724
  const b = () => {
47709
47725
  Pi(a, [e.ydoc.clientID], "window unload");
@@ -47711,7 +47727,7 @@ const BJ = { status: "idle" }, FJ = (e) => {
47711
47727
  return typeof window < "u" && typeof window.addEventListener == "function" && window.addEventListener("beforeunload", b), () => {
47712
47728
  Pi(a, [e.ydoc.clientID], "hook unmount"), typeof window < "u" && typeof window.removeEventListener == "function" && window.removeEventListener("beforeunload", b);
47713
47729
  };
47714
- }, [a !== void 0]), Ye(() => () => {
47730
+ }, [a !== void 0]), xe(() => () => {
47715
47731
  var b;
47716
47732
  (b = i.current) == null || b.forceCleanup();
47717
47733
  }, []);
@@ -47747,7 +47763,7 @@ const BJ = { status: "idle" }, FJ = (e) => {
47747
47763
  const s = we(null), a = we(null), [c, d] = Se("initializing"), u = we(!1);
47748
47764
  s.current || (s.current = new Fe.Doc());
47749
47765
  const r = (i == null ? void 0 : i.enabled) === !0 ? i : void 0, m = r != null, h = r == null ? void 0 : r.services, b = r == null ? void 0 : r.on, Z = we(n);
47750
- Ye(() => {
47766
+ xe(() => {
47751
47767
  Z.current = n;
47752
47768
  }, [n]);
47753
47769
  const {
@@ -47768,7 +47784,7 @@ const BJ = { status: "idle" }, FJ = (e) => {
47768
47784
  },
47769
47785
  ignoredOrigins: [a]
47770
47786
  }), X = we(I);
47771
- Ye(() => {
47787
+ xe(() => {
47772
47788
  X.current = I;
47773
47789
  }, [I]);
47774
47790
  const x = we(m), V = we(i);
@@ -47787,7 +47803,7 @@ const BJ = { status: "idle" }, FJ = (e) => {
47787
47803
  console.error("[DSheet] IndexedDB persistence error:", E), d("error");
47788
47804
  }));
47789
47805
  }, [e]);
47790
- Ye(() => {
47806
+ xe(() => {
47791
47807
  if (s.current || (s.current = new Fe.Doc()), l) {
47792
47808
  d("synced"), u.current = !0;
47793
47809
  return;
@@ -47807,13 +47823,13 @@ const BJ = { status: "idle" }, FJ = (e) => {
47807
47823
  return () => {
47808
47824
  a.current && (a.current.destroy(), a.current = null), s.current && (s.current.destroy(), s.current = null), u.current = !1;
47809
47825
  };
47810
- }, [e, t, l]), Ye(() => {
47826
+ }, [e, t, l]), xe(() => {
47811
47827
  if (!m || !(i != null && i.enabled) || !u.current) return;
47812
47828
  const E = i;
47813
47829
  return X.current(E.connection), () => {
47814
47830
  f();
47815
47831
  };
47816
- }, [m]), Ye(() => {
47832
+ }, [m]), xe(() => {
47817
47833
  if (!W || !m || !(i != null && i.enabled)) return;
47818
47834
  const E = i.session;
47819
47835
  W.setLocalStateField("user", {
@@ -47823,13 +47839,13 @@ const BJ = { status: "idle" }, FJ = (e) => {
47823
47839
  });
47824
47840
  }, [W, m]);
47825
47841
  const Q = m && (i != null && i.enabled) ? i.session.isEns : void 0, A = we(void 0);
47826
- return Ye(() => {
47842
+ return xe(() => {
47827
47843
  const E = A.current;
47828
47844
  if (A.current = g == null ? void 0 : g.status, (g == null ? void 0 : g.status) === "ready" && E === "syncing" && W) {
47829
47845
  const Y = W.getLocalState();
47830
47846
  Y != null && Y.user && W.setLocalStateField("user", Y.user);
47831
47847
  }
47832
- }, [g == null ? void 0 : g.status, W]), Ye(() => {
47848
+ }, [g == null ? void 0 : g.status, W]), xe(() => {
47833
47849
  if (!W || !m || !(i != null && i.enabled)) return;
47834
47850
  const E = i.session;
47835
47851
  if (!E.isEns) return;
@@ -49112,7 +49128,7 @@ const t4 = (e) => {
49112
49128
  r.current = !1;
49113
49129
  }
49114
49130
  };
49115
- return Ye(() => {
49131
+ return xe(() => {
49116
49132
  if (!l || !e) return;
49117
49133
  const h = setInterval(() => {
49118
49134
  m();
@@ -49275,7 +49291,7 @@ const h4 = (e, t, l, i, n, s = !1, a, c, d, u, r, m = !1, h, b, Z, I, G = !1) =>
49275
49291
  remoteApplyDepthRef: x,
49276
49292
  remoteUpdateRef: X
49277
49293
  }).current, N = we(!1), Q = we(!1), A = we(null), E = we(!1), Y = we(!1);
49278
- Ye(() => {
49294
+ xe(() => {
49279
49295
  Y.current = !1;
49280
49296
  }, [t]);
49281
49297
  const { handleLiveQuery: L, initialiseLiveQueryData: S } = u4(
@@ -49293,7 +49309,7 @@ const h4 = (e, t, l, i, n, s = !1, a, c, d, u, r, m = !1, h, b, Z, I, G = !1) =>
49293
49309
  },
49294
49310
  [r]
49295
49311
  );
49296
- Ye(() => {
49312
+ xe(() => {
49297
49313
  if (!G && !(!(n != null && n.length) || !e.current) && !Y.current)
49298
49314
  try {
49299
49315
  const k = Ii(n), w = e.current, T = Fe.encodeStateVector(w), B = new Fe.Doc();
@@ -49318,7 +49334,7 @@ const h4 = (e, t, l, i, n, s = !1, a, c, d, u, r, m = !1, h, b, Z, I, G = !1) =>
49318
49334
  } catch (k) {
49319
49335
  console.error("[DSheet] Error processing portal content:", k);
49320
49336
  }
49321
- }, [n, G]), Ye(() => {
49337
+ }, [n, G]), xe(() => {
49322
49338
  var k;
49323
49339
  if (!(!e.current || !t))
49324
49340
  try {
@@ -49382,7 +49398,7 @@ const h4 = (e, t, l, i, n, s = !1, a, c, d, u, r, m = !1, h, b, Z, I, G = !1) =>
49382
49398
  n,
49383
49399
  Z,
49384
49400
  c
49385
- ]), Ye(() => {
49401
+ ]), xe(() => {
49386
49402
  if (!(!I || !e.current || !t) && !N.current)
49387
49403
  try {
49388
49404
  const k = e.current.getArray(t);
@@ -49396,7 +49412,7 @@ const h4 = (e, t, l, i, n, s = !1, a, c, d, u, r, m = !1, h, b, Z, I, G = !1) =>
49396
49412
  } catch (k) {
49397
49413
  console.error("[DSheet] Error initialising collab sheet data:", k);
49398
49414
  }
49399
- }, [I]), Ye(() => {
49415
+ }, [I]), xe(() => {
49400
49416
  !e.current || !t || c === "synced" && (() => {
49401
49417
  var B;
49402
49418
  if (N.current || G)
@@ -49404,7 +49420,7 @@ const h4 = (e, t, l, i, n, s = !1, a, c, d, u, r, m = !1, h, b, Z, I, G = !1) =>
49404
49420
  const w = (B = e.current) == null ? void 0 : B.getArray(t), T = Array.from(w || []);
49405
49421
  S(T), N.current = !0, y(!0);
49406
49422
  })();
49407
- }, [t, s, c, G]), Ye(() => {
49423
+ }, [t, s, c, G]), xe(() => {
49408
49424
  if (!e.current || !t) return;
49409
49425
  const k = e.current.getArray(t), w = 50, T = /* @__PURE__ */ new Set([
49410
49426
  "name",
@@ -49429,7 +49445,7 @@ const h4 = (e, t, l, i, n, s = !1, a, c, d, u, r, m = !1, h, b, Z, I, G = !1) =>
49429
49445
  return !1;
49430
49446
  }
49431
49447
  }, J = (P, z) => {
49432
- var fe, xe, Ge, ge, Le, Re, Te, Pe;
49448
+ var fe, Ye, Ge, Xe, Le, Re, Te, Pe;
49433
49449
  if (z.local || Q.current) return;
49434
49450
  const R = [], v = /* @__PURE__ */ new Map(), oe = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map(), le = /* @__PURE__ */ new Map(), Ie = /* @__PURE__ */ new Map(), ue = [];
49435
49451
  let he = !1;
@@ -49601,7 +49617,7 @@ const h4 = (e, t, l, i, n, s = !1, a, c, d, u, r, m = !1, h, b, Z, I, G = !1) =>
49601
49617
  }
49602
49618
  }
49603
49619
  if (Ee.length > 0 && Ee.every((Me) => ne.has(Me))) {
49604
- const Me = ve.get("id"), Oe = (ge = (Ge = (xe = (fe = l.current) == null ? void 0 : fe.getWorkbookContext) == null ? void 0 : xe.call(fe)) == null ? void 0 : Ge.luckysheetfile) == null ? void 0 : ge.find((_e) => _e.id === Me);
49620
+ const Me = ve.get("id"), Oe = (Xe = (Ge = (Ye = (fe = l.current) == null ? void 0 : fe.getWorkbookContext) == null ? void 0 : Ye.call(fe)) == null ? void 0 : Ge.luckysheetfile) == null ? void 0 : Xe.find((_e) => _e.id === Me);
49605
49621
  if (Oe && Ee.every(
49606
49622
  ($e) => Pa(ve.get($e), Oe[$e])
49607
49623
  ))
@@ -49960,13 +49976,13 @@ const jr = "dsheets-active-panel", zr = "dsheets-active-panel-state", I4 = (e =
49960
49976
  (m) => e ? m === "comments" : !0,
49961
49977
  [e]
49962
49978
  ), a = La("(max-width: 840px)", { defaultValue: !1 });
49963
- Ye(() => {
49979
+ xe(() => {
49964
49980
  if (typeof window > "u") return;
49965
49981
  const m = localStorage.getItem(jr), h = localStorage.getItem(zr);
49966
49982
  m && h === "true" && m !== "data-verification" && m !== "conditional-format" ? (l(e && m !== "comments" ? "comments" : m), n(!0)) : h === null && !e && !a && (l("templates"), n(!0));
49967
- }, [e, a]), Ye(() => {
49983
+ }, [e, a]), xe(() => {
49968
49984
  n(t !== null);
49969
- }, [t]), Ye(() => {
49985
+ }, [t]), xe(() => {
49970
49986
  typeof window > "u" || (t ? (localStorage.setItem(jr, t), localStorage.setItem(zr, "true")) : (localStorage.removeItem(jr), localStorage.setItem(zr, "false")));
49971
49987
  }, [t]);
49972
49988
  const c = Ve(
@@ -50101,11 +50117,11 @@ const uW = om(void 0), g4 = ({
50101
50117
  },
50102
50118
  []
50103
50119
  );
50104
- Ye(() => (window.updateDataBlockCalcFunctionAfterRowDrag = A, () => {
50120
+ xe(() => (window.updateDataBlockCalcFunctionAfterRowDrag = A, () => {
50105
50121
  delete window.updateDataBlockCalcFunctionAfterRowDrag;
50106
50122
  }), [A]);
50107
50123
  const E = we([]), Y = we(r);
50108
- Ye(() => {
50124
+ xe(() => {
50109
50125
  Y.current = r;
50110
50126
  }, [r]);
50111
50127
  const L = we(
@@ -50146,7 +50162,7 @@ const uW = om(void 0), g4 = ({
50146
50162
  ), P = we(te);
50147
50163
  P.current = te;
50148
50164
  const z = we(J);
50149
- z.current = J, Ye(() => {
50165
+ z.current = J, xe(() => {
50150
50166
  if (!m) return;
50151
50167
  let de = m.current;
50152
50168
  de && (de.terminateSession = P.current, de.updateCollaboratorName = z.current);
@@ -50181,7 +50197,7 @@ const uW = om(void 0), g4 = ({
50181
50197
  r({ data: j.current }, de);
50182
50198
  }, 1e3) : () => {
50183
50199
  }, [r, s]);
50184
- Ye(() => {
50200
+ xe(() => {
50185
50201
  if (!r) return;
50186
50202
  const de = () => {
50187
50203
  R();
@@ -50220,13 +50236,13 @@ const uW = om(void 0), g4 = ({
50220
50236
  $,
50221
50237
  (h == null ? void 0 : h.enabled) === !0
50222
50238
  );
50223
- E.current = j.current, L.current = q, Ye(() => {
50239
+ E.current = j.current, L.current = q, xe(() => {
50224
50240
  I && (I.current = {
50225
50241
  ...I.current,
50226
50242
  refreshIndexedDB: w,
50227
50243
  rehydrateAfterCollabSync: (de = "host") => L.current(de)
50228
50244
  });
50229
- }, [I, w]), Ye(() => {
50245
+ }, [I, w]), xe(() => {
50230
50246
  le && F === "synced" && k.current && X((de) => de + 1);
50231
50247
  }, [le, F]);
50232
50248
  const ae = !le || F === "initializing" || F === "syncing" || // In read-only mode, continue showing the loading state if we have no data yet
@@ -50387,7 +50403,7 @@ const uW = om(void 0), g4 = ({
50387
50403
  handleExportToJSON: s
50388
50404
  }) => {
50389
50405
  const [a, c] = Se(!1), [d, u] = Se(!1), [r, m] = Se("new-dsheet"), [h, b] = Se(null), [Z, I] = Se(""), [G, p] = Se(!1), [f, W] = Se("auto");
50390
- Ye(() => {
50406
+ xe(() => {
50391
50407
  Z === "xlsx" && m(
50392
50408
  (g) => f4.has(g) ? "new-dsheet" : g
50393
50409
  );
@@ -51091,7 +51107,7 @@ const uW = om(void 0), g4 = ({
51091
51107
  ), n = we(l);
51092
51108
  n.current = l;
51093
51109
  const s = we(""), a = we("");
51094
- return Ye(() => {
51110
+ return xe(() => {
51095
51111
  if (!e) return;
51096
51112
  const c = () => {
51097
51113
  var r;
@@ -51112,7 +51128,7 @@ const uW = om(void 0), g4 = ({
51112
51128
  var d;
51113
51129
  e.off("update", c), s.current = "", (d = n.current) == null || d.call(n, []);
51114
51130
  };
51115
- }, [e]), Ye(() => {
51131
+ }, [e]), xe(() => {
51116
51132
  if (!e) return;
51117
51133
  const c = ({
51118
51134
  removed: h
@@ -51724,7 +51740,7 @@ const wn = ({
51724
51740
  }, G.readAsText(h);
51725
51741
  });
51726
51742
  }, M1 = async (e, t, l, i) => {
51727
- const { handleExportToXLSX: n } = await import("./xlsx-export-impl-Bh1M_V68.js");
51743
+ const { handleExportToXLSX: n } = await import("./xlsx-export-impl-CvothH61.js");
51728
51744
  return n(e, t, l, i);
51729
51745
  }, U4 = (e) => {
51730
51746
  var l;
@@ -51799,7 +51815,7 @@ const wn = ({
51799
51815
  const [a, c] = Se(!1);
51800
51816
  return { handleXLSXUpload: Ve(
51801
51817
  async (u, r, m) => {
51802
- const { runXlsxFileUpload: h } = await import("./use-xlsx-import-impl-DTRsLDTh.js");
51818
+ const { runXlsxFileUpload: h } = await import("./use-xlsx-import-impl-BT9Bqynj.js");
51803
51819
  return h(
51804
51820
  {
51805
51821
  sheetEditorRef: e,
@@ -51838,7 +51854,7 @@ const wn = ({
51838
51854
  sheetEditorRef: d,
51839
51855
  updateDocumentTitle: u
51840
51856
  }) => {
51841
- Ye(() => {
51857
+ xe(() => {
51842
51858
  const r = new URLSearchParams(window.location.search), m = r.get("xlsx");
51843
51859
  m && (e(!1), fetch(m).then((Z) => Z.blob()).then((Z) => {
51844
51860
  const I = new File([Z], "import.xlsx");
@@ -52332,7 +52348,7 @@ const eN = () => {
52332
52348
  const t = { name: e || "Anonymous", isEns: !1 }, [l, i] = Se(
52333
52349
  () => e && D1(e) || t
52334
52350
  );
52335
- return Ye(() => {
52351
+ return xe(() => {
52336
52352
  if (!e) {
52337
52353
  i({ name: "Anonymous", isEns: !1 });
52338
52354
  return;
@@ -53014,15 +53030,15 @@ const GN = ({
53014
53030
  return (ie, D, se, re) => {
53015
53031
  const Ze = J.current;
53016
53032
  if (!Ze) return null;
53017
- const ce = Ze.isAuthenticated ?? !0, ye = bN(V), fe = `${ye}_${ie}_${D}`, xe = Ze.commentsData[fe];
53033
+ const ce = Ze.isAuthenticated ?? !0, ye = bN(V), fe = `${ye}_${ie}_${D}`, Ye = Ze.commentsData[fe];
53018
53034
  return ce ? /* @__PURE__ */ o.jsx(
53019
53035
  dN,
53020
53036
  {
53021
53037
  row: ie,
53022
53038
  col: D,
53023
53039
  sheetId: ye,
53024
- comment: xe,
53025
- onSendComment: (Ge, ge) => Ze.onSendComment(fe, ge),
53040
+ comment: Ye,
53041
+ onSendComment: (Ge, Xe) => Ze.onSendComment(fe, Xe),
53026
53042
  onAction: Ze.onCommentAction,
53027
53043
  ownerAddress: Ze.ownerAddress,
53028
53044
  currentUserAddress: Ze.currentUserAddress,
@@ -53042,18 +53058,18 @@ const GN = ({
53042
53058
  },
53043
53059
  [ne]
53044
53060
  ), j = we(T);
53045
- Ye(() => {
53061
+ xe(() => {
53046
53062
  j.current = T;
53047
53063
  }, [T]), L4(T, V, B);
53048
53064
  const O = c ?? "onboardingComplete", le = lt(() => typeof a == "boolean" ? a : pN(O), [a, O]);
53049
- Ye(() => {
53065
+ xe(() => {
53050
53066
  L && F4({
53051
53067
  sheetEditorRef: V,
53052
53068
  ydocRef: N,
53053
53069
  dsheetId: b,
53054
53070
  dataBlockCalcFunction: L
53055
53071
  });
53056
- }, [L]), Ye(() => (window.editorRef = V.current, window.ydocRef = N.current, window.setForceRenderEditor = E, () => {
53072
+ }, [L]), xe(() => (window.editorRef = V.current, window.ydocRef = N.current, window.setForceRenderEditor = E, () => {
53057
53073
  delete window.editorRef, delete window.ydocRef, delete window.setForceRenderEditor;
53058
53074
  }), [i]);
53059
53075
  const { handleXLSXUpload: Ie } = K4({
@@ -53281,10 +53297,10 @@ const GN = ({
53281
53297
  hs(ae, "showGridLines");
53282
53298
  }),
53283
53299
  afterSelectionChange: (se, re) => {
53284
- var fe, xe;
53300
+ var fe, Ye;
53285
53301
  const Ze = j.current;
53286
53302
  if (!Ze) return;
53287
- const ce = re.row_focus ?? ((fe = re.row) == null ? void 0 : fe[0]), ye = re.column_focus ?? ((xe = re.column) == null ? void 0 : xe[0]);
53303
+ const ce = re.row_focus ?? ((fe = re.row) == null ? void 0 : fe[0]), ye = re.column_focus ?? ((Ye = re.column) == null ? void 0 : Ye[0]);
53288
53304
  ce == null || ye == null || Ze.setLocalStateField("cell", { r: ce, c: ye, sheetId: se });
53289
53305
  }
53290
53306
  },
@@ -53329,7 +53345,7 @@ const GN = ({
53329
53345
  setDataBlockCalcFunction: c,
53330
53346
  initialiseLiveQueryData: d
53331
53347
  }) => {
53332
- Ye(() => {
53348
+ xe(() => {
53333
53349
  if (!e || !l.current) return;
53334
53350
  const u = XN(e);
53335
53351
  let r = !1;
@@ -53382,7 +53398,7 @@ const GN = ({
53382
53398
  transitionClasses: i
53383
53399
  }) => {
53384
53400
  const [n, s] = Se(e), [a, c] = Se(e);
53385
- return Ye(() => {
53401
+ return xe(() => {
53386
53402
  if (e)
53387
53403
  c(!0), requestAnimationFrame(() => {
53388
53404
  requestAnimationFrame(() => {
@@ -53644,7 +53660,7 @@ const xN = ({
53644
53660
  setHoveredTemplate: t
53645
53661
  }) => {
53646
53662
  const [l, i] = Se([]), [n, s] = Se(null), [a, c] = Se(""), [d, u] = Se("all"), [r, m] = Se(!1);
53647
- Ye(() => {
53663
+ xe(() => {
53648
53664
  let g = !0;
53649
53665
  return Promise.resolve().then(() => _N).then(
53650
53666
  (X) => {
@@ -53681,7 +53697,7 @@ const xN = ({
53681
53697
  return V && (d === "all" || !d || N === X);
53682
53698
  });
53683
53699
  }, [l, a, d]), y = n ? l.find((g) => g.slug === n) : null;
53684
- return Ye(() => {
53700
+ return xe(() => {
53685
53701
  t(y || null);
53686
53702
  }, [y, t]), /* @__PURE__ */ o.jsxs(
53687
53703
  "div",
@@ -53798,7 +53814,7 @@ const pW = (e) => yW.getApiKey(e), HN = (e, t) => {
53798
53814
  }) => {
53799
53815
  var m;
53800
53816
  const [l, i] = Se(""), [n, s] = Se(!1), [a, c] = Se(!1), d = process.env.NEXT_PUBLIC_PROXY_MODE === "true" && e.API_KEY && ud.includes(e.API_KEY), u = e.API_KEY && !d;
53801
- Ye(() => {
53817
+ xe(() => {
53802
53818
  i(pW(e.API_KEY));
53803
53819
  }, [e.API_KEY]);
53804
53820
  const r = e.t === 20;
@@ -54141,9 +54157,9 @@ const UN = ({
54141
54157
  ];
54142
54158
  f && Z(f.n);
54143
54159
  }, [e]);
54144
- Ye(() => {
54160
+ xe(() => {
54145
54161
  t && n();
54146
- }, [n, t]), Ye(() => {
54162
+ }, [n, t]), xe(() => {
54147
54163
  const p = () => {
54148
54164
  var y, g;
54149
54165
  const W = (g = (y = e.current) == null ? void 0 : y.getLocaleContext) == null ? void 0 : g.call(y);
@@ -54164,7 +54180,7 @@ const UN = ({
54164
54180
  });
54165
54181
  }) : a.byCategory.get(c) ?? [];
54166
54182
  }, [s, a.byCategory, b, c]);
54167
- Ye(() => {
54183
+ xe(() => {
54168
54184
  if (!I.length) {
54169
54185
  r(null), h(0);
54170
54186
  return;
@@ -54183,7 +54199,7 @@ const UN = ({
54183
54199
  h(p);
54184
54200
  }, [I, u]);
54185
54201
  const G = lt(() => c, [c]);
54186
- return Ye(() => {
54202
+ return xe(() => {
54187
54203
  const p = new URLSearchParams(window.location.search);
54188
54204
  p.get("dune") ? Z("dune") : p.get("lq") ? Z("coingecko") : p.get("price") && Z("price");
54189
54205
  }, []), {
@@ -54341,7 +54357,7 @@ const EN = ({ userName: e }) => {
54341
54357
  }
54342
54358
  }, 300);
54343
54359
  return () => clearInterval(K);
54344
- }, [e, l]), Ye(() => {
54360
+ }, [e, l]), xe(() => {
54345
54361
  Z(Object.keys(l).length > 0);
54346
54362
  }, [l]);
54347
54363
  const X = wt.useMemo(() => {
@@ -54727,7 +54743,7 @@ const EN = ({ userName: e }) => {
54727
54743
  isTemplateOpen: u,
54728
54744
  isReadOnly: l,
54729
54745
  loading: V
54730
- }), Ye(() => {
54746
+ }), xe(() => {
54731
54747
  lN(b == null ? void 0 : b.ensResolutionUrl);
54732
54748
  }, [b == null ? void 0 : b.ensResolutionUrl]);
54733
54749
  const le = lt(
@@ -54764,7 +54780,7 @@ const EN = ({ userName: e }) => {
54764
54780
  H
54765
54781
  ), be;
54766
54782
  };
54767
- return Ye(() => {
54783
+ return xe(() => {
54768
54784
  !X || !Y.current || !h || Q || N === "synced" && Y.current.transact(() => {
54769
54785
  var be;
54770
54786
  const q = (be = Y.current) == null ? void 0 : be.getArray(h), ae = [];