@sheetxl/sdk 0.3.7 → 0.3.9
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/{CrUHi-y26t8CdsMR.cjs → 0o_ME-Oog4rubDED.cjs} +1 -1
- package/browser/cjs/{CpH5dJllNz6Orqe3.cjs → 26kR0izl3DIqtu1n.cjs} +1 -1
- package/browser/cjs/{BXS-Ed0MhiJmvctF.cjs → 971Dtc4n_XP_40ZJ.cjs} +4 -4
- package/browser/cjs/{Dcpe-H7moCdxjCJo.cjs → BJY0GMzVrBUH6ney.cjs} +2 -2
- package/browser/cjs/{DQMqVOPOhbfPAYuW.cjs → BKRL7w1EWvHGjQnv.cjs} +1 -1
- package/browser/cjs/{C3Cegft8Ab-nf0bN.cjs → BKwLx_fj9F2j1Tl5.cjs} +2 -2
- package/browser/cjs/{YA2pDaS4jJgCS1Te.cjs → BQevZH1o4mo39yYA.cjs} +1 -1
- package/browser/cjs/{DNrPfiKR-Lu738qs.cjs → BUNQZ7UfkWFlqgpj.cjs} +1 -1
- package/browser/cjs/{K8kTmvbFF2Kih0DG.cjs → BZzdZgDgCRa7QcG9.cjs} +4 -4
- package/browser/cjs/{CZGAsKM-Pur2l3uB.cjs → Bh9UCOd-qg4NaNxV.cjs} +3 -3
- package/browser/cjs/{DPZRZpJhg0rlIweq.cjs → Bkd9rN0b3sGOLZyJ.cjs} +1 -1
- package/browser/cjs/{C4i8hzgQDlUklLV6.cjs → BsQ_JbKBX4KGq_SH.cjs} +1 -1
- package/browser/cjs/{DZ7vfSHpEEzLXQ4s.cjs → BuLJCjXwg2YfV5ls.cjs} +1 -1
- package/browser/cjs/{BKCHK3RrQTdEIj5q.cjs → C0YMtrtLVRcHJdSt.cjs} +1 -1
- package/browser/cjs/{DJjNdoRbhrOcwPvd.cjs → C4oE2K-gtsjk6joO.cjs} +1 -1
- package/browser/cjs/{DAW6jxKLUFoRhMBM.cjs → C7eRaIX_knnMFPj1.cjs} +1 -1
- package/browser/cjs/{BtYtH7W0-JBnotKh.cjs → CB0liOT_DBxN95t2.cjs} +2 -2
- package/browser/cjs/{DKZjMj60olY98hK6.cjs → CSakrYdFtykoN4RJ.cjs} +1 -1
- package/browser/cjs/{CA3L8lngkFuRRF81.cjs → CXUfXeV4ECxK5_-R.cjs} +1 -1
- package/browser/cjs/{CHMbiHVnB8NxDq36.cjs → CjjgthaCLejjl7N9.cjs} +1 -1
- package/browser/cjs/{gm6mYjb1GEKLn9Yq.cjs → CmAl9UR_8JPFFcLU.cjs} +1 -1
- package/browser/cjs/{we-FBk4dJFulLIGu.cjs → Cr3xXqTJSVtayRua.cjs} +1 -1
- package/browser/cjs/{BmwL-qvXriWfrbfh.cjs → Ctg4AL71DdDCkgKF.cjs} +1 -1
- package/browser/cjs/{DrkMfcoFGzbvre19.cjs → DEmuhu9AjeheojwN.cjs} +2 -2
- package/browser/cjs/{Doj6_PT8ZN1O1cph.cjs → DOISXnZosqc5BXMq.cjs} +1 -1
- package/browser/cjs/{mts8dzAh1wfyv7nj.cjs → DgB9yI9ExKrT4y_V.cjs} +4 -4
- package/browser/cjs/{B3m1dnU4mIcbvDb6.cjs → Dt6-yFvP6VxNTv-q.cjs} +1 -1
- package/browser/cjs/{8xDz-kkKzQahPN0M.cjs → LcU77CJ_67L0GG08.cjs} +1 -1
- package/browser/cjs/{Cx8LccC5Jhc8Nvwy.cjs → foIQnwo0xpb7kqg4.cjs} +1 -1
- package/browser/cjs/index.cjs +2 -2
- package/browser/cjs/{Cjje271P7QO4FRPX.cjs → j7RoAR38BbnSSP85.cjs} +1 -1
- package/browser/cjs/{2tFagR-38CNwOm8c.cjs → k4Zljs9DN9WKA82e.cjs} +1 -1
- package/browser/cjs/{yQNjWsRu6FEn-44r.cjs → m1i9iUtye20euyF6.cjs} +1 -1
- package/browser/cjs/{xU8WqQvFaSQhxDNb.cjs → pdEo6H9CQHBOdYXt.cjs} +1 -1
- package/browser/esm/{BYNIOTEdAo_ntUpF.mjs → 1csBlpEHcTq9QCi-.mjs} +1 -1
- package/browser/esm/{Bwy-_ioNxuSNaRKF.mjs → 2ZV63TU04VPTfPjG.mjs} +2 -2
- package/browser/esm/{BtKwWbU1opOOkDex.mjs → 34XQXSbdf4tisyDh.mjs} +1 -1
- package/browser/esm/{LDgKiURlN58MqW3I.mjs → 6xf6TwCurrEtvYwB.mjs} +1 -1
- package/browser/esm/{JDfPD8MlNLQ0rwZr.mjs → 7PxB7kQqrzIcrTC4.mjs} +1 -1
- package/browser/esm/{GhLAjE9R1BN0alda.mjs → 9PBjPxZZ_Wjecxgr.mjs} +1 -1
- package/browser/esm/{DtkghXtdIqyyoTeO.mjs → B5Fu-RwOs52OT0PN.mjs} +1 -1
- package/browser/esm/{Crfi-xgwcMWjzZev.mjs → BNjqHe-MlzSIOvt9.mjs} +1 -1
- package/browser/esm/{BCT0kiUnZkF4eMnL.mjs → BRgSUB6q50bvoW1n.mjs} +3 -3
- package/{node/esm/C4IptnS8iGly_O4c.mjs → browser/esm/Bdl75KCpos25BBaq.mjs} +1 -1
- package/browser/esm/{Dd0y_NF667rpRjly.mjs → Bjq08o-fDdHpZJiP.mjs} +1 -1
- package/{node/esm/n2d56EO5bBRxys0o.mjs → browser/esm/BuTQqHypYcNxvrw6.mjs} +1 -1
- package/{node/esm/Cfv-vMpuv1ygrsa1.mjs → browser/esm/Bw9spaV8aTBIH3hw.mjs} +1 -1
- package/{node/esm/mqvHJxBpe1VTIxtq.mjs → browser/esm/CBu1t0ZWGBncrq09.mjs} +1 -1
- package/browser/esm/{DmFOCqh0xXMxxNsK.mjs → CCCds6s8nahCZpCs.mjs} +8 -8
- package/browser/esm/{CVCX_yF5dxRqfzNX.mjs → CT45mFcV7HMlyPca.mjs} +4 -4
- package/browser/esm/{DvPUe8S3TE8-P1yZ.mjs → CZilQTCSboqrQ1k-.mjs} +1 -1
- package/{node/esm/BVmEvUnfrefk8UvC.mjs → browser/esm/CoCwfD5kzFwjZtCm.mjs} +1 -1
- package/browser/esm/{WTGHMsi9FfKT-XYY.mjs → CwLAxthS-yBONZod.mjs} +2 -2
- package/{node/esm/CX9okeOLr70rOeIC.mjs → browser/esm/CzjNvcqLO_mQhChe.mjs} +1 -1
- package/browser/esm/{BJdqxXHDF0isWMhL.mjs → D1xj6jobXtrBIu7d.mjs} +2 -2
- package/browser/esm/{Bw1SS21o-lplNd5C.mjs → DEKZyu0G_4OalUsq.mjs} +1 -1
- package/browser/esm/{CG2oUv_Wv5I_kMti.mjs → DKcSdSWR33AY8V2O.mjs} +1 -1
- package/{node/esm/CF3VxxULN5HDBCUF.mjs → browser/esm/DOSB26W4seITNppA.mjs} +1 -1
- package/{node/esm/BN7pI0AIlPKW--_9.mjs → browser/esm/DSTWPy-M4FMNgSXX.mjs} +1 -1
- package/browser/esm/{BJanCVUwhsR4kaAC.mjs → FHBsm1bf04anYhuh.mjs} +4 -4
- package/browser/esm/{ClK7XxnEWAK2WHg6.mjs → Itx5H-Zaf8qduPEM.mjs} +1 -1
- package/browser/esm/{-r7jFfHCU3cncsZp.mjs → K_TAWIOn_zfkO7_-.mjs} +1 -1
- package/browser/esm/{714sR4XSzmxpgg8p.mjs → N4Gpc_RcYtLRL6He.mjs} +1 -1
- package/browser/esm/{DrKCLbse7Hy8vE_f.mjs → P4e7STCGg1WY-R03.mjs} +1 -1
- package/{node/esm/ClPsm06BHv3RBKrU.mjs → browser/esm/UpqXR8VUsu-lLmxR.mjs} +1 -1
- package/browser/esm/{vp-Uwb7RhYYliwXj.mjs → UrGco4eySgqMs6Wb.mjs} +2 -2
- package/browser/esm/{q8pCNJ0w3RYQo-r1.mjs → _S8pz_KF5pAIpdyM.mjs} +1 -1
- package/browser/esm/index.mjs +2 -2
- package/licenses/dependencies.txt +3 -3
- package/node/esm/{DtkghXtdIqyyoTeO.mjs → B5Fu-RwOs52OT0PN.mjs} +1 -1
- package/node/esm/{DBhHC8sn_d0a_q-h.mjs → B8LtLMDyee9u66Hl.mjs} +1 -1
- package/node/esm/{DQ_tA9qc8vkUeEA4.mjs → BAYx5jwAq38NcwdV.mjs} +1 -1
- package/node/esm/{BlRmX7m-SwOQb-EL.mjs → BDC724NYuH3qzTe5.mjs} +2 -2
- package/node/esm/{B1yaPSI4UiBb1F5R.mjs → BG_xACAZFKIsOYPU.mjs} +1 -1
- package/node/esm/{b7lxW1PFjSDVYoDg.mjs → BZrDz0QfdloGzR8C.mjs} +1 -1
- package/{browser/esm/C4IptnS8iGly_O4c.mjs → node/esm/Bdl75KCpos25BBaq.mjs} +1 -1
- package/node/esm/{Dd0y_NF667rpRjly.mjs → Bjq08o-fDdHpZJiP.mjs} +1 -1
- package/{browser/esm/n2d56EO5bBRxys0o.mjs → node/esm/BuTQqHypYcNxvrw6.mjs} +1 -1
- package/{browser/esm/Cfv-vMpuv1ygrsa1.mjs → node/esm/Bw9spaV8aTBIH3hw.mjs} +1 -1
- package/node/esm/{4NwNq-niQWt1LaSo.mjs → C1LY-Oj6Ak1ZUVKA.mjs} +4 -4
- package/{browser/esm/mqvHJxBpe1VTIxtq.mjs → node/esm/CBu1t0ZWGBncrq09.mjs} +1 -1
- package/node/esm/{DjTRAiymRWxUGOXb.mjs → CaFEWK89tQk8Bwxp.mjs} +1 -1
- package/{browser/esm/BVmEvUnfrefk8UvC.mjs → node/esm/CoCwfD5kzFwjZtCm.mjs} +1 -1
- package/{browser/esm/CX9okeOLr70rOeIC.mjs → node/esm/CzjNvcqLO_mQhChe.mjs} +1 -1
- package/node/esm/{CNM_q3cDQN5qAue9.mjs → D37ZbSqzUmSKr7-m.mjs} +1 -1
- package/node/esm/{WaMcmgvNM3NR8Ndu.mjs → D48vygATfu82otd6.mjs} +3 -3
- package/node/esm/{BmRxkGwotvfXQE2Z.mjs → D70tEwnK7Cvkf9qY.mjs} +2 -2
- package/node/esm/{DSYvYjFUM-4wOf2B.mjs → DAI2ZH3GlqNwfQgH.mjs} +1 -1
- package/node/esm/{Bw1SS21o-lplNd5C.mjs → DEKZyu0G_4OalUsq.mjs} +1 -1
- package/{browser/esm/CF3VxxULN5HDBCUF.mjs → node/esm/DOSB26W4seITNppA.mjs} +1 -1
- package/node/esm/{En-IG8xKFviPqHTv.mjs → DPJWisTURjCO2TDm.mjs} +2 -2
- package/{browser/esm/BN7pI0AIlPKW--_9.mjs → node/esm/DSTWPy-M4FMNgSXX.mjs} +1 -1
- package/node/esm/{DVT3kjKPh-dC9r1D.mjs → DkKFh2IQEA9eKFp8.mjs} +1 -1
- package/node/esm/{B2Ph-d87YMY-x_nP.mjs → DtYZkOIwzUkPP_kd.mjs} +1 -1
- package/node/esm/{ClK7XxnEWAK2WHg6.mjs → Itx5H-Zaf8qduPEM.mjs} +1 -1
- package/node/esm/{-r7jFfHCU3cncsZp.mjs → K_TAWIOn_zfkO7_-.mjs} +1 -1
- package/node/esm/{DrKCLbse7Hy8vE_f.mjs → P4e7STCGg1WY-R03.mjs} +1 -1
- package/{browser/esm/ClPsm06BHv3RBKrU.mjs → node/esm/UpqXR8VUsu-lLmxR.mjs} +1 -1
- package/node/esm/{Duj1s2HJ3dqDVgVg.mjs → WxjCO0Cy_FJk8elS.mjs} +1 -1
- package/node/esm/{q8pCNJ0w3RYQo-r1.mjs → _S8pz_KF5pAIpdyM.mjs} +1 -1
- package/node/esm/index.mjs +7 -7
- package/package.json +4 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.9
|
|
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("./971Dtc4n_XP_40ZJ.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.3.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.9
|
|
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,6 +1,6 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.9
|
|
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
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./
|
|
6
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./BZzdZgDgCRa7QcG9.cjs"));return this.workerWrapper=await r(),this.workerWrapper}async compileModule(r){try{return(await this.getWorkerWrapper()).execute(r)}catch(e){throw console.error("Failed to compile using worker:",e),e}}terminate(){this.workerWrapper?.terminate(),this.workerWrapper=null}};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.9
|
|
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.3.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.9
|
|
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,10 +1,10 @@
|
|
|
1
1
|
"use strict";/**
|
|
2
|
-
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.
|
|
2
|
+
* @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.3.9
|
|
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
6
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const i=new Error(r.message);i.stack=r.stack,r.cause&&(i.cause=r.cause),o.reject(i)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
|
|
7
|
-
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.
|
|
7
|
+
* @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.3.9
|
|
8
8
|
*
|
|
9
9
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
10
10
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -223,7 +223,7 @@ var v;
|
|
|
223
223
|
return n = typeof e == "string" ? tt.get(e) : rt.get(e), n || (n = v.Unknown), new n(t, r);
|
|
224
224
|
}, v.getBuiltInById = (e) => Te.get(e) || Et;
|
|
225
225
|
/**
|
|
226
|
-
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.
|
|
226
|
+
* @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.3.9
|
|
227
227
|
*
|
|
228
228
|
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
229
229
|
* License: The license can be found at https://www.sheetxl.com/license.
|
|
@@ -1498,4 +1498,4 @@ var or = /* @__PURE__ */ Object.freeze({
|
|
|
1498
1498
|
__proto__: null,
|
|
1499
1499
|
initialize: nr
|
|
1500
1500
|
});
|
|
1501
|
-
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./
|
|
1501
|
+
`,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./DgB9yI9ExKrT4y_V.cjs")),n=new u(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(typeof process<"u"&&process.versions?.node&&typeof Worker>"u")return await l();if(typeof Worker<"u"){const e=new c(()=>new d);try{return await e.start(),e}catch(n){console.error("Failed to start TypescriptCompiler worker reverting to fallback:",n)}}return await l()};
|