@sheetxl/sdk 0.8.0-beta.11 → 0.8.0-beta.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/esm/{BpgskG1Er_lGQ_yS.mjs → -Jx-jNHmtIQQfLvK.mjs} +1 -1
- package/browser/esm/{BLoUBId2xZpXAK_H.mjs → 2WuhYrIpYmOR5H73.mjs} +15 -15
- package/browser/esm/{Ctjb0SsxV4K4MMqG.mjs → 2mIwPy2D2JUX-9wx.mjs} +2 -2
- package/browser/esm/{CkxWugaJFjDGZNZ-.mjs → B3wf5vZCsWfWsDbj.mjs} +1 -1
- package/browser/esm/{BjkCiv5Jz6WYKZeu.mjs → BIHrHjRGWVlJglcp.mjs} +2 -2
- package/browser/esm/{BtvLTTfSBdAKplVG.mjs → BTFBedJMRWGvZyCE.mjs} +1 -1
- package/browser/esm/{C4MqfLn9Dm-l3OIk.mjs → BdCJNawfifyPupCP.mjs} +1 -1
- package/browser/esm/{CV5EGEjG5_-CPpP0.mjs → Bg5Di9GLNAkbqQ1P.mjs} +3 -3
- package/browser/esm/{C2VbEI_XVAoseAwa.mjs → BnC4-27Igwb8oDf2.mjs} +2 -2
- package/browser/esm/{CQYjO777cmAznUzK.mjs → Bt8_m94tBdks209L.mjs} +1 -1
- package/browser/esm/{C16ycKja6zG0crV_.mjs → BudSIfXBAsTxvu-K.mjs} +17836 -15712
- package/browser/esm/{DvAaxH6z_tGvrRzl.mjs → C9u8FUewte5ugUjH.mjs} +686 -686
- package/browser/esm/{DEiPS3Dr-s4fPbVZ.mjs → CBYMTDzMf1Vh7pkw.mjs} +1 -1
- package/browser/esm/{Dyq_ivuHvlXLwPCl.mjs → CNdjyofiRu6CYOrr.mjs} +1106 -1102
- package/browser/esm/{PcHFjNzQsE54POri.mjs → CRkYR-siY2C994KV.mjs} +1 -1
- package/browser/esm/{C5E6zSGAALWf61n4.mjs → CTe2qfmIUEad6FJv.mjs} +2 -2
- package/browser/esm/{BoV6zPBnfqCBCqZ7.mjs → CUzYuYTTGsChC_kZ.mjs} +3841 -3148
- package/browser/esm/CdEO8CEee6lEhabA.mjs +117 -0
- package/browser/esm/{S2dNNx1a5ydRnARM.mjs → CfRqiPDg6RBTg1EN.mjs} +2 -2
- package/browser/esm/{ClbvFbFzFzXLBKNN.mjs → CndRBvVfQUJIYRRj.mjs} +50 -50
- package/browser/esm/{BnG31I6Oj_HEtSPS.mjs → CwOPLXU3-9ZHGyOT.mjs} +1 -1
- package/browser/esm/{CHU6iu_WGlm7fLET.mjs → Cxjxk0ncRKx80I-w.mjs} +1 -1
- package/browser/esm/D2RZh0O9neOsyLAE.mjs +281 -0
- package/browser/esm/{BkBhLS0l6z8sxI6D.mjs → D64dM68B1pKYFzdP.mjs} +2 -2
- package/browser/esm/{BVDiOXGMc5_FMGfy.mjs → D9xNz46kAfXMZzp4.mjs} +2 -2
- package/browser/esm/{zlLuW405RSguy4Kn.mjs → DK899HhWX1HINMC1.mjs} +53 -53
- package/browser/esm/{B7aUIvgUjncMMD_i.mjs → DPhGQLNGmDZwODwJ.mjs} +5 -4
- package/browser/esm/{gssVX_FH1XFN-twD.mjs → DVroRnhi-5IDXNgM.mjs} +1 -1
- package/{node/esm/CZICGK_ss0HoGHCP.mjs → browser/esm/DZiivy0NmO1Vnyzk.mjs} +2 -2
- package/browser/esm/{ClPfI4lODvCece29.mjs → DgrAuRD2qr2DvFeJ.mjs} +61 -61
- package/browser/esm/{CU3DmJ-YnVVrC1_k.mjs → DobHLF6VjHr7Xi40.mjs} +1 -1
- package/browser/esm/{CaB7J-xgfKO2uAkG.mjs → DwZCT7DZiiXoTweg.mjs} +2 -2
- package/browser/esm/{BMyDRQ716j79h_bH.mjs → DwwR3O2sEZApPSTF.mjs} +6 -6
- package/browser/esm/{DLLE0FZNsKxbBzRn.mjs → Tah7cnFb_HNZdLtj.mjs} +45 -45
- package/browser/esm/{Dlmig06rIo7cInRk.mjs → fXWUMDhZ5yMSO629.mjs} +1 -1
- package/browser/esm/{DWNzqw7DUKwoxjri.mjs → hCQJcmIzPDxDEv2q.mjs} +2 -2
- package/browser/esm/index.mjs +679 -542
- package/browser/esm/{BFagR2JeWs74iAG3.mjs → qO-ujUrgq6H3TQix.mjs} +1 -1
- package/browser/esm/w6Jea0TiclPrYZ2M.mjs +1703 -0
- package/browser/esm/yuhcOYw6SHQ-RCm3.mjs +114 -0
- package/node/esm/-TA0MneBDKdGhsib.mjs +8668 -0
- package/node/esm/{B21JjOLghRoDOrkx.mjs → B-HUPAcqvK0eeeCz.mjs} +1 -1
- package/node/esm/{DNRhGK-8Tr9xcRyc.mjs → BL2iiEoqxDEV2Xrg.mjs} +3 -3
- package/node/esm/{D1TKBVmoKGAXf37B.mjs → BNXLOEddJ6O9gYws.mjs} +2 -2
- package/node/esm/{BrCKGFRsX_ezFJ4B.mjs → BSvOluusoDM4z_dx.mjs} +15 -15
- package/node/esm/{BIwObuhTJYf0jpUa.mjs → BskP3b8vUoIOGLY6.mjs} +2 -2
- package/node/esm/{2Kihw_-5lVTEnwMa.mjs → Btw4148Ot8ifhNc1.mjs} +1 -1
- package/node/esm/{BqiexuA89caYnAPz.mjs → C14-R6tifRh7pc0p.mjs} +1 -1
- package/node/esm/{DUTskXCXref-IJnI.mjs → C99zzq8DImQXi4BQ.mjs} +47 -47
- package/node/esm/{D8zEN-6ZdDqDvTxM.mjs → CBuEu5Jk-LfaDy-H.mjs} +61 -61
- package/node/esm/{yavzZOiZW_EjG9lE.mjs → CG-qBU5BAaVz7e-P.mjs} +1 -1
- package/node/esm/CPI58duc0j0a-HpJ.mjs +115 -0
- package/node/esm/{CCN5vD410obwdz38.mjs → CRt3vXe6YmXzqk3H.mjs} +15 -14
- package/node/esm/{CzXT00vrQa1_gvW9.mjs → C_aL7CGS1lrNn1Ng.mjs} +1 -1
- package/node/esm/{CZiqiay42tFTrLI4.mjs → C_xf5Bz30VqiJjXn.mjs} +1 -1
- package/node/esm/{BIRq1kT7lLRzns9t.mjs → CiIymQN6aJCul62g.mjs} +9 -9
- package/node/esm/{CNCNJNg890KdgkWh.mjs → Ci_zLYmCD7e-C79O.mjs} +1 -1
- package/{browser/esm/D5np__Jb1euAyaLw.mjs → node/esm/CkRYLed8Mmn3giNg.mjs} +2 -2
- package/node/esm/D3ptRKzASqBut1DE.mjs +117 -0
- package/node/esm/{cGwrLA1RCE-WhJ7w.mjs → D4ROK9UwDpS6jO3Z.mjs} +1 -1
- package/node/esm/{mFiBSM7XgBHV9AY7.mjs → D8hO07ToAibIuniw.mjs} +1535 -1531
- package/node/esm/{CDHdgJXH2vS71WMc.mjs → DUTmDHbFbhLDT4F3.mjs} +1 -1
- package/node/esm/{CGp6VZL-gZa9Uezx.mjs → DV5CU37aEbFbWFL0.mjs} +1 -1
- package/node/esm/{De2IONBxQhz-Qbyh.mjs → DdoiuKg9BKubtF1V.mjs} +1 -1
- package/node/esm/{Db0v7zXNnyjBIjjI.mjs → DggQ23jKMpwhENfa.mjs} +2 -2
- package/node/esm/{CwePQwTILHHjGDkZ.mjs → DhS6yWjrrSNIJMsn.mjs} +204 -204
- package/node/esm/{D_t5AUxSm7_icjzq.mjs → DhTya_mhmN53vskv.mjs} +1 -1
- package/node/esm/{DOU54VsOjG-m-NyQ.mjs → Dn1M7YWi25DeeYUb.mjs} +1 -1
- package/node/esm/{DkwIPzKc3UwdUIfM.mjs → DrCf6ITcBhVOFpRj.mjs} +6 -6
- package/node/esm/{D2KBymQJd1XhpeQD.mjs → DxazKtROyaI51dWl.mjs} +1 -1
- package/node/esm/{D6e2z7eZpxOJXHc7.mjs → Q_S1g46ZOTrdhTae.mjs} +1 -1
- package/node/esm/{OVfaSb506tNSIvbv.mjs → Vocy-I9dKzZMr0Ct.mjs} +19038 -16822
- package/node/esm/ZXPFcsT2zrALCZux.mjs +289 -0
- package/node/esm/{857CIBgQgGpnqrXk.mjs → eimUGjiIP-b8HiM6.mjs} +55 -55
- package/node/esm/{Bbf1Pm9Gk7YpLTvg.mjs → icn2nX5Z8e_3mNAv.mjs} +1 -1
- package/node/esm/index.mjs +740 -603
- package/node/esm/{Ct3h15sCus4Tgt6M.mjs → lGJ42sHqg5if2bba.mjs} +624 -616
- package/node/esm/{CdJHUJSBRHZoryPe.mjs → pYtP7wPyS96NQyXS.mjs} +59 -59
- package/package.json +6 -6
- package/resources/locales/de/model.msg.json +8 -2
- package/resources/locales/en/model.msg.json +9 -2
- package/types/scripting-api.json +10619 -10446
- package/types/scripting-enums.json +20 -1
- package/types/scripting.d.ts +1233 -296
- package/types/src/{sheet → anomalies}/_Anomalies.d.ts +3 -3
- package/types/src/anomalies/_FocusTable.d.ts +11 -0
- package/types/src/{sheet/_AnomalyFormulaChecks.d.ts → anomalies/_FormulaChecks.d.ts} +10 -2
- package/types/src/{sheet/_AnomalyLabelChecks.d.ts → anomalies/_LabelChecks.d.ts} +1 -1
- package/types/src/anomalies/_LiteralChecks.d.ts +35 -0
- package/types/src/anomalies/_SeriesChecks.d.ts +13 -0
- package/types/src/calculation/Calculation.d.ts +47 -9
- package/types/src/calculation/ExternalBookBindings.d.ts +2 -3
- package/types/src/calculation/ICalculation.d.ts +96 -9
- package/types/src/calculation/NamedFormulaCollection.d.ts +104 -8
- package/types/src/calculation/_CloneBoundary.d.ts +1 -1
- package/types/src/calculation/compiler/ASTTypes.d.ts +6 -2
- package/types/src/calculation/compiler/Types.d.ts +8 -0
- package/types/src/calculation/engine/CalcBackend.d.ts +104 -6
- package/types/src/calculation/executor/CalcExecutor.d.ts +73 -22
- package/types/src/calculation/executor/CalcExecutorUtils.d.ts +17 -1
- package/types/src/calculation/executor/_WhatIf.d.ts +50 -0
- package/types/src/calculation/formula/FormulaBlock.d.ts +4 -3
- package/types/src/calculation/formula/IFormulaBlock.d.ts +5 -0
- package/types/src/calculation/functions/_DataTableFunction.d.ts +14 -0
- package/types/src/calculation/grid/CalcGrid.d.ts +4 -6
- package/types/src/calculation/grid/CalcGridBackend.d.ts +5 -27
- package/types/src/calculation/grid/CalcGridProxy.d.ts +0 -2
- package/types/src/calculation/grid/CalcGridUtils.d.ts +4 -2
- package/types/src/calculation/grid/ICalcGrid.d.ts +16 -12
- package/types/src/calculation/grid/_CalcRequest.d.ts +17 -5
- package/types/src/calculation/spatial/FormulaSpatialValue.d.ts +2 -0
- package/types/src/calculation/spatial/SpillEntry.d.ts +16 -2
- package/types/src/calculation/state/CalcNode.d.ts +0 -1
- package/types/src/calculation/state/CalcScope.d.ts +29 -0
- package/types/src/calculation/state/CalcState.d.ts +26 -4
- package/types/src/calculation/state/CalculationContext.d.ts +28 -1
- package/types/src/calculation/state/DeferredCalls.d.ts +260 -0
- package/types/src/calculation/state/IContextContainer.d.ts +20 -0
- package/types/src/calculation/state/_PendingOverlayGrid.d.ts +6 -0
- package/types/src/calculation/state/_WhatIfLayer.d.ts +91 -0
- package/types/src/cell/ICell.d.ts +53 -34
- package/types/src/cellControl/CellControl.d.ts +67 -0
- package/types/src/cellControl/CellControlCollection.d.ts +29 -0
- package/types/src/cellControl/CellControlRegistry.d.ts +47 -0
- package/types/src/cellControl/ICellControl.d.ts +99 -0
- package/types/src/cellControl/ICellControlCollection.d.ts +67 -0
- package/types/src/cellControl/index.d.ts +4 -0
- package/types/src/cellRange/ICellRange.d.ts +207 -59
- package/types/src/cellRange/ICellRanges.d.ts +4 -3
- package/types/src/chart/layout/ChartLayout.d.ts +5 -1
- package/types/src/chart/resolve/_Resolve.d.ts +10 -0
- package/types/src/chart/resolve/_ResolvedChart.d.ts +5 -2
- package/types/src/collections/ISparseGrid.d.ts +11 -2
- package/types/src/collections/MixedTypedArrayList.d.ts +8 -2
- package/types/src/collections/SparseGrid.d.ts +3 -8
- package/types/src/condition/AnchoredConditional.d.ts +2 -2
- package/types/src/externalBook/IExternalBook.d.ts +3 -4
- package/types/src/fetch/Fetcher.d.ts +15 -0
- package/types/src/fetch/IFetcher.d.ts +47 -0
- package/types/src/fetch/_WorkbookFetch.d.ts +43 -0
- package/types/src/fetch/index.d.ts +3 -0
- package/types/src/fill/PaintUtils.d.ts +3 -1
- package/types/src/hyperlink/IHyperlink.d.ts +10 -0
- package/types/src/hyperlink/_Hyperlink.d.ts +4 -1
- package/types/src/index.d.ts +2 -1
- package/types/src/named/INamedCollection.d.ts +36 -0
- package/types/src/named/NamedCollection.d.ts +18 -0
- package/types/src/primitives/AsyncValue.d.ts +58 -0
- package/types/src/resource/IResource.d.ts +9 -0
- package/types/src/resource/IResourceCollection.d.ts +4 -0
- package/types/src/resource/Resource.d.ts +2 -0
- package/types/src/resource/_AddResource.d.ts +13 -0
- package/types/src/richData/CellImage.d.ts +95 -0
- package/types/src/richData/Hyperlink.d.ts +49 -0
- package/types/src/richData/IRichDataCollection.d.ts +76 -0
- package/types/src/richData/IRichDataKind.d.ts +55 -11
- package/types/src/richData/RichArray.d.ts +42 -0
- package/types/src/richData/RichDataCollection.d.ts +23 -0
- package/types/src/richData/RichDataRegistry.d.ts +46 -14
- package/types/src/richData/RichDataValues.d.ts +20 -0
- package/types/src/richData/RichRecord.d.ts +68 -0
- package/types/src/richData/RichText.d.ts +5 -5
- package/types/src/richData/index.d.ts +6 -0
- package/types/src/scripting/FunctionArguments.d.ts +17 -1
- package/types/src/scripting/FunctionCollection.d.ts +8 -0
- package/types/src/scripting/Scripts.d.ts +10 -0
- package/types/src/scripting/TypedFunction.d.ts +2 -0
- package/types/src/sheet/ICellContainerOptions.d.ts +6 -0
- package/types/src/sheet/IWorksheet.d.ts +24 -17
- package/types/src/sheet/SheetCell.d.ts +17 -1
- package/types/src/sheet/SheetRange.d.ts +8 -2
- package/types/src/sheet/SheetRanges.d.ts +2 -2
- package/types/src/sheet/Worksheet.d.ts +110 -56
- package/types/src/sheet/_ListenerAnchor.d.ts +7 -1
- package/types/src/sheet/_ScalarListFactory.d.ts +54 -6
- package/types/src/sheet/_SheetMutations.d.ts +4 -1
- package/types/src/sheet/_SheetStateTypes.d.ts +23 -11
- package/types/src/workbook/IWorkbook.d.ts +40 -1
- package/types/src/workbook/Workbook.d.ts +25 -3
- package/types/src/workbook/WorkbookRanges.d.ts +1 -1
- package/browser/esm/BGOFfpxr2jPIdqmV.mjs +0 -40
- package/browser/esm/f1IoRb7tEb0QmCSt.mjs +0 -110
- package/browser/esm/nvU0ClAbf0g94YBK.mjs +0 -1695
- package/node/esm/B084DssTcdBheTp_.mjs +0 -7966
- package/node/esm/Df1bL6VFvrqIdSLB.mjs +0 -40
- package/node/esm/DrTZbfemSLq2mseG.mjs +0 -111
- package/types/src/dataTable/DataTable.d.ts +0 -67
- package/types/src/dataTable/DataTableCollection.d.ts +0 -19
- package/types/src/dataTable/IDataTable.d.ts +0 -99
- package/types/src/dataTable/IDataTableCollection.d.ts +0 -18
- package/types/src/dataTable/index.d.ts +0 -6
|
@@ -1,133 +1,133 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.8.0-beta.12
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
6
|
*/
|
|
7
|
-
import { $n as e,
|
|
8
|
-
import { Qt as P } from "./
|
|
9
|
-
import { FormulaError as
|
|
7
|
+
import { $n as e, At as t, Fn as n, Ii as r, Ln as i, Rn as l, St as s, Xn as o, _ as a, ai as u, br as c, cr as f, di as p, f as d, gi as g, h as v, hr as h, mr as m, n as y, p as I, s as b, sr as x, u as R, ur as E, ut as T, vr as A, xn as S, xt as w, yr as C, yt as N, zn as F } from "./Vocy-I9dKzZMr0Ct.mjs";
|
|
8
|
+
import { Qt as P } from "./BL2iiEoqxDEV2Xrg.mjs";
|
|
9
|
+
import { FormulaError as L, Scalar as k, ScalarType as $, ValueKind as O, isLazyValue as B } from "@sheetxl/primitives";
|
|
10
10
|
import { CommonUtils as V } from "@sheetxl/utils";
|
|
11
|
-
var z = (e, t) => e + t, D = (e, t) => e - t,
|
|
11
|
+
var z = (e, t) => e + t, D = (e, t) => e - t, M = (e, t) => T(e + t, e), W = (e, t) => T(e - t, e), U = (e, t) => d(e * t), _ = (e, t) => 0 === t ? L.BuiltIn.Div0 : d(e / t), j = (e, t) => {
|
|
12
12
|
if (0 === e) {
|
|
13
|
-
if (t < 0) return
|
|
13
|
+
if (t < 0) return L.BuiltIn.Div0;
|
|
14
14
|
if (0 === t) return NaN;
|
|
15
15
|
}
|
|
16
16
|
if (e < 0) {
|
|
17
|
-
if (Number.isInteger(t) && Math.abs(t) <= 4294967294) return
|
|
17
|
+
if (Number.isInteger(t) && Math.abs(t) <= 4294967294) return d(e ** t);
|
|
18
18
|
const n = Number((1 / t).toPrecision(15));
|
|
19
|
-
return Number.isInteger(n) && 1 === Math.abs(n % 2) ?
|
|
19
|
+
return Number.isInteger(n) && 1 === Math.abs(n % 2) ? d(-((-e) ** t)) : NaN;
|
|
20
20
|
}
|
|
21
|
-
return
|
|
21
|
+
return d(e ** t);
|
|
22
22
|
}, G = (e = "", t = "") => {
|
|
23
23
|
null === e && (e = ""), null === t && (t = "");
|
|
24
24
|
const n = typeof t;
|
|
25
|
-
"boolean" === typeof e && (e =
|
|
26
|
-
const
|
|
27
|
-
return
|
|
28
|
-
}, H = (e, t = null, n = null) => 0 === e.compare(t, n), X = (e, t = null, n = null) => 0 !== e.compare(t, n),
|
|
25
|
+
"boolean" === typeof e && (e = r(e)), "boolean" === n && (t = r(t));
|
|
26
|
+
const i = "" + e + t;
|
|
27
|
+
return i.length > k.MAX_TEXT_LENGTH ? i.slice(0, k.MAX_TEXT_LENGTH) : i;
|
|
28
|
+
}, H = (e, t = null, n = null) => 0 === e.compare(t, n), X = (e, t = null, n = null) => 0 !== e.compare(t, n), K = (e, t = null, n = null) => e.compare(t, n) > 0, Z = (e, t = null, n = null) => e.compare(t, n) >= 0, q = (e, t = null, n = null) => e.compare(t, n) < 0, Q = (e, t = null, n = null) => e.compare(t, n) <= 0, J = {
|
|
29
29
|
type: $.Number,
|
|
30
30
|
coerce: [$.Boolean, $.String],
|
|
31
31
|
onError: "value",
|
|
32
|
-
misalignValue:
|
|
32
|
+
misalignValue: L.BuiltIn.NA
|
|
33
33
|
}, Y = {
|
|
34
34
|
type: $.String,
|
|
35
35
|
coerce: [$.Boolean, $.Number],
|
|
36
36
|
onError: "value",
|
|
37
|
-
misalignValue:
|
|
37
|
+
misalignValue: L.BuiltIn.NA
|
|
38
38
|
}, ee = {
|
|
39
39
|
onError: "value",
|
|
40
|
-
misalignValue:
|
|
40
|
+
misalignValue: L.BuiltIn.NA
|
|
41
41
|
}, te = (e) => null !== e && "object" == typeof e && !0 === e.isIReferenceRange && 1 === e.size ? e.getValueAt(0, 0) ?? null : e, ne = (e, t, n, r) => {
|
|
42
|
-
if (null !== t && void 0 !== t.colStart && (t = e.getValueAt(t.rowStart, t.colStart, t.scope)) &&
|
|
43
|
-
if (null !== n && void 0 !== n.colStart && (n = e.getValueAt(n.rowStart, n.colStart, n.scope)) &&
|
|
42
|
+
if (null !== t && void 0 !== t.colStart && (t = e.getValueAt(t.rowStart, t.colStart, t.scope)) && L.isError(t)) return t;
|
|
43
|
+
if (null !== n && void 0 !== n.colStart && (n = e.getValueAt(n.rowStart, n.colStart, n.scope)) && L.isError(n)) return n;
|
|
44
44
|
if (t = te(t), n = te(n), "number" == typeof t && "number" == typeof n) return r(t, n);
|
|
45
45
|
let i, l;
|
|
46
46
|
if (t?.isIRange ? i = t : n?.isIRange && (l = n), !i && !l) {
|
|
47
47
|
const i = e.getRuntime();
|
|
48
|
-
return t =
|
|
48
|
+
return t = b(i, t, a(t, !0), $.Number, !0), n = b(i, n, a(n, !0), $.Number, !0), t && L.isError(t) ? t : n && L.isError(n) ? n : r(t, n);
|
|
49
49
|
}
|
|
50
50
|
const s = !i, o = s ? t : n;
|
|
51
|
-
return (i ?? l).broadcast(o, (t, n) => t &&
|
|
51
|
+
return (i ?? l).broadcast(o, (t, n) => t && L.isError(t) ? t : n && L.isError(n) ? n : v(s ? r(n, t) : r(t, n), e), J).fillEmpty(0);
|
|
52
52
|
}, re = (e, t, n, r) => {
|
|
53
|
-
if (
|
|
54
|
-
if (B(t) || B(n)) return
|
|
55
|
-
if (null !== t && void 0 !== t.colStart && (t = e.getValueAt(t.rowStart, t.colStart, t.scope)) &&
|
|
56
|
-
if (null !== n && void 0 !== n.colStart && (n = e.getValueAt(n.rowStart, n.colStart, n.scope)) &&
|
|
53
|
+
if (S(t) || S(n)) return L.BuiltIn.Value;
|
|
54
|
+
if (B(t) || B(n)) return L.BuiltIn.Value;
|
|
55
|
+
if (null !== t && void 0 !== t.colStart && (t = e.getValueAt(t.rowStart, t.colStart, t.scope)) && L.isError(t)) return t;
|
|
56
|
+
if (null !== n && void 0 !== n.colStart && (n = e.getValueAt(n.rowStart, n.colStart, n.scope)) && L.isError(n)) return n;
|
|
57
57
|
let i, l;
|
|
58
58
|
t = te(t), n = te(n);
|
|
59
59
|
let s = !1;
|
|
60
|
-
return t?.isIRange ? (i = t, l = n) : n?.isIRange && (i = n, l = t, s = !0), i ? i.broadcast(l, (t, n) => t &&
|
|
60
|
+
return t?.isIRange ? (i = t, l = n) : n?.isIRange && (i = n, l = t, s = !0), i ? i.broadcast(l, (t, n) => t && L.isError(t) ? t : n && L.isError(n) ? n : (t = ie(t), n = ie(n), s ? r(e, n, t) : r(e, t, n)), ee) : L.isError(t) ? t : L.isError(n) ? n : r(e, ie(t), ie(n));
|
|
61
61
|
}, ie = (e) => {
|
|
62
62
|
if (!0 !== e?.isIRichData) return e;
|
|
63
63
|
const t = e.toPrimitive?.();
|
|
64
64
|
return null == t ? e : t;
|
|
65
65
|
}, le = (e, t, n) => {
|
|
66
|
-
if (null == n && (n = 0), null !== n && void 0 !== n.colStart && (n = e.getValueAt(n.rowStart, n.colStart, n.scope)) &&
|
|
66
|
+
if (null == n && (n = 0), null !== n && void 0 !== n.colStart && (n = e.getValueAt(n.rowStart, n.colStart, n.scope)) && L.isError(n)) return n;
|
|
67
67
|
n = te(n);
|
|
68
68
|
let r, i = 1;
|
|
69
69
|
if ("+" === t) return n;
|
|
70
|
-
if ("-" !== t) throw new
|
|
70
|
+
if ("-" !== t) throw new L.Value(`Unrecognized prefix: ${t}`);
|
|
71
71
|
if (i = -i, n?.isIRange && (r = n), !r) {
|
|
72
72
|
const t = e.getRuntime();
|
|
73
|
-
return "number" != typeof (n =
|
|
73
|
+
return "number" != typeof (n = b(t, n, a(n, !0), $.Number, !0)) ? L.BuiltIn.Value : n * i;
|
|
74
74
|
}
|
|
75
|
-
return r.broadcast(i, (e, t) => e &&
|
|
76
|
-
}, se = (e) => e.getCode() <=
|
|
77
|
-
if (
|
|
78
|
-
if (n &&
|
|
79
|
-
if (!t) return
|
|
80
|
-
if (t.isIReferenceRange && n && !n.isIReferenceRange ? n = e.getReference(n) : n && n.isIReferenceRange && t && !t.isIReferenceRange && (t = e.getReference(t)), t.isIReferenceRange && (t = t.getCoords()), void 0 === t.colStart) return
|
|
81
|
-
if (n.isIReferenceRange && (n = n.getCoords()), void 0 === n.colStart) return
|
|
75
|
+
return r.broadcast(i, (e, t) => e && L.isError(e) ? e : t && L.isError(t) ? t : U(e, t), J);
|
|
76
|
+
}, se = (e) => e.getCode() <= L.Code.NA ? e : L.BuiltIn.Value, oe = (e, t, n, r, i) => {
|
|
77
|
+
if (L.isError(t)) return se(t);
|
|
78
|
+
if (n && L.isError(n)) return se(n);
|
|
79
|
+
if (!t) return L.BuiltIn.Ref;
|
|
80
|
+
if (t.isIReferenceRange && n && !n.isIReferenceRange ? n = e.getReference(n) : n && n.isIReferenceRange && t && !t.isIReferenceRange && (t = e.getReference(t)), t.isIReferenceRange && (t = t.getCoords()), void 0 === t.colStart) return L.BuiltIn.Value;
|
|
81
|
+
if (n.isIReferenceRange && (n = n.getCoords()), void 0 === n.colStart) return L.BuiltIn.Value;
|
|
82
82
|
const l = t.scope ? "either" !== i || n.scope ? null : t : n;
|
|
83
83
|
if (l?.scope) {
|
|
84
84
|
const t = e.getReference(l);
|
|
85
|
-
if (
|
|
86
|
-
if (e.getSheetIndex() !== e.getSheetIndex(t)) return
|
|
85
|
+
if (L.isError(t)) return t;
|
|
86
|
+
if (e.getSheetIndex() !== e.getSheetIndex(t)) return L.BuiltIn.Value;
|
|
87
87
|
}
|
|
88
88
|
const s = r(t, n);
|
|
89
|
-
return
|
|
89
|
+
return L.isError(s) ? s : s ? e.getReference(s) : L.BuiltIn.Null;
|
|
90
90
|
}, ae = {
|
|
91
91
|
"+": (e, t, n) => ne(e, t, n, z),
|
|
92
92
|
"-": (e, t, n) => ne(e, t, n, D),
|
|
93
93
|
"*": (e, t, n) => ne(e, t, n, U),
|
|
94
94
|
"/": (e, t, n) => ne(e, t, n, _),
|
|
95
95
|
"^": (e, t, n) => ne(e, t, n, j),
|
|
96
|
-
" ": (e, t, n,
|
|
97
|
-
":": (e, t, n, r) => oe(e, t, n,
|
|
96
|
+
" ": (e, t, n, r) => oe(e, t, n, u, "either"),
|
|
97
|
+
":": (e, t, n, r) => oe(e, t, n, g, "start"),
|
|
98
98
|
".:.": (e, t, n, r) => {
|
|
99
|
-
const i = oe(e, t, n,
|
|
99
|
+
const i = oe(e, t, n, g, "start");
|
|
100
100
|
return e.getFunction("TRIMRANGE").execute(i, 3, 3);
|
|
101
101
|
},
|
|
102
102
|
".:": (e, t, n, r) => {
|
|
103
|
-
const i = oe(e, t, n,
|
|
103
|
+
const i = oe(e, t, n, g, "start");
|
|
104
104
|
return e.getFunction("TRIMRANGE").execute(i, 1, 1);
|
|
105
105
|
},
|
|
106
106
|
":.": (e, t, n, r) => {
|
|
107
|
-
const i = oe(e, t, n,
|
|
107
|
+
const i = oe(e, t, n, g, "start");
|
|
108
108
|
return e.getFunction("TRIMRANGE").execute(i, 2, 2);
|
|
109
109
|
},
|
|
110
110
|
"&": (e, t, n) => ((e, t, n, r) => {
|
|
111
|
-
if (null !== t && void 0 !== t.colStart && (t = e.getValueAt(t.rowStart, t.colStart, t.scope)) &&
|
|
112
|
-
if (null !== n && void 0 !== n.colStart && (n = e.getValueAt(n.rowStart, n.colStart, n.scope)) &&
|
|
111
|
+
if (null !== t && void 0 !== t.colStart && (t = e.getValueAt(t.rowStart, t.colStart, t.scope)) && L.isError(t)) return t;
|
|
112
|
+
if (null !== n && void 0 !== n.colStart && (n = e.getValueAt(n.rowStart, n.colStart, n.scope)) && L.isError(n)) return n;
|
|
113
113
|
if (t = te(t), n = te(n), "string" == typeof t && "string" == typeof n) return r(t, n);
|
|
114
114
|
let i, l;
|
|
115
115
|
if (t?.isIRange ? i = t : n?.isIRange && (l = n), !i && !l) {
|
|
116
116
|
const i = e.getRuntime();
|
|
117
|
-
return t =
|
|
117
|
+
return t = b(i, t, a(t, !0), $.String, !1), n = b(i, n, a(n, !0), $.String, !1), L.isError(t) ? t : L.isError(n) ? n : r(t, n);
|
|
118
118
|
}
|
|
119
119
|
const s = !i, o = s ? t : n;
|
|
120
|
-
return (i ?? l).broadcast(o, (e, t) => e &&
|
|
120
|
+
return (i ?? l).broadcast(o, (e, t) => e && L.isError(e) ? e : t && L.isError(t) ? t : s ? r(t, e) : r(e, t), Y);
|
|
121
121
|
})(e, t, n, G),
|
|
122
122
|
"=": (e, t, n) => re(e, t, n, H),
|
|
123
123
|
"<>": (e, t, n) => re(e, t, n, X),
|
|
124
|
-
">": (e, t, n) => re(e, t, n,
|
|
125
|
-
"<": (e, t, n) => re(e, t, n,
|
|
126
|
-
">=": (e, t, n) => re(e, t, n,
|
|
127
|
-
"<=": (e, t, n) => re(e, t, n,
|
|
124
|
+
">": (e, t, n) => re(e, t, n, K),
|
|
125
|
+
"<": (e, t, n) => re(e, t, n, q),
|
|
126
|
+
">=": (e, t, n) => re(e, t, n, Z),
|
|
127
|
+
"<=": (e, t, n) => re(e, t, n, Q)
|
|
128
128
|
}, ue = {
|
|
129
|
-
"+": (e, t, n) => ne(e, t, n,
|
|
130
|
-
"-": (e, t, n) => ne(e, t, n,
|
|
129
|
+
"+": (e, t, n) => ne(e, t, n, M),
|
|
130
|
+
"-": (e, t, n) => ne(e, t, n, W)
|
|
131
131
|
}, ce = {
|
|
132
132
|
"-": (e, t) => le(e, "-", t),
|
|
133
133
|
"+": (e, t) => le(e, "+", t),
|
|
@@ -136,16 +136,16 @@ var z = (e, t) => e + t, D = (e, t) => e - t, W = (e, t) => u(e + t, e), M = (e,
|
|
|
136
136
|
const n = t;
|
|
137
137
|
if (!t.isIReferenceRange) return n.getValueAt(0, 0);
|
|
138
138
|
const r = t.getCoords(), i = n.getRowCount(), l = n.getColumnCount(), s = e.getRow() - r.rowStart, o = e.getColumn() - r.colStart, a = s >= 0 && s < i, u = o >= 0 && o < l;
|
|
139
|
-
return a && u ? n.getValueAt(s, o) : a && 1 === l ? n.getValueAt(s, 0) : u && 1 === i ? n.getValueAt(0, o) : 1 === i && 1 === l ? n.getValueAt(0, 0) :
|
|
139
|
+
return a && u ? n.getValueAt(s, o) : a && 1 === l ? n.getValueAt(s, 0) : u && 1 === i ? n.getValueAt(0, o) : 1 === i && 1 === l ? n.getValueAt(0, 0) : L.BuiltIn.Value;
|
|
140
140
|
}
|
|
141
141
|
}, fe = {
|
|
142
142
|
"%": (e, t) => ne(e, t, 100, _),
|
|
143
143
|
"#": (e, t) => {
|
|
144
|
-
if (
|
|
145
|
-
if (!t) return
|
|
146
|
-
if (t.isIReferenceRange && (t = t.getCoords()), void 0 === t.colStart) return
|
|
147
|
-
if (t.rowStart !== t.rowEnd || t.colStart !== t.colEnd) return
|
|
148
|
-
return e.getSpillAt(t.rowStart, t.colStart, t.scope) ||
|
|
144
|
+
if (L.isError(t)) return se(t);
|
|
145
|
+
if (!t) return L.BuiltIn.Ref;
|
|
146
|
+
if (t.isIReferenceRange && (t = t.getCoords()), void 0 === t.colStart) return L.BuiltIn.Value;
|
|
147
|
+
if (t.rowStart !== t.rowEnd || t.colStart !== t.colEnd) return L.BuiltIn.Ref;
|
|
148
|
+
return e.getSpillAt(t.rowStart, t.colStart, t.scope) || L.BuiltIn.Ref;
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
function pe(e, t) {
|
|
@@ -165,38 +165,38 @@ var de = class {
|
|
|
165
165
|
value: null,
|
|
166
166
|
inputs: null
|
|
167
167
|
};
|
|
168
|
-
if (this.references.set(e, t), n ===
|
|
168
|
+
if (this.references.set(e, t), n === c.Cell) {
|
|
169
169
|
const n = e.value;
|
|
170
170
|
n.$colIndex && (t.hasHorizontalAbs = !0), n.$rowIndex && (t.hasVerticalAbs = !0), t.value = this.cells.size, this.cells.set(e, this.cells.size), this.rootReferences.add(t), e.referenceIndex = this.referenceIndices.length, this.referenceIndices.push(t.index);
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
|
-
if (n ===
|
|
173
|
+
if (n === c.Infix || n === c.Prefix || n === c.Postfix || n === c.List) {
|
|
174
174
|
const n = e.inputs || [], r = n.length, i = e.value;
|
|
175
175
|
t.op = i;
|
|
176
|
-
const l =
|
|
176
|
+
const l = R(r);
|
|
177
177
|
t.inputs = l;
|
|
178
178
|
for (let e = 0; e < r; e++) {
|
|
179
179
|
const r = n[e], i = this.references.get(r);
|
|
180
180
|
i ? (i.hasHorizontalAbs && (t.hasHorizontalAbs = !0), i.hasVerticalAbs && (t.hasVerticalAbs = !0), l[e] = i.index) : l[e] = -1, i && this.rootReferences.delete(i);
|
|
181
181
|
}
|
|
182
|
-
if (this.rootReferences.add(t),
|
|
183
|
-
const r = n[0], i = !!r && r.type ===
|
|
182
|
+
if (this.rootReferences.add(t), Ke.includes(i)) {
|
|
183
|
+
const r = n[0], i = !!r && r.type === c.Cell, l = n[1], s = !!l && l.type === c.Cell;
|
|
184
184
|
i && s && void 0 !== l.referenceIndex && void 0 !== r.referenceIndex && (this.referenceIndices.splice(l.referenceIndex, 1), l.referenceIndex = r.referenceIndex, e.referenceIndex = r.referenceIndex, this.referenceIndices[r.referenceIndex] = t.index);
|
|
185
185
|
} else "#" === i && n[0] && (e.referenceIndex = n[0].referenceIndex);
|
|
186
186
|
return;
|
|
187
187
|
}
|
|
188
|
-
if (n ===
|
|
189
|
-
const r = n ===
|
|
188
|
+
if (n === c.Error || n === c.Named) {
|
|
189
|
+
const r = n === c.Named ? e.value.nameId : x(e.value);
|
|
190
190
|
let i = this.names.get(r);
|
|
191
191
|
t.op = n, void 0 === i && (i = this.names.size, this.names.set(r, i)), t.value = i, this.rootReferences.add(t), e.referenceIndex = this.referenceIndices.length, this.referenceIndices.push(t.index);
|
|
192
192
|
return;
|
|
193
193
|
}
|
|
194
|
-
if (n ===
|
|
194
|
+
if (n === c.TableReference) return t.op = n, this.rootReferences.add(t), e.referenceIndex = this.referenceIndices.length, void this.referenceIndices.push(t.index);
|
|
195
195
|
} else if (t && t.isReference) {
|
|
196
196
|
const t = {
|
|
197
197
|
node: e,
|
|
198
198
|
index: this.references.size,
|
|
199
|
-
op:
|
|
199
|
+
op: c.Function,
|
|
200
200
|
value: e.value,
|
|
201
201
|
inputs: null
|
|
202
202
|
};
|
|
@@ -204,21 +204,21 @@ var de = class {
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
function ge(
|
|
208
|
-
const l = [],
|
|
209
|
-
const
|
|
210
|
-
type:
|
|
211
|
-
value:
|
|
207
|
+
function ge(e, t = !1, r = A) {
|
|
208
|
+
const l = [], s = /* @__PURE__ */ new Set(), o = (e, n, r) => {
|
|
209
|
+
const i = {
|
|
210
|
+
type: e.type,
|
|
211
|
+
value: e.type === c.Error ? f(e.value) : e.value
|
|
212
212
|
};
|
|
213
|
-
void 0 !==
|
|
214
|
-
const
|
|
215
|
-
return "string" == typeof
|
|
216
|
-
})(
|
|
217
|
-
const
|
|
218
|
-
return void 0 !==
|
|
219
|
-
},
|
|
213
|
+
void 0 !== e.image && (i.text = ((e) => {
|
|
214
|
+
const n = t ? e.value?.scopeImage : void 0;
|
|
215
|
+
return "string" == typeof n ? n : "";
|
|
216
|
+
})(e) + e.image);
|
|
217
|
+
const o = e.evalIndex ?? r;
|
|
218
|
+
return void 0 !== o && (i.evalIndex = o), n && (i.context = n), void 0 !== e.referenceIndex && (i.referenceIndex = e.referenceIndex), e.isReference && s.add(i), l.push(i), i;
|
|
219
|
+
}, a = (e, t, n, r, i) => {
|
|
220
220
|
if (null == t) return;
|
|
221
|
-
if (l.length > 1 && e ===
|
|
221
|
+
if (l.length > 1 && e === c.Whitespace && l[l.length - 1].type === c.Whitespace) return;
|
|
222
222
|
const s = {
|
|
223
223
|
type: e,
|
|
224
224
|
value: t,
|
|
@@ -226,251 +226,251 @@ function ge(t, r = !1, i = x) {
|
|
|
226
226
|
};
|
|
227
227
|
void 0 !== r && (s.evalIndex = r), n && (s.context = n), l.push(s);
|
|
228
228
|
};
|
|
229
|
-
(function e(
|
|
230
|
-
const
|
|
229
|
+
(function e(u, f, p) {
|
|
230
|
+
const d = u.evalIndex ?? p ?? 0, g = u.type, v = (t, n, i) => {
|
|
231
231
|
if (!t) return;
|
|
232
232
|
const l = t.length;
|
|
233
|
-
for (let s = 0; s < l; s++) e(t[s], n,
|
|
233
|
+
for (let s = 0; s < l; s++) e(t[s], n, i), s < l - 1 && a(c.Separator, ",", n, i, r.separatorFunction);
|
|
234
234
|
};
|
|
235
|
-
if (
|
|
236
|
-
if (
|
|
237
|
-
|
|
238
|
-
const
|
|
239
|
-
for (let
|
|
240
|
-
const l =
|
|
235
|
+
if (u.isLiteral) {
|
|
236
|
+
if (a(c.Whitespace, u.wsBefore, f, d), g === c.Array) {
|
|
237
|
+
a(c.Type, "{", f, d);
|
|
238
|
+
const t = u.value, n = t.length;
|
|
239
|
+
for (let i = 0; i < n; i++) {
|
|
240
|
+
const l = t[i], s = l.value, o = s.length;
|
|
241
241
|
for (let t = 0; t < o; t++) {
|
|
242
242
|
const n = s[t];
|
|
243
|
-
|
|
243
|
+
a(c.Whitespace, n.wsBefore, f, d), e(n, f, d), a(c.Whitespace, n.wsAfter, f, d), t < o - 1 && a(c.Separator, ",", f, d, r.separatorColumn);
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
i < n - 1 && (a(c.Whitespace, l.wsBefore, f, d), a(c.Separator, ";", f, d, r.separatorRow), a(c.Whitespace, l.wsAfter, f, d));
|
|
246
246
|
}
|
|
247
|
-
|
|
248
|
-
} else
|
|
249
|
-
type:
|
|
250
|
-
value: "\"" + `${
|
|
251
|
-
image:
|
|
252
|
-
},
|
|
253
|
-
|
|
254
|
-
} else if (
|
|
255
|
-
else if (
|
|
256
|
-
else if (
|
|
257
|
-
|
|
258
|
-
const
|
|
259
|
-
"#" ===
|
|
247
|
+
u.error || a(c.Type, "}", f, d);
|
|
248
|
+
} else g === c.String ? (u = {
|
|
249
|
+
type: g,
|
|
250
|
+
value: "\"" + `${u.value}`.replace(/"/g, "\"\"") + "\"",
|
|
251
|
+
image: u.image
|
|
252
|
+
}, o(u, f, d)) : o(u, f, d);
|
|
253
|
+
a(c.Whitespace, u.wsAfter, f, d);
|
|
254
|
+
} else if (g === c.Infix) e(u.inputs[0], f, d), a(c.Whitespace, u.wsBefore, f, d), o(u, f, d), a(c.Whitespace, u.wsAfter, f, d), e(u.inputs[1], f, d);
|
|
255
|
+
else if (g === c.Prefix) a(c.Whitespace, u.wsBefore, f, d), o(u, f, d), a(c.Whitespace, u.wsAfter, f, d), u.inputs && e(u.inputs[0], f, d);
|
|
256
|
+
else if (g === c.Postfix) {
|
|
257
|
+
u.inputs?.[0] && e(u.inputs[0], f, d), a(c.Whitespace, u.wsBefore, f, d);
|
|
258
|
+
const t = o(u, f, d), n = l[l.length - 2];
|
|
259
|
+
"#" === u.value && void 0 !== t.text && !u.wsBefore && s.has(n) && (n.text = (n.text ?? "") + t.text, t.text = ""), a(c.Whitespace, u.wsAfter, f, d);
|
|
260
260
|
} else {
|
|
261
|
-
|
|
262
|
-
const
|
|
263
|
-
switch (
|
|
264
|
-
case
|
|
265
|
-
const
|
|
266
|
-
type:
|
|
267
|
-
value:
|
|
268
|
-
text:
|
|
269
|
-
evalIndex:
|
|
261
|
+
a(c.Whitespace, u.wsBefore, f, d);
|
|
262
|
+
const p = u.inputs;
|
|
263
|
+
switch (g) {
|
|
264
|
+
case c.Function: {
|
|
265
|
+
const t = String(u.value), n = {
|
|
266
|
+
type: c.Function,
|
|
267
|
+
value: t,
|
|
268
|
+
text: u.image ?? t,
|
|
269
|
+
evalIndex: u.evalIndex
|
|
270
270
|
};
|
|
271
|
-
|
|
272
|
-
const
|
|
273
|
-
name:
|
|
271
|
+
f && (n.context = f), l.push(n);
|
|
272
|
+
const i = {
|
|
273
|
+
name: t,
|
|
274
274
|
argIndex: -1,
|
|
275
|
-
type:
|
|
275
|
+
type: u.binder?.kind ?? "function"
|
|
276
276
|
};
|
|
277
|
-
if (
|
|
278
|
-
const
|
|
279
|
-
let
|
|
280
|
-
for (let
|
|
281
|
-
const
|
|
282
|
-
if (
|
|
283
|
-
const e =
|
|
284
|
-
|
|
277
|
+
if (f?.bound && (i.bound = f.bound), a(c.Paren, "(", i, u.evalIndex), p) {
|
|
278
|
+
const t = p.length, n = u.binder?.kind, l = "lambda" === n ? 1 : "let" === n ? 2 : 0;
|
|
279
|
+
let s = i.bound;
|
|
280
|
+
for (let o = 0; o < t; o++) {
|
|
281
|
+
const u = l && o >= l ? p[o - l] : void 0;
|
|
282
|
+
if (u?.binding?.declaration) {
|
|
283
|
+
const e = u.value.nameId, t = "let" === n ? bt(p[o - 1]) : void 0;
|
|
284
|
+
s = It(s, t ? {
|
|
285
285
|
name: e,
|
|
286
|
-
params:
|
|
286
|
+
params: t
|
|
287
287
|
} : { name: e });
|
|
288
288
|
}
|
|
289
|
-
const
|
|
290
|
-
...
|
|
291
|
-
argIndex:
|
|
289
|
+
const f = {
|
|
290
|
+
...i,
|
|
291
|
+
argIndex: o
|
|
292
292
|
};
|
|
293
|
-
|
|
293
|
+
s && (f.bound = s), e(p[o], f, d), o < t - 1 && a(c.Separator, ",", f, d, r.separatorFunction);
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
|
|
296
|
+
u.error || a(c.Paren, ")", i, u.evalIndex);
|
|
297
297
|
break;
|
|
298
298
|
}
|
|
299
|
-
case
|
|
300
|
-
const
|
|
301
|
-
if (
|
|
302
|
-
const
|
|
303
|
-
|
|
299
|
+
case c.Call: {
|
|
300
|
+
const t = i(u), s = l.length;
|
|
301
|
+
if (t && e(t, f, d), t?.type === c.Named) for (let e = s; e < l.length; e++) {
|
|
302
|
+
const t = l[e];
|
|
303
|
+
t.type !== c.Whitespace && (t.evalIndex = u.evalIndex, t.type === c.Named && (t.type = c.Function, t.value = t.value.name));
|
|
304
304
|
}
|
|
305
|
-
const
|
|
306
|
-
name:
|
|
305
|
+
const o = {
|
|
306
|
+
name: t?.type === c.Named ? t.value.nameId : "",
|
|
307
307
|
argIndex: -1,
|
|
308
308
|
type: "function"
|
|
309
309
|
};
|
|
310
|
-
|
|
311
|
-
const
|
|
312
|
-
for (let t = 0; t <
|
|
310
|
+
f?.bound && (o.bound = f.bound), a(c.Paren, "(", o, u.evalIndex);
|
|
311
|
+
const p = n(u), g = p.length;
|
|
312
|
+
for (let t = 0; t < g; t++) {
|
|
313
313
|
const n = {
|
|
314
|
-
...
|
|
314
|
+
...o,
|
|
315
315
|
argIndex: t
|
|
316
316
|
};
|
|
317
|
-
e(
|
|
317
|
+
e(p[t], n, d), t < g - 1 && a(c.Separator, ",", n, d, r.separatorFunction);
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
u.error || a(c.Paren, ")", o, u.evalIndex);
|
|
320
320
|
break;
|
|
321
321
|
}
|
|
322
|
-
case
|
|
323
|
-
|
|
322
|
+
case c.Cell:
|
|
323
|
+
o(u, f, d);
|
|
324
324
|
break;
|
|
325
|
-
case
|
|
326
|
-
|
|
325
|
+
case c.Paren:
|
|
326
|
+
a(g, "(", f, d), v(p, f, d), u.error || a(g, ")", f, d);
|
|
327
327
|
break;
|
|
328
|
-
case
|
|
329
|
-
const n =
|
|
328
|
+
case c.TableReference: {
|
|
329
|
+
const n = u.value?.tableId ?? "", r = {
|
|
330
330
|
name: n,
|
|
331
331
|
argIndex: -1,
|
|
332
332
|
type: "table"
|
|
333
|
-
},
|
|
334
|
-
let
|
|
335
|
-
if (n &&
|
|
333
|
+
}, i = l.length, o = u.image;
|
|
334
|
+
let g, v = !1;
|
|
335
|
+
if (n && o) {
|
|
336
336
|
let e = 0;
|
|
337
|
-
if (91 ===
|
|
338
|
-
const t =
|
|
339
|
-
-1 !== t && 33 ===
|
|
337
|
+
if (91 === o.charCodeAt(0)) {
|
|
338
|
+
const t = o.indexOf("]");
|
|
339
|
+
-1 !== t && 33 === o.charCodeAt(t + 1) && (e = t + 2);
|
|
340
340
|
}
|
|
341
|
-
const
|
|
342
|
-
if (
|
|
343
|
-
else if (!
|
|
344
|
-
const e =
|
|
345
|
-
|
|
341
|
+
const n = o.indexOf("[", e);
|
|
342
|
+
if (v = 0 === n && null != p, n > 0) g = o.slice(0, n);
|
|
343
|
+
else if (!p) {
|
|
344
|
+
const e = o.lastIndexOf("!");
|
|
345
|
+
g = t || -1 === e ? o : o.slice(e + 1);
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
if (!n ||
|
|
349
|
-
const t =
|
|
348
|
+
if (!n || v && t || a(c.TableReference, n, f, d, g), p && a(c.Paren, "[", r, d), p) {
|
|
349
|
+
const t = p.length;
|
|
350
350
|
for (let n = 0; n < t; n++) {
|
|
351
|
-
const
|
|
352
|
-
...
|
|
351
|
+
const i = {
|
|
352
|
+
...r,
|
|
353
353
|
argIndex: n
|
|
354
354
|
};
|
|
355
|
-
e(
|
|
355
|
+
e(p[n], i, d), n < t - 1 && a(c.Separator, ",", i, d);
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
|
-
|
|
359
|
-
const h =
|
|
360
|
-
for (let e =
|
|
358
|
+
p && !u.error && a(c.Paren, "]", r, d);
|
|
359
|
+
const h = u.referenceIndex;
|
|
360
|
+
for (let e = i; e < l.length; e++) void 0 !== h && (l[e].referenceIndex = h), s.add(l[e]);
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
|
-
case
|
|
364
|
-
case
|
|
365
|
-
const e =
|
|
366
|
-
|
|
367
|
-
const
|
|
368
|
-
table: "table" ===
|
|
369
|
-
name:
|
|
370
|
-
},
|
|
371
|
-
type:
|
|
372
|
-
value:
|
|
373
|
-
text:
|
|
363
|
+
case c.TableSpecifier:
|
|
364
|
+
case c.TableColumn: {
|
|
365
|
+
const e = u.image, t = null != e && e.startsWith("[") && e.endsWith("]");
|
|
366
|
+
t && a(c.Paren, "[", f, d);
|
|
367
|
+
const n = {
|
|
368
|
+
table: "table" === f?.type ? f.name : "",
|
|
369
|
+
name: u.value
|
|
370
|
+
}, r = {
|
|
371
|
+
type: g,
|
|
372
|
+
value: n,
|
|
373
|
+
text: t ? e.slice(1, -1) : e ?? n.name
|
|
374
374
|
};
|
|
375
|
-
void 0 !==
|
|
375
|
+
void 0 !== d && (r.evalIndex = d), f && (r.context = f), l.push(r), t && a(c.Paren, "]", f, d);
|
|
376
376
|
break;
|
|
377
377
|
}
|
|
378
|
-
case
|
|
379
|
-
|
|
378
|
+
case c.List:
|
|
379
|
+
v(p, f, d);
|
|
380
380
|
break;
|
|
381
|
-
case
|
|
382
|
-
const e =
|
|
383
|
-
e.value =
|
|
384
|
-
name:
|
|
385
|
-
scope:
|
|
386
|
-
} : { name:
|
|
381
|
+
case c.Named: {
|
|
382
|
+
const e = o(u, f, d), t = u.value;
|
|
383
|
+
e.value = t.scope ? {
|
|
384
|
+
name: t.nameId,
|
|
385
|
+
scope: t.scope
|
|
386
|
+
} : { name: t.nameId }, u.binding?.declaration && u.binding.optional && (e.value.optional = !0), u.binding && (e.type = c.Parameter, u.binding.declaration && (e.value.declaration = !0)), delete e.referenceIndex;
|
|
387
387
|
break;
|
|
388
388
|
}
|
|
389
|
-
default: void 0 !==
|
|
389
|
+
default: void 0 !== u.value && o(u, f, d), p && p.forEach((t) => e(t, f, d));
|
|
390
390
|
}
|
|
391
|
-
|
|
391
|
+
a(c.Whitespace, u.wsAfter, f, d);
|
|
392
392
|
}
|
|
393
|
-
})(
|
|
394
|
-
const
|
|
395
|
-
for (const e of l) if (e.type ===
|
|
396
|
-
const t =
|
|
397
|
-
t ? t.push(e) :
|
|
393
|
+
})(e);
|
|
394
|
+
const u = /* @__PURE__ */ new Map();
|
|
395
|
+
for (const e of l) if (e.type === c.Cell && void 0 !== e.referenceIndex) {
|
|
396
|
+
const t = u.get(e.referenceIndex);
|
|
397
|
+
t ? t.push(e) : u.set(e.referenceIndex, [e]);
|
|
398
398
|
}
|
|
399
|
-
for (const e of
|
|
400
|
-
const
|
|
399
|
+
for (const e of u.values()) 1 === e.length ? e[0].refSide = "self" : (e[0].refSide = "left", e[e.length - 1].refSide = "right");
|
|
400
|
+
const p = /* @__PURE__ */ new Map();
|
|
401
401
|
for (const e of l) if (void 0 !== e.referenceIndex && void 0 !== e.evalIndex) {
|
|
402
|
-
const t =
|
|
403
|
-
(void 0 === t || e.evalIndex < t) &&
|
|
402
|
+
const t = p.get(e.referenceIndex);
|
|
403
|
+
(void 0 === t || e.evalIndex < t) && p.set(e.referenceIndex, e.evalIndex);
|
|
404
404
|
}
|
|
405
|
-
if (
|
|
405
|
+
if (p.size > 0) {
|
|
406
406
|
for (const e of l) if (void 0 !== e.referenceIndex) {
|
|
407
|
-
const t =
|
|
407
|
+
const t = p.get(e.referenceIndex);
|
|
408
408
|
void 0 !== t && (e.evalIndex = t);
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
return l;
|
|
412
412
|
}
|
|
413
|
-
function ve(e,
|
|
414
|
-
let
|
|
415
|
-
for (let
|
|
416
|
-
const l = e[
|
|
417
|
-
if (s ===
|
|
418
|
-
const e = s ===
|
|
419
|
-
if (e && void 0 !== l.text && !
|
|
420
|
-
const
|
|
421
|
-
|
|
413
|
+
function ve(e, n) {
|
|
414
|
+
let r = "";
|
|
415
|
+
for (let i = 0; i < e.length; i++) {
|
|
416
|
+
const l = e[i], s = l.type;
|
|
417
|
+
if (s === c.Cell || s === c.Named || s === c.Error) {
|
|
418
|
+
const e = s === c.Cell ? l.value?.scope : (c.Named, l.value?.scope ?? void 0), i = s === c.Error ? void 0 !== l.text && E(l.text) : l.text?.includes("!") ?? !1;
|
|
419
|
+
if (e && void 0 !== l.text && !i) {
|
|
420
|
+
const i = n?.resolve(t.Sheet, e)?.toString() ?? e;
|
|
421
|
+
r += p(i) + "!" + l.text;
|
|
422
422
|
continue;
|
|
423
423
|
}
|
|
424
|
-
if (s ===
|
|
425
|
-
|
|
424
|
+
if (s === c.Named) {
|
|
425
|
+
r += l.text ?? l.value?.name ?? "";
|
|
426
426
|
continue;
|
|
427
427
|
}
|
|
428
428
|
}
|
|
429
|
-
if (s ===
|
|
430
|
-
|
|
429
|
+
if (s === c.Parameter) {
|
|
430
|
+
r += l.text ?? l.value?.name ?? "";
|
|
431
431
|
continue;
|
|
432
432
|
}
|
|
433
433
|
const o = l.text ?? l.value;
|
|
434
|
-
"string" == typeof o && (
|
|
434
|
+
"string" == typeof o && (r += o);
|
|
435
435
|
}
|
|
436
|
-
return
|
|
436
|
+
return r;
|
|
437
437
|
}
|
|
438
438
|
function he(e, t) {
|
|
439
439
|
let n;
|
|
440
|
-
if (
|
|
440
|
+
if (h(e, (e) => {
|
|
441
441
|
e.evalIndex === t && (n = e);
|
|
442
442
|
}), !n) return [];
|
|
443
443
|
const r = ge(n);
|
|
444
|
-
return r.length > 1 && r[0].type ===
|
|
444
|
+
return r.length > 1 && r[0].type === c.Whitespace && r.shift(), r.length > 1 && r[r.length - 1].type === c.Whitespace && r.pop(), r;
|
|
445
445
|
}
|
|
446
446
|
function me(e) {
|
|
447
|
-
return
|
|
448
|
-
if (e.type !==
|
|
447
|
+
return h(e, (e) => {
|
|
448
|
+
if (e.type !== c.TableReference) return;
|
|
449
449
|
const t = function(e) {
|
|
450
450
|
if (null !== e.value && "object" == typeof e.value) return e.value;
|
|
451
451
|
const t = e.value, n = e.inputs;
|
|
452
452
|
let r = !1, i = !1, l = !1, s = !1, o = null, a = null, u = !1;
|
|
453
|
-
const
|
|
454
|
-
e?.type ===
|
|
453
|
+
const f = (e) => {
|
|
454
|
+
e?.type === c.TableColumn && (o = e.value, a = e.value);
|
|
455
455
|
};
|
|
456
456
|
if (n) for (const e of n) {
|
|
457
457
|
const t = e.type;
|
|
458
|
-
if (t ===
|
|
458
|
+
if (t === c.TableSpecifier) {
|
|
459
459
|
const t = e.value.toUpperCase().trim();
|
|
460
460
|
"#ALL" === t ? i = !0 : "#HEADERS" === t ? l = !0 : "#TOTALS" === t ? s = !0 : "#DATA" === t ? r = !0 : "@" !== t && "#THIS ROW" !== t || (u = !0);
|
|
461
|
-
} else if (t ===
|
|
462
|
-
else if (t ===
|
|
461
|
+
} else if (t === c.TableColumn) f(e);
|
|
462
|
+
else if (t === c.Infix && ":" === e.value) {
|
|
463
463
|
const t = e.inputs?.[0], n = e.inputs?.[1];
|
|
464
|
-
t?.type ===
|
|
465
|
-
} else if (t ===
|
|
464
|
+
t?.type === c.TableColumn && (o = t.value), n?.type === c.TableColumn && (a = n.value);
|
|
465
|
+
} else if (t === c.Prefix && "@" === e.value) {
|
|
466
466
|
u = !0;
|
|
467
467
|
const t = e.inputs?.[0];
|
|
468
|
-
t?.type ===
|
|
468
|
+
t?.type === c.Infix && ":" === t.value ? (t.inputs?.[0]?.type === c.TableColumn && (o = t.inputs[0].value), t.inputs?.[1]?.type === c.TableColumn && (a = t.inputs[1].value)) : f(t);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
return {
|
|
472
472
|
tableId: t,
|
|
473
|
-
spec:
|
|
473
|
+
spec: m(i, l, r, s),
|
|
474
474
|
columnFromId: o,
|
|
475
475
|
columnToId: a,
|
|
476
476
|
isThisRow: u
|
|
@@ -482,40 +482,40 @@ function me(e) {
|
|
|
482
482
|
};
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
function ye(
|
|
486
|
-
return
|
|
487
|
-
if (
|
|
488
|
-
const
|
|
489
|
-
if (!
|
|
490
|
-
if (-1 ===
|
|
491
|
-
const
|
|
492
|
-
let
|
|
493
|
-
for (const e of
|
|
494
|
-
if (e.type ===
|
|
495
|
-
e.type !==
|
|
485
|
+
function ye(t) {
|
|
486
|
+
return h(t, (t) => {
|
|
487
|
+
if (t.type !== c.TableReference) return;
|
|
488
|
+
const n = t.inputs;
|
|
489
|
+
if (!n) return;
|
|
490
|
+
if (-1 === n.findIndex((e) => e.type === c.TableSpecifier && "#THIS ROW" === e.value.toUpperCase().trim())) return;
|
|
491
|
+
const r = [];
|
|
492
|
+
let i;
|
|
493
|
+
for (const e of n) {
|
|
494
|
+
if (e.type === c.TableSpecifier && "#THIS ROW" === e.value.toUpperCase().trim()) continue;
|
|
495
|
+
e.type !== c.TableColumn && (e.type !== c.Infix || ":" !== e.value) || i ? r.push(e) : i = e;
|
|
496
496
|
}
|
|
497
|
-
if (!
|
|
498
|
-
type:
|
|
497
|
+
if (!i) return r.push({
|
|
498
|
+
type: c.Prefix,
|
|
499
499
|
value: "@",
|
|
500
500
|
inputs: null,
|
|
501
501
|
isReference: !0
|
|
502
502
|
}), {
|
|
503
|
-
...
|
|
504
|
-
inputs:
|
|
503
|
+
...t,
|
|
504
|
+
inputs: r
|
|
505
505
|
};
|
|
506
|
-
const
|
|
507
|
-
...
|
|
508
|
-
image:
|
|
509
|
-
} :
|
|
510
|
-
return
|
|
511
|
-
...
|
|
512
|
-
inputs:
|
|
506
|
+
const l = i.image ?? i.value, s = l.startsWith("[") && l.endsWith("]") ? {
|
|
507
|
+
...i,
|
|
508
|
+
image: l.slice(1, -1)
|
|
509
|
+
} : i;
|
|
510
|
+
return r.push(e("@", s, !0)), {
|
|
511
|
+
...t,
|
|
512
|
+
inputs: r
|
|
513
513
|
};
|
|
514
514
|
});
|
|
515
515
|
}
|
|
516
516
|
function Ie(e) {
|
|
517
|
-
return
|
|
518
|
-
if (e.type !==
|
|
517
|
+
return h(e, (e) => {
|
|
518
|
+
if (e.type !== c.TableReference) return;
|
|
519
519
|
if (0 !== e.inputs?.length || e.error) return;
|
|
520
520
|
const t = e.value;
|
|
521
521
|
return ("string" == typeof t ? t : t?.tableId) ? {
|
|
@@ -525,8 +525,8 @@ function Ie(e) {
|
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
527
|
function be(e) {
|
|
528
|
-
return
|
|
529
|
-
if (e.type !==
|
|
528
|
+
return h(e, (e) => {
|
|
529
|
+
if (e.type !== c.TableReference || !e.inputs) return;
|
|
530
530
|
const t = e.value, n = "string" == typeof t ? t : t?.tableId, r = e.image;
|
|
531
531
|
if (!n || 91 !== r?.charCodeAt(0)) return;
|
|
532
532
|
const i = r.indexOf("]");
|
|
@@ -536,7 +536,7 @@ function be(e) {
|
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
538
|
var xe = (e) => {
|
|
539
|
-
if (e?.type !==
|
|
539
|
+
if (e?.type !== c.TableSpecifier) return 4;
|
|
540
540
|
switch (e.value.toUpperCase().trim()) {
|
|
541
541
|
case "#ALL": return 0;
|
|
542
542
|
case "#HEADERS": return 1;
|
|
@@ -546,8 +546,8 @@ var xe = (e) => {
|
|
|
546
546
|
}
|
|
547
547
|
};
|
|
548
548
|
function Re(e) {
|
|
549
|
-
return
|
|
550
|
-
if (e.type !==
|
|
549
|
+
return h(e, (e) => {
|
|
550
|
+
if (e.type !== c.TableReference) return;
|
|
551
551
|
const t = e.inputs;
|
|
552
552
|
if (!t || t.length < 2) return;
|
|
553
553
|
const n = t.map((e, t) => ({
|
|
@@ -564,8 +564,8 @@ function Re(e) {
|
|
|
564
564
|
function Ee(e) {
|
|
565
565
|
if (!e) return V.EmptyArray;
|
|
566
566
|
let t = V.EmptyArray;
|
|
567
|
-
return
|
|
568
|
-
if (e.type !==
|
|
567
|
+
return h(e, (e) => {
|
|
568
|
+
if (e.type !== c.Named || e.binding) return;
|
|
569
569
|
const n = e.value.nameId;
|
|
570
570
|
n && (t === V.EmptyArray && (t = []), t.includes(n) || t.push(n));
|
|
571
571
|
}), t;
|
|
@@ -573,12 +573,12 @@ function Ee(e) {
|
|
|
573
573
|
function Te(e, t) {
|
|
574
574
|
if (!e) return V.EmptyArray;
|
|
575
575
|
let n = V.EmptyArray;
|
|
576
|
-
return
|
|
576
|
+
return h(e, (e, r, i) => {
|
|
577
577
|
if (!e.isReference) return;
|
|
578
578
|
if (r?.isReference) return;
|
|
579
579
|
const l = e.type;
|
|
580
|
-
if (l ===
|
|
581
|
-
if (pe(i,
|
|
580
|
+
if (l === c.Named || l === c.Error || l === c.TableReference) return;
|
|
581
|
+
if (pe(i, c.TableReference)) return;
|
|
582
582
|
const s = function(e) {
|
|
583
583
|
let t = e;
|
|
584
584
|
for (; t;) {
|
|
@@ -591,15 +591,15 @@ function Te(e, t) {
|
|
|
591
591
|
let r = e;
|
|
592
592
|
for (let e = t.length - 1; e >= 0; e--) {
|
|
593
593
|
const i = t[e];
|
|
594
|
-
if (i.type ===
|
|
594
|
+
if (i.type === c.Paren || i.isReference) {
|
|
595
595
|
r = i;
|
|
596
596
|
continue;
|
|
597
597
|
}
|
|
598
|
-
if (i.type !==
|
|
598
|
+
if (i.type !== c.Function) return !0;
|
|
599
599
|
const l = n?.(String(i.value));
|
|
600
600
|
if (!l) return !0;
|
|
601
601
|
const s = i.inputs ? i.inputs.indexOf(r) : -1;
|
|
602
|
-
return "p" !== (s >= 0 ?
|
|
602
|
+
return "p" !== (s >= 0 ? Oe(l.getDeclaration().getParameters(), s) : null)?.getRangeType();
|
|
603
603
|
}
|
|
604
604
|
return !0;
|
|
605
605
|
}(e, i, t) && (n === V.EmptyArray && (n = []), n.includes(s) || n.push(s));
|
|
@@ -609,8 +609,8 @@ var Ae = /* @__PURE__ */ new Set(["SUBTOTAL", "AGGREGATE"]);
|
|
|
609
609
|
function Se(e, t) {
|
|
610
610
|
if (!e || !t) return !1;
|
|
611
611
|
let n = !1;
|
|
612
|
-
return
|
|
613
|
-
if (n || e.type !==
|
|
612
|
+
return h(e, (e) => {
|
|
613
|
+
if (n || e.type !== c.Function) return;
|
|
614
614
|
const r = t(e.value)?.getName();
|
|
615
615
|
r && Ae.has(r.toUpperCase()) && (n = !0);
|
|
616
616
|
}), n;
|
|
@@ -618,32 +618,39 @@ function Se(e, t) {
|
|
|
618
618
|
function we(e, t) {
|
|
619
619
|
if (!e || !t) return !1;
|
|
620
620
|
let n = !1;
|
|
621
|
-
return
|
|
622
|
-
n || e.type !==
|
|
621
|
+
return h(e, (e) => {
|
|
622
|
+
n || e.type !== c.Function || "TABLE" === t(e.value)?.getName().toUpperCase() && (n = !0);
|
|
623
|
+
}), n;
|
|
624
|
+
}
|
|
625
|
+
function Ce(e, t) {
|
|
626
|
+
if (!e || !t) return !1;
|
|
627
|
+
let n = !1;
|
|
628
|
+
return h(e, (e) => {
|
|
629
|
+
n || e.type !== c.Function || !0 === t(e.value)?.getDeclaration().getReturnType()?.isVolatile() && (n = !0);
|
|
623
630
|
}), n;
|
|
624
631
|
}
|
|
625
|
-
var
|
|
632
|
+
var Ne = Object.freeze({
|
|
626
633
|
value: !1,
|
|
627
634
|
array: !1
|
|
628
|
-
}),
|
|
635
|
+
}), Fe = (e, t) => {
|
|
629
636
|
const n = function(e, t) {
|
|
630
|
-
if (!e || !t) return
|
|
637
|
+
if (!e || !t) return Ne;
|
|
631
638
|
let n = !1, r = !1;
|
|
632
|
-
return
|
|
639
|
+
return h(e, (e) => {
|
|
633
640
|
if (n) return;
|
|
634
641
|
const i = e.type;
|
|
635
|
-
if (i ===
|
|
636
|
-
if (i ===
|
|
637
|
-
if (i ===
|
|
638
|
-
if (i !==
|
|
642
|
+
if (i === c.Named) return void (void 0 === e.binding && (n = !0));
|
|
643
|
+
if (i === c.Prefix) return void ("@" === e.value && (n = !0));
|
|
644
|
+
if (i === c.Call) return void (n = !0);
|
|
645
|
+
if (i !== c.Function) return;
|
|
639
646
|
if (void 0 !== e.binder) return;
|
|
640
647
|
const l = t(e.value);
|
|
641
648
|
if (!l) return void (n = !0);
|
|
642
649
|
if (r || !0 !== e.implicitIntersect) return;
|
|
643
650
|
const s = l.getDeclaration().getParameters(), o = e.inputs;
|
|
644
651
|
if (o) for (let e = 0; e < o.length; e++) {
|
|
645
|
-
const n =
|
|
646
|
-
if (null !== n && n.isValueOrRange() &&
|
|
652
|
+
const n = Oe(s, e);
|
|
653
|
+
if (null !== n && n.isValueOrRange() && Me(o[e], t)) return void (r = !0);
|
|
647
654
|
}
|
|
648
655
|
}), {
|
|
649
656
|
value: !n && !r,
|
|
@@ -654,33 +661,33 @@ var Ce = Object.freeze({
|
|
|
654
661
|
isBlankCacheable: n.value,
|
|
655
662
|
isBlankCacheableArray: n.array
|
|
656
663
|
};
|
|
657
|
-
},
|
|
664
|
+
}, Pe = (e, t) => {
|
|
658
665
|
const n = e.length;
|
|
659
666
|
if (0 === n) return null;
|
|
660
667
|
if (t < n - 1) return e[t];
|
|
661
668
|
const r = e[n - 1], i = r.getRepeatingTypes();
|
|
662
669
|
return i && 0 !== i.length ? i[(t - (n - 1)) % i.length] : t < n ? e[t] : r.isRest() ? r : null;
|
|
663
670
|
};
|
|
664
|
-
function
|
|
671
|
+
function Le(e) {
|
|
665
672
|
if (!e) return V.EmptyArray;
|
|
666
673
|
let t = V.EmptyArray;
|
|
667
674
|
const n = (e) => {
|
|
668
675
|
e && (t === V.EmptyArray && (t = []), t.includes(e) || t.push(e));
|
|
669
676
|
}, r = (e) => {
|
|
670
|
-
"string" == typeof e && n(
|
|
677
|
+
"string" == typeof e && n(s(e)?.bookId);
|
|
671
678
|
};
|
|
672
|
-
return
|
|
673
|
-
if (e.type ===
|
|
679
|
+
return h(e, (e) => {
|
|
680
|
+
if (e.type === c.Named) {
|
|
674
681
|
if (e.binding) return;
|
|
675
682
|
const t = e.value;
|
|
676
683
|
n(t.nameId), r(t.scope);
|
|
677
|
-
} else if (e.type ===
|
|
684
|
+
} else if (e.type === c.TableReference) {
|
|
678
685
|
const t = e.value;
|
|
679
686
|
n("string" == typeof t ? t : t?.tableId);
|
|
680
|
-
} else if (e.type ===
|
|
687
|
+
} else if (e.type === c.Cell) {
|
|
681
688
|
const t = e.value?.scope;
|
|
682
|
-
r(t),
|
|
683
|
-
} else e.type ===
|
|
689
|
+
r(t), N(t) && n(t);
|
|
690
|
+
} else e.type === c.Error && r(e.value?.scope);
|
|
684
691
|
}), t;
|
|
685
692
|
}
|
|
686
693
|
var ke = (e, t) => {
|
|
@@ -688,14 +695,14 @@ var ke = (e, t) => {
|
|
|
688
695
|
if ("lambda" !== t?.binder?.kind) return !1;
|
|
689
696
|
const n = t.inputs;
|
|
690
697
|
return n[n.length - 1] === e;
|
|
691
|
-
},
|
|
698
|
+
}, $e = /* @__PURE__ */ new Set([
|
|
692
699
|
"IF",
|
|
693
700
|
"IFS",
|
|
694
701
|
"SWITCH",
|
|
695
702
|
"CHOOSE",
|
|
696
703
|
"IFERROR",
|
|
697
704
|
"IFNA"
|
|
698
|
-
]),
|
|
705
|
+
]), Oe = (e, t) => {
|
|
699
706
|
const n = e.length;
|
|
700
707
|
if (0 === n) return null;
|
|
701
708
|
if (t < n) return e[t];
|
|
@@ -703,24 +710,24 @@ var ke = (e, t) => {
|
|
|
703
710
|
if (!r.isRest()) return null;
|
|
704
711
|
const i = r.getRepeatingTypes();
|
|
705
712
|
return i && 0 !== i.length ? i[(t - (n - 1)) % i.length] : r;
|
|
706
|
-
},
|
|
713
|
+
}, Be = (e) => null !== e.getScalarType() && null === e.getRangeType() && null === e.getLambda() && !e.isValueOrRange(), Ve = (e, t, n) => !(e.isRest() || !Be(e) || !Me(t, n)) && !(e.isNoLift() && ze(t, n)), ze = (e, t) => {
|
|
707
714
|
if (!e) return !1;
|
|
708
715
|
const n = e.inputs;
|
|
709
716
|
switch (e.type) {
|
|
710
|
-
case
|
|
711
|
-
case
|
|
712
|
-
case
|
|
713
|
-
case
|
|
714
|
-
case
|
|
715
|
-
case
|
|
716
|
-
case
|
|
717
|
-
case
|
|
718
|
-
case
|
|
717
|
+
case c.Cell:
|
|
718
|
+
case c.Named:
|
|
719
|
+
case c.TableReference: return !0;
|
|
720
|
+
case c.Infix:
|
|
721
|
+
case c.Prefix:
|
|
722
|
+
case c.Postfix: return !0 === e.isReference && "@" !== e.value;
|
|
723
|
+
case c.Paren:
|
|
724
|
+
case c.List: return !!n && 1 === n.length && ze(n[0], t);
|
|
725
|
+
case c.Function: {
|
|
719
726
|
if (void 0 !== e.binder) return !1;
|
|
720
727
|
const r = String(e.value).toUpperCase();
|
|
721
|
-
if (
|
|
728
|
+
if ($e.has(r)) {
|
|
722
729
|
if (!n) return !1;
|
|
723
|
-
for (let e = 0; e < n.length; e++) if (
|
|
730
|
+
for (let e = 0; e < n.length; e++) if (ze(n[e], t)) return !0;
|
|
724
731
|
return !1;
|
|
725
732
|
}
|
|
726
733
|
const i = t?.(e.value);
|
|
@@ -728,54 +735,54 @@ var ke = (e, t) => {
|
|
|
728
735
|
}
|
|
729
736
|
default: return !1;
|
|
730
737
|
}
|
|
731
|
-
},
|
|
738
|
+
}, De = (e, t) => {
|
|
732
739
|
if (!e) return !1;
|
|
733
|
-
for (let n = 0; n < e.length; n++) if (
|
|
740
|
+
for (let n = 0; n < e.length; n++) if (Me(e[n], t)) return !0;
|
|
734
741
|
return !1;
|
|
735
742
|
};
|
|
736
|
-
function
|
|
743
|
+
function Me(e, t) {
|
|
737
744
|
if (!e) return !1;
|
|
738
745
|
if (void 0 !== e.arrayValued) return e.arrayValued;
|
|
739
746
|
let n;
|
|
740
747
|
const r = e.type, i = e.inputs;
|
|
741
748
|
switch (r) {
|
|
742
|
-
case
|
|
749
|
+
case c.Array:
|
|
743
750
|
n = !0;
|
|
744
751
|
break;
|
|
745
|
-
case
|
|
752
|
+
case c.Cell: {
|
|
746
753
|
const t = e.value;
|
|
747
754
|
n = t.rowIndex === Number.MIN_SAFE_INTEGER || t.colIndex === Number.MIN_SAFE_INTEGER;
|
|
748
755
|
break;
|
|
749
756
|
}
|
|
750
|
-
case
|
|
751
|
-
case
|
|
752
|
-
case
|
|
757
|
+
case c.Named:
|
|
758
|
+
case c.Call:
|
|
759
|
+
case c.TableReference:
|
|
753
760
|
n = !0;
|
|
754
761
|
break;
|
|
755
|
-
case
|
|
756
|
-
case
|
|
757
|
-
case
|
|
758
|
-
n = e.isReference ? "@" !== e.value :
|
|
762
|
+
case c.Infix:
|
|
763
|
+
case c.Prefix:
|
|
764
|
+
case c.Postfix:
|
|
765
|
+
n = e.isReference ? "@" !== e.value : De(i, t);
|
|
759
766
|
break;
|
|
760
|
-
case
|
|
761
|
-
case
|
|
762
|
-
n = !i || 1 !== i.length ||
|
|
767
|
+
case c.Paren:
|
|
768
|
+
case c.List:
|
|
769
|
+
n = !i || 1 !== i.length || Me(i[0], t);
|
|
763
770
|
break;
|
|
764
|
-
case
|
|
771
|
+
case c.Function: {
|
|
765
772
|
const r = e.binder;
|
|
766
773
|
if (void 0 !== r) {
|
|
767
|
-
n = "lambda" === r.kind || !!i &&
|
|
774
|
+
n = "lambda" === r.kind || !!i && Me(i[i.length - 1], t);
|
|
768
775
|
break;
|
|
769
776
|
}
|
|
770
777
|
const l = String(e.value).toUpperCase();
|
|
771
|
-
if (
|
|
772
|
-
n =
|
|
778
|
+
if ($e.has(l)) {
|
|
779
|
+
n = De(i, t);
|
|
773
780
|
break;
|
|
774
781
|
}
|
|
775
782
|
if ("INDEX" === l) {
|
|
776
783
|
if (n = !1, i) for (let e = 1; e < i.length; e++) {
|
|
777
784
|
const r = i[e];
|
|
778
|
-
if (!r || r.type ===
|
|
785
|
+
if (!r || r.type === c.Empty || r.isLiteral && 0 === r.value || Me(r, t)) {
|
|
779
786
|
n = !0;
|
|
780
787
|
break;
|
|
781
788
|
}
|
|
@@ -803,17 +810,17 @@ function We(e, t) {
|
|
|
803
810
|
const i = e.inputs;
|
|
804
811
|
if (!i) return;
|
|
805
812
|
const l = e.type;
|
|
806
|
-
if (l ===
|
|
813
|
+
if (l === c.Infix || l === c.Prefix || l === c.Postfix) {
|
|
807
814
|
const t = r && !e.isReference;
|
|
808
815
|
for (let e = 0; e < i.length; e++) n(i[e], t);
|
|
809
816
|
return;
|
|
810
817
|
}
|
|
811
|
-
if (l ===
|
|
818
|
+
if (l === c.Paren || l === c.List) {
|
|
812
819
|
const e = r && 1 === i.length;
|
|
813
820
|
for (let t = 0; t < i.length; t++) n(i[t], e);
|
|
814
821
|
return;
|
|
815
822
|
}
|
|
816
|
-
if (l ===
|
|
823
|
+
if (l === c.Function) {
|
|
817
824
|
const l = e.binder;
|
|
818
825
|
if (void 0 !== l) {
|
|
819
826
|
const e = i.length - 1;
|
|
@@ -822,8 +829,8 @@ function We(e, t) {
|
|
|
822
829
|
}
|
|
823
830
|
const s = r ? t?.(e.value)?.getDeclaration().getParameters() : null;
|
|
824
831
|
for (let e = 0; e < i.length; e++) {
|
|
825
|
-
const t = s ?
|
|
826
|
-
n(i[e], null !== t && (
|
|
832
|
+
const t = s ? Oe(s, e) : null;
|
|
833
|
+
n(i[e], null !== t && (Be(t) || Ge(t)));
|
|
827
834
|
}
|
|
828
835
|
return;
|
|
829
836
|
}
|
|
@@ -831,65 +838,65 @@ function We(e, t) {
|
|
|
831
838
|
};
|
|
832
839
|
n(e, !0);
|
|
833
840
|
}
|
|
834
|
-
var
|
|
841
|
+
var Ue = /* @__PURE__ */ new Set([
|
|
835
842
|
"=",
|
|
836
843
|
"<>",
|
|
837
844
|
"<",
|
|
838
845
|
">",
|
|
839
846
|
"<=",
|
|
840
847
|
">="
|
|
841
|
-
]),
|
|
842
|
-
function
|
|
843
|
-
if (!e || !
|
|
844
|
-
const
|
|
845
|
-
let
|
|
846
|
-
if (
|
|
847
|
-
(e.hasLazyArgs || e.type ===
|
|
848
|
-
}),
|
|
849
|
-
const
|
|
848
|
+
]), _e = /* @__PURE__ */ new Set(["ROW", "COLUMN"]);
|
|
849
|
+
function je(e, t) {
|
|
850
|
+
if (!e || !t) return null;
|
|
851
|
+
const n = (e) => t(e.value)?.getName().toUpperCase() ?? null;
|
|
852
|
+
let r = !1;
|
|
853
|
+
if (h(e, (e) => {
|
|
854
|
+
(e.hasLazyArgs || e.type === c.Call || void 0 !== e.binder) && (r = !0);
|
|
855
|
+
}), r) return null;
|
|
856
|
+
const i = (e) => e.type === c.Number, l = (e) => e.type === c.Number || e.type === c.String || e.type === c.Boolean, s = (e) => {
|
|
850
857
|
if (!e) return !1;
|
|
851
858
|
const t = e.inputs;
|
|
852
859
|
switch (e.type) {
|
|
853
|
-
case
|
|
854
|
-
case
|
|
855
|
-
case
|
|
860
|
+
case c.Paren: return 1 === t?.length && s(t[0]);
|
|
861
|
+
case c.Prefix: return ("-" === e.value || "+" === e.value) && s(t?.[0]);
|
|
862
|
+
case c.Infix: {
|
|
856
863
|
if ("+" !== e.value && "-" !== e.value && "*" !== e.value) return !1;
|
|
857
864
|
const [n, r] = t ?? [];
|
|
858
|
-
return !(!n || !r) && (
|
|
865
|
+
return !(!n || !r) && (s(n) && (s(r) || i(r)) || i(n) && s(r));
|
|
859
866
|
}
|
|
860
|
-
case
|
|
861
|
-
const
|
|
862
|
-
if (null !==
|
|
863
|
-
if ("MOD" ===
|
|
867
|
+
case c.Function: {
|
|
868
|
+
const r = n(e);
|
|
869
|
+
if (null !== r && _e.has(r)) return !t || 0 === t.length || 1 === t.length && t[0]?.type === c.Cell;
|
|
870
|
+
if ("MOD" === r && 2 === t?.length) {
|
|
864
871
|
const e = t[1];
|
|
865
|
-
return
|
|
872
|
+
return s(t[0]) && i(e) && 0 !== e.value;
|
|
866
873
|
}
|
|
867
874
|
return !1;
|
|
868
875
|
}
|
|
869
876
|
}
|
|
870
877
|
return !1;
|
|
871
|
-
},
|
|
878
|
+
}, o = (e) => {
|
|
872
879
|
if (!e) return !1;
|
|
873
880
|
const t = e.inputs;
|
|
874
881
|
switch (e.type) {
|
|
875
|
-
case
|
|
876
|
-
case
|
|
877
|
-
if (!
|
|
882
|
+
case c.Paren: return 1 === t?.length && o(t[0]);
|
|
883
|
+
case c.Infix: {
|
|
884
|
+
if (!Ue.has(e.value)) return !1;
|
|
878
885
|
const [n, r] = t ?? [];
|
|
879
|
-
return !(!n || !r) && (
|
|
886
|
+
return !(!n || !r) && (s(n) && (s(r) || l(r)) || l(n) && s(r));
|
|
880
887
|
}
|
|
881
|
-
case
|
|
882
|
-
const
|
|
888
|
+
case c.Function: {
|
|
889
|
+
const r = n(e);
|
|
883
890
|
if (!t || 0 === t.length) return !1;
|
|
884
|
-
if ("ISODD" ===
|
|
885
|
-
if ("NOT" ===
|
|
886
|
-
if ("AND" ===
|
|
891
|
+
if ("ISODD" === r || "ISEVEN" === r) return 1 === t.length && s(t[0]);
|
|
892
|
+
if ("NOT" === r) return 1 === t.length && o(t[0]);
|
|
893
|
+
if ("AND" === r || "OR" === r || "XOR" === r) {
|
|
887
894
|
let e = !1;
|
|
888
895
|
for (let n = 0; n < t.length; n++) {
|
|
889
896
|
const r = t[n];
|
|
890
897
|
if (!r) return !1;
|
|
891
|
-
if (r.type !==
|
|
892
|
-
if (!
|
|
898
|
+
if (r.type !== c.Boolean) {
|
|
899
|
+
if (!o(r)) return !1;
|
|
893
900
|
e = !0;
|
|
894
901
|
}
|
|
895
902
|
}
|
|
@@ -899,31 +906,31 @@ function _e(e, n) {
|
|
|
899
906
|
}
|
|
900
907
|
}
|
|
901
908
|
return !1;
|
|
902
|
-
},
|
|
909
|
+
}, a = [], u = (e) => {
|
|
903
910
|
if (!e) return;
|
|
904
|
-
if (
|
|
911
|
+
if (o(e)) return void a.push(e);
|
|
905
912
|
const t = e.inputs;
|
|
906
|
-
if (t) for (let e = 0; e < t.length; e++)
|
|
913
|
+
if (t) for (let e = 0; e < t.length; e++) u(t[e]);
|
|
907
914
|
};
|
|
908
|
-
|
|
909
|
-
const f =
|
|
915
|
+
u(e);
|
|
916
|
+
const f = a.length;
|
|
910
917
|
if (0 === f || f > 4) return null;
|
|
911
918
|
const p = [];
|
|
912
|
-
for (let
|
|
913
|
-
const
|
|
914
|
-
const
|
|
915
|
-
if (-1 !==
|
|
916
|
-
const
|
|
917
|
-
return delete
|
|
919
|
+
for (let t = 0; t < 1 << f; t++) {
|
|
920
|
+
const n = (e) => {
|
|
921
|
+
const r = a.indexOf(e);
|
|
922
|
+
if (-1 !== r) return F(t & 1 << r ? "TRUE" : "FALSE");
|
|
923
|
+
const i = { ...e };
|
|
924
|
+
return delete i.evalIndex, delete i.firstCell, delete i.inLazy, delete i.lazyArg, delete i.hasLazyArgs, delete i.deferred, e.inputs && (i.inputs = e.inputs.map((e) => e ? n(e) : e)), i;
|
|
918
925
|
};
|
|
919
|
-
p.push(
|
|
926
|
+
p.push(n(e));
|
|
920
927
|
}
|
|
921
928
|
return p;
|
|
922
929
|
}
|
|
923
|
-
var
|
|
924
|
-
function
|
|
925
|
-
let s, o,
|
|
926
|
-
|
|
930
|
+
var Ge = (e) => "*" === e.getRangeType() && null === e.getLambda() && e.getArrayDepth() <= (e.isRest() ? 1 : 0);
|
|
931
|
+
function He(e, t, n, r = !1, i = null, l = null) {
|
|
932
|
+
let s, o, a = n;
|
|
933
|
+
a = me(a), r || (a = ye(a), a = Re(a), a = Ie(a), a = be(a)), [s, o] = function(e) {
|
|
927
934
|
const t = /* @__PURE__ */ new Map();
|
|
928
935
|
let n = 0;
|
|
929
936
|
const r = [e];
|
|
@@ -937,26 +944,26 @@ function Ge(e, t, n, r = !1, i = null, l = null) {
|
|
|
937
944
|
return t.forEach((e, n) => {
|
|
938
945
|
n && n.inputs && (e.inputs = n.inputs.map((e) => t.get(e) ?? e));
|
|
939
946
|
}), [t.get(e), n];
|
|
940
|
-
}(
|
|
941
|
-
const
|
|
942
|
-
let g,
|
|
947
|
+
}(a);
|
|
948
|
+
const u = R(o), f = [], p = [], d = new de();
|
|
949
|
+
let g, v = !1;
|
|
943
950
|
(function(e, t) {
|
|
944
951
|
if (!e || !t) return;
|
|
945
952
|
const n = (e) => {
|
|
946
953
|
if (!e) return;
|
|
947
|
-
e.inLazy = !0, e.type ===
|
|
954
|
+
e.inLazy = !0, e.type === c.Named && (e.deferredResolve = !0);
|
|
948
955
|
const t = e.inputs;
|
|
949
956
|
if (t) for (let e = 0; e < t.length; e++) n(t[e]);
|
|
950
957
|
};
|
|
951
|
-
|
|
952
|
-
if (e.type !==
|
|
958
|
+
h(e, (e) => {
|
|
959
|
+
if (e.type !== c.Function) return;
|
|
953
960
|
if (void 0 !== e.binder) return;
|
|
954
961
|
const r = e.inputs;
|
|
955
962
|
if (!r || 0 === r.length) return;
|
|
956
963
|
const i = t(e.value)?.getDeclaration().getParameters();
|
|
957
964
|
if (i) for (let t = 0; t < r.length; t++) {
|
|
958
965
|
const l = r[t];
|
|
959
|
-
l && l.type !==
|
|
966
|
+
l && l.type !== c.Empty && Pe(i, t)?.isLazy() && (l.lazyArg = !0, e.hasLazyArgs = !0, n(l));
|
|
960
967
|
}
|
|
961
968
|
});
|
|
962
969
|
})(s, l);
|
|
@@ -964,20 +971,20 @@ function Ge(e, t, n, r = !1, i = null, l = null) {
|
|
|
964
971
|
void 0 === g && (g = /* @__PURE__ */ new Map());
|
|
965
972
|
let t = g.get(e);
|
|
966
973
|
return void 0 === t && g.set(e, t = []), t;
|
|
967
|
-
},
|
|
974
|
+
}, b = (e, t) => {
|
|
968
975
|
void 0 === e ? f.push(t) : m(e).push(t);
|
|
969
|
-
},
|
|
970
|
-
e?.type !==
|
|
976
|
+
}, E = (e) => {
|
|
977
|
+
e?.type !== c.Infix || "+" !== e.value && "-" !== e.value || (e.snapsCancellation = !0);
|
|
971
978
|
};
|
|
972
|
-
s =
|
|
979
|
+
s = h(s, (t, n, r) => {
|
|
973
980
|
const i = t.type, l = t.evalIndex;
|
|
974
|
-
if (
|
|
975
|
-
if (
|
|
981
|
+
if (u[l] = null, i === c.TableColumn || i === c.TableSpecifier || t.isReference && pe(r, c.TableReference)) return;
|
|
982
|
+
if (v = v || !Ye(t), t.binding?.declaration) return p[t.binding.slot] = -1, void (u[l] = void 0);
|
|
976
983
|
const s = ((e, t, n) => {
|
|
977
984
|
if (ke(e, t)) return e;
|
|
978
985
|
for (let e = n.length - 1; e >= 0; e--) if (ke(n[e], n[e - 1])) return n[e];
|
|
979
986
|
})(t, n, r);
|
|
980
|
-
s === t && m(t), void 0 !== s && i ===
|
|
987
|
+
s === t && m(t), void 0 !== s && i === c.Named && (t.deferredResolve = !0);
|
|
981
988
|
const o = t.binder;
|
|
982
989
|
if (o && "let" === o.kind) {
|
|
983
990
|
const e = t.inputs, n = e?.length ?? 0;
|
|
@@ -985,19 +992,19 @@ function Ge(e, t, n, r = !1, i = null, l = null) {
|
|
|
985
992
|
for (let t = 0; t + 1 < n && r < o.slots.length; t += 2) e[t]?.binding?.declaration && (p[o.slots[r++]] = e[t + 1]?.evalIndex ?? -1);
|
|
986
993
|
}
|
|
987
994
|
if ((t.isReference || n && n.isReference) && (d.processNode(t, n), t.isReference)) {
|
|
988
|
-
if (i ===
|
|
989
|
-
if (i ===
|
|
990
|
-
if (i ===
|
|
995
|
+
if (i === c.Named) return void (void 0 !== s && b(s, t));
|
|
996
|
+
if (i === c.Cell || i === c.TableReference || i === c.Error) return;
|
|
997
|
+
if (i === c.Infix || i === c.Prefix || i === c.Postfix || i === c.List) return void b(s, t);
|
|
991
998
|
}
|
|
992
|
-
if (t.isLiteral) if (i !==
|
|
999
|
+
if (t.isLiteral) if (i !== c.Array) u[l] = t.value;
|
|
993
1000
|
else {
|
|
994
|
-
const n = t.value, r = n.length, i =
|
|
1001
|
+
const n = t.value, r = n.length, i = R(r);
|
|
995
1002
|
for (let e = 0; e < r; e++) {
|
|
996
|
-
const t = n[e].value, r = t.length, l =
|
|
1003
|
+
const t = n[e].value, r = t.length, l = R(r);
|
|
997
1004
|
for (let e = 0; e < r; e++) {
|
|
998
1005
|
const n = t[e];
|
|
999
1006
|
let r = null;
|
|
1000
|
-
if (n && (r = n.type ===
|
|
1007
|
+
if (n && (r = n.type === c.Error ? x(n.value) : n.value, n.type === c.Prefix)) {
|
|
1001
1008
|
const e = n.value;
|
|
1002
1009
|
r = n.inputs[0].value, "-" === e && (r = -r);
|
|
1003
1010
|
}
|
|
@@ -1005,17 +1012,17 @@ function Ge(e, t, n, r = !1, i = null, l = null) {
|
|
|
1005
1012
|
}
|
|
1006
1013
|
i[e] = l;
|
|
1007
1014
|
}
|
|
1008
|
-
const s =
|
|
1009
|
-
|
|
1015
|
+
const s = I(i);
|
|
1016
|
+
u[l] = new y(e, s.values, s.coords, void 0, s.isLiteral);
|
|
1010
1017
|
}
|
|
1011
1018
|
else {
|
|
1012
|
-
if (i !==
|
|
1013
|
-
|
|
1019
|
+
if (i !== c.Empty) return "lambda" === t.binder?.kind && E(t.inputs[t.inputs.length - 1]), b(s, t), t;
|
|
1020
|
+
u[l] = void 0;
|
|
1014
1021
|
}
|
|
1015
|
-
}),
|
|
1022
|
+
}), E(s), g?.forEach((e, t) => {
|
|
1016
1023
|
t.deferred = e;
|
|
1017
1024
|
});
|
|
1018
|
-
const
|
|
1025
|
+
const T = R(d.cells.size);
|
|
1019
1026
|
d.cells.forEach((e, t) => {
|
|
1020
1027
|
const n = t.value, r = n.colIndex, i = n.rowIndex, l = n.$colIndex, s = n.$rowIndex, o = {
|
|
1021
1028
|
colStart: r,
|
|
@@ -1027,47 +1034,47 @@ function Ge(e, t, n, r = !1, i = null, l = null) {
|
|
|
1027
1034
|
$colEnd: l,
|
|
1028
1035
|
$rowEnd: s
|
|
1029
1036
|
};
|
|
1030
|
-
r === Number.MIN_SAFE_INTEGER && (o.colEnd = Number.MAX_SAFE_INTEGER), i === Number.MIN_SAFE_INTEGER && (o.rowEnd = Number.MAX_SAFE_INTEGER), n.scope && (o.scope = n.scope),
|
|
1037
|
+
r === Number.MIN_SAFE_INTEGER && (o.colEnd = Number.MAX_SAFE_INTEGER), i === Number.MIN_SAFE_INTEGER && (o.rowEnd = Number.MAX_SAFE_INTEGER), n.scope && (o.scope = n.scope), T[e] = o;
|
|
1031
1038
|
});
|
|
1032
|
-
const
|
|
1033
|
-
for (let e = 0; e <
|
|
1039
|
+
const S = T.length, w = R(S);
|
|
1040
|
+
for (let e = 0; e < S; e++) w[e] = {
|
|
1034
1041
|
colStart: 0,
|
|
1035
1042
|
rowStart: 0,
|
|
1036
1043
|
colEnd: 0,
|
|
1037
1044
|
rowEnd: 0,
|
|
1038
1045
|
scope: null
|
|
1039
1046
|
};
|
|
1040
|
-
const
|
|
1047
|
+
const N = R(d.references.size);
|
|
1041
1048
|
d.references.forEach((e) => {
|
|
1042
|
-
|
|
1049
|
+
N[e.index] = e;
|
|
1043
1050
|
});
|
|
1044
|
-
const
|
|
1051
|
+
const F = [];
|
|
1045
1052
|
d.rootReferences.forEach((e) => {
|
|
1046
|
-
|
|
1053
|
+
F.push(e.index);
|
|
1047
1054
|
}), function(e, t, n = !1) {
|
|
1048
1055
|
if (n) {
|
|
1049
1056
|
const t = (e) => {
|
|
1050
1057
|
if (!e) return;
|
|
1051
1058
|
const n = e.type;
|
|
1052
|
-
n !==
|
|
1059
|
+
n !== c.Function && n !== c.Call || (e.implicitIntersect = !0);
|
|
1053
1060
|
const r = e.inputs;
|
|
1054
1061
|
if (r) for (let e = 0; e < r.length; e++) t(r[e]);
|
|
1055
1062
|
};
|
|
1056
1063
|
t(e);
|
|
1057
1064
|
return;
|
|
1058
1065
|
}
|
|
1059
|
-
const r = (e) =>
|
|
1066
|
+
const r = (e) => Me(e, t), i = (e, n) => {
|
|
1060
1067
|
if (!e) return;
|
|
1061
1068
|
const l = e.type;
|
|
1062
|
-
l !==
|
|
1069
|
+
l !== c.Function && l !== c.Call || (e.implicitIntersect = n);
|
|
1063
1070
|
const s = e.inputs;
|
|
1064
1071
|
if (s) {
|
|
1065
|
-
if (l ===
|
|
1072
|
+
if (l === c.Infix || l === c.Prefix || l === c.Postfix) {
|
|
1066
1073
|
const t = !e.isReference;
|
|
1067
1074
|
for (let e = 0; e < s.length; e++) i(s[e], (!t || !r(s[e])) && n);
|
|
1068
1075
|
return;
|
|
1069
1076
|
}
|
|
1070
|
-
if (l ===
|
|
1077
|
+
if (l === c.Function) {
|
|
1071
1078
|
const r = e.binder;
|
|
1072
1079
|
if (void 0 !== r) {
|
|
1073
1080
|
const e = "lambda" !== r.kind && n;
|
|
@@ -1079,8 +1086,8 @@ function Ge(e, t, n, r = !1, i = null, l = null) {
|
|
|
1079
1086
|
if (l) for (let e = 0; e < s.length && !o; e++) {
|
|
1080
1087
|
const n = s[e];
|
|
1081
1088
|
if (!n) continue;
|
|
1082
|
-
const r =
|
|
1083
|
-
r &&
|
|
1089
|
+
const r = Oe(l, e);
|
|
1090
|
+
r && Ve(r, n, t) && (o = !0);
|
|
1084
1091
|
}
|
|
1085
1092
|
o && (e.implicitIntersect = !1);
|
|
1086
1093
|
for (let e = 0; e < s.length; e++) i(s[e], !o && n);
|
|
@@ -1091,61 +1098,62 @@ function Ge(e, t, n, r = !1, i = null, l = null) {
|
|
|
1091
1098
|
};
|
|
1092
1099
|
i(e, !r(e));
|
|
1093
1100
|
}(s, l, !0 === n.legacyIntersect);
|
|
1094
|
-
const
|
|
1101
|
+
const L = (e) => {
|
|
1095
1102
|
const t = e.length;
|
|
1096
1103
|
for (let n = 0; n < t; n++) {
|
|
1097
1104
|
const t = e[n], r = t.type;
|
|
1098
|
-
if (r ===
|
|
1105
|
+
if (r === c.Infix) {
|
|
1099
1106
|
if (!0 === t.snapsCancellation) {
|
|
1100
1107
|
t.fn = ue[t.value];
|
|
1101
1108
|
continue;
|
|
1102
1109
|
}
|
|
1103
1110
|
t.fn = ae[t.value];
|
|
1104
|
-
} else if (r ===
|
|
1105
|
-
else if (r ===
|
|
1111
|
+
} else if (r === c.Prefix) t.fn = ce[t.value];
|
|
1112
|
+
else if (r === c.Postfix) t.fn = fe[t.value];
|
|
1106
1113
|
}
|
|
1107
1114
|
};
|
|
1108
|
-
let
|
|
1109
|
-
|
|
1110
|
-
const $ = r ?
|
|
1115
|
+
let k;
|
|
1116
|
+
L(f), g?.forEach(L);
|
|
1117
|
+
const $ = r ? C(P(e.getLocale()).decimal) : A, O = {
|
|
1111
1118
|
runtime: e,
|
|
1112
1119
|
symbols: t,
|
|
1113
1120
|
getFunction: l,
|
|
1114
1121
|
ast: s,
|
|
1115
|
-
evaluations:
|
|
1122
|
+
evaluations: u,
|
|
1116
1123
|
executions: f,
|
|
1117
1124
|
bindings: p,
|
|
1118
|
-
referencesAbsolute:
|
|
1119
|
-
referencesExecute:
|
|
1120
|
-
referencesRelative:
|
|
1121
|
-
referencesRoot:
|
|
1125
|
+
referencesAbsolute: w,
|
|
1126
|
+
referencesExecute: N,
|
|
1127
|
+
referencesRelative: T,
|
|
1128
|
+
referencesRoot: F,
|
|
1122
1129
|
referenceIndices: d.referenceIndices,
|
|
1123
1130
|
formatReferenceIndices: Te(s, l),
|
|
1124
|
-
getTokens: () =>
|
|
1131
|
+
getTokens: () => k ??= ge(s, r, $),
|
|
1125
1132
|
namedIds: Ee(s),
|
|
1126
|
-
symbolIds:
|
|
1133
|
+
symbolIds: Le(s),
|
|
1127
1134
|
hasTotals: Se(s, l),
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1135
|
+
hasDataTable: we(s, l),
|
|
1136
|
+
hasVolatile: Ce(s, l),
|
|
1137
|
+
...Fe(s, l),
|
|
1138
|
+
isReferenceOnly: !v,
|
|
1131
1139
|
error: i,
|
|
1132
1140
|
transform: (n) => {
|
|
1133
|
-
let o =
|
|
1134
|
-
return o === s ? O :
|
|
1141
|
+
let o = h(s, n);
|
|
1142
|
+
return o === s ? O : He(e, t, o, r, i, l);
|
|
1135
1143
|
}
|
|
1136
1144
|
};
|
|
1137
1145
|
return O;
|
|
1138
1146
|
}
|
|
1139
|
-
function
|
|
1147
|
+
function Xe(e) {
|
|
1140
1148
|
let t = -1, n = -1;
|
|
1141
1149
|
return Number.isSafeInteger(e.previousToken?.startLine) ? (t = e.previousToken.startLine, n = e.previousToken.endColumn + 1) : Number.isSafeInteger(e.token?.startLine) && (t = e.token.startLine, n = e.token.startColumn), -1 !== t ? (e.errorLocation = {
|
|
1142
1150
|
line: t,
|
|
1143
1151
|
column: n
|
|
1144
|
-
}, new
|
|
1152
|
+
}, new L.Parse(e.message, {
|
|
1145
1153
|
line: t,
|
|
1146
1154
|
column: n,
|
|
1147
1155
|
cause: e
|
|
1148
|
-
})) : new
|
|
1156
|
+
})) : new L.Parse(e.message, { cause: e });
|
|
1149
1157
|
}
|
|
1150
1158
|
Object.freeze([
|
|
1151
1159
|
[
|
|
@@ -1167,7 +1175,7 @@ Object.freeze([
|
|
|
1167
1175
|
">="
|
|
1168
1176
|
]
|
|
1169
1177
|
]);
|
|
1170
|
-
var
|
|
1178
|
+
var Ke = Object.freeze([
|
|
1171
1179
|
":",
|
|
1172
1180
|
".:.",
|
|
1173
1181
|
".:",
|
|
@@ -1178,18 +1186,18 @@ var Xe = Object.freeze([
|
|
|
1178
1186
|
".:.",
|
|
1179
1187
|
".:",
|
|
1180
1188
|
":."
|
|
1181
|
-
]),
|
|
1189
|
+
]), qe = Object.freeze(["@"]), Qe = Object.freeze(["#"]), Je = Object.freeze(Ze.concat(Qe)), Ye = (Object.freeze(Ze.concat(qe).concat(Qe)), (e) => {
|
|
1182
1190
|
if (!e) return !1;
|
|
1183
1191
|
const t = e.type;
|
|
1184
|
-
if (t ===
|
|
1185
|
-
if (t ===
|
|
1186
|
-
if (t ===
|
|
1192
|
+
if (t === c.Cell) return !0;
|
|
1193
|
+
if (t === c.TableReference) return !0;
|
|
1194
|
+
if (t === c.Infix) {
|
|
1187
1195
|
if (!Ze.includes(e.value)) return !1;
|
|
1188
1196
|
const t = e.inputs, n = t[0], r = t[1];
|
|
1189
|
-
return
|
|
1197
|
+
return Ye(n) && Ye(r);
|
|
1190
1198
|
}
|
|
1191
|
-
return t ===
|
|
1192
|
-
}),
|
|
1199
|
+
return t === c.List && (e.inputs?.every(Ye) ?? !1);
|
|
1200
|
+
}), et = (e) => !!e && (!(e.type !== c.Infix || !Je.includes(e.value)) || !(e.type !== c.Postfix || !Qe.includes(e.value)) || e.type === c.Array || e.type === c.TableReference), tt = Object.freeze([
|
|
1193
1201
|
"+",
|
|
1194
1202
|
"-",
|
|
1195
1203
|
"*",
|
|
@@ -1202,18 +1210,18 @@ var Xe = Object.freeze([
|
|
|
1202
1210
|
"<",
|
|
1203
1211
|
">=",
|
|
1204
1212
|
"<="
|
|
1205
|
-
]),
|
|
1213
|
+
]), nt = Object.freeze(["-", "+"]), rt = (e, t) => {
|
|
1206
1214
|
if (!e) return !1;
|
|
1207
1215
|
const n = e.type;
|
|
1208
|
-
if (e.isLiteral) return n !==
|
|
1209
|
-
if (n ===
|
|
1216
|
+
if (e.isLiteral) return n !== c.Error;
|
|
1217
|
+
if (n === c.Paren || n === c.List) {
|
|
1210
1218
|
const n = e.inputs;
|
|
1211
|
-
return !(!n || 0 === n.length) && n.every((e) =>
|
|
1219
|
+
return !(!n || 0 === n.length) && n.every((e) => rt(e, t));
|
|
1212
1220
|
}
|
|
1213
|
-
if (n ===
|
|
1214
|
-
if (n ===
|
|
1215
|
-
if (n ===
|
|
1216
|
-
if (n ===
|
|
1221
|
+
if (n === c.Infix) return tt.includes(e.value);
|
|
1222
|
+
if (n === c.Prefix) return nt.includes(e.value);
|
|
1223
|
+
if (n === c.Postfix) return "%" === e.value;
|
|
1224
|
+
if (n === c.Function) {
|
|
1217
1225
|
if (!t) return !1;
|
|
1218
1226
|
const n = t(e.value);
|
|
1219
1227
|
if (!n) return !1;
|
|
@@ -1221,37 +1229,37 @@ var Xe = Object.freeze([
|
|
|
1221
1229
|
return "p" !== i && (null !== i || null === r.getLambda() && null != r.getScalarType());
|
|
1222
1230
|
}
|
|
1223
1231
|
return !1;
|
|
1224
|
-
},
|
|
1232
|
+
}, it = (e, t) => {
|
|
1225
1233
|
if (!e) return null;
|
|
1226
1234
|
let n = null;
|
|
1227
1235
|
const r = (e) => {
|
|
1228
1236
|
if (n || !e) return;
|
|
1229
|
-
if (e.type ===
|
|
1237
|
+
if (e.type === c.Infix && " " === e.value) {
|
|
1230
1238
|
const r = e.inputs, i = r?.[0], l = r?.[1];
|
|
1231
|
-
if (
|
|
1232
|
-
if (
|
|
1239
|
+
if (rt(i, t)) return void (n = i);
|
|
1240
|
+
if (rt(l, t)) return void (n = l);
|
|
1233
1241
|
}
|
|
1234
1242
|
const i = e.inputs;
|
|
1235
1243
|
if (i) for (let e = 0; e < i.length && !n; e++) r(i[e]);
|
|
1236
1244
|
};
|
|
1237
1245
|
return r(e), n;
|
|
1238
|
-
},
|
|
1246
|
+
}, lt = (e, t) => {
|
|
1239
1247
|
if (!e) return null;
|
|
1240
1248
|
let n = null;
|
|
1241
1249
|
const r = (e) => {
|
|
1242
1250
|
if (n || !e) return;
|
|
1243
|
-
if (e.type ===
|
|
1251
|
+
if (e.type === c.Postfix && "#" === e.value) {
|
|
1244
1252
|
const r = e.inputs?.[0];
|
|
1245
|
-
if (r &&
|
|
1253
|
+
if (r && rt(r, t)) return void (n = r);
|
|
1246
1254
|
}
|
|
1247
1255
|
const i = e.inputs;
|
|
1248
1256
|
if (i) for (let e = 0; e < i.length && !n; e++) r(i[e]);
|
|
1249
1257
|
};
|
|
1250
1258
|
return r(e), n;
|
|
1251
|
-
},
|
|
1259
|
+
}, st = (e) => {
|
|
1252
1260
|
for (let t = 0; t < e.length; t++) if (e[t].getRepeatingTypes()) return t;
|
|
1253
1261
|
return -1;
|
|
1254
|
-
},
|
|
1262
|
+
}, ot = (e, t, n) => {
|
|
1255
1263
|
const r = e[t].getRepeatingTypes(), i = r.length, l = t, s = e.length - t - 1;
|
|
1256
1264
|
let o = s;
|
|
1257
1265
|
for (; o > 0 && e[t + o].isOptional();) o--;
|
|
@@ -1276,12 +1284,12 @@ var Xe = Object.freeze([
|
|
|
1276
1284
|
};
|
|
1277
1285
|
}
|
|
1278
1286
|
return null;
|
|
1279
|
-
},
|
|
1287
|
+
}, at = (e) => {
|
|
1280
1288
|
if (!e) return null;
|
|
1281
1289
|
let t = null;
|
|
1282
1290
|
const n = (e) => {
|
|
1283
1291
|
if (t || !e) return;
|
|
1284
|
-
if (e.type ===
|
|
1292
|
+
if (e.type === c.Array && Array.isArray(e.value)) {
|
|
1285
1293
|
const n = e.value, r = (n[0]?.value)?.length ?? 0;
|
|
1286
1294
|
for (let e = 1; e < n.length && !t; e++) {
|
|
1287
1295
|
const i = (n[e]?.value)?.length ?? 0;
|
|
@@ -1292,19 +1300,19 @@ var Xe = Object.freeze([
|
|
|
1292
1300
|
if (r) for (let e = 0; e < r.length && !t; e++) n(r[e]);
|
|
1293
1301
|
};
|
|
1294
1302
|
return n(e), t;
|
|
1295
|
-
},
|
|
1303
|
+
}, ut = (e, t) => {
|
|
1296
1304
|
if (!e || !t) return null;
|
|
1297
1305
|
let n = null;
|
|
1298
1306
|
const r = (e) => {
|
|
1299
1307
|
if (n || !e) return;
|
|
1300
|
-
if (e.type ===
|
|
1308
|
+
if (e.type === c.Function) {
|
|
1301
1309
|
const r = e.value, i = t(r);
|
|
1302
1310
|
if (i) {
|
|
1303
1311
|
const t = i.getDeclaration(), l = t.getParameters(), s = e.inputs?.length ?? 0, o = t.getMaxArguments();
|
|
1304
1312
|
if (s > o) return void (n = `Too many arguments for ${r}. The most it accepts is ${o}, but got ${s}.`);
|
|
1305
|
-
const a = l.length > 0 ?
|
|
1313
|
+
const a = l.length > 0 ? st(l) : -1, u = l.length > 0 && l[l.length - 1].isRest();
|
|
1306
1314
|
if (a >= 0) {
|
|
1307
|
-
if (!
|
|
1315
|
+
if (!ot(l, a, s)) {
|
|
1308
1316
|
const e = l[a].getRepeatingTypes().length, t = l.length - 1;
|
|
1309
1317
|
n = 1 === e ? `Too few arguments for ${r}. Expected at least ${t + 1}, but got ${s}.` : `Wrong number of arguments for ${r}. Expected ${t} plus a multiple of ${e}, but got ${s}.`;
|
|
1310
1318
|
}
|
|
@@ -1319,24 +1327,24 @@ var Xe = Object.freeze([
|
|
|
1319
1327
|
if (i) for (let e = 0; e < i.length && !n; e++) r(i[e]);
|
|
1320
1328
|
};
|
|
1321
1329
|
return r(e), n;
|
|
1322
|
-
},
|
|
1330
|
+
}, ct = (e, t) => {
|
|
1323
1331
|
if (!e || !t) return null;
|
|
1324
1332
|
let n = null;
|
|
1325
1333
|
const r = (e) => {
|
|
1326
1334
|
if (n || !e) return;
|
|
1327
|
-
if (e.type ===
|
|
1335
|
+
if (e.type === c.Function) {
|
|
1328
1336
|
const r = t(e.value);
|
|
1329
1337
|
if (r) {
|
|
1330
1338
|
const i = r.getDeclaration().getParameters(), l = e.inputs;
|
|
1331
1339
|
if (i.length > 0 && l) {
|
|
1332
1340
|
const e = ((e, t) => {
|
|
1333
|
-
const n = new Array(t), r = e.length, i = r > 0 ?
|
|
1341
|
+
const n = new Array(t), r = e.length, i = r > 0 ? st(e) : -1;
|
|
1334
1342
|
if (i < 0) {
|
|
1335
1343
|
const i = r > 0 ? e[r - 1] : null, l = !!i && i.isRest();
|
|
1336
1344
|
for (let s = 0; s < t; s++) n[s] = s < r ? e[s] : l ? i : null;
|
|
1337
1345
|
return n;
|
|
1338
1346
|
}
|
|
1339
|
-
const l = e[i].getRepeatingTypes(), s = l.length, o = i, a =
|
|
1347
|
+
const l = e[i].getRepeatingTypes(), s = l.length, o = i, a = ot(e, i, t), u = a ? a.suffix : r - i - 1, c = Math.max(0, t - o - u);
|
|
1340
1348
|
for (let a = 0; a < t; a++) if (a < o) n[a] = e[a];
|
|
1341
1349
|
else if (a < o + c) n[a] = l[(a - o) % s];
|
|
1342
1350
|
else {
|
|
@@ -1347,7 +1355,7 @@ var Xe = Object.freeze([
|
|
|
1347
1355
|
})(i, l.length);
|
|
1348
1356
|
for (let r = 0; r < l.length && !n; r++) {
|
|
1349
1357
|
const i = e[r];
|
|
1350
|
-
i && "p" === i.getRangeType() &&
|
|
1358
|
+
i && "p" === i.getRangeType() && rt(l[r], t) && (n = l[r]);
|
|
1351
1359
|
}
|
|
1352
1360
|
}
|
|
1353
1361
|
}
|
|
@@ -1356,42 +1364,42 @@ var Xe = Object.freeze([
|
|
|
1356
1364
|
if (i) for (let e = 0; e < i.length && !n; e++) r(i[e]);
|
|
1357
1365
|
};
|
|
1358
1366
|
return r(e), n;
|
|
1359
|
-
},
|
|
1367
|
+
}, ft = (e, t) => {
|
|
1360
1368
|
if (!e) return null;
|
|
1361
1369
|
let n = null;
|
|
1362
1370
|
const r = (e) => {
|
|
1363
1371
|
if (n || !e) return;
|
|
1364
|
-
if (e.type ===
|
|
1372
|
+
if (e.type === c.Call) {
|
|
1365
1373
|
const r = e.inputs?.[0];
|
|
1366
|
-
if (r &&
|
|
1374
|
+
if (r && rt(r, t)) return void (n = "This expression always produces a value, so it cannot be called as a function.");
|
|
1367
1375
|
}
|
|
1368
1376
|
const i = e.inputs;
|
|
1369
1377
|
if (i) for (let e = 0; e < i.length && !n; e++) r(i[e]);
|
|
1370
1378
|
};
|
|
1371
1379
|
return r(e), n;
|
|
1372
|
-
},
|
|
1373
|
-
if (e.type !==
|
|
1380
|
+
}, pt = (e, t) => {
|
|
1381
|
+
if (e.type !== c.Function) return;
|
|
1374
1382
|
const n = e.value;
|
|
1375
1383
|
if ("string" != typeof n) return;
|
|
1376
1384
|
const r = (t?.(n)?.getName() ?? n).toUpperCase();
|
|
1377
1385
|
return "LET" === r ? "let" : "LAMBDA" === r ? "lambda" : void 0;
|
|
1378
|
-
},
|
|
1379
|
-
if (e?.type !==
|
|
1386
|
+
}, dt = (e) => {
|
|
1387
|
+
if (e?.type !== c.Named) return;
|
|
1380
1388
|
const t = e.value;
|
|
1381
1389
|
return t?.nameId && !t.scope && !0 !== t.optional ? t.nameId : void 0;
|
|
1382
|
-
},
|
|
1383
|
-
if (e?.type ===
|
|
1390
|
+
}, gt = /^[A-Za-z_\\][A-Za-z0-9_\\]*$/, vt = /* @__PURE__ */ new Set(["TRUE", "FALSE"]), ht = (e) => {
|
|
1391
|
+
if (e?.type === c.Named) {
|
|
1384
1392
|
const t = e.value;
|
|
1385
1393
|
if (!0 !== t?.optional || !t.nameId || t.scope) return;
|
|
1386
1394
|
return t.nameId;
|
|
1387
1395
|
}
|
|
1388
|
-
if (e?.type !==
|
|
1396
|
+
if (e?.type !== c.TableReference) return;
|
|
1389
1397
|
const t = e.value;
|
|
1390
1398
|
let n;
|
|
1391
1399
|
if (null === t || "string" == typeof t) {
|
|
1392
1400
|
if (t) return;
|
|
1393
1401
|
const r = e.inputs;
|
|
1394
|
-
if (!r || 1 !== r.length || r[0]?.type !==
|
|
1402
|
+
if (!r || 1 !== r.length || r[0]?.type !== c.TableColumn) return;
|
|
1395
1403
|
const i = r[0].value;
|
|
1396
1404
|
if ("string" != typeof i) return;
|
|
1397
1405
|
n = i;
|
|
@@ -1401,29 +1409,29 @@ var Xe = Object.freeze([
|
|
|
1401
1409
|
if (!e.columnFromId || e.columnFromId !== e.columnToId) return;
|
|
1402
1410
|
n = e.columnFromId;
|
|
1403
1411
|
}
|
|
1404
|
-
return
|
|
1405
|
-
},
|
|
1406
|
-
const t =
|
|
1412
|
+
return gt.test(n) && !vt.has(n.toUpperCase()) && e.image === `[${n}]` ? n : void 0;
|
|
1413
|
+
}, mt = (e) => {
|
|
1414
|
+
const t = o(e.image ?? e.value);
|
|
1407
1415
|
t.image = e.image ?? e.value, t.wsBefore = e.wsBefore;
|
|
1408
1416
|
const n = {
|
|
1409
|
-
type:
|
|
1417
|
+
type: c.Call,
|
|
1410
1418
|
value: null,
|
|
1411
1419
|
inputs: [t, ...e.inputs ?? []],
|
|
1412
1420
|
wsAfter: e.wsAfter
|
|
1413
1421
|
};
|
|
1414
1422
|
return e.error && (n.error = e.error), n;
|
|
1415
1423
|
};
|
|
1416
|
-
function
|
|
1417
|
-
return e && t ?
|
|
1418
|
-
if (e.type ===
|
|
1424
|
+
function yt(e, t) {
|
|
1425
|
+
return e && t ? h(e, (e) => {
|
|
1426
|
+
if (e.type === c.Function && "string" == typeof e.value && !t(e.value)) return mt(e);
|
|
1419
1427
|
}) : e;
|
|
1420
1428
|
}
|
|
1421
|
-
function
|
|
1429
|
+
function It(e, t) {
|
|
1422
1430
|
const n = t.name.toUpperCase(), r = e ? e.filter((e) => e.name.toUpperCase() !== n) : [];
|
|
1423
1431
|
return r.push(t), r;
|
|
1424
1432
|
}
|
|
1425
|
-
function
|
|
1426
|
-
if (e?.type !==
|
|
1433
|
+
function bt(e) {
|
|
1434
|
+
if (e?.type !== c.Function || "lambda" !== e.binder?.kind) return;
|
|
1427
1435
|
const t = e.inputs ?? [], n = [];
|
|
1428
1436
|
for (let e = 0; e < t.length - 1; e++) {
|
|
1429
1437
|
const r = t[e];
|
|
@@ -1436,19 +1444,19 @@ function It(e) {
|
|
|
1436
1444
|
}
|
|
1437
1445
|
return n;
|
|
1438
1446
|
}
|
|
1439
|
-
var
|
|
1447
|
+
var xt = /* @__PURE__ */ new Set([
|
|
1440
1448
|
"IF",
|
|
1441
1449
|
"IFERROR",
|
|
1442
1450
|
"IFNA"
|
|
1443
1451
|
]);
|
|
1444
|
-
function
|
|
1445
|
-
if (!e || e.type !==
|
|
1452
|
+
function Rt(e, t) {
|
|
1453
|
+
if (!e || e.type !== c.Function || "string" != typeof e.value) return e;
|
|
1446
1454
|
const n = (t?.(e.value)?.getName() ?? e.value).toUpperCase();
|
|
1447
|
-
if (!
|
|
1455
|
+
if (!xt.has(n)) return e;
|
|
1448
1456
|
const r = e.inputs;
|
|
1449
1457
|
let i;
|
|
1450
1458
|
if (r) for (let e = 0; e < r.length; e++) {
|
|
1451
|
-
const n =
|
|
1459
|
+
const n = Rt(r[e], t);
|
|
1452
1460
|
n !== r[e] && ((i ??= [...r])[e] = n);
|
|
1453
1461
|
}
|
|
1454
1462
|
return {
|
|
@@ -1457,7 +1465,7 @@ function xt(e, t) {
|
|
|
1457
1465
|
passOmitted: !0
|
|
1458
1466
|
};
|
|
1459
1467
|
}
|
|
1460
|
-
function
|
|
1468
|
+
function Et(e, t = null) {
|
|
1461
1469
|
if (!e) return e;
|
|
1462
1470
|
const n = [];
|
|
1463
1471
|
let r = 0;
|
|
@@ -1477,15 +1485,15 @@ function Rt(e, t = null) {
|
|
|
1477
1485
|
} : e;
|
|
1478
1486
|
}, l = (e) => {
|
|
1479
1487
|
if (!e) return e;
|
|
1480
|
-
const s =
|
|
1488
|
+
const s = pt(e, t);
|
|
1481
1489
|
if (s) return ((e, s) => {
|
|
1482
1490
|
const o = e.inputs, a = o?.length ?? 0;
|
|
1483
1491
|
if (!o || a < 1) return i(e);
|
|
1484
|
-
const u = n.length,
|
|
1485
|
-
const i =
|
|
1486
|
-
let l =
|
|
1492
|
+
const u = n.length, f = [], p = [...o], d = (e, t = !1) => {
|
|
1493
|
+
const i = p[e];
|
|
1494
|
+
let l = dt(i), s = !1;
|
|
1487
1495
|
if (void 0 === l && t) {
|
|
1488
|
-
if (l =
|
|
1496
|
+
if (l = ht(i), void 0 === l) return;
|
|
1489
1497
|
s = !0;
|
|
1490
1498
|
} else if (void 0 === l) return;
|
|
1491
1499
|
const o = r++;
|
|
@@ -1493,9 +1501,9 @@ function Rt(e, t = null) {
|
|
|
1493
1501
|
key: l.toUpperCase(),
|
|
1494
1502
|
slot: o,
|
|
1495
1503
|
name: l
|
|
1496
|
-
}),
|
|
1504
|
+
}), f.push(o), p[e] = s ? {
|
|
1497
1505
|
...i,
|
|
1498
|
-
type:
|
|
1506
|
+
type: c.Named,
|
|
1499
1507
|
value: {
|
|
1500
1508
|
nameId: l,
|
|
1501
1509
|
scope: null
|
|
@@ -1517,38 +1525,38 @@ function Rt(e, t = null) {
|
|
|
1517
1525
|
};
|
|
1518
1526
|
};
|
|
1519
1527
|
if ("lambda" === s) {
|
|
1520
|
-
for (let e = 0; e < a - 1; e++)
|
|
1521
|
-
|
|
1528
|
+
for (let e = 0; e < a - 1; e++) d(e, !0);
|
|
1529
|
+
p[a - 1] && (p[a - 1] = l(p[a - 1]));
|
|
1522
1530
|
} else {
|
|
1523
|
-
for (let e = 0; e + 1 < a; e += 2)
|
|
1524
|
-
a % 2 == 1 &&
|
|
1531
|
+
for (let e = 0; e + 1 < a; e += 2) p[e + 1] && (p[e + 1] = Rt(l(p[e + 1]), t)), d(e);
|
|
1532
|
+
a % 2 == 1 && p[a - 1] && (p[a - 1] = l(p[a - 1]));
|
|
1525
1533
|
}
|
|
1526
1534
|
for (; n.length > u;) n.pop();
|
|
1527
1535
|
return {
|
|
1528
1536
|
...e,
|
|
1529
|
-
inputs:
|
|
1537
|
+
inputs: p,
|
|
1530
1538
|
binder: {
|
|
1531
1539
|
kind: s,
|
|
1532
|
-
slots:
|
|
1540
|
+
slots: f
|
|
1533
1541
|
}
|
|
1534
1542
|
};
|
|
1535
1543
|
})(e, s);
|
|
1536
|
-
if (e.type ===
|
|
1544
|
+
if (e.type === c.Function && "string" == typeof e.value) {
|
|
1537
1545
|
const r = e.value.toUpperCase();
|
|
1538
|
-
if (n.some((e) => e.key === r) && !t?.(e.value)) return i(
|
|
1546
|
+
if (n.some((e) => e.key === r) && !t?.(e.value)) return i(mt(e));
|
|
1539
1547
|
}
|
|
1540
1548
|
if (n.length > 0 && e.isReference && ":" === e.value && 2 === e.inputs?.length) {
|
|
1541
1549
|
const [t, r] = e.inputs;
|
|
1542
|
-
if (
|
|
1550
|
+
if (Tt(t) && Tt(r)) {
|
|
1543
1551
|
const l = t.image.toUpperCase(), s = r.image.toUpperCase();
|
|
1544
1552
|
if (n.some((e) => e.key === l || e.key === s)) return i({
|
|
1545
1553
|
...e,
|
|
1546
|
-
inputs: [
|
|
1554
|
+
inputs: [At(t), At(r)]
|
|
1547
1555
|
});
|
|
1548
1556
|
}
|
|
1549
1557
|
}
|
|
1550
|
-
if (e.type ===
|
|
1551
|
-
const t =
|
|
1558
|
+
if (e.type === c.Named) {
|
|
1559
|
+
const t = dt(e);
|
|
1552
1560
|
if (void 0 !== t) {
|
|
1553
1561
|
const r = t.toUpperCase();
|
|
1554
1562
|
for (let i = n.length - 1; i >= 0; i--) {
|
|
@@ -1567,7 +1575,7 @@ function Rt(e, t = null) {
|
|
|
1567
1575
|
return e;
|
|
1568
1576
|
}
|
|
1569
1577
|
const o = i(e);
|
|
1570
|
-
if (o.type ===
|
|
1578
|
+
if (o.type === c.Function && "string" == typeof o.value && "ISOMITTED" === (t?.(o.value)?.getName() ?? o.value).toUpperCase()) {
|
|
1571
1579
|
const e = o.inputs;
|
|
1572
1580
|
if (e) {
|
|
1573
1581
|
let n;
|
|
@@ -1580,7 +1588,7 @@ function Rt(e, t = null) {
|
|
|
1580
1588
|
};
|
|
1581
1589
|
continue;
|
|
1582
1590
|
}
|
|
1583
|
-
const l =
|
|
1591
|
+
const l = Rt(i, t);
|
|
1584
1592
|
l !== i && ((n ??= [...e])[r] = l);
|
|
1585
1593
|
}
|
|
1586
1594
|
if (n) return {
|
|
@@ -1593,54 +1601,54 @@ function Rt(e, t = null) {
|
|
|
1593
1601
|
};
|
|
1594
1602
|
return l(e);
|
|
1595
1603
|
}
|
|
1596
|
-
var
|
|
1597
|
-
if (e?.type !==
|
|
1604
|
+
var Tt = (e) => {
|
|
1605
|
+
if (e?.type !== c.Cell || void 0 === e.image) return !1;
|
|
1598
1606
|
const t = e.value;
|
|
1599
1607
|
return t.rowIndex === Number.MIN_SAFE_INTEGER && !0 !== t.$colIndex && !t.scope;
|
|
1600
|
-
},
|
|
1601
|
-
const t =
|
|
1602
|
-
return
|
|
1603
|
-
},
|
|
1608
|
+
}, At = (e) => {
|
|
1609
|
+
const t = o(e.image);
|
|
1610
|
+
return l(t, e), t;
|
|
1611
|
+
}, St = (e) => e?.type === c.Cell, wt = (e, t = null) => {
|
|
1604
1612
|
if (!e) return e;
|
|
1605
1613
|
let n = !1;
|
|
1606
1614
|
const r = (e) => {
|
|
1607
1615
|
if (n || !e) return;
|
|
1608
|
-
const i =
|
|
1616
|
+
const i = pt(e, t), l = e.inputs;
|
|
1609
1617
|
if (i && l) {
|
|
1610
1618
|
const e = "let" === i ? 2 : 1;
|
|
1611
|
-
for (let t = 0; t < l.length - 1; t += e) if (
|
|
1619
|
+
for (let t = 0; t < l.length - 1; t += e) if (St(l[t])) return void (n = !0);
|
|
1612
1620
|
}
|
|
1613
1621
|
if (l) for (let e = 0; e < l.length && !n; e++) r(l[e]);
|
|
1614
1622
|
};
|
|
1615
1623
|
if (r(e), !n) return e;
|
|
1616
1624
|
let i = null;
|
|
1617
|
-
const
|
|
1618
|
-
if (e?.type !==
|
|
1625
|
+
const s = h(e, (e) => {
|
|
1626
|
+
if (e?.type !== c.Cell) return;
|
|
1619
1627
|
const t = e.value, n = e.image;
|
|
1620
1628
|
if (!0 === t?.$colIndex || !0 === t?.$rowIndex) return void (i ??= `'${n ?? "a reference"}' cannot be absolute here. A LET/LAMBDA name that is a cell reference makes every reference in the formula a name, and a name cannot contain '$'.`);
|
|
1621
1629
|
if (void 0 === n) return;
|
|
1622
|
-
const r =
|
|
1623
|
-
|
|
1624
|
-
const
|
|
1625
|
-
return
|
|
1630
|
+
const r = o(n);
|
|
1631
|
+
l(r, e);
|
|
1632
|
+
const s = t?.scope;
|
|
1633
|
+
return s && (r.value.scope = s, r.value.scopeImage = t.scopeImage), r;
|
|
1626
1634
|
});
|
|
1627
|
-
return i ??
|
|
1628
|
-
},
|
|
1635
|
+
return i ?? s;
|
|
1636
|
+
}, Ct = (e, t) => {
|
|
1629
1637
|
if (!e) return null;
|
|
1630
1638
|
let n = null;
|
|
1631
1639
|
const r = (e) => {
|
|
1632
1640
|
if (n || !e) return;
|
|
1633
|
-
const i =
|
|
1641
|
+
const i = pt(e, t);
|
|
1634
1642
|
i && ((e, t) => {
|
|
1635
1643
|
const r = "let" === t ? "LET" : "LAMBDA", i = e.inputs, l = i?.length ?? 0;
|
|
1636
1644
|
if (!i || l < 2) return;
|
|
1637
1645
|
if ("let" === t && l % 2 == 0) return void (n = `Wrong number of arguments for LET. Expected name/value pairs followed by a calculation, but got ${l}.`);
|
|
1638
|
-
if ("lambda" === t && i[l - 1]?.type ===
|
|
1646
|
+
if ("lambda" === t && i[l - 1]?.type === c.Empty) return void (n = "LAMBDA has no calculation: the last argument is empty.");
|
|
1639
1647
|
const s = /* @__PURE__ */ new Set(), o = "let" === t ? 2 : 1;
|
|
1640
1648
|
let a = !1;
|
|
1641
1649
|
for (let e = 0; e < l - 1; e += o) {
|
|
1642
|
-
let l =
|
|
1643
|
-
if (void 0 === l && "lambda" === t) l =
|
|
1650
|
+
let l = dt(i[e]);
|
|
1651
|
+
if (void 0 === l && "lambda" === t) l = ht(i[e]), void 0 !== l && (a = !0);
|
|
1644
1652
|
else if (void 0 !== l && a) return void (n = `Required name '${l}' cannot follow an optional name in ${r}.`);
|
|
1645
1653
|
if (void 0 === l) return void (n = `Expected a name in ${r} argument ${e + 1}; a name cannot be the output of a formula.`);
|
|
1646
1654
|
if (l.includes(".")) return void (n = `Expected a name in ${r} argument ${e + 1}; a name cannot contain '.'.`);
|
|
@@ -1654,109 +1662,109 @@ var Et = (e) => {
|
|
|
1654
1662
|
};
|
|
1655
1663
|
return r(e), n;
|
|
1656
1664
|
};
|
|
1657
|
-
function
|
|
1658
|
-
const o =
|
|
1665
|
+
function Nt(e, n, r, i, s) {
|
|
1666
|
+
const o = i;
|
|
1659
1667
|
let a;
|
|
1660
|
-
const u = () => (void 0 === a && (a = s &&
|
|
1661
|
-
scope:
|
|
1668
|
+
const u = () => (void 0 === a && (a = s && r ? n.bind(t.Table, "", { at: {
|
|
1669
|
+
scope: r,
|
|
1662
1670
|
rowIndex: s.rowIndex,
|
|
1663
1671
|
colIndex: s.colIndex
|
|
1664
1672
|
} }) : null), a);
|
|
1665
|
-
return
|
|
1673
|
+
return h(e, (e, i, s = []) => {
|
|
1666
1674
|
let a;
|
|
1667
|
-
const
|
|
1668
|
-
if (
|
|
1669
|
-
const
|
|
1670
|
-
if (
|
|
1671
|
-
const
|
|
1672
|
-
null !==
|
|
1673
|
-
...
|
|
1674
|
-
scope:
|
|
1675
|
+
const f = e.type;
|
|
1676
|
+
if (f === c.Cell) {
|
|
1677
|
+
const r = e.value;
|
|
1678
|
+
if (r?.scope) {
|
|
1679
|
+
const i = n.bind(t.Sheet, r.scope, o);
|
|
1680
|
+
null !== i && (a || (a = { ...e }), a.value = {
|
|
1681
|
+
...r,
|
|
1682
|
+
scope: i
|
|
1675
1683
|
});
|
|
1676
1684
|
}
|
|
1677
|
-
} else if (
|
|
1678
|
-
const
|
|
1679
|
-
if (
|
|
1680
|
-
const s = function(e,
|
|
1681
|
-
if (
|
|
1682
|
-
const e =
|
|
1683
|
-
if (null === e ||
|
|
1685
|
+
} else if (f === c.Named) {
|
|
1686
|
+
const i = e.value;
|
|
1687
|
+
if (i && !e.binding) {
|
|
1688
|
+
const s = function(e, n, r, i) {
|
|
1689
|
+
if (n.scope) {
|
|
1690
|
+
const e = r.bind(t.Sheet, n.scope, i);
|
|
1691
|
+
if (null === e || w(e)) return;
|
|
1684
1692
|
}
|
|
1685
|
-
const s =
|
|
1693
|
+
const s = r.bind(t.Table, n.nameId, { existing: !0 });
|
|
1686
1694
|
if (null === s) return;
|
|
1687
1695
|
const o = {
|
|
1688
|
-
type:
|
|
1696
|
+
type: c.TableReference,
|
|
1689
1697
|
value: s,
|
|
1690
1698
|
inputs: null,
|
|
1691
1699
|
isReference: !0
|
|
1692
1700
|
};
|
|
1693
|
-
|
|
1694
|
-
const a =
|
|
1701
|
+
l(o, e);
|
|
1702
|
+
const a = n.scopeImage;
|
|
1695
1703
|
return "string" == typeof a && void 0 !== e.image && (o.image = a + e.image), o;
|
|
1696
|
-
}(e,
|
|
1704
|
+
}(e, i, n, o);
|
|
1697
1705
|
if (s) return s;
|
|
1698
|
-
const u =
|
|
1699
|
-
null ===
|
|
1700
|
-
...
|
|
1701
|
-
nameId:
|
|
1706
|
+
const u = i.scope ? n.bind(t.Sheet, i.scope, o) : null, f = (null !== u ? w(u) ? u : n.resolve(t.Sheet, u)?.toString() ?? i.scope : i.scope) ?? r, p = n.bind(t.NamedFormula, i.nameId, f ? { scope: f } : void 0);
|
|
1707
|
+
null === p && null === u || (a || (a = { ...e }), a.value = {
|
|
1708
|
+
...i,
|
|
1709
|
+
nameId: p ?? i.nameId,
|
|
1702
1710
|
...null !== u ? { scope: u } : void 0
|
|
1703
1711
|
});
|
|
1704
1712
|
}
|
|
1705
|
-
} else if (
|
|
1706
|
-
const
|
|
1707
|
-
if (
|
|
1708
|
-
const
|
|
1709
|
-
null !==
|
|
1710
|
-
...
|
|
1711
|
-
scope:
|
|
1713
|
+
} else if (f === c.Error) {
|
|
1714
|
+
const r = e.value;
|
|
1715
|
+
if (r?.scope) {
|
|
1716
|
+
const i = n.bind(t.Sheet, r.scope, o);
|
|
1717
|
+
null !== i && (a || (a = { ...e }), a.value = {
|
|
1718
|
+
...r,
|
|
1719
|
+
scope: i
|
|
1712
1720
|
});
|
|
1713
1721
|
}
|
|
1714
|
-
} else if (
|
|
1715
|
-
const
|
|
1716
|
-
if (
|
|
1717
|
-
const
|
|
1718
|
-
a || (a = { ...e }), null !==
|
|
1719
|
-
} else if ("string" == typeof
|
|
1720
|
-
const
|
|
1721
|
-
if (null !==
|
|
1722
|
+
} else if (f === c.TableReference) {
|
|
1723
|
+
const r = e.value;
|
|
1724
|
+
if (r) {
|
|
1725
|
+
const i = n.bind(t.Table, r);
|
|
1726
|
+
a || (a = { ...e }), null !== i && (a.value = i);
|
|
1727
|
+
} else if ("string" == typeof r) {
|
|
1728
|
+
const t = u();
|
|
1729
|
+
if (null !== t && Ft(e, n)) return {
|
|
1722
1730
|
...e,
|
|
1723
|
-
value:
|
|
1731
|
+
value: t
|
|
1724
1732
|
};
|
|
1725
1733
|
}
|
|
1726
|
-
} else if (
|
|
1727
|
-
const
|
|
1728
|
-
if (
|
|
1729
|
-
const
|
|
1734
|
+
} else if (f === c.TableColumn) {
|
|
1735
|
+
const r = e.value;
|
|
1736
|
+
if (r) {
|
|
1737
|
+
const i = pe(s, c.TableReference), l = i?.value || (i ? u() ?? void 0 : void 0), o = n.bind(t.TableColumn, r, l ? { tableName: l } : void 0);
|
|
1730
1738
|
a || (a = { ...e }), null !== o && (a.value = o);
|
|
1731
1739
|
}
|
|
1732
|
-
} else if (
|
|
1733
|
-
const
|
|
1734
|
-
if (
|
|
1735
|
-
const
|
|
1736
|
-
a || (a = { ...e }), null !==
|
|
1740
|
+
} else if (f === c.Function) {
|
|
1741
|
+
const r = e.value;
|
|
1742
|
+
if (r) {
|
|
1743
|
+
const i = n.bind(t.Function, r);
|
|
1744
|
+
a || (a = { ...e }), null !== i && (a.value = i);
|
|
1737
1745
|
}
|
|
1738
1746
|
}
|
|
1739
1747
|
return a;
|
|
1740
1748
|
});
|
|
1741
1749
|
}
|
|
1742
|
-
function
|
|
1743
|
-
let
|
|
1744
|
-
const
|
|
1745
|
-
if (!
|
|
1746
|
-
for (let e = 0; e <
|
|
1747
|
-
e.type ===
|
|
1750
|
+
function Ft(e, n) {
|
|
1751
|
+
let r = !0;
|
|
1752
|
+
const i = e.inputs;
|
|
1753
|
+
if (!i) return !0;
|
|
1754
|
+
for (let e = 0; e < i.length && r; e++) h(i[e], (e) => {
|
|
1755
|
+
e.type === c.TableColumn && null === n.resolve(t.TableColumn, e.value) && (r = !1);
|
|
1748
1756
|
});
|
|
1749
|
-
return
|
|
1757
|
+
return r;
|
|
1750
1758
|
}
|
|
1751
|
-
function
|
|
1752
|
-
let
|
|
1753
|
-
return
|
|
1754
|
-
if (
|
|
1755
|
-
if ("" === e.value) return void (
|
|
1756
|
-
const
|
|
1757
|
-
if (!
|
|
1758
|
-
const l =
|
|
1759
|
-
null ===
|
|
1760
|
-
}),
|
|
1759
|
+
function Pt(e, n) {
|
|
1760
|
+
let r = null;
|
|
1761
|
+
return h(e, (e) => {
|
|
1762
|
+
if (r || e.type !== c.TableReference) return;
|
|
1763
|
+
if ("" === e.value) return void (r = "A structured reference without a table name must be in a table that has its columns.");
|
|
1764
|
+
const i = e.value;
|
|
1765
|
+
if (!n || "string" != typeof i) return;
|
|
1766
|
+
const l = n.resolve(t.Table, i)?.toString() ?? i;
|
|
1767
|
+
null === n.bind(t.Table, l, { existing: !0 }) ? r = `There is no table named '${l}'.` : Ft(e, n) || (r = "The table has no such column.");
|
|
1768
|
+
}), r;
|
|
1761
1769
|
}
|
|
1762
|
-
export { ce as A, Re as C, ve as D,
|
|
1770
|
+
export { ce as A, Re as C, ve as D, yt as E, ae as O, Ke as S, ye as T, et as _, He as a, je as b, ft as c, it as d, Pt as f, he as g, ge as h, Ie as i, ue as j, fe as k, at as l, Xe as m, It as n, ut as o, ct as p, Et as r, Ct as s, We as t, lt as u, Nt as v, wt as w, be as x, me as y };
|