@sheetxl/sdk 0.4.20 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/{BkFMWwFWaisNXSf2.cjs → 2Ek3ERw3_Bykd8fw.cjs} +2 -2
- package/browser/cjs/{XxdMKuC0y29VOQ05.cjs → 6TI34Ha4FA7iPlUF.cjs} +1 -1
- package/browser/cjs/{CFwigDisNJzRlbSY.cjs → BCHaDG_rDvnn8ZBd.cjs} +1 -1
- package/browser/cjs/{BfMzZ_GULllzBk6l.cjs → Bahkk8039gRyN9Mo.cjs} +1 -1
- package/browser/cjs/{CgISg2QUFvnxelIg.cjs → BngbTy19wpFaenhY.cjs} +1 -1
- package/browser/cjs/{gn5aPOY6C-poXjky.cjs → Bp7N_nyopyZKjRRL.cjs} +1 -1
- package/browser/cjs/{BVwLRpPOJOkPiLVI.cjs → BtV6fyILcBfpVmM0.cjs} +1 -1
- package/browser/cjs/{HoZidg9qBDX62oNO.cjs → Bv8Q9Woak_tt-5Pm.cjs} +1 -1
- package/browser/cjs/{CW9IcRQqCCBSJ1g0.cjs → CBMFkyyTw0XlFLRH.cjs} +1 -1
- package/browser/cjs/{CxXM6xsDd2bFDSNd.cjs → CEebzMIuXLwwzsFT.cjs} +1 -1
- package/browser/cjs/{BvS85P-7zLIudyqb.cjs → CM1U1IRvnVgZaUwu.cjs} +1 -1
- package/browser/cjs/{lTo12h7XrLmPRVhi.cjs → CvJBfy0UeKfDQ8dm.cjs} +1 -1
- package/browser/cjs/CvXi1eD_vGRkx_Qg.cjs +124 -0
- package/browser/cjs/Cw2bnqP6ZrrZ2Bbq.cjs +7 -0
- package/browser/cjs/{Bw07AlLqg6ZIoMRL.cjs → D-JnQCqB1E48ybn1.cjs} +1 -1
- package/browser/cjs/{C4KbNJbRD0LfrFFV.cjs → D30MUnA7XeRC7nKA.cjs} +1 -1
- package/browser/cjs/{aBAvcAfOvtWy7o9B.cjs → D6U-YLLOpX5BzDpj.cjs} +1 -1
- package/browser/cjs/{CHIrWDL1wDd2pj7r.cjs → DBYUO1gBwFZ9YzXu.cjs} +1 -1
- package/browser/cjs/DBgdjlLJAvbKQ6m1.cjs +53 -0
- package/browser/cjs/{B8nuUUIsnE-6vbAQ.cjs → DMM_7MUTtUyTxUte.cjs} +1 -1
- package/browser/cjs/{We0naT5G_vQo6RkK.cjs → DP5RAH-JZmys2_Ez.cjs} +1 -1
- package/browser/cjs/{D9SMcp02EIWqiYk0.cjs → DV6ZkCTUWQA6p4rK.cjs} +1 -1
- package/browser/cjs/{BTPJz0JSs5PWhtbO.cjs → DnCv1ao4SJJC07Rk.cjs} +1 -1
- package/browser/cjs/{BTa_vDbaAzt6YXV1.cjs → Du14zhQYf2mcjgP8.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{ZJeHuklpnM-x2Uor.cjs → j7VVtACDr_Df6VoV.cjs} +1 -1
- package/browser/cjs/{BHa5nV8AH6dlgs29.cjs → mCTmXzm3-Nr4hMMh.cjs} +1 -1
- package/browser/cjs/{CYueUIoDZwYE9fRk.cjs → z7NeiDHMwAIvmXQM.cjs} +1 -1
- package/browser/esm/{DK_FQ6Q7AZUprApR.mjs → 8ZQRIB2EsDWE9tsR.mjs} +7139 -8441
- package/browser/esm/{BNS7zLc3zoynBPYO.mjs → AZWItMZ40w7pXzM3.mjs} +6 -4
- package/{node/esm/bIOUtGNQ6YQktkYZ.mjs → browser/esm/B1NCmSNzMv8wue5X.mjs} +1 -1
- package/browser/esm/{CDbE_dl8edWRC33Z.mjs → B4TD60vusDQB28Y6.mjs} +1 -1
- package/browser/esm/{9tFMamEgahdtRDzr.mjs → BGt455yLuaSCtS3B.mjs} +1 -1
- package/browser/esm/{DOK9VvFQyTAsf7SL.mjs → BH6V9bxFT7tKt3JY.mjs} +1 -1
- package/browser/esm/{BcUYcXaMbk6W8AWk.mjs → C08q_YT1-6oRRKn7.mjs} +1 -1
- package/browser/esm/{io70M3K8dlSe5V-4.mjs → C3lBcMoGYfLhgMfA.mjs} +1 -1
- package/{node/esm/CivKgcEQiXpDFLHE.mjs → browser/esm/C3ppHQZRcF8ZsuOM.mjs} +1 -1
- package/{node/esm/HTDFLMWuQb82Y-GF.mjs → browser/esm/C3xhjguoFh_LLdE0.mjs} +1 -1
- package/{node/esm/Bqc8bvJoWC0_qUKU.mjs → browser/esm/C86MlawsKJdD9LF8.mjs} +1 -1
- package/browser/esm/{fP2GLQ5W7VVbn5TA.mjs → CWaBHMvzzTzqW2aW.mjs} +1 -1
- package/browser/esm/{_q37vK_NIykwwqbg.mjs → C_UDq7u8kN8EM5VM.mjs} +1 -1
- package/browser/esm/{BoB-LPOX1uKjZhKH.mjs → CiHNaJRMjs_J-E64.mjs} +1 -1
- package/{node/esm/aF3uflTbayaEj07D.mjs → browser/esm/DP2FYMLsdP_WcDYS.mjs} +1 -1
- package/{node/esm/DdDDFLZKFx1DAkKM.mjs → browser/esm/DQpvGf222ccOGfjU.mjs} +1 -1
- package/browser/esm/{DV9p0Ai4HUPYjT-H.mjs → DU9crFdCyt80pRza.mjs} +2 -2
- package/{node/esm/iYqJLAQld4jtK1Be.mjs → browser/esm/Dbm37kRSyl_8FJoJ.mjs} +1 -1
- package/{node/esm/DlNI2fuUSYxsUPt8.mjs → browser/esm/DkpEl_DXRacSkWrt.mjs} +1 -1
- package/{node/esm/DP9RiXAeb1fiRFpG.mjs → browser/esm/DmY32GhkYpEm8mSs.mjs} +1 -1
- package/browser/esm/{DIePzm-XT-alFdDB.mjs → XiCMvT7sjmvl0gUN.mjs} +1 -1
- package/{node/esm/D3YTY3N6YHU69ymA.mjs → browser/esm/YC7mlG3gvQikwmLc.mjs} +1 -1
- package/browser/esm/{mxJXDPqwl0wNxd66.mjs → bhTV2Kuwe5GAobt1.mjs} +1 -1
- package/{node/esm/DaJrKgrSikJvUv0q.mjs → browser/esm/graF5_D09QCDSoHN.mjs} +1 -1
- package/browser/esm/index.mjs +54 -82
- package/browser/esm/{DuvsEieHOiBb-GPZ.mjs → tkRDOxVCj9OmVmBR.mjs} +1 -1
- package/browser/esm/{BNURhfAYTEVJWTYT.mjs → zGGld_iCASteK8iy.mjs} +1 -1
- package/browser/esm/{DoIENSc8L0Rof6Kz.mjs → zJQ-f_DFW5-NL9Jy.mjs} +46 -44
- package/licenses/dependencies.txt +0 -66
- package/node/esm/{BXc12GgwQ08R7S8e.mjs → 4kTocRYniLajS_hb.mjs} +1 -1
- package/{browser/esm/bIOUtGNQ6YQktkYZ.mjs → node/esm/B1NCmSNzMv8wue5X.mjs} +1 -1
- package/node/esm/{9tFMamEgahdtRDzr.mjs → BGt455yLuaSCtS3B.mjs} +1 -1
- package/node/esm/{DOK9VvFQyTAsf7SL.mjs → BH6V9bxFT7tKt3JY.mjs} +1 -1
- package/node/esm/{Tl8jbxaeK1y9aMPJ.mjs → BTi4XED3s0teHiBt.mjs} +1 -1
- package/node/esm/{C6lX28OYg20N0MeO.mjs → BXBNHBvt9nYiWgUU.mjs} +1 -1
- package/node/esm/{CDjHCv3dEEOY9Foy.mjs → BmmN529Wnsai7InC.mjs} +1 -1
- package/node/esm/{rpVHlxg6GM8pJL5c.mjs → Bmv6hV4ffBD80ICq.mjs} +253 -251
- package/node/esm/{io70M3K8dlSe5V-4.mjs → C3lBcMoGYfLhgMfA.mjs} +1 -1
- package/{browser/esm/CivKgcEQiXpDFLHE.mjs → node/esm/C3ppHQZRcF8ZsuOM.mjs} +1 -1
- package/{browser/esm/HTDFLMWuQb82Y-GF.mjs → node/esm/C3xhjguoFh_LLdE0.mjs} +1 -1
- package/{browser/esm/Bqc8bvJoWC0_qUKU.mjs → node/esm/C86MlawsKJdD9LF8.mjs} +1 -1
- package/node/esm/{B7ZcsKf8cxOEMq7p.mjs → CrCDm1JQ6LgVBdtF.mjs} +1 -1
- package/{browser/esm/aF3uflTbayaEj07D.mjs → node/esm/DP2FYMLsdP_WcDYS.mjs} +1 -1
- package/{browser/esm/DdDDFLZKFx1DAkKM.mjs → node/esm/DQpvGf222ccOGfjU.mjs} +1 -1
- package/{browser/esm/iYqJLAQld4jtK1Be.mjs → node/esm/Dbm37kRSyl_8FJoJ.mjs} +1 -1
- package/{browser/esm/DlNI2fuUSYxsUPt8.mjs → node/esm/DkpEl_DXRacSkWrt.mjs} +1 -1
- package/{browser/esm/DP9RiXAeb1fiRFpG.mjs → node/esm/DmY32GhkYpEm8mSs.mjs} +1 -1
- package/node/esm/{CHnRYVDwiNY7YZxQ.mjs → DrT-57di5SkkFmk2.mjs} +1 -1
- package/node/esm/{MrOJ8ENTixputV8_.mjs → DyijBggm1X4Ksin0.mjs} +362 -360
- package/node/esm/{BpBhk74DpxGo00aZ.mjs → PynWQEh5r-eYdDWa.mjs} +1 -1
- package/{browser/esm/D3YTY3N6YHU69ymA.mjs → node/esm/YC7mlG3gvQikwmLc.mjs} +1 -1
- package/node/esm/{mxJXDPqwl0wNxd66.mjs → bhTV2Kuwe5GAobt1.mjs} +1 -1
- package/{browser/esm/DaJrKgrSikJvUv0q.mjs → node/esm/graF5_D09QCDSoHN.mjs} +1 -1
- package/node/esm/index.mjs +12260 -13560
- package/node/esm/{BNURhfAYTEVJWTYT.mjs → zGGld_iCASteK8iy.mjs} +1 -1
- package/package.json +4 -4
- package/browser/cjs/BRvrxzKBJ-g1N73t.cjs +0 -1501
- package/browser/cjs/Ba3X8U1ch1pBFv_a.cjs +0 -124
- package/browser/cjs/C2DyH3SwPIgmFosH.cjs +0 -7
- package/browser/cjs/CEW45o7VnarqfsgH.cjs +0 -6
- package/browser/cjs/CZ4_zpdkkZ0zH7aN.cjs +0 -6
- package/browser/cjs/CbYFnsibjJUHV0xm.cjs +0 -6
- package/browser/cjs/D_zdscoLJ72sNgWv.cjs +0 -32
- package/browser/cjs/mf_wa0ubPjGaRkSW.cjs +0 -13
- package/browser/cjs/wcsUsHAbDuK3rvVp.cjs +0 -60
- package/browser/esm/B0RFp5vlJWj9U4Wn.mjs +0 -29
- package/browser/esm/BikAM7lQn1NrVPNP.mjs +0 -21
- package/browser/esm/C0d1-jgvvUt3Bpg9.mjs +0 -472
- package/browser/esm/CqYcEZmhnI3bq0wV.mjs +0 -820
- package/browser/esm/DbvBy4EEBdPhE-8G.mjs +0 -24
- package/browser/esm/DhIglmQyhLXPjrbo.mjs +0 -1575
- package/node/esm/BI2k0XM8cAqRUH3e.mjs +0 -80
- package/node/esm/BPSX88j1UHZNFlgn.mjs +0 -14
- package/node/esm/BcQcJWzyihj46-gX.mjs +0 -454
- package/node/esm/C4d62D9fLTRjV7rI.mjs +0 -29
- package/node/esm/D_13otLly5j8n5Gg.mjs +0 -813
- package/node/esm/Dsf-AEKpZlzGOrcG.mjs +0 -16
|
@@ -1,454 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
import { e } from "./D_13otLly5j8n5Gg.mjs";
|
|
8
|
-
var t, n, o;
|
|
9
|
-
(n = t || (t = {})).Orientation = { Column: "column", Row: "row" }, n.Orientations = { ...n.Orientation, Both: "both" }, n.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e2) => {
|
|
10
|
-
e2.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, e2.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
|
|
11
|
-
class t2 extends Error {
|
|
12
|
-
constructor(e3, t3, n3, o3) {
|
|
13
|
-
super(n3, o3), this._label = t3, this._code = e3, this.details = o3;
|
|
14
|
-
}
|
|
15
|
-
static {
|
|
16
|
-
this.code = e2.Code.Unknown;
|
|
17
|
-
}
|
|
18
|
-
get isFormulaError() {
|
|
19
|
-
return true;
|
|
20
|
-
}
|
|
21
|
-
getLabel() {
|
|
22
|
-
return this._label;
|
|
23
|
-
}
|
|
24
|
-
getCode() {
|
|
25
|
-
return this._code;
|
|
26
|
-
}
|
|
27
|
-
equals(e3) {
|
|
28
|
-
return !!e3 && (this._code === e3._code || this._code === e3.code);
|
|
29
|
-
}
|
|
30
|
-
get [Symbol.toStringTag]() {
|
|
31
|
-
return "[FormulaError]";
|
|
32
|
-
}
|
|
33
|
-
toString() {
|
|
34
|
-
return this.message || this._label;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
e2.Known = t2;
|
|
38
|
-
class n2 extends t2 {
|
|
39
|
-
constructor(t3, n3) {
|
|
40
|
-
super(e2.Code.Parse, e2.Label.Parse, t3, n3);
|
|
41
|
-
}
|
|
42
|
-
static {
|
|
43
|
-
this.code = e2.Code.Parse;
|
|
44
|
-
}
|
|
45
|
-
getDetails() {
|
|
46
|
-
const e3 = this.details;
|
|
47
|
-
return { line: e3?.line ?? 1, column: e3?.column ?? 1, offset: e3?.offset ?? 0, length: e3?.length ?? 0 };
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
e2.Parse = n2;
|
|
51
|
-
class o2 extends t2 {
|
|
52
|
-
constructor(t3, n3) {
|
|
53
|
-
super(e2.Code.Null, e2.Label.Null, t3, n3);
|
|
54
|
-
}
|
|
55
|
-
static {
|
|
56
|
-
this.code = e2.Code.Null;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
e2.Null = o2;
|
|
60
|
-
class i2 extends t2 {
|
|
61
|
-
constructor(t3, n3) {
|
|
62
|
-
super(e2.Code.Div0, e2.Label.Div0, t3, n3);
|
|
63
|
-
}
|
|
64
|
-
static {
|
|
65
|
-
this.code = e2.Code.Div0;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
e2.Div0 = i2;
|
|
69
|
-
class r2 extends t2 {
|
|
70
|
-
constructor(t3, n3) {
|
|
71
|
-
super(e2.Code.Value, e2.Label.Value, t3, n3);
|
|
72
|
-
}
|
|
73
|
-
static {
|
|
74
|
-
this.code = e2.Code.Value;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
e2.Value = r2;
|
|
78
|
-
class a2 extends t2 {
|
|
79
|
-
constructor(t3, n3) {
|
|
80
|
-
super(e2.Code.Ref, e2.Label.Ref, t3, n3);
|
|
81
|
-
}
|
|
82
|
-
static {
|
|
83
|
-
this.code = e2.Code.Ref;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
e2.Ref = a2;
|
|
87
|
-
class s2 extends t2 {
|
|
88
|
-
constructor(t3, n3) {
|
|
89
|
-
super(e2.Code.Name, e2.Label.Name, t3, n3);
|
|
90
|
-
}
|
|
91
|
-
static {
|
|
92
|
-
this.code = e2.Code.Name;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
e2.Name = s2;
|
|
96
|
-
class l2 extends t2 {
|
|
97
|
-
constructor(t3, n3) {
|
|
98
|
-
super(e2.Code.Num, e2.Label.Num, t3, n3);
|
|
99
|
-
}
|
|
100
|
-
static {
|
|
101
|
-
this.code = e2.Code.Num;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
e2.Num = l2;
|
|
105
|
-
class c2 extends t2 {
|
|
106
|
-
constructor(t3, n3) {
|
|
107
|
-
super(e2.Code.NA, e2.Label.NA, t3, n3);
|
|
108
|
-
}
|
|
109
|
-
static {
|
|
110
|
-
this.code = e2.Code.NA;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
e2.NA = c2;
|
|
114
|
-
class d2 extends t2 {
|
|
115
|
-
constructor(t3, n3) {
|
|
116
|
-
super(e2.Code.GettingData, e2.Label.GettingData, t3, n3);
|
|
117
|
-
}
|
|
118
|
-
static {
|
|
119
|
-
this.code = e2.Code.GettingData;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
e2.GettingData = d2;
|
|
123
|
-
class u2 extends t2 {
|
|
124
|
-
constructor(t3, n3) {
|
|
125
|
-
super(e2.Code.Spill, e2.Label.Spill, t3, n3);
|
|
126
|
-
}
|
|
127
|
-
static {
|
|
128
|
-
this.code = e2.Code.Spill;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
e2.Spill = u2;
|
|
132
|
-
class p2 extends t2 {
|
|
133
|
-
constructor(t3, n3) {
|
|
134
|
-
super(e2.Code.Connect, e2.Label.Connect, t3, n3);
|
|
135
|
-
}
|
|
136
|
-
static {
|
|
137
|
-
this.code = e2.Code.Connect;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
e2.Connect = p2;
|
|
141
|
-
class m2 extends t2 {
|
|
142
|
-
constructor(t3, n3) {
|
|
143
|
-
super(e2.Code.Blocked, e2.Label.Blocked, t3, n3);
|
|
144
|
-
}
|
|
145
|
-
static {
|
|
146
|
-
this.code = e2.Code.Blocked;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
e2.Blocked = m2;
|
|
150
|
-
class y2 extends t2 {
|
|
151
|
-
constructor(t3, n3) {
|
|
152
|
-
super(e2.Code.Unknown, e2.Label.Unknown, t3, n3);
|
|
153
|
-
}
|
|
154
|
-
static {
|
|
155
|
-
this.code = e2.Code.Unknown;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
e2.Unknown = y2;
|
|
159
|
-
class f2 extends t2 {
|
|
160
|
-
constructor(t3, n3) {
|
|
161
|
-
super(e2.Code.Field, e2.Label.Field, t3, n3);
|
|
162
|
-
}
|
|
163
|
-
static {
|
|
164
|
-
this.code = e2.Code.Field;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
e2.Field = f2;
|
|
168
|
-
class h2 extends t2 {
|
|
169
|
-
constructor(t3, n3) {
|
|
170
|
-
super(e2.Code.Calc, e2.Label.Calc, t3, n3);
|
|
171
|
-
}
|
|
172
|
-
static {
|
|
173
|
-
this.code = e2.Code.Calc;
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
e2.Calc = h2;
|
|
177
|
-
class g2 extends t2 {
|
|
178
|
-
constructor(t3, n3) {
|
|
179
|
-
super(e2.Code.Busy, e2.Label.Busy, t3, n3);
|
|
180
|
-
}
|
|
181
|
-
static {
|
|
182
|
-
this.code = e2.Code.Busy;
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
e2.Busy = g2;
|
|
186
|
-
class w2 extends t2 {
|
|
187
|
-
constructor(t3, n3) {
|
|
188
|
-
super(e2.Code.Python, e2.Label.Python, t3, n3);
|
|
189
|
-
}
|
|
190
|
-
static {
|
|
191
|
-
this.code = e2.Code.Python;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
e2.Python = w2;
|
|
195
|
-
class C2 extends t2 {
|
|
196
|
-
constructor(t3, n3) {
|
|
197
|
-
super(e2.Code.Timeout, e2.Label.Timeout, t3, n3);
|
|
198
|
-
}
|
|
199
|
-
static {
|
|
200
|
-
this.code = e2.Code.Timeout;
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
e2.Timeout = C2;
|
|
204
|
-
})(o || (o = {}));
|
|
205
|
-
const i = {};
|
|
206
|
-
i[o.Code.Parse] = o.Parse, i[o.Code.Null] = o.Null, i[o.Code.Div0] = o.Div0, i[o.Code.Value] = o.Value, i[o.Code.Ref] = o.Ref, i[o.Code.Name] = o.Name, i[o.Code.Num] = o.Num, i[o.Code.NA] = o.NA, i[o.Code.GettingData] = o.GettingData, i[o.Code.Spill] = o.Spill, i[o.Code.Connect] = o.Connect, i[o.Code.Blocked] = o.Blocked, i[o.Code.Unknown] = o.Unknown, i[o.Code.Field] = o.Field, i[o.Code.Calc] = o.Calc, i[o.Code.Busy] = o.Busy, i[o.Code.Python] = o.Python, i[o.Code.Timeout] = o.Timeout;
|
|
207
|
-
const r = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Map(), c = Object.keys(i);
|
|
208
|
-
for (let e2 = 0; e2 < c.length; e2++) {
|
|
209
|
-
const t2 = c[e2], n2 = i[t2];
|
|
210
|
-
s.set(o.Label[t2], n2), l.set(o.Code[t2], n2);
|
|
211
|
-
const d2 = new n2();
|
|
212
|
-
r.set(d2.getLabel(), d2), a.set(d2.getCode(), d2);
|
|
213
|
-
}
|
|
214
|
-
const d = a.get(o.Code.Unknown);
|
|
215
|
-
var u;
|
|
216
|
-
(u = o || (o = {})).BuiltIn = { Parse: new u.Parse(), Null: new u.Null(), Div0: new u.Div0(), Value: new u.Value(), Ref: new u.Ref(), Name: new u.Name(), Num: new u.Num(), NA: new u.NA(), GettingData: new u.GettingData(), Spill: new u.Spill(), Connect: new u.Connect(), Blocked: new u.Blocked(), Unknown: new u.Unknown(), Field: new u.Field(), Calc: new u.Calc(), Busy: new u.Busy(), Python: new u.Python(), Timeout: new u.Timeout() }, u.getBuiltInByLabel = (e2) => r.get(e2), u.newTypedError = (e2, t2, n2) => {
|
|
217
|
-
let o2;
|
|
218
|
-
return o2 = "string" == typeof e2 ? s.get(e2) : l.get(e2), o2 || (o2 = u.Unknown), new o2(t2, n2);
|
|
219
|
-
}, u.getBuiltInById = (e2) => a.get(e2) || d;
|
|
220
|
-
let p = null, m = null;
|
|
221
|
-
const y = { compilerOptions: { target: "esnext" } };
|
|
222
|
-
const f = async () => "\n interface FirstTest {\n isTrue?: boolean;\n }\n", h = /* @__PURE__ */ new Map([["IReferenceRange", "r"], ["IRange", "l"]]), g = /* @__PURE__ */ new Map([["IWorkbook", "workbook"], ["ISheet", "sheet"], ["ICellRanges", "ranges"], ["ICellRange", "range"], ["IFormulaContext", "context"]]), w = (e2, t2) => {
|
|
223
|
-
Array.from(t2.keys()).forEach((n2) => {
|
|
224
|
-
const o2 = t2.get(n2);
|
|
225
|
-
t2.set(`${e2}.${n2}`, o2);
|
|
226
|
-
});
|
|
227
|
-
}, C = /* @__PURE__ */ new Map([["Scalar", "*"], ["FormulaError.Known", "e"], ["Date", "Date"], ["JSON", "JSON"]]), x = /* @__PURE__ */ new Map([]), b = "SheetXL";
|
|
228
|
-
w(b, h), w(b, g), w(b, x);
|
|
229
|
-
const T = /* @__PURE__ */ new Map([["Promise", () => ({ async: true })], ["Observable", () => ({ stream: true })]]);
|
|
230
|
-
let k = null;
|
|
231
|
-
async function N() {
|
|
232
|
-
if (k) return k;
|
|
233
|
-
try {
|
|
234
|
-
return await (await import("./Dsf-AEKpZlzGOrcG.mjs")).initialize();
|
|
235
|
-
} catch (e2) {
|
|
236
|
-
throw k = null, e2;
|
|
237
|
-
} finally {
|
|
238
|
-
k = null;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
async function S(t2) {
|
|
242
|
-
const n2 = t2?.source ?? null;
|
|
243
|
-
if (!n2) return null;
|
|
244
|
-
const o2 = (t2.disableBundle || t2.declarationsOnly) ?? false, i2 = [f(), N()], r2 = await Promise.all(i2), a2 = r2[0], s2 = r2[1];
|
|
245
|
-
let l2 = "", c2 = null;
|
|
246
|
-
const d2 = [], u2 = { allowJs: true, declaration: false, sourceMap: false, inlineSourceMap: false, inlineSources: false, isolatedModules: true, preserveConstEnums: false, module: 99, noResolve: true, emitDeclarationOnly: false, target: s2.ScriptTarget.ES2020 }, w2 = "script", x2 = `${w2}.ts`, b2 = "lib.d.ts", k2 = "global.d.ts", S2 = { [x2]: n2, [b2]: "\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>;\n}\n", [k2]: a2 }, E = { getSourceFile: (e2, t3, n3, o3) => s2.createSourceFile(e2, S2[e2], s2.ScriptTarget.Latest, true), fileExists: (e2) => void 0 !== S2[e2], readFile: (e2) => S2[e2], writeFile: (e2, t3) => {
|
|
247
|
-
S2[e2] = t3;
|
|
248
|
-
}, getCurrentDirectory: () => "./", getCanonicalFileName: (e2) => e2, useCaseSensitiveFileNames: () => true, getDefaultLibFileName: (e2) => b2, getNewLine: () => "\n" }, L = s2.createProgram([x2, k2], u2, E), v = L.getTypeChecker(), D = L.getSourceFile(x2), F = L.emit();
|
|
249
|
-
F.diagnostics.length > 0 && console.warn(F.diagnostics), l2 = S2[`${w2}.js`];
|
|
250
|
-
const K = (e2, t3, n3, o3) => {
|
|
251
|
-
if (e2) {
|
|
252
|
-
if (e2.kind === s2.SyntaxKind.NumberKeyword) t3.scalar = "n";
|
|
253
|
-
else if (e2.kind === s2.SyntaxKind.StringKeyword) t3.scalar = "s";
|
|
254
|
-
else if (e2.kind === s2.SyntaxKind.BooleanKeyword) t3.scalar = "b";
|
|
255
|
-
else if (e2.kind === s2.SyntaxKind.UndefinedKeyword || e2.kind === s2.SyntaxKind.NullKeyword || e2.kind === s2.SyntaxKind.VoidKeyword) {
|
|
256
|
-
if (o3) return void $(e2, new Error(`'undefined' is not a valid type for input: '${e2?.parent?.name?.escapedText}'.`));
|
|
257
|
-
t3.scalar = "z";
|
|
258
|
-
} else if (e2.kind === s2.SyntaxKind.BigIntKeyword) t3.scalar = "n";
|
|
259
|
-
else if (e2.kind === s2.SyntaxKind.AnyKeyword) t3.scalar = "z";
|
|
260
|
-
else if (e2.kind === s2.SyntaxKind.ArrayType) {
|
|
261
|
-
const i3 = e2.elementType;
|
|
262
|
-
if (!i3) return void $(e2, new Error(`'Array' must be typed: '${e2?.parent?.name?.escapedText}'.`));
|
|
263
|
-
t3.arrayDepth = (t3.arrayDepth ?? 0) + 1, K(i3, t3, n3, o3);
|
|
264
|
-
} else if (e2.kind !== s2.SyntaxKind.TupleType && e2.kind === s2.SyntaxKind.TypeReference) {
|
|
265
|
-
const i3 = e2.typeName?.getText?.() ?? null, r3 = h.get(i3);
|
|
266
|
-
let a3 = false;
|
|
267
|
-
r3 && (t3.range = r3, a3 = true);
|
|
268
|
-
const s3 = C.get(i3);
|
|
269
|
-
if (s3 && (t3.scalar = s3), void 0 !== s3 && (a3 = true), o3) {
|
|
270
|
-
const e3 = g.get(i3);
|
|
271
|
-
if (e3) return e3;
|
|
272
|
-
} else {
|
|
273
|
-
const n4 = T.get(i3);
|
|
274
|
-
if (n4) {
|
|
275
|
-
const o4 = { ...t3, ...n4() };
|
|
276
|
-
let r4 = 0;
|
|
277
|
-
if (o4.async && r4++, o4.stream && r4++, r4 > 1) return void $(e2, new Error(`'${i3}' cannot have multiple modifiers: '${e2?.parent?.name?.escapedText}'.`));
|
|
278
|
-
t3 = o4, a3 = true;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
if (!a3) return void $("node", new Error(`'${i3}' is not a valid type: '${e2?.parent?.name?.escapedText}'.`));
|
|
282
|
-
const l3 = e2.typeArguments;
|
|
283
|
-
if (l3) {
|
|
284
|
-
if (1 !== l3.length) return void $(e2, new Error(`'${i3}' must be typed with exactly 1 type: '${e2?.parent?.name?.escapedText}'.`));
|
|
285
|
-
K(l3[0], t3, n3, o3);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
} else $(e2, new Error(`Type is not defined for '${t3?.name ?? "return"}'.`));
|
|
289
|
-
}, P = [], $ = (e2, t3) => {
|
|
290
|
-
P.push(t3);
|
|
291
|
-
};
|
|
292
|
-
if (s2.forEachChild(D, (e2) => {
|
|
293
|
-
if (n3 = e2, 0 !== (s2.getCombinedModifierFlags(n3) & s2.ModifierFlags.Export) && s2.isFunctionDeclaration(e2)) {
|
|
294
|
-
const n4 = {}, o3 = { parameters: {} }, i3 = e2?.name?.getText();
|
|
295
|
-
try {
|
|
296
|
-
n4.name = i3;
|
|
297
|
-
const r3 = v.getSymbolAtLocation(e2.name).getDocumentationComment(v);
|
|
298
|
-
if (r3 && r3.length > 0 && r3[0].text) {
|
|
299
|
-
let e3 = r3[0].text;
|
|
300
|
-
e3 = e3.replace(/[\r\n]+/g, "\\n").trim(), o3.summary = e3;
|
|
301
|
-
}
|
|
302
|
-
const a3 = {};
|
|
303
|
-
K(e2.type, a3, n4, false), n4.returnType = a3;
|
|
304
|
-
const l3 = {};
|
|
305
|
-
t3 = e2, 0 !== (s2.getCombinedModifierFlags(t3) & s2.ModifierFlags.Default) && (l3.default = true, c2 = i3), Object.keys(l3).length > 0 && (n4.behavior = l3), n4.parameters = [];
|
|
306
|
-
const u3 = /* @__PURE__ */ new Map();
|
|
307
|
-
for (let t4 = 0; t4 < e2.parameters.length; t4++) {
|
|
308
|
-
const i4 = e2.parameters[t4], r4 = {};
|
|
309
|
-
r4.name = i4.name?.getText();
|
|
310
|
-
const a4 = K(i4.type, r4, n4, true);
|
|
311
|
-
if (a4) {
|
|
312
|
-
if (0 !== n4.parameters.length) {
|
|
313
|
-
const t5 = e2?.parent, o4 = t5?.name?.getText();
|
|
314
|
-
return void $(e2, new Error(`'${n4.name}' contexts must be the first parameter: '${o4}'.`));
|
|
315
|
-
}
|
|
316
|
-
n4.context = a4;
|
|
317
|
-
continue;
|
|
318
|
-
}
|
|
319
|
-
let l4;
|
|
320
|
-
if ((void 0 !== i4.initializer && null !== i4.initializer || void 0 !== i4.questionToken && null !== i4.questionToken) && (r4.optional = true, i4.initializer)) try {
|
|
321
|
-
l4 = i4.initializer.kind === s2.SyntaxKind.StringLiteral ? i4.initializer.text : i4.initializer.kind === s2.SyntaxKind.NumericLiteral ? parseFloat(i4.initializer.text) : i4.initializer.kind === s2.SyntaxKind.TrueKeyword || i4.initializer.kind === s2.SyntaxKind.FalseKeyword ? i4.initializer.kind === s2.SyntaxKind.TrueKeyword : i4.initializer.kind === s2.SyntaxKind.NullKeyword ? null : i4.initializer.kind === s2.SyntaxKind.ObjectLiteralExpression || i4.initializer.kind === s2.SyntaxKind.ArrayLiteralExpression ? i4.initializer.getText() : i4.initializer.getText?.();
|
|
322
|
-
} catch (e3) {
|
|
323
|
-
console.warn(`Couldn't extract default value for parameter '${r4.name}'`, e3);
|
|
324
|
-
}
|
|
325
|
-
i4.dotDotDotToken && (r4.rest = true), n4.parameters.push(r4);
|
|
326
|
-
const c3 = { description: "" };
|
|
327
|
-
o3.parameters[r4.name] = c3;
|
|
328
|
-
const d3 = v.getSymbolAtLocation(i4.name).getDocumentationComment(v);
|
|
329
|
-
d3 && d3.length > 0 && d3[0].text && (c3.description = d3[0].text), void 0 !== l4 && (c3.defaultValue = l4), u3.set(r4.name, r4);
|
|
330
|
-
}
|
|
331
|
-
if (e2.jsDoc && e2.jsDoc.length > 0) {
|
|
332
|
-
const t4 = e2.jsDoc;
|
|
333
|
-
for (let e3 = 0; e3 < t4.length; e3++) {
|
|
334
|
-
const r4 = t4[e3]?.tags;
|
|
335
|
-
if (r4) for (let e4 = 0; e4 < r4.length; e4++) {
|
|
336
|
-
const t5 = r4[e4];
|
|
337
|
-
let a4 = t5?.tagName?.text;
|
|
338
|
-
if (!a4) continue;
|
|
339
|
-
a4 = a4.toLowerCase();
|
|
340
|
-
let l4 = t5.comment;
|
|
341
|
-
const c3 = "hidden" === a4;
|
|
342
|
-
if (("string" == typeof l4 || c3) && ("string" == typeof l4 && (l4 = l4.replace(/[\r\n]+/g, "\\n").trim()), c3 || !l4 || (l4 = l4.split(/\\n/)[0], l4 && 0 !== l4.length))) {
|
|
343
|
-
if (l4 && "string" == typeof l4) {
|
|
344
|
-
const e5 = /\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;
|
|
345
|
-
let t6, n5 = l4, i4 = [];
|
|
346
|
-
for (; null !== (t6 = e5.exec(l4)); ) {
|
|
347
|
-
const [e6, n6, o4, i5] = t6, r5 = [o4.trim()];
|
|
348
|
-
i5 && r5.push(i5.trim());
|
|
349
|
-
}
|
|
350
|
-
l4 = n5, i4.length > 0 && "see" === a4 && (o3.links || (o3.links = []), o3.links.push(...i4));
|
|
351
|
-
}
|
|
352
|
-
if ("name" === a4) {
|
|
353
|
-
const e5 = l4;
|
|
354
|
-
e5 !== i3 && (o3.name = e5);
|
|
355
|
-
} else if ("description" !== a4) {
|
|
356
|
-
if ("summary" === a4) {
|
|
357
|
-
const e5 = l4;
|
|
358
|
-
e5 && (o3.summary = e5);
|
|
359
|
-
} else if ("param" === a4) {
|
|
360
|
-
const e5 = t5.name?.text, n5 = u3.get(e5);
|
|
361
|
-
if (!n5) {
|
|
362
|
-
P.push(new Error(`Parameter '${e5}' not found in function '${i3}'.`));
|
|
363
|
-
continue;
|
|
364
|
-
}
|
|
365
|
-
if (t5.typeExpression && t5.typeExpression.type) try {
|
|
366
|
-
const e6 = t5.typeExpression.type;
|
|
367
|
-
if (e6.kind === s2.SyntaxKind.UnionType) {
|
|
368
|
-
const t6 = [];
|
|
369
|
-
n5.enums = t6, e6.types.forEach((e7) => {
|
|
370
|
-
if (e7.kind === s2.SyntaxKind.LiteralType) {
|
|
371
|
-
const n6 = e7.literal.text;
|
|
372
|
-
n6 && t6.push(n6);
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
} catch (e6) {
|
|
377
|
-
console.warn("Error parsing JSDoc type expression:", e6);
|
|
378
|
-
}
|
|
379
|
-
} else if ("returns" === a4 || "return" === a4) n4.returnType.description = l4;
|
|
380
|
-
else if ("category" === a4) o3.category = l4;
|
|
381
|
-
else if ("hidden" === a4) {
|
|
382
|
-
let e5 = true;
|
|
383
|
-
const t6 = l4?.toLowerCase();
|
|
384
|
-
"false" === t6 ? e5 = false : "true" !== t6 && (e5 = l4), false !== e5 && (o3.hidden = e5 ?? true);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
0 === Object.keys(n4.returnType).length && delete n4.returnType, d2.push([n4, o3]);
|
|
392
|
-
} catch (t4) {
|
|
393
|
-
$(e2, new Error(`'${i3}': ${t4.message}`));
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
var t3, n3;
|
|
397
|
-
}), P.length > 0) throw console.warn(P), new Error("There were compilation errors.", { cause: P });
|
|
398
|
-
if (0 === d2.length) throw new Error("No exported functions.");
|
|
399
|
-
const B = `${e.uuidV4()}-script`;
|
|
400
|
-
try {
|
|
401
|
-
o2 || 0 !== P.length || (l2 = await async function(e2, t3, n3 = "/script.js", o3 = "__SHEETXL") {
|
|
402
|
-
try {
|
|
403
|
-
const e3 = await async function() {
|
|
404
|
-
if (p) return p;
|
|
405
|
-
if (m) {
|
|
406
|
-
if (await m, !p) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
407
|
-
return p;
|
|
408
|
-
}
|
|
409
|
-
let e4, t4;
|
|
410
|
-
m = new Promise((n4, o4) => {
|
|
411
|
-
e4 = n4, t4 = o4;
|
|
412
|
-
});
|
|
413
|
-
try {
|
|
414
|
-
const { initialize: t5 } = await import("./BPSX88j1UHZNFlgn.mjs");
|
|
415
|
-
return p = await t5(), e4(), p;
|
|
416
|
-
} catch (e5) {
|
|
417
|
-
throw console.error("Failed to import or initialize esbuild:", e5), m = null, t4(e5), e5;
|
|
418
|
-
}
|
|
419
|
-
}(), i3 = "@sheetxl/primitives", r3 = `
|
|
420
|
-
export const FormulaContext = globalThis.${o3}?.FormulaContext;
|
|
421
|
-
export const ScalarType = globalThis.${o3}?.ScalarType;
|
|
422
|
-
export const Observable = globalThis.${o3}?.Observable;
|
|
423
|
-
export const IRange = globalThis.${o3}?.IRange;
|
|
424
|
-
export const FormulaError = globalThis.${o3}?.FormulaError;
|
|
425
|
-
// Add more exports as needed
|
|
426
|
-
`, a3 = { name: "sheetxl-esbuild-in-memory", setup(e4) {
|
|
427
|
-
const o4 = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
|
|
428
|
-
e4.onResolve({ filter: new RegExp(`^(${n3.replace("/", "\\/")}|${i3})$`) }, (e5) => ({ path: e5.path, namespace: o4 })), e4.onResolve({ filter: /.*/ }, (e5) => {
|
|
429
|
-
if (e5.namespace !== o4) return console.warn(`esbuild: Treating import "${e5.path}" as external.`), { path: e5.path, external: true };
|
|
430
|
-
}), e4.onLoad({ filter: /.*/, namespace: o4 }, (e5) => {
|
|
431
|
-
let a4;
|
|
432
|
-
if (e5.path === n3) a4 = t3;
|
|
433
|
-
else {
|
|
434
|
-
if (e5.path !== i3) return { errors: [{ text: `Cannot load unknown path in ${o4}: ${e5.path}` }] };
|
|
435
|
-
a4 = r3;
|
|
436
|
-
}
|
|
437
|
-
return { contents: a4, loader: "ts" };
|
|
438
|
-
});
|
|
439
|
-
} }, s3 = await e3.build({ entryPoints: [n3], bundle: true, write: false, format: "esm", plugins: [a3], sourcemap: "inline", tsconfigRaw: y, minify: true, platform: "neutral" });
|
|
440
|
-
if (s3.outputFiles && s3.outputFiles.length > 0) return s3.outputFiles[0].text;
|
|
441
|
-
throw s3.errors && s3.errors.length > 0 ? new Error(`esbuild bundling failed: ${s3.errors.map((e4) => e4.text).join("\n")}`) : new Error("esbuild did not produce an output file.");
|
|
442
|
-
} catch (e3) {
|
|
443
|
-
throw console.error("esbuild bundling process failed:", e3), e3;
|
|
444
|
-
}
|
|
445
|
-
}(0, l2, w2));
|
|
446
|
-
} catch {
|
|
447
|
-
console.warn("Error bundling script");
|
|
448
|
-
}
|
|
449
|
-
const R = { functions: d2, commitId: B, source: n2, name: "Script", language: "typescript", compiled: l2 };
|
|
450
|
-
return c2 && (R.autoRun = c2), R;
|
|
451
|
-
}
|
|
452
|
-
export {
|
|
453
|
-
S as compileModule
|
|
454
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.20
|
|
3
|
-
*
|
|
4
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/
|
|
7
|
-
class r {
|
|
8
|
-
constructor(r2 = {}) {
|
|
9
|
-
this.workerWrapper = null;
|
|
10
|
-
}
|
|
11
|
-
async getWorkerWrapper() {
|
|
12
|
-
if (this.workerWrapper) return this.workerWrapper;
|
|
13
|
-
const { createCompilerWorker: r2 } = await import("./BI2k0XM8cAqRUH3e.mjs");
|
|
14
|
-
return this.workerWrapper = await r2(), this.workerWrapper;
|
|
15
|
-
}
|
|
16
|
-
async compileModule(r2) {
|
|
17
|
-
try {
|
|
18
|
-
return (await this.getWorkerWrapper()).execute(r2);
|
|
19
|
-
} catch (r3) {
|
|
20
|
-
throw console.error("Failed to compile using worker:", r3), r3;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
terminate() {
|
|
24
|
-
this.workerWrapper?.terminate(), this.workerWrapper = null;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
export {
|
|
28
|
-
r as TypeScriptCompiler
|
|
29
|
-
};
|