@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,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 = { DATE: { s: "Returns the number that represents the date in Microsoft Excel date-time code", p: { year: { d: "is a number from 1900 or 1904 (depending on the workbook's date system) to 9999" }, month: { d: "is a number from 1 to 12 representing the month of the year" }, day: { d: "is a number from 1 to 31 representing the day of the month" } } }, DATEDIF: { s: "Returns the number of days between two dates", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, unit: { d: "is a string that specifies the unit of time to use" } }, h: "Legacy" }, DATESTRING: { s: "Returns NA.", p: { number: { d: "is a number that is ignored" } }, h: "Legacy" }, DATEVALUE: { s: "Converts a date in the form of text to a number that represents the date in Microsoft Excel date-time code", p: { dateText: { d: "is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999" } } }, DAY: { s: "Returns the day of the month, a number from 1 to 31.", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, DAYS: { s: "Returns the number of days between the two dates.", p: { endDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" }, startDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" } } }, DAYS360: { s: "Returns the number of days between two dates based on a 360-day year (twelve 30-day months)", p: { startDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" }, endDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" }, method: { d: "is a logical value specifying the calculation method: U.S. (NASD) = FALSE; European = TRUE.", v: !1 } } }, EDATE: { s: "Returns the serial number of the date that is the indicated number of months before or after the start date", p: { startDate: { d: "is a serial date number that represents the start date" }, months: { d: "is the number of months before or after start_date" } } }, EOMONTH: { s: "Returns the serial number of the last day of the month before or after a specified number of months", p: { startDate: { d: "is a serial date number that represents the start date" }, months: { d: "is the number of months before or after the start_date" } } }, HOUR: { s: "Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, ISOWEEKNUM: { s: "Returns the ISO week number in the year for a given date", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, MINUTE: { s: "Returns the minute, a number from 0 to 59.", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, MONTH: { s: "Returns the month, a number from 1 (January) to 12 (December).", p: { serialOrString: { d: "is a number in the date-time code used by Excel" } } }, NETWORKDAYS: { s: "Returns the number of whole workdays between two dates", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, holidays: { d: "is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, "NETWORKDAYS.INTL": { s: "Returns the number of whole workdays between two dates with custom weekend parameters", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, weekend: { d: "is a number or string specifying when weekends occur", v: 1 }, holidays: { d: "is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, NOW: { s: "Returns the current date and time formatted as a date and time.", p: {} }, SECOND: { s: "Returns the second, a number from 0 to 59.", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:23 or 4:48:47 PM" } } }, TIME: { s: "Converts hours, minutes, and seconds given as numbers to an Excel serial number, formatted with a time format", p: { hour: { d: "is a number from 0 to 23 representing the hour" }, minute: { d: "is a number from 0 to 59 representing the minute" }, second: { d: "is a number from 0 to 59 representing the second" } } }, TIMEVALUE: { s: "Converts a text time to an Excel serial number for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula", p: { timeText: { d: "is a text string that gives a time in any one of the Excel time formats (date information in the string is ignored)" } } }, TODAY: { s: "Returns the current date formatted as a date.", p: {} }, WEEKDAY: { s: "Returns a number from 1 to 7 identifying the day of the week of a date.", p: { serialOrString: { d: "is a number that represents a date" }, returnType: { d: "is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3", v: 1 } } }, WEEKNUM: { s: "Returns the week number in the year", p: { serialOrString: { d: "is the date-time code used by Excel for date and time calculation" }, returnType: { d: "is a number (1 or 2) that determines the type of the return value", v: 1 } } }, WORKDAY: { s: "Returns the serial number of the date before or after a specified number of workdays", p: { startDate: { d: "is a serial date number that represents the start date" }, days: { d: "is the number of nonweekend and non-holiday days before or after start_date" }, holidays: { d: "is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, "WORKDAY.INTL": { s: "Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters", p: { startDate: { d: "is a serial date number that represents the start date" }, days: { d: "is the number of nonweekend and non-holiday days before or after start_date" }, weekend: { d: "is a number or string specifying when weekends occur", v: 1 }, holidays: { d: "is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, YEAR: { s: "Returns the year of a date, an integer in the range 1900 - 9999.", p: { serialOrString: { d: "is a number in the date-time code used by Excel" } } }, YEARFRAC: { s: "Returns the year fraction representing the number of whole days between start_date and end_date", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, basis: { d: "is the type of day count basis to use", v: 0 } } } };
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 e = { DELAY: { s: "Returns the input value after a delay.", p: { time: { d: "the delay time in milliseconds. Default is 1000ms (1 second)." }, input: { d: "returns the input." }, label: { d: "optional label for the delay function.", v: "No label" } }, h: "Testing" }, WAIT: { s: "Starts waiting for event", p: { type: { d: "the type of message." }, input: { d: "an optional dependency." } }, h: "Testing" } };
8
- export {
9
- e as default
10
- };
@@ -1,84 +0,0 @@
1
- import { g as J } 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 k = async (w, l) => {
9
- const u = await w.toJSON(), g = l?.whiteSpace ?? 0;
10
- let b;
11
- l?.beforeWrite?.(w, u), b = g === 0 ? JSON.stringify(u) : function(f, r = 2) {
12
- const n = [];
13
- function i(o) {
14
- const e = r * o;
15
- return n[e] === void 0 && (n[e] = " ".repeat(e)), n[e];
16
- }
17
- return function o(e, a, s, m) {
18
- if (e == null || typeof e != "object") return JSON.stringify(e);
19
- const d = i(a), O = i(a + 1);
20
- if (Array.isArray(e)) {
21
- const c = e.length;
22
- if (c === 0) return "[]";
23
- if (s !== 0) return JSON.stringify(e);
24
- let y = `[
25
- `;
26
- for (let h = 0; h < c; h++) y += O + o(e[h], a + 1, s + 1, !0), h < c - 1 && (y += `,
27
- `);
28
- return y += `
29
- ` + d + "]", y;
30
- }
31
- const B = Object.keys(e), A = B.length;
32
- if (A === 0) return "{}";
33
- if (!(s < 2)) return JSON.stringify(e);
34
- let S = `{
35
- `;
36
- m || (s = 0);
37
- for (let c = 0; c < A; c++) {
38
- const y = B[c];
39
- S += O + JSON.stringify(y) + ": " + o(e[y], a + 1, s, !1), c < A - 1 && (S += `,
40
- `);
41
- }
42
- return S += `
43
- ` + d + "}", S;
44
- }(f, 0, 0, !1);
45
- }(u, g);
46
- let p = new TextEncoder().encode(b).buffer;
47
- const t = l?.compress ?? !0;
48
- return t && (p = await async function(f, r = "gzip") {
49
- let n;
50
- typeof SharedArrayBuffer < "u" && f instanceof SharedArrayBuffer ? (n = new ArrayBuffer(f.byteLength), new Uint8Array(n).set(new Uint8Array(f))) : n = f;
51
- const i = new ReadableStream({ start(a) {
52
- a.enqueue(n), a.close();
53
- } }), o = new CompressionStream(r), e = i.pipeThrough(o);
54
- return (await new Response(e).blob()).arrayBuffer();
55
- }(p, typeof t == "string" ? t : void 0)), p;
56
- }, z = async (w, l) => {
57
- let u = w;
58
- (function(t) {
59
- if (t.byteLength < 4) return !1;
60
- const f = new Uint8Array(t), r = { gzip: [31, 139], zip: [80, 75, 3, 4], bz2: [66, 90, 104], br: [206, 178, 207, 129] }, n = Object.keys(r);
61
- for (let i = 0; i < n.length; i++) {
62
- const o = n[i], e = r[o];
63
- let a = !0;
64
- for (let s = 0; s < e.length; s++) if (f[s] !== e[s]) {
65
- a = !1;
66
- break;
67
- }
68
- if (a) return o;
69
- }
70
- return !1;
71
- })(u) && (u = await async function(t, f = "gzip") {
72
- let r;
73
- typeof SharedArrayBuffer < "u" && t instanceof SharedArrayBuffer ? (r = new ArrayBuffer(t.byteLength), new Uint8Array(r).set(new Uint8Array(t))) : r = t;
74
- const n = new Blob([r]).stream(), i = new DecompressionStream(f), o = n.pipeThrough(i);
75
- return (await new Response(o).blob()).arrayBuffer();
76
- }(u));
77
- let g = new TextDecoder().decode(u);
78
- const b = JSON.parse(g), p = { ...l?.createWorkbookOptions ?? {}, json: b };
79
- return new J(p);
80
- };
81
- export {
82
- z as fromBufferJSON,
83
- k as toBufferJSON
84
- };