@sheetxl/sdk 0.3.2 → 0.3.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/LICENSE.md +11 -11
- package/README.md +28 -28
- package/browser/cjs/{D5UzXJK_3v6LMnmV.cjs → 1pj6AMx0W_s2NfeV.cjs} +1 -1
- package/browser/cjs/{C-ausUhunWAualf3.cjs → B4uIlc1kkia-4Op-.cjs} +1 -1
- package/browser/cjs/{242NkDzjjiWIfC7x.cjs → BCjFWCPdmN2en8mS.cjs} +1 -1
- package/browser/cjs/{0xmZmxJjOmmjIHmP.cjs → BDYXg0emx6bBFu7V.cjs} +2 -2
- package/browser/cjs/{YC_0gl0kTs_z8yNW.cjs → BDn6l0pkN7ueawWD.cjs} +1 -1
- package/browser/cjs/{IIq_ZeY4xw5jUCtS.cjs → Bf5BMPAdqHPDMvZv.cjs} +1 -1
- package/browser/cjs/{BfGrLu3pwOGhQy_P.cjs → BiWwO7y_EtMn582x.cjs} +4 -4
- package/browser/cjs/{DkG3pV-kF_aJRBWX.cjs → BrlzZ2vyGqB4KapE.cjs} +1 -1
- package/browser/cjs/{DbDwN_TXoWUjF5TN.cjs → Bwptlfl9GUlJvJmD.cjs} +1 -1
- package/browser/cjs/{DqSxMnyKewiS8fBV.cjs → Bz5T3c7lHC3Ea5rr.cjs} +1 -1
- package/browser/cjs/{3LIyo_LBPz4W3RmJ.cjs → CB2Qfcq6I-VSpT2d.cjs} +2 -2
- package/browser/cjs/{DlgyITQ1YrxN5V6a.cjs → CCw-JV1BT2zkDgbK.cjs} +1 -1
- package/browser/cjs/{DezMujeboAuMduSK.cjs → CEi6XDDzH6fxDPim.cjs} +1 -1
- package/browser/cjs/{SjaaMyCi5dtgGGmL.cjs → CH1vhtaRcaO5G64K.cjs} +1 -1
- package/browser/cjs/{BY8kFpbTK9YmTthu.cjs → CQjGrj4WlN6pZqpw.cjs} +3 -3
- package/browser/cjs/{D_isdSejjd3cTHd9.cjs → CY5WYTBFYx7NiQOI.cjs} +1 -1
- package/browser/cjs/{BNu5tnv0HWnD0a-Y.cjs → CbFa0b1dxLBre5PF.cjs} +1 -1
- package/browser/cjs/{BJSgti3yu3jgoZBX.cjs → Cn59nM_0woFLa0W5.cjs} +1 -1
- package/browser/cjs/{BfiTBtFhUyNvcKLX.cjs → CuZNHrJlAgJT_zuz.cjs} +1 -1
- package/browser/cjs/{DoCioWdhrAULs2yd.cjs → D2d9YK7PyajVhL4J.cjs} +2 -2
- package/browser/cjs/{1fozUmjGg-EipZ-I.cjs → DHnQVAe1g5KVbaPg.cjs} +4 -4
- package/browser/cjs/{Lnci5f-BVgdm0alm.cjs → DMV3ExdbNMNFHBtM.cjs} +1 -1
- package/browser/cjs/{5D6Cs9GidLGWb2c8.cjs → DVLjrVHClxYR0lYv.cjs} +9 -9
- package/browser/cjs/{3WQbj91IFfDAC0gN.cjs → DocO14LbbPpyixvr.cjs} +1 -1
- package/browser/cjs/{BWR8dikecERz-mPC.cjs → JaEryj9X0T8DRKOH.cjs} +1 -1
- package/browser/cjs/{CMA5t29CKdOzWCXY.cjs → JslG2ypOzY1PFwmk.cjs} +1 -1
- package/browser/cjs/{bGJeSH7RAhruwQiT.cjs → LfHbj1w559pY5jbQ.cjs} +1 -1
- package/browser/cjs/{exZ3j01gpRsWnm9t.cjs → MXQeCVJEFCXRrbKs.cjs} +1 -1
- package/browser/cjs/{NqwHbjXIQBBbSRXi.cjs → Pbfx5UsKpUFPON07.cjs} +1 -1
- package/browser/cjs/{C2Kdm1dpMOQIX9fp.cjs → _oc5gc0SpPEzgy_A.cjs} +1 -1
- package/browser/cjs/{BajpEaGKY8b2Svfu.cjs → dnYF2a3cDnN8WgLH.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{By6PgbWbM1A7W6oi.cjs → pjP2urzSf5-N20VX.cjs} +1 -1
- package/browser/cjs/{CCCRql04-bLPGjcj.cjs → qzjzpU67Awbml2PV.cjs} +2 -2
- package/browser/esm/{i3Uz3s7bb7ATzN9e.mjs → 4WuqfjG5_i-7BCzV.mjs} +1 -1
- package/browser/esm/{BXj6VLcvFADDe_qT.mjs → 5e7scOEL7Bp9gTRT.mjs} +1 -1
- package/browser/esm/{BsSZI4PHsrQmcDPU.mjs → 6P6qPN-Radt0Zrge.mjs} +1 -1
- package/{node/esm/BUvxk1iACfKNeSYd.mjs → browser/esm/B-70jUHsDhcbpg7p.mjs} +1 -1
- package/browser/esm/{C2P0SXTA2Kbr1ZPX.mjs → B4OB9rBM2_BKVrjg.mjs} +4 -4
- package/{node/esm/TPKd00FP_u2U6C49.mjs → browser/esm/B688JyEV_4eB-nmh.mjs} +1 -1
- package/browser/esm/{krpxpx2ReIhrUQqk.mjs → B6Df9dnPX_iDgfqg.mjs} +2 -2
- package/browser/esm/{Dlmqk-ACruvVvAqh.mjs → B_lj0hfpvm8vVP0R.mjs} +4 -4
- package/browser/esm/{DOuxwS0XX9_yeiWM.mjs → Bc70WpuOisPXXv8Z.mjs} +1 -1
- package/browser/esm/{C2sFUfXffeShugL0.mjs → BkKPYl0M78aAyOFO.mjs} +1 -1
- package/{node/esm/Ca5hzGQtiO3NG2vI.mjs → browser/esm/Bs9mCdHxaS3SB89h.mjs} +1 -1
- package/browser/esm/{BnzRty-9U5hKl20h.mjs → BstskMGyEd8lj7Zw.mjs} +2 -2
- package/browser/esm/{CMukby167vn8QL-R.mjs → Bv-Z_nYDHkNiflic.mjs} +1 -1
- package/browser/esm/{CmltvNLgW0xUWuZW.mjs → C0mQMdTsIjG8hSJK.mjs} +1 -1
- package/browser/esm/{DLCYUalcNoz2wKdr.mjs → CKetYxEavPYJBTcH.mjs} +1 -1
- package/browser/esm/{CxBB1R9hBAwhpG9i.mjs → CUGsT94OXy_YWdBG.mjs} +2 -2
- package/browser/esm/{Dsaf7PD7qZsZhfJz.mjs → Co8ZvPGE33WVdLSN.mjs} +1 -1
- package/browser/esm/{Dm_UkJgVCA2_KVXj.mjs → Cqsn5I1V2P15VKIb.mjs} +1 -1
- package/browser/esm/{8kDnrf47IJS8Z5HU.mjs → Ct-GgBfKWPAg8gwr.mjs} +150 -149
- package/{node/esm/CkgLXVYEawknlNu2.mjs → browser/esm/Cu0_5naT-BJGMTm3.mjs} +1 -1
- package/{node/esm/CZLWcD5IioLpdBiZ.mjs → browser/esm/D3wI5OHg6M2RT-Rh.mjs} +1 -1
- package/browser/esm/{HS4onOMFxlYr1580.mjs → DDS0rUaMpuaHMWcZ.mjs} +1 -1
- package/{node/esm/CFUPa-kvZ75I8_pF.mjs → browser/esm/DJ0_w-ITda719O8G.mjs} +1 -1
- package/browser/esm/{k986x8R6gj-EhlYv.mjs → DRhq8OLnLggFVYBO.mjs} +1 -1
- package/browser/esm/{BcypK4JKXPJ-sCCP.mjs → DVeZT54qIzFalmO0.mjs} +1 -1
- package/browser/esm/{B4npvpWOwSo8cfNR.mjs → Dm935ZqcB-lJBsB7.mjs} +1 -1
- package/browser/esm/{DmQ-xCfZi9LH_El_.mjs → DorzlSIUIPPOOz4K.mjs} +2 -2
- package/browser/esm/{DOEuoyqTO66GEqBW.mjs → Dz_6lnuT_-hLIjhW.mjs} +3 -3
- package/browser/esm/{DuUswXm1yKQj22VO.mjs → O2kCH_Ut6jw6bYRZ.mjs} +1 -1
- package/browser/esm/{BX64GbFehCDkWggk.mjs → aWGbVYuwY_RzutAj.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{BfGWWDwbDdeUcJQC.mjs → obR7U-zLyXtdxPMo.mjs} +1 -1
- package/browser/esm/{vUYp4Jh31vLXAwUz.mjs → uirEyrJI7EGU2bgq.mjs} +1 -1
- package/{node/esm/Djq_sjDkyyHjk3wr.mjs → browser/esm/yqkev8hjH51Gi7nz.mjs} +1 -1
- package/licenses/dependencies.txt +33 -33
- package/node/esm/{B1JX3uyy3Nhm5_j2.mjs → -bNkHlmxqnxRxzBS.mjs} +1 -1
- package/node/esm/{i3Uz3s7bb7ATzN9e.mjs → 4WuqfjG5_i-7BCzV.mjs} +1 -1
- package/{browser/esm/BUvxk1iACfKNeSYd.mjs → node/esm/B-70jUHsDhcbpg7p.mjs} +1 -1
- package/{browser/esm/TPKd00FP_u2U6C49.mjs → node/esm/B688JyEV_4eB-nmh.mjs} +1 -1
- package/node/esm/{xoDUhs5wl4hlF48c.mjs → BSZaOCBn2PS-equb.mjs} +1 -1
- package/node/esm/{C9NErSQtZcZqp7FU.mjs → BYjx9sSzG76MFhvr.mjs} +1 -1
- package/node/esm/{DOuxwS0XX9_yeiWM.mjs → Bc70WpuOisPXXv8Z.mjs} +1 -1
- package/node/esm/{DfG4jCDsh1uyjLV3.mjs → BkGfxn0xHk5faxLP.mjs} +1 -1
- package/{browser/esm/Ca5hzGQtiO3NG2vI.mjs → node/esm/Bs9mCdHxaS3SB89h.mjs} +1 -1
- package/node/esm/{BHk9xNB04ZhQ319c.mjs → BwKDezbsfk-ZrnTI.mjs} +2 -2
- package/node/esm/{CmltvNLgW0xUWuZW.mjs → C0mQMdTsIjG8hSJK.mjs} +1 -1
- package/node/esm/{DLCYUalcNoz2wKdr.mjs → CKetYxEavPYJBTcH.mjs} +1 -1
- package/node/esm/{CmLF8RQSHdTJePeZ.mjs → CNW-2aGFdrEKyfgF.mjs} +1 -1
- package/node/esm/{DNMOmjeba5Nf3iw6.mjs → CU3MhAOwNwupRbQr.mjs} +1 -1
- package/node/esm/{Dsaf7PD7qZsZhfJz.mjs → Co8ZvPGE33WVdLSN.mjs} +1 -1
- package/node/esm/{C4EOeZ1D3X5VPHXh.mjs → CqW3IxQKSk6F4KSr.mjs} +1 -1
- package/{browser/esm/CkgLXVYEawknlNu2.mjs → node/esm/Cu0_5naT-BJGMTm3.mjs} +1 -1
- package/{browser/esm/CZLWcD5IioLpdBiZ.mjs → node/esm/D3wI5OHg6M2RT-Rh.mjs} +1 -1
- package/node/esm/{TBOoV3GxYFgBIrbV.mjs → DG2K4cUbvt047DpF.mjs} +1 -1
- package/{browser/esm/CFUPa-kvZ75I8_pF.mjs → node/esm/DJ0_w-ITda719O8G.mjs} +1 -1
- package/node/esm/{CA99SbGNZzpTHLKo.mjs → DK0mpf9DgGsDoxjy.mjs} +2 -2
- package/node/esm/{B9LTwhz__4B5gtLl.mjs → DNLpW1fnkftY-nEw.mjs} +1 -1
- package/node/esm/{BcypK4JKXPJ-sCCP.mjs → DVeZT54qIzFalmO0.mjs} +1 -1
- package/node/esm/{BYaFypfhgLKAu_cx.mjs → DcOEJlGqaIarEKXM.mjs} +2 -2
- package/node/esm/{B4npvpWOwSo8cfNR.mjs → Dm935ZqcB-lJBsB7.mjs} +1 -1
- package/node/esm/{DhS4tP__Bz7w1SVJ.mjs → MJpm9Qi99K7VWGiL.mjs} +4 -4
- package/node/esm/{D9pCyBeIVg1LR9sy.mjs → ZStBimjf89L3K-_6.mjs} +3 -3
- package/node/esm/{BX64GbFehCDkWggk.mjs → aWGbVYuwY_RzutAj.mjs} +1 -1
- package/node/esm/index.mjs +9 -8
- package/node/esm/{BfGWWDwbDdeUcJQC.mjs → obR7U-zLyXtdxPMo.mjs} +1 -1
- package/node/esm/{BUfTNDCevr4f9sN6.mjs → xjFX16LSeWLziN6g.mjs} +1 -1
- package/{browser/esm/Djq_sjDkyyHjk3wr.mjs → node/esm/yqkev8hjH51Gi7nz.mjs} +1 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.4
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -212,11 +212,11 @@ for (let s = 0; s < Sc.length; s++) {
|
|
|
212
212
|
ig.set(n.getLabel(), n), Zl.set(n.getCode(), n);
|
|
213
213
|
}
|
|
214
214
|
const _f = Zl.get(Y.Code.Unknown);
|
|
215
|
-
var
|
|
216
|
-
(
|
|
215
|
+
var Ge;
|
|
216
|
+
(Ge = Y || (Y = {})).BuiltIn = { Parse: new Ge.Parse(), Null: new Ge.Null(), Div0: new Ge.Div0(), Value: new Ge.Value(), Ref: new Ge.Ref(), Name: new Ge.Name(), Num: new Ge.Num(), NA: new Ge.NA(), GettingData: new Ge.GettingData(), Spill: new Ge.Spill(), Connect: new Ge.Connect(), Blocked: new Ge.Blocked(), Unknown: new Ge.Unknown(), Field: new Ge.Field(), Calc: new Ge.Calc(), Busy: new Ge.Busy(), Python: new Ge.Python(), Timeout: new Ge.Timeout() }, Ge.getBuiltInByLabel = (s) => ig.get(s), Ge.newTypedError = (s, e, t) => {
|
|
217
217
|
let n;
|
|
218
|
-
return n = typeof s == "string" ? ag.get(s) : lg.get(s), n || (n =
|
|
219
|
-
},
|
|
218
|
+
return n = typeof s == "string" ? ag.get(s) : lg.get(s), n || (n = Ge.Unknown), new n(e, t);
|
|
219
|
+
}, Ge.getBuiltInById = (s) => Zl.get(s) || _f;
|
|
220
220
|
let Sf = class {
|
|
221
221
|
constructor(s) {
|
|
222
222
|
this._subscribeFn = s;
|
|
@@ -297,7 +297,7 @@ class is extends Error {
|
|
|
297
297
|
super(e), this.name = "NotImplementedError";
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
const yf = Object.freeze({ colIndex: 0, rowIndex: 0 }), Ef = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), bf = { getCurrencySymbol: () => "$", getNumberDecimalSeparator: () => ".", getNumberGroupSeparator: () => ",", isDate1904: () => !1, getLocation: () => "unknown", getVersion: () => "1.0.0", getOS: () => "unknown", getUser: () => "unidentified", getDescription: () => "Stubbed Formula Context" }, Vy = new wf(),
|
|
300
|
+
const yf = Object.freeze({ colIndex: 0, rowIndex: 0 }), Ef = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), bf = { getCurrencySymbol: () => "$", getNumberDecimalSeparator: () => ".", getNumberGroupSeparator: () => ",", isDate1904: () => !1, getLocation: () => "unknown", getVersion: () => "1.0.0", getOS: () => "unknown", getUser: () => "unidentified", getDescription: () => "Stubbed Formula Context" }, Vy = new wf(), Ve = { Up: "up", Down: "down", Left: "left", Right: "right" }, Mn = { TopLeft: "tl", Top: "t", TopRight: "tr", Left: "l", Center: "c", Right: "r", BottomLeft: "bl", Bottom: "b", BottomRight: "br" }, Le = { html: "text/html", plain: "text/plain", png: "image/png" }, vf = Object.freeze({ left: 0, top: 0 }), Cf = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), xf = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), zi = Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: xf, EmptyRect: Cf, EmptyTopLeft: vf }, Symbol.toStringTag, { value: "Module" })), ue = { Column: "column", Row: "row" }, Tr = { ...ue, Both: "both" }, If = Object.freeze({ colIndex: 0, rowIndex: 0 }), Af = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), cg = (s, e) => s.colStart === e.colStart ? s.rowStart - e.rowStart : s.colStart - e.colStart, hg = (s, e) => s.rowStart === e.rowStart ? s.colStart - e.colStart : s.rowStart - e.rowStart, Rf = (s, e) => s.rowEnd === e.rowEnd ? e.colEnd - s.colEnd : e.rowEnd - s.rowEnd, Mf = (s, e) => s.colEnd === e.colEnd ? e.rowEnd - s.rowEnd : e.colEnd - s.colEnd, wc = (s, e) => s.colIndex === e.colIndex ? s.rowIndex - e.rowIndex : s.colIndex - e.colIndex, yc = (s, e) => s.rowIndex === e.rowIndex ? s.colIndex - e.colIndex : s.rowIndex - e.rowIndex, ug = (s = ue.Row, e = !1) => e ? s !== ue.Column ? Rf : Mf : s !== ue.Column ? hg : cg, Ec = (s, e) => s === e || !(!s || !e) && s.rowIndex === e.rowIndex && s.colIndex === e.colIndex, _l = (s, e) => s === e || !(!s || !e) && s.rowStart === e.rowStart && s.rowEnd === e.rowEnd && s.colStart === e.colStart && s.colEnd === e.colEnd, Sl = (s, e) => !(!s || !e || s.colStart > e.colEnd || e.colStart > s.colEnd || s.rowStart > e.rowEnd || e.rowStart > s.rowEnd), bc = (s, e) => {
|
|
301
301
|
if (s === e) return !0;
|
|
302
302
|
if (!s || !e || s.length !== e.length) return !1;
|
|
303
303
|
for (let t = 0; t < s.length; t++) if (!_l(s[t], e[t])) return !1;
|
|
@@ -830,8 +830,8 @@ class $y {
|
|
|
830
830
|
await this._promise;
|
|
831
831
|
}
|
|
832
832
|
}
|
|
833
|
-
var
|
|
834
|
-
(Oc =
|
|
833
|
+
var $e, Oc;
|
|
834
|
+
(Oc = $e || ($e = {})).resolveTypedUpdates = (s, e, t, n) => {
|
|
835
835
|
if (s === null) return s;
|
|
836
836
|
if (s === void 0) return n;
|
|
837
837
|
let r = s;
|
|
@@ -1625,7 +1625,7 @@ class Uy extends Vf {
|
|
|
1625
1625
|
}
|
|
1626
1626
|
const ko = () => {
|
|
1627
1627
|
try {
|
|
1628
|
-
return "0.3.
|
|
1628
|
+
return "0.3.4";
|
|
1629
1629
|
} catch {
|
|
1630
1630
|
return "";
|
|
1631
1631
|
}
|
|
@@ -1652,7 +1652,7 @@ const ko = () => {
|
|
|
1652
1652
|
} catch {
|
|
1653
1653
|
throw new Error("Invalid license key.");
|
|
1654
1654
|
}
|
|
1655
|
-
}, Uc = (s) => ({ licensee: () => "Evaluation License", expiration: () => null, domains: () => [fi()], developerCount: () => 1, cpuCount: () => 0, type: () => "eval", isEval: () => !0, exceptions: () => [], isValidFor: () => !0, isValid: () => !1, features: () => Object.freeze({}), keyFrom: () => s, getBuildVersion: ko, getBuildDate: zs }),
|
|
1655
|
+
}, Uc = (s) => ({ licensee: () => "Evaluation License", expiration: () => null, domains: () => [fi()], developerCount: () => 1, cpuCount: () => 0, type: () => "eval", isEval: () => !0, exceptions: () => [], isValidFor: () => !0, isValid: () => !1, features: () => Object.freeze({}), keyFrom: () => s, getBuildVersion: ko, getBuildDate: zs }), je = { promise: null, details: null, bannerPrinted: !1, detailsPrinted: !1, licenseKey: null, keyFrom: null };
|
|
1656
1656
|
let ia = !1, Wc = !1;
|
|
1657
1657
|
const qc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), xg = new class {
|
|
1658
1658
|
constructor() {
|
|
@@ -1660,11 +1660,11 @@ const qc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), xg = new class {
|
|
|
1660
1660
|
}
|
|
1661
1661
|
async setLicenseKey(s, e = !1) {
|
|
1662
1662
|
if (!s || s.startsWith("visit ") || s.startsWith("email ") || s.startsWith("trial") || s.startsWith("eval")) return ia = !0, await this._validate(!0);
|
|
1663
|
-
if (ia = !1, !e &&
|
|
1663
|
+
if (ia = !1, !e && je.licenseKey) {
|
|
1664
1664
|
const n = await this._validate();
|
|
1665
1665
|
if (n.isValid() && !n.isEval()) return n;
|
|
1666
1666
|
}
|
|
1667
|
-
|
|
1667
|
+
je.licenseKey = s, je.keyFrom = "setLicenseKey", je.details = null, je.promise = null;
|
|
1668
1668
|
const t = await this._validate();
|
|
1669
1669
|
if (!t.isValid()) throw await this._print(!0), new Error("Invalid license key.");
|
|
1670
1670
|
if (F.isNode() && (await (async () => {
|
|
@@ -1674,9 +1674,9 @@ const qc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), xg = new class {
|
|
|
1674
1674
|
return t;
|
|
1675
1675
|
}
|
|
1676
1676
|
async _validate(s = !1) {
|
|
1677
|
-
if (
|
|
1677
|
+
if (je.promise || (this.__proto__.valueFv || (this.__proto__.valueFv = new Error("FV")), je.promise)) return je.promise;
|
|
1678
1678
|
let e = null;
|
|
1679
|
-
|
|
1679
|
+
je.promise = new Promise((i) => {
|
|
1680
1680
|
e = i;
|
|
1681
1681
|
});
|
|
1682
1682
|
let t, n = null;
|
|
@@ -1705,7 +1705,7 @@ const qc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), xg = new class {
|
|
|
1705
1705
|
}
|
|
1706
1706
|
var l;
|
|
1707
1707
|
};
|
|
1708
|
-
|
|
1708
|
+
je.licenseKey && (n = await r(je.keyFrom, je.licenseKey));
|
|
1709
1709
|
let o = !1;
|
|
1710
1710
|
if (ia && (o = !0, n = Uc("Eval License Key")), !n)
|
|
1711
1711
|
if (F.isNode()) {
|
|
@@ -1740,16 +1740,16 @@ const qc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), xg = new class {
|
|
|
1740
1740
|
}
|
|
1741
1741
|
!n && Gc() && (o = !0);
|
|
1742
1742
|
}
|
|
1743
|
-
if (!n && o && (n = Uc("No License Key")), !n && t && (n = t), n || (n = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => !1, exceptions: () => ["No license provided"], isValidFor: (i) => !1, isValid: () => !1, features: () => Object.freeze({}), keyFrom: () => "No key", getBuildVersion: ko, getBuildDate: zs }),
|
|
1743
|
+
if (!n && o && (n = Uc("No License Key")), !n && t && (n = t), n || (n = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => !1, exceptions: () => ["No license provided"], isValidFor: (i) => !1, isValid: () => !1, features: () => Object.freeze({}), keyFrom: () => "No key", getBuildVersion: ko, getBuildDate: zs }), je.details = n, e(n), s && !(je.bannerPrinted && je.detailsPrinted) && (o || n.exceptions().length > 0 || n.features()?.pb)) {
|
|
1744
1744
|
if (Wc) return void setTimeout(() => {
|
|
1745
1745
|
this._print(!1, !1);
|
|
1746
1746
|
}, 8e3);
|
|
1747
1747
|
await this._print(!1, !1);
|
|
1748
1748
|
}
|
|
1749
|
-
return
|
|
1749
|
+
return je.details;
|
|
1750
1750
|
}
|
|
1751
1751
|
async _printBanner(s) {
|
|
1752
|
-
return
|
|
1752
|
+
return je.bannerPrinted = !0, await this.getDetails(), await (async (e) => {
|
|
1753
1753
|
const t = e ? console.log : F.consoleWithNoSource, n = `%c
|
|
1754
1754
|
███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗
|
|
1755
1755
|
██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║
|
|
@@ -1762,7 +1762,7 @@ const qc = "cil.lxteehs".split("").reduce((s, e) => e + s, ""), xg = new class {
|
|
|
1762
1762
|
})(s), Promise.resolve();
|
|
1763
1763
|
}
|
|
1764
1764
|
async _printDetails(s = !1, e = !1, t = !1) {
|
|
1765
|
-
|
|
1765
|
+
je.detailsPrinted = !0;
|
|
1766
1766
|
const n = await this.getDetails();
|
|
1767
1767
|
await (async (r, o = !1, i = !1, a = !1) => {
|
|
1768
1768
|
let l;
|
|
@@ -1783,7 +1783,8 @@ KeyFrom: '${r.keyFrom()}'`), await c(`${l}`, ...h), Promise.resolve();
|
|
|
1783
1783
|
})(n, s, e, t);
|
|
1784
1784
|
}
|
|
1785
1785
|
async _print(s, e) {
|
|
1786
|
-
|
|
1786
|
+
if (!s && (je.bannerPrinted || je.detailsPrinted)) return;
|
|
1787
|
+
je.bannerPrinted = !0, je.detailsPrinted = !0, await this._printBanner(s);
|
|
1787
1788
|
const t = F.isNode(), n = s || t ? console.log : F.consoleWithNoSource;
|
|
1788
1789
|
t && n(""), await this._printDetails(s, e), n("");
|
|
1789
1790
|
}
|
|
@@ -1794,7 +1795,7 @@ KeyFrom: '${r.keyFrom()}'`), await c(`${l}`, ...h), Promise.resolve();
|
|
|
1794
1795
|
return this._print(!0, s);
|
|
1795
1796
|
}
|
|
1796
1797
|
wasPrinted() {
|
|
1797
|
-
return
|
|
1798
|
+
return je.bannerPrinted && je.detailsPrinted;
|
|
1798
1799
|
}
|
|
1799
1800
|
suppressPrint(s) {
|
|
1800
1801
|
Wc = !0;
|
|
@@ -6754,10 +6755,10 @@ var bi;
|
|
|
6754
6755
|
}
|
|
6755
6756
|
s.IteratorInstance = t;
|
|
6756
6757
|
})(bi || (bi = {}));
|
|
6757
|
-
const Ln = (s, e =
|
|
6758
|
+
const Ln = (s, e = Ve.Right, t = null) => {
|
|
6758
6759
|
if (!s) return s;
|
|
6759
6760
|
if (s.length === 0) return [];
|
|
6760
|
-
const n = e ===
|
|
6761
|
+
const n = e === Ve.Right, r = e === Ve.Left, o = e === Ve.Up, i = e === Ve.Down;
|
|
6761
6762
|
return s.sort((a, l) => {
|
|
6762
6763
|
if (!a && !l) return 0;
|
|
6763
6764
|
if (a && !l) return -1;
|
|
@@ -7339,11 +7340,11 @@ class Ie {
|
|
|
7339
7340
|
return this._getReadTree().all(e);
|
|
7340
7341
|
}
|
|
7341
7342
|
shift(e) {
|
|
7342
|
-
const t = e.range, n = e.direction, r = e.cloneIfUpdate ?? !1, o = e.coordValidator ?? null, i = e.onShift ?? null, a = n ===
|
|
7343
|
+
const t = e.range, n = e.direction, r = e.cloneIfUpdate ?? !1, o = e.coordValidator ?? null, i = e.onShift ?? null, a = n === Ve.Left || n === Ve.Right, l = a ? ue.Column : ue.Row, c = n === Ve.Up || n === Ve.Left ? -1 : 1, h = (a ? t.colEnd - t.colStart + 1 : t.rowEnd - t.rowStart + 1) * c, u = [], d = [];
|
|
7343
7344
|
let g = null;
|
|
7344
7345
|
const m = this.getBoundingCoords();
|
|
7345
7346
|
if (!m) return this;
|
|
7346
|
-
const f = n ===
|
|
7347
|
+
const f = n === Ve.Up || n === Ve.Left ? Ve.Right : Ve.Left, p = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), S = this._options?.updateEntryOptions, E = S?.isMergeOnShift ?? !1, y = S?.isSplitOnExpand ?? !1, b = S?.isTrailingEdge ?? !1, w = n === Ve.Left || n === Ve.Up, v = S?.getSplit ?? Ys, I = S?.getShifted, x = S?.onShifted, C = S?.onRemoved, A = S?.onMerged, R = S?.onUpdated, M = x ? [] : null, N = C ? [] : null, O = R ? [] : null;
|
|
7347
7348
|
this.visitRanges({ colStart: t.colStart - (a ? 1 : 0), rowStart: t.rowStart - (a ? 0 : 1), colEnd: a ? m.colEnd : t.colEnd, rowEnd: a ? t.rowEnd : m.rowEnd }, (H) => {
|
|
7348
7349
|
if ((a ? H.colEnd < t.colStart : H.rowEnd < t.rowStart) && !b) return;
|
|
7349
7350
|
const B = f0(t, H, a ? Tr.Column : Tr.Row), z = H.group;
|
|
@@ -7353,7 +7354,7 @@ class Ie {
|
|
|
7353
7354
|
if (G === null) return g = D.unionRanges(g, H), N && N.push(H), void u.push(H);
|
|
7354
7355
|
}
|
|
7355
7356
|
let j = { ...H };
|
|
7356
|
-
n ===
|
|
7357
|
+
n === Ve.Right ? (t.colStart <= j.colStart && (j.colStart += h), j.colEnd += h) : n === Ve.Left ? t.colStart < j.colStart ? (j.colStart = Math.max(j.colStart + h, t.colStart), j.colEnd = Math.max(j.colEnd + h, j.colStart - 1)) : j.colEnd += Math.max(h, t.colStart - j.colEnd - 1) : n === Ve.Down ? (t.rowStart <= j.rowStart && (j.rowStart += h), j.rowEnd += h) : n === Ve.Up && (t.rowStart < j.rowStart ? (j.rowStart = Math.max(j.rowStart + h, t.rowStart), j.rowEnd = Math.max(j.rowEnd + h, t.rowStart - 1)) : j.rowEnd += Math.max(h, t.rowStart - j.rowEnd - 1)), (j.colEnd < j.colStart || j.rowEnd < j.rowStart) && (j = null);
|
|
7357
7358
|
const V = gu(H, j, { after: j, before: H, intersect: t, isSplit: B, orientation: l, amount: h }, I, v, i, y && h > 0);
|
|
7358
7359
|
if (V === void 0) return;
|
|
7359
7360
|
const $ = V === null ? [j] : V, U = $.length;
|
|
@@ -7795,7 +7796,7 @@ const p0 = (s, e, t, n, r, o, i) => {
|
|
|
7795
7796
|
V && p.push({ ...j, value: V });
|
|
7796
7797
|
}
|
|
7797
7798
|
}
|
|
7798
|
-
},
|
|
7799
|
+
}, Ve.Right), { inserts: p, removes: _ };
|
|
7799
7800
|
}, Lt = [null, null], _0 = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Nt = (s = Number.MIN_SAFE_INTEGER, e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER, n = Number.MAX_SAFE_INTEGER, r, o, i) => {
|
|
7800
7801
|
if (o && (s !== Number.MIN_SAFE_INTEGER && s < o.colStart || e !== Number.MIN_SAFE_INTEGER && e < o.rowStart || t !== Number.MAX_SAFE_INTEGER && t > o.colEnd || n !== Number.MAX_SAFE_INTEGER && n > o.rowEnd)) throw new Pe();
|
|
7801
7802
|
return i && (s = Math.max(i.colStart, s), e = Math.max(i.rowStart, e), t = Math.min(i.colEnd, t), n = Math.min(i.rowEnd, n), t < s || n < e) ? null : (oo.majorStart = r ? s : e, oo.majorEnd = r ? t : n, oo.minorStart = r ? e : s, oo.minorEnd = r ? n : t, oo);
|
|
@@ -8104,8 +8105,8 @@ class on {
|
|
|
8104
8105
|
f = e.reverse ?? !1, h = /* @__PURE__ */ ((v) => typeof v != "boolean" ? v : v === !0 ? { done: !1, value: [{ colIndex: -1, rowIndex: -1 }, null] } : void 0)(e.reuseResult), l = t ? e.processColumnSkip : e.processRowSkip, l && (f ? d = l(d, f) : u = l(u, f)), c = t ? e.processRowSkip : e.processColumnSkip, c && (f ? m = c(d, f) : g = c(g, f));
|
|
8105
8106
|
}
|
|
8106
8107
|
if (!i) return ot;
|
|
8107
|
-
r || u !== d || (r = !0),
|
|
8108
|
-
let p = this._major.entries(
|
|
8108
|
+
r || u !== d || (r = !0), Ue.bounds.min = u, Ue.bounds.max = d, Ue.reverse = f, Ue.processSkip = l, Ue.reuseResult = Ro;
|
|
8109
|
+
let p = this._major.entries(Ue), _ = _u();
|
|
8109
8110
|
const S = (w) => {
|
|
8110
8111
|
if (!w.nextActive) return;
|
|
8111
8112
|
const v = (C) => {
|
|
@@ -8238,8 +8239,8 @@ class on {
|
|
|
8238
8239
|
const b = e[p], w = b[0], v = b[1], I = new Un(f);
|
|
8239
8240
|
g(I, v, w);
|
|
8240
8241
|
}, S = this._major;
|
|
8241
|
-
|
|
8242
|
-
const E = S.entries(
|
|
8242
|
+
Ue.bounds.min = t, Ue.bounds.max = n, Ue.reverse = !1, Ue.processSkip = null, Ue.reuseResult = Ro;
|
|
8243
|
+
const E = S.entries(Ue);
|
|
8243
8244
|
let y = E.next();
|
|
8244
8245
|
for (; !y.done; ) {
|
|
8245
8246
|
const b = y.value, w = b[0];
|
|
@@ -8285,16 +8286,16 @@ class on {
|
|
|
8285
8286
|
let f = !1, p = 0;
|
|
8286
8287
|
const _ = this._major;
|
|
8287
8288
|
if (c <= g && h >= m) {
|
|
8288
|
-
|
|
8289
|
-
const I = _.entries(
|
|
8289
|
+
Ue.bounds.min = a, Ue.bounds.max = l;
|
|
8290
|
+
const I = _.entries(Ue);
|
|
8290
8291
|
let x = I.next();
|
|
8291
8292
|
for (; !x.done; )
|
|
8292
8293
|
p -= x.value[1].getCount(), x = I.next();
|
|
8293
8294
|
return _.delete(a, l - a + 1), this._count += p, this._dataCoords = null, p !== 0;
|
|
8294
8295
|
}
|
|
8295
8296
|
const S = [], E = this._isShared, y = [];
|
|
8296
|
-
|
|
8297
|
-
const b = _.entries(
|
|
8297
|
+
Ue.bounds.min = a, Ue.bounds.max = l, Bt.reverse = !1, Bt.processSkip = null, Bt.reuseResult = Ro;
|
|
8298
|
+
const b = _.entries(Ue);
|
|
8298
8299
|
let w = b.next();
|
|
8299
8300
|
for (; !w.done; ) {
|
|
8300
8301
|
const I = w.value, x = I[0];
|
|
@@ -8323,7 +8324,7 @@ class on {
|
|
|
8323
8324
|
}
|
|
8324
8325
|
shift(e, t) {
|
|
8325
8326
|
if (!e || !t) throw new Xt();
|
|
8326
|
-
const n = this._isColumn, r = this._maxCoords, o = t ===
|
|
8327
|
+
const n = this._isColumn, r = this._maxCoords, o = t === Ve.Right || t === Ve.Down, i = t === Ve.Left || t === Ve.Right, a = Nt(e.colStart, e.rowStart, e.colEnd, e.rowEnd, n, r, e);
|
|
8327
8328
|
if (!a) return !1;
|
|
8328
8329
|
const l = a.majorStart, c = a.majorEnd, h = a.minorStart, u = a.minorEnd, d = this.getCoords();
|
|
8329
8330
|
if (!d) return !1;
|
|
@@ -8333,10 +8334,10 @@ class on {
|
|
|
8333
8334
|
if (!o && (E *= -1, D.isRangeWithinRange(d, e))) return this.clear(), !0;
|
|
8334
8335
|
let y = 0;
|
|
8335
8336
|
const b = this._major, w = [];
|
|
8336
|
-
if (
|
|
8337
|
+
if (Ue.bounds.min = l, Ue.bounds.max = S ? Number.MAX_SAFE_INTEGER : c, Bt.reverse = !o, Bt.processSkip = null, Bt.reuseResult = Ro, S && _) {
|
|
8337
8338
|
if (!o) {
|
|
8338
|
-
|
|
8339
|
-
const j = b.entries(
|
|
8339
|
+
Ue.bounds.max = c;
|
|
8340
|
+
const j = b.entries(Ue);
|
|
8340
8341
|
let V = j.next();
|
|
8341
8342
|
for (; !V.done; )
|
|
8342
8343
|
y -= V.value[1].getCount(), V = j.next();
|
|
@@ -8349,7 +8350,7 @@ class on {
|
|
|
8349
8350
|
o || (x = Number.MAX_SAFE_INTEGER, C = Number.MIN_SAFE_INTEGER);
|
|
8350
8351
|
let A = Number.MAX_SAFE_INTEGER;
|
|
8351
8352
|
r && (A = i ? r.colEnd : r.rowEnd);
|
|
8352
|
-
const R = /* @__PURE__ */ new Set(), M = S ? /* @__PURE__ */ new Map() : null, N = [], O = b.entries(
|
|
8353
|
+
const R = /* @__PURE__ */ new Set(), M = S ? /* @__PURE__ */ new Map() : null, N = [], O = b.entries(Ue), P = { bounds: { min: h, max: u } };
|
|
8353
8354
|
let L = O.next();
|
|
8354
8355
|
for (; !L.done; ) {
|
|
8355
8356
|
const z = L.value, j = z[0], V = z[1].clone(), $ = V.getCoords(), U = $.min, G = $.max;
|
|
@@ -8466,7 +8467,7 @@ class on {
|
|
|
8466
8467
|
on || (on = {});
|
|
8467
8468
|
const E0 = 12;
|
|
8468
8469
|
Object.seal({ done: !1, value: null });
|
|
8469
|
-
const kn = [-1, -1, null], Cm = Object.seal({ done: !1, value: [-1, null] }), Ro = Object.seal({ done: !1, value: [-1, null] }), Bt = { bounds: { min: -1, max: -1 }, reverse: !1, processSkip: null, reuseResult: Cm },
|
|
8470
|
+
const kn = [-1, -1, null], Cm = Object.seal({ done: !1, value: [-1, null] }), Ro = Object.seal({ done: !1, value: [-1, null] }), Bt = { bounds: { min: -1, max: -1 }, reverse: !1, processSkip: null, reuseResult: Cm }, Ue = { bounds: { min: -1, max: -1 }, reverse: !1, processSkip: null, reuseResult: Ro }, _u = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: !1, nextMinorIndex: -1, nextActive: !1, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
|
|
8470
8471
|
class Ci {
|
|
8471
8472
|
constructor(e) {
|
|
8472
8473
|
if (this._l = 0, this._at = null, this._dt = Su.Undefined, this._a32 = null, this._a64 = null, this._cv = null, this._vt = null, this._vi32 = null, this._vi64 = null, this._vf32 = null, this._vf64 = null, !e) throw new Error("options is required");
|
|
@@ -10397,8 +10398,8 @@ const li = (s) => {
|
|
|
10397
10398
|
t && o !== "]" && o !== '"' ? e += o : o === '"' ? (e += "\\0022", t = !t) : ["[", "]", ",", "#", ".", "@", "/", ":", ";", "-", " "].includes(o) ? (e += "\\" + o, o === "[" ? t = !0 : o === "]" && (t = !1)) : ["(", ")"].includes(o) ? e += n === "_" ? "\\" + o : "\\\\\\" + o : ["$"].includes(o) ? e += "\\0022" + o + "\\0022" : e += o, n = o;
|
|
10398
10399
|
}
|
|
10399
10400
|
return '"' + e + '"';
|
|
10400
|
-
}, q0 = "Thin", J0 = "Hairline", X0 = "Extra Light", K0 = "Ultra Light", Y0 = "Light", Yu = "Normal", Z0 = "Regular", Q0 = "Medium", eS = "Semi Bold", tS = "Demi Bold", nS = "Bold", rS = "Extra Bold", oS = "Ultra Bold", sS = "Black", iS = "Heavy", aS = "Extra Black", lS = "Ultra Black", cS = "lighter", hS = "normal", uS = "bold", dS = "bolder",
|
|
10401
|
-
|
|
10401
|
+
}, q0 = "Thin", J0 = "Hairline", X0 = "Extra Light", K0 = "Ultra Light", Y0 = "Light", Yu = "Normal", Z0 = "Regular", Q0 = "Medium", eS = "Semi Bold", tS = "Demi Bold", nS = "Bold", rS = "Extra Bold", oS = "Ultra Bold", sS = "Black", iS = "Heavy", aS = "Extra Black", lS = "Ultra Black", cS = "lighter", hS = "normal", uS = "bold", dS = "bolder", We = /* @__PURE__ */ new Map();
|
|
10402
|
+
We.set(F.textToKey(q0), 100), We.set(F.textToKey(J0), 100), We.set(F.textToKey(X0), 200), We.set(F.textToKey(K0), 200), We.set(F.textToKey(Y0), 300), We.set(F.textToKey(Yu), 400), We.set(F.textToKey(Z0), 400), We.set(F.textToKey(Q0), 500), We.set(F.textToKey(eS), 600), We.set(F.textToKey(tS), 600), We.set(F.textToKey(Yu), 400), We.set(F.textToKey(nS), 700), We.set(F.textToKey(rS), 800), We.set(F.textToKey(oS), 800), We.set(F.textToKey(sS), 900), We.set(F.textToKey(iS), 900), We.set(F.textToKey(aS), 950), We.set(F.textToKey(lS), 950), We.set(F.textToKey(cS), 100), We.set(F.textToKey(hS), 400), We.set(F.textToKey(uS), 700), We.set(F.textToKey(dS), 700);
|
|
10402
10403
|
const gS = "xx-small", mS = "x-small", fS = "small", pS = "medium", _S = "large", SS = "x-large", wS = "xx-large", yS = "xxx-large", ES = "smaller", bS = "larger", vS = "math", CS = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), zt = /* @__PURE__ */ new Map();
|
|
10403
10404
|
zt.set(F.textToKey(gS), (s) => 0.4 * s), zt.set(F.textToKey(mS), (s) => 0.5 * s), zt.set(F.textToKey(fS), (s) => 0.6 * s), zt.set(F.textToKey(pS), (s) => s), zt.set(F.textToKey(_S), (s) => 1.1 * s), zt.set(F.textToKey(SS), (s) => 1.25 * s), zt.set(F.textToKey(wS), (s) => 1.5 * s), zt.set(F.textToKey(yS), (s) => 2 * s), zt.set(F.textToKey(ES), (s) => 0.9 * s), zt.set(F.textToKey(bS), (s) => 1.1 * s), zt.set(F.textToKey(vS), (s) => s);
|
|
10404
10405
|
const Hr = (s, e = 11, t = "pt") => {
|
|
@@ -10538,7 +10539,7 @@ const Km = (s, e) => {
|
|
|
10538
10539
|
e?.toJSON && (e = e.toJSON());
|
|
10539
10540
|
const n = Z.BuiltInSheetPattern.MediumGray;
|
|
10540
10541
|
return e?.type === Z.Type.Pattern ? { ...e, ...s } : e?.type === Z.Type.Solid ? { patternType: n, ...s, foreground: e?.color ?? T.Named.WindowText, background: T.Scheme.Bg1 } : e?.type === Z.Type.Gradient ? { patternType: n, ...s, foreground: e?.stops?.[0]?.color ?? T.Named.WindowText, background: e?.stops?.[1]?.color ?? T.Scheme.Bg1 } : s ? { type: Z.Type.Pattern, patternType: Z.BuiltInSheetPattern.Solid, foreground: T.Named.WindowText, background: T.Scheme.Bg1, ...s } : null;
|
|
10541
|
-
}, properties: { foreground: Go, background: Go } },
|
|
10542
|
+
}, properties: { foreground: Go, background: Go } }, Je = { properties: { font: { shorthand: (s, e) => {
|
|
10542
10543
|
if (typeof s == "string") {
|
|
10543
10544
|
const t = li(s);
|
|
10544
10545
|
if (t) {
|
|
@@ -10562,7 +10563,7 @@ const Km = (s, e) => {
|
|
|
10562
10563
|
let r = 400;
|
|
10563
10564
|
if (r = typeof n == "number" ? n : parseFloat(n), !isNaN(r)) return r;
|
|
10564
10565
|
if (typeof n == "string") {
|
|
10565
|
-
const o = F.textToKey(n), i =
|
|
10566
|
+
const o = F.textToKey(n), i = We.get(o);
|
|
10566
10567
|
if (i) return i;
|
|
10567
10568
|
}
|
|
10568
10569
|
return r;
|
|
@@ -10593,7 +10594,7 @@ const Km = (s, e) => {
|
|
|
10593
10594
|
return t !== void 0 ? t : s;
|
|
10594
10595
|
}
|
|
10595
10596
|
return typeof s == "number" ? sc(s) : null;
|
|
10596
|
-
} } } }, GS = { properties: { style:
|
|
10597
|
+
} } } }, GS = { properties: { style: Je } }, US = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: F.EmptyArray, spacingChars: F.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: F.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: !1, asDate: null, isDateFormat: !1, isTimeFormat: !1, isDate1904: !1 }), Ym = (s, e, t, n, r, o = !1) => {
|
|
10597
10598
|
if (s == null) return US;
|
|
10598
10599
|
let i = "", a = null, l = null, c = null;
|
|
10599
10600
|
if (t === J.Error) i = s.getLabel();
|
|
@@ -11104,7 +11105,7 @@ class st {
|
|
|
11104
11105
|
}
|
|
11105
11106
|
cloneWithUpdate(e) {
|
|
11106
11107
|
if (e === void 0) return this;
|
|
11107
|
-
const t = this._c, n = this._r, r = this._p, o =
|
|
11108
|
+
const t = this._c, n = this._r, r = this._p, o = $e.resolveTypedUpdates(e, Je, t, r);
|
|
11108
11109
|
return new st(t, n, o);
|
|
11109
11110
|
}
|
|
11110
11111
|
copyTo(e, t) {
|
|
@@ -11165,7 +11166,7 @@ class st {
|
|
|
11165
11166
|
if (_ > 1 && !Jn(v, c[w])) return;
|
|
11166
11167
|
const I = S === 1 ? h[b] : h[w];
|
|
11167
11168
|
if (S > 1 && !Jn(I, h[w]) || !Jn(v, I)) return;
|
|
11168
|
-
const x = { border: { [d]: c[d], [g]: c[g], [E]: c[E], [w]: v, [b]: c[b], [y]: h[y] } }, C =
|
|
11169
|
+
const x = { border: { [d]: c[d], [g]: c[g], [E]: c[E], [w]: v, [b]: c[b], [y]: h[y] } }, C = $e.resolveTypedUpdates(x, Je, u, o);
|
|
11169
11170
|
return new st(u, t, C);
|
|
11170
11171
|
}
|
|
11171
11172
|
return new st(u, t, this._p);
|
|
@@ -11354,13 +11355,13 @@ class gw {
|
|
|
11354
11355
|
}
|
|
11355
11356
|
let a = null;
|
|
11356
11357
|
const l = this._table?.getPropertiesAt(e, t, n);
|
|
11357
|
-
l && (a = a ?
|
|
11358
|
+
l && (a = a ? $e.resolveTypedUpdates(l, Je, i, a) : l), r && (a = a ? $e.resolveTypedUpdates(r, Je, i, a) : r);
|
|
11358
11359
|
const c = this._conditionals;
|
|
11359
11360
|
if (c) for (let h = 0; h < c.length; h++) {
|
|
11360
11361
|
const u = c[h].getPropertiesAt(e, t, n);
|
|
11361
|
-
u && (a = a ?
|
|
11362
|
+
u && (a = a ? $e.resolveTypedUpdates(u, Je, i, a) : u);
|
|
11362
11363
|
}
|
|
11363
|
-
return o && (a = a ?
|
|
11364
|
+
return o && (a = a ? $e.resolveTypedUpdates(o, Je, i, a) : o), a;
|
|
11364
11365
|
}
|
|
11365
11366
|
cloneWithUpdate(e) {
|
|
11366
11367
|
return (this._rs.directStyle ?? this._styles.getNormalRanged()).cloneWithUpdate(e);
|
|
@@ -12012,7 +12013,7 @@ const Cn = (s, e) => {
|
|
|
12012
12013
|
for (let n = 0; n < t; n++) e.push(s.ranges[n]);
|
|
12013
12014
|
} else s.cell && e.push(D.cellToRange(s.cell));
|
|
12014
12015
|
return e;
|
|
12015
|
-
},
|
|
12016
|
+
}, He = (s, e) => {
|
|
12016
12017
|
if (!s || s.length === 0) return null;
|
|
12017
12018
|
let t = s.length - 1;
|
|
12018
12019
|
const n = s[t], r = s[0];
|
|
@@ -12897,7 +12898,7 @@ class Iw {
|
|
|
12897
12898
|
for (let i = 0; i < o; i++) {
|
|
12898
12899
|
const a = r[i], l = e[a];
|
|
12899
12900
|
if (!l || !F.isObject(l)) continue;
|
|
12900
|
-
const c =
|
|
12901
|
+
const c = $e.resolveTypedUpdates(Object.freeze(l), Je, n);
|
|
12901
12902
|
t[a] = c;
|
|
12902
12903
|
}
|
|
12903
12904
|
return Object.freeze(t);
|
|
@@ -12930,7 +12931,7 @@ class Iw {
|
|
|
12930
12931
|
const A = { rowIndex: h, colIndex: I }, R = { rowStart: p, rowEnd: c - S - 1, colStart: 0, colEnd: Math.min(l - u, x ? w : v) };
|
|
12931
12932
|
x && I === 0 && u > 0 && C.border?.left && o.secondColumnStripe?.border.right && (C = { ...C }, C.border = { ...C.border }, delete C.border.left), x && I === w - 1 && u < l - 1 && C.border?.right && o.secondColumnStripe?.border.left && (C = { ...C }, C.border = { ...C.border }, delete C.border.right);
|
|
12932
12933
|
const M = C.border ? Ut(C, A, R) : C;
|
|
12933
|
-
m =
|
|
12934
|
+
m = $e.resolveTypedUpdates(M, Je, r, m);
|
|
12934
12935
|
}
|
|
12935
12936
|
}
|
|
12936
12937
|
if (b && g.showRowStripes) {
|
|
@@ -12943,40 +12944,40 @@ class Iw {
|
|
|
12943
12944
|
const R = { colIndex: u, rowIndex: x }, M = { colStart: 0, colEnd: l - 1, rowStart: 0, rowEnd: Math.min(c - h, C ? v : I) };
|
|
12944
12945
|
C && x === 0 && h > w && A.border?.top && o.secondRowStripe?.border.bottom && (A = { ...A }, A.border = { ...A.border }, delete A.border.top), C && x === v - 1 && h < c - 1 && A.border?.bottom && o.secondRowStripe?.border.top && (A = { ...A }, A.border = { ...A.border }, delete A.border.bottom);
|
|
12945
12946
|
const N = A.border ? Ut(A, R, M) : A;
|
|
12946
|
-
m =
|
|
12947
|
+
m = $e.resolveTypedUpdates(N, Je, r, m);
|
|
12947
12948
|
}
|
|
12948
12949
|
}
|
|
12949
12950
|
if (E && o.lastColumn) {
|
|
12950
12951
|
let w = o.lastColumn;
|
|
12951
|
-
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: c - 1, colStart: l - 1, colEnd: l - 1 })), m =
|
|
12952
|
+
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: c - 1, colStart: l - 1, colEnd: l - 1 })), m = $e.resolveTypedUpdates(w, Je, r, m);
|
|
12952
12953
|
}
|
|
12953
12954
|
if (y && o.firstColumn) {
|
|
12954
12955
|
let w = o.firstColumn;
|
|
12955
|
-
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: c - 1, colStart: 0, colEnd: 0 })), m =
|
|
12956
|
+
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: c - 1, colStart: 0, colEnd: 0 })), m = $e.resolveTypedUpdates(w, Je, r, m);
|
|
12956
12957
|
}
|
|
12957
12958
|
if (f && o.headerRow) {
|
|
12958
12959
|
let w = o.headerRow;
|
|
12959
|
-
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: p - 1, colStart: 0, colEnd: l - 1 })), m =
|
|
12960
|
+
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: p - 1, colStart: 0, colEnd: l - 1 })), m = $e.resolveTypedUpdates(w, Je, r, m);
|
|
12960
12961
|
}
|
|
12961
12962
|
if (_ && o.totalRow) {
|
|
12962
12963
|
let w = o.totalRow;
|
|
12963
|
-
w.border && (w = Ut(w, d, { rowStart: c - S, rowEnd: c - 1, colStart: 0, colEnd: l - 1 })), m =
|
|
12964
|
+
w.border && (w = Ut(w, d, { rowStart: c - S, rowEnd: c - 1, colStart: 0, colEnd: l - 1 })), m = $e.resolveTypedUpdates(w, Je, r, m);
|
|
12964
12965
|
}
|
|
12965
12966
|
if (f && y && o.firstHeaderCell) {
|
|
12966
12967
|
let w = o.firstHeaderCell;
|
|
12967
|
-
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: p - 1, colStart: 0, colEnd: 0 })), m =
|
|
12968
|
+
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: p - 1, colStart: 0, colEnd: 0 })), m = $e.resolveTypedUpdates(w, Je, r, m);
|
|
12968
12969
|
}
|
|
12969
12970
|
if (f && E && o.lastHeaderCell) {
|
|
12970
12971
|
let w = o.lastHeaderCell;
|
|
12971
|
-
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: p - 1, colStart: l - 1, colEnd: l - 1 })), m =
|
|
12972
|
+
w.border && (w = Ut(w, d, { rowStart: 0, rowEnd: p - 1, colStart: l - 1, colEnd: l - 1 })), m = $e.resolveTypedUpdates(w, Je, r, m);
|
|
12972
12973
|
}
|
|
12973
12974
|
if (_ && y && o.firstTotalCell) {
|
|
12974
12975
|
let w = o.firstTotalCell;
|
|
12975
|
-
w.border && (w = Ut(w, d, { rowStart: c - S, rowEnd: c - 1, colStart: 0, colEnd: 0 })), m =
|
|
12976
|
+
w.border && (w = Ut(w, d, { rowStart: c - S, rowEnd: c - 1, colStart: 0, colEnd: 0 })), m = $e.resolveTypedUpdates(w, Je, r, m);
|
|
12976
12977
|
}
|
|
12977
12978
|
if (_ && E && o.lastTotalCell) {
|
|
12978
12979
|
let w = o.lastTotalCell;
|
|
12979
|
-
w.border && (w = Ut(w, d, { rowStart: c - S, rowEnd: c - 1, colStart: l - 1, colEnd: l - 1 })), m =
|
|
12980
|
+
w.border && (w = Ut(w, d, { rowStart: c - S, rowEnd: c - 1, colStart: l - 1, colEnd: l - 1 })), m = $e.resolveTypedUpdates(w, Je, r, m);
|
|
12980
12981
|
}
|
|
12981
12982
|
return f && o.headerRow && n.getColumnFilter(u) && !n.getColumnFilter(u).hasHiddenButton() && (m.insets = { right: 15 }), m;
|
|
12982
12983
|
}
|
|
@@ -12992,7 +12993,7 @@ class pd {
|
|
|
12992
12993
|
for (let i = 0; i < o; i++) {
|
|
12993
12994
|
const a = r[i], l = e[a];
|
|
12994
12995
|
if (!l || !F.isObject(l)) continue;
|
|
12995
|
-
const c =
|
|
12996
|
+
const c = $e.resolveTypedUpdates(Object.freeze(l), Je, n);
|
|
12996
12997
|
t[a] = c;
|
|
12997
12998
|
}
|
|
12998
12999
|
return Object.freeze(t);
|
|
@@ -13040,7 +13041,7 @@ class Aw extends st {
|
|
|
13040
13041
|
}
|
|
13041
13042
|
cloneWithUpdate(e) {
|
|
13042
13043
|
if (e === void 0) return this;
|
|
13043
|
-
const t = this._c, n = this._r, r =
|
|
13044
|
+
const t = this._c, n = this._r, r = $e.resolveTypedUpdates(e, Je, t, this._p);
|
|
13044
13045
|
return new st(t, n, r);
|
|
13045
13046
|
}
|
|
13046
13047
|
_createShifted(e) {
|
|
@@ -13150,7 +13151,7 @@ class ns {
|
|
|
13150
13151
|
for (let n = 0; n < e.length; n++) {
|
|
13151
13152
|
const r = e[n], o = { ...r }, i = r.named;
|
|
13152
13153
|
delete o.named;
|
|
13153
|
-
const a =
|
|
13154
|
+
const a = $e.resolveTypedUpdates(o, Je, this), l = new _d(this, { name: i, style: a }, this._hideOrRemoveNamed.bind(this), n);
|
|
13154
13155
|
i === oe.BuiltInName.Normal && (this._normalRanged = l.getRanged(), this._normalStyle = qr(this, null)), t.set(i.toLowerCase(), l);
|
|
13155
13156
|
}
|
|
13156
13157
|
}
|
|
@@ -13270,7 +13271,7 @@ class ns {
|
|
|
13270
13271
|
t && (a = (this._customCellStyles.get(r) ?? o)?._properties ?? null);
|
|
13271
13272
|
const l = Wi(0, e.style, this.getNormal());
|
|
13272
13273
|
e = { ...e, style: l };
|
|
13273
|
-
const c =
|
|
13274
|
+
const c = $e.resolveTypedUpdates(e, GS, this, a), h = new _d(this, c, this._hideOrRemoveNamed.bind(this), i);
|
|
13274
13275
|
return c.name === oe.BuiltInName.Normal && (this._normalRanged = h.getRanged(), this._normalStyle = qr(this, null)), this._customCellStyles.set(r, h), h;
|
|
13275
13276
|
}
|
|
13276
13277
|
_setCustomTableStyleInternal(e, t) {
|
|
@@ -13321,7 +13322,7 @@ class ns {
|
|
|
13321
13322
|
}
|
|
13322
13323
|
normalize(e) {
|
|
13323
13324
|
if (!e) return null;
|
|
13324
|
-
const t =
|
|
13325
|
+
const t = $e.resolveTypedUpdates(e, Je, this), n = Zm;
|
|
13325
13326
|
let r = null;
|
|
13326
13327
|
if (r = t.named ? this.getNamed(t.named)?.getRanged().getPropertiesAt(0, 0, null) : this._normalRanged.getPropertiesAt(0, 0, null), r) {
|
|
13327
13328
|
const i = { ...r };
|
|
@@ -14804,7 +14805,7 @@ class Vw {
|
|
|
14804
14805
|
async _initialize() {
|
|
14805
14806
|
const e = await xg._validate(!0), t = Gw();
|
|
14806
14807
|
this._calcScope = t, this._runtime = new $w(this._options, e);
|
|
14807
|
-
const { initializeBuiltIns: n } = await import("./
|
|
14808
|
+
const { initializeBuiltIns: n } = await import("./Dz_6lnuT_-hLIjhW.mjs"), r = this;
|
|
14808
14809
|
return this._builtInFunctions = Object.freeze(n(() => r)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
14809
14810
|
}
|
|
14810
14811
|
getBuiltInFunctions() {
|
|
@@ -14972,7 +14973,7 @@ class $w {
|
|
|
14972
14973
|
}
|
|
14973
14974
|
getVersion() {
|
|
14974
14975
|
try {
|
|
14975
|
-
const e = "0.3.
|
|
14976
|
+
const e = "0.3.4";
|
|
14976
14977
|
if (e.indexOf(".env.") === -1) return `${e}`;
|
|
14977
14978
|
} catch {
|
|
14978
14979
|
return "local";
|
|
@@ -15497,7 +15498,7 @@ class hf extends dr {
|
|
|
15497
15498
|
this._context = r;
|
|
15498
15499
|
const o = await r._initialize(), i = o.builtInFunctions;
|
|
15499
15500
|
this._functions = new cf({ transactions: this._transactions, context: r, readonlyFunctions: i });
|
|
15500
|
-
const a = await import("./
|
|
15501
|
+
const a = await import("./CUGsT94OXy_YWdBG.mjs");
|
|
15501
15502
|
this._formulaParser = new a.FormulaParser(), this._scope = o.calcScope, this._status = nt.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
15502
15503
|
} catch (e) {
|
|
15503
15504
|
throw this._status = nt.Status.Off, this._emitter.notify("onError", e), this._emitter.notify("onStatusChange"), e;
|
|
@@ -15915,7 +15916,7 @@ class Yy {
|
|
|
15915
15916
|
}
|
|
15916
15917
|
try {
|
|
15917
15918
|
const r = new ey(this._styles, this._isDate1904, n ? "HTML" : "Text"), o = await Promise.resolve(t ? ((a, l = " ") => new Promise((c, h) => {
|
|
15918
|
-
import("./
|
|
15919
|
+
import("./BstskMGyEd8lj7Zw.mjs").then((u) => u.p).then((u) => {
|
|
15919
15920
|
try {
|
|
15920
15921
|
const d = u.parse(a, { delimiter: l }).data;
|
|
15921
15922
|
d.length > 1 && (d[d.length - 1].length === 0 || d[d.length - 1].length === 1 && d[d.length - 1][0].length === 0) && d.pop(), c(d);
|
|
@@ -18373,7 +18374,7 @@ class ul {
|
|
|
18373
18374
|
}
|
|
18374
18375
|
}
|
|
18375
18376
|
async function Ud() {
|
|
18376
|
-
const { getCrypto: s } = await import("./
|
|
18377
|
+
const { getCrypto: s } = await import("./Bv-Z_nYDHkNiflic.mjs");
|
|
18377
18378
|
return s();
|
|
18378
18379
|
}
|
|
18379
18380
|
const Wd = async (s, e, ...t) => {
|
|
@@ -18625,7 +18626,7 @@ class rs {
|
|
|
18625
18626
|
} };
|
|
18626
18627
|
}
|
|
18627
18628
|
async select(e) {
|
|
18628
|
-
const t = await this._sheet._autoSelect(e ?? !0,
|
|
18629
|
+
const t = await this._sheet._autoSelect(e ?? !0, He(this.getCoords()));
|
|
18629
18630
|
return this._createRanges(t);
|
|
18630
18631
|
}
|
|
18631
18632
|
calculate() {
|
|
@@ -18904,7 +18905,7 @@ class os {
|
|
|
18904
18905
|
return n.length === 0 ? t._emptyCell : n[0][0];
|
|
18905
18906
|
}
|
|
18906
18907
|
async select(e) {
|
|
18907
|
-
const t = this._sheet, n = await t._autoSelect(e ?? !0,
|
|
18908
|
+
const t = this._sheet, n = await t._autoSelect(e ?? !0, He([this.getCoords()]));
|
|
18908
18909
|
return this._createRange(n[0]);
|
|
18909
18910
|
}
|
|
18910
18911
|
find(e, t) {
|
|
@@ -19620,9 +19621,9 @@ class Jo {
|
|
|
19620
19621
|
}
|
|
19621
19622
|
let ve = Gl(le, ne, he, pe);
|
|
19622
19623
|
if (ve === void 0) return;
|
|
19623
|
-
const
|
|
19624
|
+
const qe = ve.value;
|
|
19624
19625
|
if (ve.stringToParse) {
|
|
19625
|
-
So[0].colIndex = u ? te : ce, So[0].rowIndex = u ? ce : te, So[1] =
|
|
19626
|
+
So[0].colIndex = u ? te : ce, So[0].rowIndex = u ? ce : te, So[1] = qe, So[2] = be, ae.setState(So);
|
|
19626
19627
|
const Be = he?.parse(ve.stringToParse, ae.context), ke = Gl(Be, ne, he, pe, !0);
|
|
19627
19628
|
if (ae.clear(), ke === null) return ke;
|
|
19628
19629
|
ke !== void 0 && (ve = { ...ke });
|
|
@@ -19638,35 +19639,35 @@ class Jo {
|
|
|
19638
19639
|
ke === void 0 || ke === null && !o || q.append(te, ce, ke);
|
|
19639
19640
|
}
|
|
19640
19641
|
const Re = ve.formula;
|
|
19641
|
-
return Re === void 0 || Re === null && !o || X.append(te, ce, Re),
|
|
19642
|
+
return Re === void 0 || Re === null && !o || X.append(te, ce, Re), qe;
|
|
19642
19643
|
};
|
|
19643
19644
|
let de = -1, ge = -1;
|
|
19644
19645
|
try {
|
|
19645
19646
|
const le = a.length;
|
|
19646
|
-
for (let
|
|
19647
|
-
const Ae = a[
|
|
19647
|
+
for (let Xe = 0; Xe < le; Xe++) {
|
|
19648
|
+
const Ae = a[Xe], fe = Ae[0];
|
|
19648
19649
|
if (de >= fe) throw new De.OutOfOrderError(`Duplicate or out of order major indices: {${fe}}.`);
|
|
19649
19650
|
if (de = fe, ge = Number.MIN_SAFE_INTEGER, fe < p || fe > _) throw new Pe("Provided major bounds is invalid");
|
|
19650
19651
|
const Me = Ae[1], Ne = [], Fe = Me.length;
|
|
19651
19652
|
for (let Se = 0; Se < Fe; Se++) {
|
|
19652
19653
|
const Ce = Me[Se], Oe = Ce[1], pt = Oe.length;
|
|
19653
|
-
let _t = Ce[0],
|
|
19654
|
-
if (ge >
|
|
19655
|
-
if (
|
|
19654
|
+
let _t = Ce[0], Ke = _t;
|
|
19655
|
+
if (ge > Ke) throw new De.OutOfOrderError(`Duplicate or out of order minor indices: {${Ke}}.`);
|
|
19656
|
+
if (Ke < S || Ke + pt > E + 1) throw new Pe("Provided minor bounds is invalid");
|
|
19656
19657
|
let Ot = [];
|
|
19657
19658
|
for (let An = 0; An < pt; An++) {
|
|
19658
19659
|
const Rn = Oe[An];
|
|
19659
19660
|
let Gt = null;
|
|
19660
|
-
if (v || typeof Rn != "number" ? (v || Rn !== null || o) && (Gt = ie(Rn, fe,
|
|
19661
|
-
if (Gt === null && U.append(fe,
|
|
19661
|
+
if (v || typeof Rn != "number" ? (v || Rn !== null || o) && (Gt = ie(Rn, fe, Ke)) : Gt = Rn, Gt == null) {
|
|
19662
|
+
if (Gt === null && U.append(fe, Ke), Ot.length > 0) {
|
|
19662
19663
|
const an = _e(Ot, f);
|
|
19663
19664
|
Ne.push([_t, an]), Ot = [];
|
|
19664
19665
|
}
|
|
19665
|
-
_t =
|
|
19666
|
+
_t = Ke + 1;
|
|
19666
19667
|
} else Ot.push(Gt);
|
|
19667
|
-
|
|
19668
|
+
Ke++;
|
|
19668
19669
|
}
|
|
19669
|
-
if (ge =
|
|
19670
|
+
if (ge = Ke, Ot.length > 0) {
|
|
19670
19671
|
const An = _e(Ot, f);
|
|
19671
19672
|
Ne.push([_t, An]), Ot = null;
|
|
19672
19673
|
}
|
|
@@ -19674,27 +19675,27 @@ class Jo {
|
|
|
19674
19675
|
Ne.length > 0 && se.push([fe, Ne]);
|
|
19675
19676
|
}
|
|
19676
19677
|
const te = U.done(), ce = te.length;
|
|
19677
|
-
for (let
|
|
19678
|
-
const Ae = te[
|
|
19679
|
-
L.delete(te[
|
|
19678
|
+
for (let Xe = 0; Xe < ce; Xe++) {
|
|
19679
|
+
const Ae = te[Xe];
|
|
19680
|
+
L.delete(te[Xe]), $.insertNonOverlapping({ ...Ae, value: null });
|
|
19680
19681
|
const fe = H.delete(Ae);
|
|
19681
19682
|
this._updateFormulaSpatial(B, null, fe);
|
|
19682
19683
|
}
|
|
19683
19684
|
let be;
|
|
19684
19685
|
se.length > 0 && (L.setValues(se), be = { tuples: se, bounds: l });
|
|
19685
|
-
let ve,
|
|
19686
|
-
if (
|
|
19687
|
-
const
|
|
19688
|
-
ve = this._updateFormulaSpatial(B,
|
|
19686
|
+
let ve, qe = X.done();
|
|
19687
|
+
if (qe.length > 1 && (qe = Sn(qe, k.Orientation.Column, 1)), be || qe.length > 0) {
|
|
19688
|
+
const Xe = H.setInputs(be, qe);
|
|
19689
|
+
ve = this._updateFormulaSpatial(B, Xe.inserts, Xe.removes, P.directStyleSpatial);
|
|
19689
19690
|
}
|
|
19690
19691
|
const Re = hd(se, u), Be = Re.length;
|
|
19691
|
-
for (let
|
|
19692
|
+
for (let Xe = 0; Xe < Be; Xe++) $.insertNonOverlapping(Re[Xe]);
|
|
19692
19693
|
const ke = G.done();
|
|
19693
19694
|
ke.length > 0 && this._updateStyles(ke), re.length > 0 && this._merge(re);
|
|
19694
19695
|
const at = q.done();
|
|
19695
19696
|
if (at.length > 0 && this._setHyperlinks(at), this._updateState({ cellValuesGrid: L, contentfulSpatial: $, calcGraph: H, formulaSpatial: B, spillSpatial: z, pendingSpatial: j, calcErrorsSpatial: V }), ve && ve.length > 0 && this._updateStyles(ve, void 0, {}, !0), t?.autoFit) {
|
|
19696
|
-
const
|
|
19697
|
-
this._autoFit([y],
|
|
19697
|
+
const Xe = typeof t.autoFit == "boolean" ? dl : t.autoFit;
|
|
19698
|
+
this._autoFit([y], Xe);
|
|
19698
19699
|
}
|
|
19699
19700
|
h = { ranges: [y] }, this._addEvent("data", y), this._commitAndAutoSelect(c, h, t?.autoSelect, { viewAfter: { formulas: [y], ranges: [y] } });
|
|
19700
19701
|
} catch (le) {
|
|
@@ -19890,8 +19891,8 @@ class Jo {
|
|
|
19890
19891
|
for (let be = 0; be < N; be++) {
|
|
19891
19892
|
let ve = ge(te + (R ? be : -be));
|
|
19892
19893
|
Jr(ve) && (ve = Ko(ve, ce));
|
|
19893
|
-
const
|
|
19894
|
-
i ? $.pushAt(
|
|
19894
|
+
const qe = M + be;
|
|
19895
|
+
i ? $.pushAt(qe, le, ve) : $.pushAt(le, qe, ve);
|
|
19895
19896
|
}
|
|
19896
19897
|
}
|
|
19897
19898
|
this._clear([f], n?.contentsOnly ? xe.Content.Formats : void 0), $.apply();
|
|
@@ -19902,19 +19903,19 @@ class Jo {
|
|
|
19902
19903
|
if (i) {
|
|
19903
19904
|
const ge = e.rowEnd - e.rowStart + 1, le = r === k.Direction.Up ? f.rowStart : e.rowEnd + 1, te = G.length;
|
|
19904
19905
|
for (let ce = 0; ce < te; ce++) {
|
|
19905
|
-
const be = G[ce], ve = be.rowStart - e.rowStart,
|
|
19906
|
+
const be = G[ce], ve = be.rowStart - e.rowStart, qe = be.rowEnd - be.rowStart + 1;
|
|
19906
19907
|
for (let Re = 0; Re < de; Re++) {
|
|
19907
19908
|
const Be = Re * ge;
|
|
19908
|
-
ie.push({ colStart: be.colStart, rowStart: le + Be + ve, colEnd: be.colEnd, rowEnd: le + Be + ve +
|
|
19909
|
+
ie.push({ colStart: be.colStart, rowStart: le + Be + ve, colEnd: be.colEnd, rowEnd: le + Be + ve + qe - 1 });
|
|
19909
19910
|
}
|
|
19910
19911
|
}
|
|
19911
19912
|
} else {
|
|
19912
19913
|
const ge = e.colEnd - e.colStart + 1, le = r === k.Direction.Left ? f.colStart : e.colEnd + 1, te = G.length;
|
|
19913
19914
|
for (let ce = 0; ce < te; ce++) {
|
|
19914
|
-
const be = G[ce], ve = be.colStart - e.colStart,
|
|
19915
|
+
const be = G[ce], ve = be.colStart - e.colStart, qe = be.colEnd - be.colStart + 1;
|
|
19915
19916
|
for (let Re = 0; Re < de; Re++) {
|
|
19916
19917
|
const Be = Re * ge;
|
|
19917
|
-
ie.push({ colStart: le + Be + ve, rowStart: be.rowStart, colEnd: le + Be + ve +
|
|
19918
|
+
ie.push({ colStart: le + Be + ve, rowStart: be.rowStart, colEnd: le + Be + ve + qe - 1, rowEnd: be.rowEnd });
|
|
19918
19919
|
}
|
|
19919
19920
|
}
|
|
19920
19921
|
}
|
|
@@ -19942,7 +19943,7 @@ class Jo {
|
|
|
19942
19943
|
}
|
|
19943
19944
|
}
|
|
19944
19945
|
const _e = X.calcGraph.clone();
|
|
19945
|
-
_e.autoFill(e, f), re.calcGraph = _e, this._updateState(re), m = { ...a, ranges: l }, g.commit({ viewBefore: { view: this.getView(), selection:
|
|
19946
|
+
_e.autoFill(e, f), re.calcGraph = _e, this._updateState(re), m = { ...a, ranges: l }, g.commit({ viewBefore: { view: this.getView(), selection: He([e]), selectOptions: n?.autoSelect }, viewAfter: { view: this.getView(), selection: m, selectOptions: n?.autoSelect } }), this._autoSelect(n?.autoSelect ?? !1, m);
|
|
19946
19947
|
} catch (f) {
|
|
19947
19948
|
throw g?.rollback(), f;
|
|
19948
19949
|
}
|
|
@@ -19950,7 +19951,7 @@ class Jo {
|
|
|
19950
19951
|
}
|
|
19951
19952
|
_setHyperlinks(e, t, n) {
|
|
19952
19953
|
this._protectionCheck(() => ["insertHyperlinks", "formatCells"], e);
|
|
19953
|
-
const r =
|
|
19954
|
+
const r = He(e), o = this._beginCommit({ description: n?.description ?? "Set Hyperlink" });
|
|
19954
19955
|
let i = null;
|
|
19955
19956
|
try {
|
|
19956
19957
|
const a = this._getState();
|
|
@@ -20129,7 +20130,7 @@ class Jo {
|
|
|
20129
20130
|
}, 100)();
|
|
20130
20131
|
}
|
|
20131
20132
|
_setComments(e, t, n) {
|
|
20132
|
-
const r =
|
|
20133
|
+
const r = He(e), o = this._beginCommit({ description: n?.description ?? "Set Comments" });
|
|
20133
20134
|
let i = null;
|
|
20134
20135
|
try {
|
|
20135
20136
|
const a = this._getState();
|
|
@@ -20155,7 +20156,7 @@ class Jo {
|
|
|
20155
20156
|
_clear(e, t = null, n, r = !1, o = !1) {
|
|
20156
20157
|
let i = null, a = "Clear", l = !1, c = !1, h = !1, u = !1;
|
|
20157
20158
|
t === xe.Content.Formulas ? (a = `${a} Formulas`, u = !0) : t === xe.Content.Values ? (a = `${a} Values`, u = !0) : t === xe.Content.Formats ? (a = `${a} Formats`, l = !0, i = ["formatCells"]) : t === xe.Content.Comments ? (a = `${a} Comments`, h = !0) : t === xe.Content.Hyperlinks ? (a = `${a} Hyperlinks`, c = !0, i = ["formatCells"]) : (i = [], a = `${a} All`, u = !0, l = !0, c = !0, h = !0), i !== null && this._protectionCheck(() => i, e);
|
|
20158
|
-
const d =
|
|
20159
|
+
const d = He(e), g = this._beginCommit({ description: n?.description ?? a });
|
|
20159
20160
|
let m = this._getState(), f = m.cellValuesGrid, p = m.calcGraph, _ = m.contentfulSpatial, S = m.formulaSpatial, E = m.spillSpatial, y = m.pendingSpatial, b = m.calcErrorsSpatial, w = m.rangesListenerSpatial2;
|
|
20160
20161
|
u && (f = f.clone(), p = p.clone(), _ = _.clone(), S = S.clone(), E = E.clone(), y = y.clone(), b = b.clone());
|
|
20161
20162
|
try {
|
|
@@ -20199,7 +20200,7 @@ class Jo {
|
|
|
20199
20200
|
let n = k.Orientations.Both;
|
|
20200
20201
|
t?.orientations ? n = t?.orientations : t === k.Orientations.Row ? n = k.Orientations.Row : t === k.Orientations.Column && (n = k.Orientations.Column);
|
|
20201
20202
|
const r = t?.discardMultipleValues ?? !1;
|
|
20202
|
-
let o =
|
|
20203
|
+
let o = He(e);
|
|
20203
20204
|
const i = this.getSelection().getCoords();
|
|
20204
20205
|
let a = null;
|
|
20205
20206
|
const l = this._beginCommit({ description: t?.description ?? "Merge" });
|
|
@@ -20257,7 +20258,7 @@ class Jo {
|
|
|
20257
20258
|
_unmerge(e, t) {
|
|
20258
20259
|
if (this._protectionCheck(Zd, e), No(e)) throw new Error("We can't unmerge intersecting ranges.");
|
|
20259
20260
|
if (!this._getState()) return null;
|
|
20260
|
-
const n = D.unionRangesArrays(e), r =
|
|
20261
|
+
const n = D.unionRangesArrays(e), r = He(e), o = this._beginCommit({ description: t?.description ?? "Unmerge" }), i = o.getState(this).mergeSpatial, a = [];
|
|
20261
20262
|
try {
|
|
20262
20263
|
const l = e.length;
|
|
20263
20264
|
for (let c = 0; c < l; c++) {
|
|
@@ -20465,7 +20466,7 @@ class Jo {
|
|
|
20465
20466
|
const b = (o.fitDestination ?? !1) && !D.isSingleCell(l), w = oi(l, c, b, o.transpose);
|
|
20466
20467
|
if (b && (c = { ...c, colEnd: c.colStart + Math.min(w.colEnd - w.colStart, c.colEnd - c.colStart), rowEnd: c.rowStart + Math.min(w.rowEnd - w.rowStart, c.rowEnd - c.rowStart) }), !D.isRangeWithinRange(w, f)) throw console.warn(w, f), new Error("We can't paste outside of the sheet bounds.");
|
|
20467
20468
|
let v = null;
|
|
20468
|
-
v = o.undoRange ? { view: a.getView(), selection:
|
|
20469
|
+
v = o.undoRange ? { view: a.getView(), selection: He([o.undoRange.getCoords()]) } : { sheet: a, selection: He([w]) };
|
|
20469
20470
|
const I = a.getTransactions().beginCommit({ description: o.description ?? "Paste" });
|
|
20470
20471
|
try {
|
|
20471
20472
|
if (!this._getState()) return F.EmptyArray;
|
|
@@ -20500,12 +20501,12 @@ class Jo {
|
|
|
20500
20501
|
Re && (Re.directStyle || Re.table) && (ve.style = ge.getStyle(!A), be = !0);
|
|
20501
20502
|
}
|
|
20502
20503
|
g && (ve.hyperlink = ge.getHyperlink(), be = !0);
|
|
20503
|
-
let
|
|
20504
|
+
let qe = ve;
|
|
20504
20505
|
if (N && le) {
|
|
20505
20506
|
const Re = N(ie, de, { rowIndex: te, colIndex: ce }, o);
|
|
20506
|
-
Re !== void 0 && (
|
|
20507
|
+
Re !== void 0 && (qe = Re, be = !0);
|
|
20507
20508
|
}
|
|
20508
|
-
if (be && (L.pushAt(te, ce,
|
|
20509
|
+
if (be && (L.pushAt(te, ce, qe), u)) {
|
|
20509
20510
|
const Re = ge.getSpans();
|
|
20510
20511
|
(Re.width > 1 || Re.height > 1) && le && p.push({ colStart: ce, rowStart: te, colEnd: ce + (o.transpose ? Re.height : Re.width) - 1, rowEnd: te + (o.transpose ? Re.width : Re.height) - 1 });
|
|
20511
20512
|
}
|
|
@@ -20535,7 +20536,7 @@ class Jo {
|
|
|
20535
20536
|
for (let se = 0; se < he; se++) re.remove(ae[se]);
|
|
20536
20537
|
re.load(X.inserts), V[q] = re;
|
|
20537
20538
|
}
|
|
20538
|
-
j._updateState(V), E.push(w), y.push(w), _ && _.length > 0 && j._colHeaders.updateHeaderPairs(_), S && S.length > 0 && j._rowHeaders.updateHeaderPairs(S), L?.apply(), p.length > 0 && a.getRanges(p).merge(), I.commit({ viewBefore: v, viewAfter: (G) => ({ ...G, view: a.getView(), selection:
|
|
20539
|
+
j._updateState(V), E.push(w), y.push(w), _ && _.length > 0 && j._colHeaders.updateHeaderPairs(_), S && S.length > 0 && j._rowHeaders.updateHeaderPairs(S), L?.apply(), p.length > 0 && a.getRanges(p).merge(), I.commit({ viewBefore: v, viewAfter: (G) => ({ ...G, view: a.getView(), selection: He(y), ranges: E }) });
|
|
20539
20540
|
} catch (x) {
|
|
20540
20541
|
throw console.warn(x), I.rollback(), new Error(((C) => `Unable to paste: ${C}`)(x.message), { cause: x });
|
|
20541
20542
|
}
|
|
@@ -20561,7 +20562,7 @@ class Jo {
|
|
|
20561
20562
|
const l = this.getRange(e);
|
|
20562
20563
|
a = await r.copyTo(l, n);
|
|
20563
20564
|
const c = r.getName(), h = [a];
|
|
20564
|
-
n?.isCut && h.push(r.getCoords()), i.commit({ description: c ? n?.description ?? `${o} ${c}` : o, viewAfter: { view: this.getView(), selection:
|
|
20565
|
+
n?.isCut && h.push(r.getCoords()), i.commit({ description: c ? n?.description ?? `${o} ${c}` : o, viewAfter: { view: this.getView(), selection: He([a]), ranges: h } });
|
|
20565
20566
|
} catch (l) {
|
|
20566
20567
|
throw i.rollback(), l;
|
|
20567
20568
|
}
|
|
@@ -20582,7 +20583,7 @@ class Jo {
|
|
|
20582
20583
|
let n = this.getFilter();
|
|
20583
20584
|
if (n) return n;
|
|
20584
20585
|
n = this._createFilter(t);
|
|
20585
|
-
const r =
|
|
20586
|
+
const r = He([t]), o = this._beginCommit({ description: "Insert Filter" });
|
|
20586
20587
|
return this._updateState({ filter: n }), o.commit({ viewAfter: { ranges: [t], view: this.getView(), selection: r, selectOptions: void 0 } }), n;
|
|
20587
20588
|
}
|
|
20588
20589
|
getFilter() {
|
|
@@ -20641,7 +20642,7 @@ class Jo {
|
|
|
20641
20642
|
if (this._protectionCheck(() => [i ? "insertColumns" : "insertRows"], e), No(e)) throw new Error("We can't insert cells with overlapping selections.");
|
|
20642
20643
|
const a = this._entireCoords;
|
|
20643
20644
|
let l = a.colEnd, c = a.rowEnd;
|
|
20644
|
-
const h =
|
|
20645
|
+
const h = He(e), u = this._beginCommit({ description: n?.description ?? "Insert Cells", operation: { name: "insertCells" } }), d = u.getState(this), g = i ? k.Direction.Right : k.Direction.Down;
|
|
20645
20646
|
try {
|
|
20646
20647
|
let m = d.cellValuesGrid, f = d.contentfulSpatial, p = d.unlockSpatial, _ = d.mergeSpatial, S = d.directStyleSpatial, E = d.continuousFillSpatial, y = d.conditionalSpatial, b = d.hyperlinkSpatial, w = d.commentsSpatial, v = d.movableSpatial, I = d.tableSpatial, x = d.calcGraph, C = d.rangesListenerSpatial2, A = d.rangeListenerSpatial, R = d.rangesListenerMap;
|
|
20647
20648
|
const M = /* @__PURE__ */ new Map(), N = Ln(e.slice(), k.Direction.Left), O = N.length;
|
|
@@ -20678,7 +20679,7 @@ class Jo {
|
|
|
20678
20679
|
if (this._protectionCheck(() => [r ? "deleteColumns" : "deleteRows"], e), No(e)) throw new Error("We can't delete cells with overlapping selections.");
|
|
20679
20680
|
const o = this._entireCoords;
|
|
20680
20681
|
let i = o.colEnd, a = o.rowEnd;
|
|
20681
|
-
const l = r ? k.Direction.Left : k.Direction.Up, c =
|
|
20682
|
+
const l = r ? k.Direction.Left : k.Direction.Up, c = He(e), h = this._beginCommit({ description: n?.description ?? "Delete Cells", operation: { name: "deleteCells" } }), u = h.getState(this);
|
|
20682
20683
|
try {
|
|
20683
20684
|
let d = u.cellValuesGrid, g = u.contentfulSpatial, m = u.mergeSpatial, f = u.unlockSpatial, p = u.directStyleSpatial, _ = u.continuousFillSpatial, S = u.conditionalSpatial, E = u.hyperlinkSpatial, y = u.commentsSpatial, b = u.movableSpatial, w = u.movableMapModel, v = u.tableSpatial, I = u.tableMapModel, x = u.calcGraph, C = u.rangesListenerSpatial2, A = u.rangeListenerSpatial, R = u.rangesListenerMap;
|
|
20684
20685
|
const M = /* @__PURE__ */ new Map(), N = Ln(e.slice(), k.Direction.Left), O = N.length;
|
|
@@ -20702,7 +20703,7 @@ class Jo {
|
|
|
20702
20703
|
let r;
|
|
20703
20704
|
const o = Wo(e, this._entireCoords, !0), i = Uo(e, this._entireCoords, !0);
|
|
20704
20705
|
!o && i ? (t.orientations = t.orientations ?? k.Orientations.Column, r = `${n} ${er}`) : !i && o ? (t.orientations = t.orientations ?? k.Orientations.Row, r = `${n} ${Qn}`) : i && o ? (t.orientations = t.orientations ?? k.Orientations.Both, r = `${n} All`) : (t.orientations = t.orientations ?? k.Orientations.Both, r = `${n}`);
|
|
20705
|
-
const a = t.orientations !== k.Orientations.Row, l = t.orientations !== k.Orientations.Column, c = a && (t.expandOnly === !1 || t.expandOnly === k.Orientation.Row), h = l && (t.expandOnly === !1 || t.expandOnly === k.Orientation.Column), u = t.minContent, d =
|
|
20706
|
+
const a = t.orientations !== k.Orientations.Row, l = t.orientations !== k.Orientations.Column, c = a && (t.expandOnly === !1 || t.expandOnly === k.Orientation.Row), h = l && (t.expandOnly === !1 || t.expandOnly === k.Orientation.Column), u = t.minContent, d = He(e), g = this._beginCommit({ description: t.description ?? r });
|
|
20706
20707
|
try {
|
|
20707
20708
|
let m = Number.MAX_SAFE_INTEGER, f = Number.MIN_SAFE_INTEGER, p = !1, _ = "", S = -1, E = !1, y = !1, b = !1, w = Number.MAX_SAFE_INTEGER, v = Number.MIN_SAFE_INTEGER;
|
|
20708
20709
|
const I = this._styles.getNormal(), x = this._cellOptions, C = t.orientations === k.Orientations.Row, A = /* @__PURE__ */ new Map(), R = Dl(e, 1);
|
|
@@ -20730,8 +20731,8 @@ class Jo {
|
|
|
20730
20731
|
Fe = _t + 1;
|
|
20731
20732
|
continue;
|
|
20732
20733
|
}
|
|
20733
|
-
const
|
|
20734
|
-
Ne.push(
|
|
20734
|
+
const Ke = { address: { min: Fe, max: pt - 1 }, update: eg };
|
|
20735
|
+
Ne.push(Ke), Fe = _t + 1;
|
|
20735
20736
|
}
|
|
20736
20737
|
if (Fe <= fe) {
|
|
20737
20738
|
const Ce = { address: { min: Fe, max: fe }, update: eg };
|
|
@@ -20767,9 +20768,9 @@ class Jo {
|
|
|
20767
20768
|
fe && this._rowHeaders.updateHeaderPairs(fe, N);
|
|
20768
20769
|
}
|
|
20769
20770
|
const te = this._cellStateIterator({ ...pe, includeRangeTypes: { [ee.Type.Merge]: !1, [ee.Type.Table]: !1, [ee.Type.Style]: !1 }, ignoreEmptyIntersections: !0 });
|
|
20770
|
-
let ce, be, ve,
|
|
20771
|
-
for (; !
|
|
20772
|
-
const Ae =
|
|
20771
|
+
let ce, be, ve, qe = te.next(), Re = 1, Be = 1;
|
|
20772
|
+
for (; !qe.done; ) {
|
|
20773
|
+
const Ae = qe.value, fe = Ae[0], Me = Ae[2];
|
|
20773
20774
|
let Ne = I;
|
|
20774
20775
|
const Fe = Me?.directStyle ?? null;
|
|
20775
20776
|
Fe === ce ? Ne = be : (Ne = Fe ? Mi(0, D.cellToRange(fe, Ry), Me, x) : I, be = Ne);
|
|
@@ -20783,7 +20784,7 @@ class Jo {
|
|
|
20783
20784
|
} else Se = 1, Ce = 1;
|
|
20784
20785
|
Re = Se, Be = Ce;
|
|
20785
20786
|
}
|
|
20786
|
-
const pt = fe.colIndex, _t = fe.rowIndex,
|
|
20787
|
+
const pt = fe.colIndex, _t = fe.rowIndex, Ke = Ae[1], Ot = mt(Ke), An = D.isCellWithinRange(fe, X);
|
|
20787
20788
|
let Rn = !1, Gt = !1;
|
|
20788
20789
|
if (ce !== Fe || Se !== G || Ce !== q || Ot === J.String || Ot === J.Error || An !== V) {
|
|
20789
20790
|
if (Rn = !0, (Se > 1 || Ce > 1 || Ot === J.RichData) && (Gt = !0), !Gt && Me) {
|
|
@@ -20792,26 +20793,26 @@ class Jo {
|
|
|
20792
20793
|
}
|
|
20793
20794
|
Gt && (Rn = !1);
|
|
20794
20795
|
}
|
|
20795
|
-
if (ce = Fe, ve = Oe, (j !== pt || Rn) && (j !== pt && (U = this._colHeaders.getSpanSize(pt)), j !== -1 && z.push({ col: j, style: $, spanWidth: Se, spanHeight: Ce, minVal: m, maxVal: f, hasZero: p, text: _, textId: S, hasFalse: y, hasTrue: E, hasEmpty: b, minRow: w, maxRow: v, colWidth: U, measureWidth: -1, measureHeight: -1, isFit: V }), j = pt, $ = Ne, V = An, G = Se, q = Ce, m = Number.MAX_SAFE_INTEGER, f = Number.MIN_SAFE_INTEGER, p = !1, _ = "", S = -1, y = !1, E = !1, b = !1, w = _t), v = _t, !Gt) if (
|
|
20796
|
+
if (ce = Fe, ve = Oe, (j !== pt || Rn) && (j !== pt && (U = this._colHeaders.getSpanSize(pt)), j !== -1 && z.push({ col: j, style: $, spanWidth: Se, spanHeight: Ce, minVal: m, maxVal: f, hasZero: p, text: _, textId: S, hasFalse: y, hasTrue: E, hasEmpty: b, minRow: w, maxRow: v, colWidth: U, measureWidth: -1, measureHeight: -1, isFit: V }), j = pt, $ = Ne, V = An, G = Se, q = Ce, m = Number.MAX_SAFE_INTEGER, f = Number.MIN_SAFE_INTEGER, p = !1, _ = "", S = -1, y = !1, E = !1, b = !1, w = _t), v = _t, !Gt) if (Ke === null) b = !0;
|
|
20796
20797
|
else switch (Ot) {
|
|
20797
20798
|
case J.Number:
|
|
20798
|
-
|
|
20799
|
+
Ke === 0 && (p = !0), m = Math.min(m, Ke), f = Math.max(f, Ke);
|
|
20799
20800
|
break;
|
|
20800
20801
|
case J.String:
|
|
20801
|
-
_ =
|
|
20802
|
+
_ = Ke, S = Ke;
|
|
20802
20803
|
break;
|
|
20803
20804
|
case J.Error:
|
|
20804
|
-
_ =
|
|
20805
|
+
_ = Ke.toString(), S = -1;
|
|
20805
20806
|
break;
|
|
20806
20807
|
case J.Boolean:
|
|
20807
|
-
|
|
20808
|
+
Ke ? E = !0 : y = !0;
|
|
20808
20809
|
}
|
|
20809
|
-
|
|
20810
|
+
qe = te.next();
|
|
20810
20811
|
}
|
|
20811
20812
|
j !== -1 && z.push({ col: j, style: $, spanWidth: G, spanHeight: q, minVal: m, maxVal: f, hasZero: p, text: _, textId: S, hasFalse: y, hasTrue: E, hasEmpty: b, minRow: w, maxRow: v, colWidth: U, measureWidth: -1, measureHeight: -1, isFit: V });
|
|
20812
20813
|
let ke = -1, at = -1;
|
|
20813
|
-
const
|
|
20814
|
-
for (let Ae = 0; Ae <
|
|
20814
|
+
const Xe = z.length;
|
|
20815
|
+
for (let Ae = 0; Ae < Xe; Ae++) {
|
|
20815
20816
|
const fe = z[Ae], Me = C || !fe.isFit, Ne = fe.maxVal, Fe = fe.style, Se = fe.colWidth;
|
|
20816
20817
|
if (ke = 0, at = 0, Ne !== Number.MIN_SAFE_INTEGER) {
|
|
20817
20818
|
const Oe = Pn(J.Number, Fe, Ne, x, Se, u, Me);
|
|
@@ -20843,7 +20844,7 @@ class Jo {
|
|
|
20843
20844
|
}
|
|
20844
20845
|
if (a) {
|
|
20845
20846
|
const Ae = [];
|
|
20846
|
-
for (let fe = 0; fe <
|
|
20847
|
+
for (let fe = 0; fe < Xe; fe++) {
|
|
20847
20848
|
let Me = z[fe];
|
|
20848
20849
|
const Ne = Me.col;
|
|
20849
20850
|
let Fe = z[fe + 1], Se = Me.measureWidth ?? 0;
|
|
@@ -20860,7 +20861,7 @@ class Jo {
|
|
|
20860
20861
|
if (!(Ae > 1)) return Se === null ? Ce : Math.max(Ce, Se);
|
|
20861
20862
|
} };
|
|
20862
20863
|
let Me = [];
|
|
20863
|
-
for (let Se = 0; Se <
|
|
20864
|
+
for (let Se = 0; Se < Xe; Se++) {
|
|
20864
20865
|
const Ce = z[Se];
|
|
20865
20866
|
Ae = Ce.spanHeight, Me = en(Tl(Me, { min: Ce.minRow, max: Ce.maxRow, value: Ce.measureHeight }, fe));
|
|
20866
20867
|
}
|
|
@@ -21698,7 +21699,7 @@ class Jo {
|
|
|
21698
21699
|
n.rowEnd = n.rowEnd + 1;
|
|
21699
21700
|
}
|
|
21700
21701
|
o === void 0 && (o = ld(this, n)?.options?.hasHeader ?? !1);
|
|
21701
|
-
const i =
|
|
21702
|
+
const i = He([n]), a = { ...n }, l = this._beginCommit({ description: "Insert Table" });
|
|
21702
21703
|
let c = null;
|
|
21703
21704
|
try {
|
|
21704
21705
|
o || (this._isContentful([n]) && this._insertCells([{ ...n, rowStart: n.rowStart, rowEnd: n.rowStart }], k.Orientation.Row), n = { ...n, rowEnd: n.rowEnd + 1 });
|
|
@@ -21712,7 +21713,7 @@ class Jo {
|
|
|
21712
21713
|
p.set(_, d);
|
|
21713
21714
|
const S = g.tableMapName, E = new Map(S);
|
|
21714
21715
|
E.set(_.getName().toLocaleLowerCase(), _), t?.clearFormatting && this.getRange(n).updateStyle(null), c = d.value.model, this._updateState({ tableSpatial: m, tableMapModel: p, tableMapName: E }), this._emitter.notify("onTablesChange"), u || this._autoFit([c.getHeaderRange().getCoords()], { expandOnly: !0 });
|
|
21715
|
-
const y =
|
|
21716
|
+
const y = He([n]);
|
|
21716
21717
|
l.commit({ viewBefore: { view: this.getView(), selection: i, ranges: [a] }, viewAfter: { view: this.getView(), selection: y, ranges: [n] } });
|
|
21717
21718
|
} catch (h) {
|
|
21718
21719
|
throw l.rollback(), h;
|
|
@@ -21720,7 +21721,7 @@ class Jo {
|
|
|
21720
21721
|
return c;
|
|
21721
21722
|
}
|
|
21722
21723
|
_addConditional(e, t) {
|
|
21723
|
-
const n = this._rangesToCoords(e, () => ["objects"]), r = t?.autoSelect ?
|
|
21724
|
+
const n = this._rangesToCoords(e, () => ["objects"]), r = t?.autoSelect ? He(n) : null, o = [...n], i = this._beginCommit({ description: t?.description ?? "Insert Conditional" });
|
|
21724
21725
|
let a = null;
|
|
21725
21726
|
try {
|
|
21726
21727
|
const l = { ...t, ref: o }, c = this._getState(), h = c.conditionalSpatial.clone(), u = new Map(c.conditionalModels), d = this._createConditionalEntries(l, h, u);
|
|
@@ -22102,7 +22103,7 @@ class Jo {
|
|
|
22102
22103
|
if (f.startsWith("#")) {
|
|
22103
22104
|
f = f.substring(1);
|
|
22104
22105
|
const E = this._rangesToCoords(f);
|
|
22105
|
-
return await this._autoSelect(p ?? !0,
|
|
22106
|
+
return await this._autoSelect(p ?? !0, He(E)), !0;
|
|
22106
22107
|
}
|
|
22107
22108
|
return window.open(f, _ ?? "_blank", S), !0;
|
|
22108
22109
|
} }, this._emptyCell = new fw(this._cellOptions), this._initialized = !0;
|
|
@@ -22214,13 +22215,13 @@ class Jo {
|
|
|
22214
22215
|
const p = i._beginCommit({ description: d?.description ?? "Resize Table" }), _ = i._getState(), S = _.tableSpatial.clone(), E = _.tableMapModel, y = new Map(E);
|
|
22215
22216
|
S.remove(m, l);
|
|
22216
22217
|
const b = { ...m, ...g };
|
|
22217
|
-
return S.insert(b), y.set(b.value.model, b), i._updateState({ tableSpatial: S, tableMapModel: y }), p.commit({ viewAfter: { view: i.getView(), selection:
|
|
22218
|
+
return S.insert(b), y.set(b.value.model, b), i._updateState({ tableSpatial: S, tableMapModel: y }), p.commit({ viewAfter: { view: i.getView(), selection: He([h.getAnchorCoords()]) } }), g;
|
|
22218
22219
|
}, deleteFromContainer(u) {
|
|
22219
22220
|
const d = a();
|
|
22220
22221
|
if (!d) return;
|
|
22221
22222
|
i._protectionCheck(() => ["objects"]);
|
|
22222
22223
|
const g = d.value.model, m = i._beginCommit({ description: u?.description ?? `Delete Table '${g.getName()}` }), f = i._getState(), p = f.tableSpatial.clone(), _ = f.tableMapModel, S = new Map(_), E = f.tableMapName, y = new Map(E);
|
|
22223
|
-
p.remove(d, l), S.delete(g), y.delete(g.getName().toLocaleLowerCase()), d.value.processDeleteCallback?.(), i._updateState({ tableSpatial: p, tableMapModel: S, tableMapName: y }), i._emitter.notify("onTablesChange"), m.commit({ viewAfter: { sheet: i, view: i.getView(), selection:
|
|
22224
|
+
p.remove(d, l), S.delete(g), y.delete(g.getName().toLocaleLowerCase()), d.value.processDeleteCallback?.(), i._updateState({ tableSpatial: p, tableMapModel: S, tableMapName: y }), i._emitter.notify("onTablesChange"), m.commit({ viewAfter: { sheet: i, view: i.getView(), selection: He([g.getAnchorCoords()]) } });
|
|
22224
22225
|
}, setContainerDeleteCallback(u) {
|
|
22225
22226
|
const d = a()?.value ?? n;
|
|
22226
22227
|
d && (d.processDeleteCallback = u, d.removeListener?.());
|
|
@@ -22283,7 +22284,7 @@ class Jo {
|
|
|
22283
22284
|
const E = c._rangesToCoords(_, o);
|
|
22284
22285
|
if (!u.model) return a = E, E && E.length > 0 ? c.getRanges(E) : null;
|
|
22285
22286
|
const y = c._beginCommit({ description: S?.description ?? `Set ${r} Ranges` });
|
|
22286
|
-
let b =
|
|
22287
|
+
let b = He(E);
|
|
22287
22288
|
try {
|
|
22288
22289
|
const w = c._getState();
|
|
22289
22290
|
let v = w.conditionalSpatial;
|
|
@@ -22291,14 +22292,14 @@ class Jo {
|
|
|
22291
22292
|
let I = w.conditionalModels;
|
|
22292
22293
|
I = new Map(I);
|
|
22293
22294
|
let x = d();
|
|
22294
|
-
x = { ...x }, I.set(h, x), m(E, x, v), c._updateState({ conditionalSpatial: v, conditionalModels: I }), y.commit({ viewBefore: { view: c.getView(), selection:
|
|
22295
|
+
x = { ...x }, I.set(h, x), m(E, x, v), c._updateState({ conditionalSpatial: v, conditionalModels: I }), y.commit({ viewBefore: { view: c.getView(), selection: He(f()?.getCoords()) }, viewAfter: { view: c.getView(), selection: b } }), c._autoSelect(S?.autoSelect, b);
|
|
22295
22296
|
} catch (w) {
|
|
22296
22297
|
throw y.rollback(), w;
|
|
22297
22298
|
}
|
|
22298
22299
|
return E && E.length > 0 ? c.getRanges(E) : null;
|
|
22299
22300
|
}, getContainerRanges: f, deleteFromContainer(_) {
|
|
22300
22301
|
let S = d();
|
|
22301
|
-
const E = c._beginCommit({ description: _?.description ?? `Set ${r} Ranges` }), y = _?.autoSelect ?
|
|
22302
|
+
const E = c._beginCommit({ description: _?.description ?? `Set ${r} Ranges` }), y = _?.autoSelect ? He(S.spatials) : void 0;
|
|
22302
22303
|
try {
|
|
22303
22304
|
const b = c._getState();
|
|
22304
22305
|
let w = b.conditionalSpatial;
|
|
@@ -22771,7 +22772,7 @@ class Ty {
|
|
|
22771
22772
|
}
|
|
22772
22773
|
}
|
|
22773
22774
|
let ml;
|
|
22774
|
-
const Os = "SheetXL", Ny = ml || (ml = F.deepFreeze({ ISheet: { Visibility: ye.Visibility }, ICell: { Content: xe.Content, CalcStatus: xe.CalcStatus }, IColor: { Named: T.Named, Scheme: T.Scheme, Type: T.Type, AdjustmentType: T.AdjustmentType }, Direction:
|
|
22775
|
+
const Os = "SheetXL", Ny = ml || (ml = F.deepFreeze({ ISheet: { Visibility: ye.Visibility }, ICell: { Content: xe.Content, CalcStatus: xe.CalcStatus }, IColor: { Named: T.Named, Scheme: T.Scheme, Type: T.Type, AdjustmentType: T.AdjustmentType }, Direction: Ve }), ml);
|
|
22775
22776
|
let Ds;
|
|
22776
22777
|
class Fy extends ki {
|
|
22777
22778
|
constructor(e, t, n, r = null, o = !1) {
|
|
@@ -22908,7 +22909,7 @@ class Dy {
|
|
|
22908
22909
|
return this._modules;
|
|
22909
22910
|
}
|
|
22910
22911
|
async createModule(e) {
|
|
22911
|
-
const t = await import("./
|
|
22912
|
+
const t = await import("./DorzlSIUIPPOOz4K.mjs").then((r) => r.i), n = await t.ScriptingUtils.compileTypescript(e);
|
|
22912
22913
|
return n ? await ng(n, e?.declarationsOnly ?? !1) : null;
|
|
22913
22914
|
}
|
|
22914
22915
|
addModule(e, t, n) {
|
|
@@ -23863,7 +23864,7 @@ const Ir = { address: null, scope: null };
|
|
|
23863
23864
|
export {
|
|
23864
23865
|
Pf as $,
|
|
23865
23866
|
Dc as A,
|
|
23866
|
-
|
|
23867
|
+
$e as B,
|
|
23867
23868
|
Vf as C,
|
|
23868
23869
|
Kt as D,
|
|
23869
23870
|
Uy as E,
|
|
@@ -23884,7 +23885,7 @@ export {
|
|
|
23884
23885
|
ki as T,
|
|
23885
23886
|
w_ as U,
|
|
23886
23887
|
Mn as V,
|
|
23887
|
-
|
|
23888
|
+
Ve as W,
|
|
23888
23889
|
yo as X,
|
|
23889
23890
|
F as Y,
|
|
23890
23891
|
zf as Z,
|