@fileverse-dev/dsheet 4.1.24-stabilise-package-3 → 4.1.24-stabilise-package-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{executeStringFunction--gHt0G5o.js → executeStringFunction-DLxKkzXd.js} +358 -354
- package/dist/formula.js +1 -1
- package/dist/{index-rlG78yhP.js → index-CRxHYWFS.js} +7 -7
- package/dist/index.es.js +2 -2
- package/dist/sheet-engine/core/modules/formula-wide-grid-growth.test.d.ts +1 -0
- package/dist/{use-xlsx-import-impl--IYur8pH.js → use-xlsx-import-impl-UOZx03qR.js} +4 -4
- package/dist/{xlsx-defined-names-80Z8zo_k.js → xlsx-defined-names-RtpnsLLs.js} +2 -2
- package/dist/{xlsx-export-impl-B9Mv0Xwf.js → xlsx-export-impl-BWXZhwPP.js} +4 -4
- package/dist/{xlsx-hyperlink-inline-D9Parnaa.js → xlsx-hyperlink-inline-DbWDc6wq.js} +2 -2
- package/package.json +1 -1
|
@@ -13246,7 +13246,7 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13246
13246
|
for (var _ = function() {
|
|
13247
13247
|
var W;
|
|
13248
13248
|
return W = h.lex() || d, typeof W != "number" && (W = n.symbols_[W] || W), W;
|
|
13249
|
-
}, T, C, $, S, N, k = {},
|
|
13249
|
+
}, T, C, $, S, N, k = {}, R, B, V, Q; ; ) {
|
|
13250
13250
|
if (fa = r, $ = r[r.length - 1], this.defaultActions[$] ? S = this.defaultActions[$] : ((T === null || typeof T > "u") && (T = _()), S = o[$] && o[$][T]), typeof S > "u" || !S.length || !S[0]) {
|
|
13251
13251
|
let W = function(Y) {
|
|
13252
13252
|
for (var x = r.length - 1, pe = 0; ; ) {
|
|
@@ -13262,8 +13262,8 @@ var fa, ze = function(e, t, n, r) {
|
|
|
13262
13262
|
C !== d && (q = W($));
|
|
13263
13263
|
else {
|
|
13264
13264
|
q = W($), Q = [];
|
|
13265
|
-
for (
|
|
13266
|
-
this.terminals_[
|
|
13265
|
+
for (R in o[$])
|
|
13266
|
+
this.terminals_[R] && R > f && Q.push("'" + this.terminals_[R] + "'");
|
|
13267
13267
|
h.showPosition ? X = "Parse error on line " + (s + 1) + `:
|
|
13268
13268
|
` + h.showPosition() + `
|
|
13269
13269
|
Expecting ` + Q.join(", ") + ", got '" + (this.terminals_[T] || T) + "'" : X = "Parse error on line " + (s + 1) + ": Unexpected " + (T == d ? "end of input" : "'" + (this.terminals_[T] || T) + "'"), this.parseError(X, {
|
|
@@ -14429,8 +14429,8 @@ function dm(e, t, n, r) {
|
|
|
14429
14429
|
if (X === c) break;
|
|
14430
14430
|
X.nodeType === Node.TEXT_NODE ? N += (X.textContent || "").length : X.nodeType === Node.ELEMENT_NODE && (N += X.outerHTML.length);
|
|
14431
14431
|
}
|
|
14432
|
-
const k = N + d,
|
|
14433
|
-
T = v.substring(0, k), C = v.substring(k,
|
|
14432
|
+
const k = N + d, R = N + f, B = v.length;
|
|
14433
|
+
T = v.substring(0, k), C = v.substring(k, R), $ = v.substring(R, B);
|
|
14434
14434
|
let V = "";
|
|
14435
14435
|
if (T !== "") {
|
|
14436
14436
|
let { cssText: q } = y.style;
|
|
@@ -14471,8 +14471,8 @@ function dm(e, t, n, r) {
|
|
|
14471
14471
|
} else if (((h = c.parentElement) == null ? void 0 : h.tagName) === "SPAN" && ((g = u.parentElement) == null ? void 0 : g.tagName) === "SPAN") {
|
|
14472
14472
|
const y = c.parentNode, b = u.parentNode, w = o.querySelectorAll("span"), v = p.indexOf(w, y), _ = p.indexOf(w, b), T = (y == null ? void 0 : y.innerHTML) || "", C = (b == null ? void 0 : b.innerHTML) || "";
|
|
14473
14473
|
let $ = "", S = "", N = "", k = "";
|
|
14474
|
-
const
|
|
14475
|
-
$ = T.substring(
|
|
14474
|
+
const R = 0, B = d, V = f, Q = C.length;
|
|
14475
|
+
$ = T.substring(R, B), S = T.substring(B, T.length), N = C.substring(0, V), k = C.substring(V, Q);
|
|
14476
14476
|
let q = o.querySelectorAll("span"), X = "";
|
|
14477
14477
|
for (let x = 0; x < v; x += 1) {
|
|
14478
14478
|
const pe = q[x], he = pe.innerHTML;
|
|
@@ -14508,7 +14508,7 @@ function dm(e, t, n, r) {
|
|
|
14508
14508
|
}
|
|
14509
14509
|
o.innerHTML = X;
|
|
14510
14510
|
let W, Y;
|
|
14511
|
-
|
|
14511
|
+
R === B ? (W = v, Y = _) : (W = v + 1, Y = _ + 1), q = o.querySelectorAll("span"), ju(
|
|
14512
14512
|
q[W],
|
|
14513
14513
|
q[Y]
|
|
14514
14514
|
);
|
|
@@ -14590,7 +14590,7 @@ function pm(e, t, n) {
|
|
|
14590
14590
|
return;
|
|
14591
14591
|
}
|
|
14592
14592
|
if (i === o) {
|
|
14593
|
-
const v = i.parentNode, T = ((g = v == null ? void 0 : v.dataset) == null ? void 0 : g.noLinkAnchor) === "1" ? (v == null ? void 0 : v.textContent) || "" : (v == null ? void 0 : v.innerHTML) || "", $ = l.innerHTML.substring(0, 5) !== "<span", S = v ? Jr(v, i, u) : u, N = v ? Jr(v, o, s) : s, k = T.substring(0, S),
|
|
14593
|
+
const v = i.parentNode, T = ((g = v == null ? void 0 : v.dataset) == null ? void 0 : g.noLinkAnchor) === "1" ? (v == null ? void 0 : v.textContent) || "" : (v == null ? void 0 : v.innerHTML) || "", $ = l.innerHTML.substring(0, 5) !== "<span", S = v ? Jr(v, i, u) : u, N = v ? Jr(v, o, s) : s, k = T.substring(0, S), R = T.substring(S, N), B = T.substring(N, T.length);
|
|
14594
14594
|
let V = "";
|
|
14595
14595
|
const Q = cr(v);
|
|
14596
14596
|
if (k !== "") {
|
|
@@ -14605,7 +14605,7 @@ function pm(e, t, n) {
|
|
|
14605
14605
|
Y
|
|
14606
14606
|
)}"${Q}>${k}</span>`;
|
|
14607
14607
|
}
|
|
14608
|
-
if (
|
|
14608
|
+
if (R !== "") {
|
|
14609
14609
|
let Y = fr(v.style.cssText);
|
|
14610
14610
|
if ($) {
|
|
14611
14611
|
const x = v.closest(
|
|
@@ -14617,7 +14617,7 @@ function pm(e, t, n) {
|
|
|
14617
14617
|
Y
|
|
14618
14618
|
)}" data-link-type="${tt(
|
|
14619
14619
|
t
|
|
14620
|
-
)}" data-link-address="${tt(n)}">${
|
|
14620
|
+
)}" data-link-address="${tt(n)}">${R}</span>`;
|
|
14621
14621
|
}
|
|
14622
14622
|
if (B !== "") {
|
|
14623
14623
|
let { cssText: Y } = v.style;
|
|
@@ -14644,7 +14644,7 @@ function pm(e, t, n) {
|
|
|
14644
14644
|
}
|
|
14645
14645
|
X && uo(X), co(l);
|
|
14646
14646
|
} else if (((b = i.parentElement) == null ? void 0 : b.tagName) === "SPAN" && ((w = o.parentElement) == null ? void 0 : w.tagName) === "SPAN") {
|
|
14647
|
-
const v = i.parentNode, _ = o.parentNode, T = l.querySelectorAll("span"), C = p.indexOf(T, v), $ = p.indexOf(T, _), S = (v == null ? void 0 : v.innerHTML) || "", N = (_ == null ? void 0 : _.innerHTML) || "", k = v ? Jr(v, i, u) : u,
|
|
14647
|
+
const v = i.parentNode, _ = o.parentNode, T = l.querySelectorAll("span"), C = p.indexOf(T, v), $ = p.indexOf(T, _), S = (v == null ? void 0 : v.innerHTML) || "", N = (_ == null ? void 0 : _.innerHTML) || "", k = v ? Jr(v, i, u) : u, R = _ ? Jr(_, o, s) : s, B = S.substring(0, k), V = S.substring(k, S.length), Q = N.substring(0, R), q = N.substring(R, N.length);
|
|
14648
14648
|
let X = l.querySelectorAll("span"), W = "";
|
|
14649
14649
|
for (let pe = 0; pe < C; pe += 1) {
|
|
14650
14650
|
const he = X[pe];
|
|
@@ -14852,7 +14852,7 @@ function dr(e, t, n, r) {
|
|
|
14852
14852
|
}
|
|
14853
14853
|
}
|
|
14854
14854
|
function rc(e, t, n, r, a) {
|
|
14855
|
-
var k,
|
|
14855
|
+
var k, R, B;
|
|
14856
14856
|
const { cellWidth: l } = r, { cellHeight: o } = r;
|
|
14857
14857
|
let i = "", s = "";
|
|
14858
14858
|
l == null && (i = "onlyWidth", s = "_");
|
|
@@ -14936,7 +14936,7 @@ function rc(e, t, n, r, a) {
|
|
|
14936
14936
|
} else {
|
|
14937
14937
|
if (v = Ds(e, n.defaultFontSize, a), t.font = v, _ = Dt(e, "cl"), T = Dt(e, "un"), C = Dt(e, "fs"), e instanceof Object ? (S = e.m, p.isNil(S) && (S = e.v)) : S = e, p.isEmpty(S))
|
|
14938
14938
|
return null;
|
|
14939
|
-
const V = (
|
|
14939
|
+
const V = (R = e == null ? void 0 : e.ct) == null ? void 0 : R.fa;
|
|
14940
14940
|
if (p.isString(S) && p.isString(V) && (S = wm(
|
|
14941
14941
|
S,
|
|
14942
14942
|
V,
|
|
@@ -17234,8 +17234,8 @@ class hc {
|
|
|
17234
17234
|
const y = d === -1 || m === -1, b = h === -1 || g === -1;
|
|
17235
17235
|
if (y && (d = 0, m = (f == null ? void 0 : f.length) ?? 0), b && (h = 0, g = (f == null ? void 0 : f[0].length) ?? 0), y && b) throw Error(Tr);
|
|
17236
17236
|
if (t.activeDepCollection) {
|
|
17237
|
-
const S = typeof i == "object" ? i.row : null, N = typeof i == "object" ? i.column : null, k = S != null && N != null && S >= d && S <= m && N >= h && N <= g,
|
|
17238
|
-
if (
|
|
17237
|
+
const S = typeof i == "object" ? i.row : null, N = typeof i == "object" ? i.column : null, k = S != null && N != null && S >= d && S <= m && N >= h && N <= g, R = m - d + 1, B = g - h + 1;
|
|
17238
|
+
if (R * B <= 1e4)
|
|
17239
17239
|
for (let q = d; q <= m; q += 1)
|
|
17240
17240
|
for (let X = h; X <= g; X += 1)
|
|
17241
17241
|
r(n(c, q, X));
|
|
@@ -17243,9 +17243,9 @@ class hc {
|
|
|
17243
17243
|
t.activeDepCollection.hasWideRangeDep = !0, t.activeDepCollection.wideRanges.push({
|
|
17244
17244
|
sheetId: c,
|
|
17245
17245
|
startRow: d,
|
|
17246
|
-
endRow: m,
|
|
17246
|
+
endRow: y ? 1 / 0 : m,
|
|
17247
17247
|
startCol: h,
|
|
17248
|
-
endCol: g
|
|
17248
|
+
endCol: b ? 1 / 0 : g
|
|
17249
17249
|
}), k && r(n(c, S, N));
|
|
17250
17250
|
}
|
|
17251
17251
|
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;
|
|
@@ -17275,7 +17275,7 @@ class hc {
|
|
|
17275
17275
|
), C = k.cryptoDenomination, $ = k.cryptoDecimal;
|
|
17276
17276
|
else {
|
|
17277
17277
|
t.rangeValuePassCacheStats.misses += 1;
|
|
17278
|
-
const
|
|
17278
|
+
const R = t.materializeFullRangeFragment(
|
|
17279
17279
|
u,
|
|
17280
17280
|
c,
|
|
17281
17281
|
f,
|
|
@@ -17285,17 +17285,17 @@ class hc {
|
|
|
17285
17285
|
g
|
|
17286
17286
|
);
|
|
17287
17287
|
t.rangeValuePassCache.set(S, {
|
|
17288
|
-
fragment:
|
|
17289
|
-
cryptoDenomination:
|
|
17290
|
-
cryptoDecimal:
|
|
17288
|
+
fragment: R.fragment,
|
|
17289
|
+
cryptoDenomination: R.cryptoDenomination,
|
|
17290
|
+
cryptoDecimal: R.cryptoDecimal,
|
|
17291
17291
|
globalDataKeysFingerprint: N
|
|
17292
17292
|
}), T = na(
|
|
17293
|
-
|
|
17293
|
+
R.fragment,
|
|
17294
17294
|
d,
|
|
17295
17295
|
h,
|
|
17296
17296
|
_ ? w : null,
|
|
17297
17297
|
_ ? v : null
|
|
17298
|
-
), C =
|
|
17298
|
+
), C = R.cryptoDenomination, $ = R.cryptoDecimal;
|
|
17299
17299
|
}
|
|
17300
17300
|
} else {
|
|
17301
17301
|
const S = t.materializeFullRangeFragment(
|
|
@@ -17327,8 +17327,8 @@ class hc {
|
|
|
17327
17327
|
if (!u) return;
|
|
17328
17328
|
const c = u.sheetId, f = u.range.row[0], d = u.range.row[1], m = u.range.column[0], h = u.range.column[1], g = Tn(i, { id: c });
|
|
17329
17329
|
if (t.activeDepCollection) {
|
|
17330
|
-
const S = typeof s == "object" ? s.row : null, N = typeof s == "object" ? s.column : null, k = S != null && N != null && S >= f && S <= d && N >= m && N <= h,
|
|
17331
|
-
if (
|
|
17330
|
+
const S = typeof s == "object" ? s.row : null, N = typeof s == "object" ? s.column : null, k = S != null && N != null && S >= f && S <= d && N >= m && N <= h, R = d - f + 1, B = h - m + 1;
|
|
17331
|
+
if (R * B <= 1e4)
|
|
17332
17332
|
for (let q = f; q <= d; q += 1)
|
|
17333
17333
|
for (let X = m; X <= h; X += 1)
|
|
17334
17334
|
r(n(c, q, X));
|
|
@@ -17452,45 +17452,46 @@ function yn(e, t, n) {
|
|
|
17452
17452
|
if (t.indexOf("!") > -1) {
|
|
17453
17453
|
if (t in e.formulaCache.cellTextToIndexList)
|
|
17454
17454
|
return e.formulaCache.cellTextToIndexList[t];
|
|
17455
|
-
const
|
|
17456
|
-
if (
|
|
17455
|
+
const h = t.match($h);
|
|
17456
|
+
if (h == null)
|
|
17457
17457
|
return null;
|
|
17458
|
-
const [,
|
|
17459
|
-
if (
|
|
17458
|
+
const [, g, y, b, w] = h;
|
|
17459
|
+
if (b != null && g !== b)
|
|
17460
17460
|
return null;
|
|
17461
|
-
l =
|
|
17461
|
+
l = w ? `${y}:${w}` : y, a = g.replace(/^'|'$/g, "").replace(/\\'/g, "'").replace(/''/g, "'"), p.forEach(s, (v) => a === v.name ? (o = v.id, i = v.data ?? null, !1) : !0), o != null && p.isNil(i) && (i = Tn(e, { id: o }));
|
|
17462
17462
|
} else {
|
|
17463
|
-
let
|
|
17464
|
-
if (p.isNil(
|
|
17465
|
-
return e.formulaCache.cellTextToIndexList[`${t}_${
|
|
17466
|
-
const
|
|
17467
|
-
if (p.isNil(
|
|
17463
|
+
let h = n;
|
|
17464
|
+
if (p.isNil(h) && (h = e.currentSheetId), `${t}_${h}` in e.formulaCache.cellTextToIndexList)
|
|
17465
|
+
return e.formulaCache.cellTextToIndexList[`${t}_${h}`];
|
|
17466
|
+
const g = ke(e, h);
|
|
17467
|
+
if (p.isNil(g))
|
|
17468
17468
|
return null;
|
|
17469
|
-
a = s[
|
|
17469
|
+
a = s[g].name, o = s[g].id, i = r, l = t;
|
|
17470
17470
|
}
|
|
17471
17471
|
if (p.isNil(i))
|
|
17472
17472
|
return null;
|
|
17473
17473
|
if (l.indexOf(":") === -1) {
|
|
17474
|
-
const
|
|
17475
|
-
if (!Number.isNaN(
|
|
17476
|
-
const
|
|
17477
|
-
row: [
|
|
17478
|
-
column: [
|
|
17474
|
+
const h = parseInt(l.replace(/[^0-9]/g, ""), 10) - 1, g = Lt(l.replace(/[^A-Za-z]/g, ""));
|
|
17475
|
+
if (!Number.isNaN(h) && !Number.isNaN(g)) {
|
|
17476
|
+
const y = {
|
|
17477
|
+
row: [h, h],
|
|
17478
|
+
column: [g, g],
|
|
17479
17479
|
sheetId: o
|
|
17480
17480
|
};
|
|
17481
|
-
return Zs(e, t,
|
|
17481
|
+
return Zs(e, t, y), y;
|
|
17482
17482
|
}
|
|
17483
17483
|
return null;
|
|
17484
17484
|
}
|
|
17485
17485
|
const u = l.split(":"), c = [], f = [];
|
|
17486
|
-
|
|
17486
|
+
let d = !1;
|
|
17487
|
+
if (c[0] = parseInt(u[0].replace(/[^0-9]/g, ""), 10) - 1, c[1] = parseInt(u[1].replace(/[^0-9]/g, ""), 10) - 1, Number.isNaN(c[0]) && (c[0] = 0), Number.isNaN(c[1]) && (c[1] = i.length - 1, d = !0), c[0] > c[1] || (f[0] = Lt(u[0].replace(/[^A-Za-z]/g, "")), f[1] = Lt(u[1].replace(/[^A-Za-z]/g, "")), Number.isNaN(f[0]) && (f[0] = 0), Number.isNaN(f[1]) && (f[1] = i[0].length - 1, d = !0), f[0] > f[1]))
|
|
17487
17488
|
return null;
|
|
17488
|
-
const
|
|
17489
|
+
const m = {
|
|
17489
17490
|
row: c,
|
|
17490
17491
|
column: f,
|
|
17491
17492
|
sheetId: o
|
|
17492
17493
|
};
|
|
17493
|
-
return Zs(e, t,
|
|
17494
|
+
return d || Zs(e, t, m), m;
|
|
17494
17495
|
}
|
|
17495
17496
|
function Ah(e) {
|
|
17496
17497
|
if (e.length === 0)
|
|
@@ -17797,7 +17798,7 @@ function qh(e, t, n) {
|
|
|
17797
17798
|
}
|
|
17798
17799
|
const _l = /\b(INDIRECT|OFFSET)\s*\(/i;
|
|
17799
17800
|
function Ft(e, t, n, r, a, l, o, i) {
|
|
17800
|
-
var k,
|
|
17801
|
+
var k, R, B, V;
|
|
17801
17802
|
const s = t;
|
|
17802
17803
|
if (p.isNil(a) && (a = e.currentSheetId), (t != null && t.toUpperCase().includes("NETWORKDAYS.INTL") || t != null && t.toUpperCase().includes("WORKDAY.INTL")) && (t = Ih(t)), t.indexOf(tr.r) > -1)
|
|
17803
17804
|
return [!1, tr.r, t];
|
|
@@ -17819,7 +17820,7 @@ function Ft(e, t, n, r, a, l, o, i) {
|
|
|
17819
17820
|
column: r
|
|
17820
17821
|
});
|
|
17821
17822
|
} finally {
|
|
17822
|
-
h = ((k = e.formulaCache.activeDepCollection) == null ? void 0 : k.hasWideRangeDep) ?? !1, g = ((
|
|
17823
|
+
h = ((k = e.formulaCache.activeDepCollection) == null ? void 0 : k.hasWideRangeDep) ?? !1, g = ((R = e.formulaCache.activeDepCollection) == null ? void 0 : R.wideRanges) ?? [], y = ((B = e.formulaCache.activeDepCollection) == null ? void 0 : B.wideUnreadable) ?? !1, e.formulaCache.activeDepCollection = null;
|
|
17823
17824
|
}
|
|
17824
17825
|
const b = _l.test(t);
|
|
17825
17826
|
(h || b) && (e.formulaCache.formulasWithWideRangeDeps.add(c), !y && !b && g.length > 0 && e.formulaCache.wideRangesByFormula.set(c, g));
|
|
@@ -18154,15 +18155,15 @@ function Pt(e, t, n, r, a, l, o = !1) {
|
|
|
18154
18155
|
}
|
|
18155
18156
|
}
|
|
18156
18157
|
}
|
|
18157
|
-
const
|
|
18158
|
+
const R = Ws(
|
|
18158
18159
|
i,
|
|
18159
18160
|
e.formulaCache.revDepsByCell,
|
|
18160
18161
|
N,
|
|
18161
18162
|
Ks(e)
|
|
18162
18163
|
);
|
|
18163
|
-
if (
|
|
18164
|
+
if (R.size > 0)
|
|
18164
18165
|
f = c.filter(
|
|
18165
|
-
(B) =>
|
|
18166
|
+
(B) => R.has(`${B.id}:${B.r}:${B.c}`)
|
|
18166
18167
|
);
|
|
18167
18168
|
else if (qh(e, a, Ae(e, a))) {
|
|
18168
18169
|
e.formulaCache.execFunctionExist = void 0, Go(e.formulaCache);
|
|
@@ -18181,10 +18182,10 @@ function Pt(e, t, n, r, a, l, o = !1) {
|
|
|
18181
18182
|
b[N] = 1;
|
|
18182
18183
|
} else
|
|
18183
18184
|
for (let N = 0; N < e.formulaCache.execFunctionExist.length; N += 1) {
|
|
18184
|
-
const k = e.formulaCache.execFunctionExist[N],
|
|
18185
|
-
b[
|
|
18185
|
+
const k = e.formulaCache.execFunctionExist[N], R = `r${k.r}c${k.c}i${k.i}`;
|
|
18186
|
+
b[R] = 1;
|
|
18186
18187
|
}
|
|
18187
|
-
const v = {}, _ = (N, k,
|
|
18188
|
+
const v = {}, _ = (N, k, R, B) => {
|
|
18188
18189
|
for (let V = 0; V < N.length; V += 1) {
|
|
18189
18190
|
const Q = N[V], q = `r${Q.row[0]}${Q.row[1]}c${Q.column[0]}${Q.column[1]}id${Q.sheetId}`;
|
|
18190
18191
|
if (q in v)
|
|
@@ -18196,19 +18197,19 @@ function Pt(e, t, n, r, a, l, o = !1) {
|
|
|
18196
18197
|
for (let W = Q.row[0]; W <= Q.row[1]; W += 1)
|
|
18197
18198
|
for (let Y = Q.column[0]; Y <= Q.column[1]; Y += 1) {
|
|
18198
18199
|
const x = `r${W}c${Y}i${Q.sheetId}`;
|
|
18199
|
-
B(x, W, Y, Q.sheetId), (k && x in k ||
|
|
18200
|
+
B(x, W, Y, Q.sheetId), (k && x in k || R && x in R) && X.push({
|
|
18200
18201
|
key: x,
|
|
18201
18202
|
r: W,
|
|
18202
18203
|
c: Y,
|
|
18203
18204
|
sheetId: Q.sheetId
|
|
18204
18205
|
});
|
|
18205
18206
|
}
|
|
18206
|
-
(k ||
|
|
18207
|
+
(k || R) && (v[q] = X);
|
|
18207
18208
|
}
|
|
18208
18209
|
}
|
|
18209
18210
|
};
|
|
18210
18211
|
for (let N = 0; N < f.length; N += 1) {
|
|
18211
|
-
const k = f[N],
|
|
18212
|
+
const k = f[N], R = `r${k.r}c${k.c}i${k.id}`, B = xr(
|
|
18212
18213
|
e,
|
|
18213
18214
|
k.r,
|
|
18214
18215
|
k.c,
|
|
@@ -18270,7 +18271,7 @@ function Pt(e, t, n, r, a, l, o = !1) {
|
|
|
18270
18271
|
const X = {
|
|
18271
18272
|
formulaArray: q,
|
|
18272
18273
|
calc_funcStr: B,
|
|
18273
|
-
key:
|
|
18274
|
+
key: R,
|
|
18274
18275
|
r: k.r,
|
|
18275
18276
|
c: k.c,
|
|
18276
18277
|
id: k.id,
|
|
@@ -18278,7 +18279,7 @@ function Pt(e, t, n, r, a, l, o = !1) {
|
|
|
18278
18279
|
chidren: {},
|
|
18279
18280
|
color: "w"
|
|
18280
18281
|
};
|
|
18281
|
-
h[
|
|
18282
|
+
h[R] = X;
|
|
18282
18283
|
}
|
|
18283
18284
|
if (Object.keys(h).forEach((N) => {
|
|
18284
18285
|
const k = h[N];
|
|
@@ -18286,12 +18287,12 @@ function Pt(e, t, n, r, a, l, o = !1) {
|
|
|
18286
18287
|
k.formulaArray,
|
|
18287
18288
|
h,
|
|
18288
18289
|
b,
|
|
18289
|
-
(
|
|
18290
|
-
if (
|
|
18291
|
-
const B = h[
|
|
18292
|
-
k.chidren[
|
|
18290
|
+
(R) => {
|
|
18291
|
+
if (R in h) {
|
|
18292
|
+
const B = h[R];
|
|
18293
|
+
k.chidren[R] = 1, B.parents[N] = 1;
|
|
18293
18294
|
}
|
|
18294
|
-
!o &&
|
|
18295
|
+
!o && R in b && w.push(k);
|
|
18295
18296
|
}
|
|
18296
18297
|
), o && w.push(k);
|
|
18297
18298
|
}), !o && !p.isNil(t) && !p.isNil(n) && !p.isNil(a) && e.formulaCache.revDepsByCell.size > 0) {
|
|
@@ -18303,11 +18304,11 @@ function Pt(e, t, n, r, a, l, o = !1) {
|
|
|
18303
18304
|
);
|
|
18304
18305
|
if (N.size > 0) {
|
|
18305
18306
|
const k = new Set(
|
|
18306
|
-
w.map((
|
|
18307
|
+
w.map((R) => R.key)
|
|
18307
18308
|
);
|
|
18308
|
-
Object.keys(h).forEach((
|
|
18309
|
-
if (k.has(
|
|
18310
|
-
const B = h[
|
|
18309
|
+
Object.keys(h).forEach((R) => {
|
|
18310
|
+
if (k.has(R)) return;
|
|
18311
|
+
const B = h[R];
|
|
18311
18312
|
N.has(`${B.id}:${B.r}:${B.c}`) && w.push(B);
|
|
18312
18313
|
});
|
|
18313
18314
|
}
|
|
@@ -18324,8 +18325,8 @@ function Pt(e, t, n, r, a, l, o = !1) {
|
|
|
18324
18325
|
continue;
|
|
18325
18326
|
}
|
|
18326
18327
|
const k = [];
|
|
18327
|
-
Object.keys(N.parents).forEach((
|
|
18328
|
-
const B = h[
|
|
18328
|
+
Object.keys(N.parents).forEach((R) => {
|
|
18329
|
+
const B = h[R];
|
|
18329
18330
|
p.isNil(B) || k.push(B);
|
|
18330
18331
|
}), k.length === 0 ? (T.push(N), $[N.key] = 1) : (N.color = "b", C.push(N), C = C.concat(k));
|
|
18331
18332
|
}
|
|
@@ -19486,10 +19487,10 @@ function zr(e, t, n, r) {
|
|
|
19486
19487
|
const T = $c(u), C = T.length > 0 ? Math.max(...T) + 1 : vn, $ = `<span class="fortune-formula-functionrange-cell" rangeindex="${C}" dir="auto" style="color:${pl(C)};">${f}</span>`, S = pc($);
|
|
19487
19488
|
let N = e.formulaCache.rangeSetValueTo;
|
|
19488
19489
|
if (N && !N.parentNode && (Ur(e), N = e.formulaCache.rangeSetValueTo), N && N.parentNode) {
|
|
19489
|
-
const
|
|
19490
|
+
const R = (b = document.getElementsByClassName(
|
|
19490
19491
|
"luckysheet-formula-text-lpar"
|
|
19491
19492
|
)) == null ? void 0 : b[0];
|
|
19492
|
-
(w =
|
|
19493
|
+
(w = R == null ? void 0 : R.parentElement) != null && w.classList.contains(
|
|
19493
19494
|
"luckysheet-formula-text-color"
|
|
19494
19495
|
) ? (_ = (v = document.getElementsByClassName("luckysheet-formula-text-lpar")) == null ? void 0 : v[0].parentNode) == null || _.appendChild(S) : N.parentNode.insertBefore(S, N.nextSibling);
|
|
19495
19496
|
} else
|
|
@@ -20140,8 +20141,8 @@ var Oc = { exports: {} };
|
|
|
20140
20141
|
}, t._ = n = {
|
|
20141
20142
|
// formats numbers separators, decimals places, signs, abbreviations
|
|
20142
20143
|
numberToFormat: function(u, c, f) {
|
|
20143
|
-
var d = l[t.options.currentLocale], m = !1, h = !1, g = 0, y = "", b = 1e12, w = 1e9, v = 1e6, _ = 1e3, T = "", C = !1, $, S, N, k,
|
|
20144
|
-
if (u = u || 0, S = Math.abs(u), t._.includes(c, "(") ? (m = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (
|
|
20144
|
+
var d = l[t.options.currentLocale], m = !1, h = !1, g = 0, y = "", b = 1e12, w = 1e9, v = 1e6, _ = 1e3, T = "", C = !1, $, S, N, k, R, B, V;
|
|
20145
|
+
if (u = u || 0, S = Math.abs(u), t._.includes(c, "(") ? (m = !0, c = c.replace(/[\(|\)]/g, "")) : (t._.includes(c, "+") || t._.includes(c, "-")) && (R = t._.includes(c, "+") ? c.indexOf("+") : u < 0 ? c.indexOf("-") : -1, c = c.replace(/[\+|\-]/g, "")), t._.includes(c, "a") && ($ = c.match(/a(k|m|b|t)?/), $ = $ ? $[1] : !1, t._.includes(c, " a") && (y = " "), c = c.replace(new RegExp(y + "a[kmbt]?"), ""), S >= b && !$ || $ === "t" ? (y += d.abbreviations.trillion, u = u / b) : S < b && S >= w && !$ || $ === "b" ? (y += d.abbreviations.billion, u = u / w) : S < w && S >= v && !$ || $ === "m" ? (y += d.abbreviations.million, u = u / v) : (S < v && S >= _ && !$ || $ === "k") && (y += d.abbreviations.thousand, u = u / _)), t._.includes(c, "[.]") && (h = !0, c = c.replace("[.]", ".")), N = u.toString().split(".")[0], k = c.split(".")[1], B = c.indexOf(","), g = (c.split(".")[0].split(",")[0].match(/0/g) || []).length, k ? (t._.includes(k, "[") ? (k = k.replace("]", ""), k = k.split("["), T = t._.toFixed(u, k[0].length + k[1].length, f, k[1].length)) : T = t._.toFixed(u, k.length, f), N = T.split(".")[0], t._.includes(T, ".") ? T = d.delimiters.decimal + T.split(".")[1] : T = "", h && Number(T.slice(1)) === 0 && (T = "")) : N = t._.toFixed(u, 0, f), y && !$ && Number(N) >= 1e3 && y !== d.abbreviations.trillion)
|
|
20145
20146
|
switch (N = String(Number(N) / 1e3), y) {
|
|
20146
20147
|
case d.abbreviations.thousand:
|
|
20147
20148
|
y = d.abbreviations.million;
|
|
@@ -20156,7 +20157,7 @@ var Oc = { exports: {} };
|
|
|
20156
20157
|
if (t._.includes(N, "-") && (N = N.slice(1), C = !0), N.length < g)
|
|
20157
20158
|
for (var Q = g - N.length; Q > 0; Q--)
|
|
20158
20159
|
N = "0" + N;
|
|
20159
|
-
return B > -1 && (N = N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), c.indexOf(".") === 0 && (N = ""), V = N + T + (y || ""), m ? V = (m && C ? "(" : "") + V + (m && C ? ")" : "") :
|
|
20160
|
+
return B > -1 && (N = N.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1" + d.delimiters.thousands)), c.indexOf(".") === 0 && (N = ""), V = N + T + (y || ""), m ? V = (m && C ? "(" : "") + V + (m && C ? ")" : "") : R >= 0 ? V = R === 0 ? (C ? "-" : "+") + V : V + (C ? "-" : "+") : C && (V = "-" + V), V;
|
|
20160
20161
|
},
|
|
20161
20162
|
// unformats numbers separators, decimals places, signs, abbreviations
|
|
20162
20163
|
stringToNumber: function(u) {
|
|
@@ -20655,7 +20656,7 @@ const Cp = function(t) {
|
|
|
20655
20656
|
return re;
|
|
20656
20657
|
}();
|
|
20657
20658
|
t._general_num = k;
|
|
20658
|
-
function
|
|
20659
|
+
function R(D, E) {
|
|
20659
20660
|
switch (typeof D) {
|
|
20660
20661
|
case "string":
|
|
20661
20662
|
return D;
|
|
@@ -20672,7 +20673,7 @@ const Cp = function(t) {
|
|
|
20672
20673
|
}
|
|
20673
20674
|
throw new Error("unsupported value in General format: " + D);
|
|
20674
20675
|
}
|
|
20675
|
-
t._general =
|
|
20676
|
+
t._general = R;
|
|
20676
20677
|
function B(D, E) {
|
|
20677
20678
|
E[0] -= 581;
|
|
20678
20679
|
var U = D.getDay();
|
|
@@ -21384,7 +21385,7 @@ const Cp = function(t) {
|
|
|
21384
21385
|
De += H[j].v, j = Fe - 1;
|
|
21385
21386
|
break;
|
|
21386
21387
|
case "G":
|
|
21387
|
-
H[j].t = "t", H[j].v =
|
|
21388
|
+
H[j].t = "t", H[j].v = R(E, U);
|
|
21388
21389
|
break;
|
|
21389
21390
|
}
|
|
21390
21391
|
var _e = "", I, L;
|
|
@@ -21574,10 +21575,10 @@ const Cp = function(t) {
|
|
|
21574
21575
|
j != "" && (E = sn(E).format(j));
|
|
21575
21576
|
return ee ? "-" + E : E;
|
|
21576
21577
|
}
|
|
21577
|
-
if (f(Ce, 0)) return
|
|
21578
|
+
if (f(Ce, 0)) return R(E, U);
|
|
21578
21579
|
E instanceof Date && (E = S(E, U.date1904));
|
|
21579
21580
|
var we = z(Ce, E);
|
|
21580
|
-
if (f(we[1])) return
|
|
21581
|
+
if (f(we[1])) return R(E, U);
|
|
21581
21582
|
if (E === !0) E = "TRUE";
|
|
21582
21583
|
else if (E === !1) E = "FALSE";
|
|
21583
21584
|
else if (E === "" || E == null) return "";
|
|
@@ -22348,9 +22349,9 @@ function u0(e, t, n, r, a, l, o) {
|
|
|
22348
22349
|
if (T.length === 1) {
|
|
22349
22350
|
const $ = T[0].row[0], S = T[0].row[1], N = T[0].column[0], k = T[0].column[1];
|
|
22350
22351
|
if ($ === S && N === k) {
|
|
22351
|
-
const
|
|
22352
|
-
if (!
|
|
22353
|
-
v = at($, N,
|
|
22352
|
+
const R = Ae(e);
|
|
22353
|
+
if (!R) return;
|
|
22354
|
+
v = at($, N, R), s.push({
|
|
22354
22355
|
row: T[0].row,
|
|
22355
22356
|
column: T[0].column
|
|
22356
22357
|
}), u.push(v);
|
|
@@ -22373,9 +22374,9 @@ function u0(e, t, n, r, a, l, o) {
|
|
|
22373
22374
|
if (C.length === 1) {
|
|
22374
22375
|
const $ = C[0].row[0], S = C[0].row[1], N = C[0].column[0], k = C[0].column[1];
|
|
22375
22376
|
if ($ === S && N === k) {
|
|
22376
|
-
const
|
|
22377
|
-
if (!
|
|
22378
|
-
_ = at($, N,
|
|
22377
|
+
const R = Ae(e);
|
|
22378
|
+
if (!R) return;
|
|
22379
|
+
_ = at($, N, R), s.push({
|
|
22379
22380
|
row: C[0].row,
|
|
22380
22381
|
column: C[0].column
|
|
22381
22382
|
});
|
|
@@ -22902,8 +22903,8 @@ function zp(e, t, n) {
|
|
|
22902
22903
|
for (let $ = w; $ <= v; $ += 1)
|
|
22903
22904
|
for (let S = _; S <= T; S += 1) {
|
|
22904
22905
|
let N = C;
|
|
22905
|
-
const k = $ - w,
|
|
22906
|
-
k > 0 && (N = `=${en(e, N, "down", k)}`),
|
|
22906
|
+
const k = $ - w, R = S - _;
|
|
22907
|
+
k > 0 && (N = `=${en(e, N, "down", k)}`), R > 0 && (N = `=${en(e, N, "right", R)}`);
|
|
22907
22908
|
let V = Ft(e, N, $, S)[1];
|
|
22908
22909
|
typeof V != "boolean" && (V = !!Number(V)), V && (`${$}_${S}` in r || (r[`${$}_${S}`] = {
|
|
22909
22910
|
textColor: f,
|
|
@@ -23944,7 +23945,7 @@ function at(e, t, n, r) {
|
|
|
23944
23945
|
return l === void 0 && (l = null), l;
|
|
23945
23946
|
}
|
|
23946
23947
|
function Ht(e, t, n, r, a) {
|
|
23947
|
-
var m, h, g, y, b, w, v, _, T, C, $, S, N, k,
|
|
23948
|
+
var m, h, g, y, b, w, v, _, T, C, $, S, N, k, R, B, V, Q, q, X, W, Y, x, pe, he;
|
|
23948
23949
|
if (e.allowEdit === !1 || e.isFlvReadOnly || (p.isNil(r) && (r = Ae(e)), !r)) return;
|
|
23949
23950
|
let l = r[t][n];
|
|
23950
23951
|
const o = !!l && !(ot(l.v) && ot(l.m) && ot(l.f));
|
|
@@ -24013,7 +24014,7 @@ function Ht(e, t, n, r, a) {
|
|
|
24013
24014
|
l.m = G.toString();
|
|
24014
24015
|
}
|
|
24015
24016
|
}
|
|
24016
|
-
if (dc(l.f, l.v) && (((S = l.ct) == null ? void 0 : S.fa) === "General" || ((N = l.ct) == null ? void 0 : N.t) === "g" || ((k = l.ct) == null ? void 0 : k.t) === "n" && (!((
|
|
24017
|
+
if (dc(l.f, l.v) && (((S = l.ct) == null ? void 0 : S.fa) === "General" || ((N = l.ct) == null ? void 0 : N.t) === "g" || ((k = l.ct) == null ? void 0 : k.t) === "n" && (!((R = l.ct) != null && R.fa) || ((B = l.ct) == null ? void 0 : B.fa) === "General"))) {
|
|
24017
24018
|
const z = /\bNOW\s*\(/i.test(l.f), G = Vu(z);
|
|
24018
24019
|
l.ct = { fa: G, t: "d" };
|
|
24019
24020
|
const fe = Math.round(l.v * 1e9) / 1e9;
|
|
@@ -24236,7 +24237,7 @@ function su(e, t, n, r, a) {
|
|
|
24236
24237
|
]);
|
|
24237
24238
|
}
|
|
24238
24239
|
function Zo(e, t, n, r, a, l) {
|
|
24239
|
-
var o, i, s, u, c, f, d, m, h, g, y, b, w, v, _, T, C, $, S, N, k,
|
|
24240
|
+
var o, i, s, u, c, f, d, m, h, g, y, b, w, v, _, T, C, $, S, N, k, R, B, V, Q, q, X, W, Y;
|
|
24240
24241
|
try {
|
|
24241
24242
|
if (e.allowEdit === !1 || e.isFlvReadOnly) return;
|
|
24242
24243
|
kc(e), Tn(e);
|
|
@@ -24451,7 +24452,7 @@ function Zo(e, t, n, r, a, l) {
|
|
|
24451
24452
|
v: a,
|
|
24452
24453
|
tb: "1"
|
|
24453
24454
|
} : typeof a == "object" && !a.tb && (a.tb = "1");
|
|
24454
|
-
const L = Array.isArray((
|
|
24455
|
+
const L = Array.isArray((R = a == null ? void 0 : a.v) == null ? void 0 : R[0]);
|
|
24455
24456
|
try {
|
|
24456
24457
|
if (L && ja(e, t, n, a, De)) {
|
|
24457
24458
|
pn(e);
|
|
@@ -25213,11 +25214,11 @@ function k0(e, t, n, r, a) {
|
|
|
25213
25214
|
let T = f - 1 === -1 ? 0 : e.visibledatarow[f - 1], C = e.visibledatacolumn[d];
|
|
25214
25215
|
m && ([T] = m.row, [, C] = m.column);
|
|
25215
25216
|
const $ = C, S = T, N = e.zoomRatio, k = v.left == null ? $ + 8 * N : v.left * N;
|
|
25216
|
-
let
|
|
25217
|
-
|
|
25217
|
+
let R = v.top == null ? S - 2 * N : v.top * N;
|
|
25218
|
+
R < 0 && (R = 2), e.hoverErrorBox = {
|
|
25218
25219
|
row_column: b,
|
|
25219
25220
|
left: k,
|
|
25220
|
-
top:
|
|
25221
|
+
top: R,
|
|
25221
25222
|
title: ((q = w.error) == null ? void 0 : q.title) || "Error",
|
|
25222
25223
|
message: ((X = w.error) == null ? void 0 : X.message) || "Default error message"
|
|
25223
25224
|
};
|
|
@@ -25449,26 +25450,26 @@ function x0(e, t) {
|
|
|
25449
25450
|
const _ = [], T = [], C = v[0].length, $ = v.length, S = Ul(e, a), N = p.cloneDeep(
|
|
25450
25451
|
e.luckysheetfile[ke(e, a)].dataVerification
|
|
25451
25452
|
) || {};
|
|
25452
|
-
let k = null,
|
|
25453
|
+
let k = null, R = 0, B = 0, V = 0, Q = 0;
|
|
25453
25454
|
for (let x = 1; x <= b; x += 1)
|
|
25454
25455
|
for (let pe = 1; pe <= w; pe += 1) {
|
|
25455
|
-
|
|
25456
|
+
R = f + (x - 1) * g, B = m + (pe - 1) * y, Q = f + x * g > $ ? $ : f + x * g, Q > d + 1 && (Q = d + 1), V = m + pe * y > C ? C : m + pe * y, V > h + 1 && (V = h + 1);
|
|
25456
25457
|
const he = {};
|
|
25457
|
-
for (let J =
|
|
25458
|
+
for (let J = R; J < Q; J += 1) {
|
|
25458
25459
|
if (J == null || v[J] == null) return;
|
|
25459
25460
|
let z = [];
|
|
25460
25461
|
z = v[J];
|
|
25461
25462
|
for (let G = B; G < V; G += 1) {
|
|
25462
|
-
if (S[`${l + J -
|
|
25463
|
+
if (S[`${l + J - R}_${i + G - B}`]) {
|
|
25463
25464
|
const Te = {
|
|
25464
25465
|
rangeType: "cell",
|
|
25465
25466
|
value: {
|
|
25466
25467
|
row_index: J,
|
|
25467
25468
|
col_index: G,
|
|
25468
|
-
l: S[`${l + J -
|
|
25469
|
-
r: S[`${l + J -
|
|
25470
|
-
t: S[`${l + J -
|
|
25471
|
-
b: S[`${l + J -
|
|
25469
|
+
l: S[`${l + J - R}_${i + G - B}`].l,
|
|
25470
|
+
r: S[`${l + J - R}_${i + G - B}`].r,
|
|
25471
|
+
t: S[`${l + J - R}_${i + G - B}`].t,
|
|
25472
|
+
b: S[`${l + J - R}_${i + G - B}`].b
|
|
25472
25473
|
}
|
|
25473
25474
|
};
|
|
25474
25475
|
n.borderInfo == null && (n.borderInfo = []), n.borderInfo.push(Te);
|
|
@@ -25486,11 +25487,11 @@ function x0(e, t) {
|
|
|
25486
25487
|
};
|
|
25487
25488
|
n.borderInfo == null && (n.borderInfo = []), n.borderInfo.push(Te);
|
|
25488
25489
|
}
|
|
25489
|
-
if (N[`${l + J -
|
|
25490
|
+
if (N[`${l + J - R}_${i + G - B}`]) {
|
|
25490
25491
|
k == null && (k = p.cloneDeep(
|
|
25491
25492
|
e.luckysheetfile[ke(e, e.currentSheetId)].dataVerification
|
|
25492
25493
|
));
|
|
25493
|
-
const Te = N[`${l + J -
|
|
25494
|
+
const Te = N[`${l + J - R}_${i + G - B}`];
|
|
25494
25495
|
k[`${J}_${G}`] = Te, T.push({
|
|
25495
25496
|
sheetId: e.currentSheetId,
|
|
25496
25497
|
path: ["dataVerification"],
|
|
@@ -25501,7 +25502,7 @@ function x0(e, t) {
|
|
|
25501
25502
|
}
|
|
25502
25503
|
vs(z[G]) && z[G].mc && (z[G].mc.rs && delete n.merge[`${z[G].mc.r}_${z[G].mc.c}`], delete z[G].mc);
|
|
25503
25504
|
let fe = null;
|
|
25504
|
-
if (u[J -
|
|
25505
|
+
if (u[J - R] != null && u[J - R][G - B] != null && (fe = u[J - R][G - B]), vs(z[G]) ? z[G].ct && z[G].ct.t === "inlineStr" && fe ? delete fe.ct : [
|
|
25505
25506
|
"bg",
|
|
25506
25507
|
"fc",
|
|
25507
25508
|
"ct",
|
|
@@ -25737,8 +25738,8 @@ function O0(e, t, n, r) {
|
|
|
25737
25738
|
}
|
|
25738
25739
|
let N = p.isNil(y.moveXY) ? C : y.moveXY.x, k = p.isNil(y.moveXY) ? $ : y.moveXY.y;
|
|
25739
25740
|
t === "down" ? (C += n, N = C) : t === "right" && ($ += n, k = $), C >= l && (C = l - 1, N = C), C < 0 && (C = 0, N = C), $ >= o && ($ = o - 1, k = $), $ < 0 && ($ = 0, k = $);
|
|
25740
|
-
const
|
|
25741
|
-
if (
|
|
25741
|
+
const R = _n(e, a, C, $);
|
|
25742
|
+
if (R ? ([s, i, u, c] = R.row, [d, f, m, h] = R.column) : (i = e.visibledatarow[N], s = N - 1 === -1 ? 0 : e.visibledatarow[N - 1], f = e.visibledatacolumn[k], d = k - 1 === -1 ? 0 : e.visibledatacolumn[k - 1], u = C, c = C, m = $, h = $), p.isNil(u) || p.isNil(c) || p.isNil(m) || p.isNil(h)) {
|
|
25742
25743
|
console.error(
|
|
25743
25744
|
"moveHighlightCell: row_index or row_index_ed or col_index or col_index_ed is nil"
|
|
25744
25745
|
);
|
|
@@ -25886,14 +25887,14 @@ function F0(e, t, n, r) {
|
|
|
25886
25887
|
const h = u.row_focus, g = u.column_focus, y = s.length, b = s[0].length;
|
|
25887
25888
|
if (t === "down") {
|
|
25888
25889
|
if (!p.isNil(h) && Zt(e, h, d, m)) {
|
|
25889
|
-
const N = dn(e, h, d, m), k = N[0],
|
|
25890
|
-
if (!p.isNil(k) && k > c &&
|
|
25890
|
+
const N = dn(e, h, d, m), k = N[0], R = N[1];
|
|
25891
|
+
if (!p.isNil(k) && k > c && R === f) {
|
|
25891
25892
|
if (n > 0 && Zt(e, c, d, m)) {
|
|
25892
25893
|
const B = dn(e, c, d, m)[1];
|
|
25893
25894
|
p.isNil(B) || (c = B);
|
|
25894
25895
|
}
|
|
25895
25896
|
c += n;
|
|
25896
|
-
} else if (!p.isNil(
|
|
25897
|
+
} else if (!p.isNil(R) && R < f && k === c) {
|
|
25897
25898
|
if (n < 0 && Zt(e, f, d, m)) {
|
|
25898
25899
|
const B = dn(e, f, d, m)[0];
|
|
25899
25900
|
p.isNil(B) || (f = B), f += n;
|
|
@@ -25916,14 +25917,14 @@ function F0(e, t, n, r) {
|
|
|
25916
25917
|
f >= y && (f = y - 1), f < 0 && (f = 0), c >= y && (c = y - 1), c < 0 && (c = 0);
|
|
25917
25918
|
} else {
|
|
25918
25919
|
if (!p.isNil(g) && Kt(e, g, c, f)) {
|
|
25919
|
-
const N = mn(e, g, c, f), k = N[0],
|
|
25920
|
-
if (!p.isNil(k) && k > d &&
|
|
25920
|
+
const N = mn(e, g, c, f), k = N[0], R = N[1];
|
|
25921
|
+
if (!p.isNil(k) && k > d && R === m) {
|
|
25921
25922
|
if (n > 0 && Kt(e, d, c, f)) {
|
|
25922
25923
|
const B = mn(e, d, c, f)[1];
|
|
25923
25924
|
p.isNil(B) || (d = B);
|
|
25924
25925
|
}
|
|
25925
25926
|
d += n;
|
|
25926
|
-
} else if (!p.isNil(
|
|
25927
|
+
} else if (!p.isNil(R) && R < m && k === d) {
|
|
25927
25928
|
if (n < 0 && Kt(e, m, c, f)) {
|
|
25928
25929
|
const B = mn(e, m, c, f)[0];
|
|
25929
25930
|
p.isNil(B) || (m = B);
|
|
@@ -26014,8 +26015,8 @@ function Rg(e, t, n, r) {
|
|
|
26014
26015
|
for (let k = C; k <= $; k += 1)
|
|
26015
26016
|
if (!s.has(k)) {
|
|
26016
26017
|
f.includes(k) || f.push(k);
|
|
26017
|
-
for (let
|
|
26018
|
-
d.includes(
|
|
26018
|
+
for (let R = S; R <= N; R += 1)
|
|
26019
|
+
d.includes(R) || d.push(R);
|
|
26019
26020
|
}
|
|
26020
26021
|
}
|
|
26021
26022
|
let m;
|
|
@@ -26040,7 +26041,7 @@ function Rg(e, t, n, r) {
|
|
|
26040
26041
|
let S = '<td ${span} style="${style}" data-fortune-cell="${cellData}">';
|
|
26041
26042
|
const N = (v = g[T]) == null ? void 0 : v[$];
|
|
26042
26043
|
if (N != null) {
|
|
26043
|
-
let k = "",
|
|
26044
|
+
let k = "", R = "";
|
|
26044
26045
|
if (T === f[0]) {
|
|
26045
26046
|
const X = c.defaultColWidth ?? e.defaultcollen;
|
|
26046
26047
|
p.isNil(c.config) || p.isNil(c.config.columnlen) || p.isNil(c.config.columnlen[$.toString()]) ? y += `<colgroup width="${X}px"></colgroup>` : y += `<colgroup width="${c.config.columnlen[$.toString()]}px"></colgroup>`;
|
|
@@ -26055,7 +26056,7 @@ function Rg(e, t, n, r) {
|
|
|
26055
26056
|
const Q = Ko(e, g, T, $, i);
|
|
26056
26057
|
if (k += p.map(Q, (X, W) => `${p.kebabCase(W)}:${p.isNumber(X) ? `${X}px` : X};`).join(""), N.mc)
|
|
26057
26058
|
if ("rs" in N.mc) {
|
|
26058
|
-
if (
|
|
26059
|
+
if (R = `rowspan="${N.mc.rs}" colspan="${N.mc.cs}"`, m && m[`${T}_${$}`]) {
|
|
26059
26060
|
const X = { color: {}, style: {} }, W = { color: {}, style: {} }, Y = { color: {}, style: {} }, x = { color: {}, style: {} };
|
|
26060
26061
|
for (let J = T; J < T + N.mc.rs; J += 1)
|
|
26061
26062
|
for (let z = $; z < $ + N.mc.cs; z += 1) {
|
|
@@ -26145,7 +26146,7 @@ function Rg(e, t, n, r) {
|
|
|
26145
26146
|
const q = a && !ed(N) ? encodeURIComponent(
|
|
26146
26147
|
JSON.stringify({ ...N, _srcRow: T, _srcCol: $ })
|
|
26147
26148
|
) : "";
|
|
26148
|
-
S = Tu(S, { style: k, span:
|
|
26149
|
+
S = Tu(S, { style: k, span: R, cellData: q }), p.isNil(V) && (V = at(T, $, g)), p.isNil(V) && (V = ""), l && un(N) ? S += Jc(T, $, g, {
|
|
26149
26150
|
useSemanticMarkup: !0,
|
|
26150
26151
|
inheritedStyle: Q,
|
|
26151
26152
|
isRichTextCopy: !0
|
|
@@ -26178,8 +26179,8 @@ function Rg(e, t, n, r) {
|
|
|
26178
26179
|
const B = c.defaultRowHeight ?? e.defaultrowlen;
|
|
26179
26180
|
p.isNil(c.config) || p.isNil(c.config.rowlen) || p.isNil(c.config.rowlen[T.toString()]) ? k += `height:${B}px;` : k += `height:${c.config.rowlen[T.toString()]}px;`;
|
|
26180
26181
|
}
|
|
26181
|
-
const
|
|
26182
|
-
k += p.map(
|
|
26182
|
+
const R = Ko(e, g, T, $, i);
|
|
26183
|
+
k += p.map(R, (B, V) => `${p.kebabCase(V)}:${p.isNumber(B) ? `${B}px` : B};`).join(""), S = Tu(S, { style: k, span: "", cellData: "" }), S += "";
|
|
26183
26184
|
}
|
|
26184
26185
|
S += "</td>", h += S;
|
|
26185
26186
|
}
|
|
@@ -26201,14 +26202,14 @@ function L0(e) {
|
|
|
26201
26202
|
for (let k = $; k <= S; k += 1) {
|
|
26202
26203
|
if (!p.isNil(e.config.colhidden) && !p.isNil(e.config.colhidden[k]))
|
|
26203
26204
|
continue;
|
|
26204
|
-
const
|
|
26205
|
-
if (
|
|
26206
|
-
un(
|
|
26207
|
-
const B =
|
|
26205
|
+
const R = (y = t == null ? void 0 : t[N]) == null ? void 0 : y[k];
|
|
26206
|
+
if (R) {
|
|
26207
|
+
un(R) && (l = !0), p.isNil(R.f) || (o = !0), p.isNil(R.hl) || (i = !0);
|
|
26208
|
+
const B = R.m ?? R.v;
|
|
26208
26209
|
p.isString(B) && B.includes(`
|
|
26209
26210
|
`) && (s = !0);
|
|
26210
26211
|
}
|
|
26211
|
-
p.isNil((b =
|
|
26212
|
+
p.isNil((b = R == null ? void 0 : R.mc) == null ? void 0 : b.rs) || (a = !0);
|
|
26212
26213
|
}
|
|
26213
26214
|
}
|
|
26214
26215
|
e.luckysheet_selection_range.push({
|
|
@@ -26234,7 +26235,7 @@ function L0(e) {
|
|
|
26234
26235
|
fontStyle: "normal",
|
|
26235
26236
|
textAlign: "left",
|
|
26236
26237
|
backgroundColor: "transparent"
|
|
26237
|
-
}, $ = (w = t == null ? void 0 : t[v]) == null ? void 0 : w[_], S = $ != null && un($), N = Ko(e, t, v, _), k = { ...C, ...N },
|
|
26238
|
+
}, $ = (w = t == null ? void 0 : t[v]) == null ? void 0 : w[_], S = $ != null && un($), N = Ko(e, t, v, _), k = { ...C, ...N }, R = /* @__PURE__ */ new Set([
|
|
26238
26239
|
"color",
|
|
26239
26240
|
"fontFamily",
|
|
26240
26241
|
"fontSize",
|
|
@@ -26243,7 +26244,7 @@ function L0(e) {
|
|
|
26243
26244
|
"textDecoration",
|
|
26244
26245
|
"textDecorationSkipInk"
|
|
26245
26246
|
]), B = p.toPairs(k).filter(
|
|
26246
|
-
([q, X]) => !p.isNil(X) && X !== "" && X !== "undefined" && !(S &&
|
|
26247
|
+
([q, X]) => !p.isNil(X) && X !== "" && X !== "undefined" && !(S && R.has(q))
|
|
26247
26248
|
).map(([q, X]) => `${p.kebabCase(q)}:${p.isNumber(X) ? `${X}px` : X};`).join(" "), V = S ? Jc(v, _, t, {
|
|
26248
26249
|
useSemanticMarkup: !0,
|
|
26249
26250
|
inheritedStyle: k,
|
|
@@ -26294,8 +26295,8 @@ function B0(e) {
|
|
|
26294
26295
|
const w = n[b].row[0], v = n[b].row[1], _ = n[b].column[0], T = n[b].column[1];
|
|
26295
26296
|
for (let C = w; C <= v; C += 1)
|
|
26296
26297
|
for (let $ = _; $ <= T; $ += 1) {
|
|
26297
|
-
const S = ke(e, e.currentSheetId), N = f[C][$] != null ? p.cloneDeep(f[C][$]) : null, k = N != null && (N.tb === "2" && !p.isNil(N.v) && N.v !== "" || un(N)), { dataVerification:
|
|
26298
|
-
if (
|
|
26298
|
+
const S = ke(e, e.currentSheetId), N = f[C][$] != null ? p.cloneDeep(f[C][$]) : null, k = N != null && (N.tb === "2" && !p.isNil(N.v) && N.v !== "" || un(N)), { dataVerification: R } = e.luckysheetfile[S];
|
|
26299
|
+
if (R && (R != null && R[`${C}_${$}`]) && (R == null || delete R[`${C}_${$}`]), p.isPlainObject(f[C][$])) {
|
|
26299
26300
|
const V = f[C][$];
|
|
26300
26301
|
delete V.m, delete V.v, delete V.fc, delete V.un, V.f != null && (delete V.f, Ot(e, C, $, e.currentSheetId), delete V.spl), V.ct != null && (V.ct.t === "inlineStr" || (r = V.ct.fa) != null && r.includes("BTC") || (a = V.ct.fa) != null && a.includes("ETH") || (l = V.ct.fa) != null && l.includes("SOL")) && (delete V.ct, V == null || delete V.baseValue, V == null || delete V.baseCurrency), wn(e, C, $);
|
|
26301
26302
|
} else
|
|
@@ -26412,8 +26413,8 @@ function H0(e) {
|
|
|
26412
26413
|
for (let N = 0; N < w.length; N += 1) {
|
|
26413
26414
|
const k = w[N].cellrange;
|
|
26414
26415
|
if (k)
|
|
26415
|
-
for (let
|
|
26416
|
-
const B = k[
|
|
26416
|
+
for (let R = 0; R < k.length; R += 1) {
|
|
26417
|
+
const B = k[R];
|
|
26417
26418
|
if (_ >= B.row[0] && _ <= B.row[1] && T >= B.column[0] && T <= B.column[1]) {
|
|
26418
26419
|
k.push({ row: [c, c], column: [d, d] });
|
|
26419
26420
|
break;
|
|
@@ -26453,8 +26454,8 @@ function H0(e) {
|
|
|
26453
26454
|
for (let N = 0; N < w.length; N += 1) {
|
|
26454
26455
|
const k = w[N].cellrange;
|
|
26455
26456
|
if (k)
|
|
26456
|
-
for (let
|
|
26457
|
-
const B = k[
|
|
26457
|
+
for (let R = 0; R < k.length; R += 1) {
|
|
26458
|
+
const B = k[R];
|
|
26458
26459
|
if (_ >= B.row[0] && _ <= B.row[1] && d >= B.column[0] && d <= B.column[1]) {
|
|
26459
26460
|
k.push({ row: [_, _], column: [C, C] });
|
|
26460
26461
|
break;
|
|
@@ -26519,8 +26520,8 @@ function U0(e) {
|
|
|
26519
26520
|
for (let N = 0; N < w.length; N += 1) {
|
|
26520
26521
|
const k = w[N].cellrange;
|
|
26521
26522
|
if (k)
|
|
26522
|
-
for (let
|
|
26523
|
-
const B = k[
|
|
26523
|
+
for (let R = 0; R < k.length; R += 1) {
|
|
26524
|
+
const B = k[R];
|
|
26524
26525
|
if (_ >= B.row[0] && _ <= B.row[1] && T >= B.column[0] && T <= B.column[1]) {
|
|
26525
26526
|
k.push({ row: [c, c], column: [d, d] });
|
|
26526
26527
|
break;
|
|
@@ -26560,8 +26561,8 @@ function U0(e) {
|
|
|
26560
26561
|
for (let N = 0; N < w.length; N += 1) {
|
|
26561
26562
|
const k = w[N].cellrange;
|
|
26562
26563
|
if (k)
|
|
26563
|
-
for (let
|
|
26564
|
-
const B = k[
|
|
26564
|
+
for (let R = 0; R < k.length; R += 1) {
|
|
26565
|
+
const B = k[R];
|
|
26565
26566
|
if (c >= B.row[0] && c <= B.row[1] && _ >= B.column[0] && _ <= B.column[1]) {
|
|
26566
26567
|
k.push({ row: [C, C], column: [_, _] });
|
|
26567
26568
|
break;
|
|
@@ -26784,12 +26785,12 @@ function K0(e) {
|
|
|
26784
26785
|
const t = e.luckysheet_select_save;
|
|
26785
26786
|
let n = 0, r = 0, a = 0, l = -1 / 0, o = 1 / 0;
|
|
26786
26787
|
for (let k = 0; k < t.length; k += 1) {
|
|
26787
|
-
const
|
|
26788
|
-
for (let B = 0; B <
|
|
26789
|
-
for (let V = 0; V <
|
|
26790
|
-
const Q = (u = (s =
|
|
26791
|
-
let q = (c =
|
|
26792
|
-
if ((m = (d = (f =
|
|
26788
|
+
const R = pg(e, t[k]);
|
|
26789
|
+
for (let B = 0; B < R.length; B += 1)
|
|
26790
|
+
for (let V = 0; V < R[0].length && !(B >= R.length || V >= R[0].length); V += 1) {
|
|
26791
|
+
const Q = (u = (s = R[B][V]) == null ? void 0 : s.ct) == null ? void 0 : u.t;
|
|
26792
|
+
let q = (c = R[B][V]) == null ? void 0 : c.m;
|
|
26793
|
+
if ((m = (d = (f = R[B][V]) == null ? void 0 : f.ct) == null ? void 0 : d.fa) != null && m.includes("#,##0") && (q = (h = R[B][V]) == null ? void 0 : h.v), ((y = (g = R[B][V]) == null ? void 0 : g.ct) == null ? void 0 : y.t) === "inlineStr" && (q == null || q === "") && ((w = (b = R[B][V]) == null ? void 0 : b.ct) != null && w.s) && !((T = (_ = (v = R[B][V]) == null ? void 0 : v.ct) == null ? void 0 : _.s[0]) != null && T.v.includes("\r")) && (q = (S = ($ = (C = R[B][V]) == null ? void 0 : C.ct) == null ? void 0 : $.s[0]) == null ? void 0 : S.v), Q === "n" || Q === "g" && parseFloat(q).toString() !== "NaN" || Q === "inlineStr" && parseFloat(q).toString() !== "NaN") {
|
|
26793
26794
|
const X = ((N = String(q)) == null ? void 0 : N.replace(/,/g, "")) || "0", W = parseFloat(X);
|
|
26794
26795
|
r += 1, a += W, l = Math.max(W, l), o = Math.min(W, o), n += 1;
|
|
26795
26796
|
} else q != null && (r += 1);
|
|
@@ -27216,7 +27217,7 @@ function la(e, t) {
|
|
|
27216
27217
|
}), mu.set(e, n)), n.get(t) ?? hu;
|
|
27217
27218
|
}
|
|
27218
27219
|
function Qo(e, t, n, r, a, l) {
|
|
27219
|
-
var f, d, m, h, g, y, b, w, v, _, T, C, $, S, N, k,
|
|
27220
|
+
var f, d, m, h, g, y, b, w, v, _, T, C, $, S, N, k, R, B, V, Q, q, X, W, Y, x, pe, he, J, z, G, fe, Te, D, E, U, Ce, H, Ee, j, ee, O, ne, re, F, te, le, ue, we, se, Z, qe, De, Fe, _e, I, L, ye, ae, P, K, ie, de, ve, Ne, be, Se, Be, Me, xe, lt, Le, Pe, We, nt, Ye, et, fn, bn, an, Yl, Vl, Gl, jl, Xl, Zl, Kl, Ql, Jl, ei, ti, ni, ri, ai, oi, li, ii, si, ui, ci, fi, di, mi, hi, pi, gi, yi, bi, wi, vi, _i, Ti, Ci, $i, Ni, Si, ki, Ai, Ei, Ri, Mi, Ii, qi, Di, xi, Oi, Fi, Li, Bi, Pi, Hi, Ui, zi, Wi, Yi, Vi, Gi, ji, Xi, Zi, Ki, Qi, Ji, es, ts, ns, rs, as, os, ls, is, ss, us, cs, fs, ds, ms, hs, ps, gs, ys, bs;
|
|
27220
27221
|
const o = {}, i = Ae(e);
|
|
27221
27222
|
let s, u;
|
|
27222
27223
|
if (!l)
|
|
@@ -27238,9 +27239,9 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27238
27239
|
for (let Ue = 0; Ue < He.length; Ue += 1) {
|
|
27239
27240
|
let Re = He[Ue].row[0], Oe = He[Ue].row[1], Ve = He[Ue].column[0], Xe = He[Ue].column[1];
|
|
27240
27241
|
if (Re < t && (Re = t), Oe > n && (Oe = n), Ve < r && (Ve = r), Xe > a && (Xe = a), Ie === "border-slash") {
|
|
27241
|
-
const A = He[0].row_focus,
|
|
27242
|
-
if (!p.isNil(s.rowhidden) && !p.isNil(s.rowhidden[A]) ||
|
|
27243
|
-
o[`${A}_${
|
|
27242
|
+
const A = He[0].row_focus, M = He[0].column_focus;
|
|
27243
|
+
if (!p.isNil(s.rowhidden) && !p.isNil(s.rowhidden[A]) || M < r || M > a || A < t || A > n) continue;
|
|
27244
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].s = {
|
|
27244
27245
|
color: me,
|
|
27245
27246
|
style: ge
|
|
27246
27247
|
};
|
|
@@ -27253,16 +27254,16 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27253
27254
|
color: me,
|
|
27254
27255
|
style: ge
|
|
27255
27256
|
};
|
|
27256
|
-
const
|
|
27257
|
-
if (
|
|
27258
|
-
if (p.isNil((d = (f = u[A]) == null ? void 0 : f[
|
|
27259
|
-
o[`${A}_${
|
|
27257
|
+
const M = Ve - 1;
|
|
27258
|
+
if (M >= 0 && o[`${A}_${M}`])
|
|
27259
|
+
if (p.isNil((d = (f = u[A]) == null ? void 0 : f[M]) == null ? void 0 : d.mc))
|
|
27260
|
+
o[`${A}_${M}`].r = {
|
|
27260
27261
|
color: me,
|
|
27261
27262
|
style: ge
|
|
27262
27263
|
};
|
|
27263
27264
|
else {
|
|
27264
|
-
const oe = u[A][
|
|
27265
|
-
ce && ce.c + ce.cs - 1 ===
|
|
27265
|
+
const oe = u[A][M], ce = (g = s.merge) == null ? void 0 : g[`${(m = oe == null ? void 0 : oe.mc) == null ? void 0 : m.r}_${(h = oe == null ? void 0 : oe.mc) == null ? void 0 : h.c}`];
|
|
27266
|
+
ce && ce.c + ce.cs - 1 === M && (o[`${A}_${M}`].r = {
|
|
27266
27267
|
color: me,
|
|
27267
27268
|
style: ge
|
|
27268
27269
|
});
|
|
@@ -27279,16 +27280,16 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27279
27280
|
color: me,
|
|
27280
27281
|
style: ge
|
|
27281
27282
|
};
|
|
27282
|
-
const
|
|
27283
|
-
if (
|
|
27284
|
-
if (p.isNil((b = (y = u[A]) == null ? void 0 : y[
|
|
27285
|
-
o[`${A}_${
|
|
27283
|
+
const M = Xe + 1;
|
|
27284
|
+
if (M < u[0].length && o[`${A}_${M}`])
|
|
27285
|
+
if (p.isNil((b = (y = u[A]) == null ? void 0 : y[M]) == null ? void 0 : b.mc))
|
|
27286
|
+
o[`${A}_${M}`].l = {
|
|
27286
27287
|
color: me,
|
|
27287
27288
|
style: ge
|
|
27288
27289
|
};
|
|
27289
27290
|
else {
|
|
27290
|
-
const oe = u[A][
|
|
27291
|
-
ce && ce.c ===
|
|
27291
|
+
const oe = u[A][M], ce = (_ = s.merge) == null ? void 0 : _[`${(w = oe == null ? void 0 : oe.mc) == null ? void 0 : w.r}_${(v = oe == null ? void 0 : oe.mc) == null ? void 0 : v.c}`];
|
|
27292
|
+
ce && ce.c === M && (o[`${A}_${M}`].l = {
|
|
27292
27293
|
color: me,
|
|
27293
27294
|
style: ge
|
|
27294
27295
|
});
|
|
@@ -27305,16 +27306,16 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27305
27306
|
color: me,
|
|
27306
27307
|
style: ge
|
|
27307
27308
|
};
|
|
27308
|
-
const
|
|
27309
|
-
if (
|
|
27310
|
-
if (p.isNil((C = (T = u[
|
|
27311
|
-
o[`${
|
|
27309
|
+
const M = Re - 1;
|
|
27310
|
+
if (M >= 0 && o[`${M}_${A}`])
|
|
27311
|
+
if (p.isNil((C = (T = u[M]) == null ? void 0 : T[A]) == null ? void 0 : C.mc))
|
|
27312
|
+
o[`${M}_${A}`].b = {
|
|
27312
27313
|
color: me,
|
|
27313
27314
|
style: ge
|
|
27314
27315
|
};
|
|
27315
27316
|
else {
|
|
27316
|
-
const oe = u[
|
|
27317
|
-
ce && ce.r + ce.rs - 1 ===
|
|
27317
|
+
const oe = u[M][A], ce = (N = s.merge) == null ? void 0 : N[`${($ = oe == null ? void 0 : oe.mc) == null ? void 0 : $.r}_${(S = oe == null ? void 0 : oe.mc) == null ? void 0 : S.c}`];
|
|
27318
|
+
ce && ce.r + ce.rs - 1 === M && (o[`${M}_${A}`].b = {
|
|
27318
27319
|
color: me,
|
|
27319
27320
|
style: ge
|
|
27320
27321
|
});
|
|
@@ -27331,16 +27332,16 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27331
27332
|
color: me,
|
|
27332
27333
|
style: ge
|
|
27333
27334
|
};
|
|
27334
|
-
const
|
|
27335
|
-
if (
|
|
27336
|
-
if (p.isNil((
|
|
27337
|
-
o[`${
|
|
27335
|
+
const M = Oe + 1;
|
|
27336
|
+
if (M < u.length && o[`${M}_${A}`])
|
|
27337
|
+
if (p.isNil((R = (k = u[M]) == null ? void 0 : k[A]) == null ? void 0 : R.mc))
|
|
27338
|
+
o[`${M}_${A}`].t = {
|
|
27338
27339
|
color: me,
|
|
27339
27340
|
style: ge
|
|
27340
27341
|
};
|
|
27341
27342
|
else {
|
|
27342
|
-
const oe = u[
|
|
27343
|
-
(ce == null ? void 0 : ce.r) ===
|
|
27343
|
+
const oe = u[M][A], ce = (Q = s.merge) == null ? void 0 : Q[`${(B = oe == null ? void 0 : oe.mc) == null ? void 0 : B.r}_${(V = oe == null ? void 0 : oe.mc) == null ? void 0 : V.c}`];
|
|
27344
|
+
(ce == null ? void 0 : ce.r) === M && (o[`${M}_${A}`].t = {
|
|
27344
27345
|
color: me,
|
|
27345
27346
|
style: ge
|
|
27346
27347
|
});
|
|
@@ -27352,48 +27353,48 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27352
27353
|
} else if (Ie === "border-all") {
|
|
27353
27354
|
for (let A = Re; A <= Oe; A += 1)
|
|
27354
27355
|
if (!(!p.isNil(s.rowhidden) && !p.isNil(s.rowhidden[A])))
|
|
27355
|
-
for (let
|
|
27356
|
-
if (p.isNil((X = (q = u[A]) == null ? void 0 : q[
|
|
27357
|
-
o[`${A}_${
|
|
27356
|
+
for (let M = Ve; M <= Xe; M += 1) {
|
|
27357
|
+
if (p.isNil((X = (q = u[A]) == null ? void 0 : q[M]) == null ? void 0 : X.mc))
|
|
27358
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27358
27359
|
color: me,
|
|
27359
27360
|
style: ge
|
|
27360
|
-
}, o[`${A}_${
|
|
27361
|
+
}, o[`${A}_${M}`].r = {
|
|
27361
27362
|
color: me,
|
|
27362
27363
|
style: ge
|
|
27363
|
-
}, o[`${A}_${
|
|
27364
|
+
}, o[`${A}_${M}`].t = {
|
|
27364
27365
|
color: me,
|
|
27365
27366
|
style: ge
|
|
27366
|
-
}, o[`${A}_${
|
|
27367
|
+
}, o[`${A}_${M}`].b = {
|
|
27367
27368
|
color: me,
|
|
27368
27369
|
style: ge
|
|
27369
27370
|
};
|
|
27370
27371
|
else {
|
|
27371
|
-
const oe = u[A][
|
|
27372
|
-
(ce == null ? void 0 : ce.r) === A && (o[`${A}_${
|
|
27372
|
+
const oe = u[A][M], ce = (x = s.merge) == null ? void 0 : x[`${(W = oe == null ? void 0 : oe.mc) == null ? void 0 : W.r}_${(Y = oe == null ? void 0 : oe.mc) == null ? void 0 : Y.c}`];
|
|
27373
|
+
(ce == null ? void 0 : ce.r) === A && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].t = {
|
|
27373
27374
|
color: me,
|
|
27374
27375
|
style: ge
|
|
27375
|
-
}), ce && ce.r + ce.rs - 1 === A && (o[`${A}_${
|
|
27376
|
+
}), ce && ce.r + ce.rs - 1 === A && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].b = {
|
|
27376
27377
|
color: me,
|
|
27377
27378
|
style: ge
|
|
27378
|
-
}), (ce == null ? void 0 : ce.c) ===
|
|
27379
|
+
}), (ce == null ? void 0 : ce.c) === M && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27379
27380
|
color: me,
|
|
27380
27381
|
style: ge
|
|
27381
|
-
}), ce && ce.c + ce.cs - 1 ===
|
|
27382
|
+
}), ce && ce.c + ce.cs - 1 === M && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].r = {
|
|
27382
27383
|
color: me,
|
|
27383
27384
|
style: ge
|
|
27384
27385
|
});
|
|
27385
27386
|
}
|
|
27386
27387
|
if (A === Re) {
|
|
27387
27388
|
const oe = Re - 1;
|
|
27388
|
-
if (oe >= 0 && o[`${oe}_${
|
|
27389
|
-
if (p.isNil((he = (pe = u[oe]) == null ? void 0 : pe[
|
|
27390
|
-
o[`${oe}_${
|
|
27389
|
+
if (oe >= 0 && o[`${oe}_${M}`])
|
|
27390
|
+
if (p.isNil((he = (pe = u[oe]) == null ? void 0 : pe[M]) == null ? void 0 : he.mc))
|
|
27391
|
+
o[`${oe}_${M}`].b = {
|
|
27391
27392
|
color: me,
|
|
27392
27393
|
style: ge
|
|
27393
27394
|
};
|
|
27394
27395
|
else {
|
|
27395
|
-
const ce = u[oe][
|
|
27396
|
-
je && je.r + je.rs - 1 === oe && (o[`${oe}_${
|
|
27396
|
+
const ce = u[oe][M], je = (G = s.merge) == null ? void 0 : G[`${(J = ce == null ? void 0 : ce.mc) == null ? void 0 : J.r}_${(z = ce == null ? void 0 : ce.mc) == null ? void 0 : z.c}`];
|
|
27397
|
+
je && je.r + je.rs - 1 === oe && (o[`${oe}_${M}`].b = {
|
|
27397
27398
|
color: me,
|
|
27398
27399
|
style: ge
|
|
27399
27400
|
});
|
|
@@ -27401,21 +27402,21 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27401
27402
|
}
|
|
27402
27403
|
if (A === Oe) {
|
|
27403
27404
|
const oe = Oe + 1;
|
|
27404
|
-
if (oe < u.length && o[`${oe}_${
|
|
27405
|
-
if (p.isNil((Te = (fe = u[oe]) == null ? void 0 : fe[
|
|
27406
|
-
o[`${oe}_${
|
|
27405
|
+
if (oe < u.length && o[`${oe}_${M}`])
|
|
27406
|
+
if (p.isNil((Te = (fe = u[oe]) == null ? void 0 : fe[M]) == null ? void 0 : Te.mc))
|
|
27407
|
+
o[`${oe}_${M}`].t = {
|
|
27407
27408
|
color: me,
|
|
27408
27409
|
style: ge
|
|
27409
27410
|
};
|
|
27410
27411
|
else {
|
|
27411
|
-
const ce = u[oe][
|
|
27412
|
-
(je == null ? void 0 : je.r) === oe && (o[`${oe}_${
|
|
27412
|
+
const ce = u[oe][M], je = (U = s.merge) == null ? void 0 : U[`${(D = ce == null ? void 0 : ce.mc) == null ? void 0 : D.r}_${(E = ce == null ? void 0 : ce.mc) == null ? void 0 : E.c}`];
|
|
27413
|
+
(je == null ? void 0 : je.r) === oe && (o[`${oe}_${M}`].t = {
|
|
27413
27414
|
color: me,
|
|
27414
27415
|
style: ge
|
|
27415
27416
|
});
|
|
27416
27417
|
}
|
|
27417
27418
|
}
|
|
27418
|
-
if (
|
|
27419
|
+
if (M === Ve) {
|
|
27419
27420
|
const oe = Ve - 1;
|
|
27420
27421
|
if (oe >= 0 && o[`${A}_${oe}`])
|
|
27421
27422
|
if (p.isNil((H = (Ce = u[A]) == null ? void 0 : Ce[oe]) == null ? void 0 : H.mc))
|
|
@@ -27431,7 +27432,7 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27431
27432
|
});
|
|
27432
27433
|
}
|
|
27433
27434
|
}
|
|
27434
|
-
if (
|
|
27435
|
+
if (M === Xe) {
|
|
27435
27436
|
const oe = Xe + 1;
|
|
27436
27437
|
if (oe < u[0].length && o[`${A}_${oe}`])
|
|
27437
27438
|
if (p.isNil((ne = (O = u[A]) == null ? void 0 : O[oe]) == null ? void 0 : ne.mc))
|
|
@@ -27451,50 +27452,50 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27451
27452
|
} else if (Ie === "border-outside") {
|
|
27452
27453
|
for (let A = Re; A <= Oe; A += 1)
|
|
27453
27454
|
if (!(!p.isNil(s.rowhidden) && !p.isNil(s.rowhidden[A]))) {
|
|
27454
|
-
for (let
|
|
27455
|
-
if (A === Re || A === Oe ||
|
|
27455
|
+
for (let M = Ve; M <= Xe; M += 1)
|
|
27456
|
+
if (A === Re || A === Oe || M === Ve || M === Xe) {
|
|
27456
27457
|
if (A === Re) {
|
|
27457
|
-
o[`${A}_${
|
|
27458
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].t = {
|
|
27458
27459
|
color: me,
|
|
27459
27460
|
style: ge
|
|
27460
27461
|
};
|
|
27461
27462
|
const oe = Re - 1;
|
|
27462
|
-
if (oe >= 0 && o[`${oe}_${
|
|
27463
|
-
if (p.isNil((ue = (le = u[oe]) == null ? void 0 : le[
|
|
27464
|
-
o[`${oe}_${
|
|
27463
|
+
if (oe >= 0 && o[`${oe}_${M}`])
|
|
27464
|
+
if (p.isNil((ue = (le = u[oe]) == null ? void 0 : le[M]) == null ? void 0 : ue.mc))
|
|
27465
|
+
o[`${oe}_${M}`].b = {
|
|
27465
27466
|
color: me,
|
|
27466
27467
|
style: ge
|
|
27467
27468
|
};
|
|
27468
27469
|
else {
|
|
27469
|
-
const ce = u[oe][
|
|
27470
|
-
je && je.r + je.rs - 1 === oe && (o[`${oe}_${
|
|
27470
|
+
const ce = u[oe][M], je = (Z = s.merge) == null ? void 0 : Z[`${(we = ce == null ? void 0 : ce.mc) == null ? void 0 : we.r}_${(se = ce == null ? void 0 : ce.mc) == null ? void 0 : se.c}`];
|
|
27471
|
+
je && je.r + je.rs - 1 === oe && (o[`${oe}_${M}`].b = {
|
|
27471
27472
|
color: me,
|
|
27472
27473
|
style: ge
|
|
27473
27474
|
});
|
|
27474
27475
|
}
|
|
27475
27476
|
}
|
|
27476
27477
|
if (A === Oe) {
|
|
27477
|
-
o[`${A}_${
|
|
27478
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].b = {
|
|
27478
27479
|
color: me,
|
|
27479
27480
|
style: ge
|
|
27480
27481
|
};
|
|
27481
27482
|
const oe = Oe + 1;
|
|
27482
|
-
if (oe < u.length && o[`${oe}_${
|
|
27483
|
-
if (p.isNil((De = (qe = u[oe]) == null ? void 0 : qe[
|
|
27484
|
-
o[`${oe}_${
|
|
27483
|
+
if (oe < u.length && o[`${oe}_${M}`])
|
|
27484
|
+
if (p.isNil((De = (qe = u[oe]) == null ? void 0 : qe[M]) == null ? void 0 : De.mc))
|
|
27485
|
+
o[`${oe}_${M}`].t = {
|
|
27485
27486
|
color: me,
|
|
27486
27487
|
style: ge
|
|
27487
27488
|
};
|
|
27488
27489
|
else {
|
|
27489
|
-
const ce = u[oe][
|
|
27490
|
-
(je == null ? void 0 : je.r) === oe && (o[`${oe}_${
|
|
27490
|
+
const ce = u[oe][M], je = (I = s.merge) == null ? void 0 : I[`${(Fe = ce == null ? void 0 : ce.mc) == null ? void 0 : Fe.r}_${(_e = ce == null ? void 0 : ce.mc) == null ? void 0 : _e.c}`];
|
|
27491
|
+
(je == null ? void 0 : je.r) === oe && (o[`${oe}_${M}`].t = {
|
|
27491
27492
|
color: me,
|
|
27492
27493
|
style: ge
|
|
27493
27494
|
});
|
|
27494
27495
|
}
|
|
27495
27496
|
}
|
|
27496
|
-
if (
|
|
27497
|
-
o[`${A}_${
|
|
27497
|
+
if (M === Ve) {
|
|
27498
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27498
27499
|
color: me,
|
|
27499
27500
|
style: ge
|
|
27500
27501
|
};
|
|
@@ -27513,8 +27514,8 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27513
27514
|
});
|
|
27514
27515
|
}
|
|
27515
27516
|
}
|
|
27516
|
-
if (
|
|
27517
|
-
o[`${A}_${
|
|
27517
|
+
if (M === Xe) {
|
|
27518
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].r = {
|
|
27518
27519
|
color: me,
|
|
27519
27520
|
style: ge
|
|
27520
27521
|
};
|
|
@@ -27538,153 +27539,153 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27538
27539
|
} else if (Ie === "border-inside") {
|
|
27539
27540
|
for (let A = Re; A <= Oe; A += 1)
|
|
27540
27541
|
if (!(!p.isNil(s.rowhidden) && !p.isNil(s.rowhidden[A])))
|
|
27541
|
-
for (let
|
|
27542
|
-
if (A === Re &&
|
|
27543
|
-
p.isNil((Be = (Se = u[A]) == null ? void 0 : Se[
|
|
27542
|
+
for (let M = Ve; M <= Xe; M += 1)
|
|
27543
|
+
if (A === Re && M === Ve)
|
|
27544
|
+
p.isNil((Be = (Se = u[A]) == null ? void 0 : Se[M]) == null ? void 0 : Be.mc) && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), !A === Oe && (o[`${A}_${M}`].r = {
|
|
27544
27545
|
color: me,
|
|
27545
27546
|
style: ge
|
|
27546
|
-
}), !
|
|
27547
|
+
}), !M === Xe && (o[`${A}_${M}`].b = {
|
|
27547
27548
|
color: me,
|
|
27548
27549
|
style: ge
|
|
27549
27550
|
}));
|
|
27550
|
-
else if (A === Oe &&
|
|
27551
|
-
p.isNil((xe = (Me = u[A]) == null ? void 0 : Me[
|
|
27551
|
+
else if (A === Oe && M === Ve)
|
|
27552
|
+
p.isNil((xe = (Me = u[A]) == null ? void 0 : Me[M]) == null ? void 0 : xe.mc) && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), !A === Oe && (o[`${A}_${M}`].r = {
|
|
27552
27553
|
color: me,
|
|
27553
27554
|
style: ge
|
|
27554
|
-
}), o[`${A}_${
|
|
27555
|
+
}), o[`${A}_${M}`].t = {
|
|
27555
27556
|
color: me,
|
|
27556
27557
|
style: ge
|
|
27557
27558
|
});
|
|
27558
|
-
else if (A === Re &&
|
|
27559
|
-
p.isNil((Le = (lt = u[A]) == null ? void 0 : lt[
|
|
27559
|
+
else if (A === Re && M === Xe)
|
|
27560
|
+
p.isNil((Le = (lt = u[A]) == null ? void 0 : lt[M]) == null ? void 0 : Le.mc) && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27560
27561
|
color: me,
|
|
27561
27562
|
style: ge
|
|
27562
|
-
}, !
|
|
27563
|
+
}, !M === Xe && (o[`${A}_${M}`].b = {
|
|
27563
27564
|
color: me,
|
|
27564
27565
|
style: ge
|
|
27565
27566
|
}));
|
|
27566
|
-
else if (A === Oe &&
|
|
27567
|
-
p.isNil((We = (Pe = u[A]) == null ? void 0 : Pe[
|
|
27567
|
+
else if (A === Oe && M === Xe)
|
|
27568
|
+
p.isNil((We = (Pe = u[A]) == null ? void 0 : Pe[M]) == null ? void 0 : We.mc) && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27568
27569
|
color: me,
|
|
27569
27570
|
style: ge
|
|
27570
|
-
}, o[`${A}_${
|
|
27571
|
+
}, o[`${A}_${M}`].t = {
|
|
27571
27572
|
color: me,
|
|
27572
27573
|
style: ge
|
|
27573
27574
|
});
|
|
27574
27575
|
else if (A === Re)
|
|
27575
|
-
if (p.isNil((Ye = (nt = u[A]) == null ? void 0 : nt[
|
|
27576
|
-
o[`${A}_${
|
|
27576
|
+
if (p.isNil((Ye = (nt = u[A]) == null ? void 0 : nt[M]) == null ? void 0 : Ye.mc))
|
|
27577
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27577
27578
|
color: me,
|
|
27578
27579
|
style: ge
|
|
27579
|
-
}, !A === Oe && (o[`${A}_${
|
|
27580
|
+
}, !A === Oe && (o[`${A}_${M}`].r = {
|
|
27580
27581
|
color: me,
|
|
27581
27582
|
style: ge
|
|
27582
|
-
}), !
|
|
27583
|
+
}), !M === Xe && (o[`${A}_${M}`].b = {
|
|
27583
27584
|
color: me,
|
|
27584
27585
|
style: ge
|
|
27585
27586
|
});
|
|
27586
27587
|
else {
|
|
27587
|
-
const oe = u[A][
|
|
27588
|
-
(ce == null ? void 0 : ce.c) ===
|
|
27588
|
+
const oe = u[A][M], ce = (bn = s.merge) == null ? void 0 : bn[`${(et = oe == null ? void 0 : oe.mc) == null ? void 0 : et.r}_${(fn = oe == null ? void 0 : oe.mc) == null ? void 0 : fn.c}`];
|
|
27589
|
+
(ce == null ? void 0 : ce.c) === M ? (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27589
27590
|
color: me,
|
|
27590
27591
|
style: ge
|
|
27591
|
-
}) : ce && ce.c + ce.cs - 1 ===
|
|
27592
|
+
}) : ce && ce.c + ce.cs - 1 === M && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), !A === Oe && (o[`${A}_${M}`].r = {
|
|
27592
27593
|
color: me,
|
|
27593
27594
|
style: ge
|
|
27594
27595
|
}));
|
|
27595
27596
|
}
|
|
27596
27597
|
else if (A === Oe)
|
|
27597
|
-
if (p.isNil((Yl = (an = u[A]) == null ? void 0 : an[
|
|
27598
|
-
o[`${A}_${
|
|
27598
|
+
if (p.isNil((Yl = (an = u[A]) == null ? void 0 : an[M]) == null ? void 0 : Yl.mc))
|
|
27599
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27599
27600
|
color: me,
|
|
27600
27601
|
style: ge
|
|
27601
|
-
}, !A === Oe && (o[`${A}_${
|
|
27602
|
+
}, !A === Oe && (o[`${A}_${M}`].r = {
|
|
27602
27603
|
color: me,
|
|
27603
27604
|
style: ge
|
|
27604
|
-
}), o[`${A}_${
|
|
27605
|
+
}), o[`${A}_${M}`].t = {
|
|
27605
27606
|
color: me,
|
|
27606
27607
|
style: ge
|
|
27607
27608
|
};
|
|
27608
27609
|
else {
|
|
27609
|
-
const oe = u[A][
|
|
27610
|
-
(ce == null ? void 0 : ce.c) ===
|
|
27610
|
+
const oe = u[A][M], ce = (jl = s.merge) == null ? void 0 : jl[`${(Vl = oe == null ? void 0 : oe.mc) == null ? void 0 : Vl.r}_${(Gl = oe == null ? void 0 : oe.mc) == null ? void 0 : Gl.c}`];
|
|
27611
|
+
(ce == null ? void 0 : ce.c) === M ? (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27611
27612
|
color: me,
|
|
27612
27613
|
style: ge
|
|
27613
|
-
}) : ce && ce.c + ce.cs - 1 ===
|
|
27614
|
+
}) : ce && ce.c + ce.cs - 1 === M && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), !A === Oe && (o[`${A}_${M}`].r = {
|
|
27614
27615
|
color: me,
|
|
27615
27616
|
style: ge
|
|
27616
27617
|
}));
|
|
27617
27618
|
}
|
|
27618
|
-
else if (
|
|
27619
|
-
if (p.isNil((Zl = (Xl = u[A]) == null ? void 0 : Xl[
|
|
27620
|
-
o[`${A}_${
|
|
27619
|
+
else if (M === Ve)
|
|
27620
|
+
if (p.isNil((Zl = (Xl = u[A]) == null ? void 0 : Xl[M]) == null ? void 0 : Zl.mc))
|
|
27621
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), !A === Oe && (o[`${A}_${M}`].r = {
|
|
27621
27622
|
color: me,
|
|
27622
27623
|
style: ge
|
|
27623
|
-
}), o[`${A}_${
|
|
27624
|
+
}), o[`${A}_${M}`].t = {
|
|
27624
27625
|
color: me,
|
|
27625
27626
|
style: ge
|
|
27626
|
-
}, !
|
|
27627
|
+
}, !M === Xe && (o[`${A}_${M}`].b = {
|
|
27627
27628
|
color: me,
|
|
27628
27629
|
style: ge
|
|
27629
27630
|
});
|
|
27630
27631
|
else {
|
|
27631
|
-
const oe = u[A][
|
|
27632
|
-
(ce == null ? void 0 : ce.r) === A ? (o[`${A}_${
|
|
27632
|
+
const oe = u[A][M], ce = (Jl = s.merge) == null ? void 0 : Jl[`${(Kl = oe == null ? void 0 : oe.mc) == null ? void 0 : Kl.r}_${(Ql = oe == null ? void 0 : oe.mc) == null ? void 0 : Ql.c}`];
|
|
27633
|
+
(ce == null ? void 0 : ce.r) === A ? (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].t = {
|
|
27633
27634
|
color: me,
|
|
27634
27635
|
style: ge
|
|
27635
|
-
}) : ce && ce.r + ce.rs - 1 === A && (o[`${A}_${
|
|
27636
|
+
}) : ce && ce.r + ce.rs - 1 === A && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), !M === Xe && (o[`${A}_${M}`].b = {
|
|
27636
27637
|
color: me,
|
|
27637
27638
|
style: ge
|
|
27638
27639
|
}));
|
|
27639
27640
|
}
|
|
27640
|
-
else if (
|
|
27641
|
-
if (p.isNil((ti = (ei = u[A]) == null ? void 0 : ei[
|
|
27642
|
-
o[`${A}_${
|
|
27641
|
+
else if (M === Xe)
|
|
27642
|
+
if (p.isNil((ti = (ei = u[A]) == null ? void 0 : ei[M]) == null ? void 0 : ti.mc))
|
|
27643
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27643
27644
|
color: me,
|
|
27644
27645
|
style: ge
|
|
27645
|
-
}, o[`${A}_${
|
|
27646
|
+
}, o[`${A}_${M}`].t = {
|
|
27646
27647
|
color: me,
|
|
27647
27648
|
style: ge
|
|
27648
|
-
}, !
|
|
27649
|
+
}, !M === Xe && (o[`${A}_${M}`].b = {
|
|
27649
27650
|
color: me,
|
|
27650
27651
|
style: ge
|
|
27651
27652
|
});
|
|
27652
27653
|
else {
|
|
27653
|
-
const oe = u[A][
|
|
27654
|
-
(ce == null ? void 0 : ce.r) === A ? (o[`${A}_${
|
|
27654
|
+
const oe = u[A][M], ce = (ai = s.merge) == null ? void 0 : ai[`${(ni = oe == null ? void 0 : oe.mc) == null ? void 0 : ni.r}_${(ri = oe == null ? void 0 : oe.mc) == null ? void 0 : ri.c}`];
|
|
27655
|
+
(ce == null ? void 0 : ce.r) === A ? (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].t = {
|
|
27655
27656
|
color: me,
|
|
27656
27657
|
style: ge
|
|
27657
|
-
}) : ce && ce.r + ce.rs - 1 === A && (o[`${A}_${
|
|
27658
|
+
}) : ce && ce.r + ce.rs - 1 === A && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), !M === Xe && (o[`${A}_${M}`].b = {
|
|
27658
27659
|
color: me,
|
|
27659
27660
|
style: ge
|
|
27660
27661
|
}));
|
|
27661
27662
|
}
|
|
27662
|
-
else if (p.isNil((li = (oi = u[A]) == null ? void 0 : oi[
|
|
27663
|
-
o[`${A}_${
|
|
27663
|
+
else if (p.isNil((li = (oi = u[A]) == null ? void 0 : oi[M]) == null ? void 0 : li.mc))
|
|
27664
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27664
27665
|
color: me,
|
|
27665
27666
|
style: ge
|
|
27666
|
-
}, !A === Oe && (o[`${A}_${
|
|
27667
|
+
}, !A === Oe && (o[`${A}_${M}`].r = {
|
|
27667
27668
|
color: me,
|
|
27668
27669
|
style: ge
|
|
27669
|
-
}), o[`${A}_${
|
|
27670
|
+
}), o[`${A}_${M}`].t = {
|
|
27670
27671
|
color: me,
|
|
27671
27672
|
style: ge
|
|
27672
|
-
}, !
|
|
27673
|
+
}, !M === Xe && (o[`${A}_${M}`].b = {
|
|
27673
27674
|
color: me,
|
|
27674
27675
|
style: ge
|
|
27675
27676
|
});
|
|
27676
27677
|
else {
|
|
27677
|
-
const oe = u[A][
|
|
27678
|
-
(ce == null ? void 0 : ce.r) === A ? (o[`${A}_${
|
|
27678
|
+
const oe = u[A][M], ce = (ui = s.merge) == null ? void 0 : ui[`${(ii = oe == null ? void 0 : oe.mc) == null ? void 0 : ii.r}_${(si = oe == null ? void 0 : oe.mc) == null ? void 0 : si.c}`];
|
|
27679
|
+
(ce == null ? void 0 : ce.r) === A ? (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].t = {
|
|
27679
27680
|
color: me,
|
|
27680
27681
|
style: ge
|
|
27681
|
-
}) : ce && ce.r + ce.rs - 1 === A && (o[`${A}_${
|
|
27682
|
+
}) : ce && ce.r + ce.rs - 1 === A && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), !M === Xe && (o[`${A}_${M}`].b = {
|
|
27682
27683
|
color: me,
|
|
27683
27684
|
style: ge
|
|
27684
|
-
})), (ce == null ? void 0 : ce.c) ===
|
|
27685
|
+
})), (ce == null ? void 0 : ce.c) === M ? (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27685
27686
|
color: me,
|
|
27686
27687
|
style: ge
|
|
27687
|
-
}) : ce && ce.c + ce.cs - 1 ===
|
|
27688
|
+
}) : ce && ce.c + ce.cs - 1 === M && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), !A === Oe && (o[`${A}_${M}`].r = {
|
|
27688
27689
|
color: me,
|
|
27689
27690
|
style: ge
|
|
27690
27691
|
}));
|
|
@@ -27692,31 +27693,31 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27692
27693
|
} else if (Ie === "border-horizontal") {
|
|
27693
27694
|
for (let A = Re; A <= Oe; A += 1)
|
|
27694
27695
|
if (!(!p.isNil(s.rowhidden) && !p.isNil(s.rowhidden[A])))
|
|
27695
|
-
for (let
|
|
27696
|
+
for (let M = Ve; M <= Xe; M += 1)
|
|
27696
27697
|
if (A === Re)
|
|
27697
|
-
p.isNil((fi = (ci = u[A]) == null ? void 0 : ci[
|
|
27698
|
+
p.isNil((fi = (ci = u[A]) == null ? void 0 : ci[M]) == null ? void 0 : fi.mc) && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].b = {
|
|
27698
27699
|
color: me,
|
|
27699
27700
|
style: ge
|
|
27700
27701
|
});
|
|
27701
27702
|
else if (A === Oe)
|
|
27702
|
-
p.isNil((mi = (di = u[A]) == null ? void 0 : di[
|
|
27703
|
+
p.isNil((mi = (di = u[A]) == null ? void 0 : di[M]) == null ? void 0 : mi.mc) && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].t = {
|
|
27703
27704
|
color: me,
|
|
27704
27705
|
style: ge
|
|
27705
27706
|
});
|
|
27706
|
-
else if (p.isNil((pi = (hi = u[A]) == null ? void 0 : hi[
|
|
27707
|
-
o[`${A}_${
|
|
27707
|
+
else if (p.isNil((pi = (hi = u[A]) == null ? void 0 : hi[M]) == null ? void 0 : pi.mc))
|
|
27708
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].t = {
|
|
27708
27709
|
color: me,
|
|
27709
27710
|
style: ge
|
|
27710
|
-
}, o[`${A}_${
|
|
27711
|
+
}, o[`${A}_${M}`].b = {
|
|
27711
27712
|
color: me,
|
|
27712
27713
|
style: ge
|
|
27713
27714
|
};
|
|
27714
27715
|
else {
|
|
27715
|
-
const oe = u[A][
|
|
27716
|
-
(ce == null ? void 0 : ce.r) === A ? (o[`${A}_${
|
|
27716
|
+
const oe = u[A][M], ce = (bi = s.merge) == null ? void 0 : bi[`${(gi = oe == null ? void 0 : oe.mc) == null ? void 0 : gi.r}_${(yi = oe == null ? void 0 : oe.mc) == null ? void 0 : yi.c}`];
|
|
27717
|
+
(ce == null ? void 0 : ce.r) === A ? (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].t = {
|
|
27717
27718
|
color: me,
|
|
27718
27719
|
style: ge
|
|
27719
|
-
}) : ce && ce.r + ce.rs - 1 === A && (o[`${A}_${
|
|
27720
|
+
}) : ce && ce.r + ce.rs - 1 === A && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].b = {
|
|
27720
27721
|
color: me,
|
|
27721
27722
|
style: ge
|
|
27722
27723
|
});
|
|
@@ -27724,31 +27725,31 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27724
27725
|
} else if (Ie === "border-vertical") {
|
|
27725
27726
|
for (let A = Re; A <= Oe; A += 1)
|
|
27726
27727
|
if (!(!p.isNil(s.rowhidden) && !p.isNil(s.rowhidden[A])))
|
|
27727
|
-
for (let
|
|
27728
|
-
if (
|
|
27729
|
-
p.isNil((vi = (wi = u[A]) == null ? void 0 : wi[
|
|
27728
|
+
for (let M = Ve; M <= Xe; M += 1)
|
|
27729
|
+
if (M === Ve)
|
|
27730
|
+
p.isNil((vi = (wi = u[A]) == null ? void 0 : wi[M]) == null ? void 0 : vi.mc) && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].r = {
|
|
27730
27731
|
color: me,
|
|
27731
27732
|
style: ge
|
|
27732
27733
|
});
|
|
27733
|
-
else if (
|
|
27734
|
-
p.isNil((Ti = (_i = u[A]) == null ? void 0 : _i[
|
|
27734
|
+
else if (M === Xe)
|
|
27735
|
+
p.isNil((Ti = (_i = u[A]) == null ? void 0 : _i[M]) == null ? void 0 : Ti.mc) && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27735
27736
|
color: me,
|
|
27736
27737
|
style: ge
|
|
27737
27738
|
});
|
|
27738
|
-
else if (p.isNil(($i = (Ci = u[A]) == null ? void 0 : Ci[
|
|
27739
|
-
o[`${A}_${
|
|
27739
|
+
else if (p.isNil(($i = (Ci = u[A]) == null ? void 0 : Ci[M]) == null ? void 0 : $i.mc))
|
|
27740
|
+
o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27740
27741
|
color: me,
|
|
27741
27742
|
style: ge
|
|
27742
|
-
}, o[`${A}_${
|
|
27743
|
+
}, o[`${A}_${M}`].r = {
|
|
27743
27744
|
color: me,
|
|
27744
27745
|
style: ge
|
|
27745
27746
|
};
|
|
27746
27747
|
else {
|
|
27747
|
-
const oe = u[A][
|
|
27748
|
-
(ce == null ? void 0 : ce.c) ===
|
|
27748
|
+
const oe = u[A][M], ce = (ki = s.merge) == null ? void 0 : ki[`${(Ni = oe == null ? void 0 : oe.mc) == null ? void 0 : Ni.r}_${(Si = oe == null ? void 0 : oe.mc) == null ? void 0 : Si.c}`];
|
|
27749
|
+
(ce == null ? void 0 : ce.c) === M ? (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].l = {
|
|
27749
27750
|
color: me,
|
|
27750
27751
|
style: ge
|
|
27751
|
-
}) : ce && ce.c + ce.cs - 1 ===
|
|
27752
|
+
}) : ce && ce.c + ce.cs - 1 === M && (o[`${A}_${M}`] === void 0 && (o[`${A}_${M}`] = {}), o[`${A}_${M}`].r = {
|
|
27752
27753
|
color: me,
|
|
27753
27754
|
style: ge
|
|
27754
27755
|
});
|
|
@@ -27756,20 +27757,20 @@ function Qo(e, t, n, r, a, l) {
|
|
|
27756
27757
|
} else if (Ie === "border-none") {
|
|
27757
27758
|
for (let A = Re; A <= Oe; A += 1)
|
|
27758
27759
|
if (!(!p.isNil(s.rowhidden) && !p.isNil(s.rowhidden[A])))
|
|
27759
|
-
for (let
|
|
27760
|
-
if (p.isNil(o[`${A}_${
|
|
27760
|
+
for (let M = Ve; M <= Xe; M += 1) {
|
|
27761
|
+
if (p.isNil(o[`${A}_${M}`]) || delete o[`${A}_${M}`], A === Re) {
|
|
27761
27762
|
const oe = Re - 1;
|
|
27762
|
-
oe >= 0 && o[`${oe}_${
|
|
27763
|
+
oe >= 0 && o[`${oe}_${M}`] && delete o[`${oe}_${M}`].b;
|
|
27763
27764
|
}
|
|
27764
27765
|
if (A === Oe) {
|
|
27765
27766
|
const oe = Oe + 1;
|
|
27766
|
-
oe < u.length && o[`${oe}_${
|
|
27767
|
+
oe < u.length && o[`${oe}_${M}`] && delete o[`${oe}_${M}`].t;
|
|
27767
27768
|
}
|
|
27768
|
-
if (
|
|
27769
|
+
if (M === Ve) {
|
|
27769
27770
|
const oe = Ve - 1;
|
|
27770
27771
|
oe >= 0 && o[`${A}_${oe}`] && delete o[`${A}_${oe}`].r;
|
|
27771
27772
|
}
|
|
27772
|
-
if (
|
|
27773
|
+
if (M === Xe) {
|
|
27773
27774
|
const oe = Xe + 1;
|
|
27774
27775
|
oe < u[0].length && o[`${A}_${oe}`] && delete o[`${A}_${oe}`].l;
|
|
27775
27776
|
}
|
|
@@ -28398,11 +28399,11 @@ function xg(e, t, n = !0) {
|
|
|
28398
28399
|
d.name
|
|
28399
28400
|
);
|
|
28400
28401
|
}
|
|
28401
|
-
const { filter_select:
|
|
28402
|
+
const { filter_select: R } = d, { filter: B } = d;
|
|
28402
28403
|
let V = null;
|
|
28403
|
-
if (!p.isEmpty(
|
|
28404
|
+
if (!p.isEmpty(R) && R != null) {
|
|
28404
28405
|
V = { filter_select: null, filter: null };
|
|
28405
|
-
let P =
|
|
28406
|
+
let P = R.row[0], K = R.row[1], ie = R.column[0], de = R.column[1];
|
|
28406
28407
|
l === "row" ? (P < o ? (K === o && i === "lefttop" || K > o) && (K += r) : P === o ? i === "lefttop" ? (P += r, K += r) : i === "rightbottom" && K > o && (K += r) : (P += r, K += r), B != null && (V.filter = {}, p.forEach(B, (ve, Ne) => {
|
|
28407
28408
|
const be = B[Ne].rowhidden, Se = {};
|
|
28408
28409
|
p.forEach(be, (Be, Me) => {
|
|
@@ -29054,10 +29055,10 @@ function hf(e, t) {
|
|
|
29054
29055
|
}
|
|
29055
29056
|
const { frozen: N } = i;
|
|
29056
29057
|
N && (n === "row" && (N.type === "rangeRow" || N.type === "rangeBoth") && (((E = N.range) == null ? void 0 : E.row_focus) ?? -1) >= r && (N.range.row_focus -= Math.min(a, N.range.row_focus) - r + 1), n === "column" && (N.type === "rangeColumn" || N.type === "rangeBoth") && (((U = N.range) == null ? void 0 : U.column_focus) ?? -1) >= r && (N.range.column_focus -= Math.min(a, N.range.column_focus) - r + 1));
|
|
29057
|
-
const { dataVerification: k } = i,
|
|
29058
|
+
const { dataVerification: k } = i, R = {};
|
|
29058
29059
|
k != null && p.forEach(k, (ee, O) => {
|
|
29059
29060
|
const ne = Number(O.split("_")[0]), re = Number(O.split("_")[1]), F = k[O];
|
|
29060
|
-
n === "row" ? ne < r ?
|
|
29061
|
+
n === "row" ? ne < r ? R[`${ne}_${re}`] = F : ne > a && (R[`${ne - f}_${re}`] = F) : n === "column" && (re < r ? R[`${ne}_${re}`] = F : re > a && (R[`${ne}_${re - f}`] = F));
|
|
29061
29062
|
});
|
|
29062
29063
|
const { hyperlink: B } = i, V = {};
|
|
29063
29064
|
if (B != null && p.forEach(B, (ee, O) => {
|
|
@@ -29186,7 +29187,7 @@ function hf(e, t) {
|
|
|
29186
29187
|
c[re].splice(r, f);
|
|
29187
29188
|
i.column = (Ce = c[0]) == null ? void 0 : Ce.length;
|
|
29188
29189
|
}
|
|
29189
|
-
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 = S, i.dataVerification =
|
|
29190
|
+
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 = S, i.dataVerification = R, i.hyperlink = V, cf(g, i);
|
|
29190
29191
|
const Q = ef(e), q = s.cellFormatRanges;
|
|
29191
29192
|
s.cellFormatRanges = cd(
|
|
29192
29193
|
s.cellFormatRanges,
|
|
@@ -29399,7 +29400,7 @@ function Fg(e, t, n, r) {
|
|
|
29399
29400
|
if ("rs" in S.mc)
|
|
29400
29401
|
delete S.mc, delete o.merge[`${N}_${k}`], T[`${N}_${k}`] = p.cloneDeep(S) || {};
|
|
29401
29402
|
else {
|
|
29402
|
-
const
|
|
29403
|
+
const R = T[`${N}_${k}`] ?? ((u = i[N]) == null ? void 0 : u[k]), B = p.cloneDeep(R) || {};
|
|
29403
29404
|
delete B.v, delete B.m, delete B.ct, delete B.f, delete B.spl, i[C][$] = B, s.push({
|
|
29404
29405
|
sheetId: t,
|
|
29405
29406
|
path: ["celldata"],
|
|
@@ -29434,11 +29435,11 @@ function Fg(e, t, n, r) {
|
|
|
29434
29435
|
for (let S = _; S <= T; S += 1) {
|
|
29435
29436
|
const N = i[$][S];
|
|
29436
29437
|
if (N != null && N.mc != null) {
|
|
29437
|
-
const k = N.mc.r,
|
|
29438
|
+
const k = N.mc.r, R = N.mc.c;
|
|
29438
29439
|
if ("rs" in N.mc)
|
|
29439
|
-
delete N.mc, delete o.merge[`${k}_${
|
|
29440
|
+
delete N.mc, delete o.merge[`${k}_${R}`], C[`${k}_${R}`] = p.cloneDeep(N) || {};
|
|
29440
29441
|
else {
|
|
29441
|
-
const B = C[`${k}_${
|
|
29442
|
+
const B = C[`${k}_${R}`] ?? ((c = i[k]) == null ? void 0 : c[R]), V = p.cloneDeep(B) || {};
|
|
29442
29443
|
delete V.v, delete V.m, delete V.ct, delete V.f, delete V.spl, i[$][S] = V, s.push({
|
|
29443
29444
|
sheetId: t,
|
|
29444
29445
|
path: ["celldata"],
|
|
@@ -29457,9 +29458,9 @@ function Fg(e, t, n, r) {
|
|
|
29457
29458
|
let C = {}, $ = !1;
|
|
29458
29459
|
for (let N = w; N <= v; N += 1)
|
|
29459
29460
|
for (let k = _; k <= T; k += 1) {
|
|
29460
|
-
const
|
|
29461
|
-
|
|
29462
|
-
|
|
29461
|
+
const R = i[N][k];
|
|
29462
|
+
R != null && (Sn(R.ct) || !p.isEmpty(R.v) || R.f != null || // @ts-ignore
|
|
29463
|
+
R.s != null || R.ct && ((f = R.ct.s) != null && f.length)) && !$ && (C = p.cloneDeep(R), $ = !0), i[N][k] = { mc: { r: w, c: _ } }, s.push({
|
|
29463
29464
|
sheetId: t,
|
|
29464
29465
|
path: ["celldata"],
|
|
29465
29466
|
value: { r: N, c: k, v: i[N][k] },
|
|
@@ -29486,9 +29487,9 @@ function Fg(e, t, n, r) {
|
|
|
29486
29487
|
for (let C = _; C <= T; C += 1) {
|
|
29487
29488
|
let $ = {}, S = !1;
|
|
29488
29489
|
for (let k = w; k <= v; k += 1) {
|
|
29489
|
-
const
|
|
29490
|
-
|
|
29491
|
-
|
|
29490
|
+
const R = i[k][C];
|
|
29491
|
+
R != null && (Sn(R.ct) || !p.isEmpty(R.v) || R.f != null || // @ts-ignore
|
|
29492
|
+
R.s != null || R.ct && ((d = R.ct.s) != null && d.length)) && !S && ($ = p.cloneDeep(R), S = !0), i[k][C] = { mc: { r: w, c: C } }, s.push({
|
|
29492
29493
|
sheetId: t,
|
|
29493
29494
|
path: ["celldata"],
|
|
29494
29495
|
value: { r: k, c: C, v: i[k][C] },
|
|
@@ -29516,9 +29517,9 @@ function Fg(e, t, n, r) {
|
|
|
29516
29517
|
for (let C = w; C <= v; C += 1) {
|
|
29517
29518
|
let $ = {}, S = !1;
|
|
29518
29519
|
for (let k = _; k <= T; k += 1) {
|
|
29519
|
-
const
|
|
29520
|
-
|
|
29521
|
-
|
|
29520
|
+
const R = i[C][k];
|
|
29521
|
+
R != null && (Sn(R.ct) || !p.isEmpty(R.v) || R.f != null || // @ts-ignore
|
|
29522
|
+
R.s != null || R.ct && ((m = R.ct.s) != null && m.length)) && !S && ($ = p.cloneDeep(R), S = !0), i[C][k] = { mc: { r: C, c: _ } }, s.push({
|
|
29522
29523
|
sheetId: t,
|
|
29523
29524
|
path: ["celldata"],
|
|
29524
29525
|
value: { r: C, c: k, v: i[C][k] },
|
|
@@ -29717,13 +29718,13 @@ function Wg(e, t, n, r, a, l, o, i) {
|
|
|
29717
29718
|
C,
|
|
29718
29719
|
$,
|
|
29719
29720
|
N
|
|
29720
|
-
),
|
|
29721
|
+
), R = {
|
|
29721
29722
|
...c,
|
|
29722
29723
|
ct: { fa: "General", tb: "1", t: "inlineStr", s: k }
|
|
29723
29724
|
};
|
|
29724
|
-
delete
|
|
29725
|
-
const B = e.luckysheetfile[o], V = Hn(
|
|
29726
|
-
return or(B, t, n, V), i[t][n] =
|
|
29725
|
+
delete R.f, delete R.hl, delete R.fc, delete R.un, Qa(R);
|
|
29726
|
+
const B = e.luckysheetfile[o], V = Hn(R);
|
|
29727
|
+
return or(B, t, n, V), i[t][n] = R, Ja(e, t, n, R, B), e.linkCard = void 0, !0;
|
|
29727
29728
|
}
|
|
29728
29729
|
function Ja(e, t, n, r, a) {
|
|
29729
29730
|
var i, s;
|
|
@@ -29783,7 +29784,7 @@ function gb(e, t, n, r, a, l, o) {
|
|
|
29783
29784
|
if (w) {
|
|
29784
29785
|
const C = Lr(
|
|
29785
29786
|
g.innerText ?? g.textContent ?? ""
|
|
29786
|
-
), $ = Math.max(0, Math.min(w.start, C.length)), S = Math.max($, Math.min(w.end, C.length)), N = C.slice($, S), k = b.length > 0 && b !== N,
|
|
29787
|
+
), $ = Math.max(0, Math.min(w.start, C.length)), S = Math.max($, Math.min(w.end, C.length)), N = C.slice($, S), k = b.length > 0 && b !== N, R = typeof ((f = e.linkCard) == null ? void 0 : f.linkInsertOffset) == "number" ? e.linkCard.linkInsertOffset : S, B = Math.max(0, Math.min(R, C.length));
|
|
29787
29788
|
if (g.focus({ preventScroll: !0 }), k) {
|
|
29788
29789
|
so(g, B, B), document.execCommand(
|
|
29789
29790
|
"insertText",
|
|
@@ -29952,15 +29953,15 @@ function Vg(e, t, n, r, a = !1, l = !1) {
|
|
|
29952
29953
|
if (V.length > 0) return V;
|
|
29953
29954
|
}
|
|
29954
29955
|
return (c == null ? void 0 : c.v) == null ? "" : `${c.v}`;
|
|
29955
|
-
})(),
|
|
29956
|
+
})(), R = m || a ? void 0 : i ?? u, B = m || a ? void 0 : i ? [i] : d.length > 0 ? d : void 0;
|
|
29956
29957
|
e.linkCard = {
|
|
29957
29958
|
sheetId: e.currentSheetId,
|
|
29958
29959
|
r: t,
|
|
29959
29960
|
c: n,
|
|
29960
29961
|
rc: `${t}_${n}`,
|
|
29961
29962
|
originText: k,
|
|
29962
|
-
originType: ((C = r == null ? void 0 : r.prefillLink) == null ? void 0 : C.linkType) ?? (
|
|
29963
|
-
originAddress: (($ = r == null ? void 0 : r.prefillLink) == null ? void 0 : $.linkAddress) ?? (
|
|
29963
|
+
originType: ((C = r == null ? void 0 : r.prefillLink) == null ? void 0 : C.linkType) ?? (R == null ? void 0 : R.linkType) ?? "webpage",
|
|
29964
|
+
originAddress: (($ = r == null ? void 0 : r.prefillLink) == null ? void 0 : $.linkAddress) ?? (R == null ? void 0 : R.linkAddress) ?? "",
|
|
29964
29965
|
links: B,
|
|
29965
29966
|
editingLinkIndex: void 0,
|
|
29966
29967
|
position: {
|
|
@@ -30464,7 +30465,7 @@ function gu(e, t, n, r, a, l, o, i) {
|
|
|
30464
30465
|
});
|
|
30465
30466
|
}
|
|
30466
30467
|
function Tf(e, t, n, r, a, l, o, i, s) {
|
|
30467
|
-
var u, c, f, d, m, h, g, y, b, w, v, _, T, C, $, S, N, k,
|
|
30468
|
+
var u, c, f, d, m, h, g, y, b, w, v, _, T, C, $, S, N, k, R, B, V, Q, q, X, W, Y, x, pe, he, J, z, G, fe, Te, D, E, U, Ce, H, Ee, j, ee, O, ne, re;
|
|
30468
30469
|
if (!(p.isNil(t) || p.isNil(n)))
|
|
30469
30470
|
if (n === "ct") {
|
|
30470
30471
|
const F = [];
|
|
@@ -30511,7 +30512,7 @@ function Tf(e, t, n, r, a, l, o, i, s) {
|
|
|
30511
30512
|
}
|
|
30512
30513
|
(r === "General" || r === 0) && (qe = Ze(De) ? "n" : "g");
|
|
30513
30514
|
const Fe = ct(r, De);
|
|
30514
|
-
Z && p.isPlainObject(Z) ? (Z.m = `${Fe}`, p.isNil(Z.ct) && (Z.ct = {}), delete Z.ct.dp, Z.ct.fa = r, Z.ct.t = qe, Z.v = typeof De == "number" ? De : String(De), Z.fc = Z.fc || ((k = (N = (S = Z.ct) == null ? void 0 : S.s) == null ? void 0 : N[0]) == null ? void 0 : k.fc), Z.bl = Z.bl || ((V = (B = (
|
|
30515
|
+
Z && p.isPlainObject(Z) ? (Z.m = `${Fe}`, p.isNil(Z.ct) && (Z.ct = {}), delete Z.ct.dp, Z.ct.fa = r, Z.ct.t = qe, Z.v = typeof De == "number" ? De : String(De), Z.fc = Z.fc || ((k = (N = (S = Z.ct) == null ? void 0 : S.s) == null ? void 0 : N[0]) == null ? void 0 : k.fc), Z.bl = Z.bl || ((V = (B = (R = Z.ct) == null ? void 0 : R.s) == null ? void 0 : B[0]) == null ? void 0 : V.bl), Z.it = Z.it || ((X = (q = (Q = Z.ct) == null ? void 0 : Q.s) == null ? void 0 : q[0]) == null ? void 0 : X.it), Z.un = Z.un || ((x = (Y = (W = Z.ct) == null ? void 0 : W.s) == null ? void 0 : Y[0]) == null ? void 0 : x.un), Z.fs = Z.fs || ((J = (he = (pe = Z.ct) == null ? void 0 : pe.s) == null ? void 0 : he[0]) == null ? void 0 : J.fs), Z.cl = Z.cl || ((fe = (G = (z = Z.ct) == null ? void 0 : z.s) == null ? void 0 : G[0]) == null ? void 0 : fe.cl)) : t[we][se] = {
|
|
30515
30516
|
ct: { fa: r, t: qe },
|
|
30516
30517
|
v: De,
|
|
30517
30518
|
m: Fe
|
|
@@ -31672,8 +31673,8 @@ function Db(e, t, n) {
|
|
|
31672
31673
|
function xb(e, t, n, r, a) {
|
|
31673
31674
|
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];
|
|
31674
31675
|
if (!e.luckysheet_select_save) return;
|
|
31675
|
-
let _ = e.luckysheet_select_save[0].row[0], T = e.luckysheet_select_save[0].row[1], C = e.luckysheet_select_save[0].column[0], $ = e.luckysheet_select_save[0].column[1], S = e.luckysheet_select_save[0].top_move, N = e.luckysheet_select_save[0].height_move, k = e.luckysheet_select_save[0].left_move,
|
|
31676
|
-
S == null || N == null || k == null ||
|
|
31676
|
+
let _ = e.luckysheet_select_save[0].row[0], T = e.luckysheet_select_save[0].row[1], C = e.luckysheet_select_save[0].column[0], $ = e.luckysheet_select_save[0].column[1], S = e.luckysheet_select_save[0].top_move, N = e.luckysheet_select_save[0].height_move, k = e.luckysheet_select_save[0].left_move, R = e.luckysheet_select_save[0].width_move;
|
|
31677
|
+
S == null || N == null || k == null || R == null || (Math.abs(w - m) > Math.abs(v - b) ? m >= _ && m <= T || (S >= d ? (N += S - d, S = d) : N = f - S - 1) : b >= C && b <= $ || (k >= y ? (R += k - y, k = y) : R = g - k - 1), u < 0 && (_ = 0, [T] = e.luckysheet_select_save[0].row), s < 0 && (C = 0, [$] = e.luckysheet_select_save[0].column), kf({ left: k, width: R, top: S, height: N }, a));
|
|
31677
31678
|
}
|
|
31678
31679
|
function jt(e, t) {
|
|
31679
31680
|
const n = [];
|
|
@@ -31874,7 +31875,7 @@ function On(e, t, n) {
|
|
|
31874
31875
|
return r;
|
|
31875
31876
|
}
|
|
31876
31877
|
function Tt(e, t, n, r, a) {
|
|
31877
|
-
var o, i, s, u, c, f, d, m, h, g, y, b, w, v, _, T, C, $, S, N, k,
|
|
31878
|
+
var o, i, s, u, c, f, d, m, h, g, y, b, w, v, _, T, C, $, S, N, k, R, B, V, Q, q, X, W, Y, x, pe, he, J, z, G, fe, Te, D, E, U, Ce, H, Ee, j, ee, O, ne, re, F, te, le, ue, we, se, Z, qe, De, Fe, _e;
|
|
31878
31879
|
e = p.cloneDeep(e);
|
|
31879
31880
|
let l = [];
|
|
31880
31881
|
if (r === "0" || e.length === 1)
|
|
@@ -31982,7 +31983,7 @@ function Tt(e, t, n, r, a) {
|
|
|
31982
31983
|
if (e.length === 2)
|
|
31983
31984
|
if ($e((C = e[1]) == null ? void 0 : C.m).date() === $e(($ = e[0]) == null ? void 0 : $.m).date() && $e((S = e[1]) == null ? void 0 : S.m).diff($e((N = e[0]) == null ? void 0 : N.m), "months") !== 0) {
|
|
31984
31985
|
(n === "up" || n === "left") && e.reverse();
|
|
31985
|
-
const I = $e((k = e[1]) == null ? void 0 : k.m).diff($e((
|
|
31986
|
+
const I = $e((k = e[1]) == null ? void 0 : k.m).diff($e((R = e[0]) == null ? void 0 : R.m), "months");
|
|
31986
31987
|
for (let L = 1; L <= t; L += 1) {
|
|
31987
31988
|
const ye = (L - 1) % e.length, ae = p.cloneDeep(e[ye]), P = (B = e[e.length - 1]) == null ? void 0 : B.m;
|
|
31988
31989
|
if (ae != null && P != null) {
|
|
@@ -32334,13 +32335,13 @@ function vu(e, t, n) {
|
|
|
32334
32335
|
return r;
|
|
32335
32336
|
}
|
|
32336
32337
|
function Ef(e) {
|
|
32337
|
-
var k,
|
|
32338
|
+
var k, R, B, V;
|
|
32338
32339
|
const t = Ae(e), n = ft(e), r = If(e);
|
|
32339
32340
|
if (n === !1 || t == null || r)
|
|
32340
32341
|
return;
|
|
32341
32342
|
const a = ke(e, e.currentSheetId);
|
|
32342
32343
|
if (a == null) return;
|
|
32343
|
-
const l = e.luckysheetfile[a], o = new Set(Object.keys(((k = l.config) == null ? void 0 : k.rowhidden) || {})), i = new Set(Object.keys(((
|
|
32344
|
+
const l = e.luckysheetfile[a], o = new Set(Object.keys(((k = l.config) == null ? void 0 : k.rowhidden) || {})), i = new Set(Object.keys(((R = l.config) == null ? void 0 : R.colhidden) || {})), s = p.cloneDeep(e.config);
|
|
32344
32345
|
s.borderInfo == null && (s.borderInfo = []);
|
|
32345
32346
|
const u = Ul(e, e.currentSheetId), c = p.cloneDeep(l.dataVerification), { direction: f } = Qe, { copyRange: d } = Qe, m = d.row[0], h = d.row[1], g = d.column[0], y = d.column[1], b = k1(
|
|
32346
32347
|
t,
|
|
@@ -32739,13 +32740,13 @@ function Ob(e, t, n) {
|
|
|
32739
32740
|
else
|
|
32740
32741
|
return;
|
|
32741
32742
|
i < 0 && (_ = 0, [T] = y.row), o < 0 && (C = 0, [$] = y.column);
|
|
32742
|
-
const
|
|
32743
|
-
if (
|
|
32743
|
+
const R = Ae(e);
|
|
32744
|
+
if (R == null) return;
|
|
32744
32745
|
if (e.config.merge != null) {
|
|
32745
32746
|
let V = !1;
|
|
32746
32747
|
for (let Q = y.row[0]; Q <= y.row[1]; Q += 1)
|
|
32747
32748
|
for (let q = y.column[0]; q <= y.column[1]; q += 1) {
|
|
32748
|
-
const X = (w =
|
|
32749
|
+
const X = (w = R[Q]) == null ? void 0 : w[q];
|
|
32749
32750
|
if (X != null && X.mc != null) {
|
|
32750
32751
|
V = !0;
|
|
32751
32752
|
break;
|
|
@@ -32755,7 +32756,7 @@ function Ob(e, t, n) {
|
|
|
32755
32756
|
return;
|
|
32756
32757
|
for (let Q = _; Q <= T; Q += 1)
|
|
32757
32758
|
for (let q = C; q <= $; q += 1) {
|
|
32758
|
-
const X = (v =
|
|
32759
|
+
const X = (v = R[Q]) == null ? void 0 : v[q];
|
|
32759
32760
|
if (X != null && X.mc != null) {
|
|
32760
32761
|
V = !0;
|
|
32761
32762
|
break;
|
|
@@ -33114,28 +33115,28 @@ function X1(e, t, n, r, a) {
|
|
|
33114
33115
|
if (w == null) return n;
|
|
33115
33116
|
const v = Ma(e, w) ?? null;
|
|
33116
33117
|
return v == null && (i = !0, s = !0), v;
|
|
33117
|
-
}, h = (w, v, _, T, C) => {
|
|
33118
|
-
const
|
|
33118
|
+
}, h = (w, v, _, T, C, $ = { rows: !1, cols: !1 }) => {
|
|
33119
|
+
const S = w === n && r >= v && r <= _ && a >= T && a <= C;
|
|
33119
33120
|
if ((_ - v + 1) * (C - T + 1) <= B1)
|
|
33120
|
-
for (let
|
|
33121
|
-
for (let
|
|
33122
|
-
l.add(`${w}:${
|
|
33121
|
+
for (let k = v; k <= _; k += 1)
|
|
33122
|
+
for (let R = T; R <= C; R += 1)
|
|
33123
|
+
l.add(`${w}:${k}:${R}`);
|
|
33123
33124
|
else
|
|
33124
33125
|
i = !0, u.push({
|
|
33125
33126
|
sheetId: w,
|
|
33126
33127
|
startRow: v,
|
|
33127
|
-
endRow: _,
|
|
33128
|
+
endRow: $.rows ? 1 / 0 : _,
|
|
33128
33129
|
startCol: T,
|
|
33129
|
-
endCol: C
|
|
33130
|
-
}),
|
|
33130
|
+
endCol: $.cols ? 1 / 0 : C
|
|
33131
|
+
}), S && l.add(c);
|
|
33131
33132
|
}, g = (w, v) => {
|
|
33132
33133
|
var q;
|
|
33133
33134
|
if (w.sheet != null && v.sheet != null && w.sheet !== v.sheet) return;
|
|
33134
33135
|
const _ = m(w.sheet);
|
|
33135
33136
|
if (_ == null) return;
|
|
33136
33137
|
const T = To(w.digits), C = To(v.digits), $ = w.letters ? _o(w.letters) : -1, S = v.letters ? _o(v.letters) : -1;
|
|
33137
|
-
let N = Math.min(T, C), k = Math.max(T, C),
|
|
33138
|
-
const V = N === -1 || k === -1, Q =
|
|
33138
|
+
let N = Math.min(T, C), k = Math.max(T, C), R = Math.min($, S), B = Math.max($, S);
|
|
33139
|
+
const V = N === -1 || k === -1, Q = R === -1 || B === -1;
|
|
33139
33140
|
if (!(V && Q)) {
|
|
33140
33141
|
if (V || Q) {
|
|
33141
33142
|
const X = (q = e.luckysheetfile.find((W) => W.id === _)) == null ? void 0 : q.data;
|
|
@@ -33143,9 +33144,12 @@ function X1(e, t, n, r, a) {
|
|
|
33143
33144
|
i = !0, s = !0;
|
|
33144
33145
|
return;
|
|
33145
33146
|
}
|
|
33146
|
-
V && (N = 0, k = X.length), Q && (
|
|
33147
|
+
V && (N = 0, k = X.length), Q && (R = 0, B = X[0].length);
|
|
33147
33148
|
}
|
|
33148
|
-
h(_, N, k,
|
|
33149
|
+
h(_, N, k, R, B, {
|
|
33150
|
+
rows: V,
|
|
33151
|
+
cols: Q
|
|
33152
|
+
});
|
|
33149
33153
|
}
|
|
33150
33154
|
}, y = (w) => {
|
|
33151
33155
|
const v = yl(e.definedNames, w, n);
|
|
@@ -33732,7 +33736,7 @@ const Bf = `$#,##0.${"0".repeat(2)}`, iy = (e, t, n, r) => {
|
|
|
33732
33736
|
row: [i, i + r.length - 1],
|
|
33733
33737
|
column: [t, t + (r[0].length - 1)]
|
|
33734
33738
|
};
|
|
33735
|
-
const
|
|
33739
|
+
const R = r[0].map(String).map((B, V) => {
|
|
33736
33740
|
if (V === 0)
|
|
33737
33741
|
return {
|
|
33738
33742
|
...n && typeof n == "object" ? ku({ ...n }) : n,
|
|
@@ -33752,7 +33756,7 @@ const Bf = `$#,##0.${"0".repeat(2)}`, iy = (e, t, n, r) => {
|
|
|
33752
33756
|
...Y ? { ct: Y } : {}
|
|
33753
33757
|
};
|
|
33754
33758
|
});
|
|
33755
|
-
g.push(
|
|
33759
|
+
g.push(R);
|
|
33756
33760
|
for (let B = 1; B < r.length; B++) {
|
|
33757
33761
|
const V = [];
|
|
33758
33762
|
r[B].forEach((Q, q) => {
|
|
@@ -33789,12 +33793,12 @@ const Bf = `$#,##0.${"0".repeat(2)}`, iy = (e, t, n, r) => {
|
|
|
33789
33793
|
row: [i, i + r.length],
|
|
33790
33794
|
column: [t, t + (s.length - 1)]
|
|
33791
33795
|
};
|
|
33792
|
-
const k = s.map((
|
|
33796
|
+
const k = s.map((R, B) => {
|
|
33793
33797
|
if (B === 0)
|
|
33794
33798
|
return {
|
|
33795
33799
|
...n && typeof n == "object" ? ku({ ...n }) : n,
|
|
33796
|
-
m:
|
|
33797
|
-
v:
|
|
33800
|
+
m: R,
|
|
33801
|
+
v: R,
|
|
33798
33802
|
isDataBlockFormula: !0,
|
|
33799
33803
|
...o != null && o.length ? { bl: 1 } : {}
|
|
33800
33804
|
};
|
|
@@ -33802,21 +33806,21 @@ const Bf = `$#,##0.${"0".repeat(2)}`, iy = (e, t, n, r) => {
|
|
|
33802
33806
|
i,
|
|
33803
33807
|
t + B,
|
|
33804
33808
|
a
|
|
33805
|
-
), { m: Q, ct: q, ...X } = V || {}, W = wr(
|
|
33809
|
+
), { m: Q, ct: q, ...X } = V || {}, W = wr(R, V == null ? void 0 : V.ct);
|
|
33806
33810
|
return {
|
|
33807
33811
|
...X,
|
|
33808
|
-
v:
|
|
33809
|
-
m: String(
|
|
33812
|
+
v: R,
|
|
33813
|
+
m: String(R),
|
|
33810
33814
|
...W ? { ct: W } : {},
|
|
33811
33815
|
...o != null && o.length ? { bl: 1 } : {}
|
|
33812
33816
|
};
|
|
33813
33817
|
});
|
|
33814
33818
|
g.push(k);
|
|
33815
|
-
for (let
|
|
33819
|
+
for (let R = 0; R < r.length; R++) {
|
|
33816
33820
|
const B = [];
|
|
33817
33821
|
s.forEach((V, Q) => {
|
|
33818
|
-
const q = r[
|
|
33819
|
-
i + 1 +
|
|
33822
|
+
const q = r[R][V], X = br(
|
|
33823
|
+
i + 1 + R,
|
|
33820
33824
|
t + Q,
|
|
33821
33825
|
a
|
|
33822
33826
|
), { m: W, ct: Y, ...x } = X || {}, pe = nl(q), he = {};
|