@sheetxl/sdk 0.4.15 → 0.4.17
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/browser/cjs/{CwNSe9CinOcKHt9p.cjs → 3VDZDkTm5fMIQI6N.cjs} +1 -1
- package/browser/cjs/{CnoRxKqF7cmfYPie.cjs → B3kTGDDfOqlqnEGJ.cjs} +1 -1
- package/browser/cjs/{CnOPibl4Egdph8iO.cjs → B4GH_CVeD57P-hlT.cjs} +1 -1
- package/browser/cjs/{Bve-_MKdvTST-nYO.cjs → B9N4-bYInZllG2Vi.cjs} +1 -1
- package/browser/cjs/{DR8AZfpEdPwolzLA.cjs → BAb0ERWXvfy2WmDV.cjs} +1 -1
- package/browser/cjs/{Bv5GejhVjiiKkQo4.cjs → BILhe2td-4SMvvUj.cjs} +1 -1
- package/browser/cjs/{DEyIncQzUFxinblH.cjs → BKcwfHmM1wquAD7A.cjs} +1 -1
- package/browser/cjs/{DDwxGPgeEH75VzI6.cjs → BXud78wUhzgFT2S8.cjs} +1 -1
- package/browser/cjs/{DJwiyf8nrWTrcqsg.cjs → BgDpp2NvFj2vzAVw.cjs} +1 -1
- package/browser/cjs/{DN99k_K8Xt6Cxpbg.cjs → BqcfsDsZ9f7JdzKO.cjs} +1 -1
- package/browser/cjs/{DZoB22ts1B-Uo1_8.cjs → Bs1-GjGU7pxiy_M5.cjs} +1 -1
- package/browser/cjs/{B6Vc2J26WiHxBQya.cjs → BylwboCc_4j5UMET.cjs} +2 -2
- package/browser/cjs/{BKAC72r7ywoOltA0.cjs → CDLqFwncOhC1wDZC.cjs} +1 -1
- package/browser/cjs/{D65Kj_FHrWptDBz6.cjs → CPnt5XIB2Fgd9bWL.cjs} +2 -2
- package/browser/cjs/{BXtVRHEodCTlDHKt.cjs → CnfgV9Wd1T6-Pv2G.cjs} +4 -4
- package/browser/cjs/{Br5SOD3y14JWQxmm.cjs → CpqBjkr0v-wwSc7T.cjs} +1 -1
- package/browser/cjs/CyWg0eUf6QBgutTE.cjs +60 -0
- package/browser/cjs/{B339rTr1BsEIo2__.cjs → D2UW-mksnVpC9tEC.cjs} +1 -1
- package/browser/cjs/{BVA-ijQaNPkp7YbF.cjs → D8wdzj5CM24hJ1aE.cjs} +2 -2
- package/browser/cjs/{B1o0X3p_6PiLx4jI.cjs → DA9m7pLOxxQPsBdB.cjs} +3 -3
- package/browser/cjs/{CK47_UoX6YUMsgbq.cjs → DGFY8kWoCEj4ZXED.cjs} +1 -1
- package/browser/cjs/{CkXszTzijjKe-x3s.cjs → DHVgvKzhF0OYfEZC.cjs} +1 -1
- package/browser/cjs/{BsZ6vhnXHmCHlGZX.cjs → DXz16Win9zW3-DCK.cjs} +4 -4
- package/browser/cjs/{dL-d0P2RzXjtzTKk.cjs → DcjSbOA9M7ZOS6Az.cjs} +1 -1
- package/browser/cjs/{HFD-Ka0JKfOFb-v8.cjs → DiWEKYfmqir7C8N1.cjs} +1 -1
- package/browser/cjs/{D-TMUgYRD9-WKuJt.cjs → GQHYwlbvacmirBNZ.cjs} +1 -1
- package/browser/cjs/{J0QRcnocFqaCEpXb.cjs → HDXrC4LJYhbrQApr.cjs} +1 -1
- package/browser/cjs/{f4q2aiebC4Dk2JpQ.cjs → ID1QB7CJqggIX5cn.cjs} +1 -1
- package/browser/cjs/{HrYBZlmkaRPlgpBr.cjs → OeT2rhl1meBDmjQo.cjs} +1 -1
- package/browser/cjs/{jAhE-WFeXtkOENRt.cjs → OsU5EupiWMQ3fPIh.cjs} +1 -1
- package/browser/cjs/{DY7NS5zPRAYW9B4z.cjs → S-HINUWuUdC-KS9g.cjs} +1 -1
- package/browser/cjs/{17vteff17iwu-nts.cjs → V9VOu_k4Rtug4RcS.cjs} +2 -2
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{C2h4aMcaEv25R8td.cjs → jewNbTdUsdZn85qJ.cjs} +1 -1
- package/browser/esm/{DOkO-X1qYgsIKnNj.mjs → 2WyiYBEJzMQjlAq3.mjs} +3 -3
- package/browser/esm/{CL7ql8UZhgDNpfsM.mjs → BD2QWG24Ai8XS1sH.mjs} +1 -1
- package/{node/esm/PWnhitKV1qE65Z3V.mjs → browser/esm/BXxbXrxSh-BuAodI.mjs} +1 -1
- package/browser/esm/{D8PCv7S4DISHUIuf.mjs → BYhijLO1qau0IPzK.mjs} +2 -2
- package/browser/esm/{DYE2NR7zRrGqd22q.mjs → BtgPzodeOq2vx7wu.mjs} +1 -1
- package/browser/esm/{B6bUGsiDUEqxcpxj.mjs → C753NBsw15_scxlE.mjs} +1 -1
- package/browser/esm/{DC2efMTBtgG0Qg9v.mjs → CK_d9zrthjJmxjZs.mjs} +1 -1
- package/browser/esm/{B7TVQO7b5fKHjmdS.mjs → CQORIQhGia8o5m8o.mjs} +1 -1
- package/browser/esm/{CVlNXQ7d_YZ1bp7F.mjs → CQh-wICFva-n-1VH.mjs} +1 -1
- package/browser/esm/{C6ugA4r8ZBnWJ7SS.mjs → CYORNeYlDN4jqrMU.mjs} +4 -4
- package/browser/esm/{DJSB1iCmSRlSH8T3.mjs → CanQ4-mYL62IJeuF.mjs} +2 -2
- package/browser/esm/{WUmLxNLfFn0Ozmm-.mjs → Cb7NocgusuSJxDyb.mjs} +1 -1
- package/{node/esm/DxIixek4CImRs91l.mjs → browser/esm/CpTrD47P1a9cw4hD.mjs} +1 -1
- package/{node/esm/BUjgpjT28_Y-kidw.mjs → browser/esm/CyhvX5MYakGJnjBB.mjs} +1 -1
- package/browser/esm/{DZh5MHkoTH4JibFE.mjs → D-o0wp3zJOfayahp.mjs} +1 -1
- package/browser/esm/{DoyfObpnizfLGHs3.mjs → D7wfl5eCDWfixHec.mjs} +1 -1
- package/{node/esm/DJGZqsQxGcCptrL0.mjs → browser/esm/D9wllJd2NQsKjN0q.mjs} +1 -1
- package/browser/esm/{1RDByGQ0b6fJxh7d.mjs → DApmL5HvHL8dQjJu.mjs} +1 -1
- package/browser/esm/{QkxRNX4E_VTO1B3P.mjs → DBXwQ0f8Ati5WRuU.mjs} +5004 -5035
- package/browser/esm/{BqlVyzcHZSLgnGUm.mjs → DGJTN-b9ouYX803M.mjs} +1 -1
- package/browser/esm/{Dqvs0M5ZN2pHLCwm.mjs → DNHdhhNdg0TXxZJc.mjs} +1 -1
- package/browser/esm/{favrNBo9HOjnV2Y3.mjs → DRP8IbcRnWmU10a_.mjs} +2 -2
- package/{node/esm/Sr5fscnOJ2IHKKrp.mjs → browser/esm/DW5Iij5qx_-zRyh_.mjs} +1 -1
- package/{node/esm/Be8lmKk3pIbpatrW.mjs → browser/esm/Dp1vOHGwKnbhMDwt.mjs} +1 -1
- package/{node/esm/Cf9USLOKImk5ry05.mjs → browser/esm/DxxtEY6Lx0tI5nCI.mjs} +1 -1
- package/browser/esm/{B1J_tEX0ArjgmDxo.mjs → F8djmSVikTezJzXf.mjs} +1 -1
- package/browser/esm/{jdkRKboN0ZTz9YBf.mjs → GK86KtgRHGM6WEPS.mjs} +1 -1
- package/browser/esm/{B9pQrZA0Y-_hUwWi.mjs → SY5tg3hWzx5Sa4E4.mjs} +1 -1
- package/{node/esm/SLFayFhlPi4T8AO6.mjs → browser/esm/YVh_FQDZy_7TDW13.mjs} +1 -1
- package/{node/esm/D6yAkYqQpt4Mti36.mjs → browser/esm/fjinWOi8jboT8nsw.mjs} +1 -1
- package/{node/esm/CqsGDFsS_swdf3vs.mjs → browser/esm/gxsdzHxAUv9mdGRm.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{tJR0NVUIbWFQCJp0.mjs → lcTNH2TGk9jzzBYP.mjs} +2 -2
- package/browser/esm/{C_viEPf8wfrM9XrP.mjs → q7typc_bMggMtaUm.mjs} +4 -4
- package/licenses/dependencies.txt +3 -3
- package/node/esm/{CL7ql8UZhgDNpfsM.mjs → BD2QWG24Ai8XS1sH.mjs} +1 -1
- package/node/esm/{B1E5b-6lOZJnl4aN.mjs → BF5XLlWweZJpoxFw.mjs} +2 -2
- package/node/esm/{RP8av-gx71hD40p7.mjs → BPaqCLpmmt3F8Y67.mjs} +1 -1
- package/{browser/esm/PWnhitKV1qE65Z3V.mjs → node/esm/BXxbXrxSh-BuAodI.mjs} +1 -1
- package/node/esm/{DYE2NR7zRrGqd22q.mjs → BtgPzodeOq2vx7wu.mjs} +1 -1
- package/node/esm/{Bd7nQztitF7jnRgP.mjs → C1LotnhrtdmYBfLD.mjs} +1 -1
- package/node/esm/{DC2efMTBtgG0Qg9v.mjs → CK_d9zrthjJmxjZs.mjs} +1 -1
- package/node/esm/{C9Z0bg7XW6ng3z7k.mjs → COtz2-D0iXpaDzf3.mjs} +3 -3
- package/node/esm/{CVlNXQ7d_YZ1bp7F.mjs → CQh-wICFva-n-1VH.mjs} +1 -1
- package/node/esm/{BEvzdM3wAA2DOPpb.mjs → CU1iAiFndQXlG0c4.mjs} +1 -1
- package/node/esm/{DmxrrAcKGuZW16bw.mjs → CWNngv8lEonC71Qk.mjs} +4 -4
- package/{browser/esm/DxIixek4CImRs91l.mjs → node/esm/CpTrD47P1a9cw4hD.mjs} +1 -1
- package/node/esm/{CV_B2BH1zuSdWD_e.mjs → CtsrVzglO2nU_Uxz.mjs} +1 -1
- package/{browser/esm/BUjgpjT28_Y-kidw.mjs → node/esm/CyhvX5MYakGJnjBB.mjs} +1 -1
- package/{browser/esm/DJGZqsQxGcCptrL0.mjs → node/esm/D9wllJd2NQsKjN0q.mjs} +1 -1
- package/node/esm/{CBuT_Rm4rHFEv2-k.mjs → DRxVd-LklLTR0Avh.mjs} +1 -1
- package/{browser/esm/Sr5fscnOJ2IHKKrp.mjs → node/esm/DW5Iij5qx_-zRyh_.mjs} +1 -1
- package/node/esm/{CpNeEylJssyF4zm3.mjs → Dd8svp0SZupg0qId.mjs} +2 -2
- package/{browser/esm/Be8lmKk3pIbpatrW.mjs → node/esm/Dp1vOHGwKnbhMDwt.mjs} +1 -1
- package/node/esm/{BWh89wRFsoTmi9Ib.mjs → DtjguzvyogR9GHRR.mjs} +1 -1
- package/{browser/esm/Cf9USLOKImk5ry05.mjs → node/esm/DxxtEY6Lx0tI5nCI.mjs} +1 -1
- package/node/esm/{B1J_tEX0ArjgmDxo.mjs → F8djmSVikTezJzXf.mjs} +1 -1
- package/node/esm/{C_eVpG1TqI_0_Zfz.mjs → PRCrUy2cTQp7hzRs.mjs} +1 -1
- package/node/esm/{B9pQrZA0Y-_hUwWi.mjs → SY5tg3hWzx5Sa4E4.mjs} +1 -1
- package/node/esm/{AfI5dmtnxoAFOc1C.mjs → WClUDCTnhiH2nwzN.mjs} +1 -1
- package/{browser/esm/SLFayFhlPi4T8AO6.mjs → node/esm/YVh_FQDZy_7TDW13.mjs} +1 -1
- package/{browser/esm/D6yAkYqQpt4Mti36.mjs → node/esm/fjinWOi8jboT8nsw.mjs} +1 -1
- package/{browser/esm/CqsGDFsS_swdf3vs.mjs → node/esm/gxsdzHxAUv9mdGRm.mjs} +1 -1
- package/node/esm/index.mjs +789 -815
- package/node/esm/{BRakFf60UlCdEoH2.mjs → jAfpqn4QloqfzCef.mjs} +2 -2
- package/node/esm/{Cm8B2CXlnA5r12FE.mjs → m-xRNSE6rMaeHTas.mjs} +1 -1
- package/node/esm/{BEwii9DEp24ukOxk.mjs → sYt1hGSPpstn9ljA.mjs} +1 -1
- package/package.json +4 -4
- package/types/scripting.d.ts +38 -1
- package/browser/cjs/DEnI4zCWAmN4uqYL.cjs +0 -60
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.17
|
|
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.
|
|
@@ -300,7 +300,7 @@ let _ = class {
|
|
|
300
300
|
super(t5), this.name = "NotImplementedError";
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
|
-
const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), b = { getCurrencySymbol: () => "$", getNumberDecimalSeparator: () => ".", getNumberGroupSeparator: () => ",", isDate1904: () => false, getLocation: () => "unknown", getVersion: () => "1.0.0", getOS: () => "unknown", getUser: () => "unidentified", getDescription: () => "Stubbed Formula Context" }, C = new S(), v = { Up: "up", Down: "down", Left: "left", Right: "right" }, x = { TopLeft: "tl", Top: "t", TopRight: "tr", Left: "l", Center: "c", Right: "r", BottomLeft: "bl", Bottom: "b", BottomRight: "br" }, I = { html: "text/html", plain: "text/plain", png: "image/png" }, R = Object.freeze({ left: 0, top: 0 }), A = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), M = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }),
|
|
303
|
+
const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), b = { getCurrencySymbol: () => "$", getNumberDecimalSeparator: () => ".", getNumberGroupSeparator: () => ",", isDate1904: () => false, getLocation: () => "unknown", getVersion: () => "1.0.0", getOS: () => "unknown", getUser: () => "unidentified", getDescription: () => "Stubbed Formula Context" }, C = new S(), v = { Up: "up", Down: "down", Left: "left", Right: "right" }, x = { TopLeft: "tl", Top: "t", TopRight: "tr", Left: "l", Center: "c", Right: "r", BottomLeft: "bl", Bottom: "b", BottomRight: "br" }, I = { html: "text/html", plain: "text/plain", png: "image/png" }, R = Object.freeze({ left: 0, top: 0 }), A = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), M = Object.freeze({ x: 0, y: 0, width: 0, height: 0 }), N = Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: M, EmptyRect: A, EmptyTopLeft: R }, Symbol.toStringTag, { value: "Module" })), T = { Column: "column", Row: "row" }, k = { ...T, Both: "both" }, F = Object.freeze({ colIndex: 0, rowIndex: 0 }), O = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), D = (t5, e2) => t5.colStart === e2.colStart ? t5.rowStart - e2.rowStart : t5.colStart - e2.colStart, L = (t5, e2) => t5.rowStart === e2.rowStart ? t5.colStart - e2.colStart : t5.rowStart - e2.rowStart, B = (t5, e2) => t5.rowEnd === e2.rowEnd ? e2.colEnd - t5.colEnd : e2.rowEnd - t5.rowEnd, P = (t5, e2) => t5.colEnd === e2.colEnd ? e2.rowEnd - t5.rowEnd : e2.colEnd - t5.colEnd, z = (t5, e2) => t5.colIndex === e2.colIndex ? t5.rowIndex - e2.rowIndex : t5.colIndex - e2.colIndex, W = (t5, e2) => t5.rowIndex === e2.rowIndex ? t5.colIndex - e2.colIndex : t5.rowIndex - e2.rowIndex, j = (t5 = T.Row, e2 = false) => e2 ? t5 !== T.Column ? B : P : t5 !== T.Column ? L : D, H = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowIndex === e2.rowIndex && t5.colIndex === e2.colIndex, V = (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rowStart === e2.rowStart && t5.rowEnd === e2.rowEnd && t5.colStart === e2.colStart && t5.colEnd === e2.colEnd, $ = (t5, e2) => !(!t5 || !e2 || t5.colStart > e2.colEnd || e2.colStart > t5.colEnd || t5.rowStart > e2.rowEnd || e2.rowStart > t5.rowEnd), G = (t5, e2) => {
|
|
304
304
|
if (t5 === e2) return true;
|
|
305
305
|
if (!t5 || !e2) return false;
|
|
306
306
|
if (t5.length !== e2.length) return false;
|
|
@@ -324,12 +324,12 @@ const y = Object.freeze({ colIndex: 0, rowIndex: 0 }), E = Object.freeze({ colSt
|
|
|
324
324
|
}, q = [null, null], K = (t5, e2, n2) => {
|
|
325
325
|
if (t5[0].value === t5[1].value) return e2;
|
|
326
326
|
};
|
|
327
|
-
function X(t5, e2 = 2, n2, r2 =
|
|
327
|
+
function X(t5, e2 = 2, n2, r2 = T.Row, o2) {
|
|
328
328
|
let s2 = [...t5];
|
|
329
329
|
if (e2 <= 0 || t5.length <= 1) return s2;
|
|
330
|
-
let i2 = r2 ===
|
|
330
|
+
let i2 = r2 === T.Column, a2 = 0, l2 = false;
|
|
331
331
|
do {
|
|
332
|
-
const t6 = s2.sort(
|
|
332
|
+
const t6 = s2.sort(j(i2 ? T.Row : T.Column));
|
|
333
333
|
s2 = [], s2.push(t6[0]);
|
|
334
334
|
const e3 = t6.length;
|
|
335
335
|
let c2 = 0, h2 = t6[0], u2 = h2.colStart, d2 = h2.rowStart, g2 = h2.colEnd, m2 = h2.rowEnd;
|
|
@@ -357,7 +357,7 @@ const Y = Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: F, E
|
|
|
357
357
|
if (!t5) return null;
|
|
358
358
|
let n2 = e2;
|
|
359
359
|
return n2 || (n2 = { ...t5 }, delete n2.colIndex, delete n2.rowIndex), n2.colStart = t5.colIndex ?? 0, n2.rowStart = t5.rowIndex ?? 0, n2.colEnd = t5.colIndex ?? 0, n2.rowEnd = t5.rowIndex ?? 0, n2;
|
|
360
|
-
}, columnFirstCellComparator: z, columnFirstRangeComparator: D, createCellComparator: (t5 =
|
|
360
|
+
}, columnFirstCellComparator: z, columnFirstRangeComparator: D, createCellComparator: (t5 = T.Row, e2 = false) => e2 ? t5 !== T.Column ? (t6, e3) => t6.rowIndex === e3.rowIndex ? e3.colIndex - t6.colIndex : e3.rowIndex - t6.rowIndex : (t6, e3) => t6.colIndex === e3.colIndex ? e3.rowIndex - t6.rowIndex : e3.colIndex - t6.colIndex : t5 !== T.Column ? W : z, createConflatingRanges: (t5, e2 = false) => {
|
|
361
361
|
const n2 = [];
|
|
362
362
|
let r2, o2, s2 = Number.MIN_SAFE_INTEGER, i2 = Number.MIN_SAFE_INTEGER;
|
|
363
363
|
return { append: (a2, l2, c2) => {
|
|
@@ -371,8 +371,8 @@ const Y = Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: F, E
|
|
|
371
371
|
r2 && n2.push(r2);
|
|
372
372
|
const d2 = e2 ? a2 : l2, g2 = e2 ? l2 : a2;
|
|
373
373
|
r2 = { colStart: d2, rowStart: g2, colEnd: d2, rowEnd: g2 }, u2 && (r2.value = c2), s2 = a2, i2 = l2, o2 = c2;
|
|
374
|
-
}, done: (t6) => (r2 && (n2.push(r2), r2 = null), t6 ? X(n2, 3, true === t6 ? K : t6, e2 ?
|
|
375
|
-
}, createRangeComparator:
|
|
374
|
+
}, done: (t6) => (r2 && (n2.push(r2), r2 = null), t6 ? X(n2, 3, true === t6 ? K : t6, e2 ? T.Column : T.Row, q) : n2) };
|
|
375
|
+
}, createRangeComparator: j, defaultRange: (t5, e2, n2) => t5 ? n2 ? (n2.colStart = t5.colStart ?? e2.colStart, n2.rowStart = t5.rowStart ?? e2.rowStart, n2.colEnd = t5.colEnd ?? e2.colEnd, n2.rowEnd = t5.rowEnd ?? e2.rowEnd, n2) : { colStart: t5.colStart ?? e2.colStart, rowStart: t5.rowStart ?? e2.rowStart, colEnd: t5.colEnd ?? e2.colEnd, rowEnd: t5.rowEnd ?? e2.rowEnd } : e2, extendRangeToIntersectingRanges: J, extendRangeToUnionRanges: (t5, e2) => {
|
|
376
376
|
if (!e2 || 0 === e2.length) return t5;
|
|
377
377
|
let n2 = t5, r2 = null;
|
|
378
378
|
for (; !V(n2, r2); ) r2 = n2, n2 = J(r2, e2);
|
|
@@ -389,7 +389,7 @@ const Y = Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: F, E
|
|
|
389
389
|
const r2 = Math.max(t5.colStart, e2.colStart), o2 = Math.max(t5.rowStart, e2.rowStart), s2 = Math.min(t5.colEnd, e2.colEnd), i2 = Math.min(t5.rowEnd, e2.rowEnd);
|
|
390
390
|
let a2 = n2;
|
|
391
391
|
return a2 ? (a2.colStart = r2, a2.rowStart = o2, a2.colEnd = s2, a2.rowEnd = i2) : a2 = { colStart: r2, rowStart: o2, colEnd: s2, rowEnd: i2 }, a2;
|
|
392
|
-
}, isCellWithinRange: (t5, e2) => !(!t5 || !e2 || t5.rowIndex < e2.rowStart || t5.rowIndex > e2.rowEnd || t5.colIndex < e2.colStart || t5.colIndex > e2.colEnd), isEqualCells: H, isEqualRanges: V, isEqualRangesArrays: G, isEqualSelectionCoords: (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rangeIndex === e2.rangeIndex && !!H(t5.cell, e2.cell) && G(t5.ranges, e2.ranges), isRangeWithinRange: (t5, e2) => !(t5.rowStart < e2.rowStart || t5.rowEnd > e2.rowEnd || t5.colStart < e2.colStart || t5.colEnd > e2.colEnd), isRangesIntersect: $, isSingleCell: (t5) => !!t5 && t5.rowEnd === t5.rowStart && t5.colStart === t5.colEnd, isValidRange: (t5) => !(!t5 || "number" != typeof t5.colStart || t5.colStart < 0 || "number" != typeof t5.colEnd || t5.colEnd < t5.colStart || "number" != typeof t5.rowStart || t5.rowStart < 0 || "number" != typeof t5.rowEnd || t5.rowEnd < t5.rowStart), mergeRangedValues: X, rowFirstCellComparator:
|
|
392
|
+
}, isCellWithinRange: (t5, e2) => !(!t5 || !e2 || t5.rowIndex < e2.rowStart || t5.rowIndex > e2.rowEnd || t5.colIndex < e2.colStart || t5.colIndex > e2.colEnd), isEqualCells: H, isEqualRanges: V, isEqualRangesArrays: G, isEqualSelectionCoords: (t5, e2) => t5 === e2 || !(!t5 || !e2) && t5.rangeIndex === e2.rangeIndex && !!H(t5.cell, e2.cell) && G(t5.ranges, e2.ranges), isRangeWithinRange: (t5, e2) => !(t5.rowStart < e2.rowStart || t5.rowEnd > e2.rowEnd || t5.colStart < e2.colStart || t5.colEnd > e2.colEnd), isRangesIntersect: $, isSingleCell: (t5) => !!t5 && t5.rowEnd === t5.rowStart && t5.colStart === t5.colEnd, isValidRange: (t5) => !(!t5 || "number" != typeof t5.colStart || t5.colStart < 0 || "number" != typeof t5.colEnd || t5.colEnd < t5.colStart || "number" != typeof t5.rowStart || t5.rowStart < 0 || "number" != typeof t5.rowEnd || t5.rowEnd < t5.rowStart), mergeRangedValues: X, rowFirstCellComparator: W, rowFirstRangeComparator: L, sanitizeRange: (t5) => t5 ? { colStart: t5.colIndex ?? t5.colStart ?? 0, rowStart: t5.rowIndex ?? t5.rowStart ?? 0, colEnd: t5.colIndex ?? t5.colEnd ?? 0, rowEnd: t5.rowIndex ?? t5.rowEnd ?? 0 } : null, translateRange: (t5, e2 = -t5.rowStart, n2 = -t5.colStart, r2) => r2 ? (r2.colStart = t5.colStart + n2, r2.rowStart = t5.rowStart + e2, r2.colEnd = t5.colEnd + n2, r2.rowEnd = t5.rowEnd + e2, r2) : { colStart: t5.colStart + n2, rowStart: t5.rowStart + e2, colEnd: t5.colEnd + n2, rowEnd: t5.rowEnd + e2 }, unionRanges: U, unionRangesArrays: (t5, e2, n2) => {
|
|
393
393
|
if (!t5 || 0 === t5.length) return null;
|
|
394
394
|
if (1 === t5.length && !e2) return t5[0];
|
|
395
395
|
let r2 = t5[0];
|
|
@@ -743,7 +743,7 @@ const Et = (t5, e2 = false) => (document.hasFocus() || e2) && (t5 === document.a
|
|
|
743
743
|
r2?.src && URL.revokeObjectURL(r2.src);
|
|
744
744
|
}
|
|
745
745
|
r2 || n2(At);
|
|
746
|
-
}),
|
|
746
|
+
}), Nt = "image/svg+xml", Tt = Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: Rt, getImageDataUrl: (t5, e2 = 1) => new Promise(async (n2, r2) => {
|
|
747
747
|
let o2 = null;
|
|
748
748
|
try {
|
|
749
749
|
o2 = new Image(), o2.src = t5, o2.addEventListener("load", function() {
|
|
@@ -772,12 +772,12 @@ const Et = (t5, e2 = false) => (document.hasFocus() || e2) && (t5 === document.a
|
|
|
772
772
|
}
|
|
773
773
|
}, o2 = async () => {
|
|
774
774
|
try {
|
|
775
|
-
const r3 = new TextDecoder().decode(t5), o3 = URL.createObjectURL(new Blob([r3], { type:
|
|
776
|
-
n2 = { mimeType: e2 ??
|
|
775
|
+
const r3 = new TextDecoder().decode(t5), o3 = URL.createObjectURL(new Blob([r3], { type: Nt })), s2 = await Mt(o3);
|
|
776
|
+
n2 = { mimeType: e2 ?? Nt, naturalDimensions: s2, asUrl: o3, asSVGText: r3 };
|
|
777
777
|
} catch (t6) {
|
|
778
778
|
}
|
|
779
779
|
};
|
|
780
|
-
if (e2 ===
|
|
780
|
+
if (e2 === Nt ? await o2() : e2.startsWith("image/") ? await r2() : (await r2(), n2 || await o2()), !n2) throw new Error("Failed to load image");
|
|
781
781
|
return n2;
|
|
782
782
|
} }, Symbol.toStringTag, { value: "Module" }));
|
|
783
783
|
function kt(t5, e2) {
|
|
@@ -887,12 +887,12 @@ class zt extends Lt {
|
|
|
887
887
|
super(t5, e2);
|
|
888
888
|
}
|
|
889
889
|
}
|
|
890
|
-
class
|
|
890
|
+
class Wt extends Lt {
|
|
891
891
|
constructor(t5 = "Null not supported", e2 = null) {
|
|
892
892
|
super(t5, e2);
|
|
893
893
|
}
|
|
894
894
|
}
|
|
895
|
-
class
|
|
895
|
+
class jt extends Error {
|
|
896
896
|
constructor(t5 = "Null not supported", e2) {
|
|
897
897
|
super(t5), this._type = e2;
|
|
898
898
|
}
|
|
@@ -1630,13 +1630,13 @@ class fe extends ae {
|
|
|
1630
1630
|
}
|
|
1631
1631
|
const pe = () => {
|
|
1632
1632
|
try {
|
|
1633
|
-
return "0.4.
|
|
1633
|
+
return "0.4.17";
|
|
1634
1634
|
} catch (t5) {
|
|
1635
1635
|
return "";
|
|
1636
1636
|
}
|
|
1637
1637
|
}, _e = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
|
|
1638
1638
|
try {
|
|
1639
|
-
return "
|
|
1639
|
+
return "Sun Aug 10 2025";
|
|
1640
1640
|
} catch (t5) {
|
|
1641
1641
|
return "";
|
|
1642
1642
|
}
|
|
@@ -1702,415 +1702,389 @@ KeyFrom: '${t5.keyFrom()}'`, console.log(l2(o2))), Promise.resolve();
|
|
|
1702
1702
|
} catch (t6) {
|
|
1703
1703
|
console.warn("Unable to save license key to config store.");
|
|
1704
1704
|
}
|
|
1705
|
-
} }, Symbol.toStringTag, { value: "Module" }))
|
|
1706
|
-
|
|
1707
|
-
|
|
1705
|
+
} }, Symbol.toStringTag, { value: "Module" })), Ce = (t5, e2, n2 = 126) => ((t6, e3, n3 = 126) => {
|
|
1706
|
+
let r2 = t6.split("");
|
|
1707
|
+
for (let t7 = 0; t7 < r2.length; t7++) r2[t7].charCodeAt(0) <= n3 && (r2[t7] = String.fromCharCode((r2[t7].charCodeAt(0) + e3) % n3));
|
|
1708
|
+
return r2.join("");
|
|
1709
|
+
})(t5, n2 - e2), ve = (t5) => "object" == typeof window ? window.atob(t5) : Buffer.from(t5, "base64").toString("ascii");
|
|
1710
|
+
function xe(t5, e2, n2, r2, o2) {
|
|
1711
|
+
return Re(o2 - -661, e2);
|
|
1712
|
+
}
|
|
1713
|
+
function Ie() {
|
|
1714
|
+
const t5 = ["W6KEs8oXrti", "W6tcQSkHWP0", "cWJdUJi", "W500W4O", "mtRcHmkNDa", "W4f1phz5WPbMaeqE", "W6jQW7pdO1yHoCkoW47cRG", "WPlcKCo/W5hdOJC", "W6GwxSo5qh7cKG", "WOddJSohWRNcGa8", "W7LGoLTYWPbfceydo3m", "W4n+pG", "y8klq8ohW6i", "W4ShW5/dOYVdUhnYWRW0W6u", "pmoxWRRcLmo5gYjtW5RcLG", "kmozDCoUg0tdSCkeWO3dIColbSoOEq", "W7BdJYXNWRJcJmkmemkgW60", "yvjqW50OW5pcNG", "W7hdLaf6WQ/cNSk3hmk2W6qBrmkgWOq1ohWL", "W5ZcUSkYWP3cR8kvzsnwrmkyW6WRbCkqWRxdHCo9hW", "aenvWO3cKCoOW5NcJ8kE", "aI3dPmkEWPVdMmoNWRxcL8oHW6NdRq3dU8oPF8oyWQy", "WPZdUCkOvCohAmk3", "W7BcTSkLWPVcQCoojY0C", "W4y5W79fe8kC", "kmogWRxcG8o/cqfFW6dcKCkusgSU", "WPL/W5bXBXy", "WPtdKSkgW5hdQSkVtmkGW5/cMxdcGW", "W4aOW5Tpfmkn", "DCkoWQ8wcKG", "ASkdWQqucLGZ", "W5RcTCo+W49VFGy", "tZu7WPPnW45MAa", "bsZcSSkBWPJdNmoIW7ZcNmoQWRNdTW/dV8o+F8orWQeUW68", "tcK6WOXGW4i", "zSkqmqaYxwddUW", "WOJdJSoDWR/cNqT+W688WOHYW5VdQmoQ", "j8omWQJcKSoJcrHF", "WQNdUmonlK9rzSklWO5xFhhcMGO", "k8oefabcWRHsASk1WQZdOmkOy2i", "ECkAjIOJtq", "e8omC8oMhfZdHSkXWOVdGComhSo+", "W6GwxSo5qh7cKLW5W5NdKN1lta", "jfyJbCk7EvTaW4zEm8kp", "DhJdMmo/CSoJdxjwWP8", "p8otdWXcWQDe", "WPO4tMNcOxdcGCkdW6aCWOq", "WRrlg8kQestcSKOoW6ldI2y", "W74dW5FdOsRdM2z1WR0/WRFdOSo/WQW+", "gCoiWQhcHmopWPxcVCk3", "ACkit8ojW7XeCCoaWOS", "za3dHmkoW7a6cSo1WRzJW4BdRba", "p8oueWK", "W6pcV8oxjgTQW7hcISogW7JdTgG", "qmkwW7pcUbNcUCkfWP/cLghcKmkGduiOW4G", "aI3dPmkEWPVdMmoNWRxcVSoWW7RdOrhdQCo4nSoCWQ0YWQTPDwn3WOu/nG", "W5GOW7VdLCk+W4fp", "pmordaHF", "rvVcOCo3WQ5WW43cV2a", "FH3cQsOvamk2WOCKWRNcN04F", "WQCTWQhcQbzMwCksW7pcICoSW7JcTa", "e8omC8oMhfW", "W7z7W6BdN002c8kUW54", "WPa5vM7cPh7cTG", "W4mIy0esW7vQW4lcHshdPW3cSmkjW48", "W64TW4ZdMmk7W4Xkc3O", "l0VdRLDeqmoGWPSbWOu", "WQBdGSk7CCo/wCkF", "xuHzWPukWRS", "bSonWQ3cH8oHareAW4lcL8ktseW5gSkZW7pdN8olqa", "vCkpiaGOqa", "mfSYiSk6AfT7W65wjmkplmkbCmoSW7hdN8oQ", "DfHpW5KZW5K", "qYGrWOz+W4i", "BSkDW7hcJrZcVCke", "BCkDW7hcUbZcVmksW6/cIgFcMSkXiui", "g2LOW4CQWOKIlSoY", "lLZdV3zBuq", "EgxcV8oRWQr2W7lcKLyGaN9v", "W5/cMSkBW63dJfnmW4K3WOL3W4S", "W7eCWO3dRCoSWQVdGmkAWOxcJSoKWR0", "W4iIDNCsW65JW5u", "t8kjmW0ZvxVdVmoGz8o2WQNcP3FcV249sbRdOvNdTdxcQSoz", "pSonWR3dQ0BdPCozW63cVeNcLSkrhG", "WQ88vrpdGSoQsCoOomkD", "d8oFWQ/cNCotWPtcVq", "WQmUWQFcQbzLxSoxW7tcOCoxW4ZcMSkE", "De5jW6yGW5i", "WO0Lswi", "aSotiCoQcLJdQ8kMWP7dLmomhCoJ", "lJVdOSkwWOxdIa", "WQLlW6mBWR5YW4ldTSoCWQP1m8kIWRhcLmoK", "W5pcKdNdHSode0BcJmoFW7tcNmkW", "W4adWRpdVSoQrq", "W44wl8kmWPPrFW", "WPjdASkuhmoZ", "lvBdUxzrqmoOWP0dWOu", "W4uAomk9WP1pF8oD", "WO5CW6WzW7TmW7VdP8oqWQPYm8oM", "CGDLDCkGvLviW6Di", "WPddGCkFECo9ra", "aSkwvmoEWRDxW4hcHmkfW40", "BL1fWPSqWQC", "WP1cqCkEaSoZ", "W6mJW5jpgCkkW53dJvzEEx0sFmkAWOG/WONdMZZcHmoEW43cO8oPtIfcWPi", "WOHyW7qsW7jrW5VdSmolWODPi8oSWO4", "p8orWRtcI8oKgXa", "W4ivWOtdL8o8t8oP", "WPNcKCoLW7tdOZyCWOpdN8k4W7ntW6XJW60", "WOKuWPldTmo9amoQWQpcTKOYCCk9BCoUCa", "WPldQCkqDZ81W4BdRmoNW4xdRMBdPSoh", "WPtdLCkCW5C", "W7a8W5bghSkDW5NcMv0", "W5CqW5JdQIVdKG", "W44wl8kxWQa", "WP3cHmoKW7xdUsOEWPm", "kvL6W7G3W7hcVq", "i8oedGzFWRW", "W4JdGCoJW7VdNGuQWOS", "W6pcP8kWWOZcTmkv", "W7xdIsr7WRG", "WQpdLmkdD8oNwa", "W4HNftBcOKlcS8kfW546", "W48Cr8o1xhZcIhGY", "cSkAq8oAWRbiW5FcN8ksW53dN8kql8kp", "sCkccSkJAt0", "smkvg8kcDIZcMCkTgSkT", "WPhdVSkEc1is", "WPZdMCoaWRdcGcvSW5eGWOrU", "W5m6W4pdMSk3W5P7dxyHW57cLKa", "W6pdVSkJxIunW6q", "W5FcQCowW5HNFa", "zKfmW6aZW4NcLCk5D10", "WQ96W79YyHFcK8okWPy", "pmotWRFcJ8o5", "e8okymoJg0ZdO8kGWPO", "WPFcH8ouW4ddTZm", "W5u+W5NdLCk7W4ry", "W5RdIZ98WQlcI8kFhmkgW6qgtCkM", "ifO7ACkIAenbW6Dxna", "W50wi8kS", "tYm8WOXQW5n7B8kTW60", "WOldR8kob1zgASkkWPnb", "WP04tw7cOxNcOq", "W717W7ZdTLy6", "W50kWRfbWQGgWP/dP8oGWPnHp8oP", "W5OiW7a6W5zKW7hdUq", "ktxdO8k2W7KWW6pcLKyMhx4", "W7S3zwOjW6HcW4pcPYxdVblcQG", "hGxdUtpcL14", "WQNcPmo9WO/dPWHOWPHSW5jlW64", "ySkcwmoJW7vv", "ofbaWQpcJCoLW5tcN8kTWOFcR8oHWO4vWPy", "W5pcVZVdNCoce2VcSSoU", "W5WqW4ldJYRdK354WOq0W6xdVSo4WQ8P", "W4JcU8o/W5TJvGm", "WPldGCkdW4RdU8kTxW", "W4TNftBdVcddOSohW4ejWRqHluS", "f1JdU39iumoGWOyi", "W4COExaiW7bJW7hcUJddVtdcTSk1W45UWO3cISo2", "W5OeWPZdO8o6u8otWQxcTGi", "WQhdPmoIW47dT8oEnhfQA8kpW6WY", "WOVdVSkob0HbzSkUWPHl", "mCkprCosWRDq", "WOVdJSohWRVcHGz5W5OaWO54W4RdHmoQ", "nfbnWQFcISoJW5u", "x8kcamkREIVcNq", "W7FdNJ56WQdcICk+", "W4rXjLX5WPzxg0edkMtcSq", "WPv0W717EWFcM8orWP0g", "WOKIu2C", "W5WVW4vMhSkAW53cG0TurJGD", "hmkAu8ooWRPb", "W6WgWPZdVCo7qCoWWQxcRqr/xmkGBCoJpJbj", "W4mIy0esW7vQW4lcLYxdOrS", "wtpdMSksW7O8nCoyWOa", "WOldOCkmdG", "l0bhWOK", "m1bAWOBcJmoK", "WQldHmkjWRlcNqrOW5e9WOq8W5/dV8oHigKMW4LF", "WPCKEGbYWQjLbu0A", "lfbaWQ3cKCoVW53cLCkiWOFcLSo3WP4", "iComWR/cG8oeda", "ymkrtCoe", "W7RdSSkTWQfxrG", "rSkdoCkNFZhcNa", "W44wl8kAWOzvDSoCWPNcUCowua", "WRW6uhVcSvBcOmkfW64x", "kvryWPtcNCokW44", "W5WqW4ldJYRdK354WPyWW6pdQa", "jL0ZnmkzEunm", "W7O4WRJdLmoAEmoiWPpcJImCvCkhxCoddWHPbG", "ACkEWRiz", "W6qfW4tdPdhdJLb9WRW/W7ldVW", "W7G1W5VdLCk+W4fpx3mMW4NcLKOyW6/cV8kSp8kFpa", "imoDWRlcMCouWPpcNmkHc8oACmoLWQq", "W5RcV8oNW49VFay", "ksldVmkrWPldG8otW6FcM8o3W63dOrS", "zSkApayYxa", "jSoqWP7cKmoSba", "W6pcPSkHWOJcS8kdC3bJtSkbW6ST"];
|
|
1715
|
+
return (Ie = function() {
|
|
1716
|
+
return t5;
|
|
1717
|
+
})();
|
|
1718
|
+
}
|
|
1719
|
+
function Re(t5, e2) {
|
|
1720
|
+
const n2 = Ie();
|
|
1721
|
+
return Re = function(e3, r2) {
|
|
1722
|
+
let o2 = n2[e3 -= 416];
|
|
1723
|
+
if (void 0 === Re.XPCrpu) {
|
|
1724
|
+
const e4 = function(t6, e5) {
|
|
1725
|
+
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
1726
|
+
for (t6 = function(t7) {
|
|
1727
|
+
let e6 = "", n4 = "";
|
|
1728
|
+
for (let n5, r4, o4 = 0, s4 = 0; r4 = t7.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
|
|
1729
|
+
for (let t8 = 0, r4 = e6.length; t8 < r4; t8++) n4 += "%" + ("00" + e6.charCodeAt(t8).toString(16)).slice(-2);
|
|
1730
|
+
return decodeURIComponent(n4);
|
|
1731
|
+
}(t6), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
1732
|
+
for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
|
|
1733
|
+
r3 = 0, s3 = 0;
|
|
1734
|
+
for (let e6 = 0; e6 < t6.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t6.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
|
|
1735
|
+
return i3;
|
|
1736
|
+
};
|
|
1737
|
+
Re.vJIDCC = e4, t5 = arguments, Re.XPCrpu = true;
|
|
1738
|
+
}
|
|
1739
|
+
const s2 = e3 + n2[0], i2 = t5[s2];
|
|
1740
|
+
return i2 ? o2 = i2 : (void 0 === Re.YsIufa && (Re.YsIufa = true), o2 = Re.vJIDCC(o2, r2), t5[s2] = o2), o2;
|
|
1741
|
+
}, Re(t5, e2);
|
|
1708
1742
|
}
|
|
1709
1743
|
!function() {
|
|
1710
|
-
const t5 =
|
|
1711
|
-
function
|
|
1712
|
-
return
|
|
1744
|
+
const t5 = "jCBP", e2 = 982, n2 = 1034, r2 = 592, o2 = "Ly(D", s2 = "!RQv", i2 = "5c^U", a2 = 1518, l2 = 894, c2 = "*ZOt", h2 = 1487, u2 = 529, d2 = "kyAX", g2 = 1528, m2 = 924, f2 = 488;
|
|
1745
|
+
function p2(t6, e3, n3, r3, o3) {
|
|
1746
|
+
return Re(t6 - 23, o3);
|
|
1713
1747
|
}
|
|
1714
|
-
function
|
|
1715
|
-
return
|
|
1748
|
+
function _2(t6, e3, n3, r3, o3) {
|
|
1749
|
+
return Re(e3 - f2, t6);
|
|
1716
1750
|
}
|
|
1717
|
-
function
|
|
1718
|
-
return
|
|
1751
|
+
function S2(t6, e3, n3, r3, o3) {
|
|
1752
|
+
return Re(o3 - m2, r3);
|
|
1719
1753
|
}
|
|
1720
|
-
const
|
|
1721
|
-
function
|
|
1722
|
-
return
|
|
1754
|
+
const w2 = Ie();
|
|
1755
|
+
function y2(t6, e3, n3, r3, o3) {
|
|
1756
|
+
return Re(n3 - 364, r3);
|
|
1723
1757
|
}
|
|
1724
1758
|
for (; ; ) try {
|
|
1725
|
-
if (
|
|
1726
|
-
|
|
1759
|
+
if (562613 === parseInt(_2(t5, e2)) / 1 + parseInt(_2("^K2j", n2)) / 2 * (parseInt(p2(r2, 0, 0, 0, o2)) / 3) + parseInt(p2(615, 0, 0, 0, "Zg#c")) / 4 + parseInt(S2(0, 0, 0, s2, 1489)) / 5 * (parseInt(S2(0, 0, 0, i2, a2)) / 6) + parseInt(y2(0, 0, l2, c2)) / 7 + -parseInt(S2(0, 0, 0, "dZ(!", h2)) / 8 * (parseInt(p2(u2, 0, 0, 0, d2)) / 9) + -parseInt(S2(0, 0, 0, "Ly(D", g2)) / 10) break;
|
|
1760
|
+
w2.push(w2.shift());
|
|
1727
1761
|
} catch (t6) {
|
|
1728
|
-
|
|
1762
|
+
w2.push(w2.shift());
|
|
1729
1763
|
}
|
|
1730
1764
|
}();
|
|
1731
|
-
const
|
|
1732
|
-
const t5 =
|
|
1765
|
+
const Ae = () => {
|
|
1766
|
+
const t5 = 872, e2 = 955, n2 = 1218, r2 = 951, o2 = "Pw6x", s2 = 734;
|
|
1733
1767
|
function i2(t6, e3, n3, r3, o3) {
|
|
1734
|
-
return
|
|
1768
|
+
return Re(o3 - s2, t6);
|
|
1769
|
+
}
|
|
1770
|
+
if (typeof window === i2("8#9#", 0, 0, 0, 1209)) return window[a2(t5, e2, "hPcY")][i2("Up[J", 0, 0, 0, n2)];
|
|
1771
|
+
function a2(t6, e3, n3, r3, o3) {
|
|
1772
|
+
return Re(t6 - 390, n3);
|
|
1735
1773
|
}
|
|
1736
|
-
return
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
return je(n3 - r2, s2);
|
|
1774
|
+
return bt[a2(r2, 0, o2)]();
|
|
1775
|
+
}, Me = () => {
|
|
1776
|
+
const t5 = 81;
|
|
1777
|
+
function e2(t6, e3, n2, r2, o2) {
|
|
1778
|
+
return Re(n2 - -416, e3);
|
|
1742
1779
|
}
|
|
1743
|
-
return
|
|
1780
|
+
return Ae()[e2(0, "^K2j", 20)](e2(0, "KOw(", t5)) || Ae() === Re(-60 - -583, "@YDa");
|
|
1744
1781
|
};
|
|
1745
|
-
function
|
|
1746
|
-
return
|
|
1782
|
+
function Ne(t5, e2, n2, r2, o2) {
|
|
1783
|
+
return Re(r2 - -441, e2);
|
|
1747
1784
|
}
|
|
1748
|
-
function
|
|
1749
|
-
return
|
|
1785
|
+
function Te(t5, e2, n2, r2, o2) {
|
|
1786
|
+
return Re(t5 - 955, e2);
|
|
1750
1787
|
}
|
|
1751
|
-
const
|
|
1752
|
-
const
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
return
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
return
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
return je(n3 - E2, t6);
|
|
1772
|
-
}
|
|
1773
|
-
function R2(t6, e3, n3, r3, o3) {
|
|
1774
|
-
return je(r3 - y2, o3);
|
|
1775
|
-
}
|
|
1776
|
-
function A2(t6, e3, n3, r3, o3) {
|
|
1777
|
-
return je(e3 - -449, t6);
|
|
1778
|
-
}
|
|
1779
|
-
if (C2 = C2[A2("MGcS", 128)](0, C2[A2("fl2i", -38)] - 1), C2 = C2[R2(0, 0, 0, r2, o2)]("")[R2(0, 0, 0, 827, s2)]()[b2(i2, 0, a2)](""), C2 = ((t6) => {
|
|
1780
|
-
const e3 = 229, n3 = 374, r3 = 461, o3 = "m!@X";
|
|
1781
|
-
function s3(t7, e4, n4, r4, o4) {
|
|
1782
|
-
return je(e4 - -208, o4);
|
|
1783
|
-
}
|
|
1784
|
-
function i3(t7, e4, n4, r4, o4) {
|
|
1785
|
-
return je(n4 - -77, o4);
|
|
1786
|
-
}
|
|
1787
|
-
return typeof window === s3(0, 420, 0, 0, "RSr#") ? window[s3(0, e3, 0, 0, "]s^g")](t6) : Buffer[i3(0, 0, 389, 0, "56Ay")](t6, i3(0, 0, n3, 0, "oOLc"))[i3(0, 0, r3, 0, o3)](s3(0, 384, 0, 0, "Pzcf"));
|
|
1788
|
-
})(C2), C2 = C2[M2(l2, c2, h2, 26, "wsnS")](), C2[C2[R2(0, 0, 0, 730, "[#l2")] - 1] !== v2) throw new Error();
|
|
1789
|
-
function M2(t6, e3, n3, r3, o3) {
|
|
1790
|
-
return je(n3 - -381, o3);
|
|
1791
|
-
}
|
|
1792
|
-
C2 = C2[I2(u2, 0, d2)](0, C2[M2(g2, 51, m2, f2, "#ooQ")] - 1), C2 = Ae(C2, x2);
|
|
1793
|
-
try {
|
|
1794
|
-
!C2[b2("iuj7", 0, p2)]("{") && (C2 = "{" + C2);
|
|
1795
|
-
const t6 = JSON[R2(0, 0, 0, 803, "MFi1")](C2), e3 = { licensee: t6.l, domains: t6.d, nodeId: t6.n, expiry: t6.e, developerCount: t6.dc, cpuCount: t6.cc, type: t6.t };
|
|
1796
|
-
return t6.f && (e3[I2(_2, 0, 1163)] = t6.f), e3;
|
|
1797
|
-
} catch (t6) {
|
|
1798
|
-
throw new Error(M2(0, 0, S2, 0, w2));
|
|
1799
|
-
}
|
|
1800
|
-
}, Te = (t5, e2, n2, r2) => {
|
|
1801
|
-
const o2 = 411, s2 = 534, i2 = "x**i", a2 = 56;
|
|
1802
|
-
function l2(t6, e3, n3, r3, o3) {
|
|
1803
|
-
return je(n3 - 20, t6);
|
|
1804
|
-
}
|
|
1805
|
-
function c2(t6, e3, n3, r3, o3) {
|
|
1806
|
-
return je(n3 - -132, t6);
|
|
1807
|
-
}
|
|
1808
|
-
function h2(t6, e3, n3, r3, o3) {
|
|
1809
|
-
return je(n3 - -744, t6);
|
|
1810
|
-
}
|
|
1811
|
-
return { licensee: () => t5[c2("[#l2", 0, 431)], expiration: () => new Date(t5[l2("kS21", 0, 481)]), domains: () => t5[c2("nNu1", 0, 283)] ?? [], developerCount: () => t5[l2("]s^g", 0, 576)] ?? 1, cpuCount: () => t5[h2("[Q&D", 0, -300)] ?? 0, type: () => t5[h2("En!u", 0, -140)] ?? h2("x**i", 0, -175), exceptions: () => e2, isValidFor: (t6) => {
|
|
1812
|
-
return !(e2?.[n3 = s2, r3 = i2, c2(r3, 0, n3 - a2)] > 0);
|
|
1813
|
-
var n3, r3;
|
|
1814
|
-
}, isValid: () => true, isEval: () => false, features: () => {
|
|
1815
|
-
return Object[e3 = -357, n3 = "Ve7f", je(e3 - -956, n3)](t5[c2("Uj9R", 0, 318)] ?? {});
|
|
1816
|
-
var e3, n3;
|
|
1817
|
-
}, keyFrom: () => n2, getBuildVersion: _e[h2("[Q&D", 0, -266)], getBuildDate: _e[c2("C5EQ", 0, o2)] };
|
|
1818
|
-
}, Ne = (t5) => {
|
|
1819
|
-
const e2 = 958, n2 = "zQcw", r2 = 990, o2 = "x**i", s2 = 390, i2 = "jIJP";
|
|
1820
|
-
function a2(t6, e3, n3, r3, o3) {
|
|
1821
|
-
return je(t6 - -226, o3);
|
|
1788
|
+
const ke = (t5, e2) => {
|
|
1789
|
+
const n2 = 1254, r2 = 1123, o2 = 526, s2 = 580;
|
|
1790
|
+
function i2(t6, e3, n3, r3, o3) {
|
|
1791
|
+
return Re(o3 - -371, t6);
|
|
1792
|
+
}
|
|
1793
|
+
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => i2("Ly(D", 0, 0, 0, 139), exceptions: () => {
|
|
1794
|
+
return [(e3 = n2, o3 = "#N*I", i2(o3, 0, 0, 0, e3 - r2) + t5 + "'")];
|
|
1795
|
+
var e3, o3;
|
|
1796
|
+
}, isValidFor: (t6) => false, isValid: () => false, isEval: () => false, features: () => {
|
|
1797
|
+
return Object[t6 = "kyAX", e3 = 1104, Re(e3 - s2, t6)]({});
|
|
1798
|
+
var t6, e3;
|
|
1799
|
+
}, keyFrom: () => t5, getBuildVersion: _e[i2("YXPf", 0, 0, 0, 140)], getBuildDate: _e[a2 = 946, l2 = "YXPf", Re(a2 - o2, l2)] };
|
|
1800
|
+
var a2, l2;
|
|
1801
|
+
}, Fe = (t5) => {
|
|
1802
|
+
const e2 = "8#9#", n2 = 583, r2 = "KOw(", o2 = 607, s2 = "Pw6x", i2 = "*ZOt", a2 = "AGh5", l2 = 749, c2 = 779, h2 = 289;
|
|
1803
|
+
function u2(t6, e3, n3, r3, o3) {
|
|
1804
|
+
return Re(t6 - -169, n3);
|
|
1805
|
+
}
|
|
1806
|
+
function d2(t6, e3, n3, r3, o3) {
|
|
1807
|
+
return Re(t6 - -830, o3);
|
|
1822
1808
|
}
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
return je(t6 - -910, o3);
|
|
1809
|
+
function g2(t6, e3, n3, r3, o3) {
|
|
1810
|
+
return Re(r3 - -724, t6);
|
|
1826
1811
|
}
|
|
1827
|
-
function
|
|
1828
|
-
return
|
|
1812
|
+
function m2(t6, e3, n3, r3, o3) {
|
|
1813
|
+
return Re(e3 - h2, n3);
|
|
1829
1814
|
}
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
} else l2 = [u2(1033, "kS21", 1028, 1043, r2)];
|
|
1834
|
-
function u2(t6, e3, n3, r3, o3) {
|
|
1835
|
-
return je(o3 - 485, e3);
|
|
1815
|
+
let f2 = bt[m2(0, 722, "Ly(D")];
|
|
1816
|
+
function p2(t6, e3, n3, r3, o3) {
|
|
1817
|
+
return Re(r3 - 148, n3);
|
|
1836
1818
|
}
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
return (
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
let Oe = false, De = false;
|
|
1846
|
-
function Le(t5, e2, n2, r2, o2) {
|
|
1847
|
-
return je(n2 - 365, o2);
|
|
1819
|
+
if (Me() || bt[p2(0, 0, e2, 619)]()) {
|
|
1820
|
+
const t6 = _e[p2(0, 0, "AGh5", n2)](), e3 = new Date(t6), a3 = /* @__PURE__ */ new Date(), l3 = 864e5;
|
|
1821
|
+
Math[p2(0, 0, r2, o2)]((a3[g2(s2, 0, 0, -183)]() - e3[d2(-309, 0, 0, 0, i2)]()) / l3) >= 120 && (f2 = [d2(-301, 0, 0, 0, "hPcY")]);
|
|
1822
|
+
} else f2 = [g2(a2, 0, 0, -229)];
|
|
1823
|
+
return { licensee: () => p2(0, 0, "lMJh", 567), expiration: () => null, domains: () => [Ae()], developerCount: () => 1, cpuCount: () => 0, type: () => u2(260, 0, "KOw("), isEval: () => true, exceptions: () => f2, isValidFor: () => 0 === f2[u2(399, 0, "CQiE")], isValid: () => false, features: () => Object[u2(312, 0, "@YDa")]({}), keyFrom: () => t5, getBuildVersion: _e[p2(0, 0, a2, l2)], getBuildDate: _e[m2(0, c2, "^K2j")] };
|
|
1824
|
+
};
|
|
1825
|
+
function Oe(t5, e2, n2, r2, o2) {
|
|
1826
|
+
return Re(e2 - 69, o2);
|
|
1848
1827
|
}
|
|
1849
|
-
const
|
|
1850
|
-
|
|
1828
|
+
const De = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
1829
|
+
let Le = false, Be = false;
|
|
1830
|
+
const Pe = je(352, 434, 286, 435, "^K2j")[je(270, 239, 210, 277, "Wska")]("")[xe(0, "L@Wi", 0, 0, -243)]((t5, e2) => e2 + t5, "");
|
|
1831
|
+
class ze {
|
|
1851
1832
|
constructor() {
|
|
1852
|
-
const t5 =
|
|
1853
|
-
var n2, r2, o2
|
|
1854
|
-
this[
|
|
1855
|
-
}
|
|
1856
|
-
async [
|
|
1857
|
-
const n2 =
|
|
1858
|
-
if (!t5 || t5[
|
|
1859
|
-
function
|
|
1860
|
-
return
|
|
1861
|
-
}
|
|
1862
|
-
function
|
|
1863
|
-
return
|
|
1864
|
-
}
|
|
1865
|
-
if (
|
|
1866
|
-
const t6 = await this[
|
|
1867
|
-
if (t6[
|
|
1868
|
-
}
|
|
1869
|
-
function
|
|
1870
|
-
return
|
|
1871
|
-
}
|
|
1872
|
-
function
|
|
1873
|
-
return
|
|
1874
|
-
}
|
|
1875
|
-
|
|
1876
|
-
const
|
|
1877
|
-
if (!
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
}
|
|
1885
|
-
return
|
|
1886
|
-
}
|
|
1887
|
-
async [
|
|
1888
|
-
const e2 =
|
|
1889
|
-
if (
|
|
1890
|
-
if (!this[
|
|
1891
|
-
let
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
}
|
|
1895
|
-
ke[Ot2(750, g2, 670, 611, m2)] = new Promise((t6) => {
|
|
1896
|
-
At2 = t6;
|
|
1833
|
+
const t5 = "nt8P";
|
|
1834
|
+
var e2, n2, r2, o2;
|
|
1835
|
+
this[r2 = "C^p&", o2 = 1049, Oe(0, o2 - 559, 0, 0, r2)][e2 = -34, n2 = t5, Oe(0, e2 - -706, 0, 0, n2)] = null;
|
|
1836
|
+
}
|
|
1837
|
+
async [je(193, 243, 158, 180, "9zXx")](t5, e2 = false) {
|
|
1838
|
+
const n2 = 313, r2 = 322, o2 = 359, s2 = "Up[J", i2 = 820, a2 = 833, l2 = 866, c2 = "kxNc", h2 = 61, u2 = 177, d2 = "xH[1", g2 = 383, m2 = "9zXx", f2 = 329, p2 = 426, _2 = 880, S2 = 934, w2 = "9fjW", y2 = "lMJh", E2 = 518, b2 = 346, C2 = 263, v2 = "8#9#", x2 = 340, I2 = "uAwQ", R2 = 956, A2 = "Up[J", M2 = "NKT@", N2 = "*X5U", T2 = 252, k2 = 402, F2 = 504, O2 = 943, D2 = 447, L2 = 317, B2 = 416, P2 = 419, z2 = "hPcY", W2 = "[vc!", j2 = 412, H2 = "CQiE", V2 = "d2)S", $2 = 590, G2 = 334;
|
|
1839
|
+
if (!t5 || t5[J2(278, 297, 351, "wqD6")](K2("xH[1", 277, 295, n2)) || t5[J2(r2, 354, o2, s2)](J2(415, 431, 345, "jCBP")) || t5[q2(i2, 850, a2, l2, c2)](K2("X]fF", 154, 209, h2)) || t5[J2(329, 406, 361, c2)](K2("xH[1", 125, u2, 49))) return Le = true, await this[J2(525, 507, 457, "8#9#")](true);
|
|
1840
|
+
function U2(t6, e3, n3, r3, o3) {
|
|
1841
|
+
return xe(0, t6, 0, 0, e3 - 625);
|
|
1842
|
+
}
|
|
1843
|
+
function J2(t6, e3, n3, r3, o3) {
|
|
1844
|
+
return Oe(0, n3 - -171, 0, 0, r3);
|
|
1845
|
+
}
|
|
1846
|
+
if (Le = false, !e2 && De[J2(0, 0, 507, d2)]) {
|
|
1847
|
+
const t6 = await this[Y2(g2, 326, 396, 318, m2)]();
|
|
1848
|
+
if (t6[J2(0, 0, f2, "G*(7")]() && !t6[Y2(p2, 573, 512, 488, "!RQv")]()) return t6;
|
|
1849
|
+
}
|
|
1850
|
+
function q2(t6, e3, n3, r3, o3) {
|
|
1851
|
+
return Oe(0, r3 - G2, 0, 0, o3);
|
|
1852
|
+
}
|
|
1853
|
+
function K2(t6, e3, n3, r3, o3) {
|
|
1854
|
+
return xe(0, t6, 0, 0, e3 - 364);
|
|
1855
|
+
}
|
|
1856
|
+
De[q2(970, 928, _2, S2, w2)] = t5, De[U2(y2, E2)] = Y2(260, 296, b2, C2, v2), De[J2(0, 0, x2, I2)] = null, De[q2(0, 0, 0, R2, A2)] = null;
|
|
1857
|
+
const X2 = await this[U2(M2, 476)]();
|
|
1858
|
+
if (!X2[q2(0, 0, 0, 906, M2)]()) throw await this[K2(N2, T2)](true), new Error(Y2(346, k2, 445, F2, "Up[J"));
|
|
1859
|
+
if (bt[q2(0, 0, 0, O2, "lMJh")]()) {
|
|
1860
|
+
await be[Y2(D2, L2, B2, P2, z2)](t5, e2);
|
|
1861
|
+
if (!(await this[q2(0, 0, 0, 983, W2)]())[J2(0, 0, j2, H2)]()) throw await this[U2(V2, 472)](true), new Error(K2("NKT@", 143));
|
|
1862
|
+
}
|
|
1863
|
+
function Y2(t6, e3, n3, r3, o3) {
|
|
1864
|
+
return xe(0, o3, 0, 0, n3 - $2);
|
|
1865
|
+
}
|
|
1866
|
+
return X2;
|
|
1867
|
+
}
|
|
1868
|
+
async [Oe(0, 651, 0, 0, "d2)S")](t5 = false) {
|
|
1869
|
+
const e2 = "dZ(!", n2 = 196, r2 = 102, o2 = 256, s2 = "uAwQ", i2 = "5c^U", a2 = 40, l2 = "G*(7", c2 = 185, h2 = "xH[1", u2 = 52, d2 = "L@Wi", g2 = "Zg#c", m2 = 1222, f2 = 1282, p2 = "*Thb", _2 = 1259, S2 = "lMJh", w2 = 125, y2 = "CQiE", E2 = 1311, b2 = "dXdT", C2 = "^K2j", v2 = "KOw(", x2 = 36, I2 = 1369, R2 = "Pw6x", A2 = 39, M2 = 111, N2 = "Up[J", T2 = 57, k2 = 167, F2 = "9zXx", O2 = 132, D2 = 61, L2 = "9zXx", B2 = 3, P2 = 31, z2 = "kyAX", W2 = 30, j2 = "!RQv", H2 = "L@Wi", V2 = 8, $2 = "*X5U", G2 = 430, U2 = "!d!3";
|
|
1870
|
+
if (De[Q2(60, 17, 115, 108, "pU$v")]) return De[et2(-427, e2, -456)];
|
|
1871
|
+
if (!this[nt2(58, 27, "9n$c")][Q2(n2, r2, o2, 178, s2)] && (this[et2(-412, i2, -415)][nt2(-108, -107, "9zXx")] = new Error("FV")), De[tt2("G*(7", 11, -12, a2)]) return De[tt2(l2, 11, -55, -49)];
|
|
1872
|
+
let J2 = null;
|
|
1873
|
+
De[tt2("Wska", -110, -97, -78)] = new Promise((t6) => {
|
|
1874
|
+
J2 = t6;
|
|
1897
1875
|
});
|
|
1898
|
-
let
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
const Ft2 = async (t6, e3) => {
|
|
1903
|
-
const n3 = 469, r3 = 480;
|
|
1904
|
-
function o3(t7, e4, o4, s3, i3) {
|
|
1905
|
-
return kt2(s3, e4 - n3, 0, s3 - r3, t7 - -1456);
|
|
1876
|
+
let q2, K2 = null;
|
|
1877
|
+
const X2 = async (t6, e3) => {
|
|
1878
|
+
function n3(t7, e4, n4, r3, o3) {
|
|
1879
|
+
return tt2(o3, n4 - 444, n4 - 176, r3 - 8);
|
|
1906
1880
|
}
|
|
1907
1881
|
try {
|
|
1908
|
-
const
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1882
|
+
const r3 = ((t7) => {
|
|
1883
|
+
let e4 = t7;
|
|
1884
|
+
const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
|
|
1885
|
+
if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = ve(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
|
|
1886
|
+
e4 = e4.substring(0, e4.length - 1), e4 = Ce(e4, r4);
|
|
1887
|
+
try {
|
|
1888
|
+
e4.startsWith("{") || (e4 = "{" + e4);
|
|
1889
|
+
const t8 = JSON.parse(e4), n5 = { licensee: t8.l, domains: t8.d, nodeId: t8.n, expiry: t8.e, developerCount: t8.dc, cpuCount: t8.cc, type: t8.t };
|
|
1890
|
+
return t8.f && (n5.features = t8.f), n5;
|
|
1891
|
+
} catch (t8) {
|
|
1892
|
+
throw new Error("Invalid license key.");
|
|
1893
|
+
}
|
|
1894
|
+
})(e3), o3 = ((t7, e4, n4) => {
|
|
1895
|
+
const r4 = "hPcY", o4 = 317;
|
|
1896
|
+
function s3(t8, e5, n5, r5, o5) {
|
|
1897
|
+
return Re(r5 - -887, t8);
|
|
1898
|
+
}
|
|
1899
|
+
function i3(t8, e5, n5, r5, o5) {
|
|
1900
|
+
return Re(t8 - -615, r5);
|
|
1912
1901
|
}
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
return je(e5 - -136, n6);
|
|
1902
|
+
function a3(t8, e5, n5, r5, o5) {
|
|
1903
|
+
return Re(e5 - -19, o5);
|
|
1916
1904
|
}
|
|
1917
|
-
function
|
|
1918
|
-
return
|
|
1905
|
+
function l3(t8, e5, n5, r5, o5) {
|
|
1906
|
+
return Re(e5 - 863, n5);
|
|
1919
1907
|
}
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
return je(o5 - R3, t8);
|
|
1908
|
+
function c3(t8, e5, n5, r5, o5) {
|
|
1909
|
+
return Re(r5 - 340, e5);
|
|
1923
1910
|
}
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1911
|
+
return { licensee: () => t7[i3(-71, 0, 0, "Pw6x")], expiration: () => new Date(t7[c3(0, "#N*I", 0, 877)]), domains: () => t7[l3(0, 1341, "uAwQ")] ?? [], developerCount: () => t7[a3(0, 533, 0, 0, "Zg#c")] ?? 1, cpuCount: () => t7[c3(0, "!RQv", 0, 902)] ?? 0, type: () => t7[s3("l5b!", 0, 0, -439)] ?? i3(-45, 0, 0, "jCBP"), exceptions: () => e4, isValidFor: (t8) => {
|
|
1912
|
+
return !(e4?.[n5 = r4, s4 = o4, a3(0, s4 - -108, 0, 0, n5)] > 0);
|
|
1913
|
+
var n5, s4;
|
|
1914
|
+
}, isValid: () => true, isEval: () => false, features: () => Object[a3(0, 531, 0, 0, "Q]M3")](t7[a3(0, 477, 0, 0, "pU$v")] ?? {}), keyFrom: () => n4, getBuildVersion: _e[s3("!RQv", 0, 0, -332)], getBuildDate: _e[l3(0, 1298, "AGh5")] };
|
|
1915
|
+
})(r3, await (async (t7) => {
|
|
1916
|
+
const e4 = "]MOe", n4 = "dZ(!", r4 = "nt8P", o4 = 975, s3 = "#N*I", i3 = "Wska", a3 = "]MOe", l3 = 1088, c3 = "!d!3", h3 = "dXdT", u3 = "*ZOt", d3 = 1033, g3 = "lMJh", m3 = "AGh5", f3 = 893, p3 = "@YDa", _3 = 896, S3 = 477, w3 = 417, y3 = t7[b3(955, 912, "Ly(D", 1047, 1007)];
|
|
1917
|
+
function E3(t8, e5, n5, r5, o5) {
|
|
1918
|
+
return Re(t8 - -663, e5);
|
|
1919
|
+
}
|
|
1920
|
+
function b3(t8, e5, n5, r5, o5) {
|
|
1921
|
+
return Re(o5 - w3, n5);
|
|
1922
|
+
}
|
|
1923
|
+
function C3(t8, e5, n5, r5, o5) {
|
|
1924
|
+
return Re(e5 - -634, r5);
|
|
1925
|
+
}
|
|
1926
|
+
const v3 = t7[E3(-67, e4)] ? new Date(t7[A3(n4, -469, -418, -444)]) : null, x3 = t7[b3(0, 0, "Up[J", 0, 845)], I3 = [];
|
|
1927
|
+
function R3(t8, e5, n5, r5, o5) {
|
|
1928
|
+
return Re(e5 - S3, o5);
|
|
1929
|
+
}
|
|
1930
|
+
function A3(t8, e5, n5, r5, o5) {
|
|
1931
|
+
return Re(r5 - -963, t8);
|
|
1932
|
+
}
|
|
1933
|
+
if (v3 ? isNaN(v3) ? I3[E3(-240, "9zXx")](C3(0, -166, 0, s3)) : v3 < /* @__PURE__ */ new Date() && I3[C3(0, -135, 0, i3)](E3(-197, "l5b!") + v3[A3("kxNc", -591, -536, -498)]()) : I3[b3(0, 0, r4, 0, o4)](b3(0, 0, "d2)S", 0, 953)), bt[E3(-143, "@YDa")]()) {
|
|
1934
|
+
if (!x3) return I3[b3(0, 0, a3, 0, 866)](A3("8#9#", 0, 0, -412)), I3;
|
|
1935
|
+
const t8 = await be[R3(0, l3, 0, 0, c3)]();
|
|
1936
|
+
t8 !== x3 && I3[A3(h3, 0, 0, -525)](A3(u3, 0, 0, -462) + x3 + R3(0, d3, 0, 0, g3) + t8);
|
|
1928
1937
|
} else {
|
|
1929
|
-
if (
|
|
1930
|
-
if (
|
|
1938
|
+
if (Me()) return I3;
|
|
1939
|
+
if (y3 && 0 !== y3[R3(0, 1037, 0, 0, m3)]) {
|
|
1931
1940
|
let t8 = false;
|
|
1932
|
-
const e5 =
|
|
1933
|
-
for (let
|
|
1934
|
-
!t8 &&
|
|
1935
|
-
} else
|
|
1936
|
-
}
|
|
1937
|
-
function L3(t8, e5, n6, r6, o5) {
|
|
1938
|
-
return je(o5 - 929, e5);
|
|
1941
|
+
const e5 = Ae();
|
|
1942
|
+
for (let n5 = 0; !t8 && n5 < y3[R3(0, 992, 0, 0, "*X5U")]; n5++) t8 = e5[b3(0, 0, p3, 0, _3)](y3[n5]);
|
|
1943
|
+
!t8 && I3[A3("nt8P", 0, 0, -405)](R3(0, 1034, 0, 0, "gfz5"));
|
|
1944
|
+
} else I3[R3(0, f3, 0, 0, "Ly(D")](E3(-183, "#N*I"));
|
|
1939
1945
|
}
|
|
1940
|
-
return
|
|
1941
|
-
})(
|
|
1942
|
-
return
|
|
1946
|
+
return I3;
|
|
1947
|
+
})(r3), t6);
|
|
1948
|
+
return o3[n3(0, 0, G2, 426, "@YDa")]()[n3(0, 0, 298, 221, U2)] > 0 && (q2 = o3), o3;
|
|
1943
1949
|
} catch (e4) {
|
|
1944
|
-
|
|
1945
|
-
const e5 = "MGcS", n4 = 1243, r4 = "W15C", o4 = 724;
|
|
1946
|
-
function s3(t8, e6, n5, r5, s4) {
|
|
1947
|
-
return je(n5 - o4, r5);
|
|
1948
|
-
}
|
|
1949
|
-
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => s3(0, 0, 1228, "hzhK"), exceptions: () => {
|
|
1950
|
-
return [(e6 = n4, o5 = r4, s3(0, 0, e6 - -48, o5) + t7 + "'")];
|
|
1951
|
-
var e6, o5;
|
|
1952
|
-
}, isValidFor: (t8) => false, isValid: () => false, isEval: () => false, features: () => Object[s3(0, 0, 1258, "En!u")]({}), keyFrom: () => t7, getBuildVersion: _e[s3(0, 0, 1140, "nGr&")], getBuildDate: _e[i3 = 73, a3 = e5, je(i3 - -428, a3)] };
|
|
1953
|
-
var i3, a3;
|
|
1954
|
-
})(t6);
|
|
1950
|
+
q2 = ke(t6);
|
|
1955
1951
|
}
|
|
1956
1952
|
};
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
if (!Nt2) {
|
|
1968
|
-
const t6 = process[Lt2(0, 691, 0, C2)], e3 = t6[Mt2(v2, 1523, 0, "@UJ0")] || t6[Bt2(678, 645, x2, 542, I2)] || t6[Ot2(R2, A2, 632, 633, "IOD&")] || t6[Bt2(881, M2, "nGr&", T2, N2)];
|
|
1969
|
-
e3 && (Nt2 = await Ft2(Lt2(0, k2, 0, "En!u"), e3));
|
|
1953
|
+
De[Q2(170, 181, 183, c2, h2)] && (K2 = await X2(De[nt2(70, u2, "9zXx")], De[et2(-299, d2, -372)]));
|
|
1954
|
+
let Y2 = false;
|
|
1955
|
+
function Q2(t6, e3, n3, r3, o3) {
|
|
1956
|
+
return Oe(0, r3 - -493, 0, 0, o3);
|
|
1957
|
+
}
|
|
1958
|
+
if (Le && (Y2 = true, K2 = Fe(tt2(g2, -64, -149, -17))), !K2) {
|
|
1959
|
+
if (bt[Z2(m2, "[vc!", 1199, 1292)]()) {
|
|
1960
|
+
if (!K2) {
|
|
1961
|
+
const t6 = process[Z2(f2, p2, _2, 1277)], e3 = t6[nt2(-105, -41, S2)] || t6[nt2(-73, -164, y2)] || t6[Z2(E2, b2, 1291, 1296)] || t6[et2(-482, C2, -402)];
|
|
1962
|
+
e3 && (K2 = await X2(et2(-485, "dZ(!", -386), e3));
|
|
1970
1963
|
}
|
|
1971
|
-
if (!
|
|
1972
|
-
const t6 = await be[
|
|
1973
|
-
t6 && (
|
|
1964
|
+
if (!K2) {
|
|
1965
|
+
const t6 = await be[Q2(0, 0, 0, 174, v2)]();
|
|
1966
|
+
t6 && (K2 = await X2(tt2("Ly(D", -109, -67, -206), t6));
|
|
1974
1967
|
}
|
|
1975
|
-
!
|
|
1968
|
+
!K2 && (Y2 = true);
|
|
1976
1969
|
} else {
|
|
1977
|
-
if (!
|
|
1978
|
-
const t6 = await fetch("./" +
|
|
1970
|
+
if (!K2) try {
|
|
1971
|
+
const t6 = await fetch("./" + Pe);
|
|
1979
1972
|
let e3 = null;
|
|
1980
|
-
if (200 === t6[
|
|
1981
|
-
const n3 = (await t6[
|
|
1982
|
-
for (let t7 = 0; !e3 && t7 < n3[
|
|
1983
|
-
const r3 = n3[t7][
|
|
1984
|
-
r3[
|
|
1973
|
+
if (200 === t6[tt2("l5b!", -x2, -65, -108, -21)]) {
|
|
1974
|
+
const n3 = (await t6[Z2(I2, R2, 1350, 1406, 1375)]())[nt2(A2, M2, N2, w2, T2)]("\n");
|
|
1975
|
+
for (let t7 = 0; !e3 && t7 < n3[Q2(0, 0, 0, k2, "wqD6")]; t7++) {
|
|
1976
|
+
const r3 = n3[t7][Q2(0, 0, 0, 111, "Ly(D")]();
|
|
1977
|
+
r3[et2(-363, S2, -313, -274, -285)]("#") || 0 === r3[Q2(0, 0, 0, 0, F2)] || (e3 = r3);
|
|
1985
1978
|
}
|
|
1986
1979
|
}
|
|
1987
1980
|
if (e3) {
|
|
1988
|
-
const t7 =
|
|
1989
|
-
|
|
1981
|
+
const t7 = tt2("l5b!", -O2, -167, -203, -123) + Pe + "')";
|
|
1982
|
+
K2 = await X2(t7, e3);
|
|
1990
1983
|
}
|
|
1991
1984
|
} catch (t6) {
|
|
1992
1985
|
}
|
|
1993
|
-
!
|
|
1994
|
-
}
|
|
1995
|
-
}
|
|
1996
|
-
function Bt2(t6, e3, n3, r3, o3) {
|
|
1997
|
-
return Re(n3, 0, 0, o3 - 373);
|
|
1998
|
-
}
|
|
1999
|
-
if (!Nt2 && Dt2 && (Nt2 = Ne(Mt2(1498, X2, 0, "5aIw"))), !Nt2 && Tt2 && (Nt2 = Tt2), !Nt2 && (Nt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [Mt2(1485, 1394, 0, "wsnS")], isValidFor: (t6) => false, isValid: () => false, features: () => Object[Bt2(575, 695, "Uj9R", 591, 659)]({}), keyFrom: () => kt2("zQcw", 1208, 0, 1228, 1152), getBuildVersion: _e[Ot2(756, Y2, 692, 707, "Ve7f")], getBuildDate: _e[Bt2(698, Q2, "[Q&D", Z2, tt2)] }), ke[Lt2(0, et2, 0, nt2)] = Nt2, At2(Nt2), t5) {
|
|
2000
|
-
if (!(ke[kt2(rt2, ot2, 0, st2, it2)] && ke[kt2(at2, lt2, 0, 1209, ct2)]) && (Dt2 || Nt2[Ot2(605, ht2, ut2, 657, dt2)]()[kt2("iuj7", 1006, 0, 1187, 1113)] > 0 || Nt2[Ot2(gt2, mt2, 669, 713, "nGr&")]()?.pb)) {
|
|
2001
|
-
if (De) return void setTimeout(() => {
|
|
2002
|
-
var t6, e3, n3, r3;
|
|
2003
|
-
this[t6 = -297, e3 = -341, n3 = -321, r3 = "Pzcf", kt2(r3, e3 - 211, 0, n3 - 155, t6 - -1544)](false, false);
|
|
2004
|
-
}, 8e3);
|
|
2005
|
-
await this[Mt2(ft2, pt2, 0, "wsnS")](false, false);
|
|
1986
|
+
!K2 && Me() && (Y2 = true);
|
|
2006
1987
|
}
|
|
2007
1988
|
}
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
async [We(-105, -193, -211, -138, "fl2i")](t5) {
|
|
2011
|
-
const e2 = "IOD&", n2 = "5aIw", r2 = 167, o2 = 775, s2 = "MGcS", i2 = 758, a2 = 696, l2 = 785, c2 = "eQn(", h2 = "[&Tq", u2 = 171, d2 = 159, g2 = "MFi1", m2 = 556, f2 = 1300, p2 = 209, _2 = 62, S2 = 328, w2 = 96;
|
|
2012
|
-
ke[E2("jIJP", 44, -7, -30, -68)] = true;
|
|
2013
|
-
const y2 = await this[E2(e2, -212, -203, -294, -185)]();
|
|
2014
|
-
function E2(t6, e3, n3, r3, o3) {
|
|
2015
|
-
return Le(0, 0, o3 - -1029, 0, t6);
|
|
1989
|
+
function Z2(t6, e3, n3, r3, o3) {
|
|
1990
|
+
return Ne(0, e3, 0, r3 - 1260);
|
|
2016
1991
|
}
|
|
2017
|
-
function
|
|
2018
|
-
return
|
|
1992
|
+
function tt2(t6, e3, n3, r3, o3) {
|
|
1993
|
+
return Oe(0, e3 - -671, 0, 0, t6);
|
|
2019
1994
|
}
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
return Le(0, 0, t6 - -65, 0, o3);
|
|
1995
|
+
function et2(t6, e3, n3, r3, o3) {
|
|
1996
|
+
return Ne(0, e3, 0, n3 - -479);
|
|
2023
1997
|
}
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
1998
|
+
if (!K2 && Y2 && (K2 = Fe(Q2(0, 0, 0, D2, h2))), !K2 && q2 && (K2 = q2), !K2 && (K2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [tt2("!d!3", -177)], isValidFor: (t6) => false, isValid: () => false, features: () => Object[tt2("G*(7", -30)]({}), keyFrom: () => Q2(0, 0, 0, 6, "K#wd"), getBuildVersion: _e[tt2(L2, -3)], getBuildDate: _e[Q2(0, 0, 0, 8, "Pw6x")] }), De[Q2(0, 0, 0, P2, "jCBP")] = K2, J2(K2), t5) {
|
|
1999
|
+
if (!(De[nt2(B2, 29, g2)] && De[et2(0, "*ZOt", -398)]) && (Y2 || K2[et2(0, z2, -377)]()[Q2(0, 0, 0, W2, j2)] > 0 || K2[tt2("YXPf", -74)]()?.pb)) {
|
|
2000
|
+
if (Be) return void setTimeout(() => {
|
|
2001
|
+
var t6, e3;
|
|
2002
|
+
this[t6 = $2, e3 = 1113, tt2(t6, e3 - 1166)](false, false);
|
|
2003
|
+
}, 8e3);
|
|
2004
|
+
await this[tt2(H2, V2)](false, false);
|
|
2005
|
+
}
|
|
2030
2006
|
}
|
|
2031
|
-
function
|
|
2032
|
-
return
|
|
2007
|
+
function nt2(t6, e3, n3, r3, o3) {
|
|
2008
|
+
return Ne(0, n3, 0, t6 - -101);
|
|
2033
2009
|
}
|
|
2034
|
-
|
|
2035
|
-
const m2 = await this[g2(r2, o2)]();
|
|
2036
|
-
var f2, p2;
|
|
2037
|
-
ke[f2 = s2, p2 = "eQn(", Le(0, 0, f2 - -148, 0, p2)] || !(m2[g2(87, i2)]() || m2[d2(0, 608, 0, 0, a2)]()[g2(l2, c2)] > 0) ? await be[d2(0, u2, 0, 0, "Uj9R")](m2, t5, e2, n2) : await this[g2(106, h2)](t5);
|
|
2010
|
+
return De[tt2("NKT@", -18)];
|
|
2038
2011
|
}
|
|
2039
|
-
async [
|
|
2040
|
-
const n2 =
|
|
2041
|
-
|
|
2012
|
+
async [je(305, 257, 308, 383, "9n$c")](t5) {
|
|
2013
|
+
const e2 = "G*(7", n2 = "d2)S", r2 = 1306, o2 = 1372, s2 = "Up[J", i2 = 453, a2 = "[vc!", l2 = 1382, c2 = "dXdT", h2 = 1344, u2 = "YXPf", d2 = "kxNc", g2 = 498, m2 = 33, f2 = 245;
|
|
2014
|
+
function p2(t6, e3, n3, r3, o3) {
|
|
2015
|
+
return je(o3 - 1102, e3 - m2, n3 - f2, r3 - 402, r3);
|
|
2016
|
+
}
|
|
2017
|
+
var _2, S2, w2;
|
|
2018
|
+
De[_2 = "C^p&", S2 = 240, w2 = 323, je(S2 - -24, _2 - 397, S2 - 124, w2 - 312, _2)] = true;
|
|
2019
|
+
const y2 = await this[p2(0, 1434, 1414, e2, 1441)]();
|
|
2020
|
+
return await be[x2 = "!d!3", I2 = 313, xe(0, x2, 0, 0, I2 - 399)](t5), !De[C2 = 1255, v2 = n2, xe(0, v2, 0, 0, C2 - 1454)] && (y2[p2(0, r2, o2, s2, 1313)]() || y2[E2 = i2, b2 = a2, xe(0, b2, 0, 0, E2 - g2)]()[p2(0, 1300, l2, c2, h2)] > 0) && await this[p2(0, 1442, 1363, u2, 1463)](t5), Promise[p2(0, 1403, 1579, d2, 1482)]();
|
|
2021
|
+
var E2, b2, C2, v2, x2, I2;
|
|
2022
|
+
}
|
|
2023
|
+
async [xe(0, "d2)S", 0, 0, -173)](t5 = false, e2 = false, n2 = false) {
|
|
2024
|
+
const r2 = 62, o2 = 73, s2 = "5c^U", i2 = 25, a2 = 1360, l2 = "xH[1", c2 = 28, h2 = "]7Ql", u2 = 1429, d2 = 78;
|
|
2025
|
+
De[y2(-99, "!d!3", -17)] = true;
|
|
2026
|
+
const g2 = await this[y2(r2, "G*(7", o2)]();
|
|
2027
|
+
var m2, f2, p2, _2, S2, w2;
|
|
2028
|
+
De[y2(125, s2, i2)] || !(g2[p2 = "uAwQ", _2 = 215, Ne(0, p2, 0, _2 - d2)]() || g2[m2 = a2, f2 = l2, Oe(0, m2 - 702, 0, 0, f2)]()[y2(c2, "Wska", 64)] > 0) ? await be[S2 = "nt8P", w2 = u2, Ne(0, S2, 0, w2 - 1396)](g2, t5, e2, n2) : await this[y2(-26, h2, 27)](t5);
|
|
2029
|
+
function y2(t6, e3, n3, r3, o3) {
|
|
2030
|
+
return Te(n3 - -1455, e3);
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
async [xe(0, "CQiE", 0, 0, -114)](t5, e2) {
|
|
2034
|
+
const n2 = 1093, r2 = "jCBP", o2 = "AGh5", s2 = 1222, i2 = 1180, a2 = "Q]M3", l2 = "kxNc", c2 = 611;
|
|
2042
2035
|
function h2(t6, e3, n3, r3, o3) {
|
|
2043
|
-
return
|
|
2036
|
+
return xe(0, o3, 0, 0, r3 - -117);
|
|
2037
|
+
}
|
|
2038
|
+
if (!t5 && (De[h2(0, 0, 0, -335, "#N*I")] || De[h2(0, 0, 0, -292, "Wska")])) return;
|
|
2039
|
+
function u2(t6, e3, n3, r3, o3) {
|
|
2040
|
+
return Ne(0, r3, 0, t6 - -58);
|
|
2044
2041
|
}
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
const g2 = bt[m2 = 13, f2 = s2, Re(f2, 0, 0, m2 - -237)]();
|
|
2042
|
+
De[h2(0, 0, 0, -202, "NKT@")] = true, De[p2(1169, n2, 1135, r2)] = true, await this[u2(-60, -6, -138, o2)](t5);
|
|
2043
|
+
const d2 = bt[p2(s2, i2, 1204, a2)](), g2 = t5 || d2 ? console[u2(-49, 0, 0, "NKT@")] : bt[m2 = 1501, f2 = "YXPf", Oe(0, m2 - 826, 0, 0, f2)];
|
|
2048
2044
|
var m2, f2;
|
|
2049
2045
|
function p2(t6, e3, n3, r3, o3) {
|
|
2050
|
-
return
|
|
2046
|
+
return Oe(0, t6 - c2, 0, 0, r3);
|
|
2051
2047
|
}
|
|
2052
|
-
|
|
2053
|
-
var S2, w2;
|
|
2054
|
-
g2 && _2(""), await this[h2(0, 0, -321, a2)](t5, e2), _2("");
|
|
2048
|
+
d2 && g2(""), await this[u2(86, 0, 0, l2)](t5, e2), g2("");
|
|
2055
2049
|
}
|
|
2056
|
-
[
|
|
2057
|
-
return this[t5 =
|
|
2050
|
+
[je(279, 228, 240, 367, "kyAX")]() {
|
|
2051
|
+
return this[t5 = 1405, e2 = "kyAX", xe(0, e2, 0, 0, t5 - 1461)]();
|
|
2058
2052
|
var t5, e2;
|
|
2059
2053
|
}
|
|
2060
|
-
[
|
|
2061
|
-
return this[e2 =
|
|
2054
|
+
[Oe(0, 636, 0, 0, "kxNc")](t5) {
|
|
2055
|
+
return this[e2 = "hPcY", n2 = -268, Te(n2 - -1740, e2)](true, t5);
|
|
2062
2056
|
var e2, n2;
|
|
2063
2057
|
}
|
|
2064
|
-
[
|
|
2065
|
-
|
|
2066
|
-
|
|
2058
|
+
[Te(1534, "dZ(!")]() {
|
|
2059
|
+
function t5(t6, e2, n2, r2, o2) {
|
|
2060
|
+
return Oe(0, r2 - -908, 0, 0, e2);
|
|
2061
|
+
}
|
|
2062
|
+
return De[t5(0, "*Thb", 0, -224)] || De[t5(0, "L@Wi", 0, -268)];
|
|
2067
2063
|
}
|
|
2068
|
-
[
|
|
2069
|
-
|
|
2064
|
+
[je(212, 272, 258, 158, "l5b!")](t5) {
|
|
2065
|
+
Be = true;
|
|
2070
2066
|
}
|
|
2071
|
-
async [
|
|
2072
|
-
return this[t5 =
|
|
2073
|
-
var t5, e2;
|
|
2067
|
+
async [Ne(0, "AGh5", 0, 19)]() {
|
|
2068
|
+
return this[t5 = -515, e2 = -421, n2 = -523, r2 = "*Thb", je(t5 - -738, e2 - 486, n2 - 381, r2 - 17, r2)](true);
|
|
2069
|
+
var t5, e2, n2, r2;
|
|
2074
2070
|
}
|
|
2075
|
-
async [
|
|
2076
|
-
const n2 =
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2071
|
+
async [je(363, 321, 391, 378, "#I6k")](t5, e2) {
|
|
2072
|
+
const n2 = 550;
|
|
2073
|
+
function r2(t6, e3, r3, o3, s2) {
|
|
2074
|
+
return Ne(0, e3, 0, r3 - n2);
|
|
2075
|
+
}
|
|
2076
|
+
const o2 = await this[r2(0, "*Thb", 561)]();
|
|
2077
|
+
return await this[r2(0, "pU$v", 550)](true, t5, e2), o2;
|
|
2080
2078
|
}
|
|
2081
|
-
async [
|
|
2082
|
-
const t5 =
|
|
2083
|
-
var r2, o2;
|
|
2084
|
-
return await be[r2 =
|
|
2079
|
+
async [je(275, 277, 195, 190, "wqD6")]() {
|
|
2080
|
+
const t5 = 161;
|
|
2081
|
+
var e2, n2, r2, o2;
|
|
2082
|
+
return await be[e2 = -49, n2 = 79, r2 = -7, o2 = "Up[J", je(r2 - -245, e2 - t5, n2 - 448, r2 - 200, o2)]();
|
|
2085
2083
|
}
|
|
2086
2084
|
}
|
|
2087
|
-
const
|
|
2088
|
-
function je(t5, e2) {
|
|
2089
|
-
|
|
2090
|
-
return je = function(e3, r2) {
|
|
2091
|
-
let o2 = n2[e3 -= 408];
|
|
2092
|
-
if (void 0 === je.zGRuZE) {
|
|
2093
|
-
const e4 = function(t6, e5) {
|
|
2094
|
-
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
2095
|
-
for (t6 = function(t7) {
|
|
2096
|
-
let e6 = "", n4 = "";
|
|
2097
|
-
for (let n5, r4, o4 = 0, s4 = 0; r4 = t7.charAt(s4++); ~r4 && (n5 = o4 % 4 ? 64 * n5 + r4 : r4, o4++ % 4) ? e6 += String.fromCharCode(255 & n5 >> (-2 * o4 & 6)) : 0) r4 = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(r4);
|
|
2098
|
-
for (let t8 = 0, r4 = e6.length; t8 < r4; t8++) n4 += "%" + ("00" + e6.charCodeAt(t8).toString(16)).slice(-2);
|
|
2099
|
-
return decodeURIComponent(n4);
|
|
2100
|
-
}(t6), r3 = 0; r3 < 256; r3++) o3[r3] = r3;
|
|
2101
|
-
for (r3 = 0; r3 < 256; r3++) s3 = (s3 + o3[r3] + e5.charCodeAt(r3 % e5.length)) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3;
|
|
2102
|
-
r3 = 0, s3 = 0;
|
|
2103
|
-
for (let e6 = 0; e6 < t6.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t6.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
|
|
2104
|
-
return i3;
|
|
2105
|
-
};
|
|
2106
|
-
je.zKztzF = e4, t5 = arguments, je.zGRuZE = true;
|
|
2107
|
-
}
|
|
2108
|
-
const s2 = e3 + n2[0], i2 = t5[s2];
|
|
2109
|
-
return i2 ? o2 = i2 : (void 0 === je.gkkBpU && (je.gkkBpU = true), o2 = je.zKztzF(o2, r2), t5[s2] = o2), o2;
|
|
2110
|
-
}, je(t5, e2);
|
|
2111
|
-
}
|
|
2112
|
-
function We(t5, e2, n2, r2, o2) {
|
|
2113
|
-
return je(n2 - -644, o2);
|
|
2085
|
+
const We = new ze();
|
|
2086
|
+
function je(t5, e2, n2, r2, o2) {
|
|
2087
|
+
return Re(t5 - -234, o2);
|
|
2114
2088
|
}
|
|
2115
2089
|
const He = (t5, e2) => {
|
|
2116
2090
|
const n2 = [];
|
|
@@ -3124,16 +3098,16 @@ function Mn(t5, e2, n2) {
|
|
|
3124
3098
|
}(t5, e2, n2);
|
|
3125
3099
|
if (console.warn(r2), In.includes(t5)) throw new RangeError(r2);
|
|
3126
3100
|
}
|
|
3127
|
-
const
|
|
3128
|
-
function
|
|
3129
|
-
return "function" == typeof t5 ? t5(e2) : t5 && "object" == typeof t5 &&
|
|
3101
|
+
const Nn = Symbol.for("constructDateFrom");
|
|
3102
|
+
function Tn(t5, e2) {
|
|
3103
|
+
return "function" == typeof t5 ? t5(e2) : t5 && "object" == typeof t5 && Nn in t5 ? t5[Nn](e2) : t5 instanceof Date ? new t5.constructor(e2) : new Date(e2);
|
|
3130
3104
|
}
|
|
3131
3105
|
let kn = {};
|
|
3132
3106
|
function Fn() {
|
|
3133
3107
|
return kn;
|
|
3134
3108
|
}
|
|
3135
3109
|
function On(t5, e2) {
|
|
3136
|
-
return
|
|
3110
|
+
return Tn(e2 || t5, t5);
|
|
3137
3111
|
}
|
|
3138
3112
|
class Dn {
|
|
3139
3113
|
constructor() {
|
|
@@ -3156,13 +3130,13 @@ class Ln extends Dn {
|
|
|
3156
3130
|
}
|
|
3157
3131
|
class Bn extends Dn {
|
|
3158
3132
|
constructor(t5, e2) {
|
|
3159
|
-
super(), this.priority = 10, this.subPriority = -1, this.context = t5 || ((t6) =>
|
|
3133
|
+
super(), this.priority = 10, this.subPriority = -1, this.context = t5 || ((t6) => Tn(e2, t6));
|
|
3160
3134
|
}
|
|
3161
3135
|
set(t5, e2) {
|
|
3162
|
-
return e2.timestampIsSet ? t5 :
|
|
3136
|
+
return e2.timestampIsSet ? t5 : Tn(t5, function(t6, e3) {
|
|
3163
3137
|
const n2 = function(t7) {
|
|
3164
3138
|
return "function" == typeof t7 && t7.prototype?.constructor === t7;
|
|
3165
|
-
}(e3) ? new e3(0) :
|
|
3139
|
+
}(e3) ? new e3(0) : Tn(e3, 0);
|
|
3166
3140
|
return n2.setFullYear(t6.getFullYear(), t6.getMonth(), t6.getDate()), n2.setHours(t6.getHours(), t6.getMinutes(), t6.getSeconds(), t6.getMilliseconds()), n2;
|
|
3167
3141
|
}(t5, this.context));
|
|
3168
3142
|
}
|
|
@@ -3176,7 +3150,7 @@ let Pn = class {
|
|
|
3176
3150
|
return true;
|
|
3177
3151
|
}
|
|
3178
3152
|
};
|
|
3179
|
-
const zn = /^(1[0-2]|0?\d)/,
|
|
3153
|
+
const zn = /^(1[0-2]|0?\d)/, Wn = /^(3[0-1]|[0-2]?\d)/, jn = /^\d/, Hn = /^\d{1,2}/, Vn = /^\d{1,3}/, $n = /^\d{1,4}/;
|
|
3180
3154
|
function Gn(t5, e2) {
|
|
3181
3155
|
return t5 ? { value: e2(t5.value), rest: t5.rest } : t5;
|
|
3182
3156
|
}
|
|
@@ -3187,7 +3161,7 @@ function Un(t5, e2) {
|
|
|
3187
3161
|
function Jn(t5, e2) {
|
|
3188
3162
|
switch (t5) {
|
|
3189
3163
|
case 1:
|
|
3190
|
-
return Un(
|
|
3164
|
+
return Un(jn, e2);
|
|
3191
3165
|
case 2:
|
|
3192
3166
|
return Un(Hn, e2);
|
|
3193
3167
|
case 3:
|
|
@@ -3231,7 +3205,7 @@ function Yn(t5, e2, n2) {
|
|
|
3231
3205
|
const r2 = Fn(), o2 = n2?.weekStartsOn ?? n2?.locale?.options?.weekStartsOn ?? r2.weekStartsOn ?? r2.locale?.options?.weekStartsOn ?? 0, s2 = On(t5, n2?.in), i2 = s2.getDay(), a2 = 7 - o2;
|
|
3232
3206
|
return function(t6, e3, n3) {
|
|
3233
3207
|
const r3 = On(t6, n3?.in);
|
|
3234
|
-
return isNaN(e3) ?
|
|
3208
|
+
return isNaN(e3) ? Tn(n3?.in || t6, NaN) : e3 ? (r3.setDate(r3.getDate() + e3), r3) : r3;
|
|
3235
3209
|
}(s2, e2 < 0 || e2 > 6 ? e2 - (i2 + a2) % 7 : ((e2 % 7 + 7) % 7 + a2) % 7 - (i2 + a2) % 7, n2);
|
|
3236
3210
|
}
|
|
3237
3211
|
const Qn = { y: new class extends Pn {
|
|
@@ -3277,7 +3251,7 @@ const Qn = { y: new class extends Pn {
|
|
|
3277
3251
|
parse(t5, e2, n2) {
|
|
3278
3252
|
switch (e2) {
|
|
3279
3253
|
case "d":
|
|
3280
|
-
return Un(
|
|
3254
|
+
return Un(Wn, t5);
|
|
3281
3255
|
case "do":
|
|
3282
3256
|
return n2.ordinalNumber(t5, { unit: "date" });
|
|
3283
3257
|
default:
|
|
@@ -3319,7 +3293,7 @@ const Qn = { y: new class extends Pn {
|
|
|
3319
3293
|
}
|
|
3320
3294
|
}() }, Zn = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, tr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, er = /^'([^]*?)'?$/, nr = /''/g, rr = /\S/, or = /[a-zA-Z]/;
|
|
3321
3295
|
function sr(t5, e2, n2, r2) {
|
|
3322
|
-
const o2 = () =>
|
|
3296
|
+
const o2 = () => Tn(r2?.in || n2, NaN), s2 = Object.assign({}, Fn()), i2 = r2?.locale ?? s2.locale ?? yn, a2 = r2?.firstWeekContainsDate ?? r2?.locale?.options?.firstWeekContainsDate ?? s2.firstWeekContainsDate ?? s2.locale?.options?.firstWeekContainsDate ?? 1, l2 = r2?.weekStartsOn ?? r2?.locale?.options?.weekStartsOn ?? s2.weekStartsOn ?? s2.locale?.options?.weekStartsOn ?? 0;
|
|
3323
3297
|
if (!e2) return t5 ? o2() : On(n2, r2?.in);
|
|
3324
3298
|
const c2 = { firstWeekContainsDate: a2, weekStartsOn: l2, locale: i2 }, h2 = [new Bn(r2?.in, n2)], u2 = e2.match(tr).map((t6) => {
|
|
3325
3299
|
const e3 = t6[0];
|
|
@@ -3449,7 +3423,7 @@ function Mr(t5) {
|
|
|
3449
3423
|
return -1 === t6.indexOf("E") ? t6 : t6.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/, "$1E").replace(/(E[+-])(\d)$/, "$10$2");
|
|
3450
3424
|
}(e2.toUpperCase()));
|
|
3451
3425
|
}
|
|
3452
|
-
function
|
|
3426
|
+
function Nr(t5, e2) {
|
|
3453
3427
|
switch (typeof t5) {
|
|
3454
3428
|
case "string":
|
|
3455
3429
|
return t5;
|
|
@@ -3465,7 +3439,7 @@ function Tr(t5, e2) {
|
|
|
3465
3439
|
}
|
|
3466
3440
|
throw new Error("unsupported value in General format: " + t5);
|
|
3467
3441
|
}
|
|
3468
|
-
function
|
|
3442
|
+
function Tr(t5, e2, n2, r2) {
|
|
3469
3443
|
var o2, s2 = "", i2 = 0, a2 = 0, l2 = n2.y, c2 = 0;
|
|
3470
3444
|
switch (t5) {
|
|
3471
3445
|
case 98:
|
|
@@ -3610,11 +3584,11 @@ function zr(t5) {
|
|
|
3610
3584
|
}
|
|
3611
3585
|
return e2;
|
|
3612
3586
|
}
|
|
3613
|
-
function
|
|
3587
|
+
function Wr(t5, e2) {
|
|
3614
3588
|
var n2 = Math.pow(10, e2);
|
|
3615
3589
|
return "" + Math.round(t5 * n2) / n2;
|
|
3616
3590
|
}
|
|
3617
|
-
function
|
|
3591
|
+
function jr(t5, e2) {
|
|
3618
3592
|
var n2 = Math.pow(10, e2);
|
|
3619
3593
|
return Math.round(t5 * n2) / n2;
|
|
3620
3594
|
}
|
|
@@ -3647,15 +3621,15 @@ function Vr(t5, e2, n2) {
|
|
|
3647
3621
|
}(s2, l2, c2);
|
|
3648
3622
|
if (e2.match(/^#+0+$/)) return c2 + fr(l2, e2.length - e2.indexOf("0"));
|
|
3649
3623
|
if (s2 = e2.match(Lr)) {
|
|
3650
|
-
i2 = Math.trunc(
|
|
3624
|
+
i2 = Math.trunc(Wr(n2, s2[2].length));
|
|
3651
3625
|
var h2 = function(t6) {
|
|
3652
3626
|
if (!isFinite(t6)) return 0;
|
|
3653
3627
|
for (var e3 = 1, n3 = 0; Math.round(t6 * e3) / e3 !== t6; ) e3 *= 10, n3++;
|
|
3654
3628
|
return n3;
|
|
3655
|
-
}(a2 =
|
|
3656
|
-
return a2 = (a2 = "" +
|
|
3629
|
+
}(a2 = jr(Math.abs(i2 - n2), s2[2].length));
|
|
3630
|
+
return a2 = (a2 = "" + jr(a2, h2)).replace(/^0\./, ""), o2 = lr("" + Math.abs(i2), s2[1]) + "." + lr("" + a2, s2[2], true), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
|
|
3657
3631
|
}
|
|
3658
|
-
if (s2 = (e2 = e2.replace(/^#+([0.])/, "$1")).match(/^(0*)\.(#*)$/)) return c2 +
|
|
3632
|
+
if (s2 = (e2 = e2.replace(/^#+([0.])/, "$1")).match(/^(0*)\.(#*)$/)) return c2 + Wr(l2, s2[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s2[1].length ? "0." : ".");
|
|
3659
3633
|
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + kr(fr(l2, 0));
|
|
3660
3634
|
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + Vr(t5, e2, -n2) : kr("" + (Math.floor(n2) + function(t6, e3) {
|
|
3661
3635
|
return e3 < ("" + Math.round((t6 - Math.floor(t6)) * Math.pow(10, e3))).length ? 1 : 0;
|
|
@@ -3901,7 +3875,7 @@ function Qr(t5, e2, n2) {
|
|
|
3901
3875
|
case "number":
|
|
3902
3876
|
null == (r2 = 14 === t5 && n2.dateNF ? n2.dateNF : (null != n2.table ? n2.table : wr)[t5]) && (r2 = n2.table && n2.table[yr[t5]] || wr[yr[t5]]), null == r2 && (r2 = Er[t5] || "General");
|
|
3903
3877
|
}
|
|
3904
|
-
if (pr(r2, 0)) return
|
|
3878
|
+
if (pr(r2, 0)) return Nr(e2, n2);
|
|
3905
3879
|
ar(e2) && (e2 = Rr(e2, n2.date1904));
|
|
3906
3880
|
var o2 = function(t6, e3) {
|
|
3907
3881
|
var n3 = Jr(t6), r3 = n3.length, o3 = n3[r3 - 1].indexOf("@");
|
|
@@ -3925,7 +3899,7 @@ function Qr(t5, e2, n2) {
|
|
|
3925
3899
|
}
|
|
3926
3900
|
return [r3, s2];
|
|
3927
3901
|
}(r2, e2);
|
|
3928
|
-
if (pr(o2[1])) return
|
|
3902
|
+
if (pr(o2[1])) return Nr(e2, n2);
|
|
3929
3903
|
if (true === e2) e2 = "TRUE";
|
|
3930
3904
|
else if (false === e2) e2 = "FALSE";
|
|
3931
3905
|
else if ("" === e2 || null == e2) return "";
|
|
@@ -4089,7 +4063,7 @@ function Qr(t5, e2, n2) {
|
|
|
4089
4063
|
case "e":
|
|
4090
4064
|
case "b":
|
|
4091
4065
|
case "Z":
|
|
4092
|
-
a2[c2].v =
|
|
4066
|
+
a2[c2].v = Tr(a2[c2].t.charCodeAt(0), a2[c2].v, o3, w2), a2[c2].t = "t";
|
|
4093
4067
|
break;
|
|
4094
4068
|
case "n":
|
|
4095
4069
|
case "?":
|
|
@@ -4097,7 +4071,7 @@ function Qr(t5, e2, n2) {
|
|
|
4097
4071
|
E2 += a2[c2].v, c2 = y2 - 1;
|
|
4098
4072
|
break;
|
|
4099
4073
|
case "G":
|
|
4100
|
-
a2[c2].t = "t", a2[c2].v =
|
|
4074
|
+
a2[c2].t = "t", a2[c2].v = Nr(e3, n3);
|
|
4101
4075
|
}
|
|
4102
4076
|
var b2, C2, v2 = "";
|
|
4103
4077
|
if (E2.length > 0) {
|
|
@@ -4181,7 +4155,7 @@ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: Jr, _table: wr,
|
|
|
4181
4155
|
const a2 = (s2 + o2) / 2;
|
|
4182
4156
|
let l2 = 0;
|
|
4183
4157
|
return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
|
|
4184
|
-
}, xo = 0, Io = 1, Ro = 2, Ao = 0, Mo = 1,
|
|
4158
|
+
}, xo = 0, Io = 1, Ro = 2, Ao = 0, Mo = 1, No = 2, To = 0, ko = 1, Fo = 2, Oo = (t5, e2) => {
|
|
4185
4159
|
let n2 = e2 / 100;
|
|
4186
4160
|
return ((t6, e3) => {
|
|
4187
4161
|
let n3 = So(t6);
|
|
@@ -4216,18 +4190,18 @@ const to = { format: Qr, dateNumLocal: Rr, load: Zr, split_fmt: Jr, _table: wr,
|
|
|
4216
4190
|
}
|
|
4217
4191
|
let o2 = bo(r2);
|
|
4218
4192
|
return o2 = fo(o2), o2;
|
|
4219
|
-
},
|
|
4193
|
+
}, Wo = (t5, e2, n2) => {
|
|
4220
4194
|
let r2 = vo(e2), o2 = n2 / 100;
|
|
4221
4195
|
r2[t5] = r2[t5] * o2, t5 === xo && (r2[xo] = _o(r2[xo]));
|
|
4222
4196
|
let s2 = bo(r2);
|
|
4223
4197
|
return s2 = fo(s2), s2;
|
|
4224
|
-
},
|
|
4198
|
+
}, jo = (t5, e2, n2, r2) => {
|
|
4225
4199
|
let o2 = So(e2), s2 = n2 / 100;
|
|
4226
|
-
r2 ===
|
|
4200
|
+
r2 === To ? o2[t5] = s2 : r2 === ko ? o2[t5] += s2 : r2 === Fo && (o2[t5] *= s2);
|
|
4227
4201
|
let i2 = wo(o2);
|
|
4228
4202
|
return i2 = fo(i2), i2;
|
|
4229
4203
|
}, Ho = (t5) => {
|
|
4230
|
-
let e2 = So(t5), n2 = 0.213 * e2[Ao] + 0.715 * e2[Mo] + 0.072 * e2[
|
|
4204
|
+
let e2 = So(t5), n2 = 0.213 * e2[Ao] + 0.715 * e2[Mo] + 0.072 * e2[No];
|
|
4231
4205
|
e2[0] = n2, e2[1] = n2, e2[2] = n2;
|
|
4232
4206
|
let r2 = wo(e2);
|
|
4233
4207
|
return r2 = fo(r2), r2;
|
|
@@ -4427,10 +4401,10 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
|
|
|
4427
4401
|
}
|
|
4428
4402
|
}, Rs = (t5) => {
|
|
4429
4403
|
if (t5 === os.MediumDate || t5 === os.LongDate || t5 === os.ShortDate || t5 === os.MediumTime || t5 === os.LongTime || t5 === os.ShortTime) return true;
|
|
4430
|
-
}, As = (t5, e2) => t5 === e2 ? 0 : Rs(t5) ? 1 : Rs(e2) ? -1 : t5 === os.Percentage ? 1 : e2 === os.Percentage ? -1 : t5 === os.Currency || t5 === os.Accounting ? 1 : e2 === os.Currency || e2 === os.Accounting ? -1 : 0, Ms = (t5) => (t5 instanceof Date || "[object Date]" === Object.prototype.toString.call(t5)) && !isNaN(t5.getTime()),
|
|
4404
|
+
}, As = (t5, e2) => t5 === e2 ? 0 : Rs(t5) ? 1 : Rs(e2) ? -1 : t5 === os.Percentage ? 1 : e2 === os.Percentage ? -1 : t5 === os.Currency || t5 === os.Accounting ? 1 : e2 === os.Currency || e2 === os.Accounting ? -1 : 0, Ms = (t5) => (t5 instanceof Date || "[object Date]" === Object.prototype.toString.call(t5)) && !isNaN(t5.getTime()), Ns = (t5, e2, n2) => {
|
|
4431
4405
|
return "month" === n2 || "months" === n2 || "m" === n2 ? (r2 = t5, 12 * ((o2 = e2).getUTCFullYear() - r2.getUTCFullYear()) + (o2.getUTCMonth() - r2.getUTCMonth()) + (o2.getUTCDate() - r2.getUTCDate() < 0 ? -1 : 0)) : "year" === n2 || "years" === n2 || "y" === n2 ? ((t6, e3) => Math.abs(e3.getFullYear() - t6.getFullYear()))(t5, e2) : "day" === n2 || "days" === n2 || "d" === n2 ? ((t6, e3) => Math.floor((Date.UTC(e3.getFullYear(), e3.getMonth(), e3.getDate()) - Date.UTC(t6.getFullYear(), t6.getMonth(), t6.getDate())) / 864e5))(t5, e2) : void console.warn("invalid unit" + n2);
|
|
4432
4406
|
var r2, o2;
|
|
4433
|
-
},
|
|
4407
|
+
}, Ts = "d", ks = "m", Fs = "y", Os = (t5, e2, n2) => {
|
|
4434
4408
|
if ("month" === n2 || "months" === n2 || "m" === n2) {
|
|
4435
4409
|
const n3 = new Date(t5.getTime());
|
|
4436
4410
|
return new Date(n3.setMonth(n3.getMonth() + e2));
|
|
@@ -4476,7 +4450,7 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
|
|
|
4476
4450
|
n2.push({ parseFormat: e2[t6][0], numberFormat: e2[t6][1], todaysYear: !r2, windowYear: true, containsDot: o2, containsDash: s2 }), r2 && n2.push({ parseFormat: e2[t6][0].replace(/yyy/g, "yyyy"), numberFormat: e2[t6][1], todaysYear: false, windowYear: false, containsDot: o2, containsDash: s2 });
|
|
4477
4451
|
}
|
|
4478
4452
|
return n2;
|
|
4479
|
-
})([["MM-d", "d-mmm"], ["MM-yyy", "mmm-yy"], ["M-yyy", "mmm-yy"], ["M-d-yyy", "m/d/yyyy"], ["yyy-M-d", "m/d/yyyy"], ["yyy-d-M", "m/d/yyyy"], ["d.MMM", "d-mmm"], ["d.MMMM", "d-mmm"], ["d.MMM.yyy", "d-mmm-yy"], ["d.MMMM.yyy", "d-mmm-yy"], ["MMM.d", "d-mmm"], ["MMMM.d", "d-mmm"], ["MMM.yyy", "mmm-yy"], ["MMMM.yyy", "mmm-yy"], ["MMM dd, yyy", "d-mmm-yy"], ["MMMM dd, yyy", "d-mmm-yy"], ["EEE, MMMM dd, yyy", "[$-x-sysdate]ddd, mmmm dd, yyyy"], ["EEEE, MMMM dd, yyy", "[$-x-sysdate]dddd, mmmm dd, yyyy"]]), zs = { year: 0, month: 1, day: 0, hour: 0, minute: 0, second: 0, millis: 0 },
|
|
4453
|
+
})([["MM-d", "d-mmm"], ["MM-yyy", "mmm-yy"], ["M-yyy", "mmm-yy"], ["M-d-yyy", "m/d/yyyy"], ["yyy-M-d", "m/d/yyyy"], ["yyy-d-M", "m/d/yyyy"], ["d.MMM", "d-mmm"], ["d.MMMM", "d-mmm"], ["d.MMM.yyy", "d-mmm-yy"], ["d.MMMM.yyy", "d-mmm-yy"], ["MMM.d", "d-mmm"], ["MMMM.d", "d-mmm"], ["MMM.yyy", "mmm-yy"], ["MMMM.yyy", "mmm-yy"], ["MMM dd, yyy", "d-mmm-yy"], ["MMMM dd, yyy", "d-mmm-yy"], ["EEE, MMMM dd, yyy", "[$-x-sysdate]ddd, mmmm dd, yyyy"], ["EEEE, MMMM dd, yyy", "[$-x-sysdate]dddd, mmmm dd, yyyy"]]), zs = { year: 0, month: 1, day: 0, hour: 0, minute: 0, second: 0, millis: 0 }, Ws = (t5, e2 = false) => {
|
|
4480
4454
|
const n2 = { ...zs, ...t5 };
|
|
4481
4455
|
return n2.year = e2 ? 1904 : 1900, n2.dow = -1, n2.oaDateTime = ((t6, e3 = false) => {
|
|
4482
4456
|
if (!t6) return null;
|
|
@@ -4485,7 +4459,7 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
|
|
|
4485
4459
|
const o2 = new Date(t6.year, t6.month - 1, n3, r2, t6.minute, t6.second, t6.millis);
|
|
4486
4460
|
return Ls(o2, e3);
|
|
4487
4461
|
})(n2, e2), n2;
|
|
4488
|
-
},
|
|
4462
|
+
}, js = new RegExp("([0-9]{1,2})\\s*(P[M]?|A[M]?)\\s*$", "i"), Hs = new RegExp("([0-9]+)\\s*\\:$", "i"), Vs = new RegExp("(\\s*[0-9]{1,2})\\s+(P[M]?|A[M]?)\\s*$", "i"), $s = new RegExp("(\\s*[0-9]{1,4})\\s*([\\.]{1}\\s*[0-9]+)?\\s*\\:", "i"), Gs = new RegExp("(\\s*[0-9]{1,4})\\s*([\\.]{1}\\s*[0-9]*)?\\s*$", "i"), Us = (t5, e2 = false, n2 = false) => {
|
|
4489
4463
|
if (!t5 || t5.trim().length < 2 || -1 === t5.indexOf(":") && null === t5.match(Vs)) return null;
|
|
4490
4464
|
let r2 = null, o2 = null, s2 = null, i2 = false, a2 = false, l2 = "h:mm AM/PM", c2 = [], h2 = t5, u2 = null;
|
|
4491
4465
|
do {
|
|
@@ -4518,7 +4492,7 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
|
|
|
4518
4492
|
const m2 = [];
|
|
4519
4493
|
if (c2.length > 0) {
|
|
4520
4494
|
let t6 = d2(c2[0], Hs, false);
|
|
4521
|
-
if (null === t6 && (t6 = g2(c2[0],
|
|
4495
|
+
if (null === t6 && (t6 = g2(c2[0], js)), null === t6) return null;
|
|
4522
4496
|
m2.push(t6);
|
|
4523
4497
|
}
|
|
4524
4498
|
if (c2.length > 2) {
|
|
@@ -4541,7 +4515,7 @@ const bs = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Cs =
|
|
|
4541
4515
|
} else l2 = c2.length > 2 ? "h:mm:ss" : "h:mm", m2[0] > 23 && (l2 = "[h]:mm:ss"), null !== r2 && (l2 = "mm:ss.0"), m2[1] >= 60 && (l2 = "General"), m2[2] >= 60 && (l2 = "General");
|
|
4542
4516
|
"General" !== l2 && (1 === m2.length && m2.push(0), 2 === m2.length && (null === r2 ? m2.push(0) : m2.unshift(0)));
|
|
4543
4517
|
let f2 = { hour: m2[0] ?? 0, minute: m2[1] ?? 0, second: m2[2] ?? 0, millis: 1e3 * (r2 ?? 0) };
|
|
4544
|
-
return { numberFormat: l2, parsed:
|
|
4518
|
+
return { numberFormat: l2, parsed: Ws(f2, e2), leadingText: u2 };
|
|
4545
4519
|
}, Js = {}, qs = (t5, e2 = false, n2 = null) => {
|
|
4546
4520
|
const r2 = n2 ?? Date.now(), o2 = new Date(r2).getFullYear();
|
|
4547
4521
|
let s2 = t5.trim().replaceAll(/\s+/g, " ");
|
|
@@ -4689,7 +4663,7 @@ var Ai, Mi;
|
|
|
4689
4663
|
return "sans-serif";
|
|
4690
4664
|
}
|
|
4691
4665
|
}, Mi.GenericName = { Serif: "serif", SanSerif: "sans-serif", MonoSpace: "monospace", Cursive: "cursive", Fantasy: "fantasy", SystemUI: "system-ui", UISystem: "ui-system", UISerif: "ui-serif", UISanSerif: "ui-sans-serif", UIMonoSpace: "ui-monospace", UIRounded: "ui-rounded", Math: "math", Emoji: "emoji", Fangsong: "fangsong" };
|
|
4692
|
-
class
|
|
4666
|
+
class Ni {
|
|
4693
4667
|
constructor(t5) {
|
|
4694
4668
|
this._private = { input: t5 }, "string" == typeof t5 ? this._private.name = t5 : Object.assign(this._private, t5);
|
|
4695
4669
|
}
|
|
@@ -4712,18 +4686,18 @@ class Ti {
|
|
|
4712
4686
|
return true;
|
|
4713
4687
|
}
|
|
4714
4688
|
}
|
|
4715
|
-
const
|
|
4689
|
+
const Ti = ["Arial", "Arial Black", "Brush Script MT", "Calibri", "Comic Sans MS", "Courier New", "Garamond", "Georgia", "Impact", "Luminari", "Palatino Linotype", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana"], ki = /* @__PURE__ */ new Map();
|
|
4716
4690
|
ki.set(Ai.GenericName.Serif, ["Tahoma"]), ki.set(Ai.GenericName.SanSerif, ["Calibri"]), ki.set(Ai.GenericName.MonoSpace, ["Courier New"]), ki.set(Ai.GenericName.Cursive, ["Comic Sans MS"]), ki.set(Ai.GenericName.Fantasy, ["Luminari"]), ki.set(Ai.GenericName.UISystem, ["Arial"]), ki.set(Ai.GenericName.UISerif, ["Tahoma"]), ki.set(Ai.GenericName.UISanSerif, ["Arial"]), ki.set(Ai.GenericName.UIMonoSpace, ["Courier New"]), ki.set(Ai.GenericName.UIRounded, ["Arial"]), ki.set(Ai.GenericName.Math, []), ki.set(Ai.GenericName.Emoji, []), ki.set(Ai.GenericName.Fangsong, []);
|
|
4717
4691
|
const Fi = /* @__PURE__ */ new Map();
|
|
4718
4692
|
let Oi = [];
|
|
4719
|
-
Li(
|
|
4693
|
+
Li(Ti);
|
|
4720
4694
|
const Di = eval;
|
|
4721
4695
|
function Li(t5) {
|
|
4722
|
-
t5 || Li(
|
|
4696
|
+
t5 || Li(Ti);
|
|
4723
4697
|
let e2 = [];
|
|
4724
4698
|
for (let n2 = 0; n2 < t5.length; n2++) {
|
|
4725
4699
|
let r2 = t5[n2];
|
|
4726
|
-
"string" == typeof r2 && (r2 = new
|
|
4700
|
+
"string" == typeof r2 && (r2 = new Ni(r2));
|
|
4727
4701
|
let o2 = true;
|
|
4728
4702
|
const s2 = "document";
|
|
4729
4703
|
try {
|
|
@@ -4754,7 +4728,7 @@ const Bi = /* @__PURE__ */ new Map(), Pi = Object.freeze(Object.defineProperty({
|
|
|
4754
4728
|
}, setFontList: Li }, Symbol.toStringTag, { value: "Module" }));
|
|
4755
4729
|
class zi {
|
|
4756
4730
|
constructor(t5, e2, n2, r2 = null, o2 = null, s2 = null) {
|
|
4757
|
-
this._private = { wrapped: true, insets:
|
|
4731
|
+
this._private = { wrapped: true, insets: N.EmptyRect, orientation: Zs.Orientation.Horizontal, autoFit: Zs.Autofit.None, fontScale: 1, vertical: false, columnCount: 1, columnSpacing: 0, verticalAlignment: Zs.VerticalAlignment.Center, horizontalCentered: false, lineReduction: 0, isSpaceFirstLastPara: false, presetTextWarp: null, paragraphs: bt.EmptyArray }, this._bounds = null, this._textBounds = null, this._lines = null, this._lastLayoutDims = void 0, this._lastLayout = void 0, this._private = Object.assign(this._private, t5 || {}), this._defaultFont = e2, this._alignment = n2, this._lines = r2, this._bounds = Object.freeze(o2), this._textBounds = Object.freeze(s2);
|
|
4758
4732
|
}
|
|
4759
4733
|
visitParas(t5) {
|
|
4760
4734
|
t5?.visitTextFrame?.(this);
|
|
@@ -4790,11 +4764,11 @@ class zi {
|
|
|
4790
4764
|
return qi(t5, this._defaultFont, this._alignment, e2 ?? this._private.wrapped);
|
|
4791
4765
|
}
|
|
4792
4766
|
get bounds() {
|
|
4793
|
-
if (null === this._bounds) throw new Error(
|
|
4767
|
+
if (null === this._bounds) throw new Error(Wi);
|
|
4794
4768
|
return this._bounds;
|
|
4795
4769
|
}
|
|
4796
4770
|
get textBounds() {
|
|
4797
|
-
if (null === this._textBounds) throw new Error(
|
|
4771
|
+
if (null === this._textBounds) throw new Error(Wi);
|
|
4798
4772
|
return this._textBounds;
|
|
4799
4773
|
}
|
|
4800
4774
|
get lines() {
|
|
@@ -4843,8 +4817,8 @@ class zi {
|
|
|
4843
4817
|
return this._private.paragraphs;
|
|
4844
4818
|
}
|
|
4845
4819
|
}
|
|
4846
|
-
const
|
|
4847
|
-
class
|
|
4820
|
+
const Wi = "bounds can not be used until layout";
|
|
4821
|
+
class ji {
|
|
4848
4822
|
static {
|
|
4849
4823
|
this.NL = "\n";
|
|
4850
4824
|
}
|
|
@@ -4857,7 +4831,7 @@ class Wi {
|
|
|
4857
4831
|
}
|
|
4858
4832
|
class Hi {
|
|
4859
4833
|
constructor(t5) {
|
|
4860
|
-
this._private = { defaultFontSize: 11, defaultTabSize:
|
|
4834
|
+
this._private = { defaultFontSize: 11, defaultTabSize: ji.DefaultTabWidth, tabOverrides: bt.EmptyArray, spacingBefore: 0, spacingAfter: 0, lineSpacing: ji.DefaultLineSpacing, align: Zs.HorizontalAlignment.Left, endParagraphSize: 0, indentLevel: 0, leadingIndent: 0, hangingIndent: 0, rightMargin: 0, bullet: null }, this._private = Object.assign(this._private, t5 || {});
|
|
4861
4835
|
}
|
|
4862
4836
|
clone(t5) {
|
|
4863
4837
|
const e2 = t5?.visitTextParagraph?.(this, 0, 1), n2 = Object.assign(this._private, e2 || {});
|
|
@@ -5062,7 +5036,7 @@ const Ui = (t5, e2, n2, r2 = null, o2 = Ai.getSharedMeasurer()) => {
|
|
|
5062
5036
|
for (let t7 = 0; t7 < n3; t7++) s2 += e3[t7].text, 0 === t7 && (i2 = e3[t7]);
|
|
5063
5037
|
0 === t6 && (a2 = l2[t6]);
|
|
5064
5038
|
}
|
|
5065
|
-
const h2 = t5.insets ??
|
|
5039
|
+
const h2 = t5.insets ?? N.EmptyRect, u2 = new Gi(o2), d2 = r2?.width ? r2.width - h2.right - h2.left : r2?.width, g2 = r2?.height ? r2.height - h2.bottom - h2.top : null, m2 = u2.wrap(s2, { fontName: i2.fontName, fontSize: i2.fontSize * Ai.getDeviceScale(), bold: i2.bold, italic: i2.italic, superSub: i2.superSub, letterSpacing: i2.letterSpacing, maxWidth: t5.wrapped && d2 ? d2 : null, maxHeight: g2 });
|
|
5066
5040
|
let f2 = [];
|
|
5067
5041
|
const p2 = m2.lines, _2 = p2.length, S2 = new Array(_2);
|
|
5068
5042
|
for (let t6 = 0; t6 < _2; t6++) {
|
|
@@ -5251,8 +5225,8 @@ var da, ga, ma, fa, pa, _a;
|
|
|
5251
5225
|
createFillAt(t6, e3) {
|
|
5252
5226
|
e3 = { ...this._options, ...e3 };
|
|
5253
5227
|
let n3 = 0, r3 = this._options?.unit;
|
|
5254
|
-
r3 || (r3 = 1 === t6.length ?
|
|
5255
|
-
if (!t7 || t7.length < 1) return
|
|
5228
|
+
r3 || (r3 = 1 === t6.length ? Ts : ((t7, e4 = false) => {
|
|
5229
|
+
if (!t7 || t7.length < 1) return Ts;
|
|
5256
5230
|
let n4 = t7;
|
|
5257
5231
|
e4 || (n4 = t7.slice(), n4 = n4.sort((t8, e5) => t8.getTime() - e5.getTime()));
|
|
5258
5232
|
let r4 = false, o4 = -1, s4 = -1;
|
|
@@ -5260,7 +5234,7 @@ var da, ga, ma, fa, pa, _a;
|
|
|
5260
5234
|
let e5 = n4[t8];
|
|
5261
5235
|
if (t8 > n4.length - 1 && e5.getTime() < n4[t8 + 1].getTime()) throw new Error("Dates are expected to be sorted.");
|
|
5262
5236
|
let i3 = 12 * e5.getFullYear() + e5.getMonth();
|
|
5263
|
-
if (i3 === s4) return
|
|
5237
|
+
if (i3 === s4) return Ts;
|
|
5264
5238
|
s4 = i3;
|
|
5265
5239
|
let a2 = e5.getFullYear();
|
|
5266
5240
|
a2 > o4 ? o4 = a2 : r4 = true;
|
|
@@ -5272,7 +5246,7 @@ var da, ga, ma, fa, pa, _a;
|
|
|
5272
5246
|
let s3 = 1;
|
|
5273
5247
|
e3?.reverse && (s3 *= -1, n3 *= -1);
|
|
5274
5248
|
for (let e4 = 1; e4 < t6.length; e4++) {
|
|
5275
|
-
let n4 =
|
|
5249
|
+
let n4 = Ns(t6[e4 - 1], t6[e4], r3);
|
|
5276
5250
|
if (1 === e4) s3 = n4;
|
|
5277
5251
|
else if (n4 !== s3) return null;
|
|
5278
5252
|
}
|
|
@@ -5505,7 +5479,7 @@ var da, ga, ma, fa, pa, _a;
|
|
|
5505
5479
|
return "function" == typeof u3 ? u3(c3) : u3[c3 % u3.length];
|
|
5506
5480
|
};
|
|
5507
5481
|
}
|
|
5508
|
-
}, t5.Types = { Series: new t5.Composite([new t5.Date(), new t5.Linear(), new t5.Ordinal(), new t5.List()]), DateDays: new t5.Date({ unit:
|
|
5482
|
+
}, t5.Types = { Series: new t5.Composite([new t5.Date(), new t5.Linear(), new t5.Ordinal(), new t5.List()]), DateDays: new t5.Date({ unit: Ts }), DateMonths: new t5.Date({ unit: ks }), DateYears: new t5.Date({ unit: Fs }), Copy: new t5.Copy() }, t5.fillTo = (t6, e3, n3, r3) => {
|
|
5509
5483
|
const o3 = [], s3 = e3.length, i3 = t6.createFillAt(e3, r3);
|
|
5510
5484
|
for (let t7 = s3; t7 < n3; t7++) o3.push(i3(t7));
|
|
5511
5485
|
return o3;
|
|
@@ -5578,10 +5552,10 @@ for (let t5 = 0; t5 < xa.length; t5++) va.set(pa.AdjustmentType[xa[t5]].toLowerC
|
|
|
5578
5552
|
const Ia = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), Ra = new RegExp("\\s*[,]\\s*|\\s+");
|
|
5579
5553
|
let Aa = null;
|
|
5580
5554
|
const Ma = { [pa.Scheme.Bg1]: "window", [pa.Scheme.Bg2]: "E7E6E6", [pa.Scheme.Tx1]: "windowText", [pa.Scheme.Tx2]: "44546A", [pa.Scheme.Accent1]: "4472C4", [pa.Scheme.Accent2]: "ED7D31", [pa.Scheme.Accent3]: "A5A5A5", [pa.Scheme.Accent4]: "FFC000", [pa.Scheme.Accent5]: "5B9BD5", [pa.Scheme.Accent6]: "70AD47", [pa.Scheme.Hlink]: "0563C1", [pa.Scheme.FolHlink]: "954F72" };
|
|
5581
|
-
class
|
|
5555
|
+
class Na {
|
|
5582
5556
|
constructor(t5, e2, n2, r2 = null) {
|
|
5583
5557
|
let o2 = null, s2 = null;
|
|
5584
|
-
if (t5 instanceof
|
|
5558
|
+
if (t5 instanceof Na) o2 = t5.getVal(), t5.getAdjustments() && (s2 = [...t5.getAdjustments()]);
|
|
5585
5559
|
else if ("string" == typeof t5) {
|
|
5586
5560
|
const e3 = this._parse(t5);
|
|
5587
5561
|
o2 = e3.val, s2 = e3.adjs;
|
|
@@ -5639,7 +5613,7 @@ class Ta {
|
|
|
5639
5613
|
let n3 = [...t6.srgb], r3 = void 0 !== t6.alpha ? t6.alpha : 1;
|
|
5640
5614
|
for (var o2 = 0; e3 && o2 < e3.length; o2++) {
|
|
5641
5615
|
const t7 = e3[o2], s2 = Object.keys(t7)[0], i2 = t7[s2];
|
|
5642
|
-
s2 === pa.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.Hue ? n3 = Po(xo, n3, i2) : s2 === pa.AdjustmentType.Sat ? n3 = Po(Io, n3, i2) : s2 === pa.AdjustmentType.Lum ? n3 = Po(Ro, n3, i2) : s2 === pa.AdjustmentType.HueOff ? n3 = zo(xo, n3, i2) : s2 === pa.AdjustmentType.SatOff ? n3 = zo(Io, n3, i2) : s2 === pa.AdjustmentType.LumOff ? n3 = zo(Ro, n3, i2) : s2 === pa.AdjustmentType.HueMod ? n3 =
|
|
5616
|
+
s2 === pa.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === pa.AdjustmentType.Hue ? n3 = Po(xo, n3, i2) : s2 === pa.AdjustmentType.Sat ? n3 = Po(Io, n3, i2) : s2 === pa.AdjustmentType.Lum ? n3 = Po(Ro, n3, i2) : s2 === pa.AdjustmentType.HueOff ? n3 = zo(xo, n3, i2) : s2 === pa.AdjustmentType.SatOff ? n3 = zo(Io, n3, i2) : s2 === pa.AdjustmentType.LumOff ? n3 = zo(Ro, n3, i2) : s2 === pa.AdjustmentType.HueMod ? n3 = Wo(xo, n3, i2) : s2 === pa.AdjustmentType.SatMod ? n3 = Wo(Io, n3, i2) : s2 === pa.AdjustmentType.LumMod ? n3 = Wo(Ro, n3, i2) : s2 === pa.AdjustmentType.Red ? n3 = jo(Ao, n3, i2, To) : s2 === pa.AdjustmentType.Green ? n3 = jo(Mo, n3, i2, To) : s2 === pa.AdjustmentType.Blue ? n3 = jo(No, n3, i2, To) : s2 === pa.AdjustmentType.RedOff ? n3 = jo(Ao, n3, i2, ko) : s2 === pa.AdjustmentType.GreenOff ? n3 = jo(Mo, n3, i2, ko) : s2 === pa.AdjustmentType.BlueOff ? n3 = jo(No, n3, i2, ko) : s2 === pa.AdjustmentType.RedMod ? n3 = jo(Ao, n3, i2, Fo) : s2 === pa.AdjustmentType.GreenMod ? n3 = jo(Mo, n3, i2, Fo) : s2 === pa.AdjustmentType.BlueMod ? n3 = jo(No, n3, i2, Fo) : s2 === pa.AdjustmentType.Shade ? n3 = Oo(n3, i2) : s2 === pa.AdjustmentType.Tint ? n3 = Bo(n3, i2) : s2 === pa.AdjustmentType.ETint ? n3 = Lo(n3, i2) : s2 === pa.AdjustmentType.Gray ? n3 = Ho(n3) : s2 === pa.AdjustmentType.Comp ? n3 = Vo(n3) : s2 === pa.AdjustmentType.Inv ? n3 = $o(n3, i2) : s2 === pa.AdjustmentType.Gamma ? n3 = Go(n3) : s2 === pa.AdjustmentType.InvGamma ? n3 = Uo(n3) : console.warn("unknown adjustmentType: " + s2);
|
|
5643
5617
|
}
|
|
5644
5618
|
return { srgb: n3, alpha: r3 };
|
|
5645
5619
|
})(t5.srgbAlpha, this._private.adjs), n2 = ((t6, e3 = 255) => {
|
|
@@ -5652,7 +5626,7 @@ class Ta {
|
|
|
5652
5626
|
this._private.adjusted = e2, this._private.parsedVal = t5, this._private.resolved = new Yo.RGBA(n2[0], n2[1], n2[2], r2);
|
|
5653
5627
|
}
|
|
5654
5628
|
static parse(t5, e2, n2, r2 = null) {
|
|
5655
|
-
if (t5 instanceof
|
|
5629
|
+
if (t5 instanceof Na) return t5;
|
|
5656
5630
|
const o2 = t5;
|
|
5657
5631
|
let s2 = null, i2 = o2?.trim(), a2 = null;
|
|
5658
5632
|
try {
|
|
@@ -5677,7 +5651,7 @@ class Ta {
|
|
|
5677
5651
|
}
|
|
5678
5652
|
t6.push({ [r3]: s3 });
|
|
5679
5653
|
}
|
|
5680
|
-
a2 = new
|
|
5654
|
+
a2 = new Na({ val: s2, adjs: t6 }, e2, n2, r2);
|
|
5681
5655
|
} catch (t6) {
|
|
5682
5656
|
throw t6;
|
|
5683
5657
|
}
|
|
@@ -5688,14 +5662,14 @@ class Ta {
|
|
|
5688
5662
|
const t5 = /* @__PURE__ */ new Map(), e2 = Object.keys(Ma);
|
|
5689
5663
|
for (let n2 = 0; n2 < e2.length; n2++) {
|
|
5690
5664
|
const r2 = e2[n2];
|
|
5691
|
-
t5.set(r2.toLowerCase(),
|
|
5665
|
+
t5.set(r2.toLowerCase(), Na.parse(Ma[r2], null));
|
|
5692
5666
|
}
|
|
5693
5667
|
Aa = (e3) => t5.get(e3.toLowerCase())?.toRGBA();
|
|
5694
5668
|
}
|
|
5695
5669
|
return Aa;
|
|
5696
5670
|
}
|
|
5697
5671
|
isEqual(t5) {
|
|
5698
|
-
return t5 instanceof
|
|
5672
|
+
return t5 instanceof Na && this.toString().toLowerCase() === t5.toString().toLowerCase();
|
|
5699
5673
|
}
|
|
5700
5674
|
getVal() {
|
|
5701
5675
|
return this._private.val;
|
|
@@ -5704,7 +5678,7 @@ class Ta {
|
|
|
5704
5678
|
return this._private.adjs;
|
|
5705
5679
|
}
|
|
5706
5680
|
adjust(t5) {
|
|
5707
|
-
return new
|
|
5681
|
+
return new Na({ val: this._private.val, adjs: this._private.adjs ? this._private.adjs.concat(t5) : t5 }, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
|
|
5708
5682
|
}
|
|
5709
5683
|
getType() {
|
|
5710
5684
|
return this._resolve(), this._private.parsedVal.type ?? null;
|
|
@@ -5728,7 +5702,7 @@ class Ta {
|
|
|
5728
5702
|
}
|
|
5729
5703
|
toBlackOrWhite(t5 = false, e2 = 157) {
|
|
5730
5704
|
const n2 = this.toRGBA(t5), r2 = 0.299 * n2.red + 0.587 * n2.green + 0.114 * n2.blue > e2;
|
|
5731
|
-
return new
|
|
5705
|
+
return new Na(r2 ? "#000000" : "#FFFFFF", this._private.schemeLookup, this._private.indexedLookup, this._private.last);
|
|
5732
5706
|
}
|
|
5733
5707
|
get [Symbol.toStringTag]() {
|
|
5734
5708
|
return this.toString();
|
|
@@ -5750,16 +5724,16 @@ class Ta {
|
|
|
5750
5724
|
return true;
|
|
5751
5725
|
}
|
|
5752
5726
|
}
|
|
5753
|
-
var
|
|
5754
|
-
(ka =
|
|
5755
|
-
const Fa = [], Oa = /* @__PURE__ */ new Map(), Da = Object.freeze([[
|
|
5727
|
+
var Ta, ka;
|
|
5728
|
+
(ka = Ta || (Ta = {})).StrokeStyle = { None: "none", DashDot: "dashDot", MediumDashDot: "mediumDashDot", Dotted: "dotted", Hair: "hair", Thin: "thin", Medium: "medium", Thick: "thick", MediumDashDotDot: "mediumDashDotDot", DashDotDot: "dashDotDot", Dashed: "dashed", MediumDashed: "mediumDashed", SlantDashDot: "slantDashDot", Double: "double" }, ka.Edge = { Left: "left", Top: "top", Right: "right", Bottom: "bottom", Horizontal: "horizontal", Vertical: "vertical", DiagonalUp: "diagonalUp", DiagonalDown: "diagonalDown" };
|
|
5729
|
+
const Fa = [], Oa = /* @__PURE__ */ new Map(), Da = Object.freeze([[Ta.StrokeStyle.Thin, "Thin", 1, null], [Ta.StrokeStyle.Hair, "Hair", 1, [1, 1]], [Ta.StrokeStyle.Dotted, "Dotted", 1, [2, 2]], [Ta.StrokeStyle.Dashed, "Dashed", 1, [3, 1]], [Ta.StrokeStyle.DashDot, "Dash Dot", 1, [3, 3, 9, 3]], [Ta.StrokeStyle.DashDotDot, "Dash Dot Dot", 1, [3, 3, 3, 3, 9, 3]], [Ta.StrokeStyle.Double, "Double", 3, null], [Ta.StrokeStyle.Medium, "Medium", 2, null], [Ta.StrokeStyle.MediumDashed, "Medium Dashed", 2, [9, 3]], [Ta.StrokeStyle.MediumDashDot, "Medium Dash Dot", 2, [3, 3, 9, 3]], [Ta.StrokeStyle.MediumDashDotDot, "Medium Dash Dot Dot", 2, [3, 3, 3, 3, 9, 3]], [Ta.StrokeStyle.SlantDashDot, "Slant Dash Dot", 2, [5, 1, 11, 1]], [Ta.StrokeStyle.Thick, "Thick", 3, null], [Ta.StrokeStyle.None, "None", 0, null]]);
|
|
5756
5730
|
for (let t5 = 0; t5 < Da.length; t5++) {
|
|
5757
5731
|
const e2 = Da[t5], n2 = e2[0], r2 = Object.freeze({ style: n2, description: e2[1], width: e2[2], pattern: e2[3] });
|
|
5758
5732
|
Fa.push(r2), Oa.set(n2, r2);
|
|
5759
5733
|
}
|
|
5760
5734
|
((t5) => {
|
|
5761
5735
|
t5.isEqualStrokes = (t6, e2) => !(t6 && !e2 || e2 && !t6) && (t6 === e2 || t6.getStyle() === e2.getStyle() && t6.getColor().isEqual(e2.getColor())), t5.oppositeEdge = (e2) => e2 === t5.Edge.Left ? t5.Edge.Right : e2 === t5.Edge.Right ? t5.Edge.Left : e2 === t5.Edge.Top ? t5.Edge.Bottom : e2 === t5.Edge.Bottom ? t5.Edge.Top : e2, t5.BuiltInDefinitionsArray = Fa, t5.BuiltInDefinitions = Oa;
|
|
5762
|
-
})(
|
|
5736
|
+
})(Ta || (Ta = {}));
|
|
5763
5737
|
const La = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, Ba = (t5) => !(!t5.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/) && !t5.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)), Pa = Object.freeze({ formatValue: hs, isFractionFormat: Ba, adjustDecimalPlaces: (t5, e2) => {
|
|
5764
5738
|
if (!t5) return "";
|
|
5765
5739
|
const n2 = (t6, e3) => {
|
|
@@ -5784,10 +5758,10 @@ const La = { Text: "text", Repeat: "repeat", Spacing: "spacing" }, Ba = (t5) =>
|
|
|
5784
5758
|
let s2 = cs(t5);
|
|
5785
5759
|
for (let t6 = 0; t6 < s2.length; t6++) o2.push(r2(s2[t6].trim(), e2));
|
|
5786
5760
|
return o2.join(";");
|
|
5787
|
-
} }), za = to._table,
|
|
5788
|
-
for (let t5 = 0; t5 <
|
|
5789
|
-
let e2 =
|
|
5790
|
-
Va.set(e2,
|
|
5761
|
+
} }), za = to._table, Wa = (t5) => 14 === t5 ? "Short Date" : za[t5] ?? null, ja = [{ numberFormat: "General", formatType: os.General, primary: 1 }, { numberFormat: "0", formatType: os.Number, regMatch: /^0[.]{0,1}[0]*$/, args: { decimalPlaces: 0, separator: false } }, { numberFormat: "#,##0.00", formatType: os.Number, regMatch: /^#,##0[.]{0,1}[0]*$/, primary: 2, args: { decimalPlaces: 2, separator: true } }, { numberFormat: "#,##0_);(#,##0)", formatType: os.Number, args: { decimalPlaces: 0, separator: true } }, { numberFormat: "#,##0_);[Red](#,##0)", formatType: os.Number, args: { decimalPlaces: 0, separator: true } }, { numberFormat: "#,##0.00_);(#,##0.00)", formatType: os.Number, args: { decimalPlaces: 2, separator: true } }, { numberFormat: "#,##0.00_);[Red](#,##0.00)", formatType: os.Number, args: { decimalPlaces: 2, separator: true } }, { numberFormat: "$#,##0.00", formatType: os.Currency, primary: 3, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: "$#,##0_);($#,##0)", formatType: os.Currency, args: { decimalPlaces: 0, currencySymbol: "$" } }, { numberFormat: "$#,##0_);[Red]($#,##0)", formatType: os.Currency, args: { decimalPlaces: 0, currencySymbol: "$" } }, { numberFormat: "$#,##0.00_);($#,##0.00)", formatType: os.Currency, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: "$#,##0.00_);[Red]($#,##0.00)", formatType: os.Currency, args: { decimalPlaces: 2, currencySymbol: "$" } }, { numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)', primary: 4, formatType: os.Accounting }, { numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)', formatType: os.Accounting }, { numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)', formatType: os.Accounting }, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', formatType: os.Accounting }, { numberFormat: "Short Date", formatType: os.ShortDate, primary: 5 }, { numberFormat: "d-mmm-yy", formatType: os.MediumDate, primary: 5.5 }, { numberFormat: "Long Date", formatType: os.LongDate, primary: 6 }, { numberFormat: "h:mm", formatType: os.ShortTime, primary: 7 }, { numberFormat: "h:mm AM/PM", formatType: os.MediumTime, primary: 7.5 }, { numberFormat: "Long Time", formatType: os.LongTime, primary: 8 }, { numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)', formatType: os.Comma, primary: 9 }, { numberFormat: "0.00%", formatType: os.Percentage, primary: 10, args: { decimalPlaces: 2 }, regMatch: /^^[0#?]*[.]{0,1}[0#?]*%*$/ }, { numberFormat: "0%", formatType: os.Percentage, args: { decimalPlaces: 0 } }, { numberFormat: "# ?/?", formatType: os.Fraction, primary: 11 }, { numberFormat: "# ??/??", formatType: os.Fraction }, { numberFormat: "0.00E+00", formatType: os.Scientific, primary: 12, args: { decimalPlaces: 2 }, regMatch: /^[0#?]*[.]{0,1}[0#?]*E\+[0#?]*$/ }, { numberFormat: "##0.0E+0", formatType: os.Custom, args: { decimalPlaces: 0 } }, { numberFormat: "@", formatType: os.Text, primary: 13 }, { numberFormat: "d-mmm", formatType: os.Custom }, { numberFormat: "mmm-yy", formatType: os.Custom }, { numberFormat: "h:mm:ss", formatType: os.Custom }, { numberFormat: "m/d/yyyy h:mm", formatType: os.Custom }, { numberFormat: "mm:ss", formatType: os.Custom }, { numberFormat: "mm:ss.0", formatType: os.Custom }, { numberFormat: "[h]:mm:ss", formatType: os.Custom }], Ha = [{ numberFormat: "00000", formatType: os.Special, primary: 11 }, { numberFormat: "00000-0000", formatType: os.Special }, { numberFormat: "[<=9999999]###-####;(###) ###-####", formatType: os.Special }, { numberFormat: "000-00-0000", formatType: os.Special }], Va = /* @__PURE__ */ new Map(), $a = [];
|
|
5762
|
+
for (let t5 = 0; t5 < ja.length; t5++) {
|
|
5763
|
+
let e2 = ja[t5].numberFormat.toLowerCase();
|
|
5764
|
+
Va.set(e2, ja[t5]), ja[t5].regMatch && $a.unshift(ja[t5]);
|
|
5791
5765
|
}
|
|
5792
5766
|
for (let t5 = 0; t5 < Ha.length; t5++) {
|
|
5793
5767
|
let e2 = Ha[t5].numberFormat.toLowerCase();
|
|
@@ -5803,7 +5777,7 @@ const Ja = Va.get(os.General.toLowerCase());
|
|
|
5803
5777
|
class qa {
|
|
5804
5778
|
lookupStyle(t5) {
|
|
5805
5779
|
if (!t5) return Ja;
|
|
5806
|
-
if ("number" == typeof t5 && (t5 =
|
|
5780
|
+
if ("number" == typeof t5 && (t5 = Wa(t5)), !t5.toLowerCase) return console.warn("Invalid numberFormat", t5), Ja;
|
|
5807
5781
|
t5 = t5.toLowerCase();
|
|
5808
5782
|
let e2 = Va.get(t5);
|
|
5809
5783
|
if (e2) return e2;
|
|
@@ -5826,7 +5800,7 @@ const Za = (t5, e2, n2, r2, o2) => {
|
|
|
5826
5800
|
s2.adjs || (s2.adjs = []);
|
|
5827
5801
|
let i2 = "", a2 = 0, l2 = 0;
|
|
5828
5802
|
e2 > 0 ? (l2 = e2, a2 = 100 - e2, i2 = `Lighter ${e2}%`) : e2 < 0 && (a2 = 100 + e2, i2 = `Darker ${-e2}%`), a2 && s2.adjs.push({ [pa.AdjustmentType.LumMod]: a2 }), l2 && s2.adjs.push({ [pa.AdjustmentType.LumOff]: l2 });
|
|
5829
|
-
const c2 = new
|
|
5803
|
+
const c2 = new Na({ val: s2.val, adjs: s2.adjs }, n2), h2 = c2.toString();
|
|
5830
5804
|
r2?.set(h2, c2);
|
|
5831
5805
|
const u2 = c2.toRGBA().toString();
|
|
5832
5806
|
return o2?.set(u2, c2), { description: t5.description + ", " + i2, definition: s2 };
|
|
@@ -5838,7 +5812,7 @@ const Za = (t5, e2, n2, r2, o2) => {
|
|
|
5838
5812
|
const a2 = (o3) => {
|
|
5839
5813
|
for (let a3 = 0; a3 < o3.length; a3++) i2.push(Za(t5[s2], o3[a3], e2, n2, r2));
|
|
5840
5814
|
};
|
|
5841
|
-
let l2 = new
|
|
5815
|
+
let l2 = new Na({ val: t5[s2].definition.val, adjs: t5[s2].definition.adjs }, e2).toHSLA().lum;
|
|
5842
5816
|
a2(0 === l2 ? [50, 35, 25, 15, 5] : 100 === l2 ? [-5, -15, -25, -35, -50] : l2 <= 20 ? [90, 75, 50, 25, 10] : l2 >= 80 ? [-10, -25, -50, -75, -90] : [80, 60, 40, -25, -50]);
|
|
5843
5817
|
}
|
|
5844
5818
|
return o2;
|
|
@@ -5853,7 +5827,7 @@ const rl = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
|
|
|
5853
5827
|
for (let t6 = 0; t6 < hl.length; t6++) {
|
|
5854
5828
|
const e3 = hl[t6], n3 = r2[t6 + 1];
|
|
5855
5829
|
if (!n3) continue;
|
|
5856
|
-
const o3 =
|
|
5830
|
+
const o3 = Na.parse(n3);
|
|
5857
5831
|
n3 && (s2[e3] = o3.toString());
|
|
5858
5832
|
}
|
|
5859
5833
|
}
|
|
@@ -5871,7 +5845,7 @@ const Sl = new class {
|
|
|
5871
5845
|
constructor() {
|
|
5872
5846
|
this._colors = {};
|
|
5873
5847
|
for (let t5 = 0; t5 < hl.length; t5++) {
|
|
5874
|
-
const e2 = hl[t5], n2 =
|
|
5848
|
+
const e2 = hl[t5], n2 = Na.parse(fl[e2]);
|
|
5875
5849
|
this._colors[e2] = n2;
|
|
5876
5850
|
}
|
|
5877
5851
|
}
|
|
@@ -5927,7 +5901,7 @@ class wl {
|
|
|
5927
5901
|
const e2 = Object.keys(t5);
|
|
5928
5902
|
if (0 !== e2.length) for (let n2 = 0; n2 < e2.length; n2++) {
|
|
5929
5903
|
const r2 = e2[n2];
|
|
5930
|
-
this._overrides[r2] = "name" === r2 ? t5[r2] :
|
|
5904
|
+
this._overrides[r2] = "name" === r2 ? t5[r2] : Na.parse(t5[r2]);
|
|
5931
5905
|
}
|
|
5932
5906
|
}
|
|
5933
5907
|
_value(t5, e2) {
|
|
@@ -5981,7 +5955,7 @@ const yl = new class {
|
|
|
5981
5955
|
constructor() {
|
|
5982
5956
|
this._colors = {};
|
|
5983
5957
|
for (let t5 = 0; t5 < hl.length; t5++) {
|
|
5984
|
-
const e2 = hl[t5], n2 =
|
|
5958
|
+
const e2 = hl[t5], n2 = Na.parse(fl[e2]);
|
|
5985
5959
|
this._colors[e2] = n2;
|
|
5986
5960
|
}
|
|
5987
5961
|
}
|
|
@@ -6059,7 +6033,7 @@ class bl {
|
|
|
6059
6033
|
const r3 = i2.getColorScheme();
|
|
6060
6034
|
let o3 = r3[n3].bind(r3)();
|
|
6061
6035
|
o3 || (o3 = fl[al[t6] ?? t6]);
|
|
6062
|
-
return e3 = new
|
|
6036
|
+
return e3 = new Na(o3).toRGBA(), i2._cacheColors[t6] = e3, e3;
|
|
6063
6037
|
};
|
|
6064
6038
|
}
|
|
6065
6039
|
get builtInID() {
|
|
@@ -6081,7 +6055,7 @@ class bl {
|
|
|
6081
6055
|
return this._schemeLookup;
|
|
6082
6056
|
}
|
|
6083
6057
|
parseColor(t5) {
|
|
6084
|
-
return
|
|
6058
|
+
return Na.parse(t5, this._schemeLookup);
|
|
6085
6059
|
}
|
|
6086
6060
|
toJSON() {
|
|
6087
6061
|
const t5 = { name: this.getName() }, e2 = this._colors.toJSON();
|
|
@@ -6266,7 +6240,7 @@ class Ml {
|
|
|
6266
6240
|
this._transactions.remove(this), this._transactionsRemoveListener();
|
|
6267
6241
|
}
|
|
6268
6242
|
}
|
|
6269
|
-
class
|
|
6243
|
+
class Nl {
|
|
6270
6244
|
constructor(t5) {
|
|
6271
6245
|
this._emitter = null, this._closed = false, this._options = { ...t5 };
|
|
6272
6246
|
const e2 = this;
|
|
@@ -6374,7 +6348,7 @@ class Tl {
|
|
|
6374
6348
|
this._closed || (this._emitter.notify("onClose"), this._closed = true, this._transactionsRemoveListener?.());
|
|
6375
6349
|
}
|
|
6376
6350
|
}
|
|
6377
|
-
class
|
|
6351
|
+
class Tl extends Nl {
|
|
6378
6352
|
_fromJSON(t5) {
|
|
6379
6353
|
const e2 = {};
|
|
6380
6354
|
if (e2.name = t5?.name ?? null, !e2.name) throw new Error(Al);
|
|
@@ -6443,7 +6417,7 @@ const Dl = (t5, e2, n2, r2) => {
|
|
|
6443
6417
|
return e2 = i2, i2;
|
|
6444
6418
|
};
|
|
6445
6419
|
}, Pl = Object.freeze({ done: true, value: void 0 }), zl = Object.freeze({ next: () => Pl, [Symbol.iterator]: () => zl });
|
|
6446
|
-
var
|
|
6420
|
+
var Wl;
|
|
6447
6421
|
Object.seal({ done: false, value: void 0 }), ((t5) => {
|
|
6448
6422
|
t5.isList = (t6) => !!t6 && !!t6.isIList, t5.isListLike = (t6) => !!t6 && ("number" == typeof t6.length && "function" == typeof t6.at), t5.fromArray = (t6, n2, r2, o2) => new e2(t6, n2, r2, o2);
|
|
6449
6423
|
class e2 {
|
|
@@ -6479,11 +6453,11 @@ Object.seal({ done: false, value: void 0 }), ((t5) => {
|
|
|
6479
6453
|
}
|
|
6480
6454
|
}
|
|
6481
6455
|
t5.ArrayList = e2;
|
|
6482
|
-
})(
|
|
6483
|
-
class
|
|
6456
|
+
})(Wl || (Wl = {}));
|
|
6457
|
+
class jl {
|
|
6484
6458
|
constructor(t5) {
|
|
6485
6459
|
if (this._s = null, this._r = null, this._l = 0, t5 && t5.length > 0) {
|
|
6486
|
-
const e2 =
|
|
6460
|
+
const e2 = Wl.isList(t5) && !Array.isArray(t5) ? t5 : new Wl.ArrayList(t5);
|
|
6487
6461
|
this._s = e2, this._l = t5.length;
|
|
6488
6462
|
}
|
|
6489
6463
|
}
|
|
@@ -6576,14 +6550,14 @@ class Wl {
|
|
|
6576
6550
|
const c2 = Math.max(0, o2 - l3), h2 = Math.max(0, r3 - s2), u2 = h2 + c2, d2 = e3.value;
|
|
6577
6551
|
i2.push({ min: l3 - a2, max: r3 - u2 - a2, value: { s: d2.s + c2, e: d2.e - h2, v: d2.v } }), a2 += u2;
|
|
6578
6552
|
}
|
|
6579
|
-
const l2 = new
|
|
6553
|
+
const l2 = new jl();
|
|
6580
6554
|
return l2._r = i2, l2._l = s2 - o2 + 1, l2;
|
|
6581
6555
|
}
|
|
6582
6556
|
concat(t5) {
|
|
6583
6557
|
if (!t5) return this;
|
|
6584
|
-
if (!
|
|
6558
|
+
if (!Wl.isListLike(t5)) throw new Error("Value must be IListLike");
|
|
6585
6559
|
const e2 = this._l;
|
|
6586
|
-
if (0 === e2) return t5.isIReadableList ? t5 : 0 === t5.length ? Vl : new
|
|
6560
|
+
if (0 === e2) return t5.isIReadableList ? t5 : 0 === t5.length ? Vl : new jl(t5);
|
|
6587
6561
|
const n2 = t5, r2 = t5.length;
|
|
6588
6562
|
if (0 === r2) return this;
|
|
6589
6563
|
const o2 = this._r ?? Hl(this._s), s2 = o2.slice(0, o2.length - 1);
|
|
@@ -6602,7 +6576,7 @@ class Wl {
|
|
|
6602
6576
|
const o3 = l2 + 1, d3 = o3 + r3;
|
|
6603
6577
|
i2 = { min: o3, max: d3, value: t6 }, a2 = o3, l2 = d3, c2 = i2 ? i2.value : null, h2 = c2 ? c2.v : null, u2 = c2 ? c2.e - c2.s : 0;
|
|
6604
6578
|
};
|
|
6605
|
-
if (t5 instanceof
|
|
6579
|
+
if (t5 instanceof jl) {
|
|
6606
6580
|
const e3 = t5._s;
|
|
6607
6581
|
if (e3) d2({ s: 0, e: e3.length - 1, v: e3 });
|
|
6608
6582
|
else {
|
|
@@ -6613,7 +6587,7 @@ class Wl {
|
|
|
6613
6587
|
}
|
|
6614
6588
|
} else d2({ s: 0, e: r2 - 1, v: n2 });
|
|
6615
6589
|
s2.push(i2);
|
|
6616
|
-
const g2 = new
|
|
6590
|
+
const g2 = new jl(), m2 = e2 + r2;
|
|
6617
6591
|
return 1 === s2.length && 0 === s2[0].min && s2[0].max === m2 - 1 ? g2._s = s2[0].value.v : g2._r = s2, g2._l = m2, g2;
|
|
6618
6592
|
}
|
|
6619
6593
|
get length() {
|
|
@@ -6643,11 +6617,11 @@ class Wl {
|
|
|
6643
6617
|
return e2;
|
|
6644
6618
|
}
|
|
6645
6619
|
}
|
|
6646
|
-
const Hl = (t5) => [{ min: 0, max: t5.length - 1, value: { s: 0, e: t5.length - 1, v: t5 } }], Vl = new
|
|
6620
|
+
const Hl = (t5) => [{ min: 0, max: t5.length - 1, value: { s: 0, e: t5.length - 1, v: t5 } }], Vl = new jl(), $l = Object.seal({ done: false, value: [-1, null] }), Gl = Object.freeze({ reverse: false, bounds: { min: 0, max: Number.MAX_SAFE_INTEGER }, skipRuns: null, reuseResult: $l }), Ul = 4;
|
|
6647
6621
|
var Jl;
|
|
6648
6622
|
((t5) => {
|
|
6649
6623
|
const e2 = (t6, e3) => {
|
|
6650
|
-
const n3 = t6 !==
|
|
6624
|
+
const n3 = t6 !== T.Row;
|
|
6651
6625
|
return e3 ? (t7, e4) => {
|
|
6652
6626
|
if (t7 === e4) return 0;
|
|
6653
6627
|
const r2 = t7[0], o2 = t7[1], s2 = e4[1];
|
|
@@ -6678,8 +6652,8 @@ var Jl;
|
|
|
6678
6652
|
class n2 {
|
|
6679
6653
|
constructor(t6, n3) {
|
|
6680
6654
|
if (this._isColumn = true, this._isByCell = false, this._isReverse = false, this._cursor = null, this._reuse = null, this._localReuse = { done: false, value: [null, null] }, this._eventsMajor = null, this._eventMajorIndex = 0, this._majorStart = 0, this._majorEnd = 0, this._eventMinorPeek = null, this._minorStart = 0, this._minorEnd = 0, !t6 || 0 === t6.length) return;
|
|
6681
|
-
let r2 =
|
|
6682
|
-
n3 && (r2 = n3.orientation ??
|
|
6655
|
+
let r2 = T.Column, o2 = false, s2 = true, i2 = false;
|
|
6656
|
+
n3 && (r2 = n3.orientation ?? T.Column, this._isColumn = s2 = r2 !== T.Row, this._isReverse = o2 = n3.reverse ?? false, this._isByCell = i2 = n3.byCell ?? false);
|
|
6683
6657
|
const a2 = t6.length, l2 = new Array(2 * a2);
|
|
6684
6658
|
for (let e3 = 0; e3 < a2; e3++) {
|
|
6685
6659
|
const n4 = t6[e3], r3 = [null, null];
|
|
@@ -6687,7 +6661,7 @@ var Jl;
|
|
|
6687
6661
|
}
|
|
6688
6662
|
l2.sort(e2(r2, o2)), this._eventsMajor = l2;
|
|
6689
6663
|
const c2 = l2[0][1];
|
|
6690
|
-
this._majorStart = o2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, this._majorEnd = s2 ? o2 ? c2.colEnd + 1 : c2.colStart - 1 : o2 ? c2.rowEnd + 1 : c2.rowStart - 1, this._eventsMinor = new Ze(null, e2(s2 ?
|
|
6664
|
+
this._majorStart = o2 ? Number.MAX_SAFE_INTEGER : Number.MIN_SAFE_INTEGER, this._majorEnd = s2 ? o2 ? c2.colEnd + 1 : c2.colStart - 1 : o2 ? c2.rowEnd + 1 : c2.rowStart - 1, this._eventsMinor = new Ze(null, e2(s2 ? T.Row : T.Column, o2));
|
|
6691
6665
|
const h2 = new Array(16);
|
|
6692
6666
|
h2.length = 0, this._cursor = { cell: null, range: { colStart: c2.colStart, rowStart: c2.rowStart, colEnd: c2.colEnd, rowEnd: c2.rowEnd }, overlaps: h2 }, i2 && (this._cursor.cell = { colIndex: o2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER, rowIndex: o2 ? Number.MIN_SAFE_INTEGER : Number.MAX_SAFE_INTEGER });
|
|
6693
6667
|
const u2 = n3?.reuseIterator;
|
|
@@ -6697,7 +6671,7 @@ var Jl;
|
|
|
6697
6671
|
const e3 = this._isColumn, n3 = this._isReverse;
|
|
6698
6672
|
if (t6) {
|
|
6699
6673
|
if (!this._isByCell) throw new Error("nextCell is only supported when byCell is true");
|
|
6700
|
-
const r3 = Y.createCellComparator(e3 ?
|
|
6674
|
+
const r3 = Y.createCellComparator(e3 ? T.Column : T.Row, n3);
|
|
6701
6675
|
let o3;
|
|
6702
6676
|
do {
|
|
6703
6677
|
const s3 = this._cursor, i3 = s3.cell;
|
|
@@ -7026,7 +7000,7 @@ class Xl {
|
|
|
7026
7000
|
if (u2.editRange(ic, ac, true, (t6, e3, n3) => {
|
|
7027
7001
|
const r3 = t6.min, u3 = t6.max;
|
|
7028
7002
|
return r3 < o2 && u3 + 1 >= o2 && (a2 = r3, c2 = e3), r3 - 1 <= s2 && u3 > s2 && (l2 = r3, h2 = e3), i2 -= u3 - r3 + 1, d2 = true, Ze.DeleteValue;
|
|
7029
|
-
}), n2 || void 0 === r2 || (n2 = new
|
|
7003
|
+
}), n2 || void 0 === r2 || (n2 = new jl([r2])), n2) {
|
|
7030
7004
|
let t6 = n2;
|
|
7031
7005
|
d2 = true;
|
|
7032
7006
|
let e3 = o2;
|
|
@@ -7035,12 +7009,12 @@ class Xl {
|
|
|
7035
7009
|
return this._updateCount(i2), d2;
|
|
7036
7010
|
}
|
|
7037
7011
|
setAt(t5, e2) {
|
|
7038
|
-
if (void 0 === t5) throw new
|
|
7012
|
+
if (void 0 === t5) throw new Wt();
|
|
7039
7013
|
return this._validateBounds(t5, t5), this._update(t5, 1, null, e2);
|
|
7040
7014
|
}
|
|
7041
7015
|
setRunAt(t5, e2) {
|
|
7042
7016
|
if (!e2 || 0 === e2.length) return false;
|
|
7043
|
-
if (void 0 === t5 || !e2.length) throw new
|
|
7017
|
+
if (void 0 === t5 || !e2.length) throw new Wt();
|
|
7044
7018
|
const n2 = e2.length;
|
|
7045
7019
|
return this._validateBounds(t5, t5 + n2 - 1), this._update(t5, n2, e2);
|
|
7046
7020
|
}
|
|
@@ -7434,22 +7408,22 @@ class Mc {
|
|
|
7434
7408
|
return this._getReadTree().all(t5);
|
|
7435
7409
|
}
|
|
7436
7410
|
shift(t5) {
|
|
7437
|
-
const e2 = t5.range, n2 = t5.direction, r2 = t5.cloneIfUpdate ?? false, o2 = t5.coordValidator ?? null, s2 = t5.onShift ?? null, i2 = n2 === v.Left || n2 === v.Right, a2 = i2 ?
|
|
7411
|
+
const e2 = t5.range, n2 = t5.direction, r2 = t5.cloneIfUpdate ?? false, o2 = t5.coordValidator ?? null, s2 = t5.onShift ?? null, i2 = n2 === v.Left || n2 === v.Right, a2 = i2 ? T.Column : T.Row, l2 = n2 === v.Up || n2 === v.Left ? -1 : 1, c2 = (i2 ? e2.colEnd - e2.colStart + 1 : e2.rowEnd - e2.rowStart + 1) * l2, h2 = [], u2 = [];
|
|
7438
7412
|
let d2 = null;
|
|
7439
7413
|
const g2 = this.getBoundingCoords();
|
|
7440
7414
|
if (!g2) return this;
|
|
7441
|
-
const m2 = n2 === v.Up || n2 === v.Left ? v.Right : v.Left, f2 = /* @__PURE__ */ new Map(), p2 = /* @__PURE__ */ new Map(), _2 = this._options?.updateEntryOptions, S2 = _2?.isMergeOnShift ?? false, w2 = _2?.isSplitOnExpand ?? false, y2 = _2?.isTrailingEdge ?? false, E2 = n2 === v.Left || n2 === v.Up, b2 = _2?.getSplit ?? Bc, C2 = _2?.getShifted, x2 = _2?.onShifted, I2 = _2?.onRemoved, R2 = _2?.onMerged, A2 = _2?.onUpdated, M2 = x2 ? [] : null,
|
|
7415
|
+
const m2 = n2 === v.Up || n2 === v.Left ? v.Right : v.Left, f2 = /* @__PURE__ */ new Map(), p2 = /* @__PURE__ */ new Map(), _2 = this._options?.updateEntryOptions, S2 = _2?.isMergeOnShift ?? false, w2 = _2?.isSplitOnExpand ?? false, y2 = _2?.isTrailingEdge ?? false, E2 = n2 === v.Left || n2 === v.Up, b2 = _2?.getSplit ?? Bc, C2 = _2?.getShifted, x2 = _2?.onShifted, I2 = _2?.onRemoved, R2 = _2?.onMerged, A2 = _2?.onUpdated, M2 = x2 ? [] : null, N2 = I2 ? [] : null, F2 = A2 ? [] : null;
|
|
7442
7416
|
this.visitRanges({ colStart: e2.colStart - (i2 ? 1 : 0), rowStart: e2.rowStart - (i2 ? 0 : 1), colEnd: i2 ? g2.colEnd : e2.colEnd, rowEnd: i2 ? e2.rowEnd : g2.rowEnd }, (t6) => {
|
|
7443
7417
|
if ((i2 ? t6.colEnd < e2.colStart : t6.rowEnd < e2.rowStart) && !y2) return;
|
|
7444
7418
|
const r3 = zc(e2, t6, i2 ? k.Column : k.Row), l3 = t6.group;
|
|
7445
7419
|
if (E2 && !l3 && e2.colStart <= t6.colStart && e2.rowStart <= t6.rowStart && e2.colEnd >= t6.colEnd && e2.rowEnd >= t6.rowEnd) {
|
|
7446
|
-
const n3 =
|
|
7420
|
+
const n3 = Wc(t6, null, { after: null, before: t6, intersect: e2, isSplit: r3, orientation: a2, amount: c2 }, C2, b2, s2, false);
|
|
7447
7421
|
if (void 0 === n3) return;
|
|
7448
|
-
if (null === n3) return d2 = Y.unionRanges(d2, t6),
|
|
7422
|
+
if (null === n3) return d2 = Y.unionRanges(d2, t6), N2 && N2.push(t6), void h2.push(t6);
|
|
7449
7423
|
}
|
|
7450
7424
|
let g3 = { ...t6 };
|
|
7451
7425
|
n2 === v.Right ? e2.colStart <= g3.colStart ? (g3.colStart += c2, g3.colEnd += c2) : g3.colEnd += c2 : n2 === v.Left ? e2.colStart < g3.colStart ? (g3.colStart = Math.max(g3.colStart + c2, e2.colStart), g3.colEnd = Math.max(g3.colEnd + c2, g3.colStart - 1)) : g3.colEnd += Math.max(c2, e2.colStart - g3.colEnd - 1) : n2 === v.Down ? e2.rowStart <= g3.rowStart ? (g3.rowStart += c2, g3.rowEnd += c2) : g3.rowEnd += c2 : n2 === v.Up && (e2.rowStart < g3.rowStart ? (g3.rowStart = Math.max(g3.rowStart + c2, e2.rowStart), g3.rowEnd = Math.max(g3.rowEnd + c2, e2.rowStart - 1)) : g3.rowEnd += Math.max(c2, e2.rowStart - g3.rowEnd - 1)), (g3.colEnd < g3.colStart || g3.rowEnd < g3.rowStart) && (g3 = null);
|
|
7452
|
-
const m3 =
|
|
7426
|
+
const m3 = Wc(t6, g3, { after: g3, before: t6, intersect: e2, isSplit: r3, orientation: a2, amount: c2 }, C2, b2, s2, w2 && c2 > 0);
|
|
7453
7427
|
if (void 0 === m3) return;
|
|
7454
7428
|
const _3 = null === m3 ? [g3] : m3, S3 = _3.length;
|
|
7455
7429
|
if (_3[0] !== t6 || 1 !== S3) {
|
|
@@ -7471,11 +7445,11 @@ class Mc {
|
|
|
7471
7445
|
if (S2 && g2 && d2) {
|
|
7472
7446
|
let t6 = true;
|
|
7473
7447
|
if (c2 > 0 && (t6 = i2 ? e2.rowStart > g2.rowStart || e2.rowEnd < g2.rowEnd : e2.colStart > g2.colStart || e2.colEnd < g2.colEnd), t6) {
|
|
7474
|
-
const t7 =
|
|
7448
|
+
const t7 = Nc(d2, Y.unionRanges(g2, d2), i2 ? 0 : 1, i2 ? 1 : 0);
|
|
7475
7449
|
R2 && (D2 = O2._mergeNodes(t7, false));
|
|
7476
7450
|
}
|
|
7477
7451
|
}
|
|
7478
|
-
return A2 && F2.length > 0 && A2(F2), x2 && M2.length > 0 && x2(M2), R2 && D2.length > 0 && R2(D2), I2 &&
|
|
7452
|
+
return A2 && F2.length > 0 && A2(F2), x2 && M2.length > 0 && x2(M2), R2 && D2.length > 0 && R2(D2), I2 && N2.length > 0 && I2(N2), O2;
|
|
7479
7453
|
}
|
|
7480
7454
|
insertNonOverlapping(t5, e2) {
|
|
7481
7455
|
const n2 = e2?.onIntersect ?? ((t6, e3) => ({ ...t6, value: e3.value })), r2 = this.search(t5), o2 = /* @__PURE__ */ new Map(), s2 = /* @__PURE__ */ new Map(), i2 = this._options?.updateEntryOptions, a2 = i2?.onUpdated, l2 = i2?.onRemoved, c2 = i2?.onMerged, h2 = i2?.getSplit, u2 = i2?.getIntersect, d2 = i2?.getUpdate;
|
|
@@ -7492,7 +7466,7 @@ class Mc {
|
|
|
7492
7466
|
}
|
|
7493
7467
|
return e3 ? [e3] : bt.EmptyArray;
|
|
7494
7468
|
}
|
|
7495
|
-
const s3 = n3?.getSplit ??
|
|
7469
|
+
const s3 = n3?.getSplit ?? Tc, i3 = (t7, e4, n4 = true) => {
|
|
7496
7470
|
const r4 = e4.search(t7), o4 = r4.length;
|
|
7497
7471
|
for (let a4 = 0; a4 < o4; a4++) {
|
|
7498
7472
|
const o5 = r4[a4];
|
|
@@ -7580,11 +7554,11 @@ class Mc {
|
|
|
7580
7554
|
p2 = t6;
|
|
7581
7555
|
}
|
|
7582
7556
|
if (this._updateNodes(p2, r2, e2?.onUpdates), o2.size > 0 && this._updateGroupedEntries(o2, s2), _2 && !e2?.noMerge) {
|
|
7583
|
-
const n3 =
|
|
7557
|
+
const n3 = Nc(t5, Y.unionRanges(_2, t5)), r3 = this.search(n3);
|
|
7584
7558
|
if (r3.length > 1) {
|
|
7585
7559
|
const t6 = i2?.getMerged ?? Pc;
|
|
7586
7560
|
let n4 = r3;
|
|
7587
|
-
n4 = Dc(n4,
|
|
7561
|
+
n4 = Dc(n4, T.Column, 1, t6), n4 = Dc(n4, T.Row, 1, t6), r3.length !== n4.length && (c2 && n4.length > 0 && (m2 = n4), this._updateNodes(n4, r3, e2?.onUpdates));
|
|
7588
7562
|
}
|
|
7589
7563
|
}
|
|
7590
7564
|
return g2 && a2(g2), m2 && c2(m2), f2 && l2(f2), this;
|
|
@@ -7599,7 +7573,7 @@ class Mc {
|
|
|
7599
7573
|
return this.load(t5), this._options?.updateEntryOptions?.onGroupUpdate?.(t5, e2), this;
|
|
7600
7574
|
}
|
|
7601
7575
|
createCopiedEntries(t5, e2, n2, r2, o2) {
|
|
7602
|
-
return
|
|
7576
|
+
return jc(this, t5, e2, n2, r2, o2, this._options?.updateEntryOptions?.getSplit ?? Bc);
|
|
7603
7577
|
}
|
|
7604
7578
|
_updateGroupedEntries(t5, e2) {
|
|
7605
7579
|
const n2 = [], r2 = [], o2 = /* @__PURE__ */ new Map(), s2 = t5.values();
|
|
@@ -7650,7 +7624,7 @@ class Mc {
|
|
|
7650
7624
|
if (n2.length > 1) {
|
|
7651
7625
|
const t6 = this._options?.updateEntryOptions.getMerged ?? Pc;
|
|
7652
7626
|
let e3 = n2;
|
|
7653
|
-
e3.length > 1 && (e3 = Dc(e3,
|
|
7627
|
+
e3.length > 1 && (e3 = Dc(e3, T.Column, 1, t6)), e3.length > 1 && (e3 = Dc(e3, T.Row, 1, t6)), n2.length !== e3.length && (r2 = e3, this._updateNodes(e3, n2));
|
|
7654
7628
|
}
|
|
7655
7629
|
return r2;
|
|
7656
7630
|
}
|
|
@@ -7690,8 +7664,8 @@ class Mc {
|
|
|
7690
7664
|
return this._getWritableTree().fromJSON(t5), this;
|
|
7691
7665
|
}
|
|
7692
7666
|
}
|
|
7693
|
-
const
|
|
7694
|
-
function
|
|
7667
|
+
const Nc = (t5, e2 = t5, n2 = 1, r2 = 1) => ({ ...t5, colStart: Math.max(t5.colStart - n2, e2.colStart), rowStart: Math.max(t5.rowStart - r2, e2.rowStart), colEnd: Math.min(t5.colEnd + n2, e2.colEnd), rowEnd: Math.min(t5.rowEnd + r2, e2.rowEnd) });
|
|
7668
|
+
function Tc(t5, e2, n2, r2) {
|
|
7695
7669
|
return [{ ...e2[0], value: t5.value }, { ...e2[0], value: t5.value }];
|
|
7696
7670
|
}
|
|
7697
7671
|
function kc(t5, e2) {
|
|
@@ -7710,7 +7684,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
|
|
|
7710
7684
|
i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
|
|
7711
7685
|
const l2 = e3.rowStart - t6.rowStart;
|
|
7712
7686
|
Hc[0] = t6, Hc[1] = e3;
|
|
7713
|
-
const c2 = n2(a2, Hc,
|
|
7687
|
+
const c2 = n2(a2, Hc, T.Row, l2);
|
|
7714
7688
|
void 0 !== c2 && (s2.push(c2[0]), a2 = c2[1]);
|
|
7715
7689
|
}
|
|
7716
7690
|
if (a2.rowEnd > o2.rowEnd) {
|
|
@@ -7720,7 +7694,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
|
|
|
7720
7694
|
i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
|
|
7721
7695
|
const l2 = e3.rowStart - t6.rowStart;
|
|
7722
7696
|
Hc[0] = t6, Hc[1] = e3;
|
|
7723
|
-
const c2 = n2(a2, Hc,
|
|
7697
|
+
const c2 = n2(a2, Hc, T.Row, l2);
|
|
7724
7698
|
void 0 !== c2 && (s2.push(c2[1]), a2 = c2[0]);
|
|
7725
7699
|
}
|
|
7726
7700
|
if (a2.colStart < o2.colStart) {
|
|
@@ -7730,7 +7704,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
|
|
|
7730
7704
|
i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
|
|
7731
7705
|
const l2 = e3.colStart - t6.colStart;
|
|
7732
7706
|
Hc[0] = t6, Hc[1] = e3;
|
|
7733
|
-
const c2 = n2(a2, Hc,
|
|
7707
|
+
const c2 = n2(a2, Hc, T.Column, l2);
|
|
7734
7708
|
void 0 !== c2 && (s2.push(c2[0]), a2 = c2[1]);
|
|
7735
7709
|
}
|
|
7736
7710
|
if (a2.colEnd > o2.colEnd) {
|
|
@@ -7740,7 +7714,7 @@ function Fc(t5, e2, n2 = null, r2 = true) {
|
|
|
7740
7714
|
i2 && (r2 && (e3.lastId = i2), e3.uuid = bt.uuidV4());
|
|
7741
7715
|
const l2 = e3.colStart - t6.colStart;
|
|
7742
7716
|
Hc[0] = t6, Hc[1] = e3;
|
|
7743
|
-
const c2 = n2(a2, Hc,
|
|
7717
|
+
const c2 = n2(a2, Hc, T.Column, l2);
|
|
7744
7718
|
void 0 !== c2 && (s2.push(c2[1]), a2 = c2[0]);
|
|
7745
7719
|
}
|
|
7746
7720
|
return a2 === t5 && (a2 = { ...t5 }), s2.push(a2), s2;
|
|
@@ -7748,12 +7722,12 @@ function Fc(t5, e2, n2 = null, r2 = true) {
|
|
|
7748
7722
|
function Oc(t5) {
|
|
7749
7723
|
return null === t5.value ? null : t5;
|
|
7750
7724
|
}
|
|
7751
|
-
function Dc(t5, e2 =
|
|
7725
|
+
function Dc(t5, e2 = T.Column, n2 = 2, r2, o2) {
|
|
7752
7726
|
let s2 = [...t5];
|
|
7753
7727
|
if (n2 <= 0 || t5.length <= 1) return s2;
|
|
7754
|
-
let i2 = e2 ===
|
|
7728
|
+
let i2 = e2 === T.Column, a2 = 0, l2 = false;
|
|
7755
7729
|
do {
|
|
7756
|
-
const t6 = s2.sort(Y.createRangeComparator(i2 ?
|
|
7730
|
+
const t6 = s2.sort(Y.createRangeComparator(i2 ? T.Row : T.Column));
|
|
7757
7731
|
s2 = [], l2 = false, s2.push(t6[0]);
|
|
7758
7732
|
for (let n3 = 1; n3 < t6.length; n3++) {
|
|
7759
7733
|
const a3 = t6[n3], c2 = s2[s2.length - 1];
|
|
@@ -7775,10 +7749,10 @@ function Dc(t5, e2 = N.Column, n2 = 2, r2, o2) {
|
|
|
7775
7749
|
} while (a2 < n2 && l2 && s2.length > 1);
|
|
7776
7750
|
return s2;
|
|
7777
7751
|
}
|
|
7778
|
-
const Lc = (t5, e2 = 2, n2 =
|
|
7752
|
+
const Lc = (t5, e2 = 2, n2 = T.Row, r2, o2, s2) => {
|
|
7779
7753
|
if (t5.length <= 1) return [...t5];
|
|
7780
7754
|
let i2 = [];
|
|
7781
|
-
const a2 = n2 ===
|
|
7755
|
+
const a2 = n2 === T.Column, l2 = new Jl.IteratorInstance(t5, { orientation: a2 ? T.Row : T.Column });
|
|
7782
7756
|
let c2 = l2.next();
|
|
7783
7757
|
for (; !c2.done; ) {
|
|
7784
7758
|
const t6 = c2.value;
|
|
@@ -7797,7 +7771,7 @@ const Lc = (t5, e2 = 2, n2 = N.Row, r2, o2, s2) => {
|
|
|
7797
7771
|
}
|
|
7798
7772
|
i2.push(n3);
|
|
7799
7773
|
}
|
|
7800
|
-
return e2 > 1 && (i2 = Dc(i2, a2 ?
|
|
7774
|
+
return e2 > 1 && (i2 = Dc(i2, a2 ? T.Row : T.Column, e2, r2, s2)), i2;
|
|
7801
7775
|
};
|
|
7802
7776
|
function Bc(t5, e2, n2, r2) {
|
|
7803
7777
|
const o2 = t5.value;
|
|
@@ -7822,8 +7796,8 @@ const zc = (t5, e2, n2 = k.Both) => {
|
|
|
7822
7796
|
let o2 = n2 === k.Column, s2 = n2 === k.Row;
|
|
7823
7797
|
return n2 === k.Both && (o2 = s2 = true), !(!o2 || !r2(true)) || !(!s2 || !r2(false));
|
|
7824
7798
|
};
|
|
7825
|
-
function
|
|
7826
|
-
const a2 = n2.orientation ===
|
|
7799
|
+
function Wc(t5, e2, n2, r2, o2, s2, i2) {
|
|
7800
|
+
const a2 = n2.orientation === T.Column, l2 = n2.intersect, c2 = (e3, c3) => {
|
|
7827
7801
|
let h2 = e3.value, u2 = null, d2 = c3.after;
|
|
7828
7802
|
if (i2) {
|
|
7829
7803
|
let n3 = null, r3 = 0, s3 = 0;
|
|
@@ -7865,7 +7839,7 @@ function jc(t5, e2, n2, r2, o2, s2, i2) {
|
|
|
7865
7839
|
}
|
|
7866
7840
|
return c2(t5, n2);
|
|
7867
7841
|
}
|
|
7868
|
-
const
|
|
7842
|
+
const jc = (t5, e2, n2, r2, o2, s2, i2) => {
|
|
7869
7843
|
const a2 = n2.colEnd - n2.colStart + 1, l2 = n2.rowEnd - n2.rowStart + 1, c2 = n2.colStart - e2.colStart, h2 = n2.rowStart - e2.rowStart, u2 = r2?.transpose ?? false;
|
|
7870
7844
|
let d2 = 1, g2 = 1;
|
|
7871
7845
|
u2 ? (d2 = e2.rowEnd - e2.rowStart + 1, g2 = e2.colEnd - e2.colStart + 1) : (d2 = e2.colEnd - e2.colStart + 1, g2 = e2.rowEnd - e2.rowStart + 1);
|
|
@@ -7889,7 +7863,7 @@ const Wc = (t5, e2, n2, r2, o2, s2, i2) => {
|
|
|
7889
7863
|
const x2 = a2 <= C2 * _3, I2 = l2 <= v2 * y2;
|
|
7890
7864
|
if (x2 || I2) {
|
|
7891
7865
|
const t7 = o3?.canTile?.({ colStart: E2, rowStart: b2, colEnd: Math.min(E2 + (x2 ? a2 : _3) - 1, S2), rowEnd: Math.min(b2 + (I2 ? l2 : y2) - 1, w2) }, r2);
|
|
7892
|
-
!x2 || true !== t7 && t7 !==
|
|
7866
|
+
!x2 || true !== t7 && t7 !== T.Column || (_3 = a2, C2 = 1), !I2 || true !== t7 && t7 !== T.Row || (y2 = l2, v2 = 1);
|
|
7893
7867
|
}
|
|
7894
7868
|
for (let t7 = 0; t7 < C2; t7++) {
|
|
7895
7869
|
const e3 = E2 + t7 * d2;
|
|
@@ -7911,7 +7885,7 @@ const Wc = (t5, e2, n2, r2, o2, s2, i2) => {
|
|
|
7911
7885
|
class qc {
|
|
7912
7886
|
constructor(t5, e2) {
|
|
7913
7887
|
this._isColumn = true, this._isReverse = false, this._skipMajors = false, this._majorMin = Number.MAX_SAFE_INTEGER, this._majorMax = Number.MIN_SAFE_INTEGER, this._minorMin = Number.MAX_SAFE_INTEGER, this._minorMax = Number.MIN_SAFE_INTEGER, this._majorIndex = Number.MIN_SAFE_INTEGER, this._minorIndex = Number.MIN_SAFE_INTEGER, this._delegateMajorIndex = Number.MIN_SAFE_INTEGER, this._delegateMinorIndex = Number.MIN_SAFE_INTEGER, this._delegate = t5;
|
|
7914
|
-
const n2 = (e2.orientation ??
|
|
7888
|
+
const n2 = (e2.orientation ?? T.Column) === T.Column;
|
|
7915
7889
|
this._isColumn = n2, this._isReverse = e2.reverse ?? false, this._skipMajors = e2.skipMajors ?? false;
|
|
7916
7890
|
const r2 = e2.bounds, o2 = r2.colStart, s2 = r2.rowStart, i2 = r2.colEnd, a2 = r2.rowEnd;
|
|
7917
7891
|
this._majorMin = n2 ? o2 : s2, this._majorMax = n2 ? i2 : a2, this._minorMin = n2 ? s2 : o2, this._minorMax = n2 ? a2 : i2, this._processMajorSkip = n2 ? e2.processColumnSkip : e2.processRowSkip, this._processMinorSkip = n2 ? e2.processRowSkip : e2.processColumnSkip;
|
|
@@ -7974,7 +7948,7 @@ class Kc {
|
|
|
7974
7948
|
this._isColumn = true, this._majorSize = Number.MAX_SAFE_INTEGER, this._minorSize = Number.MAX_SAFE_INTEGER, this._majorMin = Number.MAX_SAFE_INTEGER, this._majorMax = Number.MIN_SAFE_INTEGER, this._minorMin = Number.MAX_SAFE_INTEGER, this._minorMax = Number.MIN_SAFE_INTEGER, this._majorIndex = Number.MAX_SAFE_INTEGER, this._minorIndex = Number.MAX_SAFE_INTEGER, this._minorOffset = 0, this._minorRepeat = 0, this._majorOffset = -1, this._majorRepeat = 1, this._pattern = [];
|
|
7975
7949
|
const e2 = t5.delegate;
|
|
7976
7950
|
this._delegate = e2;
|
|
7977
|
-
const n2 = (t5.orientation ??
|
|
7951
|
+
const n2 = (t5.orientation ?? T.Column) === T.Column;
|
|
7978
7952
|
this._isColumn = n2;
|
|
7979
7953
|
const r2 = t5.dims, o2 = t5.bounds, s2 = o2.colStart, i2 = o2.rowStart, a2 = o2.colEnd, l2 = o2.rowEnd;
|
|
7980
7954
|
if (this._majorSize = 1 + (n2 ? a2 - s2 : l2 - i2), this._minorSize = 1 + (n2 ? l2 - i2 : a2 - s2), this._majorMin = n2 ? s2 : i2, this._minorMin = n2 ? i2 : s2, this._majorMax = (n2 ? s2 + r2.major : i2 + r2.major) - 1, this._minorMax = (n2 ? i2 + r2.minor : s2 + r2.minor) - 1, this._majorSize > this._majorMax + 1 || this._minorSize > this._minorMax + 1) throw new Error("The dimensions must be larger than the bounds.");
|
|
@@ -8044,7 +8018,7 @@ class Kc {
|
|
|
8044
8018
|
}
|
|
8045
8019
|
class Xc {
|
|
8046
8020
|
constructor(t5, e2, n2) {
|
|
8047
|
-
this._comparator = t5?.comparator ?? Y.createCellComparator(t5.orientation ??
|
|
8021
|
+
this._comparator = t5?.comparator ?? Y.createCellComparator(t5.orientation ?? T.Column, t5.reverse ?? false), this._iterator1 = e2, this._iterator2 = n2;
|
|
8048
8022
|
const r2 = e2.next();
|
|
8049
8023
|
this._nextResult1 = r2;
|
|
8050
8024
|
const o2 = n2.next();
|
|
@@ -8166,11 +8140,11 @@ const Yc = "Must be an array of arrays.", Qc = (t5, e2, n2) => {
|
|
|
8166
8140
|
r2 && n2.push(r2);
|
|
8167
8141
|
const u2 = t5 ? a2 : l2, d2 = t5 ? l2 : a2;
|
|
8168
8142
|
r2 = { colStart: u2, rowStart: d2, colEnd: u2, rowEnd: d2, value: c2 }, s2 = a2, i2 = l2, o2 = c2;
|
|
8169
|
-
}, done: (e3 = false) => (r2 && (n2.push(r2), r2 = null), e3 ? Dc(n2, t5 ?
|
|
8143
|
+
}, done: (e3 = false) => (r2 && (n2.push(r2), r2 = null), e3 ? Dc(n2, t5 ? T.Column : T.Row, 2, eh, nh) : n2) };
|
|
8170
8144
|
};
|
|
8171
8145
|
class oh {
|
|
8172
8146
|
constructor(t5) {
|
|
8173
|
-
this._major = null, this._dataCoords = null, this._count = 0, this._isColumn = true, this._lastMajor = Number.MIN_SAFE_INTEGER, this._lastMinorSpan = null, this._maxCoords = null, this._isShared = false, this._options = { orientation:
|
|
8147
|
+
this._major = null, this._dataCoords = null, this._count = 0, this._isColumn = true, this._lastMajor = Number.MIN_SAFE_INTEGER, this._lastMinorSpan = null, this._maxCoords = null, this._isShared = false, this._options = { orientation: T.Row, ...t5 }, this._isColumn = (t5?.orientation ?? T.Column) === T.Column, t5?.maxCoords && (this._maxCoords = Object.freeze({ colStart: Math.max(0, t5.maxCoords.colStart ?? 0), rowStart: Math.max(0, t5.maxCoords.rowStart ?? 0), colEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.colEnd ?? Number.MAX_SAFE_INTEGER), rowEnd: Math.min(Number.MAX_SAFE_INTEGER, t5.maxCoords.rowEnd ?? Number.MAX_SAFE_INTEGER) })), this._createRun = t5?.createRun ?? ((t6) => new jl(t6)), this._optionsMinor = {}, this._major = new Xl({ nodeSize: sh });
|
|
8174
8148
|
}
|
|
8175
8149
|
getRuns(t5) {
|
|
8176
8150
|
const e2 = this._isColumn, n2 = this._maxCoords, r2 = this.getCoords();
|
|
@@ -8198,7 +8172,7 @@ class oh {
|
|
|
8198
8172
|
} };
|
|
8199
8173
|
}
|
|
8200
8174
|
getOrientation() {
|
|
8201
|
-
return this._isColumn ?
|
|
8175
|
+
return this._isColumn ? T.Column : T.Row;
|
|
8202
8176
|
}
|
|
8203
8177
|
entries(t5) {
|
|
8204
8178
|
const e2 = this._isColumn;
|
|
@@ -8207,7 +8181,7 @@ class oh {
|
|
|
8207
8181
|
if (!i2) return zl;
|
|
8208
8182
|
let a2, l2, c2, h2 = i2.majorStart, u2 = i2.majorEnd, d2 = i2.minorStart, g2 = i2.minorEnd, m2 = false;
|
|
8209
8183
|
if (t5) {
|
|
8210
|
-
t5?.orientation && (n2 = t5?.orientation ===
|
|
8184
|
+
t5?.orientation && (n2 = t5?.orientation === T.Column, r2 = e2 === n2);
|
|
8211
8185
|
const i3 = t5?.bounds;
|
|
8212
8186
|
if (i3) {
|
|
8213
8187
|
const t6 = $c(i3.colStart, i3.rowStart, i3.colEnd, i3.rowEnd, e2, o2, s2);
|
|
@@ -8315,12 +8289,12 @@ class oh {
|
|
|
8315
8289
|
let o2 = r2[0], s2 = o2, i2 = [r2[1]];
|
|
8316
8290
|
for (let e3 = 1; e3 < t5.length; e3++) {
|
|
8317
8291
|
const r3 = t5[e3], a2 = r3[0], l2 = r3[1];
|
|
8318
|
-
a2 === s2 + 1 ? i2.push(l2) : (n2.setRunAt(o2, new
|
|
8292
|
+
a2 === s2 + 1 ? i2.push(l2) : (n2.setRunAt(o2, new jl(i2)), o2 = a2, i2 = [l2]), s2 = a2;
|
|
8319
8293
|
}
|
|
8320
|
-
i2.length > 0 && n2.setRunAt(o2, new
|
|
8294
|
+
i2.length > 0 && n2.setRunAt(o2, new jl(i2));
|
|
8321
8295
|
}
|
|
8322
8296
|
setValues(t5) {
|
|
8323
|
-
if (!t5) throw new
|
|
8297
|
+
if (!t5) throw new Wt();
|
|
8324
8298
|
if (0 === t5.length) return this;
|
|
8325
8299
|
const e2 = (t5 = t5.sort(Jc))[0][0], n2 = t5[t5.length - 1][0];
|
|
8326
8300
|
let r2 = Number.MIN_SAFE_INTEGER, o2 = Number.MAX_SAFE_INTEGER;
|
|
@@ -8442,7 +8416,7 @@ class oh {
|
|
|
8442
8416
|
return m2 ? (this._count += f2, this._dataCoords = null, true) : 0 === b2 ? (this._count += f2, 0 !== f2) : (this._updateCountAndCoords(f2, h2, d2, u2, g2, true), 0 !== f2);
|
|
8443
8417
|
}
|
|
8444
8418
|
shift(t5, e2) {
|
|
8445
|
-
if (!t5 || !e2) throw new
|
|
8419
|
+
if (!t5 || !e2) throw new Wt();
|
|
8446
8420
|
const n2 = this._isColumn, r2 = this._maxCoords, o2 = e2 === v.Right || e2 === v.Down, s2 = e2 === v.Left || e2 === v.Right, i2 = $c(t5.colStart, t5.rowStart, t5.colEnd, t5.rowEnd, n2, r2, t5);
|
|
8447
8421
|
if (!i2) return false;
|
|
8448
8422
|
const a2 = i2.majorStart, l2 = i2.majorEnd, c2 = i2.minorStart, h2 = i2.minorEnd, u2 = this.getCoords();
|
|
@@ -8473,8 +8447,8 @@ class oh {
|
|
|
8473
8447
|
o2 || (x2 = Number.MAX_SAFE_INTEGER, I2 = Number.MIN_SAFE_INTEGER);
|
|
8474
8448
|
let R2 = Number.MAX_SAFE_INTEGER;
|
|
8475
8449
|
r2 && (R2 = s2 ? r2.colEnd : r2.rowEnd);
|
|
8476
|
-
const A2 = /* @__PURE__ */ new Set(), M2 = _2 ? /* @__PURE__ */ new Map() : null,
|
|
8477
|
-
let F2 =
|
|
8450
|
+
const A2 = /* @__PURE__ */ new Set(), M2 = _2 ? /* @__PURE__ */ new Map() : null, N2 = [], T2 = y2.entries(hh), k2 = { bounds: { min: c2, max: h2 } };
|
|
8451
|
+
let F2 = T2.next();
|
|
8478
8452
|
for (; !F2.done; ) {
|
|
8479
8453
|
const t6 = F2.value, e3 = t6[0], n3 = t6[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
|
|
8480
8454
|
if (_2 && M2.set(e3, n3), c2 <= s3) {
|
|
@@ -8482,7 +8456,7 @@ class oh {
|
|
|
8482
8456
|
_2 ? (e3 >= a2 - S2 && Dl(n3.runs(k2), (t8, n4) => {
|
|
8483
8457
|
const r5 = n4.min, o4 = n4.max;
|
|
8484
8458
|
let s4 = t8;
|
|
8485
|
-
r5 - 1 <= h2 && o4 > h2 && (s4 = s4.slice(0, h2 + 1 - r5)), r5 < c2 && o4 + 1 >= c2 && (s4 = s4.slice(c2 - r5)),
|
|
8459
|
+
r5 - 1 <= h2 && o4 > h2 && (s4 = s4.slice(0, h2 + 1 - r5)), r5 < c2 && o4 + 1 >= c2 && (s4 = s4.slice(c2 - r5)), N2.push({ majorIndex: e3 + S2, minorIndex: Math.max(r5, c2), run: s4 });
|
|
8486
8460
|
}), n3.delete(c2, h2 - c2 + 1)) : n3.shift(c2, S2);
|
|
8487
8461
|
const r4 = n3.getCount();
|
|
8488
8462
|
if (0 === r4) A2.add(e3), x2 = Math.min(x2, s3), I2 = Math.max(I2, o3);
|
|
@@ -8492,12 +8466,12 @@ class oh {
|
|
|
8492
8466
|
}
|
|
8493
8467
|
w2 += r4 - t7, E2.push([e3, n3]);
|
|
8494
8468
|
}
|
|
8495
|
-
F2 =
|
|
8469
|
+
F2 = T2.next();
|
|
8496
8470
|
}
|
|
8497
8471
|
const O2 = this._optionsMinor;
|
|
8498
8472
|
let D2 = false;
|
|
8499
|
-
for (let t6 = 0; t6 <
|
|
8500
|
-
const e3 =
|
|
8473
|
+
for (let t6 = 0; t6 < N2.length; t6++) {
|
|
8474
|
+
const e3 = N2[t6], n3 = e3.majorIndex, r3 = e3.run;
|
|
8501
8475
|
let o3 = M2.get(n3);
|
|
8502
8476
|
o3 || (o3 = new Xl(O2), M2.set(n3, o3), E2.push([n3, o3]), D2 = true), o3.setRunAt(e3.minorIndex, r3), w2 += r3.length, b2 = Math.min(b2, n3), C2 = Math.max(C2, n3), A2 && A2.delete(n3);
|
|
8503
8477
|
}
|
|
@@ -8540,7 +8514,7 @@ class oh {
|
|
|
8540
8514
|
const l2 = this._isColumn, c2 = this._maxCoords, h2 = this.getCoords();
|
|
8541
8515
|
let u2, d2 = $c(n2.colStart ?? Number.MIN_SAFE_INTEGER, n2.rowStart ?? Number.MIN_SAFE_INTEGER, n2.colEnd ?? Number.MAX_SAFE_INTEGER, n2.rowEnd ?? Number.MAX_SAFE_INTEGER, l2, c2, h2);
|
|
8542
8516
|
d2 = { ...d2 };
|
|
8543
|
-
const g2 = o2 !==
|
|
8517
|
+
const g2 = o2 !== T.Row, m2 = t5.getMaxCoords();
|
|
8544
8518
|
u2 = $c(a2?.colStart ?? Number.MIN_SAFE_INTEGER, a2?.rowStart ?? Number.MIN_SAFE_INTEGER, a2?.colEnd ?? Number.MAX_SAFE_INTEGER, a2?.rowEnd ?? Number.MAX_SAFE_INTEGER, g2, m2), u2 = { ...u2 };
|
|
8545
8519
|
const f2 = u2.majorStart - d2.majorStart, p2 = u2.minorStart - d2.minorStart, _2 = r2 === o2 ? new dn.Builder() : new dn.TransposedBuilder();
|
|
8546
8520
|
for (; !i2.done; ) {
|
|
@@ -8670,9 +8644,9 @@ class dh {
|
|
|
8670
8644
|
static fromArray(t5, e2, n2, r2, o2 = gh) {
|
|
8671
8645
|
const s2 = t5.length;
|
|
8672
8646
|
if (0 === s2) return new dh({ type: Mh.Undefined, length: s2, getCoercedValue: n2 });
|
|
8673
|
-
let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 =
|
|
8647
|
+
let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Nh(t5[0], r2);
|
|
8674
8648
|
for (let e3 = 0; e3 < s2; e3++) {
|
|
8675
|
-
const n3 = t5[e3], o3 =
|
|
8649
|
+
const n3 = t5[e3], o3 = Nh(n3, r2);
|
|
8676
8650
|
o3 !== Sh && o3 !== _h || l2++, h2 !== o3 && (a2[e3] = o3, c2 = true);
|
|
8677
8651
|
}
|
|
8678
8652
|
c2 || (a2 = null, i2 = null);
|
|
@@ -8737,7 +8711,7 @@ class dh {
|
|
|
8737
8711
|
return new dh({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
|
|
8738
8712
|
}
|
|
8739
8713
|
}
|
|
8740
|
-
const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8, bh = 9, Ch = 10, vh = 11, xh = 12, Ih = 13, Rh = 14, Ah = 127, Mh = { Undefined: Rh },
|
|
8714
|
+
const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8, bh = 9, Ch = 10, vh = 11, xh = 12, Ih = 13, Rh = 14, Ah = 127, Mh = { Undefined: Rh }, Nh = (t5, e2) => {
|
|
8741
8715
|
switch (typeof t5) {
|
|
8742
8716
|
case "number":
|
|
8743
8717
|
const n2 = t5;
|
|
@@ -8769,7 +8743,7 @@ const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8,
|
|
|
8769
8743
|
return Ah;
|
|
8770
8744
|
}
|
|
8771
8745
|
return Ah;
|
|
8772
|
-
},
|
|
8746
|
+
}, Th = (t5) => {
|
|
8773
8747
|
if (!t5 || t5.length <= 1) return false;
|
|
8774
8748
|
if (2 === t5.length) return Y.isRangesIntersect(t5[0], t5[1]);
|
|
8775
8749
|
const e2 = new Mc();
|
|
@@ -8781,7 +8755,7 @@ const gh = 0.1, mh = 1, fh = 2, ph = 3, _h = 4, Sh = 5, wh = 6, yh = 7, Eh = 8,
|
|
|
8781
8755
|
}, kh = (t5, e2, n2) => {
|
|
8782
8756
|
const r2 = [];
|
|
8783
8757
|
if (Y.isRangesIntersect(t5, e2)) {
|
|
8784
|
-
const o2 = bt.subtractRect({ top: t5.rowStart, left: t5.colStart, bottom: t5.rowEnd + 1, right: t5.colEnd + 1 }, { top: e2.rowStart, left: e2.colStart, bottom: e2.rowEnd + 1, right: e2.colEnd + 1 }, n2 ===
|
|
8758
|
+
const o2 = bt.subtractRect({ top: t5.rowStart, left: t5.colStart, bottom: t5.rowEnd + 1, right: t5.colEnd + 1 }, { top: e2.rowStart, left: e2.colStart, bottom: e2.rowEnd + 1, right: e2.colEnd + 1 }, n2 === T.Column);
|
|
8785
8759
|
for (let t6 = 0; t6 < o2.length; t6++) {
|
|
8786
8760
|
const e3 = { colStart: o2[t6].left, rowStart: o2[t6].top, colEnd: o2[t6].right - 1, rowEnd: o2[t6].bottom - 1 };
|
|
8787
8761
|
r2.push(e3);
|
|
@@ -9043,28 +9017,28 @@ class Ph {
|
|
|
9043
9017
|
const t6 = { ...A2 };
|
|
9044
9018
|
1 === f2 && (t6.colEnd = t6.colStart), 1 === p2 && (t6.rowEnd = t6.rowStart), R2 = new Kc({ delegate: d2._entries({ ...n2, type: a2 ?? null, orientation: v2, bounds: t6, reuseResult: false }), bounds: t6, orientation: v2, dims: { major: x2 ? _2 : S2, minor: x2 ? S2 : _2 } });
|
|
9045
9019
|
} else R2 = d2._entries({ ...n2, type: a2 ?? null, orientation: v2, bounds: A2, reuseResult: false });
|
|
9046
|
-
const M2 = r2.colStart,
|
|
9020
|
+
const M2 = r2.colStart, N2 = r2.rowStart, T2 = M2 - A2.colStart, k2 = N2 - A2.rowStart, F2 = v2 === C2 ? new dn.Builder() : new dn.TransposedBuilder(), O2 = new Xc({ ...n2, bounds: r2, comparator: (x2 ? Oh : Dh)(r2, A2) }, I2, R2);
|
|
9047
9021
|
let D2, L2 = O2.next();
|
|
9048
9022
|
for (; !L2.done; ) {
|
|
9049
9023
|
const t6 = L2.value;
|
|
9050
9024
|
let n3 = t6[1], r3 = t6[3];
|
|
9051
|
-
const o3 = t6[0], s2 = t6[2], i2 = o3 ? o3.colIndex : s2.colIndex +
|
|
9025
|
+
const o3 = t6[0], s2 = t6[2], i2 = o3 ? o3.colIndex : s2.colIndex + T2, a3 = o3 ? o3.rowIndex : s2.rowIndex + k2;
|
|
9052
9026
|
let u3, d3;
|
|
9053
|
-
n3 instanceof l.Value ? u3 = n3 : r3 instanceof l.Value && (u3 = r3), d3 = u3 || e2(n3 ?? c2, r3 ?? h2, { colIndex: i2 - M2, rowIndex: a3 -
|
|
9027
|
+
n3 instanceof l.Value ? u3 = n3 : r3 instanceof l.Value && (u3 = r3), d3 = u3 || e2(n3 ?? c2, r3 ?? h2, { colIndex: i2 - M2, rowIndex: a3 - N2 }, this);
|
|
9054
9028
|
const g3 = x2 ? i2 : a3, m3 = x2 ? a3 : i2;
|
|
9055
9029
|
F2.addValue(g3, m3, d3), L2 = O2.next();
|
|
9056
9030
|
}
|
|
9057
9031
|
if (E2 && w2 > _2 || y2 > S2) {
|
|
9058
9032
|
const t6 = this._values.clone();
|
|
9059
9033
|
if (this._applyBuilder(t6, F2), w2 > _2) {
|
|
9060
|
-
const e3 = $c(M2 + _2,
|
|
9034
|
+
const e3 = $c(M2 + _2, N2, M2 + w2 - 1, N2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
|
|
9061
9035
|
t6.setValues(n3.tuples);
|
|
9062
9036
|
}
|
|
9063
9037
|
if (y2 > S2) {
|
|
9064
|
-
const e3 = $c(M2,
|
|
9038
|
+
const e3 = $c(M2, N2 + S2, M2 + w2 - 1, N2 + y2 - 1, x2), n3 = Qc(E2, e3, x2);
|
|
9065
9039
|
t6.setValues(n3.tuples);
|
|
9066
9040
|
}
|
|
9067
|
-
D2 = new Ph(t6, { colStart: M2, rowStart:
|
|
9041
|
+
D2 = new Ph(t6, { colStart: M2, rowStart: N2, colEnd: M2 + w2 - 1, rowEnd: N2 + y2 - 1 }, this._type);
|
|
9068
9042
|
} else D2 = this._cloneFromBuilder(F2, n2, w2, y2);
|
|
9069
9043
|
return D2;
|
|
9070
9044
|
}
|
|
@@ -9193,7 +9167,7 @@ class Ph {
|
|
|
9193
9167
|
if (!n2) {
|
|
9194
9168
|
e2.includeEmpty = false, e2.reverse = true;
|
|
9195
9169
|
const t6 = this.entries(e2).next();
|
|
9196
|
-
if (t6.done) return
|
|
9170
|
+
if (t6.done) return Wh;
|
|
9197
9171
|
const n3 = t6.value.coords;
|
|
9198
9172
|
e2.bounds.colEnd = n3.colIndex, e2.bounds.rowEnd = n3.rowIndex, e2.includeEmpty = true, e2.reverse = false;
|
|
9199
9173
|
}
|
|
@@ -9261,7 +9235,7 @@ class Ph {
|
|
|
9261
9235
|
return true;
|
|
9262
9236
|
}
|
|
9263
9237
|
}
|
|
9264
|
-
const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER },
|
|
9238
|
+
const zh = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGER, colEnd: Number.MAX_SAFE_INTEGER, rowEnd: Number.MAX_SAFE_INTEGER }, Wh = Object.freeze([Object.freeze([null])]), jh = Object.freeze({ colStart: 0, rowStart: 0, colEnd: Math.pow(2, 14) - 1, rowEnd: Math.pow(2, 20) - 1 }), Hh = Object.freeze({ colIndex: 0, rowIndex: 0 }), Vh = () => jh, $h = (t5, e2 = false) => "number" == typeof t5 ? isNaN(t5) || t5 === 1 / 0 || t5 === -1 / 0 ? s.Error : s.Number : "string" == typeof t5 ? s.String : "boolean" == typeof t5 ? s.Boolean : t5?.isFormulaError ? s.Error : null === t5 ? s.Null : bt.isObject(t5) && t5.hasOwnProperty("type") && "string" == typeof t5.type ? s.RichData : e2 && Ms(t5) ? "Date" : void 0 === t5 ? (console.warn("undefined"), s.Null) : null, Gh = /* @__PURE__ */ new Map([[s.Null, "any"], [s.Number, "number"], [s.String, "string"], [s.Boolean, "boolean"], [s.Error, "FormulaError"], [s.RichData, "richData"], ["*", "Scalar"]]), Uh = /* @__PURE__ */ new Map([["p", "IReferenceRange"], ["r", "IRange"]]), Jh = { orientation: i.Orientation.Row }, qh = (t5, e2, n2 = s.Number, r2 = false, o2 = false) => {
|
|
9265
9239
|
if (e2 === n2 || !n2) return e2 === s.Number && (t5 = Qh(t5, null, "number")), t5;
|
|
9266
9240
|
if (n2 === s.Number) {
|
|
9267
9241
|
switch (e2) {
|
|
@@ -9501,7 +9475,7 @@ const fu = (t5) => {
|
|
|
9501
9475
|
}
|
|
9502
9476
|
const a2 = {};
|
|
9503
9477
|
return e2 || 0 !== r2 && 0 !== n2 ? (n2 > 0 && (a2.colIndex = n2 - 1, o2 && (a2.$colIndex = o2)), r2 > 0 && (a2.rowIndex = r2 - 1, (s2 || e2 && o2) && (a2.$rowIndex = s2 || e2 && o2)), a2) : null;
|
|
9504
|
-
}, Iu = (t5, e2 =
|
|
9478
|
+
}, Iu = (t5, e2 = jh, n2 = false) => {
|
|
9505
9479
|
if (!t5) return null;
|
|
9506
9480
|
let r2 = t5.toUpperCase();
|
|
9507
9481
|
const o2 = Bu(r2, n2);
|
|
@@ -9542,7 +9516,7 @@ const fu = (t5) => {
|
|
|
9542
9516
|
}, Mu = (t5, e2, n2 = vu, r2 = Su) => {
|
|
9543
9517
|
const o2 = Au(t5, e2, n2, r2);
|
|
9544
9518
|
return o2 ? o2.join(",") : au;
|
|
9545
|
-
},
|
|
9519
|
+
}, Nu = (t5, e2, n2, r2 = Ru, o2, s2 = false) => {
|
|
9546
9520
|
if (null !== e2) {
|
|
9547
9521
|
if ("string" == typeof e2) {
|
|
9548
9522
|
const i2 = r2(e2, n2, s2);
|
|
@@ -9552,7 +9526,7 @@ const fu = (t5) => {
|
|
|
9552
9526
|
const e3 = i3.length;
|
|
9553
9527
|
for (let a2 = 0; a2 < e3; a2++) {
|
|
9554
9528
|
const e4 = i3[a2];
|
|
9555
|
-
|
|
9529
|
+
Nu(t5, e4, n2, r2, o2, s2);
|
|
9556
9530
|
}
|
|
9557
9531
|
}
|
|
9558
9532
|
return;
|
|
@@ -9569,14 +9543,14 @@ const fu = (t5) => {
|
|
|
9569
9543
|
}
|
|
9570
9544
|
} else t5.push(null);
|
|
9571
9545
|
} else t5.push(null);
|
|
9572
|
-
},
|
|
9546
|
+
}, Tu = (t5, e2, n2 = Ru, r2, o2 = false) => {
|
|
9573
9547
|
if (!t5) return [e2];
|
|
9574
9548
|
let s2;
|
|
9575
9549
|
s2 = "string" == typeof t5 ? gi(t5) : t5.isICellRanges ? t5.getCoords() : Array.isArray(t5) ? t5 : [t5];
|
|
9576
9550
|
const i2 = [], a2 = s2.length;
|
|
9577
9551
|
for (let t6 = 0; t6 < a2; t6++) {
|
|
9578
9552
|
const a3 = s2[t6];
|
|
9579
|
-
|
|
9553
|
+
Nu(i2, a3, e2, n2, r2, o2);
|
|
9580
9554
|
}
|
|
9581
9555
|
return i2;
|
|
9582
9556
|
}, ku = (t5, e2) => {
|
|
@@ -9678,9 +9652,9 @@ const fu = (t5) => {
|
|
|
9678
9652
|
t5 = t5.slice(o2 + 1), i2 = Ou(e3, Pu), -1 !== i2.colIndex && -1 !== i2.rowIndex && (a2(), s2 += ":");
|
|
9679
9653
|
}
|
|
9680
9654
|
return i2 = Ou(t5, Pu), !l2 && i2.colIndex > r2 ? t5 : (a2(), s2);
|
|
9681
|
-
},
|
|
9655
|
+
}, Wu = [], ju = (t5) => (Wu.push(t5), String.fromCharCode(57344 + Wu.length - 1)), Hu = (t5) => {
|
|
9682
9656
|
const e2 = t5.charCodeAt(0) - 57344;
|
|
9683
|
-
return
|
|
9657
|
+
return Wu[e2];
|
|
9684
9658
|
}, Vu = (t5, e2, n2) => {
|
|
9685
9659
|
let r2 = "";
|
|
9686
9660
|
const o2 = t5.length;
|
|
@@ -9716,12 +9690,12 @@ const fu = (t5) => {
|
|
|
9716
9690
|
let d2;
|
|
9717
9691
|
return r2 ? (d2 = r2, d2.colStart = o2, d2.rowStart = s2, d2.colEnd = i2, d2.rowEnd = a2, d2.$colStart = l2, d2.$rowStart = c2, d2.$colEnd = h2, d2.$rowEnd = u2) : d2 = { colStart: o2, rowStart: s2, colEnd: i2, rowEnd: a2, $colStart: l2, $rowStart: c2, $colEnd: h2, $rowEnd: u2 }, t5.sheetName && (d2.sheetName = t5.sheetName), d2;
|
|
9718
9692
|
}, Ju = (t5, e2, n2, r2) => {
|
|
9719
|
-
|
|
9720
|
-
let o2 = 0, s2 = t5.replace(su,
|
|
9693
|
+
Wu.length = 0;
|
|
9694
|
+
let o2 = 0, s2 = t5.replace(su, ju), i2 = 0, a2 = s2.replace(ru, (t6, a3, l2) => {
|
|
9721
9695
|
const c2 = zu(t6, e2, n2);
|
|
9722
9696
|
if (r2) {
|
|
9723
9697
|
if (l2 > i2) {
|
|
9724
|
-
const t7 = s2.slice(i2, l2).replace(iu, (t8, e3) =>
|
|
9698
|
+
const t7 = s2.slice(i2, l2).replace(iu, (t8, e3) => Wu[o2++]);
|
|
9725
9699
|
r2.push(t7);
|
|
9726
9700
|
}
|
|
9727
9701
|
const a4 = t6.lastIndexOf(":");
|
|
@@ -9734,7 +9708,7 @@ const fu = (t5) => {
|
|
|
9734
9708
|
});
|
|
9735
9709
|
if (r2 && i2 < s2.length) {
|
|
9736
9710
|
const t6 = s2.slice(i2);
|
|
9737
|
-
r2.push(t6.replace(iu, (t7, e3) =>
|
|
9711
|
+
r2.push(t6.replace(iu, (t7, e3) => Wu[o2++]));
|
|
9738
9712
|
}
|
|
9739
9713
|
return a2 = a2.toUpperCase().replace(ou, ""), a2.replace(iu, Hu);
|
|
9740
9714
|
}, qu = "Must specify an address.", Ku = "Only a single range is allowed for this operation. Use 'getRanges' instead.", Xu = "Invalid range. The Range must be specified as '{ TOP_LEFT:BOTTOM_RIGHT }'.", Yu = (t5) => `Invalid address. Can not parse ${"string" == typeof t5 ? `'${t5}' ` : ""}as an address or named item.`, Qu = () => {
|
|
@@ -9898,9 +9872,9 @@ var id;
|
|
|
9898
9872
|
const ad = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: false, [id.Type.Merge]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Formula]: false, [id.Type.Spill]: false, [id.Type.Pending]: false, [id.Type.CalcError]: false, [id.Type.Contentful]: false, [id.Type.Conditional]: false, [id.Type.Continuous]: false }), ld = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: false, [id.Type.Merge]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Formula]: false, [id.Type.Spill]: false, [id.Type.Pending]: false, [id.Type.CalcError]: false, [id.Type.Conditional]: false, [id.Type.Continuous]: false }), cd = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: true, [id.Type.Merge]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Formula]: false }), hd = Object.freeze({ [id.Type.Style]: false, [id.Type.Table]: false, [id.Type.Hyperlink]: false, [id.Type.Comments]: false, [id.Type.Unlock]: false, [id.Type.Contentful]: false, [id.Type.Formula]: false }), ud = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", dd = (t5 = "update") => `Unable to ${t5}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, gd = "The range is outside of the bounds of the sheet.", md = "Listener can not be null", fd = "We can't insert items. The sheet is protected.", pd = (t5) => `We can't create a ${t5} that overlaps with another table or merge.`, _d = "Overlapping ranges can not be merged.", Sd = "We can't insert cells because this would push values off the end of the worksheet. These cells may appear empty but they have some formatting or formulas. Delete enough rows or columns and try again.", wd = "Unable to partially fill over merged cells.", yd = "Unable to sort merged cells unless they are all the same size.", Ed = "Sheet has been closed. No further operations are allowed.", bd = "IteratorContext can only be used during visit.", Cd = "When using addresses directly from the sheet do not include the sheet name.", vd = (t5) => `Unable to return more than ${t5} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, xd = "Multiple selection ranges can not be copied.", Id = "Unable to determine source.", Rd = "When pasting before or after the cut area both areas must align.";
|
|
9899
9873
|
var Ad, Md;
|
|
9900
9874
|
(Md = Ad || (Ad = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, Md.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
|
|
9901
|
-
class
|
|
9875
|
+
class Nd {
|
|
9902
9876
|
constructor(t5, e2, n2) {
|
|
9903
|
-
if (!n2) throw new
|
|
9877
|
+
if (!n2) throw new Wt();
|
|
9904
9878
|
if ("string" == typeof n2 && (n2 = { address: n2 }), "string" != typeof n2.address) throw new Error("Invalid hyperlink");
|
|
9905
9879
|
this._t = t5, this._r = e2, this._p = n2;
|
|
9906
9880
|
}
|
|
@@ -9925,7 +9899,7 @@ class Td {
|
|
|
9925
9899
|
return true;
|
|
9926
9900
|
}
|
|
9927
9901
|
}
|
|
9928
|
-
const
|
|
9902
|
+
const Td = (t5) => {
|
|
9929
9903
|
if ("string" != typeof t5) return null;
|
|
9930
9904
|
let r2 = e(t5);
|
|
9931
9905
|
Array.isArray(r2) && 0 === r2.length && (r2 = null), r2 = r2 ? { "font-family": r2 } : n(t5);
|
|
@@ -9944,15 +9918,15 @@ const Nd = (t5) => {
|
|
|
9944
9918
|
let n2 = "";
|
|
9945
9919
|
if (t5 && (t5.includes(" ") && (t5 = '"' + t5 + '"'), n2 = t5), e2) for (let t6 = 0; t6 < e2.length; t6++) n2.length > 0 && (n2 += ", "), n2 += e2[t6];
|
|
9946
9920
|
return n2;
|
|
9947
|
-
},
|
|
9921
|
+
}, Wd = (t5) => {
|
|
9948
9922
|
let e2 = "", n2 = false, r2 = "";
|
|
9949
9923
|
for (let o2 = 0; o2 < t5.length; o2++) {
|
|
9950
9924
|
const s2 = t5.charAt(o2);
|
|
9951
9925
|
n2 && "]" !== s2 && '"' !== s2 ? e2 += s2 : '"' === s2 ? (e2 += "\\0022", n2 = !n2) : ["[", "]", ",", "#", ".", "@", "/", ":", ";", "-", " "].includes(s2) ? (e2 += "\\" + s2, "[" === s2 ? n2 = true : "]" === s2 && (n2 = false)) : ["(", ")"].includes(s2) ? e2 += "_" === r2 ? "\\" + s2 : "\\\\\\" + s2 : ["$"].includes(s2) ? e2 += "\\0022" + s2 + "\\0022" : e2 += s2, r2 = s2;
|
|
9952
9926
|
}
|
|
9953
9927
|
return '"' + e2 + '"';
|
|
9954
|
-
},
|
|
9955
|
-
lg.set(bt.textToKey(
|
|
9928
|
+
}, jd = "Thin", Hd = "Hairline", Vd = "Extra Light", $d = "Ultra Light", Gd = "Light", Ud = "Normal", Jd = "Regular", qd = "Medium", Kd = "Semi Bold", Xd = "Demi Bold", Yd = "Bold", Qd = "Extra Bold", Zd = "Ultra Bold", tg = "Black", eg = "Heavy", ng = "Extra Black", rg = "Ultra Black", og = "lighter", sg = "normal", ig = "bold", ag = "bolder", lg = /* @__PURE__ */ new Map();
|
|
9929
|
+
lg.set(bt.textToKey(jd), 100), lg.set(bt.textToKey(Hd), 100), lg.set(bt.textToKey(Vd), 200), lg.set(bt.textToKey($d), 200), lg.set(bt.textToKey(Gd), 300), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(Jd), 400), lg.set(bt.textToKey(qd), 500), lg.set(bt.textToKey(Kd), 600), lg.set(bt.textToKey(Xd), 600), lg.set(bt.textToKey(Ud), 400), lg.set(bt.textToKey(Yd), 700), lg.set(bt.textToKey(Qd), 800), lg.set(bt.textToKey(Zd), 800), lg.set(bt.textToKey(tg), 900), lg.set(bt.textToKey(eg), 900), lg.set(bt.textToKey(ng), 950), lg.set(bt.textToKey(rg), 950), lg.set(bt.textToKey(og), 100), lg.set(bt.textToKey(sg), 400), lg.set(bt.textToKey(ig), 700), lg.set(bt.textToKey(ag), 700);
|
|
9956
9930
|
const cg = "xx-small", hg = "x-small", ug = "small", dg = "medium", gg = "large", mg = "x-large", fg = "xx-large", pg = "xxx-large", _g = "smaller", Sg = "larger", wg = "math", yg = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), Eg = /* @__PURE__ */ new Map();
|
|
9957
9931
|
Eg.set(bt.textToKey(cg), (t5) => 0.4 * t5), Eg.set(bt.textToKey(hg), (t5) => 0.5 * t5), Eg.set(bt.textToKey(ug), (t5) => 0.6 * t5), Eg.set(bt.textToKey(dg), (t5) => t5), Eg.set(bt.textToKey(gg), (t5) => 1.1 * t5), Eg.set(bt.textToKey(mg), (t5) => 1.25 * t5), Eg.set(bt.textToKey(fg), (t5) => 1.5 * t5), Eg.set(bt.textToKey(pg), (t5) => 2 * t5), Eg.set(bt.textToKey(_g), (t5) => 0.9 * t5), Eg.set(bt.textToKey(Sg), (t5) => 1.1 * t5), Eg.set(bt.textToKey(wg), (t5) => t5);
|
|
9958
9932
|
const bg = (t5, e2 = 11, n2 = "pt") => {
|
|
@@ -10017,8 +9991,8 @@ const Ig = new RegExp(`(\\s*(?:${vg}))`, "g"), Rg = (t5) => {
|
|
|
10017
9991
|
}
|
|
10018
9992
|
return `linear-gradient(${o2}deg, ${r2})`;
|
|
10019
9993
|
}, Mg = /* @__PURE__ */ new Map();
|
|
10020
|
-
Mg.set(
|
|
10021
|
-
const
|
|
9994
|
+
Mg.set(Ta.StrokeStyle.None, { size: null, cssKey: "none" }), Mg.set(Ta.StrokeStyle.DashDot, { size: 0.5, cssKey: "dot-dash" }), Mg.set(Ta.StrokeStyle.DashDotDot, { size: 0.5, cssKey: "dot-dot-dash" }), Mg.set(Ta.StrokeStyle.Dashed, { size: 0.5, cssKey: "dashed" }), Mg.set(Ta.StrokeStyle.MediumDashed, { size: 1, cssKey: "dashed" }), Mg.set(Ta.StrokeStyle.Dotted, { size: 0.5, cssKey: "dotted" }), Mg.set(Ta.StrokeStyle.MediumDashDot, { size: 1, cssKey: "dot-dash" }), Mg.set(Ta.StrokeStyle.MediumDashDotDot, { size: 1, cssKey: "dot-dot-dash" }), Mg.set(Ta.StrokeStyle.Hair, { size: 0.5, cssKey: "hairline" }), Mg.set(Ta.StrokeStyle.Thin, { size: 0.5, cssKey: "solid" }), Mg.set(Ta.StrokeStyle.Thick, { size: 1.5, cssKey: "solid" }), Mg.set(Ta.StrokeStyle.Medium, { size: 1, cssKey: "solid" }), Mg.set(Ta.StrokeStyle.Double, { size: 2, cssKey: "double" }), Mg.set(Ta.StrokeStyle.SlantDashDot, { size: 1, cssKey: "dot-dash-slanted" });
|
|
9995
|
+
const Ng = (t5) => {
|
|
10022
9996
|
if (!t5) return "none";
|
|
10023
9997
|
const e2 = Mg.get(t5.getStyle());
|
|
10024
9998
|
if (!e2) return null;
|
|
@@ -10027,19 +10001,19 @@ const Tg = (t5) => {
|
|
|
10027
10001
|
n2 = n2 ? " " + n2 : "";
|
|
10028
10002
|
return `${null !== e2.size ? `${e2.size}pt ` : ""}${e2.cssKey}${n2}`;
|
|
10029
10003
|
};
|
|
10030
|
-
let
|
|
10004
|
+
let Tg = [];
|
|
10031
10005
|
const kg = /* @__PURE__ */ new Set(), Fg = /* @__PURE__ */ new Map(), Og = (t5, e2) => {
|
|
10032
10006
|
let n2 = null !== t5.size ? `${t5.size.toString()} ${t5.cssKey}` : t5.cssKey;
|
|
10033
|
-
Fg.set(n2, e2), kg.has(t5.cssKey) || (
|
|
10007
|
+
Fg.set(n2, e2), kg.has(t5.cssKey) || (Tg.push(t5.cssKey), kg.add(t5.cssKey));
|
|
10034
10008
|
};
|
|
10035
10009
|
Mg.forEach(Og);
|
|
10036
|
-
const Dg = Object.keys(
|
|
10010
|
+
const Dg = Object.keys(Ta.StrokeStyle);
|
|
10037
10011
|
for (let t5 = 0; t5 < Dg.length; t5++) {
|
|
10038
|
-
Og({ size: null, cssKey: Dg[t5].toLowerCase() },
|
|
10012
|
+
Og({ size: null, cssKey: Dg[t5].toLowerCase() }, Ta.StrokeStyle[Dg[t5]]);
|
|
10039
10013
|
}
|
|
10040
|
-
Og({ size: null, cssKey: "double" },
|
|
10014
|
+
Og({ size: null, cssKey: "double" }, Ta.StrokeStyle.Double), Og({ size: null, cssKey: "solid" }, Ta.StrokeStyle.Medium), Og({ size: null, cssKey: "hidden" }, Ta.StrokeStyle.None), Tg.sort((t5, e2) => e2.length - t5.length);
|
|
10041
10015
|
let Lg = "";
|
|
10042
|
-
for (let t5 = 0; t5 <
|
|
10016
|
+
for (let t5 = 0; t5 < Tg.length; t5++) Lg.length > 0 && (Lg += "|"), Lg += "\\b" + Tg[t5] + "\\b";
|
|
10043
10017
|
const Bg = new RegExp(`(\\s*(?:${Lg}))`, "g"), Pg = new RegExp("(\\s*[0-9]*[.]?[0-9]+(?:pt|px){0,1})", "g"), zg = (t5) => {
|
|
10044
10018
|
if (!t5) return null;
|
|
10045
10019
|
let e2 = t5.toLowerCase(), n2 = e2.match(Bg);
|
|
@@ -10060,12 +10034,12 @@ const Bg = new RegExp(`(\\s*(?:${Lg}))`, "g"), Pg = new RegExp("(\\s*[0-9]*[.]?[
|
|
|
10060
10034
|
const i2 = e2 ? e2.trim() : null;
|
|
10061
10035
|
let a2 = null === s2 ? o2 : `${s2.toString()} ${o2}`, l2 = Fg.get(a2);
|
|
10062
10036
|
return l2 || (l2 = Fg.get(o2)), l2 ? { color: i2, style: l2 } : null;
|
|
10063
|
-
},
|
|
10064
|
-
em.set(bt.textToKey(
|
|
10037
|
+
}, Wg = "start", jg = "end", Hg = "left", Vg = "right", $g = "center", Gg = "justify", Ug = "justify-all", Jg = "baseline", qg = "top", Kg = "middle", Xg = "bottom", Yg = "sub", Qg = "text-top", Zg = "justify", tm = "distributed", em = /* @__PURE__ */ new Map();
|
|
10038
|
+
em.set(bt.textToKey(Wg), Zs.HorizontalAlignment.Left), em.set(bt.textToKey(Hg), Zs.HorizontalAlignment.Left), em.set(bt.textToKey(jg), Zs.HorizontalAlignment.Right), em.set(bt.textToKey(Vg), Zs.HorizontalAlignment.Right), em.set(bt.textToKey($g), Zs.HorizontalAlignment.Center), em.set(bt.textToKey(Gg), Zs.HorizontalAlignment.Justify), em.set(bt.textToKey(Ug), Zs.HorizontalAlignment.Justify);
|
|
10065
10039
|
const nm = /* @__PURE__ */ new Map();
|
|
10066
10040
|
nm.set(bt.textToKey(Jg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(qg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Kg), Zs.VerticalAlignment.Center), nm.set(bt.textToKey(Xg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Yg), Zs.VerticalAlignment.Bottom), nm.set(bt.textToKey(Qg), Zs.VerticalAlignment.Top), nm.set(bt.textToKey(Zg), Zs.VerticalAlignment.Justify), nm.set(bt.textToKey(tm), Zs.VerticalAlignment.Distributed);
|
|
10067
10041
|
const rm = (t5, e2) => {
|
|
10068
|
-
if (t5 instanceof
|
|
10042
|
+
if (t5 instanceof Na) return { color: t5 };
|
|
10069
10043
|
if ("string" == typeof t5) try {
|
|
10070
10044
|
return { color: "none" === t5 || "transparent" === t5 ? null : e2(t5) };
|
|
10071
10045
|
} catch (t6) {
|
|
@@ -10104,16 +10078,16 @@ const rm = (t5, e2) => {
|
|
|
10104
10078
|
return t5;
|
|
10105
10079
|
}, getSubType: (t5) => t5.type === ma.Type.None ? im : t5.type === ma.Type.Solid ? am : t5.type === ma.Type.Gradient ? lm : t5.type === ma.Type.Pattern ? cm : null }, um = { properties: { font: { shorthand: (t5, e2) => {
|
|
10106
10080
|
if ("string" == typeof t5) {
|
|
10107
|
-
const e3 =
|
|
10081
|
+
const e3 = Td(t5);
|
|
10108
10082
|
if (e3) {
|
|
10109
10083
|
const t6 = {};
|
|
10110
10084
|
if (e3.family && (t6.family = e3.family), e3.fallbacks && (t6.fallbacks = e3.fallbacks), e3.size && (t6.size = bg(e3.size)), Object.keys(e3).length > 0) return t6;
|
|
10111
10085
|
}
|
|
10112
10086
|
}
|
|
10113
10087
|
return t5;
|
|
10114
|
-
}, properties: { family: { shorthand: (t5, e2) =>
|
|
10088
|
+
}, properties: { family: { shorthand: (t5, e2) => Td(t5)?.family ?? null }, fallbacks: { shorthand: (t5, e2) => {
|
|
10115
10089
|
if ("string" != typeof t5) return t5;
|
|
10116
|
-
let n2 =
|
|
10090
|
+
let n2 = Td(t5);
|
|
10117
10091
|
if (!n2) return null;
|
|
10118
10092
|
let r2 = [n2.family];
|
|
10119
10093
|
return n2.fallbacks && (r2 = r2.concat(n2.fallbacks)), r2;
|
|
@@ -10150,7 +10124,7 @@ const rm = (t5, e2) => {
|
|
|
10150
10124
|
return void 0 !== e3 ? e3 : t5;
|
|
10151
10125
|
}
|
|
10152
10126
|
if ("number" == typeof t5) {
|
|
10153
|
-
return
|
|
10127
|
+
return Wa(t5);
|
|
10154
10128
|
}
|
|
10155
10129
|
return null;
|
|
10156
10130
|
} } } }, dm = { properties: { style: um } }, gm = Object.freeze({ displayText: "", conditionalColor: null, repeatChars: bt.EmptyArray, spacingChars: bt.EmptyArray, repeatPlaceholder: null, formattedRuns: Object.freeze({ runs: bt.EmptyArray, length: 0, width: 0, lastRepeatIndex: -1 }), canWrap: false, asDate: null, isDateFormat: false, isTimeFormat: false, isDate1904: false }), mm = (t5, e2, n2, r2, o2, i2 = false) => {
|
|
@@ -10212,8 +10186,8 @@ const rm = (t5, e2) => {
|
|
|
10212
10186
|
}
|
|
10213
10187
|
const b2 = Is(r2, t5), C2 = { displayText: a2 ?? "", conditionalColor: b2 ? o2(b2) : null, repeatChars: c2 ?? bt.EmptyArray, spacingChars: h2 ?? bt.EmptyArray, repeatPlaceholder: l2, formattedRuns: m2, canWrap: w2, asDate: g2, isDateFormat: u2, isTimeFormat: d2, isDate1904: i2 };
|
|
10214
10188
|
return Object.freeze(C2);
|
|
10215
|
-
}, fm = Object.freeze({ fallbacks: bt.EmptyArray, weight: 400, style: Ai.Style.Normal, fill: pa.Scheme.Tx1, letterSpacing: null, underline: Ai.UnderlineStyle.None, strike: false, scheme: Ai.Scheme.Minor, verticalAlign: Ai.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), pm = Object.freeze({ style:
|
|
10216
|
-
const t5 = [{ named: Ya.BuiltInName.Normal }, { named: Ya.BuiltInName.RowLevel }, { named: Ya.BuiltInName.ColLevel }, { named: Ya.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Percent, numberFormat: "0%" }, { named: Ya.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Ya.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Ya.BuiltInName.Hyperlink, font: { ...fm, fill: pa.Scheme.Hlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.FollowedHyperlink, font: { ...fm, fill: pa.Scheme.FolHlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.Note, fill: "FFFFFFCC", font: { ...fm, style: Ai.Style.Normal, fill: pa.Scheme.Tx1 }, border: { left: { style:
|
|
10189
|
+
}, fm = Object.freeze({ fallbacks: bt.EmptyArray, weight: 400, style: Ai.Style.Normal, fill: pa.Scheme.Tx1, letterSpacing: null, underline: Ai.UnderlineStyle.None, strike: false, scheme: Ai.Scheme.Minor, verticalAlign: Ai.VerticalAlignment.Baseline, shadow: false, outline: false, extend: false }), pm = Object.freeze({ style: Ta.StrokeStyle.None, color: pa.Scheme.Tx1 }), _m = Object.freeze({ [Ta.Edge.Top]: pm, [Ta.Edge.Left]: pm, [Ta.Edge.Bottom]: pm, [Ta.Edge.Right]: pm, [Ta.Edge.Horizontal]: pm, [Ta.Edge.Vertical]: pm, [Ta.Edge.DiagonalUp]: pm, [Ta.Edge.DiagonalDown]: pm }), Sm = Object.freeze({ horizontal: Zs.HorizontalAlignment.General, vertical: Zs.VerticalAlignment.Bottom, indent: 0, relativeIndent: 0, overflow: Zs.Overflow.Visible, rotation: 0, stacked: false, quotePrefix: false, justifyLastLine: false, readingOrder: Zs.ReadingDirection.Auto, readingDirection: Zs.ReadingDirection.Auto }), wm = Object.freeze({ locked: false, formulaHidden: false }), ym = Object.freeze({ fill: { type: ma.Type.None }, numberFormat: "General", alignment: Sm, font: fm, border: _m, protection: wm, quotePrefix: false, namedStyle: null }), Em = (() => {
|
|
10190
|
+
const t5 = [{ named: Ya.BuiltInName.Normal }, { named: Ya.BuiltInName.RowLevel }, { named: Ya.BuiltInName.ColLevel }, { named: Ya.BuiltInName.Comma, numberFormat: '_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Currency, numberFormat: '_($* #,##0.00_);_($* (#,##0.00);_($* "-"??_);_(@_)' }, { named: Ya.BuiltInName.Percent, numberFormat: "0%" }, { named: Ya.BuiltInName.Comma0, numberFormat: '_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)' }, { named: Ya.BuiltInName.Currency0, numberFormat: '_($* #,##0_);_($* (#,##0);_($* "-"_);_(@_)' }, { named: Ya.BuiltInName.Hyperlink, font: { ...fm, fill: pa.Scheme.Hlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.FollowedHyperlink, font: { ...fm, fill: pa.Scheme.FolHlink, underline: Ai.UnderlineStyle.Single } }, { named: Ya.BuiltInName.Note, fill: "FFFFFFCC", font: { ...fm, style: Ai.Style.Normal, fill: pa.Scheme.Tx1 }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" }, top: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" }, right: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FFB2B2B2" } } }, { named: Ya.BuiltInName.WarningText, font: { ...fm, fill: "FFFF0000" } }, { named: Ya.BuiltInName.Unknown12 }, { named: Ya.BuiltInName.Unknown13 }, { named: Ya.BuiltInName.Unknown14 }, { named: Ya.BuiltInName.Title, font: { ...fm, size: 18, fill: pa.Scheme.Tx2 } }, { named: Ya.BuiltInName.Heading1, font: { ...fm, size: 15, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Ta.StrokeStyle.Thick, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Heading2, font: { ...fm, size: 13, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Ta.StrokeStyle.Thick, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading3, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx2 }, border: { bottom: { style: Ta.StrokeStyle.Medium, color: "accent1 lumMod 40, lumOff 60" } } }, { named: Ya.BuiltInName.Heading4, font: { weight: "bold", fill: pa.Scheme.Tx2, ...fm } }, { named: Ya.BuiltInName.Input, fill: "FFFFCC99", font: { ...fm, fill: "FF3F3F76" }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.Output, fill: "FFF2F2F2", font: { ...fm, fill: "FF3F3F3F" }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" }, top: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" }, right: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.Calculation, fill: "FFF2F2F2", font: { ...fm, fill: "FFFA7D00" }, border: { left: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, top: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, right: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" }, bottom: { style: Ta.StrokeStyle.Thin, color: "FF7F7F7F" } } }, { named: Ya.BuiltInName.CheckCell, fill: "FFA5A5A5", font: { ...fm, fill: pa.Scheme.Bg1 }, border: { left: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" }, top: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" }, right: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" }, bottom: { style: Ta.StrokeStyle.Double, color: "FF3F3F3F" } } }, { named: Ya.BuiltInName.LinkedCell, font: { ...fm, fill: "FFFA7D00" }, border: { bottom: { style: Ta.StrokeStyle.Double, color: "FFFF8001" } } }, { named: Ya.BuiltInName.Total, font: { ...fm, weight: "bold", fill: pa.Scheme.Tx1 }, border: { top: { style: Ta.StrokeStyle.Thin, color: pa.Scheme.Accent1 }, bottom: { style: Ta.StrokeStyle.Double, color: pa.Scheme.Accent1 } } }, { named: Ya.BuiltInName.Good, fill: "FFC6EFCE", font: { ...fm, fill: "FF006100" } }, { named: Ya.BuiltInName.Bad, fill: "FFFFC7CE", font: { ...fm, fill: "FF9C0006" } }, { named: Ya.BuiltInName.Neutral, fill: "FFFFEB9C", font: { ...fm, fill: "FF9C5700" } }, { named: Ya.BuiltInName.Accent1 }, { named: Ya.BuiltInName.Accent1_20 }, { named: Ya.BuiltInName.Accent1_40 }, { named: Ya.BuiltInName.Accent1_60 }, { named: Ya.BuiltInName.Accent2 }, { named: Ya.BuiltInName.Accent2_20 }, { named: Ya.BuiltInName.Accent2_40 }, { named: Ya.BuiltInName.Accent2_60 }, { named: Ya.BuiltInName.Accent3 }, { named: Ya.BuiltInName.Accent3_20 }, { named: Ya.BuiltInName.Accent3_40 }, { named: Ya.BuiltInName.Accent3_60 }, { named: Ya.BuiltInName.Accent4 }, { named: Ya.BuiltInName.Accent4_20 }, { named: Ya.BuiltInName.Accent4_40 }, { named: Ya.BuiltInName.Accent4_60 }, { named: Ya.BuiltInName.Accent5 }, { named: Ya.BuiltInName.Accent5_20 }, { named: Ya.BuiltInName.Accent5_40 }, { named: Ya.BuiltInName.Accent5_60 }, { named: Ya.BuiltInName.Accent6 }, { named: Ya.BuiltInName.Accent6_20 }, { named: Ya.BuiltInName.Accent6_40 }, { named: Ya.BuiltInName.Accent6_60 }, { named: Ya.BuiltInName.ExplanatoryText, font: { ...fm, style: Ai.Style.Italic, fill: "FF7F7F7F" } }];
|
|
10217
10191
|
for (let e2 = 29; e2 <= 52; e2++) {
|
|
10218
10192
|
const n2 = (e2 - 29) % 4, r2 = Math.floor((e2 - 29) / 4);
|
|
10219
10193
|
let o2 = "";
|
|
@@ -10314,21 +10288,21 @@ class Im extends xm {
|
|
|
10314
10288
|
return t5 ? this._c.parseColor(t5) : null;
|
|
10315
10289
|
}
|
|
10316
10290
|
isNone() {
|
|
10317
|
-
return this.getStyle() ===
|
|
10291
|
+
return this.getStyle() === Ta.StrokeStyle.None;
|
|
10318
10292
|
}
|
|
10319
10293
|
toCSS() {
|
|
10320
|
-
const t5 =
|
|
10294
|
+
const t5 = Ng(this);
|
|
10321
10295
|
switch (this._edge) {
|
|
10322
|
-
case
|
|
10296
|
+
case Ta.Edge.Left:
|
|
10323
10297
|
return { borderLeft: t5 };
|
|
10324
|
-
case
|
|
10298
|
+
case Ta.Edge.Right:
|
|
10325
10299
|
return { borderRight: t5 };
|
|
10326
|
-
case
|
|
10300
|
+
case Ta.Edge.Top:
|
|
10327
10301
|
return { borderTop: t5 };
|
|
10328
|
-
case
|
|
10302
|
+
case Ta.Edge.Bottom:
|
|
10329
10303
|
return { borderBottom: t5 };
|
|
10330
|
-
case
|
|
10331
|
-
case
|
|
10304
|
+
case Ta.Edge.DiagonalUp:
|
|
10305
|
+
case Ta.Edge.DiagonalDown:
|
|
10332
10306
|
return { borderDiagonalUp: t5 };
|
|
10333
10307
|
}
|
|
10334
10308
|
}
|
|
@@ -10338,22 +10312,22 @@ class Im extends xm {
|
|
|
10338
10312
|
}
|
|
10339
10313
|
class Rm extends xm {
|
|
10340
10314
|
getLeft() {
|
|
10341
|
-
return new Im(
|
|
10315
|
+
return new Im(Ta.Edge.Left, this._c, this._values(Ta.Edge.Left));
|
|
10342
10316
|
}
|
|
10343
10317
|
getRight() {
|
|
10344
|
-
return new Im(
|
|
10318
|
+
return new Im(Ta.Edge.Right, this._c, this._values(Ta.Edge.Right));
|
|
10345
10319
|
}
|
|
10346
10320
|
getTop() {
|
|
10347
|
-
return new Im(
|
|
10321
|
+
return new Im(Ta.Edge.Top, this._c, this._values(Ta.Edge.Top));
|
|
10348
10322
|
}
|
|
10349
10323
|
getBottom() {
|
|
10350
|
-
return new Im(
|
|
10324
|
+
return new Im(Ta.Edge.Bottom, this._c, this._values(Ta.Edge.Bottom));
|
|
10351
10325
|
}
|
|
10352
10326
|
getDiagonalUp() {
|
|
10353
|
-
return new Im(
|
|
10327
|
+
return new Im(Ta.Edge.DiagonalUp, this._c, this._values(Ta.Edge.DiagonalUp));
|
|
10354
10328
|
}
|
|
10355
10329
|
getDiagonalDown() {
|
|
10356
|
-
return new Im(
|
|
10330
|
+
return new Im(Ta.Edge.DiagonalDown, this._c, this._values(Ta.Edge.DiagonalDown));
|
|
10357
10331
|
}
|
|
10358
10332
|
isEmpty() {
|
|
10359
10333
|
return false;
|
|
@@ -10469,13 +10443,13 @@ class Mm extends xm {
|
|
|
10469
10443
|
return true;
|
|
10470
10444
|
}
|
|
10471
10445
|
}
|
|
10472
|
-
const
|
|
10473
|
-
class
|
|
10446
|
+
const Nm = Object.freeze({ background: "none" });
|
|
10447
|
+
class Tm extends xm {
|
|
10474
10448
|
getType() {
|
|
10475
10449
|
return ma.Type.None;
|
|
10476
10450
|
}
|
|
10477
10451
|
toCSS(t5) {
|
|
10478
|
-
return
|
|
10452
|
+
return Nm;
|
|
10479
10453
|
}
|
|
10480
10454
|
toJSON() {
|
|
10481
10455
|
return { type: ma.Type.None };
|
|
@@ -10615,14 +10589,14 @@ class Lm {
|
|
|
10615
10589
|
getFill() {
|
|
10616
10590
|
const t5 = this._p;
|
|
10617
10591
|
let e2 = t5.values("fill"), n2 = t5.value("fill");
|
|
10618
|
-
return n2.type === ma.Type.None ? new
|
|
10592
|
+
return n2.type === ma.Type.None ? new Tm(this._c, e2) : n2.type === ma.Type.Solid || !n2.type && n2.color ? new km(this._c, e2) : n2.type === ma.Type.Gradient ? new Om(this._c, e2) : n2.type === ma.Type.Pattern ? new Dm(this._c, e2) : new Tm(this._c, e2);
|
|
10619
10593
|
}
|
|
10620
10594
|
getAlignment() {
|
|
10621
10595
|
return new Am(this._c, this._p.values("alignment"));
|
|
10622
10596
|
}
|
|
10623
10597
|
getNumberFormat() {
|
|
10624
10598
|
const t5 = this._p.value("numberFormat");
|
|
10625
|
-
return "number" == typeof t5 ?
|
|
10599
|
+
return "number" == typeof t5 ? Wa(t5) : t5;
|
|
10626
10600
|
}
|
|
10627
10601
|
getQuotePrefix() {
|
|
10628
10602
|
return this._p.value("quotePrefix");
|
|
@@ -10655,7 +10629,7 @@ const zm = (t5, e2) => {
|
|
|
10655
10629
|
let r2 = e2.color;
|
|
10656
10630
|
return (e2 && e2.color).isIColor && (r2 = e2.color.toString()), n2 === r2;
|
|
10657
10631
|
};
|
|
10658
|
-
class
|
|
10632
|
+
class Wm {
|
|
10659
10633
|
constructor(t5, e2, n2, r2) {
|
|
10660
10634
|
this._c = t5, this._r = e2, this._p = n2 ?? null, this._t = r2 ?? null, this._e = null === this._p || 1 === Object.keys(this._p).length && this._p.named === Ya.BuiltInName.Normal;
|
|
10661
10635
|
}
|
|
@@ -10671,18 +10645,18 @@ class jm {
|
|
|
10671
10645
|
cloneWithUpdate(t5) {
|
|
10672
10646
|
if (void 0 === t5) return this;
|
|
10673
10647
|
const e2 = this._c, n2 = this._r, r2 = this._p, o2 = Ot.resolveTypedUpdates(t5, um, e2, r2);
|
|
10674
|
-
return new
|
|
10648
|
+
return new Wm(e2, n2, o2);
|
|
10675
10649
|
}
|
|
10676
10650
|
copyTo(t5, e2) {
|
|
10677
10651
|
const n2 = this._c, r2 = this._r, o2 = t5.rowStart - r2.rowStart, s2 = t5.colStart - r2.colStart;
|
|
10678
10652
|
let i2 = null;
|
|
10679
|
-
return Y.isEqualRanges(r2, this._t) || (i2 = Y.translateRange(r2, o2, s2)), new
|
|
10653
|
+
return Y.isEqualRanges(r2, this._t) || (i2 = Y.translateRange(r2, o2, s2)), new Wm(n2, t5, this._p, i2);
|
|
10680
10654
|
}
|
|
10681
10655
|
canTile(t5, e2) {
|
|
10682
10656
|
return !this._p.border;
|
|
10683
10657
|
}
|
|
10684
10658
|
_createShifted(t5) {
|
|
10685
|
-
return new
|
|
10659
|
+
return new Wm(this._c, t5, this._p);
|
|
10686
10660
|
}
|
|
10687
10661
|
getShifted(t5) {
|
|
10688
10662
|
return t5.after ? { ...t5.after, value: this._createShifted(Y.sanitizeRange(t5.after)) } : null;
|
|
@@ -10704,7 +10678,7 @@ class jm {
|
|
|
10704
10678
|
}
|
|
10705
10679
|
}
|
|
10706
10680
|
const u2 = this._t;
|
|
10707
|
-
return [new
|
|
10681
|
+
return [new Wm(n2, t5[0], s2, u2), new Wm(n2, t5[1], l2, u2)];
|
|
10708
10682
|
}
|
|
10709
10683
|
getMerged(t5, e2, n2) {
|
|
10710
10684
|
const r2 = n2 === i.Orientation.Column, o2 = this._p, s2 = t5._p;
|
|
@@ -10721,21 +10695,21 @@ class jm {
|
|
|
10721
10695
|
if (c2 && !h2 || h2 && !c2) return;
|
|
10722
10696
|
const u2 = this._c;
|
|
10723
10697
|
if (c2 || h2) {
|
|
10724
|
-
const n3 = r2 ?
|
|
10698
|
+
const n3 = r2 ? Ta.Edge.Top : Ta.Edge.Left, s3 = r2 ? Ta.Edge.Bottom : Ta.Edge.Right;
|
|
10725
10699
|
if (!zm(c2[n3], h2[n3]) || !zm(c2[s3], h2[s3])) return;
|
|
10726
|
-
const i2 = this._r, a3 = t5._r, l3 = 1 + (r2 ? i2.rowEnd - i2.rowStart : i2.colEnd - i2.colStart), d2 = 1 + (r2 ? i2.colEnd - i2.colStart : i2.rowEnd - i2.rowStart), g2 = 1 + (r2 ? a3.colEnd - a3.colStart : a3.rowEnd - a3.rowStart), m2 = r2 ?
|
|
10700
|
+
const i2 = this._r, a3 = t5._r, l3 = 1 + (r2 ? i2.rowEnd - i2.rowStart : i2.colEnd - i2.colStart), d2 = 1 + (r2 ? i2.colEnd - i2.colStart : i2.rowEnd - i2.rowStart), g2 = 1 + (r2 ? a3.colEnd - a3.colStart : a3.rowEnd - a3.rowStart), m2 = r2 ? Ta.Edge.Horizontal : Ta.Edge.Vertical;
|
|
10727
10701
|
if (l3 > 1 && !zm(c2[m2], h2[m2])) return;
|
|
10728
|
-
const f2 = r2 ?
|
|
10702
|
+
const f2 = r2 ? Ta.Edge.Right : Ta.Edge.Bottom, p2 = r2 ? Ta.Edge.Left : Ta.Edge.Top;
|
|
10729
10703
|
if (!zm(c2[f2], h2[p2])) return;
|
|
10730
|
-
const _2 = r2 ?
|
|
10704
|
+
const _2 = r2 ? Ta.Edge.Vertical : Ta.Edge.Horizontal, S2 = c2[f2];
|
|
10731
10705
|
if (d2 > 1 && !zm(S2, c2[_2])) return;
|
|
10732
10706
|
const w2 = 1 === g2 ? h2[p2] : h2[_2];
|
|
10733
10707
|
if (g2 > 1 && !zm(w2, h2[_2])) return;
|
|
10734
10708
|
if (!zm(S2, w2)) return;
|
|
10735
10709
|
const y2 = { border: { [n3]: c2[n3], [s3]: c2[s3], [m2]: c2[m2], [_2]: S2, [p2]: c2[p2], [f2]: h2[f2] } }, E2 = Ot.resolveTypedUpdates(y2, um, u2, o2);
|
|
10736
|
-
return new
|
|
10710
|
+
return new Wm(u2, e2, E2);
|
|
10737
10711
|
}
|
|
10738
|
-
return new
|
|
10712
|
+
return new Wm(u2, e2, this._p);
|
|
10739
10713
|
}
|
|
10740
10714
|
hasTrailingEdge() {
|
|
10741
10715
|
return true;
|
|
@@ -10744,7 +10718,7 @@ class jm {
|
|
|
10744
10718
|
return true;
|
|
10745
10719
|
}
|
|
10746
10720
|
_splitBorderRange(t5, e2, n2, r2) {
|
|
10747
|
-
const o2 = r2 ?
|
|
10721
|
+
const o2 = r2 ? Ta.Edge.Left : Ta.Edge.Top, s2 = r2 ? Ta.Edge.Right : Ta.Edge.Bottom, i2 = r2 ? Ta.Edge.Vertical : Ta.Edge.Horizontal, a2 = r2 ? e2.colStart : e2.rowStart, l2 = r2 ? e2.colEnd : e2.rowEnd, c2 = r2 ? n2.colStart : n2.rowStart, h2 = r2 ? n2.colEnd : n2.rowEnd;
|
|
10748
10722
|
let u2 = { ...t5 };
|
|
10749
10723
|
return delete u2[o2], delete u2[s2], delete u2[i2], a2 === c2 ? t5[o2] && (u2[o2] = t5[o2]) : t5[i2] && (u2[o2] = t5[i2]), l2 === h2 ? t5[s2] && (u2[s2] = t5[s2]) : t5[i2] && (u2[s2] = t5[i2]), h2 - c2 > 0 && t5[i2] && (u2[i2] = t5[i2]), 0 === Object.keys(u2).length ? null : u2;
|
|
10750
10724
|
}
|
|
@@ -10787,7 +10761,7 @@ class jm {
|
|
|
10787
10761
|
return bt.toSafeJSON(this._p);
|
|
10788
10762
|
}
|
|
10789
10763
|
}
|
|
10790
|
-
const
|
|
10764
|
+
const jm = Object.freeze({ value: null, style: null, hyperlink: null, formula: null, type: s.Null, stringToParse: null }), Hm = Object.seal({ value: void 0, style: void 0, hyperlink: void 0, formula: void 0, type: void 0, stringToParse: void 0 }), Vm = Object.seal({ value: void 0, style: void 0, hyperlink: void 0, formula: void 0 }), $m = Object.freeze({ width: 1, height: 1 }), Gm = new t({ max: 1e3 });
|
|
10791
10765
|
const Um = new class {
|
|
10792
10766
|
isEditAllowed() {
|
|
10793
10767
|
return true;
|
|
@@ -10800,7 +10774,7 @@ const Um = new class {
|
|
|
10800
10774
|
}
|
|
10801
10775
|
}(), Jm = (t5, e2, n2 = null, r2 = null, o2 = false) => {
|
|
10802
10776
|
if (void 0 === t5) return;
|
|
10803
|
-
if (null === t5) return
|
|
10777
|
+
if (null === t5) return jm;
|
|
10804
10778
|
if (t5 && t5.isICell) {
|
|
10805
10779
|
const e3 = t5, n3 = Hm;
|
|
10806
10780
|
n3.value = e3.getValue();
|
|
@@ -10895,12 +10869,12 @@ const Um = new class {
|
|
|
10895
10869
|
const E2 = l2.colHeaders, b2 = E2.findOffset.bind(E2), C2 = E2.findIndex.bind(E2);
|
|
10896
10870
|
let v2 = b2(c2);
|
|
10897
10871
|
const I2 = v2;
|
|
10898
|
-
let R2 = b2(c2 + y2), A2 = R2 - v2, M2 = c2,
|
|
10899
|
-
const
|
|
10872
|
+
let R2 = b2(c2 + y2), A2 = R2 - v2, M2 = c2, N2 = c2;
|
|
10873
|
+
const T2 = { x: 0, y: 0, width: A2, height: h2?.height ?? 0 };
|
|
10900
10874
|
const k2 = c2 - c2 + y2;
|
|
10901
|
-
let F2 = h2 ? h2.width - A2 : 0, O2 =
|
|
10902
|
-
d2 && (F2 = 0), A2 > 0 && F2 > 0 && (m2 === x.Center && (F2 /= 2), m2 !== x.Left && m2 !== x.Center || (
|
|
10903
|
-
return { anchorBounds:
|
|
10875
|
+
let F2 = h2 ? h2.width - A2 : 0, O2 = T2;
|
|
10876
|
+
d2 && (F2 = 0), A2 > 0 && F2 > 0 && (m2 === x.Center && (F2 /= 2), m2 !== x.Left && m2 !== x.Center || (N2 = C2(R2 + F2), null !== i2 && (N2 = Math.min(N2, i2.colIndex - 1)), R2 = b2(N2), w2 = F2, _2 = N2 - c2), m2 !== x.Right && m2 !== x.Center || (M2 = C2(v2 - F2), null !== o2 && (M2 = Math.max(M2, o2.colIndex + 1)), v2 = b2(M2), S2 = F2, p2 = c2 - M2), T2.x = I2 - v2, O2.x = T2.x);
|
|
10877
|
+
return { anchorBounds: T2, leftIndex: p2, rightIndex: _2, leftOffset: S2, rightOffset: w2, colSpan: k2, colBounds: O2 };
|
|
10904
10878
|
};
|
|
10905
10879
|
class Zm {
|
|
10906
10880
|
constructor(t5, e2) {
|
|
@@ -10955,8 +10929,8 @@ const tf = (t5, e2, n2, r2) => {
|
|
|
10955
10929
|
const I2 = Xm(t5, e2), R2 = I2.top + I2.bottom + +xf(e2);
|
|
10956
10930
|
let A2 = false, M2 = false;
|
|
10957
10931
|
a2 && (M2 = true, (0 !== _2 || E2) && (M2 = false));
|
|
10958
|
-
const
|
|
10959
|
-
if (
|
|
10932
|
+
const N2 = M2 ? void 0 : Km(t5, e2, n2, r2), T2 = I2.left + I2.right + 2;
|
|
10933
|
+
if (N2) {
|
|
10960
10934
|
if (t5 === s.Number && "General" === w2 && i2) {
|
|
10961
10935
|
let t6 = n2, r3 = bt.splitNumber(t6), o3 = "";
|
|
10962
10936
|
o3 = Math.abs(t6) >= Math.pow(10, 12) || Math.abs(t6) <= Math.pow(10, -12) ? `0.${"0".repeat(Math.max(2, Math.min(r3.ipLength, 5)))}E+00` : 0 === Math.abs(r3.ipLength) ? "0.0" : Math.abs(r3.fpLength) > 0 ? "0".repeat(r3.ipLength) + ".0" : "0".repeat(r3.ipLength), t6 < 0 && (o3 = "-" + o3), o3 = "0".repeat(o3.length);
|
|
@@ -10964,11 +10938,11 @@ const tf = (t5, e2, n2, r2) => {
|
|
|
10964
10938
|
v2 = s2.width, x2 = s2.lineHeight;
|
|
10965
10939
|
} else {
|
|
10966
10940
|
let t6 = null;
|
|
10967
|
-
E2 && (t6 = { width: Math.max(1, o2 -
|
|
10968
|
-
const e3 =
|
|
10941
|
+
E2 && (t6 = { width: Math.max(1, o2 - T2) });
|
|
10942
|
+
const e3 = N2.layout(t6);
|
|
10969
10943
|
v2 = e3.bounds.width, x2 = e3.bounds.height;
|
|
10970
10944
|
}
|
|
10971
|
-
if (null !== v2 && (v2 +=
|
|
10945
|
+
if (null !== v2 && (v2 += T2), null !== x2 && (x2 += R2), A2 = t5 === s.String, _2) {
|
|
10972
10946
|
A2 && p2 === Zs.Overflow.Wrap && (A2 = false);
|
|
10973
10947
|
const t6 = ((t7, e3) => {
|
|
10974
10948
|
const { x: n3, y: r3, width: o3, height: s2 } = t7, i3 = e3 * Math.PI / 180, a3 = Math.sin(i3), l3 = Math.cos(i3), c3 = o3 / 2, h3 = s2 / 2, u3 = Ki(-c3, -h3, a3, l3), d3 = Ki(c3, -h3, a3, l3), g3 = Ki(-c3, h3, a3, l3), m3 = Ki(c3, h3, a3, l3);
|
|
@@ -11110,7 +11084,7 @@ class rf {
|
|
|
11110
11084
|
const n2 = Jm(t5, this._options);
|
|
11111
11085
|
let r2 = this._rs;
|
|
11112
11086
|
if (void 0 !== n2.style) {
|
|
11113
|
-
const t6 = this._coords ?? Y.EmptyCell, o3 = Y.cellToRange(t6), s3 = () => tf(0, o3, this._rs, this._options), i2 = Cm(this._options.styles, n2.style, s3), a2 = (this._rs?.directStyle ?? new
|
|
11087
|
+
const t6 = this._coords ?? Y.EmptyCell, o3 = Y.cellToRange(t6), s3 = () => tf(0, o3, this._rs, this._options), i2 = Cm(this._options.styles, n2.style, s3), a2 = (this._rs?.directStyle ?? new Wm(e2.styles, o3)).cloneWithUpdate(i2);
|
|
11114
11088
|
r2 = { ...r2, directStyle: a2 };
|
|
11115
11089
|
}
|
|
11116
11090
|
let o2 = this._t, s2 = this._v;
|
|
@@ -11171,7 +11145,7 @@ class rf {
|
|
|
11171
11145
|
}
|
|
11172
11146
|
getHyperlink() {
|
|
11173
11147
|
const t5 = this._rs?.hyperlink;
|
|
11174
|
-
return t5 ? new
|
|
11148
|
+
return t5 ? new Nd(this.toText.bind(this), this._options.opener, t5) : null;
|
|
11175
11149
|
}
|
|
11176
11150
|
getErrors() {
|
|
11177
11151
|
const t5 = this._rs;
|
|
@@ -11484,7 +11458,7 @@ const Cf = /^[\\+-]?[0-9]*\.?[0-9]*$/, vf = (t5, e2, n2) => {
|
|
|
11484
11458
|
const n2 = { ...t5 };
|
|
11485
11459
|
return e2 ? "boolean" == typeof e2 ? (n2.$colStart = e2, n2.$rowStart = e2, n2.$colEnd = e2, n2.$rowEnd = e2, n2) : ("boolean" == typeof e2.colStart && (n2.$colStart = e2.colStart), "boolean" == typeof e2.rowStart && (n2.$rowStart = e2.rowStart), "boolean" == typeof e2.colEnd && (n2.$colEnd = e2.colEnd), "boolean" == typeof e2.rowEnd && (n2.$rowEnd = e2.rowEnd), n2) : n2;
|
|
11486
11460
|
};
|
|
11487
|
-
class
|
|
11461
|
+
class Nf {
|
|
11488
11462
|
constructor(t5, e2, n2) {
|
|
11489
11463
|
const r2 = this;
|
|
11490
11464
|
this.setState = (t6) => {
|
|
@@ -11524,7 +11498,7 @@ class Tf {
|
|
|
11524
11498
|
} };
|
|
11525
11499
|
}
|
|
11526
11500
|
}
|
|
11527
|
-
const
|
|
11501
|
+
const Tf = (t5, e2) => {
|
|
11528
11502
|
if (t5 || e2) return t5 && e2 ? { ...t5, ...e2 } : t5 || e2;
|
|
11529
11503
|
}, kf = (t5, e2, n2, r2 = i.Orientation.Row) => {
|
|
11530
11504
|
const o2 = t5.getRange(e2, { excludeHidden: r2 }), s2 = o2.forEach((t6, e3) => ({ break: e3.getCoords() }), { excludeCellDetails: true, orientation: r2 });
|
|
@@ -11555,7 +11529,7 @@ const Nf = (t5, e2) => {
|
|
|
11555
11529
|
if (f2.colStart > f2.colEnd || f2.rowStart > f2.rowEnd || Y.isSingleCell(f2)) return null;
|
|
11556
11530
|
const p2 = Math.min(Math.max(n2?.colIndex ?? 0, f2.colStart), f2.colEnd), _2 = Math.min(Math.max(n2?.rowIndex ?? 0, f2.rowStart), f2.rowEnd);
|
|
11557
11531
|
return { coords: f2, options: { ...Fl.DefaultRangeOptions, hasHeader: u2, orientation: r2, offset: r2 === i.Orientation.Row ? p2 - f2.colStart : _2 - f2.rowStart }, headers: h2 };
|
|
11558
|
-
}, Ff = (t5, e2, n2 = null) =>
|
|
11532
|
+
}, Ff = (t5, e2, n2 = null) => Wl.fromArray(t5, (t6, n3) => {
|
|
11559
11533
|
const r2 = t6?.[1];
|
|
11560
11534
|
if (null == r2) return null;
|
|
11561
11535
|
let o2 = t6[0] ?? null;
|
|
@@ -11724,8 +11698,8 @@ class zf {
|
|
|
11724
11698
|
return true;
|
|
11725
11699
|
}
|
|
11726
11700
|
}
|
|
11727
|
-
var
|
|
11728
|
-
(
|
|
11701
|
+
var Wf, jf;
|
|
11702
|
+
(jf = Wf || (Wf = {})).fastStringToCol = Du, jf.fastStringToCell = ku, jf.fastStringToRange = Lu, jf.rangeToString = Eu, jf.cellToString = Su, jf.normalizeA1ToR1C1 = Ju, jf.resolveRelativeToA1 = Vu;
|
|
11729
11703
|
const Hf = (t5, e2) => t5.offset - e2.offset, Vf = (t5) => {
|
|
11730
11704
|
if (!t5 || 0 === t5.size) return [];
|
|
11731
11705
|
let e2 = [];
|
|
@@ -11784,7 +11758,7 @@ class $f extends zf {
|
|
|
11784
11758
|
}
|
|
11785
11759
|
toJSON() {
|
|
11786
11760
|
const t5 = {}, e2 = this._getState();
|
|
11787
|
-
e2.anchor && (t5.ref =
|
|
11761
|
+
e2.anchor && (t5.ref = Wf.rangeToString(e2.anchor, this._options.maxRangeCoords));
|
|
11788
11762
|
const n2 = Vf(e2.byOffset);
|
|
11789
11763
|
return n2.length > 0 && (t5.fields = n2), 0 === Object.keys(t5).length ? null : t5;
|
|
11790
11764
|
}
|
|
@@ -11960,7 +11934,7 @@ class tp {
|
|
|
11960
11934
|
return this._filter?.getFieldAt(this._offset)?.hiddenButton ?? false;
|
|
11961
11935
|
}
|
|
11962
11936
|
}
|
|
11963
|
-
class ep extends
|
|
11937
|
+
class ep extends Tl {
|
|
11964
11938
|
constructor(t5, e2, n2, r2) {
|
|
11965
11939
|
super({ ...r2, type: "namedTable" }), this._names = t5, this._sheet = e2, this._table = n2;
|
|
11966
11940
|
const o2 = this;
|
|
@@ -12627,7 +12601,7 @@ class ap {
|
|
|
12627
12601
|
}
|
|
12628
12602
|
}
|
|
12629
12603
|
const lp = { rowIndex: 0, colIndex: 0 };
|
|
12630
|
-
class cp extends
|
|
12604
|
+
class cp extends Wm {
|
|
12631
12605
|
constructor(t5, e2) {
|
|
12632
12606
|
super(t5, Y.EmptyRange, e2);
|
|
12633
12607
|
}
|
|
@@ -12640,17 +12614,17 @@ class cp extends jm {
|
|
|
12640
12614
|
cloneWithUpdate(t5) {
|
|
12641
12615
|
if (void 0 === t5) return this;
|
|
12642
12616
|
const e2 = this._c, n2 = this._r, r2 = Ot.resolveTypedUpdates(t5, um, e2, this._p);
|
|
12643
|
-
return new
|
|
12617
|
+
return new Wm(e2, n2, r2);
|
|
12644
12618
|
}
|
|
12645
12619
|
_createShifted(t5) {
|
|
12646
|
-
return new
|
|
12620
|
+
return new Wm(this._c, t5, this._p);
|
|
12647
12621
|
}
|
|
12648
12622
|
getShifted(t5) {
|
|
12649
12623
|
return t5.after ? { ...t5.after, value: this._createShifted(Y.sanitizeRange(t5.after)) } : null;
|
|
12650
12624
|
}
|
|
12651
12625
|
getSplit(t5, e2) {
|
|
12652
12626
|
const n2 = this._c, r2 = this._p;
|
|
12653
|
-
return [new
|
|
12627
|
+
return [new Wm(n2, t5[0], r2), new Wm(n2, t5[1], r2)];
|
|
12654
12628
|
}
|
|
12655
12629
|
getMerged(t5, e2, n2) {
|
|
12656
12630
|
const r2 = this._p, o2 = t5._p;
|
|
@@ -12662,7 +12636,7 @@ class cp extends jm {
|
|
|
12662
12636
|
if (!bt.deepEqual(n3, i3)) return;
|
|
12663
12637
|
}
|
|
12664
12638
|
const a2 = this._c;
|
|
12665
|
-
return new
|
|
12639
|
+
return new Wm(a2, e2, this._p);
|
|
12666
12640
|
}
|
|
12667
12641
|
getPropertiesAt(t5, e2) {
|
|
12668
12642
|
return this._p;
|
|
@@ -12764,7 +12738,7 @@ class dp {
|
|
|
12764
12738
|
}, e3 = (t7, e4 = 0) => 0 === e4 ? t7 : e4 > 0 ? `${t7} lumMod ${100 - e4}, lumOff ${e4}` : e4 < 0 ? `${t7} lumMod ${100 + e4}` : void 0, n2 = (t7) => ({ type: ma.Type.Pattern, patternType: ma.BuiltInSheetPattern.Solid, foreground: t7, background: t7 }), r2 = (t7, e4 = false) => {
|
|
12765
12739
|
const n3 = { fill: t7 };
|
|
12766
12740
|
return e4 && (n3.weight = 700), n3;
|
|
12767
|
-
}, o2 = (t7, e4 =
|
|
12741
|
+
}, o2 = (t7, e4 = Ta.StrokeStyle.Thin) => ({ style: e4, color: t7 }), s2 = (t7, e4) => {
|
|
12768
12742
|
for (let n3 = 0; n3 < 7; n3++) t7.push(e4(`accent${n3 + 1}`));
|
|
12769
12743
|
};
|
|
12770
12744
|
let i2 = 0, a2 = [];
|
|
@@ -12776,42 +12750,42 @@ class dp {
|
|
|
12776
12750
|
i2 += 7, a2 = [], a2.push(["dk1", "dk1", "lt1"]), s2(a2, (t7) => ["dk1", t7, "lt1"]);
|
|
12777
12751
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
12778
12752
|
const s3 = t6("l", e4 + i2), l2 = a2[e4][0], c2 = a2[e4][1], h2 = a2[e4][2];
|
|
12779
|
-
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2) } }, headerRow: { font: r2(h2, true), fill: n2(c2) }, totalRow: { font: r2(l2, true), border: { top: o2(c2,
|
|
12753
|
+
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2) } }, headerRow: { font: r2(h2, true), fill: n2(c2) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { border: { top: o2(c2) } }, secondRowStripe: { border: { top: o2(c2) } }, firstColumnStripe: { border: { left: o2(c2) } }, secondColumnStripe: { border: { left: o2(c2) } } }));
|
|
12780
12754
|
}
|
|
12781
12755
|
i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15)]), s2(a2, (t7) => [t7, e3(t7, 80)]);
|
|
12782
12756
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
12783
12757
|
const s3 = t6("l", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1];
|
|
12784
|
-
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2), horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(l2, true) }, totalRow: { font: r2(l2, true), border: { top: o2(c2,
|
|
12758
|
+
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(c2), right: o2(c2), top: o2(c2), bottom: o2(c2), horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(l2, true) }, totalRow: { font: r2(l2, true), border: { top: o2(c2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(h2) }, firstColumnStripe: { fill: n2(h2) } }));
|
|
12785
12759
|
}
|
|
12786
12760
|
i2 = 1, a2 = [], a2.push(["dk1", "dk1", e3("bg1", -15)]), s2(a2, (t7) => [t7, e3(t7, 40), e3(t7, 80)]);
|
|
12787
12761
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
12788
12762
|
const s3 = t6("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], u2 = a2[e4][1], d2 = a2[e4][2];
|
|
12789
|
-
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(u2), right: o2(u2), top: o2(u2), bottom: o2(u2), horizontal: o2(u2) } }, headerRow: { font: r2(c2, true), fill: n2(h2) }, totalRow: { font: r2(l2, true), border: { top: o2(h2,
|
|
12763
|
+
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), border: { left: o2(u2), right: o2(u2), top: o2(u2), bottom: o2(u2), horizontal: o2(u2) } }, headerRow: { font: r2(c2, true), fill: n2(h2) }, totalRow: { font: r2(l2, true), border: { top: o2(h2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
|
|
12790
12764
|
}
|
|
12791
12765
|
i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t7) => [t7, e3(t7, 80), e3(t7, 60)]);
|
|
12792
12766
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
12793
12767
|
const s3 = t6("m", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], u2 = a2[e4][1], d2 = a2[e4][2];
|
|
12794
|
-
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(u2), border: { horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(c2, true), fill: n2(h2), border: { bottom: o2(c2,
|
|
12768
|
+
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(u2), border: { horizontal: o2(c2), vertical: o2(c2) } }, headerRow: { font: r2(c2, true), fill: n2(h2), border: { bottom: o2(c2, Ta.StrokeStyle.Thick) } }, totalRow: { font: r2(c2, true), fill: n2(h2), border: { top: o2(c2, Ta.StrokeStyle.Thick) } }, firstColumn: { font: r2(c2, true), fill: n2(h2) }, lastColumn: { font: r2(c2, true), fill: n2(h2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
|
|
12795
12769
|
}
|
|
12796
12770
|
i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35)]), s2(a2, (t7) => [t7, e3(t7, 80), e3(t7, 60)]);
|
|
12797
12771
|
for (let s3 = 0; s3 < 7; s3++) {
|
|
12798
12772
|
const l2 = t6("m", s3 + i2), c2 = "dk1", h2 = "lt1", u2 = a2[s3][0], d2 = e3("bg1", -15);
|
|
12799
|
-
rp.set(l2.toLocaleLowerCase(), Object.freeze({ name: l2, wholeTable: { font: r2(c2), border: { top: o2(c2,
|
|
12773
|
+
rp.set(l2.toLocaleLowerCase(), Object.freeze({ name: l2, wholeTable: { font: r2(c2), border: { top: o2(c2, Ta.StrokeStyle.Medium), bottom: o2(c2, Ta.StrokeStyle.Medium), left: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0, right: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0, horizontal: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0, vertical: 0 === s3 ? o2(c2, Ta.StrokeStyle.Thin) : void 0 } }, headerRow: { font: r2(h2, true), fill: n2(u2), border: { bottom: o2(c2, Ta.StrokeStyle.Medium) } }, totalRow: { border: { top: o2(c2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(h2, true), fill: n2(u2) }, lastColumn: { font: r2(h2, true), fill: n2(u2) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
|
|
12800
12774
|
}
|
|
12801
12775
|
i2 += 7, a2 = [], a2.push(["dk1", e3("bg1", -15), e3("bg1", -35), "dk1"]), s2(a2, (t7) => [t7, e3(t7, 80), e3(t7, 60), e3(t7, 40)]);
|
|
12802
12776
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
12803
12777
|
const s3 = t6("m", e4 + i2), l2 = "dk1", c2 = a2[e4][0], h2 = a2[e4][1], u2 = a2[e4][2], d2 = a2[e4][3];
|
|
12804
|
-
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2), border: { top: o2(d2), right: o2(d2), left: o2(d2), bottom: o2(d2), vertical: o2(d2), horizontal: o2(d2) } }, headerRow: { font: r2(l2), fill: n2(h2) }, totalRow: { font: r2(l2), border: { top: o2(c2,
|
|
12778
|
+
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2), border: { top: o2(d2), right: o2(d2), left: o2(d2), bottom: o2(d2), vertical: o2(d2), horizontal: o2(d2) } }, headerRow: { font: r2(l2), fill: n2(h2) }, totalRow: { font: r2(l2), border: { top: o2(c2, Ta.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
|
|
12805
12779
|
}
|
|
12806
12780
|
i2 = 1, a2 = [], a2.push(["dk1", e3("dk1", 15), e3("dk1", 25), e3("dk1", 50)]), s2(a2, (t7) => ["dk1", e3(t7, -50), e3(t7, -25), t7]);
|
|
12807
12781
|
for (let e4 = 0; e4 < 7; e4++) {
|
|
12808
12782
|
const s3 = t6("d", e4 + i2), l2 = "lt1", c2 = a2[e4][0], h2 = a2[e4][1], u2 = a2[e4][2], d2 = a2[e4][3];
|
|
12809
|
-
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(d2) }, headerRow: { font: r2(l2, true), fill: n2(c2), border: { bottom: o2(l2,
|
|
12783
|
+
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(d2) }, headerRow: { font: r2(l2, true), fill: n2(c2), border: { bottom: o2(l2, Ta.StrokeStyle.Medium) } }, totalRow: { font: r2(l2, true), fill: n2(h2), border: { top: o2(l2, Ta.StrokeStyle.Medium) } }, firstColumn: { font: r2(l2, true), fill: n2(u2), border: { right: o2(l2, Ta.StrokeStyle.Medium) } }, lastColumn: { font: r2(l2, true), fill: n2(u2), border: { left: o2(l2, Ta.StrokeStyle.Medium) } }, firstRowStripe: { fill: n2(u2) }, firstColumnStripe: { fill: n2(u2) } }));
|
|
12810
12784
|
}
|
|
12811
12785
|
i2 += 7, a2 = [], a2.push([e3("bg1", -15), "dk1", e3("bg1", -35)]), a2.push([e3("accent1", 80), "accent2", e3("accent1", 60)]), a2.push([e3("accent3", 80), "accent4", e3("accent3", 60)]), a2.push([e3("accent5", 80), "accent6", e3("accent5", 60)]);
|
|
12812
12786
|
for (let e4 = 0; e4 < 4; e4++) {
|
|
12813
12787
|
const s3 = t6("d", e4 + i2), l2 = "dk1", c2 = "lt1", h2 = a2[e4][0], u2 = a2[e4][1], d2 = a2[e4][2];
|
|
12814
|
-
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2) }, headerRow: { font: r2(c2, true), fill: n2(u2) }, totalRow: { font: r2(l2, true), border: { top: o2(l2,
|
|
12788
|
+
rp.set(s3.toLocaleLowerCase(), Object.freeze({ name: s3, wholeTable: { font: r2(l2), fill: n2(h2) }, headerRow: { font: r2(c2, true), fill: n2(u2) }, totalRow: { font: r2(l2, true), border: { top: o2(l2, Ta.StrokeStyle.Double) } }, firstColumn: { font: r2(l2, true) }, lastColumn: { font: r2(l2, true) }, firstRowStripe: { fill: n2(d2) }, firstColumnStripe: { fill: n2(d2) } }));
|
|
12815
12789
|
}
|
|
12816
12790
|
return rp;
|
|
12817
12791
|
})(), e2 = /* @__PURE__ */ new Map();
|
|
@@ -12858,7 +12832,7 @@ class dp {
|
|
|
12858
12832
|
return t5.sort((t6, e2) => t6.getName().localeCompare(e2.getName())), t5;
|
|
12859
12833
|
}
|
|
12860
12834
|
setNamed(t5, e2 = false) {
|
|
12861
|
-
if (!t5 || !t5.name || !t5.style) throw new
|
|
12835
|
+
if (!t5 || !t5.name || !t5.style) throw new Wt();
|
|
12862
12836
|
this.validateStyleName(t5.name, false);
|
|
12863
12837
|
const n2 = this._setCustomCellStyleInternal(t5, e2);
|
|
12864
12838
|
return this._emitter.notify("onNamedStylesChange"), this._emitter.notify("onAnyChange"), n2;
|
|
@@ -12940,7 +12914,7 @@ class dp {
|
|
|
12940
12914
|
return this._indexedLookup;
|
|
12941
12915
|
}
|
|
12942
12916
|
parseColor(t5) {
|
|
12943
|
-
return
|
|
12917
|
+
return Na.parse(t5, this._schemeLookup, this._indexedLookup);
|
|
12944
12918
|
}
|
|
12945
12919
|
recentColors() {
|
|
12946
12920
|
return this._mruColors;
|
|
@@ -12964,7 +12938,7 @@ class dp {
|
|
|
12964
12938
|
}
|
|
12965
12939
|
getCustomIndexedColors() {
|
|
12966
12940
|
const t5 = Math.max(this._indexedColors?.length, 66), e2 = [];
|
|
12967
|
-
for (let n2 = 0; n2 < t5; n2++) null !== this._indexedColors[n2] && e2.push(this._indexedColors[n2] ?? new
|
|
12941
|
+
for (let n2 = 0; n2 < t5; n2++) null !== this._indexedColors[n2] && e2.push(this._indexedColors[n2] ?? new Na(rs(n2)?.toString()));
|
|
12968
12942
|
return e2;
|
|
12969
12943
|
}
|
|
12970
12944
|
addListeners(t5, e2) {
|
|
@@ -13245,7 +13219,7 @@ class wp {
|
|
|
13245
13219
|
}
|
|
13246
13220
|
var yp, Ep;
|
|
13247
13221
|
yp || (yp = {});
|
|
13248
|
-
class bp extends
|
|
13222
|
+
class bp extends Nl {
|
|
13249
13223
|
constructor(t5) {
|
|
13250
13224
|
super(t5), t5.json && (this._resource = t5.fromResourceId(t5.json.resId));
|
|
13251
13225
|
}
|
|
@@ -13263,20 +13237,20 @@ class bp extends Tl {
|
|
|
13263
13237
|
}
|
|
13264
13238
|
async _asDataUrl() {
|
|
13265
13239
|
if (this._dataUrl) return this._dataUrl;
|
|
13266
|
-
const t5 = await this.getDetails(), e2 = await
|
|
13240
|
+
const t5 = await this.getDetails(), e2 = await Tt.getImageDataUrl(t5.asUrl());
|
|
13267
13241
|
return this._dataUrl = e2.dataUrl, this._dataUrl;
|
|
13268
13242
|
}
|
|
13269
13243
|
toHtml() {
|
|
13270
13244
|
return null;
|
|
13271
13245
|
}
|
|
13272
13246
|
async toImage() {
|
|
13273
|
-
const t5 = (await this._asDataUrl()).substring(
|
|
13247
|
+
const t5 = (await this._asDataUrl()).substring(Tt.DATA_URL_PNG_PREFIX.length), e2 = It.base64ToArrayBuffer(t5);
|
|
13274
13248
|
return new Blob([e2], { type: I.png });
|
|
13275
13249
|
}
|
|
13276
13250
|
async getDetails() {
|
|
13277
13251
|
return this._details || (this._details = new Promise(async (t5, e2) => {
|
|
13278
13252
|
try {
|
|
13279
|
-
const e3 = await this._resource.toBuffer(), n2 = await this._resource.getType(), r2 = await
|
|
13253
|
+
const e3 = await this._resource.toBuffer(), n2 = await this._resource.getType(), r2 = await Tt.loadImageDetails(e3, n2);
|
|
13280
13254
|
t5({ getNaturalDimensions: () => r2.naturalDimensions, asUrl: () => r2.asUrl, asSVGText: () => r2.asSVGText });
|
|
13281
13255
|
} catch (t6) {
|
|
13282
13256
|
e2(t6);
|
|
@@ -13394,7 +13368,7 @@ const vp = (t5, e2) => {
|
|
|
13394
13368
|
r2.insertNonOverlapping({ colStart: e3.colStart, rowStart: e3.rowStart, colEnd: e3.colEnd, rowEnd: e3.rowEnd, value: new td(e3, b2) }), g2 && l2?.insertNonOverlapping(e3), a2?.push(e3), p2 = Y.unionRanges(p2, e3);
|
|
13395
13369
|
}
|
|
13396
13370
|
return p2;
|
|
13397
|
-
},
|
|
13371
|
+
}, Np = (t5, e2, n2) => {
|
|
13398
13372
|
if (!e2) return t5;
|
|
13399
13373
|
const r2 = e2.block;
|
|
13400
13374
|
if (!r2) return t5;
|
|
@@ -13405,7 +13379,7 @@ const vp = (t5, e2) => {
|
|
|
13405
13379
|
let d2 = e2.dynamic;
|
|
13406
13380
|
return d2 || (d2 = [], e2.dynamic = d2), d2.push(u2), o2.push(u2), o2;
|
|
13407
13381
|
};
|
|
13408
|
-
class
|
|
13382
|
+
class Tp {
|
|
13409
13383
|
constructor(t5) {
|
|
13410
13384
|
this._fullCalcRequired = false, this._iterationId = 0, this._cycleId = 1, this._pendingInvalidations = /* @__PURE__ */ new Set(), this._emitter = null, this._isProcessingJSON = false, this._collectDirties = (t6, e3 = false, n3, r3) => {
|
|
13411
13385
|
const o2 = this._formulaSpatial, s2 = this._precedentSpatial;
|
|
@@ -13579,7 +13553,7 @@ class Np {
|
|
|
13579
13553
|
}
|
|
13580
13554
|
clone(t5) {
|
|
13581
13555
|
if (void 0 !== t5 && this._cloneKey === t5) return this;
|
|
13582
|
-
const e2 = new
|
|
13556
|
+
const e2 = new Tp(this._options);
|
|
13583
13557
|
e2._cloneKey = t5, e2._values = this._values.clone(e2), e2._contentfulSpatial = this._contentfulSpatial.clone(e2), e2._formulaSpatial = this._formulaSpatial.clone(e2), e2._precedentSpatial = this._precedentSpatial.clone(e2), e2._volatile = new Set(this._volatile), e2._spillSpatial = this._spillSpatial.clone(e2), e2._errorSpatial = this._errorSpatial.clone(e2), e2._pendingSpatial = this._pendingSpatial.clone(e2), e2._invalidations = this._invalidations.clone(e2), e2._notifyValues = this._notifyValues.clone(e2), e2._notifySpills = this._notifySpills.clone(e2), e2._notifyFormats = this._notifyFormats.clone(e2), e2._notifyPending = this._notifyPending.clone(e2);
|
|
13584
13558
|
const n2 = this._notifyFormulaInsertEntries;
|
|
13585
13559
|
n2 && (e2._notifyFormulaInsertEntries = [...n2]);
|
|
@@ -13791,7 +13765,7 @@ class Np {
|
|
|
13791
13765
|
}
|
|
13792
13766
|
}
|
|
13793
13767
|
o3 && (t6 = r2.concat(o3)), t6.sort(Y.columnFirstRangeComparator);
|
|
13794
|
-
const s3 = new dn.Builder((t7) => new
|
|
13768
|
+
const s3 = new dn.Builder((t7) => new jl(t7));
|
|
13795
13769
|
let a3;
|
|
13796
13770
|
const l3 = e2._values, d3 = l3.getOrientation() === i.Orientation.Column, g3 = t6.length;
|
|
13797
13771
|
for (let e3 = 0; e3 < g3; e3++) {
|
|
@@ -14062,13 +14036,13 @@ class Np {
|
|
|
14062
14036
|
}
|
|
14063
14037
|
E2.pendingPrecedents = R2;
|
|
14064
14038
|
}
|
|
14065
|
-
const M2 = _2 ? C2 : v2,
|
|
14039
|
+
const M2 = _2 ? C2 : v2, N2 = _2 ? v2 : C2;
|
|
14066
14040
|
n2.node = E2, n2.colIndex = C2, n2.rowIndex = v2;
|
|
14067
|
-
const
|
|
14041
|
+
const T2 = b2.formula;
|
|
14068
14042
|
let k2, F2;
|
|
14069
14043
|
const O2 = E2.pending;
|
|
14070
14044
|
let D2 = O2;
|
|
14071
|
-
if ((R2 || E2.pendingPromise) && (D2 = true, k2 = E2.cachedValue ?? null, E2.pendingPromise && (E2.pendingResolved ? (E2.pendingPromise = null, E2.pendingResolved = false, D2 = false) : (E2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (n2.formula =
|
|
14045
|
+
if ((R2 || E2.pendingPromise) && (D2 = true, k2 = E2.cachedValue ?? null, E2.pendingPromise && (E2.pendingResolved ? (E2.pendingPromise = null, E2.pendingResolved = false, D2 = false) : (E2.pendingPromise.cancelled = true, k2 = void 0))), void 0 === k2 && (n2.formula = T2, n2.colIndex = C2, n2.rowIndex = v2, k2 = T2.evaluate(e2, void 0, E2.inputs), n2.formula = null, F2 = k2 && k2.then ? k2 : null, D2 = !!F2), D2 !== O2 && (E2.pending = D2, S2 || (S2 = rh(_2)), S2.append(M2, N2, D2)), F2 && (k2 = E2.cachedValue ?? null, !F2.__originator)) {
|
|
14072
14046
|
F2.__originator = a2;
|
|
14073
14047
|
const t6 = E2;
|
|
14074
14048
|
Up.add(t6), t6.pendingPromise = F2, t6.pendingResolved = false, F2.then((n3) => {
|
|
@@ -14082,10 +14056,10 @@ class Np {
|
|
|
14082
14056
|
let L2 = 1, B2 = 1;
|
|
14083
14057
|
const P2 = x2 instanceof Ph;
|
|
14084
14058
|
let z2;
|
|
14085
|
-
const
|
|
14086
|
-
if (P2 ||
|
|
14087
|
-
|
|
14088
|
-
const t6 = m2.search(
|
|
14059
|
+
const W2 = x2 instanceof l.Spill;
|
|
14060
|
+
if (P2 || W2) {
|
|
14061
|
+
Wp.colStart = C2, Wp.rowStart = v2, Wp.colEnd = C2, Wp.rowEnd = v2;
|
|
14062
|
+
const t6 = m2.search(Wp);
|
|
14089
14063
|
for (let e3 = 0; !z2 && e3 < t6.length; e3++) {
|
|
14090
14064
|
const n3 = t6[e3];
|
|
14091
14065
|
n3.colStart === C2 && n3.rowStart === v2 && (z2 = n3);
|
|
@@ -14099,12 +14073,12 @@ class Np {
|
|
|
14099
14073
|
m2.remove(z2), z2 && z2.value.getError() || (h2.insertNonOverlapping({ ...t7, value: null }), f2.delete(t7), u2.insertNonOverlapping(t7));
|
|
14100
14074
|
}
|
|
14101
14075
|
}
|
|
14102
|
-
let
|
|
14076
|
+
let j2 = 1, H2 = 1;
|
|
14103
14077
|
const V2 = k2, $2 = V2?.isIRange;
|
|
14104
14078
|
let G2, U2 = k2 instanceof l.Spill;
|
|
14105
14079
|
if ($2 && V2.size > 1) {
|
|
14106
|
-
|
|
14107
|
-
const t6 = { colStart: C2, rowStart: v2, colEnd: C2 +
|
|
14080
|
+
j2 = V2.getWidth(), H2 = V2.getHeight();
|
|
14081
|
+
const t6 = { colStart: C2, rowStart: v2, colEnd: C2 + j2 - 1, rowEnd: v2 + H2 - 1 }, n3 = e2.getEntireCoords(), r3 = !Y.isRangeWithinRange(t6, n3);
|
|
14108
14082
|
if (r3 && (t6.colEnd = Math.min(t6.colEnd, n3.colEnd), t6.rowEnd = Math.min(t6.rowEnd, n3.rowEnd)), U2 = r3, !U2) {
|
|
14109
14083
|
const e3 = h2.search(t6);
|
|
14110
14084
|
if (U2 = e3.length > 1, !U2 && 1 === e3.length) {
|
|
@@ -14114,17 +14088,17 @@ class Np {
|
|
|
14114
14088
|
}
|
|
14115
14089
|
let o3, s3;
|
|
14116
14090
|
if (U2) {
|
|
14117
|
-
k2 = l.BuiltIn.Spill,
|
|
14118
|
-
o3 = [[M2, [[
|
|
14091
|
+
k2 = l.BuiltIn.Spill, j2 = 1, H2 = 1;
|
|
14092
|
+
o3 = [[M2, [[N2, [k2]]]]], f2.setValues(o3), s3 = { colStart: C2, rowStart: v2, colEnd: C2, rowEnd: v2 };
|
|
14119
14093
|
} else {
|
|
14120
|
-
const e3 = Ap(V2, M2,
|
|
14094
|
+
const e3 = Ap(V2, M2, N2);
|
|
14121
14095
|
e3 && (o3 = e3.tuples), o3 && f2.setValues(o3), s3 = t6;
|
|
14122
14096
|
}
|
|
14123
|
-
G2 = { ...t6, value: new Zu(t6, a2, U2) }, m2.insert(G2), y2 =
|
|
14097
|
+
G2 = { ...t6, value: new Zu(t6, a2, U2) }, m2.insert(G2), y2 = Np(y2, E2, t6), u2.insertNonOverlapping(s3), c2.insertNonOverlapping(s3), h2.insertNonOverlapping({ ...s3, value: new td(s3, p2) });
|
|
14124
14098
|
}
|
|
14125
|
-
(!Y.isEqualRanges(z2, G2) || U2 ||
|
|
14099
|
+
(!Y.isEqualRanges(z2, G2) || U2 || W2) && (z2 && d2.insert(z2), G2 && d2.insert(G2)), j2 === L2 && H2 === B2 || (E2.state = rd, c2.insertNonOverlapping({ colStart: C2, rowStart: v2, colEnd: C2 + Math.max(j2, L2) - 1, rowEnd: v2 + Math.max(H2, B2) - 1 }), s2 = false);
|
|
14126
14100
|
let J2 = k2 && k2.isFormulaError ? k2 : null;
|
|
14127
|
-
|
|
14101
|
+
T2.getError() && (J2 = T2.getError()), (J2 || I2 && !t5) && (J2 && !J2.equals(I2) || I2 && I2.equals(J2)), E2.cachedValue = k2, r2[o2++] = E2;
|
|
14128
14102
|
}
|
|
14129
14103
|
if (n2.node = null, n2.colIndex = Number.MAX_SAFE_INTEGER, n2.rowIndex = Number.MAX_SAFE_INTEGER, S2) {
|
|
14130
14104
|
const t6 = S2.done(true);
|
|
@@ -14278,7 +14252,7 @@ class Np {
|
|
|
14278
14252
|
}
|
|
14279
14253
|
h3.value = new Zu(d3, 0, u3), r3.push(h3);
|
|
14280
14254
|
const v2 = { colStart: g3, rowStart: m3, colEnd: f3, rowEnd: p2, value: u3 };
|
|
14281
|
-
Y.isSingleCell(v2) || t6.push(v2),
|
|
14255
|
+
Y.isSingleCell(v2) || t6.push(v2), Np(s3, C2, d3);
|
|
14282
14256
|
}
|
|
14283
14257
|
this._spillSpatial.load(r3), this._precedentSpatial.load(s3), t6.length > 0 && (n2.spillInserts = t6);
|
|
14284
14258
|
}
|
|
@@ -14355,7 +14329,7 @@ class Np {
|
|
|
14355
14329
|
}
|
|
14356
14330
|
}
|
|
14357
14331
|
const kp = (t5, e2, n2, r2) => {
|
|
14358
|
-
const o2 = new dn.Builder(
|
|
14332
|
+
const o2 = new dn.Builder(jp), s2 = rh(r2);
|
|
14359
14333
|
t5.sort(r2 ? Y.columnFirstCellComparator : Y.rowFirstCellComparator);
|
|
14360
14334
|
const i2 = t5.length;
|
|
14361
14335
|
for (let e3 = 0; e3 < i2; e3++) {
|
|
@@ -14402,9 +14376,9 @@ const kp = (t5, e2, n2, r2) => {
|
|
|
14402
14376
|
else {
|
|
14403
14377
|
r2(c2[g2][d2]);
|
|
14404
14378
|
}
|
|
14405
|
-
}, Dp = { rowIndex: 0, colIndex: 0 }, Lp = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Bp = [], Pp = [], zp = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 },
|
|
14379
|
+
}, Dp = { rowIndex: 0, colIndex: 0 }, Lp = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Bp = [], Pp = [], zp = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Wp = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 };
|
|
14406
14380
|
new l.Calc("Cyclical dependency");
|
|
14407
|
-
const
|
|
14381
|
+
const jp = (t5) => new jl(t5);
|
|
14408
14382
|
let Hp = 0;
|
|
14409
14383
|
const Vp = 1e4, $p = new Array(Vp), Gp = new Array(Vp), Up = /* @__PURE__ */ new Set(), Jp = new Array(Vp);
|
|
14410
14384
|
let qp = 0;
|
|
@@ -14432,9 +14406,9 @@ class c_ {
|
|
|
14432
14406
|
this._instanceScope = t5;
|
|
14433
14407
|
}
|
|
14434
14408
|
async _initialize() {
|
|
14435
|
-
const t5 = await
|
|
14409
|
+
const t5 = await We._validate(true), e2 = u_();
|
|
14436
14410
|
this._calcScope = e2, this._runtime = new h_(this._options, t5);
|
|
14437
|
-
const { initializeBuiltIns: n2 } = await import("./
|
|
14411
|
+
const { initializeBuiltIns: n2 } = await import("./BF5XLlWweZJpoxFw.mjs"), r2 = this;
|
|
14438
14412
|
return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
14439
14413
|
}
|
|
14440
14414
|
getBuiltInFunctions() {
|
|
@@ -14527,7 +14501,7 @@ class c_ {
|
|
|
14527
14501
|
if ("string" == typeof t5) {
|
|
14528
14502
|
if (e2) throw l.BuiltIn.Ref;
|
|
14529
14503
|
try {
|
|
14530
|
-
const n3 =
|
|
14504
|
+
const n3 = Tu(t5, r2(), Ru, () => {
|
|
14531
14505
|
throw l.BuiltIn.Ref;
|
|
14532
14506
|
}, e2);
|
|
14533
14507
|
if (n3.length > 1) throw l.BuiltIn.Ref;
|
|
@@ -14548,7 +14522,7 @@ class c_ {
|
|
|
14548
14522
|
if (a2) {
|
|
14549
14523
|
const e3 = a2.calc;
|
|
14550
14524
|
s2 = e3 && e3.isIReferenceRange ? e3.cachedValue : new Cp(o2, void 0, t5, null, r2);
|
|
14551
|
-
} else n2.dynamicPrecedentsInserts =
|
|
14525
|
+
} else n2.dynamicPrecedentsInserts = Np(n2.dynamicPrecedentsInserts, i2, t5), s2 = new Cp(o2, void 0, t5, null, r2);
|
|
14552
14526
|
return s2;
|
|
14553
14527
|
}
|
|
14554
14528
|
getAddress(t5, e2 = false) {
|
|
@@ -14607,7 +14581,7 @@ class h_ {
|
|
|
14607
14581
|
}
|
|
14608
14582
|
getVersion() {
|
|
14609
14583
|
try {
|
|
14610
|
-
const t5 = "0.4.
|
|
14584
|
+
const t5 = "0.4.17";
|
|
14611
14585
|
if (-1 === t5.indexOf(".env.")) return `${t5}`;
|
|
14612
14586
|
} catch (t5) {
|
|
14613
14587
|
return "local";
|
|
@@ -14620,7 +14594,7 @@ class h_ {
|
|
|
14620
14594
|
return this._license?.licensee?.() ?? null;
|
|
14621
14595
|
}
|
|
14622
14596
|
}
|
|
14623
|
-
const u_ = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () =>
|
|
14597
|
+
const u_ = () => ({ rowIndex: 0, colIndex: 0, sheetName: null, node: null, values: null, formulaSpatial: null, spillSpatial: null, volatile: null, conflatingFormats: null, dynamicPrecedentsInserts: null, formula: null, getEntireCoords: () => jh }), d_ = { getSheetIndex: (t5) => -1, getSheetCount: () => 1, getSheetName: () => null, getEntireCoords: () => jh, getNamed: (t5, e2) => null, getFunction: (t5) => null, isDate1904: () => false }, g_ = (t5, e2) => {
|
|
14624
14598
|
if (!t5) return;
|
|
14625
14599
|
const n2 = t5.length;
|
|
14626
14600
|
if (0 === n2) return;
|
|
@@ -14644,7 +14618,7 @@ class p_ {
|
|
|
14644
14618
|
return this._getScope().getNumberFormat(t5, e2);
|
|
14645
14619
|
}
|
|
14646
14620
|
getEntireCoords() {
|
|
14647
|
-
return this._getScope().getEntireCoords() ??
|
|
14621
|
+
return this._getScope().getEntireCoords() ?? jh;
|
|
14648
14622
|
}
|
|
14649
14623
|
isValidDate(t5) {
|
|
14650
14624
|
return this._getScope().isValidDate(t5);
|
|
@@ -14723,7 +14697,7 @@ var v_;
|
|
|
14723
14697
|
(v_ || (v_ = {})).Context = { Workbook: "workbook", Sheet: "sheet", Ranges: "ranges", Range: "range", Calculation: "calculation" };
|
|
14724
14698
|
class x_ {
|
|
14725
14699
|
constructor(t5, e2, n2, r2 = null, o2 = false) {
|
|
14726
|
-
this._ct = v_.Context.Calculation, this._builtIn = false, this._broadcast = false, this._pj = null, this._json = t5, this._n = t5.name, this._d = new
|
|
14700
|
+
this._ct = v_.Context.Calculation, this._builtIn = false, this._broadcast = false, this._pj = null, this._json = t5, this._n = t5.name, this._d = new T_(t5), this._ct = t5.context ?? v_.Context.Calculation;
|
|
14727
14701
|
const s2 = t5.parameters;
|
|
14728
14702
|
let i2;
|
|
14729
14703
|
this._pj = s2, e2 || (console.log(`TypeFunction '${t5.name}' was not provided a function implementation.`), e2 = () => {
|
|
@@ -14898,7 +14872,7 @@ class M_ extends A_ {
|
|
|
14898
14872
|
return this._e;
|
|
14899
14873
|
}
|
|
14900
14874
|
}
|
|
14901
|
-
class
|
|
14875
|
+
class N_ extends A_ {
|
|
14902
14876
|
constructor(t5) {
|
|
14903
14877
|
super(t5), this._a = t5.async ?? false, this._stream = t5.stream ?? false;
|
|
14904
14878
|
}
|
|
@@ -14909,14 +14883,14 @@ class T_ extends A_ {
|
|
|
14909
14883
|
return this._stream;
|
|
14910
14884
|
}
|
|
14911
14885
|
}
|
|
14912
|
-
class
|
|
14886
|
+
class T_ {
|
|
14913
14887
|
constructor(t5) {
|
|
14914
14888
|
if (this._n = t5.name, t5.parameters) {
|
|
14915
14889
|
const e2 = t5.parameters.length, n2 = new Array(e2);
|
|
14916
14890
|
for (let r2 = 0; r2 < e2; r2++) n2[r2] = new M_(t5.parameters[r2]);
|
|
14917
14891
|
this._p = Object.freeze(n2);
|
|
14918
14892
|
} else this._p = bt.EmptyArray;
|
|
14919
|
-
t5.returnType ? this._r = new
|
|
14893
|
+
t5.returnType ? this._r = new N_(t5.returnType) : this._r = new N_({ scalar: null, arrayDepth: 0, range: null });
|
|
14920
14894
|
}
|
|
14921
14895
|
getName() {
|
|
14922
14896
|
return this._n;
|
|
@@ -15114,7 +15088,7 @@ class D_ {
|
|
|
15114
15088
|
return true;
|
|
15115
15089
|
}
|
|
15116
15090
|
}
|
|
15117
|
-
class L_ extends
|
|
15091
|
+
class L_ extends Nl {
|
|
15118
15092
|
constructor(t5) {
|
|
15119
15093
|
super(t5), this._status = Ep.Status.Off, this._statusTransition = null, this._emitter = new Ml(this);
|
|
15120
15094
|
}
|
|
@@ -15132,7 +15106,7 @@ class L_ extends Tl {
|
|
|
15132
15106
|
this._context = r2;
|
|
15133
15107
|
const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
|
|
15134
15108
|
this._functions = new D_({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
|
|
15135
|
-
const i2 = await import("./
|
|
15109
|
+
const i2 = await import("./WClUDCTnhiH2nwzN.mjs");
|
|
15136
15110
|
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = Ep.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
15137
15111
|
} catch (t5) {
|
|
15138
15112
|
throw this._status = Ep.Status.Off, this._emitter.notify("onError", t5), this._emitter.notify("onStatusChange"), t5;
|
|
@@ -15143,7 +15117,7 @@ class L_ extends Tl {
|
|
|
15143
15117
|
}
|
|
15144
15118
|
_createGraph(t5) {
|
|
15145
15119
|
const e2 = this._options;
|
|
15146
|
-
return new
|
|
15120
|
+
return new Tp({ ...e2, ...t5, getFormulaParser: () => this._formulaParser, calculation: this });
|
|
15147
15121
|
}
|
|
15148
15122
|
async stop() {
|
|
15149
15123
|
this._status === Ep.Status.Ready && (this._status = Ep.Status.Stopping, this._emitter.notify("onStatusChange"), this._emitter.notify("onStopping"), this._status = Ep.Status.Off, this._emitter.notify("onStatusChange"), this._emitter.notify("onStop"));
|
|
@@ -15173,8 +15147,8 @@ class L_ extends Tl {
|
|
|
15173
15147
|
}
|
|
15174
15148
|
}
|
|
15175
15149
|
}
|
|
15176
|
-
var B_, P_, z_,
|
|
15177
|
-
B_ || (B_ = {}), P_ || (P_ = {}), z_ || (z_ = {}), (
|
|
15150
|
+
var B_, P_, z_, W_, j_, H_, V_, $_;
|
|
15151
|
+
B_ || (B_ = {}), P_ || (P_ = {}), z_ || (z_ = {}), (j_ = W_ || (W_ = {})).NumberFilterOperatorType = { Equal: "equal", GreaterThan: "greaterThan", GreaterThanOrEqual: "greaterThanOrEqual", LessThan: "lessThan", LessThanOrEqual: "lessThanOrEqual", NotEqual: "notEqual" }, j_.Type = { Color: "color", Custom: "custom", Dynamic: "dynamic", Items: "items", Icon: "icon", Top10: "top10" }, j_.DynamicType = { AboveAverage: "aboveAverage", BelowAverage: "belowAverage", LastMonth: "lastMonth", LastQuarter: "lastQuarter", LastWeek: "lastWeek", LastYear: "lastYear", M1: "M1", M2: "M2", M3: "M3", M4: "M4", M5: "M5", M6: "M6", M7: "M7", M8: "M8", M9: "M9", M10: "M10", M11: "M11", M12: "M12", NextMonth: "nextMonth", NextQuarter: "nextQuarter", NextWeek: "nextWeek", Null: "null", Q1: "Q1", Q2: "Q2", Q3: "Q3", Q4: "Q4", ThisMonth: "thisMonth", ThisQuarter: "thisQuarter", ThisWeek: "thisWeek", Today: "today", Tomorrow: "tomorrow", YearToDate: "yearToDate", Yesterday: "yesterday" }, j_.DateItemGroupingType = { Day: "day", Hour: "hour", Minute: "minute", Month: "month", Second: "Second", Year: "year" }, (V_ = H_ || (H_ = {})).Type = { AboveAverage: "aboveAverage", BeginsWith: "beginsWith", CellIs: "cellIs", ColorScale: "colorScale", ContainsBlanks: "containsBlanks", ContainsErrors: "containsErrors", ContainsText: "containsText", DataBar: "dataBar", DuplicateValues: "duplicateValues", EndsWith: "endsWith", Expression: "expression", IconSet: "iconSet", NotContainsBlanks: "notContainsBlanks", NotContainsErrors: "notContainsErrors", NotContainsText: "notContainsText", TimePeriod: "timePeriod", Top10: "top10", UniqueValues: "uniqueValues" }, V_.OperatorType = { BeginsWith: "beginsWith", Between: "between", ContainsText: "containsText", EndsWith: "endsWith", Equal: "equal", GreaterThan: "greaterThan", GreaterThanOrEqual: "greaterThanOrEqual", LessThan: "lessThan", LessThanOrEqual: "lessThanOrEqual", NotBetween: "notBetween", NotContains: "notContains", NotEqual: "notEqual" }, V_.TimePeriod = { Last7Days: "last7Days", LastMonth: "lastMonth", LastWeek: "lastWeek", NextMonth: "nextMonth", NextWeek: "nextWeek", ThisMonth: "thisMonth", ThisWeek: "thisWeek", Today: "today", Tomorrow: "tomorrow", Yesterday: "yesterday" }, V_.ConditionalBoundsType = { Formula: "formula", Max: "max", Min: "min", Num: "num", Percent: "percent", Percentile: "percentile" }, ($_ || ($_ = {})).HeaderTextStyle = { A1: "a1", Zero: "zero", One: "one" };
|
|
15178
15152
|
class G_ {
|
|
15179
15153
|
constructor(t5, e2, n2, r2) {
|
|
15180
15154
|
this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = t5, this._topLeft = r2 ?? { rowIndex: 0, colIndex: 0 }, this._sheet = new pw({ styles: this._styles, date1904: e2, container: { getName: () => n2, getIndex: () => 1 } }), this._cellUpdater = this._sheet.getEntireRange().startIncrementalUpdates();
|
|
@@ -15191,7 +15165,7 @@ class G_ {
|
|
|
15191
15165
|
t6.includes(r3) && delete o2[r3];
|
|
15192
15166
|
}
|
|
15193
15167
|
}
|
|
15194
|
-
const s2 =
|
|
15168
|
+
const s2 = Td(o2.fontFamily);
|
|
15195
15169
|
r2.font = {}, s2 && (r2.font.family = s2.family, r2.font.fallbacks = s2.fallbacks, r2.font.size = s2.size), r2.font.size = o2.fontSize, r2.font.weight = o2.fontWeight, r2.font.style = o2.fontStyle, r2.font.fill = o2.color;
|
|
15196
15170
|
const i2 = ((t6) => {
|
|
15197
15171
|
if (!t6) return Dd;
|
|
@@ -15485,7 +15459,7 @@ const q_ = (t5) => {
|
|
|
15485
15459
|
};
|
|
15486
15460
|
class Y_ {
|
|
15487
15461
|
constructor(t5) {
|
|
15488
|
-
if (!t5) throw new
|
|
15462
|
+
if (!t5) throw new Wt("snapshot is required.");
|
|
15489
15463
|
this._snapshot = t5;
|
|
15490
15464
|
}
|
|
15491
15465
|
getItemType() {
|
|
@@ -15518,7 +15492,7 @@ class Y_ {
|
|
|
15518
15492
|
}
|
|
15519
15493
|
class Q_ {
|
|
15520
15494
|
constructor(t5, e2, n2, r2) {
|
|
15521
|
-
if (this._parsed = void 0, !t5) throw new
|
|
15495
|
+
if (this._parsed = void 0, !t5) throw new Wt("nativeItems are required.");
|
|
15522
15496
|
this._native = t5, this._markOptions = Object.freeze(e2 ?? {}), this._styles = n2, this._isDate1904 = r2;
|
|
15523
15497
|
}
|
|
15524
15498
|
getItemType() {
|
|
@@ -15856,7 +15830,7 @@ class eS {
|
|
|
15856
15830
|
}
|
|
15857
15831
|
}
|
|
15858
15832
|
const nS = { transactional: true, ignoreDataChanges: true };
|
|
15859
|
-
class rS extends
|
|
15833
|
+
class rS extends Tl {
|
|
15860
15834
|
constructor(t5) {
|
|
15861
15835
|
super({ ...t5, type: "namedReference" });
|
|
15862
15836
|
const e2 = this;
|
|
@@ -16290,7 +16264,7 @@ class hS {
|
|
|
16290
16264
|
return true;
|
|
16291
16265
|
}
|
|
16292
16266
|
}
|
|
16293
|
-
class uS extends
|
|
16267
|
+
class uS extends Nl {
|
|
16294
16268
|
constructor(t5) {
|
|
16295
16269
|
super(t5), t5.json && this._updateState({ data: t5.json });
|
|
16296
16270
|
}
|
|
@@ -16310,7 +16284,7 @@ class uS extends Tl {
|
|
|
16310
16284
|
return "Chart";
|
|
16311
16285
|
}
|
|
16312
16286
|
}
|
|
16313
|
-
class dS extends
|
|
16287
|
+
class dS extends Nl {
|
|
16314
16288
|
constructor(t5) {
|
|
16315
16289
|
super(t5), t5.json && this._updateState({ data: t5.json });
|
|
16316
16290
|
}
|
|
@@ -16330,7 +16304,7 @@ class dS extends Tl {
|
|
|
16330
16304
|
return "Shape";
|
|
16331
16305
|
}
|
|
16332
16306
|
}
|
|
16333
|
-
class gS extends
|
|
16307
|
+
class gS extends Nl {
|
|
16334
16308
|
constructor(t5) {
|
|
16335
16309
|
super(t5), t5.json && this._updateState({ data: t5.json });
|
|
16336
16310
|
}
|
|
@@ -16731,7 +16705,7 @@ class bS {
|
|
|
16731
16705
|
return [new bS(t5[0], e2), new bS(t5[1], e2)];
|
|
16732
16706
|
}
|
|
16733
16707
|
}
|
|
16734
|
-
class CS extends
|
|
16708
|
+
class CS extends Nl {
|
|
16735
16709
|
constructor(t5) {
|
|
16736
16710
|
if (super({ ...t5 }), this._coordsCache = null, !t5.json) throw new Error("json is required");
|
|
16737
16711
|
this._sheet = t5.sheet, this._styles = t5.sheet?.getStyles() ?? new dp(), this._options = { ...t5 }, t5.setOnContainerCoordsChange(this._processCoordsChange.bind(this)), t5.setCreateSpatial(this._createSpatial.bind(this)), this._getContainerRanges = t5.getContainerRanges, this._setContainerRanges = t5.setContainerRanges;
|
|
@@ -16916,7 +16890,7 @@ class IS {
|
|
|
16916
16890
|
_createCSSStyle(t5) {
|
|
16917
16891
|
const e2 = this._normalStyle, n2 = {}, r2 = (t6, e3) => t6 === e3 || !(t6 && !e3) && (!(!t6 && e3) && e3.isEqual?.(t6)), o2 = t5.getFont(), s2 = e2.getFont();
|
|
16918
16892
|
var i2;
|
|
16919
|
-
r2(o2.getFill(), s2.getFill()) || (n2.color = kd(o2.getFill())), r2(o2.getSize(), s2.getSize()) || (n2["font-size"] = Fd(o2.getSize())), r2(o2.getWeight(), s2.getWeight()) || (n2["font-weight"] = o2.getWeight()), r2(o2.getStyle(), s2.getStyle()) || (n2["font-style"] = o2.getStyle()), r2(o2.getUnderline(), s2.getUnderline()) || (n2["text-decoration"] = "underline", n2["text-underline-style"] = (i2 = o2.getUnderline()) === Ai.UnderlineStyle.Single ? "single" : i2 === Ai.UnderlineStyle.Double ? "double" : i2 === Ai.UnderlineStyle.SingleAccounting ? "single-accounting" : i2 === Ai.UnderlineStyle.DoubleAccounting ? "double-accounting" : "none"), r2(o2.getFamily(), s2.getFamily()) && r2(o2.getFallbacks(), s2.getFallbacks()) || (n2["font-family"] = zd(o2.getFamily(), o2.getFallbacks())), r2(t5.getNumberFormat(), e2.getNumberFormat()) || (n2["mso-number-format"] =
|
|
16893
|
+
r2(o2.getFill(), s2.getFill()) || (n2.color = kd(o2.getFill())), r2(o2.getSize(), s2.getSize()) || (n2["font-size"] = Fd(o2.getSize())), r2(o2.getWeight(), s2.getWeight()) || (n2["font-weight"] = o2.getWeight()), r2(o2.getStyle(), s2.getStyle()) || (n2["font-style"] = o2.getStyle()), r2(o2.getUnderline(), s2.getUnderline()) || (n2["text-decoration"] = "underline", n2["text-underline-style"] = (i2 = o2.getUnderline()) === Ai.UnderlineStyle.Single ? "single" : i2 === Ai.UnderlineStyle.Double ? "double" : i2 === Ai.UnderlineStyle.SingleAccounting ? "single-accounting" : i2 === Ai.UnderlineStyle.DoubleAccounting ? "double-accounting" : "none"), r2(o2.getFamily(), s2.getFamily()) && r2(o2.getFallbacks(), s2.getFallbacks()) || (n2["font-family"] = zd(o2.getFamily(), o2.getFallbacks())), r2(t5.getNumberFormat(), e2.getNumberFormat()) || (n2["mso-number-format"] = Wd(t5.getNumberFormat()));
|
|
16920
16894
|
const a2 = t5.getAlignment(), l2 = e2.getAlignment();
|
|
16921
16895
|
if (!r2(a2.getHorizontal(), l2.getHorizontal())) {
|
|
16922
16896
|
const t6 = a2.getHorizontal();
|
|
@@ -16933,11 +16907,11 @@ class IS {
|
|
|
16933
16907
|
var c2;
|
|
16934
16908
|
r2(a2.getRotation(), l2.getRotation()) || (n2["mso-rotate"] = (c2 = a2.getRotation(), (c2 %= 360) < 0 && (c2 += 360), c2 > 180 ? c2 = 360 - c2 : c2 > 1 && (c2 *= -1), c2)), r2(a2.getIndent(), l2.getIndent()) || (n2["mso-char-indent-count"] = a2.getIndent()), r2(t5.getFill(), s2.getFill()) || xS(n2, t5.getFill());
|
|
16935
16909
|
const h2 = t5.getBorder();
|
|
16936
|
-
return h2.getTop().isNone() || (n2["border-top"] =
|
|
16910
|
+
return h2.getTop().isNone() || (n2["border-top"] = Ng(h2.getTop())), h2.getLeft().isNone() || (n2["border-left"] = Ng(h2.getLeft())), h2.getRight().isNone() || (n2["border-right"] = Ng(h2.getRight())), h2.getBottom().isNone() || (n2["border-bottom"] = Ng(h2.getBottom())), h2.getDiagonalUp().isNone() || (n2["border-mso-diagonal-up"] = Ng(h2.getDiagonalUp())), h2.getDiagonalDown().isNone() || (n2["border-mso-diagonal-down"] = Ng(h2.getDiagonalDown())), 0 === Object.keys(n2).length ? null : n2;
|
|
16937
16911
|
}
|
|
16938
16912
|
_createCSSNormalStyle() {
|
|
16939
16913
|
const t5 = this._normalStyle, e2 = { "padding-top": "1px", "padding-left": "1px", "padding-right": "1px", "mso-ignore": "padding" }, n2 = t5.getFont(), r2 = t5.getAlignment();
|
|
16940
|
-
return e2.color = kd(n2.getFill()), xS(e2, t5.getFill()), e2["font-size"] = Fd(n2.getSize()), e2["font-weight"] = n2.getWeight(), e2["font-style"] = n2.getStyle(), e2["text-decoration"] = Od(n2.getUnderline(), n2.getStrike()), e2["font-family"] = zd(n2.getFamily(), n2.getFallbacks()), e2["mso-font-charset"] = "0", e2["mso-background-source"] = "auto", e2["mso-number-format"] =
|
|
16914
|
+
return e2.color = kd(n2.getFill()), xS(e2, t5.getFill()), e2["font-size"] = Fd(n2.getSize()), e2["font-weight"] = n2.getWeight(), e2["font-style"] = n2.getStyle(), e2["text-decoration"] = Od(n2.getUnderline(), n2.getStrike()), e2["font-family"] = zd(n2.getFamily(), n2.getFallbacks()), e2["mso-font-charset"] = "0", e2["mso-background-source"] = "auto", e2["mso-number-format"] = Wd(t5.getNumberFormat()), e2["text-align"] = Zs.toCSSHorizontalTextAlign(r2.getHorizontal()), e2["vertical-align"] = Bd(r2.getVertical()), e2.border = "none", e2["mso-pattern"] = "auto", e2["white-space"] = Pd(r2.getOverflow()), r2.getOverflow() === Zs.Overflow.Shrink && (e2["mso-text-control"] = "shrinktofit"), e2["mso-rotate"] = "0", r2.getIndent() > 0 && (e2["mso-char-indent-count"] = r2.getIndent()), e2["mso-protection"] = "locked visible", e2;
|
|
16941
16915
|
}
|
|
16942
16916
|
onCell(t5, e2, n2) {
|
|
16943
16917
|
let r2;
|
|
@@ -16976,7 +16950,7 @@ class IS {
|
|
|
16976
16950
|
}
|
|
16977
16951
|
}
|
|
16978
16952
|
const RS = (t5, e2, n2) => {
|
|
16979
|
-
const r2 = t5.getOrientation() ===
|
|
16953
|
+
const r2 = t5.getOrientation() === T.Column, o2 = (r2 ? "Column" : "Row") + " Copy", s2 = t5.getSnapshot(n2);
|
|
16980
16954
|
return { ...s2, getName: () => o2, getCoords: () => e2, copyTo: async (t6, o3) => {
|
|
16981
16955
|
const i2 = r2 ? t6.getColumnHeaders() : t6.getRowHeaders(), a2 = { ...n2, ...o3 };
|
|
16982
16956
|
if (true === a2.includeHeaders) {
|
|
@@ -17070,7 +17044,7 @@ const RS = (t5, e2, n2) => {
|
|
|
17070
17044
|
const n3 = { ...o2, ...e3 };
|
|
17071
17045
|
return e3.isCut, s2(t6, n3);
|
|
17072
17046
|
}, getMarkOptions: () => o2, getSource: () => t5, getName: () => r2, getCoords: () => i2, toText: () => (c2(), l2), toHtml: () => (c2(), a2), toImage: () => null, isISnapshot: true };
|
|
17073
|
-
}, MS = (t5, e2) => Math.round(t5 * e2),
|
|
17047
|
+
}, MS = (t5, e2) => Math.round(t5 * e2), NS = (t5, e2, n2) => {
|
|
17074
17048
|
const r2 = [], o2 = [];
|
|
17075
17049
|
if (!t5 || 0 === t5.length) return { sizes: r2, hidden: o2 };
|
|
17076
17050
|
if (!e2 || !n2) return console.warn("_HeaderUtils:default size and scaleFactor should be available"), { sizes: r2, hidden: o2 };
|
|
@@ -17087,7 +17061,7 @@ const RS = (t5, e2, n2) => {
|
|
|
17087
17061
|
}
|
|
17088
17062
|
return { sizes: r2, hidden: o2 };
|
|
17089
17063
|
};
|
|
17090
|
-
function
|
|
17064
|
+
function TS(t5, e2, n2) {
|
|
17091
17065
|
void 0 !== n2 && (null !== n2 ? t5[e2] = n2 : delete t5[e2]);
|
|
17092
17066
|
}
|
|
17093
17067
|
const kS = () => {
|
|
@@ -17114,7 +17088,7 @@ const DS = (t5, e2, n2, r2) => {
|
|
|
17114
17088
|
isNaN(l2) && (console.warn("headerSize can not be NaN"), l2 = void 0), 0 === l2 && (a2 = true, l2 = void 0), i2 = !o2.autoSize;
|
|
17115
17089
|
} else null === l2 ? (l2 = null, i2 = !o2.autoSize) : void 0 !== l2 && (console.warn("headerSize can not be type", l2), l2 = void 0);
|
|
17116
17090
|
}
|
|
17117
|
-
return
|
|
17091
|
+
return TS(s2, "sz", l2), TS(s2, "h", a2), TS(s2, "csz", i2), 0 === Object.keys(s2).length ? null : s2;
|
|
17118
17092
|
}
|
|
17119
17093
|
}
|
|
17120
17094
|
};
|
|
@@ -17175,8 +17149,8 @@ class LS {
|
|
|
17175
17149
|
return true;
|
|
17176
17150
|
}
|
|
17177
17151
|
}
|
|
17178
|
-
const BS = "The columns are protected. To make a change, unprotect the sheet. You might be requested to enter a password.", PS = "The rows are protected. To make a change, unprotect the sheet. You might be requested to enter a password.", zS = "Rows",
|
|
17179
|
-
class
|
|
17152
|
+
const BS = "The columns are protected. To make a change, unprotect the sheet. You might be requested to enter a password.", PS = "The rows are protected. To make a change, unprotect the sheet. You might be requested to enter a password.", zS = "Rows", WS = "Columns";
|
|
17153
|
+
class jS {
|
|
17180
17154
|
constructor(t5) {
|
|
17181
17155
|
if (this._emitter = null, this._closed = false, this._scaleFactor = 1, this._defaultSize = -1, this._defaultCustomSize = -1, this._defaultPxSize = 1, this._isColumn = true, this._indexedSizes = [], this._indexedHidden = [], this._headerRunCoords = null, this._hasCustomFormats = false, this._hasStyles = false, this._hasHidden = false, this._lastHeaderRead = null, this._readCache = null, this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null, this._options = { isProtected: () => false, getUpdateId: () => null, scaleFactor: () => 1, defaultSize: () => 100, minSize: () => 0, maxSize: () => 500, orientation: i.Orientation.Column, createCellHeader: (t6, e3, n3) => new LS(t6, e3, n3), ...t5 }, !this._options.sheet) throw new Error("An ISheet must be provided");
|
|
17182
17156
|
if (this._emptyHeader = this._options.createCellHeader(this, null, null), this._scaleFactor = this._options.scaleFactor(), this._defaultSize = this._options.defaultSize(), this._defaultSize <= 0) throw new Error("defaultSize must be greater than 0");
|
|
@@ -17208,7 +17182,7 @@ class WS {
|
|
|
17208
17182
|
const t5 = -1 === this._defaultCustomSize ? this._options.defaultSize() : this._defaultCustomSize, e2 = this._options.scaleFactor();
|
|
17209
17183
|
if (t5 !== this._defaultSize || e2 !== this._scaleFactor) {
|
|
17210
17184
|
this._defaultSize = t5, this._scaleFactor = e2, this._defaultPxSize = MS(t5, e2);
|
|
17211
|
-
const n2 =
|
|
17185
|
+
const n2 = NS(this._headers, t5, e2);
|
|
17212
17186
|
this._indexedSizes = n2.sizes, this._indexedHidden = n2.hidden, this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null;
|
|
17213
17187
|
}
|
|
17214
17188
|
}
|
|
@@ -17220,7 +17194,7 @@ class WS {
|
|
|
17220
17194
|
this._defaultSize = n2;
|
|
17221
17195
|
const r2 = this._scaleFactor;
|
|
17222
17196
|
this._defaultPxSize = MS(n2, r2);
|
|
17223
|
-
const o2 =
|
|
17197
|
+
const o2 = NS(t5, n2, r2);
|
|
17224
17198
|
this._indexedSizes = o2.sizes, this._indexedHidden = o2.hidden, this._lastHeaderRead = null, this._readCache = la(this._lastHeaders), this._lastVisibleRunsRead = null, this._lastVisibleRunCoords = null;
|
|
17225
17199
|
const s2 = this._options.sheet.getStyles().getNormal();
|
|
17226
17200
|
let i2 = false, a2 = false, l2 = false, c2 = -1;
|
|
@@ -17300,7 +17274,7 @@ class WS {
|
|
|
17300
17274
|
const n4 = t6(e4.min, e4.max);
|
|
17301
17275
|
return n4 && n4.break ? n4 : void 0;
|
|
17302
17276
|
}, n3, o3), s3 && s3.break) return s3.break;
|
|
17303
|
-
}, updateHeaders: (t6, e3) => (n2.updateHeaderPairs([{ address: r2, update: t6 }], { description: e3?.description ?? `Update ${n2._isColumn ?
|
|
17277
|
+
}, updateHeaders: (t6, e3) => (n2.updateHeaderPairs([{ address: r2, update: t6 }], { description: e3?.description ?? `Update ${n2._isColumn ? WS : zS} ${toString()}`, ...e3 }), i2), setHidden: (t6) => (n2.setHidden(r2, t6), i2), getUsedRange: (t6) => {
|
|
17304
17278
|
const e3 = n2._headerRunCoords;
|
|
17305
17279
|
if (!e3 || e3.min < 0 || e3.max > n2._maxDataIndex) return null;
|
|
17306
17280
|
return aa(e3, r2) ? n2.getRange(e3, t6) : null;
|
|
@@ -17375,11 +17349,11 @@ class WS {
|
|
|
17375
17349
|
}
|
|
17376
17350
|
setSize(t5, e2 = null, n2) {
|
|
17377
17351
|
(n2?.relativeSize ?? false) || "number" != typeof e2 || (e2 += "px");
|
|
17378
|
-
const r2 = { size: e2, autoSize: n2?.autoSize ?? false }, o2 = `Resize ${this._isColumn ?
|
|
17352
|
+
const r2 = { size: e2, autoSize: n2?.autoSize ?? false }, o2 = `Resize ${this._isColumn ? WS : zS}`;
|
|
17379
17353
|
return this.update(t5, r2, { description: o2, ...n2 }), this;
|
|
17380
17354
|
}
|
|
17381
17355
|
setHidden(t5, e2 = null) {
|
|
17382
|
-
const n2 = { hidden: e2 }, r2 = `${e2 ? "Unhide" : "Hide"} ${this._isColumn ?
|
|
17356
|
+
const n2 = { hidden: e2 }, r2 = `${e2 ? "Unhide" : "Hide"} ${this._isColumn ? WS : zS}`;
|
|
17383
17357
|
return this.update(t5, n2, { description: r2 }), this;
|
|
17384
17358
|
}
|
|
17385
17359
|
_clear(t5, e2) {
|
|
@@ -17425,12 +17399,12 @@ class WS {
|
|
|
17425
17399
|
}
|
|
17426
17400
|
_updatePairsInternal(t5, e2) {
|
|
17427
17401
|
if (!t5 || 0 === t5.length) return null;
|
|
17428
|
-
const n2 = e2?.skipCustomSize ?? false, r2 = this._isColumn, o2 = this.getSheet().getStyles(), s2 = this._beginCommit({ description: e2?.description ?? `Update ${r2 ?
|
|
17402
|
+
const n2 = e2?.skipCustomSize ?? false, r2 = this._isColumn, o2 = this.getSheet().getStyles(), s2 = this._beginCommit({ description: e2?.description ?? `Update ${r2 ? WS : zS}` });
|
|
17429
17403
|
let i2 = [...this._getState().headers], a2 = false, l2 = false;
|
|
17430
|
-
const c2 = r2 ?
|
|
17431
|
-
|
|
17432
|
-
const h2 = r2 ?
|
|
17433
|
-
|
|
17404
|
+
const c2 = r2 ? Ta.Edge.Top : Ta.Edge.Left;
|
|
17405
|
+
Ta.oppositeEdge(c2);
|
|
17406
|
+
const h2 = r2 ? Ta.Edge.Right : Ta.Edge.Bottom;
|
|
17407
|
+
Ta.oppositeEdge(h2);
|
|
17434
17408
|
const u2 = this, d2 = (t6, e3) => {
|
|
17435
17409
|
if (this.isProtected()) throw new Error(this._isColumn ? BS : PS);
|
|
17436
17410
|
l2 = l2 || null === e3, !l2 && e3 && (l2 = !!e3.isICellHeader || (void 0 !== e3?.size || void 0 !== e3?.hidden)), a2 = a2 || null === e3 || void 0 !== e3?.style || e3?.isICellHeader;
|
|
@@ -17594,7 +17568,7 @@ class WS {
|
|
|
17594
17568
|
_insertHeaders(t5, e2) {
|
|
17595
17569
|
if (this.isProtected()) throw new Error(this._isColumn ? BS : PS);
|
|
17596
17570
|
if (e2 <= 0) return;
|
|
17597
|
-
const n2 = this._beginCommit({ description: `Insert ${this._isColumn ?
|
|
17571
|
+
const n2 = this._beginCommit({ description: `Insert ${this._isColumn ? WS : zS}` }), r2 = this._getState();
|
|
17598
17572
|
let o2 = [...r2.headers];
|
|
17599
17573
|
o2 = ra(((t6, e3, n3 = 1) => {
|
|
17600
17574
|
const r3 = bt.findEqualOrGreater(t6, e3, (t7) => t7.max), o3 = t6.slice(0, r3), s3 = [], i2 = [];
|
|
@@ -17608,7 +17582,7 @@ class WS {
|
|
|
17608
17582
|
}
|
|
17609
17583
|
_deleteHeaders(t5, e2) {
|
|
17610
17584
|
if (this.isProtected()) throw new Error(this._isColumn ? BS : PS);
|
|
17611
|
-
const n2 = this._beginCommit({ description: `Delete ${this._isColumn ?
|
|
17585
|
+
const n2 = this._beginCommit({ description: `Delete ${this._isColumn ? WS : zS}` }), r2 = this._getState();
|
|
17612
17586
|
let o2 = [...r2.headers];
|
|
17613
17587
|
o2 = ra(ea(o2, t5, e2));
|
|
17614
17588
|
const s2 = [{ min: t5, max: t5 + e2 }];
|
|
@@ -17838,7 +17812,7 @@ class JS {
|
|
|
17838
17812
|
processMerge(t5) {
|
|
17839
17813
|
}
|
|
17840
17814
|
}
|
|
17841
|
-
const qS = Object.freeze({ coords: Y.EmptyCell, topLeft:
|
|
17815
|
+
const qS = Object.freeze({ coords: Y.EmptyCell, topLeft: N.EmptyTopLeft }), KS = Object.freeze({ cell: Y.EmptyCell, ranges: bt.EmptyArray, rangeIndex: 0 }), XS = Object.freeze({ selection: KS, topLeft: N.EmptyTopLeft, freezePanes: qS, showRowHeaders: true, showColumnHeaders: true, showRowGridlines: true, showColumnGridlines: true, rowHeaderStyle: $_.HeaderTextStyle.One, columnHeaderStyle: $_.HeaderTextStyle.A1, showFormulas: false, showZeros: true, zoomScale: 100, gridLineColor: null });
|
|
17842
17816
|
class YS {
|
|
17843
17817
|
constructor(t5) {
|
|
17844
17818
|
if (this._emitter = null, !t5?.sheet) throw new Error("SheetView requires a sheet.");
|
|
@@ -17970,7 +17944,7 @@ class YS {
|
|
|
17970
17944
|
const r2 = this._state[e2[n3]];
|
|
17971
17945
|
null != r2 && r2 !== XS[e2[n3]] && (t5[e2[n3]] = r2);
|
|
17972
17946
|
}
|
|
17973
|
-
delete t5.movableSelection, delete t5.gridLineColor, this._state.gridLineColor instanceof
|
|
17947
|
+
delete t5.movableSelection, delete t5.gridLineColor, this._state.gridLineColor instanceof Na && (t5.gridLineColor = this._state.gridLineColor.toString()), delete t5.topLeft, !this._state.topLeft || 0 === this._state.topLeft.left && 0 === this._state.topLeft.top || (t5.topLeft = { left: this._state.topLeft.left ?? 0, top: this._state.topLeft.top ?? 0 }), delete t5.selection;
|
|
17974
17948
|
const n2 = this._state.selection;
|
|
17975
17949
|
if (n2) {
|
|
17976
17950
|
let e3 = {};
|
|
@@ -18028,7 +18002,7 @@ class YS {
|
|
|
18028
18002
|
}
|
|
18029
18003
|
}
|
|
18030
18004
|
async function QS() {
|
|
18031
|
-
const { getCrypto: t5 } = await import("./
|
|
18005
|
+
const { getCrypto: t5 } = await import("./m-xRNSE6rMaeHTas.mjs");
|
|
18032
18006
|
return t5();
|
|
18033
18007
|
}
|
|
18034
18008
|
const ZS = async (t5, e2, ...n2) => {
|
|
@@ -18059,7 +18033,7 @@ class nw {
|
|
|
18059
18033
|
return { salt: o2, hash: await nw._convertPasswordToHash(t5, o2, e2, n2) };
|
|
18060
18034
|
}
|
|
18061
18035
|
static async verifyPassword(t5, e2, n2 = nw.DefaultAlgo, r2 = nw.DefaultSpinCount) {
|
|
18062
|
-
if (!t5 || !e2) throw new
|
|
18036
|
+
if (!t5 || !e2) throw new Wt();
|
|
18063
18037
|
return ((t6, e3) => {
|
|
18064
18038
|
const n3 = t6.length, r3 = e3.length;
|
|
18065
18039
|
let o2 = n3 === r3 ? 0 : 1;
|
|
@@ -18245,11 +18219,11 @@ class iw {
|
|
|
18245
18219
|
}
|
|
18246
18220
|
_createRanges(t5, e2) {
|
|
18247
18221
|
let n2 = this._options;
|
|
18248
|
-
return e2 && (n2 = { ...this._options, getOptions:
|
|
18222
|
+
return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
|
|
18249
18223
|
}
|
|
18250
18224
|
_createRange(t5, e2) {
|
|
18251
18225
|
let n2 = this._options;
|
|
18252
|
-
return e2 && (n2 = { ...this._options, getOptions:
|
|
18226
|
+
return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, n2);
|
|
18253
18227
|
}
|
|
18254
18228
|
_validateWrite() {
|
|
18255
18229
|
const t5 = this._readOnly;
|
|
@@ -18405,7 +18379,7 @@ class iw {
|
|
|
18405
18379
|
return uf(this.getCoords(), this._sheet._entireCoords, true);
|
|
18406
18380
|
}
|
|
18407
18381
|
isOverlapping() {
|
|
18408
|
-
return
|
|
18382
|
+
return Th(this.getCoords());
|
|
18409
18383
|
}
|
|
18410
18384
|
at(t5) {
|
|
18411
18385
|
const e2 = this.getCoords();
|
|
@@ -18449,11 +18423,11 @@ class aw {
|
|
|
18449
18423
|
if (!t5) return bf(n2, n2._entireCoords);
|
|
18450
18424
|
if (n2._validateCoords(t5), n2._closed) return bf(null, n2._entireCoords, t5);
|
|
18451
18425
|
let r2 = this._options;
|
|
18452
|
-
return e2 && (r2 = { ...this._options, getOptions:
|
|
18426
|
+
return e2 && (r2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new aw(t5, this._sheet, r2);
|
|
18453
18427
|
}
|
|
18454
18428
|
_createRanges(t5, e2) {
|
|
18455
18429
|
let n2 = this._options;
|
|
18456
|
-
return e2 && (n2 = { ...this._options, getOptions:
|
|
18430
|
+
return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new iw(t5, this._sheet, n2);
|
|
18457
18431
|
}
|
|
18458
18432
|
_deriveRanges(t5, e2) {
|
|
18459
18433
|
const n2 = this.getCoords();
|
|
@@ -18472,7 +18446,7 @@ class aw {
|
|
|
18472
18446
|
r2 = { ...o2, ...t6 };
|
|
18473
18447
|
}
|
|
18474
18448
|
var s2, i2;
|
|
18475
|
-
return s2 = r2, (i2 = o2) && (void 0 === i2.$colStart ? delete s2.$colStart : s2.$colStart = i2.$colStart, void 0 === i2.$rowStart ? delete s2.$rowStart : s2.$rowStart = i2.$rowStart, void 0 === i2.$colEnd ? delete s2.$colEnd : s2.$colEnd = i2.$colEnd, void 0 === i2.$rowEnd ? delete s2.$rowEnd : s2.$rowEnd = i2.$rowEnd), this._createRange(r2,
|
|
18449
|
+
return s2 = r2, (i2 = o2) && (void 0 === i2.$colStart ? delete s2.$colStart : s2.$colStart = i2.$colStart, void 0 === i2.$rowStart ? delete s2.$rowStart : s2.$rowStart = i2.$rowStart, void 0 === i2.$colEnd ? delete s2.$colEnd : s2.$colEnd = i2.$colEnd, void 0 === i2.$rowEnd ? delete s2.$rowEnd : s2.$rowEnd = i2.$rowEnd), this._createRange(r2, Tf(this._options?.getOptions, e2));
|
|
18476
18450
|
}
|
|
18477
18451
|
_validateMaxSize(t5 = 5e4) {
|
|
18478
18452
|
const e2 = this.getCoords(), n2 = this._sheet, r2 = n2._colHeaders.getVisibleCount(e2.colStart, e2.colEnd);
|
|
@@ -18835,7 +18809,7 @@ class pw {
|
|
|
18835
18809
|
constructor(t5) {
|
|
18836
18810
|
this._lastTransactionUUID = null, this._emitter = null, this._initializing = true, this._emitterMovables = null, this._rangesListenerSorted = null, this._lastCellDecoded = { address: null, coords: null }, this._lastCellSelected = { coords: null, cell: null }, this._lastCellRead = { coords: null, cell: null }, this._lastValueRead = { range: null, isDateOrTime: null }, this._lastGetRangeRead = {}, this._lastUsedCoordsRead = { coords: null, range: null }, this._lastActiveRead = { selection: null, range: null, ranges: null }, this._lastRangeRead = { address: null, range: null, ranges: null }, this._isDataColumn = true, this._isDate1904 = false, this._colHeaders = null, this._colHeadersShiftCallback = null, this._colHeadersListener = null, this._colHeadersRemoveListener = null, this._rowHeaders = null, this._rowHeadersShiftCallback = null, this._rowHeadersListener = null, this._rowHeadersRemoveListener = null, this._closed = false;
|
|
18837
18811
|
const e2 = Object.freeze({ ...t5 });
|
|
18838
|
-
|
|
18812
|
+
We._validate(true), this._transactions = e2.transactions ?? new ue(), this._ownTransactions = !e2.transactions;
|
|
18839
18813
|
const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
|
|
18840
18814
|
try {
|
|
18841
18815
|
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? lw) - 1, rowEnd: (e2.maxRows ?? cw) - 1 }), this._strings = e2.strings ?? new wp(), this._ownStrings = !e2.strings;
|
|
@@ -18969,7 +18943,7 @@ class pw {
|
|
|
18969
18943
|
_rangesToCoords(t5, e2 = null, n2 = true, r2 = false) {
|
|
18970
18944
|
if (e2 && this._closed) return bt.EmptyArray;
|
|
18971
18945
|
if (null == t5) return bt.EmptyArray;
|
|
18972
|
-
const o2 = this, s2 =
|
|
18946
|
+
const o2 = this, s2 = Tu(t5, this._entireCoords, r2 ? Iu : Ru, (t6) => {
|
|
18973
18947
|
if (n2 && "string" == typeof t6) {
|
|
18974
18948
|
const e3 = o2.getNames()?.getByName(t6);
|
|
18975
18949
|
if (e3) return e3.getRanges().getCoords();
|
|
@@ -19042,7 +19016,7 @@ class pw {
|
|
|
19042
19016
|
return { next(o2) {
|
|
19043
19017
|
const s2 = r2.next(o2);
|
|
19044
19018
|
if (s2.done) return Pl;
|
|
19045
|
-
const i2 = s2.value, a2 = new
|
|
19019
|
+
const i2 = s2.value, a2 = new Nf(n2, t5, e2), l2 = a2.context;
|
|
19046
19020
|
return { done: false, value: { value: a2.setState(i2), context: l2 } };
|
|
19047
19021
|
}, [Symbol.iterator]() {
|
|
19048
19022
|
return this;
|
|
@@ -19220,11 +19194,11 @@ class pw {
|
|
|
19220
19194
|
return n4 = Bm(g2, t6, e4), n4;
|
|
19221
19195
|
});
|
|
19222
19196
|
return t6.cloneWithUpdate(r3);
|
|
19223
|
-
}, s3 = t5[n3], i3 = s3.value, a3 = void 0 !== i3 ? i3 : e2, l3 = o4(new
|
|
19197
|
+
}, s3 = t5[n3], i3 = s3.value, a3 = void 0 !== i3 ? i3 : e2, l3 = o4(new Wm(g2, s3), a3), h3 = (t6, e3) => {
|
|
19224
19198
|
if (r2 && t6.value && t6.value.getProperties()?.numberFormat) return t6;
|
|
19225
19199
|
const n4 = Y.sanitizeRange(t6);
|
|
19226
19200
|
let s4 = null, i4 = t6.value;
|
|
19227
|
-
"function" == typeof a3 && i4 ? s4 = o4(i4, a3) : (i4 || (i4 = new
|
|
19201
|
+
"function" == typeof a3 && i4 ? s4 = o4(i4, a3) : (i4 || (i4 = new Wm(g2, n4)), s4 = i4.cloneWithUpdate(e3.value._p ?? null)), s4.isEmpty() && (s4 = null);
|
|
19228
19202
|
let l4 = false;
|
|
19229
19203
|
if (s4) {
|
|
19230
19204
|
const t7 = s4._p?.alignment?.horizontal;
|
|
@@ -19283,24 +19257,24 @@ class pw {
|
|
|
19283
19257
|
let C2 = false;
|
|
19284
19258
|
g2 && this._hasRangedEntries("unlockSpatial", y2) && (b2[id.Type.Unlock] = false, C2 = true), this._hasRangedEntries("mergeSpatial", y2) && (b2[id.Type.Merge] = false, C2 = true);
|
|
19285
19259
|
const v2 = this._rangeStateIterator({ bounds: y2, orientation: d2, includeRangeTypes: b2, reuseIterator: { done: false, value: null } });
|
|
19286
|
-
let x2 = v2.next(), I2 = -1, R2 = -1, A2 = -1, M2 = -1,
|
|
19260
|
+
let x2 = v2.next(), I2 = -1, R2 = -1, A2 = -1, M2 = -1, N2 = null;
|
|
19287
19261
|
if (!x2.done) {
|
|
19288
19262
|
const t6 = x2.value, e3 = t6.start, n3 = t6.end;
|
|
19289
|
-
I2 = u2 ? e3.colIndex : e3.rowIndex, R2 = u2 ? n3.colIndex : n3.rowIndex, A2 = u2 ? e3.rowIndex : e3.colIndex, M2 = u2 ? n3.rowIndex : n3.colIndex,
|
|
19263
|
+
I2 = u2 ? e3.colIndex : e3.rowIndex, R2 = u2 ? n3.colIndex : n3.rowIndex, A2 = u2 ? e3.rowIndex : e3.colIndex, M2 = u2 ? n3.rowIndex : n3.colIndex, N2 = t6.intersection;
|
|
19290
19264
|
}
|
|
19291
|
-
let
|
|
19265
|
+
let T2 = (t6, e3) => {
|
|
19292
19266
|
do {
|
|
19293
|
-
if (!
|
|
19294
|
-
if (t6 >= I2 && e3 >= A2 && t6 <= R2 && e3 <= M2) return
|
|
19295
|
-
if (x2 = v2.next(), x2.done)
|
|
19267
|
+
if (!N2 || t6 <= A2 && e3 < A2) return null;
|
|
19268
|
+
if (t6 >= I2 && e3 >= A2 && t6 <= R2 && e3 <= M2) return N2;
|
|
19269
|
+
if (x2 = v2.next(), x2.done) N2 = null, T2 = null, C2 = false;
|
|
19296
19270
|
else {
|
|
19297
19271
|
const t7 = x2.value;
|
|
19298
|
-
I2 = u2 ? t7.start.colIndex : t7.start.rowIndex, R2 = u2 ? t7.end.colIndex : t7.end.rowIndex, A2 = u2 ? t7.start.rowIndex : t7.start.colIndex, M2 = u2 ? t7.end.rowIndex : t7.end.colIndex,
|
|
19272
|
+
I2 = u2 ? t7.start.colIndex : t7.start.rowIndex, R2 = u2 ? t7.end.colIndex : t7.end.rowIndex, A2 = u2 ? t7.start.rowIndex : t7.start.colIndex, M2 = u2 ? t7.end.rowIndex : t7.end.colIndex, N2 = t7.intersection;
|
|
19299
19273
|
}
|
|
19300
|
-
} while (
|
|
19301
|
-
return
|
|
19274
|
+
} while (N2);
|
|
19275
|
+
return N2;
|
|
19302
19276
|
};
|
|
19303
|
-
const k2 = c2.getState(this), F2 = k2.cellValuesGrid.clone(), O2 = k2.calcGraph.clone(), D2 = k2.formulaSpatial.clone(), L2 = k2.spillSpatial.clone(), B2 = k2.pendingSpatial.clone(), P2 = k2.calcErrorsSpatial.clone(), z2 = k2.contentfulSpatial.clone(),
|
|
19277
|
+
const k2 = c2.getState(this), F2 = k2.cellValuesGrid.clone(), O2 = k2.calcGraph.clone(), D2 = k2.formulaSpatial.clone(), L2 = k2.spillSpatial.clone(), B2 = k2.pendingSpatial.clone(), P2 = k2.calcErrorsSpatial.clone(), z2 = k2.contentfulSpatial.clone(), W2 = rh(u2), j2 = rh(u2, (t6, e3) => {
|
|
19304
19278
|
if (t6 === e3) return e3;
|
|
19305
19279
|
}), H2 = rh(u2, (t6, e3) => {
|
|
19306
19280
|
if (t6 === e3) return e3;
|
|
@@ -19310,10 +19284,10 @@ class pw {
|
|
|
19310
19284
|
let G2 = null, U2 = null;
|
|
19311
19285
|
if (false !== e2?.textParser) {
|
|
19312
19286
|
const t6 = e2 && true !== e2.textParser ? e2.textParser : {};
|
|
19313
|
-
U2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t6 }, G2 = new
|
|
19287
|
+
U2 = { ignoreQuotePrefix: false, date1904: this._isDate1904, dateNF: false, parse: null, ...t6 }, G2 = new Nf(f2, null, this._cellOptions);
|
|
19314
19288
|
}
|
|
19315
19289
|
const J2 = [], q2 = this._cellOptions, K2 = /* @__PURE__ */ new Map(), X2 = Ff, Y2 = (t6, e3, n3) => {
|
|
19316
|
-
const r3 =
|
|
19290
|
+
const r3 = T2?.(e3, n3);
|
|
19317
19291
|
if (r3?.merge) {
|
|
19318
19292
|
const t7 = r3.merge.getCoords(), o3 = u2 ? t7.colStart : t7.rowStart, s3 = u2 ? t7.rowStart : t7.colStart;
|
|
19319
19293
|
if (o3 !== e3 || s3 !== n3) return;
|
|
@@ -19340,7 +19314,7 @@ class pw {
|
|
|
19340
19314
|
}
|
|
19341
19315
|
if (!s2) {
|
|
19342
19316
|
const t7 = i2.style;
|
|
19343
|
-
void 0 === t7 || null === t7 && !o2 ||
|
|
19317
|
+
void 0 === t7 || null === t7 && !o2 || j2.append(e3, n3, t7);
|
|
19344
19318
|
const r4 = i2.hyperlink;
|
|
19345
19319
|
void 0 === r4 || null === r4 && !o2 || H2.append(e3, n3, r4);
|
|
19346
19320
|
}
|
|
@@ -19365,7 +19339,7 @@ class pw {
|
|
|
19365
19339
|
const e5 = i3[t9];
|
|
19366
19340
|
let r5 = null;
|
|
19367
19341
|
if (C2 || "number" != typeof e5 ? (C2 || null !== e5 || o2) && (r5 = Y2(e5, n4, c3)) : r5 = e5, null == r5) {
|
|
19368
|
-
if (null === r5 &&
|
|
19342
|
+
if (null === r5 && W2.append(n4, c3), h3.length > 0) {
|
|
19369
19343
|
const t10 = X2(h3, f2);
|
|
19370
19344
|
s4.push([l3, t10]), h3 = [];
|
|
19371
19345
|
}
|
|
@@ -19380,7 +19354,7 @@ class pw {
|
|
|
19380
19354
|
}
|
|
19381
19355
|
s4.length > 0 && J2.push([n4, s4]);
|
|
19382
19356
|
}
|
|
19383
|
-
const n3 =
|
|
19357
|
+
const n3 = W2.done(), r3 = n3.length;
|
|
19384
19358
|
for (let t7 = 0; t7 < r3; t7++) {
|
|
19385
19359
|
const e3 = n3[t7];
|
|
19386
19360
|
F2.delete(n3[t7]), z2.insertNonOverlapping({ ...e3, value: null });
|
|
@@ -19396,7 +19370,7 @@ class pw {
|
|
|
19396
19370
|
}
|
|
19397
19371
|
const m3 = Of(J2, u2), E3 = m3.length;
|
|
19398
19372
|
for (let t7 = 0; t7 < E3; t7++) z2.insertNonOverlapping(m3[t7]);
|
|
19399
|
-
const b3 =
|
|
19373
|
+
const b3 = j2.done();
|
|
19400
19374
|
b3.length > 0 && this._updateStyles(b3), $2.length > 0 && this._merge($2);
|
|
19401
19375
|
const v3 = H2.done();
|
|
19402
19376
|
if (v3.length > 0 && this._setHyperlinks(v3), this._updateState({ cellValuesGrid: F2, contentfulSpatial: z2, calcGraph: O2, formulaSpatial: D2, spillSpatial: L2, pendingSpatial: B2, calcErrorsSpatial: P2 }), d3 && d3.length > 0 && this._updateStyles(d3, void 0, {}, true), e2?.autoFit) {
|
|
@@ -19471,8 +19445,8 @@ class pw {
|
|
|
19471
19445
|
}
|
|
19472
19446
|
if (!S2) return;
|
|
19473
19447
|
if (0 === _2.length) return;
|
|
19474
|
-
const A2 = /* @__PURE__ */ new Map(), M2 = /* @__PURE__ */ new Map(),
|
|
19475
|
-
for (let t6 = 0; t6 <
|
|
19448
|
+
const A2 = /* @__PURE__ */ new Map(), M2 = /* @__PURE__ */ new Map(), N2 = e2?.collators ?? Fl.DefaultCollators, T2 = N2.length;
|
|
19449
|
+
for (let t6 = 0; t6 < T2; t6++) A2.set(N2[t6].type, N2[t6].compare), M2.set(N2[t6].type, t6);
|
|
19476
19450
|
let k2 = null, F2 = null, O2 = null;
|
|
19477
19451
|
_2.sort((t6, e3) => {
|
|
19478
19452
|
const n3 = f2.length;
|
|
@@ -19492,7 +19466,7 @@ class pw {
|
|
|
19492
19466
|
if (k2 !== h3) {
|
|
19493
19467
|
t7 = A2.get(h3), F2 = t7, k2 = h3;
|
|
19494
19468
|
let e4 = M2.get(u3);
|
|
19495
|
-
const r4 =
|
|
19469
|
+
const r4 = N2[e4].defaultOptions;
|
|
19496
19470
|
O2 = { ...r4, ...n4.collatorOptions };
|
|
19497
19471
|
}
|
|
19498
19472
|
d3 = t7(i2, a3, O2);
|
|
@@ -19547,7 +19521,7 @@ class pw {
|
|
|
19547
19521
|
if (o2 % y2 !== 0) throw new Error(((t6) => `When filling with merged cells the amount to fill must be a multiple of the input range [${t6}].`)(y2));
|
|
19548
19522
|
const E2 = s2 ? "rowIndex" : "colIndex", b2 = s2 ? "colIndex" : "rowIndex", C2 = s2 ? t5.rowEnd + 1 - t5.rowStart : t5.colEnd + 1 - t5.colStart, v2 = s2 ? t5.rowStart : t5.colStart, x2 = s2 ? t5.rowEnd : t5.colEnd, I2 = s2 ? e2.rowStart : e2.colStart, R2 = s2 ? e2.rowEnd : e2.colEnd, A2 = s2 ? r2 === i.Direction.Down : r2 === i.Direction.Right;
|
|
19549
19523
|
A2 || (d2.reverse = true);
|
|
19550
|
-
const M2 = A2 ? x2 + 1 : I2,
|
|
19524
|
+
const M2 = A2 ? x2 + 1 : I2, N2 = (A2 ? R2 : v2 - 1) - M2 + 1, T2 = s2 ? t5.colEnd : t5.rowEnd;
|
|
19551
19525
|
l2.push(Y.unionRanges(f2, t5));
|
|
19552
19526
|
const k2 = [];
|
|
19553
19527
|
let F2 = null;
|
|
@@ -19583,7 +19557,7 @@ class pw {
|
|
|
19583
19557
|
}, P2 = this;
|
|
19584
19558
|
if (c2) {
|
|
19585
19559
|
const t6 = k2[k2.length - 1];
|
|
19586
|
-
if (k2[k2.length - 1]?.oppositeIndex !==
|
|
19560
|
+
if (k2[k2.length - 1]?.oppositeIndex !== T2) return null;
|
|
19587
19561
|
const e3 = B2(u2, t6.values);
|
|
19588
19562
|
return c2((t7) => {
|
|
19589
19563
|
const n3 = P2._rangeToCoords(t7);
|
|
@@ -19594,11 +19568,11 @@ class pw {
|
|
|
19594
19568
|
return c3 = h2 ? this.createTemporaryCell(l3, o3) : this.createTemporaryCell(null, o3).createTemporaryCell(l3), c3;
|
|
19595
19569
|
}), false;
|
|
19596
19570
|
}
|
|
19597
|
-
const z2 = this._createIncrementalUpdater({ orientation: s2 ? i.Orientation.Column : i.Orientation.Row }),
|
|
19571
|
+
const z2 = this._createIncrementalUpdater({ orientation: s2 ? i.Orientation.Column : i.Orientation.Row }), W2 = k2.length;
|
|
19598
19572
|
k2.sort((t6, e3) => t6.oppositeIndex - e3.oppositeIndex);
|
|
19599
|
-
for (let t6 = 0; t6 <
|
|
19600
|
-
const e3 = t6, n3 = B2(u2, k2[e3].values), r3 = k2[e3].oppositeIndex, o3 = A2 ? C2 : C2 +
|
|
19601
|
-
for (let t7 = 0; t7 <
|
|
19573
|
+
for (let t6 = 0; t6 < W2; t6++) {
|
|
19574
|
+
const e3 = t6, n3 = B2(u2, k2[e3].values), r3 = k2[e3].oppositeIndex, o3 = A2 ? C2 : C2 + N2 - 1, i2 = this.isDate1904();
|
|
19575
|
+
for (let t7 = 0; t7 < N2; t7++) {
|
|
19602
19576
|
let e4 = n3(o3 + (A2 ? t7 : -t7));
|
|
19603
19577
|
Ms(e4) && (e4 = Ls(e4, i2));
|
|
19604
19578
|
const a3 = M2 + t7;
|
|
@@ -19606,23 +19580,23 @@ class pw {
|
|
|
19606
19580
|
}
|
|
19607
19581
|
}
|
|
19608
19582
|
this._clear([f2], n2?.contentsOnly ? Ad.Content.Formats : void 0), z2.apply();
|
|
19609
|
-
const
|
|
19610
|
-
if (
|
|
19611
|
-
if (
|
|
19583
|
+
const j2 = this._getMerges([p2]), H2 = Y.unionRangesArrays(j2);
|
|
19584
|
+
if (j2.length > 0 && !Y.isRangeWithinRange(H2, p2)) throw new Error(wd);
|
|
19585
|
+
if (j2.length > 0) {
|
|
19612
19586
|
const e3 = [], n3 = o2 / y2;
|
|
19613
19587
|
if (s2) {
|
|
19614
|
-
const o3 = t5.rowEnd - t5.rowStart + 1, s3 = r2 === i.Direction.Up ? f2.rowStart : t5.rowEnd + 1, a3 =
|
|
19588
|
+
const o3 = t5.rowEnd - t5.rowStart + 1, s3 = r2 === i.Direction.Up ? f2.rowStart : t5.rowEnd + 1, a3 = j2.length;
|
|
19615
19589
|
for (let r3 = 0; r3 < a3; r3++) {
|
|
19616
|
-
const i2 =
|
|
19590
|
+
const i2 = j2[r3], a4 = i2.rowStart - t5.rowStart, l3 = i2.rowEnd - i2.rowStart + 1;
|
|
19617
19591
|
for (let t6 = 0; t6 < n3; t6++) {
|
|
19618
19592
|
const n4 = t6 * o3;
|
|
19619
19593
|
e3.push({ colStart: i2.colStart, rowStart: s3 + n4 + a4, colEnd: i2.colEnd, rowEnd: s3 + n4 + a4 + l3 - 1 });
|
|
19620
19594
|
}
|
|
19621
19595
|
}
|
|
19622
19596
|
} else {
|
|
19623
|
-
const o3 = t5.colEnd - t5.colStart + 1, s3 = r2 === i.Direction.Left ? f2.colStart : t5.colEnd + 1, a3 =
|
|
19597
|
+
const o3 = t5.colEnd - t5.colStart + 1, s3 = r2 === i.Direction.Left ? f2.colStart : t5.colEnd + 1, a3 = j2.length;
|
|
19624
19598
|
for (let r3 = 0; r3 < a3; r3++) {
|
|
19625
|
-
const i2 =
|
|
19599
|
+
const i2 = j2[r3], a4 = i2.colStart - t5.colStart, l3 = i2.colEnd - i2.colStart + 1;
|
|
19626
19600
|
for (let t6 = 0; t6 < n3; t6++) {
|
|
19627
19601
|
const n4 = t6 * o3;
|
|
19628
19602
|
e3.push({ colStart: s3 + n4 + a4, rowStart: i2.rowStart, colEnd: s3 + n4 + a4 + l3 - 1, rowEnd: i2.rowEnd });
|
|
@@ -19694,7 +19668,7 @@ class pw {
|
|
|
19694
19668
|
else {
|
|
19695
19669
|
c2.insertNonOverlapping({ ...r4, value: d2 });
|
|
19696
19670
|
const t6 = this._styles, e3 = (e4) => {
|
|
19697
|
-
const n4 = e4.value ?? new
|
|
19671
|
+
const n4 = e4.value ?? new Wm(t6, Y.sanitizeRange(e4));
|
|
19698
19672
|
let r5 = { ...n4.getPropertiesAt(0, 0, null) };
|
|
19699
19673
|
if (r5.named) {
|
|
19700
19674
|
const e5 = t6.getNamed(r5.named)?.getRanged().getPropertiesAt(0, 0, null);
|
|
@@ -19921,7 +19895,7 @@ class pw {
|
|
|
19921
19895
|
let c2 = t5[0];
|
|
19922
19896
|
try {
|
|
19923
19897
|
const h2 = this._getMerges(t5);
|
|
19924
|
-
if (
|
|
19898
|
+
if (Th(t5) || h2.length > 0) {
|
|
19925
19899
|
const e3 = Y.unionRangesArrays(h2), n3 = Y.unionRangesArrays(t5);
|
|
19926
19900
|
if (!(!e3 && !n3 || e3 && n3 && Y.isRangeWithinRange(e3, n3))) throw console.warn(_d, t5), new Error(_d);
|
|
19927
19901
|
this._unmerge(h2);
|
|
@@ -19938,7 +19912,7 @@ class pw {
|
|
|
19938
19912
|
const n4 = l3.search(t6), r3 = n4.length;
|
|
19939
19913
|
for (let o3 = 0; o3 < r3; o3++) {
|
|
19940
19914
|
const r4 = Y.intersectRanges(n4[o3], t6);
|
|
19941
|
-
if (r4 && (e5 += (r4.rowEnd - r4.rowStart + 1) * (r4.colEnd - r4.colStart + 1)), e5 > 1) throw new
|
|
19915
|
+
if (r4 && (e5 += (r4.rowEnd - r4.rowStart + 1) * (r4.colEnd - r4.colStart + 1)), e5 > 1) throw new jt("Merging cells would cause some values to be discarded. Use 'discardMultipleValues' option if desired.", "discardMultipleValues");
|
|
19942
19916
|
}
|
|
19943
19917
|
}
|
|
19944
19918
|
if (n3 || (n3 = e4), !Y.isEqualCells(n3, e4)) {
|
|
@@ -19966,7 +19940,7 @@ class pw {
|
|
|
19966
19940
|
}
|
|
19967
19941
|
u2.apply(), this._indexMerges(d2), this._updateState({});
|
|
19968
19942
|
} catch (t6) {
|
|
19969
|
-
if (t6.type) throw new
|
|
19943
|
+
if (t6.type) throw new jt(t6.message ?? "Unable to merge", t6.type);
|
|
19970
19944
|
throw new Error(t6.message ?? "Unable to merge");
|
|
19971
19945
|
}
|
|
19972
19946
|
a2 && (o2 = a2, this.getSelection().updateCoords(a2)), l2.commit({ viewAfter: { view: this.getView(), selection: o2, merges: t5, ranges: t5, selectOptions: e2?.autoSelect } }), this._autoSelect(e2?.autoSelect ?? false, o2);
|
|
@@ -19975,7 +19949,7 @@ class pw {
|
|
|
19975
19949
|
}
|
|
19976
19950
|
}
|
|
19977
19951
|
_unmerge(t5, e2) {
|
|
19978
|
-
if (this._protectionCheck(mw, t5),
|
|
19952
|
+
if (this._protectionCheck(mw, t5), Th(t5)) throw new Error("We can't unmerge intersecting ranges.");
|
|
19979
19953
|
if (!this._getState()) return null;
|
|
19980
19954
|
const n2 = Y.unionRangesArrays(t5), r2 = Bf(t5), o2 = this._beginCommit({ description: e2?.description ?? "Unmerge" }), s2 = o2.getState(this).mergeSpatial, i2 = [];
|
|
19981
19955
|
try {
|
|
@@ -20214,7 +20188,7 @@ class pw {
|
|
|
20214
20188
|
let M2;
|
|
20215
20189
|
if (d2) {
|
|
20216
20190
|
M2 = m2.startIncrementalUpdates({ orientation: o2.transpose ? i.Orientation.Row : i.Orientation.Column });
|
|
20217
|
-
const t6 = { orientation: A2, includeRangeTypes: R2, bounds: c2 }, e3 = new
|
|
20191
|
+
const t6 = { orientation: A2, includeRangeTypes: R2, bounds: c2 }, e3 = new Nf(this._strings, t6, this._cellOptions), n4 = (t7, n5, s3) => {
|
|
20218
20192
|
const i2 = t7[0], a4 = e3.setState(t7), h4 = e3.context, m3 = h4.getCell(), _4 = m3.isTopLeft();
|
|
20219
20193
|
let S3 = x2, w3 = E3;
|
|
20220
20194
|
if (r3) {
|
|
@@ -20255,11 +20229,11 @@ class pw {
|
|
|
20255
20229
|
n4(e4, r4.rowIndex - o3.rowIndex, r4.colIndex - o3.colIndex), _3 = h3.next();
|
|
20256
20230
|
}
|
|
20257
20231
|
}
|
|
20258
|
-
const
|
|
20259
|
-
u2 && (
|
|
20260
|
-
const F2 = a2, O2 = F2._getState(), D2 = Object.keys(
|
|
20232
|
+
const N2 = e2._getState(), T2 = {}, k2 = { transpose: r3 ?? false };
|
|
20233
|
+
u2 && (T2.directStyleSpatial = N2.directStyleSpatial, T2.continuousFillSpatial = N2.continuousFillSpatial, T2.mergeSpatial = N2.mergeSpatial), h2 && (t5._clear([c2], void 0, void 0, false, true), w2.push(c2), T2.rangesListenerSpatial2 = N2.rangesListenerSpatial2);
|
|
20234
|
+
const F2 = a2, O2 = F2._getState(), D2 = Object.keys(T2), L2 = D2.length;
|
|
20261
20235
|
for (let t6 = 0; t6 < L2; t6++) {
|
|
20262
|
-
const e3 = D2[t6], n4 =
|
|
20236
|
+
const e3 = D2[t6], n4 = T2[e3].createCopiedEntries(c2, b2, k2), r4 = O2[e3].clone(), o3 = n4.removes, s3 = o3.length;
|
|
20263
20237
|
for (let t7 = 0; t7 < s3; t7++) r4.remove(o3[t7]);
|
|
20264
20238
|
r4.load(n4.inserts), O2[e3] = r4;
|
|
20265
20239
|
}
|
|
@@ -20329,7 +20303,7 @@ class pw {
|
|
|
20329
20303
|
return kf(this, t5, n2 ? this._cellToCoords(n2) : null, e2);
|
|
20330
20304
|
}
|
|
20331
20305
|
async _insertFrom(t5, e2, n2) {
|
|
20332
|
-
if (!e2) throw new
|
|
20306
|
+
if (!e2) throw new Wt();
|
|
20333
20307
|
const r2 = this._snapShotFromSource(e2), o2 = r2.getCoords();
|
|
20334
20308
|
let s2 = Lh(t5[0], o2, n2?.fitDestination), a2 = Df([s2]), l2 = a2;
|
|
20335
20309
|
const c2 = n2?.orientation ?? this._getDefaultShiftOrientation(s2), h2 = this._beginCommit({ description: n2?.description ?? "Insert Copied Cells", autoSelect: n2?.autoSelect });
|
|
@@ -20366,7 +20340,7 @@ class pw {
|
|
|
20366
20340
|
o2._validateCoords(t6, e3 ?? Sd);
|
|
20367
20341
|
});
|
|
20368
20342
|
const s2 = n2?.description ?? "Insert Cells", a2 = (e2 ?? this._getDefaultShiftOrientation(t5[0])) === i.Orientation.Column;
|
|
20369
|
-
if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t5, s2),
|
|
20343
|
+
if (this._protectionCheck(() => [a2 ? "insertColumns" : "insertRows"], t5, s2), Th(t5)) throw new Error("We can't insert cells with overlapping selections.");
|
|
20370
20344
|
const l2 = this._entireCoords;
|
|
20371
20345
|
let c2 = l2.colEnd, h2 = l2.rowEnd;
|
|
20372
20346
|
const u2 = Bf(t5), d2 = this._beginCommit({ description: s2, operation: { name: "insertCells" } }), g2 = d2.getState(this), m2 = a2 ? i.Direction.Right : i.Direction.Down;
|
|
@@ -20385,18 +20359,18 @@ class pw {
|
|
|
20385
20359
|
}
|
|
20386
20360
|
e3 = e3.clone(), e3.shift(n3, m2), this._updateState({ cellValuesGrid: e3 });
|
|
20387
20361
|
}
|
|
20388
|
-
const d3 = n3.colStart <= l2.colStart && n3.colEnd >= l2.colEnd, M3 = n3.rowStart <= l2.rowStart && n3.rowEnd >= l2.rowEnd,
|
|
20362
|
+
const d3 = n3.colStart <= l2.colStart && n3.colEnd >= l2.colEnd, M3 = n3.rowStart <= l2.rowStart && n3.rowEnd >= l2.rowEnd, N3 = (t7, e4, n4, r3) => {
|
|
20389
20363
|
let o4 = null;
|
|
20390
20364
|
n4 > 1 && (o4 = t7.at(n4 - 1));
|
|
20391
20365
|
const s4 = r3 - n4 + 1;
|
|
20392
20366
|
e4?.(n4, s4), o4 && t7.updateHeaderPairs([{ address: { min: n4, max: r3 }, update: o4 }]);
|
|
20393
20367
|
};
|
|
20394
|
-
d3 &&
|
|
20368
|
+
d3 && N3(this._rowHeaders, this._rowHeadersShiftCallback, n3.rowStart, n3.rowEnd), M3 && N3(this._colHeaders, this._colHeadersShiftCallback, n3.colStart, n3.colEnd), o3 = o3.shift({ range: n3, direction: m2, cloneIfUpdate: o3 === g2.contentfulSpatial, coordValidator: r2 }), s3 = s3.shift({ range: n3, direction: m2, cloneIfUpdate: s3 === g2.unlockSpatial, coordValidator: r2 }), f2 = f2.shift({ range: n3, direction: m2, cloneIfUpdate: f2 === g2.mergeSpatial, coordValidator: r2 }), p2 = p2.shift({ range: n3, direction: m2, cloneIfUpdate: p2 === g2.directStyleSpatial, coordValidator: r2 }), _2 = _2.shift({ range: n3, direction: m2, cloneIfUpdate: _2 === g2.continuousFillSpatial, coordValidator: r2 }), S2 = S2.shift({ range: n3, direction: m2, cloneIfUpdate: S2 === g2.conditionalSpatial, coordValidator: r2 }), w2 = w2.shift({ range: n3, direction: m2, cloneIfUpdate: w2 === g2.hyperlinkSpatial, coordValidator: r2 }), y2 = y2.shift({ range: n3, direction: m2, cloneIfUpdate: y2 === g2.commentsSpatial, coordValidator: r2 }), E2 = E2.shift({ range: n3, direction: m2, cloneIfUpdate: E2 === g2.movableSpatial, coordValidator: r2 }), b2 = b2.shift({ range: n3, direction: m2, cloneIfUpdate: b2 === g2.tableSpatial, coordValidator: r2 }), C2 = C2.shift({ range: n3, direction: m2, cloneIfUpdate: C2 === g2.calcGraph }), x2 = x2.shift({ range: n3, direction: m2, cloneIfUpdate: x2 === g2.rangeListenerSpatial, onShift: (t7) => {
|
|
20395
20369
|
I2 === g2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, g2.rangesListenerMap, t7);
|
|
20396
20370
|
} }), v2 = v2.shift({ range: n3, direction: m2, cloneIfUpdate: v2 === g2.rangesListenerSpatial2, coordValidator: r2 });
|
|
20397
20371
|
}
|
|
20398
|
-
let
|
|
20399
|
-
C2 !== g2.calcGraph && (
|
|
20372
|
+
let N2 = g2.formulaSpatial, T2 = g2.spillSpatial, k2 = g2.pendingSpatial;
|
|
20373
|
+
C2 !== g2.calcGraph && (N2 = N2.clone(), T2 = T2.clone(), k2 = k2.clone()), this._updateState({ contentfulSpatial: o3, unlockSpatial: s3, mergeSpatial: f2, directStyleSpatial: p2, continuousFillSpatial: _2, conditionalSpatial: S2, hyperlinkSpatial: w2, commentsSpatial: y2, movableSpatial: E2, tableSpatial: b2, calcGraph: C2, formulaSpatial: N2, spillSpatial: T2, pendingSpatial: k2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(d2, u2, n2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
|
|
20400
20374
|
} catch (t6) {
|
|
20401
20375
|
if (console.warn(t6), d2.rollback(), t6 instanceof Pt) throw new Error(t6.message ?? Sd);
|
|
20402
20376
|
throw t6;
|
|
@@ -20404,7 +20378,7 @@ class pw {
|
|
|
20404
20378
|
}
|
|
20405
20379
|
_deleteCells(t5, e2, n2) {
|
|
20406
20380
|
const r2 = (e2 ?? this._getDefaultShiftOrientation(t5[0])) === i.Orientation.Column, o2 = n2?.description ?? "Delete Cells";
|
|
20407
|
-
if (this._protectionCheck(() => [r2 ? "deleteColumns" : "deleteRows"], t5, o2),
|
|
20381
|
+
if (this._protectionCheck(() => [r2 ? "deleteColumns" : "deleteRows"], t5, o2), Th(t5)) throw new Error("We can't delete cells with overlapping selections.");
|
|
20408
20382
|
const s2 = this._entireCoords;
|
|
20409
20383
|
let a2 = s2.colEnd, l2 = s2.rowEnd;
|
|
20410
20384
|
const c2 = r2 ? i.Direction.Left : i.Direction.Up, h2 = Bf(t5), u2 = this._beginCommit({ description: o2, operation: { name: "deleteCells" } }), d2 = u2.getState(this);
|
|
@@ -20432,7 +20406,7 @@ class pw {
|
|
|
20432
20406
|
const n2 = "Autofit";
|
|
20433
20407
|
let r2;
|
|
20434
20408
|
const o2 = uf(t5, this._entireCoords, true), a2 = hf(t5, this._entireCoords, true);
|
|
20435
|
-
!o2 && a2 ? (e2.orientations = e2.orientations ?? i.Orientations.Column, r2 = `${n2} ${
|
|
20409
|
+
!o2 && a2 ? (e2.orientations = e2.orientations ?? i.Orientations.Column, r2 = `${n2} ${WS}`) : !a2 && o2 ? (e2.orientations = e2.orientations ?? i.Orientations.Row, r2 = `${n2} ${zS}`) : a2 && o2 ? (e2.orientations = e2.orientations ?? i.Orientations.Both, r2 = `${n2} All`) : (e2.orientations = e2.orientations ?? i.Orientations.Both, r2 = `${n2}`);
|
|
20436
20410
|
let l2 = e2.orientations !== i.Orientations.Row;
|
|
20437
20411
|
this._colHeaders.isProtected() && (l2 = false);
|
|
20438
20412
|
let c2 = e2.orientations !== i.Orientations.Column;
|
|
@@ -20442,9 +20416,9 @@ class pw {
|
|
|
20442
20416
|
let n3 = Number.MAX_SAFE_INTEGER, r3 = Number.MIN_SAFE_INTEGER, o3 = false, a3 = "", f2 = -1, p2 = false, _2 = false, S2 = false, w2 = Number.MAX_SAFE_INTEGER, y2 = Number.MIN_SAFE_INTEGER;
|
|
20443
20417
|
const E2 = this._styles.getNormal(), b2 = this._cellOptions, C2 = e2.orientations === i.Orientations.Row, v2 = /* @__PURE__ */ new Map(), x2 = Lc(t5, 1);
|
|
20444
20418
|
x2.sort(Y.createRangeComparator(i.Orientation.Column));
|
|
20445
|
-
const I2 = x2.length, R2 = { skipCustomSize: e2.skipCustomSize }, A2 = Ai.getDeviceScale(), M2 = this._defaultRowHeight() * A2,
|
|
20419
|
+
const I2 = x2.length, R2 = { skipCustomSize: e2.skipCustomSize }, A2 = Ai.getDeviceScale(), M2 = this._defaultRowHeight() * A2, N2 = (t6, e3 = 1) => {
|
|
20446
20420
|
if (0 !== t6 && null !== t6 && !(e3 > 1)) return t6 = Math.max(t6, M2), (e4) => u2 ? t6 : Math.max(e4, t6);
|
|
20447
|
-
},
|
|
20421
|
+
}, T2 = (t6, e3 = 1) => {
|
|
20448
20422
|
if (0 !== t6 && null !== t6 && !(e3 > 1)) return (e4) => h2 ? t6 : Math.max(e4, t6);
|
|
20449
20423
|
};
|
|
20450
20424
|
for (let t6 = 0; t6 < I2; t6++) {
|
|
@@ -20454,7 +20428,7 @@ class pw {
|
|
|
20454
20428
|
let O2 = F2.colStart, D2 = F2.rowStart, L2 = F2.colEnd, B2 = F2.rowEnd;
|
|
20455
20429
|
const P2 = this._getUsedCoords();
|
|
20456
20430
|
(u2 || h2) && P2 && (O2 = u2 ? P2.colStart : F2.colStart, D2 = h2 ? P2.rowStart : F2.rowStart, L2 = u2 ? P2.colEnd : F2.colEnd, B2 = h2 ? P2.rowEnd : F2.rowEnd);
|
|
20457
|
-
const z2 = { includeRangeTypes: { [id.Type.Style]: false, [id.Type.Contentful]: false }, excludeHidden: false, bounds: { colStart: O2, rowStart: D2, colEnd: L2, rowEnd: B2 }, orientation: i.Orientation.Column },
|
|
20431
|
+
const z2 = { includeRangeTypes: { [id.Type.Style]: false, [id.Type.Contentful]: false }, excludeHidden: false, bounds: { colStart: O2, rowStart: D2, colEnd: L2, rowEnd: B2 }, orientation: i.Orientation.Column }, W2 = c2 ? [] : void 0, j2 = l2 ? [] : void 0, H2 = (t7, e4, n4) => {
|
|
20458
20432
|
if (t7 > e4) return null;
|
|
20459
20433
|
const r4 = [];
|
|
20460
20434
|
let o4 = t7;
|
|
@@ -20480,23 +20454,23 @@ class pw {
|
|
|
20480
20454
|
ww.colStart = n4.colIndex, ww.rowStart = n4.rowIndex, ww.colEnd = r4.colIndex, ww.rowEnd = r4.rowIndex;
|
|
20481
20455
|
const o4 = Y.intersectRanges(ww, F2, Sw), s2 = tf(0, o4, e4, b2).getBestFit();
|
|
20482
20456
|
if (c2) {
|
|
20483
|
-
const t8 = Math.max(n4.rowIndex, D2), e5 = { address: { min: t8, max: Math.min(r4.rowIndex, B2) }, update: { size:
|
|
20484
|
-
|
|
20457
|
+
const t8 = Math.max(n4.rowIndex, D2), e5 = { address: { min: t8, max: Math.min(r4.rowIndex, B2) }, update: { size: N2(s2.height), autoSize: true } };
|
|
20458
|
+
W2.push(e5);
|
|
20485
20459
|
}
|
|
20486
20460
|
if (l2) {
|
|
20487
|
-
const t8 = Math.max(n4.colIndex, O2), e5 = { address: { min: t8, max: Math.min(r4.colIndex, L2) }, update: { size:
|
|
20488
|
-
|
|
20461
|
+
const t8 = Math.max(n4.colIndex, O2), e5 = { address: { min: t8, max: Math.min(r4.colIndex, L2) }, update: { size: T2(s2.width), autoSize: true } };
|
|
20462
|
+
j2.push(e5);
|
|
20489
20463
|
}
|
|
20490
20464
|
$2 = V2.next();
|
|
20491
20465
|
}
|
|
20492
|
-
if (
|
|
20493
|
-
let t7 = this._colHeaders.updateHeaderPairs(
|
|
20466
|
+
if (j2) {
|
|
20467
|
+
let t7 = this._colHeaders.updateHeaderPairs(j2, R2);
|
|
20494
20468
|
t7 = ra(oa(sa(t7)));
|
|
20495
20469
|
const e4 = H2(F2.colStart, F2.colEnd, t7);
|
|
20496
20470
|
e4 && this._colHeaders.updateHeaderPairs(e4, R2);
|
|
20497
20471
|
}
|
|
20498
|
-
if (
|
|
20499
|
-
let t7 = this._rowHeaders.updateHeaderPairs(
|
|
20472
|
+
if (W2) {
|
|
20473
|
+
let t7 = this._rowHeaders.updateHeaderPairs(W2, R2);
|
|
20500
20474
|
t7 = ra(oa(sa(t7)));
|
|
20501
20475
|
const e4 = H2(F2.rowStart, F2.rowEnd, t7);
|
|
20502
20476
|
e4 && this._rowHeaders.updateHeaderPairs(e4, R2);
|
|
@@ -20518,17 +20492,17 @@ class pw {
|
|
|
20518
20492
|
} else u3 = 1, d3 = 1;
|
|
20519
20493
|
X2 = u3, Q2 = d3;
|
|
20520
20494
|
}
|
|
20521
|
-
const v3 = i2.colIndex, x3 = i2.rowIndex, R3 = t7[1],
|
|
20495
|
+
const v3 = i2.colIndex, x3 = i2.rowIndex, R3 = t7[1], N3 = $h(R3), T3 = Y.isCellWithinRange(i2, F2);
|
|
20522
20496
|
let O3 = false, D3 = false;
|
|
20523
|
-
if (U2 !== h3 || u3 !== M3 || d3 !== k2 ||
|
|
20524
|
-
if (O3 = true, (u3 > 1 || d3 > 1 ||
|
|
20497
|
+
if (U2 !== h3 || u3 !== M3 || d3 !== k2 || N3 === s.String || N3 === s.Error || T3 !== m3) {
|
|
20498
|
+
if (O3 = true, (u3 > 1 || d3 > 1 || N3 === s.RichData) && (D3 = true), !D3 && l3) {
|
|
20525
20499
|
const t8 = c3.getAlignment().getHorizontal();
|
|
20526
20500
|
t8 !== Zs.HorizontalAlignment.CenterContinuous && t8 !== Zs.HorizontalAlignment.Fill || (D3 = true);
|
|
20527
20501
|
}
|
|
20528
20502
|
D3 && (O3 = false);
|
|
20529
20503
|
}
|
|
20530
|
-
if (U2 = h3, q2 = C3, (g3 !== v3 || O3) && (g3 !== v3 && (A3 = this._colHeaders.getSpanSize(v3)), -1 !== g3 && e3.push({ col: g3, style: I3, spanWidth: u3, spanHeight: d3, minVal: n3, maxVal: r3, hasZero: o3, text: a3, textId: f2, hasFalse: _2, hasTrue: p2, hasEmpty: S2, minRow: w2, maxRow: y2, colWidth: A3, measureWidth: -1, measureHeight: -1, isFit: m3 }), g3 = v3, I3 = c3, m3 =
|
|
20531
|
-
else switch (
|
|
20504
|
+
if (U2 = h3, q2 = C3, (g3 !== v3 || O3) && (g3 !== v3 && (A3 = this._colHeaders.getSpanSize(v3)), -1 !== g3 && e3.push({ col: g3, style: I3, spanWidth: u3, spanHeight: d3, minVal: n3, maxVal: r3, hasZero: o3, text: a3, textId: f2, hasFalse: _2, hasTrue: p2, hasEmpty: S2, minRow: w2, maxRow: y2, colWidth: A3, measureWidth: -1, measureHeight: -1, isFit: m3 }), g3 = v3, I3 = c3, m3 = T3, M3 = u3, k2 = d3, n3 = Number.MAX_SAFE_INTEGER, r3 = Number.MIN_SAFE_INTEGER, o3 = false, a3 = "", f2 = -1, _2 = false, p2 = false, S2 = false, w2 = x3), y2 = x3, !D3) if (null === R3) S2 = true;
|
|
20505
|
+
else switch (N3) {
|
|
20532
20506
|
case s.Number:
|
|
20533
20507
|
0 === R3 && (o3 = true), n3 = Math.min(n3, R3), r3 = Math.max(r3, R3);
|
|
20534
20508
|
break;
|
|
@@ -20584,7 +20558,7 @@ class pw {
|
|
|
20584
20558
|
let s2 = e3[n4 + 1], i2 = r4.measureWidth ?? 0;
|
|
20585
20559
|
for (; s2 && s2.col === o4; ) s2.measureWidth && (i2 = Math.max(s2.measureWidth ?? 0, i2)), n4++, r4 = e3[n4], s2 = e3[n4 + 1];
|
|
20586
20560
|
0 === i2 && (i2 = null);
|
|
20587
|
-
const a4 =
|
|
20561
|
+
const a4 = T2(i2, r4.spanWidth);
|
|
20588
20562
|
t7.push({ address: { min: o4, max: o4 }, update: { size: a4, autoSize: true } });
|
|
20589
20563
|
}
|
|
20590
20564
|
this._colHeaders.updateHeaderPairs(t7, R2);
|
|
@@ -20602,7 +20576,7 @@ class pw {
|
|
|
20602
20576
|
}
|
|
20603
20577
|
const o4 = r4.length, s2 = new Array(o4);
|
|
20604
20578
|
for (let t8 = 0; t8 < o4; t8++) {
|
|
20605
|
-
const e4 = r4[t8], n5 =
|
|
20579
|
+
const e4 = r4[t8], n5 = N2(e4.value, 1), o5 = { address: { min: e4.min, max: e4.max }, update: { size: n5, autoSize: true } };
|
|
20606
20580
|
s2[t8] = o5;
|
|
20607
20581
|
}
|
|
20608
20582
|
this._rowHeaders.updateHeaderPairs(s2, R2);
|
|
@@ -21239,7 +21213,7 @@ class pw {
|
|
|
21239
21213
|
const n3 = [], r3 = o2.length;
|
|
21240
21214
|
for (let e3 = 0; e3 < r3; e3++) {
|
|
21241
21215
|
const r4 = o2[e3], s2 = t6.getElementID(r4.value.toJSON());
|
|
21242
|
-
n3.push({ r:
|
|
21216
|
+
n3.push({ r: Wf.rangeToString(r4), v: s2 });
|
|
21243
21217
|
}
|
|
21244
21218
|
if (e2.directStyles = n3, this._ownStyles) {
|
|
21245
21219
|
const n4 = t6.toJSON();
|
|
@@ -21257,7 +21231,7 @@ class pw {
|
|
|
21257
21231
|
for (let e3 = 0; e3 < l2; e3++) {
|
|
21258
21232
|
const n3 = a2[e3];
|
|
21259
21233
|
let r3 = n3.value;
|
|
21260
|
-
t6.push({ r:
|
|
21234
|
+
t6.push({ r: Wf.rangeToString(n3), v: r3 });
|
|
21261
21235
|
}
|
|
21262
21236
|
e2.hyperlinks = t6;
|
|
21263
21237
|
}
|
|
@@ -21266,7 +21240,7 @@ class pw {
|
|
|
21266
21240
|
const t6 = [];
|
|
21267
21241
|
for (let e3 = 0; e3 < h2; e3++) {
|
|
21268
21242
|
const n3 = c2[e3], r3 = { ...n3.value };
|
|
21269
|
-
r3.ref =
|
|
21243
|
+
r3.ref = Wf.rangeToString(n3), t6.push(r3);
|
|
21270
21244
|
}
|
|
21271
21245
|
e2.comments = t6;
|
|
21272
21246
|
}
|
|
@@ -21387,7 +21361,7 @@ class pw {
|
|
|
21387
21361
|
async _addImage(t5, e2 = { type: "picture" }) {
|
|
21388
21362
|
if (!t5) throw new Error("An image must be provided as a string or a resource option.");
|
|
21389
21363
|
if (!this.getProtection().isObjectsAllowed()) throw new Error(fd);
|
|
21390
|
-
const n2 = this._resources.add(t5), r2 = await n2.toBuffer(), o2 = await n2.getType(), s2 = this._getBoundsAtCoords(Lf(this.getSelection().getCoords())[0]), { naturalDimensions: i2, asUrl: a2 } = await
|
|
21364
|
+
const n2 = this._resources.add(t5), r2 = await n2.toBuffer(), o2 = await n2.getType(), s2 = this._getBoundsAtCoords(Lf(this.getSelection().getCoords())[0]), { naturalDimensions: i2, asUrl: a2 } = await Tt.loadImageDetails(r2, o2);
|
|
21391
21365
|
URL.revokeObjectURL(a2);
|
|
21392
21366
|
const l2 = { ...s2, ...i2, ...e2?.bounds };
|
|
21393
21367
|
if (bt.isNullOrUndefined(e2?.bounds?.x) || bt.isNullOrUndefined(e2?.bounds?.y)) {
|
|
@@ -21490,7 +21464,7 @@ class pw {
|
|
|
21490
21464
|
return { colStart: n2.findIndex(t5.x), rowStart: e2.findIndex(t5.y), colEnd: n2.findIndex(t5.x + t5.width), rowEnd: e2.findIndex(t5.y + t5.height) };
|
|
21491
21465
|
}
|
|
21492
21466
|
getRangeAtBounds(t5, e2) {
|
|
21493
|
-
if (!t5) throw new
|
|
21467
|
+
if (!t5) throw new Wt();
|
|
21494
21468
|
const n2 = this._getCoordsAtBounds(t5);
|
|
21495
21469
|
return this.getRange(n2, e2);
|
|
21496
21470
|
}
|
|
@@ -21827,7 +21801,7 @@ class pw {
|
|
|
21827
21801
|
} }, c2 = new YS({ sheet: this });
|
|
21828
21802
|
this._view = c2, this._clearState(), this._viewRemoveListener = c2.addListeners(l2, { transactional: false }), this._viewListener = l2, this._colHeadersRemoveListener?.();
|
|
21829
21803
|
const h2 = () => Math.round(this._defaultFontDims().width);
|
|
21830
|
-
this._colHeaders = new
|
|
21804
|
+
this._colHeaders = new jS({ sheet: t5, orientation: i.Orientation.Column, maxSheetCoords: this._entireCoords, transactions: this._transactions, isProtected: () => !t5._initializing && !t5.getProtection().isFormatColumnsAllowed(), getTextAt: (t6) => {
|
|
21831
21805
|
const e3 = this.getView().getColumnHeaderStyle();
|
|
21832
21806
|
return e3 === $_.HeaderTextStyle.A1 ? uw(t6) : e3 === $_.HeaderTextStyle.Zero ? hw(t6) : e3 === $_.HeaderTextStyle.One ? dw(t6) : void 0;
|
|
21833
21807
|
}, defaultSize: () => {
|
|
@@ -21837,7 +21811,7 @@ class pw {
|
|
|
21837
21811
|
this._colHeadersShiftCallback = t6;
|
|
21838
21812
|
} }), this._colHeadersRemoveListener = this._colHeaders.addListeners(this._colHeadersListener, { transactional: true }), this._rowHeadersRemoveListener?.();
|
|
21839
21813
|
const u2 = Ai.getDeviceScale();
|
|
21840
|
-
this._rowHeaders = new
|
|
21814
|
+
this._rowHeaders = new jS({ sheet: t5, orientation: i.Orientation.Row, maxSheetCoords: this._entireCoords, transactions: this._transactions, isProtected: () => !t5._initializing && !t5.getProtection().isFormatRowsAllowed(), getTextAt: (t6) => {
|
|
21841
21815
|
const e3 = this.getView().getRowHeaderStyle();
|
|
21842
21816
|
return e3 === $_.HeaderTextStyle.One ? dw(t6) : e3 === $_.HeaderTextStyle.Zero ? hw(t6) : e3 === $_.HeaderTextStyle.A1 ? uw(t6) : void 0;
|
|
21843
21817
|
}, defaultSize: () => this._defaultRowHeight(), scaleFactor: () => u2, minSize: () => 0, maxSize: () => 409, setContainerShiftedCallback: (t6) => {
|
|
@@ -22220,7 +22194,7 @@ class pw {
|
|
|
22220
22194
|
const p2 = this._entireCoords, _2 = c2.directStyleSpatial, S2 = c2.continuousFillSpatial, w2 = this._options.styles;
|
|
22221
22195
|
if (t5.directStyles) {
|
|
22222
22196
|
const e3 = [], n3 = [], r3 = t5.directStyles, o3 = (t6, r4) => {
|
|
22223
|
-
const o4 = l2.getElementJSON(r4), s2 = new
|
|
22197
|
+
const o4 = l2.getElementJSON(r4), s2 = new Wm(w2, Y.sanitizeRange(t6), o4), i2 = { ...t6, value: s2 };
|
|
22224
22198
|
e3.push(i2);
|
|
22225
22199
|
const a3 = s2._p?.alignment?.horizontal;
|
|
22226
22200
|
!a3 || a3 !== Zs.HorizontalAlignment.CenterContinuous && a3 !== Zs.HorizontalAlignment.Fill || n3.push(i2);
|
|
@@ -22282,25 +22256,25 @@ class pw {
|
|
|
22282
22256
|
}
|
|
22283
22257
|
I2.load(t6);
|
|
22284
22258
|
}
|
|
22285
|
-
const R2 = c2.tableMapModel, A2 = c2.tableMapName, M2 = c2.tableSpatial,
|
|
22286
|
-
if (
|
|
22287
|
-
const t6 = [], e3 =
|
|
22259
|
+
const R2 = c2.tableMapModel, A2 = c2.tableMapName, M2 = c2.tableSpatial, N2 = n2.tables;
|
|
22260
|
+
if (N2) {
|
|
22261
|
+
const t6 = [], e3 = N2.length;
|
|
22288
22262
|
for (let n3 = 0; n3 < e3; n3++) {
|
|
22289
|
-
const e4 =
|
|
22263
|
+
const e4 = N2[n3], r3 = this._createTableEntry(e4), o3 = r3.value.model;
|
|
22290
22264
|
R2.set(o3, r3), A2.set(r3.value.currentName, o3), t6.push(r3);
|
|
22291
22265
|
}
|
|
22292
22266
|
M2.load(t6);
|
|
22293
22267
|
}
|
|
22294
|
-
const
|
|
22268
|
+
const T2 = c2.conditionalSpatial, k2 = c2.conditionalModels, F2 = n2.conditionals;
|
|
22295
22269
|
if (F2) {
|
|
22296
22270
|
const t6 = F2.length;
|
|
22297
22271
|
for (let e3 = 0; e3 < t6; e3++) {
|
|
22298
22272
|
const t7 = F2[e3];
|
|
22299
|
-
this._createConditionalEntries(t7,
|
|
22273
|
+
this._createConditionalEntries(t7, T2, k2);
|
|
22300
22274
|
}
|
|
22301
22275
|
}
|
|
22302
22276
|
const O2 = c2.calcGraph, D2 = O2.fromJSON({ formulas: n2.formulas, data: f2, dynamic: n2.dynamicArray, volatile: n2.volatile });
|
|
22303
|
-
c2 = this._updateState({ hyperlinkSpatial: E2, commentsSpatial: C2, movableSpatial: I2, movableMapModel: x2, tableSpatial: M2, tableMapModel: R2, tableMapName: A2, conditionalSpatial:
|
|
22277
|
+
c2 = this._updateState({ hyperlinkSpatial: E2, commentsSpatial: C2, movableSpatial: I2, movableMapModel: x2, tableSpatial: M2, tableMapModel: R2, tableMapName: A2, conditionalSpatial: T2, conditionalModels: k2, calcGraph: O2 });
|
|
22304
22278
|
const L2 = this._getUsedCoords();
|
|
22305
22279
|
L2 && this._autoFit([L2], { orientations: i.Orientations.Row, skipCustomSize: true }), e2.commit(), D2 && this._realizeCalcedValues(D2), n2.protection && this._protection.fromJSON(n2.protection), this._emitter.notify("onLoad");
|
|
22306
22280
|
} finally {
|
|
@@ -22356,7 +22330,7 @@ class pw {
|
|
|
22356
22330
|
const _w = { address: null, scope: null }, Sw = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, ww = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, yw = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Ew = { includeHidden: false };
|
|
22357
22331
|
Object.freeze({ [Ad.Content.Values]: Number.MAX_SAFE_INTEGER, [Ad.Content.Formulas]: Number.MAX_SAFE_INTEGER }), Object.freeze({ [Ad.Content.Values]: 1, [Ad.Content.Formulas]: 1 });
|
|
22358
22332
|
const bw = { ignoreDataChanges: false }, Cw = { colStart: -1, rowStart: -1, colEnd: -1, rowEnd: -1 }, vw = [{ colIndex: -1, rowIndex: -1 }, null, null, null, null], xw = [Ad.Content.Values], Iw = { size: null, autoSize: true }, Rw = { skipCustomSize: true, expandOnly: true, minContent: true }, Aw = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Mw = { showFormulaBar: true, showTabs: true, tabRatio: 600, showHorizontalScrollbar: true, showVerticalScrollbar: true, showStatusBar: true, activeSheetId: null };
|
|
22359
|
-
class
|
|
22333
|
+
class Nw {
|
|
22360
22334
|
constructor(t5) {
|
|
22361
22335
|
this._emitter = null, this._emitter = new Ml(this), this._state = { ...Mw }, t5?.json && this._fromJSON(t5?.json);
|
|
22362
22336
|
}
|
|
@@ -22422,7 +22396,7 @@ class Tw {
|
|
|
22422
22396
|
this._state = { ...Mw, ...this._state, ...t5 }, e2 && this._emitter.notify("onViewChange");
|
|
22423
22397
|
}
|
|
22424
22398
|
}
|
|
22425
|
-
class
|
|
22399
|
+
class Tw {
|
|
22426
22400
|
constructor(t5) {
|
|
22427
22401
|
this._emitter = null, this._closed = false, this._options = { ...t5 };
|
|
22428
22402
|
const e2 = this;
|
|
@@ -22663,7 +22637,7 @@ const Pw = async (t5, e2) => {
|
|
|
22663
22637
|
}
|
|
22664
22638
|
return new Bw({ json: t5, readonlyFunctions: r2 });
|
|
22665
22639
|
};
|
|
22666
|
-
class
|
|
22640
|
+
class Ww {
|
|
22667
22641
|
constructor(t5) {
|
|
22668
22642
|
this._options = t5, this._initState();
|
|
22669
22643
|
}
|
|
@@ -22673,7 +22647,7 @@ class jw {
|
|
|
22673
22647
|
return this._modules;
|
|
22674
22648
|
}
|
|
22675
22649
|
async createModule(t5) {
|
|
22676
|
-
const e2 = await import("./
|
|
22650
|
+
const e2 = await import("./Dd8svp0SZupg0qId.mjs"), n2 = await e2.ScriptingUtils.compileTypescript(t5);
|
|
22677
22651
|
return n2 ? await zw(n2, t5?.declarationsOnly ?? false) : null;
|
|
22678
22652
|
}
|
|
22679
22653
|
addModule(t5, e2, n2) {
|
|
@@ -22714,7 +22688,7 @@ class jw {
|
|
|
22714
22688
|
n2[o3] = i2;
|
|
22715
22689
|
}
|
|
22716
22690
|
}
|
|
22717
|
-
const r2 = new
|
|
22691
|
+
const r2 = new Tw({ transactions: this._options?.transactions, initial: n2, onRemove: this._options?.onRemove, onAdd: this._options?.onAdd });
|
|
22718
22692
|
this._modules = r2;
|
|
22719
22693
|
const o2 = r2.search();
|
|
22720
22694
|
if (0 === o2.length) return Promise.resolve(bt.EmptyArray);
|
|
@@ -22738,7 +22712,7 @@ class jw {
|
|
|
22738
22712
|
return t5.toJSON();
|
|
22739
22713
|
}
|
|
22740
22714
|
}
|
|
22741
|
-
const
|
|
22715
|
+
const jw = Object.freeze({ lockStructure: false, lockWindows: false, lockRevision: false, workbookPassword: null, revisionsPassword: null });
|
|
22742
22716
|
class Hw extends rw {
|
|
22743
22717
|
isWindowsAllowed() {
|
|
22744
22718
|
return this._isPropertyAllowed("windows");
|
|
@@ -22759,7 +22733,7 @@ class Hw extends rw {
|
|
|
22759
22733
|
const n2 = Object.keys(e2), r2 = n2.length;
|
|
22760
22734
|
for (let o2 = 0; o2 < r2; o2++) {
|
|
22761
22735
|
const r3 = n2[o2], s2 = e2[r3];
|
|
22762
|
-
null != s2 && s2 !==
|
|
22736
|
+
null != s2 && s2 !== jw[r3] && (t5[r3] = s2);
|
|
22763
22737
|
}
|
|
22764
22738
|
}
|
|
22765
22739
|
return super._toJSON(t5);
|
|
@@ -22810,7 +22784,7 @@ class oy extends iw {
|
|
|
22810
22784
|
}
|
|
22811
22785
|
_createRanges(t5, e2) {
|
|
22812
22786
|
let n2 = this._options;
|
|
22813
|
-
return e2 && (n2 = { ...this._options, getOptions:
|
|
22787
|
+
return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
|
|
22814
22788
|
}
|
|
22815
22789
|
_createRange(t5, e2) {
|
|
22816
22790
|
const n2 = t5 ? { ...t5 } : null;
|
|
@@ -22819,7 +22793,7 @@ class oy extends iw {
|
|
|
22819
22793
|
return delete n2?.sheetName, ny(n2, n2 ? { sheetName: au, ...t6.getEntireRange().getCoords() } : null);
|
|
22820
22794
|
}
|
|
22821
22795
|
let r2 = this._options;
|
|
22822
|
-
return e2 && (r2 = { ...this._options, getOptions:
|
|
22796
|
+
return e2 && (r2 = { ...this._options, getOptions: Tf(this._options.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
|
|
22823
22797
|
}
|
|
22824
22798
|
async select(t5) {
|
|
22825
22799
|
const e2 = [];
|
|
@@ -22855,14 +22829,14 @@ class sy extends aw {
|
|
|
22855
22829
|
}
|
|
22856
22830
|
_createRanges(t5, e2) {
|
|
22857
22831
|
let n2 = this._options;
|
|
22858
|
-
return e2 && (n2 = { ...this._options, getOptions:
|
|
22832
|
+
return e2 && (n2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new oy(t5, this._sheet, this._workbook, n2);
|
|
22859
22833
|
}
|
|
22860
22834
|
_createRange(t5, e2) {
|
|
22861
22835
|
const n2 = this._sheet;
|
|
22862
22836
|
if (!t5) return bf(n2, n2._entireCoords);
|
|
22863
22837
|
if (n2._validateCoords(t5), n2._closed) return bf(null, n2._entireCoords, t5);
|
|
22864
22838
|
let r2 = this._options;
|
|
22865
|
-
return e2 && (r2 = { ...this._options, getOptions:
|
|
22839
|
+
return e2 && (r2 = { ...this._options, getOptions: Tf(this._options?.getOptions, e2) }), new sy(t5, this._sheet, this._workbook, r2);
|
|
22866
22840
|
}
|
|
22867
22841
|
getSource() {
|
|
22868
22842
|
return this._workbook;
|
|
@@ -22958,7 +22932,7 @@ class iy {
|
|
|
22958
22932
|
_initState() {
|
|
22959
22933
|
let t5 = this._getSheetRefs();
|
|
22960
22934
|
for (let e3 = t5 && t5.length - 1; e3 >= 0; e3--) ;
|
|
22961
|
-
this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new vl().getDefaultTheme(), this._styles = this._options?.styles ?? new dp(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new
|
|
22935
|
+
this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new vl().getDefaultTheme(), this._styles = this._options?.styles ?? new dp(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Nw()), this._listenerProtection?.(), this._protection = new Hw(void 0, this._options.readonly ?? false), this._listenerProtection = this._protection.addListeners({ onChange: (t6) => {
|
|
22962
22936
|
e2._emitter.notify("onProtectionChange");
|
|
22963
22937
|
} });
|
|
22964
22938
|
const e2 = this;
|
|
@@ -23360,7 +23334,7 @@ class iy {
|
|
|
23360
23334
|
"r" === e3 ? r3.rowStart = r3.rowEnd = n3.rowIndex : r3.colStart = r3.colEnd = n3.colIndex, t5 = r3;
|
|
23361
23335
|
}
|
|
23362
23336
|
}
|
|
23363
|
-
const a2 = this, l2 =
|
|
23337
|
+
const a2 = this, l2 = Tu(t5, s2, Ru, (t6) => {
|
|
23364
23338
|
if (!e2) return null;
|
|
23365
23339
|
if ("string" == typeof t6) {
|
|
23366
23340
|
const e3 = a2.getNames().getByName(t6);
|
|
@@ -23515,7 +23489,7 @@ class iy {
|
|
|
23515
23489
|
const e3 = o2[t6], n3 = e3.visibility || Z_.Visibility.Visible, r3 = t6 + 1;
|
|
23516
23490
|
n3 === Z_.Visibility.Visible ? a2 = r3 : null !== i2 && i2 === r3 && (i2 = null), this._createSheet(r3, e3.name, n3, void 0, e3.sheet);
|
|
23517
23491
|
}
|
|
23518
|
-
this._updateState({ lastId: a2 }), t5.names && this._names.fromJSON(t5.names), t5.view.activeSheetId = i2 ?? a2, this.setView(new
|
|
23492
|
+
this._updateState({ lastId: a2 }), t5.names && this._names.fromJSON(t5.names), t5.view.activeSheetId = i2 ?? a2, this.setView(new Nw({ json: t5.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
|
|
23519
23493
|
const l2 = this;
|
|
23520
23494
|
this._protection = new Hw(t5?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (t6) => {
|
|
23521
23495
|
l2._emitter.notify("onProtectionChange", { source: t6 });
|
|
@@ -23525,7 +23499,7 @@ class iy {
|
|
|
23525
23499
|
}
|
|
23526
23500
|
}
|
|
23527
23501
|
_createScripts(t5) {
|
|
23528
|
-
return new
|
|
23502
|
+
return new Ww({ transactions: this._transactions, json: t5, workbook: this, onAdd: (t6, e2) => {
|
|
23529
23503
|
const n2 = this._calculation;
|
|
23530
23504
|
n2.getStatus() !== Ep.Status.Off && n2.start().then(() => {
|
|
23531
23505
|
const t7 = e2.getFunctions().search({ type: "formula" });
|
|
@@ -23635,14 +23609,14 @@ class iy {
|
|
|
23635
23609
|
}
|
|
23636
23610
|
const ay = { address: null, scope: null };
|
|
23637
23611
|
export {
|
|
23638
|
-
|
|
23612
|
+
Wf as AddressUtils,
|
|
23639
23613
|
x as AnchorLocation,
|
|
23640
23614
|
da as AutoFill,
|
|
23641
23615
|
It as BufferUtils,
|
|
23642
23616
|
L_ as Calculation,
|
|
23643
23617
|
Lt as ChainedError,
|
|
23644
23618
|
Zt as ClipboardUtils,
|
|
23645
|
-
|
|
23619
|
+
Na as Color,
|
|
23646
23620
|
Ct as CommonMessages,
|
|
23647
23621
|
bt as CommonUtils,
|
|
23648
23622
|
Y as CoordUtils,
|
|
@@ -23654,8 +23628,8 @@ export {
|
|
|
23654
23628
|
l as FormulaError,
|
|
23655
23629
|
Qe as GeomUtils,
|
|
23656
23630
|
Il as IAnchored,
|
|
23657
|
-
|
|
23658
|
-
|
|
23631
|
+
W_ as IAutoFilter,
|
|
23632
|
+
Ta as IBorder,
|
|
23659
23633
|
Ep as ICalculation,
|
|
23660
23634
|
Ad as ICell,
|
|
23661
23635
|
P_ as ICellHeaderRange,
|
|
@@ -23678,26 +23652,26 @@ export {
|
|
|
23678
23652
|
Zs as ITextFrame,
|
|
23679
23653
|
el as ITheme,
|
|
23680
23654
|
nl as IThemeCollection,
|
|
23681
|
-
|
|
23655
|
+
Tt as ImageUtils,
|
|
23682
23656
|
se as InternalClipboard,
|
|
23683
23657
|
kt as JSONStableStringify,
|
|
23684
|
-
|
|
23658
|
+
We as LicenseManager,
|
|
23685
23659
|
I as MimeType,
|
|
23686
23660
|
Ht as NotImplementedError,
|
|
23687
|
-
|
|
23661
|
+
Wt as NullNotAllowedError,
|
|
23688
23662
|
Ka as NumberFormat,
|
|
23689
23663
|
_ as Observable,
|
|
23690
23664
|
Pt as OutOfBoundsError,
|
|
23691
23665
|
zt as PartialError,
|
|
23692
23666
|
bp as Picture,
|
|
23693
23667
|
Y_ as RangeClipboardItem,
|
|
23694
|
-
|
|
23668
|
+
T as RangeOrientation,
|
|
23695
23669
|
k as RangeOrientations,
|
|
23696
23670
|
fp as Resource,
|
|
23697
23671
|
_p as ResourceCollection,
|
|
23698
23672
|
s as ScalarType,
|
|
23699
23673
|
pw as Sheet,
|
|
23700
|
-
|
|
23674
|
+
Ni as SimpleFontFace,
|
|
23701
23675
|
Fl as Sort,
|
|
23702
23676
|
wp as StringCollection,
|
|
23703
23677
|
S as StubbedFormulaContext,
|
|
@@ -23710,13 +23684,13 @@ export {
|
|
|
23710
23684
|
ue as TransactionStore,
|
|
23711
23685
|
fe as TransactionUndoManager,
|
|
23712
23686
|
dn as Tuple,
|
|
23713
|
-
|
|
23687
|
+
jt as TypedError,
|
|
23714
23688
|
Ot as TypedObject,
|
|
23715
|
-
|
|
23689
|
+
N as TypesUtils,
|
|
23716
23690
|
ae as UndoManager,
|
|
23717
23691
|
Bt as UserError,
|
|
23718
23692
|
iy as Workbook,
|
|
23719
|
-
|
|
23693
|
+
Nw as WorkbookView,
|
|
23720
23694
|
$S as a,
|
|
23721
23695
|
VS as b,
|
|
23722
23696
|
qh as c,
|