@sheetxl/studio-vanilla 0.4.20 → 0.4.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/browser/cjs/index.cjs +80 -2
  2. package/browser/cjs/{DlL3FUzHZ4HVF-yg.cjs → n6CXzSocLW_BCO8w.cjs} +6 -6
  3. package/browser/esm/{BFUWwMA9uskwVkew.mjs → NBuS53B7u8hItiXf.mjs} +933 -937
  4. package/browser/esm/index.mjs +176 -4
  5. package/cdn/assets/CY8njwo06MWkoPz2.js +21 -0
  6. package/cdn/index.js +2 -2
  7. package/cdn/loader.js +1 -1
  8. package/package.json +3 -3
  9. package/browser/cjs/B3IrGavp2xDl72qi.cjs +0 -15
  10. package/browser/cjs/B4ScrvWBCXLzvNBz.cjs +0 -145
  11. package/browser/cjs/BBNggAKHDP4QyhrD.cjs +0 -6
  12. package/browser/cjs/BC_a9wiziJZdu6Au.cjs +0 -6
  13. package/browser/cjs/BDxykI6GcXpGGGMz.cjs +0 -42
  14. package/browser/cjs/BK6DsykAfJG4V-cJ.cjs +0 -6
  15. package/browser/cjs/BKow6xaj0GHFH5-V.cjs +0 -6
  16. package/browser/cjs/BOAxaoihJZZzZXhd.cjs +0 -6
  17. package/browser/cjs/BSlU398ba-ACAG1g.cjs +0 -11
  18. package/browser/cjs/BSoRD8INLnGqOd24.cjs +0 -7
  19. package/browser/cjs/BTxfWiE-FbVvlbXz.cjs +0 -11
  20. package/browser/cjs/BdltTXLt7iZT8sku.cjs +0 -6
  21. package/browser/cjs/Bf-D_AYDbEeRcsvz.cjs +0 -6
  22. package/browser/cjs/Bhlan81dumwgyb0S.cjs +0 -6
  23. package/browser/cjs/BlJixWFmG-z3n7dN.cjs +0 -6
  24. package/browser/cjs/BndDL5HS4RNIfwOd.cjs +0 -15
  25. package/browser/cjs/Buw8XeqL6XQwxqnQ.cjs +0 -32
  26. package/browser/cjs/C04_CccTUmfnv-ln.cjs +0 -6
  27. package/browser/cjs/C4AWzM1Uh9cuE1A9.cjs +0 -6
  28. package/browser/cjs/C5TLXtw93fBnRGm7.cjs +0 -378
  29. package/browser/cjs/CKa-Z1SfYc0pkIX2.cjs +0 -6
  30. package/browser/cjs/CLiSJrUNaSxa5Mn7.cjs +0 -16
  31. package/browser/cjs/CODi1uYlZ35lFLh9.cjs +0 -6
  32. package/browser/cjs/CSM5H5PTjrTaUgKK.cjs +0 -6
  33. package/browser/cjs/CTPgM-UqKCo4_hd1.cjs +0 -6
  34. package/browser/cjs/CW5RuE4isKBlwHmQ.cjs +0 -6
  35. package/browser/cjs/CX82d7xySIGMF7yM.cjs +0 -6
  36. package/browser/cjs/CXik9BghKbVW93T0.cjs +0 -124
  37. package/browser/cjs/Ccv5NHm99sYZnKE6.cjs +0 -7
  38. package/browser/cjs/CeH0O9zPmIGKjuT9.cjs +0 -19
  39. package/browser/cjs/CeLG8vmgbEkx4oD1.cjs +0 -6
  40. package/browser/cjs/CvYl4W2vXnvHHHoI.cjs +0 -6
  41. package/browser/cjs/D2J4RLkySRIXFbsa.cjs +0 -6
  42. package/browser/cjs/D2bZuhwA7aCEA0It.cjs +0 -6
  43. package/browser/cjs/D3hV1-QRPKCq0om8.cjs +0 -6
  44. package/browser/cjs/D6WxWENDWFXA_esX.cjs +0 -6
  45. package/browser/cjs/DEiPHs81OFnGI_GL.cjs +0 -6
  46. package/browser/cjs/DHiQ_sK8f-95Ft4X.cjs +0 -12
  47. package/browser/cjs/DMpqQkdCfg2AjXjR.cjs +0 -6
  48. package/browser/cjs/DUjgS2e8jjyhZF41.cjs +0 -6
  49. package/browser/cjs/DWIR1gQMiYyoUVpN.cjs +0 -7
  50. package/browser/cjs/DawJBg8LyIArkwdU.cjs +0 -6
  51. package/browser/cjs/Dn5IBCKPuNI0ypyZ.cjs +0 -6
  52. package/browser/cjs/Dp6UwWmFehNr8oln.cjs +0 -6
  53. package/browser/cjs/Dr95ZpJD5KpADFgL.cjs +0 -6
  54. package/browser/cjs/IxfGyvVPF27qqDF3.cjs +0 -6
  55. package/browser/cjs/P7jR9JAKpf5me2pK.cjs +0 -6
  56. package/browser/cjs/QonkTPcCkOm4Mvas.cjs +0 -6
  57. package/browser/cjs/T4zy652TD1RHF35F.cjs +0 -6
  58. package/browser/cjs/d6ywgaNww4eYXcem.cjs +0 -1501
  59. package/browser/cjs/dQ_t_glP-41DsAl-.cjs +0 -6
  60. package/browser/cjs/iIOyWIrlq0JiZyZX.cjs +0 -6
  61. package/browser/cjs/jX_tynzFoHAGPZOz.cjs +0 -6
  62. package/browser/cjs/nlzloz3gqSXQwTl5.cjs +0 -13
  63. package/browser/cjs/xPUjEhL251Mb-kyD.cjs +0 -161
  64. package/browser/cjs/zreCxaXU5L2iHQ99.cjs +0 -6
  65. package/browser/esm/2vIB3gG-Ct-P7aHY.mjs +0 -24
  66. package/browser/esm/B1qmfUH_Mmjtp3JU.mjs +0 -56
  67. package/browser/esm/B4ABRWtE31zu8-wJ.mjs +0 -21
  68. package/browser/esm/B6c_mMwG96t6MlCE.mjs +0 -10
  69. package/browser/esm/B7ohU_quBXWjiBEw.mjs +0 -3934
  70. package/browser/esm/BGJaDv3Ih-M1lFCD.mjs +0 -10
  71. package/browser/esm/BJkeQi-0GTlyPsTT.mjs +0 -52369
  72. package/browser/esm/BR2yOGMlFrbNy1I_.mjs +0 -472
  73. package/browser/esm/BRzxK84abQUinUUx.mjs +0 -10
  74. package/browser/esm/BS_-p_4yMCoR9FTp.mjs +0 -10
  75. package/browser/esm/BTbBL2qySirAIMIH.mjs +0 -1346
  76. package/browser/esm/Be9tvHxvnxnHNRa4.mjs +0 -12
  77. package/browser/esm/BfiejFYnvgVrrJPI.mjs +0 -10
  78. package/browser/esm/Bj4d7nd4XMugBsBg.mjs +0 -39
  79. package/browser/esm/Bmfu8IUFzu9KyCkA.mjs +0 -10
  80. package/browser/esm/BqgjdQ15LFcefVOZ.mjs +0 -425
  81. package/browser/esm/BuX3I7e8lbon25vL.mjs +0 -1702
  82. package/browser/esm/Bz0TojPavQ5NTjyD.mjs +0 -633
  83. package/browser/esm/CA33PnXmPNl09v6w.mjs +0 -84
  84. package/browser/esm/CPchasanZLQiASse.mjs +0 -10
  85. package/browser/esm/CSDiL3gZro2_BYTj.mjs +0 -10
  86. package/browser/esm/CT_g1GDC8_vSGR0o.mjs +0 -48
  87. package/browser/esm/CVvfga1mKyvzrvCr.mjs +0 -20
  88. package/browser/esm/CXSiJ-t5xz78GMwK.mjs +0 -10
  89. package/browser/esm/CYrbG4T_bwbc4Un4.mjs +0 -390
  90. package/browser/esm/CeSDjV2b8w7KibJw.mjs +0 -1466
  91. package/browser/esm/Cjp7NabZ26PaBnIT.mjs +0 -46
  92. package/browser/esm/CmLCIveZbsUFrSOH.mjs +0 -1665
  93. package/browser/esm/CpDyqZXpstRo2buW.mjs +0 -10
  94. package/browser/esm/CpQM3xIeariuqfsN.mjs +0 -47
  95. package/browser/esm/D2L4EVLdv-YwKGoi.mjs +0 -2344
  96. package/browser/esm/D7bqIxhqlHgc3Fih.mjs +0 -10
  97. package/browser/esm/DJx6S7TOhQyWdjS5.mjs +0 -10
  98. package/browser/esm/DR85glElKOQxCdEw.mjs +0 -820
  99. package/browser/esm/DWnopZ6R26qNLVyV.mjs +0 -10
  100. package/browser/esm/DaoqFa2lhVoZvd16.mjs +0 -421
  101. package/browser/esm/DgxaqoqInkc26SCt.mjs +0 -13208
  102. package/browser/esm/Dkf0_o7D9GkUfOZy.mjs +0 -147
  103. package/browser/esm/DlASr70UXrIpKZQO.mjs +0 -2174
  104. package/browser/esm/DmXkRZFP-WnV2YT9.mjs +0 -10
  105. package/browser/esm/DsabS3TdXZB45_O2.mjs +0 -1575
  106. package/browser/esm/Dvo7tXJcgnIXR-H7.mjs +0 -5582
  107. package/browser/esm/JdOvTKCcf5acl7vA.mjs +0 -10
  108. package/browser/esm/KUyPDaQO4D8lwO7O.mjs +0 -21
  109. package/browser/esm/KWZAe-e6U7Po4gCx.mjs +0 -44
  110. package/browser/esm/Qjkn8L0WuEQToAqm.mjs +0 -41
  111. package/browser/esm/RvEM-YtFLw3OMG0V.mjs +0 -29
  112. package/browser/esm/S2TZ7C9tQtDNeeGo.mjs +0 -10
  113. package/browser/esm/VYFESZA0Jc8C13ZT.mjs +0 -10
  114. package/browser/esm/_sUvLBCLSPhV2gF6.mjs +0 -10
  115. package/browser/esm/dWGGn8a_Ez8kVjgZ.mjs +0 -10
  116. package/browser/esm/dwY5oHtoGa_ktt9_.mjs +0 -1365
  117. package/browser/esm/giu63J2gO2p8JJIf.mjs +0 -10
  118. package/browser/esm/glJJyP0v0nlhAzqM.mjs +0 -10
  119. package/browser/esm/q5jyS6wUD9X8N3dI.mjs +0 -3755
  120. package/browser/esm/xbsV0YR05atX96kb.mjs +0 -10
  121. package/cdn/assets/2vIB3gG-Ct-P7aHY.js +0 -24
  122. package/cdn/assets/9GNkN_zTAHpnP-uq.js +0 -1575
  123. package/cdn/assets/B6c_mMwG96t6MlCE.js +0 -10
  124. package/cdn/assets/BBGivbkBG9VS_rL9.js +0 -3756
  125. package/cdn/assets/BCfZ9L4sqA1AhATQ.js +0 -46
  126. package/cdn/assets/BF0szY6Cs6OTiu4J.js +0 -22
  127. package/cdn/assets/BFvB3zk5mbav2VDI.js +0 -52200
  128. package/cdn/assets/BGJaDv3Ih-M1lFCD.js +0 -10
  129. package/cdn/assets/BGQ19MuEoWb0IGOg.js +0 -425
  130. package/cdn/assets/BKAFXvz5L4pnwrYW.js +0 -41
  131. package/cdn/assets/BRzxK84abQUinUUx.js +0 -10
  132. package/cdn/assets/BS_-p_4yMCoR9FTp.js +0 -10
  133. package/cdn/assets/BTbBL2qySirAIMIH.js +0 -1346
  134. package/cdn/assets/Be9tvHxvnxnHNRa4.js +0 -12
  135. package/cdn/assets/BfiejFYnvgVrrJPI.js +0 -10
  136. package/cdn/assets/Bj6XCGohW0EagXDQ.js +0 -1702
  137. package/cdn/assets/Bmfu8IUFzu9KyCkA.js +0 -10
  138. package/cdn/assets/Bnpwlyv8i_gnevRF.js +0 -3934
  139. package/cdn/assets/BnrLDtUMM23rGXOR.js +0 -390
  140. package/cdn/assets/Bz0TojPavQ5NTjyD.js +0 -633
  141. package/cdn/assets/C-saEYaoPI4gaVAh.js +0 -820
  142. package/cdn/assets/CBG91FlGgFb_NSW3.js +0 -1466
  143. package/cdn/assets/CO9eLmNMi1heLPMx.js +0 -2177
  144. package/cdn/assets/CPchasanZLQiASse.js +0 -10
  145. package/cdn/assets/CSDiL3gZro2_BYTj.js +0 -10
  146. package/cdn/assets/CXSiJ-t5xz78GMwK.js +0 -10
  147. package/cdn/assets/Cc_7h2P328hlBcqK.js +0 -472
  148. package/cdn/assets/CmLCIveZbsUFrSOH.js +0 -1665
  149. package/cdn/assets/CpDyqZXpstRo2buW.js +0 -10
  150. package/cdn/assets/Cv2EzXYuphY8Hlz2.js +0 -23
  151. package/cdn/assets/Cz1EUITrDS2M-lu2.js +0 -2346
  152. package/cdn/assets/D7bqIxhqlHgc3Fih.js +0 -10
  153. package/cdn/assets/DDWoPuN8AcPJHNxL.js +0 -58
  154. package/cdn/assets/DJx6S7TOhQyWdjS5.js +0 -10
  155. package/cdn/assets/DU8_1yjWbaEkXcbL.js +0 -12
  156. package/cdn/assets/DWnopZ6R26qNLVyV.js +0 -10
  157. package/cdn/assets/DYE-hWYAUd_f6MX8.js +0 -46
  158. package/cdn/assets/DaoqFa2lhVoZvd16.js +0 -421
  159. package/cdn/assets/DfpCefkqWIezzC8Z.js +0 -49
  160. package/cdn/assets/DgxaqoqInkc26SCt.js +0 -13208
  161. package/cdn/assets/DmXkRZFP-WnV2YT9.js +0 -10
  162. package/cdn/assets/EN4PLLABu5llaV3T.js +0 -21
  163. package/cdn/assets/JdOvTKCcf5acl7vA.js +0 -10
  164. package/cdn/assets/KUyPDaQO4D8lwO7O.js +0 -21
  165. package/cdn/assets/LbFq2oCowUDgCX8L.js +0 -43
  166. package/cdn/assets/S2TZ7C9tQtDNeeGo.js +0 -10
  167. package/cdn/assets/SPvRfEBpgC5rbgPz.js +0 -29
  168. package/cdn/assets/SsQFeDXfmfXHyy1R.js +0 -5582
  169. package/cdn/assets/TP7wJaHcKRz3uH_W.js +0 -50
  170. package/cdn/assets/UhBzX4vQryCjy6ce.js +0 -84
  171. package/cdn/assets/VYFESZA0Jc8C13ZT.js +0 -10
  172. package/cdn/assets/_sUvLBCLSPhV2gF6.js +0 -10
  173. package/cdn/assets/dWGGn8a_Ez8kVjgZ.js +0 -10
  174. package/cdn/assets/dwY5oHtoGa_ktt9_.js +0 -1365
  175. package/cdn/assets/giu63J2gO2p8JJIf.js +0 -10
  176. package/cdn/assets/glJJyP0v0nlhAzqM.js +0 -10
  177. package/cdn/assets/nsmFGDjpeUcAO4is.js +0 -149
  178. package/cdn/assets/xbsV0YR05atX96kb.js +0 -10
