@sheetxl/studio-vanilla 0.4.19 → 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/{BJIfDlGWvnC0eGUi.cjs → n6CXzSocLW_BCO8w.cjs} +6 -6
  3. package/browser/esm/{DiGLoJDZqriVp152.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/1FbLU-GkjsXMtg8T.cjs +0 -15
  10. package/browser/cjs/3xnum9EEG0qokR90.cjs +0 -12
  11. package/browser/cjs/5i4FVjROedZEnZNH.cjs +0 -6
  12. package/browser/cjs/9yZt9CqVSMBE7LUX.cjs +0 -6
  13. package/browser/cjs/B7V2ifI29G13Ypfn.cjs +0 -378
  14. package/browser/cjs/BCBl10fgrkZ5JX8E.cjs +0 -161
  15. package/browser/cjs/BCVApYTYfHlRzbCn.cjs +0 -6
  16. package/browser/cjs/BjW-ykzXN9S3TMzb.cjs +0 -11
  17. package/browser/cjs/Bn5tlfH0oqJI1Lk9.cjs +0 -6
  18. package/browser/cjs/BnD8IArw964iF-Zg.cjs +0 -1501
  19. package/browser/cjs/BnwSPi6FOdqxr7z1.cjs +0 -19
  20. package/browser/cjs/BxpKhdqadWDARG9W.cjs +0 -16
  21. package/browser/cjs/C8FEOglWYUtglsLP.cjs +0 -6
  22. package/browser/cjs/CDd6P2SfTKp4v-QA.cjs +0 -6
  23. package/browser/cjs/CFfq2Z-VQyMwMJKP.cjs +0 -6
  24. package/browser/cjs/CG1FkANzsujO3FLU.cjs +0 -6
  25. package/browser/cjs/CGD07mOjjl6zfCzK.cjs +0 -15
  26. package/browser/cjs/CMO36tnnJHrXso4Q.cjs +0 -7
  27. package/browser/cjs/CMfyyxtrIHPMnrBl.cjs +0 -6
  28. package/browser/cjs/CNue1AsHpswiVYJx.cjs +0 -6
  29. package/browser/cjs/C_bqbac1bCl1H0Bn.cjs +0 -6
  30. package/browser/cjs/C_jIzbaCWis1jB7f.cjs +0 -32
  31. package/browser/cjs/CaFeiasVg3jafLwL.cjs +0 -6
  32. package/browser/cjs/CaWJjQ_KmjWp1ooU.cjs +0 -145
  33. package/browser/cjs/CahVr7pzDRu3h4G3.cjs +0 -6
  34. package/browser/cjs/CaswMUSE1R9Noewr.cjs +0 -6
  35. package/browser/cjs/CfX6-fSMFgAg6iL9.cjs +0 -124
  36. package/browser/cjs/CkhCXLhqA4a2CnSJ.cjs +0 -6
  37. package/browser/cjs/CkriFKrE5BBPFQWm.cjs +0 -6
  38. package/browser/cjs/CuX_ftSJWqfRsXHy.cjs +0 -6
  39. package/browser/cjs/CznEff7u33FYbOSn.cjs +0 -6
  40. package/browser/cjs/D-fNsTpgGyZHdYEp.cjs +0 -6
  41. package/browser/cjs/DCxlQuW8eB70ZbcJ.cjs +0 -6
  42. package/browser/cjs/DFet-I-_FYR9s_ET.cjs +0 -6
  43. package/browser/cjs/DKQmNMiW6vEz1i7V.cjs +0 -6
  44. package/browser/cjs/DMOCfhgdy7Z8GoD-.cjs +0 -13
  45. package/browser/cjs/DVVk6WU7lfgpQLZG.cjs +0 -6
  46. package/browser/cjs/DYMFAMQ13cX03167.cjs +0 -7
  47. package/browser/cjs/DZVJ234kMQwb5dEy.cjs +0 -6
  48. package/browser/cjs/DZqqUVtfn36E0rIk.cjs +0 -6
  49. package/browser/cjs/DguzXHidCk2s1uCY.cjs +0 -6
  50. package/browser/cjs/Dhik7yBvR-5iyJcR.cjs +0 -6
  51. package/browser/cjs/Dms2LCMINwYEtl3S.cjs +0 -6
  52. package/browser/cjs/DnHgK81nepMuvMim.cjs +0 -6
  53. package/browser/cjs/DuJlHux5dLU53d80.cjs +0 -6
  54. package/browser/cjs/Dz5uLsJ16GF2Cyov.cjs +0 -6
  55. package/browser/cjs/Io_6AEq6KpjrZEfL.cjs +0 -6
  56. package/browser/cjs/R7ToEkyr-cbP0Q3N.cjs +0 -6
  57. package/browser/cjs/TGD3vlMtB_qnQE-M.cjs +0 -11
  58. package/browser/cjs/XFsZZevZgfk9vB1r.cjs +0 -6
  59. package/browser/cjs/bGVtUGltyeHuGKLB.cjs +0 -6
  60. package/browser/cjs/f-w9NYC1mTi7W9HY.cjs +0 -6
  61. package/browser/cjs/kGBvcCWaH3h23Ojp.cjs +0 -7
  62. package/browser/cjs/mUwYCSHSRCUQJ4uV.cjs +0 -42
  63. package/browser/cjs/qLyXB7fJpKBbTC_N.cjs +0 -6
  64. package/browser/cjs/s2JuJCqW6ny4lxQX.cjs +0 -6
  65. package/browser/esm/2Fopggi4LREIIXpY.mjs +0 -13208
  66. package/browser/esm/4ZXEcNsjnqWXAiUa.mjs +0 -2344
  67. package/browser/esm/4yxl564v_Wx022xz.mjs +0 -633
  68. package/browser/esm/5Ovf_TtcBCG7hgdY.mjs +0 -20
  69. package/browser/esm/6X4p3ajMgDNtcmLW.mjs +0 -10
  70. package/browser/esm/8F0vFRAXlzH-vmJl.mjs +0 -52354
  71. package/browser/esm/B1L8rEDpskxCqnhJ.mjs +0 -10
  72. package/browser/esm/BENg2ibY7Hr-SYp3.mjs +0 -10
  73. package/browser/esm/BHzg_9TpgdKnIlaX.mjs +0 -10
  74. package/browser/esm/BY9rDUy2rHkqh6hH.mjs +0 -820
  75. package/browser/esm/Bd2yJknZG5WTZ26u.mjs +0 -10
  76. package/browser/esm/BlH_AWoPr-w3-qdS.mjs +0 -10
  77. package/browser/esm/BmeozQuzbqa81PvH.mjs +0 -41
  78. package/browser/esm/BprECrKMFGb2UK2v.mjs +0 -2174
  79. package/browser/esm/Br_6r7a5IjKksr00.mjs +0 -390
  80. package/browser/esm/ByJuiohpCMXnDKmL.mjs +0 -47
  81. package/browser/esm/C04_X_6DkiZCUmwB.mjs +0 -1702
  82. package/browser/esm/C3pNOQaLBsTUp2CW.mjs +0 -10
  83. package/browser/esm/C4gnsPTE7_xP3Mz_.mjs +0 -1575
  84. package/browser/esm/C8kq7JNW8ivhRL1S.mjs +0 -3934
  85. package/browser/esm/CGquHZGGYOxATF73.mjs +0 -10
  86. package/browser/esm/CKwR5AWlnckKQRc-.mjs +0 -10
  87. package/browser/esm/CLSpsTCV3Onb_QXV.mjs +0 -84
  88. package/browser/esm/CMrXKGbxBR_LxLxN.mjs +0 -3755
  89. package/browser/esm/CN-UcSPqkcXnkJCx.mjs +0 -1365
  90. package/browser/esm/CQJsDOnipkhuGkKg.mjs +0 -56
  91. package/browser/esm/CTIgStBt9DOpau5q.mjs +0 -1665
  92. package/browser/esm/CXL9mY2kUT053cTN.mjs +0 -1346
  93. package/browser/esm/CZ54d8Ueai6uZgy6.mjs +0 -10
  94. package/browser/esm/CZM2uNUNI4W8qUw3.mjs +0 -10
  95. package/browser/esm/CaaAGrJF7OxdprqB.mjs +0 -10
  96. package/browser/esm/CnRJWnfDHzunp3N5.mjs +0 -472
  97. package/browser/esm/CpGYH9QSPqM4ejyF.mjs +0 -421
  98. package/browser/esm/CqLIq6VVhQnv6ZP4.mjs +0 -10
  99. package/browser/esm/CqTn7MLxDJZX7aIA.mjs +0 -10
  100. package/browser/esm/D3RHh0FQuMAKk4JL.mjs +0 -10
  101. package/browser/esm/D8hxrXJDfvDRoouY.mjs +0 -147
  102. package/browser/esm/DMwYqCQzDDwbzt8K.mjs +0 -44
  103. package/browser/esm/DNV2yXFlJ5hRF5ME.mjs +0 -46
  104. package/browser/esm/DUxcExPcvgbBrSXX.mjs +0 -5582
  105. package/browser/esm/DbTEH7CjzsjIc-ew.mjs +0 -21
  106. package/browser/esm/Df2lY3OJ73BCDQo6.mjs +0 -24
  107. package/browser/esm/DlUeNEy_cp31Am5t.mjs +0 -39
  108. package/browser/esm/DovESggwbqQKJEkM.mjs +0 -10
  109. package/browser/esm/DpNpusKUeZXcDNra.mjs +0 -29
  110. package/browser/esm/Dx-FJghQY8rpWJi1.mjs +0 -10
  111. package/browser/esm/DxObRtwZ98tP8NM3.mjs +0 -10
  112. package/browser/esm/FT-XJjpzjdyq4pin.mjs +0 -48
  113. package/browser/esm/HnfOytlj72v4rd6y.mjs +0 -425
  114. package/browser/esm/IChTkXO9eDekfSb7.mjs +0 -10
  115. package/browser/esm/KcDpdRfEgTnFwlSh.mjs +0 -21
  116. package/browser/esm/TVfGpAQkvkA9mx4E.mjs +0 -10
  117. package/browser/esm/pqikV5IyVMBYUDqP.mjs +0 -10
  118. package/browser/esm/qfHSXgWX4yZd3nwZ.mjs +0 -1466
  119. package/browser/esm/xWvOAH67Iwyf2Zge.mjs +0 -10
  120. package/browser/esm/xaJvLe6JwO1rQiE-.mjs +0 -12
  121. package/cdn/assets/15AvUM5aNUAfFLU7.js +0 -58
  122. package/cdn/assets/2Fopggi4LREIIXpY.js +0 -13208
  123. package/cdn/assets/4yxl564v_Wx022xz.js +0 -633
  124. package/cdn/assets/6X4p3ajMgDNtcmLW.js +0 -10
  125. package/cdn/assets/B1L8rEDpskxCqnhJ.js +0 -10
  126. package/cdn/assets/B1y38xd4JTLIrdUW.js +0 -1702
  127. package/cdn/assets/BENg2ibY7Hr-SYp3.js +0 -10
  128. package/cdn/assets/BHzg_9TpgdKnIlaX.js +0 -10
  129. package/cdn/assets/BXRf5zCAUE8kGNat.js +0 -46
  130. package/cdn/assets/BZdjtacH2DTSHsdG.js +0 -22
  131. package/cdn/assets/Bd2yJknZG5WTZ26u.js +0 -10
  132. package/cdn/assets/BlH_AWoPr-w3-qdS.js +0 -10
  133. package/cdn/assets/C3pNOQaLBsTUp2CW.js +0 -10
  134. package/cdn/assets/C6yX85fw0aO70N0-.js +0 -2346
  135. package/cdn/assets/CGquHZGGYOxATF73.js +0 -10
  136. package/cdn/assets/CKwR5AWlnckKQRc-.js +0 -10
  137. package/cdn/assets/CN-UcSPqkcXnkJCx.js +0 -1365
  138. package/cdn/assets/CSBAnGx7ebIRyjML.js +0 -21
  139. package/cdn/assets/CTIgStBt9DOpau5q.js +0 -1665
  140. package/cdn/assets/CXL9mY2kUT053cTN.js +0 -1346
  141. package/cdn/assets/CZ54d8Ueai6uZgy6.js +0 -10
  142. package/cdn/assets/CZM2uNUNI4W8qUw3.js +0 -10
  143. package/cdn/assets/CaaAGrJF7OxdprqB.js +0 -10
  144. package/cdn/assets/Cfgui52VcoZakyBi.js +0 -50
  145. package/cdn/assets/Ck6R7vI9j0vG-mKU.js +0 -390
  146. package/cdn/assets/ClTJpu1UdRW0KLAX.js +0 -23
  147. package/cdn/assets/Co1yPh9LPeUa-tCm.js +0 -29
  148. package/cdn/assets/CpGYH9QSPqM4ejyF.js +0 -421
  149. package/cdn/assets/CppP22dM3wzxzf_R.js +0 -3934
  150. package/cdn/assets/CqLIq6VVhQnv6ZP4.js +0 -10
  151. package/cdn/assets/CqTn7MLxDJZX7aIA.js +0 -10
  152. package/cdn/assets/D3RHh0FQuMAKk4JL.js +0 -10
  153. package/cdn/assets/DCmJyecz9jzS5Hh5.js +0 -41
  154. package/cdn/assets/DEHd1h8uAHbt7JQl.js +0 -425
  155. package/cdn/assets/DK25k4g9SWrBiPDl.js +0 -43
  156. package/cdn/assets/DL18SWHzmNBC5_Sq.js +0 -472
  157. package/cdn/assets/DZz8nVXsYYFIaomy.js +0 -3756
  158. package/cdn/assets/Df2lY3OJ73BCDQo6.js +0 -24
  159. package/cdn/assets/DidmQocPR2LUv5_-.js +0 -84
  160. package/cdn/assets/DifkJcFEihfAmrz6.js +0 -5582
  161. package/cdn/assets/Dj-9L-ifpIi1HChy.js +0 -52185
  162. package/cdn/assets/DovESggwbqQKJEkM.js +0 -10
  163. package/cdn/assets/Dwy3QqzGL-q3IHdC.js +0 -49
  164. package/cdn/assets/Dx-FJghQY8rpWJi1.js +0 -10
  165. package/cdn/assets/DxObRtwZ98tP8NM3.js +0 -10
  166. package/cdn/assets/IChTkXO9eDekfSb7.js +0 -10
  167. package/cdn/assets/KcDpdRfEgTnFwlSh.js +0 -21
  168. package/cdn/assets/R-6SrokApX5Vs5h6.js +0 -12
  169. package/cdn/assets/TVfGpAQkvkA9mx4E.js +0 -10
  170. package/cdn/assets/ZfVobc-p41aYisnX.js +0 -46
  171. package/cdn/assets/_QS_SgWjAGVcBh2y.js +0 -2177
  172. package/cdn/assets/_bKdjn1gFyUlsKF8.js +0 -149
  173. package/cdn/assets/cgKx_r-dAv2kc57N.js +0 -1575
  174. package/cdn/assets/lxv3lfQ08L2wD1S3.js +0 -820
  175. package/cdn/assets/pqikV5IyVMBYUDqP.js +0 -10
  176. package/cdn/assets/wXUNHjkvpeSH2dQZ.js +0 -1466
  177. package/cdn/assets/xWvOAH67Iwyf2Zge.js +0 -10
  178. package/cdn/assets/xaJvLe6JwO1rQiE-.js +0 -12
@@ -1,21 +0,0 @@
1
- import { r as v, Q as i, w as j, j as n, $ as C, B as O, x as a, C as l, h as r } from "./8F0vFRAXlzH-vmJl.mjs";
2
- /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
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
- const S = ({ range: x, options: c, cell: u, onDone: d, ...h }) => {
9
- const [t, s] = v.useState(c ?? i.DefaultRangeOptions), p = j((e) => {
10
- let o = null;
11
- e === "Sort" && (o = { ...c, options: t }), d?.(o);
12
- }, [t, d, c]);
13
- return n.jsx(C, { title: "Sort", options: ["Sort", "Cancel"], onDone: p, ...h, children: n.jsxs(O, { sx: { display: "flex", flexDirection: "column" }, children: [n.jsx(a, { control: n.jsx(l, { checked: !t.reverse, onChange: () => s((e) => ({ ...e, reverse: !e.reverse })) }), label: "Is Ascending", labelPlacement: "end" }), n.jsx(a, { control: n.jsx(l, { checked: t.hasHeader, onChange: () => s((e) => ({ ...e, hasHeader: !e.hasHeader })) }), label: "Has Header", labelPlacement: "end" }), n.jsx(a, { control: n.jsx(l, { checked: t.collatorOptions?.sensitivity === i.CaseSensitiveOptions.sensitivity, onChange: () => s((e) => ({ ...e, collatorOptions: t.collatorOptions?.sensitivity === i.CaseSensitiveOptions.sensitivity ? i.CaseInsensitiveOptions : i.CaseSensitiveOptions })) }), label: "Case Sensitive", labelPlacement: "end" }), n.jsx(a, { control: n.jsx(l, { checked: t.orientation === r.Orientation.Row, onChange: () => s((e) => {
14
- const o = e.orientation === r.Orientation.Row ? r.Orientation.Column : r.Orientation.Row;
15
- return { ...x.getDefaultSortCriteria(o, u).options, includeHidden: e.includeHidden, reverse: e.reverse, orientation: o };
16
- }) }), label: "Row Sort", labelPlacement: "end" }), n.jsx(a, { control: n.jsx(l, { checked: t.includeHidden, onChange: () => s((e) => ({ ...e, includeHidden: !e.includeHidden })) }), label: "Include Hidden", labelPlacement: "end" })] }) });
17
- };
18
- export {
19
- S as SortDialog,
20
- S as default
21
- };
@@ -1,24 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
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
- let s = null;
8
- async function l() {
9
- return s || (s = new Promise(async (e, a) => {
10
- try {
11
- const i = "0.20.2", r = `https://esm.sh/esbuild-wasm@${i}`, n = `https://esm.sh/esbuild-wasm@${i}/esbuild.wasm`, t = (await import(
12
- /* webpackIgnore: true */
13
- /* @vite-ignore */
14
- r
15
- )).default;
16
- await t.initialize({ wasmURL: n, worker: !1 }), e(t);
17
- } catch (i) {
18
- console.error("Error initializing esbuild:", i), a(i);
19
- }
20
- }), s);
21
- }
22
- export {
23
- l as initialize
24
- };
@@ -1,39 +0,0 @@
1
- import { r as e, T as o, m as z, j as i, $ as E, B as K, F as R, a as W, b as O, e as q, c as y } from "./8F0vFRAXlzH-vmJl.mjs";
2
- /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
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
- const A = ["Input"], J = e.memo(e.forwardRef((w, T) => {
9
- const { initialValue: F = "", onOption: I, onValidateOption: l, onInputOption: r, onValidateInputOption: p, onDone: u, inputProps: c, inputLabel: P, inputType: S, inputPlaceHolder: b, options: d = A, autoFocusSel: j = ".autoFocus", cancelOption: g, defaultOption: m = d?.[0], ...v } = w, [C, k] = e.useState(!1), [t, V] = e.useState(F), [B, D] = e.useState(""), [$, H] = e.useState(!0), s = o(async (a, n) => {
10
- if (!p) return !0;
11
- const h = await p?.(a, n);
12
- D(h?.message ?? "");
13
- const x = h?.valid ?? !0;
14
- return H(x), x;
15
- }, [p]), f = o(async (a) => {
16
- r?.(t, a);
17
- }, [t, r, u, I, g, m]), L = o(async (a) => {
18
- a.keyCode === z.Enter && await s?.(t, null);
19
- }, [t, f]), M = o((a) => {
20
- V(a.target.value), s?.(a.target.value, null);
21
- }, [l]), N = o(async (a) => {
22
- let n = await s(t, a);
23
- try {
24
- n !== !1 && (n = await s(t, a));
25
- } catch {
26
- }
27
- return n ?? !0;
28
- }, [t, l]);
29
- return i.jsx(E, { options: d, onDone: u, onOption: (a, n) => {
30
- n || f(a);
31
- }, onValidateOption: N, cancelOption: g, defaultOption: m, autoFocusSel: j, ref: T, ...v, children: i.jsx(K, { sx: { paddingTop: (a) => a.spacing(1), paddingBottom: (a) => a.spacing(0) }, children: i.jsx(R, { sx: { paddingTop: (a) => a.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: i.jsx(W, { onFocus: (a) => {
32
- C || a.target?.select(), k(!0);
33
- }, type: S, label: P, helperText: B || " ", sx: { width: "100%", "& .MuiFormHelperText-root": { marginTop: (a) => a.spacing(0.5), color: $ ? void 0 : "error.main" } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { placeholder: b, spellCheck: !1, autoComplete: "off", ...c, className: q("autoFocus", c?.className), sx: { paddingTop: (a) => a.spacing(1.25), paddingBottom: (a) => a.spacing(0.75), backgroundImage: `linear-gradient(${O("#fff", y(5))}, ${O("#fff", y(5))})` } } }, value: t, onChange: M, onKeyDown: L, onContextMenu: (a) => {
34
- a.stopPropagation();
35
- } }) }) }) });
36
- }));
37
- export {
38
- J as default
39
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
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 = { ACOS: { s: "Returns the arccosine of a number, in radians in the range 0 to Pi. The arccosine is the angle whose cosine is Number", p: { number: { d: "is the cosine of the angle you want and must be from -1 to 1" } } }, ACOSH: { s: "Returns the inverse hyperbolic cosine of a number", p: { number: { d: "is any real number equal to or greater than 1" } } }, ACOT: { s: "Returns the arccotangent of a number, in radians in the range 0 to Pi.", p: { number: { d: "is the cotangent of the angle you want" } } }, ACOTH: { s: "Returns the inverse hyperbolic cotangent of a number", p: { number: { d: "is the hyperbolic cotangent of the angle that you want" } } }, ASIN: { s: "Returns the arcsine of a number in radians, in the range -Pi/2 to Pi/2", p: { number: { d: "is the sine of the angle you want and must be from -1 to 1" } } }, ASINH: { s: "Returns the inverse hyperbolic sine of a number", p: { number: { d: "is any real number equal to or greater than 1" } } }, ATAN: { s: "Returns the arctangent of a number in radians, in the range -Pi/2 to Pi/2", p: { number: { d: "is the tangent of the angle you want" } } }, ATAN2: { s: "Returns the arctangent of the specified x- and y- coordinates, in radians between -Pi and Pi, excluding -Pi", p: { x: { d: "is the x-coordinate of the point" }, y: { d: "is the y-coordinate of the point" } } }, ATANH: { s: "Returns the inverse hyperbolic tangent of a number", p: { number: { d: "is any real number between -1 and 1 excluding -1 and 1" } } }, COS: { s: "Returns the cosine of an angle", p: { number: { d: "is the angle in radians for which you want the cosine" } } }, COSH: { s: "Returns the hyperbolic cosine of a number", p: { number: { d: "is any real number" } } }, COT: { s: "Returns the cotangent of an angle", p: { number: { d: "is the angle in radians for which you want the cotangent" } } }, COTH: { s: "Returns the hyperbolic cotangent of a number", p: { number: { d: "is the angle in radians for which you want the hyperbolic cotangent" } } }, CSC: { s: "Returns the cosecant of an angle", p: { number: { d: "is the angle in radians for which you want the cosecant" } } }, CSCH: { s: "Returns the hyperbolic cosecant of an angle", p: { number: { d: "is the angle in radians for which you want the hyperbolic cosecant" } } }, SEC: { s: "Returns the secant of an angle", p: { number: { d: "is the angle in radians for which you want the secant" } } }, SECH: { s: "Returns the hyperbolic secant of an angle", p: { number: { d: "is the angle in radians for which you want the hyperbolic secant" } } }, SIN: { s: "Returns the sine of an angle", p: { number: { d: "is the angle in radians for which you want the sine. Degrees * PI()/180 = radians" } } }, SINH: { s: "Returns the hyperbolic sine of a number", p: { number: { d: "is any real number" } } }, TAN: { s: "Returns the tangent of an angle", p: { number: { d: "is the angle in radians for which you want the tangent. Degrees * PI()/180 = radians" } } }, TANH: { s: "Returns the hyperbolic tangent of a number", p: { number: { d: "is any real number" } } } };
8
- export {
9
- e as default
10
- };
@@ -1,29 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
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
- class o {
8
- constructor(r = {}) {
9
- this.workerWrapper = null;
10
- }
11
- async getWorkerWrapper() {
12
- if (this.workerWrapper) return this.workerWrapper;
13
- const { createCompilerWorker: r } = await import("./C4gnsPTE7_xP3Mz_.mjs");
14
- return this.workerWrapper = await r(), this.workerWrapper;
15
- }
16
- async compileModule(r) {
17
- try {
18
- return (await this.getWorkerWrapper()).execute(r);
19
- } catch (e) {
20
- throw console.error("Failed to compile using worker:", e), e;
21
- }
22
- }
23
- terminate() {
24
- this.workerWrapper?.terminate(), this.workerWrapper = null;
25
- }
26
- }
27
- export {
28
- o as TypeScriptCompiler
29
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
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 = { BESSELI: { s: "Returns the modified Bessel function In(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the Bessel function" } } }, BESSELJ: { s: "Returns the Bessel function Jn(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the Bessel function" } } }, BESSELK: { s: "Returns the modified Bessel function Kn(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the function" } } }, BESSELY: { s: "Returns the Bessel function Yn(x)", p: { x: { d: "is the value at which to evaluate the function" }, n: { d: "is the order of the function" } } } };
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.19
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 = { BAHTTEXT: { s: "Converts a number to baht (Thai) text", p: { number: { d: "is the number to convert" } } } };
8
- export {
9
- t as default
10
- };
@@ -1,48 +0,0 @@
1
- import { r as s, w as u, j as l, $ as B, B as M, F as S, a as $, b as h, U as C } from "./8F0vFRAXlzH-vmJl.mjs";
2
- /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
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
- const E = ["Ok", "Cancel"], V = s.memo((O) => {
9
- const { initialComments: w = null, onUpdateComments: m, context: F, onOption: d, onValidateOption: c, onDone: p, options: g = E, defaultOption: r = g?.[0], cancelOption: i = "Cancel", sx: b, ...j } = O, x = s.useMemo(() => {
10
- const n = w ?? F?.()?.getComments();
11
- let t = "";
12
- if (n && n.content && n.content.runs) {
13
- const a = n.content.runs;
14
- for (let o = 0; o < a.length; o++) {
15
- const I = a[o];
16
- t += I?.text;
17
- }
18
- }
19
- return t;
20
- }, []), [e, k] = s.useState(x), [y, P] = s.useState(!1), f = s.useCallback(async (n, t) => null, []), T = u(async (n) => {
21
- const t = e === "" ? [] : e.split(`
22
- `);
23
- if (n !== i) {
24
- const a = [];
25
- for (let o = 0; o < t.length; o++) a.push({ text: t[o] });
26
- m?.({ content: { runs: a } });
27
- }
28
- d?.(n, n === i, n === r), p?.();
29
- }, [e, m, p, d, r, i]), v = u((n) => {
30
- k(n.target.value), f(n.target.value, null);
31
- }, [c]), D = u(async (n) => {
32
- let t = await Promise.resolve(c?.(n));
33
- try {
34
- t !== !1 && (t = await f(e, n));
35
- } catch {
36
- }
37
- return t ?? !0;
38
- }, [c, e]);
39
- return l.jsx(B, { title: (x ? "Edit" : "Insert") + " Comments", options: g, onDone: p, onOption: (n) => T(n), onValidateOption: D, defaultOption: r, cancelOption: i, autoFocusSel: ".autoFocus", sx: { width: "480px", ...b }, ...j, children: l.jsx(M, { sx: { paddingTop: (n) => n.spacing(1), paddingBottom: (n) => n.spacing(0), rowGap: (n) => n.spacing(1), display: "flex", flexDirection: "column" }, children: l.jsx(S, { sx: { paddingTop: (n) => n.spacing(1.5), minWidth: 135, width: "100%" }, size: "small", children: l.jsx($, { label: "Comments", placeholder: "Enter a comment.", onFocus: (n) => {
40
- y || n.target?.select(), P(!0);
41
- }, sx: { "& .MuiFormHelperText-root": { marginTop: (n) => n.spacing(0.5) } }, InputLabelProps: { shrink: !0 }, InputProps: { inputProps: { className: "autoFocus", spellCheck: !1, autoComplete: "off", sx: { paddingTop: (n) => n.spacing(1.25), paddingBottom: (n) => n.spacing(0.75), backgroundImage: `linear-gradient(${h("#fff", C(5))}, ${h("#fff", C(5))})` } } }, value: e, onChange: v, onContextMenu: (n) => {
42
- n.stopPropagation();
43
- } }) }) }) });
44
- });
45
- export {
46
- V as CommentsDialog,
47
- V as default
48
- };
@@ -1,425 +0,0 @@
1
- import { a6 as yt } from "./8F0vFRAXlzH-vmJl.mjs";
2
- /**
3
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
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, I = !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" && (((j) => {
140
- if (z.test(j) && (j = parseFloat(j), v < j && j < 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, j;
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) && (j === void 0 || j < q) && 1.99 < q && (d = F, U = tt, j = 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(), I ? { meta: { paused: !0 } } : s || { meta: { paused: !1 } };
169
- }, this.paused = function() {
170
- return I;
171
- }, this.pause = function() {
172
- I = !0, i.abort(), e = _(t.chunk) ? "" : e.substring(i.getCharIndex());
173
- }, this.resume = function() {
174
- m.streamer._halted ? (I = !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, I = !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 = [], j(f.split(e)), q(), I) return F();
213
- } else j(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(), I)) 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(), I)) return F();
245
- if (l && c.length >= l) return F(!0);
246
- }
247
- return W();
248
- function j(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, j(f), h && q()), F();
256
- }
257
- function tt(x) {
258
- o = x, j(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: I, truncated: !!x, cursor: O + (p || 0), renamedHeaders: z } };
276
- }
277
- function q() {
278
- r(F()), c = [], E = [];
279
- }
280
- }, this.abort = function() {
281
- I = !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 I(null, t, w);
343
- if (typeof t[0] == "object") return I(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])), I(t.fields || [], t.data || [], w);
345
- throw new Error("Unable to serialize unrecognized input");
346
- function I(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,10 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.19
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 r = { ERF: { s: "Returns the error function", p: { lowerLimit: { d: "is the lower bound for integrating ERF" }, upperLimit: { d: "is the upper bound for integrating ERF", v: 0 } } }, "ERF.PRECISE": { s: "Returns the error function", p: { x: { d: "is the lower bound for integrating ERF.PRECISE" } } }, ERFC: { s: "Returns the complementary error function", p: { x: { d: "is the lower bound for integrating ERF" } } } };
8
- export {
9
- r as default
10
- };