@sheetxl/sdk 0.4.11 → 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.
Files changed (102) hide show
  1. package/browser/cjs/{B_NhkERIkAJotIbp.cjs → 39ybckEYrSwofEL8.cjs} +1 -1
  2. package/browser/cjs/{DNv6ybWP5Fldgc2s.cjs → 7F9Y23ZviM83MrLB.cjs} +1 -1
  3. package/browser/cjs/{C06jNASkAfV7kAJt.cjs → 9OWmR6t6tmtR3HKs.cjs} +1 -1
  4. package/browser/cjs/{DDRgvBqROJxESdD7.cjs → AoftwE84s7sGV4YJ.cjs} +1 -1
  5. package/browser/cjs/{1aBi7EjSv7rlHImN.cjs → BJZM9I81r8nRPehZ.cjs} +2 -2
  6. package/browser/cjs/{Cv7d06asyk54h4qg.cjs → BLHJddfDq44WHNs6.cjs} +1 -1
  7. package/browser/cjs/{DHpCAbHLYqvLP0Z6.cjs → BdbcopQNFs0VAYoZ.cjs} +2 -2
  8. package/browser/cjs/{Bo-zjba28_CWMlTu.cjs → C2McR1ZSNpfPMaI1.cjs} +1 -1
  9. package/browser/cjs/{36TOhwWf_rpUol3H.cjs → CAC1euA3bA1IpMhZ.cjs} +1 -1
  10. package/browser/cjs/{2nOrVMTAGGx_9TGL.cjs → CDwPpmyZAYF_aBaX.cjs} +1 -1
  11. package/browser/cjs/{CMCnH7IuCm_auikF.cjs → CP2yuwDM2Fzm2bQy.cjs} +2 -2
  12. package/browser/cjs/{CVXGzVLWLx2CJQm9.cjs → CSn-hMrEUwFcYpBT.cjs} +3 -3
  13. package/browser/cjs/{ZJKVquWhB5WR-iPJ.cjs → CeuXJMoeKjSnby5j.cjs} +1 -1
  14. package/browser/cjs/{uyHKBD07R0GGZXep.cjs → Ch5W6IQIqcVy3CUV.cjs} +1 -1
  15. package/browser/cjs/{CaFJIY4BbuoM7WDD.cjs → CtaH9jllSQmzD2AZ.cjs} +2 -2
  16. package/browser/cjs/{2U_vaFrfcRohWzeU.cjs → Ctw9E_2VE0l2P6Yk.cjs} +1 -1
  17. package/browser/cjs/{Dl3IO1DS4B5jgpKI.cjs → Czl-z-_3jRiufzFq.cjs} +2 -2
  18. package/browser/cjs/{kyw6u7fpNVXpqgsI.cjs → D-HLMUqMDuHV5fFD.cjs} +1 -1
  19. package/browser/cjs/{trblZTDJ1nAz0rWR.cjs → D5pK8FbUHJmgHMVR.cjs} +1 -1
  20. package/browser/cjs/{BEsz-1T9Bb9AaMYL.cjs → DA7BmT8kgTnFcBps.cjs} +1 -1
  21. package/browser/cjs/{BdTk8Nhw8G_OzMbe.cjs → DBBaD9qGTCHmDZzt.cjs} +1 -1
  22. package/browser/cjs/{BAsFktGxZpUGmZLe.cjs → DD24B_zQQtT3iqLe.cjs} +1 -1
  23. package/browser/cjs/{Ch3tbUYQx16tKF7k.cjs → DKwnqzohEhfP9-D8.cjs} +1 -1
  24. package/browser/cjs/{ZcKbNkAX98aqbRl3.cjs → DO-igV-beWuURc9q.cjs} +1 -1
  25. package/browser/cjs/{B73Zu8_s9vFWOh_O.cjs → DR2yNdWmKOx4XEn_.cjs} +2 -2
  26. package/browser/cjs/{7sNFPxy75NuqCDQh.cjs → D_PNelhiuhC_pYQe.cjs} +1 -1
  27. package/browser/cjs/{CcEyzUYgzJ50PUJe.cjs → Dg4inQb_qTGcwKWj.cjs} +1 -1
  28. package/browser/cjs/{Yi2_Rw5GDVzd_VxU.cjs → KlMBkdsOI1TbINZi.cjs} +1 -1
  29. package/browser/cjs/{DtBxSbHruNTMTsh-.cjs → Me1cXPMFZnMqu9Ni.cjs} +3 -3
  30. package/browser/cjs/{nQY-7MdNrbTu3EmK.cjs → P1V-5yUNwU9r5yLw.cjs} +1 -1
  31. package/browser/cjs/{C9wOzvC_v6DonctC.cjs → Vkjfeba56sx1eWi0.cjs} +1 -1
  32. package/browser/cjs/{EU56rWjRMrkea9af.cjs → dwUVhGNDSgZfRm3P.cjs} +1 -1
  33. package/browser/cjs/index.cjs +2 -2
  34. package/browser/cjs/{5zykq8Nm9_DGD2DJ.cjs → txLIAZHRWIU9kf0I.cjs} +1 -1
  35. package/browser/esm/{PVTl6mvmxvLJIzh9.mjs → 30SRICLt1PAxlGS8.mjs} +1 -1
  36. package/browser/esm/{CM_TdYA35a4ZBdwx.mjs → 9jeiH8SVL_ZJYLxo.mjs} +1 -1
  37. package/browser/esm/{C-CL0OoNkb1zC70z.mjs → B-xoX7KIAUytU1_U.mjs} +1 -1
  38. package/browser/esm/{Dk8xANVVmSj4hMfy.mjs → B_bzVKesE_JRp6EW.mjs} +1 -1
  39. package/browser/esm/{CK55N2ZgYHqyYvC2.mjs → BbO1W_XgpJnqTSty.mjs} +1 -1
  40. package/browser/esm/{COIpRrbH0PIAxGAv.mjs → BngRU84kl6oeKeYG.mjs} +1 -1
  41. package/browser/esm/{BQCIUvZDEabV77HK.mjs → BuJVzVii6s-ETLFo.mjs} +2 -2
  42. package/browser/esm/{DTfK5ukJi2A2cG4a.mjs → ByHA0yF73W3Lubv1.mjs} +3 -3
  43. package/browser/esm/{1RkwhM87R80gyTMd.mjs → C9XmeyBj3CidGuuQ.mjs} +2 -2
  44. package/browser/esm/{DkBcYI5GMfGWjMpw.mjs → CGlSMtRCaIAn2kcK.mjs} +1 -1
  45. package/browser/esm/{ChEVz9V1woVRX6WL.mjs → CNZEHpuUipSLJnir.mjs} +1 -1
  46. package/browser/esm/{Du5u3LhdTaqIps_D.mjs → CUDgLpRqpHPjfaCi.mjs} +1 -1
  47. package/browser/esm/{BsDRByzxyMQ1n9k6.mjs → ChB6ZgoNr49oUuh9.mjs} +2 -2
  48. package/browser/esm/{CuVRE_tWXcHiZiqD.mjs → D0HYMuygnYvY7Atx.mjs} +1 -1
  49. package/browser/esm/{BVi-ZLSVMKE-zvx4.mjs → D1PWaFTHEZfGGXTb.mjs} +1 -1
  50. package/browser/esm/{BuUARF4geX1QlFaV.mjs → D2zmZcBdOoyixeUA.mjs} +1 -1
  51. package/browser/esm/{BHc7eG4nZizeMBb5.mjs → D525g_2eyexUf3Zf.mjs} +1 -1
  52. package/browser/esm/{iKCrpPPbOnKlkUDb.mjs → DMJw8DmfeX6u2glN.mjs} +1 -1
  53. package/browser/esm/{BO0ncqgpx-62w_oX.mjs → DfHQEyIlLlv5P49Q.mjs} +2 -2
  54. package/browser/esm/{Y5czqevaHtgUcl4L.mjs → Dhvtq8jHg8BxOR0C.mjs} +1 -1
  55. package/browser/esm/{s7QvhDE2kJkgBcZ8.mjs → DkPPc6PpShDjAHJV.mjs} +1 -1
  56. package/browser/esm/{5w39mZuW-sWnmmdV.mjs → DqEqprkW8poZvfjh.mjs} +1 -1
  57. package/browser/esm/{DoolQNF8KdKfxJym.mjs → DtSj65a0yyYL8HUw.mjs} +1 -1
  58. package/browser/esm/{DCgtfzoZVReua9he.mjs → Dw0Okzcg5hIcHUcc.mjs} +1 -1
  59. package/browser/esm/{CW0tmrVd5h3U4RZa.mjs → Dzo7yK5H2NRkocTa.mjs} +1 -1
  60. package/browser/esm/{Bv47rNz3qnYylQjD.mjs → G_2bOLOa20d7iobX.mjs} +1 -1
  61. package/browser/esm/{B9JgD2n0XcFJj3bo.mjs → MRXgg6FvbB08Ze4M.mjs} +2 -2
  62. package/browser/esm/{A8C5de6v1CBMgJZq.mjs → SePiM6uWrcY09dym.mjs} +1 -1
  63. package/browser/esm/{BEs22-ynP5XGO3w2.mjs → eCZnrKI7SxPgdErZ.mjs} +2 -2
  64. package/browser/esm/index.mjs +2 -2
  65. package/browser/esm/{CV82qaLuZfxcBBSy.mjs → nE8H93zlwoi3F8Ii.mjs} +3 -3
  66. package/browser/esm/{DS7nkzMuzXOAIPF2.mjs → ui3SG2ZyuCKIR0An.mjs} +1 -1
  67. package/browser/esm/{DyvAZkeumXN8GHi4.mjs → vk7TdrD0zPqtT8_n.mjs} +1 -1
  68. package/browser/esm/{lfu13YaazVLqtmeU.mjs → yM_d2jrPPN_EupI0.mjs} +1 -1
  69. package/licenses/dependencies.txt +3 -3
  70. package/node/esm/{DSPiPnJGbhnNKLaY.mjs → BJvhZja9zXr81ch6.mjs} +1 -1
  71. package/node/esm/{QvMgUimFvzdL6-mo.mjs → BK_7sJa3fTDIKVsK.mjs} +2 -2
  72. package/node/esm/{D90o-RTQ6VATF0Rk.mjs → BPhIhbwKpbuhJ5n5.mjs} +1 -1
  73. package/node/esm/{p6tOM2g4fibuTbKy.mjs → BQb_TIMVKb4ap8qn.mjs} +1 -1
  74. package/node/esm/{C9U5rfU-8XoDc_V8.mjs → BW1-l-HQdvRTQ7Bm.mjs} +4 -4
  75. package/node/esm/{DLdBwr1RlyAhJCV0.mjs → Bkj8joA7ej1p4iQv.mjs} +1 -1
  76. package/node/esm/{CFWQqFvDJMGXn8Qq.mjs → BnQS3_N8ZEyMLfgn.mjs} +1 -1
  77. package/node/esm/{Ck1Jwm7rnsCLVeO1.mjs → Bs1vmYEblngyWvkW.mjs} +1 -1
  78. package/node/esm/{sroYp2c6WrIr_3vO.mjs → BtDgmaUXSuZwZauR.mjs} +2 -2
  79. package/node/esm/{KATYAmh0NIiQ-uaD.mjs → C2nQBB-2yJ1qfKsG.mjs} +1 -1
  80. package/node/esm/{BmYqJNOwK3UJW3Xe.mjs → CEBBIejO4nn_eoLE.mjs} +1 -1
  81. package/node/esm/{uUNVoKRRBhW28hYx.mjs → CEBaRGnJ6Pau61Z3.mjs} +1 -1
  82. package/node/esm/{VINTYbFQolKKX9Cn.mjs → CSr4e1I9DtTv2w79.mjs} +1 -1
  83. package/node/esm/{3LAM4nbl-SF93GnL.mjs → CWUmgm7_b5VypIPN.mjs} +3 -3
  84. package/node/esm/{jqWzWUQAPXE6S4pP.mjs → Cb2A-sSxQbrq7_st.mjs} +1 -1
  85. package/node/esm/{BMXFtr-jXZGBZS1-.mjs → CfSD4cLmkg0FqnhQ.mjs} +1 -1
  86. package/node/esm/{CW0oFlrKt5Uj6nuK.mjs → ChgW0mo5gCgLQ4qn.mjs} +1 -1
  87. package/node/esm/{JIc401vM9srbtF9d.mjs → Cl6j-EVdzk8MvmYu.mjs} +1 -1
  88. package/node/esm/{D8Hpg5A5WcmsFCPu.mjs → Cvzp8bwJnKvjvZSp.mjs} +1 -1
  89. package/node/esm/{CFsZ2V-cxUHf5_Sy.mjs → D-7D30G3TPv5yZHW.mjs} +1 -1
  90. package/node/esm/{COCgGLfPgG-NG4Ei.mjs → DPWAK-dKa7BGHzhV.mjs} +1 -1
  91. package/node/esm/{CnhQwEj214g59Jgw.mjs → DaA9EfLaa4eAL5v5.mjs} +1 -1
  92. package/node/esm/{DbLo1yZBy3dKaDrf.mjs → DdQQdRO6WRU-o7fW.mjs} +1 -1
  93. package/node/esm/{DpmEPBmhU3gneOpb.mjs → DqzaLjnlgJ73P6fj.mjs} +1 -1
  94. package/node/esm/{DUlT61b-CgdPCdu7.mjs → KTvP9pq_hIePsIcs.mjs} +1 -1
  95. package/node/esm/{DRM7eoEZII5c6Rbr.mjs → R6sbyZ3F8U46a2pT.mjs} +1 -1
  96. package/node/esm/{Cuk6l5jbAp5qG99L.mjs → RjYTditNvvkkhvec.mjs} +1 -1
  97. package/node/esm/{DWlgrg4IlFnKTR6y.mjs → Ru2U-PXJ-wtFJVIi.mjs} +1 -1
  98. package/node/esm/{CfeR1dXEw7Hep352.mjs → _50UNzbNjsJJ5JeA.mjs} +1 -1
  99. package/node/esm/{Cn1RL1hYSYnF25uZ.mjs → ebMdiumtVWrujqaH.mjs} +1 -1
  100. package/node/esm/index.mjs +7 -7
  101. package/node/esm/{CXrQQnxTwsX0wNvN.mjs → wYdBXNtyuqNnNqw7.mjs} +2 -2
  102. package/package.json +4 -4
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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
  */
