@sheetxl/sdk 0.6.10 → 0.6.12
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/{kJJD1qhHnJuAQ_SR.cjs → B1zWd3st1ozR250n.cjs} +1 -1
- package/browser/cjs/{DLCBd2khaRDayLV8.cjs → BB6vCaGGLDjHxJQI.cjs} +1 -1
- package/browser/cjs/{BLjt3M__FbocaxsQ.cjs → BK2sbrJDcVCNWEQH.cjs} +1 -1
- package/browser/cjs/{ByD6TAQltzv7183W.cjs → BSifzyneq21ybUi5.cjs} +3 -3
- package/browser/cjs/{C7AfDCZ-fY17nv0q.cjs → BXYrX2lIdSOARu4H.cjs} +1 -1
- package/browser/cjs/{B2NYIFfS1pGlincD.cjs → B_3Zj1bW7tkLwqqW.cjs} +1 -1
- package/browser/cjs/{Cr_AmcD3luMLvRtL.cjs → Bnp1bjxFGNPxQCbM.cjs} +1 -1
- package/browser/cjs/{DVdcC0aLx_u4s3Ql.cjs → BwEvFCusE_TJCzgb.cjs} +1 -1
- package/browser/cjs/{BC7VBU1_Wpl0Di2U.cjs → BxjB5h-Xg0A8N1AR.cjs} +1 -1
- package/browser/cjs/{CS7tC7wC-1IsYcq5.cjs → C-fip5g_xikmRmDT.cjs} +1 -1
- package/browser/cjs/{DpJMX_08dM3HK1y7.cjs → C0ZMw0y3G6zdIaQG.cjs} +1 -1
- package/browser/cjs/{C8Ahdl69XtERyIyg.cjs → C19WOy0GLFLOY8ck.cjs} +1 -1
- package/browser/cjs/{DtrIr0UpteUDosDw.cjs → C1Smy4MKFJ3pB8l1.cjs} +1 -1
- package/browser/cjs/{2OZ2XYji0QVhHafF.cjs → CWy_J48Xrr9hTfJV.cjs} +1 -1
- package/browser/cjs/{C-l3kX1tTJuLLGHM.cjs → CwgOy6GOeB_w6_yn.cjs} +1 -1
- package/browser/cjs/D9AcAGDT1IutKwML.cjs +54 -0
- package/browser/cjs/{u9aOv3NkeqWPEnIN.cjs → DCfUdgP7Qh5zLu_S.cjs} +2 -2
- package/browser/cjs/{DxeRBAbZBBGzzuxa.cjs → DSC2UXN01jb6tdhz.cjs} +1 -1
- package/browser/cjs/{DysvCDF-J-UsNTf3.cjs → DeDJah0RnFnMP8rO.cjs} +1 -1
- package/browser/cjs/{pHI3E3ze3oXdOAsj.cjs → Dh6qUnuK7BxsfXRw.cjs} +1 -1
- package/browser/cjs/{WDe-6XKGlY0TFeDz.cjs → DmjKSO008oGcN9VL.cjs} +1 -1
- package/browser/cjs/{BOVTRHktxQAnM0A1.cjs → Dnc3kI4srJLGVmJn.cjs} +1 -1
- package/browser/cjs/{jwkAn1ue1dA6Jfz1.cjs → DzHRsnF-FhIY0PD9.cjs} +1 -1
- package/browser/cjs/{i7a7nCjRVnxbg1rE.cjs → DzP68lkKL4yXIkav.cjs} +2 -2
- package/browser/cjs/{BcbdV2iI_us8L90m.cjs → GJAx3q4wCjlYr5DB.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{CBQhrBRh5y4uVatW.cjs → pFuL393J5zc42aQN.cjs} +1 -1
- package/browser/cjs/{DLNCV4aKhIbye0en.cjs → qFWg_M-b3Ctgq0ZF.cjs} +1 -1
- package/{node/esm/BIjdS2MKSEYAdAsu.mjs → browser/esm/B4VMgA6g5-9VwnyF.mjs} +1 -1
- package/{node/esm/DunQ2mhBc2eq0aQQ.mjs → browser/esm/B7yI-hHeNYbwvtLM.mjs} +1 -1
- package/browser/esm/{DV2DbLLDcYCjuNs5.mjs → BA6MAyuNluTlgNUU.mjs} +1 -1
- package/browser/esm/{DjZgldItQEVZw8m8.mjs → B_pC9iGtnyasAnay.mjs} +1 -1
- package/{node/esm/Bzxos6XaLwkHnjw5.mjs → browser/esm/BiGFS2hKcu_O6F9-.mjs} +1 -1
- package/browser/esm/{CVTEC7hQF7J2QS_Y.mjs → BkgOIotQjkaBsv6l.mjs} +1 -1
- package/{node/esm/DXpF2Aw0-VRWU7Jn.mjs → browser/esm/Bs13LyExFQBF5ziS.mjs} +1 -1
- package/browser/esm/{-1R9Gmxjsic9GZ8C.mjs → BsLsjMcWZoi0_PNG.mjs} +1 -1
- package/{node/esm/CAegSu4ZPuPArotE.mjs → browser/esm/BvNssETbqnDUrWaE.mjs} +1 -1
- package/browser/esm/{CuMR0epKrUCZyhWz.mjs → C59bvecNTUTRBpT3.mjs} +1 -1
- package/browser/esm/{dsBcK4QGe_zSkMsp.mjs → C7ytBIR4YVhNd400.mjs} +1 -1
- package/browser/esm/{sJWWOu1kh1gMAkYQ.mjs → C8FTVudRau0L-X3y.mjs} +1 -1
- package/{node/esm/J3NpGGoFL3GSkKtL.mjs → browser/esm/CVdQI5RZGoSC4A67.mjs} +1 -1
- package/browser/esm/{90S8euK4swdkO8Ti.mjs → CkVncRXs3zxlXcN1.mjs} +2 -2
- package/browser/esm/{D9TXR0ribGAEm_nB.mjs → CxeqaMqxhm6cjo9h.mjs} +2 -2
- package/browser/esm/{BBqvQt7oA_HexsyU.mjs → DY93noNoenzdZnq2.mjs} +1 -1
- package/browser/esm/{BmNSNMSshOeynT5V.mjs → Dkok60jUniz6HTlH.mjs} +1 -1
- package/{node/esm/Dxnxz6lv6UME8Ux1.mjs → browser/esm/DrHCgcLjcr0EdL2h.mjs} +1 -1
- package/browser/esm/{wV9d-D720E5iTgiZ.mjs → HINsM-oJV0anMFQ3.mjs} +1 -1
- package/browser/esm/{CnEwL9atF_U4Qxkk.mjs → KcL8mZn8m5ARBPx2.mjs} +1 -1
- package/{node/esm/Cm8dJb5cBI3nxWVq.mjs → browser/esm/Q4XFMgKjDEuagKj_.mjs} +1 -1
- package/browser/esm/{DPjkihAePf1X1MvT.mjs → TBLTpDtYZ0mEwE7r.mjs} +5015 -5012
- package/browser/esm/{prPoJqjwvMP6Jp2d.mjs → ZUsSL4eqtp9AnIUN.mjs} +1 -1
- package/{node/esm/DYAH43HIRWXwbkrH.mjs → browser/esm/hWaTWtTIod5bIIk5.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{BuYYH9m6plNJbK9h.mjs → l33rm1-Istq3IaJs.mjs} +1 -1
- package/browser/esm/{H2dvgVTfFmLYKsaR.mjs → lXjOin-xLosMAppt.mjs} +1 -1
- package/browser/esm/{qGF1wJBzEV4nDceo.mjs → ywyRLb79ZIvblLh-.mjs} +3 -3
- package/node/esm/{7H3yxcnDV3XLhva8.mjs → 3oDj1dTnCbDwAhJV.mjs} +2 -2
- package/node/esm/{BojveOtmE7xMbPtQ.mjs → 7ZS04uQ7l-rCXu-8.mjs} +1 -1
- package/{browser/esm/BIjdS2MKSEYAdAsu.mjs → node/esm/B4VMgA6g5-9VwnyF.mjs} +1 -1
- package/{browser/esm/DunQ2mhBc2eq0aQQ.mjs → node/esm/B7yI-hHeNYbwvtLM.mjs} +1 -1
- package/node/esm/{Dmi_acXP66kUBEAS.mjs → BC7mf8IrN4m-u-kn.mjs} +1 -1
- package/node/esm/{CaqXgkKRzOaBYS5l.mjs → BJaoqTkQvn0_H-a7.mjs} +1 -1
- package/{browser/esm/Bzxos6XaLwkHnjw5.mjs → node/esm/BiGFS2hKcu_O6F9-.mjs} +1 -1
- package/node/esm/{CVTEC7hQF7J2QS_Y.mjs → BkgOIotQjkaBsv6l.mjs} +1 -1
- package/node/esm/{CKJvZ3k1v8ETXIis.mjs → Bm_EVrik9OrtAaDp.mjs} +1 -1
- package/{browser/esm/DXpF2Aw0-VRWU7Jn.mjs → node/esm/Bs13LyExFQBF5ziS.mjs} +1 -1
- package/node/esm/{-1R9Gmxjsic9GZ8C.mjs → BsLsjMcWZoi0_PNG.mjs} +1 -1
- package/{browser/esm/CAegSu4ZPuPArotE.mjs → node/esm/BvNssETbqnDUrWaE.mjs} +1 -1
- package/{browser/esm/J3NpGGoFL3GSkKtL.mjs → node/esm/CVdQI5RZGoSC4A67.mjs} +1 -1
- package/node/esm/{CyhB8oFUOUD-3j5G.mjs → Cepv_nCKh_KiXPso.mjs} +1 -1
- package/node/esm/{DjPbGw1XZovJY0Zg.mjs → DESXBdJuV9FtP2Rv.mjs} +1 -1
- package/node/esm/{BdxiWApp1wAGXbrK.mjs → DZKV8YMKiYEpXnE1.mjs} +1 -1
- package/node/esm/{BmNSNMSshOeynT5V.mjs → Dkok60jUniz6HTlH.mjs} +1 -1
- package/{browser/esm/Dxnxz6lv6UME8Ux1.mjs → node/esm/DrHCgcLjcr0EdL2h.mjs} +1 -1
- package/node/esm/{wV9d-D720E5iTgiZ.mjs → HINsM-oJV0anMFQ3.mjs} +1 -1
- package/node/esm/{CnEwL9atF_U4Qxkk.mjs → KcL8mZn8m5ARBPx2.mjs} +1 -1
- package/node/esm/{DYfoyGfCcVCiIKnt.mjs → MqFLkY02HqE70XzV.mjs} +1 -1
- package/{browser/esm/Cm8dJb5cBI3nxWVq.mjs → node/esm/Q4XFMgKjDEuagKj_.mjs} +1 -1
- package/node/esm/{prPoJqjwvMP6Jp2d.mjs → ZUsSL4eqtp9AnIUN.mjs} +1 -1
- package/{browser/esm/DYAH43HIRWXwbkrH.mjs → node/esm/hWaTWtTIod5bIIk5.mjs} +1 -1
- package/node/esm/index.mjs +668 -659
- package/node/esm/{BuYYH9m6plNJbK9h.mjs → l33rm1-Istq3IaJs.mjs} +1 -1
- package/package.json +4 -4
- package/types/index.d.ts +4 -0
- package/types/scripting.d.ts +4 -0
- package/browser/cjs/CiR2qyYiwsFx9ldH.cjs +0 -54
package/node/esm/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.6.12
|
|
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.
|
|
@@ -18,8 +18,8 @@ const M = (t2, e2) => {
|
|
|
18
18
|
e2.get(r2) !== t3 && n2.set(r2, t3);
|
|
19
19
|
}), n2;
|
|
20
20
|
};
|
|
21
|
-
let
|
|
22
|
-
class
|
|
21
|
+
let N = false;
|
|
22
|
+
class T {
|
|
23
23
|
constructor(t2) {
|
|
24
24
|
this._record = t2;
|
|
25
25
|
}
|
|
@@ -44,15 +44,15 @@ class N {
|
|
|
44
44
|
}
|
|
45
45
|
class k {
|
|
46
46
|
constructor(t2) {
|
|
47
|
-
this._listeners = /* @__PURE__ */ new Set(), this._listenersState = /* @__PURE__ */ new Map(), this._commits = /* @__PURE__ */ new Map(), this._locked = false, this._current = null, this._pending = null, this._isSync = t2?.sync ??
|
|
48
|
-
const e2 = { id: "0", description: "initial", meta: {}, author: this._author, timestamp: Date.now(), states: /* @__PURE__ */ new Map(), version: 0, previousId: null }, n2 = { record: e2, commit: new
|
|
47
|
+
this._listeners = /* @__PURE__ */ new Set(), this._listenersState = /* @__PURE__ */ new Map(), this._commits = /* @__PURE__ */ new Map(), this._locked = false, this._current = null, this._pending = null, this._isSync = t2?.sync ?? N, this._isTransient = t2?.transient ?? false, this._author = t2?.author;
|
|
48
|
+
const e2 = { id: "0", description: "initial", meta: {}, author: this._author, timestamp: Date.now(), states: /* @__PURE__ */ new Map(), version: 0, previousId: null }, n2 = { record: e2, commit: new T(e2) };
|
|
49
49
|
this._current = n2, this._cacheModel = null, this._cacheState = null, this._states = e2.states, this._transactionStack = [], this._transactionOpen = false;
|
|
50
50
|
const r2 = /* @__PURE__ */ new Map();
|
|
51
51
|
r2.set(e2.id, n2), this._commits = r2;
|
|
52
52
|
}
|
|
53
53
|
static {
|
|
54
54
|
this.setDefaultSync = (t2) => {
|
|
55
|
-
|
|
55
|
+
N = t2;
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
getLog(t2, e2 = 100) {
|
|
@@ -132,7 +132,7 @@ class k {
|
|
|
132
132
|
};
|
|
133
133
|
let l2;
|
|
134
134
|
if (0 === n2.length) {
|
|
135
|
-
const e3 = this._current.record, n3 = { states: /* @__PURE__ */ new Map(), id: o.uuidV4(), description: "string" == typeof t2 ? t2 : t2?.description ?? null, meta: {}, timestamp: Date.now(), author: null, version: e3.version + 1, previousId: e3.id, viewBefore: null, viewAfter: {}, operation: t2?.operation }, r3 = { record: n3, commit: new
|
|
135
|
+
const e3 = this._current.record, n3 = { states: /* @__PURE__ */ new Map(), id: o.uuidV4(), description: "string" == typeof t2 ? t2 : t2?.description ?? null, meta: {}, timestamp: Date.now(), author: null, version: e3.version + 1, previousId: e3.id, viewBefore: null, viewAfter: {}, operation: t2?.operation }, r3 = { record: n3, commit: new T(n3) };
|
|
136
136
|
this._pending = r3, this._notify("onCommitStart", r3.commit), l2 = new O(this, r3, e3?.states, t2, a2);
|
|
137
137
|
} else {
|
|
138
138
|
l2 = n2[n2.length - 1].beginTransaction(t2, a2);
|
|
@@ -377,18 +377,18 @@ class L extends s {
|
|
|
377
377
|
}
|
|
378
378
|
const B = () => {
|
|
379
379
|
try {
|
|
380
|
-
return "0.6.
|
|
380
|
+
return "0.6.12";
|
|
381
381
|
} catch (t2) {
|
|
382
382
|
return "";
|
|
383
383
|
}
|
|
384
384
|
}, P = Object.freeze(Object.defineProperty({ __proto__: null, getBuildDate: () => {
|
|
385
385
|
try {
|
|
386
|
-
return "
|
|
386
|
+
return "Fri Aug 29 2025";
|
|
387
387
|
} catch (t2) {
|
|
388
388
|
return "";
|
|
389
389
|
}
|
|
390
390
|
}, getBuildVersion: B }, Symbol.toStringTag, { value: "Module" })), z = "\n███████╗██╗ ██╗███████╗███████╗████████╗ ██╗ ██╗██╗\n██╔════╝██║ ██║██╔════╝██╔════╝╚══██╔══╝ ╚██╗██╔╝██║\n███████╗███████║█████╗ █████╗ ██║ ╚███╔╝ ██║\n╚════██║██╔══██║██╔══╝ ██╔══╝ ██║ ██╔██╗ ██║\n███████║██║ ██║███████╗███████╗ ██║ ██╔╝ ██╗███████╗\n╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚══════╝", W = `
|
|
391
|
-
https://www.sheetxl.com ${B()}`, H = "#1976d2", V = "#FFA726",
|
|
391
|
+
https://www.sheetxl.com ${B()}`, H = "#1976d2", V = "#FFA726", $ = Object.freeze(Object.defineProperty({ __proto__: null, generateNodeId: async () => {
|
|
392
392
|
if (!o.isNode()) return null;
|
|
393
393
|
const t2 = await import(
|
|
394
394
|
/* @vite-ignore */
|
|
@@ -451,77 +451,101 @@ KeyFrom: '${t2.keyFrom()}'`, console.log(l2(o2))), Promise.resolve();
|
|
|
451
451
|
} catch (t3) {
|
|
452
452
|
console.warn("Unable to save license key to config store.");
|
|
453
453
|
}
|
|
454
|
-
} }, Symbol.toStringTag, { value: "Module" })),
|
|
454
|
+
} }, Symbol.toStringTag, { value: "Module" })), j = (t2, e2, n2 = 126) => ((t3, e3, n3 = 126) => {
|
|
455
455
|
let r2 = t3.split("");
|
|
456
456
|
for (let t4 = 0; t4 < r2.length; t4++) r2[t4].charCodeAt(0) <= n3 && (r2[t4] = String.fromCharCode((r2[t4].charCodeAt(0) + e3) % n3));
|
|
457
457
|
return r2.join("");
|
|
458
458
|
})(t2, n2 - e2), G = (t2) => "object" == typeof window ? window.atob(t2) : Buffer.from(t2, "base64").toString("ascii");
|
|
459
|
+
function U(t2, e2, n2, r2, o2) {
|
|
460
|
+
return ot(o2 - 669, r2);
|
|
461
|
+
}
|
|
462
|
+
function J() {
|
|
463
|
+
const t2 = ["hJtcNCoLzSk3WO3cKmoOW5BcHSkOwdBcOSoDzqVcUq", "sCoTWP7cRJ7cLa", "AXzadmo/W4ve", "W6pcG8kZW5aVWOnBW5ZdQq", "qt/cT8opW783vWym", "WOJcTCkyW59pW7e", "WQ3dShmvq2lcGa", "zSomaCkgWPZcS8kaWODsuX7cJXFdSXvC", "l33dP8kvWQ9HFWetphNcSW", "gmkPW5fdW61Ynmk1WQRcNHaoWP7cPmoQW5G", "WPJdK09fr8k4WRxcLa", "vCo6WP/cPcpcJ8o4", "WRX7qXHaWOu", "W6vMiJVdOSkAW7ai", "WRVcJ8kgW4PuW60JW6/cTa", "W5erWPvzW68", "W58kamkGWOq9grfYW5ldK8ogWQS", "WRVcQWFdIrNdRta", "WOP+zWjiWO3cJbFcOq", "dSo7eCkyWOTRxvGHW5e", "iSongmkgWOpdVmkEWO1umbZcMW3dPa", "WRNcJ8kMoejf", "EdVcS8ogW6W2", "WPieeSk8W64NxmomW6GfjL8", "f8k4W4NcNqVcRCo/B1O", "WQ/cVbZdHrNdSIy", "W5VdMJlcSfJcO8oPc8kwoIRdRWO", "WPyjBCo7W4FcV0hcMG", "eSk9W4ddUx3dJSkLtNycgmkOW5C", "mwlcM3eKgW", "nMxcVg1Zpey", "W6GwFfpdP8kD", "W5BdP8ogW7rtW68cW5hcUW", "iCongSk3WOBdVSkl", "WRJcMmk3e1DeWRhdVSo9", "iY7dJCo5FCkXWPVcJColW4hdJ8k2xG", "vWJcGmoUomkRegT9WP3dKmoYWPW", "W4tdVCk4jLpcOwiUW75X", "zNqJW7VdKwNdMG", "vCkaWPSddSoxBCkVchLkWPFcMmkoWQhcSW", "gSoBnxFdVvaPpYvXWQ3cJSoD", "WPeevXVdGXSOW7RcVSk5WQadW7a", "W7NdQfldHq", "ohJcTujZkG", "W6NdMGmqnLdcH8kYW7G", "W4xdOmkViKRcUxG", "CrjchSoUW6S", "AgibW5JdIgNdKKaIWQ7dNW4cDSoz", "WPTNjGveWPa", "W59CaLVcKwvM", "WOVdPCotvq", "WPZdTCouF0BdTfhcPCk3sx/cMG", "iSkIW5nUW6H4nCo7WRFcLd8oWQ4", "W6NcLmoaW4ZcKmoE", "e8kSW54z", "W7FdLhZcKLtcSSoCf8kmmx7dGqTw", "cqmocMJcIa", "WRFcMmkZW71VW4ea", "W5/cMSk8W48PWOTFW7/dPx0cWPhdTt7cOmoJW67cItW", "pZNdL8oSBmkG", "W6q6mfGwW5ddNW/cTYldQ8oPlq", "AN8wW7/dJxtdL0SAWRG", "o3xcKhmQfG", "ESo4WOlcOctcImozwM0Zh8kuW70", "WRjTCIXuWOdcGqFcGbFdImov", "WOCeaSklW7GR", "BqvdfmoZW7bx", "wrzOW4OFACoDAq4JvhW8r8oFWOz4W6ZdISkfi8oWEaP5", "s8knAvZdVxeoasq", "yuJcUuWYd8kC", "W5LMjrhdO8kBW5WDWPFdP0VdVG", "EHjynSoj", "W6b6obFdVW", "W6FdUY7cPa", "E8k8WPNcUSo6AG", "WOiafCkUW6KNxSoCW4Ka", "iJ7dJSoMy8kIWO0", "W6vuduVcMLb1WPBcQCkUWQmTW4ZcSCknoNaNWOS", "dYVdJ8oGyCkGWQZcM8oVW5ldJ8k0wq", "cCo3c8k7WPD3vq", "jGetdM/cJ3i", "qZ95W5qfFmogxZ4", "W6n7nHhdOCop", "W70rWOTzW7ua", "bSkHW44udmkpnbP5W5i", "W6tdUJZcVIlcNSo1f8kUW5C", "hCooW7lcLW", "WQv6BWbvWQVcJa3cQHpdJG", "zCo/zbpdPW", "W7/dJr4DkJZdHCoOWRBdHMBdTG", "WQ/cVbZdHrNdSIBdReJcOCkUWPJcI3q", "amkWW4fFemkdkrbYW4Kv", "WPnqW4KdWQ1dW4xdJ3NdSCo+W5e", "BdtdTb04ywldT8o3smorAW", "WOmeACoQW4BcTuG", "WQldUsRcRtlcG8oa", "W4aaWPDEW74gW6ZdJxBdUmo9W43dNW", "W4JdQ8kTiK/cVg8", "W4JcMSkEW5mLWOzwW43dIgGEWRRdIrNcVCo/W7lcJq", "z8kFW6b6W61Qja", "WPCjEmoeW5FcTa", "W6fZiZZdQmkBW78vWPxdUG", "WP5LfmkNWRT7kCkYWQDkW5C", "W7vInGRdUCkCW4KvWO3dOq", "FhaEWRfjjbmvWQXMWRj1", "W57dNIJcNeJcUmovhCkPmsZdUqDaWQy", "Eav9W4CdzmoAubmKgNG8uq", "imoAc8kgWPxdTG", "F8o8rHxdT8kF", "WQ1sqmoKW4PouXj8W7S", "mrysbNtcNwpcJsZcO8kmW6pcJmoP", "omoRW4C/W7fO", "bmoiW4/cKb/dKq", "jGypcW", "y8kEWP8kwSoJAmktax5AWPFdLSk2WQhcLvFcOX0", "umkIs8kPWQrjwKmh", "WP1Jhmk7WRTkh8k1WR1h", "CSkxWPqbs8oPvmk+bhLnWPFdNa", "WPPOWO3dI8kDkmoNwCk6qhO8gLnO", "BgGBW7ZdLgFdRvaBWRNdIa", "kxNcTu4", "WQlcU2xdU2lcOSoAc8k0W5PV", "qwHvW77dKM3dN00AWRJcJq4BFmouxCk2fSkIWOC", "B8kmCvdcGGhdJmk2kSouDrVcMgm", "pd7dK8oUE8k8", "bSk3W5S", "pCkOW4rdW7vYp8o7", "W7/dIGqB", "W44eWPDxW68C", "vSo8WPhcUZ7cJ8okvM06", "WPFdQSk6rHvCWR5PvdTEdSoeWRm9", "WPJdLu9brCkJWR/cGSkq", "W6RcISk0pfXoWRy", "vCoGzrFdPSkuW6RdQuC", "j8oRW50tW6b5", "imond8kxWPRdOCklWPS", "WQtdOmosvf3dQq", "WQVcMmk7kq", "pCkIW4LfW7vZ", "qCoTWOtcQcpcKmoUB2S7gmkmW6VcRG", "W6/dU0FdPxTEWOVcOCozWOhdOZKe", "qtNcPmokW7GNDbmhp0xcPW", "WRNdRxCAxKJcLSoTWRHcW7jJ", "W4fEo8kHWOldOXtdH8kw", "DCkQqNtcUJddPmojaSoYwZ/cV17dJxNdKCoPW6K", "WRhdJe1mxmkQWQtcMmkldL7cHX/dMSkTiCk6W44", "d8k8W4mwcmkt", "WPHkq8o4", "W59uhuFcGam", "o3/cMq", "bYPJW7bcthC", "WOP4emkOWQzxoW", "W494irNdOCkgW7PCWPxdOe3dQxzXxqNcLZZdLCkW", "W6SpWO9rW7CDW5JcN1pdV8oQW43dLtNdHSkAdxbxW5iOW744wmkvu8oJ", "p3/cJwaWh8kflG", "uhChW7pdK3tdVeuAWQxdIa8", "WOP4DaDpWP0", "EsZcOSo3W78+uW", "qmoMWOBcNYVcJG", "zCk8WP9UWRi5rSo4wmkSoeNcHW", "W6pdVdtcRtO", "C8o3EbpdOCkd", "pCoKe8krWOX8wwCH", "t8kruvdcGGhdJa", "W4JdTSkvleFcSa", "WOaEzCoHW4y", "W5dcNmkXW5KOWPrFW6pdQxa", "tCk5WR3cOmoYySkXW7TU", "h8oFl1VdRuSvkqH+WQ3cJG", "WPH1WPRdRmkynCoIuSkcvG", "b8k8W5KqfCkxlIvLW4GiiWpcRq", "oMxcSw9Kj0RdRCoHvG", "jNddR8kwWQfRdJ4BpLpcKHy", "cCoEW7xcNHldMbG", "WPhdLeHtFSkIWQtcMq", "lNtcPf90ia", "dmo9fSkyWQX8", "W5xcHSkxW4ONWOS", "WOqEzCoI", "xSkmWRpcUH7dPXWNEa", "WRKcESoUW57cPeddIColtCopW5BcN3xcOSoxmbFdRmoT", "i8oqhSkkWP3dQG", "qtNcPmokW7GNCHCDmeNcUsS", "WQRcV8owW51dW6KLW4lcISodEa/cPa", "mCoGW40RW5jPamo8", "WPfKWPRdRmkgmSoUDSkjxa", "W5WGtCkfWQDpbSk9WPK", "nZ7dK8oSFCk1WPZcM8ovW5ZdGSk9yZ0", "DSkQWQJcRCoYASkJW595WQ4sicxcQW", "WPhdJe1m", "W57dOcVcRtRcHmogxSk/W4DuW5xcQCopW60CWQ7dGq", "WOmacSklW74irG", "WOpcTCkcW7PoW7aGW5tcR8owzqu", "emkTW4WdcmkicHXJW4K", "ur5phmo0W7bxW4OKmSkPW7uBgWJcNWBdUh/cHCkojLFdVuCgW4BdP0C", "W4fDpmk8WOtdUL3cMCobq8oBW4O", "pe3dG8k2z8kqaf1nWQZdQq", "WOfmzSoXW59Mrq", "BwyBW7tdMhldRLyDWQxdMrGp", "W6VdMGmsnXtdK8omWQxdHMtdSuGz", "oZjeWQVcJe/dQNCWWPVdVq", "WPldO8oUuLFdUa", "WPieeSk6W746uCobW4ax", "WOPExSo+W5z9Crj0W6ZdICoZWPy", "keiutSkUW4XkWP8Komkw", "WPBdGg4grxJcNmogWOy"];
|
|
464
|
+
return (J = function() {
|
|
465
|
+
return t2;
|
|
466
|
+
})();
|
|
467
|
+
}
|
|
459
468
|
!(function() {
|
|
460
|
-
const t2 =
|
|
461
|
-
function
|
|
462
|
-
return
|
|
469
|
+
const t2 = 1017, e2 = "]ztY", n2 = 435, r2 = "zkqq", o2 = "QG(R", s2 = 1207, i2 = 1123, a2 = "l*)V", l2 = "T7wN", c2 = 553, h2 = "G(uQ", d2 = "9W#S", u2 = 1134, g2 = 1063, m2 = "ZV8z", f2 = 894;
|
|
470
|
+
function p2(t3, e3, n3, r3, o3) {
|
|
471
|
+
return ot(e3 - f2, o3);
|
|
463
472
|
}
|
|
464
|
-
|
|
465
|
-
|
|
473
|
+
const _2 = J();
|
|
474
|
+
function S2(t3, e3, n3, r3, o3) {
|
|
475
|
+
return ot(t3 - 974, n3);
|
|
466
476
|
}
|
|
467
|
-
function
|
|
468
|
-
return
|
|
477
|
+
function w2(t3, e3, n3, r3, o3) {
|
|
478
|
+
return ot(t3 - 288, o3);
|
|
469
479
|
}
|
|
470
|
-
function
|
|
471
|
-
return
|
|
480
|
+
function y2(t3, e3, n3, r3, o3) {
|
|
481
|
+
return ot(r3 - -571, n3);
|
|
482
|
+
}
|
|
483
|
+
function E2(t3, e3, n3, r3, o3) {
|
|
484
|
+
return ot(n3 - -841, o3);
|
|
472
485
|
}
|
|
473
486
|
for (; ; ) try {
|
|
474
|
-
if (
|
|
475
|
-
|
|
487
|
+
if (793801 === -parseInt(p2(0, t2, 0, 0, e2)) / 1 * (-parseInt(w2(n2, 0, 0, 0, r2)) / 2) + parseInt(w2(538, 0, 0, 0, o2)) / 3 * (-parseInt(S2(s2, 0, "mLZp")) / 4) + parseInt(S2(i2, 0, "OBRc")) / 5 * (-parseInt(S2(1200, 0, a2)) / 6) + -parseInt(y2(0, 0, l2, -313)) / 7 + parseInt(E2(0, 0, -c2, 0, h2)) / 8 + parseInt(w2(434, 0, 0, 0, d2)) / 9 * (parseInt(p2(0, u2, 0, 0, "Ykc7")) / 10) + parseInt(p2(0, g2, 0, 0, "4][6")) / 11 * (parseInt(w2(501, 0, 0, 0, m2)) / 12)) break;
|
|
488
|
+
_2.push(_2.shift());
|
|
476
489
|
} catch (t3) {
|
|
477
|
-
|
|
490
|
+
_2.push(_2.shift());
|
|
478
491
|
}
|
|
479
492
|
})();
|
|
480
|
-
const
|
|
481
|
-
const t2 =
|
|
482
|
-
if (typeof window ===
|
|
483
|
-
function
|
|
484
|
-
return
|
|
485
|
-
}
|
|
486
|
-
return o[s2 = "vzV2", i2 = -454, Z(i2 - -844, s2)]();
|
|
487
|
-
var s2, i2;
|
|
488
|
-
}, J = () => {
|
|
489
|
-
const t2 = "fTBS", e2 = 1031, n2 = "jD#z";
|
|
490
|
-
function r2(t3, e3, n3, r3, o2) {
|
|
491
|
-
return Z(e3 - 658, t3);
|
|
492
|
-
}
|
|
493
|
-
return U()[r2(t2, 894)](r2("(H#@", e2)) || U() === r2(n2, 903);
|
|
494
|
-
}, q = (t2) => {
|
|
495
|
-
const e2 = 259, n2 = 303, r2 = 251, s2 = 411, i2 = 310, a2 = 333, l2 = 273, c2 = 313, h2 = 888, d2 = 837, u2 = "KYOn", g2 = 889, m2 = 763, f2 = 604;
|
|
496
|
-
function p2(t3, e3, n3, r3, o2) {
|
|
497
|
-
return Z(t3 - 397, e3);
|
|
493
|
+
const q = () => {
|
|
494
|
+
const t2 = 519, e2 = 610, n2 = 481, r2 = 558;
|
|
495
|
+
if (typeof window === s2(398, 354, 457, 420, "rP*Q")) return window[s2(t2, 465, 524, 474, "T]kd")][s2(e2, n2, 552, 546, "]ztY")];
|
|
496
|
+
function s2(t3, e3, n3, r3, o2) {
|
|
497
|
+
return ot(n3 - 344, o2);
|
|
498
498
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
return Z(r3 - f2, n3);
|
|
499
|
+
return o[i2 = r2, a2 = "T7wN", ot(i2 - 433, a2)]();
|
|
500
|
+
var i2, a2;
|
|
501
|
+
}, K = () => {
|
|
502
|
+
const t2 = "ZV8z", e2 = "#$c*", n2 = 164;
|
|
503
|
+
function r2(t3, e3, n3, r3, o2) {
|
|
504
|
+
return ot(r3 - -433, n3);
|
|
506
505
|
}
|
|
507
|
-
|
|
508
|
-
|
|
506
|
+
return q()[r2(0, 0, t2, -195)](r2(0, 0, "L8pV", -248)) || q() === ot(n2 - -33, e2);
|
|
507
|
+
};
|
|
508
|
+
function X(t2, e2, n2, r2, o2) {
|
|
509
|
+
return ot(t2 - 130, n2);
|
|
510
|
+
}
|
|
511
|
+
function Y(t2, e2, n2, r2, o2) {
|
|
512
|
+
return ot(r2 - 258, o2);
|
|
513
|
+
}
|
|
514
|
+
function Q(t2, e2, n2, r2, o2) {
|
|
515
|
+
return ot(n2 - -868, o2);
|
|
516
|
+
}
|
|
517
|
+
const Z = (t2) => {
|
|
518
|
+
const e2 = "z^RQ", n2 = 412, r2 = "l*)V", s2 = 121, i2 = "DLPi", a2 = 7, l2 = "NLHq", c2 = 113;
|
|
519
|
+
let h2 = o[p2(280, 276, "TI(i")];
|
|
520
|
+
function d2(t3, e3, n3, r3, o2) {
|
|
521
|
+
return ot(r3 - 0, o2);
|
|
522
|
+
}
|
|
523
|
+
function u2(t3, e3, n3, r3, o2) {
|
|
524
|
+
return ot(e3 - -239, o2);
|
|
525
|
+
}
|
|
526
|
+
if (K() || o[f2(1268, "9AJl")]()) {
|
|
527
|
+
const t3 = P[f2(1177, e2)](), o2 = new Date(t3), i3 = /* @__PURE__ */ new Date(), a3 = 864e5;
|
|
528
|
+
Math[f2(1081, "$HoA")]((i3[g2 = n2, m2 = "bcdl", ot(g2 - 119, m2)]() - o2[u2(0, -28, 0, 0, r2)]()) / a3) >= 120 && (h2 = [d2(0, 0, 0, s2, "&@n$")]);
|
|
529
|
+
} else h2 = [];
|
|
530
|
+
var g2, m2;
|
|
531
|
+
function f2(t3, e3, n3, r3, o2) {
|
|
532
|
+
return ot(t3 - 955, e3);
|
|
509
533
|
}
|
|
510
|
-
function
|
|
511
|
-
return
|
|
534
|
+
function p2(t3, e3, n3, r3, o2) {
|
|
535
|
+
return ot(e3 - c2, n3);
|
|
512
536
|
}
|
|
513
|
-
return { licensee: () =>
|
|
537
|
+
return { licensee: () => u2(0, -40, 0, 0, "L8pV"), expiration: () => null, domains: () => [q()], developerCount: () => 1, cpuCount: () => 0, type: () => p2(0, 415, "^zch"), isEval: () => true, exceptions: () => h2, isValidFor: () => 0 === h2[f2(1120, "ZV8z")], isValid: () => false, features: () => Object[p2(0, 395, "l*)V")]({}), keyFrom: () => t2, getBuildVersion: P[d2(0, 0, 0, 159, i2)], getBuildDate: P[u2(0, a2, 0, 0, l2)] };
|
|
514
538
|
};
|
|
515
|
-
function
|
|
516
|
-
return
|
|
539
|
+
function tt(t2, e2, n2, r2, o2) {
|
|
540
|
+
return ot(t2 - 43, r2);
|
|
517
541
|
}
|
|
518
|
-
const
|
|
519
|
-
let
|
|
520
|
-
function
|
|
521
|
-
const n2 =
|
|
522
|
-
return
|
|
523
|
-
let o2 = n2[e3 -=
|
|
524
|
-
if (void 0 ===
|
|
542
|
+
const et = { promise: null, details: null, bannerPrinted: false, detailsPrinted: false, licenseKey: null, keyFrom: null };
|
|
543
|
+
let nt = false, rt = false;
|
|
544
|
+
function ot(t2, e2) {
|
|
545
|
+
const n2 = J();
|
|
546
|
+
return ot = function(e3, r2) {
|
|
547
|
+
let o2 = n2[e3 -= 109];
|
|
548
|
+
if (void 0 === ot.dwceNL) {
|
|
525
549
|
const e4 = function(t3, e5) {
|
|
526
550
|
let n3, r3, o3 = [], s3 = 0, i3 = "";
|
|
527
551
|
for (t3 = (function(t4) {
|
|
@@ -535,88 +559,69 @@ function Z(t2, e2) {
|
|
|
535
559
|
for (let e6 = 0; e6 < t3.length; e6++) r3 = (r3 + 1) % 256, s3 = (s3 + o3[r3]) % 256, n3 = o3[r3], o3[r3] = o3[s3], o3[s3] = n3, i3 += String.fromCharCode(t3.charCodeAt(e6) ^ o3[(o3[r3] + o3[s3]) % 256]);
|
|
536
560
|
return i3;
|
|
537
561
|
};
|
|
538
|
-
|
|
562
|
+
ot.ejBFiO = e4, t2 = arguments, ot.dwceNL = true;
|
|
539
563
|
}
|
|
540
564
|
const s2 = e3 + n2[0], i2 = t2[s2];
|
|
541
|
-
return i2 ? o2 = i2 : (void 0 ===
|
|
542
|
-
},
|
|
565
|
+
return i2 ? o2 = i2 : (void 0 === ot.CDSyPP && (ot.CDSyPP = true), o2 = ot.ejBFiO(o2, r2), t2[s2] = o2), o2;
|
|
566
|
+
}, ot(t2, e2);
|
|
543
567
|
}
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}
|
|
547
|
-
function et() {
|
|
548
|
-
const t2 = ["WPxdM8kBW4ufvgf0WRWUWQuoW48Gx0baxG", "oSoVhSkgbtK", "xYlcQLr1vSkIWPVdQSoRlszgW7RcQGP2W7Pefq", "lv5FlmkeWOtdRSkzpmkC", "W4tdSmk+emolif1RW50hd8o2W68", "WQZdPCoFW7xcPCkFWRvTb3NdKSoaWQS", "W7/cS8kCWO7dPCoaW6fAeMZdJmoQ", "WPuRWRBcSa", "WRxcSqhcPr7cOaVcJSo3W680lCoT", "WQrHWOlcR3Gqea", "W6mXW57dRYrUmwpdMdWdEa", "WOrsjxdcRwNcQa", "hCkQCSkmvJlcRmogWPWZfa", "W59kWP/cIaWCW4fyW7xcL8ouWRxdNru1FSksEW", "WPyVWRlcUv8Z", "iLHsl8kdWPddMmkMnSkxDq", "W71zWORcSbaqW5a", "naSVECkRW6hcMSojtxtcSSkM", "u3ncovBdNZG", "W7NcQSonxXtcHq", "iXJcVb0QyCkUW4zCW44", "W4SEWOdcUmkLWQRcISkgwh4", "WOJcO8kLoL5T", "ExKwm1RdIG", "WOPeb1pcTgNcOgVcICoYp8oSjX7dRq", "W5pdJCkTWQ5reW", "WRRdHmkAcdD2bW4", "W4P7BYBcUM7cOCoSW7i", "WPpcUXZcLMdcJSkOW7ldImke", "W44/qmkeAW", "q2tdV8k+W4LodrHNWRW", "bcy5W4WRdmowW4NcQq", "DLX1pmo5WPpcNG", "bmoBoCo7WOlcU0X8atnJWP/dQ0unkqTgCW", "W5BdKmk/WRnqqa", "kSk9W5ldNSkGWRxdNqLkWQTmW5FdJG", "W55RpuJcL2pcUa", "WPW4WRNcU1e+", "kYy3W4aYcSoqW47cPa", "WOJcO8kUi1TK", "WPdcSrRcLMRcNW", "ibNcRGC", "fmori8oeWOtcTeXfgYjaWRtdVq", "dIu1W4i1", "WOCyW5XqpKLqj3O", "WQSVW4hdPWKtf8kSW4T9f8k5", "vJ1SgSopWOrt", "ymklWQ3dKmk7WQBdHG", "W4hdTmkKmCo9", "W4vTvsRcTIm", "WOBcTCkoku1GW6qpW5BcG08DW6FcHa", "W7NdOCkIf8oajK94W5OhhSoH", "Dub8W5bkW5hcPKNdT2ZcK1BcNq", "q3K+gHSb", "WRVdKmkzW6yCvgKWWP03WQec", "WOtcVSkw", "W7nOEINcUYldP8k2WRG", "WQZdR8kAcvZdMqbCWORcL0tdN8oz", "D8kCWQZdMmkGWRtdLYRcPSkVvH9+za", "WR4IW41wje9AcW", "vsNcVKPhlCoxemk6m8odD1TIb8obW6m7hq", "W7RdO8oVws0FWOpdVWG", "muvvj8kE", "WPRcPHhcLgtcKG", "zeS+k8kpWQOlWQBdHCohAqaXfa", "W5edWOlcPCkYWP8", "WQ4RW5VdIXKik8k6W6zYf8k5W5C", "dXRcVam3DSkyW5Tn", "naNcQq43FSkk", "F8kBACoWCtmPWRy", "WQZdLmkifa", "e8oBg8oNWO7cTKvolcz/WRtdL2iqnrDc", "FIxcQwTmkSotwCkZoa", "W7RdJmoTqIWF", "W7npWQJcHruuW5e", "WRldJSkFgqTG", "WRxdHSkJW4Snwa", "W6ddLmkqiSkpa8oVW7xcH8oTAGtdOa", "z8owAs1MoW", "W5BdImo+wtyyWRVdIspcRW", "rh3dSSk1W5XinavGWQhcU8oicW", "a8ori8oPWOtcU1O", "wYPWoCohWO4", "WRFcUCoDWRNcUSoRlLu", "W5dcSSotWO1hq8o4W7HbqG", "W6xdKmkkb8kpca", "W7nbAZFcVtldQCkDWOi", "W7ddJSkeWORcLYbcArNdHIukWRJdMmkE", "W5ldO8k5eW", "hGpdVqm3CCkCW4fBW4nWCSoBBCk3wN7cN8kP", "WOVcUCoAWPpcU8oQbetcOSkDvmkzna", "a8ori8oPWOtcU1P7gI5LWQxdOxi", "cmk2F8krDrNcUCoa", "WQfOWOVcV2KUcNpdOtGhuwPAWRhcNcZcP8kW", "FsJdPfDUuW", "WPhcPCktja", "WOdcPMpdP8k9W6uXAuxcVSoIWQr6sa", "WPm6W4FdJbiooCkPW6fYbSkU", "W6GwW4pdT8k3WOBdOG", "vmkAlCoMxIO0WQZcUvyao8kC", "WR5PWO3cV3mLa0K", "W5Wtrd/dSs7dVchdRG", "W4ioWO8fba", "WQKYW4xdJa4d", "W7hcPCk+WQ3dVmoaW6K", "v3K+eWSrcmo4qLtdQ8k/W4P3WQi", "wx9SWPTWu8klW6lcNSoavmkPW5G", "kCk9W5hdHG", "nCkHW4hdI8k8WQpdIZf/WQa", "DIJdVNr/t8kIWPVdQmoR", "WQGLW5JdHbuuca", "nXCXWQ4rWOBdS1tdLfVcIvhcPG", "eYZcPCoJWO8cdtHbWONcM8ob", "rg4Jmbi", "W409q8kaDSo0WO8", "WRWIW5HdoffmkfC8W5ZcTSoTWPq", "as5Zy0XmvmoVrgpdImkUW6e", "W4xcUmoFWOvErmo0", "cSo9bSkkcdLezSoDWOOUWRz3", "WOBcTGZcMW", "c8oroCoVWPNcVW", "W73cRSkyWQxdOSoq", "t0qMjmkgWRe/W7tdImogCaq8", "WOZcRgtdSSk6W6GVxa", "W4FcOmkjWQddUConW6XkmW", "WOL5gSoDkmkZWPHrWRRcSmo+W6G", "napcSa43Fmkk", "W5hdVCk7cCk+kCoZW5JcOSokxstdISoWW4XgWO3cGmk8", "WOrspx7cPwu", "WRVdKmkzW6amswq9WRuL", "WRVdHmkppJDTdHNdH0xdLxvDWPVdSq", "W4/dOSkEeCoknW", "WRBcU1ffrmon", "WPBcK8oSW7qxcSkAggTDWQJcIXS", "W53dG8kFimkdfCoEW7pcIW", "WOBcSrBcNwtcVSkKW6NdH8kEW53cUq", "cCk9B8kdsXZcVSo4WOa/cgNdH0S", "x8kdBmoVbHy0WR3cVuWAmCosa0ZcVa", "W5lcR8oeWRXEwSo0", "qmobbmolWRhcOSkZoSkFArTDE1GTpa", "WQThWPBcUSoKW7JdVCkLf3a9ma", "AfmPjSkwWQiBW6/dJSogjbe9chpdRWePjCofWP7cKSo7fwu", "nZ87W4eUamoyW47cUa", "wt1HpCouWODnW6ueWQBdVmk4W59u", "W5yBWPCIh0yoWPtdRW", "W4ehW53dQ8k8WRtdLSklmvGmlG", "WQWIW5rw", "W5xdLSkXWQPmqmok", "AtxcRKC", "W4T7BWFcPY/dQSkMWPNdLSkdWOG", "W6JdSxpdQKRdUG", "W7ldNCkrWQq", "W6BdP0ldMe7dOLlcTmokW6G", "W7VdJSkEWQ/cLIe", "W7BcKWNcPSo8W5DsrbTgexbd", "W4fRW6hdQHjHbXqVtZBdHSoT", "oqlcQW4YE8kD", "oCoOgSkeeIu", "wJ1HhSoiWOjsW5eYWQ7dPSkP", "cCkxkqPBjmkKDCky", "WPddImkygsX3b13dV0/dKYzcWPxdSYGUWPpdKmkkCCoxfCoueJKnFmoX", "W5BdO8k5emoAfMHTW5uaf8oG", "W5zFrsaSWOXiD0lcJ8k6WP5dW6q", "W6/dQ8k1jrrNfG", "W7SAW47dQ8k+W6a", "yJNdQ0jUsmkuWPVdSmoW", "W6tdULxdUvVdOLRcSSoiW6G", "WQvHWP3cIM8/cfJdQdu", "EmohndtdT8ovWQiUycFcG8kPW4fLWRL8oSk0rG7cG8k3b15UWOqd", "W6xdJSkdWQFcJJ9l", "WRNdJCkDW40Bra", "vhNdUmkUW5PF", "W5dcPmogWR5wrq", "W5edWOlcPCkYWP/cUSkvv2NcUKG", "WOmPWRBcRLeLyIuysa", "W5XSDcJcUZxdOW", "W7tcVCorFbZcJ1G", "zuXKWRjpW4RcT0ldOwhcQW", "W6i/xSkeCCoZ", "WOfofa", "WOuKW4pdHbath8oOW6n1amk5W50Xf8kAWOSgW4/dJq", "WOX6DcdcOwBdQmkTWQNcL8kAWOXoiM/cGW", "FmkqWQhdMmk8WQBdHGtcJCk5", "W7ZcS8kEWQNdVmogW71Bje7dL8o6WQlcHa", "tmoFAYe", "Amo5WPddOmkbWRVdUX1B", "W6BdKmkklCkdhComW5FcNmoQCbxdOCoh", "wSohDsPTpCkHymkWnmkGWRi9", "xvCHjmkxWOeoW6JdJ8onDG", "W4NdMCoXtdyd", "WRddHmkvgZzS", "WOpdL8kAecTGaWNdTa", "W50xWOajhLeoWPBdRKK", "W5nsWOJcHruuW5erW7BcKmkxWPZdMGu1mmkkE3hdSW", "WP5jfNtcTxJcOa", "utD2pCojWOjrW5S", "W40/W6RdH8kgWPJdMa", "W5xdSIFcS8oTWRevDMlcUSoRWPW"];
|
|
549
|
-
return (et = function() {
|
|
550
|
-
return t2;
|
|
551
|
-
})();
|
|
552
|
-
}
|
|
553
|
-
const nt = tt(0, 0, -495, "3#eE")[ot("]rEn", 719, 771)]("")[it("vr$&", -541, -478)]((t2, e2) => e2 + t2, "");
|
|
554
|
-
class rt {
|
|
568
|
+
const st = Y(0, 0, 0, 403, "V#]*")[Q(0, 0, -593, 0, "9W#S")]("")[U(0, 0, 0, "YcI9", 788)]((t2, e2) => e2 + t2, "");
|
|
569
|
+
class it {
|
|
555
570
|
constructor() {
|
|
556
|
-
const t2 =
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
}
|
|
560
|
-
async [it("3#eE", -315, -399)](t2, e2 = false) {
|
|
561
|
-
const n2 = 157, r2 = 216, s2 = "JqVN", i2 = 838, a2 = 597, l2 = 629, c2 = 479, h2 = 763, d2 = 734, u2 = "#abK", g2 = 258, m2 = 626, f2 = 816, p2 = 748, _2 = "yrLO", S2 = 715, w2 = 799, y2 = "Ijrg", E2 = 182, C2 = 894, b2 = 968, v2 = "NAeO", x2 = 6, I2 = 86, R2 = 762, A2 = "yD90", M2 = 829, T2 = "yD90", N2 = 443, k2 = 175, F2 = "]Sp7", O2 = 513, D2 = "NAeO", L2 = "YT8!", B2 = 840, P2 = 798, z2 = "jD&4", W2 = 167, H2 = 1261, V2 = 51;
|
|
562
|
-
if (!t2 || t2[U2(609, "IhbX", 699, 668)]($2(133, n2, 71, r2, "]4Jb")) || t2[K2(848, 903, s2)](K2(i2, 926, "2&&4")) || t2[G2(a2, l2, c2, "JqVN", 536)](U2(h2, "YT8!", d2, 702)) || t2[J2(-282, u2, -299, -207, -258)](G2(m2, 472, 531, s2, 567))) return Y = true, await this[K2(f2, 757, "(H#@")](true);
|
|
563
|
-
if (Y = false, !e2 && X[U2(p2, _2, S2, 790)]) {
|
|
564
|
-
const t3 = await this[K2(865, w2, y2)]();
|
|
565
|
-
if (t3[$2(E2, g2, 134, 163, "jD&4")]() && !t3[K2(C2, b2, v2)]()) return t3;
|
|
566
|
-
}
|
|
567
|
-
function $2(t3, e3, n3, r3, o2) {
|
|
568
|
-
return tt(0, 0, t3 - 582, o2);
|
|
571
|
+
const t2 = 1591;
|
|
572
|
+
function e2(e3, n2, r2, o2, s2) {
|
|
573
|
+
return Q(0, 0, s2 - t2, 0, r2);
|
|
569
574
|
}
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
+
this[e2(0, 0, "&@n$", 0, 858)][e2(0, 0, "YcI9", 0, 968)] = null;
|
|
576
|
+
}
|
|
577
|
+
async [Q(0, 0, -556, 0, "T]kd")](t2, e2 = false) {
|
|
578
|
+
const n2 = 78, r2 = "FSm]", s2 = 70, i2 = 93, a2 = 126, l2 = 97, c2 = 72, h2 = "$HoA", d2 = 158, u2 = 63, g2 = 149, m2 = 66, f2 = 84, p2 = 1196, _2 = 1288, S2 = 1261, w2 = "OBRc", y2 = "G(uQ", E2 = 1199, C2 = 1296, b2 = "L8pV", v2 = 1203, x2 = 1262, I2 = "W$iV", R2 = 52, A2 = 76, M2 = 26, N2 = "w9w2", T2 = "TI(i", k2 = 162, F2 = "4][6", O2 = "zkqq", D2 = 144, L2 = 17, B2 = "v(gg", P2 = "W)F6", z2 = 1273, W2 = "^kHC", H2 = "#$c*", V2 = "rU(l", j2 = 263, G2 = 1092, J2 = 1850;
|
|
579
|
+
function q2(t3, e3, n3, r3, o2) {
|
|
580
|
+
return Y(0, 0, 0, e3 - -259, r3);
|
|
575
581
|
}
|
|
576
|
-
|
|
577
|
-
|
|
582
|
+
if (!t2 || t2[ot2(61, 34, "OBRc", 155, 66)](ot2(n2, 169, r2, 75, 129)) || t2[ot2(s2, i2, "Ykc7", a2, l2)](ot2(c2, -19, h2, d2, u2)) || t2[ot2(g2, 51, h2, m2, f2)](Z2(p2, 1270, _2, S2, w2)) || t2[q2(0, 182, 0, y2)](Z2(1225, E2, C2, 1203, b2))) return nt = true, await this[Z2(v2, x2, 1227, 1284, I2)](true);
|
|
583
|
+
if (nt = false, !e2 && et[K2(33, 126, R2, "w9w2")]) {
|
|
584
|
+
const t3 = await this[K2(A2, M2, 36, N2)]();
|
|
585
|
+
if (t3[ot2(90, 117, T2, k2, 178)]() && !t3[rt2(-450, "w9w2", -417, -570, -473)]()) return t3;
|
|
578
586
|
}
|
|
579
|
-
X[$2(18, -17, -63, x2, "caCv")] = t2, X[$2(I2, 0, 0, 0, "^h(m")] = U2(R2, A2, 787, M2), X[G2(0, 399, 0, T2, N2)] = null, X[K2(788, 716, "]rEn")] = null;
|
|
580
|
-
const q2 = await this[$2(k2, 0, 0, 0, "#abK")]();
|
|
581
|
-
if (!q2[U2(0, F2, 0, 693)]()) throw await this[$2(88, 0, 0, 0, "]rEn")](true), new Error(G2(0, O2, 0, "PRyC", 542));
|
|
582
587
|
function K2(t3, e3, n3, r3, o2) {
|
|
583
|
-
return
|
|
588
|
+
return X(t3 - -317, 0, r3);
|
|
584
589
|
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
if (!(await this[K2(P2, 866, "]Sp7")]())[U2(0, "jD#z", 0, 798)]()) throw await this[K2(937, 975, "IvN&")](true), new Error(J2(0, z2, 0, 0, -283));
|
|
590
|
+
function Z2(t3, e3, n3, r3, o2) {
|
|
591
|
+
return Q(0, 0, t3 - J2, 0, o2);
|
|
588
592
|
}
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
return at(n3, e3 - 270, o2 - 621);
|
|
593
|
+
et[rt2(-426, F2, -407, -486, -425)] = t2, et[Z2(1272, 1173, 1340, 1329, O2)] = K2(7, 0, 0, "^zch"), et[Z2(1267, 0, 0, 0, "pLjC")] = null, et[ot2(D2, 31, "UdIk", L2, 61)] = null;
|
|
594
|
+
const tt2 = await this[rt2(-346, B2, -421, -474, -426)]();
|
|
595
|
+
if (!tt2[K2(30, 0, 0, P2)]()) throw await this[Z2(z2, 0, 0, 0, W2)](true), new Error(rt2(-369, H2, -429, -415, -470));
|
|
596
|
+
function rt2(t3, e3, n3, r3, o2) {
|
|
597
|
+
return U(0, 0, 0, e3, o2 - -1373);
|
|
595
598
|
}
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
let It2 = null;
|
|
599
|
-
function Rt2(t3, e3, n3, r3, o2) {
|
|
600
|
-
return ot(o2, e3 - bt2, n3 - vt2);
|
|
599
|
+
function ot2(t3, e3, n3, r3, o2) {
|
|
600
|
+
return Y(0, 0, 0, o2 - -331, n3);
|
|
601
601
|
}
|
|
602
|
-
|
|
603
|
-
|
|
602
|
+
if (o[rt2(0, V2, 0, 0, -542)]()) {
|
|
603
|
+
await $[K2(1, 0, 0, "ZV8z")](t2, e2);
|
|
604
|
+
if (!(await this[q2(0, j2, 0, "l*)V")]())[ot2(0, 0, "plK!", 0, 225)]()) throw await this[Z2(G2, 0, 0, 0, "UdIk")](true), new Error(q2(0, 205, 0, "$HoA"));
|
|
604
605
|
}
|
|
605
|
-
|
|
606
|
-
|
|
606
|
+
return tt2;
|
|
607
|
+
}
|
|
608
|
+
async [Y(0, 0, 0, 521, "w9w2")](t2 = false) {
|
|
609
|
+
const e2 = "pLjC", n2 = 119, r2 = 166, s2 = 136, i2 = 135, a2 = 1166, l2 = 1084, c2 = "NLHq", h2 = 787, d2 = "T7wN", u2 = 152, g2 = 245, m2 = 151, f2 = 676, p2 = "G(uQ", _2 = "w9w2", S2 = 1004, w2 = 1085, y2 = 995, E2 = 223, C2 = 311, b2 = 168, v2 = 243, x2 = 369, I2 = 349, R2 = 908, A2 = 896, M2 = 863, N2 = "lINb", T2 = 975, k2 = 926, F2 = 685, O2 = 732, D2 = 963, L2 = 829, B2 = 808, z2 = 258, W2 = 612, H2 = 653, V2 = 716, J2 = "G(uQ", Y2 = "#$c*", it2 = 840, at2 = 907, lt2 = 882, ct2 = 786, ht2 = 725, dt2 = 252, ut2 = 869, gt2 = "V#]*", mt2 = 781, ft2 = 822, pt2 = 734, _t2 = 660, St2 = "NLt4", wt2 = 1045, yt2 = 1061, Et2 = 577, Ct2 = "plK!", bt2 = 246, vt2 = 209, xt2 = 196, It2 = 56, Rt2 = 96, At2 = 7, Mt2 = 887, Nt2 = 930, Tt2 = "G(uQ", kt2 = "bcdl", Ft2 = 299, Ot2 = 671, Dt2 = "mLZp", Lt2 = 337, Bt2 = 139, Pt2 = 635, zt2 = 1402, Wt2 = 326, Ht2 = 225, Vt2 = 113;
|
|
610
|
+
if (et[Kt2("veFA", 191, 95, 62, 93)]) return et[Kt2(e2, 170, 88, n2, r2)];
|
|
611
|
+
if (!this[Kt2("U]gb", s2, 185, i2, 148)][Qt2(1156, "FSm]", 1121, a2, l2)] && (this[Xt2(790, c2, h2, 808)][Kt2(d2, u2, 139, g2, m2)] = new Error("FV")), et[Xt2(f2, "T7wN", 566, 654)]) return et[Xt2(572, "T7wN", 608, 654)];
|
|
612
|
+
let $t2 = null;
|
|
613
|
+
et[Xt2(775, p2, 710, 805)] = new Promise((t3) => {
|
|
614
|
+
$t2 = t3;
|
|
607
615
|
});
|
|
608
|
-
let
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
}
|
|
612
|
-
const kt2 = async (t3, e3) => {
|
|
613
|
-
const n3 = 223;
|
|
616
|
+
let jt2, Gt2 = null;
|
|
617
|
+
const Ut2 = async (t3, e3) => {
|
|
618
|
+
const n3 = 77, r3 = 89, s3 = 230, i3 = 85;
|
|
614
619
|
try {
|
|
615
|
-
const
|
|
620
|
+
const f3 = ((t4) => {
|
|
616
621
|
let e4 = t4;
|
|
617
622
|
const n4 = e4[e4.length - 1], r4 = n4.charCodeAt(0) - 52;
|
|
618
623
|
if (e4 = e4.substring(0, e4.length - 1), e4 = e4.split("").reverse().join(""), e4 = G(e4), e4 = e4.trim(), e4[e4.length - 1] !== n4) throw new Error();
|
|
619
|
-
e4 = e4.substring(0, e4.length - 1), e4 =
|
|
624
|
+
e4 = e4.substring(0, e4.length - 1), e4 = j(e4, r4);
|
|
620
625
|
try {
|
|
621
626
|
e4.startsWith("{") || (e4 = "{" + e4);
|
|
622
627
|
const t5 = JSON.parse(e4), n5 = { licensee: t5.l, domains: t5.d, nodeId: t5.n, expiry: t5.e, developerCount: t5.dc, cpuCount: t5.cc, type: t5.t };
|
|
@@ -624,207 +629,211 @@ class rt {
|
|
|
624
629
|
} catch (t5) {
|
|
625
630
|
throw new Error("Invalid license key.");
|
|
626
631
|
}
|
|
627
|
-
})(e3),
|
|
628
|
-
const r4 = "
|
|
632
|
+
})(e3), p3 = ((t4, e4, n4) => {
|
|
633
|
+
const r4 = "YcI9", o2 = 749, s4 = 443;
|
|
629
634
|
function i4(t5, e5, n5, r5, o3) {
|
|
630
|
-
return
|
|
635
|
+
return ot(t5 - s4, e5);
|
|
631
636
|
}
|
|
632
637
|
function a4(t5, e5, n5, r5, o3) {
|
|
633
|
-
return
|
|
638
|
+
return ot(e5 - -215, t5);
|
|
634
639
|
}
|
|
635
640
|
function l4(t5, e5, n5, r5, o3) {
|
|
636
|
-
return
|
|
641
|
+
return ot(t5 - -276, o3);
|
|
637
642
|
}
|
|
638
|
-
return { licensee: () => t4[
|
|
639
|
-
return !(e4?.[n5 = o2, r5 =
|
|
643
|
+
return { licensee: () => t4[a4("L8pV", 55)], expiration: () => new Date(t4[l4(-41, 0, 0, 0, "bcdl")]), domains: () => t4[i4(648, "Ykc7")] ?? [], developerCount: () => t4[a4("bcdl", 65)] ?? 1, cpuCount: () => t4[a4("$HoA", 58)] ?? 0, type: () => t4[l4(-102, 0, 0, 0, "zkqq")] ?? l4(-89, 0, 0, 0, "rU(l"), exceptions: () => e4, isValidFor: (t5) => {
|
|
644
|
+
return !(e4?.[n5 = o2, r5 = "T]kd", i4(n5 - 114, r5)] > 0);
|
|
640
645
|
var n5, r5;
|
|
641
|
-
}, isValid: () => true, isEval: () => false, features: () => Object[
|
|
642
|
-
var c4,
|
|
643
|
-
})(
|
|
644
|
-
const e4 =
|
|
645
|
-
function
|
|
646
|
-
return
|
|
647
|
-
}
|
|
648
|
-
const W3 = t4[$2(177, e4, n4, 153, "Ypua")] ? new Date(t4[$2(17, r4, 125, 104, s4)]) : null, H3 = t4[K3(498, i4, 524, "Ijrg")], V3 = [];
|
|
649
|
-
function $2(t5, e5, n5, r5, o2) {
|
|
650
|
-
return Z(r5 - -161, o2);
|
|
646
|
+
}, isValid: () => true, isEval: () => false, features: () => Object[l4(-115, 0, 0, 0, "bcdl")](t4[i4(730, "#$c*")] ?? {}), keyFrom: () => n4, getBuildVersion: P[c4 = "IhR(", h4 = -714, ot(h4 - -886, c4)], getBuildDate: P[i4(726, r4)] };
|
|
647
|
+
var c4, h4;
|
|
648
|
+
})(f3, await (async (t4) => {
|
|
649
|
+
const e4 = "rU(l", n4 = "zkqq", r4 = 732, s4 = "UdIk", i4 = 669, a4 = "NLHq", l4 = "alEA", c4 = "TI(i", h4 = 703, d4 = "FSm]", u4 = "w9w2", g4 = "NLt4", m4 = 812, f4 = "T7wN", p4 = 878, _3 = "T]kd", S3 = "bcdl", w3 = 769, y3 = 680, E3 = "plK!", C3 = "L8pV", b3 = "W)F6", v3 = 589, x3 = 431, I3 = t4[T3(-250, -171, "U]gb")];
|
|
650
|
+
function R3(t5, e5, n5, r5, o2) {
|
|
651
|
+
return ot(o2 - 502, t5);
|
|
651
652
|
}
|
|
652
|
-
|
|
653
|
-
|
|
653
|
+
const A3 = t4[R3(e4, 0, 0, 0, 717)] ? new Date(t4[T3(-184, -134, n4)]) : null, M3 = t4[R3("4][6", 0, 0, 0, r4)], N3 = [];
|
|
654
|
+
function T3(t5, e5, n5, r5, o2) {
|
|
655
|
+
return ot(e5 - -437, n5);
|
|
654
656
|
}
|
|
655
|
-
function
|
|
656
|
-
return
|
|
657
|
+
function k3(t5, e5, n5, r5, o2) {
|
|
658
|
+
return ot(t5 - 564, n5);
|
|
657
659
|
}
|
|
658
|
-
if (
|
|
659
|
-
if (!
|
|
660
|
-
const t5 = await
|
|
661
|
-
t5 !==
|
|
660
|
+
if (A3 ? isNaN(A3) ? N3[T3(0, -127, l4)](O3(-482, -459, -438, -405, "OBRc")) : A3 < /* @__PURE__ */ new Date() && N3[R3(c4, 0, 0, 0, h4)](T3(0, -306, d4) + A3[R3(u4, 0, 0, 0, 654)]()) : N3[R3(s4, 0, 0, 0, i4)](T3(0, -200, a4)), o[k3(819, 0, "alEA")]()) {
|
|
661
|
+
if (!M3) return N3[O3(-545, -453, -621, -477, g4)](k3(m4, 0, f4)), N3;
|
|
662
|
+
const t5 = await $[O3(-485, -548, -430, -444, "rP*Q")]();
|
|
663
|
+
t5 !== M3 && N3[k3(p4, 0, "V#]*")](O3(-457, -536, -495, -357, _3) + M3 + R3(S3, 0, 0, 0, w3) + t5);
|
|
662
664
|
} else {
|
|
663
|
-
if (
|
|
664
|
-
if (
|
|
665
|
+
if (K()) return N3;
|
|
666
|
+
if (I3 && 0 !== I3[F3("NLHq", 680, y3, 590)]) {
|
|
665
667
|
let t5 = false;
|
|
666
|
-
const e5 =
|
|
667
|
-
for (let n5 = 0; !t5 && n5 <
|
|
668
|
-
!t5 &&
|
|
669
|
-
} else
|
|
668
|
+
const e5 = q();
|
|
669
|
+
for (let n5 = 0; !t5 && n5 < I3[R3("rP*Q", 0, 0, 0, 680)]; n5++) t5 = e5[T3(0, -209, C3)](I3[n5]);
|
|
670
|
+
!t5 && N3[k3(691, 0, "OBRc")](F3(b3, v3, x3, 502));
|
|
671
|
+
} else N3[O3(-586, -520, -560, -514, "mLZp")](O3(-550, -627, -475, -558, E3));
|
|
670
672
|
}
|
|
671
|
-
function
|
|
672
|
-
return
|
|
673
|
+
function F3(t5, e5, n5, r5, o2) {
|
|
674
|
+
return ot(r5 - 325, t5);
|
|
673
675
|
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
676
|
+
function O3(t5, e5, n5, r5, o2) {
|
|
677
|
+
return ot(t5 - -726, o2);
|
|
678
|
+
}
|
|
679
|
+
return N3;
|
|
680
|
+
})(f3), t3);
|
|
681
|
+
return p3[d3 = -375, u3 = -Wt2, g3 = -Ht2, m3 = "lINb", Kt2(m3, d3 - 158, u3 - n3, g3 - 291, u3 - -512)]()[a3 = "9W#S", l3 = 156, c3 = Vt2, h3 = 243, Kt2(a3, l3 - r3, c3 - 390, h3 - s3, l3 - i3)] > 0 && (jt2 = p3), p3;
|
|
677
682
|
} catch (e4) {
|
|
678
|
-
|
|
679
|
-
const e5 =
|
|
680
|
-
function n4(t5, n5, r5, o2
|
|
681
|
-
return
|
|
683
|
+
jt2 = ((t4) => {
|
|
684
|
+
const e5 = 995;
|
|
685
|
+
function n4(t5, e6, n5, r5, o2) {
|
|
686
|
+
return ot(r5 - 60, t5);
|
|
682
687
|
}
|
|
683
688
|
function r4(t5, e6, n5, r5, o2) {
|
|
684
|
-
return
|
|
689
|
+
return ot(e6 - -228, t5);
|
|
685
690
|
}
|
|
686
|
-
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () =>
|
|
687
|
-
return [(
|
|
688
|
-
var
|
|
689
|
-
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[n4(
|
|
691
|
+
return { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => r4("lINb", -77), exceptions: () => {
|
|
692
|
+
return [(n5 = "9W#S", o2 = e5, r4(n5, o2 - 1016) + t4 + "'")];
|
|
693
|
+
var n5, o2;
|
|
694
|
+
}, isValidFor: (t5) => false, isValid: () => false, isEval: () => false, features: () => Object[n4("NVU@", 0, 0, 341)]({}), keyFrom: () => t4, getBuildVersion: P[r4("yURb", -44)], getBuildDate: P[n4("alEA", 0, 0, 371)] };
|
|
690
695
|
})(t3);
|
|
691
696
|
}
|
|
692
|
-
var
|
|
697
|
+
var a3, l3, c3, h3, d3, u3, g3, m3;
|
|
693
698
|
};
|
|
694
|
-
|
|
695
|
-
let
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
699
|
+
et[Qt2(893, _2, S2, w2, y2)] && (Gt2 = await Ut2(et[qt2(E2, "4][6", C2, b2, v2)], et[qt2(x2, "IhR(", 278, 270, I2)]));
|
|
700
|
+
let Jt2 = false;
|
|
701
|
+
function qt2(t3, e3, n3, r3, o2) {
|
|
702
|
+
return X(o2 - -20, 0, e3);
|
|
703
|
+
}
|
|
704
|
+
if (nt && (Jt2 = true, Gt2 = Z(Yt2(977, R2, "Hptk"))), !Gt2) {
|
|
705
|
+
if (o[Yt2(A2, M2, N2)]()) {
|
|
706
|
+
if (!Gt2) {
|
|
707
|
+
const t3 = process[Qt2(T2, "V#]*", 893, k2, 954)], e3 = t3[Xt2(826, "W)F6", F2, O2)] || t3[Qt2(D2, c2, L2, B2, 886)] || t3[qt2(0, "#$c*", 0, 0, z2)] || t3[Xt2(W2, "Hptk", H2, 702)];
|
|
708
|
+
e3 && (Gt2 = await Ut2(Xt2(V2, J2, 663, 746), e3));
|
|
701
709
|
}
|
|
702
|
-
if (!
|
|
703
|
-
const t3 = await
|
|
704
|
-
t3 && (
|
|
710
|
+
if (!Gt2) {
|
|
711
|
+
const t3 = await $[qt2(0, Y2, 0, 0, 264)]();
|
|
712
|
+
t3 && (Gt2 = await Ut2(Yt2(851, it2, "plK!"), t3));
|
|
705
713
|
}
|
|
706
|
-
!
|
|
714
|
+
!Gt2 && (Jt2 = true);
|
|
707
715
|
} else {
|
|
708
|
-
if (!
|
|
709
|
-
const t3 = await fetch("./" +
|
|
710
|
-
let
|
|
711
|
-
if (200 === t3[
|
|
712
|
-
const
|
|
713
|
-
for (let t4 = 0; !
|
|
714
|
-
const r3 =
|
|
715
|
-
r3[
|
|
716
|
+
if (!Gt2) try {
|
|
717
|
+
const t3 = await fetch("./" + st);
|
|
718
|
+
let e3 = null;
|
|
719
|
+
if (200 === t3[Yt2(at2, 975, "zkqq", 995, lt2)]) {
|
|
720
|
+
const n3 = (await t3[Xt2(ct2, "NVU@", 643, ht2, 670)]())[qt2(0, "rU(l", 0, 0, dt2)]("\n");
|
|
721
|
+
for (let t4 = 0; !e3 && t4 < n3[qt2(0, "]ztY", 0, 0, 226)]; t4++) {
|
|
722
|
+
const r3 = n3[t4][Qt2(1021, Y2, 1085, 970, 1007)]();
|
|
723
|
+
r3[Yt2(925, ut2, gt2, 872, 917)]("#") || 0 === r3[Xt2(mt2, gt2, ft2, pt2, _t2)] || (e3 = r3);
|
|
716
724
|
}
|
|
717
725
|
}
|
|
718
|
-
if (
|
|
719
|
-
const t4 =
|
|
720
|
-
|
|
726
|
+
if (e3) {
|
|
727
|
+
const t4 = Yt2(982, 964, St2, wt2, yt2) + st + "')";
|
|
728
|
+
Gt2 = await Ut2(t4, e3);
|
|
721
729
|
}
|
|
722
730
|
} catch (t3) {
|
|
723
731
|
}
|
|
724
|
-
!
|
|
732
|
+
!Gt2 && K() && (Jt2 = true);
|
|
725
733
|
}
|
|
726
734
|
}
|
|
727
|
-
function
|
|
728
|
-
return
|
|
735
|
+
function Kt2(t3, e3, n3, r3, o2) {
|
|
736
|
+
return U(0, 0, 0, t3, o2 - -780);
|
|
737
|
+
}
|
|
738
|
+
function Xt2(t3, e3, n3, r3, o2) {
|
|
739
|
+
return Q(0, 0, r3 - zt2, 0, e3);
|
|
740
|
+
}
|
|
741
|
+
function Yt2(t3, e3, n3, r3, o2) {
|
|
742
|
+
return tt(t3 - Pt2, 0, 0, n3);
|
|
729
743
|
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
744
|
+
function Qt2(t3, e3, n3, r3, o2) {
|
|
745
|
+
return X(o2 - 645, 0, e3);
|
|
746
|
+
}
|
|
747
|
+
if (!Gt2 && Jt2 && (Gt2 = Z(Xt2(744, "DLPi", Et2, 643))), !Gt2 && jt2 && (Gt2 = jt2), !Gt2 && (Gt2 = { licensee: () => null, expiration: () => null, domains: () => [], developerCount: () => 0, cpuCount: () => 0, type: () => null, isEval: () => false, exceptions: () => [qt2(0, "rP*Q", 0, 0, 370)], isValidFor: (t3) => false, isValid: () => false, features: () => Object[Xt2(759, "]ztY", 809, 823)]({}), keyFrom: () => Yt2(986, 929, "v(gg"), getBuildVersion: P[Kt2(Ct2, bt2, vt2, 108, xt2)], getBuildDate: P[Kt2("v(gg", It2, Rt2, 88, At2)] }), et[Yt2(983, Mt2, "lINb")] = Gt2, $t2(Gt2), t2) {
|
|
748
|
+
if (!(et[Yt2(Nt2, 0, "plK!")] && et[qt2(0, "pLjC", 0, 0, 254)]) && (Jt2 || Gt2[Qt2(0, "plK!", 0, 0, 890)]()[Yt2(939, 0, Tt2)] > 0 || Gt2[qt2(0, kt2, 0, 0, Ft2)]()?.pb)) {
|
|
749
|
+
if (rt) return void setTimeout(() => {
|
|
750
|
+
var t3, e3;
|
|
751
|
+
this[t3 = "v(gg", e3 = Bt2, qt2(0, t3, 0, 0, e3 - -181)](false, false);
|
|
735
752
|
}, 8e3);
|
|
736
|
-
await this[
|
|
753
|
+
await this[Xt2(0, "9W#S", 0, Ot2)](false, false);
|
|
737
754
|
}
|
|
738
755
|
}
|
|
739
|
-
return
|
|
756
|
+
return et[qt2(0, Dt2, 0, 0, Lt2)];
|
|
740
757
|
}
|
|
741
|
-
async [
|
|
742
|
-
const e2 =
|
|
743
|
-
|
|
744
|
-
|
|
758
|
+
async [X(325, 0, "l*)V")](t2) {
|
|
759
|
+
const e2 = "v(gg", n2 = 441, r2 = 520, o2 = "rP*Q";
|
|
760
|
+
et[l2(-578, -586, "TI(i", -639)] = true;
|
|
761
|
+
const s2 = await this[l2(-579, -610, "YcI9", -487)]();
|
|
762
|
+
function i2(t3, e3, n3, r3, o3) {
|
|
763
|
+
return Y(0, 0, 0, e3 - -884, o3);
|
|
764
|
+
}
|
|
765
|
+
function a2(t3, e3, n3, r3, o3) {
|
|
766
|
+
return U(0, 0, 0, t3, e3 - -1134);
|
|
767
|
+
}
|
|
768
|
+
function l2(t3, e3, n3, r3, o3) {
|
|
769
|
+
return Q(0, 0, t3 - 33, 0, n3);
|
|
745
770
|
}
|
|
746
|
-
function
|
|
747
|
-
return
|
|
771
|
+
function c2(t3, e3, n3, r3, o3) {
|
|
772
|
+
return Q(0, 0, r3 - 1116, 0, e3);
|
|
748
773
|
}
|
|
749
|
-
|
|
750
|
-
const _2 = await this[p2(e2, 1e3, 0, "DYpU")]();
|
|
751
|
-
var S2, w2, y2, E2, C2;
|
|
752
|
-
return await j[S2 = 115, w2 = n2, y2 = "KYOn", at(y2, w2 - h2, S2 - -98)](t2), !X[f2(0, 848, 0, "&sIl")] && (_2[p2(1025, 967, 0, "DYpU")]() || _2[f2(0, 918, 0, "DYpU")]()[f2(0, r2, 0, o2)] > 0) && await this[E2 = s2, C2 = i2, at(E2, C2 - c2, C2 - -151)](t2), Promise[p2(a2, 1017, 0, l2)]();
|
|
774
|
+
return await $[l2(-694, -622, e2, -612)](t2), !et[c2(0, "G(uQ", 0, n2)] && (s2[c2(0, e2, 0, r2)]() || s2[a2("IhR(", -242)]()[i2(0, -448, 0, 0, o2)] > 0) && await this[a2("G(uQ", -348)](t2), Promise[i2(0, -496, 0, 0, o2)]();
|
|
753
775
|
}
|
|
754
|
-
async [
|
|
755
|
-
const r2 =
|
|
756
|
-
function
|
|
757
|
-
return
|
|
776
|
+
async [Q(0, 0, -736, 0, "rP*Q")](t2 = false, e2 = false, n2 = false) {
|
|
777
|
+
const r2 = 1274, o2 = "NLt4";
|
|
778
|
+
function s2(t3, e3, n3, r3, o3) {
|
|
779
|
+
return U(0, 0, 0, o3, r3 - 299);
|
|
758
780
|
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
var g2, m2, f2;
|
|
762
|
-
X[g2 = -480, m2 = -414, f2 = r2, at(f2, m2 - h2, g2 - -627)] || !(u2[p2(20, -13, -122, -77, o2)]() || u2[p2(s2, i2, -27, 17, "D[qe")]()[d2(0, 0, -20, a2)] > 0) ? await j[p2(0, 0, 0, -48, l2)](u2, t2, e2, n2) : await this[d2(0, 0, -108, "IvN&")](t2);
|
|
763
|
-
function p2(t3, e3, n3, r3, o3) {
|
|
764
|
-
return tt(0, 0, r3 - c2, o3);
|
|
781
|
+
function i2(t3, e3, n3, r3, o3) {
|
|
782
|
+
return U(0, 0, 0, n3, o3 - -1520);
|
|
765
783
|
}
|
|
784
|
+
et[s2(1241, 1317, 1215, 1221, "NLt4")] = true;
|
|
785
|
+
const a2 = await this[l2 = "zkqq", c2 = -715, Q(0, 0, c2 - -72, 0, l2)]();
|
|
786
|
+
var l2, c2, h2, d2;
|
|
787
|
+
et[s2(0, 0, 0, 1139, "Hptk")] || !(a2[i2(0, 0, "W$iV", 0, -723)]() || a2[i2(0, 0, "V#]*", 0, -713)]()[s2(0, 0, 0, r2, "T7wN")] > 0) ? await $[h2 = o2, d2 = -856, tt(d2 - -1042, 0, 0, h2)](a2, t2, e2, n2) : await this[i2(0, 0, "cn6&", 0, -693)](t2);
|
|
766
788
|
}
|
|
767
|
-
async [
|
|
768
|
-
const n2 =
|
|
769
|
-
if (!t2 && (
|
|
770
|
-
function
|
|
771
|
-
return
|
|
789
|
+
async [tt(153, 0, 0, "UdIk")](t2, e2) {
|
|
790
|
+
const n2 = 984, r2 = 989, s2 = 1011, i2 = "&@n$", a2 = "z^RQ", l2 = 837, c2 = "W$iV", h2 = "plK!", d2 = 1070, u2 = "mLZp", g2 = "]ztY", m2 = 1025, f2 = "w9w2", p2 = 942, _2 = 1200, S2 = 1772;
|
|
791
|
+
if (!t2 && (et[A2(1038, 1162, "DLPi", 1116)] || et[w2(n2, r2, s2, 1064, i2)])) return;
|
|
792
|
+
function w2(t3, e3, n3, r3, o2) {
|
|
793
|
+
return Q(0, 0, r3 - S2, 0, o2);
|
|
772
794
|
}
|
|
773
|
-
|
|
774
|
-
|
|
795
|
+
var y2, E2, C2, b2;
|
|
796
|
+
et[A2(1041, 1053, a2, 1130)] = true, et[C2 = l2, b2 = c2, U(0, 0, 0, b2, C2 - -74)] = true, await this[y2 = 437, E2 = h2, Y(0, 0, 0, y2 - -30, E2)](t2);
|
|
797
|
+
const v2 = o[w2(0, 0, 0, d2, u2)](), x2 = t2 || v2 ? console[I2 = -225, R2 = g2, U(0, 0, 0, R2, I2 - -1097)] : o[A2(977, m2, f2, p2)];
|
|
798
|
+
var I2, R2;
|
|
799
|
+
function A2(t3, e3, n3, r3, o2) {
|
|
800
|
+
return tt(r3 - 787, 0, 0, n3);
|
|
775
801
|
}
|
|
776
|
-
|
|
777
|
-
X[h2(742, 0, 0, "U^A1")] = true, X[d2 = "6Cdj", u2 = n2, at(d2, d2 - 293, u2 - 1029)] = true, await this[h2(700, 0, 0, r2)](t2);
|
|
778
|
-
const g2 = o[h2(s2, 0, 0, i2)](), m2 = t2 || g2 ? console[c2(-200, "jD#z")] : o[f2 = 1191, p2 = 1242, _2 = a2, at(_2, f2 - 251, p2 - 986)];
|
|
779
|
-
var f2, p2, _2;
|
|
780
|
-
g2 && m2(""), await this[c2(-289, l2)](t2, e2), m2("");
|
|
802
|
+
v2 && x2(""), await this[w2(0, 0, 0, _2, "QG(R")](t2, e2), x2("");
|
|
781
803
|
}
|
|
782
|
-
[
|
|
783
|
-
return this[t2 =
|
|
784
|
-
var t2, e2
|
|
804
|
+
[X(285, 0, "$HoA")]() {
|
|
805
|
+
return this[t2 = "4][6", e2 = 63, Y(0, 0, 0, e2 - -411, t2)]();
|
|
806
|
+
var t2, e2;
|
|
785
807
|
}
|
|
786
|
-
[
|
|
787
|
-
return this[e2 =
|
|
808
|
+
[Q(0, 0, -649, 0, "#$c*")](t2) {
|
|
809
|
+
return this[e2 = "alEA", n2 = -656, X(n2 - -976, 0, e2)](true, t2);
|
|
788
810
|
var e2, n2;
|
|
789
811
|
}
|
|
790
|
-
[
|
|
791
|
-
const t2 = "
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}
|
|
795
|
-
return X[n2(-568, -501, "PRyC")] || X[n2(-696, -776, t2)];
|
|
812
|
+
[tt(172, 0, 0, "YcI9")]() {
|
|
813
|
+
const t2 = "V#]*", e2 = 736, n2 = 254;
|
|
814
|
+
return et[s2 = -389, i2 = "9W#S", Y(0, 0, 0, s2 - -797, i2)] || et[r2 = t2, o2 = e2, Y(0, 0, 0, o2 - n2, r2)];
|
|
815
|
+
var r2, o2, s2, i2;
|
|
796
816
|
}
|
|
797
|
-
[
|
|
798
|
-
|
|
817
|
+
[Y(0, 0, 0, 553, "rP*Q")](t2) {
|
|
818
|
+
rt = true;
|
|
799
819
|
}
|
|
800
|
-
async [
|
|
801
|
-
return this[t2 =
|
|
820
|
+
async [Q(0, 0, -712, 0, "Ykc7")]() {
|
|
821
|
+
return this[t2 = 142, e2 = "$HoA", tt(t2 - -25, 0, 0, e2)](true);
|
|
802
822
|
var t2, e2;
|
|
803
823
|
}
|
|
804
|
-
async [
|
|
805
|
-
const n2 =
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
return await this[s2(0, 0, 401, 0, "u&h2")](true, t2, e2), o2;
|
|
824
|
+
async [Y(0, 0, 0, 454, "U]gb")](t2, e2) {
|
|
825
|
+
const n2 = 480, r2 = "l*)V", o2 = 1112;
|
|
826
|
+
const s2 = await this[i2 = -741, a2 = "zkqq", tt(i2 - -1009, 0, 0, a2)]();
|
|
827
|
+
var i2, a2, l2, c2;
|
|
828
|
+
return await this[l2 = n2, c2 = r2, Q(0, 0, l2 - o2, 0, c2)](true, t2, e2), s2;
|
|
810
829
|
}
|
|
811
|
-
async [
|
|
812
|
-
const t2 =
|
|
830
|
+
async [U(0, 0, 0, "NVU@", 963)]() {
|
|
831
|
+
const t2 = 952;
|
|
813
832
|
var e2, n2;
|
|
814
|
-
return await
|
|
833
|
+
return await $[e2 = "UdIk", n2 = 248, Q(0, 0, n2 - t2, 0, e2)]();
|
|
815
834
|
}
|
|
816
835
|
}
|
|
817
|
-
|
|
818
|
-
return Z(n2 - 400, t2);
|
|
819
|
-
}
|
|
820
|
-
const st = new rt();
|
|
821
|
-
function it(t2, e2, n2, r2, o2) {
|
|
822
|
-
return Z(n2 - -793, t2);
|
|
823
|
-
}
|
|
824
|
-
function at(t2, e2, n2, r2, o2) {
|
|
825
|
-
return Z(n2 - -119, t2);
|
|
826
|
-
}
|
|
827
|
-
const lt = (t2, e2) => {
|
|
836
|
+
const at = new it(), lt = (t2, e2) => {
|
|
828
837
|
const n2 = [];
|
|
829
838
|
for (let r2 = 0; r2 < t2.length; r2++) {
|
|
830
839
|
const o2 = t2[r2];
|
|
@@ -1611,8 +1620,8 @@ var At;
|
|
|
1611
1620
|
}, At.simpleComparator = function(t2, e2) {
|
|
1612
1621
|
return t2 > e2 ? 1 : t2 < e2 ? -1 : 0;
|
|
1613
1622
|
};
|
|
1614
|
-
const Mt = [-1, null],
|
|
1615
|
-
var
|
|
1623
|
+
const Mt = [-1, null], Nt = { done: false, value: [-1, null] };
|
|
1624
|
+
var Tt;
|
|
1616
1625
|
((t2) => {
|
|
1617
1626
|
t2.Builder = class {
|
|
1618
1627
|
constructor(t3, e3 = 0, n2 = 0) {
|
|
@@ -1705,7 +1714,7 @@ var Nt;
|
|
|
1705
1714
|
return h2 + d2.length !== t3 && (d2 = [], h2 = t3, l2.push([h2, d2])), d2.push(r2), this._majorMax = Math.max(this._majorMax, t3), this._minorIndex = n2, this;
|
|
1706
1715
|
}
|
|
1707
1716
|
build() {
|
|
1708
|
-
const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0,
|
|
1717
|
+
const t3 = [], e3 = this._createList, n2 = this._minors.entries(void 0, Nt);
|
|
1709
1718
|
let r2 = n2.next();
|
|
1710
1719
|
for (; !r2.done; ) {
|
|
1711
1720
|
const o2 = r2.value[1].span;
|
|
@@ -1721,7 +1730,7 @@ var Nt;
|
|
|
1721
1730
|
}
|
|
1722
1731
|
}
|
|
1723
1732
|
t2.OutOfOrderError = e2;
|
|
1724
|
-
})(
|
|
1733
|
+
})(Tt || (Tt = {}));
|
|
1725
1734
|
const kt = { lessThanXSeconds: { one: "less than a second", other: "less than {{count}} seconds" }, xSeconds: { one: "1 second", other: "{{count}} seconds" }, halfAMinute: "half a minute", lessThanXMinutes: { one: "less than a minute", other: "less than {{count}} minutes" }, xMinutes: { one: "1 minute", other: "{{count}} minutes" }, aboutXHours: { one: "about 1 hour", other: "about {{count}} hours" }, xHours: { one: "1 hour", other: "{{count}} hours" }, xDays: { one: "1 day", other: "{{count}} days" }, aboutXWeeks: { one: "about 1 week", other: "about {{count}} weeks" }, xWeeks: { one: "1 week", other: "{{count}} weeks" }, aboutXMonths: { one: "about 1 month", other: "about {{count}} months" }, xMonths: { one: "1 month", other: "{{count}} months" }, aboutXYears: { one: "about 1 year", other: "about {{count}} years" }, xYears: { one: "1 year", other: "{{count}} years" }, overXYears: { one: "over 1 year", other: "over {{count}} years" }, almostXYears: { one: "almost 1 year", other: "almost {{count}} years" } };
|
|
1726
1735
|
function Ft(t2) {
|
|
1727
1736
|
return (e2 = {}) => {
|
|
@@ -1822,12 +1831,12 @@ const zt = { code: "en-US", formatDistance: (t2, e2, n2) => {
|
|
|
1822
1831
|
s2 = e2.dateTime({ width: "full" });
|
|
1823
1832
|
}
|
|
1824
1833
|
return s2.replace("{{date}}", Wt(r2, e2)).replace("{{time}}", Ht(o2, e2));
|
|
1825
|
-
} },
|
|
1834
|
+
} }, $t = /^D+$/, jt = /^Y+$/, Gt = ["D", "DD", "YY", "YYYY"];
|
|
1826
1835
|
function Ut(t2) {
|
|
1827
|
-
return
|
|
1836
|
+
return $t.test(t2);
|
|
1828
1837
|
}
|
|
1829
1838
|
function Jt(t2) {
|
|
1830
|
-
return
|
|
1839
|
+
return jt.test(t2);
|
|
1831
1840
|
}
|
|
1832
1841
|
function qt(t2, e2, n2) {
|
|
1833
1842
|
const r2 = (function(t3, e3, n3) {
|
|
@@ -2092,11 +2101,11 @@ function Me(t2) {
|
|
|
2092
2101
|
for (var e2 = "", n2 = t2.length - 1; n2 >= 0; ) e2 += t2.charAt(n2--);
|
|
2093
2102
|
return e2;
|
|
2094
2103
|
}
|
|
2095
|
-
function
|
|
2104
|
+
function Ne(t2, e2) {
|
|
2096
2105
|
var n2 = "" + t2;
|
|
2097
2106
|
return n2.length >= e2 ? n2 : Ae("0", e2 - n2.length) + n2;
|
|
2098
2107
|
}
|
|
2099
|
-
function
|
|
2108
|
+
function Te(t2, e2) {
|
|
2100
2109
|
var n2 = "" + t2;
|
|
2101
2110
|
return n2.length >= e2 ? n2 : Ae(" ", e2 - n2.length) + n2;
|
|
2102
2111
|
}
|
|
@@ -2141,10 +2150,10 @@ function Ve(t2, e2, n2) {
|
|
|
2141
2150
|
}
|
|
2142
2151
|
return a2.y = i2[0], a2.m = i2[1], a2.d = i2[2], a2.S = o2 % 60, o2 = Math.floor(o2 / 60), a2.M = o2 % 60, o2 = Math.floor(o2 / 60), a2.H = o2, a2.q = s2, a2;
|
|
2143
2152
|
}
|
|
2144
|
-
var
|
|
2153
|
+
var $e = new Date(1899, 11, 31, 0, 0, 0), je = $e.getTime(), Ge = new Date(1900, 2, 1, 0, 0, 0);
|
|
2145
2154
|
function Ue(t2, e2 = false) {
|
|
2146
2155
|
var n2 = t2.getTime();
|
|
2147
|
-
return e2 ? n2 -= 1262304e5 : t2 >= Ge && (n2 += 864e5), (n2 - (
|
|
2156
|
+
return e2 ? n2 -= 1262304e5 : t2 >= Ge && (n2 += 864e5), (n2 - (je + 6e4 * (t2.getTimezoneOffset() - $e.getTimezoneOffset()))) / 864e5;
|
|
2148
2157
|
}
|
|
2149
2158
|
function Je(t2) {
|
|
2150
2159
|
return -1 === t2.indexOf(".") ? t2 : t2.replace(/(?:\.0*|(\.\d*[1-9])0+)$/, "$1");
|
|
@@ -2250,7 +2259,7 @@ function Xe(t2, e2, n2, r2) {
|
|
|
2250
2259
|
break;
|
|
2251
2260
|
case 115:
|
|
2252
2261
|
if ("s" !== e2 && "ss" !== e2 && ".0" !== e2 && ".00" !== e2 && ".000" !== e2) throw new Error("bad second format: " + e2);
|
|
2253
|
-
return 0 !== n2.u || "s" !== e2 && "ss" !== e2 ? (a2 = r2 >= 2 ? 3 === r2 ? 1e3 : 100 : 1 === r2 ? 10 : 1, (i2 = Math.round(a2 * (n2.S + n2.u))) >= 60 * a2 && (i2 = 0), "s" === e2 ? 0 === i2 ? "0" : "" + i2 / a2 : (s2 =
|
|
2262
|
+
return 0 !== n2.u || "s" !== e2 && "ss" !== e2 ? (a2 = r2 >= 2 ? 3 === r2 ? 1e3 : 100 : 1 === r2 ? 10 : 1, (i2 = Math.round(a2 * (n2.S + n2.u))) >= 60 * a2 && (i2 = 0), "s" === e2 ? 0 === i2 ? "0" : "" + i2 / a2 : (s2 = Ne(i2, 2 + r2), "ss" === e2 ? s2.substr(0, 2) : "." + s2.substr(2, e2.length - 1))) : Ne(n2.S, e2.length);
|
|
2254
2263
|
case 90:
|
|
2255
2264
|
switch (e2) {
|
|
2256
2265
|
case "[h]":
|
|
@@ -2273,7 +2282,7 @@ function Xe(t2, e2, n2, r2) {
|
|
|
2273
2282
|
case 101:
|
|
2274
2283
|
o2 = l2, c2 = 1;
|
|
2275
2284
|
}
|
|
2276
|
-
return c2 > 0 ?
|
|
2285
|
+
return c2 > 0 ? Ne(o2, c2) : "";
|
|
2277
2286
|
}
|
|
2278
2287
|
function Ye(t2) {
|
|
2279
2288
|
if (t2.length <= 3) return t2;
|
|
@@ -2355,7 +2364,7 @@ function cn(t2, e2, n2) {
|
|
|
2355
2364
|
if (e2.match(/^[#?]+$/)) return "0" === (o2 = Oe(n2, 0)) && (o2 = ""), o2.length > e2.length ? o2 : on(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2356
2365
|
if (s2 = e2.match(tn)) return (function(t3, e3, n3) {
|
|
2357
2366
|
var r3 = parseInt(t3[4], 10), o3 = Math.round(e3 * r3), s3 = Math.floor(o3 / r3), i3 = o3 - s3 * r3, a3 = r3;
|
|
2358
|
-
return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Ae(" ", t3[1].length + 1 + t3[4].length) :
|
|
2367
|
+
return n3 + (0 === s3 ? "" : "" + s3) + " " + (0 === i3 ? Ae(" ", t3[1].length + 1 + t3[4].length) : Te(i3, t3[1].length) + t3[2] + "/" + t3[3] + Ne(a3, t3[4].length));
|
|
2359
2368
|
})(s2, l2, c2);
|
|
2360
2369
|
if (e2.match(/^#+0+$/)) return c2 + Oe(l2, e2.length - e2.indexOf("0"));
|
|
2361
2370
|
if (s2 = e2.match(en)) return i2 = Math.trunc(sn(n2, s2[2].length)), a2 = an(Math.abs(i2 - n2), s2[2].length), a2 = (a2 = "" + an(a2, (function(t3) {
|
|
@@ -2367,7 +2376,7 @@ function cn(t2, e2, n2) {
|
|
|
2367
2376
|
if (s2 = e2.match(/^#{1,3},##0(\.?)$/)) return c2 + Ye(Oe(l2, 0));
|
|
2368
2377
|
if (s2 = e2.match(/^#,##0\.([#0]*0)$/)) return n2 < 0 ? "-" + cn(t2, e2, -n2) : Ye("" + (Math.floor(n2) + (function(t3, e3) {
|
|
2369
2378
|
return e3 < ("" + Math.round((t3 - Math.floor(t3)) * Math.pow(10, e3))).length ? 1 : 0;
|
|
2370
|
-
})(n2, s2[1].length))) + "." +
|
|
2379
|
+
})(n2, s2[1].length))) + "." + Ne(ln(n2, s2[1].length), s2[1].length);
|
|
2371
2380
|
if (s2 = e2.match(/^#,#*,#0/)) return cn(t2, e2.replace(/^#,#*,/, ""), n2);
|
|
2372
2381
|
if (s2 = e2.match(/^([0#]+)(\\?-([0#]+))+$/)) return o2 = Me(cn(t2, e2.replace(/[\\-]/g, ""), n2)), i2 = 0, Me(Me(e2.replace(/\\/g, "")).replace(/[0#]/g, function(t3) {
|
|
2373
2382
|
return i2 < o2.length ? o2.charAt(i2++) : "0" === t3 ? "0" : "";
|
|
@@ -2375,7 +2384,7 @@ function cn(t2, e2, n2) {
|
|
|
2375
2384
|
if (e2.match(rn)) return "(" + (o2 = cn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2376
2385
|
var h2 = "";
|
|
2377
2386
|
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = He(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = un("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = ke(a2[2], i2)).length < s2[4].length && (h2 = on(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2378
|
-
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = He(l2, Math.pow(10, i2) - 1, true), c2 + cn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ?
|
|
2387
|
+
if (s2 = e2.match(/[#0?] ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), a2 = He(l2, Math.pow(10, i2) - 1, true), c2 + cn(t2, e2.substring(0, s2.index + 1), a2[0]) + " " + (a2[1] ? Te(a2[1], i2) + s2[2] + "/" + s2[3] + ke(a2[2], i2) : Ae(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2379
2388
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = Oe(n2, 0), e2.length <= o2.length ? o2 : on(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2380
2389
|
if (s2 = e2.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
2381
2390
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2385,8 +2394,8 @@ function cn(t2, e2, n2) {
|
|
|
2385
2394
|
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return i2 = ln(n2, s2[1].length), n2 < 0 ? "-" + cn(t2, e2, -n2) : Ye((function(t3) {
|
|
2386
2395
|
return t3 < 2147483647 && t3 > -2147483648 ? "" + (t3 >= 0 ? 0 | t3 : t3 - 1 | 0) : "" + Math.floor(t3);
|
|
2387
2396
|
})(n2)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
|
|
2388
|
-
return "00," + (t3.length < 3 ?
|
|
2389
|
-
}) + "." +
|
|
2397
|
+
return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
|
|
2398
|
+
}) + "." + Ne(i2, s2[1].length);
|
|
2390
2399
|
switch (e2) {
|
|
2391
2400
|
case "###,##0.00":
|
|
2392
2401
|
return cn(t2, "#,##0.00", n2);
|
|
@@ -2436,13 +2445,13 @@ function dn(t2, e2, n2) {
|
|
|
2436
2445
|
if (-1 !== e2.indexOf("E")) return hn(e2, n2);
|
|
2437
2446
|
if (36 === e2.charCodeAt(0)) return "$" + dn(t2, e2.substr(" " === e2.charAt(1) ? 2 : 1), n2);
|
|
2438
2447
|
var o2, s2, i2, a2, l2 = Math.abs(n2), c2 = n2 < 0 ? "-" : "";
|
|
2439
|
-
if (e2.match(/^00+$/)) return c2 +
|
|
2448
|
+
if (e2.match(/^00+$/)) return c2 + Ne(l2, e2.length);
|
|
2440
2449
|
if (e2.match(/^[#?]+$/)) return o2 = "" + n2, 0 === n2 && (o2 = ""), o2.length > e2.length ? o2 : on(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2441
2450
|
if (s2 = e2.match(tn)) return (function(t3, e3, n3) {
|
|
2442
2451
|
return n3 + (0 === e3 ? "" : "" + e3) + Ae(" ", t3[1].length + 2 + t3[4].length);
|
|
2443
2452
|
})(s2, l2, c2);
|
|
2444
|
-
if (e2.match(/^#+0+$/)) return c2 +
|
|
2445
|
-
if (s2 = e2.match(en)) return o2 = ("" + n2).replace(/^([^.]+)$/, "." + on(s2[2])).replace(/\.$/, "." + on(s2[2])), o2 =
|
|
2453
|
+
if (e2.match(/^#+0+$/)) return c2 + Ne(l2, e2.length - e2.indexOf("0"));
|
|
2454
|
+
if (s2 = e2.match(en)) return o2 = ("" + n2).replace(/^([^.]+)$/, "." + on(s2[2])).replace(/\.$/, "." + on(s2[2])), o2 = Ne(Math.abs(n2), s2[1].length) + o2.replace(/\.(\d*)$/, function(t3, e3) {
|
|
2446
2455
|
return "." + e3 + Ae("0", on(s2[2]).length - e3.length);
|
|
2447
2456
|
}), o2 = -1 !== e2.indexOf("0.") ? o2 : o2.replace(/^0\./, "."), n2 < 0 ? "-" + o2 : o2;
|
|
2448
2457
|
if (e2 = e2.replace(/^#+([0.])/, "$1"), s2 = e2.match(/^(0*)\.(#*)$/)) return c2 + ("" + l2).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, s2[1].length ? "0." : ".");
|
|
@@ -2455,7 +2464,7 @@ function dn(t2, e2, n2) {
|
|
|
2455
2464
|
if (e2.match(rn)) return "(" + (o2 = dn(t2, "##########", n2)).substr(0, 3) + ") " + o2.substr(3, 3) + "-" + o2.substr(6);
|
|
2456
2465
|
var h2 = "";
|
|
2457
2466
|
if (s2 = e2.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(s2[4].length, 7), a2 = He(l2, Math.pow(10, i2) - 1, false), o2 = "" + c2, " " === (h2 = un("n", s2[1], a2[1])).charAt(h2.length - 1) && (h2 = h2.substr(0, h2.length - 1) + "0"), o2 += h2 + s2[2] + "/" + s2[3], (h2 = ke(a2[2], i2)).length < s2[4].length && (h2 = on(s2[4].substr(s2[4].length - h2.length)) + h2), o2 += h2;
|
|
2458
|
-
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 = He(l2, Math.pow(10, i2) - 1, true))[0] || (a2[1] ? "" : "0")) + " " + (a2[1] ?
|
|
2467
|
+
if (s2 = e2.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return i2 = Math.min(Math.max(s2[1].length, s2[4].length), 7), c2 + ((a2 = He(l2, Math.pow(10, i2) - 1, true))[0] || (a2[1] ? "" : "0")) + " " + (a2[1] ? Te(a2[1], i2) + s2[2] + "/" + s2[3] + ke(a2[2], i2) : Ae(" ", 2 * i2 + 1 + s2[2].length + s2[3].length));
|
|
2459
2468
|
if (s2 = e2.match(/^[#0?]+$/)) return o2 = "" + n2, e2.length <= o2.length ? o2 : on(e2.substr(0, e2.length - o2.length)) + o2;
|
|
2460
2469
|
if (s2 = e2.match(/^([#0]+)\.([#0]+)$/)) {
|
|
2461
2470
|
o2 = "" + n2.toFixed(Math.min(s2[2].length, 10)).replace(/([^0])0+$/, "$1"), i2 = o2.indexOf(".");
|
|
@@ -2463,8 +2472,8 @@ function dn(t2, e2, n2) {
|
|
|
2463
2472
|
return on(e2.substr(0, d2) + o2 + e2.substr(e2.length - u2));
|
|
2464
2473
|
}
|
|
2465
2474
|
if (s2 = e2.match(/^00,000\.([#0]*0)$/)) return n2 < 0 ? "-" + dn(t2, e2, -n2) : Ye("" + n2).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(t3) {
|
|
2466
|
-
return "00," + (t3.length < 3 ?
|
|
2467
|
-
}) + "." +
|
|
2475
|
+
return "00," + (t3.length < 3 ? Ne(0, 3 - t3.length) : "") + t3;
|
|
2476
|
+
}) + "." + Ne(0, s2[1].length);
|
|
2468
2477
|
switch (e2) {
|
|
2469
2478
|
case "###,###":
|
|
2470
2479
|
case "##,###":
|
|
@@ -2858,7 +2867,7 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2858
2867
|
for (var e2 = 0; 392 !== e2; ++e2) void 0 !== t2[e2] && wn(t2[e2], e2);
|
|
2859
2868
|
}, parse_date_code: Ve, is_date: fn, get_table: function() {
|
|
2860
2869
|
return yn._table = Pe;
|
|
2861
|
-
} }, En = "\\s*([-]?[0-9e]*[.]?[0-9]+)", Cn = new RegExp(`^rgb\\(${En},${En},${En}\\)$`), bn = new RegExp(`^rgba\\(${En},${En},${En},${En}\\)$`), vn = new RegExp(`^lrgb\\(${En},${En},${En}\\)$`), xn = new RegExp(`^lrgba\\(${En},${En},${En},${En}\\)$`), In = new RegExp(`^hsl\\(${En},${En},${En}\\)$`), Rn = new RegExp(`^hsla\\(${En},${En},${En},${En}\\)$`), An = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Mn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/),
|
|
2870
|
+
} }, En = "\\s*([-]?[0-9e]*[.]?[0-9]+)", Cn = new RegExp(`^rgb\\(${En},${En},${En}\\)$`), bn = new RegExp(`^rgba\\(${En},${En},${En},${En}\\)$`), vn = new RegExp(`^lrgb\\(${En},${En},${En}\\)$`), xn = new RegExp(`^lrgba\\(${En},${En},${En},${En}\\)$`), In = new RegExp(`^hsl\\(${En},${En},${En}\\)$`), Rn = new RegExp(`^hsla\\(${En},${En},${En},${En}\\)$`), An = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Mn = new RegExp(/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/), Nn = new RegExp("^index(\\d+)$", "i"), Tn = (t2, e2, n2) => [parseFloat(t2), parseFloat(e2), parseFloat(n2)], kn = (t2, e2 = 255) => {
|
|
2862
2871
|
const n2 = [...t2];
|
|
2863
2872
|
for (var r2 = 0; r2 < t2.length; r2++) n2[r2] = t2[r2] / e2;
|
|
2864
2873
|
return n2;
|
|
@@ -2883,13 +2892,13 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2883
2892
|
e2 %= 360, e2 /= 360, n2 /= 100, r2 /= 100;
|
|
2884
2893
|
let o2 = r2 < 0.5 ? r2 * (1 + n2) : r2 + n2 - n2 * r2, s2 = 2 * r2 - o2;
|
|
2885
2894
|
return [Math.max(0, Vn(s2, o2, e2 + 1 / 3)), Math.max(0, Vn(s2, o2, e2)), Math.max(0, Vn(s2, o2, e2 - 1 / 3))];
|
|
2886
|
-
}, Vn = (t2, e2, n2) => (n2 < 0 && (n2 += 1), n2 > 1 && (n2 -= 1), 6 * n2 < 1 ? t2 + 6 * (e2 - t2) * n2 : 2 * n2 < 1 ? e2 : 3 * n2 < 2 ? t2 + 6 * (e2 - t2) * (2 / 3 - n2) : t2),
|
|
2895
|
+
}, Vn = (t2, e2, n2) => (n2 < 0 && (n2 += 1), n2 > 1 && (n2 -= 1), 6 * n2 < 1 ? t2 + 6 * (e2 - t2) * n2 : 2 * n2 < 1 ? e2 : 3 * n2 < 2 ? t2 + 6 * (e2 - t2) * (2 / 3 - n2) : t2), $n = (t2) => {
|
|
2887
2896
|
let e2 = t2[0], n2 = t2[1], r2 = t2[2], o2 = Math.min(e2, Math.min(n2, r2)), s2 = Math.max(e2, Math.max(n2, r2)), i2 = 0;
|
|
2888
2897
|
s2 === o2 ? i2 = 0 : s2 === e2 ? i2 = (60 * (n2 - r2) / (s2 - o2) + 360) % 360 : s2 === n2 ? i2 = 60 * (r2 - e2) / (s2 - o2) + 120 : s2 === r2 && (i2 = 60 * (e2 - n2) / (s2 - o2) + 240);
|
|
2889
2898
|
const a2 = (s2 + o2) / 2;
|
|
2890
2899
|
let l2 = 0;
|
|
2891
2900
|
return l2 = s2 === o2 ? 0 : a2 <= 0.5 ? (s2 - o2) / (s2 + o2) : (s2 - o2) / (2 - s2 - o2), [i2, 100 * l2, 100 * a2];
|
|
2892
|
-
},
|
|
2901
|
+
}, jn = 0, Gn = 1, Un = 2, Jn = 0, qn = 1, Kn = 2, Xn = 0, Yn = 1, Qn = 2, Zn = (t2, e2) => {
|
|
2893
2902
|
let n2 = e2 / 100;
|
|
2894
2903
|
return ((t3, e3) => {
|
|
2895
2904
|
let n3 = Bn(t3);
|
|
@@ -2898,7 +2907,7 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2898
2907
|
return r2 = On(r2), r2;
|
|
2899
2908
|
})(t2, (t3, e3) => t3 * n2);
|
|
2900
2909
|
}, tr = 2.55, er = (t2, e2) => {
|
|
2901
|
-
const n2 =
|
|
2910
|
+
const n2 = $n(t2), r2 = n2[2], s2 = o.roundAccurately((i2 = r2, (a2 = e2) > 0 ? (i2 * tr * (1 - a2) + (255 - 255 * (1 - a2))) / tr : a2 < 0 ? i2 * tr * (1 + a2) / tr : i2), 3);
|
|
2902
2911
|
var i2, a2;
|
|
2903
2912
|
n2[2] = s2;
|
|
2904
2913
|
let l2 = Hn(n2);
|
|
@@ -2909,15 +2918,15 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2909
2918
|
let s2 = Pn(n2);
|
|
2910
2919
|
return s2 = On(s2), s2;
|
|
2911
2920
|
}, rr = (t2, e2, n2) => {
|
|
2912
|
-
let r2 =
|
|
2913
|
-
t2 ===
|
|
2921
|
+
let r2 = $n(e2), o2 = n2 / 1;
|
|
2922
|
+
t2 === jn && (o2 = Ln(n2)), r2[t2] = o2;
|
|
2914
2923
|
let s2 = Hn(r2);
|
|
2915
2924
|
return s2 = On(s2), s2;
|
|
2916
2925
|
}, or = (t2, e2, n2) => {
|
|
2917
|
-
let r2 =
|
|
2918
|
-
if (t2 ===
|
|
2926
|
+
let r2 = $n(e2);
|
|
2927
|
+
if (t2 === jn) {
|
|
2919
2928
|
let t3 = n2 / 360;
|
|
2920
|
-
r2[
|
|
2929
|
+
r2[jn] = 360 * (r2[jn] / 360 + t3), r2[jn] %= 360, r2[jn] < 0 && (r2[jn] -= 360);
|
|
2921
2930
|
} else {
|
|
2922
2931
|
let e3 = n2 / 0.1;
|
|
2923
2932
|
r2[t2] = 0.1 * (r2[t2] / 0.1 + e3);
|
|
@@ -2925,8 +2934,8 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2925
2934
|
let o2 = Hn(r2);
|
|
2926
2935
|
return o2 = On(o2), o2;
|
|
2927
2936
|
}, sr = (t2, e2, n2) => {
|
|
2928
|
-
let r2 =
|
|
2929
|
-
r2[t2] = r2[t2] * o2, t2 ===
|
|
2937
|
+
let r2 = $n(e2), o2 = n2 / 100;
|
|
2938
|
+
r2[t2] = r2[t2] * o2, t2 === jn && (r2[jn] = Ln(r2[jn]));
|
|
2930
2939
|
let s2 = Hn(r2);
|
|
2931
2940
|
return s2 = On(s2), s2;
|
|
2932
2941
|
}, ir = (t2, e2, n2, r2) => {
|
|
@@ -2940,8 +2949,8 @@ const yn = { format: Sn, dateNumLocal: Ue, load: wn, split_fmt: gn, _table: Pe,
|
|
|
2940
2949
|
let r2 = Pn(e2);
|
|
2941
2950
|
return r2 = On(r2), r2;
|
|
2942
2951
|
}, lr = (t2) => {
|
|
2943
|
-
let e2 =
|
|
2944
|
-
e2[
|
|
2952
|
+
let e2 = $n(t2);
|
|
2953
|
+
e2[jn] += 180, e2[jn] %= 360, e2[jn] < 0 && (e2[jn] -= 360);
|
|
2945
2954
|
let n2 = Hn(e2);
|
|
2946
2955
|
return n2 = On(n2), n2;
|
|
2947
2956
|
}, cr = (t2, e2 = true) => {
|
|
@@ -3047,12 +3056,12 @@ const xr = () => vr || (vr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3047
3056
|
let t3 = r2[1];
|
|
3048
3057
|
Rr.test(t3) || t3.includes("-");
|
|
3049
3058
|
}
|
|
3050
|
-
if (
|
|
3051
|
-
const r3 =
|
|
3059
|
+
if (Tr[t2] && (t2 = Tr[t2]), "number" == typeof e2) {
|
|
3060
|
+
const r3 = Nr(t2, e2, { locale: o2, ...n2 });
|
|
3052
3061
|
if (null !== r3) return r3.fmt;
|
|
3053
3062
|
}
|
|
3054
3063
|
return yn.format(t2, e2, n2);
|
|
3055
|
-
},
|
|
3064
|
+
}, Nr = (t2, e2, n2) => {
|
|
3056
3065
|
if ("number" != typeof e2) return null;
|
|
3057
3066
|
const r2 = to(e2, n2?.date1904 ?? false), o2 = n2?.locale ?? xr();
|
|
3058
3067
|
let s2 = false, i2 = t2, a2 = -1;
|
|
@@ -3081,7 +3090,7 @@ const xr = () => vr || (vr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3081
3090
|
i2 = i2.substring(0, a2) + t3 + i2.substring(a2 + 9), s2 = true;
|
|
3082
3091
|
}
|
|
3083
3092
|
return s2 ? { fmt: i2, date: r2 } : null;
|
|
3084
|
-
},
|
|
3093
|
+
}, Tr = Object.freeze({ "General Number": "General", "General Date": "m/d/yyyy h:mm", "Medium Date": yn.get_table()[15], "Medium Time": yn.get_table()[18], "Short Time": yn.get_table()[20], Currency: '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', Fixed: yn.get_table()[2], Standard: yn.get_table()[4], Percent: yn.get_table()[10], Scientific: yn.get_table()[11], "Yes/No": '"Yes";"Yes";"No";@', "True/False": '"True";"True";"False";@', "On/Off": '"Yes";"Yes";"No";@' }), kr = Object.freeze({ black: 0, white: 1, red: 2, green: 3, blue: 4, yellow: 5, magenta: 6, cyan: 7 }), Fr = (t2) => {
|
|
3085
3094
|
let e2 = null;
|
|
3086
3095
|
if ((t2 = t2.toLowerCase()).startsWith("color")) {
|
|
3087
3096
|
const n2 = parseInt(t2.substring(5));
|
|
@@ -3094,9 +3103,9 @@ const xr = () => vr || (vr = Intl.DateTimeFormat().resolvedOptions().locale ?? "
|
|
|
3094
3103
|
return e2;
|
|
3095
3104
|
}, Or = "=", Dr = "<>", Lr = ">", Br = "<", Pr = ">=", zr = "<=", Wr = /* @__PURE__ */ new Map();
|
|
3096
3105
|
Wr.set(Or, (t2, e2) => t2 === e2), Wr.set(Dr, (t2, e2) => t2 !== e2), Wr.set(Lr, (t2, e2) => t2 > e2), Wr.set(Br, (t2, e2) => t2 < e2), Wr.set(Pr, (t2, e2) => t2 >= e2), Wr.set(zr, (t2, e2) => t2 <= e2);
|
|
3097
|
-
const Hr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i,
|
|
3106
|
+
const Hr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr = /(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)/i, $r = /\[(.*?)\]/g, jr = (t2, e2) => {
|
|
3098
3107
|
const n2 = { color: null, condition: null };
|
|
3099
|
-
let r2 = null, o2 = new RegExp(
|
|
3108
|
+
let r2 = null, o2 = new RegExp($r);
|
|
3100
3109
|
for (; null !== (r2 = o2.exec(t2)); ) {
|
|
3101
3110
|
let e3 = false, o3 = Hr.exec(r2[1]);
|
|
3102
3111
|
if (o3) {
|
|
@@ -3119,7 +3128,7 @@ const Hr = /(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow|Color[0-9]+)/i, Vr =
|
|
|
3119
3128
|
for (let t4 = 0; t4 < n3.length; t4++) {
|
|
3120
3129
|
let r3 = null;
|
|
3121
3130
|
2 === n3.length ? 0 === t4 ? r3 = { op: Pr, comp: 0 } : 1 === t4 && (r3 = { op: Br, comp: 0 }) : 3 !== n3.length && 4 !== n3.length || (r3 = 0 === t4 ? { op: Lr, comp: 0 } : 1 === t4 ? { op: Br, comp: 0 } : 2 === t4 ? { op: Or, comp: 0 } : null);
|
|
3122
|
-
const o2 = n3[t4], s2 =
|
|
3131
|
+
const o2 = n3[t4], s2 = jr(o2, r3);
|
|
3123
3132
|
e3.push({ format: o2, colorAndCondition: s2 });
|
|
3124
3133
|
}
|
|
3125
3134
|
return e3;
|
|
@@ -3317,8 +3326,8 @@ const Eo = (t2, e2, n2 = 1e3) => {
|
|
|
3317
3326
|
if (void 0 === t2) return 0;
|
|
3318
3327
|
let e2 = t2.toString().split(".");
|
|
3319
3328
|
return e2.length <= 1 ? 0 : e2[1].length || 0;
|
|
3320
|
-
}, Ro = new RegExp(/^["|'|`](.*)["|'|`]$/), Ao = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Mo = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"),
|
|
3321
|
-
let r2 =
|
|
3329
|
+
}, Ro = new RegExp(/^["|'|`](.*)["|'|`]$/), Ao = new RegExp("^([a-zA-Z]+:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$", "i"), Mo = (t2 = ",", e2 = "'") => new RegExp(`\\s*${t2}\\s*(?=(?:[^${e2}]*${e2}[^${e2}]*${e2})*[^${e2}]*$)`, "g"), No = Mo(), To = (t2) => t2.replace(Ro, "$1"), ko = (t2, e2 = "'") => `${e2}${t2}${e2}`, Fo = (t2, e2 = void 0, n2 = void 0) => {
|
|
3330
|
+
let r2 = No;
|
|
3322
3331
|
return void 0 === e2 && void 0 === n2 || (r2 = Mo(e2, n2)), t2.split(r2);
|
|
3323
3332
|
}, Oo = (t2) => {
|
|
3324
3333
|
let e2;
|
|
@@ -3328,19 +3337,19 @@ const Eo = (t2, e2, n2 = 1e3) => {
|
|
|
3328
3337
|
return false;
|
|
3329
3338
|
}
|
|
3330
3339
|
return ("http:" === e2.protocol || "https:" === e2.protocol) && Ao.test(t2);
|
|
3331
|
-
}, Do = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Lo = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Do.test(t2), Bo = (t2) => ((t2 >= 26 ? Bo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Po = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx:
|
|
3340
|
+
}, Do = new RegExp(/^[^\s@]+@[^\s@]+\.[^\s@]+$/i), Lo = (t2) => !!t2.toLowerCase().startsWith("mailto:") || Do.test(t2), Bo = (t2) => ((t2 >= 26 ? Bo((t2 / 26 | 0) - 1) : "") + "abcdefghijklmnopqrstuvwxyz"[t2 % 26 | 0]).toUpperCase(), Po = Object.freeze(Object.defineProperty({ __proto__: null, DefaultUnQuoteRegEx: No, camelToSnake: (t2) => t2 ? t2.replace(/[A-Z]/g, (t3) => `_${t3.toLowerCase()}`) : t2, capitalize: Co, clampString: xo, countDecimals: Io, findValidTextValue: Eo, getBaseName: (t2, e2 = false) => {
|
|
3332
3341
|
if (!t2 || "string" != typeof t2) return "";
|
|
3333
3342
|
const n2 = t2.split(/[\\/]/).pop() || "";
|
|
3334
3343
|
if ("" === n2) return "";
|
|
3335
3344
|
const r2 = bo(n2), o2 = 0 === r2.length ? n2 : n2.slice(0, n2.length - r2.length - 1);
|
|
3336
3345
|
return e2 ? Co(o2, true) : o2;
|
|
3337
|
-
}, getFileNameExtension: bo, isQuoted: (t2) => t2 && t2.length > 1 && Ro.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Lo, isValidHttpUrl: Oo, numberToAlphabet: Bo, quote: ko, snakeToCamel: vo, splitUnquoted: Fo, unquote:
|
|
3346
|
+
}, getFileNameExtension: bo, isQuoted: (t2) => t2 && t2.length > 1 && Ro.test(t2) && t2[0] === t2[t2.length - 1], isValidEmail: Lo, isValidHttpUrl: Oo, numberToAlphabet: Bo, quote: ko, snakeToCamel: vo, splitUnquoted: Fo, unquote: To }, Symbol.toStringTag, { value: "Module" })), zo = (t2, e2, n2, r2 = null) => {
|
|
3338
3347
|
const o2 = (e2 || 11 * qo.getDeviceScale()) / qo.getDeviceScale(), s2 = r2?.letterSpacing || 0, i2 = t2.length;
|
|
3339
3348
|
const a2 = i2 * (0.55 * o2) - (t2.match(/[il.,;!|]/g) || []).length * o2 * 0.15 + (t2.match(/[mwMW]/g) || []).length * o2 * 0.1 + (i2 > 0 ? (i2 - 1) * s2 : 0), l2 = Math.ceil(1.2 * o2), c2 = Math.ceil(0.8 * o2), h2 = Math.ceil(0.2 * o2), d2 = Math.ceil(0.45 * o2), u2 = Math.ceil(1.1 * o2), g2 = Math.max(1, Math.ceil(0.08 * o2));
|
|
3340
3349
|
return { width: a2, lineHeight: l2, baseline: c2, lineGap: h2, strikePosition: d2, underlinePosition: u2, strikeThickness: g2, underlineThickness: g2, actualBoundingBoxLeft: 0, actualBoundingBoxRight: a2, actualBoundingBoxAscent: c2, actualBoundingBoxDescent: l2 - c2, fontBoundingBoxAscent: c2, fontBoundingBoxDescent: l2 - c2, emHeightAscent: c2, emHeightDescent: l2 - c2, hangingBaseline: 0.8 * c2, alphabeticBaseline: c2, ideographicBaseline: l2 };
|
|
3341
3350
|
}, Wo = () => zo;
|
|
3342
3351
|
let Ho = "./packages/sdk/src/__tests__/fonts/";
|
|
3343
|
-
const Vo = /* @__PURE__ */ new Map(),
|
|
3352
|
+
const Vo = /* @__PURE__ */ new Map(), $o = /* @__PURE__ */ new Set(), jo = (t2, e2, n2, r2 = null) => {
|
|
3344
3353
|
const o2 = e2, s2 = Ho + n2.toLowerCase() + ".ttf";
|
|
3345
3354
|
let i2 = null;
|
|
3346
3355
|
try {
|
|
@@ -3351,7 +3360,7 @@ const Vo = /* @__PURE__ */ new Map(), jo = /* @__PURE__ */ new Set(), $o = (t2,
|
|
|
3351
3360
|
i2 = R(Ho + "calibri.ttf");
|
|
3352
3361
|
} catch (t3) {
|
|
3353
3362
|
}
|
|
3354
|
-
if (!i2) return
|
|
3363
|
+
if (!i2) return $o.has(s2) || $o.add(s2), Wo().call(null, t2, e2, n2, r2);
|
|
3355
3364
|
const a2 = `${s2}${t2}${o2}`;
|
|
3356
3365
|
let l2 = Vo.get(a2);
|
|
3357
3366
|
l2 || (l2 = i2.layout(t2), t2.length < 2 && Vo.set(a2, l2));
|
|
@@ -3376,7 +3385,7 @@ var qo, Ko;
|
|
|
3376
3385
|
}, Ko.getSharedMeasurer = () => Jo || (Jo = (() => {
|
|
3377
3386
|
if (Go) return Go;
|
|
3378
3387
|
try {
|
|
3379
|
-
Go =
|
|
3388
|
+
Go = jo;
|
|
3380
3389
|
} catch {
|
|
3381
3390
|
}
|
|
3382
3391
|
return Go || (console.warn("⚠️ FontKitFontMeasurer not available, falling back to SimpleFontMeasurer"), Go = Wo()), Go;
|
|
@@ -3923,7 +3932,7 @@ const Is = (t2, e2 = false) => {
|
|
|
3923
3932
|
return n2.value = t3, t3;
|
|
3924
3933
|
}
|
|
3925
3934
|
return i2--, e2.index = i2, n2.min = i2 >= 0 ? a2[i2].max + 1 : Number.MIN_SAFE_INTEGER, n2.max = c2 - 1, n2.value = null, null;
|
|
3926
|
-
},
|
|
3935
|
+
}, Ns = function(t2, e2, n2, r2) {
|
|
3927
3936
|
if (0 === t2.length) {
|
|
3928
3937
|
if (null != n2 || null != r2) {
|
|
3929
3938
|
const t3 = e2({ min: n2 ?? r2, max: r2 ?? n2 });
|
|
@@ -3946,7 +3955,7 @@ const Is = (t2, e2 = false) => {
|
|
|
3946
3955
|
const t3 = e2({ min: Math.min(a2 + 1, i2), max: i2 });
|
|
3947
3956
|
if (t3 && t3.break) return t3;
|
|
3948
3957
|
}
|
|
3949
|
-
},
|
|
3958
|
+
}, Ts = new RegExp("([0-9]+)$");
|
|
3950
3959
|
var ks, Fs, Os, Ds, Ls, Bs;
|
|
3951
3960
|
((t2) => {
|
|
3952
3961
|
t2.Date = class {
|
|
@@ -4013,7 +4022,7 @@ var ks, Fs, Os, Ds, Ls, Bs;
|
|
|
4013
4022
|
const e2 = { value: null, template: null }, n2 = { sensitivity: "accent" };
|
|
4014
4023
|
t2.Ordinal = class {
|
|
4015
4024
|
_template(t3) {
|
|
4016
|
-
const e3 = t3.match(
|
|
4025
|
+
const e3 = t3.match(Ts);
|
|
4017
4026
|
if (!e3) return null;
|
|
4018
4027
|
const n3 = e3[1], r3 = t3.lastIndexOf(n3);
|
|
4019
4028
|
return -1 === r3 ? null : t3.substring(0, r3);
|
|
@@ -4028,7 +4037,7 @@ var ks, Fs, Os, Ds, Ls, Bs;
|
|
|
4028
4037
|
const n3 = [], r3 = t3[0];
|
|
4029
4038
|
let o3 = null, s3 = null, i3 = 0;
|
|
4030
4039
|
if (r3) {
|
|
4031
|
-
const t4 = r3.match(
|
|
4040
|
+
const t4 = r3.match(Ts);
|
|
4032
4041
|
if (t4) {
|
|
4033
4042
|
o3 = t4[1], o3.startsWith("0") && (i3 = o3.length);
|
|
4034
4043
|
const e4 = r3.lastIndexOf(o3);
|
|
@@ -4233,7 +4242,7 @@ const zs = new class {
|
|
|
4233
4242
|
}
|
|
4234
4243
|
}(), Ws = [{ scheme: Ls.Scheme.Tx1, description: "First Text Color" }, { scheme: Ls.Scheme.Tx2, description: "Second Text Color" }, { scheme: Ls.Scheme.Bg1, description: "First Background Color" }, { scheme: Ls.Scheme.Bg2, description: "Second Background Color" }, { scheme: Ls.Scheme.Accent1, description: "Accent 1" }, { scheme: Ls.Scheme.Accent2, description: "Accent 2" }, { scheme: Ls.Scheme.Accent3, description: "Accent 3" }, { scheme: Ls.Scheme.Accent4, description: "Accent 4" }, { scheme: Ls.Scheme.Accent5, description: "Accent 5" }, { scheme: Ls.Scheme.Accent6, description: "Accent 6" }, { scheme: Ls.Scheme.Hlink, description: "Hyperlink" }, { scheme: Ls.Scheme.FolHlink, description: "Followed Hyperlink" }, { scheme: "dk1", description: "Text/Background - Dark 1" }, { scheme: "lt1", description: "Text/Background - Light 1" }, { scheme: "dk2", description: "Text/Background - Dark 2" }, { scheme: "lt2", description: "Text/Background - Light 2" }], Hs = /* @__PURE__ */ new Map();
|
|
4235
4244
|
for (let t2 = 0; t2 < Ws.length; t2++) Hs.set(Ws[t2].scheme.toLowerCase(), Ws[t2]);
|
|
4236
|
-
const Vs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null,
|
|
4245
|
+
const Vs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], alpha: void 0 !== t2.alpha ? t2.alpha : 1 } : null, $s = function(t2, e2, n2, r2) {
|
|
4237
4246
|
let o2 = Vs(((t3) => {
|
|
4238
4247
|
let e3 = zs.valueOfName(t3);
|
|
4239
4248
|
return e3 ? new pr.RGBA(e3.rgbaColor.r, e3.rgbaColor.g, e3.rgbaColor.b, e3.rgbaColor.a) : null;
|
|
@@ -4253,26 +4262,26 @@ const Vs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
|
|
|
4253
4262
|
if (null === o2) {
|
|
4254
4263
|
let e3 = t2.match(Cn) || t2.match(bn);
|
|
4255
4264
|
if (e3) {
|
|
4256
|
-
let t3 =
|
|
4265
|
+
let t3 = Tn(e3[1], e3[2], e3[3]);
|
|
4257
4266
|
t3 = kn(t3), t3 = On(t3), o2 = { srgb: t3, alpha: e3[4] ? Dn(parseFloat(e3[4])) : 1 }, a2 = Ls.Type.RGB;
|
|
4258
4267
|
}
|
|
4259
4268
|
}
|
|
4260
4269
|
if (null === o2) {
|
|
4261
4270
|
let e3 = t2.match(vn) || t2.match(xn);
|
|
4262
4271
|
if (e3) {
|
|
4263
|
-
let t3 =
|
|
4272
|
+
let t3 = Tn(e3[1], e3[2], e3[3]);
|
|
4264
4273
|
t3 = kn(t3, 100), t3 = Pn(t3), t3 = On(t3), o2 = { srgb: t3, alpha: e3[4] ? Dn(parseFloat(e3[4])) : 1 }, a2 = Ls.Type.LRGB;
|
|
4265
4274
|
}
|
|
4266
4275
|
}
|
|
4267
4276
|
if (null === o2) {
|
|
4268
4277
|
let e3 = t2.match(In) || t2.match(Rn);
|
|
4269
4278
|
if (e3) {
|
|
4270
|
-
let t3 =
|
|
4279
|
+
let t3 = Tn(e3[1], e3[2], e3[3]);
|
|
4271
4280
|
t3 = Hn(t3), t3 = On(t3), o2 = { srgb: t3, alpha: e3[4] ? Dn(parseFloat(e3[4])) : 1 }, a2 = Ls.Type.HSL;
|
|
4272
4281
|
}
|
|
4273
4282
|
}
|
|
4274
4283
|
if (null === o2) {
|
|
4275
|
-
let e3 = t2.match(
|
|
4284
|
+
let e3 = t2.match(Nn);
|
|
4276
4285
|
if (e3) {
|
|
4277
4286
|
const t3 = parseInt(e3[1]);
|
|
4278
4287
|
let r3 = n2?.(t3) ?? Cr(t3);
|
|
@@ -4281,8 +4290,8 @@ const Vs = (t2) => t2 ? { srgb: [t2.red / 255, t2.green / 255, t2.blue / 255], a
|
|
|
4281
4290
|
}
|
|
4282
4291
|
if (null === o2) throw new Error("Not a valid color format: " + t2);
|
|
4283
4292
|
return { srgbAlpha: o2, key: s2, color: i2, type: a2 };
|
|
4284
|
-
},
|
|
4285
|
-
for (let t2 = 0; t2 < Gs.length; t2++)
|
|
4293
|
+
}, js = /* @__PURE__ */ new Map(), Gs = Object.keys(Ls.AdjustmentType);
|
|
4294
|
+
for (let t2 = 0; t2 < Gs.length; t2++) js.set(Ls.AdjustmentType[Gs[t2]].toLowerCase(), Ls.AdjustmentType[Gs[t2]]);
|
|
4286
4295
|
const Us = new RegExp("\\s+\\s*(?![^()]*\\))|,\\s*(?![^()]*\\))"), Js = new RegExp("\\s*[,]\\s*|\\s+");
|
|
4287
4296
|
let qs = null;
|
|
4288
4297
|
const Ks = { [Ls.Scheme.Bg1]: "window", [Ls.Scheme.Bg2]: "E7E6E6", [Ls.Scheme.Tx1]: "windowText", [Ls.Scheme.Tx2]: "44546A", [Ls.Scheme.Accent1]: "4472C4", [Ls.Scheme.Accent2]: "ED7D31", [Ls.Scheme.Accent3]: "A5A5A5", [Ls.Scheme.Accent4]: "FFC000", [Ls.Scheme.Accent5]: "5B9BD5", [Ls.Scheme.Accent6]: "70AD47", [Ls.Scheme.Hlink]: "0563C1", [Ls.Scheme.FolHlink]: "954F72" };
|
|
@@ -4295,7 +4304,7 @@ class Xs {
|
|
|
4295
4304
|
o2 = e3.val, s2 = e3.adjs;
|
|
4296
4305
|
} else t2?.val && (o2 = t2.val, s2 = t2.adjs);
|
|
4297
4306
|
if (!o2) throw new Error("Unable to determine color value");
|
|
4298
|
-
this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal:
|
|
4307
|
+
this._private = { val: o2, adjs: s2, schemeLookup: e2, indexedLookup: n2, parsedVal: $s(o2, e2, n2), adjusted: null, resolved: null };
|
|
4299
4308
|
}
|
|
4300
4309
|
_parse(t2) {
|
|
4301
4310
|
let e2 = null, n2 = t2.toLowerCase().trim();
|
|
@@ -4305,7 +4314,7 @@ class Xs {
|
|
|
4305
4314
|
for (let t3 = 0; t3 < s2.length; t3++) {
|
|
4306
4315
|
const e3 = s2[t3];
|
|
4307
4316
|
if (!e3) continue;
|
|
4308
|
-
const n3 =
|
|
4317
|
+
const n3 = js.get(e3.toLowerCase());
|
|
4309
4318
|
if (!n3) throw new Error("Invalid adjustment type:" + e3);
|
|
4310
4319
|
let r3 = null;
|
|
4311
4320
|
if (n3 === Ls.AdjustmentType.Gray || n3 === Ls.AdjustmentType.Comp || n3 === Ls.AdjustmentType.Inv || n3 === Ls.AdjustmentType.Gamma || n3 === Ls.AdjustmentType.InvGamma) ;
|
|
@@ -4331,9 +4340,9 @@ class Xs {
|
|
|
4331
4340
|
return [s3(n3[0] * i2 + n3[1] * a2 + n3[2] * l2), s3(n3[3] * i2 + n3[4] * a2 + n3[5] * l2), s3(n3[6] * i2 + n3[7] * a2 + n3[8] * l2)];
|
|
4332
4341
|
})(n2, 180), n2 = cr(n2, false);
|
|
4333
4342
|
let r2 = Bn(n2);
|
|
4334
|
-
const o2 =
|
|
4343
|
+
const o2 = $n(r2);
|
|
4335
4344
|
if (o2[Un] = 0.95 * o2[Un], r2 = Hn(o2), n2 = Pn(r2), n2 = Fn(n2), n2 = On(n2, false), t2) return new pr.RGBA(n2[0], n2[1], n2[2], e2.alpha);
|
|
4336
|
-
const s2 =
|
|
4345
|
+
const s2 = $n(Bn(n2));
|
|
4337
4346
|
return new pr.HSLA(s2[0], s2[1], s2[2], e2.alpha);
|
|
4338
4347
|
}
|
|
4339
4348
|
_resolve() {
|
|
@@ -4342,12 +4351,12 @@ class Xs {
|
|
|
4342
4351
|
let t3 = this._private.schemeLookup(this._private.parsedVal.key);
|
|
4343
4352
|
if (t3 === this._private.parsedVal.color || t3?.isEqual(this._private.parsedVal.color)) return;
|
|
4344
4353
|
}
|
|
4345
|
-
const t2 =
|
|
4354
|
+
const t2 = $s(this._private.val, this._private.schemeLookup, this._private.indexedLookup, this._private.last);
|
|
4346
4355
|
let e2 = ((t3, e3) => {
|
|
4347
4356
|
let n3 = [...t3.srgb], r3 = void 0 !== t3.alpha ? t3.alpha : 1;
|
|
4348
4357
|
for (var o2 = 0; e3 && o2 < e3.length; o2++) {
|
|
4349
4358
|
const t4 = e3[o2], s2 = Object.keys(t4)[0], i2 = t4[s2];
|
|
4350
|
-
s2 === Ls.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.Hue ? n3 = rr(
|
|
4359
|
+
s2 === Ls.AdjustmentType.Alpha ? (r3 = i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaOff ? (r3 += i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.AlphaMod ? (r3 *= i2 / 100, r3 = Math.max(0, Math.min(1, r3))) : s2 === Ls.AdjustmentType.Hue ? n3 = rr(jn, n3, i2) : s2 === Ls.AdjustmentType.Sat ? n3 = rr(Gn, n3, i2) : s2 === Ls.AdjustmentType.Lum ? n3 = rr(Un, n3, i2) : s2 === Ls.AdjustmentType.HueOff ? n3 = or(jn, n3, i2) : s2 === Ls.AdjustmentType.SatOff ? n3 = or(Gn, n3, i2) : s2 === Ls.AdjustmentType.LumOff ? n3 = or(Un, n3, i2) : s2 === Ls.AdjustmentType.HueMod ? n3 = sr(jn, n3, i2) : s2 === Ls.AdjustmentType.SatMod ? n3 = sr(Gn, n3, i2) : s2 === Ls.AdjustmentType.LumMod ? n3 = sr(Un, n3, i2) : s2 === Ls.AdjustmentType.Red ? n3 = ir(Jn, n3, i2, Xn) : s2 === Ls.AdjustmentType.Green ? n3 = ir(qn, n3, i2, Xn) : s2 === Ls.AdjustmentType.Blue ? n3 = ir(Kn, n3, i2, Xn) : s2 === Ls.AdjustmentType.RedOff ? n3 = ir(Jn, n3, i2, Yn) : s2 === Ls.AdjustmentType.GreenOff ? n3 = ir(qn, n3, i2, Yn) : s2 === Ls.AdjustmentType.BlueOff ? n3 = ir(Kn, n3, i2, Yn) : s2 === Ls.AdjustmentType.RedMod ? n3 = ir(Jn, n3, i2, Qn) : s2 === Ls.AdjustmentType.GreenMod ? n3 = ir(qn, n3, i2, Qn) : s2 === Ls.AdjustmentType.BlueMod ? n3 = ir(Kn, n3, i2, Qn) : s2 === Ls.AdjustmentType.Shade ? n3 = Zn(n3, i2) : s2 === Ls.AdjustmentType.Tint ? n3 = nr(n3, i2) : s2 === Ls.AdjustmentType.ETint ? n3 = er(n3, i2) : s2 === Ls.AdjustmentType.Gray ? n3 = ar(n3) : s2 === Ls.AdjustmentType.Comp ? n3 = lr(n3) : s2 === Ls.AdjustmentType.Inv ? n3 = cr(n3, i2) : s2 === Ls.AdjustmentType.Gamma ? n3 = hr(n3) : s2 === Ls.AdjustmentType.InvGamma ? n3 = dr(n3) : console.warn("unknown adjustmentType: " + s2);
|
|
4351
4360
|
}
|
|
4352
4361
|
return { srgb: n3, alpha: r3 };
|
|
4353
4362
|
})(t2.srgbAlpha, this._private.adjs), n2 = ((t3, e3 = 255) => {
|
|
@@ -4373,7 +4382,7 @@ class Xs {
|
|
|
4373
4382
|
for (let e3 = 0; e3 < o3.length; e3++) {
|
|
4374
4383
|
const n3 = o3[e3];
|
|
4375
4384
|
if (!n3) continue;
|
|
4376
|
-
const r3 =
|
|
4385
|
+
const r3 = js.get(n3.toLowerCase());
|
|
4377
4386
|
if (!r3) throw new Error("Invalid adjustment type:" + n3);
|
|
4378
4387
|
let s3 = null;
|
|
4379
4388
|
if (r3 === Ls.AdjustmentType.Gray || r3 === Ls.AdjustmentType.Comp || r3 === Ls.AdjustmentType.Inv || r3 === Ls.AdjustmentType.Gamma || r3 === Ls.AdjustmentType.InvGamma) ;
|
|
@@ -4426,7 +4435,7 @@ class Xs {
|
|
|
4426
4435
|
}
|
|
4427
4436
|
toHSLA(t2 = false) {
|
|
4428
4437
|
if (this._resolve(), t2) return this._forceDark(false);
|
|
4429
|
-
let e2 =
|
|
4438
|
+
let e2 = $n(this._private.adjusted.srgb);
|
|
4430
4439
|
return new pr.HSLA(e2[0], e2[1], e2[2], Dn(this._private.adjusted.alpha ?? 1));
|
|
4431
4440
|
}
|
|
4432
4441
|
toHex(t2 = false) {
|
|
@@ -4553,13 +4562,13 @@ const wi = (t2, e2, n2, r2, o2) => {
|
|
|
4553
4562
|
};
|
|
4554
4563
|
var Ei, Ci;
|
|
4555
4564
|
(Ei || (Ei = {})).buildPalette = yi, (Ci || (Ci = {})).BuiltInFilterType = { BuiltIn: "builtIn", All: "all", Custom: "custom" };
|
|
4556
|
-
const bi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], vi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], xi = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], Ii = "Themes is readonly. To make modifications create a new DocsThemes instance.", Ri = { [Ls.Scheme.Bg1]: "lt1", [Ls.Scheme.Bg2]: "lt2", [Ls.Scheme.Tx1]: "dk1", [Ls.Scheme.Tx2]: "dk2", [Ls.Scheme.Accent1]: "accent1", [Ls.Scheme.Accent2]: "accent2", [Ls.Scheme.Accent3]: "accent3", [Ls.Scheme.Accent4]: "accent4", [Ls.Scheme.Accent5]: "accent5", [Ls.Scheme.Accent6]: "accent6", [Ls.Scheme.Hlink]: "hlink", [Ls.Scheme.FolHlink]: "folHlink" }, Ai = "Office", Mi = [Ai, "Calibri Light", "Calibri"],
|
|
4565
|
+
const bi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E97132", "196B24", "0F9ED5", "A02B93", "4EA72E", "467886", "96607D"], ["Office 2013-2022", "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"], ["Office 2007-2010", "windowText", "window", "1F497D", "EEECE1", "4F81BD", "C0504D", "9BBB59", "8064A2", "4BACC6", "F79646", "0000FF", "800080"], ["Grayscale", "windowText", "window", "000000", "F8F8F8", "DDDDDD", "B2B2B2", "969696", "808080", "5F5F5F", "4D4D4D", "5F5F5F", "919191"], ["Atlas", "windowText", "window", "454545", "E0E0E0", "F81B02", "FC7715", "AFBF41", "50C49F", "3B95C4", "B560D4", "FC5A1A", "B49E74"], ["Banded", "2C2C2C", "FFFFFF", "099BDD", "F2F2F2", "FFC000", "A5D028", "08CC78", "F24099", "828288", "F56617", "005DBA", "6C606A"], ["Basis", "000000", "FFFFFF", "565349", "DDDDDD", "A6B727", "DF5327", "FE9E00", "418AB3", "D7D447", "818183", "F59E00", "B2B2B2"], ["Berlin", "windowText", "window", "9D360E", "E7E6E6", "F09415", "C1B56B", "4BAF73", "5AA6C0", "D17DF9", "FA7E5C", "FFAE3E", "FCC77E"], ["Celestial", "windowText", "window", "18276C", "EBEBEB", "AC3EC1", "477BD1", "46B298", "90BA4C", "DD9D31", "E25247", "C573D2", "CCAEE8"], ["Circuit", "windowText", "window", "134770", "82FFFF", "9ACD4C", "FAA93A", "D35940", "B258D3", "63A0CC", "8AC4A7", "B8FA56", "7AF8CC"], ["Damask", "windowText", "window", "2A5B7F", "ABDAFC", "9EC544", "50BEA3", "4A9CCC", "9A66CA", "C54F71", "DE9C3C", "6BA9DA", "A0BCD3"], ["Depth", "windowText", "window", "455F51", "94D7E4", "41AEBD", "97E9D5", "A2CF49", "608F3D", "F4DE3A", "FCB11C", "FBCA98", "D3B86D"], ["Dividend", "windowText", "window", "3D3D3D", "EBEBEB", "4D1434", "903163", "B2324B", "969FA7", "66B1CE", "40619D", "828282", "A5A5A5"], ["Droplet", "windowText", "window", "355071", "AABED7", "2FA3EE", "4BCAAD", "86C157", "D99C3F", "CE6633", "A35DD1", "56BCFE", "97C5E3"], ["Facet", "windowText", "window", "2C3C43", "EBEBEB", "90C226", "54A021", "E6B91E", "E76618", "C42F1A", "918655", "99CA3C", "B9D181"], ["Frame", "000000", "FFFFFF", "545454", "BFBFBF", "40BAD2", "FAB900", "90BB23", "EE7008", "1AB39F", "D5393D", "90BB23", "EE7008"], ["Gallery", "windowText", "window", "454545", "DFDBD5", "B71E42", "DE478E", "BC72F0", "795FAF", "586EA6", "6892A0", "FA2B5C", "BC658E"], ["Integral", "windowText", "window", "335B74", "DFE3E5", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "6B9F25", "B26B02"], ["Ion Boardroom", "windowText", "window", "3B3059", "EBEBEB", "B31166", "E33D6F", "E45F3C", "E9943A", "9B6BF2", "D53DD0", "8F8F8F", "A5A5A5"], ["Ion", "windowText", "window", "1E5155", "EBEBEB", "B01513", "EA6312", "E6B729", "6AAC90", "54849A", "9E5E9B", "58C1BA", "9DFFCB"], ["Madison", "windowText", "window", "1F2D29", "C5FAEB", "A1D68B", "5EC795", "4DADCF", "CDB756", "E29C36", "8EC0C1", "6D9D9B", "6D8583"], ["Main Event", "windowText", "window", "424242", "C8C8C8", "B80E0F", "A6987D", "7F9A71", "64969F", "9B75B2", "80737A", "F21213", "B6A394"], ["Mesh", "windowText", "window", "363D46", "EBEBEB", "6F6F6F", "BFBFA5", "DCD084", "E7BF5F", "E9A039", "CF7133", "F28943", "F1B76C"], ["Metropolitan", "windowText", "window", "162F33", "EAF0E0", "50B4C8", "A8B97F", "9B9256", "657689", "7A855D", "84AC9D", "2370CD", "877589"], ["Organic", "windowText", "window", "212121", "DADADA", "83992A", "3C9770", "44709D", "A23C33", "D97828", "DEB340", "A8BF4D", "B4CA80"], ["Parallax", "windowText", "window", "212121", "CDD0D1", "30ACEC", "80C34F", "E29D3E", "D64A3B", "D64787", "A666E1", "3085ED", "82B6F4"], ["Parcel", "000000", "FFFFFF", "4A5356", "E8E3CE", "F6A21D", "9BAFB5", "C96731", "9CA383", "87795D", "A0988C", "00B0F0", "738F97"], ["Quotable", "windowText", "window", "212121", "636363", "00C6BB", "6FEBA0", "B6DF5E", "EFB251", "EF755F", "ED515C", "8F8F8F", "A5A5A5"], ["Retrospect", "000000", "window", "637052", "CCDDEA", "E48312", "BD582C", "865640", "9B8357", "C2BC80", "94A088", "2998E3", "8C8C8C"], ["Savon", "windowText", "window", "1485A4", "E3DED1", "1CADE4", "2683C6", "27CED7", "42BA97", "3E8853", "62A39F", "F49100", "739D9B"], ["Slate", "windowText", "window", "212123", "DADADA", "BC451B", "D3BA68", "BB8640", "AD9277", "A55A43", "AD9D7B", "E98052", "F4B69B"], ["Slice", "windowText", "window", "146194", "76DBF4", "052F61", "A50E82", "14967C", "6A9E1F", "E87D37", "C62324", "0D2E46", "356A95"], ["Vapor Trail", "windowText", "window", "454545", "DADADA", "DF2E28", "FE801A", "E9BF35", "81BB42", "32C7A9", "4A9BDC", "F0532B", "F38B53"], ["View", "000000", "FFFFFF", "46464A", "D6D3CC", "6F6F74", "92A9B9", "A7B789", "B9A489", "8D6374", "9B7362", "67AABF", "ABAFA5"], ["Wisp", "windowText", "window", "766F54", "E3EACF", "A53010", "DE7E18", "9F8351", "728653", "92AA4C", "6AAC91", "FB4A18", "FB9318"], ["Wood Type", "windowText", "window", "696464", "E9E5DC", "D34817", "9B2D1F", "A28E6A", "956251", "918485", "855D5D", "CC9900", "96A9A9"]], vi = [["Office", "Calibri Light", "Calibri"], ["Office 2013-2022", "Calibri Light", "Calibri"], ["Office 2007-2010", "Calibri Light", "Calibri"], ["Grayscale", "Calibri Light", "Calibri"], ["Atlas", "Calibri Light", "Rockwell"], ["Banded", "Corbel", "Corbel"], ["Basis", "Corbel", "Corbel"], ["Berlin", "Trebuchet MS", "Trebuchet MS"], ["Celestial", "Calibri Light", "Calibri"], ["Circuit", "Tw Cen MT", "Tw Cen MT"], ["Damask", "Bookman Old Style", "Rockwell"], ["Depth", "Corbel", "Corbel"], ["Madison", "Arial", "Arial"], ["Main Event", "Impact", "Impact"], ["Mesh", "Century Gothic", "Century Gothic"], ["Metropolitan", "Calibri Light", "Calibri Light"], ["Organic", "Garamond", "Garamond"], ["Parallax", "Corbel", "Corbel"], ["Parcel", "Gill Sans MT", "Gill Sans MT"], ["Quotable", "Century Gothic", "Century Gothic"], ["Retrospect", "Calibri Light", "Calibri"], ["Savon", "Century Gothic", "Century Gothic"], ["Slate", "Calisto MT", "Calisto MT"], ["Slice", "Century Gothic", "Century Gothic"], ["Vapor Trail", "Century Gothic", "Century Gothic"], ["View", "Century Schoolbook", "Century Schoolbook"], ["Wisp", "Century Gothic", "Century Gothic"], ["Wood Type", "Rockwell Condensed", "Rockwell"]], xi = [["Office", "Office", "Office"], ["2013-2022", "Office 2013-2022", "Office 2013-2022"], ["Atlas", "Atlas", "Atlas"], ["Banded", "Banded", "Banded"], ["Basis", "Basis", "Basis"], ["Berlin", "Berlin", "Berlin"], ["Celestial", "Celestial", "Celestial"], ["Circuit", "Circuit", "Circuit"], ["Damask", "Damask", "Damask"], ["Depth", "Depth", "Depth"], ["Dividend", "Dividend", "Dividend"], ["Droplet", "Droplet", "Droplet"], ["Facet", "Facet", "Facet"], ["Frame", "Frame", "Frame"], ["Gallery", "Gallery", "Gallery"], ["Grayscale", "Grayscale", "Grayscale"], ["Integral", "Integral", "Integral"], ["Ion Boardroom", "Ion Boardroom", "Ion Boardroom"], ["Ion", "Ion", "Ion"], ["Madison", "Madison", "Madison"], ["Main Event", "Main Event", "Main Event"], ["Mesh", "Mesh", "Mesh"], ["Metropolitan", "Metropolitan", "Metropolitan"], ["Organic", "Organic", "Organic"], ["Parallax", "Parallax", "Parallax"], ["Parcel", "Parcel", "Parcel"], ["Quotable", "Quotable", "Quotable"], ["Retrospect", "Retrospect", "Retrospect"], ["Savon", "Savon", "Savon"], ["Slate", "Slate", "Slate"], ["Slice", "Slice", "Slice"], ["Vapor Trail", "Vapor Trail", "Vapor Trail"], ["View", "View", "View"], ["Wisp", "Wisp", "Wisp"], ["Wood Type", "Wood Type", "Wood Type"], ["Office 2007-2010", "Office 2007-2010", "Office 2007-2010"]], Ii = "Themes is readonly. To make modifications create a new DocsThemes instance.", Ri = { [Ls.Scheme.Bg1]: "lt1", [Ls.Scheme.Bg2]: "lt2", [Ls.Scheme.Tx1]: "dk1", [Ls.Scheme.Tx2]: "dk2", [Ls.Scheme.Accent1]: "accent1", [Ls.Scheme.Accent2]: "accent2", [Ls.Scheme.Accent3]: "accent3", [Ls.Scheme.Accent4]: "accent4", [Ls.Scheme.Accent5]: "accent5", [Ls.Scheme.Accent6]: "accent6", [Ls.Scheme.Hlink]: "hlink", [Ls.Scheme.FolHlink]: "folHlink" }, Ai = "Office", Mi = [Ai, "Calibri Light", "Calibri"], Ni = ["dk1", "lt1", "dk2", "lt2", "accent1", "accent2", "accent3", "accent4", "accent5", "accent6", "hlink", "folHlink"], Ti = (t2) => {
|
|
4557
4566
|
const e2 = {};
|
|
4558
4567
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4559
4568
|
const r2 = t2[n2], o2 = r2[0], s2 = { name: o2 };
|
|
4560
4569
|
e2[o2] = s2;
|
|
4561
|
-
for (let t3 = 0; t3 <
|
|
4562
|
-
const e3 =
|
|
4570
|
+
for (let t3 = 0; t3 < Ni.length; t3++) {
|
|
4571
|
+
const e3 = Ni[t3], n3 = r2[t3 + 1];
|
|
4563
4572
|
if (!n3) continue;
|
|
4564
4573
|
const o3 = Xs.parse(n3);
|
|
4565
4574
|
n3 && (s2[e3] = o3.toString());
|
|
@@ -4573,13 +4582,13 @@ const bi = [["Office", "windowText", "window", "0E2841", "E8E8E8", "156082", "E9
|
|
|
4573
4582
|
e2[o2] = s2, s2.majorFont = r2[1] ?? Mi[1], s2.minorFont = r2[2] ?? Mi[2];
|
|
4574
4583
|
}
|
|
4575
4584
|
return e2;
|
|
4576
|
-
}, Fi =
|
|
4585
|
+
}, Fi = Ti([[Ai, "windowText", "window", "44546A", "E7E6E6", "4472C4", "ED7D31", "A5A5A5", "FFC000", "5B9BD5", "70AD47", "0563C1", "954F72"]]), Oi = ki([Mi]), Di = Fi[Ai], Li = Oi[Ai];
|
|
4577
4586
|
let Bi = null;
|
|
4578
4587
|
const Pi = new class {
|
|
4579
4588
|
constructor() {
|
|
4580
4589
|
this._colors = {};
|
|
4581
|
-
for (let t2 = 0; t2 <
|
|
4582
|
-
const e2 =
|
|
4590
|
+
for (let t2 = 0; t2 < Ni.length; t2++) {
|
|
4591
|
+
const e2 = Ni[t2], n2 = Xs.parse(Di[e2]);
|
|
4583
4592
|
this._colors[e2] = n2;
|
|
4584
4593
|
}
|
|
4585
4594
|
}
|
|
@@ -4688,8 +4697,8 @@ class zi {
|
|
|
4688
4697
|
const Wi = new class {
|
|
4689
4698
|
constructor() {
|
|
4690
4699
|
this._colors = {};
|
|
4691
|
-
for (let t2 = 0; t2 <
|
|
4692
|
-
const e2 =
|
|
4700
|
+
for (let t2 = 0; t2 < Ni.length; t2++) {
|
|
4701
|
+
const e2 = Ni[t2], n2 = Xs.parse(Di[e2]);
|
|
4693
4702
|
this._colors[e2] = n2;
|
|
4694
4703
|
}
|
|
4695
4704
|
}
|
|
@@ -4798,7 +4807,7 @@ class Vi {
|
|
|
4798
4807
|
return n2 && (Object.keys(n2).length > 1 || n2.name && n2.name !== t2.name) && (t2.fonts = n2), 1 === Object.keys(t2).length && t2.name === Ai ? null : t2;
|
|
4799
4808
|
}
|
|
4800
4809
|
}
|
|
4801
|
-
const
|
|
4810
|
+
const $i = () => {
|
|
4802
4811
|
if (Bi) return Bi;
|
|
4803
4812
|
const t2 = ((t3, e3, n2) => {
|
|
4804
4813
|
const r2 = [];
|
|
@@ -4807,16 +4816,16 @@ const ji = () => {
|
|
|
4807
4816
|
r2.push({ name: i2, colors: a2, fonts: l2 });
|
|
4808
4817
|
}
|
|
4809
4818
|
return r2;
|
|
4810
|
-
})(xi,
|
|
4819
|
+
})(xi, Ti(bi), ki(vi)), e2 = /* @__PURE__ */ new Map();
|
|
4811
4820
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
4812
4821
|
const r2 = new Vi(t2[n2]), o2 = new Vi(null, r2, n2 + 1);
|
|
4813
4822
|
e2.set(o2.getName().toLowerCase(), o2);
|
|
4814
4823
|
}
|
|
4815
4824
|
return Bi = e2, e2;
|
|
4816
4825
|
};
|
|
4817
|
-
class
|
|
4826
|
+
class ji {
|
|
4818
4827
|
constructor(t2 = null, e2 = false) {
|
|
4819
|
-
|
|
4828
|
+
$i(), this._isReadOnly = e2, this._customMap = /* @__PURE__ */ new Map(), this._defaultTheme = this.getByName("Office");
|
|
4820
4829
|
}
|
|
4821
4830
|
getDefaultTheme() {
|
|
4822
4831
|
return this._defaultTheme;
|
|
@@ -5827,7 +5836,7 @@ const _a = (t2) => "boolean" != typeof t2 ? (t2 && !t2.value && (t2.value = [-1,
|
|
|
5827
5836
|
if (e2) for (let t3 = i2; t3 < n2; t3++) o2.push(void 0);
|
|
5828
5837
|
return o2;
|
|
5829
5838
|
}, Ca = Object.seal({ done: false, value: [{ min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, null] }), ba = Object.seal({ done: false, value: [-1, null] }), va = { reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ba }, xa = Object.freeze({ reverse: false, bounds: { min: Number.MIN_SAFE_INTEGER, max: Number.MAX_SAFE_INTEGER }, processSkip: null, reuseResult: ba }), Ia = { min: 0, max: Number.MAX_SAFE_INTEGER }, Ra = { min: 0, max: Number.MAX_SAFE_INTEGER }, Aa = [null, null], Ma = { bounds: { min: 0, max: 0 }, overflowRun: true };
|
|
5830
|
-
class
|
|
5839
|
+
class Na {
|
|
5831
5840
|
constructor(t2 = 9) {
|
|
5832
5841
|
this._maxEntries = Math.max(4, t2), this._minEntries = Math.max(2, Math.ceil(0.4 * this._maxEntries)), this.clear();
|
|
5833
5842
|
}
|
|
@@ -5891,7 +5900,7 @@ class Ta {
|
|
|
5891
5900
|
return t2 && this._insert(t2, this.data.height - 1), this;
|
|
5892
5901
|
}
|
|
5893
5902
|
clear() {
|
|
5894
|
-
return this.data =
|
|
5903
|
+
return this.data = $a([]), this;
|
|
5895
5904
|
}
|
|
5896
5905
|
remove(t2, e2) {
|
|
5897
5906
|
if (!t2) return this;
|
|
@@ -5900,7 +5909,7 @@ class Ta {
|
|
|
5900
5909
|
let i2, a2, l2;
|
|
5901
5910
|
for (; n2 || o2.length; ) {
|
|
5902
5911
|
if (n2 || (n2 = o2.pop(), a2 = o2[o2.length - 1], i2 = s2.pop(), l2 = true), n2.leaf) {
|
|
5903
|
-
const r3 =
|
|
5912
|
+
const r3 = Ta(t2, n2.children, e2);
|
|
5904
5913
|
if (-1 !== r3) return n2.children.splice(r3, 1), o2.push(n2), this._condense(o2), this;
|
|
5905
5914
|
}
|
|
5906
5915
|
l2 || n2.leaf || !Ha(n2, r2) ? a2 ? (i2++, n2 = a2.children[i2], l2 = false) : n2 = null : (o2.push(n2), s2.push(i2), i2 = 0, a2 = n2, n2 = n2.children[0]);
|
|
@@ -5930,13 +5939,13 @@ class Ta {
|
|
|
5930
5939
|
_build(t2, e2, n2, r2) {
|
|
5931
5940
|
const o2 = n2 - e2 + 1;
|
|
5932
5941
|
let s2, i2 = this._maxEntries;
|
|
5933
|
-
if (o2 <= i2) return s2 =
|
|
5934
|
-
r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 =
|
|
5942
|
+
if (o2 <= i2) return s2 = $a(t2.slice(e2, n2 + 1)), ka(s2, this.toBBox), s2;
|
|
5943
|
+
r2 || (r2 = Math.ceil(Math.log(o2) / Math.log(i2)), i2 = Math.ceil(o2 / Math.pow(i2, r2 - 1))), s2 = $a([]), s2.leaf = false, s2.height = r2;
|
|
5935
5944
|
const a2 = Math.ceil(o2 / i2), l2 = a2 * Math.ceil(Math.sqrt(i2));
|
|
5936
|
-
|
|
5945
|
+
ja(t2, e2, n2, l2, this.compareMinX);
|
|
5937
5946
|
for (let o3 = e2; o3 <= n2; o3 += l2) {
|
|
5938
5947
|
const e3 = Math.min(o3 + l2 - 1, n2);
|
|
5939
|
-
|
|
5948
|
+
ja(t2, o3, e3, a2, this.compareMinY);
|
|
5940
5949
|
for (let n3 = o3; n3 <= e3; n3 += a2) {
|
|
5941
5950
|
const o4 = Math.min(n3 + a2 - 1, e3);
|
|
5942
5951
|
s2.children.push(this._build(t2, n3, o4, r2 - 1));
|
|
@@ -5963,11 +5972,11 @@ class Ta {
|
|
|
5963
5972
|
_split(t2, e2) {
|
|
5964
5973
|
const n2 = t2[e2], r2 = n2.children.length, o2 = this._minEntries;
|
|
5965
5974
|
this._chooseSplitAxis(n2, o2, r2);
|
|
5966
|
-
const s2 = this._chooseSplitIndex(n2, o2, r2), i2 =
|
|
5975
|
+
const s2 = this._chooseSplitIndex(n2, o2, r2), i2 = $a(n2.children.splice(s2, n2.children.length - s2));
|
|
5967
5976
|
i2.height = n2.height, i2.leaf = n2.leaf, ka(n2, this.toBBox), ka(i2, this.toBBox), e2 ? t2[e2 - 1].children.push(i2) : this._splitRoot(n2, i2);
|
|
5968
5977
|
}
|
|
5969
5978
|
_splitRoot(t2, e2) {
|
|
5970
|
-
this.data =
|
|
5979
|
+
this.data = $a([t2, e2]), this.data.height = t2.height + 1, this.data.leaf = false, ka(this.data, this.toBBox);
|
|
5971
5980
|
}
|
|
5972
5981
|
_chooseSplitIndex(t2, e2, n2) {
|
|
5973
5982
|
let r2 = -1, o2 = 1 / 0, s2 = 1 / 0;
|
|
@@ -6002,7 +6011,7 @@ class Ta {
|
|
|
6002
6011
|
for (let e2, n2 = t2.length - 1; n2 >= 0; n2--) 0 === t2[n2].children.length ? n2 > 0 ? (e2 = t2[n2 - 1].children, e2.splice(e2.indexOf(t2[n2]), 1)) : this.clear() : ka(t2[n2], this.toBBox);
|
|
6003
6012
|
}
|
|
6004
6013
|
}
|
|
6005
|
-
function
|
|
6014
|
+
function Ta(t2, e2, n2) {
|
|
6006
6015
|
if (!n2) return e2.indexOf(t2);
|
|
6007
6016
|
for (let r2 = 0; r2 < e2.length; r2++) if (n2(t2, e2[r2])) return r2;
|
|
6008
6017
|
return -1;
|
|
@@ -6011,7 +6020,7 @@ function ka(t2, e2) {
|
|
|
6011
6020
|
Fa(t2, 0, t2.children.length, e2, t2);
|
|
6012
6021
|
}
|
|
6013
6022
|
function Fa(t2, e2, n2, r2, o2 = null) {
|
|
6014
|
-
o2 || (o2 =
|
|
6023
|
+
o2 || (o2 = $a(null)), o2.minX = 1 / 0, o2.minY = 1 / 0, o2.maxX = -1 / 0, o2.maxY = -1 / 0;
|
|
6015
6024
|
for (let s2 = e2; s2 < n2; s2++) {
|
|
6016
6025
|
const e3 = t2.children[s2];
|
|
6017
6026
|
Oa(o2, t2.leaf ? r2(e3) : e3);
|
|
@@ -6046,10 +6055,10 @@ function Ha(t2, e2) {
|
|
|
6046
6055
|
function Va(t2, e2) {
|
|
6047
6056
|
return e2.minX <= t2.maxX && e2.minY <= t2.maxY && e2.maxX >= t2.minX && e2.maxY >= t2.minY;
|
|
6048
6057
|
}
|
|
6049
|
-
function
|
|
6058
|
+
function $a(t2) {
|
|
6050
6059
|
return { children: t2, height: 1, leaf: true, minX: 1 / 0, minY: 1 / 0, maxX: -1 / 0, maxY: -1 / 0 };
|
|
6051
6060
|
}
|
|
6052
|
-
function
|
|
6061
|
+
function ja(t2, e2, n2, r2, o2) {
|
|
6053
6062
|
const s2 = [e2, n2];
|
|
6054
6063
|
for (; s2.length; ) {
|
|
6055
6064
|
if ((n2 = s2.pop()) - (e2 = s2.pop()) <= r2) continue;
|
|
@@ -6076,7 +6085,7 @@ function Ua(t2, e2, n2) {
|
|
|
6076
6085
|
const r2 = t2[e2];
|
|
6077
6086
|
t2[e2] = t2[n2], t2[n2] = r2;
|
|
6078
6087
|
}
|
|
6079
|
-
class Ja extends
|
|
6088
|
+
class Ja extends Na {
|
|
6080
6089
|
toBBox(t2) {
|
|
6081
6090
|
return { minX: 10 * t2.colStart, minY: 10 * t2.rowStart, maxX: 10 * t2.colEnd + 5, maxY: 10 * t2.rowEnd + 5 };
|
|
6082
6091
|
}
|
|
@@ -6146,7 +6155,7 @@ class qa {
|
|
|
6146
6155
|
let _2 = null;
|
|
6147
6156
|
const S2 = this.getBoundingCoords();
|
|
6148
6157
|
if (!S2) return this;
|
|
6149
|
-
const w2 = n2 === h.Up || n2 === h.Left ? h.Right : h.Left, y2 = /* @__PURE__ */ new Map(), E2 = /* @__PURE__ */ new Map(), C2 = this._options?.updateEntryOptions, b2 = C2?.isMergeOnShift ?? false, v2 = C2?.isSplitOnExpand ?? false, x2 = C2?.isTrailingEdge ?? false, I2 = n2 === h.Left || n2 === h.Up, R2 = C2?.getSplit ?? nl, A2 = C2?.getShifted, M2 = C2?.onShifted,
|
|
6158
|
+
const w2 = n2 === h.Up || n2 === h.Left ? h.Right : h.Left, y2 = /* @__PURE__ */ new Map(), E2 = /* @__PURE__ */ new Map(), C2 = this._options?.updateEntryOptions, b2 = C2?.isMergeOnShift ?? false, v2 = C2?.isSplitOnExpand ?? false, x2 = C2?.isTrailingEdge ?? false, I2 = n2 === h.Left || n2 === h.Up, R2 = C2?.getSplit ?? nl, A2 = C2?.getShifted, M2 = C2?.onShifted, N2 = C2?.onRemoved, T2 = C2?.onMerged, k2 = C2?.onUpdated, F2 = M2 ? [] : null, O2 = N2 ? [] : null, D2 = k2 ? [] : null;
|
|
6150
6159
|
this.visitRanges({ colStart: e2.colStart - (a2 ? 1 : 0), rowStart: e2.rowStart - (a2 ? 0 : 1), colEnd: a2 ? S2.colEnd : e2.colEnd, rowEnd: a2 ? e2.rowEnd : S2.rowEnd }, (t3) => {
|
|
6151
6160
|
if ((a2 ? t3.colEnd < e2.colStart : t3.rowEnd < e2.rowStart) && !x2) return;
|
|
6152
6161
|
const r3 = ol(e2, t3, a2 ? g.Column : g.Row), o2 = t3.group;
|
|
@@ -6180,10 +6189,10 @@ class qa {
|
|
|
6180
6189
|
let t3 = true;
|
|
6181
6190
|
if (m2 > 0 && (t3 = a2 ? e2.rowStart > S2.rowStart || e2.rowEnd < S2.rowEnd : e2.colStart > S2.colStart || e2.colEnd < S2.colEnd), t3) {
|
|
6182
6191
|
const t4 = Ka(_2, c.unionRanges(S2, _2), a2 ? 0 : 1, a2 ? 1 : 0);
|
|
6183
|
-
|
|
6192
|
+
T2 && (B2 = L2._mergeNodes(t4, false));
|
|
6184
6193
|
}
|
|
6185
6194
|
}
|
|
6186
|
-
return k2 && D2.length > 0 && k2(D2), M2 && F2.length > 0 && M2(F2),
|
|
6195
|
+
return k2 && D2.length > 0 && k2(D2), M2 && F2.length > 0 && M2(F2), T2 && B2.length > 0 && T2(B2), N2 && O2.length > 0 && N2(O2), L2;
|
|
6187
6196
|
}
|
|
6188
6197
|
insertNonOverlapping(t2, e2) {
|
|
6189
6198
|
const n2 = e2?.onIntersect ?? ((t3, e3) => ({ ...t3, value: e3.value })), r2 = this.search(t2), s2 = /* @__PURE__ */ new Map(), i2 = /* @__PURE__ */ new Map(), a2 = this._options?.updateEntryOptions, h2 = a2?.onUpdated, d2 = a2?.onRemoved, u2 = a2?.onMerged, g2 = a2?.getSplit, m2 = a2?.getIntersect, f2 = a2?.getUpdate;
|
|
@@ -6287,7 +6296,7 @@ class qa {
|
|
|
6287
6296
|
}
|
|
6288
6297
|
w2 = t3;
|
|
6289
6298
|
}
|
|
6290
|
-
if (this._updateNodes(w2, r2, e2?.onUpdates), s2.size > 0 && this._updateGroupedEntries(s2, i2), y2 && !e2?.noMerge) {
|
|
6299
|
+
if (this._updateNodes(w2, r2, e2?.onUpdates), s2.size > 0 && this._updateGroupedEntries(s2, i2), y2 && !a2?.noMerge && !e2?.noMerge) {
|
|
6291
6300
|
const n3 = Ka(t2, c.unionRanges(y2, t2)), r3 = this.search(n3);
|
|
6292
6301
|
if (r3.length > 1) {
|
|
6293
6302
|
const t3 = a2?.getMerged ?? rl;
|
|
@@ -6840,7 +6849,7 @@ const pl = "Must be an array of arrays.", _l = (t2, e2, n2) => {
|
|
|
6840
6849
|
}
|
|
6841
6850
|
if (!Array.isArray(t2)) throw new Error(pl);
|
|
6842
6851
|
if (t2.length > i2) throw new d();
|
|
6843
|
-
const l2 = e2 ? new
|
|
6852
|
+
const l2 = e2 ? new Tt.TransposedBuilder() : new Tt.Builder();
|
|
6844
6853
|
for (let e3 = 0; e3 < t2.length; e3++) {
|
|
6845
6854
|
let n3 = t2[e3];
|
|
6846
6855
|
if (null != n3 && 0 !== n3.length) {
|
|
@@ -6926,7 +6935,7 @@ class bl {
|
|
|
6926
6935
|
}
|
|
6927
6936
|
if (!s2) return sa;
|
|
6928
6937
|
r2 || d2 !== u2 || (r2 = true), Ml.bounds.min = d2, Ml.bounds.max = u2, Ml.reverse = p2, Ml.processSkip = a2, Ml.reuseResult = Rl;
|
|
6929
|
-
let _2 = this._major.entries(Ml), S2 =
|
|
6938
|
+
let _2 = this._major.entries(Ml), S2 = Nl();
|
|
6930
6939
|
const w2 = (t3) => {
|
|
6931
6940
|
if (!t3.nextActive) return;
|
|
6932
6941
|
const e3 = (e4) => {
|
|
@@ -6966,7 +6975,7 @@ class bl {
|
|
|
6966
6975
|
for (; S2; ) {
|
|
6967
6976
|
let a3 = null;
|
|
6968
6977
|
if (s3) {
|
|
6969
|
-
let e4 = n3 ?
|
|
6978
|
+
let e4 = n3 ? Nl() : S2;
|
|
6970
6979
|
if (a3 = y2(e4), a3) {
|
|
6971
6980
|
n3 ? (e4.prevMajorCursor = S2, S2.nextMajorCursor = e4, S2 = e4) : n3 = S2, o3 = p2 ? Math.max(o3, S2.nextMinorIndex) : Math.min(o3, S2.nextMinorIndex);
|
|
6972
6981
|
const r4 = S2.minorIndex;
|
|
@@ -7041,13 +7050,13 @@ class bl {
|
|
|
7041
7050
|
if (!t2 || 0 === t2.length) return this;
|
|
7042
7051
|
let a2 = Number.MAX_SAFE_INTEGER, l2 = Number.MIN_SAFE_INTEGER, c2 = 0, h2 = e2 - 1;
|
|
7043
7052
|
const g2 = [], m2 = (t3, e3, n3) => {
|
|
7044
|
-
if (h2 === n3) throw new
|
|
7053
|
+
if (h2 === n3) throw new Tt.OutOfOrderError(`Duplicate major Indices: {${n3}}.`);
|
|
7045
7054
|
h2 = n3, e3 = e3.sort(ul), t3 = t3.clone();
|
|
7046
7055
|
let s3 = Number.MIN_SAFE_INTEGER;
|
|
7047
7056
|
const i3 = e3.length;
|
|
7048
7057
|
for (let h3 = 0; h3 < i3; h3++) {
|
|
7049
7058
|
const i4 = e3[h3], u2 = i4[0], g3 = i4[1], m3 = u2 + g3.length - 1;
|
|
7050
|
-
if (s3 >= u2) throw new
|
|
7059
|
+
if (s3 >= u2) throw new Tt.OutOfOrderError(`Overlapping minor Indices: {${n3}, ${u2}}.`);
|
|
7051
7060
|
if (u2 < r2 || m3 > o2) throw new d();
|
|
7052
7061
|
if (g3 && g3.length > 0) {
|
|
7053
7062
|
const e4 = t3.getCount();
|
|
@@ -7179,9 +7188,9 @@ class bl {
|
|
|
7179
7188
|
}
|
|
7180
7189
|
let I2 = n2 ? f2.colStart : f2.rowStart, R2 = n2 ? f2.colEnd : f2.rowEnd, A2 = n2 ? f2.rowStart : f2.colStart, M2 = n2 ? f2.rowEnd : f2.colEnd;
|
|
7181
7190
|
o2 || (A2 = Number.MAX_SAFE_INTEGER, M2 = Number.MIN_SAFE_INTEGER);
|
|
7182
|
-
let
|
|
7183
|
-
r2 && (
|
|
7184
|
-
const
|
|
7191
|
+
let N2 = Number.MAX_SAFE_INTEGER;
|
|
7192
|
+
r2 && (N2 = s2 ? r2.colEnd : r2.rowEnd);
|
|
7193
|
+
const T2 = /* @__PURE__ */ new Set(), k2 = E2 ? /* @__PURE__ */ new Map() : null, F2 = [], O2 = v2.entries(Ml), D2 = { bounds: { min: g2, max: m2 } };
|
|
7185
7194
|
let L2 = O2.next();
|
|
7186
7195
|
for (; !L2.done; ) {
|
|
7187
7196
|
const t3 = L2.value, e3 = t3[0], n3 = t3[1].clone(), r3 = n3.getCoords(), o3 = r3.min, s3 = r3.max;
|
|
@@ -7193,10 +7202,10 @@ class bl {
|
|
|
7193
7202
|
r5 - 1 <= m2 && o4 > m2 && (s4 = s4.slice(0, m2 + 1 - r5)), r5 < g2 && o4 + 1 >= g2 && (s4 = s4.slice(g2 - r5)), F2.push({ majorIndex: e3 + C2, minorIndex: Math.max(r5, g2), run: s4 });
|
|
7194
7203
|
}), n3.delete(g2, m2 - g2 + 1)) : n3.shift(g2, C2);
|
|
7195
7204
|
const r4 = n3.getCount();
|
|
7196
|
-
if (0 === r4)
|
|
7205
|
+
if (0 === r4) T2.add(e3), A2 = Math.min(A2, s3), M2 = Math.max(M2, o3);
|
|
7197
7206
|
else {
|
|
7198
7207
|
const t5 = n3.getCoords();
|
|
7199
|
-
if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 >
|
|
7208
|
+
if (A2 = Math.min(A2, t5.min), M2 = Math.max(M2, t5.max), M2 > N2) throw new d();
|
|
7200
7209
|
}
|
|
7201
7210
|
b2 += r4 - t4, x2.push([e3, n3]);
|
|
7202
7211
|
}
|
|
@@ -7207,10 +7216,10 @@ class bl {
|
|
|
7207
7216
|
for (let t3 = 0; t3 < F2.length; t3++) {
|
|
7208
7217
|
const e3 = F2[t3], n3 = e3.majorIndex, r3 = e3.run;
|
|
7209
7218
|
let o3 = k2.get(n3);
|
|
7210
|
-
o3 || (o3 = new pa(B2), k2.set(n3, o3), x2.push([n3, o3]), P2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3),
|
|
7219
|
+
o3 || (o3 = new pa(B2), k2.set(n3, o3), x2.push([n3, o3]), P2 = true), o3.setRunAt(e3.minorIndex, r3), b2 += r3.length, I2 = Math.min(I2, n3), R2 = Math.max(R2, n3), T2 && T2.delete(n3);
|
|
7211
7220
|
}
|
|
7212
|
-
if (this._updateMajorSpan(x2, P2),
|
|
7213
|
-
const t3 = Array.from(
|
|
7221
|
+
if (this._updateMajorSpan(x2, P2), T2 && T2.size > 0) {
|
|
7222
|
+
const t3 = Array.from(T2.values()), e3 = Is(t3);
|
|
7214
7223
|
for (let t4 = 0; t4 < e3.length; t4++) {
|
|
7215
7224
|
const n4 = e3[t4];
|
|
7216
7225
|
v2.delete(n4.min, n4.max - n4.min + 1);
|
|
@@ -7250,7 +7259,7 @@ class bl {
|
|
|
7250
7259
|
m2 = { ...m2 };
|
|
7251
7260
|
const f2 = o2 !== l.Row, p2 = t2.getMaxCoords();
|
|
7252
7261
|
g2 = cl(a2?.colStart ?? Number.MIN_SAFE_INTEGER, a2?.rowStart ?? Number.MIN_SAFE_INTEGER, a2?.colEnd ?? Number.MAX_SAFE_INTEGER, a2?.rowEnd ?? Number.MAX_SAFE_INTEGER, f2, p2), g2 = { ...g2 };
|
|
7253
|
-
const _2 = g2.majorStart - m2.majorStart, S2 = g2.minorStart - m2.minorStart, w2 = r2 === o2 ? new
|
|
7262
|
+
const _2 = g2.majorStart - m2.majorStart, S2 = g2.minorStart - m2.minorStart, w2 = r2 === o2 ? new Tt.Builder() : new Tt.TransposedBuilder();
|
|
7254
7263
|
for (; !i2.done; ) {
|
|
7255
7264
|
const t3 = i2.value[0];
|
|
7256
7265
|
let e3 = i2.value[1], n3 = i2.value[2];
|
|
@@ -7299,8 +7308,8 @@ class bl {
|
|
|
7299
7308
|
bl || (bl = {});
|
|
7300
7309
|
const vl = 12;
|
|
7301
7310
|
Object.seal({ done: false, value: null });
|
|
7302
|
-
const xl = [-1, -1, null], Il = Object.seal({ done: false, value: [-1, null] }), Rl = Object.seal({ done: false, value: [-1, null] }), Al = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Il }, Ml = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Rl },
|
|
7303
|
-
class
|
|
7311
|
+
const xl = [-1, -1, null], Il = Object.seal({ done: false, value: [-1, null] }), Rl = Object.seal({ done: false, value: [-1, null] }), Al = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Il }, Ml = { bounds: { min: -1, max: -1 }, reverse: false, processSkip: null, reuseResult: Rl }, Nl = () => ({ majorIndex: -1, minorIndex: -1, value: null, active: false, nextMinorIndex: -1, nextActive: false, nextMinorValue: null, minorIterator: null, nextMajorCursor: null, prevMajorCursor: null });
|
|
7312
|
+
class Tl {
|
|
7304
7313
|
constructor(t2) {
|
|
7305
7314
|
if (this._l = 0, this._at = null, this._dt = ql.Undefined, this._a32 = null, this._a64 = null, this._cv = null, this._vt = null, this._vi32 = null, this._vi64 = null, this._vf32 = null, this._vf64 = null, !t2) throw new Error("options is required");
|
|
7306
7315
|
const e2 = t2.length;
|
|
@@ -7335,9 +7344,9 @@ class Nl {
|
|
|
7335
7344
|
return this._vf64[o2 ? t2 : r2];
|
|
7336
7345
|
case Vl:
|
|
7337
7346
|
return Number.NaN;
|
|
7338
|
-
case jl:
|
|
7339
|
-
return Number.MAX_SAFE_INTEGER;
|
|
7340
7347
|
case $l:
|
|
7348
|
+
return Number.MAX_SAFE_INTEGER;
|
|
7349
|
+
case jl:
|
|
7341
7350
|
return Number.MIN_SAFE_INTEGER;
|
|
7342
7351
|
case Wl:
|
|
7343
7352
|
return 1 / 0;
|
|
@@ -7377,7 +7386,7 @@ class Nl {
|
|
|
7377
7386
|
}
|
|
7378
7387
|
static fromArray(t2, e2, n2, r2, o2 = kl) {
|
|
7379
7388
|
const s2 = t2.length;
|
|
7380
|
-
if (0 === s2) return new
|
|
7389
|
+
if (0 === s2) return new Tl({ type: ql.Undefined, length: s2, getCoercedValue: n2 });
|
|
7381
7390
|
let i2 = this._createArrayBuffer(s2 * Int8Array.BYTES_PER_ELEMENT), a2 = new Uint8Array(i2), l2 = 0, c2 = false, h2 = Kl(t2[0], r2);
|
|
7382
7391
|
for (let e3 = 0; e3 < s2; e3++) {
|
|
7383
7392
|
const n3 = t2[e3], o3 = Kl(n3, r2);
|
|
@@ -7442,10 +7451,10 @@ class Nl {
|
|
|
7442
7451
|
}
|
|
7443
7452
|
}
|
|
7444
7453
|
}
|
|
7445
|
-
return new
|
|
7454
|
+
return new Tl({ length: s2, types: c2 ? i2 : null, type: h2, values32: p2, values64: g2, getCoercedValue: n2 });
|
|
7446
7455
|
}
|
|
7447
7456
|
}
|
|
7448
|
-
const kl = 0.1, Fl = 1, Ol = 2, Dl = 3, Ll = 4, Bl = 5, Pl = 6, zl = 7, Wl = 8, Hl = 9, Vl = 10,
|
|
7457
|
+
const kl = 0.1, Fl = 1, Ol = 2, Dl = 3, Ll = 4, Bl = 5, Pl = 6, zl = 7, Wl = 8, Hl = 9, Vl = 10, $l = 11, jl = 12, Gl = 13, Ul = 14, Jl = 127, ql = { Undefined: Ul }, Kl = (t2, e2) => {
|
|
7449
7458
|
switch (typeof t2) {
|
|
7450
7459
|
case "number":
|
|
7451
7460
|
const n2 = t2;
|
|
@@ -7453,8 +7462,8 @@ const kl = 0.1, Fl = 1, Ol = 2, Dl = 3, Ll = 4, Bl = 5, Pl = 6, zl = 7, Wl = 8,
|
|
|
7453
7462
|
if (n2 === 1 / 0) return Wl;
|
|
7454
7463
|
if (n2 === -1 / 0) return Hl;
|
|
7455
7464
|
if (Object.is(n2, -0)) return Ol;
|
|
7456
|
-
if (n2 === Number.MAX_SAFE_INTEGER) return
|
|
7457
|
-
if (n2 === Number.MIN_SAFE_INTEGER) return
|
|
7465
|
+
if (n2 === Number.MAX_SAFE_INTEGER) return $l;
|
|
7466
|
+
if (n2 === Number.MIN_SAFE_INTEGER) return jl;
|
|
7458
7467
|
if (Number.isInteger(n2) && n2 <= 2147483647 && n2 >= -2147483648) return Fl;
|
|
7459
7468
|
return Math.fround(n2) === n2 ? Ol : Bl;
|
|
7460
7469
|
case "string":
|
|
@@ -7655,7 +7664,7 @@ class rc {
|
|
|
7655
7664
|
return (t2 > o2 || e2 > s2) && (a2 = a2.clone(), t2 > o2 && (oc.colStart = r2.colEnd + 1, oc.rowStart = r2.rowStart, oc.colEnd = r2.colEnd, oc.rowEnd = r2.rowEnd, this._fill(a2, r2, n2)), e2 > s2 && (oc.colStart = r2.colStart, oc.rowStart = r2.rowEnd + 1, oc.colEnd = r2.colEnd, oc.rowEnd = r2.rowEnd, this._fill(a2, r2, n2))), new rc(a2, i2, this._type);
|
|
7656
7665
|
}
|
|
7657
7666
|
_mergeIterators(t2, n2, r2) {
|
|
7658
|
-
const o2 = this._coords ?? c.EmptyRange, s2 = t2._coords ?? c.EmptyRange, i2 = this._values.getOrientation(), a2 = r2?.orientation ?? i2, l2 = a2 !== e.Orientation.Row, h2 = this._entries(r2), d2 = this._entries(r2), u2 = o2.colStart, g2 = o2.rowStart, m2 = u2 - s2.colStart, f2 = g2 - s2.rowStart, p2 = a2 === i2 ? new
|
|
7667
|
+
const o2 = this._coords ?? c.EmptyRange, s2 = t2._coords ?? c.EmptyRange, i2 = this._values.getOrientation(), a2 = r2?.orientation ?? i2, l2 = a2 !== e.Orientation.Row, h2 = this._entries(r2), d2 = this._entries(r2), u2 = o2.colStart, g2 = o2.rowStart, m2 = u2 - s2.colStart, f2 = g2 - s2.rowStart, p2 = a2 === i2 ? new Tt.Builder() : new Tt.TransposedBuilder(), _2 = new fl({ ...r2, bounds: o2, comparator: (l2 ? Zl : tc)(o2, s2) }, h2, d2);
|
|
7659
7668
|
let S2 = _2.next();
|
|
7660
7669
|
for (; !S2.done; ) {
|
|
7661
7670
|
const t3 = S2.value;
|
|
@@ -7673,7 +7682,7 @@ class rc {
|
|
|
7673
7682
|
return this._cloneFromBuilder(i2, n2);
|
|
7674
7683
|
}
|
|
7675
7684
|
startIncrementalUpdates(t2) {
|
|
7676
|
-
const n2 = t2?.orientation ?? e.Orientation.Column, r2 = this._values.getOrientation(), o2 = (t2?.orientation ?? r2) !== e.Orientation.Row, s2 = n2 === r2 ? new
|
|
7685
|
+
const n2 = t2?.orientation ?? e.Orientation.Column, r2 = this._values.getOrientation(), o2 = (t2?.orientation ?? r2) !== e.Orientation.Row, s2 = n2 === r2 ? new Tt.Builder() : new Tt.TransposedBuilder(), i2 = this, a2 = this._coords ?? c.EmptyRange, l2 = a2.colStart, h2 = a2.rowStart, d2 = o2 ? l2 : h2, u2 = o2 ? h2 : l2, g2 = { pushAt(t3, e2, n3) {
|
|
7677
7686
|
const r3 = o2 ? e2 : t3, i3 = o2 ? t3 : e2;
|
|
7678
7687
|
return s2.addValue(r3 + d2, i3 + u2, n3), g2;
|
|
7679
7688
|
}, pushMultipleAt(t3, e2, n3) {
|
|
@@ -7754,28 +7763,28 @@ class rc {
|
|
|
7754
7763
|
const t2 = { ...M2 };
|
|
7755
7764
|
1 === p2 && (t2.colEnd = t2.colStart), 1 === _2 && (t2.rowEnd = t2.rowStart), A2 = new ml({ delegate: g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: t2, reuseResult: false }), bounds: t2, orientation: x2, dims: { major: I2 ? S2 : w2, minor: I2 ? w2 : S2 } });
|
|
7756
7765
|
} else A2 = g2._entries({ ...s2, type: l2 ?? null, orientation: x2, bounds: M2, reuseResult: false });
|
|
7757
|
-
const
|
|
7766
|
+
const N2 = i2.colStart, T2 = i2.rowStart, k2 = N2 - M2.colStart, F2 = T2 - M2.rowStart, O2 = x2 === v2 ? new Tt.Builder() : new Tt.TransposedBuilder(), D2 = new fl({ ...s2, bounds: i2, comparator: (I2 ? Zl : tc)(i2, M2) }, R2, A2);
|
|
7758
7767
|
let L2, B2 = D2.next();
|
|
7759
7768
|
for (; !B2.done; ) {
|
|
7760
7769
|
const t2 = B2.value;
|
|
7761
7770
|
let e2 = t2[1], r3 = t2[3];
|
|
7762
7771
|
const s3 = t2[0], i3 = t2[2], a3 = s3 ? s3.colIndex : i3.colIndex + k2, l3 = s3 ? s3.rowIndex : i3.rowIndex + F2;
|
|
7763
7772
|
let c2, u3;
|
|
7764
|
-
e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 -
|
|
7773
|
+
e2 instanceof n.Value ? c2 = e2 : r3 instanceof n.Value && (c2 = r3), u3 = c2 || o2(e2 ?? h2, r3 ?? d2, { colIndex: a3 - N2, rowIndex: l3 - T2 }, this);
|
|
7765
7774
|
const g3 = I2 ? a3 : l3, m3 = I2 ? l3 : a3;
|
|
7766
7775
|
O2.addValue(g3, m3, u3), B2 = D2.next();
|
|
7767
7776
|
}
|
|
7768
7777
|
if (C2 && y2 > S2 || E2 > w2) {
|
|
7769
7778
|
const t2 = this._values.clone();
|
|
7770
7779
|
if (this._applyBuilder(t2, O2), y2 > S2) {
|
|
7771
|
-
const e2 = cl(
|
|
7780
|
+
const e2 = cl(N2 + S2, T2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = _l(C2, e2, I2);
|
|
7772
7781
|
t2.setValues(n2.tuples);
|
|
7773
7782
|
}
|
|
7774
7783
|
if (E2 > w2) {
|
|
7775
|
-
const e2 = cl(
|
|
7784
|
+
const e2 = cl(N2, T2 + w2, N2 + y2 - 1, T2 + E2 - 1, I2), n2 = _l(C2, e2, I2);
|
|
7776
7785
|
t2.setValues(n2.tuples);
|
|
7777
7786
|
}
|
|
7778
|
-
L2 = new rc(t2, { colStart:
|
|
7787
|
+
L2 = new rc(t2, { colStart: N2, rowStart: T2, colEnd: N2 + y2 - 1, rowEnd: T2 + E2 - 1 }, this._type);
|
|
7779
7788
|
} else L2 = this._cloneFromBuilder(O2, s2, y2, E2);
|
|
7780
7789
|
return L2;
|
|
7781
7790
|
}
|
|
@@ -7810,7 +7819,7 @@ class rc {
|
|
|
7810
7819
|
if (n2 < 1 && r2 < 1) throw new Error("Must be at least size of 1");
|
|
7811
7820
|
const i2 = s2.getOrientation(), a2 = i2, l2 = a2 === e.Orientation.Column, c2 = Math.max(this.getWidth(), n2), h2 = Math.max(this.getHeight(), r2), d2 = l2 ? o2.colStart : o2.rowStart, u2 = l2 ? o2.rowStart : o2.colStart, g2 = l2 ? o2.colStart + c2 - 1 : o2.rowStart + h2 - 1, m2 = l2 ? o2.rowStart + h2 - 1 : o2.colStart + c2 - 1, f2 = s2.getRuns({ bounds: { colStart: o2.colStart, rowStart: o2.rowStart, colEnd: l2 ? g2 : m2, rowEnd: l2 ? m2 : g2 }, overflowRun: true });
|
|
7812
7821
|
let p2 = f2.next(), _2 = d2, S2 = u2;
|
|
7813
|
-
const w2 = a2 === i2 ? new
|
|
7822
|
+
const w2 = a2 === i2 ? new Tt.Builder() : new Tt.TransposedBuilder();
|
|
7814
7823
|
for (; !p2.done; ) {
|
|
7815
7824
|
const e2 = p2.value, n3 = e2[0];
|
|
7816
7825
|
for (; _2 < n3; ) {
|
|
@@ -7832,7 +7841,7 @@ class rc {
|
|
|
7832
7841
|
}
|
|
7833
7842
|
transpose() {
|
|
7834
7843
|
if (this.size <= 1) return this;
|
|
7835
|
-
const t2 = this._values.getOrientation(), n2 = this._coords, r2 = this.getWidth(), o2 = this.getHeight(), s2 = this._entries({ orientation: t2 === e.Orientation.Column ? e.Orientation.Row : e.Orientation.Column, bounds: n2, reuseResult: true }), i2 = t2 === e.Orientation.Column, a2 = new
|
|
7844
|
+
const t2 = this._values.getOrientation(), n2 = this._coords, r2 = this.getWidth(), o2 = this.getHeight(), s2 = this._entries({ orientation: t2 === e.Orientation.Column ? e.Orientation.Row : e.Orientation.Column, bounds: n2, reuseResult: true }), i2 = t2 === e.Orientation.Column, a2 = new Tt.Builder(), l2 = i2 ? n2.colStart : n2.rowStart, c2 = i2 ? n2.rowStart : n2.colStart;
|
|
7836
7845
|
let h2 = s2.next();
|
|
7837
7846
|
for (; !h2.done; ) {
|
|
7838
7847
|
const t3 = h2.value, e2 = t3[0], n3 = i2 ? e2.colIndex : e2.rowIndex - l2, r3 = (i2 ? e2.rowIndex : e2.colIndex - c2) + l2, o3 = n3 + c2, d2 = t3[1];
|
|
@@ -7851,7 +7860,7 @@ class rc {
|
|
|
7851
7860
|
}
|
|
7852
7861
|
_createTupleBuilder(t2) {
|
|
7853
7862
|
const n2 = this._coords, r2 = this._values.getOrientation(), o2 = t2 ?? r2, s2 = o2 !== e.Orientation.Row, i2 = s2 ? n2.colStart : n2.rowStart, a2 = s2 ? n2.rowStart : n2.colStart;
|
|
7854
|
-
return o2 === r2 ? new
|
|
7863
|
+
return o2 === r2 ? new Tt.Builder(null, i2, a2) : new Tt.TransposedBuilder(null, i2, a2);
|
|
7855
7864
|
}
|
|
7856
7865
|
entries(t2) {
|
|
7857
7866
|
const e2 = this._coords;
|
|
@@ -8138,8 +8147,8 @@ const oc = { colStart: Number.MIN_SAFE_INTEGER, rowStart: Number.MIN_SAFE_INTEGE
|
|
|
8138
8147
|
n2.setValues(a2.tuples);
|
|
8139
8148
|
return new rc(n2, l2, o2, !r2);
|
|
8140
8149
|
}, yc = new RegExp(/^([$]?[a-zA-Z]*[$]?[0-9]*)[:]?([$]?[a-zA-Z]*[$]?[0-9]*)?$/), Ec = new RegExp(/^(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?)(:(R(?:\[?[-+]?\d+\]?|\d+)?C(?:\[?[-+]?\d+\]?|\d+)?))?$/, "i"), Cc = new RegExp(/^(R?)(\[?[-+]?\d+\]?|\d+)?(C?)(\[?[-+]?\d+\]?|\d+)?$/, "i"), bc = new RegExp("(?:'[^']+'|[A-Za-z0-9_\\-.]+?!)?(\\$?[A-Za-z]+\\$?\\d+(?::\\$?[A-Za-z]+\\$?\\d+)?|\\$?[A-Za-z]+:\\$?[A-Za-z]+|\\$?\\d+:\\$?\\d+)", "g"), vc = /\s+/g, xc = /"(?:[^"]|"")*"|\[[^[\]]+\]/g, Ic = /[\uE000-\uF8FF]/g, Rc = "#REF!", Ac = Math.pow(2, 14), Mc = Math.pow(2, 20);
|
|
8141
|
-
let
|
|
8142
|
-
const kc = (t2) => (
|
|
8150
|
+
let Nc, Tc;
|
|
8151
|
+
const kc = (t2) => (Nc === t2 || (Tc = "" + (t2 + 1), Nc = t2), Tc);
|
|
8143
8152
|
let Fc, Oc;
|
|
8144
8153
|
const Dc = (t2) => {
|
|
8145
8154
|
if (Fc === t2) return Oc;
|
|
@@ -8157,7 +8166,7 @@ const Dc = (t2) => {
|
|
|
8157
8166
|
}, zc = (t2, e2) => {
|
|
8158
8167
|
let n2 = t2 ?? e2;
|
|
8159
8168
|
var r2;
|
|
8160
|
-
return n2 && (n2 =
|
|
8169
|
+
return n2 && (n2 = To(n2), n2 = n2.replace(/'/g, "''"), r2 = n2, Lc.test(r2) && (n2 = ko(n2))), n2;
|
|
8161
8170
|
}, Wc = (t2, e2) => t2 ? t2 + (t2.endsWith("!") ? "" : "!") + e2 : Rc, Hc = (t2, e2, n2 = Bc) => {
|
|
8162
8171
|
if (!t2) return null;
|
|
8163
8172
|
const r2 = t2.colStart, o2 = t2.rowStart, s2 = t2.colEnd, i2 = t2.rowEnd;
|
|
@@ -8177,7 +8186,7 @@ const Dc = (t2) => {
|
|
|
8177
8186
|
i2 = Wc(n3, i2);
|
|
8178
8187
|
}
|
|
8179
8188
|
return i2;
|
|
8180
|
-
},
|
|
8189
|
+
}, $c = (t2, e2, n2 = Pc) => {
|
|
8181
8190
|
if (!t2) return Rc;
|
|
8182
8191
|
const r2 = void 0 !== t2.rowStart && t2.rowStart === t2.rowEnd;
|
|
8183
8192
|
if (void 0 !== t2.colStart && t2.colStart === t2.colEnd && r2) return n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
@@ -8187,8 +8196,8 @@ const Dc = (t2) => {
|
|
|
8187
8196
|
o2 ? (i2 = Dc(t2.colStart), i2 = t2.$colStart ? "$" + i2 : i2) : s2 ? (i2 = kc(t2.rowStart), i2 = t2.$rowStart ? "$" + i2 : i2) : i2 = n2({ colIndex: t2.colStart, rowIndex: t2.rowStart, $colIndex: t2.$colStart, $rowIndex: t2.$rowStart });
|
|
8188
8197
|
let a2 = null;
|
|
8189
8198
|
return o2 ? (a2 = Dc(t2.colEnd), a2 = t2.$colEnd ? "$" + a2 : a2) : s2 ? (a2 = kc(t2.rowEnd), a2 = t2.$rowEnd ? "$" + a2 : a2) : a2 = n2({ colIndex: t2.colEnd, rowIndex: t2.rowEnd, $colIndex: t2.$colEnd, $rowIndex: t2.$rowEnd }), i2 + ":" + a2;
|
|
8190
|
-
},
|
|
8191
|
-
const r2 =
|
|
8199
|
+
}, jc = (t2, e2, n2 = Pc) => {
|
|
8200
|
+
const r2 = $c(t2, e2, n2), o2 = zc(t2?.sheetName, e2?.sheetName);
|
|
8192
8201
|
return Wc(o2, r2);
|
|
8193
8202
|
}, Gc = (t2, e2 = false) => {
|
|
8194
8203
|
if (!t2) return null;
|
|
@@ -8233,7 +8242,7 @@ const Dc = (t2) => {
|
|
|
8233
8242
|
const e3 = t3.lastIndexOf("!");
|
|
8234
8243
|
if (-1 === e3) return null;
|
|
8235
8244
|
let n3 = t3.slice(0, e3);
|
|
8236
|
-
return n3 =
|
|
8245
|
+
return n3 = To(n3), n3 = n3.replace(/''/g, "'"), [n3, t3.slice(e3 + 1)];
|
|
8237
8246
|
})(t2);
|
|
8238
8247
|
let o2;
|
|
8239
8248
|
if (r2) {
|
|
@@ -8241,7 +8250,7 @@ const Dc = (t2) => {
|
|
|
8241
8250
|
o2.sheetName = r2[0];
|
|
8242
8251
|
} else o2 = Uc(t2, e2, n2);
|
|
8243
8252
|
return o2 || null;
|
|
8244
|
-
}, qc = (t2, e2, n2 =
|
|
8253
|
+
}, qc = (t2, e2, n2 = $c, r2 = Pc) => {
|
|
8245
8254
|
if (!t2 || 0 === t2.length) return null;
|
|
8246
8255
|
const o2 = [], s2 = t2.length;
|
|
8247
8256
|
for (let i2 = 0; i2 < s2; i2++) {
|
|
@@ -8250,7 +8259,7 @@ const Dc = (t2) => {
|
|
|
8250
8259
|
s3 ? void 0 !== s3.rowIndex || void 0 !== s3.colIndex ? a2 = r2(s3) : void 0 !== s3.rowStart || void 0 !== s3.colStart ? a2 = n2(s3, e2, r2) : "string" == typeof s3 && (a2 = s3) : a2 = Rc, a2 && o2.push(a2);
|
|
8251
8260
|
}
|
|
8252
8261
|
return o2;
|
|
8253
|
-
}, Kc = (t2, e2, n2 =
|
|
8262
|
+
}, Kc = (t2, e2, n2 = jc, r2 = Pc) => {
|
|
8254
8263
|
const o2 = qc(t2, e2, n2, r2);
|
|
8255
8264
|
return o2 ? o2.join(",") : Rc;
|
|
8256
8265
|
}, Xc = (t2, e2, n2, r2 = Jc, o2, s2 = false) => {
|
|
@@ -8606,9 +8615,9 @@ class xh {
|
|
|
8606
8615
|
const Ih = Object.freeze({ break: true });
|
|
8607
8616
|
var Rh;
|
|
8608
8617
|
(Rh || (Rh = {})).Type = { Style: "style", Table: "table", Merge: "merge", Hyperlink: "hyperlink", Comments: "comments", Unlock: "unlock", Contentful: "contentful", Conditional: "conditional", Formula: "formula", Spill: "spill", Continuous: "continuous", Pending: "pending", CalcError: "calcError" };
|
|
8609
|
-
const Ah = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false, [Rh.Type.Spill]: false, [Rh.Type.Pending]: false, [Rh.Type.CalcError]: false, [Rh.Type.Contentful]: false, [Rh.Type.Conditional]: false, [Rh.Type.Continuous]: false }), Mh = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false, [Rh.Type.Spill]: false, [Rh.Type.Pending]: false, [Rh.Type.CalcError]: false, [Rh.Type.Conditional]: false, [Rh.Type.Continuous]: false }),
|
|
8618
|
+
const Ah = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false, [Rh.Type.Spill]: false, [Rh.Type.Pending]: false, [Rh.Type.CalcError]: false, [Rh.Type.Contentful]: false, [Rh.Type.Conditional]: false, [Rh.Type.Continuous]: false }), Mh = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false, [Rh.Type.Spill]: false, [Rh.Type.Pending]: false, [Rh.Type.CalcError]: false, [Rh.Type.Conditional]: false, [Rh.Type.Continuous]: false }), Nh = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: true, [Rh.Type.Merge]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Formula]: false });
|
|
8610
8619
|
Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Table]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Comments]: false, [Rh.Type.Unlock]: false, [Rh.Type.Contentful]: false, [Rh.Type.Formula]: false });
|
|
8611
|
-
const
|
|
8620
|
+
const Th = Object.freeze({ [Rh.Type.Style]: false, [Rh.Type.Hyperlink]: false, [Rh.Type.Continuous]: false, [Rh.Type.Contentful]: false }), kh = "This sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.", Fh = (t2 = "update") => `Unable to ${t2}, this sheet is protected. To make a change, unprotect the sheet. You might be requested to enter a password.`, Oh = "The range is outside of the bounds of the sheet.", Dh = "Listener can not be null", Lh = "We can't insert items. The sheet is protected.", Bh = (t2) => `We can't create a ${t2} that overlaps with another table or merge.`, Ph = "Overlapping ranges can not be merged.", zh = "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.", Wh = "Unable to partially fill over merged cells.", Hh = "Unable to sort merged cells unless they are all the same size.", Vh = "Sheet has been closed. No further operations are allowed.", $h = "IteratorContext can only be used during visit.", jh = "When using addresses directly from the sheet do not include the sheet name.", Gh = (t2) => `Unable to return more than ${t2} values. To access values in a more scalable solution use 'ICellRange.forEach' or an iterator.`, Uh = "'setValue' expects a single value; when working with an array use 'setValue'.", Jh = "Multiple selection ranges can not be copied.", qh = "Unable to determine source.", Kh = "When pasting before or after the cut area both areas must align.";
|
|
8612
8621
|
var Xh, Yh;
|
|
8613
8622
|
(Yh = Xh || (Xh = {})).CalcStatus = { Ready: "ready", Stale: "stale", Pending: "pending", Streaming: "streaming" }, Yh.Content = { Values: "values", Formats: "formats", Formulas: "formula", Hyperlinks: "hyperlinks", Tables: "tables", Notes: "notes", Comments: "comments", Warnings: "warnings", Errors: "errors", Merges: "merges" };
|
|
8614
8623
|
class Qh {
|
|
@@ -8664,11 +8673,11 @@ const Zh = (t2) => {
|
|
|
8664
8673
|
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;
|
|
8665
8674
|
}
|
|
8666
8675
|
return '"' + e2 + '"';
|
|
8667
|
-
}, cd = "Thin", hd = "Hairline", dd = "Extra Light", ud = "Ultra Light", gd = "Light", md = "Normal", fd = "Regular", pd = "Medium", _d = "Semi Bold", Sd = "Demi Bold", wd = "Bold", yd = "Extra Bold", Ed = "Ultra Bold", Cd = "Black", bd = "Heavy", vd = "Extra Black", xd = "Ultra Black", Id = "lighter", Rd = "normal", Ad = "bold", Md = "bolder",
|
|
8668
|
-
|
|
8669
|
-
const
|
|
8670
|
-
|
|
8671
|
-
const
|
|
8676
|
+
}, cd = "Thin", hd = "Hairline", dd = "Extra Light", ud = "Ultra Light", gd = "Light", md = "Normal", fd = "Regular", pd = "Medium", _d = "Semi Bold", Sd = "Demi Bold", wd = "Bold", yd = "Extra Bold", Ed = "Ultra Bold", Cd = "Black", bd = "Heavy", vd = "Extra Black", xd = "Ultra Black", Id = "lighter", Rd = "normal", Ad = "bold", Md = "bolder", Nd = /* @__PURE__ */ new Map();
|
|
8677
|
+
Nd.set(o.textToKey(cd), 100), Nd.set(o.textToKey(hd), 100), Nd.set(o.textToKey(dd), 200), Nd.set(o.textToKey(ud), 200), Nd.set(o.textToKey(gd), 300), Nd.set(o.textToKey(md), 400), Nd.set(o.textToKey(fd), 400), Nd.set(o.textToKey(pd), 500), Nd.set(o.textToKey(_d), 600), Nd.set(o.textToKey(Sd), 600), Nd.set(o.textToKey(md), 400), Nd.set(o.textToKey(wd), 700), Nd.set(o.textToKey(yd), 800), Nd.set(o.textToKey(Ed), 800), Nd.set(o.textToKey(Cd), 900), Nd.set(o.textToKey(bd), 900), Nd.set(o.textToKey(vd), 950), Nd.set(o.textToKey(xd), 950), Nd.set(o.textToKey(Id), 100), Nd.set(o.textToKey(Rd), 400), Nd.set(o.textToKey(Ad), 700), Nd.set(o.textToKey(Md), 700);
|
|
8678
|
+
const Td = "xx-small", kd = "x-small", Fd = "small", Od = "medium", Dd = "large", Ld = "x-large", Bd = "xx-large", Pd = "xxx-large", zd = "smaller", Wd = "larger", Hd = "math", Vd = new RegExp("^[0-9]*[.]?[0-9]+$", "g"), $d = /* @__PURE__ */ new Map();
|
|
8679
|
+
$d.set(o.textToKey(Td), (t2) => 0.4 * t2), $d.set(o.textToKey(kd), (t2) => 0.5 * t2), $d.set(o.textToKey(Fd), (t2) => 0.6 * t2), $d.set(o.textToKey(Od), (t2) => t2), $d.set(o.textToKey(Dd), (t2) => 1.1 * t2), $d.set(o.textToKey(Ld), (t2) => 1.25 * t2), $d.set(o.textToKey(Bd), (t2) => 1.5 * t2), $d.set(o.textToKey(Pd), (t2) => 2 * t2), $d.set(o.textToKey(zd), (t2) => 0.9 * t2), $d.set(o.textToKey(Wd), (t2) => 1.1 * t2), $d.set(o.textToKey(Hd), (t2) => t2);
|
|
8680
|
+
const jd = (t2, e2 = 11, n2 = "pt") => {
|
|
8672
8681
|
if (!t2) return null;
|
|
8673
8682
|
let r2 = e2;
|
|
8674
8683
|
t2 = t2.trim().toLowerCase();
|
|
@@ -8683,7 +8692,7 @@ const $d = (t2, e2 = 11, n2 = "pt") => {
|
|
|
8683
8692
|
else if (t2.endsWith("rem")) r2 = parseFloat(t2.substring(0, t2.length - 3).trim()) * e2;
|
|
8684
8693
|
else if (t2.endsWith("%")) r2 = parseFloat(t2.substring(0, t2.length - 1).trim()) / 100 * e2;
|
|
8685
8694
|
else if ("string" == typeof t2) {
|
|
8686
|
-
const n3 = o.textToKey(t2), r3 =
|
|
8695
|
+
const n3 = o.textToKey(t2), r3 = $d.get(n3);
|
|
8687
8696
|
if (r3) return r3(e2);
|
|
8688
8697
|
}
|
|
8689
8698
|
return isNaN(r2) ? null : r2;
|
|
@@ -8797,7 +8806,7 @@ const xu = (t2, e2) => {
|
|
|
8797
8806
|
if ("string" == typeof t2 && (t2 = au(t2)), !t2) return null;
|
|
8798
8807
|
const n2 = {};
|
|
8799
8808
|
return t2.style && (n2.style = t2.style), t2.color && (n2.color = t2.color), t2.isIStroke ? t2.getProperties() : n2;
|
|
8800
|
-
}, properties: { color: Iu } }, Au = { shorthand: (t2, e2) => "none" === t2 || "transparent" === t2 || "object" == typeof t2 && 0 === Object.keys(t2).length ? { type: Os.Type.None } : (t2.getType?.(), Os.Type.None, t2) }, Mu = { shorthand: (t2, e2) => ("object" == typeof (t2 = xu(t2, e2.parseColor.bind(e2))) && t2.color && (t2.type = Os.Type.Solid), t2), merge: (t2, e2, n2) => t2.color ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === Os.Type.Solid ? { ...e2 } : e2?.type === Os.Type.Gradient ? { type: Os.Type.Solid, color: e2?.stops?.[0]?.color ?? n2.parseColor(Ls.Scheme.Bg1) } : e2?.type === Os.Type.Pattern ? { type: Os.Type.Solid, color: e2?.foreground ?? n2.parseColor(Ls.Scheme.Bg1) } : t2 ? { ...t2 } : null), properties: { color: Iu } },
|
|
8809
|
+
}, properties: { color: Iu } }, Au = { shorthand: (t2, e2) => "none" === t2 || "transparent" === t2 || "object" == typeof t2 && 0 === Object.keys(t2).length ? { type: Os.Type.None } : (t2.getType?.(), Os.Type.None, t2) }, Mu = { shorthand: (t2, e2) => ("object" == typeof (t2 = xu(t2, e2.parseColor.bind(e2))) && t2.color && (t2.type = Os.Type.Solid), t2), merge: (t2, e2, n2) => t2.color ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === Os.Type.Solid ? { ...e2 } : e2?.type === Os.Type.Gradient ? { type: Os.Type.Solid, color: e2?.stops?.[0]?.color ?? n2.parseColor(Ls.Scheme.Bg1) } : e2?.type === Os.Type.Pattern ? { type: Os.Type.Solid, color: e2?.foreground ?? n2.parseColor(Ls.Scheme.Bg1) } : t2 ? { ...t2 } : null), properties: { color: Iu } }, Nu = { shorthand: (t2, e2) => ("object" == typeof t2 && t2.stops && (t2.type = Os.Type.Gradient), t2), merge: (t2, e2, n2) => t2.stops ? t2 : (e2?.toJSON && (e2 = e2.toJSON()), e2?.type === Os.Type.Gradient ? { ...e2 } : e2?.type === Os.Type.Solid ? { type: Os.Type.Gradient, stops: [{ offset: 0, color: e2?.color ?? Ls.Scheme.Accent1 }, { offset: 1, color: Ls.Scheme.Bg1 }] } : e2?.type === Os.Type.Pattern ? { type: Os.Type.Gradient, stops: [{ offset: 0, color: e2?.foreground ?? Ls.Scheme.Bg1 }, { offset: 1, color: e2?.background ?? Ls.Scheme.Accent1 }] } : t2 ? { ...t2 } : null), properties: { stops: { shorthand: (t2, e2) => t2, arrayType: { shorthand: (t2, e2) => t2 = xu(t2, e2.parseColor.bind(e2)), properties: { color: Iu } } } } }, Tu = { shorthand: (t2, e2) => {
|
|
8801
8810
|
if ("object" == typeof t2) {
|
|
8802
8811
|
const e3 = t2;
|
|
8803
8812
|
(e3.foreground || e3.background || e3.patternType) && (e3.type = Os.Type.Pattern, e3.patternType = e3.patternType ?? Os.BuiltInSheetPattern.Solid);
|
|
@@ -8813,7 +8822,7 @@ const xu = (t2, e2) => {
|
|
|
8813
8822
|
const e3 = Zh(t2);
|
|
8814
8823
|
if (e3) {
|
|
8815
8824
|
const t3 = {};
|
|
8816
|
-
if (e3.family && (t3.family = e3.family), e3.fallbacks && (t3.fallbacks = e3.fallbacks), e3.size && (t3.size =
|
|
8825
|
+
if (e3.family && (t3.family = e3.family), e3.fallbacks && (t3.fallbacks = e3.fallbacks), e3.size && (t3.size = jd(e3.size)), Object.keys(e3).length > 0) return t3;
|
|
8817
8826
|
}
|
|
8818
8827
|
}
|
|
8819
8828
|
return t2;
|
|
@@ -8825,27 +8834,27 @@ const xu = (t2, e2) => {
|
|
|
8825
8834
|
return n2.fallbacks && (r2 = r2.concat(n2.fallbacks)), r2;
|
|
8826
8835
|
} }, size: { shorthand: (t2, e2) => {
|
|
8827
8836
|
let n2 = t2;
|
|
8828
|
-
return "string" == typeof t2 && (n2 =
|
|
8837
|
+
return "string" == typeof t2 && (n2 = jd(t2, e2.getNormal().getFont().getSize())), isNaN(n2) || "number" != typeof n2 ? null : (n2 = Math.max(1, Math.min(o.roundAccurately(n2, 1), 409)), n2);
|
|
8829
8838
|
} }, weight: { shorthand: (t2, e2) => {
|
|
8830
8839
|
if ("string" != typeof t2) return t2;
|
|
8831
8840
|
const n2 = ((t3) => {
|
|
8832
8841
|
let e3 = 400;
|
|
8833
8842
|
if (e3 = "number" == typeof t3 ? t3 : parseFloat(t3), !isNaN(e3)) return e3;
|
|
8834
8843
|
if ("string" == typeof t3) {
|
|
8835
|
-
const e4 = o.textToKey(t3), n3 =
|
|
8844
|
+
const e4 = o.textToKey(t3), n3 = Nd.get(e4);
|
|
8836
8845
|
if (n3) return n3;
|
|
8837
8846
|
}
|
|
8838
8847
|
return e3;
|
|
8839
8848
|
})(t2);
|
|
8840
8849
|
return isNaN(n2) || "number" != typeof n2 ? null : n2;
|
|
8841
8850
|
} }, underline: { shorthand: (t2, e2) => t2 ? true === t2 ? qo.UnderlineStyle.Single : od(t2) : qo.UnderlineStyle.None } } }, fill: { shorthand: (t2, e2) => {
|
|
8842
|
-
const n2 = [Au, Mu,
|
|
8851
|
+
const n2 = [Au, Mu, Nu, Tu];
|
|
8843
8852
|
for (let r2 = 0; r2 < n2.length; r2++) {
|
|
8844
8853
|
let o2 = n2[r2]?.shorthand?.(t2, e2);
|
|
8845
8854
|
if (o2?.type) return o2;
|
|
8846
8855
|
}
|
|
8847
8856
|
return t2;
|
|
8848
|
-
}, getSubType: (t2) => t2.type === Os.Type.None ? Au : t2.type === Os.Type.Solid ? Mu : t2.type === Os.Type.Gradient ?
|
|
8857
|
+
}, getSubType: (t2) => t2.type === Os.Type.None ? Au : t2.type === Os.Type.Solid ? Mu : t2.type === Os.Type.Gradient ? Nu : t2.type === Os.Type.Pattern ? Tu : null }, alignment: { properties: { indent: { shorthand: (t2, e2) => {
|
|
8849
8858
|
let n2 = t2;
|
|
8850
8859
|
return "string" == typeof t2 && (n2 = parseFloat(t2)), isNaN(n2) || "number" != typeof n2 ? null : n2;
|
|
8851
8860
|
} }, rotation: { shorthand: (t2, e2) => {
|
|
@@ -8934,14 +8943,14 @@ const xu = (t2, e2) => {
|
|
|
8934
8943
|
}
|
|
8935
8944
|
return o.deepFreeze(t2);
|
|
8936
8945
|
})();
|
|
8937
|
-
const
|
|
8946
|
+
const $u = new class {
|
|
8938
8947
|
_svgImage(t2, e2, n2, r2 = 8) {
|
|
8939
8948
|
return { backgroundImage: `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${r2}' height='${r2}' viewBox='0 0 ${r2} ${r2}' shape-rendering='crispEdges' %3E%3Cpath d='${n2}' stroke='${t2}' %3E%3C/path%3E%3C/svg%3E")`, backgroundRepeat: "repeat", backgroundSize: `${r2}px ${r2}px`, backgroundPositionX: "0px", backgroundPositionY: "0px", backgroundPosition: "" + -r2, backgroundColor: e2 };
|
|
8940
8949
|
}
|
|
8941
8950
|
toCSS(t2, e2, n2) {
|
|
8942
8951
|
return t2 && t2 !== Os.BuiltInSheetPattern.None ? t2 === Os.BuiltInSheetPattern.Solid ? { background: n2 } : t2 === Os.BuiltInSheetPattern.Gray0625 ? this._svgImage(e2, n2, "M 0.5 0.5 L 0.5 1.5 M 0.5 4.5 L 0.5 5.5 M 4.5 2.5 L 4.5 3.5 M 4.5 6.5 L 4.5 7.5", 8) : t2 === Os.BuiltInSheetPattern.LightGray ? this._svgImage(e2, n2, "M 0.5 0.5 L 0.5 1.5 M 0.5 2.5 L 0.5 3.5 M 2.5 -0.5 L 2.5 0.5 M 2.5 1.5 L 2.5 2.5 M 2.5 3.5 L 2.5 4.5", 4) : t2 === Os.BuiltInSheetPattern.MediumGray ? this._svgImage(e2, n2, "M 0.5 0.5 L 0.5 1.5 M 1.5 1.5 L 1.5 2.5 M 1.5 -0.5 L 1.5 0.5 M -0.5 -0.5 L -0.5 0.5", 2) : t2 === Os.BuiltInSheetPattern.DarkGray ? this._svgImage(e2, n2, "M 0 0 L 0 4 M 1 1 L 1 2 M 1 3 L 1 4 M 2 0 L 2 4 M 3 0.5 L 3 1.5 M 3 2.5 L 3 3.5 M 4 0 L 4 4", 4) : t2 === Os.BuiltInSheetPattern.LightHorizontal ? this._svgImage(e2, n2, "M 0 2 L 4 2", 4) : t2 === Os.BuiltInSheetPattern.DarkHorizontal ? this._svgImage(e2, n2, "M 0 2 L 4 2 M 0 3 L 4 3", 4) : t2 === Os.BuiltInSheetPattern.LightVertical ? this._svgImage(e2, n2, "M 2 0 L 2 4", 4) : t2 === Os.BuiltInSheetPattern.DarkVertical ? this._svgImage(e2, n2, "M 2 0 L 2 4 M 3 0 L 3 4", 4) : t2 === Os.BuiltInSheetPattern.LightUp ? this._svgImage(e2, n2, "M 0.5 0.5 L 0.5 1.5 M 1.5 3.5 L 1.5 4.5 M 1.5 -0.5 L 1.5 0.5 M 2.5 2.5 L 2.5 3.5 M 3.5 1.5 L 3.5 2.5", 4) : t2 === Os.BuiltInSheetPattern.DarkUp ? this._svgImage(e2, n2, "M 0.5 -0.5 L 0.5 1.5 M 0.5 3.5 L 0.5 4.5 M 1.5 2.5 L 1.5 4.5 M 2.5 1.5 L 2.5 3.5 M 3.5 0.5 L 3.5 2.5 M 1.5 -0.5 L 1.5 0.5", 4) : t2 === Os.BuiltInSheetPattern.LightDown ? this._svgImage(e2, n2, "M 0.5 0 L 0.5 1 M 1.5 1 L 1.5 2 M 2.5 2 L 2.5 3 M 3.5 3 L 3.5 4", 4) : t2 === Os.BuiltInSheetPattern.DarkDown ? this._svgImage(e2, n2, "M 0.5 -0.5 L 0.5 2 M 1.5 1 L 1.5 3 M 2.5 2 L 2.5 4 M 3.5 3 L 3.5 5 M 3.5 -0.5 L 3.5 1.0", 4) : t2 === Os.BuiltInSheetPattern.LightGrid ? this._svgImage(e2, n2, "M 1.5 -0.5 L 1.5 4.5 M -0.5 1.5 L 4.5 1.5", 4) : t2 === Os.BuiltInSheetPattern.DarkGrid ? this._svgImage(e2, n2, "M 0.5 -0.5 L 0.5 1.5 M 1.5 -0.5 L 1.5 1.5 M 2.5 1.5 L 2.5 3.5 M 3.5 1.5 L 3.5 3.5 M 0.5 3.5 L 0.5 4.5 M 1.5 3.5 L 1.5 4.5", 4) : t2 === Os.BuiltInSheetPattern.LightTrellis ? this._svgImage(e2, n2, "M 0.5 0.5 L 0.5 1.5 M 1.5 3.5 L 1.5 4.5 M 1.5 -0.5 L 1.5 0.5 M 2.5 2.5 L 2.5 3.5 M 3.5 1.5 L 3.5 2.5 M 1.5 1.5 L 1.5 2.5 M 3.5 3.5 L 3.5 4.5 M 3.5 -0.5 L 3.5 0.5", 4) : t2 === Os.BuiltInSheetPattern.DarkTrellis ? this._svgImage(e2, n2, "M 0 0 L 4 0 M 0 1 L 2 1 M 0 2 L 4 2 M 2 3 L 4 3 M 0 4 L 4 4", 4) : (Os.BuiltInSheetPattern.Custom, this._svgImage(e2, n2, "M 0.5 0.5 L 0.5 1.5 M 0.5 4.5 L 0.5 5.5 M 2.5 2.5 L 2.5 3.5 M 2.5 6.5 L 2.5 7.5 M 4.5 0.5 L 4.5 1.5 M 4.5 4.5 L 4.5 5.5 M 6.5 2.5 L 6.5 3.5 M 6.5 6.5 L 6.5 7.5", 8)) : { background: "none" };
|
|
8943
8952
|
}
|
|
8944
|
-
}(),
|
|
8953
|
+
}(), ju = (t2, e2, n2) => {
|
|
8945
8954
|
if (void 0 === e2) return;
|
|
8946
8955
|
if (null === e2) return null;
|
|
8947
8956
|
if (e2.isIStyle) return e2._p.getProperties();
|
|
@@ -9267,7 +9276,7 @@ class ng extends Uu {
|
|
|
9267
9276
|
}
|
|
9268
9277
|
toCSS(t2) {
|
|
9269
9278
|
const e2 = this.getBackground().toCSS(t2), n2 = this.getForeground().toCSS(t2);
|
|
9270
|
-
return this.getPatternType() === Os.BuiltInSheetPattern.None ? { background: "none" } : this.getPatternType() === Os.BuiltInSheetPattern.Solid ? { background: this.getForeground().toCSS(t2) } :
|
|
9279
|
+
return this.getPatternType() === Os.BuiltInSheetPattern.None ? { background: "none" } : this.getPatternType() === Os.BuiltInSheetPattern.Solid ? { background: this.getForeground().toCSS(t2) } : $u.toCSS(this.getPatternType(), n2, e2);
|
|
9271
9280
|
}
|
|
9272
9281
|
toJSON() {
|
|
9273
9282
|
const t2 = { type: Os.Type.Pattern };
|
|
@@ -9293,7 +9302,7 @@ class rg {
|
|
|
9293
9302
|
return this._c.getNamed(t2);
|
|
9294
9303
|
}
|
|
9295
9304
|
createTemporaryStyle(t2) {
|
|
9296
|
-
const e2 = this._c, n2 =
|
|
9305
|
+
const e2 = this._c, n2 = ju(0, t2, this), r2 = this._options, o2 = r2.range, s2 = r2.direct.cloneWithUpdate(n2);
|
|
9297
9306
|
return og(e2, s2, o2);
|
|
9298
9307
|
}
|
|
9299
9308
|
measureText(t2, e2 = this.getFont().getSize(), n2, r2) {
|
|
@@ -9608,11 +9617,11 @@ const gg = new class {
|
|
|
9608
9617
|
const v2 = c2.colHeaders, x2 = v2.findOffset.bind(v2), I2 = v2.findIndex.bind(v2);
|
|
9609
9618
|
let R2 = x2(h2);
|
|
9610
9619
|
const A2 = R2;
|
|
9611
|
-
let M2 = x2(h2 + b2),
|
|
9612
|
-
const F2 = { x: 0, y: 0, width:
|
|
9620
|
+
let M2 = x2(h2 + b2), N2 = M2 - R2, T2 = h2, k2 = h2;
|
|
9621
|
+
const F2 = { x: 0, y: 0, width: N2, height: d2?.height ?? 0 };
|
|
9613
9622
|
const O2 = h2 - h2 + b2;
|
|
9614
|
-
let D2 = d2 ? d2.width -
|
|
9615
|
-
|
|
9623
|
+
let D2 = d2 ? d2.width - N2 : 0, L2 = F2;
|
|
9624
|
+
N2 > 0 && D2 > 0 && !m2 && (S2 === p.Center && (D2 /= 2), S2 !== p.Left && S2 !== p.Center || (k2 = I2(M2 + D2), null !== a2 && (k2 = Math.min(k2, a2.colIndex - 1)), M2 = x2(k2), C2 = D2, y2 = k2 - h2), S2 !== p.Right && S2 !== p.Center || (T2 = I2(R2 - D2), null !== i2 && (T2 = Math.max(T2, i2.colIndex + 1)), R2 = x2(T2), E2 = D2, w2 = h2 - T2), F2.x = A2 - R2, L2.x = F2.x), b2 > 1 && (y2 = S2 === p.Center ? Math.max(O2 - 1, y2) : b2 - 1, M2 = x2(h2 + 1), F2.width = M2 - R2, L2 = { ...F2 }, L2.width = N2);
|
|
9616
9625
|
return { anchorBounds: F2, leftIndex: w2, rightIndex: y2, leftOffset: E2, rightOffset: C2, colSpan: O2, colBounds: L2 };
|
|
9617
9626
|
};
|
|
9618
9627
|
class yg {
|
|
@@ -9666,10 +9675,10 @@ const Eg = (t2, e2, n2, r2) => {
|
|
|
9666
9675
|
if (v2) return v2;
|
|
9667
9676
|
let x2 = null, I2 = null;
|
|
9668
9677
|
const R2 = _g(e2, n2), A2 = R2.top + R2.bottom + +Ug(n2);
|
|
9669
|
-
let M2 = false,
|
|
9670
|
-
l2 && (
|
|
9671
|
-
const
|
|
9672
|
-
if (
|
|
9678
|
+
let M2 = false, N2 = false;
|
|
9679
|
+
l2 && (N2 = true, (0 !== S2 || C2) && (N2 = false));
|
|
9680
|
+
const T2 = N2 ? void 0 : pg(e2, n2, r2, s2), k2 = R2.left + R2.right + 2;
|
|
9681
|
+
if (T2) {
|
|
9673
9682
|
if (e2 === t.Number && "General" === y2 && a2) {
|
|
9674
9683
|
let t2 = r2, e3 = o.splitNumber(t2), s3 = "";
|
|
9675
9684
|
s3 = Math.abs(t2) >= Math.pow(10, 12) || Math.abs(t2) <= Math.pow(10, -12) ? `0.${"0".repeat(Math.max(2, Math.min(e3.ipLength, 5)))}E+00` : 0 === Math.abs(e3.ipLength) ? "0.0" : Math.abs(e3.fpLength) > 0 ? "0".repeat(e3.ipLength) + ".0" : "0".repeat(e3.ipLength), t2 < 0 && (s3 = "-" + s3), s3 = "0".repeat(s3.length);
|
|
@@ -9678,7 +9687,7 @@ const Eg = (t2, e2, n2, r2) => {
|
|
|
9678
9687
|
} else {
|
|
9679
9688
|
let t2 = null;
|
|
9680
9689
|
C2 && (t2 = { width: Math.max(1, i2 - k2) });
|
|
9681
|
-
const e3 =
|
|
9690
|
+
const e3 = T2.layout(t2);
|
|
9682
9691
|
x2 = e3.bounds.width, I2 = e3.bounds.height;
|
|
9683
9692
|
}
|
|
9684
9693
|
if (null !== x2 && (x2 += k2), null !== I2 && (I2 += A2), M2 = e2 === t.String, S2) {
|
|
@@ -9720,7 +9729,7 @@ class vg {
|
|
|
9720
9729
|
}
|
|
9721
9730
|
getA1() {
|
|
9722
9731
|
const t2 = this._coords;
|
|
9723
|
-
return t2 ?
|
|
9732
|
+
return t2 ? $c(this._options.resolveRange(t2).getCoords()) : Rc;
|
|
9724
9733
|
}
|
|
9725
9734
|
getSheet() {
|
|
9726
9735
|
return this._options.sheet;
|
|
@@ -9833,7 +9842,7 @@ class vg {
|
|
|
9833
9842
|
const n2 = mg(t2, this._options);
|
|
9834
9843
|
let r2 = this._ri;
|
|
9835
9844
|
if (void 0 !== n2.style) {
|
|
9836
|
-
const t3 = this._coords ?? c.EmptyCell, o3 = c.cellToRange(t3), s3 = () => Eg(0, o3, this._ri, this._options), i2 =
|
|
9845
|
+
const t3 = this._coords ?? c.EmptyCell, o3 = c.cellToRange(t3), s3 = () => Eg(0, o3, this._ri, this._options), i2 = ju(this._options.styles, n2.style, s3), a2 = (this._ri?.directStyle ?? new ag(e2.styles, o3)).cloneWithUpdate(i2);
|
|
9837
9846
|
r2 = { ...r2, directStyle: a2 };
|
|
9838
9847
|
}
|
|
9839
9848
|
let o2 = this._t, s2 = this._v;
|
|
@@ -9869,14 +9878,14 @@ class vg {
|
|
|
9869
9878
|
const s3 = parseFloat(e3), a2 = s3 % 1 != 0, l2 = s3 >= 1;
|
|
9870
9879
|
if (s3 < 0) return o.castToString(e3);
|
|
9871
9880
|
if (!n2 || r4 || a2) if (!r4 || n2 || l2) {
|
|
9872
|
-
const e4 =
|
|
9881
|
+
const e4 = Nr("Short Date", t2, i2), n3 = Nr("Long Time", t2, i2);
|
|
9873
9882
|
if (e4 && n3) return e4.fmt + " " + n3.fmt;
|
|
9874
9883
|
} else {
|
|
9875
|
-
const e4 =
|
|
9884
|
+
const e4 = Nr("Long Time", t2, i2);
|
|
9876
9885
|
if (e4) return e4.fmt;
|
|
9877
9886
|
}
|
|
9878
9887
|
else {
|
|
9879
|
-
const e4 =
|
|
9888
|
+
const e4 = Nr("Short Date", t2, i2);
|
|
9880
9889
|
if (e4) return e4.fmt;
|
|
9881
9890
|
}
|
|
9882
9891
|
}
|
|
@@ -10004,7 +10013,7 @@ class Ig {
|
|
|
10004
10013
|
}
|
|
10005
10014
|
const Rg = [null], Ag = { colIndex: -1, rowIndex: -1 };
|
|
10006
10015
|
let Mg;
|
|
10007
|
-
const
|
|
10016
|
+
const Ng = (t2, n2, r2, o2 = false) => {
|
|
10008
10017
|
const s2 = r2 === e.Orientation.Row, i2 = t2.length, a2 = new Array(i2);
|
|
10009
10018
|
for (let e2 = 0; e2 < i2; e2++) {
|
|
10010
10019
|
const r3 = t2[e2];
|
|
@@ -10017,7 +10026,7 @@ const Tg = (t2, n2, r2, o2 = false) => {
|
|
|
10017
10026
|
}
|
|
10018
10027
|
}
|
|
10019
10028
|
return a2;
|
|
10020
|
-
},
|
|
10029
|
+
}, Tg = (t2, e2, n2) => {
|
|
10021
10030
|
const r2 = e2, o2 = t2.length;
|
|
10022
10031
|
for (let e3 = 0; e3 < o2; e3++) {
|
|
10023
10032
|
const o3 = t2[e3];
|
|
@@ -10066,10 +10075,10 @@ const Tg = (t2, n2, r2, o2 = false) => {
|
|
|
10066
10075
|
}
|
|
10067
10076
|
}(), Hg = () => Vg, Vg = { forEach: () => {
|
|
10068
10077
|
}, [Symbol.iterator]: Pg, entries: Pg, select: wh, find: wh, calculate: wh, getCell: () => Wg, getValue: Bg, waitForCalcs: () => Promise.resolve(Vg), setValue: wh, setFormula: wh, setValues: wh, updateCells: wh, updateStyle: wh, getCells: () => [[Wg]], getStyleUpdater: wh, getValues: () => [[null]], getBounds: Bg, getIntersect: Hg, getUnion: Hg, getDifferences: wh, getResizeBy: Hg, getResizeTo: Hg, getOffsetBy: Hg, getOffsetTo: Hg, getFixed: Hg, getUsedRange: Hg, getEntireRows: Hg, getEntireColumns: Hg, getSurrounding: wh, getExtended: wh, isEntireRows: Dg, isEntireColumns: Dg, isEntireRange: Dg, getWidth: zg, getHeight: zg, size: 0, sort: wh, clear: wh, setHyperlink: wh, setComments: wh, merge: wh, unmerge: wh, getMerges: wh, insert: wh, insertFrom: wh, delete: wh, getDefaultShiftOrientation: wh, getDefaultSortCriteria: wh, autoFill: wh, autoFit: wh, getSnapshot: wh, copyFrom: wh, doBatch: wh, startIncrementalUpdates: wh, getRowHeaders: wh, getColumnHeaders: wh, getCounts: wh, getCount: zg, isContentful: Dg, addListener: wh, getColumnStart: zg, getRowStart: zg, getColumnEnd: zg, getRowEnd: zg, getRowCount: zg, getColumnCount: zg, getVisible: wh, getCoords: Bg, isEmpty: Lg, toString: () => Rc, getA1: () => Rc, isInvalid: Lg, getSheet: Bg, isReadOnly: Lg, isICellRange: true };
|
|
10069
|
-
function
|
|
10078
|
+
function $g(t2, e2 = null, n2 = null, r2 = Rc) {
|
|
10070
10079
|
return t2 || n2 ? Object.freeze({ ...Vg, getSheet: () => t2, bounds: () => n2, getA1: () => r2, toString: () => n2 ? Hc(n2, e2) : r2 }) : Vg;
|
|
10071
10080
|
}
|
|
10072
|
-
const
|
|
10081
|
+
const jg = /^[\\+-]?[0-9]*\.?[0-9]*$/, Gg = (t2, e2, r2) => {
|
|
10073
10082
|
if (void 0 === t2) throw new Error("A value is required to create a cell from a text.");
|
|
10074
10083
|
const s2 = r2 ?? { value: null };
|
|
10075
10084
|
if ("" === (t2 = o.castToString(t2)).trim()) return s2;
|
|
@@ -10112,7 +10121,7 @@ const $g = /^[\\+-]?[0-9]*\.?[0-9]*$/, Gg = (t2, e2, r2) => {
|
|
|
10112
10121
|
return m2 = e3.length < t3.length, e3;
|
|
10113
10122
|
}
|
|
10114
10123
|
return t3;
|
|
10115
|
-
})(c2), c2.match(
|
|
10124
|
+
})(c2), c2.match(jg) && !isNaN(c2)) {
|
|
10116
10125
|
if (s2.value = c2 * h2, 0 !== u2) s2.value = s2.value * Math.pow(10, u2), s2.style = { numberFormat: `0${l2 + "0".repeat(2)}E+00` };
|
|
10117
10126
|
else if (m2) {
|
|
10118
10127
|
let t3 = Io(c2);
|
|
@@ -10226,16 +10235,16 @@ class Yg {
|
|
|
10226
10235
|
o2._c = null;
|
|
10227
10236
|
}, this.context = { getCoords() {
|
|
10228
10237
|
const t2 = o2._c;
|
|
10229
|
-
if (!t2) throw new Error(
|
|
10238
|
+
if (!t2) throw new Error($h);
|
|
10230
10239
|
return t2;
|
|
10231
10240
|
}, getCell() {
|
|
10232
10241
|
const t2 = o2._c;
|
|
10233
|
-
if (!t2) throw new Error(
|
|
10242
|
+
if (!t2) throw new Error($h);
|
|
10234
10243
|
if (this.excludeCellDetails) throw new Error("IteratorContext can only return a cell if the forEach excludeCellDetails has not been set to false.");
|
|
10235
10244
|
const e3 = o2._r, n3 = o2._t, s2 = o2._v;
|
|
10236
10245
|
return null !== s2 || e3 ? new vg(r2, t2, n3, s2, e3, o2._p, o2._n) : new vg(r2, t2);
|
|
10237
10246
|
}, getType: () => o2._t, getA1(t2) {
|
|
10238
|
-
if (!o2.context) throw new Error(
|
|
10247
|
+
if (!o2.context) throw new Error($h);
|
|
10239
10248
|
let e3 = o2._c;
|
|
10240
10249
|
return t2 && (e3 = { ...o2._c, ...t2 }), r2.resolveRange(e3).toString();
|
|
10241
10250
|
}, toJSDate(e3) {
|
|
@@ -11352,7 +11361,7 @@ class Am {
|
|
|
11352
11361
|
}
|
|
11353
11362
|
}
|
|
11354
11363
|
const Mm = { rowIndex: 0, colIndex: 0 };
|
|
11355
|
-
class
|
|
11364
|
+
class Nm extends ag {
|
|
11356
11365
|
constructor(t2, e2) {
|
|
11357
11366
|
super(t2, c.EmptyRange, e2);
|
|
11358
11367
|
}
|
|
@@ -11396,9 +11405,9 @@ class Tm extends ag {
|
|
|
11396
11405
|
return o.toSafeJSON(this._p);
|
|
11397
11406
|
}
|
|
11398
11407
|
}
|
|
11399
|
-
class
|
|
11408
|
+
class Tm {
|
|
11400
11409
|
constructor(t2, e2, n2, r2 = null) {
|
|
11401
|
-
this._name = e2.name, this._properties = e2, this._rangeStyle = new
|
|
11410
|
+
this._name = e2.name, this._properties = e2, this._rangeStyle = new Nm(t2, e2.style), this._doDelete = n2, this._builtInID = r2;
|
|
11402
11411
|
}
|
|
11403
11412
|
getRanged() {
|
|
11404
11413
|
return this._rangeStyle;
|
|
@@ -11463,7 +11472,7 @@ let km = class {
|
|
|
11463
11472
|
};
|
|
11464
11473
|
class Fm {
|
|
11465
11474
|
constructor(t2 = null, e2 = null, n2 = 11) {
|
|
11466
|
-
this._emitter = null, this._normalRanged = null, this._theme = t2 ?? new
|
|
11475
|
+
this._emitter = null, this._normalRanged = null, this._theme = t2 ?? new ji().getDefaultTheme(), this._defaultFontSize = n2;
|
|
11467
11476
|
const r2 = this;
|
|
11468
11477
|
this._emitter = new Ki(this), this._schemeLookup = (t3) => r2._theme.schemeLookup()(t3), this._indexedColors = this._fromJSONIndexedColors(e2), this._indexedLookup = (t3) => {
|
|
11469
11478
|
const e3 = this._indexedColors[t3];
|
|
@@ -11474,7 +11483,7 @@ class Fm {
|
|
|
11474
11483
|
for (let n2 = 0; n2 < t2.length; n2++) {
|
|
11475
11484
|
const r2 = t2[n2], o2 = { ...r2 }, s2 = r2.named;
|
|
11476
11485
|
delete o2.named;
|
|
11477
|
-
const i2 = f.resolveTypedUpdates(o2, ku, this), a2 = new
|
|
11486
|
+
const i2 = f.resolveTypedUpdates(o2, ku, this), a2 = new Tm(this, { name: s2, style: i2 }, this._hideOrRemoveNamed.bind(this), n2);
|
|
11478
11487
|
s2 === _i.BuiltInName.Normal && (this._normalRanged = a2.getRanged(), this._normalStyle = og(this, null)), e2.set(s2.toLowerCase(), a2);
|
|
11479
11488
|
}
|
|
11480
11489
|
}
|
|
@@ -11595,9 +11604,9 @@ class Fm {
|
|
|
11595
11604
|
const t3 = this._customCellStyles.get(r2) ?? o2;
|
|
11596
11605
|
i2 = t3?._properties ?? null;
|
|
11597
11606
|
}
|
|
11598
|
-
const a2 =
|
|
11607
|
+
const a2 = ju(0, t2.style, this.getNormal());
|
|
11599
11608
|
t2 = { ...t2, style: a2 };
|
|
11600
|
-
const l2 = f.resolveTypedUpdates(t2, Fu, this, i2), c2 = new
|
|
11609
|
+
const l2 = f.resolveTypedUpdates(t2, Fu, this, i2), c2 = new Tm(this, l2, this._hideOrRemoveNamed.bind(this), s2);
|
|
11601
11610
|
return l2.name === _i.BuiltInName.Normal && (this._normalRanged = c2.getRanged(), this._normalStyle = og(this, null)), this._customCellStyles.set(r2, c2), c2;
|
|
11602
11611
|
}
|
|
11603
11612
|
_setCustomTableStyleInternal(t2, e2) {
|
|
@@ -11980,7 +11989,7 @@ class Wm {
|
|
|
11980
11989
|
}
|
|
11981
11990
|
var Hm, Vm;
|
|
11982
11991
|
Hm || (Hm = {});
|
|
11983
|
-
class
|
|
11992
|
+
class $m extends Xi {
|
|
11984
11993
|
constructor(t2) {
|
|
11985
11994
|
super(t2), t2.json && (this._resource = t2.fromResourceId(t2.json.resId));
|
|
11986
11995
|
}
|
|
@@ -12030,13 +12039,13 @@ class jm extends Xi {
|
|
|
12030
12039
|
}
|
|
12031
12040
|
}
|
|
12032
12041
|
(Vm || (Vm = {})).Status = { Ready: "ready", Error: "error", Starting: "starting", Stopping: "stopping", Off: "off" };
|
|
12033
|
-
class
|
|
12042
|
+
class jm extends rc {
|
|
12034
12043
|
constructor(t2, e2 = null, n2, r2, o2) {
|
|
12035
12044
|
if (super(t2, n2, e2), this._sheetName = r2 || null, this._getEntireCoords = o2 ?? lc, this._coords = Gm(n2, this._getEntireCoords()), !n2) throw new Error("ReferenceRange requires a coords");
|
|
12036
12045
|
this._validateCoords(n2);
|
|
12037
12046
|
}
|
|
12038
12047
|
toType(t2) {
|
|
12039
|
-
return new
|
|
12048
|
+
return new jm(this._values, t2, this._coords, this._sheetName, this._getEntireCoords);
|
|
12040
12049
|
}
|
|
12041
12050
|
getCoords() {
|
|
12042
12051
|
return this._coords;
|
|
@@ -12062,7 +12071,7 @@ const Gm = (t2, e2) => {
|
|
|
12062
12071
|
let n2 = t2.rowStart, r2 = t2.rowEnd, o2 = t2.colStart, s2 = t2.colEnd, i2 = false;
|
|
12063
12072
|
return o2 === Number.MIN_SAFE_INTEGER && (o2 = e2.colStart, i2 = true), n2 === Number.MIN_SAFE_INTEGER && (n2 = e2.rowStart, i2 = true), r2 === Number.MAX_SAFE_INTEGER && (r2 = e2.rowEnd, i2 = true), s2 === Number.MAX_SAFE_INTEGER && (s2 = e2.colEnd, i2 = true), i2 ? { rowStart: n2, rowEnd: r2, colStart: o2, colEnd: s2 } : t2;
|
|
12064
12073
|
}, Um = (t2, e2) => t2.value?.once === e2.value?.once, Jm = (t2, e2) => t2.colStart === e2.colStart && t2.rowStart === e2.rowStart, qm = (t2, e2, n2) => !!n2 && (t2 === n2.rowStart && e2 === n2.colStart), Km = (t2, n2 = 0, r2 = 0) => {
|
|
12065
|
-
const o2 = t2._values, s2 = t2._coords, i2 = o2.getRuns({ bounds: s2 }), a2 = o2.getOrientation() !== e.Orientation.Row, l2 = a2 ? s2.colStart : s2.rowStart, c2 = a2 ? s2.rowStart : s2.colStart, h2 = new
|
|
12074
|
+
const o2 = t2._values, s2 = t2._coords, i2 = o2.getRuns({ bounds: s2 }), a2 = o2.getOrientation() !== e.Orientation.Row, l2 = a2 ? s2.colStart : s2.rowStart, c2 = a2 ? s2.rowStart : s2.colStart, h2 = new Tt.Builder(null, n2, r2);
|
|
12066
12075
|
let d2 = i2.next();
|
|
12067
12076
|
for (; !d2.done; ) {
|
|
12068
12077
|
const t3 = d2.value;
|
|
@@ -12304,7 +12313,7 @@ class Qm {
|
|
|
12304
12313
|
const n3 = o3[t4];
|
|
12305
12314
|
if (n3 === l3) continue;
|
|
12306
12315
|
Af[0] = { colStart: r3.ref.colStart, rowStart: l3, colEnd: r3.ref.colEnd, rowEnd: n3 - 1, value: r3 }, Af[1] = { colStart: r3.ref.colStart, rowStart: n3, colEnd: r3.ref.colStart, rowEnd: r3.ref.rowEnd, value: r3 };
|
|
12307
|
-
const s4 =
|
|
12316
|
+
const s4 = Nf(r3, Af, e.Orientation.Row, n3);
|
|
12308
12317
|
let i4 = s4[0];
|
|
12309
12318
|
_2(i4, a3), g2.push(i4), i4 = s4[1], _2(i4, a3), g2.push(i4), l3 = n3;
|
|
12310
12319
|
}
|
|
@@ -12372,7 +12381,7 @@ class Qm {
|
|
|
12372
12381
|
let r2 = null;
|
|
12373
12382
|
const o2 = "string" == typeof t2 ? Qc(t2, nf) : t2;
|
|
12374
12383
|
if (null !== n2) {
|
|
12375
|
-
const t3 = new
|
|
12384
|
+
const t3 = new Tt.Builder(), s2 = this._values.getOrientation() === e.Orientation.Column, i2 = s2 ? o2.colIndex : o2.rowIndex, a2 = s2 ? o2.rowIndex : o2.colIndex;
|
|
12376
12385
|
t3.addValue(i2, a2, n2), r2 = this.setInputs(t3.build(), null);
|
|
12377
12386
|
} else this.delete(c.cellToRange(o2, rf));
|
|
12378
12387
|
return r2;
|
|
@@ -12526,7 +12535,7 @@ class Qm {
|
|
|
12526
12535
|
}
|
|
12527
12536
|
}
|
|
12528
12537
|
o3 && (t3 = s2.concat(o3)), t3.sort(c.columnFirstRangeComparator);
|
|
12529
|
-
const i3 = new
|
|
12538
|
+
const i3 = new Tt.Builder((t4) => new aa(t4));
|
|
12530
12539
|
let a3;
|
|
12531
12540
|
const l3 = n2._values, g3 = l3.getOrientation() === e.Orientation.Column, m3 = t3.length;
|
|
12532
12541
|
for (let e2 = 0; e2 < m3; e2++) {
|
|
@@ -12793,17 +12802,17 @@ class Qm {
|
|
|
12793
12802
|
continue;
|
|
12794
12803
|
}
|
|
12795
12804
|
const o3 = t4.colStart, a3 = t4.rowStart, l3 = t4.colEnd;
|
|
12796
|
-
t4.rowEnd !== a3 || o3 !== l3 ? (i2 > 0 && (s2.length = i2, Zm(s2, p2, u2, S2), i2 = 0), e3[n2] = new
|
|
12805
|
+
t4.rowEnd !== a3 || o3 !== l3 ? (i2 > 0 && (s2.length = i2, Zm(s2, p2, u2, S2), i2 = 0), e3[n2] = new jm(p2, null, { ...t4 }, null, y2)) : e3[n2] = void 0 === r3 ? t4 : r3.cachedValue;
|
|
12797
12806
|
}
|
|
12798
12807
|
C2.pendingPrecedents = A2;
|
|
12799
12808
|
}
|
|
12800
|
-
const
|
|
12809
|
+
const N2 = S2 ? v2 : x2, T2 = S2 ? x2 : v2;
|
|
12801
12810
|
o2.node = C2, o2.colIndex = v2, o2.rowIndex = x2;
|
|
12802
12811
|
const k2 = b2.formula;
|
|
12803
12812
|
let F2, O2;
|
|
12804
12813
|
const D2 = C2.pending;
|
|
12805
12814
|
let L2 = D2;
|
|
12806
|
-
if ((A2 || C2.pendingPromise) && (L2 = true, F2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, L2 = false) : (C2.pendingPromise.cancelled = true, F2 = void 0))), void 0 === F2 && (o2.formula = k2, o2.colIndex = v2, o2.rowIndex = x2, F2 = k2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = F2 && F2.then ? F2 : null, L2 = !!O2), L2 !== D2 && (C2.pending = L2, w2 || (w2 = Cl(S2)), w2.append(
|
|
12815
|
+
if ((A2 || C2.pendingPromise) && (L2 = true, F2 = C2.cachedValue ?? null, C2.pendingPromise && (C2.pendingResolved ? (C2.pendingPromise = null, C2.pendingResolved = false, L2 = false) : (C2.pendingPromise.cancelled = true, F2 = void 0))), void 0 === F2 && (o2.formula = k2, o2.colIndex = v2, o2.rowIndex = x2, F2 = k2.evaluate(r2, void 0, C2.inputs), o2.formula = null, O2 = F2 && F2.then ? F2 : null, L2 = !!O2), L2 !== D2 && (C2.pending = L2, w2 || (w2 = Cl(S2)), w2.append(N2, T2, L2)), O2 && (F2 = C2.cachedValue ?? null, !O2.__originator)) {
|
|
12807
12816
|
O2.__originator = l2;
|
|
12808
12817
|
const t3 = C2;
|
|
12809
12818
|
mf.add(t3), t3.pendingPromise = O2, t3.pendingResolved = false, O2.then((e3) => {
|
|
@@ -12834,12 +12843,12 @@ class Qm {
|
|
|
12834
12843
|
f2.remove(W2), W2 && W2.value.getError() || (d2.insertNonOverlapping({ ...t4, value: null }), p2.delete(t4), u2.insertNonOverlapping(t4));
|
|
12835
12844
|
}
|
|
12836
12845
|
}
|
|
12837
|
-
let V2 = 1,
|
|
12838
|
-
const
|
|
12846
|
+
let V2 = 1, $2 = 1;
|
|
12847
|
+
const j2 = F2, G2 = j2?.isIRange;
|
|
12839
12848
|
let U2, J2 = F2 instanceof n.Spill;
|
|
12840
|
-
if (G2 &&
|
|
12841
|
-
V2 =
|
|
12842
|
-
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 +
|
|
12849
|
+
if (G2 && j2.size > 1) {
|
|
12850
|
+
V2 = j2.getWidth(), $2 = j2.getHeight();
|
|
12851
|
+
const t3 = { colStart: v2, rowStart: x2, colEnd: v2 + V2 - 1, rowEnd: x2 + $2 - 1 }, e3 = r2.getEntireCoords(), o3 = !c.isRangeWithinRange(t3, e3);
|
|
12843
12852
|
if (o3 && (t3.colEnd = Math.min(t3.colEnd, e3.colEnd), t3.rowEnd = Math.min(t3.rowEnd, e3.rowEnd)), J2 = o3, !J2) {
|
|
12844
12853
|
const e4 = d2.search(t3);
|
|
12845
12854
|
if (J2 = e4.length > 1, !J2 && 1 === e4.length) {
|
|
@@ -12849,15 +12858,15 @@ class Qm {
|
|
|
12849
12858
|
}
|
|
12850
12859
|
let s3, i3;
|
|
12851
12860
|
if (J2) {
|
|
12852
|
-
F2 = n.BuiltIn.Spill, V2 = 1,
|
|
12853
|
-
s3 = [[
|
|
12861
|
+
F2 = n.BuiltIn.Spill, V2 = 1, $2 = 1;
|
|
12862
|
+
s3 = [[N2, [[T2, [F2]]]]], p2.setValues(s3), i3 = { colStart: v2, rowStart: x2, colEnd: v2, rowEnd: x2 };
|
|
12854
12863
|
} else {
|
|
12855
|
-
const e4 = Km(
|
|
12864
|
+
const e4 = Km(j2, N2, T2);
|
|
12856
12865
|
e4 && (s3 = e4.tuples), s3 && p2.setValues(s3), i3 = t3;
|
|
12857
12866
|
}
|
|
12858
12867
|
U2 = { ...t3, value: new yh(t3, l2, J2) }, f2.insert(U2), E2 = Ym(E2, C2, t3), u2.insertNonOverlapping(i3), h2.insertNonOverlapping(i3), d2.insertNonOverlapping({ ...i3, value: new Eh(i3, _2) });
|
|
12859
12868
|
}
|
|
12860
|
-
(!c.isEqualRanges(W2, U2) || J2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)), V2 === B2 &&
|
|
12869
|
+
(!c.isEqualRanges(W2, U2) || J2 || H2) && (W2 && g2.insert(W2), U2 && g2.insert(U2)), V2 === B2 && $2 === P2 || (C2.state = vh, h2.insertNonOverlapping({ colStart: v2, rowStart: x2, colEnd: v2 + Math.max(V2, B2) - 1, rowEnd: x2 + Math.max($2, P2) - 1 }), a2 = false);
|
|
12861
12870
|
let q2 = F2 && F2.isFormulaError ? F2 : null;
|
|
12862
12871
|
k2.getError() && (q2 = k2.getError()), (q2 || R2 && !t2) && (q2 && !q2.equals(R2) || R2 && R2.equals(q2)), C2.cachedValue = F2, s2[i2++] = C2;
|
|
12863
12872
|
}
|
|
@@ -13090,7 +13099,7 @@ class Qm {
|
|
|
13090
13099
|
}
|
|
13091
13100
|
}
|
|
13092
13101
|
const Zm = (t2, e2, n2, r2) => {
|
|
13093
|
-
const o2 = new
|
|
13102
|
+
const o2 = new Tt.Builder(cf), s2 = Cl(r2);
|
|
13094
13103
|
t2.sort(r2 ? c.columnFirstCellComparator : c.rowFirstCellComparator);
|
|
13095
13104
|
const i2 = t2.length;
|
|
13096
13105
|
for (let e3 = 0; e3 < i2; e3++) {
|
|
@@ -13150,7 +13159,7 @@ let Ef = 0, Cf = 0;
|
|
|
13150
13159
|
const bf = new Array(df);
|
|
13151
13160
|
let vf = 0;
|
|
13152
13161
|
const xf = new Array(df), If = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Rf = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, Af = [null, null], Mf = Object.freeze({ inserts: o.EmptyArray, removes: o.EmptyArray });
|
|
13153
|
-
function
|
|
13162
|
+
function Nf(t2, e2, n2, r2) {
|
|
13154
13163
|
const o2 = t2;
|
|
13155
13164
|
if (o2?.getSplit) {
|
|
13156
13165
|
const t3 = o2.getSplit(e2, n2, r2);
|
|
@@ -13159,7 +13168,7 @@ function Tf(t2, e2, n2, r2) {
|
|
|
13159
13168
|
}
|
|
13160
13169
|
return e2;
|
|
13161
13170
|
}
|
|
13162
|
-
class
|
|
13171
|
+
class Tf {
|
|
13163
13172
|
constructor(t2, e2 = true) {
|
|
13164
13173
|
this._options = { ...Of, ...t2 }, this._getFunction = this._options.getFunction, this._isColumn = e2;
|
|
13165
13174
|
}
|
|
@@ -13167,9 +13176,9 @@ class Nf {
|
|
|
13167
13176
|
this._instanceScope = t2;
|
|
13168
13177
|
}
|
|
13169
13178
|
async _initialize() {
|
|
13170
|
-
const t2 = await
|
|
13179
|
+
const t2 = await at._validate(true), e2 = Ff();
|
|
13171
13180
|
this._calcScope = e2, this._runtime = new kf(this._options, t2);
|
|
13172
|
-
const { initializeBuiltIns: n2 } = await import("./
|
|
13181
|
+
const { initializeBuiltIns: n2 } = await import("./3oDj1dTnCbDwAhJV.mjs"), r2 = this;
|
|
13173
13182
|
return this._builtInFunctions = Object.freeze(n2(() => r2)), { builtInFunctions: this._builtInFunctions, calcScope: this._calcScope };
|
|
13174
13183
|
}
|
|
13175
13184
|
getBuiltInFunctions() {
|
|
@@ -13282,8 +13291,8 @@ class Nf {
|
|
|
13282
13291
|
}
|
|
13283
13292
|
if (l2) {
|
|
13284
13293
|
const e3 = l2.calc;
|
|
13285
|
-
i2 = e3 && e3.isIReferenceRange ? e3.cachedValue : new
|
|
13286
|
-
} else r2.dynamicPrecedentsInserts = Ym(r2.dynamicPrecedentsInserts, a2, t2), i2 = new
|
|
13294
|
+
i2 = e3 && e3.isIReferenceRange ? e3.cachedValue : new jm(s2, void 0, t2, null, o2);
|
|
13295
|
+
} else r2.dynamicPrecedentsInserts = Ym(r2.dynamicPrecedentsInserts, a2, t2), i2 = new jm(s2, void 0, t2, null, o2);
|
|
13287
13296
|
return i2;
|
|
13288
13297
|
}
|
|
13289
13298
|
getAddress(t2, e2 = false) {
|
|
@@ -13342,7 +13351,7 @@ class kf {
|
|
|
13342
13351
|
}
|
|
13343
13352
|
getVersion() {
|
|
13344
13353
|
try {
|
|
13345
|
-
const t2 = "0.6.
|
|
13354
|
+
const t2 = "0.6.12";
|
|
13346
13355
|
if (-1 === t2.indexOf(".env.")) return `${t2}`;
|
|
13347
13356
|
} catch (t2) {
|
|
13348
13357
|
return "local";
|
|
@@ -13447,12 +13456,12 @@ class Pf {
|
|
|
13447
13456
|
const zf = new Pf(), Wf = "__SHEETXL";
|
|
13448
13457
|
let Hf;
|
|
13449
13458
|
const Vf = { FormulaContext: Hf, ScalarType: t, IRange: e, FormulaError: n, Observable: r };
|
|
13450
|
-
let
|
|
13451
|
-
function
|
|
13452
|
-
Hf || (Hf = zf, Vf.FormulaContext = Hf),
|
|
13459
|
+
let $f;
|
|
13460
|
+
function jf(t2) {
|
|
13461
|
+
Hf || (Hf = zf, Vf.FormulaContext = Hf), $f = globalThis[Wf], globalThis[Wf] = Vf, Hf._setScope(t2);
|
|
13453
13462
|
}
|
|
13454
13463
|
function Gf() {
|
|
13455
|
-
|
|
13464
|
+
$f ? (globalThis[Wf] = $f, $f = void 0) : delete globalThis[Wf], Hf && Hf._setScope(null);
|
|
13456
13465
|
}
|
|
13457
13466
|
var Uf;
|
|
13458
13467
|
(Uf || (Uf = {})).Context = { Workbook: "workbook", Sheet: "sheet", Ranges: "ranges", Range: "range", Calculation: "calculation" };
|
|
@@ -13469,7 +13478,7 @@ class Jf {
|
|
|
13469
13478
|
}
|
|
13470
13479
|
execute(...e2) {
|
|
13471
13480
|
const r2 = this._pj, o2 = [], s2 = this._cf?.();
|
|
13472
|
-
|
|
13481
|
+
jf(s2);
|
|
13473
13482
|
let i2 = false, a2 = null;
|
|
13474
13483
|
const l2 = r2?.length ?? 0;
|
|
13475
13484
|
let c2, h2 = this._broadcast;
|
|
@@ -13882,11 +13891,11 @@ class op extends Xi {
|
|
|
13882
13891
|
return this._statusTransition || (this._statusTransition = (async () => {
|
|
13883
13892
|
if (this._status === Vm.Status.Off) try {
|
|
13884
13893
|
this._status = Vm.Status.Starting, this._emitter.notify("onStatusChange"), this._emitter.notify("onStarting");
|
|
13885
|
-
const t2 = this, e2 = this._options, n2 = (n3) => t2.getFunctions().getByName(n3) ?? e2?.getFunction?.(n3), r2 = new
|
|
13894
|
+
const t2 = this, e2 = this._options, n2 = (n3) => t2.getFunctions().getByName(n3) ?? e2?.getFunction?.(n3), r2 = new Tf({ ...e2, getFunction: n2 });
|
|
13886
13895
|
this._context = r2;
|
|
13887
13896
|
const o2 = await r2._initialize(), s2 = o2.builtInFunctions;
|
|
13888
13897
|
this._functions = new rp({ transactions: this._transactions, context: r2, readonlyFunctions: s2 });
|
|
13889
|
-
const i2 = await import("./
|
|
13898
|
+
const i2 = await import("./MqFLkY02HqE70XzV.mjs");
|
|
13890
13899
|
this._formulaParser = new i2.FormulaParser(), this._scope = o2.calcScope, this._status = Vm.Status.Ready, this._emitter.notify("onStatusChange"), this._emitter.notify("onReady");
|
|
13891
13900
|
} catch (t2) {
|
|
13892
13901
|
throw this._status = Vm.Status.Off, this._emitter.notify("onError", t2), this._emitter.notify("onStatusChange"), t2;
|
|
@@ -14016,9 +14025,9 @@ class mp {
|
|
|
14016
14025
|
const o2 = n2(r2);
|
|
14017
14026
|
if ("userset" !== o2.msoHeightSource) return;
|
|
14018
14027
|
let s2 = r2.getAttribute("height") ?? o2.height, i2 = null;
|
|
14019
|
-
if (s2 && (i2 =
|
|
14028
|
+
if (s2 && (i2 = jd(s2, this._styles.getNormal().getFont().getSize(), "px")), null === i2) for (let t3 = 0; t3 < r2.cells.length; t3++) {
|
|
14020
14029
|
const e3 = r2.cells[t3], o3 = e3.getAttribute("height") ?? n2(e3).height;
|
|
14021
|
-
let s3 =
|
|
14030
|
+
let s3 = jd(o3, this._styles.getNormal().getFont().getSize(), "px");
|
|
14022
14031
|
null !== s3 && (i2 = Math.max(s3, i2 ?? 0));
|
|
14023
14032
|
}
|
|
14024
14033
|
null !== i2 && this._rowsReading.push({ address: { min: this._topLeft.rowIndex + t2, max: this._topLeft.rowIndex + t2 + e2 - 1 }, update: { size: i2 * qo.getDeviceScale() } });
|
|
@@ -14027,7 +14036,7 @@ class mp {
|
|
|
14027
14036
|
const o2 = n2(r2);
|
|
14028
14037
|
if ("userset" !== o2.msoWidthSource) return;
|
|
14029
14038
|
let s2 = r2.getAttribute("width") ?? o2.width, i2 = null;
|
|
14030
|
-
s2 && (i2 =
|
|
14039
|
+
s2 && (i2 = jd(s2, this._styles.getNormal().getFont().getSize(), "px")), null !== i2 && this._colsReading.push({ address: { min: this._topLeft.colIndex + t2, max: this._topLeft.colIndex + t2 + e2 - 1 }, update: { size: i2 * qo.getDeviceScale() } });
|
|
14031
14040
|
}
|
|
14032
14041
|
onDone() {
|
|
14033
14042
|
this._colsReading.length > 0 && this._sheet.getColumnHeaders().updateHeaderPairs(this._colsReading), this._rowsReading.length > 0 && this._sheet.getRowHeaders().updateHeaderPairs(this._rowsReading), this._sheet.doBatch(() => {
|
|
@@ -14695,7 +14704,7 @@ class Ip extends Yi {
|
|
|
14695
14704
|
t2 && t2.removeListener?.(), super._processDelete();
|
|
14696
14705
|
}
|
|
14697
14706
|
}
|
|
14698
|
-
const Rp = "Item must be specified.", Ap = "Name must be a non-empty string", Mp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`,
|
|
14707
|
+
const Rp = "Item must be specified.", Ap = "Name must be a non-empty string", Mp = (t2, e2 = null) => `Named item '${t2}' already exists${e2 ? `in scope ${e2}` : ""}.`, Np = (t2) => {
|
|
14699
14708
|
const e2 = [];
|
|
14700
14709
|
for (let n2 = 0; n2 < t2.getCount(); n2++) {
|
|
14701
14710
|
let r2 = null;
|
|
@@ -14707,7 +14716,7 @@ const Rp = "Item must be specified.", Ap = "Name must be a non-empty string", Mp
|
|
|
14707
14716
|
e2.push(r2 ? r2.toString().toLowerCase() : Rc);
|
|
14708
14717
|
}
|
|
14709
14718
|
return e2.sort(), e2.join(",");
|
|
14710
|
-
},
|
|
14719
|
+
}, Tp = /^[^a-zA-Z_\\]+$/, kp = /^[^a-zA-Z0-9_.]+$/;
|
|
14711
14720
|
class Fp {
|
|
14712
14721
|
constructor(t2) {
|
|
14713
14722
|
this._emitter = null, this._closed = false, this._lastLookup = o.EmptyArray, this._lastLookupAddress = null, this._lastLookupScope = null, this._lastLookupType = null, this._allowExtrudes = false, this._options = { ...t2 };
|
|
@@ -14771,7 +14780,7 @@ class Fp {
|
|
|
14771
14780
|
const n2 = this._getState();
|
|
14772
14781
|
if (!n2) return null;
|
|
14773
14782
|
if (0 === n2.itemsByKey.size) return null;
|
|
14774
|
-
const r2 =
|
|
14783
|
+
const r2 = Np(e2), o2 = n2.itemsByFullRange.get(r2);
|
|
14775
14784
|
if (!o2) return null;
|
|
14776
14785
|
const s2 = [];
|
|
14777
14786
|
return o2.forEach((t3) => {
|
|
@@ -14825,7 +14834,7 @@ class Fp {
|
|
|
14825
14834
|
if (t2.length > 255) throw new Error("Name must not exceed 255 characters.");
|
|
14826
14835
|
if (-1 !== t2.indexOf(" ")) throw new Error("Name must not contain any spaces.");
|
|
14827
14836
|
const r2 = t2.trim().toLowerCase(), o2 = r2.substring(1, t2.length - 1);
|
|
14828
|
-
if (new RegExp(
|
|
14837
|
+
if (new RegExp(Tp).test(r2[0])) throw new Error("First letter must be either a letter, an underscore, or a backslash.");
|
|
14829
14838
|
if (new RegExp(kp).test(o2)) throw new Error("Name must be either letters, numbers, periods or underscores.");
|
|
14830
14839
|
if (1 === r2.length && ("r" === r2[0] || "c" === r2[0])) throw new Error("Name can not be 'r' or 'c'.");
|
|
14831
14840
|
if (((t3, e3 = Mc, n3 = Ac, r3 = false) => {
|
|
@@ -14927,7 +14936,7 @@ class Fp {
|
|
|
14927
14936
|
const i2 = this._toKey(e2);
|
|
14928
14937
|
if (o2) {
|
|
14929
14938
|
const { asFullRange: a3, asPartialRanges: l3, asRanges: c3 } = ((t4) => {
|
|
14930
|
-
const e3 = t4.getCoords(), n3 =
|
|
14939
|
+
const e3 = t4.getCoords(), n3 = Np(t4), r4 = n3.split(",");
|
|
14931
14940
|
return { asFullRange: n3, asPartialRanges: r4, asRanges: e3 };
|
|
14932
14941
|
})(o2);
|
|
14933
14942
|
if (r3 = a3, s2 = l3, c3) {
|
|
@@ -15160,7 +15169,7 @@ const zp = (t2, n2, r2) => {
|
|
|
15160
15169
|
if (0 === e2) return o2;
|
|
15161
15170
|
s2 ? o2 += e2 : o2 -= e2;
|
|
15162
15171
|
}
|
|
15163
|
-
}, Wp = Object.freeze({ colIndex: 0, rowIndex: 0 }), Hp = Object.freeze([]), Vp = Object.freeze({ cell: c.EmptyCell, ranges: Hp, rangeIndex: -1 }),
|
|
15172
|
+
}, Wp = Object.freeze({ colIndex: 0, rowIndex: 0 }), Hp = Object.freeze([]), Vp = Object.freeze({ cell: c.EmptyCell, ranges: Hp, rangeIndex: -1 }), $p = (t2, n2 = e.Direction.Right, r2, o2, s2, i2 = null) => {
|
|
15164
15173
|
if (i2 && c.isEqualSelectionCoords(i2, t2)) return t2;
|
|
15165
15174
|
const a2 = t2.ranges[t2.rangeIndex];
|
|
15166
15175
|
if (!c.isRangesIntersect({ rowStart: t2.cell.rowIndex, colStart: t2.cell.colIndex, rowEnd: t2.cell.rowIndex, colEnd: t2.cell.colIndex }, a2)) return t2;
|
|
@@ -15230,11 +15239,11 @@ const zp = (t2, n2, r2) => {
|
|
|
15230
15239
|
case e.Direction.Up:
|
|
15231
15240
|
t2.ranges[h2].rowStart === g2.rowStart && t2.ranges[h2].rowEnd === g2.rowEnd && (l2.colIndex = g2.colStart), l2.colIndex === g2.colStart ? l2.rowIndex = g2.rowStart + 1 : l2.rowIndex = g2.rowStart;
|
|
15232
15241
|
}
|
|
15233
|
-
return i2 && console.warn("call recursive > 1"),
|
|
15242
|
+
return i2 && console.warn("call recursive > 1"), $p({ cell: l2, ranges: t2.ranges, rangeIndex: h2 }, n2, r2, o2, s2, i2 ?? t2);
|
|
15234
15243
|
}
|
|
15235
15244
|
return { ranges: t2.ranges, cell: l2, rangeIndex: h2 };
|
|
15236
15245
|
};
|
|
15237
|
-
class
|
|
15246
|
+
class jp {
|
|
15238
15247
|
constructor(t2) {
|
|
15239
15248
|
this._adjusting = null, this._emitter = null, this._coords = Vp, this._sheet = t2.sheet, this._emitter = new Ki(this);
|
|
15240
15249
|
const n2 = t2.sheet;
|
|
@@ -15391,7 +15400,7 @@ class $p {
|
|
|
15391
15400
|
if (0 === o2.ranges.length) return this.navigate(r2);
|
|
15392
15401
|
const s2 = this._getCellCoordsAsRangeCoords(o2.cell);
|
|
15393
15402
|
if (c.isEqualRangesArrays([s2], o2.ranges)) return this.navigate(r2);
|
|
15394
|
-
const i2 =
|
|
15403
|
+
const i2 = $p(o2, r2, this._getCellCoordsAsRangeCoords.bind(this), this._hiddenRowsAt.bind(this), this._hiddenColumnsAt.bind(this));
|
|
15395
15404
|
this.updateCoords(i2);
|
|
15396
15405
|
}
|
|
15397
15406
|
clear() {
|
|
@@ -15864,7 +15873,7 @@ const o_ = (t2, e2, n2, r2) => {
|
|
|
15864
15873
|
const e3 = void 0 === n2?.sz ? t2.getDefaultSize() : n2?.sz * t2.getScaleFactor();
|
|
15865
15874
|
c2 = c2?.(e3);
|
|
15866
15875
|
}
|
|
15867
|
-
if ("string" == typeof c2 && (c2 =
|
|
15876
|
+
if ("string" == typeof c2 && (c2 = jd(c2, e2.getNormal().getFont().getSize(), "px")), "number" == typeof c2) {
|
|
15868
15877
|
const e3 = t2.getMinSize(), n3 = t2.getMaxSize();
|
|
15869
15878
|
if (c2 = Math.max(e3, Math.min(o.roundAccurately(c2, e3), n3)), true !== s2.relativeSize) {
|
|
15870
15879
|
c2 /= t2.getScaleFactor();
|
|
@@ -16005,15 +16014,15 @@ class h_ {
|
|
|
16005
16014
|
const i2 = o2?.min ?? null, a2 = o2?.max ?? null, l2 = s2?.includeEmpty ?? false, c2 = s2?.includeStyles ?? false, h2 = s2?.excludeHidden ?? false, d2 = s2?.includeSizes ?? false, u2 = this, g2 = this._options.sheet.getStyles().getNormal(), m2 = this._defaultSize, f2 = this._scaleFactor, p2 = this._emptyHeader;
|
|
16006
16015
|
let _2;
|
|
16007
16016
|
const S2 = { getCoords() {
|
|
16008
|
-
if (!_2) throw new Error(
|
|
16017
|
+
if (!_2) throw new Error($h);
|
|
16009
16018
|
return { min: _2.min, max: _2.max };
|
|
16010
16019
|
}, getIndex: () => _2.min, getCellHeader() {
|
|
16011
|
-
if (!_2) throw new Error(
|
|
16020
|
+
if (!_2) throw new Error($h);
|
|
16012
16021
|
return _2.value ? n2(u2, _2.value) : p2;
|
|
16013
16022
|
}, getA1(t3) {
|
|
16014
|
-
if (!_2) throw new Error(
|
|
16023
|
+
if (!_2) throw new Error($h);
|
|
16015
16024
|
return this._parseHeaderRangeAddress({ min: i2 + t3, end: i2 + t3 }) ?? _2;
|
|
16016
|
-
} }, w2 =
|
|
16025
|
+
} }, w2 = Ns(e2, (e3) => {
|
|
16017
16026
|
const n3 = e3.value;
|
|
16018
16027
|
if (!l2 && !n3) return;
|
|
16019
16028
|
let r3 = l2;
|
|
@@ -16042,7 +16051,7 @@ class h_ {
|
|
|
16042
16051
|
if (l2 && l2.break) return l2.break;
|
|
16043
16052
|
}, s2 = () => {
|
|
16044
16053
|
const t3 = n2._isColumn ? { colStart: r2.min, colEnd: r2.max } : { rowStart: r2.min, rowEnd: r2.max };
|
|
16045
|
-
return
|
|
16054
|
+
return $c(t3, n2._maxRangeCoords) ?? Rc;
|
|
16046
16055
|
}, i2 = { getCoords: () => r2, getA1: s2, toString: s2, forEach: (t3, e3) => {
|
|
16047
16056
|
let n3 = Number.MAX_SAFE_INTEGER, s3 = null;
|
|
16048
16057
|
const i3 = { getIndex: () => n3, getCellHeader: () => s3.getCellHeader(), getA1: (t4) => s3.getA1(t4), getCoords: () => s3.getCoords() };
|
|
@@ -16053,7 +16062,7 @@ class h_ {
|
|
|
16053
16062
|
}, forEachSpan: (t3, e3) => o2(t3, e3, this._headers), forEachVisibleSpan: (t3, e3) => {
|
|
16054
16063
|
const n3 = r2?.min ?? null, o3 = r2?.max ?? null;
|
|
16055
16064
|
let s3;
|
|
16056
|
-
if (s3 = e3?.includeHidden ? t3(n3, o3) :
|
|
16065
|
+
if (s3 = e3?.includeHidden ? t3(n3, o3) : Ns(this._indexedHidden, (e4) => {
|
|
16057
16066
|
if (e4.value) return;
|
|
16058
16067
|
const n4 = t3(e4.min, e4.max);
|
|
16059
16068
|
return n4 && n4.break ? n4 : void 0;
|
|
@@ -16562,7 +16571,7 @@ class p_ {
|
|
|
16562
16571
|
const o2 = () => {
|
|
16563
16572
|
if (r2) return r2;
|
|
16564
16573
|
const t3 = n2.sheet, o3 = n2.isRanges, s3 = n2.coords;
|
|
16565
|
-
return e2 || !s3 || 0 === s3.length ?
|
|
16574
|
+
return e2 || !s3 || 0 === s3.length ? $g(t3, t3.getEntireRange().getCoords(), null, e2) : o3 ? (r2 = t3.getRanges(n2.coords), r2) : (r2 = t3.getRange(n2.coords[0]), r2);
|
|
16566
16575
|
}, s2 = t2.trigger;
|
|
16567
16576
|
return { getSource: o2, trigger: s2, isTransactional: t2.isTransactional ?? true, toString: () => `SheetRangeEvent: ('${s2}', ${o2().toString()})`, timeStamp: t2.timeStamp ?? Date.now() };
|
|
16568
16577
|
}
|
|
@@ -16782,7 +16791,7 @@ class y_ {
|
|
|
16782
16791
|
}
|
|
16783
16792
|
}
|
|
16784
16793
|
async function E_() {
|
|
16785
|
-
const { getCrypto: t2 } = await import("./
|
|
16794
|
+
const { getCrypto: t2 } = await import("./DZKV8YMKiYEpXnE1.mjs");
|
|
16786
16795
|
return t2();
|
|
16787
16796
|
}
|
|
16788
16797
|
const C_ = async (t2, e2, ...n2) => {
|
|
@@ -17003,7 +17012,7 @@ class M_ {
|
|
|
17003
17012
|
}
|
|
17004
17013
|
_createRange(t2, e2) {
|
|
17005
17014
|
let n2 = this._options;
|
|
17006
|
-
return e2 && (n2 = { ...this._options, getOptions: Qg(this._options?.getOptions, e2) }), new
|
|
17015
|
+
return e2 && (n2 = { ...this._options, getOptions: Qg(this._options?.getOptions, e2) }), new N_(t2, this._sheet, n2);
|
|
17007
17016
|
}
|
|
17008
17017
|
_validateWrite() {
|
|
17009
17018
|
const t2 = this._readOnly;
|
|
@@ -17123,10 +17132,10 @@ class M_ {
|
|
|
17123
17132
|
return this._sheet._getSnapshot(this.getCoords(), t2);
|
|
17124
17133
|
}
|
|
17125
17134
|
getEntireRows(t2, n2) {
|
|
17126
|
-
return this._createRanges(
|
|
17135
|
+
return this._createRanges(Ng(this.getCoords(), this._sheet._entireCoords, e.Orientation.Column, t2), n2);
|
|
17127
17136
|
}
|
|
17128
17137
|
getEntireColumns(t2, n2) {
|
|
17129
|
-
return this._createRanges(
|
|
17138
|
+
return this._createRanges(Ng(this.getCoords(), this._sheet._entireCoords, e.Orientation.Row, t2), n2);
|
|
17130
17139
|
}
|
|
17131
17140
|
getDefaultShiftOrientation() {
|
|
17132
17141
|
return this._sheet._getDefaultShiftOrientation(this.getCoords()[0]);
|
|
@@ -17147,13 +17156,13 @@ class M_ {
|
|
|
17147
17156
|
return Fg(this.getCoords(), e.Orientation.Column);
|
|
17148
17157
|
}
|
|
17149
17158
|
isEntireRowsAny() {
|
|
17150
|
-
return
|
|
17159
|
+
return Tg(this.getCoords(), this._sheet._entireCoords, false);
|
|
17151
17160
|
}
|
|
17152
17161
|
isEntireColumnsAny() {
|
|
17153
17162
|
return kg(this.getCoords(), this._sheet._entireCoords, false);
|
|
17154
17163
|
}
|
|
17155
17164
|
isEntireRows() {
|
|
17156
|
-
return
|
|
17165
|
+
return Tg(this.getCoords(), this._sheet._entireCoords, true);
|
|
17157
17166
|
}
|
|
17158
17167
|
isEntireColumns() {
|
|
17159
17168
|
return kg(this.getCoords(), this._sheet._entireCoords, true);
|
|
@@ -17173,7 +17182,7 @@ class M_ {
|
|
|
17173
17182
|
return false;
|
|
17174
17183
|
}
|
|
17175
17184
|
getA1() {
|
|
17176
|
-
return Kc(this.getCoords(), this._sheet._entireCoords,
|
|
17185
|
+
return Kc(this.getCoords(), this._sheet._entireCoords, $c, Pc);
|
|
17177
17186
|
}
|
|
17178
17187
|
getSheet() {
|
|
17179
17188
|
return this._sheet;
|
|
@@ -17191,7 +17200,7 @@ class M_ {
|
|
|
17191
17200
|
return true;
|
|
17192
17201
|
}
|
|
17193
17202
|
}
|
|
17194
|
-
class
|
|
17203
|
+
class N_ {
|
|
17195
17204
|
constructor(t2, e2, n2) {
|
|
17196
17205
|
this._coords = Object.freeze(t2), this._sheet = e2, this._readOnly = n2?.readOnly ?? null;
|
|
17197
17206
|
}
|
|
@@ -17200,10 +17209,10 @@ class T_ {
|
|
|
17200
17209
|
}
|
|
17201
17210
|
_createRange(t2, e2) {
|
|
17202
17211
|
const n2 = this._sheet;
|
|
17203
|
-
if (!t2) return
|
|
17204
|
-
if (n2._validateCoords(t2), n2._closed) return
|
|
17212
|
+
if (!t2) return $g(n2, n2._entireCoords);
|
|
17213
|
+
if (n2._validateCoords(t2), n2._closed) return $g(null, n2._entireCoords, t2);
|
|
17205
17214
|
let r2 = this._options;
|
|
17206
|
-
return e2 && (r2 = { ...this._options, getOptions: Qg(this._options?.getOptions, e2) }), new
|
|
17215
|
+
return e2 && (r2 = { ...this._options, getOptions: Qg(this._options?.getOptions, e2) }), new N_(t2, this._sheet, r2);
|
|
17207
17216
|
}
|
|
17208
17217
|
_createRanges(t2, e2) {
|
|
17209
17218
|
let n2 = this._options;
|
|
@@ -17273,7 +17282,7 @@ class T_ {
|
|
|
17273
17282
|
const o2 = this.getCoords();
|
|
17274
17283
|
r2 || (r2 = o2);
|
|
17275
17284
|
const s2 = this._sheet, i2 = s2._isDataColumn, a2 = { majorStart: i2 ? o2.colStart : o2.rowStart, majorEnd: i2 ? o2.colEnd : o2.rowEnd, minorStart: i2 ? o2.rowStart : o2.colStart, minorEnd: i2 ? o2.rowEnd : o2.colEnd }, l2 = (n2?.orientation ?? e.Orientation.Row) === e.Orientation.Column !== i2, h2 = Sl(Array.isArray(t2) ? t2 : [[t2]], l2, a2);
|
|
17276
|
-
return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${
|
|
17285
|
+
return s2._updateTuples(h2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Cell" : "Range"} ${$c(r2, s2._entireCoords)}`, ...n2 }, null, { isCell: true }), this;
|
|
17277
17286
|
}
|
|
17278
17287
|
setValues(t2, e2) {
|
|
17279
17288
|
if (!Array.isArray(t2)) throw new Error("'setValues' expects a 2d array; when working with a single value use 'setValue'.");
|
|
@@ -17300,7 +17309,7 @@ class T_ {
|
|
|
17300
17309
|
}
|
|
17301
17310
|
const h2 = { majorStart: i2 ? r2.colStart : r2.rowStart, majorEnd: i2 ? r2.colEnd : r2.rowEnd, minorStart: i2 ? r2.rowStart : r2.colStart, minorEnd: i2 ? r2.rowEnd : r2.colEnd }, d2 = a2 !== i2;
|
|
17302
17311
|
let u2 = null;
|
|
17303
|
-
return u2 = l2 ? Sl(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : _l(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${
|
|
17312
|
+
return u2 = l2 ? Sl(Array.isArray(t2) ? t2 : [[t2]], d2, h2) : _l(t2, h2, i2), s2._updateTuples(u2, { description: n2?.description ?? `Set ${c.isSingleCell(r2) ? "Value" : "Values"} ${$c(r2, s2._entireCoords)}`, ...n2 }), o2;
|
|
17304
17313
|
}
|
|
17305
17314
|
getValues(t2) {
|
|
17306
17315
|
this._validateMaxSize(t2?.maxSize);
|
|
@@ -17372,11 +17381,11 @@ class T_ {
|
|
|
17372
17381
|
}
|
|
17373
17382
|
getEntireRows(t2, n2) {
|
|
17374
17383
|
const r2 = this._sheet;
|
|
17375
|
-
return this._createRange(
|
|
17384
|
+
return this._createRange(Ng([this.getCoords()], r2._entireCoords, e.Orientation.Column, t2)[0], n2);
|
|
17376
17385
|
}
|
|
17377
17386
|
getEntireColumns(t2, n2) {
|
|
17378
17387
|
const r2 = this._sheet;
|
|
17379
|
-
return this._createRange(
|
|
17388
|
+
return this._createRange(Ng([this.getCoords()], r2._entireCoords, e.Orientation.Row, t2)[0], n2);
|
|
17380
17389
|
}
|
|
17381
17390
|
getRowHeaders(t2) {
|
|
17382
17391
|
const e2 = this.getCoords();
|
|
@@ -17461,7 +17470,7 @@ class T_ {
|
|
|
17461
17470
|
}
|
|
17462
17471
|
isEntireRows() {
|
|
17463
17472
|
const t2 = this._sheet;
|
|
17464
|
-
return
|
|
17473
|
+
return Tg([this.getCoords()], t2._entireCoords, true);
|
|
17465
17474
|
}
|
|
17466
17475
|
isEntireColumns() {
|
|
17467
17476
|
const t2 = this._sheet;
|
|
@@ -17469,7 +17478,7 @@ class T_ {
|
|
|
17469
17478
|
}
|
|
17470
17479
|
isEntireRange() {
|
|
17471
17480
|
const t2 = this.getCoords(), e2 = this._sheet;
|
|
17472
|
-
return kg([t2], e2._entireCoords, true) &&
|
|
17481
|
+
return kg([t2], e2._entireCoords, true) && Tg([t2], e2._entireCoords, true);
|
|
17473
17482
|
}
|
|
17474
17483
|
getWidth() {
|
|
17475
17484
|
const t2 = this._coords;
|
|
@@ -17580,20 +17589,20 @@ class T_ {
|
|
|
17580
17589
|
}
|
|
17581
17590
|
getA1() {
|
|
17582
17591
|
const t2 = this._sheet;
|
|
17583
|
-
return
|
|
17592
|
+
return $c(this.getCoords(), t2._entireCoords);
|
|
17584
17593
|
}
|
|
17585
17594
|
get [Symbol.toStringTag]() {
|
|
17586
17595
|
return "[SheetRange]";
|
|
17587
17596
|
}
|
|
17588
17597
|
toString() {
|
|
17589
17598
|
const t2 = this._sheet;
|
|
17590
|
-
return
|
|
17599
|
+
return $c(this.getCoords(), t2._entireCoords);
|
|
17591
17600
|
}
|
|
17592
17601
|
get isICellRange() {
|
|
17593
17602
|
return true;
|
|
17594
17603
|
}
|
|
17595
17604
|
}
|
|
17596
|
-
const
|
|
17605
|
+
const T_ = Math.pow(2, 14), k_ = Math.pow(2, 20), F_ = (t2) => `${t2}`, O_ = (t2) => Dc(t2), D_ = (t2) => `${t2 + 1}`;
|
|
17597
17606
|
let L_ = 0;
|
|
17598
17607
|
const B_ = () => [];
|
|
17599
17608
|
let P_ = 0;
|
|
@@ -17601,10 +17610,10 @@ class z_ {
|
|
|
17601
17610
|
constructor(t2) {
|
|
17602
17611
|
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;
|
|
17603
17612
|
const e2 = Object.freeze({ ...t2 });
|
|
17604
|
-
|
|
17613
|
+
at._validate(true), this._transactions = e2.transactions ?? new k(), this._ownTransactions = !e2.transactions;
|
|
17605
17614
|
const n2 = this._beginCommit({ description: "New Sheet" }), r2 = this;
|
|
17606
17615
|
try {
|
|
17607
|
-
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ??
|
|
17616
|
+
this._entireCoords = Object.freeze({ colStart: 0, rowStart: 0, colEnd: (e2.maxColumns ?? T_) - 1, rowEnd: (e2.maxRows ?? k_) - 1 }), this._strings = e2.strings ?? new Wm(), this._ownStrings = !e2.strings;
|
|
17608
17617
|
const t3 = e2.styles ?? new Fm();
|
|
17609
17618
|
this._styles = t3, this._ownStyles = !e2.styles, this._names = e2.names ?? new Fp({ addressToRanges: (t4) => r2.getRanges(t4), getCurrentScope: () => r2.getName(), isReadOnly: () => r2._options.readonly ?? false, transactions: r2._transactions }), this._ownNames = !e2.names, this._namesRemoveListener = this._names.addListeners({ onCollectionChange: (t4) => {
|
|
17610
17619
|
r2._calculateFull();
|
|
@@ -17649,11 +17658,11 @@ class z_ {
|
|
|
17649
17658
|
this._initializing = false;
|
|
17650
17659
|
}
|
|
17651
17660
|
_createRange(t2, e2, n2 = null) {
|
|
17652
|
-
if (!t2) return
|
|
17653
|
-
if (this._validateCoords(t2), this._closed) return
|
|
17661
|
+
if (!t2) return $g(this, this._entireCoords);
|
|
17662
|
+
if (this._validateCoords(t2), this._closed) return $g(null, this._entireCoords, t2);
|
|
17654
17663
|
null === n2 && this._options.readonly && (n2 = "Readonly sheet");
|
|
17655
17664
|
let r2 = null;
|
|
17656
|
-
return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new
|
|
17665
|
+
return (e2 || n2) && (r2 = { getOptions: e2, readOnly: n2 }), new N_(((t3) => {
|
|
17657
17666
|
if (!t3) return null;
|
|
17658
17667
|
const e3 = { colStart: t3.colIndex ?? t3.colStart ?? 0, rowStart: t3.rowIndex ?? t3.rowStart ?? 0, colEnd: t3.colIndex ?? t3.colEnd ?? 0, rowEnd: t3.rowIndex ?? t3.rowEnd ?? 0 };
|
|
17659
17668
|
return (t3.$colStart || t3.$colIndex) && (e3.$colStart = true), (t3.$colEnd || t3.$colIndex) && (e3.$colEnd = true), (t3.$rowStart || t3.$rowIndex) && (e3.$rowStart = true), (t3.$rowEnd || t3.$rowIndex) && (e3.$rowEnd = true), e3;
|
|
@@ -17745,7 +17754,7 @@ class z_ {
|
|
|
17745
17754
|
const e3 = s2.getNames()?.getByName(t3);
|
|
17746
17755
|
if (e3) return e3.getRanges().getCoords();
|
|
17747
17756
|
const n3 = this._options.resolveRange?.(t3);
|
|
17748
|
-
if (n3 && n3.getSheet() === s2) return console.warn(
|
|
17757
|
+
if (n3 && n3.getSheet() === s2) return console.warn(jh), [n3.getCoords()];
|
|
17749
17758
|
throw new Error(`Invalid sheet reference '${t3}'.`);
|
|
17750
17759
|
}
|
|
17751
17760
|
}), a2 = i2.length;
|
|
@@ -17754,7 +17763,7 @@ class z_ {
|
|
|
17754
17763
|
if (e3) {
|
|
17755
17764
|
if (r2) {
|
|
17756
17765
|
const t4 = e3.sheetName;
|
|
17757
|
-
if (t4 && t4 !== this.getName()) throw new Error(
|
|
17766
|
+
if (t4 && t4 !== this.getName()) throw new Error(jh);
|
|
17758
17767
|
}
|
|
17759
17768
|
this._validateCoords(e3);
|
|
17760
17769
|
}
|
|
@@ -17878,7 +17887,7 @@ class z_ {
|
|
|
17878
17887
|
if (!o2 || !n2) return null;
|
|
17879
17888
|
let s2 = this._entireCoords;
|
|
17880
17889
|
r2 && (s2 = { colStart: Math.max(s2.colStart - r2, s2.colStart), rowStart: s2.rowStart, colEnd: Math.min(s2.colEnd + r2, s2.colEnd), rowEnd: s2.rowEnd });
|
|
17881
|
-
const i2 = { rowStart: n2.rowStart, colStart: s2.colStart, rowEnd: n2.rowEnd, colEnd: s2.colEnd }, a2 = { bounds: i2, includeRangeTypes:
|
|
17890
|
+
const i2 = { rowStart: n2.rowStart, colStart: s2.colStart, rowEnd: n2.rowEnd, colEnd: s2.colEnd }, a2 = { bounds: i2, includeRangeTypes: Th, orientation: e.Orientation.Row, excludeHidden: true, byCell: false }, l2 = n2.colStart, h2 = n2.colEnd;
|
|
17882
17891
|
let d2, u2, g2 = -1;
|
|
17883
17892
|
const m2 = (t2, e2) => {
|
|
17884
17893
|
let n3 = t2.next();
|
|
@@ -17950,14 +17959,14 @@ class z_ {
|
|
|
17950
17959
|
const C2 = n2?.cellValuesGrid ?? null;
|
|
17951
17960
|
let b2 = C2 ? C2.entries(l2) : sa, v2 = b2.next(), x2 = null, I2 = null, R2 = null;
|
|
17952
17961
|
v2.done || (x2 = v2.value[0], I2 = v2.value[1]);
|
|
17953
|
-
let A2 = p2?.[y2++], M2 = f2.next(),
|
|
17954
|
-
const
|
|
17962
|
+
let A2 = p2?.[y2++], M2 = f2.next(), N2 = null;
|
|
17963
|
+
const T2 = s2 !== e.Orientation.Row;
|
|
17955
17964
|
let k2;
|
|
17956
17965
|
const F2 = c.createCellComparator(s2, i2);
|
|
17957
17966
|
let O2;
|
|
17958
17967
|
if (!M2.done) {
|
|
17959
17968
|
const t3 = M2.value;
|
|
17960
|
-
|
|
17969
|
+
N2 = t3.intersection, O2 = t3.start;
|
|
17961
17970
|
}
|
|
17962
17971
|
k2 = (t3) => {
|
|
17963
17972
|
let e2 = null, n3 = null, r3 = null, o3 = false, s3 = false, i3 = null, a3 = null, l3 = false;
|
|
@@ -17969,25 +17978,25 @@ class z_ {
|
|
|
17969
17978
|
if (l3) e2 = { colIndex: A2.colIndex, rowIndex: A2.rowIndex }, n3 = A2.scalar, r3 = A2.intersection, A2 = p2[y2++];
|
|
17970
17979
|
else if (x2 && O2) {
|
|
17971
17980
|
const t4 = F2(x2, O2);
|
|
17972
|
-
t4 < 0 ? (e2 = x2, n3 = I2, o3 = true) : t4 > 0 ? (e2 = O2, r3 =
|
|
17981
|
+
t4 < 0 ? (e2 = x2, n3 = I2, o3 = true) : t4 > 0 ? (e2 = O2, r3 = N2, s3 = true) : (e2 = x2, n3 = I2, r3 = N2, o3 = true, s3 = true);
|
|
17973
17982
|
} else if (x2) e2 = x2, n3 = I2, o3 = true;
|
|
17974
17983
|
else {
|
|
17975
17984
|
if (!O2 || !u2) return oa;
|
|
17976
|
-
e2 = O2, r3 =
|
|
17985
|
+
e2 = O2, r3 = N2, s3 = true;
|
|
17977
17986
|
}
|
|
17978
17987
|
if (o3 && (v2 = b2.next(), v2.done ? x2 = null : (x2 = v2.value[0], I2 = v2.value[1])), s3) {
|
|
17979
17988
|
const t4 = u2 ? void 0 : x2;
|
|
17980
|
-
if (M2 = f2.next(t4), M2.done) O2 = null,
|
|
17989
|
+
if (M2 = f2.next(t4), M2.done) O2 = null, N2 = null;
|
|
17981
17990
|
else {
|
|
17982
17991
|
const t5 = M2.value;
|
|
17983
|
-
|
|
17992
|
+
N2 = t5.intersection, O2 = t5.cell;
|
|
17984
17993
|
}
|
|
17985
17994
|
}
|
|
17986
17995
|
let c2 = false;
|
|
17987
17996
|
const h3 = e2.rowIndex, d3 = e2.colIndex;
|
|
17988
|
-
|
|
17997
|
+
T2 || (c2 = h3 === R2?.rowIndex);
|
|
17989
17998
|
let g3 = false;
|
|
17990
|
-
if (
|
|
17999
|
+
if (T2 || (g3 = h3 === x2?.rowIndex), c2) i3 = R2;
|
|
17991
18000
|
else if (m2) {
|
|
17992
18001
|
let t4 = false;
|
|
17993
18002
|
for (; !t4 && E2 < w2; ) {
|
|
@@ -18040,7 +18049,7 @@ class z_ {
|
|
|
18040
18049
|
for (let n3 = 0; n3 < m2; n3++) {
|
|
18041
18050
|
const o2 = (t3, e3) => {
|
|
18042
18051
|
let n4 = null;
|
|
18043
|
-
const r3 =
|
|
18052
|
+
const r3 = ju(0, e3, () => {
|
|
18044
18053
|
if (n4) return n4;
|
|
18045
18054
|
const e4 = t3.getCoords();
|
|
18046
18055
|
return n4 = og(g2, t3, e4), n4;
|
|
@@ -18083,7 +18092,7 @@ class z_ {
|
|
|
18083
18092
|
}
|
|
18084
18093
|
_createIncrementalUpdater(t2, n2 = null, r2) {
|
|
18085
18094
|
const s2 = t2?.orientation ?? e.Orientation.Row, i2 = t2?.allowUnorderedWrites ?? false, a2 = s2 === e.Orientation.Column, l2 = this._isDataColumn, h2 = a2 !== l2, u2 = this;
|
|
18086
|
-
let g2, m2, f2, p2 = h2 ? new
|
|
18095
|
+
let g2, m2, f2, p2 = h2 ? new Tt.TransposedBuilder() : new Tt.Builder(), _2 = null;
|
|
18087
18096
|
if (n2) {
|
|
18088
18097
|
const t3 = n2.getCoords(), e2 = t3.colStart, r3 = t3.rowStart, o2 = t3.colEnd, s3 = t3.rowEnd;
|
|
18089
18098
|
_2 = (t4, n3) => {
|
|
@@ -18098,7 +18107,7 @@ class z_ {
|
|
|
18098
18107
|
let E2 = null;
|
|
18099
18108
|
return g2 = Object.freeze({ push: (t3, e2) => {
|
|
18100
18109
|
const n3 = u2._cellToCoords(t3);
|
|
18101
|
-
return w2 && (E2 && w2(n3, E2) <= 0 && (S2(y2), p2 = h2 ? new
|
|
18110
|
+
return w2 && (E2 && w2(n3, E2) <= 0 && (S2(y2), p2 = h2 ? new Tt.TransposedBuilder() : new Tt.Builder()), E2 = n3), m2(a2 ? n3.colIndex : n3.rowIndex, a2 ? n3.rowIndex : n3.colIndex, e2);
|
|
18102
18111
|
}, pushAt: m2, pushMultipleAt: f2, apply: S2 }), g2;
|
|
18103
18112
|
}
|
|
18104
18113
|
_updateTuples(t2, n2, r2 = void 0, o2 = null) {
|
|
@@ -18113,29 +18122,29 @@ class z_ {
|
|
|
18113
18122
|
let v2 = false;
|
|
18114
18123
|
m2 && this._hasRangedEntries("unlockSpatial", E2) && (b2[Rh.Type.Unlock] = false, v2 = true), this._hasRangedEntries("mergeSpatial", E2) && (b2[Rh.Type.Merge] = false, v2 = true);
|
|
18115
18124
|
const x2 = this._rangeStateIterator({ bounds: E2, orientation: g2, includeRangeTypes: b2, reuseIterator: { done: false, value: null } });
|
|
18116
|
-
let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1,
|
|
18125
|
+
let I2 = x2.next(), R2 = -1, A2 = -1, M2 = -1, N2 = -1, T2 = null;
|
|
18117
18126
|
if (!I2.done) {
|
|
18118
18127
|
const t3 = I2.value, e2 = t3.start, n3 = t3.end;
|
|
18119
|
-
R2 = u2 ? e2.colIndex : e2.rowIndex, A2 = u2 ? n3.colIndex : n3.rowIndex, M2 = u2 ? e2.rowIndex : e2.colIndex,
|
|
18128
|
+
R2 = u2 ? e2.colIndex : e2.rowIndex, A2 = u2 ? n3.colIndex : n3.rowIndex, M2 = u2 ? e2.rowIndex : e2.colIndex, N2 = u2 ? n3.rowIndex : n3.colIndex, T2 = t3.intersection;
|
|
18120
18129
|
}
|
|
18121
18130
|
let k2 = (t3, e2) => {
|
|
18122
18131
|
do {
|
|
18123
|
-
if (!
|
|
18124
|
-
if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <=
|
|
18125
|
-
if (I2 = x2.next(), I2.done)
|
|
18132
|
+
if (!T2 || t3 <= M2 && e2 < M2) return null;
|
|
18133
|
+
if (t3 >= R2 && e2 >= M2 && t3 <= A2 && e2 <= N2) return T2;
|
|
18134
|
+
if (I2 = x2.next(), I2.done) T2 = null, k2 = null, v2 = false;
|
|
18126
18135
|
else {
|
|
18127
18136
|
const t4 = I2.value;
|
|
18128
|
-
R2 = u2 ? t4.start.colIndex : t4.start.rowIndex, A2 = u2 ? t4.end.colIndex : t4.end.rowIndex, M2 = u2 ? t4.start.rowIndex : t4.start.colIndex,
|
|
18137
|
+
R2 = u2 ? t4.start.colIndex : t4.start.rowIndex, A2 = u2 ? t4.end.colIndex : t4.end.rowIndex, M2 = u2 ? t4.start.rowIndex : t4.start.colIndex, N2 = u2 ? t4.end.rowIndex : t4.end.colIndex, T2 = t4.intersection;
|
|
18129
18138
|
}
|
|
18130
|
-
} while (
|
|
18131
|
-
return
|
|
18139
|
+
} while (T2);
|
|
18140
|
+
return T2;
|
|
18132
18141
|
};
|
|
18133
18142
|
const F2 = c2.getState(this), O2 = F2.cellValuesGrid.clone(), D2 = F2.calcGraph.clone(), L2 = F2.formulaSpatial.clone(), B2 = F2.spillSpatial.clone(), P2 = F2.pendingSpatial.clone(), z2 = F2.calcErrorsSpatial.clone(), W2 = F2.contentfulSpatial.clone(), H2 = Cl(u2), V2 = Cl(u2, (t3, e2) => {
|
|
18134
18143
|
if (t3 === e2) return e2;
|
|
18135
|
-
}), j2 = Cl(u2, (t3, e2) => {
|
|
18136
|
-
if (t3 === e2) return e2;
|
|
18137
18144
|
}), $2 = Cl(u2, (t3, e2) => {
|
|
18138
18145
|
if (t3 === e2) return e2;
|
|
18146
|
+
}), j2 = Cl(u2, (t3, e2) => {
|
|
18147
|
+
if (t3 === e2) return e2;
|
|
18139
18148
|
}), G2 = [];
|
|
18140
18149
|
let U2 = null, J2 = null;
|
|
18141
18150
|
if (false !== n2?.textParser) {
|
|
@@ -18172,23 +18181,23 @@ class z_ {
|
|
|
18172
18181
|
const t4 = o3.style;
|
|
18173
18182
|
void 0 === t4 || null === t4 && !s2 || V2.append(e2, n3, t4);
|
|
18174
18183
|
const r4 = o3.hyperlink;
|
|
18175
|
-
void 0 === r4 || null === r4 && !s2 ||
|
|
18184
|
+
void 0 === r4 || null === r4 && !s2 || $2.append(e2, n3, r4);
|
|
18176
18185
|
}
|
|
18177
18186
|
const l3 = o3.formula;
|
|
18178
|
-
return void 0 === l3 || null === l3 && !s2 ||
|
|
18187
|
+
return void 0 === l3 || null === l3 && !s2 || j2.append(e2, n3, l3), a3;
|
|
18179
18188
|
};
|
|
18180
18189
|
let Z2 = -1, tt2 = -1;
|
|
18181
18190
|
try {
|
|
18182
18191
|
const t3 = a2.length;
|
|
18183
18192
|
for (let e2 = 0; e2 < t3; e2++) {
|
|
18184
18193
|
const t4 = a2[e2], n3 = t4[0];
|
|
18185
|
-
if (Z2 >= n3) throw new
|
|
18194
|
+
if (Z2 >= n3) throw new Tt.OutOfOrderError(`Duplicate or out of order major indices: {${n3}}.`);
|
|
18186
18195
|
if (Z2 = n3, tt2 = Number.MIN_SAFE_INTEGER, n3 < _2 || n3 > S2) throw new d("Provided major bounds is invalid");
|
|
18187
18196
|
const r4 = t4[1], o4 = [], i4 = r4.length;
|
|
18188
18197
|
for (let t5 = 0; t5 < i4; t5++) {
|
|
18189
18198
|
const e3 = r4[t5], i5 = e3[1], a3 = i5.length;
|
|
18190
18199
|
let l3 = e3[0], c3 = l3;
|
|
18191
|
-
if (tt2 > c3) throw new
|
|
18200
|
+
if (tt2 > c3) throw new Tt.OutOfOrderError(`Duplicate or out of order minor indices: {${c3}}.`);
|
|
18192
18201
|
if (c3 < w2 || c3 + a3 > y2 + 1) throw new d("Provided minor bounds is invalid");
|
|
18193
18202
|
let h3 = [];
|
|
18194
18203
|
for (let t6 = 0; t6 < a3; t6++) {
|
|
@@ -18219,7 +18228,7 @@ class z_ {
|
|
|
18219
18228
|
}
|
|
18220
18229
|
let i3;
|
|
18221
18230
|
q2.length > 0 && (O2.setValues(q2), i3 = { tuples: q2, bounds: l2 });
|
|
18222
|
-
let g3, m3 =
|
|
18231
|
+
let g3, m3 = j2.done();
|
|
18223
18232
|
if (m3.length > 1 && (m3 = tl(m3, e.Orientation.Column, 1)), i3 || m3.length > 0) {
|
|
18224
18233
|
const t4 = D2.setInputs(i3, m3);
|
|
18225
18234
|
g3 = this._updateFormulaSpatial(L2, t4.inserts, t4.removes, F2.directStyleSpatial);
|
|
@@ -18228,7 +18237,7 @@ class z_ {
|
|
|
18228
18237
|
for (let t4 = 0; t4 < C3; t4++) W2.insertNonOverlapping(f3[t4]);
|
|
18229
18238
|
const b3 = V2.done();
|
|
18230
18239
|
b3.length > 0 && this._updateStyles(b3), G2.length > 0 && this._merge(G2);
|
|
18231
|
-
const x3 =
|
|
18240
|
+
const x3 = $2.done();
|
|
18232
18241
|
if (x3.length > 0 && this._setHyperlinks(x3), this._updateState({ cellValuesGrid: O2, contentfulSpatial: W2, calcGraph: D2, formulaSpatial: L2, spillSpatial: B2, pendingSpatial: P2, calcErrorsSpatial: z2 }), g3 && g3.length > 0 && this._updateStyles(g3, void 0, {}, true), n2?.autoFit) {
|
|
18233
18242
|
const t4 = "boolean" == typeof n2.autoFit ? X_ : n2.autoFit;
|
|
18234
18243
|
this._autoFit([E2], t4);
|
|
@@ -18301,8 +18310,8 @@ class z_ {
|
|
|
18301
18310
|
}
|
|
18302
18311
|
if (!w2) return;
|
|
18303
18312
|
if (0 === S2.length) return;
|
|
18304
|
-
const M2 = /* @__PURE__ */ new Map(),
|
|
18305
|
-
for (let t3 = 0; t3 < k2; t3++) M2.set(
|
|
18313
|
+
const M2 = /* @__PURE__ */ new Map(), N2 = /* @__PURE__ */ new Map(), T2 = n2?.collators ?? Zi.DefaultCollators, k2 = T2.length;
|
|
18314
|
+
for (let t3 = 0; t3 < k2; t3++) M2.set(T2[t3].type, T2[t3].compare), N2.set(T2[t3].type, t3);
|
|
18306
18315
|
let F2 = null, O2 = null, D2 = null;
|
|
18307
18316
|
S2.sort((t3, e2) => {
|
|
18308
18317
|
const n3 = p2.length;
|
|
@@ -18315,14 +18324,14 @@ class z_ {
|
|
|
18315
18324
|
const h3 = o3.getType(), d2 = s3.getType();
|
|
18316
18325
|
let u3 = 0;
|
|
18317
18326
|
if (h3 !== d2) {
|
|
18318
|
-
let t4 =
|
|
18319
|
-
u3 =
|
|
18327
|
+
let t4 = N2.get(h3);
|
|
18328
|
+
u3 = N2.get(d2) - t4;
|
|
18320
18329
|
} else {
|
|
18321
18330
|
let t4 = O2;
|
|
18322
18331
|
if (F2 !== h3) {
|
|
18323
18332
|
t4 = M2.get(h3), O2 = t4, F2 = h3;
|
|
18324
|
-
let e3 =
|
|
18325
|
-
const r4 =
|
|
18333
|
+
let e3 = N2.get(d2);
|
|
18334
|
+
const r4 = T2[e3].defaultOptions;
|
|
18326
18335
|
D2 = { ...r4, ...n4.collatorOptions };
|
|
18327
18336
|
}
|
|
18328
18337
|
u3 = t4(i3, a3, D2);
|
|
@@ -18375,20 +18384,20 @@ class z_ {
|
|
|
18375
18384
|
p2.rowEnd = _2.rowEnd = t2.rowEnd + s2, p2.rowStart = t2.rowEnd + 1, E2 = 0 === w2.length ? E2 : t2.rowEnd + 1 - t2.rowStart, y2.colStart = y2.colEnd;
|
|
18376
18385
|
}
|
|
18377
18386
|
if (s2 % E2 !== 0) throw new Error(((t3) => `When filling with merged cells the amount to fill must be a multiple of the input range [${t3}].`)(E2));
|
|
18378
|
-
const C2 = i2 ? "rowIndex" : "colIndex", v2 = i2 ? "colIndex" : "rowIndex", x2 = i2 ? t2.rowEnd + 1 - t2.rowStart : t2.colEnd + 1 - t2.colStart, I2 = i2 ? t2.rowStart : t2.colStart, R2 = i2 ? t2.rowEnd : t2.colEnd, A2 = i2 ? n2.rowStart : n2.colStart, M2 = i2 ? n2.rowEnd : n2.colEnd,
|
|
18379
|
-
|
|
18380
|
-
const
|
|
18387
|
+
const C2 = i2 ? "rowIndex" : "colIndex", v2 = i2 ? "colIndex" : "rowIndex", x2 = i2 ? t2.rowEnd + 1 - t2.rowStart : t2.colEnd + 1 - t2.colStart, I2 = i2 ? t2.rowStart : t2.colStart, R2 = i2 ? t2.rowEnd : t2.colEnd, A2 = i2 ? n2.rowStart : n2.colStart, M2 = i2 ? n2.rowEnd : n2.colEnd, N2 = i2 ? o2 === e.Direction.Down : o2 === e.Direction.Right;
|
|
18388
|
+
N2 || (g2.reverse = true);
|
|
18389
|
+
const T2 = N2 ? R2 + 1 : A2, k2 = (N2 ? M2 : I2 - 1) - T2 + 1, F2 = i2 ? t2.colEnd : t2.rowEnd;
|
|
18381
18390
|
l2.push(c.unionRanges(p2, t2));
|
|
18382
18391
|
const O2 = [];
|
|
18383
18392
|
let D2 = null;
|
|
18384
18393
|
h2 || (m2 = this._beginCommit({ description: "Auto Fill", operation: { name: "autoFill", params: [t2, n2, r2] } }));
|
|
18385
|
-
const L2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !
|
|
18394
|
+
const L2 = this._cellIterator({ bounds: h2 ? y2 : t2, reverse: !N2, orientation: i2 ? e.Orientation.Column : e.Orientation.Row, includeRangeTypes: { [Rh.Type.Style]: false } });
|
|
18386
18395
|
let B2 = L2.next();
|
|
18387
18396
|
for (; !B2.done; ) {
|
|
18388
18397
|
const t3 = B2.value.context, e2 = t3.getCell(), n3 = t3.getCoords();
|
|
18389
|
-
D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex:
|
|
18398
|
+
D2?.oppositeIndex !== n3[v2] && (D2 = { oppositeIndex: n3[v2], lastIndex: N2 ? I2 - 1 : R2 + 1, values: [] }, O2.push(D2));
|
|
18390
18399
|
const r3 = n3[C2];
|
|
18391
|
-
if (
|
|
18400
|
+
if (N2) for (let t4 = D2.lastIndex + 1; t4 < r3; t4++) D2.values.push(null);
|
|
18392
18401
|
else for (let t4 = D2.lastIndex - 1; t4 > r3; t4--) D2.values.push(null);
|
|
18393
18402
|
D2.lastIndex = r3;
|
|
18394
18403
|
const o3 = e2.toDate();
|
|
@@ -18419,7 +18428,7 @@ class z_ {
|
|
|
18419
18428
|
const r3 = W2._rangeToCoords(t4);
|
|
18420
18429
|
let s3;
|
|
18421
18430
|
o2 === e.Direction.Down || o2 === e.Direction.Right ? s3 = { rowIndex: r3.rowEnd, colIndex: r3.colEnd } : o2 === e.Direction.Left ? s3 = { rowIndex: r3.rowEnd, colIndex: r3.colStart } : o2 === e.Direction.Up && (s3 = { rowIndex: r3.rowStart, colIndex: r3.colEnd });
|
|
18422
|
-
const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(
|
|
18431
|
+
const a3 = i2 ? s3.rowIndex : s3.colIndex, l3 = { value: n3(N2 ? a3 - I2 : I2 - a3 + x2 - 1) };
|
|
18423
18432
|
let c2 = null;
|
|
18424
18433
|
return c2 = d2 ? this.createTemporaryCell(l3, s3) : this.createTemporaryCell(null, s3).createTemporaryCell(l3), c2;
|
|
18425
18434
|
}), false;
|
|
@@ -18427,32 +18436,32 @@ class z_ {
|
|
|
18427
18436
|
const H2 = this._createIncrementalUpdater({ orientation: i2 ? e.Orientation.Column : e.Orientation.Row }), V2 = O2.length;
|
|
18428
18437
|
O2.sort((t3, e2) => t3.oppositeIndex - e2.oppositeIndex);
|
|
18429
18438
|
for (let t3 = 0; t3 < V2; t3++) {
|
|
18430
|
-
const e2 = t3, n3 = z2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 =
|
|
18439
|
+
const e2 = t3, n3 = z2(u2, O2[e2].values), r3 = O2[e2].oppositeIndex, o3 = N2 ? x2 : x2 + k2 - 1, s3 = this.isDate1904();
|
|
18431
18440
|
for (let t4 = 0; t4 < k2; t4++) {
|
|
18432
|
-
let e3 = n3(o3 + (
|
|
18441
|
+
let e3 = n3(o3 + (N2 ? t4 : -t4));
|
|
18433
18442
|
qr(e3) && (e3 = eo(e3, s3));
|
|
18434
|
-
const a3 =
|
|
18443
|
+
const a3 = T2 + t4;
|
|
18435
18444
|
i2 ? H2.pushAt(a3, r3, e3) : H2.pushAt(r3, a3, e3);
|
|
18436
18445
|
}
|
|
18437
18446
|
}
|
|
18438
18447
|
this._clear([p2], r2?.contentsOnly ? Xh.Content.Formats : void 0), H2.apply();
|
|
18439
|
-
const
|
|
18440
|
-
if (
|
|
18441
|
-
if (
|
|
18448
|
+
const $2 = this._getMerges([_2]), j2 = c.unionRangesArrays($2);
|
|
18449
|
+
if ($2.length > 0 && !c.isRangeWithinRange(j2, _2)) throw new Error(Wh);
|
|
18450
|
+
if ($2.length > 0) {
|
|
18442
18451
|
const n3 = [], r3 = s2 / E2;
|
|
18443
18452
|
if (i2) {
|
|
18444
|
-
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 =
|
|
18453
|
+
const s3 = t2.rowEnd - t2.rowStart + 1, i3 = o2 === e.Direction.Up ? p2.rowStart : t2.rowEnd + 1, a3 = $2.length;
|
|
18445
18454
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
18446
|
-
const o3 =
|
|
18455
|
+
const o3 = $2[e2], a4 = o3.rowStart - t2.rowStart, l3 = o3.rowEnd - o3.rowStart + 1;
|
|
18447
18456
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
18448
18457
|
const e3 = t3 * s3;
|
|
18449
18458
|
n3.push({ colStart: o3.colStart, rowStart: i3 + e3 + a4, colEnd: o3.colEnd, rowEnd: i3 + e3 + a4 + l3 - 1 });
|
|
18450
18459
|
}
|
|
18451
18460
|
}
|
|
18452
18461
|
} else {
|
|
18453
|
-
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 =
|
|
18462
|
+
const s3 = t2.colEnd - t2.colStart + 1, i3 = o2 === e.Direction.Left ? p2.colStart : t2.colEnd + 1, a3 = $2.length;
|
|
18454
18463
|
for (let e2 = 0; e2 < a3; e2++) {
|
|
18455
|
-
const o3 =
|
|
18464
|
+
const o3 = $2[e2], a4 = o3.colStart - t2.colStart, l3 = o3.colEnd - o3.colStart + 1;
|
|
18456
18465
|
for (let t3 = 0; t3 < r3; t3++) {
|
|
18457
18466
|
const e3 = t3 * s3;
|
|
18458
18467
|
n3.push({ colStart: i3 + e3 + a4, rowStart: o3.rowStart, colEnd: i3 + e3 + a4 + l3 - 1, rowEnd: o3.rowEnd });
|
|
@@ -18464,7 +18473,7 @@ class z_ {
|
|
|
18464
18473
|
const G2 = this._getState(), U2 = {}, J2 = {};
|
|
18465
18474
|
J2.directStyleSpatial = G2.directStyleSpatial, J2.continuousFillSpatial = G2.continuousFillSpatial;
|
|
18466
18475
|
let q2 = t2, K2 = p2;
|
|
18467
|
-
if (!
|
|
18476
|
+
if (!N2) {
|
|
18468
18477
|
let e2 = (i2 ? _2.rowEnd + 1 - _2.rowStart : _2.colEnd + 1 - _2.colStart) % x2;
|
|
18469
18478
|
const n3 = i2 ? "rowStart" : "colStart", r3 = i2 ? "rowEnd" : "colEnd";
|
|
18470
18479
|
0 !== e2 && (K2 = { ...p2, [r3]: Math.min(p2[r3], p2[n3] + e2) }, q2 = { ...t2, [n3]: t2[r3] - e2 + 1 }, p2[n3] = p2[n3] + e2);
|
|
@@ -18475,7 +18484,7 @@ class z_ {
|
|
|
18475
18484
|
for (let t4 = 0; t4 < s3; t4++) r3.remove(o3[t4]);
|
|
18476
18485
|
r3.load(n3.inserts), U2[e2] = r3;
|
|
18477
18486
|
}
|
|
18478
|
-
if (
|
|
18487
|
+
if (N2) {
|
|
18479
18488
|
const e2 = this.getTables().getItems({ address: { rowIndex: t2.rowEnd, colIndex: t2.colEnd } });
|
|
18480
18489
|
if (1 === e2.length) {
|
|
18481
18490
|
const t3 = e2[0], n3 = t3.getRange().getCoords();
|
|
@@ -18507,7 +18516,7 @@ class z_ {
|
|
|
18507
18516
|
const a3 = s4.value, g3 = void 0 !== a3 ? a3 : n2;
|
|
18508
18517
|
let m2;
|
|
18509
18518
|
if (null !== g3) {
|
|
18510
|
-
if (g3.isIHyperlink) m2 = { ...g3.
|
|
18519
|
+
if (g3.isIHyperlink) m2 = { ...g3._p }, i3 = g3.getDisplayText();
|
|
18511
18520
|
else if ("string" == typeof g3) m2 = { address: g3 }, i3 = g3;
|
|
18512
18521
|
else if (g3.address) {
|
|
18513
18522
|
const t3 = g3, e2 = { ...t3 };
|
|
@@ -19058,16 +19067,16 @@ class z_ {
|
|
|
19058
19067
|
}
|
|
19059
19068
|
s3 && (_3 = true), a2.singleMerge && (g2 = false, f2 = false);
|
|
19060
19069
|
const b3 = h2.colStart - d2.colStart, R2 = h2.rowStart - d2.rowStart, A2 = i2.adjustCells;
|
|
19061
|
-
let M2 = { ...
|
|
19070
|
+
let M2 = { ...Nh };
|
|
19062
19071
|
if (delete M2[Rh.Type.Style], !g2) {
|
|
19063
19072
|
const t3 = this.getProtection().isLocked();
|
|
19064
19073
|
M2 = {}, t3 && (M2[Rh.Type.Unlock] = false);
|
|
19065
19074
|
}
|
|
19066
|
-
const
|
|
19067
|
-
let
|
|
19075
|
+
const N2 = e.Orientation.Column;
|
|
19076
|
+
let T2;
|
|
19068
19077
|
if (m2) {
|
|
19069
|
-
|
|
19070
|
-
const t3 = { orientation:
|
|
19078
|
+
T2 = p2.startIncrementalUpdates({ orientation: i2.transpose ? e.Orientation.Row : e.Orientation.Column });
|
|
19079
|
+
const t3 = { orientation: N2, includeRangeTypes: M2, bounds: d2 }, n3 = new Yg(this._strings, t3, this._cellOptions), r4 = (t4, e2, r5) => {
|
|
19071
19080
|
const o3 = t4[0], a3 = n3.setState(t4), l4 = n3.context, c2 = l4.getCell(), u4 = c2.isTopLeft();
|
|
19072
19081
|
let p3 = R2, w3 = b3;
|
|
19073
19082
|
if (s3) {
|
|
@@ -19086,7 +19095,7 @@ class z_ {
|
|
|
19086
19095
|
const t5 = A2(a3, l4, { rowIndex: p3, colIndex: w3 }, i2);
|
|
19087
19096
|
void 0 !== t5 && (C3 = t5, y3 = true);
|
|
19088
19097
|
}
|
|
19089
|
-
if (y3 && (
|
|
19098
|
+
if (y3 && (T2.pushAt(p3, w3, C3), g2)) {
|
|
19090
19099
|
const t5 = c2.getSpans();
|
|
19091
19100
|
(t5.width > 1 || t5.height > 1) && u4 && S2.push({ colStart: w3, rowStart: p3, colEnd: w3 + (i2.transpose ? t5.height : t5.width) - 1, rowEnd: p3 + (i2.transpose ? t5.width : t5.height) - 1 });
|
|
19092
19101
|
}
|
|
@@ -19100,7 +19109,7 @@ class z_ {
|
|
|
19100
19109
|
} };
|
|
19101
19110
|
if (!a2.singleMerge && !c.isEqualRanges(v2, d2)) {
|
|
19102
19111
|
const t4 = v2.colEnd - v2.colStart + 1, e2 = v2.rowEnd - v2.rowStart + 1;
|
|
19103
|
-
l3 = new ml({ delegate: l3, bounds: d2, orientation:
|
|
19112
|
+
l3 = new ml({ delegate: l3, bounds: d2, orientation: N2, dims: { major: i2.transpose ? e2 : t4, minor: i2.transpose ? t4 : e2 } });
|
|
19104
19113
|
}
|
|
19105
19114
|
let u3 = l3.next();
|
|
19106
19115
|
for (; !u3.done; ) {
|
|
@@ -19116,7 +19125,7 @@ class z_ {
|
|
|
19116
19125
|
for (let t4 = 0; t4 < s4; t4++) r4.remove(o2[t4]);
|
|
19117
19126
|
r4.load(n3.inserts), L2[e2] = r4;
|
|
19118
19127
|
}
|
|
19119
|
-
D2._updateState(L2), E2.push(v2), C2.push(v2), w2 && w2.length > 0 && D2._colHeaders.updateHeaderPairs(w2), y2 && y2.length > 0 && D2._rowHeaders.updateHeaderPairs(y2),
|
|
19128
|
+
D2._updateState(L2), E2.push(v2), C2.push(v2), w2 && w2.length > 0 && D2._colHeaders.updateHeaderPairs(w2), y2 && y2.length > 0 && D2._rowHeaders.updateHeaderPairs(y2), T2?.apply(), S2.length > 0 && l2.getRanges(S2).merge(), I2.commit({ viewBefore: x2, viewAfter: (t3) => ({ ...t3, view: l2.getView(), selection: om(C2), ranges: E2 }) });
|
|
19120
19129
|
} catch (t3) {
|
|
19121
19130
|
throw console.warn(t3), I2.rollback(), new Error(((t4) => `Unable to paste: ${t4}`)(t3.message), { cause: t3 });
|
|
19122
19131
|
}
|
|
@@ -19238,18 +19247,18 @@ class z_ {
|
|
|
19238
19247
|
}
|
|
19239
19248
|
n3 = n3.clone(), n3.shift(e2, f2), this._updateState({ cellValuesGrid: n3 });
|
|
19240
19249
|
}
|
|
19241
|
-
const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd,
|
|
19250
|
+
const g3 = e2.colStart <= l2.colStart && e2.colEnd >= l2.colEnd, M3 = e2.rowStart <= l2.rowStart && e2.rowEnd >= l2.rowEnd, N3 = (t4, e3, n4, r4) => {
|
|
19242
19251
|
let o3 = null;
|
|
19243
19252
|
n4 > 1 && (o3 = t4.at(n4 - 1));
|
|
19244
19253
|
const s4 = r4 - n4 + 1;
|
|
19245
19254
|
e3?.(n4, s4), o3 && t4.updateHeaderPairs([{ address: { min: n4, max: r4 }, update: o3 }]);
|
|
19246
19255
|
};
|
|
19247
|
-
g3 &&
|
|
19256
|
+
g3 && N3(this._rowHeaders, this._rowHeadersShiftCallback, e2.rowStart, e2.rowEnd), M3 && N3(this._colHeaders, this._colHeadersShiftCallback, e2.colStart, e2.colEnd), s3 = s3.shift({ range: e2, direction: f2, cloneIfUpdate: s3 === m2.contentfulSpatial, coordValidator: o2 }), i3 = i3.shift({ range: e2, direction: f2, cloneIfUpdate: i3 === m2.unlockSpatial, coordValidator: o2 }), d2 = d2.shift({ range: e2, direction: f2, cloneIfUpdate: d2 === m2.mergeSpatial, coordValidator: o2 }), p2 = p2.shift({ range: e2, direction: f2, cloneIfUpdate: p2 === m2.directStyleSpatial, coordValidator: o2 }), _2 = _2.shift({ range: e2, direction: f2, cloneIfUpdate: _2 === m2.continuousFillSpatial, coordValidator: o2 }), S2 = S2.shift({ range: e2, direction: f2, cloneIfUpdate: S2 === m2.conditionalSpatial, coordValidator: o2 }), w2 = w2.shift({ range: e2, direction: f2, cloneIfUpdate: w2 === m2.hyperlinkSpatial, coordValidator: o2 }), y2 = y2.shift({ range: e2, direction: f2, cloneIfUpdate: y2 === m2.commentsSpatial, coordValidator: o2 }), E2 = E2.shift({ range: e2, direction: f2, cloneIfUpdate: E2 === m2.movableSpatial, coordValidator: o2 }), C2 = C2.shift({ range: e2, direction: f2, cloneIfUpdate: C2 === m2.tableSpatial, coordValidator: o2 }), b2 = b2.shift({ range: e2, direction: f2, cloneIfUpdate: b2 === m2.calcGraph }), x2 = x2.shift({ range: e2, direction: f2, cloneIfUpdate: x2 === m2.rangeListenerSpatial, onShift: (t4) => {
|
|
19248
19257
|
I2 === m2.rangesListenerMap && (I2 = new Map(I2)), this._processListenerShift(I2, R2, m2.rangesListenerMap, t4);
|
|
19249
19258
|
} }), v2 = v2.shift({ range: e2, direction: f2, cloneIfUpdate: v2 === m2.rangesListenerSpatial2, coordValidator: o2 });
|
|
19250
19259
|
}
|
|
19251
|
-
let
|
|
19252
|
-
b2 !== m2.calcGraph && (
|
|
19260
|
+
let N2 = m2.formulaSpatial, T2 = m2.spillSpatial, k2 = m2.pendingSpatial;
|
|
19261
|
+
b2 !== m2.calcGraph && (N2 = N2.clone(), T2 = T2.clone(), k2 = k2.clone()), this._updateState({ contentfulSpatial: s3, unlockSpatial: i3, mergeSpatial: d2, directStyleSpatial: p2, continuousFillSpatial: _2, conditionalSpatial: S2, hyperlinkSpatial: w2, commentsSpatial: y2, movableSpatial: E2, tableSpatial: C2, calcGraph: b2, formulaSpatial: N2, spillSpatial: T2, pendingSpatial: k2, rangesListenerSpatial2: v2, rangeListenerSpatial: x2, rangesListenerMap: I2 }), this._commitAndAutoSelect(g2, u2, r2?.autoSelect, { viewAfter: { ranges: A2, listeners: R2 } });
|
|
19253
19262
|
} catch (t3) {
|
|
19254
19263
|
if (console.warn(t3), g2.rollback(), t3 instanceof d) throw new Error(t3.message ?? zh);
|
|
19255
19264
|
throw t3;
|
|
@@ -19284,7 +19293,7 @@ class z_ {
|
|
|
19284
19293
|
r2 = { expandOnly: false, skipCustomSize: false, minContent: false, ...r2 };
|
|
19285
19294
|
const o2 = "Autofit";
|
|
19286
19295
|
let s2;
|
|
19287
|
-
const i2 = kg(n2, this._entireCoords, true), a2 =
|
|
19296
|
+
const i2 = kg(n2, this._entireCoords, true), a2 = Tg(n2, this._entireCoords, true);
|
|
19288
19297
|
!i2 && a2 ? (r2.orientations = r2.orientations ?? e.Orientations.Column, s2 = `${o2} ${c_}`) : !a2 && i2 ? (r2.orientations = r2.orientations ?? e.Orientations.Row, s2 = `${o2} ${l_}`) : a2 && i2 ? (r2.orientations = r2.orientations ?? e.Orientations.Both, s2 = `${o2} All`) : (r2.orientations = r2.orientations ?? e.Orientations.Both, s2 = `${o2}`);
|
|
19289
19298
|
let l2 = r2.orientations !== e.Orientations.Row;
|
|
19290
19299
|
this._colHeaders.isProtected() && (l2 = false);
|
|
@@ -19299,19 +19308,19 @@ class z_ {
|
|
|
19299
19308
|
let o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, S2 = false, w2 = false, y2 = false, E2 = Number.MAX_SAFE_INTEGER, C2 = Number.MIN_SAFE_INTEGER;
|
|
19300
19309
|
const b2 = this._styles.getNormal(), v2 = this._cellOptions, x2 = r2.orientations === e.Orientations.Row, I2 = /* @__PURE__ */ new Map(), R2 = el(n2, 1);
|
|
19301
19310
|
R2.sort(c.createRangeComparator(e.Orientation.Column));
|
|
19302
|
-
const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize },
|
|
19303
|
-
if (0 !== t2 && null !== t2 && !(e2 > 1)) return t2 = Math.max(t2,
|
|
19311
|
+
const A2 = R2.length, M2 = { skipCustomSize: r2.skipCustomSize }, N2 = qo.getDeviceScale(), T2 = this._defaultRowHeight() * N2, k2 = this._defaultColWidth(), F2 = (t2, e2 = 1) => {
|
|
19312
|
+
if (0 !== t2 && null !== t2 && !(e2 > 1)) return t2 = Math.max(t2, T2), (e3) => u2 ? t2 : Math.max(e3, t2);
|
|
19304
19313
|
}, O2 = (t2, e2 = 1) => {
|
|
19305
19314
|
if (0 !== t2 && !(e2 > 1)) return (e3) => d2 ? t2 : null !== t2 ? Math.max(e3, t2) : t2;
|
|
19306
19315
|
};
|
|
19307
19316
|
for (let n3 = 0; n3 < A2; n3++) {
|
|
19308
19317
|
const r3 = [];
|
|
19309
|
-
let f3 = -1, p3 = false, A3 = b2,
|
|
19318
|
+
let f3 = -1, p3 = false, A3 = b2, N3 = 1, D2 = 1, L2 = 1;
|
|
19310
19319
|
const B2 = R2[n3];
|
|
19311
19320
|
let P2 = B2.colStart, z2 = B2.rowStart, W2 = B2.colEnd, H2 = B2.rowEnd;
|
|
19312
19321
|
const V2 = this._getUsedCoords();
|
|
19313
19322
|
(u2 || d2) && V2 && (P2 = u2 ? V2.colStart : B2.colStart, z2 = d2 ? V2.rowStart : B2.rowStart, W2 = u2 ? V2.colEnd : B2.colEnd, H2 = d2 ? V2.rowEnd : B2.rowEnd);
|
|
19314
|
-
const
|
|
19323
|
+
const $2 = { includeRangeTypes: { [Rh.Type.Style]: false, [Rh.Type.Merge]: false, [Rh.Type.Continuous]: false, [Rh.Type.Contentful]: false }, excludeHidden: false, bounds: { colStart: P2, rowStart: z2, colEnd: W2, rowEnd: H2 }, orientation: e.Orientation.Column }, j2 = h2 ? [] : void 0, G2 = l2 ? [] : void 0, U2 = (t2, e2, n4) => {
|
|
19315
19324
|
if (t2 > e2) return null;
|
|
19316
19325
|
const r4 = [];
|
|
19317
19326
|
let o4 = t2;
|
|
@@ -19330,15 +19339,15 @@ class z_ {
|
|
|
19330
19339
|
r4.push(t3);
|
|
19331
19340
|
}
|
|
19332
19341
|
return r4;
|
|
19333
|
-
}, J2 = this._rangeStateIterator(
|
|
19342
|
+
}, J2 = this._rangeStateIterator($2);
|
|
19334
19343
|
let q2 = J2.next();
|
|
19335
19344
|
for (; !q2.done; ) {
|
|
19336
19345
|
const t2 = q2.value, e2 = t2.intersection, n4 = t2.start, r4 = t2.end;
|
|
19337
19346
|
V_.colStart = n4.colIndex, V_.rowStart = n4.rowIndex, V_.colEnd = r4.colIndex, V_.rowEnd = r4.rowIndex;
|
|
19338
19347
|
const o4 = c.intersectRanges(V_, B2, H_), s4 = Eg(0, o4, e2, v2).getBestFit();
|
|
19339
19348
|
if (h2) {
|
|
19340
|
-
const t3 = Math.max(n4.rowIndex, z2), e3 = Math.min(r4.rowIndex, H2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: F2(o5), autoSize: true }, sizeSet: null === o5 ?
|
|
19341
|
-
|
|
19349
|
+
const t3 = Math.max(n4.rowIndex, z2), e3 = Math.min(r4.rowIndex, H2), o5 = s4.height, i4 = { address: { min: t3, max: e3 }, update: { size: F2(o5), autoSize: true }, sizeSet: null === o5 ? T2 : o5 };
|
|
19350
|
+
j2.push(i4);
|
|
19342
19351
|
}
|
|
19343
19352
|
if (l2) {
|
|
19344
19353
|
const t3 = Math.max(n4.colIndex, P2), e3 = Math.min(r4.colIndex, W2), o5 = s4.width, i4 = { address: { min: t3, max: e3 }, update: { size: O2(s4.width), autoSize: true }, sizeSet: null === o5 ? k2 : o5 };
|
|
@@ -19353,20 +19362,20 @@ class z_ {
|
|
|
19353
19362
|
const e2 = U2(B2.colStart, B2.colEnd, t2);
|
|
19354
19363
|
e2 && this._colHeaders.updateHeaderPairs(e2, M2);
|
|
19355
19364
|
}
|
|
19356
|
-
if (
|
|
19357
|
-
|
|
19358
|
-
let t2 = this._rowHeaders.updateHeaderPairs(
|
|
19365
|
+
if (j2) {
|
|
19366
|
+
j2.sort(m2);
|
|
19367
|
+
let t2 = this._rowHeaders.updateHeaderPairs(j2, M2);
|
|
19359
19368
|
t2 = bs(vs(xs(t2)));
|
|
19360
19369
|
const e2 = U2(B2.rowStart, B2.rowEnd, t2);
|
|
19361
19370
|
e2 && this._rowHeaders.updateHeaderPairs(e2, M2);
|
|
19362
19371
|
}
|
|
19363
|
-
const K2 = this._cellStateIterator({
|
|
19372
|
+
const K2 = this._cellStateIterator({ ...$2, includeRangeTypes: { [Rh.Type.Merge]: false, [Rh.Type.Table]: false, [Rh.Type.Style]: false, [Rh.Type.Continuous]: false }, ignoreEmptyIntersections: true });
|
|
19364
19373
|
let X2, Y2, Q2, Z2 = K2.next(), tt2 = 1, et2 = 1;
|
|
19365
19374
|
for (; !Z2.done; ) {
|
|
19366
19375
|
const e2 = Z2.value, n4 = e2[0], l3 = e2[2];
|
|
19367
19376
|
let h3 = b2;
|
|
19368
19377
|
const d3 = l3?.directStyle ?? l3?.table.getStyle() ?? null;
|
|
19369
|
-
d3 === X2 ? h3 = Y2 : (h3 = d3 ? Eg(0, c.cellToRange(n4,
|
|
19378
|
+
d3 === X2 ? h3 = Y2 : (h3 = d3 ? Eg(0, c.cellToRange(n4, $_), l3, v2) : b2, Y2 = h3);
|
|
19370
19379
|
let u3 = 1, g3 = 1;
|
|
19371
19380
|
const m3 = l3?.merge ?? null;
|
|
19372
19381
|
if (m3 === Q2) u3 = tt2, g3 = et2;
|
|
@@ -19377,12 +19386,12 @@ class z_ {
|
|
|
19377
19386
|
} else u3 = 1, g3 = 1;
|
|
19378
19387
|
tt2 = u3, et2 = g3;
|
|
19379
19388
|
}
|
|
19380
|
-
const x3 = n4.colIndex, I3 = n4.rowIndex, R3 = e2[1], M3 = hc(R3),
|
|
19389
|
+
const x3 = n4.colIndex, I3 = n4.rowIndex, R3 = e2[1], M3 = hc(R3), T3 = c.isCellWithinRange(n4, B2), k3 = l3?.continuous ?? null;
|
|
19381
19390
|
if (k3) {
|
|
19382
19391
|
L2 = k3.getCoords().colEnd - x3 + 1;
|
|
19383
19392
|
}
|
|
19384
19393
|
let F3 = false, O3 = false;
|
|
19385
|
-
if (X2 === d3 && u3 ===
|
|
19394
|
+
if (X2 === d3 && u3 === N3 && g3 === D2 && M3 !== t.String && M3 !== t.Error && T3 === p3 || (F3 = true, M3 === t.RichData && (O3 = true), O3 && (F3 = false)), X2 = d3, Q2 = m3, (f3 !== x3 || F3) && (-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: u3, spanHeight: g3, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), measureWidth: -1, measureHeight: -1, colSpan: L2, isFit: p3 }), f3 = x3, A3 = h3, p3 = T3, N3 = u3, D2 = g3, o3 = Number.MAX_SAFE_INTEGER, s3 = Number.MIN_SAFE_INTEGER, i3 = false, a3 = "", _2 = -1, w2 = false, S2 = false, y2 = false, E2 = I3), C2 = I3, !O3) if (null === R3) y2 = true;
|
|
19386
19395
|
else switch (M3) {
|
|
19387
19396
|
case t.Number:
|
|
19388
19397
|
0 === R3 && (i3 = true), o3 = Math.min(o3, R3), s3 = Math.max(s3, R3);
|
|
@@ -19398,7 +19407,7 @@ class z_ {
|
|
|
19398
19407
|
}
|
|
19399
19408
|
Z2 = K2.next();
|
|
19400
19409
|
}
|
|
19401
|
-
-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth:
|
|
19410
|
+
-1 !== f3 && r3.push({ col: f3, style: A3, spanWidth: N3, spanHeight: D2, minVal: o3, maxVal: s3, hasZero: i3, text: a3, textId: _2, hasFalse: w2, hasTrue: S2, hasEmpty: y2, minRow: E2, maxRow: C2, colWidth: this._colHeaders.getSpanSize(f3), colSpan: L2, measureWidth: -1, measureHeight: -1, isFit: p3 });
|
|
19402
19411
|
let nt2 = -1, rt2 = -1;
|
|
19403
19412
|
const ot2 = r3.length;
|
|
19404
19413
|
for (let e2 = 0; e2 < ot2; e2++) {
|
|
@@ -19472,7 +19481,7 @@ class z_ {
|
|
|
19472
19481
|
_createRangeEvent(t2, e2) {
|
|
19473
19482
|
const n2 = this, r2 = () => {
|
|
19474
19483
|
const e3 = n2._getState();
|
|
19475
|
-
return this._closed || e3.deleted ?
|
|
19484
|
+
return this._closed || e3.deleted ? $g(null) : t2 ? Array.isArray(t2) ? n2._createRanges(t2) : n2._createRange(t2) : $g(this, this._entireCoords);
|
|
19476
19485
|
}, o2 = e2.trigger;
|
|
19477
19486
|
return { getSource: r2, getFrom: () => e2.from ?? null, getTo: () => e2.to ?? null, trigger: o2, isUndo: e2.isUndo ?? false, isDataChange: e2.isDataChange ?? false, isTransactional: e2.isTransactional ?? true, toString: () => `SheetRangeEvent: ('${o2}', ${r2().toString()})`, timeStamp: e2.timeStamp ?? Date.now() };
|
|
19478
19487
|
}
|
|
@@ -20270,7 +20279,7 @@ class z_ {
|
|
|
20270
20279
|
const s2 = [t2];
|
|
20271
20280
|
for (let e3 = 0; e3 < t2; e3++) s2.push(e3);
|
|
20272
20281
|
e2 && console.profileEnd("nativeArray"), window.noLoseArray = s2, o2 = performance.now(), console.log(`NativeArray: ${t2} records in ${o2 - r2} milliseconds`), r2 = performance.now(), e2 && console.profile("mixedType");
|
|
20273
|
-
const i2 =
|
|
20282
|
+
const i2 = Tl.fromArray(n2);
|
|
20274
20283
|
e2 && console.profileEnd("mixedType"), window.noLoseList = i2, o2 = performance.now(), console.log(`MixedTypedList: ${t2} records in ${o2 - r2} milliseconds`);
|
|
20275
20284
|
}
|
|
20276
20285
|
_validateOrRemoveOverlaps(t2, e2, n2 = null, r2 = false) {
|
|
@@ -20414,18 +20423,18 @@ class z_ {
|
|
|
20414
20423
|
this._rowHeaders.getRange(e2).forEachVisibleSpan((e3, n3) => {
|
|
20415
20424
|
this._colHeaders.getRange(t4).forEachVisibleSpan((t5, r4) => {
|
|
20416
20425
|
u2(h2.search({ colStart: t5, rowStart: e3, colEnd: r4, rowEnd: n3 }, i2));
|
|
20417
|
-
},
|
|
20418
|
-
},
|
|
20426
|
+
}, j_);
|
|
20427
|
+
}, j_);
|
|
20419
20428
|
} else if (s2 === e.Orientation.Column) {
|
|
20420
20429
|
const t4 = { min: r3.colStart, max: r3.colEnd };
|
|
20421
20430
|
this._colHeaders.getRange(t4).forEachVisibleSpan((t5, e2) => {
|
|
20422
20431
|
u2(h2.search({ colStart: t5, rowStart: r3.rowStart, colEnd: e2, rowEnd: r3.rowEnd }, i2));
|
|
20423
|
-
},
|
|
20432
|
+
}, j_);
|
|
20424
20433
|
} else if (s2 === e.Orientation.Row) {
|
|
20425
20434
|
const t4 = { min: r3.rowStart, max: r3.rowEnd };
|
|
20426
20435
|
this._rowHeaders.getRange(t4).forEachVisibleSpan((t5, e2) => {
|
|
20427
20436
|
u2(h2.search({ colStart: r3.colStart, rowStart: t5, colEnd: r3.colEnd, rowEnd: e2 }, i2));
|
|
20428
|
-
},
|
|
20437
|
+
}, j_);
|
|
20429
20438
|
}
|
|
20430
20439
|
} else u2(h2.search(r3, i2));
|
|
20431
20440
|
}
|
|
@@ -20622,7 +20631,7 @@ class z_ {
|
|
|
20622
20631
|
const e2 = t2._getState();
|
|
20623
20632
|
e2 && e2.movableSpatial.clear();
|
|
20624
20633
|
} });
|
|
20625
|
-
const r2 = new
|
|
20634
|
+
const r2 = new jp({ sheet: this }), o2 = { onChange() {
|
|
20626
20635
|
t2._emitter.notify("onSelectionChange");
|
|
20627
20636
|
} }, s2 = r2.addListeners(o2, { transactional: false });
|
|
20628
20637
|
this._rangeSelection = r2, this._rangeSelectionRemoveListener = s2;
|
|
@@ -21027,7 +21036,7 @@ class z_ {
|
|
|
21027
21036
|
(i2()?.value ?? o2).processLayoutCallback = t3;
|
|
21028
21037
|
}, initialAnchor: r2, maxRangeCoords: this._entireCoords, json: t2 }, _2 = t2.content.json, S2 = { type: d2, transactions: this._transactions, beginPersistResource: m2, fromResourceId: n2, defaultLockAspectRatio: f2, json: _2 };
|
|
21029
21038
|
let w2 = null;
|
|
21030
|
-
if ("picture" === d2) w2 = new
|
|
21039
|
+
if ("picture" === d2) w2 = new $m(S2);
|
|
21031
21040
|
else if ("chart" === d2) w2 = new Op(S2);
|
|
21032
21041
|
else if ("sp" === d2 || "cxnSp" === d2 || "grpSp" === d2) w2 = new Dp(S2);
|
|
21033
21042
|
else {
|
|
@@ -21150,14 +21159,14 @@ class z_ {
|
|
|
21150
21159
|
}
|
|
21151
21160
|
R2.load(t2);
|
|
21152
21161
|
}
|
|
21153
|
-
const A2 = h2.tableMapModel, M2 = h2.tableMapName,
|
|
21154
|
-
if (
|
|
21155
|
-
const t2 = [], e2 =
|
|
21162
|
+
const A2 = h2.tableMapModel, M2 = h2.tableMapName, N2 = h2.tableSpatial, T2 = o2.tables;
|
|
21163
|
+
if (T2) {
|
|
21164
|
+
const t2 = [], e2 = T2.length;
|
|
21156
21165
|
for (let n3 = 0; n3 < e2; n3++) {
|
|
21157
|
-
const e3 =
|
|
21166
|
+
const e3 = T2[n3], r3 = this._createTableEntry(e3), o3 = r3.value.model;
|
|
21158
21167
|
A2.set(o3, r3), M2.set(r3.value.currentName, o3), t2.push(r3);
|
|
21159
21168
|
}
|
|
21160
|
-
|
|
21169
|
+
N2.load(t2);
|
|
21161
21170
|
}
|
|
21162
21171
|
const k2 = h2.conditionalSpatial, F2 = h2.conditionalModels, O2 = o2.conditionals;
|
|
21163
21172
|
if (O2) {
|
|
@@ -21168,7 +21177,7 @@ class z_ {
|
|
|
21168
21177
|
}
|
|
21169
21178
|
}
|
|
21170
21179
|
const D2 = h2.calcGraph, L2 = D2.fromJSON({ formulas: o2.formulas, data: p2, dynamic: o2.dynamicArray, volatile: o2.volatile });
|
|
21171
|
-
h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial:
|
|
21180
|
+
h2 = this._updateState({ hyperlinkSpatial: C2, commentsSpatial: v2, movableSpatial: R2, movableMapModel: I2, tableSpatial: N2, tableMapModel: A2, tableMapName: M2, conditionalSpatial: k2, conditionalModels: F2, calcGraph: D2 });
|
|
21172
21181
|
const B2 = this._getUsedCoords();
|
|
21173
21182
|
B2 && this._autoFit([B2], { orientations: e.Orientations.Row, skipCustomSize: true }), r2.commit(), L2 && this._realizeCalcedValues(L2), o2.protection && this._protection.fromJSON(o2.protection), this._emitter.notify("onLoad");
|
|
21174
21183
|
} finally {
|
|
@@ -21224,7 +21233,7 @@ class z_ {
|
|
|
21224
21233
|
return true;
|
|
21225
21234
|
}
|
|
21226
21235
|
}
|
|
21227
|
-
const W_ = { address: null, scope: null }, H_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, V_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 },
|
|
21236
|
+
const W_ = { address: null, scope: null }, H_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, V_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, $_ = { colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }, j_ = { includeHidden: false };
|
|
21228
21237
|
Object.freeze({ [Xh.Content.Values]: Number.MAX_SAFE_INTEGER, [Xh.Content.Formulas]: Number.MAX_SAFE_INTEGER }), Object.freeze({ [Xh.Content.Values]: 1, [Xh.Content.Formulas]: 1 });
|
|
21229
21238
|
const G_ = { ignoreDataChanges: false }, U_ = { colStart: -1, rowStart: -1, colEnd: -1, rowEnd: -1 }, J_ = [{ colIndex: -1, rowIndex: -1 }, null, null, null, null], q_ = [Xh.Content.Values], K_ = { size: null, autoSize: true }, X_ = { skipCustomSize: true, expandOnly: true, minContent: true }, Y_ = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Q_ = { rowStart: 0, colStart: 0, rowEnd: 0, colEnd: 0 }, Z_ = { showFormulaBar: true, showTabs: true, tabRatio: 600, showHorizontalScrollbar: true, showVerticalScrollbar: true, showStatusBar: true, activeSheetId: null };
|
|
21230
21239
|
class tS {
|
|
@@ -21452,7 +21461,7 @@ class iS extends Jf {
|
|
|
21452
21461
|
})({});
|
|
21453
21462
|
}
|
|
21454
21463
|
try {
|
|
21455
|
-
|
|
21464
|
+
jf({ getPosition: () => n4.getCell().getCoords() }), sS = globalThis[rS], globalThis[rS] = oS;
|
|
21456
21465
|
const e3 = this._fn;
|
|
21457
21466
|
o2 = e3.call(s2, ...t3), sS ? (globalThis[rS] = sS, sS = void 0) : delete globalThis[rS], Gf();
|
|
21458
21467
|
} catch (t4) {
|
|
@@ -21506,7 +21515,7 @@ class aS {
|
|
|
21506
21515
|
const lS = async (t2, e2) => {
|
|
21507
21516
|
let n2 = null;
|
|
21508
21517
|
try {
|
|
21509
|
-
|
|
21518
|
+
jf(null);
|
|
21510
21519
|
} catch (t3) {
|
|
21511
21520
|
console.warn("Error setting global scope", t3);
|
|
21512
21521
|
}
|
|
@@ -21672,7 +21681,7 @@ class CS {
|
|
|
21672
21681
|
return this._get().length;
|
|
21673
21682
|
}
|
|
21674
21683
|
}
|
|
21675
|
-
const bS = new RegExp(/[\\/\\*?:[\]]+/), vS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), xS = (t2) => `Sheet${t2 + 1}`, IS = (t2, e2) => ({ ...Vg, getSheet: () => null, toString: () =>
|
|
21684
|
+
const bS = new RegExp(/[\\/\\*?:[\]]+/), vS = new RegExp(/\(((\d+)(?!.*\d))\)$/, "g"), xS = (t2) => `Sheet${t2 + 1}`, IS = (t2, e2) => ({ ...Vg, getSheet: () => null, toString: () => jc(t2, e2) }), RS = (t2, e2 = false) => {
|
|
21676
21685
|
if (!t2) throw new Error(wS);
|
|
21677
21686
|
if (bS.test(t2)) {
|
|
21678
21687
|
if (!e2) throw new Error(((t3) => `${t3 ? `'${t3}'` : SS} can not contain any of the following characters '\\ , / , * , ? , : , [ , ]'.`)(t2));
|
|
@@ -21735,10 +21744,10 @@ class AS extends M_ {
|
|
|
21735
21744
|
}
|
|
21736
21745
|
toString() {
|
|
21737
21746
|
const t2 = this.getCoords(), e2 = this._sheet, n2 = e2.getEntireRange().getCoords(), r2 = { sheetName: e2.getName(), ...n2 };
|
|
21738
|
-
return Kc(t2, r2,
|
|
21747
|
+
return Kc(t2, r2, jc, Pc);
|
|
21739
21748
|
}
|
|
21740
21749
|
}
|
|
21741
|
-
class MS extends
|
|
21750
|
+
class MS extends N_ {
|
|
21742
21751
|
constructor(t2, e2, n2, r2) {
|
|
21743
21752
|
super(t2, e2, r2), this._workbook = n2;
|
|
21744
21753
|
}
|
|
@@ -21748,8 +21757,8 @@ class MS extends T_ {
|
|
|
21748
21757
|
}
|
|
21749
21758
|
_createRange(t2, e2) {
|
|
21750
21759
|
const n2 = this._sheet;
|
|
21751
|
-
if (!t2) return
|
|
21752
|
-
if (n2._validateCoords(t2), n2._closed) return
|
|
21760
|
+
if (!t2) return $g(n2, n2._entireCoords);
|
|
21761
|
+
if (n2._validateCoords(t2), n2._closed) return $g(null, n2._entireCoords, t2);
|
|
21753
21762
|
let r2 = this._options;
|
|
21754
21763
|
return e2 && (r2 = { ...this._options, getOptions: Qg(this._options?.getOptions, e2) }), new MS(t2, this._sheet, this._workbook, r2);
|
|
21755
21764
|
}
|
|
@@ -21761,7 +21770,7 @@ class MS extends T_ {
|
|
|
21761
21770
|
}
|
|
21762
21771
|
toString() {
|
|
21763
21772
|
const t2 = this._sheet, e2 = t2?.getEntireRange().getCoords() ?? null;
|
|
21764
|
-
return
|
|
21773
|
+
return jc(this.getCoords(), { ...e2, sheetName: t2.getName() });
|
|
21765
21774
|
}
|
|
21766
21775
|
addListener(t2, e2) {
|
|
21767
21776
|
if (!this.getCoords()) return () => {
|
|
@@ -21770,7 +21779,7 @@ class MS extends T_ {
|
|
|
21770
21779
|
return super.addListener(n2, e2);
|
|
21771
21780
|
}
|
|
21772
21781
|
}
|
|
21773
|
-
class
|
|
21782
|
+
class NS {
|
|
21774
21783
|
constructor(t2) {
|
|
21775
21784
|
this._lastTransactionUUID = null, this._closed = false, this._initializing = true, this._emitter = null, this._names = null, this._calculation = null, this._isDate1904 = false;
|
|
21776
21785
|
const e2 = this, n2 = { ...t2 }, r2 = n2.json;
|
|
@@ -21809,8 +21818,8 @@ class TS {
|
|
|
21809
21818
|
return i2 && (l2.json = i2), a2 = t3(l2, r3, s3, o3), a2;
|
|
21810
21819
|
}, this._names = n2.names ?? new Fp({ addressToRanges: (t4) => e2.getRanges(t4), getCurrentScope: () => e2.getSelectedSheet().getName(), isReadOnly: () => e2._options.readonly ?? false, transactions: e2._transactions }), this._ownNames = !n2.names, this._calculation = n2.calculation ?? new op({ getNamed: (t4, e3) => {
|
|
21811
21820
|
try {
|
|
21812
|
-
|
|
21813
|
-
const n3 = this._names.getItems(
|
|
21821
|
+
TS.address = t4, TS.scope = e3;
|
|
21822
|
+
const n3 = this._names.getItems(TS);
|
|
21814
21823
|
return n3 && 0 !== n3.length ? n3[0].getRanges().getCoords() : null;
|
|
21815
21824
|
} catch (t5) {
|
|
21816
21825
|
return null;
|
|
@@ -21821,8 +21830,8 @@ class TS {
|
|
|
21821
21830
|
t4 = t4.toLowerCase();
|
|
21822
21831
|
for (let e3 = 0; e3 < n3.length; e3++) if (n3[e3].name.toLowerCase() === t4) return e3;
|
|
21823
21832
|
try {
|
|
21824
|
-
|
|
21825
|
-
const e3 = this._names.getItems(
|
|
21833
|
+
TS.address = t4, TS.scope = void 0;
|
|
21834
|
+
const e3 = this._names.getItems(TS);
|
|
21826
21835
|
if (!e3 || 0 === e3.length) return -1;
|
|
21827
21836
|
const n4 = e3[0].getRanges().getCoords()?.[0];
|
|
21828
21837
|
let r3 = n4?.sheetName;
|
|
@@ -21847,7 +21856,7 @@ class TS {
|
|
|
21847
21856
|
_initState() {
|
|
21848
21857
|
let t2 = this._getSheetRefs();
|
|
21849
21858
|
for (let e3 = t2 && t2.length - 1; e3 >= 0; e3--) ;
|
|
21850
|
-
this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new
|
|
21859
|
+
this._isDate1904 = this._options.date1904 ?? false, this._theme = this._options.theme ?? new ji().getDefaultTheme(), this._styles = this._options?.styles ?? new Fm(this._theme), this._ownStyles = !this._options.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new tS()), this._listenerProtection?.(), this._protection = new uS(void 0, this._options.readonly ?? false), this._listenerProtection = this._protection.addListeners({ onChange: (t3) => {
|
|
21851
21860
|
e2._emitter.notify("onProtectionChange");
|
|
21852
21861
|
} });
|
|
21853
21862
|
const e2 = this;
|
|
@@ -22527,7 +22536,7 @@ class TS {
|
|
|
22527
22536
|
return true;
|
|
22528
22537
|
}
|
|
22529
22538
|
}
|
|
22530
|
-
const
|
|
22539
|
+
const TS = { address: null, scope: null };
|
|
22531
22540
|
export {
|
|
22532
22541
|
am as AddressUtils,
|
|
22533
22542
|
ks as AutoFill,
|
|
@@ -22560,9 +22569,9 @@ export {
|
|
|
22560
22569
|
wo as ITextFrame,
|
|
22561
22570
|
Ei as ITheme,
|
|
22562
22571
|
Ci as IThemeCollection,
|
|
22563
|
-
|
|
22572
|
+
at as LicenseManager,
|
|
22564
22573
|
fi as NumberFormat,
|
|
22565
|
-
|
|
22574
|
+
$m as Picture,
|
|
22566
22575
|
yp as RangeClipboardItem,
|
|
22567
22576
|
Lm as Resource,
|
|
22568
22577
|
Pm as ResourceCollection,
|
|
@@ -22575,11 +22584,11 @@ export {
|
|
|
22575
22584
|
bm as Table,
|
|
22576
22585
|
Po as TextUtils,
|
|
22577
22586
|
Vi as Theme,
|
|
22578
|
-
|
|
22587
|
+
ji as ThemeCollection,
|
|
22579
22588
|
k as TransactionStore,
|
|
22580
22589
|
L as TransactionUndoManager,
|
|
22581
|
-
|
|
22582
|
-
|
|
22590
|
+
Tt as Tuple,
|
|
22591
|
+
NS as Workbook,
|
|
22583
22592
|
tS as WorkbookView,
|
|
22584
22593
|
g_ as a,
|
|
22585
22594
|
u_ as b,
|