@fileverse-dev/dsheet 4.1.23-stabilise-package-4 → 4.1.23-stabilise-package-5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/editor/utils/remote-apply-guard.d.ts +10 -13
- package/dist/{executeStringFunction-BsVLVYUB.js → executeStringFunction-BEXVKyb4.js} +534 -531
- package/dist/formula.js +1 -1
- package/dist/{index-YKT7Lz7Z.js → index-B2qRWUrt.js} +7429 -7307
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/core/modules/formula-dep-text.d.ts +15 -0
- package/dist/sheet-engine/core/modules/formula-dep-text.test.d.ts +1 -0
- package/dist/sheet-engine/core/modules/formula-warmup.d.ts +2 -7
- package/dist/sheet-engine/core/modules/formula.d.ts +6 -0
- package/dist/{use-xlsx-import-impl-8Lojcck9.js → use-xlsx-import-impl-C8P5kg6K.js} +4 -4
- package/dist/{xlsx-defined-names-D3F23p2Z.js → xlsx-defined-names-BPf5_A0O.js} +2 -2
- package/dist/{xlsx-export-impl-DXWvjnk5.js → xlsx-export-impl-GUjuzWHG.js} +4 -4
- package/dist/{xlsx-hyperlink-inline-07QbQDEt.js → xlsx-hyperlink-inline-yhXVMMJ9.js} +2 -2
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Ge = (e, t, n) =>
|
|
1
|
+
var pf = Object.defineProperty;
|
|
2
|
+
var gf = (e, t, n) => t in e ? pf(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var Ge = (e, t, n) => gf(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import p, { isPlainObject as us } from "lodash";
|
|
5
5
|
import $e from "dayjs";
|
|
6
6
|
import * as ca from "@fileverse-dev/formulajs";
|
|
7
|
-
import { F as
|
|
7
|
+
import { F as yf } from "./crypto-constants-CY-Whjwy.js";
|
|
8
8
|
import { isDraft as Jo } from "immer";
|
|
9
|
-
var
|
|
9
|
+
var bf = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
10
10
|
function uu(e) {
|
|
11
11
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
12
12
|
}
|
|
@@ -30,7 +30,7 @@ function C1(e) {
|
|
|
30
30
|
}), n;
|
|
31
31
|
}
|
|
32
32
|
const _r = {}, to = {
|
|
33
|
-
en: () => Promise.resolve().then(() =>
|
|
33
|
+
en: () => Promise.resolve().then(() => Qf),
|
|
34
34
|
zh: () => import("./zh-CmOCFd5t.js"),
|
|
35
35
|
es: () => import("./es-BlDQ6jCL.js"),
|
|
36
36
|
hi: () => import("./hi-CP0ta0Yk.js"),
|
|
@@ -49,29 +49,29 @@ function It(e) {
|
|
|
49
49
|
if (_r[r]) return _r[r];
|
|
50
50
|
return _r.en;
|
|
51
51
|
}
|
|
52
|
-
var jr,
|
|
53
|
-
function
|
|
52
|
+
var jr, wf = new Uint8Array(16);
|
|
53
|
+
function vf() {
|
|
54
54
|
if (!jr && (jr = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !jr))
|
|
55
55
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
56
|
-
return jr(
|
|
56
|
+
return jr(wf);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
59
|
-
function
|
|
60
|
-
return typeof e == "string" &&
|
|
58
|
+
const _f = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
|
59
|
+
function Tf(e) {
|
|
60
|
+
return typeof e == "string" && _f.test(e);
|
|
61
61
|
}
|
|
62
62
|
var Nt = [];
|
|
63
63
|
for (var no = 0; no < 256; ++no)
|
|
64
64
|
Nt.push((no + 256).toString(16).substr(1));
|
|
65
|
-
function
|
|
65
|
+
function Cf(e) {
|
|
66
66
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, n = (Nt[e[t + 0]] + Nt[e[t + 1]] + Nt[e[t + 2]] + Nt[e[t + 3]] + "-" + Nt[e[t + 4]] + Nt[e[t + 5]] + "-" + Nt[e[t + 6]] + Nt[e[t + 7]] + "-" + Nt[e[t + 8]] + Nt[e[t + 9]] + "-" + Nt[e[t + 10]] + Nt[e[t + 11]] + Nt[e[t + 12]] + Nt[e[t + 13]] + Nt[e[t + 14]] + Nt[e[t + 15]]).toLowerCase();
|
|
67
|
-
if (!
|
|
67
|
+
if (!Tf(n))
|
|
68
68
|
throw TypeError("Stringified UUID is invalid");
|
|
69
69
|
return n;
|
|
70
70
|
}
|
|
71
71
|
function cu(e, t, n) {
|
|
72
72
|
e = e || {};
|
|
73
|
-
var r = e.random || (e.rng ||
|
|
74
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
73
|
+
var r = e.random || (e.rng || vf)();
|
|
74
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, Cf(r);
|
|
75
75
|
}
|
|
76
76
|
function fu(e, t) {
|
|
77
77
|
if (!(e != null && e.length) || !t) return;
|
|
@@ -115,11 +115,11 @@ function qa(e) {
|
|
|
115
115
|
return l != null && String(l).length > 0;
|
|
116
116
|
}) : !1;
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function $f(e) {
|
|
119
119
|
return e == null || typeof e != "object" || qa(e) ? !1 : wo.some((t) => t === "ct" ? e.ct != null : e[t] != null);
|
|
120
120
|
}
|
|
121
121
|
function du(e) {
|
|
122
|
-
if (
|
|
122
|
+
if (!$f(e)) return null;
|
|
123
123
|
const t = e, n = {};
|
|
124
124
|
let r = !1;
|
|
125
125
|
for (let a = 0; a < wo.length; a += 1) {
|
|
@@ -131,7 +131,7 @@ function du(e) {
|
|
|
131
131
|
function kn(e) {
|
|
132
132
|
return e == null ? !1 : typeof e != "object" ? !0 : qa(e);
|
|
133
133
|
}
|
|
134
|
-
const
|
|
134
|
+
const Nf = [
|
|
135
135
|
"bg",
|
|
136
136
|
"ht",
|
|
137
137
|
"tb",
|
|
@@ -143,12 +143,12 @@ const $f = [
|
|
|
143
143
|
"it",
|
|
144
144
|
"un",
|
|
145
145
|
"cl"
|
|
146
|
-
],
|
|
147
|
-
function
|
|
146
|
+
], Sf = new Set(Nf);
|
|
147
|
+
function kf(e) {
|
|
148
148
|
if (kn(e)) return !1;
|
|
149
149
|
const t = du(e);
|
|
150
150
|
return t == null ? !0 : Object.keys(t).every(
|
|
151
|
-
(n) =>
|
|
151
|
+
(n) => Sf.has(n)
|
|
152
152
|
);
|
|
153
153
|
}
|
|
154
154
|
function N1(e, t) {
|
|
@@ -158,14 +158,14 @@ function N1(e, t) {
|
|
|
158
158
|
return typeof n.r != "number" || typeof n.c != "number" || typeof r.r != "number" || typeof r.c != "number" ? !1 : n.r === r.r && n.c === r.c && p.isEqual(n.v, r.v);
|
|
159
159
|
}
|
|
160
160
|
const mu = ["tb", "ht", "vt", "tr", "fs", "ff", "fc", "bl", "it", "un", "cl", "bg"], cs = [...mu, "ct"];
|
|
161
|
-
function
|
|
161
|
+
function Af(e) {
|
|
162
162
|
return JSON.stringify(p.omit(e, ["row", "column"]));
|
|
163
163
|
}
|
|
164
164
|
function hu(e) {
|
|
165
165
|
const [t, n] = e.row, [r, a] = e.column;
|
|
166
166
|
return t <= n && r <= a;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
168
|
+
function Ef(e, t) {
|
|
169
169
|
return p.isEqual(e ?? [], t ?? []);
|
|
170
170
|
}
|
|
171
171
|
function pu(e, t) {
|
|
@@ -179,7 +179,7 @@ function ro(e) {
|
|
|
179
179
|
const t = {};
|
|
180
180
|
return pu(t, e), t;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
182
|
+
function Rf(e, t) {
|
|
183
183
|
const [n, r] = e.row, [a, l] = e.column, [o, i] = t.row, [s, u] = t.column, c = Math.max(
|
|
184
184
|
0,
|
|
185
185
|
Math.min(r, i) - Math.max(n, o) + 1
|
|
@@ -189,7 +189,7 @@ function Ef(e, t) {
|
|
|
189
189
|
), d = (r - n + 1) * (l - a + 1) + (i - o + 1) * (u - s + 1) - c * f, m = (Math.max(r, i) - Math.min(n, o) + 1) * (Math.max(l, u) - Math.min(a, s) + 1);
|
|
190
190
|
return d === m;
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Mf(e, t) {
|
|
193
193
|
return {
|
|
194
194
|
...e,
|
|
195
195
|
row: [Math.min(e.row[0], t.row[0]), Math.max(e.row[1], t.row[1])],
|
|
@@ -203,7 +203,7 @@ function Un(e) {
|
|
|
203
203
|
if (!(e != null && e.length)) return [];
|
|
204
204
|
const t = e.filter(hu), n = /* @__PURE__ */ new Map();
|
|
205
205
|
t.forEach((a) => {
|
|
206
|
-
const l =
|
|
206
|
+
const l = Af(a), o = n.get(l) ?? [];
|
|
207
207
|
o.push(a), n.set(l, o);
|
|
208
208
|
});
|
|
209
209
|
const r = [];
|
|
@@ -212,7 +212,7 @@ function Un(e) {
|
|
|
212
212
|
for (; l.length > 0; ) {
|
|
213
213
|
let o = l.shift(), i = !0;
|
|
214
214
|
for (; i; )
|
|
215
|
-
i = !1, l = l.filter((s) =>
|
|
215
|
+
i = !1, l = l.filter((s) => Rf(o, s) ? (o = Mf(o, s), i = !0, !1) : !0);
|
|
216
216
|
r.push(o);
|
|
217
217
|
}
|
|
218
218
|
}), r;
|
|
@@ -253,7 +253,7 @@ function vo(e, t) {
|
|
|
253
253
|
r.push(...gu(a, l));
|
|
254
254
|
}), r;
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function If(e) {
|
|
257
257
|
if (!e.length) return [];
|
|
258
258
|
const t = [...e].sort((l, o) => l - o), n = [];
|
|
259
259
|
let r = t[0], a = t[0];
|
|
@@ -274,7 +274,7 @@ function S1(e, t, n) {
|
|
|
274
274
|
const [l, o] = t === "row" ? a.row : a.column, i = [];
|
|
275
275
|
for (let s = l; s <= o; s += 1)
|
|
276
276
|
i.push(n[s] ?? s);
|
|
277
|
-
|
|
277
|
+
If(i).forEach(([s, u]) => {
|
|
278
278
|
r.push(
|
|
279
279
|
t === "row" ? { ...a, row: [s, u] } : { ...a, column: [s, u] }
|
|
280
280
|
);
|
|
@@ -301,13 +301,13 @@ function k1(e, t, n) {
|
|
|
301
301
|
);
|
|
302
302
|
return Un([...s, ...o]);
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function qf(e, t, n, r) {
|
|
305
305
|
const a = { ...e, row: n, column: r };
|
|
306
306
|
return cs.forEach((l) => {
|
|
307
307
|
t[l] != null && delete a[l];
|
|
308
308
|
}), cs.some((l) => a[l] != null) ? a : null;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Df(e, t, n, r, a, l) {
|
|
311
311
|
const o = {
|
|
312
312
|
row: [t, n],
|
|
313
313
|
column: [r, a],
|
|
@@ -320,7 +320,7 @@ function qf(e, t, n, r, a, l) {
|
|
|
320
320
|
return;
|
|
321
321
|
}
|
|
322
322
|
i.push(...gu(s, u));
|
|
323
|
-
const c =
|
|
323
|
+
const c = qf(
|
|
324
324
|
s,
|
|
325
325
|
l,
|
|
326
326
|
u.row,
|
|
@@ -337,7 +337,7 @@ function tl(e) {
|
|
|
337
337
|
}), { maxRow: t, maxCol: n };
|
|
338
338
|
}
|
|
339
339
|
function yu(e, t, n, r, a, l) {
|
|
340
|
-
const o =
|
|
340
|
+
const o = Df(
|
|
341
341
|
e,
|
|
342
342
|
t,
|
|
343
343
|
n,
|
|
@@ -345,9 +345,9 @@ function yu(e, t, n, r, a, l) {
|
|
|
345
345
|
a,
|
|
346
346
|
l
|
|
347
347
|
);
|
|
348
|
-
return { ranges: o, changed: !
|
|
348
|
+
return { ranges: o, changed: !Ef(e, o) };
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function xf(e, t, n, r) {
|
|
351
351
|
const a = du(r);
|
|
352
352
|
return a ? yu(
|
|
353
353
|
e,
|
|
@@ -369,7 +369,7 @@ function bu(e, t, n, r, a, l) {
|
|
|
369
369
|
const d = Math.max(0, a), m = Math.min(l, f.length - 1);
|
|
370
370
|
if (!(d > m))
|
|
371
371
|
for (let h = d; h <= m; h += 1) {
|
|
372
|
-
const g =
|
|
372
|
+
const g = xf(o, c, h, f[h]);
|
|
373
373
|
g.changed && (o = g.ranges, i = !0);
|
|
374
374
|
}
|
|
375
375
|
}
|
|
@@ -403,7 +403,7 @@ function fs(e, t, n, r, a) {
|
|
|
403
403
|
}).filter((o) => o != null);
|
|
404
404
|
return Un(l);
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function Of(e, t, n, r, a) {
|
|
407
407
|
const [l, o] = t === "row" ? e.row : e.column;
|
|
408
408
|
if (o < n) return [e];
|
|
409
409
|
if (l > r) {
|
|
@@ -420,11 +420,11 @@ function xf(e, t, n, r, a) {
|
|
|
420
420
|
t === "row" ? { ...e, row: [n, o - a] } : { ...e, column: [n, o - a] }
|
|
421
421
|
), i.filter(hu);
|
|
422
422
|
}
|
|
423
|
-
function
|
|
423
|
+
function Ff(e, t, n, r) {
|
|
424
424
|
if (!(e != null && e.length)) return [];
|
|
425
425
|
const a = r - n + 1, l = [];
|
|
426
426
|
return e.forEach((o) => {
|
|
427
|
-
l.push(...
|
|
427
|
+
l.push(...Of(o, t, n, r, a));
|
|
428
428
|
}), Un(l);
|
|
429
429
|
}
|
|
430
430
|
function rl(e, t) {
|
|
@@ -466,7 +466,7 @@ function E1(e) {
|
|
|
466
466
|
s[c.r][c.c] = c.v;
|
|
467
467
|
}), rl(s, n), s;
|
|
468
468
|
}
|
|
469
|
-
function
|
|
469
|
+
function Lf(e, t) {
|
|
470
470
|
function n(c) {
|
|
471
471
|
let f = 0;
|
|
472
472
|
for (let d = 0; d < c.length; d += 1)
|
|
@@ -534,7 +534,7 @@ function I1(e, t) {
|
|
|
534
534
|
const n = ke(e, t);
|
|
535
535
|
e.luckysheetfile[n].hide = void 0;
|
|
536
536
|
}
|
|
537
|
-
function
|
|
537
|
+
function Bf(e, t) {
|
|
538
538
|
const { info: n } = It(e), r = `(${n.copy}`, a = ke(e, t);
|
|
539
539
|
let l = e.luckysheetfile[a].name;
|
|
540
540
|
const o = l.indexOf(r);
|
|
@@ -560,7 +560,7 @@ function Lf(e, t) {
|
|
|
560
560
|
}
|
|
561
561
|
function q1(e, t) {
|
|
562
562
|
var c, f, d, m, h;
|
|
563
|
-
const n = ke(e, t), r = e.luckysheetfile[n].order + 1, a =
|
|
563
|
+
const n = ke(e, t), r = e.luckysheetfile[n].order + 1, a = Bf(e, t), l = p.cloneDeep(e.luckysheetfile[n]);
|
|
564
564
|
e.formulaCache.markDepGraphIncomplete(), delete l.id, delete l.status, l.celldata = Ma(l.data), delete l.data, i1(
|
|
565
565
|
e,
|
|
566
566
|
void 0,
|
|
@@ -617,7 +617,7 @@ function D1(e, t) {
|
|
|
617
617
|
const c = { f: s[2], v: s[1] };
|
|
618
618
|
Va(e, o, i, c, Ae(e));
|
|
619
619
|
} else
|
|
620
|
-
|
|
620
|
+
cf(e, o, i, s[1], null);
|
|
621
621
|
zr(e, o, i, t);
|
|
622
622
|
}
|
|
623
623
|
}
|
|
@@ -630,7 +630,7 @@ function x1(e, t, n) {
|
|
|
630
630
|
let f = !1;
|
|
631
631
|
if (n && ((a = e.luckysheetfile[r].data[u][c]) != null && a.f) && !((l = e.luckysheetfile[r].data[u][c]) != null && l.isDataBlockFormula) && (f = n.some((h) => {
|
|
632
632
|
var g;
|
|
633
|
-
return
|
|
633
|
+
return Lf(
|
|
634
634
|
(g = e.luckysheetfile[r].data[u][c]) == null ? void 0 : g.f,
|
|
635
635
|
h
|
|
636
636
|
);
|
|
@@ -647,7 +647,7 @@ function x1(e, t, n) {
|
|
|
647
647
|
const h = { f: d[2], v: d[1] };
|
|
648
648
|
Va(e, u, c, h, Ae(e));
|
|
649
649
|
} else
|
|
650
|
-
|
|
650
|
+
cf(e, u, c, d[1], null);
|
|
651
651
|
zr(e, u, c, t);
|
|
652
652
|
}
|
|
653
653
|
}
|
|
@@ -662,7 +662,7 @@ var _u = { exports: {} };
|
|
|
662
662
|
(function(e) {
|
|
663
663
|
(function(t, n) {
|
|
664
664
|
e.exports ? e.exports = n() : t.numeral = n();
|
|
665
|
-
})(
|
|
665
|
+
})(bf, function() {
|
|
666
666
|
var t, n, r = "2.0.6", a = {}, l = {}, o = {
|
|
667
667
|
currentLocale: "en",
|
|
668
668
|
zeroFormat: null,
|
|
@@ -1069,8 +1069,8 @@ var _u = { exports: {} };
|
|
|
1069
1069
|
}(), t;
|
|
1070
1070
|
});
|
|
1071
1071
|
})(_u);
|
|
1072
|
-
var
|
|
1073
|
-
const ln = /* @__PURE__ */ uu(
|
|
1072
|
+
var Pf = _u.exports;
|
|
1073
|
+
const ln = /* @__PURE__ */ uu(Pf);
|
|
1074
1074
|
var al = { exports: {} };
|
|
1075
1075
|
function ol() {
|
|
1076
1076
|
}
|
|
@@ -1105,8 +1105,8 @@ ol.prototype = {
|
|
|
1105
1105
|
};
|
|
1106
1106
|
al.exports = ol;
|
|
1107
1107
|
al.exports.TinyEmitter = ol;
|
|
1108
|
-
var
|
|
1109
|
-
const
|
|
1108
|
+
var Hf = al.exports;
|
|
1109
|
+
const Uf = /* @__PURE__ */ uu(Hf), zf = /^[+-]?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?$/i;
|
|
1110
1110
|
function nn(e) {
|
|
1111
1111
|
if (e == null || e === "")
|
|
1112
1112
|
return 0;
|
|
@@ -1118,7 +1118,7 @@ function nn(e) {
|
|
|
1118
1118
|
const n = e.trim();
|
|
1119
1119
|
if (n === "")
|
|
1120
1120
|
return 0;
|
|
1121
|
-
if (!
|
|
1121
|
+
if (!zf.test(n))
|
|
1122
1122
|
return NaN;
|
|
1123
1123
|
const r = Number(n);
|
|
1124
1124
|
return Number.isNaN(r) ? NaN : r;
|
|
@@ -1126,15 +1126,15 @@ function nn(e) {
|
|
|
1126
1126
|
const t = Number(e);
|
|
1127
1127
|
return Number.isNaN(t) ? NaN : t;
|
|
1128
1128
|
}
|
|
1129
|
-
function
|
|
1129
|
+
function Wf(e) {
|
|
1130
1130
|
return -1 * nn(e);
|
|
1131
1131
|
}
|
|
1132
|
-
const Tr = "ERROR", ll = "DIV/0", er = "NAME",
|
|
1132
|
+
const Tr = "ERROR", ll = "DIV/0", er = "NAME", Yf = "N/A", Tu = "NULL", Cu = "NUM", Cr = "REF", An = "VALUE", $u = "CIRC", $r = {
|
|
1133
1133
|
"Error: lookup_range and result_range are required": "Lookup range and result range are required",
|
|
1134
1134
|
[Tr]: "Syntax error",
|
|
1135
1135
|
[ll]: "#DIV/0!",
|
|
1136
1136
|
[er]: "Wrong function name or parameter",
|
|
1137
|
-
[
|
|
1137
|
+
[Yf]: "#N/A",
|
|
1138
1138
|
[Tu]: "#NULL!",
|
|
1139
1139
|
[Cu]: "#NUM!",
|
|
1140
1140
|
[Cr]: "#REF!",
|
|
@@ -1154,7 +1154,7 @@ function Xr(e) {
|
|
|
1154
1154
|
let t;
|
|
1155
1155
|
return e = (e + "").replace(/#|!|\?/g, ""), $r[e] && (t = $r[e]), t || e;
|
|
1156
1156
|
}
|
|
1157
|
-
function
|
|
1157
|
+
function Vf(e) {
|
|
1158
1158
|
let t = !1;
|
|
1159
1159
|
for (const n in $r)
|
|
1160
1160
|
if (Object.prototype.hasOwnProperty.call($r, n) && $r[n] === e) {
|
|
@@ -1163,7 +1163,7 @@ function Yf(e) {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
return t;
|
|
1165
1165
|
}
|
|
1166
|
-
const
|
|
1166
|
+
const Gf = "+";
|
|
1167
1167
|
function _o(e, ...t) {
|
|
1168
1168
|
const n = t.reduce(
|
|
1169
1169
|
(r, a) => r + nn(a || 0),
|
|
@@ -1173,13 +1173,13 @@ function _o(e, ...t) {
|
|
|
1173
1173
|
throw Error(An);
|
|
1174
1174
|
return n;
|
|
1175
1175
|
}
|
|
1176
|
-
_o.SYMBOL =
|
|
1177
|
-
const
|
|
1176
|
+
_o.SYMBOL = Gf;
|
|
1177
|
+
const jf = "&";
|
|
1178
1178
|
function To(...e) {
|
|
1179
1179
|
return e.reduce((t, n) => t + n.toString(), "");
|
|
1180
1180
|
}
|
|
1181
|
-
To.SYMBOL =
|
|
1182
|
-
const
|
|
1181
|
+
To.SYMBOL = jf;
|
|
1182
|
+
const Xf = "/";
|
|
1183
1183
|
function Co(e, ...t) {
|
|
1184
1184
|
const n = t.reduce(
|
|
1185
1185
|
(r, a) => r / nn(a),
|
|
@@ -1187,13 +1187,13 @@ function Co(e, ...t) {
|
|
|
1187
1187
|
);
|
|
1188
1188
|
return n === 1 / 0 ? ll : isNaN(n) ? An : n;
|
|
1189
1189
|
}
|
|
1190
|
-
Co.SYMBOL =
|
|
1191
|
-
const
|
|
1190
|
+
Co.SYMBOL = Xf;
|
|
1191
|
+
const Zf = "=";
|
|
1192
1192
|
function $o(e, t) {
|
|
1193
1193
|
return e === t;
|
|
1194
1194
|
}
|
|
1195
|
-
$o.SYMBOL =
|
|
1196
|
-
const
|
|
1195
|
+
$o.SYMBOL = Zf;
|
|
1196
|
+
const Kf = Object.keys(ca), Nu = {
|
|
1197
1197
|
generalDialog: {
|
|
1198
1198
|
partiallyError: "Cannot perform this operation on partially merged cells",
|
|
1199
1199
|
readOnlyError: "Cannot perform this operation in read-only mode",
|
|
@@ -1202,7 +1202,7 @@ const Zf = Object.keys(ca), Nu = {
|
|
|
1202
1202
|
cannotSelectMultiple: "Cannot select multiple selections"
|
|
1203
1203
|
},
|
|
1204
1204
|
functionlist: [
|
|
1205
|
-
...
|
|
1205
|
+
...yf,
|
|
1206
1206
|
{
|
|
1207
1207
|
n: "SUMIF",
|
|
1208
1208
|
t: 0,
|
|
@@ -12958,10 +12958,10 @@ If the value is FALSE, return the accrued interest from the first interest accru
|
|
|
12958
12958
|
contact: "Server communication error occurred, please refresh the page and try again, if not, please contact the administrator!",
|
|
12959
12959
|
support: "The current browser does not support WebSocket"
|
|
12960
12960
|
}
|
|
12961
|
-
},
|
|
12961
|
+
}, Qf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
12962
12962
|
__proto__: null,
|
|
12963
12963
|
default: Nu
|
|
12964
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
12964
|
+
}, Symbol.toStringTag, { value: "Module" })), Jf = Kf, ds = (Nu.functionlist || []).reduce((e, t) => (t != null && t.n && (e[t.n.toUpperCase()] = t), e), /* @__PURE__ */ Object.create(null));
|
|
12965
12965
|
function ya(e) {
|
|
12966
12966
|
return function(...n) {
|
|
12967
12967
|
e = e.toUpperCase();
|
|
@@ -12985,28 +12985,28 @@ function ya(e) {
|
|
|
12985
12985
|
};
|
|
12986
12986
|
}
|
|
12987
12987
|
ya.isFactory = !0;
|
|
12988
|
-
ya.SYMBOL =
|
|
12989
|
-
const
|
|
12988
|
+
ya.SYMBOL = Jf;
|
|
12989
|
+
const ed = ">";
|
|
12990
12990
|
function No(e, t) {
|
|
12991
12991
|
return e > t;
|
|
12992
12992
|
}
|
|
12993
|
-
No.SYMBOL =
|
|
12994
|
-
const
|
|
12993
|
+
No.SYMBOL = ed;
|
|
12994
|
+
const td = ">=";
|
|
12995
12995
|
function So(e, t) {
|
|
12996
12996
|
return e >= t;
|
|
12997
12997
|
}
|
|
12998
|
-
So.SYMBOL =
|
|
12999
|
-
const
|
|
12998
|
+
So.SYMBOL = td;
|
|
12999
|
+
const nd = "<";
|
|
13000
13000
|
function ko(e, t) {
|
|
13001
13001
|
return e < t;
|
|
13002
13002
|
}
|
|
13003
|
-
ko.SYMBOL =
|
|
13004
|
-
const
|
|
13003
|
+
ko.SYMBOL = nd;
|
|
13004
|
+
const rd = "<=";
|
|
13005
13005
|
function Ao(e, t) {
|
|
13006
13006
|
return e <= t;
|
|
13007
13007
|
}
|
|
13008
|
-
Ao.SYMBOL =
|
|
13009
|
-
const
|
|
13008
|
+
Ao.SYMBOL = rd;
|
|
13009
|
+
const ad = "-";
|
|
13010
13010
|
function Eo(e, ...t) {
|
|
13011
13011
|
const n = t.reduce(
|
|
13012
13012
|
(r, a) => r - nn(a),
|
|
@@ -13016,8 +13016,8 @@ function Eo(e, ...t) {
|
|
|
13016
13016
|
throw Error(An);
|
|
13017
13017
|
return n;
|
|
13018
13018
|
}
|
|
13019
|
-
Eo.SYMBOL =
|
|
13020
|
-
const
|
|
13019
|
+
Eo.SYMBOL = ad;
|
|
13020
|
+
const od = "*";
|
|
13021
13021
|
function Ro(e, ...t) {
|
|
13022
13022
|
const n = t.reduce(
|
|
13023
13023
|
(r, a) => r * nn(a),
|
|
@@ -13027,20 +13027,20 @@ function Ro(e, ...t) {
|
|
|
13027
13027
|
throw Error(An);
|
|
13028
13028
|
return n;
|
|
13029
13029
|
}
|
|
13030
|
-
Ro.SYMBOL =
|
|
13031
|
-
const
|
|
13030
|
+
Ro.SYMBOL = od;
|
|
13031
|
+
const ld = "<>";
|
|
13032
13032
|
function Mo(e, t) {
|
|
13033
13033
|
return e !== t;
|
|
13034
13034
|
}
|
|
13035
|
-
Mo.SYMBOL =
|
|
13036
|
-
const
|
|
13035
|
+
Mo.SYMBOL = ld;
|
|
13036
|
+
const id = "^";
|
|
13037
13037
|
function Io(e, t) {
|
|
13038
13038
|
const n = Math.pow(nn(e), nn(t));
|
|
13039
13039
|
if (isNaN(n))
|
|
13040
13040
|
throw Error(An);
|
|
13041
13041
|
return n;
|
|
13042
13042
|
}
|
|
13043
|
-
Io.SYMBOL =
|
|
13043
|
+
Io.SYMBOL = id;
|
|
13044
13044
|
const ba = /* @__PURE__ */ Object.create(null);
|
|
13045
13045
|
function ms(e, t = []) {
|
|
13046
13046
|
if (e = e.toUpperCase(), !ba[e])
|
|
@@ -13065,22 +13065,22 @@ Ut(Ao.SYMBOL, Ao);
|
|
|
13065
13065
|
Ut(Ro.SYMBOL, Ro);
|
|
13066
13066
|
Ut(Mo.SYMBOL, Mo);
|
|
13067
13067
|
Ut(Eo.SYMBOL, Eo);
|
|
13068
|
-
function
|
|
13068
|
+
function sd(e) {
|
|
13069
13069
|
if (!e) return null;
|
|
13070
13070
|
const t = e.match(/^([A-Z]+)(\d+):([A-Z]+)(\d+)$/i);
|
|
13071
13071
|
if (!t) return null;
|
|
13072
13072
|
const [, n, r, a, l] = t;
|
|
13073
13073
|
return n === a && r !== l ? !1 : r === l && n !== a ? !0 : null;
|
|
13074
13074
|
}
|
|
13075
|
-
const
|
|
13075
|
+
const ud = "[A-Za-z0-9_À-ʯ]+", cd = "'(?:(?!').|'')*'", Da = `(?:${ud}|${cd})!`, fd = new RegExp(
|
|
13076
13076
|
`^(?:${Da})?(?:[$][A-Za-z]+[$][0-9]+)`
|
|
13077
|
-
), fd = new RegExp(
|
|
13078
|
-
`^(?:${Da})?(?:[$][A-Za-z]+[0-9]*)`
|
|
13079
13077
|
), dd = new RegExp(
|
|
13080
|
-
`^(?:${Da})?(?:[A-Za-z]
|
|
13078
|
+
`^(?:${Da})?(?:[$][A-Za-z]+[0-9]*)`
|
|
13081
13079
|
), md = new RegExp(
|
|
13080
|
+
`^(?:${Da})?(?:[A-Za-z]*[$][0-9]+)`
|
|
13081
|
+
), hd = new RegExp(
|
|
13082
13082
|
`^(?:${Da})?(?:(?:[A-Za-z]+[0-9]*)|(?:[A-Za-z]*[0-9]+))(?!\\d)(?!\\.)`
|
|
13083
|
-
),
|
|
13083
|
+
), pd = /^(?:[0-9]+$)/;
|
|
13084
13084
|
var fa, ze = function(e, t, n, r) {
|
|
13085
13085
|
for (n = n || {}, r = e.length; r--; n[e[r]] = t) ;
|
|
13086
13086
|
return n;
|
|
@@ -13210,7 +13210,7 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13210
13210
|
let u;
|
|
13211
13211
|
if (s.toLowerCase().includes("xlookup")) {
|
|
13212
13212
|
let w = s.includes("XLOOKUP") ? (h = (m = (d = s == null ? void 0 : s.split("XLOOKUP(")) == null ? void 0 : d[1]) == null ? void 0 : m.split(",")) == null ? void 0 : h[1] : (b = (y = (g = s == null ? void 0 : s.split("xlookup(")) == null ? void 0 : g[1]) == null ? void 0 : y.split(",")) == null ? void 0 : b[1];
|
|
13213
|
-
u =
|
|
13213
|
+
u = sd(w);
|
|
13214
13214
|
}
|
|
13215
13215
|
var c = o.length - 1;
|
|
13216
13216
|
switch (l) {
|
|
@@ -13932,7 +13932,7 @@ Expecting ` + ie.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : K =
|
|
|
13932
13932
|
}
|
|
13933
13933
|
return !0;
|
|
13934
13934
|
}
|
|
13935
|
-
},
|
|
13935
|
+
}, gd = /* @__PURE__ */ function() {
|
|
13936
13936
|
var e = {
|
|
13937
13937
|
EOF: 1,
|
|
13938
13938
|
parseError: function(n, r) {
|
|
@@ -14070,7 +14070,7 @@ Expecting ` + ie.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : K =
|
|
|
14070
14070
|
if (r = this._input.match(this.rules[l[o]]), r && (!n || r[0].length > n[0].length)) {
|
|
14071
14071
|
n = r, a = o;
|
|
14072
14072
|
const i = fa.length;
|
|
14073
|
-
if (l[o] === 8 && n[0].match(
|
|
14073
|
+
if (l[o] === 8 && n[0].match(pd) && !(n.input.slice(n[0].length)[0] === ":" || i > 3 && fa[i - 4] === 25 && fa[i - 2] === 27)) {
|
|
14074
14074
|
n = !1;
|
|
14075
14075
|
continue;
|
|
14076
14076
|
}
|
|
@@ -14210,10 +14210,10 @@ Expecting ` + ie.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : K =
|
|
|
14210
14210
|
/^(?:'(\\[']|[^'])*'[^'!])/,
|
|
14211
14211
|
/^(?:[A-Za-z]{1,}[A-Za-z_0-9\.]+(?=[(]))/,
|
|
14212
14212
|
/^(?:#[A-Z0-9\/]+(!|\?)?)/,
|
|
14213
|
-
cd,
|
|
14214
14213
|
fd,
|
|
14215
14214
|
dd,
|
|
14216
14215
|
md,
|
|
14216
|
+
hd,
|
|
14217
14217
|
/^(?:[A-Za-z\.]+(?=[(]))/,
|
|
14218
14218
|
/^(?:[A-Za-z]{1,}[A-Za-z_0-9]+)/,
|
|
14219
14219
|
/^(?:[A-Za-z_]+)/,
|
|
@@ -14290,25 +14290,25 @@ Expecting ` + ie.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : K =
|
|
|
14290
14290
|
};
|
|
14291
14291
|
return e;
|
|
14292
14292
|
}();
|
|
14293
|
-
il.lexer =
|
|
14293
|
+
il.lexer = gd;
|
|
14294
14294
|
function sl() {
|
|
14295
14295
|
this.yy = {};
|
|
14296
14296
|
}
|
|
14297
14297
|
sl.prototype = il;
|
|
14298
14298
|
il.Parser = sl;
|
|
14299
|
-
function
|
|
14299
|
+
function yd(e, t = 1) {
|
|
14300
14300
|
return e = e.substring(t, e.length - t), e;
|
|
14301
14301
|
}
|
|
14302
|
-
function
|
|
14302
|
+
function bd(e) {
|
|
14303
14303
|
let t = parseInt(e, 10);
|
|
14304
14304
|
return isNaN(t) ? t = -1 : t = Math.max(t - 1, -1), t;
|
|
14305
14305
|
}
|
|
14306
|
-
function
|
|
14306
|
+
function wd(e) {
|
|
14307
14307
|
let t = "";
|
|
14308
14308
|
return e >= 0 && (t = `${e + 1}`), t;
|
|
14309
14309
|
}
|
|
14310
14310
|
const Su = "ABCDEFGHIJKLMNOPQRSTUVWXYZ", qo = Su.length;
|
|
14311
|
-
function
|
|
14311
|
+
function vd(e) {
|
|
14312
14312
|
let t = 0;
|
|
14313
14313
|
if (typeof e == "string") {
|
|
14314
14314
|
e = e.toUpperCase();
|
|
@@ -14317,14 +14317,14 @@ function wd(e) {
|
|
|
14317
14317
|
}
|
|
14318
14318
|
return --t, t;
|
|
14319
14319
|
}
|
|
14320
|
-
function
|
|
14320
|
+
function _d(e) {
|
|
14321
14321
|
let t = "";
|
|
14322
14322
|
for (; e >= 0; )
|
|
14323
14323
|
t = String.fromCharCode(e % qo + 97) + t, e = Math.floor(e / qo) - 1;
|
|
14324
14324
|
return t.toUpperCase();
|
|
14325
14325
|
}
|
|
14326
|
-
const
|
|
14327
|
-
`^(?:${
|
|
14326
|
+
const Td = "[A-Za-z0-9_À-ʯ]+", Cd = "'(?:(?!').|'')*'", $d = `(${Td}|${Cd})!`, gs = new RegExp(
|
|
14327
|
+
`^(?:${$d})?([$])?([A-Za-z]*)([$])?([0-9]*)$`
|
|
14328
14328
|
);
|
|
14329
14329
|
function oo(e) {
|
|
14330
14330
|
if (typeof e != "string" || !gs.test(e))
|
|
@@ -14334,12 +14334,12 @@ function oo(e) {
|
|
|
14334
14334
|
const o = t == null ? null : e.slice(0, t.length).replace(/^'|'$/g, "").replace(/''/g, "'");
|
|
14335
14335
|
return [
|
|
14336
14336
|
{
|
|
14337
|
-
index:
|
|
14337
|
+
index: bd(l),
|
|
14338
14338
|
label: l,
|
|
14339
14339
|
isAbsolute: a === "$"
|
|
14340
14340
|
},
|
|
14341
14341
|
{
|
|
14342
|
-
index:
|
|
14342
|
+
index: vd(r),
|
|
14343
14343
|
label: r,
|
|
14344
14344
|
isAbsolute: n === "$"
|
|
14345
14345
|
},
|
|
@@ -14347,18 +14347,18 @@ function oo(e) {
|
|
|
14347
14347
|
];
|
|
14348
14348
|
}
|
|
14349
14349
|
function ys(e, t) {
|
|
14350
|
-
const n = (e.isAbsolute ? "$" : "") +
|
|
14351
|
-
return (t.isAbsolute ? "$" : "") +
|
|
14350
|
+
const n = (e.isAbsolute ? "$" : "") + wd(e.index);
|
|
14351
|
+
return (t.isAbsolute ? "$" : "") + _d(t.index) + n;
|
|
14352
14352
|
}
|
|
14353
|
-
function
|
|
14353
|
+
function Nd(e) {
|
|
14354
14354
|
return e.replace(/[\u201C\u201D]/g, '"').replace(/[\u2018\u2019]/g, "'");
|
|
14355
14355
|
}
|
|
14356
|
-
class
|
|
14356
|
+
class Sd extends Uf {
|
|
14357
14357
|
constructor() {
|
|
14358
14358
|
super(), this.parser = new sl(), this.cryptoDenomination = "", this.cryptoDecimals = 0, this.parser.yy = {
|
|
14359
14359
|
toNumber: nn,
|
|
14360
|
-
trimEdges:
|
|
14361
|
-
invertNumber:
|
|
14360
|
+
trimEdges: yd,
|
|
14361
|
+
invertNumber: Wf,
|
|
14362
14362
|
throwError: (t) => this._throwError(t),
|
|
14363
14363
|
callVariable: (t) => this._callVariable(t),
|
|
14364
14364
|
evaluateByOperator: ms,
|
|
@@ -14376,7 +14376,7 @@ class Nd extends Hf {
|
|
|
14376
14376
|
* @return {*} Returns an object with tow properties `error` and `result`.
|
|
14377
14377
|
*/
|
|
14378
14378
|
parse(t, n) {
|
|
14379
|
-
t =
|
|
14379
|
+
t = Nd(t);
|
|
14380
14380
|
let r = null, a = null;
|
|
14381
14381
|
this.options = n;
|
|
14382
14382
|
try {
|
|
@@ -14519,15 +14519,15 @@ class Nd extends Hf {
|
|
|
14519
14519
|
* @private
|
|
14520
14520
|
*/
|
|
14521
14521
|
_throwError(t) {
|
|
14522
|
-
throw
|
|
14522
|
+
throw Vf(t) ? Error(t) : Error(Tr);
|
|
14523
14523
|
}
|
|
14524
14524
|
}
|
|
14525
14525
|
let ul = "uk";
|
|
14526
|
-
function
|
|
14526
|
+
function kd(e) {
|
|
14527
14527
|
return e === "us" ? "us" : "uk";
|
|
14528
14528
|
}
|
|
14529
14529
|
function O1(e) {
|
|
14530
|
-
ul =
|
|
14530
|
+
ul = kd(e);
|
|
14531
14531
|
}
|
|
14532
14532
|
function F1() {
|
|
14533
14533
|
return ul;
|
|
@@ -14535,33 +14535,33 @@ function F1() {
|
|
|
14535
14535
|
function xa() {
|
|
14536
14536
|
return ul === "us";
|
|
14537
14537
|
}
|
|
14538
|
-
function
|
|
14538
|
+
function Ad(e = !1) {
|
|
14539
14539
|
return xa() ? e ? "M/d/yyyy hh:mm AM/PM" : "M/d/yyyy" : e ? "d/M/yyyy hh:mm AM/PM" : "d/M/yyyy";
|
|
14540
14540
|
}
|
|
14541
14541
|
function ku(e) {
|
|
14542
14542
|
return xa() ? e ? "M/d/yyyy HH:mm:ss" : "M/d/yyyy" : e ? "d/M/yyyy HH:mm:ss" : "d/M/yyyy";
|
|
14543
14543
|
}
|
|
14544
|
-
function
|
|
14544
|
+
function Ed(e) {
|
|
14545
14545
|
return e ? ((e.toLowerCase().replace(/"[^"]*"/g, "").replace(/\[[^\]]*]/g, "").split(/(?:am\/pm|h+)/i)[0] || "").match(/[dmy]+/g) || []).map((i) => i[0]).filter((i, s, u) => s === 0 || i !== u[s - 1]) : [];
|
|
14546
14546
|
}
|
|
14547
14547
|
function Qr(e, t) {
|
|
14548
|
-
const n =
|
|
14548
|
+
const n = Ed(e);
|
|
14549
14549
|
if (n.length === 0) return !1;
|
|
14550
14550
|
const r = n.indexOf(t[0]), a = n.indexOf(t[1]), l = n.indexOf(t[2]);
|
|
14551
14551
|
return r !== -1 && a !== -1 && l !== -1 && r < a && a < l;
|
|
14552
14552
|
}
|
|
14553
|
-
function
|
|
14553
|
+
function Rd(e) {
|
|
14554
14554
|
if (!e) return !1;
|
|
14555
14555
|
const a = e.toLowerCase().replace(/"[^"]*"/g, "").replace(/\[[^\]]*]/g, "").split(/(?:am\/pm|h+)/i)[0] || "";
|
|
14556
14556
|
if (!/m{3,}/.test(a)) return !1;
|
|
14557
14557
|
const o = a.match(/[dmy]+/g) || [], i = o.some((u) => u[0] === "d"), s = o.some((u) => u[0] === "y");
|
|
14558
14558
|
return i && s;
|
|
14559
14559
|
}
|
|
14560
|
-
function
|
|
14561
|
-
return !e || e === "General" || e === "@" ? !1 :
|
|
14560
|
+
function Md(e) {
|
|
14561
|
+
return !e || e === "General" || e === "@" ? !1 : Rd(e) ? !0 : xa() ? Qr(e, ["m", "d", "y"]) || Qr(e, ["y", "m", "d"]) : Qr(e, ["d", "m", "y"]) || Qr(e, ["y", "m", "d"]);
|
|
14562
14562
|
}
|
|
14563
|
-
function
|
|
14564
|
-
return
|
|
14563
|
+
function Id(e, t) {
|
|
14564
|
+
return Md(e) ? e : ku(t);
|
|
14565
14565
|
}
|
|
14566
14566
|
const Mr = "light", L1 = "#EFC703", Do = {
|
|
14567
14567
|
light: {
|
|
@@ -14614,11 +14614,11 @@ const Mr = "light", L1 = "#EFC703", Do = {
|
|
|
14614
14614
|
secondaryFill: "hsla(120, 6%, 16%, 1)",
|
|
14615
14615
|
freezeLine: "hsla(120, 8%, 30%, 1)"
|
|
14616
14616
|
}
|
|
14617
|
-
},
|
|
14617
|
+
}, qd = (e) => Do[e ?? Mr] ?? Do[Mr];
|
|
14618
14618
|
let gr = Do[Mr], xo = Mr;
|
|
14619
14619
|
const B1 = (e) => {
|
|
14620
14620
|
const t = e ?? Mr;
|
|
14621
|
-
return t === xo ? !1 : (xo = t, gr =
|
|
14621
|
+
return t === xo ? !1 : (xo = t, gr = qd(t), !0);
|
|
14622
14622
|
}, P1 = () => xo;
|
|
14623
14623
|
function H1(e) {
|
|
14624
14624
|
if (document.createRange)
|
|
@@ -14640,7 +14640,7 @@ function H1(e) {
|
|
|
14640
14640
|
function Au(e) {
|
|
14641
14641
|
return e === document.body ? !1 : document.body.contains(e);
|
|
14642
14642
|
}
|
|
14643
|
-
function
|
|
14643
|
+
function Dd(e) {
|
|
14644
14644
|
var t, n;
|
|
14645
14645
|
if (window.getSelection) {
|
|
14646
14646
|
const r = document.createRange(), a = e.firstChild;
|
|
@@ -14750,7 +14750,7 @@ const bs = {
|
|
|
14750
14750
|
fc: "color",
|
|
14751
14751
|
cl: "text-decoration",
|
|
14752
14752
|
un: "border-bottom"
|
|
14753
|
-
},
|
|
14753
|
+
}, xd = {
|
|
14754
14754
|
bl: 1,
|
|
14755
14755
|
it: 1,
|
|
14756
14756
|
ff: 1,
|
|
@@ -14788,7 +14788,7 @@ function z1(e, t, n) {
|
|
|
14788
14788
|
}
|
|
14789
14789
|
return "";
|
|
14790
14790
|
}
|
|
14791
|
-
function
|
|
14791
|
+
function Od(e, t) {
|
|
14792
14792
|
if (p.isEmpty(e))
|
|
14793
14793
|
return {};
|
|
14794
14794
|
const n = e.split(";"), r = {
|
|
@@ -14827,22 +14827,22 @@ function Hn(e) {
|
|
|
14827
14827
|
}
|
|
14828
14828
|
return t;
|
|
14829
14829
|
}
|
|
14830
|
-
function
|
|
14830
|
+
function Fd(e) {
|
|
14831
14831
|
return e.trim().toLowerCase().replace(/\s+/g, "");
|
|
14832
14832
|
}
|
|
14833
|
-
function
|
|
14834
|
-
const t =
|
|
14833
|
+
function Ld(e) {
|
|
14834
|
+
const t = Fd(e);
|
|
14835
14835
|
return t === "rgb(0,0,255)" || t === "#0000ff" || t === "#00f" || t === "blue";
|
|
14836
14836
|
}
|
|
14837
14837
|
function Iu(e) {
|
|
14838
|
-
typeof e.fc == "string" &&
|
|
14838
|
+
typeof e.fc == "string" && Ld(e.fc) && delete e.fc, e.un === 1 && delete e.un;
|
|
14839
14839
|
}
|
|
14840
14840
|
function qu(e, t) {
|
|
14841
14841
|
var l, o, i, s;
|
|
14842
14842
|
const n = [];
|
|
14843
14843
|
let r = null, a = null;
|
|
14844
14844
|
for (let u = 0; u < e.length; u += 1) {
|
|
14845
|
-
const c = e[u], f =
|
|
14845
|
+
const c = e[u], f = Od(
|
|
14846
14846
|
c.style.cssText,
|
|
14847
14847
|
t
|
|
14848
14848
|
);
|
|
@@ -14863,7 +14863,7 @@ function qu(e, t) {
|
|
|
14863
14863
|
}
|
|
14864
14864
|
return n;
|
|
14865
14865
|
}
|
|
14866
|
-
function
|
|
14866
|
+
function Bd(e, t, n) {
|
|
14867
14867
|
if (p.isNil(e.ct))
|
|
14868
14868
|
return;
|
|
14869
14869
|
const { s: r } = e.ct;
|
|
@@ -14887,7 +14887,7 @@ function vs(e, t) {
|
|
|
14887
14887
|
}
|
|
14888
14888
|
return "";
|
|
14889
14889
|
}
|
|
14890
|
-
function
|
|
14890
|
+
function Pd(e, t, n) {
|
|
14891
14891
|
const r = e.split(";");
|
|
14892
14892
|
let a = "";
|
|
14893
14893
|
if (t == null || t.length === 0)
|
|
@@ -14902,7 +14902,7 @@ function Bd(e, t, n) {
|
|
|
14902
14902
|
else t.length > 0 && (e += `${t}:${n};`, a = e);
|
|
14903
14903
|
return a;
|
|
14904
14904
|
}
|
|
14905
|
-
function
|
|
14905
|
+
function Hd(e, t) {
|
|
14906
14906
|
const n = e.split(";");
|
|
14907
14907
|
let r = "";
|
|
14908
14908
|
const a = t;
|
|
@@ -14928,10 +14928,10 @@ function gn(e, t, n) {
|
|
|
14928
14928
|
s === "" && (s = "11"), r._fontSize = Number(s), r._color = i;
|
|
14929
14929
|
}
|
|
14930
14930
|
const a = Al(r, void 0, void 0, !1);
|
|
14931
|
-
if (e =
|
|
14931
|
+
if (e = Hd(e, t), p.isEmpty(a))
|
|
14932
14932
|
return e;
|
|
14933
14933
|
const l = p.kebabCase(Object.keys(a)[0]), o = Object.values(a)[0];
|
|
14934
|
-
return e =
|
|
14934
|
+
return e = Pd(e, l, o), e;
|
|
14935
14935
|
}
|
|
14936
14936
|
function Bn(e, t, n = !0) {
|
|
14937
14937
|
const r = e.split(";"), a = t.split(";");
|
|
@@ -14968,7 +14968,7 @@ function Bn(e, t, n = !0) {
|
|
|
14968
14968
|
function tt(e) {
|
|
14969
14969
|
return e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
14970
14970
|
}
|
|
14971
|
-
function
|
|
14971
|
+
function Ud(e, t, n, r) {
|
|
14972
14972
|
var m, h, g;
|
|
14973
14973
|
const a = window.getSelection();
|
|
14974
14974
|
if (!a || a.rangeCount === 0) return;
|
|
@@ -15069,7 +15069,7 @@ function Hd(e, t, n, r) {
|
|
|
15069
15069
|
}
|
|
15070
15070
|
((m = c.parentElement) == null ? void 0 : m.tagName) === "SPAN" ? (b = p.indexOf(o.querySelectorAll("span"), y), y.outerHTML = G) : (b = 0, y.innerHTML = G);
|
|
15071
15071
|
let ie = 0;
|
|
15072
|
-
S === 0 ? ie = b : ie = b + 1,
|
|
15072
|
+
S === 0 ? ie = b : ie = b + 1, Dd(
|
|
15073
15073
|
o.querySelectorAll("span")[ie]
|
|
15074
15074
|
);
|
|
15075
15075
|
}
|
|
@@ -15141,7 +15141,7 @@ function io(e) {
|
|
|
15141
15141
|
const l = document.createRange();
|
|
15142
15142
|
l.setStart(a, ((s = a.textContent) == null ? void 0 : s.length) || 0), l.collapse(!0), t.removeAllRanges(), t.addRange(l);
|
|
15143
15143
|
}
|
|
15144
|
-
function
|
|
15144
|
+
function zd(e) {
|
|
15145
15145
|
var n, r;
|
|
15146
15146
|
const t = e.querySelectorAll("span");
|
|
15147
15147
|
for (let a = t.length - 1; a >= 0; a -= 1) {
|
|
@@ -15150,14 +15150,14 @@ function Ud(e) {
|
|
|
15150
15150
|
}
|
|
15151
15151
|
return null;
|
|
15152
15152
|
}
|
|
15153
|
-
function
|
|
15153
|
+
function Wd(e) {
|
|
15154
15154
|
var n, r;
|
|
15155
15155
|
const t = e.nextElementSibling;
|
|
15156
15156
|
return t instanceof HTMLElement && t.tagName === "SPAN" && !((n = t.dataset) != null && n.linkType) && !((r = t.dataset) != null && r.linkAddress);
|
|
15157
15157
|
}
|
|
15158
15158
|
function so(e) {
|
|
15159
|
-
const t =
|
|
15160
|
-
if (!t ||
|
|
15159
|
+
const t = zd(e);
|
|
15160
|
+
if (!t || Wd(t)) return;
|
|
15161
15161
|
const n = document.createElement("span");
|
|
15162
15162
|
n.className = "luckysheet-input-span", n.setAttribute("data-no-link-anchor", "1"), n.textContent = " ", t.insertAdjacentElement("afterend", n);
|
|
15163
15163
|
}
|
|
@@ -15172,7 +15172,7 @@ function Jr(e, t, n) {
|
|
|
15172
15172
|
}
|
|
15173
15173
|
return r + n;
|
|
15174
15174
|
}
|
|
15175
|
-
function
|
|
15175
|
+
function Yd(e, t, n) {
|
|
15176
15176
|
var m, h, g, y, b, w;
|
|
15177
15177
|
const r = window.getSelection();
|
|
15178
15178
|
if (!r || r.rangeCount === 0) return;
|
|
@@ -15331,9 +15331,9 @@ function _s(e) {
|
|
|
15331
15331
|
function xu(e) {
|
|
15332
15332
|
return !!/[\u4E00-\u9FA5]|[\uFE30-\uFFA0]/gi.exec(e);
|
|
15333
15333
|
}
|
|
15334
|
-
const
|
|
15334
|
+
const Vd = 200, Gd = 5e3, Ln = {};
|
|
15335
15335
|
let da = 0, Nn = {}, ma = 0, Ou = {};
|
|
15336
|
-
function
|
|
15336
|
+
function jd(e) {
|
|
15337
15337
|
if (!e)
|
|
15338
15338
|
return null;
|
|
15339
15339
|
const t = e.match(/_\("([^"]*)"\*/);
|
|
@@ -15342,10 +15342,10 @@ function Gd(e) {
|
|
|
15342
15342
|
const n = e.match(/"([^"]*)"\*/);
|
|
15343
15343
|
return (n == null ? void 0 : n[1]) || null;
|
|
15344
15344
|
}
|
|
15345
|
-
function
|
|
15345
|
+
function Xd(e, t, n, r, a) {
|
|
15346
15346
|
if (!t || !t.includes("*") || !n || n <= 0)
|
|
15347
15347
|
return e;
|
|
15348
|
-
const l =
|
|
15348
|
+
const l = jd(t);
|
|
15349
15349
|
if (!l)
|
|
15350
15350
|
return e;
|
|
15351
15351
|
const o = e.trim(), i = o.indexOf(l);
|
|
@@ -15362,19 +15362,19 @@ function Fu() {
|
|
|
15362
15362
|
for (const e in Ln) delete Ln[e];
|
|
15363
15363
|
da = 0;
|
|
15364
15364
|
}
|
|
15365
|
-
function
|
|
15365
|
+
function Zd(e, t) {
|
|
15366
15366
|
if (t in Ln)
|
|
15367
15367
|
return Ln[t];
|
|
15368
15368
|
const n = document.createElement("span");
|
|
15369
15369
|
n.style.float = "left", n.style.whiteSpace = "nowrap", n.style.visibility = "hidden", n.style.margin = "0", n.style.padding = "0", n.innerHTML = e, document.body.append(n);
|
|
15370
15370
|
const r = Math.max(n.scrollWidth, n.offsetWidth, n.clientWidth), a = Math.max(n.scrollHeight, n.offsetHeight, n.clientHeight);
|
|
15371
|
-
if (da >=
|
|
15371
|
+
if (da >= Vd) {
|
|
15372
15372
|
for (const l in Ln) delete Ln[l];
|
|
15373
15373
|
da = 0;
|
|
15374
15374
|
}
|
|
15375
15375
|
return Ln[t] = [r, a], da += 1, n.remove(), [r, a];
|
|
15376
15376
|
}
|
|
15377
|
-
function
|
|
15377
|
+
function Kd(e) {
|
|
15378
15378
|
return `normal normal normal ${e}pt "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "WenQuanYi Micro Hei", sans-serif`;
|
|
15379
15379
|
}
|
|
15380
15380
|
function Ts(e) {
|
|
@@ -15398,11 +15398,11 @@ function Cs(e, t, n) {
|
|
|
15398
15398
|
}
|
|
15399
15399
|
return `${r.join(" ")} ${l}`;
|
|
15400
15400
|
}
|
|
15401
|
-
return
|
|
15401
|
+
return Kd(t);
|
|
15402
15402
|
}
|
|
15403
|
-
const
|
|
15403
|
+
const Qd = (e, t, n, r) => `${e}_${n}_${r}_${t}`;
|
|
15404
15404
|
function qn(e, t, n, r) {
|
|
15405
|
-
const a =
|
|
15405
|
+
const a = Qd(
|
|
15406
15406
|
e,
|
|
15407
15407
|
r || t.font,
|
|
15408
15408
|
n.zoomRatio,
|
|
@@ -15415,7 +15415,7 @@ function qn(e, t, n, r) {
|
|
|
15415
15415
|
if (i.width = o.width, r && (t.font = r), i.actualBoundingBoxDescent = o.actualBoundingBoxDescent, i.actualBoundingBoxAscent = o.actualBoundingBoxAscent, i.actualBoundingBoxDescent == null || i.actualBoundingBoxAscent == null || Number.isNaN(i.actualBoundingBoxDescent) || Number.isNaN(i.actualBoundingBoxAscent)) {
|
|
15416
15416
|
let s = "M";
|
|
15417
15417
|
xu(e) && (s = "田");
|
|
15418
|
-
const u =
|
|
15418
|
+
const u = Zd(s, t.font)[1] * 0.8;
|
|
15419
15419
|
t.textBaseline === "top" ? (i.actualBoundingBoxDescent = u, i.actualBoundingBoxAscent = 0) : t.textBaseline === "middle" ? (i.actualBoundingBoxDescent = u / 2, i.actualBoundingBoxAscent = u / 2) : (i.actualBoundingBoxDescent = 0, i.actualBoundingBoxAscent = u);
|
|
15420
15420
|
}
|
|
15421
15421
|
if (t.textBaseline === "alphabetic") {
|
|
@@ -15425,9 +15425,9 @@ function qn(e, t, n, r) {
|
|
|
15425
15425
|
let f = Nn[`${u}_${t.font}`];
|
|
15426
15426
|
r && (f = Nn[`${u}_${r}`]), c == null && (c = t.measureText(s)), f == null && (f = t.measureText(u)), i.actualBoundingBoxDescent <= f.actualBoundingBoxDescent && (i.actualBoundingBoxDescent = c.actualBoundingBoxDescent, i.actualBoundingBoxDescent || (i.actualBoundingBoxDescent = 0));
|
|
15427
15427
|
}
|
|
15428
|
-
return i.width *= n.zoomRatio, i.actualBoundingBoxDescent *= n.zoomRatio, i.actualBoundingBoxAscent *= n.zoomRatio, ma >=
|
|
15428
|
+
return i.width *= n.zoomRatio, i.actualBoundingBoxDescent *= n.zoomRatio, i.actualBoundingBoxAscent *= n.zoomRatio, ma >= Gd && (Nn = {}, ma = 0), Nn[a] = i, ma += 1, i;
|
|
15429
15429
|
}
|
|
15430
|
-
function
|
|
15430
|
+
function Jd(e) {
|
|
15431
15431
|
const t = e.measureText("田");
|
|
15432
15432
|
return !p.isNil(t.actualBoundingBoxAscent);
|
|
15433
15433
|
}
|
|
@@ -15542,7 +15542,7 @@ function Lu(e, t, n, r, a) {
|
|
|
15542
15542
|
if (v = Cs(e, n.defaultFontSize, a), t.font = v, _ = Dt(e, "cl"), T = Dt(e, "un"), C = Dt(e, "fs"), e instanceof Object ? (A = e.m, p.isNil(A) && (A = e.v)) : A = e, p.isEmpty(A))
|
|
15543
15543
|
return null;
|
|
15544
15544
|
const G = (M = e == null ? void 0 : e.ct) == null ? void 0 : M.fa;
|
|
15545
|
-
if (p.isString(A) && p.isString(G) && (A =
|
|
15545
|
+
if (p.isString(A) && p.isString(G) && (A = Xd(
|
|
15546
15546
|
A,
|
|
15547
15547
|
G,
|
|
15548
15548
|
l,
|
|
@@ -15643,7 +15643,7 @@ function Lu(e, t, n, r, a) {
|
|
|
15643
15643
|
pe += z;
|
|
15644
15644
|
}
|
|
15645
15645
|
} else {
|
|
15646
|
-
const G =
|
|
15646
|
+
const G = Jd(t);
|
|
15647
15647
|
if (G ? t.textBaseline = "alphabetic" : t.textBaseline = "bottom", h === "2" || N) {
|
|
15648
15648
|
let ie = 0, O = 0, K = 0, W = 0;
|
|
15649
15649
|
const Y = {};
|
|
@@ -16066,7 +16066,7 @@ const tr = {
|
|
|
16066
16066
|
// 数组范围有其它值
|
|
16067
16067
|
circ: "#CIRC!"
|
|
16068
16068
|
// 循环引用
|
|
16069
|
-
},
|
|
16069
|
+
}, em = {
|
|
16070
16070
|
[ll]: "Invalid calculation: the divisor (second value) cannot be zero",
|
|
16071
16071
|
[er]: "Wrong function name or parameter",
|
|
16072
16072
|
[Tu]: "Formula returned null",
|
|
@@ -16076,21 +16076,21 @@ const tr = {
|
|
|
16076
16076
|
[Tr]: "Unknown error",
|
|
16077
16077
|
[$u]: "Circular dependency."
|
|
16078
16078
|
};
|
|
16079
|
-
function
|
|
16080
|
-
return
|
|
16079
|
+
function tm(e) {
|
|
16080
|
+
return em[e];
|
|
16081
16081
|
}
|
|
16082
|
-
const
|
|
16082
|
+
const nm = Object.values(tr);
|
|
16083
16083
|
function Lo(e) {
|
|
16084
|
-
return
|
|
16084
|
+
return nm.includes(e);
|
|
16085
16085
|
}
|
|
16086
16086
|
function ot(e) {
|
|
16087
16087
|
return p.isNil(e) || e.toString().replace(/\s/g, "") === "";
|
|
16088
16088
|
}
|
|
16089
|
-
function
|
|
16089
|
+
function rm(e) {
|
|
16090
16090
|
return /^0x[a-fA-F0-9]+$/i.test(e);
|
|
16091
16091
|
}
|
|
16092
16092
|
function Ze(e) {
|
|
16093
|
-
return
|
|
16093
|
+
return rm(e == null ? void 0 : e.toString()) || p.isNil(e) || e.toString().replace(/\s/g, "") === "" || typeof e == "boolean" ? !1 : !Number.isNaN(Number(e));
|
|
16094
16094
|
}
|
|
16095
16095
|
function an(e) {
|
|
16096
16096
|
var t;
|
|
@@ -16672,11 +16672,11 @@ function Oa(e) {
|
|
|
16672
16672
|
}
|
|
16673
16673
|
return null;
|
|
16674
16674
|
}
|
|
16675
|
-
function
|
|
16675
|
+
function am(e) {
|
|
16676
16676
|
return Oa(e) !== null;
|
|
16677
16677
|
}
|
|
16678
16678
|
function nr(e) {
|
|
16679
|
-
return e === null || e.toString().length < 5 ? !1 : !!
|
|
16679
|
+
return e === null || e.toString().length < 5 ? !1 : !!am(e);
|
|
16680
16680
|
}
|
|
16681
16681
|
function jt(e, t) {
|
|
16682
16682
|
return $e(e).diff($e(t));
|
|
@@ -16709,7 +16709,7 @@ function cn(e, t, n, r, a, l) {
|
|
|
16709
16709
|
}), o;
|
|
16710
16710
|
}
|
|
16711
16711
|
var Lt = {};
|
|
16712
|
-
const
|
|
16712
|
+
const om = function(t) {
|
|
16713
16713
|
t.version = "0.11.2";
|
|
16714
16714
|
function n(q) {
|
|
16715
16715
|
for (var E = "", H = q.length - 1; H >= 0; ) E += q.charAt(H--);
|
|
@@ -17812,10 +17812,10 @@ const am = function(t) {
|
|
|
17812
17812
|
E[H] !== void 0 && Te(E[H], H);
|
|
17813
17813
|
}, t.init_table = h, t.format = fe;
|
|
17814
17814
|
};
|
|
17815
|
-
|
|
17816
|
-
const
|
|
17815
|
+
om(Lt);
|
|
17816
|
+
const lm = new Date(1900, 2, 1, 0, 0, 0), im = 999999999999997, cl = 1e15;
|
|
17817
17817
|
function fl(e) {
|
|
17818
|
-
return Number.isFinite(e) && e >
|
|
17818
|
+
return Number.isFinite(e) && e > im && e < cl;
|
|
17819
17819
|
}
|
|
17820
17820
|
function Pu(e) {
|
|
17821
17821
|
if (typeof e != "string") return !1;
|
|
@@ -17842,13 +17842,13 @@ function yr(e) {
|
|
|
17842
17842
|
useGrouping: !1
|
|
17843
17843
|
});
|
|
17844
17844
|
}
|
|
17845
|
-
function im(e) {
|
|
17846
|
-
return !Number.isFinite(e) || e === 0 ? 1 : e.toExponential().split("e")[0].replace("-", "").replace(".", "").replace(/^0+/, "").replace(/0+$/, "").length || 1;
|
|
17847
|
-
}
|
|
17848
17845
|
function sm(e) {
|
|
17849
|
-
return Number.isFinite(e) ?
|
|
17846
|
+
return !Number.isFinite(e) || e === 0 ? 1 : e.toExponential().split("e")[0].replace("-", "").replace(".", "").replace(/^0+/, "").replace(/0+$/, "").length || 1;
|
|
17850
17847
|
}
|
|
17851
17848
|
function um(e) {
|
|
17849
|
+
return Number.isFinite(e) ? Number.isInteger(e) && Math.abs(e) > Number.MAX_SAFE_INTEGER ? !0 : sm(e) > 15 : !1;
|
|
17850
|
+
}
|
|
17851
|
+
function cm(e) {
|
|
17852
17852
|
const t = e.toExponential().split("e")[0];
|
|
17853
17853
|
let n = 0;
|
|
17854
17854
|
return t.includes(".") && (n = (t.split(".")[1] || "").length), dl(e, Math.min(5, Math.max(0, n)));
|
|
@@ -17876,7 +17876,7 @@ function Hr(e, t) {
|
|
|
17876
17876
|
e.getSeconds()
|
|
17877
17877
|
);
|
|
17878
17878
|
const r = Date.UTC(1899, 11, 31, 0, 0, 0);
|
|
17879
|
-
return t ? n -= 1461 * 24 * 60 * 60 * 1e3 : e >=
|
|
17879
|
+
return t ? n -= 1461 * 24 * 60 * 60 * 1e3 : e >= lm && (n += 24 * 60 * 60 * 1e3), (n - r) / (24 * 60 * 60 * 1e3);
|
|
17880
17880
|
}
|
|
17881
17881
|
function Je(e) {
|
|
17882
17882
|
let t = null, n = {}, r = e;
|
|
@@ -18055,7 +18055,7 @@ function Je(e) {
|
|
|
18055
18055
|
"dy dd/MM/yyyy": "ddd dd/mm/yyyy",
|
|
18056
18056
|
"dy MM/dd/yyyy": "ddd mm/dd/yyyy"
|
|
18057
18057
|
};
|
|
18058
|
-
n.fa = i[a.formatType] ||
|
|
18058
|
+
n.fa = i[a.formatType] || Ad(o), t = Lt.format(n.fa, r);
|
|
18059
18059
|
} else
|
|
18060
18060
|
t = String(e), n.fa = "General", n.t = "g";
|
|
18061
18061
|
} else
|
|
@@ -18075,7 +18075,7 @@ function ml(e) {
|
|
|
18075
18075
|
(r, a) => a.length - r.length || (n.get(r) ?? 0) - (n.get(a) ?? 0)
|
|
18076
18076
|
);
|
|
18077
18077
|
}
|
|
18078
|
-
function
|
|
18078
|
+
function fm(e, t) {
|
|
18079
18079
|
if (!e) return !1;
|
|
18080
18080
|
for (const n of Uu)
|
|
18081
18081
|
if (e.includes(`"${n}"`)) return !0;
|
|
@@ -18083,10 +18083,10 @@ function cm(e, t) {
|
|
|
18083
18083
|
(n) => (e.startsWith(n) || e.startsWith(zu(n))) && /#,##0/.test(e)
|
|
18084
18084
|
);
|
|
18085
18085
|
}
|
|
18086
|
-
function fm(e, t) {
|
|
18087
|
-
return !e || e === "General" || e === "@" ? !1 : !!(cm(e, t) || e.includes('_("') && /#,?#+0/.test(e) || /#,##0/.test(e) && !e.includes("%") && ml(t).some((r) => e.includes(r)));
|
|
18088
|
-
}
|
|
18089
18086
|
function dm(e, t) {
|
|
18087
|
+
return !e || e === "General" || e === "@" ? !1 : !!(fm(e, t) || e.includes('_("') && /#,?#+0/.test(e) || /#,##0/.test(e) && !e.includes("%") && ml(t).some((r) => e.includes(r)));
|
|
18088
|
+
}
|
|
18089
|
+
function mm(e, t) {
|
|
18090
18090
|
if (typeof e != "string" || e.trim() === "") return null;
|
|
18091
18091
|
let n = e.trim();
|
|
18092
18092
|
if (n.startsWith("=") || n.startsWith("'")) return null;
|
|
@@ -18120,7 +18120,7 @@ function dm(e, t) {
|
|
|
18120
18120
|
return null;
|
|
18121
18121
|
}
|
|
18122
18122
|
function na(e, t, n) {
|
|
18123
|
-
const r =
|
|
18123
|
+
const r = mm(e, n);
|
|
18124
18124
|
return r || Je(t);
|
|
18125
18125
|
}
|
|
18126
18126
|
function zu(e) {
|
|
@@ -18134,7 +18134,7 @@ function ct(e, t) {
|
|
|
18134
18134
|
return Lt.format(e, t);
|
|
18135
18135
|
}
|
|
18136
18136
|
const wa = 15;
|
|
18137
|
-
function
|
|
18137
|
+
function hm(e) {
|
|
18138
18138
|
var l;
|
|
18139
18139
|
if (typeof e.m == "string" && e.m.includes("."))
|
|
18140
18140
|
return (((l = e.m.split(".")[1]) == null ? void 0 : l.replace(/[^0-9]/g, "")) ?? "").length;
|
|
@@ -18152,9 +18152,9 @@ function mm(e) {
|
|
|
18152
18152
|
}
|
|
18153
18153
|
return 0;
|
|
18154
18154
|
}
|
|
18155
|
-
function
|
|
18155
|
+
function pm(e) {
|
|
18156
18156
|
var t;
|
|
18157
|
-
return ((t = e.ct) == null ? void 0 : t.dp) != null && e.ct.dp >= 0 ? Math.min(wa, Math.floor(e.ct.dp)) :
|
|
18157
|
+
return ((t = e.ct) == null ? void 0 : t.dp) != null && e.ct.dp >= 0 ? Math.min(wa, Math.floor(e.ct.dp)) : hm(e);
|
|
18158
18158
|
}
|
|
18159
18159
|
function ha(e) {
|
|
18160
18160
|
const t = e.ct;
|
|
@@ -18200,7 +18200,7 @@ function ha(e) {
|
|
|
18200
18200
|
function Fa(e, t) {
|
|
18201
18201
|
return Lt.is_date(e, t);
|
|
18202
18202
|
}
|
|
18203
|
-
function
|
|
18203
|
+
function gm(e) {
|
|
18204
18204
|
let t = Number(e);
|
|
18205
18205
|
if (typeof e == "number")
|
|
18206
18206
|
return e;
|
|
@@ -18211,7 +18211,7 @@ function pm(e) {
|
|
|
18211
18211
|
function Y1(e, t, n) {
|
|
18212
18212
|
var a, l, o, i, s, u;
|
|
18213
18213
|
let r = at(e, t, n, "m");
|
|
18214
|
-
return r == null ? r = at(e, t, n, "v") : Number.isNaN(
|
|
18214
|
+
return r == null ? r = at(e, t, n, "v") : Number.isNaN(gm(r)) ? ((o = (l = (a = n[e]) == null ? void 0 : a[t]) == null ? void 0 : l.ct) == null ? void 0 : o.t) === "d" || ((u = (s = (i = n[e]) == null ? void 0 : i[t]) == null ? void 0 : s.ct) == null ? void 0 : u.t) === "b" || (r = at(e, t, n, "v")) : p.isString(r) && r.indexOf("%") > -1 || (r = at(e, t, n, "v")), r;
|
|
18215
18215
|
}
|
|
18216
18216
|
const pa = [
|
|
18217
18217
|
"#c1232b",
|
|
@@ -18270,11 +18270,11 @@ function Wn(e, t) {
|
|
|
18270
18270
|
let n = p.sortedIndex(t, e);
|
|
18271
18271
|
return n >= t.length && e > 0 ? n = t.length - 1 : n === -1 && e <= 0 && (n = 0), Po(n, t);
|
|
18272
18272
|
}
|
|
18273
|
-
const
|
|
18273
|
+
const ym = 15, bm = 50, V1 = 100, G1 = 300, j1 = 3e4, wm = "fortune-formula-execution-debug";
|
|
18274
18274
|
function X1() {
|
|
18275
18275
|
if (typeof window > "u") return !1;
|
|
18276
18276
|
try {
|
|
18277
|
-
return localStorage.getItem(
|
|
18277
|
+
return localStorage.getItem(wm) === "true";
|
|
18278
18278
|
} catch {
|
|
18279
18279
|
return !1;
|
|
18280
18280
|
}
|
|
@@ -18282,16 +18282,16 @@ function X1() {
|
|
|
18282
18282
|
function Ho(e) {
|
|
18283
18283
|
return !!(e.isFormulaCalculating && e.formulaAsyncEval);
|
|
18284
18284
|
}
|
|
18285
|
-
const
|
|
18285
|
+
const vm = /\b(SEQUENCE|FILTER|SORT|SORTBY|UNIQUE|TRANSPOSE|ARRAYFORMULA|INDIRECT|OFFSET|INDEX|SPARKLINE)\s*\(/i;
|
|
18286
18286
|
function Z1(e) {
|
|
18287
|
-
return
|
|
18287
|
+
return vm.test(e);
|
|
18288
18288
|
}
|
|
18289
18289
|
function Ir(e, t) {
|
|
18290
18290
|
if (t == null) return;
|
|
18291
18291
|
const n = e.config, r = { ...n || {}, ...t };
|
|
18292
18292
|
t.cellFormatRanges == null && (n == null ? void 0 : n.cellFormatRanges) != null && (r.cellFormatRanges = n.cellFormatRanges), e.config = r;
|
|
18293
18293
|
}
|
|
18294
|
-
function
|
|
18294
|
+
function _m(e, t, n, r, a, l, o) {
|
|
18295
18295
|
if (!t || !(n != null && n.length)) return null;
|
|
18296
18296
|
const i = bu(
|
|
18297
18297
|
t.cellFormatRanges,
|
|
@@ -18310,23 +18310,23 @@ function vm(e, t, n, r, a, l, o) {
|
|
|
18310
18310
|
t.cellFormatRanges = i.ranges, e.config || (e.config = {}), e.config.cellFormatRanges = i.ranges;
|
|
18311
18311
|
return i.ranges;
|
|
18312
18312
|
}
|
|
18313
|
-
function
|
|
18313
|
+
function Tm(e) {
|
|
18314
18314
|
const t = ke(e, e.currentSheetId);
|
|
18315
18315
|
if (t == null) return;
|
|
18316
18316
|
const n = e.luckysheetfile[t];
|
|
18317
18317
|
Ir(n, e.config), e.config = n.config, n.luckysheet_select_save = e.luckysheet_select_save, n.luckysheet_selection_range = e.luckysheet_selection_range, n.zoomRatio = e.zoomRatio;
|
|
18318
18318
|
}
|
|
18319
|
-
function
|
|
18320
|
-
|
|
18319
|
+
function Cm(e) {
|
|
18320
|
+
Tm(e);
|
|
18321
18321
|
}
|
|
18322
18322
|
function rr(e, t, n, r, a) {
|
|
18323
18323
|
var o, i, s, u;
|
|
18324
18324
|
if (t === e.currentSheetId)
|
|
18325
18325
|
return;
|
|
18326
18326
|
const l = e.luckysheetfile[ke(e, t)];
|
|
18327
|
-
((i = (o = e.hooks).beforeActivateSheet) == null ? void 0 : i.call(o, t)) !== !1 && (
|
|
18327
|
+
((i = (o = e.hooks).beforeActivateSheet) == null ? void 0 : i.call(o, t)) !== !1 && (Cm(e), e.currentSheetId = t, l.isPivotTable ? e.luckysheetcurrentisPivotTable = !0 : e.luckysheetcurrentisPivotTable = !1, e.hooks.afterActivateSheet && ((u = (s = e.hooks).afterActivateSheet) == null || u.call(s, t)));
|
|
18328
18328
|
}
|
|
18329
|
-
function
|
|
18329
|
+
function $m(e, t, n = void 0, r = !1, a = void 0, l = void 0) {
|
|
18330
18330
|
var c, f, d, m;
|
|
18331
18331
|
if (
|
|
18332
18332
|
/* isEditMode() || */
|
|
@@ -18349,7 +18349,7 @@ function Cm(e, t, n = void 0, r = !1, a = void 0, l = void 0) {
|
|
|
18349
18349
|
} : l;
|
|
18350
18350
|
a !== void 0 && (u.name = a), u.id === void 0 && (u.id = cu()), ((f = (c = e.hooks).beforeAddSheet) == null ? void 0 : f.call(c, u)) !== !1 && (e.luckysheetfile.push(u), e.hooks.afterAddSheet && ((m = (d = e.hooks).afterAddSheet) == null || m.call(d, { ...u })));
|
|
18351
18351
|
}
|
|
18352
|
-
function
|
|
18352
|
+
function Nm(e, t) {
|
|
18353
18353
|
var a, l, o, i, s, u;
|
|
18354
18354
|
if (e.allowEdit === !1)
|
|
18355
18355
|
return;
|
|
@@ -18376,7 +18376,7 @@ function $m(e, t) {
|
|
|
18376
18376
|
}
|
|
18377
18377
|
e.hooks.afterDeleteSheet && ((u = (s = e.hooks).afterDeleteSheet) == null || u.call(s, t));
|
|
18378
18378
|
}
|
|
18379
|
-
function
|
|
18379
|
+
function Sm(e, t) {
|
|
18380
18380
|
e.formulaCache.markDepGraphIncomplete(), t.forEach((n) => {
|
|
18381
18381
|
const { data: r, row: a, column: l } = n, o = ke(e, n.id);
|
|
18382
18382
|
if (r != null) {
|
|
@@ -18449,7 +18449,7 @@ function Qt(e) {
|
|
|
18449
18449
|
const r = e.slice(0, t), a = Number(e.slice(t + 1, n)), l = Number(e.slice(n + 1));
|
|
18450
18450
|
return !r || Number.isNaN(a) || Number.isNaN(l) ? null : { sheetId: r, r: a, c: l };
|
|
18451
18451
|
}
|
|
18452
|
-
function
|
|
18452
|
+
function km(e, t, n) {
|
|
18453
18453
|
return `${e}:${t}:${n}`;
|
|
18454
18454
|
}
|
|
18455
18455
|
function La(e, t) {
|
|
@@ -18491,7 +18491,7 @@ function Ur(e, t, n, r, a, l) {
|
|
|
18491
18491
|
)) == null ? void 0 : h.v) == null ? void 0 : g.f;
|
|
18492
18492
|
return typeof u == "string" ? u : void 0;
|
|
18493
18493
|
}
|
|
18494
|
-
function
|
|
18494
|
+
function Am(e, t) {
|
|
18495
18495
|
var s, u;
|
|
18496
18496
|
const n = /* @__PURE__ */ new Set();
|
|
18497
18497
|
e.formulaCache.depsByCell.forEach((c, f) => {
|
|
@@ -18533,7 +18533,7 @@ function km(e, t) {
|
|
|
18533
18533
|
function En() {
|
|
18534
18534
|
Gn = null;
|
|
18535
18535
|
}
|
|
18536
|
-
function
|
|
18536
|
+
function Em(e, t, n) {
|
|
18537
18537
|
e.formulaCache.depsByCell.forEach((r, a) => {
|
|
18538
18538
|
const l = Qt(a);
|
|
18539
18539
|
!l || l.sheetId !== t || r.forEach((o) => {
|
|
@@ -18542,7 +18542,7 @@ function Am(e, t, n) {
|
|
|
18542
18542
|
});
|
|
18543
18543
|
});
|
|
18544
18544
|
}
|
|
18545
|
-
function
|
|
18545
|
+
function Rm(e, t, n) {
|
|
18546
18546
|
e.formulaCache.revDepsByCell.forEach((r, a) => {
|
|
18547
18547
|
const l = Qt(a);
|
|
18548
18548
|
!l || l.sheetId !== t || r.forEach((o) => {
|
|
@@ -18551,7 +18551,7 @@ function Em(e, t, n) {
|
|
|
18551
18551
|
});
|
|
18552
18552
|
});
|
|
18553
18553
|
}
|
|
18554
|
-
function
|
|
18554
|
+
function Mm(e, t, n) {
|
|
18555
18555
|
e.luckysheetfile.forEach((r) => {
|
|
18556
18556
|
var o;
|
|
18557
18557
|
if (!r.id || r.id === t || n.has(r.id)) return;
|
|
@@ -18573,7 +18573,7 @@ function Rm(e, t, n) {
|
|
|
18573
18573
|
}), l && n.add(r.id);
|
|
18574
18574
|
});
|
|
18575
18575
|
}
|
|
18576
|
-
function
|
|
18576
|
+
function Im(e, t, n, r) {
|
|
18577
18577
|
const a = n.calcChain;
|
|
18578
18578
|
if (!(a != null && a.length)) return !0;
|
|
18579
18579
|
for (const l of a) {
|
|
@@ -18586,19 +18586,19 @@ function Mm(e, t, n, r) {
|
|
|
18586
18586
|
o === t ? n : void 0,
|
|
18587
18587
|
o === t ? r : void 0
|
|
18588
18588
|
);
|
|
18589
|
-
if (!(typeof i != "string" || !i.includes("!")) && !e.formulaCache.depsByCell.has(
|
|
18589
|
+
if (!(typeof i != "string" || !i.includes("!")) && !e.formulaCache.depsByCell.has(km(o, l.r, l.c)))
|
|
18590
18590
|
return !1;
|
|
18591
18591
|
}
|
|
18592
18592
|
return !0;
|
|
18593
18593
|
}
|
|
18594
|
-
function
|
|
18594
|
+
function qm(e, t) {
|
|
18595
18595
|
var i;
|
|
18596
18596
|
const n = /* @__PURE__ */ new Set(), r = ke(e, t);
|
|
18597
18597
|
if (r == null) return n;
|
|
18598
18598
|
const a = e.luckysheetfile[r], l = pl(a), o = (s) => {
|
|
18599
18599
|
typeof s != "string" || !s.startsWith("=") || La(e, s).forEach((u) => n.add(u));
|
|
18600
18600
|
};
|
|
18601
|
-
return
|
|
18601
|
+
return Im(e, t, a, l) || (i = a.calcChain) == null || i.forEach((s) => {
|
|
18602
18602
|
if (s == null) return;
|
|
18603
18603
|
const u = s.id ?? t, c = Ur(
|
|
18604
18604
|
e,
|
|
@@ -18611,7 +18611,7 @@ function Im(e, t) {
|
|
|
18611
18611
|
c && o(c);
|
|
18612
18612
|
}), n;
|
|
18613
18613
|
}
|
|
18614
|
-
function
|
|
18614
|
+
function Dm(e, t, n, r, a) {
|
|
18615
18615
|
e.formulaCache.formulasWithWideRangeDeps.forEach((l) => {
|
|
18616
18616
|
const o = Qt(l);
|
|
18617
18617
|
if (!o || o.sheetId !== t) return;
|
|
@@ -18628,11 +18628,11 @@ function qm(e, t, n, r, a) {
|
|
|
18628
18628
|
);
|
|
18629
18629
|
});
|
|
18630
18630
|
}
|
|
18631
|
-
function
|
|
18631
|
+
function xm(e, t) {
|
|
18632
18632
|
const n = /* @__PURE__ */ new Set([t]), r = ke(e, t), a = r != null ? e.luckysheetfile[r] : void 0, l = a != null ? pl(a) : void 0;
|
|
18633
|
-
|
|
18633
|
+
Em(e, t, n), Rm(e, t, n), qm(e, t).forEach(
|
|
18634
18634
|
(i) => n.add(i)
|
|
18635
|
-
),
|
|
18635
|
+
), Mm(e, t, n), a && Dm(
|
|
18636
18636
|
e,
|
|
18637
18637
|
t,
|
|
18638
18638
|
n,
|
|
@@ -18643,10 +18643,10 @@ function Dm(e, t) {
|
|
|
18643
18643
|
return o && n.add(o), n;
|
|
18644
18644
|
}
|
|
18645
18645
|
function Vu(e, t) {
|
|
18646
|
-
const n =
|
|
18646
|
+
const n = Am(e, t);
|
|
18647
18647
|
if (Gn && Gn.activeSheetId === t && Gn.fingerprint === n)
|
|
18648
18648
|
return new Set(Gn.required);
|
|
18649
|
-
const r =
|
|
18649
|
+
const r = xm(e, t);
|
|
18650
18650
|
return Gn = {
|
|
18651
18651
|
activeSheetId: t,
|
|
18652
18652
|
fingerprint: n,
|
|
@@ -18666,7 +18666,7 @@ function J1(e) {
|
|
|
18666
18666
|
});
|
|
18667
18667
|
}), t;
|
|
18668
18668
|
}
|
|
18669
|
-
function
|
|
18669
|
+
function Om(e, t) {
|
|
18670
18670
|
const n = ke(e, t);
|
|
18671
18671
|
if (n == null) return;
|
|
18672
18672
|
const r = e.luckysheetfile[n];
|
|
@@ -18683,15 +18683,15 @@ function ey(e, t, n) {
|
|
|
18683
18683
|
}
|
|
18684
18684
|
const r = Vu(e, t);
|
|
18685
18685
|
return e.luckysheetfile.forEach((a) => {
|
|
18686
|
-
a.id && a.data && !r.has(a.id) &&
|
|
18686
|
+
a.id && a.data && !r.has(a.id) && Om(e, a.id);
|
|
18687
18687
|
}), r.forEach((a) => {
|
|
18688
18688
|
_n(e, { id: a });
|
|
18689
18689
|
}), r;
|
|
18690
18690
|
}
|
|
18691
|
-
function
|
|
18691
|
+
function Fm(e, t, n, r, a) {
|
|
18692
18692
|
return `${e}:${t}:${n}:${r}:${a}`;
|
|
18693
18693
|
}
|
|
18694
|
-
function
|
|
18694
|
+
function Lm(e, t, n, r, a, l) {
|
|
18695
18695
|
const o = [];
|
|
18696
18696
|
for (let i = n; i <= r; i += 1)
|
|
18697
18697
|
for (let s = a; s <= l; s += 1) {
|
|
@@ -18714,7 +18714,7 @@ function ra(e, t, n, r, a) {
|
|
|
18714
18714
|
}
|
|
18715
18715
|
return l;
|
|
18716
18716
|
}
|
|
18717
|
-
function
|
|
18717
|
+
function Bm(e) {
|
|
18718
18718
|
e.rangeValuePassCache = /* @__PURE__ */ new Map(), e.rangeValuePassCacheStats = { hits: 0, misses: 0 };
|
|
18719
18719
|
}
|
|
18720
18720
|
function Uo(e) {
|
|
@@ -18732,7 +18732,7 @@ function Ns(e, t, n = []) {
|
|
|
18732
18732
|
}
|
|
18733
18733
|
return r;
|
|
18734
18734
|
}
|
|
18735
|
-
function
|
|
18735
|
+
function Pm() {
|
|
18736
18736
|
return `dn_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
|
|
18737
18737
|
}
|
|
18738
18738
|
function Gu(e) {
|
|
@@ -18793,7 +18793,7 @@ function ry(e, t) {
|
|
|
18793
18793
|
if (ke(e, t.sheetId) == null)
|
|
18794
18794
|
return { ok: !1, error: "Sheet not found." };
|
|
18795
18795
|
const r = {
|
|
18796
|
-
id:
|
|
18796
|
+
id: Pm(),
|
|
18797
18797
|
name: n,
|
|
18798
18798
|
sheetId: t.sheetId,
|
|
18799
18799
|
range: {
|
|
@@ -18885,7 +18885,7 @@ function ks(e, t, n, r) {
|
|
|
18885
18885
|
const l = e < n ? [e, Math.min(t, n - 1)] : null, o = t > r ? [Math.max(e, r + 1) - a, t - a] : null;
|
|
18886
18886
|
return l && o ? [l[0], o[1]] : l ? [l[0], l[1]] : o ? [o[0], o[1]] : null;
|
|
18887
18887
|
}
|
|
18888
|
-
function
|
|
18888
|
+
function Hm(e, t, n, r, a) {
|
|
18889
18889
|
if (t === "row") {
|
|
18890
18890
|
const o = Ss(
|
|
18891
18891
|
e.row[0],
|
|
@@ -18905,7 +18905,7 @@ function Pm(e, t, n, r, a) {
|
|
|
18905
18905
|
);
|
|
18906
18906
|
return l ? { row: [...e.row], column: l } : null;
|
|
18907
18907
|
}
|
|
18908
|
-
function
|
|
18908
|
+
function Um(e, t, n, r) {
|
|
18909
18909
|
if (t === "row") {
|
|
18910
18910
|
const l = ks(e.row[0], e.row[1], n, r);
|
|
18911
18911
|
return l ? { row: l, column: [...e.column] } : null;
|
|
@@ -18918,7 +18918,7 @@ function Hm(e, t, n, r) {
|
|
|
18918
18918
|
);
|
|
18919
18919
|
return a ? { row: [...e.row], column: a } : null;
|
|
18920
18920
|
}
|
|
18921
|
-
function
|
|
18921
|
+
function zm(e, t, n, r, a, l) {
|
|
18922
18922
|
const o = e.definedNames || [];
|
|
18923
18923
|
if (!o.length) return [];
|
|
18924
18924
|
const i = [];
|
|
@@ -18926,7 +18926,7 @@ function Um(e, t, n, r, a, l) {
|
|
|
18926
18926
|
for (let u = 0; u < o.length; u += 1) {
|
|
18927
18927
|
const c = o[u];
|
|
18928
18928
|
if (c.sheetId !== t) continue;
|
|
18929
|
-
const f =
|
|
18929
|
+
const f = Hm(
|
|
18930
18930
|
c.range,
|
|
18931
18931
|
n,
|
|
18932
18932
|
r,
|
|
@@ -18937,7 +18937,7 @@ function Um(e, t, n, r, a, l) {
|
|
|
18937
18937
|
}
|
|
18938
18938
|
return s && lr(e), i;
|
|
18939
18939
|
}
|
|
18940
|
-
function
|
|
18940
|
+
function Wm(e, t, n, r, a) {
|
|
18941
18941
|
const l = e.definedNames || [];
|
|
18942
18942
|
if (!l.length) return [];
|
|
18943
18943
|
const o = [], i = [];
|
|
@@ -18946,7 +18946,7 @@ function zm(e, t, n, r, a) {
|
|
|
18946
18946
|
i.push(s);
|
|
18947
18947
|
continue;
|
|
18948
18948
|
}
|
|
18949
|
-
const u =
|
|
18949
|
+
const u = Um(s.range, n, r, a);
|
|
18950
18950
|
if (!u) {
|
|
18951
18951
|
o.push(s.name);
|
|
18952
18952
|
continue;
|
|
@@ -18961,8 +18961,8 @@ function sy(e, t) {
|
|
|
18961
18961
|
const r = [], a = n.filter((l) => l.sheetId === t || l.localSheetId === t ? (r.push(l.name), !1) : !0);
|
|
18962
18962
|
return r.length && (e.definedNames = a, lr(e)), r;
|
|
18963
18963
|
}
|
|
18964
|
-
let wn = 0,
|
|
18965
|
-
const
|
|
18964
|
+
let wn = 0, Ym = 0, Nr = [];
|
|
18965
|
+
const Vm = {
|
|
18966
18966
|
"^": 0,
|
|
18967
18967
|
"%": 1,
|
|
18968
18968
|
"*": 1,
|
|
@@ -18976,10 +18976,10 @@ const co = "", sn = (e) => (e || "").replace(/\u00a0/g, " ").replace(/\u200b/
|
|
|
18976
18976
|
function Es(e, t) {
|
|
18977
18977
|
return e.slice(0, t).trimEnd().slice(-1);
|
|
18978
18978
|
}
|
|
18979
|
-
const
|
|
18979
|
+
const Gm = "[^'!:]+", jm = "'(?:(?!').|'')*'", Xm = `(${Gm}|${jm})!`, Zm = "[$]?[A-Za-z]+[$]?[0-9]+", Km = "[$]?[A-Za-z]+", Qm = "[$]?[0-9]+", Jm = `(?:${Zm}|${Km}|${Qm})`, Rs = `(?:${Xm})?(${Jm})`, eh = new RegExp(
|
|
18980
18980
|
`^${Rs}(?:[:]${Rs})?$`
|
|
18981
18981
|
);
|
|
18982
|
-
function
|
|
18982
|
+
function th(e) {
|
|
18983
18983
|
if (!e) return e;
|
|
18984
18984
|
const t = new Date(1900, 2, 1, 0, 0, 0), n = (o) => {
|
|
18985
18985
|
let i = Date.UTC(
|
|
@@ -19035,7 +19035,7 @@ function Ku(e, t) {
|
|
|
19035
19035
|
};
|
|
19036
19036
|
return o(e), n;
|
|
19037
19037
|
}
|
|
19038
|
-
function
|
|
19038
|
+
function nh(e, t) {
|
|
19039
19039
|
const n = new Set(e), r = Array.from(e);
|
|
19040
19040
|
for (; r.length > 0; ) {
|
|
19041
19041
|
const a = r.shift(), l = t.get(a);
|
|
@@ -19045,7 +19045,7 @@ function th(e, t) {
|
|
|
19045
19045
|
}
|
|
19046
19046
|
return n;
|
|
19047
19047
|
}
|
|
19048
|
-
function
|
|
19048
|
+
function rh(e) {
|
|
19049
19049
|
const t = e.indexOf(":"), n = e.indexOf(":", t + 1);
|
|
19050
19050
|
if (t === -1 || n === -1) return null;
|
|
19051
19051
|
const r = e.slice(0, t), a = Number(e.slice(t + 1, n)), l = Number(e.slice(n + 1));
|
|
@@ -19147,7 +19147,7 @@ class Qu {
|
|
|
19147
19147
|
}, a = () => {
|
|
19148
19148
|
t.activeDepCollection && (t.activeDepCollection.hasWideRangeDep = !0);
|
|
19149
19149
|
};
|
|
19150
|
-
this.data_parm_index = 0, this.selectingRangeIndex = -1, this.rangeSelectionActive = null, this.formulaEditorOwner = null, this.functionlistMap = {}, this.execFunctionGlobalData = {}, this.cellTextToIndexList = {}, this.depsByCell = /* @__PURE__ */ new Map(), this.revDepsByCell = /* @__PURE__ */ new Map(), this.formulasWithWideRangeDeps = /* @__PURE__ */ new Set(), this.depGraphComplete = !1, this.depGraphEpoch = 0, this.depGraphSheetSizes = /* @__PURE__ */ new Map(), this.activeDepCollection = null, this.parser = new
|
|
19150
|
+
this.data_parm_index = 0, this.selectingRangeIndex = -1, this.rangeSelectionActive = null, this.formulaEditorOwner = null, this.functionlistMap = {}, this.execFunctionGlobalData = {}, this.cellTextToIndexList = {}, this.depsByCell = /* @__PURE__ */ new Map(), this.revDepsByCell = /* @__PURE__ */ new Map(), this.formulasWithWideRangeDeps = /* @__PURE__ */ new Set(), this.depGraphComplete = !1, this.depGraphEpoch = 0, this.depGraphSheetSizes = /* @__PURE__ */ new Map(), this.activeDepCollection = null, this.parser = new Sd(), this.parser.on(
|
|
19151
19151
|
"callCellValue",
|
|
19152
19152
|
(l, o, i) => {
|
|
19153
19153
|
var h, g;
|
|
@@ -19180,13 +19180,13 @@ class Qu {
|
|
|
19180
19180
|
const w = typeof i == "object" ? i.row : null, v = typeof i == "object" ? i.column : null, _ = w != null && v != null && w >= d && w <= m && v >= h && v <= g;
|
|
19181
19181
|
let T = null, C = "", N = 0;
|
|
19182
19182
|
if (t.rangeValuePassCache) {
|
|
19183
|
-
const A =
|
|
19183
|
+
const A = Fm(
|
|
19184
19184
|
c,
|
|
19185
19185
|
d,
|
|
19186
19186
|
m,
|
|
19187
19187
|
h,
|
|
19188
19188
|
g
|
|
19189
|
-
), $ =
|
|
19189
|
+
), $ = Lm(
|
|
19190
19190
|
u.formulaCache.execFunctionGlobalData ?? {},
|
|
19191
19191
|
c,
|
|
19192
19192
|
d,
|
|
@@ -19375,7 +19375,7 @@ function Cn(e, t, n) {
|
|
|
19375
19375
|
if (t.indexOf("!") > -1) {
|
|
19376
19376
|
if (t in e.formulaCache.cellTextToIndexList)
|
|
19377
19377
|
return e.formulaCache.cellTextToIndexList[t];
|
|
19378
|
-
const m = t.match(
|
|
19378
|
+
const m = t.match(eh);
|
|
19379
19379
|
if (m == null)
|
|
19380
19380
|
return null;
|
|
19381
19381
|
const [, h, g, y, b] = m;
|
|
@@ -19415,7 +19415,7 @@ function Cn(e, t, n) {
|
|
|
19415
19415
|
};
|
|
19416
19416
|
return Ms(e, t, d), d;
|
|
19417
19417
|
}
|
|
19418
|
-
function
|
|
19418
|
+
function ah(e) {
|
|
19419
19419
|
if (e.length === 0)
|
|
19420
19420
|
return "";
|
|
19421
19421
|
const t = [];
|
|
@@ -19429,7 +19429,7 @@ function rh(e) {
|
|
|
19429
19429
|
}
|
|
19430
19430
|
return t.length > 0 ? t[0] : "";
|
|
19431
19431
|
}
|
|
19432
|
-
function
|
|
19432
|
+
function oh(e, t, n, r, a, l, o) {
|
|
19433
19433
|
if (t.substring(0, 30) === "luckysheet_getSpecialReference" || t.substring(0, 20) === "luckysheet_function.") {
|
|
19434
19434
|
if (t.substring(0, 20) === "luckysheet_function.") {
|
|
19435
19435
|
let i = t.split(".")[1];
|
|
@@ -19505,7 +19505,7 @@ function br(e, t, n, r, a, l, o) {
|
|
|
19505
19505
|
u += ",";
|
|
19506
19506
|
else if (y in st && f.squote === 0 && f.dquote === 0 && f.braces === 0) {
|
|
19507
19507
|
let b = "";
|
|
19508
|
-
const w =
|
|
19508
|
+
const w = Vm;
|
|
19509
19509
|
if (s + 1 < i.length && (b = i[s + 1]), y + b in st) {
|
|
19510
19510
|
if (h.length === 0) {
|
|
19511
19511
|
if (p.trim(u).length > 0 ? m.unshift(
|
|
@@ -19568,11 +19568,11 @@ function br(e, t, n, r, a, l, o) {
|
|
|
19568
19568
|
if (b.length > 0 && m.unshift(b), d.length > 0)
|
|
19569
19569
|
for (c.length > 0 && (m.unshift(c), c = ""); d.length > 0; )
|
|
19570
19570
|
m.unshift(d.shift());
|
|
19571
|
-
m.length > 0 ? c =
|
|
19571
|
+
m.length > 0 ? c = ah(m) : c += b;
|
|
19572
19572
|
}
|
|
19573
19573
|
s += 1;
|
|
19574
19574
|
}
|
|
19575
|
-
return
|
|
19575
|
+
return oh(
|
|
19576
19576
|
e,
|
|
19577
19577
|
c,
|
|
19578
19578
|
n,
|
|
@@ -19610,7 +19610,7 @@ function ec(e, t, n, r) {
|
|
|
19610
19610
|
u && (u.delete(a), u.size === 0 && e.formulaCache.revDepsByCell.delete(s));
|
|
19611
19611
|
}), e.formulaCache.depsByCell.delete(a), En());
|
|
19612
19612
|
}
|
|
19613
|
-
function
|
|
19613
|
+
function lh(e, t, n) {
|
|
19614
19614
|
if (n.length === 0) return;
|
|
19615
19615
|
n.forEach(({ r: i, c: s }) => ec(e, i, s, t));
|
|
19616
19616
|
const r = e.luckysheetfile[ke(e, t)], a = new Set(n.map(({ r: i, c: s }) => `${i}_${s}`)), { calcChain: l } = r;
|
|
@@ -19648,7 +19648,7 @@ function xt(e, t, n, r) {
|
|
|
19648
19648
|
]);
|
|
19649
19649
|
}
|
|
19650
19650
|
}
|
|
19651
|
-
function
|
|
19651
|
+
function ih(e) {
|
|
19652
19652
|
const t = e.match(/\(/g), n = e.match(/\)/g), r = e.match(/(['"])(?:(?!\1).)*?\1/g), a = e.match(/(['"])(?:(?!\1).)*?\1/g);
|
|
19653
19653
|
let l = 0, o = 0;
|
|
19654
19654
|
p.isNil(t) || (l += t.length), p.isNil(n) || (o += n.length);
|
|
@@ -19687,7 +19687,7 @@ function zr(e, t, n, r, a) {
|
|
|
19687
19687
|
};
|
|
19688
19688
|
s.push(u), i.calcChain = s, e.luckysheetfile = l, En();
|
|
19689
19689
|
}
|
|
19690
|
-
function
|
|
19690
|
+
function sh(e) {
|
|
19691
19691
|
if (!e.startsWith("=")) return e;
|
|
19692
19692
|
const t = e.indexOf("(");
|
|
19693
19693
|
return t === -1 ? e : `=${e.substring(1, t).replace(/\./g, "_")}${e.substring(t)}`;
|
|
@@ -19706,24 +19706,24 @@ function yl(e, t) {
|
|
|
19706
19706
|
r.id && a && n.depGraphSheetSizes.set(r.id, a);
|
|
19707
19707
|
}), n.depGraphComplete = !0);
|
|
19708
19708
|
}
|
|
19709
|
-
function
|
|
19709
|
+
function uh(e, t, n) {
|
|
19710
19710
|
const r = nc(n);
|
|
19711
19711
|
return r != null && e.formulaCache.depGraphSheetSizes.get(t) === r;
|
|
19712
19712
|
}
|
|
19713
|
-
const
|
|
19713
|
+
const rc = /\b(INDIRECT|OFFSET)\s*\(/i;
|
|
19714
19714
|
function Ot(e, t, n, r, a, l, o, i) {
|
|
19715
19715
|
var N, A;
|
|
19716
19716
|
const s = t;
|
|
19717
|
-
if (p.isNil(a) && (a = e.currentSheetId), (t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t =
|
|
19717
|
+
if (p.isNil(a) && (a = e.currentSheetId), (t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = sh(t)), t.indexOf(tr.r) > -1)
|
|
19718
19718
|
return [!1, tr.r, t];
|
|
19719
|
-
|
|
19719
|
+
ih(t) || (t += ")"), e.calculateSheetId = a;
|
|
19720
19720
|
const u = a || e.currentSheetId, c = `${u}:${n}:${r}`, f = /* @__PURE__ */ new Set();
|
|
19721
19721
|
e.formulaCache.formulasWithWideRangeDeps.delete(c), e.formulaCache.activeDepCollection = {
|
|
19722
19722
|
originKey: c,
|
|
19723
19723
|
deps: f,
|
|
19724
19724
|
hasWideRangeDep: !1
|
|
19725
19725
|
}, e.formulaCache.parser.context = e;
|
|
19726
|
-
const d =
|
|
19726
|
+
const d = th(t.substring(1));
|
|
19727
19727
|
let m, h = !1;
|
|
19728
19728
|
try {
|
|
19729
19729
|
m = e.formulaCache.parser.parse(d, {
|
|
@@ -19734,7 +19734,7 @@ function Ot(e, t, n, r, a, l, o, i) {
|
|
|
19734
19734
|
} finally {
|
|
19735
19735
|
h = ((N = e.formulaCache.activeDepCollection) == null ? void 0 : N.hasWideRangeDep) ?? !1, e.formulaCache.activeDepCollection = null;
|
|
19736
19736
|
}
|
|
19737
|
-
(h ||
|
|
19737
|
+
(h || rc.test(t)) && e.formulaCache.formulasWithWideRangeDeps.add(c);
|
|
19738
19738
|
const g = e.formulaCache.depsByCell.get(c) ?? /* @__PURE__ */ new Set();
|
|
19739
19739
|
if (e.formulaCache.depsByCell.set(c, f), g.forEach(($) => {
|
|
19740
19740
|
if (f.has($)) return;
|
|
@@ -19751,7 +19751,7 @@ function Ot(e, t, n, r, a, l, o, i) {
|
|
|
19751
19751
|
})) : bn(e, n, r), f.size > 0 && m.error !== qt)
|
|
19752
19752
|
for (const $ of f) {
|
|
19753
19753
|
if ($ === c) continue;
|
|
19754
|
-
const S =
|
|
19754
|
+
const S = rh($);
|
|
19755
19755
|
if (!S) continue;
|
|
19756
19756
|
const M = (A = e == null ? void 0 : e.formulaCache.execFunctionGlobalData) == null ? void 0 : A[`${S.r}_${S.c}_${S.sheetId}`];
|
|
19757
19757
|
if (p.isNil(M)) continue;
|
|
@@ -19781,7 +19781,7 @@ function Ot(e, t, n, r, a, l, o, i) {
|
|
|
19781
19781
|
e.formulaCache.parser.cryptoDenomination && e.formulaCache.parser.cryptoDenomination !== "" && (typeof w == "number" || typeof w == "string") && (v = `${Number(w).toFixed(
|
|
19782
19782
|
e.formulaCache.parser.cryptoDecimals
|
|
19783
19783
|
)} ${e.formulaCache.parser.cryptoDenomination}`);
|
|
19784
|
-
const _ = !p.isNil(b), T =
|
|
19784
|
+
const _ = !p.isNil(b), T = tm(v == null ? void 0 : v.toString());
|
|
19785
19785
|
return _ || T ? Lr(e, n, r, {
|
|
19786
19786
|
row_column: `${n}_${r}`,
|
|
19787
19787
|
title: b === qt ? Sr : "Error",
|
|
@@ -19813,7 +19813,7 @@ function ch(e, t) {
|
|
|
19813
19813
|
}
|
|
19814
19814
|
return s.push(t), s;
|
|
19815
19815
|
}
|
|
19816
|
-
function
|
|
19816
|
+
function ac(e) {
|
|
19817
19817
|
var n, r;
|
|
19818
19818
|
const { luckysheetfile: t } = e;
|
|
19819
19819
|
if (e.groupValuesRefreshData.length > 0) {
|
|
@@ -19991,7 +19991,7 @@ function dh(e, t, n, r, a = [], l) {
|
|
|
19991
19991
|
});
|
|
19992
19992
|
}
|
|
19993
19993
|
}
|
|
19994
|
-
function mh(e, t, n =
|
|
19994
|
+
function mh(e, t, n = bm) {
|
|
19995
19995
|
Ba(e);
|
|
19996
19996
|
const r = new Set(t.calcChainKeys), a = new Set(t.impactedByCircular), l = new Set(t.cycleNodes), o = Ae(e), i = Math.min(t.nextIndex + n, t.formulaRunList.length);
|
|
19997
19997
|
for (let u = t.nextIndex; u < i; u += 1) {
|
|
@@ -20026,8 +20026,8 @@ function wl(e, t) {
|
|
|
20026
20026
|
a.length && (e.formulaCache.execFunctionExist = a, Bt(e, null, null, null, null, Ae(e)), e.formulaCache.execFunctionExist = void 0);
|
|
20027
20027
|
}
|
|
20028
20028
|
function Bt(e, t, n, r, a, l, o = !1) {
|
|
20029
|
-
p.isNil(l) && (l = Ae(e)), p.isNil(a) && (a = e.currentSheetId), e.formulaCache.execFunctionGlobalData = {},
|
|
20030
|
-
const i = `${a}:${t}:${n}`, s = Ku(i, e.formulaCache.depsByCell), u = s.size ?
|
|
20029
|
+
p.isNil(l) && (l = Ae(e)), p.isNil(a) && (a = e.currentSheetId), e.formulaCache.execFunctionGlobalData = {}, Bm(e.formulaCache);
|
|
20030
|
+
const i = `${a}:${t}:${n}`, s = Ku(i, e.formulaCache.depsByCell), u = s.size ? nh(s, e.formulaCache.revDepsByCell) : /* @__PURE__ */ new Set();
|
|
20031
20031
|
if (!p.isNil(r)) {
|
|
20032
20032
|
const $ = [[{ v: void 0 }]];
|
|
20033
20033
|
Pt(e, 0, 0, $, r), [
|
|
@@ -20077,7 +20077,7 @@ function Bt(e, t, n, r, a, l, o = !1) {
|
|
|
20077
20077
|
f = c.filter(
|
|
20078
20078
|
(U) => M.has(`${U.id}:${U.r}:${U.c}`)
|
|
20079
20079
|
);
|
|
20080
|
-
else if (
|
|
20080
|
+
else if (uh(e, a, Ae(e, a))) {
|
|
20081
20081
|
e.formulaCache.execFunctionExist = void 0, Uo(e.formulaCache);
|
|
20082
20082
|
return;
|
|
20083
20083
|
} else
|
|
@@ -20245,7 +20245,7 @@ function Bt(e, t, n, r, a, l, o = !1) {
|
|
|
20245
20245
|
const A = /* @__PURE__ */ new Set();
|
|
20246
20246
|
if (c.forEach(($) => {
|
|
20247
20247
|
A.add(`${$.r}_${$.c}_${$.id}`);
|
|
20248
|
-
}), T.length >=
|
|
20248
|
+
}), T.length >= ym) {
|
|
20249
20249
|
e.formulaAsyncEval = {
|
|
20250
20250
|
formulaRunList: T.map(($) => ({
|
|
20251
20251
|
r: $.r,
|
|
@@ -20257,7 +20257,7 @@ function Bt(e, t, n, r, a, l, o = !1) {
|
|
|
20257
20257
|
calcChainKeys: Array.from(A),
|
|
20258
20258
|
impactedByCircular: Array.from(u),
|
|
20259
20259
|
cycleNodes: Array.from(s),
|
|
20260
|
-
workerSnapshotKey: `formula-job-${
|
|
20260
|
+
workerSnapshotKey: `formula-job-${Ym += 1}`,
|
|
20261
20261
|
fullPassEpoch: d,
|
|
20262
20262
|
nextIndex: 0,
|
|
20263
20263
|
total: T.length,
|
|
@@ -20373,10 +20373,10 @@ function ph(e) {
|
|
|
20373
20373
|
moveXY: n.moveXY
|
|
20374
20374
|
}, !0);
|
|
20375
20375
|
}
|
|
20376
|
-
function
|
|
20376
|
+
function oc(e, t) {
|
|
20377
20377
|
e.formulaRangeSelect = t;
|
|
20378
20378
|
}
|
|
20379
|
-
function
|
|
20379
|
+
function lc(e, t, n = -1) {
|
|
20380
20380
|
const r = Ju(`<div>${t}</div>`), a = [];
|
|
20381
20381
|
r.querySelectorAll("span.fortune-formula-functionrange-cell").forEach((l) => {
|
|
20382
20382
|
const o = parseInt(l.getAttribute("rangeindex") || "0", 10);
|
|
@@ -20505,7 +20505,7 @@ function yh(e, t) {
|
|
|
20505
20505
|
const i = [...r, ...a, ...l];
|
|
20506
20506
|
i.length <= 0 || (e.functionCandidates = i);
|
|
20507
20507
|
}
|
|
20508
|
-
function
|
|
20508
|
+
function ic() {
|
|
20509
20509
|
var a, l, o, i, s;
|
|
20510
20510
|
const e = window.getSelection();
|
|
20511
20511
|
if (!e) return null;
|
|
@@ -20570,8 +20570,8 @@ function Is(e, t, n) {
|
|
|
20570
20570
|
}
|
|
20571
20571
|
return u;
|
|
20572
20572
|
}
|
|
20573
|
-
function
|
|
20574
|
-
const n =
|
|
20573
|
+
function sc(e, t) {
|
|
20574
|
+
const n = ic();
|
|
20575
20575
|
if (!n) return;
|
|
20576
20576
|
const r = p.trim(
|
|
20577
20577
|
(n.textContent || "").replace(/\u200b/g, "")
|
|
@@ -20686,7 +20686,7 @@ function qr(e) {
|
|
|
20686
20686
|
return n.includes(`
|
|
20687
20687
|
`) && (n = n.replace(/\n/g, "<br>")), n;
|
|
20688
20688
|
}
|
|
20689
|
-
function
|
|
20689
|
+
function uc(e) {
|
|
20690
20690
|
const t = [];
|
|
20691
20691
|
return e.querySelectorAll("span.fortune-formula-functionrange-cell").forEach((n) => {
|
|
20692
20692
|
const r = n.getAttribute("rangeindex");
|
|
@@ -20727,7 +20727,7 @@ function bh(e, t) {
|
|
|
20727
20727
|
};
|
|
20728
20728
|
return a(e), r ? n : null;
|
|
20729
20729
|
}
|
|
20730
|
-
function
|
|
20730
|
+
function cc(e) {
|
|
20731
20731
|
const t = Array.from(e.querySelectorAll("span")).filter(
|
|
20732
20732
|
(l) => {
|
|
20733
20733
|
var o;
|
|
@@ -20766,7 +20766,7 @@ function Pa(e) {
|
|
|
20766
20766
|
function Ha(e) {
|
|
20767
20767
|
e.formulaCache.rangetosheet || (e.formulaCache.rangetosheet = e.currentSheetId);
|
|
20768
20768
|
}
|
|
20769
|
-
function
|
|
20769
|
+
function fc(e) {
|
|
20770
20770
|
if (e.luckysheetCellUpdate.length === 0) return !1;
|
|
20771
20771
|
if (e.formulaCache.rangetosheet) return !0;
|
|
20772
20772
|
const t = _l(e);
|
|
@@ -20786,12 +20786,12 @@ function _h(e) {
|
|
|
20786
20786
|
}
|
|
20787
20787
|
function Th(e, t) {
|
|
20788
20788
|
if (!t || t === e.currentSheetId) return !1;
|
|
20789
|
-
const n =
|
|
20789
|
+
const n = fc(e);
|
|
20790
20790
|
n && Ha(e), vh(e), e.dataVerificationDropDownList = !1;
|
|
20791
20791
|
const r = ke(e, t), a = r != null ? e.luckysheetfile[r] : void 0;
|
|
20792
20792
|
return rr(e, t), (a == null ? void 0 : a.zoomRatio) != null && (e.zoomRatio = a.zoomRatio || 1), n ? (_h(e), "preserved-formula") : "cancel-edit";
|
|
20793
20793
|
}
|
|
20794
|
-
function
|
|
20794
|
+
function dc(e) {
|
|
20795
20795
|
const t = e.formulaCache.rangetosheet;
|
|
20796
20796
|
if (!t || t === e.currentSheetId) return !1;
|
|
20797
20797
|
e.sheetScrollRecord[e.currentSheetId] = {
|
|
@@ -20838,7 +20838,7 @@ function Tl(e) {
|
|
|
20838
20838
|
const n = t.slice(1).trim();
|
|
20839
20839
|
return !n || n.includes("(") || n.includes(")") ? !1 : Mt(n);
|
|
20840
20840
|
}
|
|
20841
|
-
function
|
|
20841
|
+
function mc(e) {
|
|
20842
20842
|
e.formulaCache.rangeSelectionActive = !1, e.formulaCache.keyboardRangeSelectionLock = !0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1;
|
|
20843
20843
|
}
|
|
20844
20844
|
function Ua(e) {
|
|
@@ -20887,13 +20887,13 @@ function Sh(e) {
|
|
|
20887
20887
|
}
|
|
20888
20888
|
return !1;
|
|
20889
20889
|
}
|
|
20890
|
-
function
|
|
20890
|
+
function hc(e) {
|
|
20891
20891
|
e.formulaCache.rangeSelectionActive = !1, e.formulaRangeHighlight = [], e.formulaRangeSelect = void 0, e.formulaCache.selectingRangeIndex = -1, e.formulaCache.func_selectedrange = void 0, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangechangeindex = void 0;
|
|
20892
20892
|
}
|
|
20893
20893
|
function kh(e) {
|
|
20894
20894
|
const t = ir(e);
|
|
20895
20895
|
if (t !== null) return t;
|
|
20896
|
-
const n =
|
|
20896
|
+
const n = cc(e);
|
|
20897
20897
|
if (n === null) return null;
|
|
20898
20898
|
const r = e.querySelector(
|
|
20899
20899
|
`span.fortune-formula-functionrange-cell[rangeindex="${n}"]`
|
|
@@ -20934,7 +20934,7 @@ function kh(e) {
|
|
|
20934
20934
|
}
|
|
20935
20935
|
return n;
|
|
20936
20936
|
}
|
|
20937
|
-
function
|
|
20937
|
+
function pc(e, t, n, r, a, l = !0) {
|
|
20938
20938
|
var o, i, s, u, c, f;
|
|
20939
20939
|
if (n)
|
|
20940
20940
|
try {
|
|
@@ -20942,7 +20942,7 @@ function hc(e, t, n, r, a, l = !0) {
|
|
|
20942
20942
|
const d = r === 8 || r === 46, m = r >= 48 && r <= 57 || // 0-9
|
|
20943
20943
|
r >= 65 && r <= 90 || // A-Z
|
|
20944
20944
|
r >= 97 && r <= 122;
|
|
20945
|
-
e.formulaCache.rangeSelectionActive === !0 && (d || m) &&
|
|
20945
|
+
e.formulaCache.rangeSelectionActive === !0 && (d || m) && hc(e);
|
|
20946
20946
|
let h;
|
|
20947
20947
|
const g = (w) => {
|
|
20948
20948
|
const v = (T) => {
|
|
@@ -20967,7 +20967,7 @@ function hc(e, t, n, r, a, l = !0) {
|
|
|
20967
20967
|
let b = g(n);
|
|
20968
20968
|
if ((r === 8 || r === 46) && (b = b.replace(/\n{2,}$/, `
|
|
20969
20969
|
`)), b = Zg(b), b.length > 0 && b.substring(0, 1) === "=" && (r !== 229 || b.length === 1)) {
|
|
20970
|
-
if (Ha(e), l || (Nr =
|
|
20970
|
+
if (Ha(e), l || (Nr = uc(n)), b = qr(b), !l && wn < Nr.length && (l = !0), h = qr(y), Nr = [], window.getSelection) {
|
|
20971
20971
|
const w = window.getSelection();
|
|
20972
20972
|
if (!w) return;
|
|
20973
20973
|
if (((o = w.anchorNode) == null ? void 0 : o.nodeName.toLowerCase()) === "div") {
|
|
@@ -20993,7 +20993,7 @@ function hc(e, t, n, r, a, l = !0) {
|
|
|
20993
20993
|
const w = document.selection.createRange();
|
|
20994
20994
|
e.formulaCache.functionRangeIndex = w, e.formulaCache.functionRangeGlobalOffset = null;
|
|
20995
20995
|
}
|
|
20996
|
-
n.innerHTML = b, t && (t.innerHTML = b), gh(e, n, b, h), l && (
|
|
20996
|
+
n.innerHTML = b, t && (t.innerHTML = b), gh(e, n, b, h), l && (Ac(e), lc(e, b), e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, sc(e, n));
|
|
20997
20997
|
} else if (p.startsWith(y, "=") && !p.startsWith(b, "="))
|
|
20998
20998
|
t && (t.innerHTML = b), n.innerHTML = Rr(b);
|
|
20999
20999
|
else if (!p.startsWith(y, "=")) {
|
|
@@ -21053,7 +21053,7 @@ function Eh(e, t, n) {
|
|
|
21053
21053
|
const i = o.textContent || "", s = Ah(i);
|
|
21054
21054
|
if (!s || s === i) return !1;
|
|
21055
21055
|
const u = s.length;
|
|
21056
|
-
return o.textContent = s, ar(e, o, 0, u, n),
|
|
21056
|
+
return o.textContent = s, ar(e, o, 0, u, n), pc(e, t, n, 115), !0;
|
|
21057
21057
|
}
|
|
21058
21058
|
function Rh(e) {
|
|
21059
21059
|
const t = e.trim();
|
|
@@ -21340,7 +21340,7 @@ function Wr(e, t, n, r) {
|
|
|
21340
21340
|
if (h && g)
|
|
21341
21341
|
g.innerHTML = f, ar(e, g, 0, f.length, u);
|
|
21342
21342
|
else {
|
|
21343
|
-
const T =
|
|
21343
|
+
const T = uc(u), C = T.length > 0 ? Math.max(...T) + 1 : wn, N = `<span class="fortune-formula-functionrange-cell" rangeindex="${C}" dir="auto" style="color:${hl(C)};">${f}</span>`, A = Ju(N);
|
|
21344
21344
|
let $ = e.formulaCache.rangeSetValueTo;
|
|
21345
21345
|
if ($ && !$.parentNode && (sr(e), $ = e.formulaCache.rangeSetValueTo), $ && $.parentNode) {
|
|
21346
21346
|
const M = (b = document.getElementsByClassName(
|
|
@@ -21530,16 +21530,16 @@ function Jt(e, t, n, r) {
|
|
|
21530
21530
|
}
|
|
21531
21531
|
return i = i.replace(/NaN/g, ""), i;
|
|
21532
21532
|
}
|
|
21533
|
-
function
|
|
21533
|
+
function gc(e) {
|
|
21534
21534
|
return e.startsWith("'") && e.endsWith("'") ? e.slice(1, -1).replace(/''/g, "'") : e;
|
|
21535
21535
|
}
|
|
21536
21536
|
const Wh = /((?:'(?:[^']|'')+'|[A-Za-z_][A-Za-z0-9_.]*)!)?(\$?)([A-Za-z]+)(\$?)(\d+)(?::(\$?)([A-Za-z]+)(\$?)(\d+))?/g;
|
|
21537
|
-
function
|
|
21537
|
+
function yc(e, t, n, r) {
|
|
21538
21538
|
const { rowMap: a, colMap: l } = r;
|
|
21539
21539
|
return e && e.replace(
|
|
21540
21540
|
Wh,
|
|
21541
21541
|
(o, i, s, u, c, f, d, m, h, g) => {
|
|
21542
|
-
if ((i ?
|
|
21542
|
+
if ((i ? gc(i.slice(0, -1)) : t) !== n) return o;
|
|
21543
21543
|
const b = (_, T) => {
|
|
21544
21544
|
const C = Ft(_), N = parseInt(T, 10) - 1, A = !Number.isNaN(C) && !p.isNil(l == null ? void 0 : l[C]) ? rt(l[C]) : _, $ = !Number.isNaN(N) && !p.isNil(a == null ? void 0 : a[N]) ? String(a[N] + 1) : T;
|
|
21545
21545
|
return { nextCol: A, nextRow: $ };
|
|
@@ -21594,7 +21594,7 @@ function Gh(e, t, n, r) {
|
|
|
21594
21594
|
function jh(e, t, n, r, a, l) {
|
|
21595
21595
|
const o = e.lastIndexOf("!");
|
|
21596
21596
|
let i = "", s = e, u = t;
|
|
21597
|
-
if (o > -1 && (i = e.slice(0, o + 1), s = e.slice(o + 1), u =
|
|
21597
|
+
if (o > -1 && (i = e.slice(0, o + 1), s = e.slice(o + 1), u = gc(i.slice(0, -1))), u !== n) return e;
|
|
21598
21598
|
const c = Gh(
|
|
21599
21599
|
s,
|
|
21600
21600
|
r,
|
|
@@ -21690,12 +21690,13 @@ function jn(e, t, n, r, a, l) {
|
|
|
21690
21690
|
const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
21691
21691
|
__proto__: null,
|
|
21692
21692
|
FormulaCache: Qu,
|
|
21693
|
+
RUNTIME_REFERENCE_RE: rc,
|
|
21693
21694
|
activateSheetForNavigation: Th,
|
|
21694
21695
|
applyWorkerFormulaChunkResults: dh,
|
|
21695
|
-
createFormulaRangeSelect:
|
|
21696
|
-
createRangeHightlight:
|
|
21696
|
+
createFormulaRangeSelect: oc,
|
|
21697
|
+
createRangeHightlight: lc,
|
|
21697
21698
|
delFunctionGroup: xt,
|
|
21698
|
-
delFunctionGroupBatch:
|
|
21699
|
+
delFunctionGroupBatch: lh,
|
|
21699
21700
|
ensureFormulaRangeToSheet: Ha,
|
|
21700
21701
|
execFunctionGroup: Bt,
|
|
21701
21702
|
execfunction: Ot,
|
|
@@ -21708,11 +21709,11 @@ const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21708
21709
|
getFormulaEditorOwner: Pa,
|
|
21709
21710
|
getFormulaRangeIndexAtCaret: ir,
|
|
21710
21711
|
getFormulaRangeIndexForKeyboardSync: kh,
|
|
21711
|
-
getLastFormulaRangeIndex:
|
|
21712
|
+
getLastFormulaRangeIndex: cc,
|
|
21712
21713
|
getcellrange: Cn,
|
|
21713
|
-
getrangeseleciton:
|
|
21714
|
-
groupValuesRefresh:
|
|
21715
|
-
handleFormulaInput:
|
|
21714
|
+
getrangeseleciton: ic,
|
|
21715
|
+
groupValuesRefresh: ac,
|
|
21716
|
+
handleFormulaInput: pc,
|
|
21716
21717
|
insertUpdateFunctionGroup: zr,
|
|
21717
21718
|
isBareCellOrRangeOnlyFormula: Tl,
|
|
21718
21719
|
isCaretAtValidFormulaRangeInsertionPoint: Ua,
|
|
@@ -21721,28 +21722,28 @@ const Xh = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21721
21722
|
isTodayNowPureArithmeticDateResult: Zu,
|
|
21722
21723
|
iscelldata: Mt,
|
|
21723
21724
|
israngeseleciton: sr,
|
|
21724
|
-
markRangeSelectionDirty:
|
|
21725
|
+
markRangeSelectionDirty: hc,
|
|
21725
21726
|
maybeRecoverDirtyRangeSelection: xh,
|
|
21726
21727
|
moveCursorToEnd: vl,
|
|
21727
21728
|
onFormulaRangeDragEnd: Oh,
|
|
21728
21729
|
rangeDrag: Fh,
|
|
21729
21730
|
rangeDragColumn: Lh,
|
|
21730
21731
|
rangeDragRow: Bh,
|
|
21731
|
-
rangeHightlightselected:
|
|
21732
|
+
rangeHightlightselected: sc,
|
|
21732
21733
|
rangeSetValue: Wr,
|
|
21733
21734
|
refreshFormulasUsingDefinedNames: wl,
|
|
21734
|
-
remapFormulaReferencesByMap:
|
|
21735
|
+
remapFormulaReferencesByMap: yc,
|
|
21735
21736
|
resetFormulaDependencyIndexes: tc,
|
|
21736
|
-
returnToFormulaOriginSheet:
|
|
21737
|
+
returnToFormulaOriginSheet: dc,
|
|
21737
21738
|
runFormulaEvalChunk: mh,
|
|
21738
21739
|
seedFormulaFuncSelectedRangeFromLastSelection: ph,
|
|
21739
21740
|
setCaretPosition: ar,
|
|
21740
21741
|
setFormulaEditorOwner: wh,
|
|
21741
|
-
shouldPreserveFormulaEditOnSheetSwitch:
|
|
21742
|
-
suppressFormulaRangeSelectionForInitialEdit:
|
|
21742
|
+
shouldPreserveFormulaEditOnSheetSwitch: fc,
|
|
21743
|
+
suppressFormulaRangeSelectionForInitialEdit: mc,
|
|
21743
21744
|
toggleFormulaAbsoluteReferenceAtCaret: Eh
|
|
21744
21745
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
21745
|
-
function
|
|
21746
|
+
function bc(e, t, n, r) {
|
|
21746
21747
|
var u, c;
|
|
21747
21748
|
const a = eo(e, r);
|
|
21748
21749
|
if (p.isNil(a))
|
|
@@ -21826,7 +21827,7 @@ const _a = "DD/MM/YYYY";
|
|
|
21826
21827
|
function Ta(e) {
|
|
21827
21828
|
return e < 10 ? `0${e}` : String(e);
|
|
21828
21829
|
}
|
|
21829
|
-
function
|
|
21830
|
+
function wc() {
|
|
21830
21831
|
const e = /* @__PURE__ */ new Date();
|
|
21831
21832
|
return new Date(e.getFullYear(), e.getMonth(), e.getDate());
|
|
21832
21833
|
}
|
|
@@ -21894,10 +21895,10 @@ function Fs(e) {
|
|
|
21894
21895
|
return typeof t == "number" && Number.isFinite(t) && ((a = e.ct) != null && a.fa) && Fa(e.ct.fa) ? Math.floor(t) : null;
|
|
21895
21896
|
}
|
|
21896
21897
|
function Nl() {
|
|
21897
|
-
return Math.floor(Hr(
|
|
21898
|
+
return Math.floor(Hr(wc(), 0));
|
|
21898
21899
|
}
|
|
21899
21900
|
function zo(e) {
|
|
21900
|
-
const t =
|
|
21901
|
+
const t = wc();
|
|
21901
21902
|
switch (e) {
|
|
21902
21903
|
case "today":
|
|
21903
21904
|
return Xn(t);
|
|
@@ -22653,7 +22654,7 @@ function ap(e, t, n) {
|
|
|
22653
22654
|
}
|
|
22654
22655
|
return r;
|
|
22655
22656
|
}
|
|
22656
|
-
function
|
|
22657
|
+
function vc(e) {
|
|
22657
22658
|
var n, r;
|
|
22658
22659
|
if (!e) return !1;
|
|
22659
22660
|
const t = e.rulesType;
|
|
@@ -22676,10 +22677,10 @@ function op(e) {
|
|
|
22676
22677
|
return n === "occurrenceDate" ? [e.dateValue || ""] : (n === "between" || n === "notBetween") && e.betweenValue ? [e.betweenValue.value1, e.betweenValue.value2] : [e.rulesValue || ""];
|
|
22677
22678
|
}
|
|
22678
22679
|
const Ls = /* @__PURE__ */ new WeakMap();
|
|
22679
|
-
function
|
|
22680
|
+
function _c(e) {
|
|
22680
22681
|
const t = ke(e, e.currentSheetId), n = t == null ? void 0 : e.luckysheetfile[t];
|
|
22681
22682
|
if (!n || Jo(e.luckysheetfile)) return Bs(e);
|
|
22682
|
-
const r = !!(e.conditionFormatDraftActive && e.luckysheet_select_save &&
|
|
22683
|
+
const r = !!(e.conditionFormatDraftActive && e.luckysheet_select_save && vc(n.conditionRules)), a = {
|
|
22683
22684
|
luckysheetfile: e.luckysheetfile,
|
|
22684
22685
|
definedNames: e.definedNames,
|
|
22685
22686
|
rules: n.luckysheet_conditionformat_save,
|
|
@@ -22699,7 +22700,7 @@ function Bs(e) {
|
|
|
22699
22700
|
const t = ke(e, e.currentSheetId), n = (i = e.luckysheetfile[t]) != null && i.luckysheet_conditionformat_save ? [...(s = e.luckysheetfile[t]) == null ? void 0 : s.luckysheet_conditionformat_save] : [], { data: r } = e.luckysheetfile[t];
|
|
22700
22701
|
if (p.isNil(r)) return null;
|
|
22701
22702
|
const a = (u = e.luckysheetfile[t].conditionRules) == null ? void 0 : u.editKey, l = e.luckysheetfile[t].conditionRules;
|
|
22702
|
-
return e.conditionFormatDraftActive && e.luckysheet_select_save &&
|
|
22703
|
+
return e.conditionFormatDraftActive && e.luckysheet_select_save && vc(l) && (a != null && n.splice(Number(a), 1), n.unshift({
|
|
22703
22704
|
type: "default",
|
|
22704
22705
|
cellrange: e.luckysheet_select_save,
|
|
22705
22706
|
format: {
|
|
@@ -22715,10 +22716,10 @@ function Bs(e) {
|
|
|
22715
22716
|
conditionValue: op(l)
|
|
22716
22717
|
})), ap(e, n, r);
|
|
22717
22718
|
}
|
|
22718
|
-
function
|
|
22719
|
+
function Tc(e, t, n) {
|
|
22719
22720
|
return !p.isNil(n) && `${e}_${t}` in n ? n[`${e}_${t}`] : null;
|
|
22720
22721
|
}
|
|
22721
|
-
function
|
|
22722
|
+
function Cc(e, t, n, r) {
|
|
22722
22723
|
let a = [];
|
|
22723
22724
|
const l = n.row[0] - t.row[0], o = n.column[0] - t.column[0], i = e.row[0], s = e.row[1], u = e.column[0], c = e.column[1];
|
|
22724
22725
|
return i >= t.row[0] && s <= t.row[1] && u >= t.column[0] && c <= t.column[1] ? r === "allPart" ? a = [
|
|
@@ -23042,7 +23043,7 @@ function up(e, t) {
|
|
|
23042
23043
|
return !1;
|
|
23043
23044
|
return !1;
|
|
23044
23045
|
}
|
|
23045
|
-
function
|
|
23046
|
+
function $c(e, t, n) {
|
|
23046
23047
|
let { value1: r, value2: a } = t;
|
|
23047
23048
|
const { type: l, type2: o } = t;
|
|
23048
23049
|
if (l === "dropdown") {
|
|
@@ -23091,7 +23092,7 @@ function cp(e, t, n) {
|
|
|
23091
23092
|
}
|
|
23092
23093
|
]);
|
|
23093
23094
|
}
|
|
23094
|
-
function
|
|
23095
|
+
function Nc(e, t) {
|
|
23095
23096
|
var s, u, c, f, d;
|
|
23096
23097
|
let n = "";
|
|
23097
23098
|
const { lang: r } = e, { type: a, type2: l, value1: o, value2: i } = t;
|
|
@@ -23135,7 +23136,7 @@ function fp(e, t) {
|
|
|
23135
23136
|
return n;
|
|
23136
23137
|
}
|
|
23137
23138
|
function hy(e, t, n, r) {
|
|
23138
|
-
const a = ft(e), l =
|
|
23139
|
+
const a = ft(e), l = lf(e);
|
|
23139
23140
|
if (!a || l) return;
|
|
23140
23141
|
const o = document.getElementById(
|
|
23141
23142
|
"luckysheet-dataVerification-showHintBox"
|
|
@@ -23161,10 +23162,10 @@ function hy(e, t, n, r) {
|
|
|
23161
23162
|
const v = at(t, n, b);
|
|
23162
23163
|
if (ot(v))
|
|
23163
23164
|
return;
|
|
23164
|
-
if (
|
|
23165
|
+
if (!$c(e, c, v)) {
|
|
23165
23166
|
let T = "";
|
|
23166
23167
|
const { lang: C } = e, N = '<div style="color:#F4874A;font-weight:500;font-size:14px;margin-bottom:4px;">Invalid</div>';
|
|
23167
|
-
C === "en" ? T = '<span style="color:#f72626;">Failure: </span>' : C === "zh" || C === "zh-CN" || C === "zh-TW" ? T = '<span style="color:#f72626;">失效:</span>' : C === "es" ? T = '<span style="color:#f72626;">Caducidad: </span>' : C === "hi" && (T = '<span style="color:#f72626;">असफलता: </span>'), T = N + T +
|
|
23168
|
+
C === "en" ? T = '<span style="color:#f72626;">Failure: </span>' : C === "zh" || C === "zh-CN" || C === "zh-TW" ? T = '<span style="color:#f72626;">失效:</span>' : C === "es" ? T = '<span style="color:#f72626;">Caducidad: </span>' : C === "hi" && (T = '<span style="color:#f72626;">असफलता: </span>'), T = N + T + Nc(e, c), o.innerHTML = T, o.style.display = "block", o.style.left = `${y}px`, o.style.top = `${m}px`;
|
|
23168
23169
|
}
|
|
23169
23170
|
}
|
|
23170
23171
|
function py(e, t, n, r) {
|
|
@@ -23318,7 +23319,7 @@ function mp(e, t, n) {
|
|
|
23318
23319
|
i[s.originalIndex] = u;
|
|
23319
23320
|
}), { sortedData: o, rowMap: i };
|
|
23320
23321
|
}
|
|
23321
|
-
function
|
|
23322
|
+
function Sc(e, t, n, r, a, l, o, i, s) {
|
|
23322
23323
|
var g, y;
|
|
23323
23324
|
e.formulaCache.markDepGraphIncomplete();
|
|
23324
23325
|
const { sortedData: u, rowMap: c } = mp(a, r, n);
|
|
@@ -23339,7 +23340,7 @@ function Nc(e, t, n, r, a, l, o, i, s) {
|
|
|
23339
23340
|
if (w)
|
|
23340
23341
|
for (let v = 0; v < w.length; v += 1) {
|
|
23341
23342
|
const _ = w[v];
|
|
23342
|
-
_ != null && _.f && (_.f =
|
|
23343
|
+
_ != null && _.f && (_.f = yc(_.f, h, h, {
|
|
23343
23344
|
rowMap: f
|
|
23344
23345
|
}));
|
|
23345
23346
|
}
|
|
@@ -23400,7 +23401,7 @@ function hp(e, t, n = 0) {
|
|
|
23400
23401
|
}
|
|
23401
23402
|
d.push(g);
|
|
23402
23403
|
}
|
|
23403
|
-
f ||
|
|
23404
|
+
f || Sc(e, a, d, n, t, u, c, i, s);
|
|
23404
23405
|
}
|
|
23405
23406
|
}
|
|
23406
23407
|
function yy(e, t) {
|
|
@@ -23434,7 +23435,7 @@ function yy(e, t) {
|
|
|
23434
23435
|
if (u) break;
|
|
23435
23436
|
c.push(g);
|
|
23436
23437
|
}
|
|
23437
|
-
u ||
|
|
23438
|
+
u || Sc(
|
|
23438
23439
|
e,
|
|
23439
23440
|
n,
|
|
23440
23441
|
c,
|
|
@@ -23565,7 +23566,7 @@ function Dt(e, t, n = 10) {
|
|
|
23565
23566
|
} else t === "fs" ? a || (a = n.toString()) : (t === "tb" || t === "tr") && (a || (a = "0"));
|
|
23566
23567
|
return a;
|
|
23567
23568
|
}
|
|
23568
|
-
function
|
|
23569
|
+
function kc(e, t, n, r) {
|
|
23569
23570
|
if (!e || !e[t])
|
|
23570
23571
|
return null;
|
|
23571
23572
|
const a = e[t][n];
|
|
@@ -23667,7 +23668,7 @@ function at(e, t, n, r) {
|
|
|
23667
23668
|
if (((u = d == null ? void 0 : d.ct) == null ? void 0 : u.t) === "d" && !p.isNil(d.v)) {
|
|
23668
23669
|
const m = String(((c = d == null ? void 0 : d.ct) == null ? void 0 : c.fa) || ""), h = /\b(h|hh|H|HH|s|ss)\b/.test(m) || /AM\/PM/i.test(m);
|
|
23669
23670
|
l = ct(
|
|
23670
|
-
|
|
23671
|
+
Id(m, h),
|
|
23671
23672
|
d.v
|
|
23672
23673
|
);
|
|
23673
23674
|
} else
|
|
@@ -23728,15 +23729,15 @@ function Pt(e, t, n, r, a) {
|
|
|
23728
23729
|
d
|
|
23729
23730
|
)) {
|
|
23730
23731
|
if (l.v = i, p.isNil(l.ct) ? l.ct = { fa: "General", t: "g" } : ((l.ct.fa == null || l.ct.fa === "") && (l.ct = { ...l.ct, fa: "General" }), (l.ct.t == null || l.ct.t === "") && (l.ct = { ...l.ct, t: "g" })), Ze(i) && /^[\d.,]+$/.test(d.replace(/\s/g, "")) && p.isNil(l.qp) && ((C = l.ct) == null ? void 0 : C.fa) !== "@") {
|
|
23731
|
-
const z = Ae(e), V = (N =
|
|
23732
|
+
const z = Ae(e), V = (N = sf(l == null ? void 0 : l.f)) == null ? void 0 : N.split(","), fe = V == null ? void 0 : V.map((q) => q.trim().toUpperCase()), Te = uf(fe, r, z);
|
|
23732
23733
|
Te && (l.ct.fa = Te, Fa(Te) ? l.ct.t = "d" : l.ct.t = "n");
|
|
23733
23734
|
}
|
|
23734
23735
|
if (l.v === 1 / 0 || l.v === -1 / 0)
|
|
23735
23736
|
l.m = l.v.toString();
|
|
23736
23737
|
else {
|
|
23737
23738
|
const z = Math.round(l.v * 1e9) / 1e9;
|
|
23738
|
-
if (
|
|
23739
|
-
l.m =
|
|
23739
|
+
if (um(z))
|
|
23740
|
+
l.m = cm(z);
|
|
23740
23741
|
else if (l.v.toString().toLowerCase().indexOf("e") > -1)
|
|
23741
23742
|
l.m = yr(l.v);
|
|
23742
23743
|
else if (p.isNil(l.ct)) {
|
|
@@ -23813,7 +23814,7 @@ function Pt(e, t, n, r, a) {
|
|
|
23813
23814
|
}
|
|
23814
23815
|
} else
|
|
23815
23816
|
a.m ? l.m = a.m : l.m = q.toString(), l.v = i;
|
|
23816
|
-
} else if (
|
|
23817
|
+
} else if (dm(Q, It(e).currencyDetail) && typeof i == "string" && !d.startsWith("=") && !Ze(i))
|
|
23817
23818
|
l.v = d, l.m = d, l.ct = { fa: Q, t: "s" };
|
|
23818
23819
|
else {
|
|
23819
23820
|
const q = ct(Q, i);
|
|
@@ -23942,11 +23943,11 @@ function xr(e, t, n, r, a, l, o, i) {
|
|
|
23942
23943
|
}
|
|
23943
23944
|
return [t, n, a, l, o, i];
|
|
23944
23945
|
}
|
|
23945
|
-
function
|
|
23946
|
+
function Ac(e) {
|
|
23946
23947
|
e.formulaCache.selectingRangeIndex === -1 && (e.formulaRangeSelect = void 0);
|
|
23947
23948
|
}
|
|
23948
23949
|
function pn(e) {
|
|
23949
|
-
|
|
23950
|
+
Ac(e), e.luckysheetCellUpdate = [], e.formulaRangeHighlight = [], e.functionHint = null, e.formulaCache.rangestart = !1, e.formulaCache.rangedrag_column_start = !1, e.formulaCache.rangedrag_row_start = !1, e.formulaCache.rangeSelectionActive = null, e.formulaCache.keyboardRangeSelectionLock = !1, e.formulaCache.formulaKeyboardRefSync = !1, e.formulaCache.func_selectedrange = void 0, e.formulaCache.rangetosheet = void 0, e.formulaCache.refocusFormulaEditorAfterSheetSwitch = !1, e.formulaCache.formulaEditorOwner = null;
|
|
23950
23951
|
}
|
|
23951
23952
|
function vp(e) {
|
|
23952
23953
|
return typeof e == "number" ? Number.isFinite(e) : typeof e != "string" ? !1 : /^[\d.,]+$/.test(e.replace(/\s/g, ""));
|
|
@@ -23973,7 +23974,7 @@ function Yo(e, t, n, r, a, l) {
|
|
|
23973
23974
|
var o, i, s, u, c, f, d, m, h, g, y, b, w, v, _, T, C, N, A, $, S, M, U, G, ie, O, K, W, Y;
|
|
23974
23975
|
try {
|
|
23975
23976
|
if (e.allowEdit === !1 || e.isFlvReadOnly) return;
|
|
23976
|
-
|
|
23977
|
+
dc(e), _n(e);
|
|
23977
23978
|
const D = r == null ? void 0 : r.innerText, pe = (D || "").replace(/\u00a0/g, " ").replace(/\u200b/g, "").trimStart(), he = (be) => be.replace(/\u00a0/g, " ").replace(/\u200b/g, ""), Q = (be) => be.replace(/\r\n/g, `
|
|
23978
23979
|
`).replace(/\r/g, `
|
|
23979
23980
|
`).replace(/\n/g, `\r
|
|
@@ -23996,8 +23997,8 @@ function Yo(e, t, n, r, a, l) {
|
|
|
23996
23997
|
const Ee = ke(e, e.currentSheetId), { dataVerification: j } = e.luckysheetfile[Ee], J = e.luckysheetfile[Ee];
|
|
23997
23998
|
if (!p.isNil(j)) {
|
|
23998
23999
|
const be = j[`${t}_${n}`];
|
|
23999
|
-
if (!p.isNil(be) && be.prohibitInput &&
|
|
24000
|
-
const Se =
|
|
24000
|
+
if (!p.isNil(be) && be.prohibitInput && !$c(e, be, Te)) {
|
|
24001
|
+
const Se = Nc(e, be);
|
|
24001
24002
|
pn(e), e.warnDialog = Se;
|
|
24002
24003
|
return;
|
|
24003
24004
|
}
|
|
@@ -24131,7 +24132,7 @@ function Yo(e, t, n, r, a, l) {
|
|
|
24131
24132
|
fs: a.fs || 10
|
|
24132
24133
|
}
|
|
24133
24134
|
], z(a)) : (_ = a.ct) == null || delete _.s, vp(a.v)) {
|
|
24134
|
-
const Se = (T =
|
|
24135
|
+
const Se = (T = sf(a == null ? void 0 : a.f)) == null ? void 0 : T.split(","), Be = Se == null ? void 0 : Se.map((xe) => xe.trim().toUpperCase()), Me = uf(Be, De, P);
|
|
24135
24136
|
if (Me) {
|
|
24136
24137
|
const xe = typeof a.v == "number" ? a.v : Number(String(a.v).replace(/,/g, ""));
|
|
24137
24138
|
a.m = Number.isFinite(xe) ? String(ct(Me, xe)) : String(a.v), a.ct = {
|
|
@@ -24263,7 +24264,7 @@ function Fr(e, t, n, r) {
|
|
|
24263
24264
|
if (r == null && (r = e.currentSheetId), t !== r) {
|
|
24264
24265
|
const u = ke(e, t);
|
|
24265
24266
|
if (u == null) return "";
|
|
24266
|
-
a = `${
|
|
24267
|
+
a = `${of(e.luckysheetfile[u].name)}!`;
|
|
24267
24268
|
}
|
|
24268
24269
|
const l = n.row[0], o = n.row[1], i = n.column[0], s = n.column[1];
|
|
24269
24270
|
return l == null && o == null ? `${a + rt(i)}:${rt(
|
|
@@ -24372,7 +24373,7 @@ function Al(e, t, n, r = !0) {
|
|
|
24372
24373
|
function Vo(e, t, n, r, a) {
|
|
24373
24374
|
var c;
|
|
24374
24375
|
let l = {};
|
|
24375
|
-
const o = [], i = a ??
|
|
24376
|
+
const o = [], i = a ?? _c(e), s = Tc(n, r, i), u = (c = t == null ? void 0 : t[n]) == null ? void 0 : c[r];
|
|
24376
24377
|
if (!u) {
|
|
24377
24378
|
if (!s)
|
|
24378
24379
|
return {};
|
|
@@ -24413,7 +24414,7 @@ function Ap(e, t) {
|
|
|
24413
24414
|
return a.length > 0 && (o += `<span style='${t}'>${a}</span>`), l < r.length - 1 && (o += `<span style='${t}'><br></span>`), o;
|
|
24414
24415
|
}).join("");
|
|
24415
24416
|
}
|
|
24416
|
-
function
|
|
24417
|
+
function Ec(e, t, n, r) {
|
|
24417
24418
|
const a = at(e, t, n, "ct");
|
|
24418
24419
|
if (Sn(a)) {
|
|
24419
24420
|
const l = a.s;
|
|
@@ -24488,7 +24489,7 @@ function Ep(e, t, n) {
|
|
|
24488
24489
|
function _y(e, t, n) {
|
|
24489
24490
|
var l;
|
|
24490
24491
|
const r = Ae(e), a = (l = r == null ? void 0 : r[t]) == null ? void 0 : l[n];
|
|
24491
|
-
(a == null ? void 0 : a.f) != null && String(a.f).trim() !== "" && (
|
|
24492
|
+
(a == null ? void 0 : a.f) != null && String(a.f).trim() !== "" && (mc(e), Ha(e)), e.luckysheetCellUpdate = [t, n];
|
|
24492
24493
|
}
|
|
24493
24494
|
function Rp(e, t) {
|
|
24494
24495
|
if (!t || !t.row || t.row.length === 0) return [];
|
|
@@ -24725,7 +24726,7 @@ function qp(e, t, n) {
|
|
|
24725
24726
|
cols: t.slice(l, o + 1)
|
|
24726
24727
|
};
|
|
24727
24728
|
}
|
|
24728
|
-
function
|
|
24729
|
+
function Rc(e) {
|
|
24729
24730
|
const t = [];
|
|
24730
24731
|
return {
|
|
24731
24732
|
sink: (n) => {
|
|
@@ -24745,7 +24746,7 @@ function Dp(e, t) {
|
|
|
24745
24746
|
const n = e, r = t;
|
|
24746
24747
|
return n.v !== r.v || n.f !== r.f || n.m !== r.m ? !1 : p.isEqual(e, t);
|
|
24747
24748
|
}
|
|
24748
|
-
function
|
|
24749
|
+
function Mc(e, t, n, r, a) {
|
|
24749
24750
|
var u;
|
|
24750
24751
|
if (!(e != null && e.length)) return null;
|
|
24751
24752
|
const l = Math.min(n, e.length - 1), o = Math.min(a, (((u = e[0]) == null ? void 0 : u.length) ?? 0) - 1), i = Math.max(0, t), s = Math.max(0, r);
|
|
@@ -24755,7 +24756,7 @@ function Ws(e) {
|
|
|
24755
24756
|
return e != null && typeof e == "object" && e.f != null ? { ...e } : e;
|
|
24756
24757
|
}
|
|
24757
24758
|
function Rl(e, t, n, r, a, l) {
|
|
24758
|
-
const o = /* @__PURE__ */ new Map(), i =
|
|
24759
|
+
const o = /* @__PURE__ */ new Map(), i = Mc(e, t, n, r, a);
|
|
24759
24760
|
if (!i) return o;
|
|
24760
24761
|
const { rowStart: s, rowEnd: u, colStart: c, colEnd: f } = i;
|
|
24761
24762
|
if (l != null && l.length) {
|
|
@@ -24803,7 +24804,7 @@ function xp(e, t, n, r, a, l) {
|
|
|
24803
24804
|
});
|
|
24804
24805
|
}
|
|
24805
24806
|
function Op(e, t, n, r, a, l, o) {
|
|
24806
|
-
const i =
|
|
24807
|
+
const i = Mc(t, n, r, a, l);
|
|
24807
24808
|
if (!i) return [];
|
|
24808
24809
|
const { rowStart: s, rowEnd: u, colStart: c, colEnd: f } = i, d = [];
|
|
24809
24810
|
for (let m = s; m <= u; m += 1) {
|
|
@@ -24823,7 +24824,7 @@ function Op(e, t, n, r, a, l, o) {
|
|
|
24823
24824
|
}
|
|
24824
24825
|
return d;
|
|
24825
24826
|
}
|
|
24826
|
-
function
|
|
24827
|
+
function Ic(e, t, n, r, a, l, o, i, s) {
|
|
24827
24828
|
var c;
|
|
24828
24829
|
if (!((c = e == null ? void 0 : e.hooks) != null && c.updateCellYdoc)) return;
|
|
24829
24830
|
const u = Op(
|
|
@@ -24837,7 +24838,7 @@ function Mc(e, t, n, r, a, l, o, i, s) {
|
|
|
24837
24838
|
);
|
|
24838
24839
|
u.length > 0 && (s ?? e.hooks.updateCellYdoc)(u);
|
|
24839
24840
|
}
|
|
24840
|
-
function
|
|
24841
|
+
function qc(e) {
|
|
24841
24842
|
const t = /* @__PURE__ */ new Map();
|
|
24842
24843
|
return (e.luckysheetfile ?? []).forEach((n) => {
|
|
24843
24844
|
var l;
|
|
@@ -24864,7 +24865,7 @@ function Ic(e) {
|
|
|
24864
24865
|
a.size > 0 && t.set(String(n.id), a);
|
|
24865
24866
|
}), t;
|
|
24866
24867
|
}
|
|
24867
|
-
function
|
|
24868
|
+
function Dc(e, t, n, r, a, l) {
|
|
24868
24869
|
var i;
|
|
24869
24870
|
if (!((i = e == null ? void 0 : e.hooks) != null && i.updateCellYdoc) || t.size === 0) return;
|
|
24870
24871
|
const o = [];
|
|
@@ -25273,7 +25274,7 @@ function Ly(e, t) {
|
|
|
25273
25274
|
v[Q] = z;
|
|
25274
25275
|
}
|
|
25275
25276
|
}
|
|
25276
|
-
const O =
|
|
25277
|
+
const O = _m(
|
|
25277
25278
|
e,
|
|
25278
25279
|
n,
|
|
25279
25280
|
v,
|
|
@@ -25304,7 +25305,7 @@ function Ly(e, t) {
|
|
|
25304
25305
|
const V = D[z].cellrange;
|
|
25305
25306
|
let fe = [];
|
|
25306
25307
|
for (let Te = 0; Te < V.length; Te += 1) {
|
|
25307
|
-
const q =
|
|
25308
|
+
const q = Cc(
|
|
25308
25309
|
V[Te],
|
|
25309
25310
|
{ row: [l, o], column: [i, s] },
|
|
25310
25311
|
{ row: [f, d], column: [m, h] },
|
|
@@ -25332,7 +25333,7 @@ function Ly(e, t) {
|
|
|
25332
25333
|
}
|
|
25333
25334
|
Pp(e);
|
|
25334
25335
|
}
|
|
25335
|
-
function
|
|
25336
|
+
function xc(e, t) {
|
|
25336
25337
|
e == null && (e = t.luckysheet_selection_range), e = JSON.parse(JSON.stringify(e));
|
|
25337
25338
|
}
|
|
25338
25339
|
function Xt(e, t, n, r) {
|
|
@@ -25731,7 +25732,7 @@ function Vt(e, t) {
|
|
|
25731
25732
|
}
|
|
25732
25733
|
function Yp(e, t, n, r) {
|
|
25733
25734
|
var w, v;
|
|
25734
|
-
const a = (r == null ? void 0 : r.includeCellMetadata) ?? !1, l = (r == null ? void 0 : r.preferRichText) ?? !1, o = (r == null ? void 0 : r.respectFilterHiddenRows) ?? !1, i =
|
|
25735
|
+
const a = (r == null ? void 0 : r.includeCellMetadata) ?? !1, l = (r == null ? void 0 : r.preferRichText) ?? !1, o = (r == null ? void 0 : r.respectFilterHiddenRows) ?? !1, i = _c(e), s = /* @__PURE__ */ new Set();
|
|
25735
25736
|
o && t === e.currentSheetId && !p.isNil(e.luckysheet_filter_save) && !p.isEmpty(e.filter) && Object.values(e.filter || {}).forEach((_) => {
|
|
25736
25737
|
const T = _ == null ? void 0 : _.rowhidden;
|
|
25737
25738
|
T && Object.keys(T).forEach((C) => {
|
|
@@ -25762,7 +25763,7 @@ function Yp(e, t, n, r) {
|
|
|
25762
25763
|
d,
|
|
25763
25764
|
(_, T) => {
|
|
25764
25765
|
var C;
|
|
25765
|
-
return ((C = g[_]) == null ? void 0 : C[T]) != null || m != null && m[`${_}_${T}`] != null ||
|
|
25766
|
+
return ((C = g[_]) == null ? void 0 : C[T]) != null || m != null && m[`${_}_${T}`] != null || Tc(_, T, i) != null;
|
|
25766
25767
|
}
|
|
25767
25768
|
));
|
|
25768
25769
|
let y = "";
|
|
@@ -25876,10 +25877,10 @@ function Yp(e, t, n, r) {
|
|
|
25876
25877
|
S += `border-top:${Vt(K, W)}`;
|
|
25877
25878
|
}
|
|
25878
25879
|
}
|
|
25879
|
-
const O = a && !
|
|
25880
|
+
const O = a && !kf($) ? encodeURIComponent(
|
|
25880
25881
|
JSON.stringify({ ...$, _srcRow: T, _srcCol: N })
|
|
25881
25882
|
) : "";
|
|
25882
|
-
A = nu(A, { style: S, span: M, cellData: O }), p.isNil(G) && (G = at(T, N, g)), p.isNil(G) && (G = ""), l && un($) ? A +=
|
|
25883
|
+
A = nu(A, { style: S, span: M, cellData: O }), p.isNil(G) && (G = at(T, N, g)), p.isNil(G) && (G = ""), l && un($) ? A += Ec(T, N, g, {
|
|
25883
25884
|
useSemanticMarkup: !0,
|
|
25884
25885
|
inheritedStyle: ie,
|
|
25885
25886
|
isRichTextCopy: !0
|
|
@@ -25978,7 +25979,7 @@ function Hy(e) {
|
|
|
25978
25979
|
"textDecorationSkipInk"
|
|
25979
25980
|
]), U = p.toPairs(S).filter(
|
|
25980
25981
|
([O, K]) => !p.isNil(K) && K !== "" && K !== "undefined" && !(A && M.has(O))
|
|
25981
|
-
).map(([O, K]) => `${p.kebabCase(O)}:${p.isNumber(K) ? `${K}px` : K};`).join(" "), G = A ?
|
|
25982
|
+
).map(([O, K]) => `${p.kebabCase(O)}:${p.isNumber(K) ? `${K}px` : K};`).join(" "), G = A ? Ec(v, _, t, {
|
|
25982
25983
|
useSemanticMarkup: !0,
|
|
25983
25984
|
inheritedStyle: S,
|
|
25984
25985
|
isRichTextCopy: !0
|
|
@@ -26574,7 +26575,7 @@ function n0(e, t, n) {
|
|
|
26574
26575
|
}
|
|
26575
26576
|
}
|
|
26576
26577
|
return r.forEach((f, d) => {
|
|
26577
|
-
|
|
26578
|
+
Ic(
|
|
26578
26579
|
e,
|
|
26579
26580
|
e.currentSheetId,
|
|
26580
26581
|
a,
|
|
@@ -27760,7 +27761,7 @@ function Kt(e) {
|
|
|
27760
27761
|
{}
|
|
27761
27762
|
);
|
|
27762
27763
|
}
|
|
27763
|
-
function
|
|
27764
|
+
function Oc(e) {
|
|
27764
27765
|
return Kt(e.filter);
|
|
27765
27766
|
}
|
|
27766
27767
|
function Yr(e) {
|
|
@@ -27772,7 +27773,7 @@ function Yr(e) {
|
|
|
27772
27773
|
e.config.rowhidden_manual = r.rowhidden_manual;
|
|
27773
27774
|
return;
|
|
27774
27775
|
}
|
|
27775
|
-
const a = ((s = e.config) == null ? void 0 : s.rowhidden) || {}, l = e.currentSheetId === n.id && !p.isNil(e.luckysheet_filter_save) && !p.isEmpty(e.filter), o = l ?
|
|
27776
|
+
const a = ((s = e.config) == null ? void 0 : s.rowhidden) || {}, l = e.currentSheetId === n.id && !p.isNil(e.luckysheet_filter_save) && !p.isEmpty(e.filter), o = l ? Oc(e) : {}, i = l ? p.omit(a, p.keys(o)) : { ...a };
|
|
27776
27777
|
r.rowhidden_manual = i, n.config = r, e.config.rowhidden_manual = i;
|
|
27777
27778
|
}
|
|
27778
27779
|
function Xa(e) {
|
|
@@ -27780,7 +27781,7 @@ function Xa(e) {
|
|
|
27780
27781
|
const t = ke(e, e.currentSheetId);
|
|
27781
27782
|
if (t == null) return;
|
|
27782
27783
|
Yr(e);
|
|
27783
|
-
const n = e.luckysheetfile[t], r = n.config || {}, a = e.config.rowhidden_manual || {}, l =
|
|
27784
|
+
const n = e.luckysheetfile[t], r = n.config || {}, a = e.config.rowhidden_manual || {}, l = Oc(e), i = e.viewerFilterVisible !== !1 ? l : {}, s = p.assign({}, a, i);
|
|
27784
27785
|
if (e.config.rowhidden_filter = l, r.rowhidden_filter = l, e.config.rowhidden = s, r.rowhidden = s, r.rowhidden_manual = a, n.config = r, typeof process < "u" && ((u = process.env) == null ? void 0 : u.NODE_ENV) !== "production") {
|
|
27785
27786
|
const c = e.config.rowhidden || {}, f = p.assign({}, a, i);
|
|
27786
27787
|
p.size(f) === p.size(c) && p.every(f, (m, h) => c[h] === m) || console.warn("[rowVisibility] ctx.config.rowhidden diverged from union", {
|
|
@@ -27801,11 +27802,11 @@ function u0(e, t, n, r) {
|
|
|
27801
27802
|
i[s] = u;
|
|
27802
27803
|
}), i;
|
|
27803
27804
|
}
|
|
27804
|
-
function
|
|
27805
|
+
function Fc(e, t) {
|
|
27805
27806
|
const n = /* @__PURE__ */ new Set();
|
|
27806
27807
|
return (e == null ? void 0 : e.id) != null && String(e.id).length > 0 && n.add(String(e.id)), typeof (e == null ? void 0 : e.order) == "number" && n.add(String(e.order)), Number.isFinite(t) && n.add(String(t)), [...n];
|
|
27807
27808
|
}
|
|
27808
|
-
function
|
|
27809
|
+
function Lc(e, t) {
|
|
27809
27810
|
var r;
|
|
27810
27811
|
const n = (r = e.hooks) == null ? void 0 : r.afterCommentAnchorMove;
|
|
27811
27812
|
if (n)
|
|
@@ -27815,7 +27816,7 @@ function Fc(e, t) {
|
|
|
27815
27816
|
console.error("[comments] afterCommentAnchorMove failed", a);
|
|
27816
27817
|
}
|
|
27817
27818
|
}
|
|
27818
|
-
const
|
|
27819
|
+
const Bc = (e, t) => {
|
|
27819
27820
|
Object.entries(e).forEach(([, n]) => {
|
|
27820
27821
|
var i;
|
|
27821
27822
|
const { r, c: a, rs: l, cs: o } = n;
|
|
@@ -27876,7 +27877,7 @@ const Na = (e) => {
|
|
|
27876
27877
|
!Number.isFinite(o) || !Number.isFinite(i) || (t = Math.min(t, o), n = Math.min(n, i), r = Math.max(r, o + Math.max(1, s) - 1), a = Math.max(a, i + Math.max(1, u) - 1));
|
|
27877
27878
|
}), t === 1 / 0 ? null : { minR: t, minC: n, maxR: r, maxC: a };
|
|
27878
27879
|
}, Sa = (e, t, n, r, a, l, o, i, s) => {
|
|
27879
|
-
|
|
27880
|
+
Ic(
|
|
27880
27881
|
e,
|
|
27881
27882
|
t,
|
|
27882
27883
|
n,
|
|
@@ -27897,7 +27898,7 @@ const Na = (e) => {
|
|
|
27897
27898
|
type: "update"
|
|
27898
27899
|
}
|
|
27899
27900
|
]);
|
|
27900
|
-
},
|
|
27901
|
+
}, Pc = (e, t, n, r) => {
|
|
27901
27902
|
var l;
|
|
27902
27903
|
if (!((l = e == null ? void 0 : e.hooks) != null && l.updateCellYdoc)) return;
|
|
27903
27904
|
const a = [];
|
|
@@ -27919,7 +27920,7 @@ const Na = (e) => {
|
|
|
27919
27920
|
})}`;
|
|
27920
27921
|
s.f = u, u.includes("#REF!") && Zn(s);
|
|
27921
27922
|
});
|
|
27922
|
-
},
|
|
27923
|
+
}, Hc = (e, t, n, r, a, l, o, i) => {
|
|
27923
27924
|
const s = e.data;
|
|
27924
27925
|
if (!s) {
|
|
27925
27926
|
Xp(e, n, r, a, l, o, i);
|
|
@@ -27949,7 +27950,7 @@ function Zp(e, t, n = !0) {
|
|
|
27949
27950
|
e.formulaCache.markDepGraphIncomplete();
|
|
27950
27951
|
const { type: l, index: o, direction: i, templateSourceRows: s, templateSourceColumns: u } = t;
|
|
27951
27952
|
a = a || e.currentSheetId;
|
|
27952
|
-
const c =
|
|
27953
|
+
const c = Rc(e), f = ke(e, a);
|
|
27953
27954
|
if (f == null) return;
|
|
27954
27955
|
const d = e.luckysheetfile[f];
|
|
27955
27956
|
if (!d) return;
|
|
@@ -27994,7 +27995,7 @@ function Zp(e, t, n = !0) {
|
|
|
27994
27995
|
_.c1,
|
|
27995
27996
|
_.c2,
|
|
27996
27997
|
d.celldata
|
|
27997
|
-
), C =
|
|
27998
|
+
), C = qc(e), N = y && d.dataVerification != null ? [w].map((B) => {
|
|
27998
27999
|
const Z = {};
|
|
27999
28000
|
return p.forEach(d.dataVerification, (le, de) => {
|
|
28000
28001
|
const ve = Number(de.split("_")[0]), Ne = Number(de.split("_")[1]);
|
|
@@ -28091,7 +28092,7 @@ function Zp(e, t, n = !0) {
|
|
|
28091
28092
|
xe != null && xe.f === Be && (xe.f = Me);
|
|
28092
28093
|
}
|
|
28093
28094
|
}
|
|
28094
|
-
|
|
28095
|
+
Hc(
|
|
28095
28096
|
e.luckysheetfile[B],
|
|
28096
28097
|
Z,
|
|
28097
28098
|
"add",
|
|
@@ -28454,7 +28455,7 @@ function Zp(e, t, n = !0) {
|
|
|
28454
28455
|
{ row: [o, o + r - 1], column: [0, m[0].length - 1] }
|
|
28455
28456
|
] : V = [
|
|
28456
28457
|
{ row: [o + 1, o + r], column: [0, m[0].length - 1] }
|
|
28457
|
-
], d.row = d.data.length) : (i === "lefttop" ? V = [{ row: [0, m.length - 1], column: [o, o + r - 1] }] : V = [{ row: [0, m.length - 1], column: [o + 1, o + r] }], d.column = (L = d.data[0]) == null ? void 0 : L.length), n && (d.luckysheet_select_save = V, d.id === e.currentSheetId && (e.luckysheet_select_save = V)),
|
|
28458
|
+
], d.row = d.data.length) : (i === "lefttop" ? V = [{ row: [0, m.length - 1], column: [o, o + r - 1] }] : V = [{ row: [0, m.length - 1], column: [o + 1, o + r] }], d.column = (L = d.data[0]) == null ? void 0 : L.length), n && (d.luckysheet_select_save = V, d.id === e.currentSheetId && (e.luckysheet_select_save = V)), Bc($, d), V) {
|
|
28458
28459
|
const B = bu(
|
|
28459
28460
|
h.cellFormatRanges,
|
|
28460
28461
|
m,
|
|
@@ -28470,7 +28471,7 @@ function Zp(e, t, n = !0) {
|
|
|
28470
28471
|
c.sink
|
|
28471
28472
|
));
|
|
28472
28473
|
}
|
|
28473
|
-
const fe =
|
|
28474
|
+
const fe = zm(
|
|
28474
28475
|
e,
|
|
28475
28476
|
a,
|
|
28476
28477
|
l,
|
|
@@ -28507,7 +28508,7 @@ function Zp(e, t, n = !0) {
|
|
|
28507
28508
|
c.sink
|
|
28508
28509
|
);
|
|
28509
28510
|
}
|
|
28510
|
-
|
|
28511
|
+
Dc(
|
|
28511
28512
|
e,
|
|
28512
28513
|
C,
|
|
28513
28514
|
a,
|
|
@@ -28520,17 +28521,17 @@ function Zp(e, t, n = !0) {
|
|
|
28520
28521
|
(Te == null ? void 0 : Te.minC) ?? 1 / 0
|
|
28521
28522
|
) : 1 / 0,
|
|
28522
28523
|
c.sink
|
|
28523
|
-
),
|
|
28524
|
+
), Pc(e, a, d, c.sink), c.flush(), Lc(e, {
|
|
28524
28525
|
type: "insert",
|
|
28525
28526
|
axis: l,
|
|
28526
28527
|
sheetId: String(d.id ?? a),
|
|
28527
|
-
sheetKeys:
|
|
28528
|
+
sheetKeys: Fc(d, f),
|
|
28528
28529
|
index: o,
|
|
28529
28530
|
count: r,
|
|
28530
28531
|
direction: i
|
|
28531
28532
|
});
|
|
28532
28533
|
}
|
|
28533
|
-
function
|
|
28534
|
+
function Uc(e, t) {
|
|
28534
28535
|
var Y, D, pe, he, Q, z, V, fe, Te, q, E, H, Ce, P, Ee, j;
|
|
28535
28536
|
const { type: n } = t;
|
|
28536
28537
|
let { start: r, end: a, id: l } = t;
|
|
@@ -28574,7 +28575,7 @@ function Hc(e, t) {
|
|
|
28574
28575
|
x.push({ start: te, end: ne });
|
|
28575
28576
|
for (let F = x.length - 1; F >= 0; F -= 1) {
|
|
28576
28577
|
const ee = x[F];
|
|
28577
|
-
|
|
28578
|
+
Uc(e, {
|
|
28578
28579
|
type: "row",
|
|
28579
28580
|
start: ee.start,
|
|
28580
28581
|
end: ee.end,
|
|
@@ -28597,7 +28598,7 @@ function Hc(e, t) {
|
|
|
28597
28598
|
d.c1,
|
|
28598
28599
|
d.c2,
|
|
28599
28600
|
i.celldata
|
|
28600
|
-
), h =
|
|
28601
|
+
), h = qc(e);
|
|
28601
28602
|
s.merge == null && (s.merge = {});
|
|
28602
28603
|
const g = {};
|
|
28603
28604
|
p.forEach(s.merge, (J) => {
|
|
@@ -28681,7 +28682,7 @@ function Hc(e, t) {
|
|
|
28681
28682
|
X != null && X.f === we && (X.f = se, se.includes("#REF!") && Zn(X));
|
|
28682
28683
|
}
|
|
28683
28684
|
}
|
|
28684
|
-
|
|
28685
|
+
Hc(
|
|
28685
28686
|
e.luckysheetfile[J],
|
|
28686
28687
|
x,
|
|
28687
28688
|
"del",
|
|
@@ -28890,9 +28891,9 @@ function Hc(e, t) {
|
|
|
28890
28891
|
c[ne].splice(r, f);
|
|
28891
28892
|
i.column = (Ce = c[0]) == null ? void 0 : Ce.length;
|
|
28892
28893
|
}
|
|
28893
|
-
e.luckysheet_select_save = void 0, i.data = c, i.config = s, i.calcChain = y, v != null && (i.filter = v.filter, i.filter_select = v.filter_select), i.luckysheet_conditionformat_save = C, i.luckysheet_alternateformat_save = A, i.dataVerification = M, i.hyperlink = G,
|
|
28894
|
-
const ie =
|
|
28895
|
-
s.cellFormatRanges =
|
|
28894
|
+
e.luckysheet_select_save = void 0, i.data = c, i.config = s, i.calcChain = y, v != null && (i.filter = v.filter, i.filter_select = v.filter_select), i.luckysheet_conditionformat_save = C, i.luckysheet_alternateformat_save = A, i.dataVerification = M, i.hyperlink = G, Bc(g, i);
|
|
28895
|
+
const ie = Rc(e), O = s.cellFormatRanges;
|
|
28896
|
+
s.cellFormatRanges = Ff(
|
|
28896
28897
|
s.cellFormatRanges,
|
|
28897
28898
|
n,
|
|
28898
28899
|
r,
|
|
@@ -28903,7 +28904,7 @@ function Hc(e, t) {
|
|
|
28903
28904
|
s.cellFormatRanges,
|
|
28904
28905
|
ie.sink
|
|
28905
28906
|
);
|
|
28906
|
-
const K =
|
|
28907
|
+
const K = Wm(e, l, n, r, a);
|
|
28907
28908
|
K.length > 0 && wl(e, K);
|
|
28908
28909
|
const W = Na(s.merge);
|
|
28909
28910
|
if (n === "row") {
|
|
@@ -28933,7 +28934,7 @@ function Hc(e, t) {
|
|
|
28933
28934
|
ie.sink
|
|
28934
28935
|
);
|
|
28935
28936
|
}
|
|
28936
|
-
if (
|
|
28937
|
+
if (Dc(
|
|
28937
28938
|
e,
|
|
28938
28939
|
h,
|
|
28939
28940
|
l,
|
|
@@ -28947,11 +28948,11 @@ function Hc(e, t) {
|
|
|
28947
28948
|
c.length,
|
|
28948
28949
|
((j = c[0]) == null ? void 0 : j.length) ?? 0,
|
|
28949
28950
|
ie.sink
|
|
28950
|
-
),
|
|
28951
|
+
), Pc(e, l, i, ie.sink), ie.flush(), Lc(e, {
|
|
28951
28952
|
type: "delete",
|
|
28952
28953
|
axis: n,
|
|
28953
28954
|
sheetId: String(i.id ?? l),
|
|
28954
|
-
sheetKeys:
|
|
28955
|
+
sheetKeys: Fc(i, o),
|
|
28955
28956
|
start: r,
|
|
28956
28957
|
end: a
|
|
28957
28958
|
}), i.id === e.currentSheetId) {
|
|
@@ -29251,7 +29252,7 @@ function Qp(e, t, n, r) {
|
|
|
29251
29252
|
}
|
|
29252
29253
|
s.length > 0 && ((h = e == null ? void 0 : e.hooks) != null && h.updateCellYdoc) && e.hooks.updateCellYdoc(s), l.config = o, l.id === e.currentSheetId && (e.config = o);
|
|
29253
29254
|
}
|
|
29254
|
-
function
|
|
29255
|
+
function zc(e) {
|
|
29255
29256
|
const t = String(e ?? "").trim();
|
|
29256
29257
|
if (!t) return !1;
|
|
29257
29258
|
const n = t.replace(/^mailto:/i, "");
|
|
@@ -29280,7 +29281,7 @@ function Il(e) {
|
|
|
29280
29281
|
function Tn(e, t) {
|
|
29281
29282
|
return e.linkType === t.linkType && e.linkAddress === t.linkAddress;
|
|
29282
29283
|
}
|
|
29283
|
-
function
|
|
29284
|
+
function Wc(e) {
|
|
29284
29285
|
var r;
|
|
29285
29286
|
if (((r = e == null ? void 0 : e.ct) == null ? void 0 : r.t) !== "inlineStr" || !Array.isArray(e.ct.s)) return [];
|
|
29286
29287
|
const t = [];
|
|
@@ -29460,7 +29461,7 @@ function ka(e, t, n) {
|
|
|
29460
29461
|
e.linkCard = void 0;
|
|
29461
29462
|
return;
|
|
29462
29463
|
}
|
|
29463
|
-
const l = (c = (u = Ae(e)) == null ? void 0 : u[t]) == null ? void 0 : c[n], o =
|
|
29464
|
+
const l = (c = (u = Ae(e)) == null ? void 0 : u[t]) == null ? void 0 : c[n], o = Wc(l ?? void 0);
|
|
29464
29465
|
e.linkCard.links = o.length > 0 ? o : a, e.linkCard.editingLinkIndex = void 0, e.linkCard.isEditing = !1;
|
|
29465
29466
|
const i = (o.length > 0 ? o : a)[0];
|
|
29466
29467
|
e.linkCard.originType = i.linkType, e.linkCard.originAddress = i.linkAddress, e.linkCard.originText = (l == null ? void 0 : l.v) != null && !Array.isArray(l.v) ? `${l.v}` : "";
|
|
@@ -29502,7 +29503,7 @@ function b0(e, t, n, r, a, l, o) {
|
|
|
29502
29503
|
lo(g, w.start, w.end);
|
|
29503
29504
|
} else
|
|
29504
29505
|
g.focus({ preventScroll: !0 });
|
|
29505
|
-
|
|
29506
|
+
Yd(g, a, l);
|
|
29506
29507
|
const v = h.fs || 10;
|
|
29507
29508
|
h.ct || (h.ct = { fa: "General", tb: "1" }), h.ct.t = "inlineStr", h.ct.s = qu(
|
|
29508
29509
|
o.cellInput.querySelectorAll("span"),
|
|
@@ -29643,7 +29644,7 @@ function ig(e, t, n, r, a = !1, l = !1) {
|
|
|
29643
29644
|
const o = (((h = e.luckysheetCellUpdate) == null ? void 0 : h.length) ?? 0) === 2 && e.luckysheetCellUpdate[0] === t && e.luckysheetCellUpdate[1] === n, i = r == null ? void 0 : r.caretViewLink;
|
|
29644
29645
|
if (o && !a && !i || (g = e.linkCard) != null && g.selectingCellRange && !a || `${t}_${n}` === ((y = e.linkCard) == null ? void 0 : y.rc) && !(r != null && r.applyToSelection) && !l && !a && !i)
|
|
29645
29646
|
return;
|
|
29646
|
-
const s = Vr(e, t, n), u = s[0], c = (w = (b = Ae(e)) == null ? void 0 : b[t]) == null ? void 0 : w[n], f =
|
|
29647
|
+
const s = Vr(e, t, n), u = s[0], c = (w = (b = Ae(e)) == null ? void 0 : b[t]) == null ? void 0 : w[n], f = Wc(c ?? void 0), d = f.length > 0 ? f : s, m = !!(r != null && r.applyToSelection);
|
|
29647
29648
|
if (!a && u == null && !i && (l || !((v = e.linkCard) != null && v.isEditing) || e.linkCard.sheetId !== e.currentSheetId)) {
|
|
29648
29649
|
e.linkCard = void 0;
|
|
29649
29650
|
return;
|
|
@@ -29683,7 +29684,7 @@ function _0(e, t, n, r, a, l, o) {
|
|
|
29683
29684
|
if (r === "webpage") {
|
|
29684
29685
|
const s = String(a ?? "").trim();
|
|
29685
29686
|
if (!s) return;
|
|
29686
|
-
if (
|
|
29687
|
+
if (zc(s)) {
|
|
29687
29688
|
const u = s.replace(/^mailto:/i, "");
|
|
29688
29689
|
window.open(`mailto:${u}`);
|
|
29689
29690
|
} else {
|
|
@@ -29707,7 +29708,7 @@ function _0(e, t, n, r, a, l, o) {
|
|
|
29707
29708
|
function T0(e, t, n) {
|
|
29708
29709
|
if (!n) return { isValid: !1, tooltip: "" };
|
|
29709
29710
|
const { insertLink: r } = It(e), a = String(n ?? "").trim();
|
|
29710
|
-
return
|
|
29711
|
+
return zc(a) ? { isValid: !0, tooltip: "" } : (/^https?:\/\//i.test(n) || (n = `https://${n}`), /^(https?):\/\/[^\s$.?#].[^\s]*$/i.test(n) ? t === "cellrange" && !Mt(n) ? { isValid: !1, tooltip: r.invalidCellRangeTip } : { isValid: !0, tooltip: "" } : { isValid: !1, tooltip: r.tooltipInfo1 });
|
|
29711
29712
|
}
|
|
29712
29713
|
function C0(e, t) {
|
|
29713
29714
|
var s;
|
|
@@ -30069,7 +30070,7 @@ function cg(e, t, n, r, a) {
|
|
|
30069
30070
|
}
|
|
30070
30071
|
return l;
|
|
30071
30072
|
}
|
|
30072
|
-
function
|
|
30073
|
+
function Yc(e, t) {
|
|
30073
30074
|
let n = e ?? [];
|
|
30074
30075
|
return t.forEach((r) => {
|
|
30075
30076
|
n = cg(
|
|
@@ -30099,7 +30100,7 @@ function Aa(e) {
|
|
|
30099
30100
|
function Qa(e) {
|
|
30100
30101
|
return e == null ? !0 : !(e.v != null && e.v !== "" || e.m != null && String(e.m) !== "" || e.f != null && String(e.f) !== "");
|
|
30101
30102
|
}
|
|
30102
|
-
function
|
|
30103
|
+
function Vc(e, t, n) {
|
|
30103
30104
|
var r;
|
|
30104
30105
|
(r = e.luckysheet_select_save) == null || r.forEach((a) => {
|
|
30105
30106
|
var l;
|
|
@@ -30108,17 +30109,17 @@ function Yc(e, t, n) {
|
|
|
30108
30109
|
n(o, i, (l = t[o]) == null ? void 0 : l[i]);
|
|
30109
30110
|
});
|
|
30110
30111
|
}
|
|
30111
|
-
function
|
|
30112
|
+
function Gc(e, t, n) {
|
|
30112
30113
|
if (!e[t]) return null;
|
|
30113
30114
|
const r = e[t][n];
|
|
30114
30115
|
return r != null && !p.isPlainObject(r) ? null : (r == null ? e[t][n] = { ct: { fa: "General", t: "g" } } : (r.ct || (r.ct = {}), (r.ct.fa == null || r.ct.fa === "General") && (r.ct.fa = "General", r.ct.t = "g")), e[t][n]);
|
|
30115
30116
|
}
|
|
30116
|
-
function
|
|
30117
|
+
function jc(e, t) {
|
|
30117
30118
|
if (!p.isPlainObject(e)) return !1;
|
|
30118
30119
|
const n = Qa(e), r = e.v ?? e.m;
|
|
30119
30120
|
if (!n && (r == null || !Ze(r))) return !1;
|
|
30120
30121
|
e.ct || (e.ct = {}), e.ct.fa = "General", e.ct.t = "g";
|
|
30121
|
-
const a = n ? e.ct.dp != null && e.ct.dp >= 0 ? Math.min(wa, Math.floor(e.ct.dp)) : 0 :
|
|
30122
|
+
const a = n ? e.ct.dp != null && e.ct.dp >= 0 ? Math.min(wa, Math.floor(e.ct.dp)) : 0 : pm(e);
|
|
30122
30123
|
if (t < 0) {
|
|
30123
30124
|
if (a <= 0) return !1;
|
|
30124
30125
|
e.ct.dp = a - 1;
|
|
@@ -30132,7 +30133,7 @@ function Pr(e) {
|
|
|
30132
30133
|
const t = (n = e.ct) == null ? void 0 : n.fa;
|
|
30133
30134
|
return t === "General" || t == null ? !0 : ((r = e.ct) == null ? void 0 : r.t) === "g";
|
|
30134
30135
|
}
|
|
30135
|
-
function
|
|
30136
|
+
function Xc(e, t, n) {
|
|
30136
30137
|
var r, a;
|
|
30137
30138
|
t.length !== 0 && (Fu(), (a = (r = e.hooks) == null ? void 0 : r.updateCellYdoc) == null || a.call(
|
|
30138
30139
|
r,
|
|
@@ -30167,7 +30168,7 @@ function Zs(e, t, n, r, a, l, o, i) {
|
|
|
30167
30168
|
type: "update"
|
|
30168
30169
|
});
|
|
30169
30170
|
}
|
|
30170
|
-
function
|
|
30171
|
+
function Zc(e, t, n, r, a, l, o, i, s) {
|
|
30171
30172
|
var u, c, f, d, m, h, g, y, b, w, v, _, T, C, N, A, $, S, M, U, G, ie, O, K, W, Y, D, pe, he, Q, z, V, fe, Te, q, E, H, Ce, P, Ee, j, J, x, te, ne;
|
|
30172
30173
|
if (!(p.isNil(t) || p.isNil(n)))
|
|
30173
30174
|
if (n === "ct") {
|
|
@@ -30254,7 +30255,7 @@ function Xc(e, t, n, r, a, l, o, i, s) {
|
|
|
30254
30255
|
for (let we = o; we <= i; we += 1) {
|
|
30255
30256
|
const se = t[ue][we];
|
|
30256
30257
|
if (se && p.isPlainObject(se)) {
|
|
30257
|
-
|
|
30258
|
+
Bd(se, n, r), se[n] = r, (E = e.luckysheetfile[F]).config || (E.config = {});
|
|
30258
30259
|
const X = e.luckysheetfile[F].config, qe = ((H = X.columnlen) == null ? void 0 : H[we]) || e.luckysheetfile[F].defaultColWidth;
|
|
30259
30260
|
if (n === "fs" && s) {
|
|
30260
30261
|
const De = Lu(t[ue][we], s, e, {
|
|
@@ -30315,14 +30316,14 @@ function Xc(e, t, n, r, a, l, o, i, s) {
|
|
|
30315
30316
|
function en(e, t, n, r, a, l) {
|
|
30316
30317
|
var s, u;
|
|
30317
30318
|
if (!ft(e)) return;
|
|
30318
|
-
if (r in
|
|
30319
|
-
|
|
30319
|
+
if (r in xd && e.luckysheetCellUpdate.length > 0 && t.innerText.substring(0, 1) !== "=") {
|
|
30320
|
+
Ud(e, r, a, t);
|
|
30320
30321
|
return;
|
|
30321
30322
|
}
|
|
30322
30323
|
const i = p.cloneDeep(e.config);
|
|
30323
30324
|
if (p.isNil(i.rowlen) && (i.rowlen = {}), p.forEach(e.luckysheet_select_save, (c) => {
|
|
30324
30325
|
const [f, d] = c.row, [m, h] = c.column;
|
|
30325
|
-
|
|
30326
|
+
Zc(
|
|
30326
30327
|
e,
|
|
30327
30328
|
n,
|
|
30328
30329
|
r,
|
|
@@ -30356,7 +30357,7 @@ function en(e, t, n, r, a, l) {
|
|
|
30356
30357
|
c: y,
|
|
30357
30358
|
i: c
|
|
30358
30359
|
}));
|
|
30359
|
-
e.formulaCache.execFunctionExist = h, e.formulaCache.execFunctionExist.reverse(), Bt(e, null, null, null, null, n), e.formulaCache.execFunctionGlobalData = null,
|
|
30360
|
+
e.formulaCache.execFunctionExist = h, e.formulaCache.execFunctionExist.reverse(), Bt(e, null, null, null, null, n), e.formulaCache.execFunctionGlobalData = null, ac(e);
|
|
30360
30361
|
}
|
|
30361
30362
|
}
|
|
30362
30363
|
}
|
|
@@ -30420,7 +30421,7 @@ function Kn(e, t, n, r, a, l, o, i, s, u) {
|
|
|
30420
30421
|
height_move: f - c - 1,
|
|
30421
30422
|
row: [r, r],
|
|
30422
30423
|
column: [a, a]
|
|
30423
|
-
},
|
|
30424
|
+
}, oc(n, {
|
|
30424
30425
|
rangeIndex: n.formulaCache.rangeIndex || 0,
|
|
30425
30426
|
left: d,
|
|
30426
30427
|
width: m - d - 1,
|
|
@@ -30693,7 +30694,7 @@ function mg(e) {
|
|
|
30693
30694
|
var t;
|
|
30694
30695
|
if (e.luckysheet_copy_save !== null) {
|
|
30695
30696
|
if (((t = e.luckysheet_copy_save) == null ? void 0 : t.dataSheetId) === e.currentSheetId)
|
|
30696
|
-
e.luckysheet_selection_range = [],
|
|
30697
|
+
e.luckysheet_selection_range = [], xc(e.luckysheet_selection_range, e);
|
|
30697
30698
|
else {
|
|
30698
30699
|
if (!e.luckysheet_copy_save) return;
|
|
30699
30700
|
const n = ke(e, e.luckysheet_copy_save.dataSheetId);
|
|
@@ -30729,19 +30730,19 @@ function gg(e, t) {
|
|
|
30729
30730
|
if (!n || !e.luckysheet_select_save) return;
|
|
30730
30731
|
const r = e.luckysheet_select_save[0].row_focus, a = e.luckysheet_select_save[0].column_focus;
|
|
30731
30732
|
if (r === void 0 || a === void 0) return;
|
|
30732
|
-
let l =
|
|
30733
|
+
let l = kc(n, r, a, "ct");
|
|
30733
30734
|
const o = n[r][a];
|
|
30734
30735
|
if (!Aa(o))
|
|
30735
30736
|
return;
|
|
30736
30737
|
if (l == null && (l = { fa: "General", t: "g" }), Pr(o)) {
|
|
30737
30738
|
const m = [];
|
|
30738
|
-
|
|
30739
|
+
Vc(e, n, (h, g, y) => {
|
|
30739
30740
|
var w;
|
|
30740
30741
|
if (((w = y == null ? void 0 : y.ct) == null ? void 0 : w.fa) === "@" || y != null && !Pr(y) || y != null && !Aa(y) && !Qa(y))
|
|
30741
30742
|
return;
|
|
30742
|
-
const b =
|
|
30743
|
-
b &&
|
|
30744
|
-
}),
|
|
30743
|
+
const b = Gc(n, h, g);
|
|
30744
|
+
b && jc(b, -1) && m.push({ row: h, col: g });
|
|
30745
|
+
}), Xc(e, m, n);
|
|
30745
30746
|
return;
|
|
30746
30747
|
}
|
|
30747
30748
|
if (l.t !== "n")
|
|
@@ -30790,19 +30791,19 @@ function yg(e, t) {
|
|
|
30790
30791
|
if (!n || !e.luckysheet_select_save) return;
|
|
30791
30792
|
const r = e.luckysheet_select_save[0].row_focus, a = e.luckysheet_select_save[0].column_focus;
|
|
30792
30793
|
if (r === void 0 || a === void 0) return;
|
|
30793
|
-
let l =
|
|
30794
|
+
let l = kc(n, r, a, "ct");
|
|
30794
30795
|
const o = n[r][a];
|
|
30795
30796
|
if (!Aa(o))
|
|
30796
30797
|
return;
|
|
30797
30798
|
if (l == null && (l = { fa: "General", t: "g" }), Pr(o)) {
|
|
30798
30799
|
const m = [];
|
|
30799
|
-
|
|
30800
|
+
Vc(e, n, (h, g, y) => {
|
|
30800
30801
|
var w;
|
|
30801
30802
|
if (((w = y == null ? void 0 : y.ct) == null ? void 0 : w.fa) === "@" || y != null && !Pr(y) || y != null && !Aa(y) && !Qa(y))
|
|
30802
30803
|
return;
|
|
30803
|
-
const b =
|
|
30804
|
-
b &&
|
|
30805
|
-
}),
|
|
30804
|
+
const b = Gc(n, h, g);
|
|
30805
|
+
b && jc(b, 1) && m.push({ row: h, col: g });
|
|
30806
|
+
}), Xc(e, m, n);
|
|
30806
30807
|
return;
|
|
30807
30808
|
}
|
|
30808
30809
|
if (l.t !== "n")
|
|
@@ -30861,7 +30862,7 @@ function Tg(e) {
|
|
|
30861
30862
|
row: e.luckysheet_select_save[0].row,
|
|
30862
30863
|
column: e.luckysheet_select_save[0].column
|
|
30863
30864
|
}
|
|
30864
|
-
],
|
|
30865
|
+
], xc(e.luckysheet_selection_range, e);
|
|
30865
30866
|
let i = !1, s = !1;
|
|
30866
30867
|
for (let u = e.luckysheet_select_save[0].row[0]; u <= e.luckysheet_select_save[0].row[1]; u += 1)
|
|
30867
30868
|
if (!(e.config.rowhidden != null && e.config.rowhidden[u] != null)) {
|
|
@@ -30915,7 +30916,7 @@ function Cg(e) {
|
|
|
30915
30916
|
const m = ((s = e.luckysheet_select_save) == null ? void 0 : s.map((g) => ({
|
|
30916
30917
|
row: g.row,
|
|
30917
30918
|
column: g.column
|
|
30918
|
-
}))) ?? [], h =
|
|
30919
|
+
}))) ?? [], h = Yc(
|
|
30919
30920
|
e.config.borderInfo,
|
|
30920
30921
|
m
|
|
30921
30922
|
);
|
|
@@ -30961,7 +30962,7 @@ function $g(e, t, n, r) {
|
|
|
30961
30962
|
column: f.column
|
|
30962
30963
|
}))) ?? [];
|
|
30963
30964
|
if (t === "border-none") {
|
|
30964
|
-
i.borderInfo =
|
|
30965
|
+
i.borderInfo = Yc(i.borderInfo, s);
|
|
30965
30966
|
const f = ke(e, e.currentSheetId);
|
|
30966
30967
|
if (f == null) return;
|
|
30967
30968
|
Ir(e.luckysheetfile[f], e.config), e.config = e.luckysheetfile[f].config, jo(e, i.borderInfo);
|
|
@@ -31037,7 +31038,7 @@ function M0(e, t, n, r) {
|
|
|
31037
31038
|
function I0(e, t, n, r) {
|
|
31038
31039
|
dg(e, t, n, "SUM", r);
|
|
31039
31040
|
}
|
|
31040
|
-
function
|
|
31041
|
+
function Kc(e) {
|
|
31041
31042
|
return e.replace(/\r\n/g, `
|
|
31042
31043
|
`).replace(/\r/g, `
|
|
31043
31044
|
`);
|
|
@@ -31073,7 +31074,7 @@ function q0(e, t, n) {
|
|
|
31073
31074
|
delete n.linkEditorOpenSnapshot;
|
|
31074
31075
|
return;
|
|
31075
31076
|
}
|
|
31076
|
-
const o =
|
|
31077
|
+
const o = Kc(l), i = Mu(t), s = Ru(t);
|
|
31077
31078
|
if (s == null && i == null) {
|
|
31078
31079
|
delete n.linkEditorOpenSnapshot;
|
|
31079
31080
|
return;
|
|
@@ -31134,7 +31135,7 @@ function Eg(e, t, n) {
|
|
|
31134
31135
|
const v = (() => {
|
|
31135
31136
|
var A, $;
|
|
31136
31137
|
return ((A = h == null ? void 0 : h.ct) == null ? void 0 : A.t) === "inlineStr" && Array.isArray(($ = h.ct) == null ? void 0 : $.s) ? h.ct.s.map((S) => (S == null ? void 0 : S.v) ?? "").join("") : (h == null ? void 0 : h.v) == null || Array.isArray(h == null ? void 0 : h.v) ? "" : `${h.v}`;
|
|
31137
|
-
})(), _ =
|
|
31138
|
+
})(), _ = Kc(v), T = _.length;
|
|
31138
31139
|
u = !0;
|
|
31139
31140
|
const N = Vr(e, o, i)[0];
|
|
31140
31141
|
T > 0 ? (f = { start: 0, end: T }, c = _, d = T) : (f = { start: 0, end: 0 }, c = "", d = 0), N && (m = N), e.luckysheetCellUpdate = [o, i];
|
|
@@ -31251,7 +31252,7 @@ function qg(e) {
|
|
|
31251
31252
|
}
|
|
31252
31253
|
return n;
|
|
31253
31254
|
}
|
|
31254
|
-
function
|
|
31255
|
+
function Qc(e) {
|
|
31255
31256
|
typeof e == "number" && (e = `${e}`);
|
|
31256
31257
|
let t = !0;
|
|
31257
31258
|
if (e == null)
|
|
@@ -31281,11 +31282,11 @@ function Ra(e) {
|
|
|
31281
31282
|
}
|
|
31282
31283
|
return [n];
|
|
31283
31284
|
}
|
|
31284
|
-
function
|
|
31285
|
+
function Jc(e) {
|
|
31285
31286
|
let t = !1;
|
|
31286
31287
|
return typeof e == "number" && (e = `${e}`), e !== void 0 && e.length === 2 && (e === "周一" || e === "周二" || e === "周三" || e === "周四" || e === "周五" || e === "周六" || e === "周日") && (t = !0), t;
|
|
31287
31288
|
}
|
|
31288
|
-
function
|
|
31289
|
+
function ef(e) {
|
|
31289
31290
|
typeof e == "number" && (e = `${e}`);
|
|
31290
31291
|
let t = !1;
|
|
31291
31292
|
return e !== void 0 && e.length === 3 && (e === "星期一" || e === "星期二" || e === "星期三" || e === "星期四" || e === "星期五" || e === "星期六" || e === "星期日") && (t = !0), t;
|
|
@@ -31348,7 +31349,7 @@ function pr(e) {
|
|
|
31348
31349
|
l
|
|
31349
31350
|
];
|
|
31350
31351
|
}
|
|
31351
|
-
function
|
|
31352
|
+
function tf({ width: e, height: t, top: n, left: r }, a) {
|
|
31352
31353
|
const l = a.querySelector(
|
|
31353
31354
|
".fortune-cell-selected-extend"
|
|
31354
31355
|
);
|
|
@@ -31363,7 +31364,7 @@ function Og(e) {
|
|
|
31363
31364
|
function O0(e, t, n) {
|
|
31364
31365
|
e.luckysheet_cell_selected_extend = !0, e.luckysheet_scroll_status = !0;
|
|
31365
31366
|
const { scrollLeft: r, scrollTop: a } = e, l = n.getBoundingClientRect(), o = t.pageX - l.left - e.rowHeaderWidth + r, i = t.pageY - l.top - e.columnHeaderHeight + a, s = zn(i, e.visibledatarow), u = s[0], c = s[1], f = s[2], d = Wn(o, e.visibledatacolumn), m = d[0], h = d[1], g = d[2];
|
|
31366
|
-
e.luckysheet_cell_selected_extend_index = [f, g],
|
|
31367
|
+
e.luckysheet_cell_selected_extend_index = [f, g], tf(
|
|
31367
31368
|
{
|
|
31368
31369
|
left: m,
|
|
31369
31370
|
width: h - m - 1,
|
|
@@ -31377,7 +31378,7 @@ function F0(e, t, n, r, a) {
|
|
|
31377
31378
|
const { scrollLeft: l } = n, { scrollTop: o } = r, i = a.getBoundingClientRect(), s = t.pageX - i.left - e.rowHeaderWidth + l, u = t.pageY - i.top - e.columnHeaderHeight + o, c = zn(u, e.visibledatarow), f = c[1], d = c[0], m = c[2], h = Wn(s, e.visibledatacolumn), g = h[1], y = h[0], b = h[2], w = e.luckysheet_cell_selected_extend_index[0], v = e.luckysheet_cell_selected_extend_index[1];
|
|
31378
31379
|
if (!e.luckysheet_select_save) return;
|
|
31379
31380
|
let _ = e.luckysheet_select_save[0].row[0], T = e.luckysheet_select_save[0].row[1], C = e.luckysheet_select_save[0].column[0], N = e.luckysheet_select_save[0].column[1], A = e.luckysheet_select_save[0].top_move, $ = e.luckysheet_select_save[0].height_move, S = e.luckysheet_select_save[0].left_move, M = e.luckysheet_select_save[0].width_move;
|
|
31380
|
-
A == null || $ == null || S == null || M == null || (Math.abs(w - m) > Math.abs(v - b) ? m >= _ && m <= T || (A >= d ? ($ += A - d, A = d) : $ = f - A - 1) : b >= C && b <= N || (S >= y ? (M += S - y, S = y) : M = g - S - 1), u < 0 && (_ = 0, [T] = e.luckysheet_select_save[0].row), s < 0 && (C = 0, [N] = e.luckysheet_select_save[0].column),
|
|
31381
|
+
A == null || $ == null || S == null || M == null || (Math.abs(w - m) > Math.abs(v - b) ? m >= _ && m <= T || (A >= d ? ($ += A - d, A = d) : $ = f - A - 1) : b >= C && b <= N || (S >= y ? (M += S - y, S = y) : M = g - S - 1), u < 0 && (_ = 0, [T] = e.luckysheet_select_save[0].row), s < 0 && (C = 0, [N] = e.luckysheet_select_save[0].column), tf({ left: S, width: M, top: A, height: $ }, a));
|
|
31381
31382
|
}
|
|
31382
31383
|
function Gt(e, t) {
|
|
31383
31384
|
const n = [];
|
|
@@ -31536,7 +31537,7 @@ function Js(e, t, n) {
|
|
|
31536
31537
|
}
|
|
31537
31538
|
return r;
|
|
31538
31539
|
}
|
|
31539
|
-
function
|
|
31540
|
+
function nf(e) {
|
|
31540
31541
|
const { copyRange: t } = Qe, n = t.row[0], r = t.row[1], a = t.column[0], l = t.column[1];
|
|
31541
31542
|
let o = !1, i = !1, s = !1, u = !1, c = !1, f = !1, d = !1;
|
|
31542
31543
|
const m = Ae(e);
|
|
@@ -31545,7 +31546,7 @@ function tf(e) {
|
|
|
31545
31546
|
for (let g = a; g <= l; g += 1)
|
|
31546
31547
|
if (m[h][g]) {
|
|
31547
31548
|
const y = m[h][g];
|
|
31548
|
-
y !== null && y.v != null && y.f == null && (y.ct != null && an(y) ? o = !0 : y.ct != null && y.ct.t === "d" ? s = !0 : Ra(y.m)[0] ? i = !0 :
|
|
31549
|
+
y !== null && y.v != null && y.f == null && (y.ct != null && an(y) ? o = !0 : y.ct != null && y.ct.t === "d" ? s = !0 : Ra(y.m)[0] ? i = !0 : Qc(y.m) && y.m !== "日" ? u = !0 : y.m != null && y.m === "日" ? c = !0 : Jc(y.m) ? f = !0 : ef(y.m) && (d = !0));
|
|
31549
31550
|
}
|
|
31550
31551
|
return [
|
|
31551
31552
|
o,
|
|
@@ -31889,7 +31890,7 @@ function Ug(e, t, n, r, a, l) {
|
|
|
31889
31890
|
T = "extendNumber";
|
|
31890
31891
|
const C = Ra(_.m);
|
|
31891
31892
|
y == null || b == null ? (w = !0, [, , y, b] = C) : C[2] !== y || C[3] !== b ? (w = !1, [, , y, b] = C) : w = !0;
|
|
31892
|
-
} else
|
|
31893
|
+
} else Qc(_.m) ? (T = "chnNumber", y = null, b = null) : Jc(_.m) ? (T = "chnWeek2", y = null, b = null) : ef(_.m) ? (T = "chnWeek3", y = null, b = null) : (T = "other", y = null, b = null);
|
|
31893
31894
|
else
|
|
31894
31895
|
T = "other", y = null, b = null;
|
|
31895
31896
|
T === "extendNumber" ? v === u ? u === c ? (g = T, m.push(_), h.push(v - u + 1), d[g] = [], d[g].push({ data: m, index: h })) : (g = T, m.push(_), h.push(v - u + 1)) : v === c ? g === T && w ? (m.push(_), h.push(v - u + 1), g in d ? d[g].push({ data: m, index: h }) : (d[g] = [], d[g].push({ data: m, index: h }))) : (g in d ? d[g].push({ data: m, index: h }) : (d[g] = [], d[g].push({ data: m, index: h })), g = T, m = [], m.push(_), h = [], h.push(v - u + 1), g in d ? d[g].push({ data: m, index: h }) : (d[g] = [], d[g].push({ data: m, index: h }))) : g === T && w ? (m.push(_), h.push(v - u + 1)) : (g in d ? d[g].push({ data: m, index: h }) : (d[g] = [], d[g].push({ data: m, index: h })), g = T, m = [], m.push(_), h = [], h.push(v - u + 1)) : v === u ? u === c ? (g = T, m.push(_), h.push(v - u + 1), d[g] = [], d[g].push({ data: m, index: h })) : (g = T, m.push(_), h.push(v - u + 1)) : v === c ? g === T ? (m.push(_), h.push(v - u + 1), g in d ? d[g].push({ data: m, index: h }) : (d[g] = [], d[g].push({ data: m, index: h }))) : (g in d ? d[g].push({ data: m, index: h }) : (d[g] = [], d[g].push({ data: m, index: h })), g = T, m = [], m.push(_), h = [], h.push(v - u + 1), g in d ? d[g].push({ data: m, index: h }) : (d[g] = [], d[g].push({ data: m, index: h }))) : g === T ? (m.push(_), h.push(v - u + 1)) : (g in d ? d[g].push({ data: m, index: h }) : (d[g] = [], d[g].push({ data: m, index: h })), g = T, m = [], m.push(_), h = [], h.push(v - u + 1));
|
|
@@ -32037,9 +32038,9 @@ function eu(e, t, n) {
|
|
|
32037
32038
|
}
|
|
32038
32039
|
return r;
|
|
32039
32040
|
}
|
|
32040
|
-
function
|
|
32041
|
+
function rf(e) {
|
|
32041
32042
|
var S, M, U, G;
|
|
32042
|
-
const t = Ae(e), n = ft(e), r =
|
|
32043
|
+
const t = Ae(e), n = ft(e), r = lf(e);
|
|
32043
32044
|
if (n === !1 || t == null || r)
|
|
32044
32045
|
return;
|
|
32045
32046
|
const a = ke(e, e.currentSheetId);
|
|
@@ -32399,7 +32400,7 @@ function nf(e) {
|
|
|
32399
32400
|
const O = $[ie].cellrange;
|
|
32400
32401
|
let K = [];
|
|
32401
32402
|
for (let W = 0; W < O.length; W += 1) {
|
|
32402
|
-
const Y =
|
|
32403
|
+
const Y = Cc(
|
|
32403
32404
|
O[W],
|
|
32404
32405
|
{ row: d.row, column: d.column },
|
|
32405
32406
|
{ row: v.row, column: v.column },
|
|
@@ -32418,7 +32419,7 @@ function L0(e, t, n) {
|
|
|
32418
32419
|
if (y && y.top != null && y.left != null && y.height != null && y.width != null && y.row_focus != null && y.column_focus != null) {
|
|
32419
32420
|
let _ = y.row[0], T = y.row[1], C = y.column[0], N = y.column[1];
|
|
32420
32421
|
Qe.copyRange = p.cloneDeep(p.pick(y, ["row", "column"]));
|
|
32421
|
-
const A =
|
|
32422
|
+
const A = nf(e);
|
|
32422
32423
|
if (!A[0] && !A[1] && !A[2] && !A[3] && !A[4] && !A[5] && !A[6] ? Qe.applyType = "0" : Qe.applyType = "1", e.luckysheet_select_save == null) return;
|
|
32423
32424
|
const { top_move: $, left_move: S } = e.luckysheet_select_save[0];
|
|
32424
32425
|
if (Math.abs(h - c) > Math.abs(g - m))
|
|
@@ -32475,7 +32476,7 @@ function L0(e, t, n) {
|
|
|
32475
32476
|
}
|
|
32476
32477
|
]);
|
|
32477
32478
|
try {
|
|
32478
|
-
|
|
32479
|
+
rf(e);
|
|
32479
32480
|
} catch (G) {
|
|
32480
32481
|
console.error(G);
|
|
32481
32482
|
}
|
|
@@ -32486,17 +32487,17 @@ function L0(e, t, n) {
|
|
|
32486
32487
|
}
|
|
32487
32488
|
}
|
|
32488
32489
|
const zg = /^[A-Za-z_\u00C0-\u02AF][A-Za-z0-9_\u00C0-\u02AF]*$/, Wg = /^[A-Za-z]{1,3}[0-9]+$/, Yg = /^[Rr][0-9]*[Cc][0-9]*$/, Vg = /^(TRUE|FALSE)$/i;
|
|
32489
|
-
function
|
|
32490
|
+
function af(e) {
|
|
32490
32491
|
return !zg.test(e) || Wg.test(e) || Yg.test(e) || Vg.test(e);
|
|
32491
32492
|
}
|
|
32492
|
-
function
|
|
32493
|
-
return
|
|
32493
|
+
function of(e) {
|
|
32494
|
+
return af(e) ? `'${e.replace(/'/g, "''")}'` : e;
|
|
32494
32495
|
}
|
|
32495
32496
|
const Gg = /[A-Za-z0-9_.$\u00C0-\u02AF]/;
|
|
32496
32497
|
function tu(e, t) {
|
|
32497
32498
|
if (!e || !e.startsWith("=") || e.indexOf("!") === -1)
|
|
32498
32499
|
return e;
|
|
32499
|
-
const n = t.filter((o) => !!o &&
|
|
32500
|
+
const n = t.filter((o) => !!o && af(o)).sort((o, i) => i.length - o.length).map((o) => ({ name: o, lower: `${o.toLowerCase()}!` }));
|
|
32500
32501
|
if (n.length === 0) return e;
|
|
32501
32502
|
const r = e.toLowerCase();
|
|
32502
32503
|
let a = "", l = 0;
|
|
@@ -32539,7 +32540,7 @@ function tu(e, t) {
|
|
|
32539
32540
|
);
|
|
32540
32541
|
if (s.length > 0) {
|
|
32541
32542
|
const u = s[0].lower.length, c = s.filter((d) => d.lower.length === u), f = c.find((d) => e.startsWith(`${d.name}!`, l)) ?? (c.length === 1 ? c[0] : null);
|
|
32542
|
-
a += f ? `${
|
|
32543
|
+
a += f ? `${of(f.name)}!` : e.slice(l, l + u), l += u;
|
|
32543
32544
|
continue;
|
|
32544
32545
|
}
|
|
32545
32546
|
}
|
|
@@ -32638,12 +32639,12 @@ function ft(e, t) {
|
|
|
32638
32639
|
return !1;
|
|
32639
32640
|
for (let i = a.row[0]; i <= a.row[1]; i += 1)
|
|
32640
32641
|
for (let s = a.column[0]; s <= a.column[1]; s += 1)
|
|
32641
|
-
if (
|
|
32642
|
+
if (bc(e, i, s, e.currentSheetId))
|
|
32642
32643
|
return !1;
|
|
32643
32644
|
return !0;
|
|
32644
32645
|
}) && (p.isUndefined(e.allowEdit) ? !0 : e.allowEdit) && !e.isFlvReadOnly;
|
|
32645
32646
|
}
|
|
32646
|
-
function
|
|
32647
|
+
function lf(e, t) {
|
|
32647
32648
|
const n = e.config, r = p.isUndefined(t) ? e.luckysheet_select_save : t;
|
|
32648
32649
|
return p.every(r, (a) => {
|
|
32649
32650
|
var l, o;
|
|
@@ -32655,7 +32656,7 @@ function of(e, t) {
|
|
|
32655
32656
|
return !1;
|
|
32656
32657
|
for (let i = a.row[0]; i <= a.row[1]; i += 1)
|
|
32657
32658
|
for (let s = a.column[0]; s <= a.column[1]; s += 1)
|
|
32658
|
-
if (
|
|
32659
|
+
if (bc(e, i, s, e.currentSheetId))
|
|
32659
32660
|
return !1;
|
|
32660
32661
|
return !0;
|
|
32661
32662
|
}) && (p.isUndefined(e.isFlvReadOnly) ? !0 : e.isFlvReadOnly);
|
|
@@ -32669,14 +32670,14 @@ function Qg(e) {
|
|
|
32669
32670
|
const n = t.querySelectorAll("span");
|
|
32670
32671
|
return n.length > 0 && n[n.length - 1].remove(), t.innerHTML;
|
|
32671
32672
|
}
|
|
32672
|
-
function
|
|
32673
|
+
function sf(e) {
|
|
32673
32674
|
if (!e) return null;
|
|
32674
32675
|
const t = e.match(/\(([^)]+)\)/);
|
|
32675
32676
|
if (t) return t[1];
|
|
32676
32677
|
const n = e.match(/^=([\w\d:+\-*/]+)$/);
|
|
32677
32678
|
return n ? n[1].split(/[\+\-\*\/]/).map((a) => a.trim()).filter(Boolean).join(",") : null;
|
|
32678
32679
|
}
|
|
32679
|
-
function
|
|
32680
|
+
function uf(e, t, n) {
|
|
32680
32681
|
function r(c) {
|
|
32681
32682
|
return /^[A-Za-z]+\d+$/.test(c);
|
|
32682
32683
|
}
|
|
@@ -32791,7 +32792,7 @@ function W0(e, t, n, r = {}) {
|
|
|
32791
32792
|
""
|
|
32792
32793
|
))), s === void 0 && (s = null), s;
|
|
32793
32794
|
}
|
|
32794
|
-
function
|
|
32795
|
+
function cf(e, t, n, r, a, l = {}, o) {
|
|
32795
32796
|
var c, f, d, m, h;
|
|
32796
32797
|
if (!p.isNumber(t) || !p.isNumber(n))
|
|
32797
32798
|
throw new Error("row or column cannot be null or undefined");
|
|
@@ -32840,7 +32841,7 @@ function uf(e, t, n, r, a, l = {}, o) {
|
|
|
32840
32841
|
((c = s == null ? void 0 : s[t]) == null ? void 0 : c[n]) == null && (s[t][n] = {});
|
|
32841
32842
|
const y = s[t][n];
|
|
32842
32843
|
r.f != null && r.v == null ? (g.f = r.f, r.ct != null && (g.ct = r.ct), Yo(e, t, n, a, g)) : (r.ct != null && (g.ct = r.ct), r.f != null && (g.f = r.f), r.v != null ? g.v = r.v : g.v = y.v, r.m != null && (g.m = r.m), xt(e, t, n), Pt(e, t, n, s, g)), p.forEach(r, (b, w) => {
|
|
32843
|
-
w in u && o ?
|
|
32844
|
+
w in u && o ? Zc(
|
|
32844
32845
|
e,
|
|
32845
32846
|
s,
|
|
32846
32847
|
w,
|
|
@@ -32977,8 +32978,8 @@ function j0(e, t, n, r, a, l = {}) {
|
|
|
32977
32978
|
}
|
|
32978
32979
|
function X0(e, t, n, r) {
|
|
32979
32980
|
Qe.copyRange = t, Qe.applyRange = n, Qe.direction = r;
|
|
32980
|
-
const a =
|
|
32981
|
-
!a[0] && !a[1] && !a[2] && !a[3] && !a[4] && !a[5] && !a[6] ? Qe.applyType = "0" : Qe.applyType = "1",
|
|
32981
|
+
const a = nf(e);
|
|
32982
|
+
!a[0] && !a[1] && !a[2] && !a[3] && !a[4] && !a[5] && !a[6] ? Qe.applyType = "0" : Qe.applyType = "1", rf(e);
|
|
32982
32983
|
}
|
|
32983
32984
|
function Z0(e, t, n, r = {}) {
|
|
32984
32985
|
const a = St(e, r), o = {
|
|
@@ -33015,7 +33016,7 @@ function Q0(e, t, n, r, a = {}) {
|
|
|
33015
33016
|
if (!["row", "column"].includes(t) || !p.isNumber(n) || !p.isNumber(r))
|
|
33016
33017
|
throw tn;
|
|
33017
33018
|
const l = St(e, a);
|
|
33018
|
-
|
|
33019
|
+
Uc(e, { type: t, start: n, end: r, id: l.id });
|
|
33019
33020
|
}
|
|
33020
33021
|
function J0(e, t, n) {
|
|
33021
33022
|
if (!["row", "column"].includes(n))
|
|
@@ -33110,7 +33111,7 @@ function nb(e, t, n = {}) {
|
|
|
33110
33111
|
}), o;
|
|
33111
33112
|
}
|
|
33112
33113
|
function i1(e, t, n, r = !1, a = void 0, l = void 0) {
|
|
33113
|
-
|
|
33114
|
+
$m(
|
|
33114
33115
|
e,
|
|
33115
33116
|
t,
|
|
33116
33117
|
n,
|
|
@@ -33121,10 +33122,10 @@ function i1(e, t, n, r = !1, a = void 0, l = void 0) {
|
|
|
33121
33122
|
}
|
|
33122
33123
|
function rb(e, t = {}) {
|
|
33123
33124
|
const n = St(e, t);
|
|
33124
|
-
|
|
33125
|
+
Nm(e, n.id);
|
|
33125
33126
|
}
|
|
33126
33127
|
function ab(e, t) {
|
|
33127
|
-
|
|
33128
|
+
Sm(e, t);
|
|
33128
33129
|
}
|
|
33129
33130
|
function ob(e, t = {}) {
|
|
33130
33131
|
const n = St(e, t);
|
|
@@ -33171,10 +33172,10 @@ function c1(e) {
|
|
|
33171
33172
|
return /^0x?[a-fA-F0-9]+$/.test(e);
|
|
33172
33173
|
}
|
|
33173
33174
|
const ru = "#f3f3f3", au = 5;
|
|
33174
|
-
function
|
|
33175
|
+
function ff(e) {
|
|
33175
33176
|
return typeof e != "string" ? !1 : ["price", "fully_diluted_value"].includes(e) || e.toLowerCase().includes("usd") || e.toLowerCase().includes("price_in");
|
|
33176
33177
|
}
|
|
33177
|
-
const
|
|
33178
|
+
const df = `$#,##0.${"0".repeat(2)}`, f1 = (e, t, n, r) => {
|
|
33178
33179
|
var l;
|
|
33179
33180
|
if (!n.length) return e;
|
|
33180
33181
|
const a = n.map((o) => {
|
|
@@ -33324,7 +33325,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, f1 = (e, t, n, r) => {
|
|
|
33324
33325
|
t + ie,
|
|
33325
33326
|
a
|
|
33326
33327
|
), { m: W, ct: Y, ...D } = K || {}, pe = Ko(O), he = {};
|
|
33327
|
-
pe &&
|
|
33328
|
+
pe && ff(G) && !l ? (he.m = ct(df, O), he.ht = 2) : O && (he.m = String(O)), U.push({
|
|
33328
33329
|
...D,
|
|
33329
33330
|
...ou(K, pe),
|
|
33330
33331
|
// move color from styles to cell-level 'fc' when becoming numeric
|
|
@@ -33340,17 +33341,17 @@ const ff = `$#,##0.${"0".repeat(2)}`, f1 = (e, t, n, r) => {
|
|
|
33340
33341
|
var l, o, i;
|
|
33341
33342
|
const r = (o = (l = n.current) == null ? void 0 : l.getSheet()) == null ? void 0 : o.data, a = (i = r == null ? void 0 : r[e]) == null ? void 0 : i[t];
|
|
33342
33343
|
return a == null ? {} : typeof a == "object" ? { ...a } : { v: a };
|
|
33343
|
-
}, Ko = (e) => u1(e) && !c1(e),
|
|
33344
|
+
}, Ko = (e) => u1(e) && !c1(e), mf = (e) => Array.isArray(e) ? e.map((t) => ({ ...t })) : e, vr = (e, t, n) => {
|
|
33344
33345
|
const r = Ko(e);
|
|
33345
|
-
if (n && r &&
|
|
33346
|
+
if (n && r && ff(n)) {
|
|
33346
33347
|
const { s: i, ...s } = t || {};
|
|
33347
|
-
return { ...s, t: "n", fa:
|
|
33348
|
+
return { ...s, t: "n", fa: df, ht: 2 };
|
|
33348
33349
|
}
|
|
33349
33350
|
if (!t)
|
|
33350
33351
|
return r ? { t: "n", fa: "General" } : { t: "s", fa: "@" };
|
|
33351
33352
|
if (!r) {
|
|
33352
33353
|
const i = t.t === "s" && t.fa ? t.fa : "@";
|
|
33353
|
-
return { ...t, t: "s", fa: i, s:
|
|
33354
|
+
return { ...t, t: "s", fa: i, s: mf(t.s) };
|
|
33354
33355
|
}
|
|
33355
33356
|
const a = an({ ct: t, v: e }) && t.fa ? t.fa : "General", { s: l, ...o } = t || {};
|
|
33356
33357
|
return { ...o, t: "n", fa: a };
|
|
@@ -33364,7 +33365,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, f1 = (e, t, n, r) => {
|
|
|
33364
33365
|
}, lu = (e) => {
|
|
33365
33366
|
if (!e || typeof e != "object") return e ?? {};
|
|
33366
33367
|
const t = e.ct;
|
|
33367
|
-
return !t || !Array.isArray(t.s) ? { ...e } : { ...e, ct: { ...t, s:
|
|
33368
|
+
return !t || !Array.isArray(t.s) ? { ...e } : { ...e, ct: { ...t, s: mf(t.s) } };
|
|
33368
33369
|
}, m1 = ({
|
|
33369
33370
|
row: e,
|
|
33370
33371
|
column: t,
|
|
@@ -33431,7 +33432,7 @@ const ff = `$#,##0.${"0".repeat(2)}`, f1 = (e, t, n, r) => {
|
|
|
33431
33432
|
if (!i)
|
|
33432
33433
|
throw new Error(`Invalid function call format: ${e}`);
|
|
33433
33434
|
const s = i[1].toUpperCase(), u = i[2], f = g1(u).map((d) => {
|
|
33434
|
-
if (
|
|
33435
|
+
if (hf(d)) {
|
|
33435
33436
|
const m = y1(d);
|
|
33436
33437
|
return m == null ? void 0 : m.map(
|
|
33437
33438
|
(g) => iu(t, g == null ? void 0 : g.row, g == null ? void 0 : g.column)
|
|
@@ -33511,7 +33512,7 @@ function su(e) {
|
|
|
33511
33512
|
function Ia(e) {
|
|
33512
33513
|
return !e || typeof e != "string" ? !1 : /^[A-Z]+\d+$/.test(e);
|
|
33513
33514
|
}
|
|
33514
|
-
function
|
|
33515
|
+
function hf(e) {
|
|
33515
33516
|
if (!e || typeof e != "string" || !e.includes(":"))
|
|
33516
33517
|
return !1;
|
|
33517
33518
|
const t = e.split(":");
|
|
@@ -33535,7 +33536,7 @@ function Qo(e) {
|
|
|
33535
33536
|
};
|
|
33536
33537
|
}
|
|
33537
33538
|
function y1(e) {
|
|
33538
|
-
if (!
|
|
33539
|
+
if (!hf(e))
|
|
33539
33540
|
return null;
|
|
33540
33541
|
const t = e.split(":"), n = Qo(t[0]), r = Qo(t[1]);
|
|
33541
33542
|
if (!n || !r)
|
|
@@ -33578,18 +33579,18 @@ export {
|
|
|
33578
33579
|
ke as a,
|
|
33579
33580
|
ab as a$,
|
|
33580
33581
|
ct as a0,
|
|
33581
|
-
|
|
33582
|
+
Sc as a1,
|
|
33582
33583
|
Yu as a2,
|
|
33583
33584
|
Ep as a3,
|
|
33584
33585
|
Ml as a4,
|
|
33585
33586
|
sg as a5,
|
|
33586
|
-
|
|
33587
|
+
Cc as a6,
|
|
33587
33588
|
k1 as a7,
|
|
33588
|
-
|
|
33589
|
+
Ef as a8,
|
|
33589
33590
|
jn as a9,
|
|
33590
33591
|
Q0 as aA,
|
|
33591
33592
|
rb as aB,
|
|
33592
|
-
|
|
33593
|
+
Om as aC,
|
|
33593
33594
|
_n as aD,
|
|
33594
33595
|
Z0 as aE,
|
|
33595
33596
|
R1 as aF,
|
|
@@ -33615,18 +33616,18 @@ export {
|
|
|
33615
33616
|
I1 as aZ,
|
|
33616
33617
|
ey as a_,
|
|
33617
33618
|
l0 as aa,
|
|
33618
|
-
|
|
33619
|
-
|
|
33619
|
+
Lc as ab,
|
|
33620
|
+
Fc as ac,
|
|
33620
33621
|
Wn as ad,
|
|
33621
33622
|
zn as ae,
|
|
33622
33623
|
Rl as af,
|
|
33623
|
-
|
|
33624
|
+
Ic as ag,
|
|
33624
33625
|
St as ah,
|
|
33625
33626
|
tn as ai,
|
|
33626
33627
|
Yp as aj,
|
|
33627
33628
|
Fr as ak,
|
|
33628
33629
|
j0 as al,
|
|
33629
|
-
|
|
33630
|
+
cf as am,
|
|
33630
33631
|
Qp as an,
|
|
33631
33632
|
ob as ao,
|
|
33632
33633
|
i1 as ap,
|
|
@@ -33653,7 +33654,7 @@ export {
|
|
|
33653
33654
|
vg as b8,
|
|
33654
33655
|
$g as b9,
|
|
33655
33656
|
Ha as bA,
|
|
33656
|
-
|
|
33657
|
+
pc as bB,
|
|
33657
33658
|
H1 as bC,
|
|
33658
33659
|
Iy as bD,
|
|
33659
33660
|
qh as bE,
|
|
@@ -33697,27 +33698,27 @@ export {
|
|
|
33697
33698
|
Yo as bp,
|
|
33698
33699
|
By as bq,
|
|
33699
33700
|
m0 as br,
|
|
33700
|
-
|
|
33701
|
-
|
|
33701
|
+
lf as bs,
|
|
33702
|
+
mc as bt,
|
|
33702
33703
|
Pa as bu,
|
|
33703
33704
|
Eh as bv,
|
|
33704
|
-
|
|
33705
|
-
|
|
33705
|
+
dc as bw,
|
|
33706
|
+
hc as bx,
|
|
33706
33707
|
Uy as by,
|
|
33707
33708
|
wh as bz,
|
|
33708
|
-
|
|
33709
|
+
bf as c,
|
|
33709
33710
|
Qy as c$,
|
|
33710
|
-
|
|
33711
|
-
|
|
33712
|
-
|
|
33711
|
+
Ac as c0,
|
|
33712
|
+
lc as c1,
|
|
33713
|
+
sc as c2,
|
|
33713
33714
|
Wr as c3,
|
|
33714
|
-
|
|
33715
|
+
oc as c4,
|
|
33715
33716
|
uy as c5,
|
|
33716
33717
|
cy as c6,
|
|
33717
33718
|
Up as c7,
|
|
33718
33719
|
Ys as c8,
|
|
33719
33720
|
C0 as c9,
|
|
33720
|
-
|
|
33721
|
+
Yd as cA,
|
|
33721
33722
|
dh as cB,
|
|
33722
33723
|
dg as cC,
|
|
33723
33724
|
Wu as cD,
|
|
@@ -33731,8 +33732,8 @@ export {
|
|
|
33731
33732
|
r0 as cL,
|
|
33732
33733
|
xy as cM,
|
|
33733
33734
|
oy as cN,
|
|
33734
|
-
|
|
33735
|
-
|
|
33735
|
+
Uc as cO,
|
|
33736
|
+
Nm as cP,
|
|
33736
33737
|
Oa as cQ,
|
|
33737
33738
|
jt as cR,
|
|
33738
33739
|
K1 as cS,
|
|
@@ -33757,42 +33758,42 @@ export {
|
|
|
33757
33758
|
Ir as ck,
|
|
33758
33759
|
Va as cl,
|
|
33759
33760
|
Pp as cm,
|
|
33760
|
-
|
|
33761
|
-
|
|
33761
|
+
_m as cn,
|
|
33762
|
+
lh as co,
|
|
33762
33763
|
zr as cp,
|
|
33763
|
-
|
|
33764
|
+
Cm as cq,
|
|
33764
33765
|
Mp as cr,
|
|
33765
33766
|
_a as cs,
|
|
33766
|
-
|
|
33767
|
-
|
|
33767
|
+
bm as ct,
|
|
33768
|
+
ym as cu,
|
|
33768
33769
|
G1 as cv,
|
|
33769
33770
|
V1 as cw,
|
|
33770
33771
|
Qu as cx,
|
|
33771
33772
|
ry as cy,
|
|
33772
|
-
|
|
33773
|
+
$m as cz,
|
|
33773
33774
|
Po as d,
|
|
33774
|
-
|
|
33775
|
+
yc as d$,
|
|
33775
33776
|
zo as d0,
|
|
33776
33777
|
Go as d1,
|
|
33777
|
-
|
|
33778
|
+
Ad as d2,
|
|
33778
33779
|
ku as d3,
|
|
33779
33780
|
g0 as d4,
|
|
33780
33781
|
Vr as d5,
|
|
33781
33782
|
p0 as d6,
|
|
33782
33783
|
F1 as d7,
|
|
33783
|
-
|
|
33784
|
+
Id as d8,
|
|
33784
33785
|
ty as d9,
|
|
33785
33786
|
A0 as dA,
|
|
33786
33787
|
M0 as dB,
|
|
33787
33788
|
k0 as dC,
|
|
33788
33789
|
o0 as dD,
|
|
33789
33790
|
Zp as dE,
|
|
33790
|
-
|
|
33791
|
+
dm as dF,
|
|
33791
33792
|
Ho as dG,
|
|
33792
33793
|
Ag as dH,
|
|
33793
33794
|
T0 as dI,
|
|
33794
33795
|
d0 as dJ,
|
|
33795
|
-
|
|
33796
|
+
fm as dK,
|
|
33796
33797
|
xa as dL,
|
|
33797
33798
|
Gu as dM,
|
|
33798
33799
|
wy as dN,
|
|
@@ -33802,7 +33803,7 @@ export {
|
|
|
33802
33803
|
nr as dR,
|
|
33803
33804
|
$1 as dS,
|
|
33804
33805
|
h0 as dT,
|
|
33805
|
-
|
|
33806
|
+
kd as dU,
|
|
33806
33807
|
Dt as dV,
|
|
33807
33808
|
iy as dW,
|
|
33808
33809
|
fy as dX,
|
|
@@ -33810,14 +33811,14 @@ export {
|
|
|
33810
33811
|
zu as dZ,
|
|
33811
33812
|
wl as d_,
|
|
33812
33813
|
go as da,
|
|
33813
|
-
|
|
33814
|
+
Oc as db,
|
|
33814
33815
|
Kt as dc,
|
|
33815
33816
|
kh as dd,
|
|
33816
33817
|
W1 as de,
|
|
33817
33818
|
Jp as df,
|
|
33818
33819
|
Hn as dg,
|
|
33819
33820
|
y0 as dh,
|
|
33820
|
-
|
|
33821
|
+
Ec as di,
|
|
33821
33822
|
z1 as dj,
|
|
33822
33823
|
U1 as dk,
|
|
33823
33824
|
Vo as dl,
|
|
@@ -33825,9 +33826,9 @@ export {
|
|
|
33825
33826
|
eg as dn,
|
|
33826
33827
|
Du as dp,
|
|
33827
33828
|
Cn as dq,
|
|
33828
|
-
|
|
33829
|
+
ic as dr,
|
|
33829
33830
|
_0 as ds,
|
|
33830
|
-
|
|
33831
|
+
ac as dt,
|
|
33831
33832
|
R0 as du,
|
|
33832
33833
|
S0 as dv,
|
|
33833
33834
|
Ng as dw,
|
|
@@ -33845,30 +33846,32 @@ export {
|
|
|
33845
33846
|
lr as e7,
|
|
33846
33847
|
ly as e8,
|
|
33847
33848
|
Oy as e9,
|
|
33848
|
-
|
|
33849
|
-
|
|
33850
|
-
|
|
33851
|
-
|
|
33852
|
-
|
|
33853
|
-
|
|
33854
|
-
|
|
33855
|
-
|
|
33856
|
-
|
|
33857
|
-
|
|
33858
|
-
|
|
33859
|
-
|
|
33860
|
-
|
|
33861
|
-
|
|
33862
|
-
|
|
33863
|
-
|
|
33864
|
-
|
|
33865
|
-
|
|
33866
|
-
|
|
33867
|
-
|
|
33868
|
-
|
|
33869
|
-
|
|
33870
|
-
|
|
33871
|
-
|
|
33849
|
+
u0 as eA,
|
|
33850
|
+
S1 as eB,
|
|
33851
|
+
N0 as eC,
|
|
33852
|
+
P1 as eD,
|
|
33853
|
+
tl as eE,
|
|
33854
|
+
rl as eF,
|
|
33855
|
+
fu as eG,
|
|
33856
|
+
B1 as eH,
|
|
33857
|
+
X1 as eI,
|
|
33858
|
+
Z1 as eJ,
|
|
33859
|
+
Uo as eK,
|
|
33860
|
+
du as eL,
|
|
33861
|
+
Un as eM,
|
|
33862
|
+
A1 as eN,
|
|
33863
|
+
xf as eO,
|
|
33864
|
+
N1 as eP,
|
|
33865
|
+
C1 as eQ,
|
|
33866
|
+
c1 as eR,
|
|
33867
|
+
g1 as eS,
|
|
33868
|
+
hf as eT,
|
|
33869
|
+
y1 as eU,
|
|
33870
|
+
Ia as eV,
|
|
33871
|
+
Qo as eW,
|
|
33872
|
+
h1 as eX,
|
|
33873
|
+
p1 as eY,
|
|
33874
|
+
df as eZ,
|
|
33872
33875
|
Fy as ea,
|
|
33873
33876
|
zp as eb,
|
|
33874
33877
|
ar as ec,
|
|
@@ -33876,10 +33879,10 @@ export {
|
|
|
33876
33879
|
O1 as ee,
|
|
33877
33880
|
py as ef,
|
|
33878
33881
|
qy as eg,
|
|
33879
|
-
|
|
33880
|
-
|
|
33881
|
-
|
|
33882
|
-
|
|
33882
|
+
Wm as eh,
|
|
33883
|
+
zm as ei,
|
|
33884
|
+
Md as ej,
|
|
33885
|
+
fc as ek,
|
|
33883
33886
|
f0 as el,
|
|
33884
33887
|
Dy as em,
|
|
33885
33888
|
hp as en,
|
|
@@ -33891,27 +33894,27 @@ export {
|
|
|
33891
33894
|
ay as et,
|
|
33892
33895
|
v0 as eu,
|
|
33893
33896
|
j1 as ev,
|
|
33894
|
-
|
|
33895
|
-
|
|
33896
|
-
|
|
33897
|
-
|
|
33897
|
+
Xo as ew,
|
|
33898
|
+
rc as ex,
|
|
33899
|
+
gl as ey,
|
|
33900
|
+
Or as ez,
|
|
33898
33901
|
d1 as f,
|
|
33899
33902
|
uu as g,
|
|
33900
|
-
|
|
33903
|
+
Kd as h,
|
|
33901
33904
|
rt as i,
|
|
33902
33905
|
gr as j,
|
|
33903
33906
|
qn as k,
|
|
33904
33907
|
Ae as l,
|
|
33905
|
-
|
|
33908
|
+
_c as m,
|
|
33906
33909
|
by as n,
|
|
33907
33910
|
s0 as o,
|
|
33908
|
-
|
|
33911
|
+
kc as p,
|
|
33909
33912
|
Lu as q,
|
|
33910
33913
|
Bo as r,
|
|
33911
|
-
|
|
33914
|
+
Tc as s,
|
|
33912
33915
|
nb as t,
|
|
33913
33916
|
my as u,
|
|
33914
|
-
|
|
33917
|
+
$c as v,
|
|
33915
33918
|
an as w,
|
|
33916
33919
|
Cs as x,
|
|
33917
33920
|
un as y,
|