@@ -1,10 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- const e = { COMPLEX: { s: "Converts real and imaginary coefficients into a complex number", p: { realNum: { d: "is the real coefficient of the complex number" }, iNum: { d: "is the imaginary coefficient of the complex number" }, suffix: { d: "is the suffix for the imaginary component of the complex number", v: "i" } } }, IMABS: { s: "Returns the absolute value (modulus) of a complex number", p: { inumber: { d: "is a complex number for which you want the absolute value" } } }, IMAGINARY: { s: "Returns the imaginary coefficient of a complex number", p: { inumber: { d: "is a complex number for which you want the imaginary coefficient" } } }, IMARGUMENT: { s: "Returns the argument q, an angle expressed in radians", p: { inumber: { d: "is a complex number for which you want the argument" } } }, IMCONJUGATE: { s: "Returns the complex conjugate of a complex number", p: { inumber: { d: "is a complex number for which you want the conjugate" } } }, IMCOS: { s: "Returns the cosine of a complex number", p: { inumber: { d: "is a complex number for which you want the cosine" } } }, IMCOSH: { s: "Returns the hyperbolic cosine of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic cosine" } } }, IMCOT: { s: "Returns the cotangent of a complex number", p: { inumber: { d: "is a complex number for which you want the cotangent" } } }, IMCSC: { s: "Returns the cosecant of a complex number", p: { inumber: { d: "is a complex number for which you want the cosecant" } } }, IMCSCH: { s: "Returns the hyperbolic cosecant of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic cosecant" } } }, IMDIV: { s: "Returns the quotient of two complex numbers", p: { inumber1: { d: "is the complex numerator or dividend" }, inumber2: { d: "is the complex denominator or divisor" } } }, IMEXP: { s: "Returns the exponential of a complex number", p: { inumber: { d: "is a complex number for which you want the exponential" } } }, IMLN: { s: "Returns the exponential of a complex number", p: { inumber: { d: "is a complex number for which you want the exponential" } } }, IMLOG10: { s: "Returns the base-10 logarithm of a complex number", p: { inumber: { d: "is a complex number for which you want the common logarithm" } } }, IMLOG2: { s: "Returns the base-2 logarithm of a complex number", p: { inumber: { d: "is a complex number for which you want the base-2 logarithm" } } }, IMPOWER: { s: "Returns the base-2 logarithm of a complex number", p: { inumber: { d: "is a complex number for which you want the base-2 logarithm" }, number: {} } }, IMPRODUCT: { s: "Returns the product of 1 to 255 complex numbers", p: { inumber: { d: "inumber1,inumber2,... Inumber1, Inumber2,... are from 1 to 255 complex numbers to multiply." } } }, IMREAL: { s: "Returns the real coefficient of a complex number", p: { inumber: { d: "is a complex number for which you want the real coefficient" } } }, IMSEC: { s: "Returns the secant of a complex number", p: { inumber: { d: "is a complex number for which you want the secant" } } }, IMSECH: { s: "Returns the hyperbolic secant of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic secant" } } }, IMSIN: { s: "Returns the sine of a complex number", p: { inumber: { d: "is a complex number for which you want the sine" } } }, IMSINH: { s: "Returns the hyperbolic sine of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic sine" } } }, IMSQRT: { s: "Returns the square root of a complex number", p: { inumber: { d: "is a complex number for which you want the square root" } } }, IMSUB: { s: "Returns the difference of two complex numbers", p: { inumber1: { d: "is the complex number from which to subtract inumber2" }, inumber2: { d: "is the complex number to subtract from inumber1" } } }, IMSUM: { s: "Returns the sum of complex numbers", p: { inumber: { d: "inumber1,inumber2,... are from 1 to 255 complex numbers to add" } } }, IMTAN: { s: "Returns the tangent of a complex number", p: { inumber: { d: "is a complex number for which you want the tangent" } } } };
8
- export {
9
- e as default
10
- };
@@ -1,425 +0,0 @@
1
- import { j as yt } from "./BFvB3zk5mbav2VDI.js";
2
- /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
4
- *
5
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
6
- * License: The license can be found at https://www.sheetxl.com/license.
7
- */
8
- var ct, pt = { exports: {} }, gt = (ct || (ct = 1, pt.exports = function Y() {
9
- var Q, k = typeof self < "u" ? self : typeof window < "u" ? window : k !== void 0 ? k : {}, P = !k.document && !!k.postMessage, B = k.IS_PAPA_WORKER || !1, J = {}, mt = 0, a = {};
10
- function K(t) {
11
- 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) {
12
- var i = at(e);
13
- i.chunkSize = parseInt(i.chunkSize), e.step || e.chunk || (i.chunkSize = null), this._handle = new ht(i), (this._handle.streamer = this)._config = i;
14
- }.call(this, t), this.parseChunk = function(e, i) {
15
- var n = parseInt(this._config.skipFirstNLines) || 0;
16
- if (this.isFirstChunk && 0 < n) {
17
- let l = this._config.newline;
18
- l || (r = this._config.quoteChar || '"', l = this._handle.guessLineEndings(e, r)), e = [...e.split(l).slice(n)].join(l);
19
- }
20
- this.isFirstChunk && _(this._config.beforeFirstChunk) && (r = this._config.beforeFirstChunk(e)) !== void 0 && (e = r), this.isFirstChunk = !1, this._halted = !1, n = this._partialLine + e;
21
- var r = (this._partialLine = "", this._handle.parse(n, this._baseIndex, !this._finished));
22
- if (!this._handle.paused() && !this._handle.aborted()) {
23
- 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, B) k.postMessage({ results: r, workerId: a.WORKER_ID, finished: n });
24
- else if (_(this._config.chunk) && !i) {
25
- if (this._config.chunk(r, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
26
- this._completeResults = r = void 0;
27
- }
28
- 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;
29
- }
30
- this._halted = !0;
31
- }, this._sendError = function(e) {
32
- _(this._config.error) ? this._config.error(e) : B && this._config.error && k.postMessage({ workerId: a.WORKER_ID, error: e, finished: !1 });
33
- };
34
- }
35
- function it(t) {
36
- var e;
37
- (t = t || {}).chunkSize || (t.chunkSize = a.RemoteChunkSize), K.call(this, t), this._nextChunk = P ? function() {
38
- this._readChunk(), this._chunkLoaded();
39
- } : function() {
40
- this._readChunk();
41
- }, this.stream = function(i) {
42
- this._input = i, this._nextChunk();
43
- }, this._readChunk = function() {
44
- if (this._finished) this._chunkLoaded();
45
- else {
46
- if (e = new XMLHttpRequest(), this._config.withCredentials && (e.withCredentials = this._config.withCredentials), P || (e.onload = $(this._chunkLoaded, this), e.onerror = $(this._chunkError, this)), e.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !P), this._config.downloadRequestHeaders) {
47
- var i, n = this._config.downloadRequestHeaders;
48
- for (i in n) e.setRequestHeader(i, n[i]);
49
- }
50
- var r;
51
- this._config.chunkSize && (r = this._start + this._config.chunkSize - 1, e.setRequestHeader("Range", "bytes=" + this._start + "-" + r));
52
- try {
53
- e.send(this._config.downloadRequestBody);
54
- } catch (l) {
55
- this._chunkError(l.message);
56
- }
57
- P && e.status === 0 && this._chunkError();
58
- }
59
- }, this._chunkLoaded = function() {
60
- var i;
61
- 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 = e).getResponseHeader("Content-Range")) !== null ? parseInt(i.substring(i.lastIndexOf("/") + 1)) : -1), this.parseChunk(e.responseText)));
62
- }, this._chunkError = function(i) {
63
- i = e.statusText || i, this._sendError(new Error(i));
64
- };
65
- }
66
- function rt(t) {
67
- (t = t || {}).chunkSize || (t.chunkSize = a.LocalChunkSize), K.call(this, t);
68
- var e, i, n = typeof FileReader < "u";
69
- this.stream = function(r) {
70
- this._input = r, i = r.slice || r.webkitSlice || r.mozSlice, n ? ((e = new FileReader()).onload = $(this._chunkLoaded, this), e.onerror = $(this._chunkError, this)) : e = new FileReaderSync(), this._nextChunk();
71
- }, this._nextChunk = function() {
72
- this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
73
- }, this._readChunk = function() {
74
- var r = this._input, l = (this._config.chunkSize && (l = Math.min(this._start + this._config.chunkSize, this._input.size), r = i.call(r, this._start, l)), e.readAsText(r, this._config.encoding));
75
- n || this._chunkLoaded({ target: { result: l } });
76
- }, this._chunkLoaded = function(r) {
77
- this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(r.target.result);
78
- }, this._chunkError = function() {
79
- this._sendError(e.error);
80
- };
81
- }
82
- function X(t) {
83
- var e;
84
- K.call(this, t = t || {}), this.stream = function(i) {
85
- return e = i, this._nextChunk();
86
- }, this._nextChunk = function() {
87
- var i, n;
88
- 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);
89
- };
90
- }
91
- function nt(t) {
92
- K.call(this, t = t || {});
93
- var e = [], i = !0, n = !1;
94
- this.pause = function() {
95
- K.prototype.pause.apply(this, arguments), this._input.pause();
96
- }, this.resume = function() {
97
- K.prototype.resume.apply(this, arguments), this._input.resume();
98
- }, this.stream = function(r) {
99
- this._input = r, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
100
- }, this._checkIsFinished = function() {
101
- n && e.length === 1 && (this._finished = !0);
102
- }, this._nextChunk = function() {
103
- this._checkIsFinished(), e.length ? this.parseChunk(e.shift()) : i = !0;
104
- }, this._streamData = $(function(r) {
105
- try {
106
- e.push(typeof r == "string" ? r : r.toString(this._config.encoding)), i && (i = !1, this._checkIsFinished(), this.parseChunk(e.shift()));
107
- } catch (l) {
108
- this._streamError(l);
109
- }
110
- }, this), this._streamError = $(function(r) {
111
- this._streamCleanUp(), this._sendError(r);
112
- }, this), this._streamEnd = $(function() {
113
- this._streamCleanUp(), n = !0, this._streamData("");
114
- }, this), this._streamCleanUp = $(function() {
115
- this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
116
- }, this);
117
- }
118
- function ht(t) {
119
- var e, i, n, r, l = Math.pow(2, 53), v = -l, z = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, w = /^((\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)))$/, m = this, T = 0, o = 0, j = !1, u = !1, p = [], s = { data: [], errors: [], meta: {} };
120
- function C(h) {
121
- return t.skipEmptyLines === "greedy" ? h.join("").trim() === "" : h.length === 1 && h[0].length === 0;
122
- }
123
- function R() {
124
- if (s && n && (M("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + a.DefaultDelimiter + "'"), n = !1), t.skipEmptyLines && (s.data = s.data.filter(function(f) {
125
- return !C(f);
126
- })), L()) {
127
- let f = function(O, A) {
128
- _(t.transformHeader) && (O = t.transformHeader(O, A)), p.push(O);
129
- };
130
- if (s) if (Array.isArray(s.data[0])) {
131
- for (var h = 0; L() && h < s.data.length; h++) s.data[h].forEach(f);
132
- s.data.splice(0, 1);
133
- } else s.data.forEach(f);
134
- }
135
- function c(f, O) {
136
- for (var A = t.header ? {} : [], b = 0; b < f.length; b++) {
137
- var y = b, g = f[b];
138
- g = ((U, d) => {
139
- return S = U, t.dynamicTypingFunction && t.dynamicTyping[S] === void 0 && (t.dynamicTyping[S] = t.dynamicTypingFunction(S)), (t.dynamicTyping[S] || t.dynamicTyping) === !0 ? d === "true" || d === "TRUE" || d !== "false" && d !== "FALSE" && (((I) => {
140
- if (z.test(I) && (I = parseFloat(I), v < I && I < l)) return 1;
141
- })(d) ? parseFloat(d) : w.test(d) ? new Date(d) : d === "" ? null : d) : d;
142
- var S;
143
- })(y = t.header ? b >= p.length ? "__parsed_extra" : p[b] : y, g = t.transform ? t.transform(g, y) : g), y === "__parsed_extra" ? (A[y] = A[y] || [], A[y].push(g)) : A[y] = g;
144
- }
145
- return t.header && (b > p.length ? M("FieldMismatch", "TooManyFields", "Too many fields: expected " + p.length + " fields but parsed " + b, o + O) : b < p.length && M("FieldMismatch", "TooFewFields", "Too few fields: expected " + p.length + " fields but parsed " + b, o + O)), A;
146
- }
147
- var E;
148
- s && (t.header || t.dynamicTyping || t.transform) && (E = 1, !s.data.length || Array.isArray(s.data[0]) ? (s.data = s.data.map(c), E = s.data.length) : s.data = c(s.data, 0), t.header && s.meta && (s.meta.fields = p), o += E);
149
- }
150
- function L() {
151
- return t.header && p.length === 0;
152
- }
153
- function M(h, c, E, f) {
154
- h = { type: h, code: c, message: E }, f !== void 0 && (h.row = f), s.errors.push(h);
155
- }
156
- _(t.step) && (r = t.step, t.step = function(h) {
157
- s = h, L() ? R() : (R(), s.data.length !== 0 && (T += h.data.length, t.preview && T > t.preview ? i.abort() : (s.data = s.data[0], r(s, m))));
158
- }), this.parse = function(h, c, E) {
159
- var f = t.quoteChar || '"';
160
- return t.newline || (t.newline = this.guessLineEndings(h, f)), n = !1, t.delimiter ? _(t.delimiter) && (t.delimiter = t.delimiter(h), s.meta.delimiter = t.delimiter) : ((f = ((O, A, b, y, g) => {
161
- var U, d, S, I;
162
- g = g || [",", " ", "|", ";", a.RECORD_SEP, a.UNIT_SEP];
163
- for (var Z = 0; Z < g.length; Z++) {
164
- for (var W, tt = g[Z], F = 0, q = 0, x = 0, D = (S = void 0, new st({ comments: y, delimiter: tt, newline: A, preview: 10 }).parse(O)), H = 0; H < D.data.length; H++) b && C(D.data[H]) ? x++ : (q += W = D.data[H].length, S === void 0 ? S = W : 0 < W && (F += Math.abs(W - S), S = W));
165
- 0 < D.data.length && (q /= D.data.length - x), (d === void 0 || F <= d) && (I === void 0 || I < q) && 1.99 < q && (d = F, U = tt, I = q);
166
- }
167
- return { successful: !!(t.delimiter = U), bestDelimiter: U };
168
- })(h, t.newline, t.skipEmptyLines, t.comments, t.delimitersToGuess)).successful ? t.delimiter = f.bestDelimiter : (n = !0, t.delimiter = a.DefaultDelimiter), s.meta.delimiter = t.delimiter), f = at(t), t.preview && t.header && f.preview++, e = h, i = new st(f), s = i.parse(e, c, E), R(), j ? { meta: { paused: !0 } } : s || { meta: { paused: !1 } };
169
- }, this.paused = function() {
170
- return j;
171
- }, this.pause = function() {
172
- j = !0, i.abort(), e = _(t.chunk) ? "" : e.substring(i.getCharIndex());
173
- }, this.resume = function() {
174
- m.streamer._halted ? (j = !1, m.streamer.parseChunk(e, !0)) : setTimeout(m.resume, 3);
175
- }, this.aborted = function() {
176
- return u;
177
- }, this.abort = function() {
178
- u = !0, i.abort(), s.meta.aborted = !0, _(t.complete) && t.complete(s), e = "";
179
- }, this.guessLineEndings = function(h, c) {
180
- h = h.substring(0, 1048576), c = new RegExp(V(c) + "([^]*?)" + V(c), "gm");
181
- var E = (h = h.replace(c, "")).split("\r");
182
- if (h = 1 < (c = h.split(`
183
- `)).length && c[0].length < E[0].length, E.length === 1 || h) return `
184
- `;
185
- for (var f = 0, O = 0; O < E.length; O++) E[O][0] === `
186
- ` && f++;
187
- return f >= E.length / 2 ? `\r
188
- ` : "\r";
189
- };
190
- }
191
- function V(t) {
192
- return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
193
- }
194
- function st(t) {
195
- var e = (t = t || {}).delimiter, i = t.newline, n = t.comments, r = t.step, l = t.preview, v = t.fastMode, z = null, w = !1, m = t.quoteChar == null ? '"' : t.quoteChar, T = m;
196
- if (t.escapeChar !== void 0 && (T = t.escapeChar), (typeof e != "string" || -1 < a.BAD_DELIMITERS.indexOf(e)) && (e = ","), n === e) throw new Error("Comment character same as delimiter");
197
- n === !0 ? n = "#" : (typeof n != "string" || -1 < a.BAD_DELIMITERS.indexOf(n)) && (n = !1), i !== `
198
- ` && i !== "\r" && i !== `\r
199
- ` && (i = `
200
- `);
201
- var o = 0, j = !1;
202
- this.parse = function(u, p, s) {
203
- if (typeof u != "string") throw new Error("Input must be a string");
204
- var C = u.length, R = e.length, L = i.length, M = n.length, h = _(r), c = [], E = [], f = [], O = o = 0;
205
- if (!u) return F();
206
- if (v || v !== !1 && u.indexOf(m) === -1) {
207
- for (var A = u.split(i), b = 0; b < A.length; b++) {
208
- if (f = A[b], o += f.length, b !== A.length - 1) o += i.length;
209
- else if (s) return F();
210
- if (!n || f.substring(0, M) !== n) {
211
- if (h) {
212
- if (c = [], I(f.split(e)), q(), j) return F();
213
- } else I(f.split(e));
214
- if (l && l <= b) return c = c.slice(0, l), F(!0);
215
- }
216
- }
217
- return F();
218
- }
219
- for (var y = u.indexOf(e, o), g = u.indexOf(i, o), U = new RegExp(V(T) + V(m), "g"), d = u.indexOf(m, o); ; ) if (u[o] === m) for (d = o, o++; ; ) {
220
- if ((d = u.indexOf(m, d + 1)) === -1) return s || E.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: c.length, index: o }), W();
221
- if (d === C - 1) return W(u.substring(o, d).replace(U, m));
222
- if (m === T && u[d + 1] === T) d++;
223
- else if (m === T || d === 0 || u[d - 1] !== T) {
224
- y !== -1 && y < d + 1 && (y = u.indexOf(e, d + 1));
225
- var S = Z((g = g !== -1 && g < d + 1 ? u.indexOf(i, d + 1) : g) === -1 ? y : Math.min(y, g));
226
- if (u.substr(d + 1 + S, R) === e) {
227
- f.push(u.substring(o, d).replace(U, m)), u[o = d + 1 + S + R] !== m && (d = u.indexOf(m, o)), y = u.indexOf(e, o), g = u.indexOf(i, o);
228
- break;
229
- }
230
- if (S = Z(g), u.substring(d + 1 + S, d + 1 + S + L) === i) {
231
- if (f.push(u.substring(o, d).replace(U, m)), tt(d + 1 + S + L), y = u.indexOf(e, o), d = u.indexOf(m, o), h && (q(), j)) return F();
232
- if (l && c.length >= l) return F(!0);
233
- break;
234
- }
235
- E.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: c.length, index: o }), d++;
236
- }
237
- }
238
- else if (n && f.length === 0 && u.substring(o, o + M) === n) {
239
- if (g === -1) return F();
240
- o = g + L, g = u.indexOf(i, o), y = u.indexOf(e, o);
241
- } else if (y !== -1 && (y < g || g === -1)) f.push(u.substring(o, y)), o = y + R, y = u.indexOf(e, o);
242
- else {
243
- if (g === -1) break;
244
- if (f.push(u.substring(o, g)), tt(g + L), h && (q(), j)) return F();
245
- if (l && c.length >= l) return F(!0);
246
- }
247
- return W();
248
- function I(x) {
249
- c.push(x), O = o;
250
- }
251
- function Z(x) {
252
- return x !== -1 && (x = u.substring(d + 1, x)) && x.trim() === "" ? x.length : 0;
253
- }
254
- function W(x) {
255
- return s || (x === void 0 && (x = u.substring(o)), f.push(x), o = C, I(f), h && q()), F();
256
- }
257
- function tt(x) {
258
- o = x, I(f), f = [], g = u.indexOf(i, o);
259
- }
260
- function F(x) {
261
- if (t.header && !p && c.length && !w) {
262
- var D = c[0], H = /* @__PURE__ */ Object.create(null), ot = new Set(D);
263
- let ft = !1;
264
- for (let G = 0; G < D.length; G++) {
265
- let N = D[G];
266
- if (H[N = _(t.transformHeader) ? t.transformHeader(N, G) : N]) {
267
- let et, lt = H[N];
268
- for (; et = N + "_" + lt, lt++, ot.has(et); ) ;
269
- ot.add(et), D[G] = et, H[N]++, ft = !0, (z = z === null ? {} : z)[et] = N;
270
- } else H[N] = 1, D[G] = N;
271
- ot.add(N);
272
- }
273
- ft && console.warn("Duplicate headers found and renamed."), w = !0;
274
- }
275
- return { data: c, errors: E, meta: { delimiter: e, linebreak: i, aborted: j, truncated: !!x, cursor: O + (p || 0), renamedHeaders: z } };
276
- }
277
- function q() {
278
- r(F()), c = [], E = [];
279
- }
280
- }, this.abort = function() {
281
- j = !0;
282
- }, this.getCharIndex = function() {
283
- return o;
284
- };
285
- }
286
- function _t(t) {
287
- var e = t.data, i = J[e.workerId], n = !1;
288
- if (e.error) i.userError(e.error, e.file);
289
- else if (e.results && e.results.data) {
290
- var r = { abort: function() {
291
- n = !0, ut(e.workerId, { data: [], errors: [], meta: { aborted: !0 } });
292
- }, pause: dt, resume: dt };
293
- if (_(i.userStep)) {
294
- for (var l = 0; l < e.results.data.length && (i.userStep({ data: e.results.data[l], errors: e.results.errors, meta: e.results.meta }, r), !n); l++) ;
295
- delete e.results;
296
- } else _(i.userChunk) && (i.userChunk(e.results, r, e.file), delete e.results);
297
- }
298
- e.finished && !n && ut(e.workerId, e.results);
299
- }
300
- function ut(t, e) {
301
- var i = J[t];
302
- _(i.userComplete) && i.userComplete(e), i.terminate(), delete J[t];
303
- }
304
- function dt() {
305
- throw new Error("Not implemented.");
306
- }
307
- function at(t) {
308
- if (typeof t != "object" || t === null) return t;
309
- var e, i = Array.isArray(t) ? [] : {};
310
- for (e in t) i[e] = at(t[e]);
311
- return i;
312
- }
313
- function $(t, e) {
314
- return function() {
315
- t.apply(e, arguments);
316
- };
317
- }
318
- function _(t) {
319
- return typeof t == "function";
320
- }
321
- return a.parse = function(t, e) {
322
- var i, n = (e = e || {}).dynamicTyping || !1;
323
- if (_(n) && (e.dynamicTypingFunction = n, n = {}), e.dynamicTyping = n, e.transform = !!_(e.transform) && e.transform, !e.worker || !a.WORKERS_SUPPORTED) return n = null, a.NODE_STREAM_INPUT, typeof t == "string" ? (t = (i = t).charCodeAt(0) !== 65279 ? i : i.slice(1), n = new (e.download ? it : X)(e)) : t.readable === !0 && _(t.read) && _(t.on) ? n = new nt(e) : (k.File && t instanceof File || t instanceof Object) && (n = new rt(e)), n.stream(t);
324
- (n = (() => {
325
- var r, l, v;
326
- return !!a.WORKERS_SUPPORTED && (l = k.URL || k.webkitURL || null, v = Y.toString(), r = a.BLOB_URL || (a.BLOB_URL = l.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; ", "(", v, ")();"], { type: "text/javascript" }))), (r = new k.Worker(r)).onmessage = _t, r.id = mt++, J[r.id] = r);
327
- })()).userStep = e.step, n.userChunk = e.chunk, n.userComplete = e.complete, n.userError = e.error, e.step = _(e.step), e.chunk = _(e.chunk), e.complete = _(e.complete), e.error = _(e.error), delete e.worker, n.postMessage({ input: t, config: e, workerId: n.id });
328
- }, a.unparse = function(t, e) {
329
- var i = !1, n = !0, r = ",", l = `\r
330
- `, v = '"', z = v + v, w = !1, m = null, T = !1, o = ((() => {
331
- if (typeof e == "object") {
332
- if (typeof e.delimiter != "string" || a.BAD_DELIMITERS.filter(function(p) {
333
- return e.delimiter.indexOf(p) !== -1;
334
- }).length || (r = e.delimiter), typeof e.quotes != "boolean" && typeof e.quotes != "function" && !Array.isArray(e.quotes) || (i = e.quotes), typeof e.skipEmptyLines != "boolean" && typeof e.skipEmptyLines != "string" || (w = e.skipEmptyLines), typeof e.newline == "string" && (l = e.newline), typeof e.quoteChar == "string" && (v = e.quoteChar), typeof e.header == "boolean" && (n = e.header), Array.isArray(e.columns)) {
335
- if (e.columns.length === 0) throw new Error("Option columns is empty");
336
- m = e.columns;
337
- }
338
- e.escapeChar !== void 0 && (z = e.escapeChar + v), e.escapeFormulae instanceof RegExp ? T = e.escapeFormulae : typeof e.escapeFormulae == "boolean" && e.escapeFormulae && (T = /^[=+\-@\t\r].*$/);
339
- }
340
- })(), new RegExp(V(v), "g"));
341
- if (typeof t == "string" && (t = JSON.parse(t)), Array.isArray(t)) {
342
- if (!t.length || Array.isArray(t[0])) return j(null, t, w);
343
- if (typeof t[0] == "object") return j(m || Object.keys(t[0]), t, w);
344
- } else if (typeof t == "object") return typeof t.data == "string" && (t.data = JSON.parse(t.data)), Array.isArray(t.data) && (t.fields || (t.fields = t.meta && t.meta.fields || m), t.fields || (t.fields = Array.isArray(t.data[0]) ? t.fields : typeof t.data[0] == "object" ? Object.keys(t.data[0]) : []), Array.isArray(t.data[0]) || typeof t.data[0] == "object" || (t.data = [t.data])), j(t.fields || [], t.data || [], w);
345
- throw new Error("Unable to serialize unrecognized input");
346
- function j(p, s, C) {
347
- var R = "", L = (typeof p == "string" && (p = JSON.parse(p)), typeof s == "string" && (s = JSON.parse(s)), Array.isArray(p) && 0 < p.length), M = !Array.isArray(s[0]);
348
- if (L && n) {
349
- for (var h = 0; h < p.length; h++) 0 < h && (R += r), R += u(p[h], h);
350
- 0 < s.length && (R += l);
351
- }
352
- for (var c = 0; c < s.length; c++) {
353
- var E = (L ? p : s[c]).length, f = !1, O = L ? Object.keys(s[c]).length === 0 : s[c].length === 0;
354
- if (C && !L && (f = C === "greedy" ? s[c].join("").trim() === "" : s[c].length === 1 && s[c][0].length === 0), C === "greedy" && L) {
355
- for (var A = [], b = 0; b < E; b++) {
356
- var y = M ? p[b] : b;
357
- A.push(s[c][y]);
358
- }
359
- f = A.join("").trim() === "";
360
- }
361
- if (!f) {
362
- for (var g = 0; g < E; g++) {
363
- 0 < g && !O && (R += r);
364
- var U = L && M ? p[g] : g;
365
- R += u(s[c][U], g);
366
- }
367
- c < s.length - 1 && (!C || 0 < E && !O) && (R += l);
368
- }
369
- }
370
- return R;
371
- }
372
- function u(p, s) {
373
- var C, R;
374
- return p == null ? "" : p.constructor === Date ? JSON.stringify(p).slice(1, 25) : (R = !1, T && typeof p == "string" && T.test(p) && (p = "'" + p, R = !0), C = p.toString().replace(o, z), (R = R || i === !0 || typeof i == "function" && i(p, s) || Array.isArray(i) && i[s] || ((L, M) => {
375
- for (var h = 0; h < M.length; h++) if (-1 < L.indexOf(M[h])) return !0;
376
- return !1;
377
- })(C, a.BAD_DELIMITERS) || -1 < C.indexOf(r) || C.charAt(0) === " " || C.charAt(C.length - 1) === " ") ? v + C + v : C);
378
- }
379
- }, a.RECORD_SEP = "", a.UNIT_SEP = "", a.BYTE_ORDER_MARK = "\uFEFF", a.BAD_DELIMITERS = ["\r", `
380
- `, '"', a.BYTE_ORDER_MARK], a.WORKERS_SUPPORTED = !P && !!k.Worker, a.NODE_STREAM_INPUT = 1, a.LocalChunkSize = 10485760, a.RemoteChunkSize = 5242880, a.DefaultDelimiter = ",", a.Parser = st, a.ParserHandle = ht, a.NetworkStreamer = it, a.FileStreamer = rt, a.StringStreamer = X, a.ReadableStreamStreamer = nt, k.jQuery && ((Q = k.jQuery).fn.parse = function(t) {
381
- var e = t.config || {}, i = [];
382
- return this.each(function(l) {
383
- if (Q(this).prop("tagName").toUpperCase() !== "INPUT" || Q(this).attr("type").toLowerCase() !== "file" || !k.FileReader || !this.files || this.files.length === 0) return !0;
384
- for (var v = 0; v < this.files.length; v++) i.push({ file: this.files[v], inputElem: this, instanceConfig: Q.extend({}, e) });
385
- }), n(), this;
386
- function n() {
387
- if (i.length === 0) _(t.complete) && t.complete();
388
- else {
389
- var l, v, z, w = i[0];
390
- if (_(t.before)) {
391
- var m = t.before(w.file, w.inputElem);
392
- if (typeof m == "object") {
393
- if (m.action === "abort") return l = w.file, v = w.inputElem, z = m.reason, void (_(t.error) && t.error({ name: "AbortError" }, l, v, z));
394
- if (m.action === "skip") return void r();
395
- typeof m.config == "object" && (w.instanceConfig = Q.extend(w.instanceConfig, m.config));
396
- } else if (m === "skip") return void r();
397
- }
398
- var T = w.instanceConfig.complete;
399
- w.instanceConfig.complete = function(o) {
400
- _(T) && T(o, w.file, w.inputElem), r();
401
- }, a.parse(w.file, w.instanceConfig);
402
- }
403
- }
404
- function r() {
405
- i.splice(0, 1), n();
406
- }
407
- }), B && (k.onmessage = function(t) {
408
- t = t.data, a.WORKER_ID === void 0 && t && (a.WORKER_ID = t.workerId), typeof t.input == "string" ? k.postMessage({ workerId: a.WORKER_ID, results: a.parse(t.input, t.config), finished: !0 }) : (k.File && t.input instanceof File || t.input instanceof Object) && (t = a.parse(t.input, t.config)) && k.postMessage({ workerId: a.WORKER_ID, results: t, finished: !0 });
409
- }), (it.prototype = Object.create(K.prototype)).constructor = it, (rt.prototype = Object.create(K.prototype)).constructor = rt, (X.prototype = Object.create(X.prototype)).constructor = X, (nt.prototype = Object.create(K.prototype)).constructor = nt, a;
410
- }()), pt.exports);
411
- const bt = function(Y, Q) {
412
- for (var k = 0; k < Q.length; k++) {
413
- const P = Q[k];
414
- if (typeof P != "string" && !Array.isArray(P)) {
415
- for (const B in P) if (B !== "default" && !(B in Y)) {
416
- const J = Object.getOwnPropertyDescriptor(P, B);
417
- J && Object.defineProperty(Y, B, J.get ? J : { enumerable: !0, get: () => P[B] });
418
- }
419
- }
420
- }
421
- return Object.freeze(Object.defineProperty(Y, Symbol.toStringTag, { value: "Module" }));
422
- }({ __proto__: null, default: yt(gt) }, [gt]);
423
- export {
424
- bt as p
425
- };
@@ -1,41 +0,0 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { memo as z, forwardRef as E, useState as s } from "react";
3
- import { T as t, m as K, $ as R, h as W, i as q, l as A, p as x, s as G, t as y } from "./BFvB3zk5mbav2VDI.js";
4
- /**
5
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
6
- *
7
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
8
- * License: The license can be found at https://www.sheetxl.com/license.
9
- */
10
- const J = ["Input"], Y = z(E((w, T) => {
11
- const { initialValue: F = "", onOption: I, onValidateOption: r, onInputOption: l, onValidateInputOption: p, onDone: u, inputProps: c, inputLabel: P, inputType: v, inputPlaceHolder: C, options: d = J, autoFocusSel: b = ".autoFocus", cancelOption: m, defaultOption: g = d?.[0], ...k } = w, [V, D] = s(!1), [o, S] = s(F), [$, B] = s(""), [H, L] = s(!0), e = t(async (a, n) => {
12
- if (!p) return !0;
13
- const h = await p?.(a, n);
14
- B(h?.message ?? "");
15
- const O = h?.valid ?? !0;
16
- return L(O), O;
17
- }, [p]), f = t(async (a) => {
18
- l?.(o, a);
19
- }, [o, l, u, I, m, g]), M = t(async (a) => {
20
- a.keyCode === K.Enter && await e?.(o, null);
21
- }, [o, f]), N = t((a) => {
22
- S(a.target.value), e?.(a.target.value, null);
23
- }, [r]), j = t(async (a) => {
24
- let n = await e(o, a);
25
- try {
26
- n !== !1 && (n = await e(o, a));
27
- } catch {
28
- }
29
- return n ?? !0;
30
- }, [o, r]);
31
- return i(R, { options: d, onDone: u, onOption: (a, n) => {
32
- n || f(a);
33
- }, onValidateOption: j, cancelOption: m, defaultOption: g, autoFocusSel: b, ref: T, ...k, children: i(W, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i(q, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i(A, { onFocus: (a) => {
34
- V || a.target?.select(), D(!0);
35
- }, type: v, label: P, helperText: $ || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: H ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: C, spellCheck: !1, autoComplete: "off", ...c, className: G("autoFocus", c?.className), sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${x("#fff", y(5))}, ${x("#fff", y(5))})` } } }, value: o, onChange: N, onKeyDown: M, onContextMenu: (a) => {
36
- a.stopPropagation();
37
- } }) }) }) });
38
- }));
39
- export {
40
- Y as default
41
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- const e = { DAVERAGE: { s: "Averages the values in a column in a list or database that match conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DCOUNT: { s: "Counts the cells containing numbers in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DCOUNTA: { s: "Counts nonblank cells in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DGET: { s: "Extracts from a database a single record that matches the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DMAX: { s: "Returns the largest number in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DMIN: { s: "Returns the smallest number in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DPRODUCT: { s: "Multiplies the values in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DSTDEV: { s: "Estimates the standard deviation based on a sample from selected database entries", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DSTDEVP: { s: "Calculates the standard deviation based on the entire population of selected database entries", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DSUM: { s: "Adds the numbers in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DVAR: { s: "Estimates variance based on a sample from selected database entries", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DVARP: { s: "Calculates variance based on the entire population of selected database entries", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" } };
8
- export {
9
- e as default
10
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.20
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- const t = { FILTERXML: { s: "Returns specific data from XML content using the specified XPath.", p: { xml: { d: "is a string in valid XML format." }, xpath: { d: "is a string in standard XPath format." } } } };
8
- export {
9
- t as default
10
- };