@sheetxl/sdk 0.7.21 → 0.7.23
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/{BvS2Hclafqxj6DCP.cjs → 2bnvR-NMIq9NgoRc.cjs} +1 -1
- package/browser/cjs/{D74bWkyzhU8E2TDh.cjs → 7SSYNuap9mmCrcgH.cjs} +1 -1
- package/browser/cjs/{CNw4tHphpF3kplDH.cjs → B4y55oFcslzsNUh5.cjs} +1 -1
- package/browser/cjs/{Bm_Mc6TDFCZ1OJNj.cjs → BJYXMiSlhq7cOc7f.cjs} +1 -1
- package/browser/cjs/{CI7HTC82ehwZZ7G9.cjs → BS7s5HpBYp5EBvvr.cjs} +14 -14
- package/browser/cjs/{BLBAZ-Bmj0EAhunn.cjs → BU2PaELfnf82LMTA.cjs} +1 -1
- package/browser/cjs/{B1wkCHMcDuFkMcC_.cjs → BVza_aNbxpxu-ol-.cjs} +1 -1
- package/browser/cjs/{D0Qme7PcsKfdtShi.cjs → Bck6dQ0bMcJHeUbl.cjs} +1 -1
- package/browser/cjs/{vQgVD2EniUvkeXnq.cjs → Blm0BXK1qZAabtns.cjs} +1 -1
- package/browser/cjs/{DzZ_6y4OF7HzFZLT.cjs → C5XyRZ6PNqFJNJ0-.cjs} +1 -1
- package/browser/cjs/{Btp8A0kzb6cHSEMD.cjs → C88so6umf-bc8SU-.cjs} +1 -1
- package/browser/cjs/{DUiZ8WcVcUyjfILT.cjs → CFbuDAqCaZVgawmY.cjs} +1 -1
- package/browser/cjs/{CO7SAK1ru6qnh7fr.cjs → CV7iQNCqvBZpKLBJ.cjs} +1 -1
- package/browser/cjs/{DFQA35q7KQ-zS2eo.cjs → D1kQTg52f7tr2QAu.cjs} +1 -1
- package/browser/cjs/{BhNultME1o9xbmcX.cjs → D2XYg5Y1-v8Btiqd.cjs} +2 -2
- package/browser/cjs/{DUbyVNEdEpgkjI-U.cjs → DN-gkj_ATeN53NrP.cjs} +1 -1
- package/browser/cjs/{BP8dBZEDNeacQUNp.cjs → DOido7VKKXT2TaYv.cjs} +3 -3
- package/browser/cjs/{DTrbxLKRbIsj3mPI.cjs → DndIUQs4nIO6irLB.cjs} +1 -1
- package/browser/cjs/{Cegi9isUAUZKUYFl.cjs → DoYutTaFf2IxW2sj.cjs} +1 -1
- package/browser/cjs/{CASsDxt2bA8JHiEW.cjs → DqdyYhF1e-vb_sbj.cjs} +1 -1
- package/browser/cjs/{CnlnOI_NWWeETB4i.cjs → IkyEHvoBx8D8eq5w.cjs} +1 -1
- package/browser/cjs/{CphmaCdyCfgLRsS0.cjs → Q7O3vE8wBuGK136O.cjs} +1 -1
- package/browser/cjs/{DK27kwlwz0N4_IpD.cjs → Y5mkvPLP4N68VZhy.cjs} +1 -1
- package/browser/cjs/{CdLUUmZCUY5uWnq5.cjs → aAY73_vSJbP7dua7.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{DMfUZBX5dMS-QcFB.cjs → jZipEebAM_0Muubf.cjs} +1 -1
- package/browser/cjs/{Bo1CE3hgxUD5DGqu.cjs → kp-GVWMV2AdFORxI.cjs} +1 -1
- package/browser/cjs/{B6GPcN051NmcYcIT.cjs → xSkXLrebe5feuwn9.cjs} +2 -2
- package/browser/esm/{B9z2sURkI9ThbLxE.mjs → B1G6Rgm2aL_5kgHa.mjs} +1 -1
- package/browser/esm/{D6VvBNUOfq8QUBY5.mjs → B27KGx3M0yzx-1jA.mjs} +1 -1
- package/{node/esm/DTzUiMAnLD_Zuf0f.mjs → browser/esm/BAKkVERK2KPeLHqK.mjs} +1 -1
- package/browser/esm/{mxYovIi79sCzcZtQ.mjs → BPTJcWN84JBAX42K.mjs} +1 -1
- package/browser/esm/{DrIkV6ixO7gbuv7Q.mjs → BWsWWswYzB--9_ts.mjs} +1 -1
- package/browser/esm/{oRsIla0R_H7slM9k.mjs → Bbv16D4fVQbvmeGb.mjs} +1 -1
- package/{node/esm/C4EnSMaP8fTEJmhu.mjs → browser/esm/BlFBBO5SEKkNu04Z.mjs} +1 -1
- package/browser/esm/{Cd2b3Z4DxOR0M3qa.mjs → BmgqlNSqd6P-p0aE.mjs} +3 -3
- package/browser/esm/{Bi2_8iLEY_M-v_34.mjs → C41zPEejyGu0rCel.mjs} +1 -1
- package/browser/esm/{CkU9J_RtpNfpxh0y.mjs → C9A0o1YsDyE0JrBC.mjs} +1 -1
- package/browser/esm/{D_lQo-PErOoj-8tN.mjs → CDFBHJozbHupAXlj.mjs} +1 -1
- package/browser/esm/{BgKy-xWSJeSV_EyO.mjs → CSMYjH-VsLDc-kQw.mjs} +1 -1
- package/browser/esm/{DflesN5VzS43jsHK.mjs → CWFoRevFfjnbjq2T.mjs} +2 -2
- package/browser/esm/{Cg7YNnt2uhmFG_3d.mjs → CirdsRxGamKNm05_.mjs} +1 -1
- package/browser/esm/{CWj2Ts01muSR6zp-.mjs → CsXHyy6I2hQzLofR.mjs} +1 -1
- package/browser/esm/{B8depZMfw4f8vJ6H.mjs → CygI-Ti7qJ5CL6Je.mjs} +1 -1
- package/{node/esm/DE0iHIHhP7sczC_y.mjs → browser/esm/CzoV9l2f9TIO4kfc.mjs} +1 -1
- package/{node/esm/DoMqoQP6F7OPue_g.mjs → browser/esm/DESiFH0Qc4ZGz9Y8.mjs} +1 -1
- package/browser/esm/{C39Yfk__mPOF8auo.mjs → DJKk6ARpR9E3I46T.mjs} +1 -1
- package/browser/esm/{D0Mb17_7UFEFNmkU.mjs → DdGVnxUhEGK1EQ17.mjs} +2 -2
- package/browser/esm/{DORXFXgRUsjkR1kA.mjs → DnIKdFAQUj43173Y.mjs} +1 -1
- package/browser/esm/{DbK0GAKpj9hwwFwY.mjs → DqKmpNx001nqxL9-.mjs} +1 -1
- package/browser/esm/{BLoU0uz84A8fWYom.mjs → DyZ_ZPt7AfIQRHrs.mjs} +1 -1
- package/browser/esm/{BDSqdyFcw4FRrODg.mjs → SPcuw6nJ_zr0pnDz.mjs} +6231 -6229
- package/browser/esm/{u5XTTNCFdsbCZ-ud.mjs → VuI41u3fK2SxnZx-.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/browser/esm/{Bzs_r45vqhZAtTZK.mjs → nNOjzucmCgt0E0-V.mjs} +1 -1
- package/browser/esm/{DTPLUnlOvF2feqR4.mjs → tzxeGI0F42oMAfa6.mjs} +1 -1
- package/node/esm/{3vOMW8PI4UI73pTa.mjs → 9xJZZPqKAtOOOX5i.mjs} +1 -1
- package/node/esm/{B9z2sURkI9ThbLxE.mjs → B1G6Rgm2aL_5kgHa.mjs} +1 -1
- package/node/esm/{D6VvBNUOfq8QUBY5.mjs → B27KGx3M0yzx-1jA.mjs} +1 -1
- package/{browser/esm/DTzUiMAnLD_Zuf0f.mjs → node/esm/BAKkVERK2KPeLHqK.mjs} +1 -1
- package/node/esm/{mxYovIi79sCzcZtQ.mjs → BPTJcWN84JBAX42K.mjs} +1 -1
- package/node/esm/{oRsIla0R_H7slM9k.mjs → Bbv16D4fVQbvmeGb.mjs} +1 -1
- package/{browser/esm/C4EnSMaP8fTEJmhu.mjs → node/esm/BlFBBO5SEKkNu04Z.mjs} +1 -1
- package/node/esm/{DP7a0Jrz8vTZnv2W.mjs → BtnpUnCZsdBMD_Q7.mjs} +1 -1
- package/node/esm/{DElHitSTYjDdkUx1.mjs → ByA1yuaqIercddWK.mjs} +1 -1
- package/node/esm/{Bi2_8iLEY_M-v_34.mjs → C41zPEejyGu0rCel.mjs} +1 -1
- package/node/esm/{D_lQo-PErOoj-8tN.mjs → CDFBHJozbHupAXlj.mjs} +1 -1
- package/node/esm/{BgKy-xWSJeSV_EyO.mjs → CSMYjH-VsLDc-kQw.mjs} +1 -1
- package/node/esm/{D7cm1_99nK7c_-6L.mjs → CWTSlBpHnUNkabvw.mjs} +1 -1
- package/node/esm/{Cg7YNnt2uhmFG_3d.mjs → CirdsRxGamKNm05_.mjs} +1 -1
- package/node/esm/{CS080xy3HgmgAFgx.mjs → CtcwF97GsD14y_J3.mjs} +1 -1
- package/{browser/esm/DE0iHIHhP7sczC_y.mjs → node/esm/CzoV9l2f9TIO4kfc.mjs} +1 -1
- package/node/esm/{BL_7m0SH43tASZc8.mjs → CzwXoxJ3TzyMze-U.mjs} +1 -1
- package/{browser/esm/DoMqoQP6F7OPue_g.mjs → node/esm/DESiFH0Qc4ZGz9Y8.mjs} +1 -1
- package/node/esm/{BNoPG6CBaybfp_G7.mjs → DUYld7eB1xcP_zJU.mjs} +1 -1
- package/node/esm/{DORXFXgRUsjkR1kA.mjs → DnIKdFAQUj43173Y.mjs} +1 -1
- package/node/esm/{DbK0GAKpj9hwwFwY.mjs → DqKmpNx001nqxL9-.mjs} +1 -1
- package/node/esm/{sVuz1UjytOtK5gck.mjs → DwXS6_mvg1q2f611.mjs} +2 -2
- package/node/esm/{BLoU0uz84A8fWYom.mjs → DyZ_ZPt7AfIQRHrs.mjs} +1 -1
- package/node/esm/{u5XTTNCFdsbCZ-ud.mjs → VuI41u3fK2SxnZx-.mjs} +1 -1
- package/node/esm/index.mjs +3175 -3180
- package/node/esm/{BE2XMKirjoBI9zkt.mjs → jYNXw_FWxrCxfWZ3.mjs} +1 -1
- package/package.json +4 -4
- package/types/index.d.ts +0 -1
- package/types/scripting.d.ts +3 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
-
*/const yt=require("./
|
|
6
|
+
*/const yt=require("./BS7s5HpBYp5EBvvr.cjs");function kt(Y,H){for(var k=0;k<H.length;k++){const P=H[k];if(typeof P!="string"&&!Array.isArray(P)){for(const N in P)if(N!=="default"&&!(N in Y)){const Q=Object.getOwnPropertyDescriptor(P,N);Q&&Object.defineProperty(Y,N,Q.get?Q:{enumerable:!0,get:()=>P[N]})}}}return Object.freeze(Object.defineProperty(Y,Symbol.toStringTag,{value:"Module"}))}var ct,pt={exports:{}},gt=(ct||(ct=1,pt.exports=(function Y(){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={};function B(t){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){var i=at(e);i.chunkSize=parseInt(i.chunkSize),e.step||e.chunk||(i.chunkSize=null),this._handle=new ht(i),(this._handle.streamer=this)._config=i}.call(this,t),this.parseChunk=function(e,i){var n=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<n){let c=this._config.newline;c||(r=this._config.quoteChar||'"',c=this._handle.guessLineEndings(e,r)),e=[...e.split(c).slice(n)].join(c)}this.isFirstChunk&&_(this._config.beforeFirstChunk)&&(r=this._config.beforeFirstChunk(e))!==void 0&&(e=r),this.isFirstChunk=!1,this._halted=!1,n=this._partialLine+e;var r=(this._partialLine="",this._handle.parse(n,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){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});else if(_(this._config.chunk)&&!i){if(this._config.chunk(r,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=r=void 0}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}this._halted=!0},this._sendError=function(e){_(this._config.error)?this._config.error(e):N&&this._config.error&&k.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function it(t){var e;(t=t||{}).chunkSize||(t.chunkSize=o.RemoteChunkSize),B.call(this,t),this._nextChunk=P?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(i){this._input=i,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{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){var i,n=this._config.downloadRequestHeaders;for(i in n)e.setRequestHeader(i,n[i])}var r;this._config.chunkSize&&(r=this._start+this._config.chunkSize-1,e.setRequestHeader("Range","bytes="+this._start+"-"+r));try{e.send(this._config.downloadRequestBody)}catch(c){this._chunkError(c.message)}P&&e.status===0&&this._chunkError()}},this._chunkLoaded=function(){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)))},this._chunkError=function(i){i=e.statusText||i,this._sendError(new Error(i))}}function rt(t){(t=t||{}).chunkSize||(t.chunkSize=o.LocalChunkSize),B.call(this,t);var e,i,n=typeof FileReader<"u";this.stream=function(r){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()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){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));n||this._chunkLoaded({target:{result:c}})},this._chunkLoaded=function(r){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(r.target.result)},this._chunkError=function(){this._sendError(e.error)}}function X(t){var e;B.call(this,t=t||{}),this.stream=function(i){return e=i,this._nextChunk()},this._nextChunk=function(){var i,n;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)}}function nt(t){B.call(this,t=t||{});var e=[],i=!0,n=!1;this.pause=function(){B.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){B.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(r){this._input=r,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){n&&e.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),e.length?this.parseChunk(e.shift()):i=!0},this._streamData=J(function(r){try{e.push(typeof r=="string"?r:r.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(e.shift()))}catch(c){this._streamError(c)}},this),this._streamError=J(function(r){this._streamCleanUp(),this._sendError(r)},this),this._streamEnd=J(function(){this._streamCleanUp(),n=!0,this._streamData("")},this),this._streamCleanUp=J(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function ht(t){var e,i,n,r,c=Math.pow(2,53),R=-c,I=/^\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,E=0,a=0,F=!1,u=!1,g=[],s={data:[],errors:[],meta:{}};function O(h){return t.skipEmptyLines==="greedy"?h.join("").trim()==="":h.length===1&&h[0].length===0}function C(){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){return!O(l)})),T()){let l=function(S,L){_(t.transformHeader)&&(S=t.transformHeader(S,L)),g.push(S)};if(s)if(Array.isArray(s.data[0])){for(var h=0;T()&&h<s.data.length;h++)s.data[h].forEach(l);s.data.splice(0,1)}else s.data.forEach(l)}function d(l,S){for(var L=t.header?{}:[],b=0;b<l.length;b++){var y=b,m=l[b];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=>{if(I.test(v)&&(v=parseFloat(v),R<v&&v<c))return 1})(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"?(L[y]=L[y]||[],L[y].push(m)):L[y]=m}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)),L}var w;s&&(t.header||t.dynamicTyping||t.transform)&&(w=1,!s.data.length||Array.isArray(s.data[0])?(s.data=s.data.map(d),w=s.data.length):s.data=d(s.data,0),t.header&&s.meta&&(s.meta.fields=g),a+=w)}function T(){return t.header&&g.length===0}function M(h,d,w,l){h={type:h,code:d,message:w},l!==void 0&&(h.row=l),s.errors.push(h)}_(t.step)&&(r=t.step,t.step=function(h){s=h,T()?C():(C(),s.data.length!==0&&(E+=h.data.length,t.preview&&E>t.preview?i.abort():(s.data=s.data[0],r(s,p))))}),this.parse=function(h,d,w){var l=t.quoteChar||'"';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,L,b,y,m)=>{var U,f,v,$;m=m||[","," ","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var Z=0;Z<m.length;Z++){for(var K,tt=m[Z],A=0,D=0,x=0,j=(v=void 0,new st({comments:y,delimiter:tt,newline:L,preview:10}).parse(S)),W=0;W<j.data.length;W++)b&&O(j.data[W])?x++:(D+=K=j.data[W].length,v===void 0?v=K:0<K&&(A+=Math.abs(K-v),v=K));0<j.data.length&&(D/=j.data.length-x),(f===void 0||A<=f)&&($===void 0||$<D)&&1.99<D&&(f=A,U=tt,$=D)}return{successful:!!(t.delimiter=U),bestDelimiter:U}})(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,w),C(),F?{meta:{paused:!0}}:s||{meta:{paused:!1}}},this.paused=function(){return F},this.pause=function(){F=!0,i.abort(),e=_(t.chunk)?"":e.substring(i.getCharIndex())},this.resume=function(){p.streamer._halted?(F=!1,p.streamer.parseChunk(e,!0)):setTimeout(p.resume,3)},this.aborted=function(){return u},this.abort=function(){u=!0,i.abort(),s.meta.aborted=!0,_(t.complete)&&t.complete(s),e=""},this.guessLineEndings=function(h,d){h=h.substring(0,1048576),d=new RegExp(V(d)+"([^]*?)"+V(d),"gm");var w=(h=h.replace(d,"")).split("\r");if(h=1<(d=h.split(`
|
|
7
7
|
`)).length&&d[0].length<w[0].length,w.length===1||h)return`
|
|
8
8
|
`;for(var l=0,S=0;S<w.length;S++)w[S][0]===`
|
|
9
9
|
`&&l++;return l>=w.length/2?`\r
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.7.23
|
|
3
3
|
*
|
|
4
4
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: The license can be found at https://www.sheetxl.com/license.
|