@sheetxl/sdk 0.4.10 → 0.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/cjs/39ybckEYrSwofEL8.cjs +7 -0
- package/browser/cjs/7F9Y23ZviM83MrLB.cjs +7 -0
- package/browser/cjs/9OWmR6t6tmtR3HKs.cjs +7 -0
- package/browser/cjs/AoftwE84s7sGV4YJ.cjs +7 -0
- package/browser/cjs/BJZM9I81r8nRPehZ.cjs +7 -0
- package/browser/cjs/BLHJddfDq44WHNs6.cjs +7 -0
- package/browser/cjs/BdbcopQNFs0VAYoZ.cjs +7 -0
- package/browser/cjs/C2McR1ZSNpfPMaI1.cjs +7 -0
- package/browser/cjs/CAC1euA3bA1IpMhZ.cjs +7 -0
- package/browser/cjs/CDwPpmyZAYF_aBaX.cjs +7 -0
- package/browser/cjs/CP2yuwDM2Fzm2bQy.cjs +7 -0
- package/browser/cjs/CSn-hMrEUwFcYpBT.cjs +13 -0
- package/browser/cjs/CeuXJMoeKjSnby5j.cjs +7 -0
- package/browser/cjs/Ch5W6IQIqcVy3CUV.cjs +10 -0
- package/browser/cjs/CtaH9jllSQmzD2AZ.cjs +7 -0
- package/browser/cjs/Ctw9E_2VE0l2P6Yk.cjs +7 -0
- package/browser/cjs/Czl-z-_3jRiufzFq.cjs +7 -0
- package/browser/cjs/D-HLMUqMDuHV5fFD.cjs +7 -0
- package/browser/cjs/D5pK8FbUHJmgHMVR.cjs +7 -0
- package/browser/cjs/DA7BmT8kgTnFcBps.cjs +7 -0
- package/browser/cjs/DBBaD9qGTCHmDZzt.cjs +7 -0
- package/browser/cjs/DD24B_zQQtT3iqLe.cjs +7 -0
- package/browser/cjs/DKwnqzohEhfP9-D8.cjs +7 -0
- package/browser/cjs/DO-igV-beWuURc9q.cjs +7 -0
- package/browser/cjs/DR2yNdWmKOx4XEn_.cjs +7 -0
- package/browser/cjs/D_PNelhiuhC_pYQe.cjs +7 -0
- package/{node/esm/Dk3ABmYKlVup4l-u.mjs → browser/cjs/Dg4inQb_qTGcwKWj.cjs} +2 -5
- package/browser/cjs/KlMBkdsOI1TbINZi.cjs +7 -0
- package/browser/cjs/Me1cXPMFZnMqu9Ni.cjs +10 -0
- package/browser/cjs/P1V-5yUNwU9r5yLw.cjs +7 -0
- package/browser/cjs/Vkjfeba56sx1eWi0.cjs +7 -0
- package/browser/cjs/dwUVhGNDSgZfRm3P.cjs +7 -0
- package/browser/cjs/index.cjs +4 -3
- package/browser/cjs/txLIAZHRWIU9kf0I.cjs +7 -0
- package/browser/esm/30SRICLt1PAxlGS8.mjs +7 -0
- package/browser/esm/{CsPZhcz5eLf-CbkJ.mjs → 9jeiH8SVL_ZJYLxo.mjs} +2 -7
- package/browser/esm/B-xoX7KIAUytU1_U.mjs +7 -0
- package/browser/esm/B_bzVKesE_JRp6EW.mjs +7 -0
- package/browser/esm/BbO1W_XgpJnqTSty.mjs +7 -0
- package/browser/esm/BngRU84kl6oeKeYG.mjs +7 -0
- package/browser/esm/BuJVzVii6s-ETLFo.mjs +7 -0
- package/browser/esm/ByHA0yF73W3Lubv1.mjs +13 -0
- package/browser/esm/C9XmeyBj3CidGuuQ.mjs +7 -0
- package/browser/esm/CGlSMtRCaIAn2kcK.mjs +7 -0
- package/browser/esm/CNZEHpuUipSLJnir.mjs +7 -0
- package/browser/esm/CUDgLpRqpHPjfaCi.mjs +7 -0
- package/browser/esm/ChB6ZgoNr49oUuh9.mjs +7 -0
- package/browser/esm/D0HYMuygnYvY7Atx.mjs +7 -0
- package/browser/esm/D1PWaFTHEZfGGXTb.mjs +7 -0
- package/browser/esm/D2zmZcBdOoyixeUA.mjs +7 -0
- package/browser/esm/D525g_2eyexUf3Zf.mjs +7 -0
- package/browser/esm/DMJw8DmfeX6u2glN.mjs +7 -0
- package/browser/esm/DfHQEyIlLlv5P49Q.mjs +7 -0
- package/browser/esm/Dhvtq8jHg8BxOR0C.mjs +7 -0
- package/browser/esm/DkPPc6PpShDjAHJV.mjs +7 -0
- package/browser/esm/DqEqprkW8poZvfjh.mjs +7 -0
- package/browser/esm/DtSj65a0yyYL8HUw.mjs +7 -0
- package/browser/esm/Dw0Okzcg5hIcHUcc.mjs +7 -0
- package/browser/esm/Dzo7yK5H2NRkocTa.mjs +7 -0
- package/browser/esm/G_2bOLOa20d7iobX.mjs +7 -0
- package/browser/esm/MRXgg6FvbB08Ze4M.mjs +7 -0
- package/browser/esm/SePiM6uWrcY09dym.mjs +7 -0
- package/browser/esm/eCZnrKI7SxPgdErZ.mjs +7 -0
- package/browser/esm/index.mjs +2 -84
- package/browser/esm/nE8H93zlwoi3F8Ii.mjs +10 -0
- package/browser/esm/ui3SG2ZyuCKIR0An.mjs +7 -0
- package/browser/esm/vk7TdrD0zPqtT8_n.mjs +7 -0
- package/browser/esm/yM_d2jrPPN_EupI0.mjs +10 -0
- package/licenses/dependencies.txt +3 -3
- package/{browser/esm/70MScShy9oEFZGC-.mjs → node/esm/BJvhZja9zXr81ch6.mjs} +1 -1
- package/node/esm/{YqgO5dqnNDu6tJAq.mjs → BK_7sJa3fTDIKVsK.mjs} +2 -2
- package/node/esm/{CdbncxwuP2LcomiC.mjs → BPhIhbwKpbuhJ5n5.mjs} +1 -1
- package/node/esm/{BYw54CVi5Zykf7P_.mjs → BQb_TIMVKb4ap8qn.mjs} +1 -1
- package/node/esm/{B2GPpiwGDiHZ4Mnx.mjs → BW1-l-HQdvRTQ7Bm.mjs} +4 -4
- package/{browser/esm/Dk3ABmYKlVup4l-u.mjs → node/esm/Bkj8joA7ej1p4iQv.mjs} +1 -1
- package/node/esm/{BD4U7piuPUWGdmvF.mjs → BnQS3_N8ZEyMLfgn.mjs} +1 -1
- package/node/esm/{CYs7VtVLEbhMy_iG.mjs → Bs1vmYEblngyWvkW.mjs} +1 -1
- package/node/esm/{BWm5puKy7haAGpHu.mjs → BtDgmaUXSuZwZauR.mjs} +2 -2
- package/node/esm/{Blozz9cX9jUqOnkK.mjs → C2nQBB-2yJ1qfKsG.mjs} +1 -1
- package/node/esm/{mkuXwkQcdkBHUMsY.mjs → CEBBIejO4nn_eoLE.mjs} +1 -1
- package/{browser/esm/3AEwlfYXdvg1zUXm.mjs → node/esm/CEBaRGnJ6Pau61Z3.mjs} +1 -1
- package/node/esm/{CxkMMFqIme5dCX9o.mjs → CSr4e1I9DtTv2w79.mjs} +1 -1
- package/node/esm/CWUmgm7_b5VypIPN.mjs +80 -0
- package/node/esm/{BW04nsyJWeVHBcFW.mjs → Cb2A-sSxQbrq7_st.mjs} +1 -1
- package/node/esm/{DQwOIKwLzYjUwPmT.mjs → CfSD4cLmkg0FqnhQ.mjs} +1 -1
- package/node/esm/{C8OHYChkHQk2jVzy.mjs → ChgW0mo5gCgLQ4qn.mjs} +1 -1
- package/node/esm/{Br_wraXbAu-VOj0p.mjs → Cl6j-EVdzk8MvmYu.mjs} +1 -1
- package/node/esm/{CXhWG2Dg31l6Mo8r.mjs → Cvzp8bwJnKvjvZSp.mjs} +1 -1
- package/node/esm/{BJgxNxKnNgVBP4Hp.mjs → D-7D30G3TPv5yZHW.mjs} +1 -1
- package/node/esm/{0OTV9xpta6cm7Yx6.mjs → DPWAK-dKa7BGHzhV.mjs} +1 -1
- package/{browser/esm/DbezlvRyCGtHZgSZ.mjs → node/esm/DaA9EfLaa4eAL5v5.mjs} +1 -1
- package/{browser/esm/sUZorY3sws86BcMb.mjs → node/esm/DdQQdRO6WRU-o7fW.mjs} +1 -1
- package/{browser/esm/BLET1HFCb5u0-_Eo.mjs → node/esm/DqzaLjnlgJ73P6fj.mjs} +1 -1
- package/node/esm/{DXj8p7NZndUJBRAj.mjs → KTvP9pq_hIePsIcs.mjs} +1 -1
- package/node/esm/{Dq32tysuLIKWEFO_.mjs → R6sbyZ3F8U46a2pT.mjs} +1 -1
- package/node/esm/{DrU-yP_Fb9i7w1lb.mjs → RjYTditNvvkkhvec.mjs} +1 -1
- package/{browser/esm/CCcaxwoCKpK91TYc.mjs → node/esm/Ru2U-PXJ-wtFJVIi.mjs} +1 -1
- package/{browser/esm/CA504N_MgS6GSFmG.mjs → node/esm/_50UNzbNjsJJ5JeA.mjs} +1 -1
- package/node/esm/{Cyb9hq0LVkNm7yoj.mjs → ebMdiumtVWrujqaH.mjs} +1 -1
- package/node/esm/index.mjs +8 -8
- package/node/esm/{BelMCqHHX_Ln7ik4.mjs → wYdBXNtyuqNnNqw7.mjs} +2 -2
- package/package.json +4 -4
- package/browser/cjs/-4uKwgMCs2uA4zYY.cjs +0 -6
- package/browser/cjs/23Opade9fWTWmOw5.cjs +0 -6
- package/browser/cjs/6SNZR9WEya-Mi0Ec.cjs +0 -1501
- package/browser/cjs/7lk46bEggXm0Adux.cjs +0 -6
- package/browser/cjs/B0U3u9iqqnQvnw_Z.cjs +0 -6
- package/browser/cjs/BEQPlpKfeBPKELfa.cjs +0 -6
- package/browser/cjs/BKdxsyIZAckH_1Rs.cjs +0 -6
- package/browser/cjs/BKu_2G3LBpnvF7WK.cjs +0 -6
- package/browser/cjs/BTWYrYyq7P04Hhgy.cjs +0 -6
- package/browser/cjs/BVgdgozKIof0HqZa.cjs +0 -6
- package/browser/cjs/BXi-7ztAEss53BNW.cjs +0 -6
- package/browser/cjs/BzzSS21ndAnpHnTK.cjs +0 -6
- package/browser/cjs/C-JX44FribP4xuCm.cjs +0 -6
- package/browser/cjs/C12NQkp7rKKeLgpL.cjs +0 -60
- package/browser/cjs/CIisU9Fr1gqlOapx.cjs +0 -13
- package/browser/cjs/CRjnB0UGZizopxIy.cjs +0 -7
- package/browser/cjs/CfmxldeTiQsDhe4k.cjs +0 -6
- package/browser/cjs/CrkVZFNUXb_YVEfl.cjs +0 -6
- package/browser/cjs/Csmvu-Gg7GIET2fx.cjs +0 -124
- package/browser/cjs/D5kea7N3qYrpyi6Z.cjs +0 -6
- package/browser/cjs/DDPVADUPfi4JqKY9.cjs +0 -15
- package/browser/cjs/DJSDSOdIMakiUL9U.cjs +0 -6
- package/browser/cjs/DgJG2zU2CpBE2JKD.cjs +0 -6
- package/browser/cjs/DqHT7AmlwwAApU0v.cjs +0 -32
- package/browser/cjs/DqdKJmCBZ3tiiTyS.cjs +0 -6
- package/browser/cjs/Dy_w3ejsXCUjhwLi.cjs +0 -6
- package/browser/cjs/EAjldglgyKcpKzX6.cjs +0 -6
- package/browser/cjs/QraWsiDLYuP865Pt.cjs +0 -6
- package/browser/cjs/TMXcSm2F77kJ6GbS.cjs +0 -6
- package/browser/cjs/g9Un0PdQLp8LcMP-.cjs +0 -6
- package/browser/cjs/hNHT5yLsXAZ-mS5K.cjs +0 -6
- package/browser/cjs/o_FLjAWENTjXcsuZ.cjs +0 -6
- package/browser/cjs/rBPqKMZ7T6poaL7T.cjs +0 -6
- package/browser/esm/3-pvLx1jF0RJ56jT.mjs +0 -472
- package/browser/esm/3kB3KaOgV-3ox4C3.mjs +0 -426
- package/browser/esm/BJgxNxKnNgVBP4Hp.mjs +0 -10
- package/browser/esm/BO-YRuEp35GIVL4O.mjs +0 -10
- package/browser/esm/BOL-jxmJyje4-Hxe.mjs +0 -10
- package/browser/esm/BSFibAPQFeBovPl3.mjs +0 -10
- package/browser/esm/BW04nsyJWeVHBcFW.mjs +0 -10
- package/browser/esm/BaGFns-M8bCUjgnc.mjs +0 -3974
- package/browser/esm/BifIJRmeTJJLYCr-.mjs +0 -24
- package/browser/esm/Br_wraXbAu-VOj0p.mjs +0 -10
- package/browser/esm/BvE9cJg2esqHIr98.mjs +0 -10
- package/browser/esm/CMO8yX7mxIaFV5GC.mjs +0 -820
- package/browser/esm/Cqf8ZomeNI_0U-UD.mjs +0 -29
- package/browser/esm/DQwOIKwLzYjUwPmT.mjs +0 -10
- package/browser/esm/DXj8p7NZndUJBRAj.mjs +0 -10
- package/browser/esm/DcPcMjMOmfyIGaSN.mjs +0 -1575
- package/browser/esm/DhqkybSwX2wqkqcf.mjs +0 -24009
- package/browser/esm/DpJLw2aGOg6yuBjH.mjs +0 -10
- package/browser/esm/Dq32tysuLIKWEFO_.mjs +0 -10
- package/browser/esm/DrU-yP_Fb9i7w1lb.mjs +0 -10
- package/browser/esm/WY6tkuqX7I-Tw85_.mjs +0 -5651
- package/browser/esm/mkuXwkQcdkBHUMsY.mjs +0 -10
- package/browser/esm/skZ-cAv6270PFv3k.mjs +0 -10
- package/browser/esm/xUdz3zy_nz-hMfhq.mjs +0 -21
- package/node/esm/3AEwlfYXdvg1zUXm.mjs +0 -10
- package/node/esm/70MScShy9oEFZGC-.mjs +0 -10
- package/node/esm/BLET1HFCb5u0-_Eo.mjs +0 -10
- package/node/esm/CA504N_MgS6GSFmG.mjs +0 -10
- package/node/esm/CCcaxwoCKpK91TYc.mjs +0 -10
- package/node/esm/CSgS-BWwvF8YA6gv.mjs +0 -80
- package/node/esm/DbezlvRyCGtHZgSZ.mjs +0 -10
- package/node/esm/sUZorY3sws86BcMb.mjs +0 -10
|
@@ -1,426 +0,0 @@
|
|
|
1
|
-
import { h as yt } from "./DhqkybSwX2wqkqcf.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.10
|
|
4
|
-
*
|
|
5
|
-
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
-
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
-
*/
|
|
8
|
-
function kt(Y, H) {
|
|
9
|
-
for (var k = 0; k < H.length; k++) {
|
|
10
|
-
const P = H[k];
|
|
11
|
-
if (typeof P != "string" && !Array.isArray(P)) {
|
|
12
|
-
for (const N in P) if (N !== "default" && !(N in Y)) {
|
|
13
|
-
const Q = Object.getOwnPropertyDescriptor(P, N);
|
|
14
|
-
Q && Object.defineProperty(Y, N, Q.get ? Q : { enumerable: !0, get: () => P[N] });
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return Object.freeze(Object.defineProperty(Y, Symbol.toStringTag, { value: "Module" }));
|
|
19
|
-
}
|
|
20
|
-
var ct, pt = { exports: {} }, gt = (ct || (ct = 1, pt.exports = function Y() {
|
|
21
|
-
var H, k = typeof self < "u" ? self : typeof window < "u" ? window : k !== void 0 ? k : {}, P = !k.document && !!k.postMessage, N = k.IS_PAPA_WORKER || !1, Q = {}, mt = 0, o = {};
|
|
22
|
-
function B(t) {
|
|
23
|
-
this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = { data: [], errors: [], meta: {} }, function(e) {
|
|
24
|
-
var i = at(e);
|
|
25
|
-
i.chunkSize = parseInt(i.chunkSize), e.step || e.chunk || (i.chunkSize = null), this._handle = new ht(i), (this._handle.streamer = this)._config = i;
|
|
26
|
-
}.call(this, t), this.parseChunk = function(e, i) {
|
|
27
|
-
var n = parseInt(this._config.skipFirstNLines) || 0;
|
|
28
|
-
if (this.isFirstChunk && 0 < n) {
|
|
29
|
-
let c = this._config.newline;
|
|
30
|
-
c || (r = this._config.quoteChar || '"', c = this._handle.guessLineEndings(e, r)), e = [...e.split(c).slice(n)].join(c);
|
|
31
|
-
}
|
|
32
|
-
this.isFirstChunk && _(this._config.beforeFirstChunk) && (r = this._config.beforeFirstChunk(e)) !== void 0 && (e = r), this.isFirstChunk = !1, this._halted = !1, n = this._partialLine + e;
|
|
33
|
-
var r = (this._partialLine = "", this._handle.parse(n, this._baseIndex, !this._finished));
|
|
34
|
-
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
35
|
-
if (e = r.meta.cursor, this._finished || (this._partialLine = n.substring(e - this._baseIndex), this._baseIndex = e), r && r.data && (this._rowCount += r.data.length), n = this._finished || this._config.preview && this._rowCount >= this._config.preview, N) k.postMessage({ results: r, workerId: o.WORKER_ID, finished: n });
|
|
36
|
-
else if (_(this._config.chunk) && !i) {
|
|
37
|
-
if (this._config.chunk(r, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
38
|
-
this._completeResults = r = void 0;
|
|
39
|
-
}
|
|
40
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(r.data), this._completeResults.errors = this._completeResults.errors.concat(r.errors), this._completeResults.meta = r.meta), this._completed || !n || !_(this._config.complete) || r && r.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), n || r && r.meta.paused || this._nextChunk(), r;
|
|
41
|
-
}
|
|
42
|
-
this._halted = !0;
|
|
43
|
-
}, this._sendError = function(e) {
|
|
44
|
-
_(this._config.error) ? this._config.error(e) : N && this._config.error && k.postMessage({ workerId: o.WORKER_ID, error: e, finished: !1 });
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
function it(t) {
|
|
48
|
-
var e;
|
|
49
|
-
(t = t || {}).chunkSize || (t.chunkSize = o.RemoteChunkSize), B.call(this, t), this._nextChunk = P ? function() {
|
|
50
|
-
this._readChunk(), this._chunkLoaded();
|
|
51
|
-
} : function() {
|
|
52
|
-
this._readChunk();
|
|
53
|
-
}, this.stream = function(i) {
|
|
54
|
-
this._input = i, this._nextChunk();
|
|
55
|
-
}, this._readChunk = function() {
|
|
56
|
-
if (this._finished) this._chunkLoaded();
|
|
57
|
-
else {
|
|
58
|
-
if (e = new XMLHttpRequest(), this._config.withCredentials && (e.withCredentials = this._config.withCredentials), P || (e.onload = J(this._chunkLoaded, this), e.onerror = J(this._chunkError, this)), e.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !P), this._config.downloadRequestHeaders) {
|
|
59
|
-
var i, n = this._config.downloadRequestHeaders;
|
|
60
|
-
for (i in n) e.setRequestHeader(i, n[i]);
|
|
61
|
-
}
|
|
62
|
-
var r;
|
|
63
|
-
this._config.chunkSize && (r = this._start + this._config.chunkSize - 1, e.setRequestHeader("Range", "bytes=" + this._start + "-" + r));
|
|
64
|
-
try {
|
|
65
|
-
e.send(this._config.downloadRequestBody);
|
|
66
|
-
} catch (c) {
|
|
67
|
-
this._chunkError(c.message);
|
|
68
|
-
}
|
|
69
|
-
P && e.status === 0 && this._chunkError();
|
|
70
|
-
}
|
|
71
|
-
}, this._chunkLoaded = function() {
|
|
72
|
-
e.readyState === 4 && (e.status < 200 || 400 <= e.status ? this._chunkError() : (this._start += this._config.chunkSize || e.responseText.length, this._finished = !this._config.chunkSize || this._start >= ((i) => (i = i.getResponseHeader("Content-Range")) !== null ? parseInt(i.substring(i.lastIndexOf("/") + 1)) : -1)(e), this.parseChunk(e.responseText)));
|
|
73
|
-
}, this._chunkError = function(i) {
|
|
74
|
-
i = e.statusText || i, this._sendError(new Error(i));
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
function rt(t) {
|
|
78
|
-
(t = t || {}).chunkSize || (t.chunkSize = o.LocalChunkSize), B.call(this, t);
|
|
79
|
-
var e, i, n = typeof FileReader < "u";
|
|
80
|
-
this.stream = function(r) {
|
|
81
|
-
this._input = r, i = r.slice || r.webkitSlice || r.mozSlice, n ? ((e = new FileReader()).onload = J(this._chunkLoaded, this), e.onerror = J(this._chunkError, this)) : e = new FileReaderSync(), this._nextChunk();
|
|
82
|
-
}, this._nextChunk = function() {
|
|
83
|
-
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
84
|
-
}, this._readChunk = function() {
|
|
85
|
-
var r = this._input, c = (this._config.chunkSize && (c = Math.min(this._start + this._config.chunkSize, this._input.size), r = i.call(r, this._start, c)), e.readAsText(r, this._config.encoding));
|
|
86
|
-
n || this._chunkLoaded({ target: { result: c } });
|
|
87
|
-
}, this._chunkLoaded = function(r) {
|
|
88
|
-
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(r.target.result);
|
|
89
|
-
}, this._chunkError = function() {
|
|
90
|
-
this._sendError(e.error);
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
function X(t) {
|
|
94
|
-
var e;
|
|
95
|
-
B.call(this, t = t || {}), this.stream = function(i) {
|
|
96
|
-
return e = i, this._nextChunk();
|
|
97
|
-
}, this._nextChunk = function() {
|
|
98
|
-
var i, n;
|
|
99
|
-
if (!this._finished) return i = this._config.chunkSize, e = i ? (n = e.substring(0, i), e.substring(i)) : (n = e, ""), this._finished = !e, this.parseChunk(n);
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
function nt(t) {
|
|
103
|
-
B.call(this, t = t || {});
|
|
104
|
-
var e = [], i = !0, n = !1;
|
|
105
|
-
this.pause = function() {
|
|
106
|
-
B.prototype.pause.apply(this, arguments), this._input.pause();
|
|
107
|
-
}, this.resume = function() {
|
|
108
|
-
B.prototype.resume.apply(this, arguments), this._input.resume();
|
|
109
|
-
}, this.stream = function(r) {
|
|
110
|
-
this._input = r, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
111
|
-
}, this._checkIsFinished = function() {
|
|
112
|
-
n && e.length === 1 && (this._finished = !0);
|
|
113
|
-
}, this._nextChunk = function() {
|
|
114
|
-
this._checkIsFinished(), e.length ? this.parseChunk(e.shift()) : i = !0;
|
|
115
|
-
}, this._streamData = J(function(r) {
|
|
116
|
-
try {
|
|
117
|
-
e.push(typeof r == "string" ? r : r.toString(this._config.encoding)), i && (i = !1, this._checkIsFinished(), this.parseChunk(e.shift()));
|
|
118
|
-
} catch (c) {
|
|
119
|
-
this._streamError(c);
|
|
120
|
-
}
|
|
121
|
-
}, this), this._streamError = J(function(r) {
|
|
122
|
-
this._streamCleanUp(), this._sendError(r);
|
|
123
|
-
}, this), this._streamEnd = J(function() {
|
|
124
|
-
this._streamCleanUp(), n = !0, this._streamData("");
|
|
125
|
-
}, this), this._streamCleanUp = J(function() {
|
|
126
|
-
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
127
|
-
}, this);
|
|
128
|
-
}
|
|
129
|
-
function ht(t) {
|
|
130
|
-
var e, i, n, r, c = Math.pow(2, 53), C = -c, j = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, z = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, p = this, w = 0, a = 0, L = !1, u = !1, g = [], s = { data: [], errors: [], meta: {} };
|
|
131
|
-
function O(h) {
|
|
132
|
-
return t.skipEmptyLines === "greedy" ? h.join("").trim() === "" : h.length === 1 && h[0].length === 0;
|
|
133
|
-
}
|
|
134
|
-
function R() {
|
|
135
|
-
if (s && n && (M("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + o.DefaultDelimiter + "'"), n = !1), t.skipEmptyLines && (s.data = s.data.filter(function(l) {
|
|
136
|
-
return !O(l);
|
|
137
|
-
})), T()) {
|
|
138
|
-
let l = function(S, A) {
|
|
139
|
-
_(t.transformHeader) && (S = t.transformHeader(S, A)), g.push(S);
|
|
140
|
-
};
|
|
141
|
-
if (s) if (Array.isArray(s.data[0])) {
|
|
142
|
-
for (var h = 0; T() && h < s.data.length; h++) s.data[h].forEach(l);
|
|
143
|
-
s.data.splice(0, 1);
|
|
144
|
-
} else s.data.forEach(l);
|
|
145
|
-
}
|
|
146
|
-
function d(l, S) {
|
|
147
|
-
for (var A = t.header ? {} : [], b = 0; b < l.length; b++) {
|
|
148
|
-
var y = b, m = l[b];
|
|
149
|
-
m = ((U, f) => ((v) => (t.dynamicTypingFunction && t.dynamicTyping[v] === void 0 && (t.dynamicTyping[v] = t.dynamicTypingFunction(v)), (t.dynamicTyping[v] || t.dynamicTyping) === !0))(U) ? f === "true" || f === "TRUE" || f !== "false" && f !== "FALSE" && (((v) => {
|
|
150
|
-
if (j.test(v) && (v = parseFloat(v), C < v && v < c)) return 1;
|
|
151
|
-
})(f) ? parseFloat(f) : z.test(f) ? new Date(f) : f === "" ? null : f) : f)(y = t.header ? b >= g.length ? "__parsed_extra" : g[b] : y, m = t.transform ? t.transform(m, y) : m), y === "__parsed_extra" ? (A[y] = A[y] || [], A[y].push(m)) : A[y] = m;
|
|
152
|
-
}
|
|
153
|
-
return t.header && (b > g.length ? M("FieldMismatch", "TooManyFields", "Too many fields: expected " + g.length + " fields but parsed " + b, a + S) : b < g.length && M("FieldMismatch", "TooFewFields", "Too few fields: expected " + g.length + " fields but parsed " + b, a + S)), A;
|
|
154
|
-
}
|
|
155
|
-
var E;
|
|
156
|
-
s && (t.header || t.dynamicTyping || t.transform) && (E = 1, !s.data.length || Array.isArray(s.data[0]) ? (s.data = s.data.map(d), E = s.data.length) : s.data = d(s.data, 0), t.header && s.meta && (s.meta.fields = g), a += E);
|
|
157
|
-
}
|
|
158
|
-
function T() {
|
|
159
|
-
return t.header && g.length === 0;
|
|
160
|
-
}
|
|
161
|
-
function M(h, d, E, l) {
|
|
162
|
-
h = { type: h, code: d, message: E }, l !== void 0 && (h.row = l), s.errors.push(h);
|
|
163
|
-
}
|
|
164
|
-
_(t.step) && (r = t.step, t.step = function(h) {
|
|
165
|
-
s = h, T() ? R() : (R(), s.data.length !== 0 && (w += h.data.length, t.preview && w > t.preview ? i.abort() : (s.data = s.data[0], r(s, p))));
|
|
166
|
-
}), this.parse = function(h, d, E) {
|
|
167
|
-
var l = t.quoteChar || '"';
|
|
168
|
-
return t.newline || (t.newline = this.guessLineEndings(h, l)), n = !1, t.delimiter ? _(t.delimiter) && (t.delimiter = t.delimiter(h), s.meta.delimiter = t.delimiter) : ((l = ((S, A, b, y, m) => {
|
|
169
|
-
var U, f, v, $;
|
|
170
|
-
m = m || [",", " ", "|", ";", o.RECORD_SEP, o.UNIT_SEP];
|
|
171
|
-
for (var Z = 0; Z < m.length; Z++) {
|
|
172
|
-
for (var K, tt = m[Z], F = 0, D = 0, x = 0, I = (v = void 0, new st({ comments: y, delimiter: tt, newline: A, preview: 10 }).parse(S)), W = 0; W < I.data.length; W++) b && O(I.data[W]) ? x++ : (D += K = I.data[W].length, v === void 0 ? v = K : 0 < K && (F += Math.abs(K - v), v = K));
|
|
173
|
-
0 < I.data.length && (D /= I.data.length - x), (f === void 0 || F <= f) && ($ === void 0 || $ < D) && 1.99 < D && (f = F, U = tt, $ = D);
|
|
174
|
-
}
|
|
175
|
-
return { successful: !!(t.delimiter = U), bestDelimiter: U };
|
|
176
|
-
})(h, t.newline, t.skipEmptyLines, t.comments, t.delimitersToGuess)).successful ? t.delimiter = l.bestDelimiter : (n = !0, t.delimiter = o.DefaultDelimiter), s.meta.delimiter = t.delimiter), l = at(t), t.preview && t.header && l.preview++, e = h, i = new st(l), s = i.parse(e, d, E), R(), L ? { meta: { paused: !0 } } : s || { meta: { paused: !1 } };
|
|
177
|
-
}, this.paused = function() {
|
|
178
|
-
return L;
|
|
179
|
-
}, this.pause = function() {
|
|
180
|
-
L = !0, i.abort(), e = _(t.chunk) ? "" : e.substring(i.getCharIndex());
|
|
181
|
-
}, this.resume = function() {
|
|
182
|
-
p.streamer._halted ? (L = !1, p.streamer.parseChunk(e, !0)) : setTimeout(p.resume, 3);
|
|
183
|
-
}, this.aborted = function() {
|
|
184
|
-
return u;
|
|
185
|
-
}, this.abort = function() {
|
|
186
|
-
u = !0, i.abort(), s.meta.aborted = !0, _(t.complete) && t.complete(s), e = "";
|
|
187
|
-
}, this.guessLineEndings = function(h, d) {
|
|
188
|
-
h = h.substring(0, 1048576), d = new RegExp(V(d) + "([^]*?)" + V(d), "gm");
|
|
189
|
-
var E = (h = h.replace(d, "")).split("\r");
|
|
190
|
-
if (h = 1 < (d = h.split(`
|
|
191
|
-
`)).length && d[0].length < E[0].length, E.length === 1 || h) return `
|
|
192
|
-
`;
|
|
193
|
-
for (var l = 0, S = 0; S < E.length; S++) E[S][0] === `
|
|
194
|
-
` && l++;
|
|
195
|
-
return l >= E.length / 2 ? `\r
|
|
196
|
-
` : "\r";
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function V(t) {
|
|
200
|
-
return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
201
|
-
}
|
|
202
|
-
function st(t) {
|
|
203
|
-
var e = (t = t || {}).delimiter, i = t.newline, n = t.comments, r = t.step, c = t.preview, C = t.fastMode, j = null, z = !1, p = t.quoteChar == null ? '"' : t.quoteChar, w = p;
|
|
204
|
-
if (t.escapeChar !== void 0 && (w = t.escapeChar), (typeof e != "string" || -1 < o.BAD_DELIMITERS.indexOf(e)) && (e = ","), n === e) throw new Error("Comment character same as delimiter");
|
|
205
|
-
n === !0 ? n = "#" : (typeof n != "string" || -1 < o.BAD_DELIMITERS.indexOf(n)) && (n = !1), i !== `
|
|
206
|
-
` && i !== "\r" && i !== `\r
|
|
207
|
-
` && (i = `
|
|
208
|
-
`);
|
|
209
|
-
var a = 0, L = !1;
|
|
210
|
-
this.parse = function(u, g, s) {
|
|
211
|
-
if (typeof u != "string") throw new Error("Input must be a string");
|
|
212
|
-
var O = u.length, R = e.length, T = i.length, M = n.length, h = _(r), d = [], E = [], l = [], S = a = 0;
|
|
213
|
-
if (!u) return F();
|
|
214
|
-
if (C || C !== !1 && u.indexOf(p) === -1) {
|
|
215
|
-
for (var A = u.split(i), b = 0; b < A.length; b++) {
|
|
216
|
-
if (l = A[b], a += l.length, b !== A.length - 1) a += i.length;
|
|
217
|
-
else if (s) return F();
|
|
218
|
-
if (!n || l.substring(0, M) !== n) {
|
|
219
|
-
if (h) {
|
|
220
|
-
if (d = [], $(l.split(e)), D(), L) return F();
|
|
221
|
-
} else $(l.split(e));
|
|
222
|
-
if (c && c <= b) return d = d.slice(0, c), F(!0);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
return F();
|
|
226
|
-
}
|
|
227
|
-
for (var y = u.indexOf(e, a), m = u.indexOf(i, a), U = new RegExp(V(w) + V(p), "g"), f = u.indexOf(p, a); ; ) if (u[a] === p) for (f = a, a++; ; ) {
|
|
228
|
-
if ((f = u.indexOf(p, f + 1)) === -1) return s || E.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: d.length, index: a }), K();
|
|
229
|
-
if (f === O - 1) return K(u.substring(a, f).replace(U, p));
|
|
230
|
-
if (p === w && u[f + 1] === w) f++;
|
|
231
|
-
else if (p === w || f === 0 || u[f - 1] !== w) {
|
|
232
|
-
y !== -1 && y < f + 1 && (y = u.indexOf(e, f + 1));
|
|
233
|
-
var v = Z((m = m !== -1 && m < f + 1 ? u.indexOf(i, f + 1) : m) === -1 ? y : Math.min(y, m));
|
|
234
|
-
if (u.substr(f + 1 + v, R) === e) {
|
|
235
|
-
l.push(u.substring(a, f).replace(U, p)), u[a = f + 1 + v + R] !== p && (f = u.indexOf(p, a)), y = u.indexOf(e, a), m = u.indexOf(i, a);
|
|
236
|
-
break;
|
|
237
|
-
}
|
|
238
|
-
if (v = Z(m), u.substring(f + 1 + v, f + 1 + v + T) === i) {
|
|
239
|
-
if (l.push(u.substring(a, f).replace(U, p)), tt(f + 1 + v + T), y = u.indexOf(e, a), f = u.indexOf(p, a), h && (D(), L)) return F();
|
|
240
|
-
if (c && d.length >= c) return F(!0);
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
E.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: d.length, index: a }), f++;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
else if (n && l.length === 0 && u.substring(a, a + M) === n) {
|
|
247
|
-
if (m === -1) return F();
|
|
248
|
-
a = m + T, m = u.indexOf(i, a), y = u.indexOf(e, a);
|
|
249
|
-
} else if (y !== -1 && (y < m || m === -1)) l.push(u.substring(a, y)), a = y + R, y = u.indexOf(e, a);
|
|
250
|
-
else {
|
|
251
|
-
if (m === -1) break;
|
|
252
|
-
if (l.push(u.substring(a, m)), tt(m + T), h && (D(), L)) return F();
|
|
253
|
-
if (c && d.length >= c) return F(!0);
|
|
254
|
-
}
|
|
255
|
-
return K();
|
|
256
|
-
function $(x) {
|
|
257
|
-
d.push(x), S = a;
|
|
258
|
-
}
|
|
259
|
-
function Z(x) {
|
|
260
|
-
var I = 0;
|
|
261
|
-
return x !== -1 && (x = u.substring(f + 1, x)) && x.trim() === "" ? x.length : I;
|
|
262
|
-
}
|
|
263
|
-
function K(x) {
|
|
264
|
-
return s || (x === void 0 && (x = u.substring(a)), l.push(x), a = O, $(l), h && D()), F();
|
|
265
|
-
}
|
|
266
|
-
function tt(x) {
|
|
267
|
-
a = x, $(l), l = [], m = u.indexOf(i, a);
|
|
268
|
-
}
|
|
269
|
-
function F(x) {
|
|
270
|
-
if (t.header && !g && d.length && !z) {
|
|
271
|
-
var I = d[0], W = /* @__PURE__ */ Object.create(null), ot = new Set(I);
|
|
272
|
-
let lt = !1;
|
|
273
|
-
for (let G = 0; G < I.length; G++) {
|
|
274
|
-
let q = I[G];
|
|
275
|
-
if (W[q = _(t.transformHeader) ? t.transformHeader(q, G) : q]) {
|
|
276
|
-
let et, dt = W[q];
|
|
277
|
-
for (; et = q + "_" + dt, dt++, ot.has(et); ) ;
|
|
278
|
-
ot.add(et), I[G] = et, W[q]++, lt = !0, (j = j === null ? {} : j)[et] = q;
|
|
279
|
-
} else W[q] = 1, I[G] = q;
|
|
280
|
-
ot.add(q);
|
|
281
|
-
}
|
|
282
|
-
lt && console.warn("Duplicate headers found and renamed."), z = !0;
|
|
283
|
-
}
|
|
284
|
-
return { data: d, errors: E, meta: { delimiter: e, linebreak: i, aborted: L, truncated: !!x, cursor: S + (g || 0), renamedHeaders: j } };
|
|
285
|
-
}
|
|
286
|
-
function D() {
|
|
287
|
-
r(F()), d = [], E = [];
|
|
288
|
-
}
|
|
289
|
-
}, this.abort = function() {
|
|
290
|
-
L = !0;
|
|
291
|
-
}, this.getCharIndex = function() {
|
|
292
|
-
return a;
|
|
293
|
-
};
|
|
294
|
-
}
|
|
295
|
-
function _t(t) {
|
|
296
|
-
var e = t.data, i = Q[e.workerId], n = !1;
|
|
297
|
-
if (e.error) i.userError(e.error, e.file);
|
|
298
|
-
else if (e.results && e.results.data) {
|
|
299
|
-
var r = { abort: function() {
|
|
300
|
-
n = !0, ut(e.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
301
|
-
}, pause: ft, resume: ft };
|
|
302
|
-
if (_(i.userStep)) {
|
|
303
|
-
for (var c = 0; c < e.results.data.length && (i.userStep({ data: e.results.data[c], errors: e.results.errors, meta: e.results.meta }, r), !n); c++) ;
|
|
304
|
-
delete e.results;
|
|
305
|
-
} else _(i.userChunk) && (i.userChunk(e.results, r, e.file), delete e.results);
|
|
306
|
-
}
|
|
307
|
-
e.finished && !n && ut(e.workerId, e.results);
|
|
308
|
-
}
|
|
309
|
-
function ut(t, e) {
|
|
310
|
-
var i = Q[t];
|
|
311
|
-
_(i.userComplete) && i.userComplete(e), i.terminate(), delete Q[t];
|
|
312
|
-
}
|
|
313
|
-
function ft() {
|
|
314
|
-
throw new Error("Not implemented.");
|
|
315
|
-
}
|
|
316
|
-
function at(t) {
|
|
317
|
-
if (typeof t != "object" || t === null) return t;
|
|
318
|
-
var e, i = Array.isArray(t) ? [] : {};
|
|
319
|
-
for (e in t) i[e] = at(t[e]);
|
|
320
|
-
return i;
|
|
321
|
-
}
|
|
322
|
-
function J(t, e) {
|
|
323
|
-
return function() {
|
|
324
|
-
t.apply(e, arguments);
|
|
325
|
-
};
|
|
326
|
-
}
|
|
327
|
-
function _(t) {
|
|
328
|
-
return typeof t == "function";
|
|
329
|
-
}
|
|
330
|
-
return o.parse = function(t, e) {
|
|
331
|
-
var i = (e = e || {}).dynamicTyping || !1;
|
|
332
|
-
if (_(i) && (e.dynamicTypingFunction = i, i = {}), e.dynamicTyping = i, e.transform = !!_(e.transform) && e.transform, !e.worker || !o.WORKERS_SUPPORTED) return i = null, o.NODE_STREAM_INPUT, typeof t == "string" ? (t = ((n) => n.charCodeAt(0) !== 65279 ? n : n.slice(1))(t), i = new (e.download ? it : X)(e)) : t.readable === !0 && _(t.read) && _(t.on) ? i = new nt(e) : (k.File && t instanceof File || t instanceof Object) && (i = new rt(e)), i.stream(t);
|
|
333
|
-
(i = (() => {
|
|
334
|
-
var n;
|
|
335
|
-
return !!o.WORKERS_SUPPORTED && (n = (() => {
|
|
336
|
-
var r = k.URL || k.webkitURL || null, c = Y.toString();
|
|
337
|
-
return o.BLOB_URL || (o.BLOB_URL = r.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", c, ")();"], { type: "text/javascript" })));
|
|
338
|
-
})(), (n = new k.Worker(n)).onmessage = _t, n.id = mt++, Q[n.id] = n);
|
|
339
|
-
})()).userStep = e.step, i.userChunk = e.chunk, i.userComplete = e.complete, i.userError = e.error, e.step = _(e.step), e.chunk = _(e.chunk), e.complete = _(e.complete), e.error = _(e.error), delete e.worker, i.postMessage({ input: t, config: e, workerId: i.id });
|
|
340
|
-
}, o.unparse = function(t, e) {
|
|
341
|
-
var i = !1, n = !0, r = ",", c = `\r
|
|
342
|
-
`, C = '"', j = C + C, z = !1, p = null, w = !1, a = ((() => {
|
|
343
|
-
if (typeof e == "object") {
|
|
344
|
-
if (typeof e.delimiter != "string" || o.BAD_DELIMITERS.filter(function(g) {
|
|
345
|
-
return e.delimiter.indexOf(g) !== -1;
|
|
346
|
-
}).length || (r = e.delimiter), typeof e.quotes != "boolean" && typeof e.quotes != "function" && !Array.isArray(e.quotes) || (i = e.quotes), typeof e.skipEmptyLines != "boolean" && typeof e.skipEmptyLines != "string" || (z = e.skipEmptyLines), typeof e.newline == "string" && (c = e.newline), typeof e.quoteChar == "string" && (C = e.quoteChar), typeof e.header == "boolean" && (n = e.header), Array.isArray(e.columns)) {
|
|
347
|
-
if (e.columns.length === 0) throw new Error("Option columns is empty");
|
|
348
|
-
p = e.columns;
|
|
349
|
-
}
|
|
350
|
-
e.escapeChar !== void 0 && (j = e.escapeChar + C), e.escapeFormulae instanceof RegExp ? w = e.escapeFormulae : typeof e.escapeFormulae == "boolean" && e.escapeFormulae && (w = /^[=+\-@\t\r].*$/);
|
|
351
|
-
}
|
|
352
|
-
})(), new RegExp(V(C), "g"));
|
|
353
|
-
if (typeof t == "string" && (t = JSON.parse(t)), Array.isArray(t)) {
|
|
354
|
-
if (!t.length || Array.isArray(t[0])) return L(null, t, z);
|
|
355
|
-
if (typeof t[0] == "object") return L(p || Object.keys(t[0]), t, z);
|
|
356
|
-
} else if (typeof t == "object") return typeof t.data == "string" && (t.data = JSON.parse(t.data)), Array.isArray(t.data) && (t.fields || (t.fields = t.meta && t.meta.fields || p), t.fields || (t.fields = Array.isArray(t.data[0]) ? t.fields : typeof t.data[0] == "object" ? Object.keys(t.data[0]) : []), Array.isArray(t.data[0]) || typeof t.data[0] == "object" || (t.data = [t.data])), L(t.fields || [], t.data || [], z);
|
|
357
|
-
throw new Error("Unable to serialize unrecognized input");
|
|
358
|
-
function L(g, s, O) {
|
|
359
|
-
var R = "", T = (typeof g == "string" && (g = JSON.parse(g)), typeof s == "string" && (s = JSON.parse(s)), Array.isArray(g) && 0 < g.length), M = !Array.isArray(s[0]);
|
|
360
|
-
if (T && n) {
|
|
361
|
-
for (var h = 0; h < g.length; h++) 0 < h && (R += r), R += u(g[h], h);
|
|
362
|
-
0 < s.length && (R += c);
|
|
363
|
-
}
|
|
364
|
-
for (var d = 0; d < s.length; d++) {
|
|
365
|
-
var E = (T ? g : s[d]).length, l = !1, S = T ? Object.keys(s[d]).length === 0 : s[d].length === 0;
|
|
366
|
-
if (O && !T && (l = O === "greedy" ? s[d].join("").trim() === "" : s[d].length === 1 && s[d][0].length === 0), O === "greedy" && T) {
|
|
367
|
-
for (var A = [], b = 0; b < E; b++) {
|
|
368
|
-
var y = M ? g[b] : b;
|
|
369
|
-
A.push(s[d][y]);
|
|
370
|
-
}
|
|
371
|
-
l = A.join("").trim() === "";
|
|
372
|
-
}
|
|
373
|
-
if (!l) {
|
|
374
|
-
for (var m = 0; m < E; m++) {
|
|
375
|
-
0 < m && !S && (R += r);
|
|
376
|
-
var U = T && M ? g[m] : m;
|
|
377
|
-
R += u(s[d][U], m);
|
|
378
|
-
}
|
|
379
|
-
d < s.length - 1 && (!O || 0 < E && !S) && (R += c);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
return R;
|
|
383
|
-
}
|
|
384
|
-
function u(g, s) {
|
|
385
|
-
var O, R;
|
|
386
|
-
return g == null ? "" : g.constructor === Date ? JSON.stringify(g).slice(1, 25) : (R = !1, w && typeof g == "string" && w.test(g) && (g = "'" + g, R = !0), O = g.toString().replace(a, j), (R = R || i === !0 || typeof i == "function" && i(g, s) || Array.isArray(i) && i[s] || ((T, M) => {
|
|
387
|
-
for (var h = 0; h < M.length; h++) if (-1 < T.indexOf(M[h])) return !0;
|
|
388
|
-
return !1;
|
|
389
|
-
})(O, o.BAD_DELIMITERS) || -1 < O.indexOf(r) || O.charAt(0) === " " || O.charAt(O.length - 1) === " ") ? C + O + C : O);
|
|
390
|
-
}
|
|
391
|
-
}, o.RECORD_SEP = "", o.UNIT_SEP = "", o.BYTE_ORDER_MARK = "\uFEFF", o.BAD_DELIMITERS = ["\r", `
|
|
392
|
-
`, '"', o.BYTE_ORDER_MARK], o.WORKERS_SUPPORTED = !P && !!k.Worker, o.NODE_STREAM_INPUT = 1, o.LocalChunkSize = 10485760, o.RemoteChunkSize = 5242880, o.DefaultDelimiter = ",", o.Parser = st, o.ParserHandle = ht, o.NetworkStreamer = it, o.FileStreamer = rt, o.StringStreamer = X, o.ReadableStreamStreamer = nt, k.jQuery && ((H = k.jQuery).fn.parse = function(t) {
|
|
393
|
-
var e = t.config || {}, i = [];
|
|
394
|
-
return this.each(function(c) {
|
|
395
|
-
if (H(this).prop("tagName").toUpperCase() !== "INPUT" || H(this).attr("type").toLowerCase() !== "file" || !k.FileReader || !this.files || this.files.length === 0) return !0;
|
|
396
|
-
for (var C = 0; C < this.files.length; C++) i.push({ file: this.files[C], inputElem: this, instanceConfig: H.extend({}, e) });
|
|
397
|
-
}), n(), this;
|
|
398
|
-
function n() {
|
|
399
|
-
if (i.length === 0) _(t.complete) && t.complete();
|
|
400
|
-
else {
|
|
401
|
-
var c, C, j, z, p = i[0];
|
|
402
|
-
if (_(t.before)) {
|
|
403
|
-
var w = t.before(p.file, p.inputElem);
|
|
404
|
-
if (typeof w == "object") {
|
|
405
|
-
if (w.action === "abort") return c = "AbortError", C = p.file, j = p.inputElem, z = w.reason, void (_(t.error) && t.error({ name: c }, C, j, z));
|
|
406
|
-
if (w.action === "skip") return void r();
|
|
407
|
-
typeof w.config == "object" && (p.instanceConfig = H.extend(p.instanceConfig, w.config));
|
|
408
|
-
} else if (w === "skip") return void r();
|
|
409
|
-
}
|
|
410
|
-
var a = p.instanceConfig.complete;
|
|
411
|
-
p.instanceConfig.complete = function(L) {
|
|
412
|
-
_(a) && a(L, p.file, p.inputElem), r();
|
|
413
|
-
}, o.parse(p.file, p.instanceConfig);
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
function r() {
|
|
417
|
-
i.splice(0, 1), n();
|
|
418
|
-
}
|
|
419
|
-
}), N && (k.onmessage = function(t) {
|
|
420
|
-
t = t.data, o.WORKER_ID === void 0 && t && (o.WORKER_ID = t.workerId), typeof t.input == "string" ? k.postMessage({ workerId: o.WORKER_ID, results: o.parse(t.input, t.config), finished: !0 }) : (k.File && t.input instanceof File || t.input instanceof Object) && (t = o.parse(t.input, t.config)) && k.postMessage({ workerId: o.WORKER_ID, results: t, finished: !0 });
|
|
421
|
-
}), (it.prototype = Object.create(B.prototype)).constructor = it, (rt.prototype = Object.create(B.prototype)).constructor = rt, (X.prototype = Object.create(X.prototype)).constructor = X, (nt.prototype = Object.create(B.prototype)).constructor = nt, o;
|
|
422
|
-
}()), pt.exports);
|
|
423
|
-
const vt = kt({ __proto__: null, default: yt(gt) }, [gt]);
|
|
424
|
-
export {
|
|
425
|
-
vt as p
|
|
426
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.10
|
|
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
|
-
const e = { AVEDEV: { s: "Returns the average of the absolute deviations of data points from their mean. Arguments can be numbers or names, arrays, or references that contain numbers", p: { number: { d: "number1,number2,... are 1 to 255 arguments for which you want the average of the absolute deviations" } } }, AVERAGE: { s: "Returns the average (arithmetic mean) of its arguments, which can be numbers or names, arrays, or references that contain numbers", p: { number: { d: "number1,number2,... are 1 to 255 numeric arguments for which you want the average" } } }, AVERAGEA: { s: "Returns the average (arithmetic mean) of its arguments, evaluating text and FALSE in arguments as 0; TRUE evaluates as 1. Arguments can be numbers, names, arrays, or references", p: { value: { d: "value1,value2,... are 1 to 255 arguments for which you want the average" } } }, AVERAGEIF: { s: "Finds average(arithmetic mean) for the cells specified by a given condition or criteria", p: { range: { d: "is the range of cells you want evaluated" }, criteria: { d: "is the condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average" }, averageRange: { d: "are the actual cells to be used to find the average. If omitted, the cells in range are used" } }, h: "Unimplemented" }, AVERAGEIFS: { s: "Finds average(arithmetic mean) for the cells specified by a given set of conditions or criteria", p: { averageRange: { d: "are the actual cells to be used to find the average." }, criteriaRange: { d: "criteria_range1,criteria_range2,... is the range of cells you want evaluated for the particular condition" }, criteria: { d: "criteria1,criteria2,... is the condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average" } }, h: "Unimplemented" }, COUNT: { s: "Counts the number of cells in a range that contain numbers", p: { number: { d: "value1,value2,... are 1 to 255 arguments that can contain or refer to a variety of different types of data, but only numbers are counted" } } }, COUNTA: { s: "Counts the number of cells in a range that are not empty", p: { value: { d: "value1,value2,... are 1 to 255 arguments representing the values and cells you want to count. Values can be any type of information" } } }, COUNTBLANK: { s: "Counts the number of empty cells in a specified range of cells", p: { range: { d: "is the range from which you want to count the empty cells" } }, h: "Unimplemented" }, COUNTIF: { s: "Counts the number of cells within a range that meet the given condition", p: { range: { d: "is the range of cells from which you want to count nonblank cells" }, criteria: { d: "is the condition in the form of a number, expression, or text that defines which cells will be counted" } }, h: "Unimplemented" }, COUNTIFS: { s: "Counts the number of cells specified by a given set of conditions or criteria", p: { criteriaRange: { d: "criteria_range1,criteria_range2,... is the range of cells you want evaluated for the particular condition" }, criteria: { d: "criteria1,criteria2,... is the condition in the form of a number, expression, or text that defines which cells will be counted" } }, h: "Unimplemented" }, LARGE: { s: "Returns the k-th largest value in a data set. For example, the fifth largest number.", p: { array: { d: "is the array or range of data for which you want to determine the k-th largest value." }, k: { d: "is the position (from the largest) in the array or cell range of the value to return." } } }, MAX: { s: "Returns the largest value in a set of values. Ignores logical values and text", p: { number: { d: "number1,number2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the maximum" } } }, MAXA: { s: "Returns the largest value in a set of values. Does not ignore logical values and text", p: { value: { d: "value1,value2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the maximum" } } }, MAXIFS: { s: "Returns the maximum value among cells specified by a given set of conditions or criteria", p: { maxRange: { d: "the cells in which to determine the maximum value" }, criteriaRange: { d: "criteria_range1,criteria_range2,... is the range of cells you want to evaluate for the particular condition" }, criteria: { d: "criteria1,criteria2,... is the condition or criteria in the form of a number, expression, or text that defines which cells will be included when determining the maximum value" } }, h: "Unimplemented" }, MEDIAN: { s: "Returns the median, or the number in the middle of the set of given numbers", p: { number: { d: "number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the median" } } }, MIN: { s: "Returns the smallest number in a set of values. Ignores logical values and text", p: { number: { d: "number1,number2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the minimum" } } }, MINA: { s: "Returns the smallest value in a set of values. Does not ignore logical values and text", p: { value: { d: "value1,value2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the minimum" } } }, MINIFS: { s: "Returns the minimum value among cells specified by a given set of conditions or criteria", p: { maxRange: { d: "is the range of cells to evaluate for the minimum value" }, criteriaRange: { d: "is the range of cells to evaluate against the criteria" }, criteria: { d: "is the criteria to evaluate against the criteria range" } }, h: "Unimplemented" }, PERMUT: { s: "Returns the number of permutations for a given number of objects that can be selected from the total objects", p: { number: { d: "is the total number of objects" }, numberChoosen: { d: "is the number of objects in each permutation" } }, h: "Unimplemented" }, PERMUTATIONA: { s: "Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects", p: { number: { d: "is the total number of objects" }, numberChoosen: { d: "is the number of objects in each permutation" } }, h: "Unimplemented" }, SMALL: { s: "Returns the k-th smallest value in a data set. For example, the fifth smallest number", p: { array: { d: "is an array or range of numerical data for which you want to determine the k-th smallest value" }, k: { d: "is the position (from the smallest) in the array or range of the value to return" } } } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.10
|
|
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
|
-
const e = { ADDRESS: { s: "Creates a cell reference as text, given specified row and column numbers", p: { rowNum: { d: "is the row number to use in the cell reference: Row_number = 1 for row 1" }, columnNum: { d: "is the column number to use in the cell reference. For example, Column_number = 4 for column D" }, absNum: { d: "specifies the reference type: absolute = 1; absolute row/relative column = 2; relative row/absolute column = 3; relative = 4", v: 1 }, a1: { d: "is a logical value that specifies the reference style: A1 style = 1 or TRUE; R1C1 style = 0 or FALSE", v: !0 }, sheetText: { d: "is text specifying the name of the worksheet to be used as the external reference", v: "" } } }, AREAS: { s: "Returns the number of areas in a reference. An area is a range of contiguous cells or a single cell", p: { references: { d: "is a reference to a cell or range of cells and can refer to multiple areas" } } }, CHOOSE: { s: "Chooses a value or action to perform from a list of values, based on an index number", p: { indexNum: { d: "specifies which value argument is selected. Index_num must be between 1 and 254, or a formula or a reference to a number between 1 and 254" }, value1: { d: "value1,value2,... are 1 to 254 numbers, cell references, defined names, formulas, functions, or text arguments from which CHOOSE selects" }, value: {} } }, CHOOSECOLS: { s: "Returns columns from an array or reference.", p: { array: { d: "The array or reference from which to choose columns." }, colNum1: { d: "col_num1,col_num2,... The number of the column to be returned." }, colNum: {} } }, CHOOSEROWS: { s: "Returns rows from an array or reference.", p: { array: { d: "The array or reference from which to choose rows." }, rowNum1: { d: "row_num1,row_num2,... The number of the row to be returned." }, rowNum: {} } }, COLUMN: { s: "Returns the column number of a reference", p: { reference: { d: "is the cell or range of contiguous cells for which you want the column number. If omitted, the cell containing the COLUMN function is used" } } }, COLUMNS: { s: "Returns the number of columns in an array or reference", p: { array: { d: "is an array or array formula, or a reference to a range of cells for which you want the number of columns" } } }, DROP: { s: "Drops rows or columns from array start or end.", p: { array: { d: "The array from which to drop rows or columns." }, row: { d: "The number of rows to drop. A negative value drops from the end of the array." }, columns: { d: "The number of columns to drop. A negative value drops from the end of the array.", v: 0 } }, h: "Unimplemented" }, EXPAND: { s: "Expands an array to the specified dimensions.", p: { array: { d: "The array to expand." }, row: { d: "The number of rows in the expanded array. If missing, rows will not be expanded." }, columns: { d: "The number of columns in the expanded array. If missing, columns will not be expanded.", v: 0 }, padWidth: { d: "The value with which to pad. The default is #N/A.", v: "FormulaError.BuiltIn.NA" } }, h: "Unimplemented" }, FIELDVALUE: { s: "Extracts a value from a field of a given record", p: { value: { d: "The record from which you want to extract the field" }, fieldName: { d: "The names of the field or fields that you want to extract" } }, h: "Unimplemented" }, FILTER: { s: "Filter a range or array", p: { array: { d: "the range or array to filter" }, include: { d: "an array of booleans where TRUE represents a row or column to retain" }, ifEmpty: { d: "return if no items are retained" } }, h: "Unimplemented" }, FORMULATEXT: { s: "Returns a formula as a string", p: { reference: { d: "is a reference to a formula" } } }, GETPIVOTDATA: { s: "Extracts data stored in a PivotTable.", p: { dataField: { d: "is the name of the data field to extract data from" }, pivotTable: { d: "is a reference to a cell or range of cells in the PivotTable that contains the data you want to retrieve" }, field1: { d: "field1,field2,... field to refer to" }, item1: { d: "item1,item2,... field item to refer to" } }, h: "Unimplemented" }, GROUPBY: { s: "Aggregate values by row fields", p: { rowFields: { d: "The range or array containing the row fields" }, values: { d: "The range or array containing the values to aggregate" }, fn: { d: "The function used to do the aggregations" }, fieldHeaders: { d: "A number between 0 and 3 that specifies whether the field data has headers and whether field headers should be returned in the results", v: null }, totalDepth: { d: "Show totals for the row fields. 0 for none, 1 for grand totals, 2 for grand total and first level subtotals, etc", v: 2 }, sortOrder: { d: "The column index to sort the row fields on. A negative index will sort in reverse order", v: null }, filterArray: { d: "param-534 paramName-535", v: null }, fieldRelationship: { d: "The relationship of fields when multiple columns are supplied to the row_fields argument", v: 0 } }, h: "Unimplemented" }, HLOOKUP: { p: { lookupValue: { d: "is the value to be found in the first row of the table and can be a value, a reference, or a text string" }, tableArray: { d: "is a table of text, numbers, or logical values in which data is looked up. Table_array can be a reference to a range or a range name" }, rowIndexNum: { d: "is the row number in table_array from which the matching value should be returned. The first row of values in the table is row 1" }, rangeLookup: { d: "is a logical value: to find the closest match in the top row (sorted in ascending order) = TRUE; find an exact match = FALSE", v: !0 } } }, HSTACK: { s: "Horizontally stacks arrays into one array.", p: { array1: {}, array: { d: "array1,array2,... An array or reference to be stacked." } }, h: "Unimplemented" }, HYPERLINK: { s: "Creates a shortcut or jump that opens a document stored on your hard drive, a network server, or on the Internet", p: { linkLocation: { d: "is the text giving the path and file name to the document to be opened, a hard drive location, UNC address, or URL path" }, friendlyName: { d: "is text or a number that is displayed in the cell. If omitted, the cell displays the Link_location text" } }, h: "Unimplemented" }, IMAGE: { s: "Returns an image from a given source", p: { source: { d: "The path of the source that points to the image" }, alternateText: { d: "The alternative text that describes the image for accessibility" }, sizing: { d: "The setting that determines the dimensions in which the image will be rendered in the cell" }, height: { d: "The custom height of the image in pixels" }, width: { d: "The custom width of the image in pixels" } }, h: "Unimplemented" }, INDEX: { s: "Returns a value or reference of the cell at the intersection of a particular row and column, in a given range", p: { array: { d: "is a range of cells or an array constant." }, rowNum: { d: "selects the row in Array or Reference from which to return a value. If omitted, Column_num is required", v: 0 }, colNum: { d: "selects the column in Array or Reference from which to return a value. If omitted, Row_num is required", v: 0 }, areaNum: { d: "selects the area in Array or Reference from which to return a value. If omitted, the first area is used", v: 1 } } }, INDIRECT: { s: "Returns the reference specified by a text string", p: { refText: { d: "is a reference to a cell that contains an A1- or R1C1-style reference, a name defined as a reference, or a reference to a cell as a text string" }, a1: { d: "is a logical value that specifies the type of reference in Ref_text: R1C1-style = FALSE; A1-style = TRUE.", v: !0 } } }, LOOKUP: { s: "Looks up a value either from a one-row or one-column range or from an array. Provided for backward compatibility", p: { lookupValue: { d: "is a value that LOOKUP searches for in Lookup_vector and can be a number, text, a logical value, or a name or reference to a value" }, lookupVector: { d: "is a range that contains only one row or one column of text, numbers, or logical values, placed in ascending order" }, resultVector: { d: "is a range that contains only one row or column, the same size as Lookup_vector" } }, h: "Unimplemented" }, MATCH: { s: "Returns the relative position of an item in an array that matches a specified value in a specified order", p: { lookupValue: { d: "is the value you use to find the value you want in the array, a number, text, or logical value, or a reference to one of these" }, lookupArray: { d: "is a contiguous range of cells containing possible lookup values, an array of values, or a reference to an array" }, matchType: { d: "is a number 1, 0, or -1 indicating which value to return." } }, h: "Unimplemented" }, OFFSET: { s: "Returns a reference to a range that is a given number of rows and columns from a given reference", p: { reference: { d: "is the reference from which you want to base the offset, a reference to a cell or range of adjacent cells" }, rows: { d: "is the number of rows, up or down, that you want the upper-left cell of the result to refer to" }, cols: { d: "is the number of columns, to the left or right, that you want the upper-left cell of the result to refer to" }, height: { d: "is the height, in number of rows, that you want the result to be, the same height as Reference if omitted" }, width: { d: "is the width, in number of columns, that you want the result to be, the same width as Reference if omitted" } } }, PIVOTBY: { p: { rowFields: {}, colFields: {}, values: {}, fn: {}, fieldHeaders: { v: null }, rowTotalDepth: { v: 2 }, rowSortOrder: { v: null }, colTotalDepth: { v: 2 }, colSortOrder: { v: null }, filterArray: { v: null }, relativeTo: { v: 0 } }, h: "Unimplemented" }, ROW: { s: "Returns the row number of a reference", p: { reference: { d: "is the cell or a single range of cells for which you want the row number; if omitted, returns the cell containing the ROW function" } } }, ROWS: { s: "Returns the number of rows in a reference or array", p: { array: { d: "is an array, an array formula, or a reference to a range of cells for which you want the number of rows" } } }, RTD: { s: "Retrieves the real-time data (RTD) from a program that supports COM automation", p: { progId: { d: "is the programmatic identifier (ProgID) of a registered COM automation add-in. Enclose the id in quotation marks" }, server: { d: "is the name of the server that provides the real-time data. If running locally us an empty string" }, topic: { d: "topic1,topic2,... are 1 to 38 parameters that specify a piece of data" } }, h: "Unimplemented" }, SORT: { s: "Sorts a range or array", p: { array: { d: "the range or array to sort" }, sortIndex: { d: "a number indicating the row or column to sort by" }, sortOrder: { d: "a number indicating the desired sort order; 1 for ascending order (default), -1 for descending order" }, byCol: { d: "a logical value indicating the desired sort direction: FALSE to sort by row (default), TRUE to sort by column", v: !1 } }, h: "Unimplemented" }, SORTBY: { s: "Sorts a range or array based on the values in a corresponding range or array", p: { array: { d: "the range or array to sort" }, byArray1: { d: "by_array1,by_array2,... the range or array to sort on" }, sortOrder: { d: "sort_order1,sort_order2,... a number indicating the desired sort order; 1 for ascending order (default), -1 for descending order" } }, h: "Unimplemented" }, TAKE: { s: "Returns rows or columns from array start or end.", p: { array: { d: "The array from which to take rows or columns." }, rows: { d: "The number of rows to take. A negative value takes from the end of the array." }, columns: { d: "The number of columns to take. A negative value takes from the end of the array.", v: 0 } }, h: "Unimplemented" }, TOCOL: { s: "Returns the array as one column.", p: { array: { d: "The array or reference to return as a column." }, ignore: { d: "Whether to ignore certain types of values. By default, no values are ignored.", v: 0 }, scanByColumn: { d: "Scan the array by column. By default, the array is scanned by row.", v: !1 } }, h: "Unimplemented" }, TOROW: { s: "Returns the array as one row.", p: { array: { d: "The array or reference to return as a column." }, ignore: { d: "Whether to ignore certain types of values. By default, no values are ignored.", v: 0 }, scanByColumn: { d: "Scan the array by column. By default, the array is scanned by row.", v: !1 } }, h: "Unimplemented" }, TRANSPOSE: { s: "Converts a vertical range of cells to a horizontal range, or vice versa", p: { array: { d: "is a range of cells on a worksheet or an array of values that you want to transpose" } } }, TRIMRANGE: { s: "Trims a range to the last used cell in any direction.", p: { range: { d: "The range to be trimmed" }, rowTrimMode: { d: "Row trim direction. 0 - none, 1 - leading, 2 - trailing, 3 - both.", v: 3 }, colTrimMode: { d: "Column trim direction. 0 - none. 1 - leading, 2 - trailing, 3 - both.", v: 3 } } }, UNIQUE: { s: "Returns the unique values from a range or array.", p: { array: { d: "the range or array from which to return unique rows or columns" }, byCol: { d: "is a logical value: compare rows against each other and return the unique rows = FALSE; compare columns against each other and return the unique columns = TRUE", v: !1 }, exactlyOnce: { d: "is a logical value: return rows or columns that occur exactly once from the array = TRUE; return all distinct rows or columns from the array = FALSE", v: !1 } }, h: "Unimplemented" }, VLOOKUP: { s: "Looks for a value in the leftmost column of a table, and then returns a value in the same row from a column you specify. By default, the table must be sorted in an ascending order", p: { lookupValue: { d: "is the value to be found in the first column of the table, and can be a value, a reference, or a text string" }, tableArray: { d: "is a table of text, numbers, or logical values, in which data is retrieved. Table_array can be a reference to a range or a range name" }, colIndexNum: { d: "is the column number in table_array from which the matching value should be returned. The first column of values in the table is column 1" }, rangeLookup: { d: "is a logical value: to find the closest match in the first column (sorted in ascending order) = TRUE; find an exact match = FALSE", v: !0 } } }, VSTACK: { s: "Vertically stacks arrays into one array.", p: { array1: { d: "array1,array2,... An array or reference to be stacked." }, array: { d: "array1,array2,... An array or reference to be stacked." } }, h: "Unimplemented" }, WRAPCOLS: { s: "Wraps a row or column vector after a specified number of values.", p: { vector: { d: "The vector or reference to wrap." }, wrapCount: { d: "The maximum number of values per column." }, padWith: { d: "The value with which to pad. The default is #N/A.", v: "FormulaError.BuiltIn.NA" } }, h: "Unimplemented" }, WRAPROWS: { s: "Wraps a row or column vector after a specified number of values.", p: { vector: { d: "The vector or reference to wrap." }, wrapCount: { d: "The maximum number of values per column." }, padWith: { d: "The value with which to pad. The default is #N/A.", v: "FormulaError.BuiltIn.NA" } }, h: "Unimplemented" }, XLOOKUP: { s: "Searches a range or an array for a match and returns the corresponding item from a second range or array. By default, an exact match is used", p: { lookupValue: { d: "is the value to search for" }, lookupArray: { d: "is the array or range to search" }, returnArray: { d: "is the array or range to return" }, ifNotFound: { d: "returned if no match is found" }, rangeLookup: { v: !0 }, matchMode: { d: "specify how to match lookup_value against the values in lookup_array" }, searchMode: { d: "specify the search mode to use. By default, a first to last search will be used", v: !0 } }, h: "Unimplemented" }, XMATCH: { s: "Returns the relative position of an item in an array. By default, an exact match is required", p: { lookupValue: { d: "is the value to search for" }, lookupArray: { d: "is the array or range to search" }, matchMode: { d: "specify how to match the lookup_value against the values in lookup_array" }, searchMode: { d: "specify the search mode to use. By default, a first to last search will be used", v: !0 } }, h: "Unimplemented" } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.10
|
|
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
|
-
const e = { ABS: { s: "Returns the absolute value of a number, a number without its sign", p: { number: { d: "is the real number for which you want the absolute value" } } }, AGGREGATE: { s: "Returns information about the cell.", p: { functionNum: { d: "Is the number 1 to 19 that specifies the summary function for the aggregate." }, options: { d: "Is the number 0 to 78 that specified the values to ignore for the aggregate." }, array: { d: "Is the array or range of numerical data on which to calculate the aggregate." }, K: { d: "indicates the position of the array; it is k-th largest, k-th smallest, k-th percentile, or k-th quartile." } }, h: "Unimplemented" }, ARABIC: { s: "Converts a Roman numeral to Arabic", p: { text: { d: "is the Roman numeral you want to convert" } } }, BASE: { s: "Converts a number into a text representation with the given radix (base)", p: { number: { d: "is the number that you want to convert" }, radix: { d: "is the base Radix that you want to convert the number into" }, minLength: { d: "is the minimum length of the returned string", v: 0 } } }, CEILING: { s: "Rounds a number up, to the nearest multiple of significance", p: { number: { d: "is the value you want to round" }, significance: { d: "is the multiple to which you want to round", v: "undefined" } }, c: "Compatible" }, "CEILING.MATH": { s: "Rounds a number up, to the nearest integer or to the nearest multiple of significance", p: { number: { d: "is the real number you want to round" }, significance: { d: "when given and nonzero this function will round away from zero", v: "undefined" }, mode: { v: 0 } } }, "CEILING.PRECISE": { s: "Rounds a number up to the nearest integer or to the nearest multiple of significance", p: { number: { d: "is the real number you want to round" }, significance: { d: "is the multiple to which you want to round", v: 1 } }, c: "Compatible" }, COMBIN: { s: "Returns the number of combinations for a given number of items", p: { number: { d: "is the total number of items" }, numberChosen: { d: "is the number of items in each combination" } } }, COMBINA: { s: "Returns the number of combinations with repetitions for a given number of items", p: { number: { d: "is the total number of items" }, numberChosen: { d: "is the number of items in each combination" } } }, DECIMAL: { s: "Converts a text representation of a number in a given base into a decimal number", p: { number: { d: "is the number that you want to convert" }, radix: { d: "is the base Radix of the number you are converting" } } }, DEGREES: { s: "Converts radians to degrees", p: { angle: { d: "is the angle in radians that you want to convert" } } }, EVEN: { s: "Rounds a positive number up and negative number down to the nearest even integer", p: { number: { d: "is the value to round" } } }, EXP: { s: "Returns e raised to the power of a given number", p: { number: { d: "is the exponent applied to the base e. The constant e equals 2.71828182845904, the base of the natural logarithm" } } }, FACT: { s: "Returns the factorial of a number, equal to 1*2*3*...* Number", p: { number: { d: "is the nonnegative number you want the factorial of" } } }, FACTDOUBLE: { s: "Returns the double factorial of a number", p: { number: { d: "is the value for which to return the double factorial" } } }, FLOOR: { s: "Rounds a number down to the nearest multiple of significance", p: { number: { d: "is the real number you want to round" }, significance: { d: "is the multiple to which you want to round. Number and Significance must either both be positive or both be negative", v: "undefined" } }, c: "Compatible" }, "FLOOR.MATH": { s: "Rounds a number down, to the nearest integer or to the nearest multiple of significance", p: { number: { d: "is the real number you want to round" }, significance: { d: "is the multiple to which you want to round", v: "undefined" }, mode: { d: "when given and nonzero this function will round towards zero", v: 0 } } }, "FLOOR.PRECISE": { s: "Rounds a number down to the nearest integer or to the nearest multiple of significance", p: { number: { d: "is the real number you want to round" }, significance: { d: "is the multiple to which you want to round", v: 1 } } }, GCD: { s: "Returns the greatest common divisor", p: { number: { d: "number1,number2,... are 1 to 255 values" } } }, INT: { s: "Rounds a number down to the nearest integer", p: { number: { d: "is the real number you want to round down to an integer" } } }, "ISO.CEILING": { s: "Rounds a number up to the nearest integer", p: { number: { d: "is the real number you want to round up to an integer" }, significance: { d: "is the multiple to which you want to round number", v: "undefined" } }, c: "Compatible" }, LCM: { s: "Returns the least common multiple", p: { number: { d: "number1,number2,... are 1 to 255 values for which you want the least common multiple" } } }, LN: { s: "Returns the natural logarithm of a number", p: { number: { d: "is the positive real number for which you want the natural logarithm" } } }, LOG: { s: "Returns the logarithm of a number to the base you specify", p: { number: { d: "is the positive real number for which you want the logarithm" }, base: { d: "is the base of the logarithm", v: 10 } } }, LOG10: { s: "Returns the base-10 logarithm of a number", p: { number: { d: "is the positive real number for which you want the base-10 logarithm" } } }, MDETERM: { s: "Returns the matrix determinant of an array", p: { array: { d: "is a numeric array with an equal number of rows and columns, either a cell range or an array constant" } } }, MINVERSE: { s: "Returns the inverse matrix for the matrix stored in an array", p: { array: { d: "is a numeric array with an equal number of rows and columns, either a cell range or an array constant" } } }, MMULT: { s: "Returns the matrix product of two arrays, an array with the same number of rows as array1 and columns as array2", p: { array1: { d: "is the first array of numbers to multiply and must have the same number of columns as Array2 has rows" }, array2: { d: "is the second array of numbers to multiply and must have the same number of columns as Array1 has rows" } } }, MOD: { s: "Returns the remainder after a number is divided by a divisor", p: { number: { d: "is the number for which you want to find the remainder after the division is performed" }, divisor: { d: "is the number by which you want to divide Number" } } }, MROUND: { s: "Returns a number rounded to the desired multiple", p: { number: { d: "is the value to round" }, multiple: { d: "is the multiple to which you want to round number" } } }, MULTINOMIAL: { s: "Returns the multinomial of a set of numbers", p: { number: { d: "number1,number2,... are 1 to 255 values for which you want the multinomial" } } }, MUNIT: { s: "Returns the unit matrix for the specified dimension", p: { dimension: { d: "is an integer specifying the dimension of the unit matrix that you want to return" } } }, ODD: { s: "Rounds a positive number up and negative number down to the nearest odd integer", p: { number: { d: "is the value to round" } } }, PI: { s: "Returns the value of Pi, 3.14159265358979, accurate to 15 digits", p: {} }, POWER: { s: "Returns the result of a number raised to a power", p: { number: { d: "is the base number, any real number" }, power: { d: "is the exponent, to which the base number is raised" } } }, PRODUCT: { s: "Multiplies all the numbers given as arguments", p: { number: { d: "number1,number2,... are 1 to 255 numbers, logical values, or text representations of numbers that you want to multiply" } } }, QUOTIENT: { s: "Returns the integer portion of a division", p: { numerator: { d: "is the dividend" }, denominator: { d: "is the divisor" } } }, RADIANS: { s: "Converts degrees to radians", p: { angle: { d: "is an angle in degrees that you want to convert" } } }, RAND: { s: "Returns a random number greater than or equal to 0 and less than 1, evenly distributed (changes on recalculation)", p: {} }, RANDARRAY: { s: "Returns an array of random numbers", p: { rows: { d: "the number of rows in the returned array", v: 1 }, columns: { d: "the number of columns in the returned array", v: 1 }, min: { d: "the minimum number you would like returned", v: 0 }, max: { d: "the maximum number you would like returned", v: 1 }, integer: { d: "return an integer or a decimal value. TRUE for an integer, FALSE for a decimal number", v: !1 } } }, RANDBETWEEN: { s: "Returns a random number between the numbers you specify", p: { bottom: { d: "is the smallest integer RANDBETWEEN will return" }, top: { d: "is the largest integer RANDBETWEEN will return" } } }, ROMAN: { s: "Converts an Arabic numeral to Roman, as text", p: { number: { d: "is the Arabic numeral you want to convert" }, form: { d: "is the number specifying the type of Roman numeral you want.", v: 0 } } }, ROUND: { s: "Rounds a number to a specified number of digits", p: { number: { d: "is the number you want to round" }, numDigits: { d: "is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer" } } }, ROUNDDOWN: { s: "Rounds a number down, toward zero", p: { number: { d: "is any real number that you want rounded down" }, numDigits: { d: "is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer" } } }, ROUNDUP: { s: "Rounds a number up, away from zero", p: { number: { d: "is any real number that you want rounded up" }, numDigits: { d: "is the number of digits to which you want to round. Negative rounds to the left of the decimal point to the nearest integer" } } }, SEQUENCE: { s: "Returns a sequence of numbers", p: { rows: { d: "the number of rows to return" }, columns: { d: "the number of columns to return", v: 1 }, start: { d: "the first number in the sequence", v: 1 }, step: { d: "the amount to increment each subsequent value in the sequence", v: 1 } } }, SERIESSUM: { s: "Returns the sum of a power series based on the formula", p: { x: { d: "is the input value to the power series" }, n: { d: "is the initial power to which you want to raise x" }, m: { d: "is the step by which to increase n for each term in the series" }, coefficients: { d: "is a set of coefficients by which each successive power of x is multiplied" } } }, SIGN: { s: "Returns the sign of a number: 1 if the number is positive, zero if the number is zero, or -1 if the number is negative", p: { number: { d: "is any real number" } } }, SQRT: { s: "Returns the square root of a number", p: { number: { d: "is the number for which you want the square root" } } }, SQRTPI: { s: "Returns the square root of (number * Pi)", p: { number: { d: "is the number by which p is multiplied" } } }, SUBTOTAL: { s: "Returns a subtotal in a list or database", p: { functionNum: { d: "is the number 1 to 11 that specifies the summary function for the subtotal." }, ref: { d: "ref1,ref2,... are 1 to 254 ranges or references for which you want the subtotal" } }, h: "Unimplemented" }, SUM: { s: "Adds all the numbers in a range of cells", p: { number: { d: "number1,number2,... are 1 to 255 numbers to sum. Logical values and text are ignored in cells, included if typed as arguments" } } }, SUMIF: { s: "Adds the cells specified by a given condition or criteria", p: { range: { d: "is the range of cells you want evaluated" }, criteria: { d: "is the condition or criteria in the form of a number, expression, or text that defines which cells will be added" }, sumRange: { d: "are the actual cells to sum. If omitted, the cells in range are used" } }, h: "Unimplemented" }, SUMIFS: { s: "Adds the cells specified by a given set of conditions or criteria", p: { sumRange: { d: "are the actual cells to sum." }, criteriaRange: { d: "criteria_range1,criteria_range2,... is the range of cells you want evaluated for the particular condition" }, criteria: { d: "criteria1,criteria2,... is the condition or criteria in the form of a number, expression, or text that defines which cells will be added" } }, h: "Unimplemented" }, SUMPRODUCT: { s: "Returns the sum of the products of corresponding ranges or arrays", p: { array1: { d: "array1,array2,... are 2 to 255 arrays for which you want to multiply and then add components. All arrays must have the same dimensions" }, rest: {} } }, SUMSQ: { s: "Returns the sum of the squares of the arguments. The arguments can be numbers, arrays, names, or references to cells that contain numbers", p: { number: { d: "number1,number2,... are 1 to 255 numbers, arrays, names, or references to arrays for which you want the sum of the squares" } } }, SUMX2MY2: { s: "Sums the differences between the squares of two corresponding ranges or arrays", p: { arrayX: { d: "is the first range or array of numbers and can be a number or name, array, or reference that contains numbers" }, arrayY: { d: "is the second range or array of numbers and can be a number or name, array, or reference that contains numbers" } } }, SUMX2PY2: { s: "Returns the sum total of the sums of squares of numbers in two corresponding ranges or arrays", p: { arrayX: { d: "is the first range or array of numbers and can be a number or name, array, or reference that contains numbers" }, arrayY: { d: "is the second range or array of numbers and can be a number or name, array, or reference that contains numbers" } } }, SUMXMY2: { s: "Sums the squares of the differences in two corresponding ranges or arrays", p: { arrayX: { d: "is the first range or array of numbers and can be a number or name, array, or reference that contains numbers" }, arrayY: { d: "is the second range or array of numbers and can be a number or name, array, or reference that contains numbers" } } }, TRUNC: { s: "Truncates a number to an integer by removing the decimal, or fractional, part of the number", p: { number: { d: "is the number you want to truncate" }, numDigits: { d: "is a number specifying the precision of the truncation", v: 0 } } } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|