7
- "use strict";const e=require("./DtBxSbHruNTMTsh-.cjs");function t(e,t){for(var i=0;i<t.length;i++){const r=t[i];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const i=Object.getOwnPropertyDescriptor(r,t);i&&Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,r={exports:{}};var n=(i||(i=1,r.exports=function e(){var t,i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{},r=!i.document&&!!i.postMessage,n=i.IS_PAPA_WORKER||!1,s={},a=0,o={};function h(e){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 t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new c(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&v(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1,r=this._partialLine+e;var s=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,n)i.postMessage({results:s,workerId:o.WORKER_ID,finished:r});else if(v(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!r||!v(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){v(this._config.error)?this._config.error(e):n&&this._config.error&&i.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=o.RemoteChunkSize),h.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,i=this._config.downloadRequestHeaders;for(e in i)t.setRequestHeader(e,i[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+n));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=o.LocalChunkSize),h.call(this,e);var t,i,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,n=(this._config.chunkSize&&(n=Math.min(this._start+this._config.chunkSize,this._input.size),e=i.call(e,this._start,n)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;h.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,i;if(!this._finished)return e=this._config.chunkSize,t=e?(i=t.substring(0,e),t.substring(e)):(i=t,""),this._finished=!t,this.parseChunk(i)}}function l(e){h.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function c(e){var t,i,r,n,s=Math.pow(2,53),a=-s,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\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)))$/,d=this,f=0,l=0,c=!1,_=!1,m=[],y={data:[],errors:[],meta:{}};function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function E(){if(y&&r&&(C("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!b(e)})),w()){if(y)if(Array.isArray(y.data[0])){for(var t=0;w()&&t<y.data.length;t++)y.data[t].forEach(d);y.data.splice(0,1)}else y.data.forEach(d);function d(t,i){v(e.transformHeader)&&(t=e.transformHeader(t,i)),m.push(t)}}function i(t,i){for(var r=e.header?{}:[],n=0;n<t.length;n++){var o=n,d=t[n];d=((t,i)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&((e=>{if(h.test(e)&&(e=parseFloat(e),a<e&&e<s))return 1})(i)?parseFloat(i):u.test(i)?new Date(i):""===i?null:i):i)(o=e.header?n>=m.length?"__parsed_extra":m[n]:o,d=e.transform?e.transform(d,o):d),"__parsed_extra"===o?(r[o]=r[o]||[],r[o].push(d)):r[o]=d}return e.header&&(n>m.length?C("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+n,l+i):n<m.length&&C("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+n,l+i)),r}var n;y&&(e.header||e.dynamicTyping||e.transform)&&(n=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(i),n=y.data.length):y.data=i(y.data,0),e.header&&y.meta&&(y.meta.fields=m),l+=n)}function w(){return e.header&&0===m.length}function C(e,t,i,r){e={type:e,code:t,message:i},void 0!==r&&(e.row=r),y.errors.push(e)}v(e.step)&&(n=e.step,e.step=function(t){y=t,w()?E():(E(),0!==y.data.length&&(f+=t.data.length,e.preview&&f>e.preview?i.abort():(y.data=y.data[0],n(y,d))))}),this.parse=function(n,s,a){var h=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,h)),r=!1,e.delimiter?v(e.delimiter)&&(e.delimiter=e.delimiter(n),y.meta.delimiter=e.delimiter):((h=((t,i,r,n,s)=>{var a,h,u,d;s=s||[",","\t","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var f=0;f<s.length;f++){for(var l,c=s[f],p=0,_=0,m=0,y=(u=void 0,new g({comments:n,delimiter:c,newline:i,preview:10}).parse(t)),k=0;k<y.data.length;k++)r&&b(y.data[k])?m++:(_+=l=y.data[k].length,void 0===u?u=l:0<l&&(p+=Math.abs(l-u),u=l));0<y.data.length&&(_/=y.data.length-m),(void 0===h||p<=h)&&(void 0===d||d<_)&&1.99<_&&(h=p,a=c,d=_)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=h.bestDelimiter:(r=!0,e.delimiter=o.DefaultDelimiter),y.meta.delimiter=e.delimiter),h=k(e),e.preview&&e.header&&h.preview++,t=n,i=new g(h),y=i.parse(t,s,a),E(),c?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=v(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(c=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return _},this.abort=function(){_=!0,i.abort(),y.meta.aborted=!0,v(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var i=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<i[0].length,1===i.length||e)return"\n";for(var r=0,n=0;n<i.length;n++)"\n"===i[n][0]&&r++;return r>=i.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(e){var t=(e=e||{}).delimiter,i=e.newline,r=e.comments,n=e.step,s=e.preview,a=e.fastMode,h=null,u=!1,d=null==e.quoteChar?'"':e.quoteChar,f=d;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<o.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var l=0,c=!1;this.parse=function(o,g,_){if("string"!=typeof o)throw new Error("Input must be a string");var m=o.length,y=t.length,k=i.length,b=r.length,E=v(n),w=[],C=[],R=[],O=l=0;if(!o)return P();if(a||!1!==a&&-1===o.indexOf(d)){for(var S=o.split(i),x=0;x<S.length;x++){if(R=S[x],l+=R.length,x!==S.length-1)l+=i.length;else if(_)return P();if(!r||R.substring(0,b)!==r){if(E){if(w=[],F(R.split(t)),U(),c)return P()}else F(R.split(t));if(s&&s<=x)return w=w.slice(0,s),P(!0)}}return P()}for(var A=o.indexOf(t,l),I=o.indexOf(i,l),T=new RegExp(p(f)+p(d),"g"),D=o.indexOf(d,l);;)if(o[l]===d)for(D=l,l++;;){if(-1===(D=o.indexOf(d,D+1)))return _||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:l}),z();if(D===m-1)return z(o.substring(l,D).replace(T,d));if(d===f&&o[D+1]===f)D++;else if(d===f||0===D||o[D-1]!==f){-1!==A&&A<D+1&&(A=o.indexOf(t,D+1));var L=j(-1===(I=-1!==I&&I<D+1?o.indexOf(i,D+1):I)?A:Math.min(A,I));if(o.substr(D+1+L,y)===t){R.push(o.substring(l,D).replace(T,d)),o[l=D+1+L+y]!==d&&(D=o.indexOf(d,l)),A=o.indexOf(t,l),I=o.indexOf(i,l);break}if(L=j(I),o.substring(D+1+L,D+1+L+k)===i){if(R.push(o.substring(l,D).replace(T,d)),M(D+1+L+k),A=o.indexOf(t,l),D=o.indexOf(d,l),E&&(U(),c))return P();if(s&&w.length>=s)return P(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:l}),D++}}else if(r&&0===R.length&&o.substring(l,l+b)===r){if(-1===I)return P();l=I+k,I=o.indexOf(i,l),A=o.indexOf(t,l)}else if(-1!==A&&(A<I||-1===I))R.push(o.substring(l,A)),l=A+y,A=o.indexOf(t,l);else{if(-1===I)break;if(R.push(o.substring(l,I)),M(I+k),E&&(U(),c))return P();if(s&&w.length>=s)return P(!0)}return z();function F(e){w.push(e),O=l}function j(e){var t=0;return-1!==e&&(e=o.substring(D+1,e))&&""===e.trim()?e.length:t}function z(e){return _||(void 0===e&&(e=o.substring(l)),R.push(e),l=m,F(R),E&&U()),P()}function M(e){l=e,F(R),R=[],I=o.indexOf(i,l)}function P(r){if(e.header&&!g&&w.length&&!u){var n=w[0],s=Object.create(null),a=new Set(n);let t=!1;for(let i=0;i<n.length;i++){let r=n[i];if(s[r=v(e.transformHeader)?e.transformHeader(r,i):r]){let e,o=s[r];for(;e=r+"_"+o,o++,a.has(e););a.add(e),n[i]=e,s[r]++,t=!0,(h=null===h?{}:h)[e]=r}else s[r]=1,n[i]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:w,errors:C,meta:{delimiter:t,linebreak:i,aborted:c,truncated:!!r,cursor:O+(g||0),renamedHeaders:h}}}function U(){n(P()),w=[],C=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return l}}function _(e){var t=e.data,i=s[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(v(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},n),!r);a++);delete t.results}else v(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var i=s[e];v(i.userComplete)&&i.userComplete(t),i.terminate(),delete s[e]}function y(){throw new Error("Not implemented.")}function k(e){if("object"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=k(e[t]);return i}function b(e,t){return function(){e.apply(t,arguments)}}function v(e){return"function"==typeof e}return o.parse=function(t,r){var n=(r=r||{}).dynamicTyping||!1;if(v(n)&&(r.dynamicTypingFunction=n,n={}),r.dynamicTyping=n,r.transform=!!v(r.transform)&&r.transform,!r.worker||!o.WORKERS_SUPPORTED)return n=null,o.NODE_STREAM_INPUT,"string"==typeof t?(t=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(t),n=new(r.download?u:f)(r)):!0===t.readable&&v(t.read)&&v(t.on)?n=new l(r):(i.File&&t instanceof File||t instanceof Object)&&(n=new d(r)),n.stream(t);(n=(()=>{var t;return!!o.WORKERS_SUPPORTED&&(t=(()=>{var t=i.URL||i.webkitURL||null,r=e.toString();return o.BLOB_URL||(o.BLOB_URL=t.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; ","(",r,")();"],{type:"text/javascript"})))})(),(t=new i.Worker(t)).onmessage=_,t.id=a++,s[t.id]=t)})()).userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=v(r.step),r.chunk=v(r.chunk),r.complete=v(r.complete),r.error=v(r.error),delete r.worker,n.postMessage({input:t,config:r,workerId:n.id})},o.unparse=function(e,t){var i=!1,r=!0,n=",",s="\r\n",a='"',h=a+a,u=!1,d=null,f=!1,l=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||o.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(h=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,u);if("object"==typeof e[0])return c(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function c(e,t,i){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),h=!Array.isArray(t[0]);if(o&&r){for(var u=0;u<e.length;u++)0<u&&(a+=n),a+=g(e[u],u);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var f=(o?e:t[d]).length,l=!1,c=o?0===Object.keys(t[d]).length:0===t[d].length;if(i&&!o&&(l="greedy"===i?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===i&&o){for(var p=[],_=0;_<f;_++){var m=h?e[_]:_;p.push(t[d][m])}l=""===p.join("").trim()}if(!l){for(var y=0;y<f;y++){0<y&&!c&&(a+=n);var k=o&&h?e[y]:y;a+=g(t[d][k],y)}d<t.length-1&&(!i||0<f&&!c)&&(a+=s)}}return a}function g(e,t){var r,s;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(s=!1,f&&"string"==typeof e&&f.test(e)&&(e="'"+e,s=!0),r=e.toString().replace(l,h),(s=s||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(r,o.BAD_DELIMITERS)||-1<r.indexOf(n)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?a+r+a:r)}},o.RECORD_SEP=String.fromCharCode(30),o.UNIT_SEP=String.fromCharCode(31),o.BYTE_ORDER_MARK="\ufeff",o.BAD_DELIMITERS=["\r","\n",'"',o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!r&&!!i.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=",",o.Parser=g,o.ParserHandle=c,o.NetworkStreamer=u,o.FileStreamer=d,o.StringStreamer=f,o.ReadableStreamStreamer=l,i.jQuery&&((t=i.jQuery).fn.parse=function(e){var r=e.config||{},n=[];return this.each(function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)n.push({file:this.files[s],inputElem:this,instanceConfig:t.extend({},r)})}),s(),this;function s(){if(0===n.length)v(e.complete)&&e.complete();else{var i,r,s,h,u=n[0];if(v(e.before)){var d=e.before(u.file,u.inputElem);if("object"==typeof d){if("abort"===d.action)return i="AbortError",r=u.file,s=u.inputElem,h=d.reason,void(v(e.error)&&e.error({name:i},r,s,h));if("skip"===d.action)return void a();"object"==typeof d.config&&(u.instanceConfig=t.extend(u.instanceConfig,d.config))}else if("skip"===d)return void a()}var f=u.instanceConfig.complete;u.instanceConfig.complete=function(e){v(f)&&f(e,u.file,u.inputElem),a()},o.parse(u.file,u.instanceConfig)}}function a(){n.splice(0,1),s()}}),n&&(i.onmessage=function(e){e=e.data,void 0===o.WORKER_ID&&e&&(o.WORKER_ID=e.workerId),"string"==typeof e.input?i.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(i.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&i.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(h.prototype)).constructor=u,(d.prototype=Object.create(h.prototype)).constructor=d,(f.prototype=Object.create(f.prototype)).constructor=f,(l.prototype=Object.create(h.prototype)).constructor=l,o}()),r.exports);const s=t({__proto__:null,default:e.getDefaultExportFromCjs(n)},[n]);exports.papaparse_min=s;
7
+ "use strict";const e=require("./Me1cXPMFZnMqu9Ni.cjs");function t(e,t){for(var i=0;i<t.length;i++){const r=t[i];if("string"!=typeof r&&!Array.isArray(r))for(const t in r)if("default"!==t&&!(t in e)){const i=Object.getOwnPropertyDescriptor(r,t);i&&Object.defineProperty(e,t,i.get?i:{enumerable:!0,get:()=>r[t]})}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var i,r={exports:{}};var n=(i||(i=1,r.exports=function e(){var t,i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i?i:{},r=!i.document&&!!i.postMessage,n=i.IS_PAPA_WORKER||!1,s={},a=0,o={};function h(e){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 t=k(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new c(t),(this._handle.streamer=this)._config=t}.call(this,e),this.parseChunk=function(e,t){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(s=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,s)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&v(this._config.beforeFirstChunk)&&void 0!==(s=this._config.beforeFirstChunk(e))&&(e=s),this.isFirstChunk=!1,this._halted=!1,r=this._partialLine+e;var s=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=s.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),s&&s.data&&(this._rowCount+=s.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,n)i.postMessage({results:s,workerId:o.WORKER_ID,finished:r});else if(v(this._config.chunk)&&!t){if(this._config.chunk(s,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=s=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(s.data),this._completeResults.errors=this._completeResults.errors.concat(s.errors),this._completeResults.meta=s.meta),this._completed||!r||!v(this._config.complete)||s&&s.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||s&&s.meta.paused||this._nextChunk(),s}this._halted=!0},this._sendError=function(e){v(this._config.error)?this._config.error(e):n&&this._config.error&&i.postMessage({workerId:o.WORKER_ID,error:e,finished:!1})}}function u(e){var t;(e=e||{}).chunkSize||(e.chunkSize=o.RemoteChunkSize),h.call(this,e),this._nextChunk=r?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),r||(t.onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!r),this._config.downloadRequestHeaders){var e,i=this._config.downloadRequestHeaders;for(e in i)t.setRequestHeader(e,i[e])}var n;this._config.chunkSize&&(n=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+n));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}r&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(e=>null!==(e=e.getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1)(t),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(new Error(e))}}function d(e){(e=e||{}).chunkSize||(e.chunkSize=o.LocalChunkSize),h.call(this,e);var t,i,r="undefined"!=typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,r?((t=new FileReader).onload=b(this._chunkLoaded,this),t.onerror=b(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,n=(this._config.chunkSize&&(n=Math.min(this._start+this._config.chunkSize,this._input.size),e=i.call(e,this._start,n)),t.readAsText(e,this._config.encoding));r||this._chunkLoaded({target:{result:n}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function f(e){var t;h.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,i;if(!this._finished)return e=this._config.chunkSize,t=e?(i=t.substring(0,e),t.substring(e)):(i=t,""),this._finished=!t,this.parseChunk(i)}}function l(e){h.call(this,e=e||{});var t=[],i=!0,r=!1;this.pause=function(){h.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){h.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){r&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=b(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=b(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=b(function(){this._streamCleanUp(),r=!0,this._streamData("")},this),this._streamCleanUp=b(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function c(e){var t,i,r,n,s=Math.pow(2,53),a=-s,h=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,u=/^((\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)))$/,d=this,f=0,l=0,c=!1,_=!1,m=[],y={data:[],errors:[],meta:{}};function b(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function E(){if(y&&r&&(C("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+o.DefaultDelimiter+"'"),r=!1),e.skipEmptyLines&&(y.data=y.data.filter(function(e){return!b(e)})),w()){if(y)if(Array.isArray(y.data[0])){for(var t=0;w()&&t<y.data.length;t++)y.data[t].forEach(d);y.data.splice(0,1)}else y.data.forEach(d);function d(t,i){v(e.transformHeader)&&(t=e.transformHeader(t,i)),m.push(t)}}function i(t,i){for(var r=e.header?{}:[],n=0;n<t.length;n++){var o=n,d=t[n];d=((t,i)=>(t=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping)))(t)?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&((e=>{if(h.test(e)&&(e=parseFloat(e),a<e&&e<s))return 1})(i)?parseFloat(i):u.test(i)?new Date(i):""===i?null:i):i)(o=e.header?n>=m.length?"__parsed_extra":m[n]:o,d=e.transform?e.transform(d,o):d),"__parsed_extra"===o?(r[o]=r[o]||[],r[o].push(d)):r[o]=d}return e.header&&(n>m.length?C("FieldMismatch","TooManyFields","Too many fields: expected "+m.length+" fields but parsed "+n,l+i):n<m.length&&C("FieldMismatch","TooFewFields","Too few fields: expected "+m.length+" fields but parsed "+n,l+i)),r}var n;y&&(e.header||e.dynamicTyping||e.transform)&&(n=1,!y.data.length||Array.isArray(y.data[0])?(y.data=y.data.map(i),n=y.data.length):y.data=i(y.data,0),e.header&&y.meta&&(y.meta.fields=m),l+=n)}function w(){return e.header&&0===m.length}function C(e,t,i,r){e={type:e,code:t,message:i},void 0!==r&&(e.row=r),y.errors.push(e)}v(e.step)&&(n=e.step,e.step=function(t){y=t,w()?E():(E(),0!==y.data.length&&(f+=t.data.length,e.preview&&f>e.preview?i.abort():(y.data=y.data[0],n(y,d))))}),this.parse=function(n,s,a){var h=e.quoteChar||'"';return e.newline||(e.newline=this.guessLineEndings(n,h)),r=!1,e.delimiter?v(e.delimiter)&&(e.delimiter=e.delimiter(n),y.meta.delimiter=e.delimiter):((h=((t,i,r,n,s)=>{var a,h,u,d;s=s||[",","\t","|",";",o.RECORD_SEP,o.UNIT_SEP];for(var f=0;f<s.length;f++){for(var l,c=s[f],p=0,_=0,m=0,y=(u=void 0,new g({comments:n,delimiter:c,newline:i,preview:10}).parse(t)),k=0;k<y.data.length;k++)r&&b(y.data[k])?m++:(_+=l=y.data[k].length,void 0===u?u=l:0<l&&(p+=Math.abs(l-u),u=l));0<y.data.length&&(_/=y.data.length-m),(void 0===h||p<=h)&&(void 0===d||d<_)&&1.99<_&&(h=p,a=c,d=_)}return{successful:!!(e.delimiter=a),bestDelimiter:a}})(n,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=h.bestDelimiter:(r=!0,e.delimiter=o.DefaultDelimiter),y.meta.delimiter=e.delimiter),h=k(e),e.preview&&e.header&&h.preview++,t=n,i=new g(h),y=i.parse(t,s,a),E(),c?{meta:{paused:!0}}:y||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=v(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){d.streamer._halted?(c=!1,d.streamer.parseChunk(t,!0)):setTimeout(d.resume,3)},this.aborted=function(){return _},this.abort=function(){_=!0,i.abort(),y.meta.aborted=!0,v(e.complete)&&e.complete(y),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576),t=new RegExp(p(t)+"([^]*?)"+p(t),"gm");var i=(e=e.replace(t,"")).split("\r");if(e=1<(t=e.split("\n")).length&&t[0].length<i[0].length,1===i.length||e)return"\n";for(var r=0,n=0;n<i.length;n++)"\n"===i[n][0]&&r++;return r>=i.length/2?"\r\n":"\r"}}function p(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function g(e){var t=(e=e||{}).delimiter,i=e.newline,r=e.comments,n=e.step,s=e.preview,a=e.fastMode,h=null,u=!1,d=null==e.quoteChar?'"':e.quoteChar,f=d;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<o.BAD_DELIMITERS.indexOf(t))&&(t=","),r===t)throw new Error("Comment character same as delimiter");!0===r?r="#":("string"!=typeof r||-1<o.BAD_DELIMITERS.indexOf(r))&&(r=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var l=0,c=!1;this.parse=function(o,g,_){if("string"!=typeof o)throw new Error("Input must be a string");var m=o.length,y=t.length,k=i.length,b=r.length,E=v(n),w=[],C=[],R=[],O=l=0;if(!o)return P();if(a||!1!==a&&-1===o.indexOf(d)){for(var S=o.split(i),x=0;x<S.length;x++){if(R=S[x],l+=R.length,x!==S.length-1)l+=i.length;else if(_)return P();if(!r||R.substring(0,b)!==r){if(E){if(w=[],F(R.split(t)),U(),c)return P()}else F(R.split(t));if(s&&s<=x)return w=w.slice(0,s),P(!0)}}return P()}for(var A=o.indexOf(t,l),I=o.indexOf(i,l),T=new RegExp(p(f)+p(d),"g"),D=o.indexOf(d,l);;)if(o[l]===d)for(D=l,l++;;){if(-1===(D=o.indexOf(d,D+1)))return _||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:w.length,index:l}),z();if(D===m-1)return z(o.substring(l,D).replace(T,d));if(d===f&&o[D+1]===f)D++;else if(d===f||0===D||o[D-1]!==f){-1!==A&&A<D+1&&(A=o.indexOf(t,D+1));var L=j(-1===(I=-1!==I&&I<D+1?o.indexOf(i,D+1):I)?A:Math.min(A,I));if(o.substr(D+1+L,y)===t){R.push(o.substring(l,D).replace(T,d)),o[l=D+1+L+y]!==d&&(D=o.indexOf(d,l)),A=o.indexOf(t,l),I=o.indexOf(i,l);break}if(L=j(I),o.substring(D+1+L,D+1+L+k)===i){if(R.push(o.substring(l,D).replace(T,d)),M(D+1+L+k),A=o.indexOf(t,l),D=o.indexOf(d,l),E&&(U(),c))return P();if(s&&w.length>=s)return P(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:w.length,index:l}),D++}}else if(r&&0===R.length&&o.substring(l,l+b)===r){if(-1===I)return P();l=I+k,I=o.indexOf(i,l),A=o.indexOf(t,l)}else if(-1!==A&&(A<I||-1===I))R.push(o.substring(l,A)),l=A+y,A=o.indexOf(t,l);else{if(-1===I)break;if(R.push(o.substring(l,I)),M(I+k),E&&(U(),c))return P();if(s&&w.length>=s)return P(!0)}return z();function F(e){w.push(e),O=l}function j(e){var t=0;return-1!==e&&(e=o.substring(D+1,e))&&""===e.trim()?e.length:t}function z(e){return _||(void 0===e&&(e=o.substring(l)),R.push(e),l=m,F(R),E&&U()),P()}function M(e){l=e,F(R),R=[],I=o.indexOf(i,l)}function P(r){if(e.header&&!g&&w.length&&!u){var n=w[0],s=Object.create(null),a=new Set(n);let t=!1;for(let i=0;i<n.length;i++){let r=n[i];if(s[r=v(e.transformHeader)?e.transformHeader(r,i):r]){let e,o=s[r];for(;e=r+"_"+o,o++,a.has(e););a.add(e),n[i]=e,s[r]++,t=!0,(h=null===h?{}:h)[e]=r}else s[r]=1,n[i]=r;a.add(r)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:w,errors:C,meta:{delimiter:t,linebreak:i,aborted:c,truncated:!!r,cursor:O+(g||0),renamedHeaders:h}}}function U(){n(P()),w=[],C=[]}},this.abort=function(){c=!0},this.getCharIndex=function(){return l}}function _(e){var t=e.data,i=s[t.workerId],r=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var n={abort:function(){r=!0,m(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:y,resume:y};if(v(i.userStep)){for(var a=0;a<t.results.data.length&&(i.userStep({data:t.results.data[a],errors:t.results.errors,meta:t.results.meta},n),!r);a++);delete t.results}else v(i.userChunk)&&(i.userChunk(t.results,n,t.file),delete t.results)}t.finished&&!r&&m(t.workerId,t.results)}function m(e,t){var i=s[e];v(i.userComplete)&&i.userComplete(t),i.terminate(),delete s[e]}function y(){throw new Error("Not implemented.")}function k(e){if("object"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=k(e[t]);return i}function b(e,t){return function(){e.apply(t,arguments)}}function v(e){return"function"==typeof e}return o.parse=function(t,r){var n=(r=r||{}).dynamicTyping||!1;if(v(n)&&(r.dynamicTypingFunction=n,n={}),r.dynamicTyping=n,r.transform=!!v(r.transform)&&r.transform,!r.worker||!o.WORKERS_SUPPORTED)return n=null,o.NODE_STREAM_INPUT,"string"==typeof t?(t=(e=>65279!==e.charCodeAt(0)?e:e.slice(1))(t),n=new(r.download?u:f)(r)):!0===t.readable&&v(t.read)&&v(t.on)?n=new l(r):(i.File&&t instanceof File||t instanceof Object)&&(n=new d(r)),n.stream(t);(n=(()=>{var t;return!!o.WORKERS_SUPPORTED&&(t=(()=>{var t=i.URL||i.webkitURL||null,r=e.toString();return o.BLOB_URL||(o.BLOB_URL=t.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; ","(",r,")();"],{type:"text/javascript"})))})(),(t=new i.Worker(t)).onmessage=_,t.id=a++,s[t.id]=t)})()).userStep=r.step,n.userChunk=r.chunk,n.userComplete=r.complete,n.userError=r.error,r.step=v(r.step),r.chunk=v(r.chunk),r.complete=v(r.complete),r.error=v(r.error),delete r.worker,n.postMessage({input:t,config:r,workerId:n.id})},o.unparse=function(e,t){var i=!1,r=!0,n=",",s="\r\n",a='"',h=a+a,u=!1,d=null,f=!1,l=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||o.BAD_DELIMITERS.filter(function(e){return-1!==t.delimiter.indexOf(e)}).length||(n=t.delimiter),"boolean"!=typeof t.quotes&&"function"!=typeof t.quotes&&!Array.isArray(t.quotes)||(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(u=t.skipEmptyLines),"string"==typeof t.newline&&(s=t.newline),"string"==typeof t.quoteChar&&(a=t.quoteChar),"boolean"==typeof t.header&&(r=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw new Error("Option columns is empty");d=t.columns}void 0!==t.escapeChar&&(h=t.escapeChar+a),t.escapeFormulae instanceof RegExp?f=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(f=/^[=+\-@\t\r].*$/)}})(),new RegExp(p(a),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return c(null,e,u);if("object"==typeof e[0])return c(d||Object.keys(e[0]),e,u)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||d),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),c(e.fields||[],e.data||[],u);throw new Error("Unable to serialize unrecognized input");function c(e,t,i){var a="",o=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),h=!Array.isArray(t[0]);if(o&&r){for(var u=0;u<e.length;u++)0<u&&(a+=n),a+=g(e[u],u);0<t.length&&(a+=s)}for(var d=0;d<t.length;d++){var f=(o?e:t[d]).length,l=!1,c=o?0===Object.keys(t[d]).length:0===t[d].length;if(i&&!o&&(l="greedy"===i?""===t[d].join("").trim():1===t[d].length&&0===t[d][0].length),"greedy"===i&&o){for(var p=[],_=0;_<f;_++){var m=h?e[_]:_;p.push(t[d][m])}l=""===p.join("").trim()}if(!l){for(var y=0;y<f;y++){0<y&&!c&&(a+=n);var k=o&&h?e[y]:y;a+=g(t[d][k],y)}d<t.length-1&&(!i||0<f&&!c)&&(a+=s)}}return a}function g(e,t){var r,s;return null==e?"":e.constructor===Date?JSON.stringify(e).slice(1,25):(s=!1,f&&"string"==typeof e&&f.test(e)&&(e="'"+e,s=!0),r=e.toString().replace(l,h),(s=s||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(r,o.BAD_DELIMITERS)||-1<r.indexOf(n)||" "===r.charAt(0)||" "===r.charAt(r.length-1))?a+r+a:r)}},o.RECORD_SEP=String.fromCharCode(30),o.UNIT_SEP=String.fromCharCode(31),o.BYTE_ORDER_MARK="\ufeff",o.BAD_DELIMITERS=["\r","\n",'"',o.BYTE_ORDER_MARK],o.WORKERS_SUPPORTED=!r&&!!i.Worker,o.NODE_STREAM_INPUT=1,o.LocalChunkSize=10485760,o.RemoteChunkSize=5242880,o.DefaultDelimiter=",",o.Parser=g,o.ParserHandle=c,o.NetworkStreamer=u,o.FileStreamer=d,o.StringStreamer=f,o.ReadableStreamStreamer=l,i.jQuery&&((t=i.jQuery).fn.parse=function(e){var r=e.config||{},n=[];return this.each(function(e){if("INPUT"!==t(this).prop("tagName").toUpperCase()||"file"!==t(this).attr("type").toLowerCase()||!i.FileReader||!this.files||0===this.files.length)return!0;for(var s=0;s<this.files.length;s++)n.push({file:this.files[s],inputElem:this,instanceConfig:t.extend({},r)})}),s(),this;function s(){if(0===n.length)v(e.complete)&&e.complete();else{var i,r,s,h,u=n[0];if(v(e.before)){var d=e.before(u.file,u.inputElem);if("object"==typeof d){if("abort"===d.action)return i="AbortError",r=u.file,s=u.inputElem,h=d.reason,void(v(e.error)&&e.error({name:i},r,s,h));if("skip"===d.action)return void a();"object"==typeof d.config&&(u.instanceConfig=t.extend(u.instanceConfig,d.config))}else if("skip"===d)return void a()}var f=u.instanceConfig.complete;u.instanceConfig.complete=function(e){v(f)&&f(e,u.file,u.inputElem),a()},o.parse(u.file,u.instanceConfig)}}function a(){n.splice(0,1),s()}}),n&&(i.onmessage=function(e){e=e.data,void 0===o.WORKER_ID&&e&&(o.WORKER_ID=e.workerId),"string"==typeof e.input?i.postMessage({workerId:o.WORKER_ID,results:o.parse(e.input,e.config),finished:!0}):(i.File&&e.input instanceof File||e.input instanceof Object)&&(e=o.parse(e.input,e.config))&&i.postMessage({workerId:o.WORKER_ID,results:e,finished:!0})}),(u.prototype=Object.create(h.prototype)).constructor=u,(d.prototype=Object.create(h.prototype)).constructor=d,(f.prototype=Object.create(f.prototype)).constructor=f,(l.prototype=Object.create(h.prototype)).constructor=l,o}()),r.exports);const s=t({__proto__:null,default:e.getDefaultExportFromCjs(n)},[n]);exports.papaparse_min=s;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CaFJIY4BbuoM7WDD.cjs");var t,n,o;(n=t||(t={})).Orientation={Column:"column",Row:"row"},n.Orientations={...n.Orientation,Both:"both"},n.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class t extends Error{constructor(e,t,n,o){super(n,o),this._label=t,this._code=e,this.details=o}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(e){return!!e&&(this._code===e._code||this._code===e.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=t;class n extends t{constructor(t,n){super(e.Code.Parse,e.Label.Parse,t,n)}static{this.code=e.Code.Parse}getDetails(){const e=this.details;return{line:e?.line??1,column:e?.column??1,offset:e?.offset??0,length:e?.length??0}}}e.Parse=n;class o extends t{constructor(t,n){super(e.Code.Null,e.Label.Null,t,n)}static{this.code=e.Code.Null}}e.Null=o;class i extends t{constructor(t,n){super(e.Code.Div0,e.Label.Div0,t,n)}static{this.code=e.Code.Div0}}e.Div0=i;class r extends t{constructor(t,n){super(e.Code.Value,e.Label.Value,t,n)}static{this.code=e.Code.Value}}e.Value=r;class a extends t{constructor(t,n){super(e.Code.Ref,e.Label.Ref,t,n)}static{this.code=e.Code.Ref}}e.Ref=a;class s extends t{constructor(t,n){super(e.Code.Name,e.Label.Name,t,n)}static{this.code=e.Code.Name}}e.Name=s;class l extends t{constructor(t,n){super(e.Code.Num,e.Label.Num,t,n)}static{this.code=e.Code.Num}}e.Num=l;class c extends t{constructor(t,n){super(e.Code.NA,e.Label.NA,t,n)}static{this.code=e.Code.NA}}e.NA=c;class d extends t{constructor(t,n){super(e.Code.GettingData,e.Label.GettingData,t,n)}static{this.code=e.Code.GettingData}}e.GettingData=d;class u extends t{constructor(t,n){super(e.Code.Spill,e.Label.Spill,t,n)}static{this.code=e.Code.Spill}}e.Spill=u;class p extends t{constructor(t,n){super(e.Code.Connect,e.Label.Connect,t,n)}static{this.code=e.Code.Connect}}e.Connect=p;class m extends t{constructor(t,n){super(e.Code.Blocked,e.Label.Blocked,t,n)}static{this.code=e.Code.Blocked}}e.Blocked=m;class y extends t{constructor(t,n){super(e.Code.Unknown,e.Label.Unknown,t,n)}static{this.code=e.Code.Unknown}}e.Unknown=y;class f extends t{constructor(t,n){super(e.Code.Field,e.Label.Field,t,n)}static{this.code=e.Code.Field}}e.Field=f;class h extends t{constructor(t,n){super(e.Code.Calc,e.Label.Calc,t,n)}static{this.code=e.Code.Calc}}e.Calc=h;class g extends t{constructor(t,n){super(e.Code.Busy,e.Label.Busy,t,n)}static{this.code=e.Code.Busy}}e.Busy=g;class w extends t{constructor(t,n){super(e.Code.Python,e.Label.Python,t,n)}static{this.code=e.Code.Python}}e.Python=w;class C extends t{constructor(t,n){super(e.Code.Timeout,e.Label.Timeout,t,n)}static{this.code=e.Code.Timeout}}e.Timeout=C})(o||(o={}));const i={};i[o.Code.Parse]=o.Parse,i[o.Code.Null]=o.Null,i[o.Code.Div0]=o.Div0,i[o.Code.Value]=o.Value,i[o.Code.Ref]=o.Ref,i[o.Code.Name]=o.Name,i[o.Code.Num]=o.Num,i[o.Code.NA]=o.NA,i[o.Code.GettingData]=o.GettingData,i[o.Code.Spill]=o.Spill,i[o.Code.Connect]=o.Connect,i[o.Code.Blocked]=o.Blocked,i[o.Code.Unknown]=o.Unknown,i[o.Code.Field]=o.Field,i[o.Code.Calc]=o.Calc,i[o.Code.Busy]=o.Busy,i[o.Code.Python]=o.Python,i[o.Code.Timeout]=o.Timeout;const r=new Map,a=new Map,s=new Map,l=new Map,c=Object.keys(i);for(let e=0;e<c.length;e++){const t=c[e],n=i[t];s.set(o.Label[t],n),l.set(o.Code[t],n);const d=new n;r.set(d.getLabel(),d),a.set(d.getCode(),d)}const d=a.get(o.Code.Unknown);var u;(u=o||(o={})).BuiltIn={Parse:new u.Parse,Null:new u.Null,Div0:new u.Div0,Value:new u.Value,Ref:new u.Ref,Name:new u.Name,Num:new u.Num,NA:new u.NA,GettingData:new u.GettingData,Spill:new u.Spill,Connect:new u.Connect,Blocked:new u.Blocked,Unknown:new u.Unknown,Field:new u.Field,Calc:new u.Calc,Busy:new u.Busy,Python:new u.Python,Timeout:new u.Timeout},u.getBuiltInByLabel=e=>r.get(e),u.newTypedError=(e,t,n)=>{let o;return o="string"==typeof e?s.get(e):l.get(e),o||(o=u.Unknown),new o(t,n)},u.getBuiltInById=e=>a.get(e)||d;let p=null,m=null;const y={compilerOptions:{target:"esnext"}};const f=async()=>"\n interface FirstTest {\n isTrue?: boolean;\n }\n",h=new Map([["IReferenceRange","r"],["IRange","l"]]),g=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),w=(e,t)=>{Array.from(t.keys()).forEach(n=>{const o=t.get(n);t.set(`${e}.${n}`,o)})},C=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),x=new Map([]),b="SheetXL";w(b,h),w(b,g),w(b,x);const T=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let k=null;async function N(){if(k)return k;try{return await(await Promise.resolve().then(()=>require("./Ch3tbUYQx16tKF7k.cjs"))).initialize()}catch(e){throw k=null,e}finally{k=null}}exports.compileModule=async function(t){const n=t?.source??null;if(!n)return null;const o=(t.disableBundle||t.declarationsOnly)??!1,i=[f(),N()],r=await Promise.all(i),a=r[0],s=r[1];let l="",c=null;const d=[],u={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},w="script",x=`${w}.ts`,b="lib.d.ts",k="global.d.ts",S={[x]:n,[b]:"\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>;\n}\n",[k]:a},E={getSourceFile:(e,t,n,o)=>s.createSourceFile(e,S[e],s.ScriptTarget.Latest,!0),fileExists:e=>void 0!==S[e],readFile:e=>S[e],writeFile:(e,t)=>{S[e]=t},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>b,getNewLine:()=>"\n"},v=s.createProgram([x,k],u,E),L=v.getTypeChecker(),D=v.getSourceFile(x),F=v.emit();F.diagnostics.length>0&&console.warn(F.diagnostics),l=S[`${w}.js`];const K=(e,t,n,o)=>{if(e){if(e.kind===s.SyntaxKind.NumberKeyword)t.scalar="n";else if(e.kind===s.SyntaxKind.StringKeyword)t.scalar="s";else if(e.kind===s.SyntaxKind.BooleanKeyword)t.scalar="b";else if(e.kind===s.SyntaxKind.UndefinedKeyword||e.kind===s.SyntaxKind.NullKeyword||e.kind===s.SyntaxKind.VoidKeyword){if(o)return void $(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));t.scalar="z"}else if(e.kind===s.SyntaxKind.BigIntKeyword)t.scalar="n";else if(e.kind===s.SyntaxKind.AnyKeyword)t.scalar="z";else if(e.kind===s.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void $(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));t.arrayDepth=(t.arrayDepth??0)+1,K(i,t,n,o)}else if(e.kind!==s.SyntaxKind.TupleType&&e.kind===s.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,r=h.get(i);let a=!1;r&&(t.range=r,a=!0);const s=C.get(i);if(s&&(t.scalar=s),void 0!==s&&(a=!0),o){const e=g.get(i);if(e)return e}else{const n=T.get(i);if(n){const o={...t,...n()};let r=0;if(o.async&&r++,o.stream&&r++,r>1)return void $(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));t=o,a=!0}}if(!a)return void $("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const l=e.typeArguments;if(l){if(1!==l.length)return void $(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));K(l[0],t,n,o)}}}else $(e,new Error(`Type is not defined for '${t?.name??"return"}'.`))},P=[],$=(e,t)=>{P.push(t)};if(s.forEachChild(D,e=>{if(n=e,0!==(s.getCombinedModifierFlags(n)&s.ModifierFlags.Export)&&s.isFunctionDeclaration(e)){const n={},o={parameters:{}},i=e?.name?.getText();try{n.name=i;const r=L.getSymbolAtLocation(e.name).getDocumentationComment(L);if(r&&r.length>0&&r[0].text){let e=r[0].text;e=e.replace(/[\r\n]+/g,"\\n").trim(),o.summary=e}const a={};K(e.type,a,n,!1),n.returnType=a;const l={};t=e,0!==(s.getCombinedModifierFlags(t)&s.ModifierFlags.Default)&&(l.default=!0,c=i),Object.keys(l).length>0&&(n.behavior=l),n.parameters=[];const u=new Map;for(let t=0;t<e.parameters.length;t++){const i=e.parameters[t],r={};r.name=i.name?.getText();const a=K(i.type,r,n,!0);if(a){if(0!==n.parameters.length){const t=e?.parent,o=t?.name?.getText();return void $(e,new Error(`'${n.name}' contexts must be the first parameter: '${o}'.`))}n.context=a;continue}let l;if((void 0!==i.initializer&&null!==i.initializer||void 0!==i.questionToken&&null!==i.questionToken)&&(r.optional=!0,i.initializer))try{l=i.initializer.kind===s.SyntaxKind.StringLiteral?i.initializer.text:i.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(i.initializer.text):i.initializer.kind===s.SyntaxKind.TrueKeyword||i.initializer.kind===s.SyntaxKind.FalseKeyword?i.initializer.kind===s.SyntaxKind.TrueKeyword:i.initializer.kind===s.SyntaxKind.NullKeyword?null:i.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||i.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?i.initializer.getText():i.initializer.getText?.()}catch(e){console.warn(`Couldn't extract default value for parameter '${r.name}'`,e)}i.dotDotDotToken&&(r.rest=!0),n.parameters.push(r);const c={description:""};o.parameters[r.name]=c;const d=L.getSymbolAtLocation(i.name).getDocumentationComment(L);d&&d.length>0&&d[0].text&&(c.description=d[0].text),void 0!==l&&(c.defaultValue=l),u.set(r.name,r)}if(e.jsDoc&&e.jsDoc.length>0){const t=e.jsDoc;for(let e=0;e<t.length;e++){const r=t[e]?.tags;if(r)for(let e=0;e<r.length;e++){const t=r[e];let a=t?.tagName?.text;if(!a)continue;a=a.toLowerCase();let l=t.comment;const c="hidden"===a;if(("string"==typeof l||c)&&("string"==typeof l&&(l=l.replace(/[\r\n]+/g,"\\n").trim()),c||!l||(l=l.split(/\\n/)[0],l&&0!==l.length))){if(l&&"string"==typeof l){const e=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let t,n=l,i=[];for(;null!==(t=e.exec(l));){const[e,n,o,i]=t,r=[o.trim()];i&&r.push(i.trim())}l=n,i.length>0&&"see"===a&&(o.links||(o.links=[]),o.links.push(...i))}if("name"===a){const e=l;e!==i&&(o.name=e)}else if("description"!==a)if("summary"===a){const e=l;e&&(o.summary=e)}else if("param"===a){const e=t.name?.text,n=u.get(e);if(!n){P.push(new Error(`Parameter '${e}' not found in function '${i}'.`));continue}if(t.typeExpression&&t.typeExpression.type)try{const e=t.typeExpression.type;if(e.kind===s.SyntaxKind.UnionType){const t=[];n.enums=t,e.types.forEach(e=>{if(e.kind===s.SyntaxKind.LiteralType){const n=e.literal.text;n&&t.push(n)}})}}catch(e){console.warn("Error parsing JSDoc type expression:",e)}}else if("returns"===a||"return"===a)n.returnType.description=l;else if("category"===a)o.category=l;else if("hidden"===a){let e=!0;const t=l?.toLowerCase();"false"===t?e=!1:"true"!==t&&(e=l),!1!==e&&(o.hidden=e??!0)}}}}}0===Object.keys(n.returnType).length&&delete n.returnType,d.push([n,o])}catch(t){$(e,new Error(`'${i}': ${t.message}`))}}var t,n}),P.length>0)throw console.warn(P),new Error("There were compilation errors.",{cause:P});if(0===d.length)throw new Error("No exported functions.");const B=`${e.$t.uuidV4()}-script`;try{o||0!==P.length||(l=await async function(e,t,n="/script.js",o="__SHEETXL"){try{const e=await async function(){if(p)return p;if(m){if(await m,!p)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return p}let e,t;m=new Promise((n,o)=>{e=n,t=o});try{const{initialize:t}=await Promise.resolve().then(()=>require("./uyHKBD07R0GGZXep.cjs"));return p=await t(),e(),p}catch(e){throw console.error("Failed to import or initialize esbuild:",e),m=null,t(e),e}}(),i="@sheetxl/primitives",r=`\n export const FormulaContext = globalThis.${o}?.FormulaContext;\n export const ScalarType = globalThis.${o}?.ScalarType;\n export const Observable = globalThis.${o}?.Observable;\n export const IRange = globalThis.${o}?.IRange;\n export const FormulaError = globalThis.${o}?.FormulaError;\n // Add more exports as needed\n `,a={name:"sheetxl-esbuild-in-memory",setup(e){const o="sheetxl-"+(new Date).getTime();e.onResolve({filter:new RegExp(`^(${n.replace("/","\\/")}|${i})$`)},e=>({path:e.path,namespace:o})),e.onResolve({filter:/.*/},e=>{if(e.namespace!==o)return console.warn(`esbuild: Treating import "${e.path}" as external.`),{path:e.path,external:!0}}),e.onLoad({filter:/.*/,namespace:o},e=>{let a;if(e.path===n)a=t;else{if(e.path!==i)return{errors:[{text:`Cannot load unknown path in ${o}: ${e.path}`}]};a=r}return{contents:a,loader:"ts"}})}},s=await e.build({entryPoints:[n],bundle:!0,write:!1,format:"esm",plugins:[a],sourcemap:"inline",tsconfigRaw:y,minify:!0,platform:"neutral"});if(s.outputFiles&&s.outputFiles.length>0)return s.outputFiles[0].text;throw s.errors&&s.errors.length>0?new Error(`esbuild bundling failed: ${s.errors.map(e=>e.text).join("\n")}`):new Error("esbuild did not produce an output file.")}catch(e){throw console.error("esbuild bundling process failed:",e),e}}(0,l,w))}catch{console.warn("Error bundling script")}const R={functions:d,commitId:B,source:n,name:"Script",language:"typescript",compiled:l};return c&&(R.autoRun=c),R};
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CtaH9jllSQmzD2AZ.cjs");var t,n,o;(n=t||(t={})).Orientation={Column:"column",Row:"row"},n.Orientations={...n.Orientation,Both:"both"},n.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class t extends Error{constructor(e,t,n,o){super(n,o),this._label=t,this._code=e,this.details=o}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(e){return!!e&&(this._code===e._code||this._code===e.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=t;class n extends t{constructor(t,n){super(e.Code.Parse,e.Label.Parse,t,n)}static{this.code=e.Code.Parse}getDetails(){const e=this.details;return{line:e?.line??1,column:e?.column??1,offset:e?.offset??0,length:e?.length??0}}}e.Parse=n;class o extends t{constructor(t,n){super(e.Code.Null,e.Label.Null,t,n)}static{this.code=e.Code.Null}}e.Null=o;class i extends t{constructor(t,n){super(e.Code.Div0,e.Label.Div0,t,n)}static{this.code=e.Code.Div0}}e.Div0=i;class r extends t{constructor(t,n){super(e.Code.Value,e.Label.Value,t,n)}static{this.code=e.Code.Value}}e.Value=r;class a extends t{constructor(t,n){super(e.Code.Ref,e.Label.Ref,t,n)}static{this.code=e.Code.Ref}}e.Ref=a;class s extends t{constructor(t,n){super(e.Code.Name,e.Label.Name,t,n)}static{this.code=e.Code.Name}}e.Name=s;class l extends t{constructor(t,n){super(e.Code.Num,e.Label.Num,t,n)}static{this.code=e.Code.Num}}e.Num=l;class c extends t{constructor(t,n){super(e.Code.NA,e.Label.NA,t,n)}static{this.code=e.Code.NA}}e.NA=c;class d extends t{constructor(t,n){super(e.Code.GettingData,e.Label.GettingData,t,n)}static{this.code=e.Code.GettingData}}e.GettingData=d;class u extends t{constructor(t,n){super(e.Code.Spill,e.Label.Spill,t,n)}static{this.code=e.Code.Spill}}e.Spill=u;class p extends t{constructor(t,n){super(e.Code.Connect,e.Label.Connect,t,n)}static{this.code=e.Code.Connect}}e.Connect=p;class m extends t{constructor(t,n){super(e.Code.Blocked,e.Label.Blocked,t,n)}static{this.code=e.Code.Blocked}}e.Blocked=m;class y extends t{constructor(t,n){super(e.Code.Unknown,e.Label.Unknown,t,n)}static{this.code=e.Code.Unknown}}e.Unknown=y;class f extends t{constructor(t,n){super(e.Code.Field,e.Label.Field,t,n)}static{this.code=e.Code.Field}}e.Field=f;class h extends t{constructor(t,n){super(e.Code.Calc,e.Label.Calc,t,n)}static{this.code=e.Code.Calc}}e.Calc=h;class g extends t{constructor(t,n){super(e.Code.Busy,e.Label.Busy,t,n)}static{this.code=e.Code.Busy}}e.Busy=g;class w extends t{constructor(t,n){super(e.Code.Python,e.Label.Python,t,n)}static{this.code=e.Code.Python}}e.Python=w;class C extends t{constructor(t,n){super(e.Code.Timeout,e.Label.Timeout,t,n)}static{this.code=e.Code.Timeout}}e.Timeout=C})(o||(o={}));const i={};i[o.Code.Parse]=o.Parse,i[o.Code.Null]=o.Null,i[o.Code.Div0]=o.Div0,i[o.Code.Value]=o.Value,i[o.Code.Ref]=o.Ref,i[o.Code.Name]=o.Name,i[o.Code.Num]=o.Num,i[o.Code.NA]=o.NA,i[o.Code.GettingData]=o.GettingData,i[o.Code.Spill]=o.Spill,i[o.Code.Connect]=o.Connect,i[o.Code.Blocked]=o.Blocked,i[o.Code.Unknown]=o.Unknown,i[o.Code.Field]=o.Field,i[o.Code.Calc]=o.Calc,i[o.Code.Busy]=o.Busy,i[o.Code.Python]=o.Python,i[o.Code.Timeout]=o.Timeout;const r=new Map,a=new Map,s=new Map,l=new Map,c=Object.keys(i);for(let e=0;e<c.length;e++){const t=c[e],n=i[t];s.set(o.Label[t],n),l.set(o.Code[t],n);const d=new n;r.set(d.getLabel(),d),a.set(d.getCode(),d)}const d=a.get(o.Code.Unknown);var u;(u=o||(o={})).BuiltIn={Parse:new u.Parse,Null:new u.Null,Div0:new u.Div0,Value:new u.Value,Ref:new u.Ref,Name:new u.Name,Num:new u.Num,NA:new u.NA,GettingData:new u.GettingData,Spill:new u.Spill,Connect:new u.Connect,Blocked:new u.Blocked,Unknown:new u.Unknown,Field:new u.Field,Calc:new u.Calc,Busy:new u.Busy,Python:new u.Python,Timeout:new u.Timeout},u.getBuiltInByLabel=e=>r.get(e),u.newTypedError=(e,t,n)=>{let o;return o="string"==typeof e?s.get(e):l.get(e),o||(o=u.Unknown),new o(t,n)},u.getBuiltInById=e=>a.get(e)||d;let p=null,m=null;const y={compilerOptions:{target:"esnext"}};const f=async()=>"\n interface FirstTest {\n isTrue?: boolean;\n }\n",h=new Map([["IReferenceRange","r"],["IRange","l"]]),g=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),w=(e,t)=>{Array.from(t.keys()).forEach(n=>{const o=t.get(n);t.set(`${e}.${n}`,o)})},C=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),x=new Map([]),b="SheetXL";w(b,h),w(b,g),w(b,x);const T=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let k=null;async function N(){if(k)return k;try{return await(await Promise.resolve().then(()=>require("./DKwnqzohEhfP9-D8.cjs"))).initialize()}catch(e){throw k=null,e}finally{k=null}}exports.compileModule=async function(t){const n=t?.source??null;if(!n)return null;const o=(t.disableBundle||t.declarationsOnly)??!1,i=[f(),N()],r=await Promise.all(i),a=r[0],s=r[1];let l="",c=null;const d=[],u={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},w="script",x=`${w}.ts`,b="lib.d.ts",k="global.d.ts",S={[x]:n,[b]:"\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>;\n}\n",[k]:a},E={getSourceFile:(e,t,n,o)=>s.createSourceFile(e,S[e],s.ScriptTarget.Latest,!0),fileExists:e=>void 0!==S[e],readFile:e=>S[e],writeFile:(e,t)=>{S[e]=t},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>b,getNewLine:()=>"\n"},v=s.createProgram([x,k],u,E),L=v.getTypeChecker(),D=v.getSourceFile(x),F=v.emit();F.diagnostics.length>0&&console.warn(F.diagnostics),l=S[`${w}.js`];const K=(e,t,n,o)=>{if(e){if(e.kind===s.SyntaxKind.NumberKeyword)t.scalar="n";else if(e.kind===s.SyntaxKind.StringKeyword)t.scalar="s";else if(e.kind===s.SyntaxKind.BooleanKeyword)t.scalar="b";else if(e.kind===s.SyntaxKind.UndefinedKeyword||e.kind===s.SyntaxKind.NullKeyword||e.kind===s.SyntaxKind.VoidKeyword){if(o)return void $(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));t.scalar="z"}else if(e.kind===s.SyntaxKind.BigIntKeyword)t.scalar="n";else if(e.kind===s.SyntaxKind.AnyKeyword)t.scalar="z";else if(e.kind===s.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void $(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));t.arrayDepth=(t.arrayDepth??0)+1,K(i,t,n,o)}else if(e.kind!==s.SyntaxKind.TupleType&&e.kind===s.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,r=h.get(i);let a=!1;r&&(t.range=r,a=!0);const s=C.get(i);if(s&&(t.scalar=s),void 0!==s&&(a=!0),o){const e=g.get(i);if(e)return e}else{const n=T.get(i);if(n){const o={...t,...n()};let r=0;if(o.async&&r++,o.stream&&r++,r>1)return void $(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));t=o,a=!0}}if(!a)return void $("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const l=e.typeArguments;if(l){if(1!==l.length)return void $(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));K(l[0],t,n,o)}}}else $(e,new Error(`Type is not defined for '${t?.name??"return"}'.`))},P=[],$=(e,t)=>{P.push(t)};if(s.forEachChild(D,e=>{if(n=e,0!==(s.getCombinedModifierFlags(n)&s.ModifierFlags.Export)&&s.isFunctionDeclaration(e)){const n={},o={parameters:{}},i=e?.name?.getText();try{n.name=i;const r=L.getSymbolAtLocation(e.name).getDocumentationComment(L);if(r&&r.length>0&&r[0].text){let e=r[0].text;e=e.replace(/[\r\n]+/g,"\\n").trim(),o.summary=e}const a={};K(e.type,a,n,!1),n.returnType=a;const l={};t=e,0!==(s.getCombinedModifierFlags(t)&s.ModifierFlags.Default)&&(l.default=!0,c=i),Object.keys(l).length>0&&(n.behavior=l),n.parameters=[];const u=new Map;for(let t=0;t<e.parameters.length;t++){const i=e.parameters[t],r={};r.name=i.name?.getText();const a=K(i.type,r,n,!0);if(a){if(0!==n.parameters.length){const t=e?.parent,o=t?.name?.getText();return void $(e,new Error(`'${n.name}' contexts must be the first parameter: '${o}'.`))}n.context=a;continue}let l;if((void 0!==i.initializer&&null!==i.initializer||void 0!==i.questionToken&&null!==i.questionToken)&&(r.optional=!0,i.initializer))try{l=i.initializer.kind===s.SyntaxKind.StringLiteral?i.initializer.text:i.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(i.initializer.text):i.initializer.kind===s.SyntaxKind.TrueKeyword||i.initializer.kind===s.SyntaxKind.FalseKeyword?i.initializer.kind===s.SyntaxKind.TrueKeyword:i.initializer.kind===s.SyntaxKind.NullKeyword?null:i.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||i.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?i.initializer.getText():i.initializer.getText?.()}catch(e){console.warn(`Couldn't extract default value for parameter '${r.name}'`,e)}i.dotDotDotToken&&(r.rest=!0),n.parameters.push(r);const c={description:""};o.parameters[r.name]=c;const d=L.getSymbolAtLocation(i.name).getDocumentationComment(L);d&&d.length>0&&d[0].text&&(c.description=d[0].text),void 0!==l&&(c.defaultValue=l),u.set(r.name,r)}if(e.jsDoc&&e.jsDoc.length>0){const t=e.jsDoc;for(let e=0;e<t.length;e++){const r=t[e]?.tags;if(r)for(let e=0;e<r.length;e++){const t=r[e];let a=t?.tagName?.text;if(!a)continue;a=a.toLowerCase();let l=t.comment;const c="hidden"===a;if(("string"==typeof l||c)&&("string"==typeof l&&(l=l.replace(/[\r\n]+/g,"\\n").trim()),c||!l||(l=l.split(/\\n/)[0],l&&0!==l.length))){if(l&&"string"==typeof l){const e=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let t,n=l,i=[];for(;null!==(t=e.exec(l));){const[e,n,o,i]=t,r=[o.trim()];i&&r.push(i.trim())}l=n,i.length>0&&"see"===a&&(o.links||(o.links=[]),o.links.push(...i))}if("name"===a){const e=l;e!==i&&(o.name=e)}else if("description"!==a)if("summary"===a){const e=l;e&&(o.summary=e)}else if("param"===a){const e=t.name?.text,n=u.get(e);if(!n){P.push(new Error(`Parameter '${e}' not found in function '${i}'.`));continue}if(t.typeExpression&&t.typeExpression.type)try{const e=t.typeExpression.type;if(e.kind===s.SyntaxKind.UnionType){const t=[];n.enums=t,e.types.forEach(e=>{if(e.kind===s.SyntaxKind.LiteralType){const n=e.literal.text;n&&t.push(n)}})}}catch(e){console.warn("Error parsing JSDoc type expression:",e)}}else if("returns"===a||"return"===a)n.returnType.description=l;else if("category"===a)o.category=l;else if("hidden"===a){let e=!0;const t=l?.toLowerCase();"false"===t?e=!1:"true"!==t&&(e=l),!1!==e&&(o.hidden=e??!0)}}}}}0===Object.keys(n.returnType).length&&delete n.returnType,d.push([n,o])}catch(t){$(e,new Error(`'${i}': ${t.message}`))}}var t,n}),P.length>0)throw console.warn(P),new Error("There were compilation errors.",{cause:P});if(0===d.length)throw new Error("No exported functions.");const B=`${e.$t.uuidV4()}-script`;try{o||0!==P.length||(l=await async function(e,t,n="/script.js",o="__SHEETXL"){try{const e=await async function(){if(p)return p;if(m){if(await m,!p)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return p}let e,t;m=new Promise((n,o)=>{e=n,t=o});try{const{initialize:t}=await Promise.resolve().then(()=>require("./Ch5W6IQIqcVy3CUV.cjs"));return p=await t(),e(),p}catch(e){throw console.error("Failed to import or initialize esbuild:",e),m=null,t(e),e}}(),i="@sheetxl/primitives",r=`\n export const FormulaContext = globalThis.${o}?.FormulaContext;\n export const ScalarType = globalThis.${o}?.ScalarType;\n export const Observable = globalThis.${o}?.Observable;\n export const IRange = globalThis.${o}?.IRange;\n export const FormulaError = globalThis.${o}?.FormulaError;\n // Add more exports as needed\n `,a={name:"sheetxl-esbuild-in-memory",setup(e){const o="sheetxl-"+(new Date).getTime();e.onResolve({filter:new RegExp(`^(${n.replace("/","\\/")}|${i})$`)},e=>({path:e.path,namespace:o})),e.onResolve({filter:/.*/},e=>{if(e.namespace!==o)return console.warn(`esbuild: Treating import "${e.path}" as external.`),{path:e.path,external:!0}}),e.onLoad({filter:/.*/,namespace:o},e=>{let a;if(e.path===n)a=t;else{if(e.path!==i)return{errors:[{text:`Cannot load unknown path in ${o}: ${e.path}`}]};a=r}return{contents:a,loader:"ts"}})}},s=await e.build({entryPoints:[n],bundle:!0,write:!1,format:"esm",plugins:[a],sourcemap:"inline",tsconfigRaw:y,minify:!0,platform:"neutral"});if(s.outputFiles&&s.outputFiles.length>0)return s.outputFiles[0].text;throw s.errors&&s.errors.length>0?new Error(`esbuild bundling failed: ${s.errors.map(e=>e.text).join("\n")}`):new Error("esbuild did not produce an output file.")}catch(e){throw console.error("esbuild bundling process failed:",e),e}}(0,l,w))}catch{console.warn("Error bundling script")}const R={functions:d,commitId:B,source:n,name:"Script",language:"typescript",compiled:l};return c&&(R.autoRun=c),R};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.12
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.