@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,6 +0,0 @@
1
- "use strict";/**
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
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={ASC:{s:"Converts a string to full-width characters to half-width. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},ARRAYTOTEXT:{s:"Returns a text representation of an array",p:{array:{d:"the array to represent as text"},format:{d:"0 for relaxed format, 1 for strict format",v:0}}},CHAR:{s:"Returns the character specified by the code number from the character set for your computer",p:{number:{d:"is a number between 1 and 255 specifying which character you want"}}},CLEAN:{s:"Removes all nonprintable characters from text",p:{text:{d:"is the text you want to clean"}}},CODE:{s:"Returns the Unicode value of the first character in a text string",p:{text:{d:"is the text string whose Unicode value you want"}}},CONCAT:{s:"Concatenates a list or range of text strings",p:{text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},CONCATENATE:{s:"Joins several text strings into one text string",p:{text:{d:"text1, text2,... are 1 to 252 text strings or ranges to be joined"}},c:"Compatibility"},DETECTLANGUAGE:{s:"Detects the language of a given text.",p:{text:{d:"is the text to detect the language of"}},h:"Unimplemented"},DBCS:{s:"Changes half-width characters to full-width characters. Uses the double-byte character set (DBCS).",p:{text:{d:"is a text or a reference to a cell containing text"}},h:"DBCS"},DOLLAR:{s:"Converts a number to text in currency format",p:{number:{d:"is the number to convert"},decimals:{d:"is the number of digits to the right of the decimal point",v:2}}},EXACT:{s:"Checks whether two text strings are exactly the same, and returns TRUE or FALSE. EXACT is case-sensitive",p:{text1:{d:"is the first text string"},text2:{d:"is the second text string"}}},FIND:{s:"Returns the starting position of one text string within another text string. FIND is case-sensitive",p:{findText:{d:"Returns the starting position of one text string within another text string. FIND is case-sensitive"},withinText:{d:"is the text you want to search"},startNum:{d:"specifies the character at which to start the search. The first character in Within_text is character number 1",v:1}}},FINDB:{s:"Finds the starting position of one text string with another text string. FINDB is case-sensitive. Use with double-byte characters.",p:{findText:{d:"is the text you want to find"},withinText:{d:"is the text you want to search"},startNum:{d:"is the position in within_text to start searching",v:1}},h:"DBCS"},FIXED:{s:"Rounds a number to the specified number of decimals and returns the result as text with or without commas",p:{number:{d:"is the number you want to round and convert to text"},decimals:{d:"is the number of digits to the right of the decimal point",v:2},noCommas:{d:"is a logical value: do not display commas in the returned text = TRUE; do display commas in the returned text = FALSE",v:!1}}},LEFT:{s:"Returns the specified number of characters from the start of a text string",p:{text:{d:"is the text string from which you want to extract characters"},numChars:{d:"specifies how many characters you want LEFT to extract",v:1}}},LEFTB:{s:"Returns the leftmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}},h:"DBCS"},LEN:{s:"Returns the number of characters in a text string",p:{text:{d:"is the text whose length you want to find. Spaces count as characters"}}},LENB:{s:"Returns the number of bytes in a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"}}},LOWER:{s:"Converts all letters in a text string to lowercase",p:{text:{d:"is the text you want to convert to lowercase. Characters in Text that are not letters are not changed"}}},MID:{s:"Returns the characters from the middle of a text string, given a starting position and length",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numChars:{d:"specifies how many characters to return from Text"}}},MIDB:{s:"Returns characters from the middle of a text string. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},startNum:{d:"is the position of the first character you want to extract"},numBytes:{d:"is the number of bytes to extract"}},h:"DBCS"},NUMBERVALUE:{s:"Converts text to number in a locale-independent manner",p:{text:{d:"is the text string you want to convert"},decimalSeparator:{d:"is the character that separates the integer part from the decimal part of the number",v:"."},groupSeparator:{d:"is the character that separates groups of thousands",v:","}}},PERCENTOF:{s:"Returns the percentage of a subset of a given data set",p:{dataSubset:{d:"is the subset"},dataAll:{d:"is the data set"}},h:"Unimplemented"},PHONETIC:{s:"Returns the phonetic spelling of a text string",p:{reference:{d:"Text string or a reference to a single cell or a range of cells that contain a furigana text string"}},h:"Unimplemented"},PROPER:{s:"Converts the first letter of each word in a text string to uppercase",p:{text:{d:"is the text string you want to convert"}}},REGEXEXTRACT:{s:"Extracts substrings of 'text' based on the provided REGEX 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},returnMode:{d:"Specify which matches to return",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXREPLACE:{s:"Returns 'text', with 'replacement' in place of matches with 'pattern'",p:{text:{d:"is the text string from which you want to extract characters"},pattern:{d:"The regular expression to be applied"},replacement:{d:"The replacement string"},occurrence:{d:"The occurrence of the match to replace",v:0},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REGEXTEST:{s:"Checks whether the input matches the pattern, and returns TRUE or FALSE",p:{text:{d:"is the text string to be checked"},pattern:{d:"is the regular expression to be applied"},caseSensitivity:{d:"Whether the match is case sensitive",v:!1}},h:"Unimplemented"},REPLACE:{s:"Replaces part of a text string with a different text string",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numChars:{d:"is the number of characters to replace"},newText:{d:"is the text string that will replace old_text"}}},REPLACEB:{s:"Replaces part of a text string with a different text string using the number of bytes. Uses the double-byte character set (DBCS).",p:{oldText:{d:"is the text string to be changed"},startNum:{d:"is the position of the first character you want to replace"},numBytes:{d:"is the number of bytes to replace"},newText:{d:"is the text string that will replace old_text"}},h:"DBCS"},REPT:{s:"Repeats text a given number of times",p:{text:{d:"is the text you want to repeat"},numberTimes:{d:"is the number of times you want to repeat text"}}},RIGHT:{s:"Returns the specified number of characters from the end of a text string",p:{text:{d:"is the text string that contains the characters you want to extract"},numChars:{d:"specifies how many characters you want to extract",v:1}}},RIGHTB:{s:"Returns the rightmost num_bytes characters from text. Uses double-byte characters.",p:{text:{d:"is the text string from which you want to extract characters"},numBytes:{d:"is the number of bytes to extract",v:1}}},SEARCH:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startNum:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}}},SEARCHB:{s:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive). Uses the double-byte character set (DBCS).",p:{findText:{d:"Returns the number of the character at which a specific character or text string is first found, reading left to right (not case-sensitive)"},withinText:{d:"is the text in which you want to search for Find_text"},startBytes:{d:"is the character number in Within_text, counting from the left, at which you want to start searching",v:1}},h:"DBCS"},SUBSTITUTE:{s:"Replaces existing text with new text in a text string",p:{text:{d:"is the text or the reference to a cell containing text in which you want to substitute characters"},oldText:{d:"is the existing text you want to replace. If the case of Old_text does not match the case of text, SUBSTITUTE will not replace the text"},newText:{d:"is the text you want to replace Old_text with"},instanceNum:{d:"specifies which occurrence of Old_text you want to replace. If omitted, every instance of Old_text is replaced"}}},T:{s:"Checks whether a value is text, and returns the text if it is, or returns double quotes (empty text) if it is not",p:{value:{d:"is the value to test"}}},TEXT:{s:"Converts a value to text in a specific number format",p:{value:{d:"is a number, a formula that evaluates to a numeric value, or a reference to a cell containing a numeric value"},formatText:{d:"is a text string that defines the number format to use"}}},TEXTAFTER:{s:"Returns text that's after delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Searches the text for a delimiter match. By default, a case-sensitive match is done.",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TEXTJOIN:{s:"Concatenates a list or range of text strings using a delimiter",p:{delimiter:{d:"Character or string to insert between each text item"},ignoreEmpty:{d:"if TRUE(default), ignores empty cells"},text:{d:"text1,text2,... are 1 to 252 text strings or ranges to be joined"}}},TEXTSPLIT:{s:"Splits text into rows or columns using delimiters.",p:{text:{d:"The text to split"},colDelimiter:{d:"The column delimiter(s) - can be string or array of strings"},rowDelimiter:{d:"The row delimiter(s), null/undefined means no row splitting",v:null},ignoreEmpty:{d:"Whether to ignore empty values (defaults to `false`)",v:!1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},padWith:{d:"Value to use for padding if matrix is uneven (defaults to `#N/A`)",v:"undefined"}}},TEXTBEFORE:{s:"Returns text that's before delimiting characters.",p:{text:{d:"The text you want to search for the delimiter."},delimiter:{d:"The character or string to use as a delimiter."},instanceNum:{d:"The desired occurrence of delimiter. The default is 1. A negative number searches from the end.",v:1},matchMode:{d:"Whether to use case-sensitive (0) or case-insensitive (1) match (defaults to `0`)",v:0},matchEnd:{d:"Whether to match the delimiter against the end of text. By default, they're not matched.",v:0},ifNotFound:{d:"Returned if no match is found. By default, #N/A is returned.",v:"undefined"}}},TRANSLATE:{s:"Translate a text string from one language to another using the Microsoft Translator service.",p:{text:{d:"The text to translate."},sourceLanguage:{d:"Specifiy the source language your text is currently in. Expressed as a two-letter language code."},targetLanguage:{d:"Specifiy the source language you want your text to be translated to. Expressed as a two-letter language code."}},h:"Unimplemented"},TRIM:{s:"Removes all spaces from text except for single spaces between words.",p:{text:{d:"The text from which you want to remove extra spaces."}}},UNICHAR:{s:"Returns the Unicode character referenced by the given numeric value",p:{number:{d:"is the Unicode number representing a character"}}},UNICODE:{s:"Returns the number (code point) corresponding to the first character of the text",p:{text:{d:"is the character that you want the Unicode value of"}}},UPPER:{s:"Converts a text string to all uppercase letters",p:{text:{d:"is the text you want converted to uppercase, a reference or a text string"}}},VALUE:{s:"Converts a text string that represents a number to a number",p:{text:{d:"is the text enclosed in quotation marks or a reference to a cell containing the text you want to convert"}}},VALUETOTEXT:{s:"Returns a text representation of a value",p:{value:{d:"the value to represent as text"},format:{d:"the format of the text",v:0}}}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
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
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={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"}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
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
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./C5TLXtw93fBnRGm7.cjs"),l=({range:a,options:i,cell:c,onDone:r,...x})=>{const[o,t]=e.reactExports.useState(i??e.no.DefaultRangeOptions),d=e.st(n=>{let s=null;n==="Sort"&&(s={...i,options:o}),r?.(s)},[o,r,i]);return e.jsxRuntimeExports.jsx(e.$4,{title:"Sort",options:["Sort","Cancel"],onDone:d,...x,children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column"},children:[e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:!o.reverse,onChange:()=>t(n=>({...n,reverse:!n.reverse}))}),label:"Is Ascending",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:o.hasHeader,onChange:()=>t(n=>({...n,hasHeader:!n.hasHeader}))}),label:"Has Header",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:o.collatorOptions?.sensitivity===e.no.CaseSensitiveOptions.sensitivity,onChange:()=>t(n=>({...n,collatorOptions:o.collatorOptions?.sensitivity===e.no.CaseSensitiveOptions.sensitivity?e.no.CaseInsensitiveOptions:e.no.CaseSensitiveOptions}))}),label:"Case Sensitive",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:o.orientation===e.F.Orientation.Row,onChange:()=>t(n=>{const s=n.orientation===e.F.Orientation.Row?e.F.Orientation.Column:e.F.Orientation.Row;return{...a.getDefaultSortCriteria(s,c).options,includeHidden:n.includeHidden,reverse:n.reverse,orientation:s}})}),label:"Row Sort",labelPlacement:"end"}),e.jsxRuntimeExports.jsx(e.FormControlLabel,{control:e.jsxRuntimeExports.jsx(e.Checkbox,{checked:o.includeHidden,onChange:()=>t(n=>({...n,includeHidden:!n.includeHidden}))}),label:"Include Hidden",labelPlacement:"end"})]})})};exports.SortDialog=l,exports.default=l;
@@ -1,6 +0,0 @@
1
- "use strict";/**
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
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={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"}}}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
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
- */function Pe(){}function q(e){return typeof e=="object"&&e!==null||typeof e=="function"}Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const er=Pe;function p(e,t){try{Object.defineProperty(e,"name",{value:t,configurable:!0})}catch{}}const gt=Promise,Zr=Promise.resolve.bind(gt),eo=Promise.prototype.then,to=Promise.reject.bind(gt),ro=Zr;function C(e){return new gt(e)}function y(e){return C(t=>t(e))}function c(e){return to(e)}function B(e,t,r){return eo.call(e,t,r)}function z(e,t,r){B(B(e,t,r),void 0,er)}function ot(e,t){z(e,t)}function ft(e,t){z(e,void 0,t)}function ae(e,t,r){return B(e,t,r)}function Ae(e){B(e,void 0,er)}let se=e=>{if(typeof queueMicrotask=="function")se=queueMicrotask;else{const t=y(void 0);se=r=>B(t,r)}return se(e)};function pe(e,t,r){if(typeof e!="function")throw new TypeError("Argument is not a function");return Function.prototype.apply.call(e,t,r)}function we(e,t,r){try{return y(pe(e,t,r))}catch(o){return c(o)}}class k{constructor(){this._cursor=0,this._size=0,this._front={_elements:[],_next:void 0},this._back=this._front,this._cursor=0,this._size=0}get length(){return this._size}push(t){const r=this._back;let o=r;r._elements.length===16383&&(o={_elements:[],_next:void 0}),r._elements.push(t),o!==r&&(this._back=o,r._next=o),++this._size}shift(){const t=this._front;let r=t;const o=this._cursor;let i=o+1;const n=t._elements,s=n[o];return i===16384&&(r=t._next,i=0),--this._size,this._cursor=i,t!==r&&(this._front=r),n[o]=void 0,s}forEach(t){let r=this._cursor,o=this._front,i=o._elements;for(;!(r===i.length&&o._next===void 0||r===i.length&&(o=o._next,i=o._elements,r=0,i.length===0));)t(i[r]),++r}peek(){const t=this._front,r=this._cursor;return t._elements[r]}}const tr=Symbol("[[AbortSteps]]"),rr=Symbol("[[ErrorSteps]]"),St=Symbol("[[CancelSteps]]"),Rt=Symbol("[[PullSteps]]"),Tt=Symbol("[[ReleaseSteps]]");function or(e,t){var r;e._ownerReadableStream=t,t._reader=e,t._state==="readable"?bt(e):t._state==="closed"?(bt(r=e),ir(r)):nr(e,t._storedError)}function qt(e,t){return W(e._ownerReadableStream,t)}function M(e){const t=e._ownerReadableStream;t._state==="readable"?Et(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")):nr(e,new TypeError("Reader was released and can no longer be used to monitor the stream's closedness")),t._readableStreamController[Tt](),t._reader=void 0,e._ownerReadableStream=void 0}function Ge(e){return new TypeError("Cannot "+e+" a stream using a released reader")}function bt(e){e._closedPromise=C((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r})}function nr(e,t){bt(e),Et(e,t)}function Et(e,t){e._closedPromise_reject!==void 0&&(Ae(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}function ir(e){e._closedPromise_resolve!==void 0&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0)}const Mt=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},oo=Math.trunc||function(e){return e<0?Math.ceil(e):Math.floor(e)};function U(e,t){if(e!==void 0&&typeof(r=e)!="object"&&typeof r!="function")throw new TypeError(`${t} is not an object.`);var r}function J(e,t){if(typeof e!="function")throw new TypeError(`${t} is not a function.`)}function ar(e,t){if(!function(r){return typeof r=="object"&&r!==null||typeof r=="function"}(e))throw new TypeError(`${t} is not an object.`)}function le(e,t,r){if(e===void 0)throw new TypeError(`Parameter ${t} is required in '${r}'.`)}function xt(e,t,r){if(e===void 0)throw new TypeError(`${t} is required in '${r}'.`)}function sr(e){return Number(e)}function Nt(e){return e===0?0:e}function Pt(e,t){const r=Number.MAX_SAFE_INTEGER;let o=Number(e);if(o=Nt(o),!Mt(o))throw new TypeError(`${t} is not a finite number`);if(o=Nt(oo(o)),o<0||o>r)throw new TypeError(`${t} is outside the accepted range of 0 to ${r}, inclusive`);return Mt(o)&&o!==0?o:0}function Ct(e,t){if(!N(e))throw new TypeError(`${t} is not a ReadableStream.`)}function fe(e){return new Y(e)}function lr(e,t){e._reader._readRequests.push(t)}function Ot(e,t,r){const o=e._reader._readRequests.shift();r?o._closeSteps():o._chunkSteps(t)}function Ze(e){return e._reader._readRequests.length}function ur(e){const t=e._reader;return t!==void 0&&!!H(t)}class Y{constructor(t){if(le(t,1,"ReadableStreamDefaultReader"),Ct(t,"First parameter"),G(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");or(this,t),this._readRequests=new k}get closed(){return H(this)?this._closedPromise:c(ze("closed"))}cancel(t=void 0){return H(this)?this._ownerReadableStream===void 0?c(Ge("cancel")):qt(this,t):c(ze("cancel"))}read(){if(!H(this))return c(ze("read"));if(this._ownerReadableStream===void 0)return c(Ge("read from"));let t,r;const o=C((i,n)=>{t=i,r=n});return Ce(this,{_chunkSteps:i=>t({value:i,done:!1}),_closeSteps:()=>t({value:void 0,done:!0}),_errorSteps:i=>r(i)}),o}releaseLock(){if(!H(this))throw ze("releaseLock");this._ownerReadableStream!==void 0&&(M(this),cr(this,new TypeError("Reader was released")))}}function H(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readRequests")&&e instanceof Y}function Ce(e,t){const r=e._ownerReadableStream;r._disturbed=!0,r._state==="closed"?t._closeSteps():r._state==="errored"?t._errorSteps(r._storedError):r._readableStreamController[Rt](t)}function cr(e,t){const r=e._readRequests;e._readRequests=new k,r.forEach(o=>{o._errorSteps(t)})}function ze(e){return new TypeError(`ReadableStreamDefaultReader.prototype.${e} can only be used on a ReadableStreamDefaultReader`)}var nt,it,at;function Se(e){return e.slice()}function dr(e,t,r,o,i){new Uint8Array(e).set(new Uint8Array(r,o,i),t)}Object.defineProperties(Y.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),p(Y.prototype.cancel,"cancel"),p(Y.prototype.read,"read"),p(Y.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Y.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultReader",configurable:!0});let ue=e=>(ue=typeof e.transfer=="function"?t=>t.transfer():typeof structuredClone=="function"?t=>structuredClone(t,{transfer:[t]}):t=>t,ue(e)),ce=e=>(ce=typeof e.detached=="boolean"?t=>t.detached:t=>t.byteLength===0,ce(e));function fr(e,t,r){if(e.slice)return e.slice(t,r);const o=r-t,i=new ArrayBuffer(o);return dr(i,0,e,t,o),i}function Te(e,t){const r=e[t];if(r!=null){if(typeof r!="function")throw new TypeError(`${String(t)} is not a function`);return r}}function Yt(e){try{const t=e.done,r=e.value;return B(ro(r),o=>({done:t,value:o}))}catch(t){return c(t)}}const ke=(at=(nt=Symbol.asyncIterator)!==null&&nt!==void 0?nt:(it=Symbol.for)===null||it===void 0?void 0:it.call(Symbol,"Symbol.asyncIterator"))!==null&&at!==void 0?at:"@@asyncIterator";function br(e,t="sync",r){if(r===void 0)if(t==="async"){if((r=Te(e,ke))===void 0)return function(i){const n={next(){let s;try{s=hr(i)}catch(a){return c(a)}return Yt(s)},return(s){let a;try{const l=Te(i.iterator,"return");if(l===void 0)return y({done:!0,value:s});a=pe(l,i.iterator,[s])}catch(l){return c(l)}return q(a)?Yt(a):c(new TypeError("The iterator.return() method must return an object"))}};return{iterator:n,nextMethod:n.next,done:!1}}(br(e,"sync",Te(e,Symbol.iterator)))}else r=Te(e,Symbol.iterator);if(r===void 0)throw new TypeError("The object is not iterable");const o=pe(r,e,[]);if(!q(o))throw new TypeError("The iterator method must return an object");return{iterator:o,nextMethod:o.next,done:!1}}function hr(e){const t=pe(e.nextMethod,e.iterator,[]);if(!q(t))throw new TypeError("The iterator.next() method must return an object");return t}class _r{constructor(t,r){this._ongoingPromise=void 0,this._isFinished=!1,this._reader=t,this._preventCancel=r}next(){const t=()=>this._nextSteps();return this._ongoingPromise=this._ongoingPromise?ae(this._ongoingPromise,t,t):t(),this._ongoingPromise}return(t){const r=()=>this._returnSteps(t);return this._ongoingPromise=this._ongoingPromise?ae(this._ongoingPromise,r,r):r(),this._ongoingPromise}_nextSteps(){if(this._isFinished)return Promise.resolve({value:void 0,done:!0});const t=this._reader;let r,o;const i=C((n,s)=>{r=n,o=s});return Ce(t,{_chunkSteps:n=>{this._ongoingPromise=void 0,se(()=>r({value:n,done:!1}))},_closeSteps:()=>{this._ongoingPromise=void 0,this._isFinished=!0,M(t),r({value:void 0,done:!0})},_errorSteps:n=>{this._ongoingPromise=void 0,this._isFinished=!0,M(t),o(n)}}),i}_returnSteps(t){if(this._isFinished)return Promise.resolve({value:t,done:!0});this._isFinished=!0;const r=this._reader;if(!this._preventCancel){const o=qt(r,t);return M(r),ae(o,()=>({value:t,done:!0}))}return M(r),y({value:t,done:!0})}}const pr={next(){return Vt(this)?this._asyncIteratorImpl.next():c(Ut("next"))},return(e){return Vt(this)?this._asyncIteratorImpl.return(e):c(Ut("return"))},[ke](){return this}};function Vt(e){if(!q(e)||!Object.prototype.hasOwnProperty.call(e,"_asyncIteratorImpl"))return!1;try{return e._asyncIteratorImpl instanceof _r}catch{return!1}}function Ut(e){return new TypeError(`ReadableStreamAsyncIterator.${e} can only be used on a ReadableSteamAsyncIterator`)}Object.defineProperty(pr,ke,{enumerable:!1});const mr=Number.isNaN||function(e){return e!=e};function Ht(e){const t=fr(e.buffer,e.byteOffset,e.byteOffset+e.byteLength);return new Uint8Array(t)}function ht(e){const t=e._queue.shift();return e._queueTotalSize-=t.size,e._queueTotalSize<0&&(e._queueTotalSize=0),t.value}function jt(e,t,r){if(typeof(o=r)!="number"||mr(o)||o<0||r===1/0)throw new RangeError("Size must be a finite, non-NaN, non-negative number.");var o;e._queue.push({value:t,size:r}),e._queueTotalSize+=r}function K(e){e._queue=new k,e._queueTotalSize=0}function yr(e){return e===DataView}class ne{constructor(){throw new TypeError("Illegal constructor")}get view(){if(!st(this))throw lt("view");return this._view}respond(t){if(!st(this))throw lt("respond");if(le(t,1,"respond"),t=Pt(t,"First parameter"),this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(ce(this._view.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be used as a response");Ve(this._associatedReadableByteStreamController,t)}respondWithNewView(t){if(!st(this))throw lt("respondWithNewView");if(le(t,1,"respondWithNewView"),!ArrayBuffer.isView(t))throw new TypeError("You can only respond with array buffer views");if(this._associatedReadableByteStreamController===void 0)throw new TypeError("This BYOB request has been invalidated");if(ce(t.buffer))throw new TypeError("The given view's buffer has been detached and so cannot be used as a response");Ue(this._associatedReadableByteStreamController,t)}}Object.defineProperties(ne.prototype,{respond:{enumerable:!0},respondWithNewView:{enumerable:!0},view:{enumerable:!0}}),p(ne.prototype.respond,"respond"),p(ne.prototype.respondWithNewView,"respondWithNewView"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(ne.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBRequest",configurable:!0});class ${constructor(){throw new TypeError("Illegal constructor")}get byobRequest(){if(!re(this))throw Re("byobRequest");return pt(this)}get desiredSize(){if(!re(this))throw Re("desiredSize");return Or(this)}close(){if(!re(this))throw Re("close");if(this._closeRequested)throw new TypeError("The stream has already been closed; do not close it again!");const t=this._controlledReadableByteStream._state;if(t!=="readable")throw new TypeError(`The stream (in ${t} state) is not in the readable state and cannot be closed`);qe(this)}enqueue(t){if(!re(this))throw Re("enqueue");if(le(t,1,"enqueue"),!ArrayBuffer.isView(t))throw new TypeError("chunk must be an array buffer view");if(t.byteLength===0)throw new TypeError("chunk must have non-zero byteLength");if(t.buffer.byteLength===0)throw new TypeError("chunk's buffer must have non-zero byteLength");if(this._closeRequested)throw new TypeError("stream is closed or draining");const r=this._controlledReadableByteStream._state;if(r!=="readable")throw new TypeError(`The stream (in ${r} state) is not in the readable state and cannot be enqueued to`);Ye(this,t)}error(t=void 0){if(!re(this))throw Re("error");A(this,t)}[St](t){vr(this),K(this);const r=this._cancelAlgorithm(t);return et(this),r}[Rt](t){const r=this._controlledReadableByteStream;if(this._queueTotalSize>0)return void Cr(this,t);const o=this._autoAllocateChunkSize;if(o!==void 0){let i;try{i=new ArrayBuffer(o)}catch(s){return void t._errorSteps(s)}const n={buffer:i,bufferByteLength:o,byteOffset:0,byteLength:o,bytesFilled:0,minimumFill:1,elementSize:1,viewConstructor:Uint8Array,readerType:"default"};this._pendingPullIntos.push(n)}lr(r,t),de(this)}[Tt](){if(this._pendingPullIntos.length>0){const t=this._pendingPullIntos.peek();t.readerType="none",this._pendingPullIntos=new k,this._pendingPullIntos.push(t)}}}function re(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableByteStream")&&e instanceof $}function st(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_associatedReadableByteStreamController")&&e instanceof ne}function de(e){(function(t){const r=t._controlledReadableByteStream;return!(r._state!=="readable"||t._closeRequested||!t._started)&&(!!(ur(r)&&Ze(r)>0||kt(r)&&Ar(r)>0)||Or(t)>0)})(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,z(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,de(e)),null),t=>(A(e,t),null))))}function vr(e){At(e),e._pendingPullIntos=new k}function wr(e,t){let r=!1;e._state==="closed"&&(r=!0);const o=gr(t);t.readerType==="default"?Ot(e,o,r):function(i,n,s){const a=i._reader._readIntoRequests.shift();s?a._closeSteps(n):a._chunkSteps(n)}(e,o,r)}function xe(e,t){for(let r=0;r<t.length;++r)wr(e,t[r])}function gr(e){const t=e.bytesFilled,r=e.elementSize;return new e.viewConstructor(e.buffer,e.byteOffset,t/r)}function Ne(e,t,r,o){e._queue.push({buffer:t,byteOffset:r,byteLength:o}),e._queueTotalSize+=o}function Sr(e,t,r,o){let i;try{i=fr(t,r,r+o)}catch(n){throw A(e,n),n}Ne(e,i,0,o)}function Rr(e,t){t.bytesFilled>0&&Sr(e,t.buffer,t.byteOffset,t.bytesFilled),he(e)}function Tr(e,t){const r=Math.min(e._queueTotalSize,t.byteLength-t.bytesFilled),o=t.bytesFilled+r;let i=r,n=!1;const s=o-o%t.elementSize;s>=t.minimumFill&&(i=s-t.bytesFilled,n=!0);const a=e._queue;for(;i>0;){const l=a.peek(),u=Math.min(i,l.byteLength),b=t.byteOffset+t.bytesFilled;dr(t.buffer,b,l.buffer,l.byteOffset,u),l.byteLength===u?a.shift():(l.byteOffset+=u,l.byteLength-=u),e._queueTotalSize-=u,qr(e,u,t),i-=u}return n}function qr(e,t,r){r.bytesFilled+=t}function Er(e){e._queueTotalSize===0&&e._closeRequested?(et(e),We(e._controlledReadableByteStream)):de(e)}function At(e){e._byobRequest!==null&&(e._byobRequest._associatedReadableByteStreamController=void 0,e._byobRequest._view=null,e._byobRequest=null)}function _t(e){const t=[];for(;e._pendingPullIntos.length>0&&e._queueTotalSize!==0;){const r=e._pendingPullIntos.peek();Tr(e,r)&&(he(e),t.push(r))}return t}function Pr(e,t){const r=e._pendingPullIntos.peek();At(e),e._controlledReadableByteStream._state==="closed"?function(o,i){i.readerType==="none"&&he(o);const n=o._controlledReadableByteStream;if(kt(n)){const s=[];for(let a=0;a<Ar(n);++a)s.push(he(o));xe(n,s)}}(e,r):function(o,i,n){if(qr(0,i,n),n.readerType==="none"){Rr(o,n);const l=_t(o);return void xe(o._controlledReadableByteStream,l)}if(n.bytesFilled<n.minimumFill)return;he(o);const s=n.bytesFilled%n.elementSize;if(s>0){const l=n.byteOffset+n.bytesFilled;Sr(o,n.buffer,l-s,s)}n.bytesFilled-=s;const a=_t(o);wr(o._controlledReadableByteStream,n),xe(o._controlledReadableByteStream,a)}(e,t,r),de(e)}function he(e){return e._pendingPullIntos.shift()}function et(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0}function qe(e){const t=e._controlledReadableByteStream;if(!e._closeRequested&&t._state==="readable")if(e._queueTotalSize>0)e._closeRequested=!0;else{if(e._pendingPullIntos.length>0){const r=e._pendingPullIntos.peek();if(r.bytesFilled%r.elementSize!=0){const o=new TypeError("Insufficient bytes to fill elements in the given buffer");throw A(e,o),o}}et(e),We(t)}}function Ye(e,t){const r=e._controlledReadableByteStream;if(e._closeRequested||r._state!=="readable")return;const{buffer:o,byteOffset:i,byteLength:n}=t;if(ce(o))throw new TypeError("chunk's buffer is detached and so cannot be enqueued");const s=ue(o);if(e._pendingPullIntos.length>0){const a=e._pendingPullIntos.peek();if(ce(a.buffer))throw new TypeError("The BYOB request's buffer has been detached and so cannot be filled with an enqueued chunk");At(e),a.buffer=ue(a.buffer),a.readerType==="none"&&Rr(e,a)}if(ur(r))(function(a){const l=a._controlledReadableByteStream._reader;for(;l._readRequests.length>0;){if(a._queueTotalSize===0)return;Cr(a,l._readRequests.shift())}})(e),Ze(r)===0?Ne(e,s,i,n):(e._pendingPullIntos.length>0&&he(e),Ot(r,new Uint8Array(s,i,n),!1));else if(kt(r)){Ne(e,s,i,n);const a=_t(e);xe(e._controlledReadableByteStream,a)}else Ne(e,s,i,n);de(e)}function A(e,t){const r=e._controlledReadableByteStream;r._state==="readable"&&(vr(e),K(e),et(e),Kr(r,t))}function Cr(e,t){const r=e._queue.shift();e._queueTotalSize-=r.byteLength,Er(e);const o=new Uint8Array(r.buffer,r.byteOffset,r.byteLength);t._chunkSteps(o)}function pt(e){if(e._byobRequest===null&&e._pendingPullIntos.length>0){const i=e._pendingPullIntos.peek(),n=new Uint8Array(i.buffer,i.byteOffset+i.bytesFilled,i.byteLength-i.bytesFilled),s=Object.create(ne.prototype);r=e,o=n,(t=s)._associatedReadableByteStreamController=r,t._view=o,e._byobRequest=s}var t,r,o;return e._byobRequest}function Or(e){const t=e._controlledReadableByteStream._state;return t==="errored"?null:t==="closed"?0:e._strategyHWM-e._queueTotalSize}function Ve(e,t){const r=e._pendingPullIntos.peek();if(e._controlledReadableByteStream._state==="closed"){if(t!==0)throw new TypeError("bytesWritten must be 0 when calling respond() on a closed stream")}else{if(t===0)throw new TypeError("bytesWritten must be greater than 0 when calling respond() on a readable stream");if(r.bytesFilled+t>r.byteLength)throw new RangeError("bytesWritten out of range")}r.buffer=ue(r.buffer),Pr(e,t)}function Ue(e,t){const r=e._pendingPullIntos.peek();if(e._controlledReadableByteStream._state==="closed"){if(t.byteLength!==0)throw new TypeError("The view's length must be 0 when calling respondWithNewView() on a closed stream")}else if(t.byteLength===0)throw new TypeError("The view's length must be greater than 0 when calling respondWithNewView() on a readable stream");if(r.byteOffset+r.bytesFilled!==t.byteOffset)throw new RangeError("The region specified by view does not match byobRequest");if(r.bufferByteLength!==t.buffer.byteLength)throw new RangeError("The buffer of view has different capacity than byobRequest");if(r.bytesFilled+t.byteLength>r.byteLength)throw new RangeError("The region specified by view is larger than byobRequest");const o=t.byteLength;r.buffer=ue(t.buffer),Pr(e,o)}function jr(e,t,r,o,i,n,s){t._controlledReadableByteStream=e,t._pullAgain=!1,t._pulling=!1,t._byobRequest=null,t._queue=t._queueTotalSize=void 0,K(t),t._closeRequested=!1,t._started=!1,t._strategyHWM=n,t._pullAlgorithm=o,t._cancelAlgorithm=i,t._autoAllocateChunkSize=s,t._pendingPullIntos=new k,e._readableStreamController=t,z(y(r()),()=>(t._started=!0,de(t),null),a=>(A(t,a),null))}function lt(e){return new TypeError(`ReadableStreamBYOBRequest.prototype.${e} can only be used on a ReadableStreamBYOBRequest`)}function Re(e){return new TypeError(`ReadableByteStreamController.prototype.${e} can only be used on a ReadableByteStreamController`)}function no(e,t){if((e=`${e}`)!="byob")throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamReaderMode`);return e}function Gt(e){return new V(e)}function Xt(e,t){e._reader._readIntoRequests.push(t)}function Ar(e){return e._reader._readIntoRequests.length}function kt(e){const t=e._reader;return t!==void 0&&!!ie(t)}Object.defineProperties($.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},byobRequest:{enumerable:!0},desiredSize:{enumerable:!0}}),p($.prototype.close,"close"),p($.prototype.enqueue,"enqueue"),p($.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty($.prototype,Symbol.toStringTag,{value:"ReadableByteStreamController",configurable:!0});class V{constructor(t){if(le(t,1,"ReadableStreamBYOBReader"),Ct(t,"First parameter"),G(t))throw new TypeError("This stream has already been locked for exclusive reading by another reader");if(!re(t._readableStreamController))throw new TypeError("Cannot construct a ReadableStreamBYOBReader for a stream not constructed with a byte source");or(this,t),this._readIntoRequests=new k}get closed(){return ie(this)?this._closedPromise:c(Be("closed"))}cancel(t=void 0){return ie(this)?this._ownerReadableStream===void 0?c(Ge("cancel")):qt(this,t):c(Be("cancel"))}read(t,r={}){if(!ie(this))return c(Be("read"));if(!ArrayBuffer.isView(t))return c(new TypeError("view must be an array buffer view"));if(t.byteLength===0)return c(new TypeError("view must have non-zero byteLength"));if(t.buffer.byteLength===0)return c(new TypeError("view's buffer must have non-zero byteLength"));if(ce(t.buffer))return c(new TypeError("view's buffer has been detached"));let o;try{U(i=r,"options"),o={min:Pt((n=i?.min)!==null&&n!==void 0?n:1,"options has member 'min' that")}}catch(d){return c(d)}var i,n;const s=o.min;if(s===0)return c(new TypeError("options.min must be greater than 0"));if(yr((a=t).constructor)){if(s>t.byteLength)return c(new RangeError("options.min must be less than or equal to view's byteLength"))}else if(s>t.length)return c(new RangeError("options.min must be less than or equal to view's length"));var a;if(this._ownerReadableStream===void 0)return c(Ge("read from"));let l,u;const b=C((d,h)=>{l=d,u=h});return kr(this,t,s,{_chunkSteps:d=>l({value:d,done:!1}),_closeSteps:d=>l({value:d,done:!0}),_errorSteps:d=>u(d)}),b}releaseLock(){if(!ie(this))throw Be("releaseLock");this._ownerReadableStream!==void 0&&(M(this),Wr(this,new TypeError("Reader was released")))}}function ie(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readIntoRequests")&&e instanceof V}function kr(e,t,r,o){const i=e._ownerReadableStream;i._disturbed=!0,i._state==="errored"?o._errorSteps(i._storedError):function(n,s,a,l){const u=n._controlledReadableByteStream,b=s.constructor,d=yr(g=b)?1:g.BYTES_PER_ELEMENT,{byteOffset:h,byteLength:R}=s,E=a*d;var g;let w;try{w=ue(s.buffer)}catch(T){return void l._errorSteps(T)}const _={buffer:w,bufferByteLength:w.byteLength,byteOffset:h,byteLength:R,bytesFilled:0,minimumFill:E,elementSize:d,viewConstructor:b,readerType:"byob"};if(n._pendingPullIntos.length>0)return n._pendingPullIntos.push(_),void Xt(u,l);if(u._state!=="closed"){if(n._queueTotalSize>0){if(Tr(n,_)){const T=gr(_);return Er(n),void l._chunkSteps(T)}if(n._closeRequested){const T=new TypeError("Insufficient bytes to fill elements in the given buffer");return A(n,T),void l._errorSteps(T)}}n._pendingPullIntos.push(_),Xt(u,l),de(n)}else{const T=new b(_.buffer,_.byteOffset,0);l._closeSteps(T)}}(i._readableStreamController,t,r,o)}function Wr(e,t){const r=e._readIntoRequests;e._readIntoRequests=new k,r.forEach(o=>{o._errorSteps(t)})}function Be(e){return new TypeError(`ReadableStreamBYOBReader.prototype.${e} can only be used on a ReadableStreamBYOBReader`)}function mt(e,t){const{highWaterMark:r}=e;if(r===void 0)return t;if(mr(r)||r<0)throw new RangeError("Invalid highWaterMark");return r}function zr(e){const{size:t}=e;return t||(()=>1)}function Br(e,t){U(e,t);const r=e?.highWaterMark,o=e?.size;return{highWaterMark:r===void 0?void 0:sr(r),size:o===void 0?void 0:io(o,`${t} has member 'size' that`)}}function io(e,t){return J(e,t),r=>sr(e(r))}function ao(e,t,r){return J(e,r),o=>we(e,t,[o])}function so(e,t,r){return J(e,r),()=>we(e,t,[])}function lo(e,t,r){return J(e,r),o=>pe(e,t,[o])}function uo(e,t,r){return J(e,r),(o,i)=>we(e,t,[o,i])}function Fr(e,t){if(!be(e))throw new TypeError(`${t} is not a WritableStream.`)}Object.defineProperties(V.prototype,{cancel:{enumerable:!0},read:{enumerable:!0},releaseLock:{enumerable:!0},closed:{enumerable:!0}}),p(V.prototype.cancel,"cancel"),p(V.prototype.read,"read"),p(V.prototype.releaseLock,"releaseLock"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(V.prototype,Symbol.toStringTag,{value:"ReadableStreamBYOBReader",configurable:!0});class oe{constructor(t={},r={}){t===void 0?t=null:ar(t,"First parameter");const o=Br(r,"Second parameter"),i=function(a,l){U(a,l);const u=a?.abort,b=a?.close,d=a?.start,h=a?.type,R=a?.write;return{abort:u===void 0?void 0:ao(u,a,`${l} has member 'abort' that`),close:b===void 0?void 0:so(b,a,`${l} has member 'close' that`),start:d===void 0?void 0:lo(d,a,`${l} has member 'start' that`),write:R===void 0?void 0:uo(R,a,`${l} has member 'write' that`),type:h}}(t,"First parameter");if((n=this)._state="writable",n._storedError=void 0,n._writer=void 0,n._writableStreamController=void 0,n._writeRequests=new k,n._inFlightWriteRequest=void 0,n._closeRequest=void 0,n._inFlightCloseRequest=void 0,n._pendingAbortRequest=void 0,n._backpressure=!1,i.type!==void 0)throw new RangeError("Invalid type is specified");var n;const s=zr(o);(function(a,l,u,b){const d=Object.create(Oe.prototype);let h,R,E,g;h=l.start!==void 0?()=>l.start(d):()=>{},R=l.write!==void 0?w=>l.write(w,d):()=>y(void 0),E=l.close!==void 0?()=>l.close():()=>y(void 0),g=l.abort!==void 0?w=>l.abort(w):()=>y(void 0),function(w,_,T,I,v,f,m,S){_._controlledWritableStream=w,w._writableStreamController=_,_._queue=void 0,_._queueTotalSize=void 0,K(_),_._abortReason=void 0,_._abortController=function(){if(typeof AbortController=="function")return new AbortController}(),_._started=!1,_._strategySizeAlgorithm=S,_._strategyHWM=m,_._writeAlgorithm=I,_._closeAlgorithm=v,_._abortAlgorithm=f;const O=Ft(_);Bt(w,O),z(y(T()),()=>(_._started=!0,tt(_),null),j=>(_._started=!0,yt(w,j),null))}(a,d,h,R,E,g,u,b)})(this,i,mt(o,1),s)}get locked(){if(!be(this))throw Ie("locked");return _e(this)}abort(t=void 0){return be(this)?_e(this)?c(new TypeError("Cannot abort a stream that already has a writer")):Xe(this,t):c(Ie("abort"))}close(){return be(this)?_e(this)?c(new TypeError("Cannot close a stream that already has a writer")):F(this)?c(new TypeError("Cannot close an already-closing stream")):Lr(this):c(Ie("close"))}getWriter(){if(!be(this))throw Ie("getWriter");return Ir(this)}}function Ir(e){return new L(e)}function be(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_writableStreamController")&&e instanceof oe}function _e(e){return e._writer!==void 0}function Xe(e,t){var r;if(e._state==="closed"||e._state==="errored")return y(void 0);e._writableStreamController._abortReason=t,(r=e._writableStreamController._abortController)===null||r===void 0||r.abort(t);const o=e._state;if(o==="closed"||o==="errored")return y(void 0);if(e._pendingAbortRequest!==void 0)return e._pendingAbortRequest._promise;let i=!1;o==="erroring"&&(i=!0,t=void 0);const n=C((s,a)=>{e._pendingAbortRequest={_promise:void 0,_resolve:s,_reject:a,_reason:t,_wasAlreadyErroring:i}});return e._pendingAbortRequest._promise=n,i||Wt(e,t),n}function Lr(e){const t=e._state;if(t==="closed"||t==="errored")return c(new TypeError(`The stream (in ${t} state) is not in the writable state and cannot be closed`));const r=C((n,s)=>{const a={_resolve:n,_reject:s};e._closeRequest=a}),o=e._writer;var i;return o!==void 0&&e._backpressure&&t==="writable"&&Lt(o),jt(i=e._writableStreamController,Nr,0),tt(i),r}function yt(e,t){e._state!=="writable"?zt(e):Wt(e,t)}function Wt(e,t){const r=e._writableStreamController;e._state="erroring",e._storedError=t;const o=e._writer;var i;o!==void 0&&Dr(o,t),(i=e)._inFlightWriteRequest===void 0&&i._inFlightCloseRequest===void 0&&r._started&&zt(e)}function zt(e){e._state="errored",e._writableStreamController[rr]();const t=e._storedError;if(e._writeRequests.forEach(o=>{o._reject(t)}),e._writeRequests=new k,e._pendingAbortRequest===void 0)return void Fe(e);const r=e._pendingAbortRequest;if(e._pendingAbortRequest=void 0,r._wasAlreadyErroring)return r._reject(t),void Fe(e);z(e._writableStreamController[tr](r._reason),()=>(r._resolve(),Fe(e),null),o=>(r._reject(o),Fe(e),null))}function F(e){return e._closeRequest!==void 0||e._inFlightCloseRequest!==void 0}function Fe(e){e._closeRequest!==void 0&&(e._closeRequest._reject(e._storedError),e._closeRequest=void 0);const t=e._writer;t!==void 0&&It(t,e._storedError)}function Bt(e,t){const r=e._writer;r!==void 0&&t!==e._backpressure&&(t?rt(r):Lt(r)),e._backpressure=t}Object.defineProperties(oe.prototype,{abort:{enumerable:!0},close:{enumerable:!0},getWriter:{enumerable:!0},locked:{enumerable:!0}}),p(oe.prototype.abort,"abort"),p(oe.prototype.close,"close"),p(oe.prototype.getWriter,"getWriter"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(oe.prototype,Symbol.toStringTag,{value:"WritableStream",configurable:!0});class L{constructor(t){if(le(t,1,"WritableStreamDefaultWriter"),Fr(t,"First parameter"),_e(t))throw new TypeError("This stream has already been locked for exclusive writing by another writer");this._ownerWritableStream=t,t._writer=this;const r=t._state;if(r==="writable")!F(t)&&t._backpressure?rt(this):Jt(this),He(this);else if(r==="erroring")wt(this,t._storedError),He(this);else if(r==="closed")Jt(this),He(this),Hr(this);else{const o=t._storedError;wt(this,o),Ur(this,o)}}get closed(){return Q(this)?this._closedPromise:c(Z("closed"))}get desiredSize(){if(!Q(this))throw Z("desiredSize");if(this._ownerWritableStream===void 0)throw Ee("desiredSize");return function(t){const r=t._ownerWritableStream,o=r._state;return o==="errored"||o==="erroring"?null:o==="closed"?0:Yr(r._writableStreamController)}(this)}get ready(){return Q(this)?this._readyPromise:c(Z("ready"))}abort(t=void 0){return Q(this)?this._ownerWritableStream===void 0?c(Ee("abort")):(r=t,Xe(this._ownerWritableStream,r)):c(Z("abort"));var r}close(){if(!Q(this))return c(Z("close"));const t=this._ownerWritableStream;return t===void 0?c(Ee("close")):F(t)?c(new TypeError("Cannot close an already-closing stream")):$r(this)}releaseLock(){if(!Q(this))throw Z("releaseLock");this._ownerWritableStream!==void 0&&Mr(this)}write(t=void 0){return Q(this)?this._ownerWritableStream===void 0?c(Ee("write to")):xr(this,t):c(Z("write"))}}function Q(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_ownerWritableStream")&&e instanceof L}function $r(e){return Lr(e._ownerWritableStream)}function Dr(e,t){e._readyPromiseState==="pending"?Gr(e,t):wt(e,t)}function Mr(e){const t=e._ownerWritableStream,r=new TypeError("Writer was released and can no longer be used to monitor the stream's closedness");var o,i;Dr(e,r),i=r,(o=e)._closedPromiseState==="pending"?It(o,i):Ur(o,i),t._writer=void 0,e._ownerWritableStream=void 0}function xr(e,t){const r=e._ownerWritableStream,o=r._writableStreamController,i=function(l,u){if(l._strategySizeAlgorithm===void 0)return 1;try{return l._strategySizeAlgorithm(u)}catch(b){return vt(l,b),1}}(o,t);if(r!==e._ownerWritableStream)return c(Ee("write to"));const n=r._state;if(n==="errored")return c(r._storedError);if(F(r)||n==="closed")return c(new TypeError("The stream is closing or closed and cannot be written to"));if(n==="erroring")return c(r._storedError);const s=(a=r,C((l,u)=>{const b={_resolve:l,_reject:u};a._writeRequests.push(b)}));var a;return function(l,u,b){try{jt(l,u,b)}catch(h){return void vt(l,h)}const d=l._controlledWritableStream;F(d)||d._state!=="writable"||Bt(d,Ft(l)),tt(l)}(o,t,i),s}Object.defineProperties(L.prototype,{abort:{enumerable:!0},close:{enumerable:!0},releaseLock:{enumerable:!0},write:{enumerable:!0},closed:{enumerable:!0},desiredSize:{enumerable:!0},ready:{enumerable:!0}}),p(L.prototype.abort,"abort"),p(L.prototype.close,"close"),p(L.prototype.releaseLock,"releaseLock"),p(L.prototype.write,"write"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(L.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultWriter",configurable:!0});const Nr={};class Oe{constructor(){throw new TypeError("Illegal constructor")}get abortReason(){if(!ut(this))throw ct("abortReason");return this._abortReason}get signal(){if(!ut(this))throw ct("signal");if(this._abortController===void 0)throw new TypeError("WritableStreamDefaultController.prototype.signal is not supported");return this._abortController.signal}error(t=void 0){if(!ut(this))throw ct("error");this._controlledWritableStream._state==="writable"&&Vr(this,t)}[tr](t){const r=this._abortAlgorithm(t);return Je(this),r}[rr](){K(this)}}function ut(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledWritableStream")&&e instanceof Oe}function Je(e){e._writeAlgorithm=void 0,e._closeAlgorithm=void 0,e._abortAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function Yr(e){return e._strategyHWM-e._queueTotalSize}function tt(e){const t=e._controlledWritableStream;if(!e._started||t._inFlightWriteRequest!==void 0)return;if(t._state==="erroring")return void zt(t);if(e._queue.length===0)return;const r=e._queue.peek().value;r===Nr?function(o){const i=o._controlledWritableStream;var n;(n=i)._inFlightCloseRequest=n._closeRequest,n._closeRequest=void 0,ht(o);const s=o._closeAlgorithm();Je(o),z(s,()=>(function(a){a._inFlightCloseRequest._resolve(void 0),a._inFlightCloseRequest=void 0,a._state==="erroring"&&(a._storedError=void 0,a._pendingAbortRequest!==void 0&&(a._pendingAbortRequest._resolve(),a._pendingAbortRequest=void 0)),a._state="closed";const l=a._writer;l!==void 0&&Hr(l)}(i),null),a=>{return u=a,(l=i)._inFlightCloseRequest._reject(u),l._inFlightCloseRequest=void 0,l._pendingAbortRequest!==void 0&&(l._pendingAbortRequest._reject(u),l._pendingAbortRequest=void 0),yt(l,u),null;var l,u})}(e):function(o,i){const n=o._controlledWritableStream;var s;(s=n)._inFlightWriteRequest=s._writeRequests.shift(),z(o._writeAlgorithm(i),()=>{var a;(a=n)._inFlightWriteRequest._resolve(void 0),a._inFlightWriteRequest=void 0;const l=n._state;if(ht(o),!F(n)&&l==="writable"){const u=Ft(o);Bt(n,u)}return tt(o),null},a=>{return n._state==="writable"&&Je(o),u=a,(l=n)._inFlightWriteRequest._reject(u),l._inFlightWriteRequest=void 0,yt(l,u),null;var l,u})}(e,r)}function vt(e,t){e._controlledWritableStream._state==="writable"&&Vr(e,t)}function Ft(e){return Yr(e)<=0}function Vr(e,t){const r=e._controlledWritableStream;Je(e),Wt(r,t)}function Ie(e){return new TypeError(`WritableStream.prototype.${e} can only be used on a WritableStream`)}function ct(e){return new TypeError(`WritableStreamDefaultController.prototype.${e} can only be used on a WritableStreamDefaultController`)}function Z(e){return new TypeError(`WritableStreamDefaultWriter.prototype.${e} can only be used on a WritableStreamDefaultWriter`)}function Ee(e){return new TypeError("Cannot "+e+" a stream using a released writer")}function He(e){e._closedPromise=C((t,r)=>{e._closedPromise_resolve=t,e._closedPromise_reject=r,e._closedPromiseState="pending"})}function Ur(e,t){He(e),It(e,t)}function It(e,t){e._closedPromise_reject!==void 0&&(Ae(e._closedPromise),e._closedPromise_reject(t),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="rejected")}function Hr(e){e._closedPromise_resolve!==void 0&&(e._closedPromise_resolve(void 0),e._closedPromise_resolve=void 0,e._closedPromise_reject=void 0,e._closedPromiseState="resolved")}function rt(e){e._readyPromise=C((t,r)=>{e._readyPromise_resolve=t,e._readyPromise_reject=r}),e._readyPromiseState="pending"}function wt(e,t){rt(e),Gr(e,t)}function Jt(e){rt(e),Lt(e)}function Gr(e,t){e._readyPromise_reject!==void 0&&(Ae(e._readyPromise),e._readyPromise_reject(t),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="rejected")}function Lt(e){e._readyPromise_resolve!==void 0&&(e._readyPromise_resolve(void 0),e._readyPromise_resolve=void 0,e._readyPromise_reject=void 0,e._readyPromiseState="fulfilled")}Object.defineProperties(Oe.prototype,{abortReason:{enumerable:!0},signal:{enumerable:!0},error:{enumerable:!0}}),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(Oe.prototype,Symbol.toStringTag,{value:"WritableStreamDefaultController",configurable:!0});const co=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof global<"u"?global:void 0,fo=function(){const e=co?.DOMException;return function(t){if(typeof t!="function"&&typeof t!="object"||t.name!=="DOMException")return!1;try{return new t,!0}catch{return!1}}(e)?e:void 0}()||function(){const e=function(t,r){this.message=t||"",this.name=r||"Error",Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)};return p(e,"DOMException"),e.prototype=Object.create(Error.prototype),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,configurable:!0}),e}();function Kt(e,t,r,o,i,n){const s=fe(e),a=Ir(t);e._disturbed=!0;let l=!1,u=y(void 0);return C((b,d)=>{let h;if(n!==void 0){if(h=()=>{const f=n.reason!==void 0?n.reason:new fo("Aborted","AbortError"),m=[];o||m.push(()=>t._state==="writable"?Xe(t,f):y(void 0)),i||m.push(()=>e._state==="readable"?W(e,f):y(void 0)),T(()=>Promise.all(m.map(S=>S())),!0,f)},n.aborted)return void h();n.addEventListener("abort",h)}var R,E,g;if(_(e,s._closedPromise,f=>(o?I(!0,f):T(()=>Xe(t,f),!0,f),null)),_(t,a._closedPromise,f=>(i?I(!0,f):T(()=>W(e,f),!0,f),null)),R=e,E=s._closedPromise,g=()=>(r?I():T(()=>function(f){const m=f._ownerWritableStream,S=m._state;return F(m)||S==="closed"?y(void 0):S==="errored"?c(m._storedError):$r(f)}(a)),null),R._state==="closed"?g():ot(E,g),F(t)||t._state==="closed"){const f=new TypeError("the destination writable stream closed before all data could be piped to it");i?I(!0,f):T(()=>W(e,f),!0,f)}function w(){const f=u;return B(u,()=>f!==u?w():void 0)}function _(f,m,S){f._state==="errored"?S(f._storedError):ft(m,S)}function T(f,m,S){function O(){return z(f(),()=>v(m,S),j=>v(!0,j)),null}l||(l=!0,t._state!=="writable"||F(t)?O():ot(w(),O))}function I(f,m){l||(l=!0,t._state!=="writable"||F(t)?v(f,m):ot(w(),()=>v(f,m)))}function v(f,m){return Mr(a),M(s),n!==void 0&&n.removeEventListener("abort",h),f?d(m):b(void 0),null}Ae(C((f,m)=>{(function S(O){O?f():B(l?y(!0):B(a._readyPromise,()=>C((j,x)=>{Ce(s,{_chunkSteps:ge=>{u=B(xr(a,ge),void 0,Pe),j(!1)},_closeSteps:()=>j(!0),_errorSteps:x})})),S,m)})(!1)}))})}class D{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!Le(this))throw $e("desiredSize");return $t(this)}close(){if(!Le(this))throw $e("close");if(!ve(this))throw new TypeError("The stream is not in a state that permits close");me(this)}enqueue(t=void 0){if(!Le(this))throw $e("enqueue");if(!ve(this))throw new TypeError("The stream is not in a state that permits enqueue");return ye(this,t)}error(t=void 0){if(!Le(this))throw $e("error");X(this,t)}[St](t){K(this);const r=this._cancelAlgorithm(t);return Ke(this),r}[Rt](t){const r=this._controlledReadableStream;if(this._queue.length>0){const o=ht(this);this._closeRequested&&this._queue.length===0?(Ke(this),We(r)):je(this),t._chunkSteps(o)}else lr(r,t),je(this)}[Tt](){}}function Le(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledReadableStream")&&e instanceof D}function je(e){Xr(e)&&(e._pulling?e._pullAgain=!0:(e._pulling=!0,z(e._pullAlgorithm(),()=>(e._pulling=!1,e._pullAgain&&(e._pullAgain=!1,je(e)),null),t=>(X(e,t),null))))}function Xr(e){const t=e._controlledReadableStream;return!!ve(e)&&!!e._started&&(!!(G(t)&&Ze(t)>0)||$t(e)>0)}function Ke(e){e._pullAlgorithm=void 0,e._cancelAlgorithm=void 0,e._strategySizeAlgorithm=void 0}function me(e){if(!ve(e))return;const t=e._controlledReadableStream;e._closeRequested=!0,e._queue.length===0&&(Ke(e),We(t))}function ye(e,t){if(!ve(e))return;const r=e._controlledReadableStream;if(G(r)&&Ze(r)>0)Ot(r,t,!1);else{let o;try{o=e._strategySizeAlgorithm(t)}catch(i){throw X(e,i),i}try{jt(e,t,o)}catch(i){throw X(e,i),i}}je(e)}function X(e,t){const r=e._controlledReadableStream;r._state==="readable"&&(K(e),Ke(e),Kr(r,t))}function $t(e){const t=e._controlledReadableStream._state;return t==="errored"?null:t==="closed"?0:e._strategyHWM-e._queueTotalSize}function ve(e){const t=e._controlledReadableStream._state;return!e._closeRequested&&t==="readable"}function Jr(e,t,r,o,i,n,s){t._controlledReadableStream=e,t._queue=void 0,t._queueTotalSize=void 0,K(t),t._started=!1,t._closeRequested=!1,t._pullAgain=!1,t._pulling=!1,t._strategySizeAlgorithm=s,t._strategyHWM=n,t._pullAlgorithm=o,t._cancelAlgorithm=i,e._readableStreamController=t,z(y(r()),()=>(t._started=!0,je(t),null),a=>(X(t,a),null))}function $e(e){return new TypeError(`ReadableStreamDefaultController.prototype.${e} can only be used on a ReadableStreamDefaultController`)}function bo(e){return q(t=e)&&t.getReader!==void 0?function(r){let o;return o=Qe(Pe,function(){let i;try{i=r.read()}catch(n){return c(n)}return ae(i,n=>{if(!q(n))throw new TypeError("The promise returned by the reader.read() method must fulfill with an object");if(n.done)me(o._readableStreamController);else{const s=n.value;ye(o._readableStreamController,s)}})},function(i){try{return y(r.cancel(i))}catch(n){return c(n)}},0),o}(e.getReader()):function(r){let o;const i=br(r,"async");return o=Qe(Pe,function(){let n;try{n=hr(i)}catch(s){return c(s)}return ae(y(n),s=>{if(!q(s))throw new TypeError("The promise returned by the iterator.next() method must fulfill with an object");if(s.done)me(o._readableStreamController);else{const a=s.value;ye(o._readableStreamController,a)}})},function(n){const s=i.iterator;let a;try{a=Te(s,"return")}catch(l){return c(l)}return a===void 0?y(void 0):ae(we(a,s,[n]),l=>{if(!q(l))throw new TypeError("The promise returned by the iterator.return() method must fulfill with an object")})},0),o}(e);var t}function ho(e,t,r){return J(e,r),o=>we(e,t,[o])}function _o(e,t,r){return J(e,r),o=>we(e,t,[o])}function po(e,t,r){return J(e,r),o=>pe(e,t,[o])}function mo(e,t){if((e=`${e}`)!="bytes")throw new TypeError(`${t} '${e}' is not a valid enumeration value for ReadableStreamType`);return e}function Qt(e,t){U(e,t);const r=e?.preventAbort,o=e?.preventCancel,i=e?.preventClose,n=e?.signal;return n!==void 0&&function(s,a){if(!function(l){if(typeof l!="object"||l===null)return!1;try{return typeof l.aborted=="boolean"}catch{return!1}}(s))throw new TypeError(`${a} is not an AbortSignal.`)}(n,`${t} has member 'signal' that`),{preventAbort:!!r,preventCancel:!!o,preventClose:!!i,signal:n}}Object.defineProperties(D.prototype,{close:{enumerable:!0},enqueue:{enumerable:!0},error:{enumerable:!0},desiredSize:{enumerable:!0}}),p(D.prototype.close,"close"),p(D.prototype.enqueue,"enqueue"),p(D.prototype.error,"error"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(D.prototype,Symbol.toStringTag,{value:"ReadableStreamDefaultController",configurable:!0});class P{constructor(t={},r={}){t===void 0?t=null:ar(t,"First parameter");const o=Br(r,"Second parameter"),i=function(n,s){U(n,s);const a=n,l=a?.autoAllocateChunkSize,u=a?.cancel,b=a?.pull,d=a?.start,h=a?.type;return{autoAllocateChunkSize:l===void 0?void 0:Pt(l,`${s} has member 'autoAllocateChunkSize' that`),cancel:u===void 0?void 0:ho(u,a,`${s} has member 'cancel' that`),pull:b===void 0?void 0:_o(b,a,`${s} has member 'pull' that`),start:d===void 0?void 0:po(d,a,`${s} has member 'start' that`),type:h===void 0?void 0:mo(h,`${s} has member 'type' that`)}}(t,"First parameter");if(Dt(this),i.type==="bytes"){if(o.size!==void 0)throw new RangeError("The strategy for a byte stream cannot have a size function");(function(n,s,a){const l=Object.create($.prototype);let u,b,d;u=s.start!==void 0?()=>s.start(l):()=>{},b=s.pull!==void 0?()=>s.pull(l):()=>y(void 0),d=s.cancel!==void 0?R=>s.cancel(R):()=>y(void 0);const h=s.autoAllocateChunkSize;if(h===0)throw new TypeError("autoAllocateChunkSize must be greater than 0");jr(n,l,u,b,d,a,h)})(this,i,mt(o,0))}else{const n=zr(o);(function(s,a,l,u){const b=Object.create(D.prototype);let d,h,R;d=a.start!==void 0?()=>a.start(b):()=>{},h=a.pull!==void 0?()=>a.pull(b):()=>y(void 0),R=a.cancel!==void 0?E=>a.cancel(E):()=>y(void 0),Jr(s,b,d,h,R,l,u)})(this,i,mt(o,1),n)}}get locked(){if(!N(this))throw ee("locked");return G(this)}cancel(t=void 0){return N(this)?G(this)?c(new TypeError("Cannot cancel a stream that already has a reader")):W(this,t):c(ee("cancel"))}getReader(t=void 0){if(!N(this))throw ee("getReader");return function(r,o){U(r,o);const i=r?.mode;return{mode:i===void 0?void 0:no(i,`${o} has member 'mode' that`)}}(t,"First parameter").mode===void 0?fe(this):Gt(this)}pipeThrough(t,r={}){if(!N(this))throw ee("pipeThrough");le(t,1,"pipeThrough");const o=function(n,s){U(n,s);const a=n?.readable;xt(a,"readable","ReadableWritablePair"),Ct(a,`${s} has member 'readable' that`);const l=n?.writable;return xt(l,"writable","ReadableWritablePair"),Fr(l,`${s} has member 'writable' that`),{readable:a,writable:l}}(t,"First parameter"),i=Qt(r,"Second parameter");if(G(this))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked ReadableStream");if(_e(o.writable))throw new TypeError("ReadableStream.prototype.pipeThrough cannot be used on a locked WritableStream");return Ae(Kt(this,o.writable,i.preventClose,i.preventAbort,i.preventCancel,i.signal)),o.readable}pipeTo(t,r={}){if(!N(this))return c(ee("pipeTo"));if(t===void 0)return c("Parameter 1 is required in 'pipeTo'.");if(!be(t))return c(new TypeError("ReadableStream.prototype.pipeTo's first argument must be a WritableStream"));let o;try{o=Qt(r,"Second parameter")}catch(i){return c(i)}return G(this)?c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked ReadableStream")):_e(t)?c(new TypeError("ReadableStream.prototype.pipeTo cannot be used on a locked WritableStream")):Kt(this,t,o.preventClose,o.preventAbort,o.preventCancel,o.signal)}tee(){if(!N(this))throw ee("tee");return Se(re(this._readableStreamController)?function(t){let r,o,i,n,s,a=fe(t),l=!1,u=!1,b=!1,d=!1,h=!1;const R=C(v=>{s=v});function E(v){ft(v._closedPromise,f=>(v!==a||(A(i._readableStreamController,f),A(n._readableStreamController,f),d&&h||s(void 0)),null))}function g(){ie(a)&&(M(a),a=fe(t),E(a)),Ce(a,{_chunkSteps:v=>{se(()=>{u=!1,b=!1;const f=v;let m=v;if(!d&&!h)try{m=Ht(v)}catch(S){return A(i._readableStreamController,S),A(n._readableStreamController,S),void s(W(t,S))}d||Ye(i._readableStreamController,f),h||Ye(n._readableStreamController,m),l=!1,u?_():b&&T()})},_closeSteps:()=>{l=!1,d||qe(i._readableStreamController),h||qe(n._readableStreamController),i._readableStreamController._pendingPullIntos.length>0&&Ve(i._readableStreamController,0),n._readableStreamController._pendingPullIntos.length>0&&Ve(n._readableStreamController,0),d&&h||s(void 0)},_errorSteps:()=>{l=!1}})}function w(v,f){H(a)&&(M(a),a=Gt(t),E(a));const m=f?n:i,S=f?i:n;kr(a,v,1,{_chunkSteps:O=>{se(()=>{u=!1,b=!1;const j=f?h:d;if(f?d:h)j||Ue(m._readableStreamController,O);else{let x;try{x=Ht(O)}catch(ge){return A(m._readableStreamController,ge),A(S._readableStreamController,ge),void s(W(t,ge))}j||Ue(m._readableStreamController,O),Ye(S._readableStreamController,x)}l=!1,u?_():b&&T()})},_closeSteps:O=>{l=!1;const j=f?h:d,x=f?d:h;j||qe(m._readableStreamController),x||qe(S._readableStreamController),O!==void 0&&(j||Ue(m._readableStreamController,O),!x&&S._readableStreamController._pendingPullIntos.length>0&&Ve(S._readableStreamController,0)),j&&x||s(void 0)},_errorSteps:()=>{l=!1}})}function _(){if(l)return u=!0,y(void 0);l=!0;const v=pt(i._readableStreamController);return v===null?g():w(v._view,!1),y(void 0)}function T(){if(l)return b=!0,y(void 0);l=!0;const v=pt(n._readableStreamController);return v===null?g():w(v._view,!0),y(void 0)}function I(){}return i=Zt(I,_,function(v){if(d=!0,r=v,h){const f=Se([r,o]),m=W(t,f);s(m)}return R}),n=Zt(I,T,function(v){if(h=!0,o=v,d){const f=Se([r,o]),m=W(t,f);s(m)}return R}),E(a),[i,n]}(this):function(t){const r=fe(t);let o,i,n,s,a,l=!1,u=!1,b=!1,d=!1;const h=C(g=>{a=g});function R(){return l?(u=!0,y(void 0)):(l=!0,Ce(r,{_chunkSteps:g=>{se(()=>{u=!1;const w=g,_=g;b||ye(n._readableStreamController,w),d||ye(s._readableStreamController,_),l=!1,u&&R()})},_closeSteps:()=>{l=!1,b||me(n._readableStreamController),d||me(s._readableStreamController),b&&d||a(void 0)},_errorSteps:()=>{l=!1}}),y(void 0))}function E(){}return n=Qe(E,R,function(g){if(b=!0,o=g,d){const w=Se([o,i]),_=W(t,w);a(_)}return h}),s=Qe(E,R,function(g){if(d=!0,i=g,b){const w=Se([o,i]),_=W(t,w);a(_)}return h}),ft(r._closedPromise,g=>(X(n._readableStreamController,g),X(s._readableStreamController,g),b&&d||a(void 0),null)),[n,s]}(this))}values(t=void 0){if(!N(this))throw ee("values");return function(o,i){const n=fe(o),s=new _r(n,i),a=Object.create(pr);return a._asyncIteratorImpl=s,a}(this,(r=t,U(r,"First parameter"),{preventCancel:!!r?.preventCancel}).preventCancel);var r}[ke](t){return this.values(t)}static from(t){return bo(t)}}function Qe(e,t,r,o=1,i=()=>1){const n=Object.create(P.prototype);return Dt(n),Jr(n,Object.create(D.prototype),e,t,r,o,i),n}function Zt(e,t,r){const o=Object.create(P.prototype);return Dt(o),jr(o,Object.create($.prototype),e,t,r,0,void 0),o}function Dt(e){e._state="readable",e._reader=void 0,e._storedError=void 0,e._disturbed=!1}function N(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_readableStreamController")&&e instanceof P}function G(e){return e._reader!==void 0}function W(e,t){if(e._disturbed=!0,e._state==="closed")return y(void 0);if(e._state==="errored")return c(e._storedError);We(e);const r=e._reader;if(r!==void 0&&ie(r)){const o=r._readIntoRequests;r._readIntoRequests=new k,o.forEach(i=>{i._closeSteps(void 0)})}return ae(e._readableStreamController[St](t),Pe)}function We(e){e._state="closed";const t=e._reader;if(t!==void 0&&(ir(t),H(t))){const r=t._readRequests;t._readRequests=new k,r.forEach(o=>{o._closeSteps()})}}function Kr(e,t){e._state="errored",e._storedError=t;const r=e._reader;r!==void 0&&(Et(r,t),H(r)?cr(r,t):Wr(r,t))}function ee(e){return new TypeError(`ReadableStream.prototype.${e} can only be used on a ReadableStream`)}function dt(e,t){var r,o;(r=e._transformStreamController)._transformAlgorithm=void 0,r._flushAlgorithm=void 0,r._cancelAlgorithm=void 0,vt(e._writable._writableStreamController,t),(o=e)._backpressure&&Qr(o,!1)}function Qr(e,t){e._backpressureChangePromise!==void 0&&e._backpressureChangePromise_resolve(),e._backpressureChangePromise=C(r=>{e._backpressureChangePromise_resolve=r}),e._backpressure=t}Object.defineProperties(P,{from:{enumerable:!0}}),Object.defineProperties(P.prototype,{cancel:{enumerable:!0},getReader:{enumerable:!0},pipeThrough:{enumerable:!0},pipeTo:{enumerable:!0},tee:{enumerable:!0},values:{enumerable:!0},locked:{enumerable:!0}}),p(P.from,"from"),p(P.prototype.cancel,"cancel"),p(P.prototype.getReader,"getReader"),p(P.prototype.pipeThrough,"pipeThrough"),p(P.prototype.pipeTo,"pipeTo"),p(P.prototype.tee,"tee"),p(P.prototype.values,"values"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(P.prototype,Symbol.toStringTag,{value:"ReadableStream",configurable:!0}),Object.defineProperty(P.prototype,ke,{value:P.prototype.values,writable:!0,configurable:!0}),p(e=>e.byteLength,"size"),p(()=>1,"size");class te{constructor(){throw new TypeError("Illegal constructor")}get desiredSize(){if(!De(this))throw Me("desiredSize");return $t(this._controlledTransformStream._readable._readableStreamController)}enqueue(t=void 0){if(!De(this))throw Me("enqueue");(function(r,o){const i=r._controlledTransformStream,n=i._readable._readableStreamController;if(!ve(n))throw new TypeError("Readable side is not in a state that permits enqueue");try{ye(n,o)}catch(s){throw dt(i,s),i._readable._storedError}!Xr(n)!==i._backpressure&&Qr(i,!0)})(this,t)}error(t=void 0){if(!De(this))throw Me("error");var r,o;o=t,X((r=this._controlledTransformStream)._readable._readableStreamController,o),dt(r,o)}terminate(){if(!De(this))throw Me("terminate");(function(t){const r=t._controlledTransformStream;me(r._readable._readableStreamController),dt(r,new TypeError("TransformStream terminated"))})(this)}}function De(e){return!!q(e)&&!!Object.prototype.hasOwnProperty.call(e,"_controlledTransformStream")&&e instanceof te}function Me(e){return new TypeError(`TransformStreamDefaultController.prototype.${e} can only be used on a TransformStreamDefaultController`)}Object.defineProperties(te.prototype,{enqueue:{enumerable:!0},error:{enumerable:!0},terminate:{enumerable:!0},desiredSize:{enumerable:!0}}),p(te.prototype.enqueue,"enqueue"),p(te.prototype.error,"error"),p(te.prototype.terminate,"terminate"),typeof Symbol.toStringTag=="symbol"&&Object.defineProperty(te.prototype,Symbol.toStringTag,{value:"TransformStreamDefaultController",configurable:!0}),exports.ReadableByteStreamController=$,exports.ReadableStream=P,exports.ReadableStreamBYOBReader=V,exports.ReadableStreamBYOBRequest=ne,exports.ReadableStreamDefaultController=D,exports.ReadableStreamDefaultReader=Y,exports.TransformStreamDefaultController=te,exports.WritableStream=oe,exports.WritableStreamDefaultController=Oe,exports.WritableStreamDefaultWriter=L;
@@ -1,6 +0,0 @@
1
- "use strict";/**
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
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={BIN2DEC:{s:"Converts a binary number to decimal",p:{number:{d:"is the binary number you want to convert"}}},BIN2HEX:{s:"Converts a binary number to hexadecimal",p:{number:{d:"is the binary number you want to convert"},places:{d:"is the number of characters to use"}}},BIN2OCT:{s:"Converts a binary number to octal",p:{number:{d:"is the binary number you want to convert"},places:{d:"is the number of characters to use"}}},BITAND:{s:"Returns a bitwise 'And' of two numbers",p:{number1:{d:"is the decimal representation of the binary number you want to evaluate"},number2:{d:"is the decimal representation of the binary number you want to evaluate"}}},BITLSHIFT:{s:"Returns a number shifted left by shift_amount bits",p:{number:{d:"is the decimal representation of the binary number you want to evaluate"},shiftAmount:{d:"is the number of bits that you want to shift Number left by"}}},BITOR:{s:"Returns a bitwise 'Or' of two numbers",p:{number1:{d:"is the decimal representation of the binary number you want to evaluate"},number2:{d:"is the decimal representation of the binary number you want to evaluate"}}},BITRSHIFT:{s:"Returns a number shifted right by shift_amount bits",p:{number:{d:"is the decimal representation of the binary number you want to evaluate"},shiftAmount:{d:"is the number of bits that you want to shift Number left by"}}},BITXOR:{s:"Returns a bitwise 'Exclusive Or' of two numbers",p:{number1:{d:"is the decimal representation of the binary number you want to evaluate"},number2:{d:"is the decimal representation of the binary number you want to evaluate"}}},DEC2BIN:{s:"Converts a decimal number to binary",p:{number:{d:"is the decimal integer you want to convert"},places:{d:"is the number of characters to use"}}},DEC2HEX:{s:"Converts a decimal number to hexadecimal",p:{number:{d:"is the decimal integer you want to convert"},places:{d:"is the number of characters to use"}}},DEC2OCT:{s:"Converts a decimal number to octal",p:{number:{d:"is the decimal integer you want to convert"},places:{d:"is the number of characters to use"}}},HEX2BIN:{s:"Converts a Hexadecimal number to binary",p:{number:{d:"is the hexadecimal number you want to convert"},places:{d:"is the number of characters to use"}}},HEX2DEC:{s:"Converts a hexadecimal number to decimal",p:{number:{d:"is the hexadecimal number you want to convert"}}},HEX2OCT:{s:"Converts a hexadecimal number to octal",p:{number:{d:"is the hexadecimal number you want to convert"},places:{d:"is the number of characters to use"}}},OCT2BIN:{s:"Converts an octal number to binary",p:{number:{d:"is the octal number you want to convert"},places:{d:"is the number of characters to use"}}},OCT2DEC:{s:"Converts an octal number to decimal",p:{number:{d:"is the octal number you want to convert"}}},OCT2HEX:{s:"Converts an octal number to hexadecimal",p:{number:{d:"is the octal number you want to convert"},places:{d:"is the number of characters to use"}}}};
@@ -1,6 +0,0 @@
1
- "use strict";/**
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
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./C5TLXtw93fBnRGm7.cjs"),X=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),J=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),Q=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),Y=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),T=e.reactExports.memo(g=>{const{label:d,value:a,options:i,onSelect:x,tabIndex:f=0,...R}=g,[O,m]=e.reactExports.useState(()=>$(a,i));e.reactExports.useEffect(()=>{m($(a,i))},[a,i]);const C=e.st(p=>{m(p.target.value),x?.(i[p.target.value])},[x,i]),r=e.reactExports.useMemo(()=>Object.keys(i).map(p=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:p,children:p},p)),[i]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:d}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:f},value:O,label:d,onChange:C,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.Un(5))}, ${e.alpha("#fff",e.Un(5))})`},...R,children:r})]})}),F={Workbook:"workbook",Sheet:"sheet"},V={enter:140,exit:140},H={Formulas:e.Fe.Content.Formulas,Values:e.Fe.Content.Values,Notes:e.Fe.Content.Notes,Comments:e.Fe.Content.Comments},W={...H};delete W.Values;const Z={"By Rows":!0,"By Columns":!1},$=(g,d)=>{const a=Object.keys(d);for(let i=0;i<a.length;i++){const x=a[i];if(d[x]===g)return x}},U=e.reactExports.memo(g=>{const{replace:d=!1,findText:a,replaceText:i,findOptions:x,replaceOptions:f,title:R,onHide:O,onFindOrReplace:m,...C}=g,r=e.reactExports.useRef(null),p=e.reactExports.useRef(null),k=e.reactExports.useRef(null),I=e.reactExports.useRef(null),S=e.reactExports.useRef(null),w=e.reactExports.useRef(null),B=(t,n)=>{n&&(n.start(t,{center:!1}),setTimeout(()=>n.stop(t),180))},[L,h]=e.reactExports.useState(!1),[y,N]=e.reactExports.useState(!1),[c,b]=e.reactExports.useState(d),[D,v]=e.reactExports.useState(!1),[z,P]=e.reactExports.useState(!1),[o,l]=e.reactExports.useState({findText:null,replaceText:null,replace:d,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.F.Orientation.Row,fields:[e.Fe.Content.Formulas]},scope:F.Sheet}),j=e.st(async(t,n,s,E)=>{if(!m)return;const u={...o};u.replaceOptions={...u.replaceOptions},u.findOptions={...u.findOptions},u.replaceOptions.maxCount=s?void 0:1,u.replace=n,n&&o.findOptions.fields?.[0]===e.Fe.Content.Values&&(u.findOptions.fields=[e.Fe.Content.Formulas]),u.findOptions.reverse=!t;const G=await m({autoFocus:E,...u});v(G===0)},[o,m]);e.reactExports.useEffect(()=>{v(!1)},[o,y,c]);const A=e.st((t,n)=>{if(t.keyCode===e.Bn.Enter){if(!o.findText)return;let s=!0,E=!1;t.shiftKey&&(s=!1),n?(t.ctrlKey&&t.altKey&&(E=!0),B(t,E?w.current:S.current)):B(t,s?I.current:k.current),j(s,n,E,!1)}},[o]),K=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{l(t=>{const n={...t};n.findText=a&&a.length>0?a:t.findText??"",h(!0),i!==void 0&&(n.replaceText=i),x&&(n.findOptions={...n.findOptions,...x}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),f&&(n.replaceOptions={...n.replaceOptions,...f}),o.findOptions.fields?.[0]||(o.findOptions.fields=[e.Fe.Content.Formulas]);const s=!(!f&&i===void 0);return s&&b(s),n}),z||K.current?.focus()},[a,i,x,f]),e.reactExports.useEffect(()=>{c?(o.findOptions.fields[0],e.Fe.Content.Values):h(!0)},[c]),e.reactExports.useEffect(()=>{if(L&&r.current&&o.findText===r.current.value)return r.current===document.activeElement||r.current.contains(document.activeElement)?(r.current?.select(),void h(!1)):void r.current.addEventListener("focus",()=>{r.current?.select(),h(!1)},{once:!0})},[L,o]);const[q,{width:M}]=e.y1();return e.jsxRuntimeExports.jsx(e.iT,{ref:K,title:R??(c?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:O,onFocus:()=>P(!0),onBlur:()=>{P(!1),v(!1)},PaperProps:{elevation:z?3:1},...C,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:q,sx:{display:"flex",flexDirection:"column",paddingLeft:t=>t.spacing(1.5),paddingRight:t=>t.spacing(1.5)},onKeyDown:t=>{if(t.key==="h"&&t.ctrlKey)b(!0),r.current?.contains(document.activeElement)&&p.current?.focus();else if(t.key==="f"&&t.ctrlKey)r.current?.focus();else if(t.key==="c"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchCase=!n.findOptions.matchCase,s});else if(t.key==="e"&&t.altKey)l(n=>{const s={...n};return s.findOptions.matchEntireCell=!n.findOptions.matchEntireCell,s});else{if(t.key!=="r"||!t.altKey)return;l(n=>{const s={...n};return s.findOptions.useRegex=!n.findOptions.useRegex,s})}t.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:t=>t.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.Ik,{selected:y,onSelectToggle:t=>{N(t)},preventFocus:!0,label:"Toggle Additional Options",icon:e.xe(e.jsxRuntimeExports.jsx(e.mz,{}))}),e.jsxRuntimeExports.jsx(e.Ik,{selected:c,onSelectToggle:t=>{b(t)},preventFocus:!0,label:"Toggle Replace",icon:e.xe(e.jsxRuntimeExports.jsx(e.fz,{})),shortcut:{key:c?"F":"H",modifiers:[e.gn.Ctrl]}})]}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"column",maxWidth:"100%",boxSizing:"border-box"},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center"},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Find",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),minWidth:M>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.Un(5))}, ${e.alpha("#fff",e.Un(5))})`},inputProps:{draggable:!1,ref:r,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}},endAdornment:e.jsxRuntimeExports.jsx(e.InputAdornment,{sx:{transform:"scale(0.75) translateX(16px)"},position:"end",children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",alignItems:"center",flexDirection:"row",gap:"1px"},children:[e.jsxRuntimeExports.jsx(e.Ik,{selected:o.findOptions.matchCase,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchCase=t,s})},label:"Match Case",shortcut:{key:"C",modifiers:[e.gn.Alt]},icon:e.xe(e.jsxRuntimeExports.jsx(e.gz,{}))}),e.jsxRuntimeExports.jsx(e.Ik,{selected:o.findOptions.matchEntireCell,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.matchEntireCell=t,s})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.gn.Alt]},icon:e.xe(e.jsxRuntimeExports.jsx(e.yz,{}))}),e.jsxRuntimeExports.jsx(e.Ik,{selected:o.findOptions.useRegex,onSelectToggle:t=>{l(n=>{const s={...n};return s.findOptions.useRegex=t,s})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.gn.Alt]},icon:e.xe(e.jsxRuntimeExports.jsx(e.wz,{}))})]})})},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:t=>D?`${t.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:t=>D?`${t.palette.error.main} !important`:void 0}},value:o.findText??"",onChange:t=>{l(n=>{const s={...n};return s.findText=t.target.value,s})},onKeyDown:t=>A(t,!1),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.Ik,{selected:o.findOptions.reverse,onSelectToggle:t=>{j(!1,!1)},touchRippleRef:k,label:"",shortcut:{key:"Enter",modifiers:[e.gn.Shift]},icon:e.xe(o.findOptions.orientation!==e.F.Orientation.Column?e.jsxRuntimeExports.jsx(X,{}):e.jsxRuntimeExports.jsx(Y,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.Ik,{selected:!o.findOptions.reverse,onSelectToggle:t=>{j(!0,!1)},touchRippleRef:I,label:"Next Match",shortcut:{key:"Enter"},icon:e.xe(o.findOptions.orientation!==e.F.Orientation.Column?e.jsxRuntimeExports.jsx(Q,{}):e.jsxRuntimeExports.jsx(J,{})),disabled:!o.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:c,timeout:V,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:t=>t.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:t=>t.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.Un(5))}, ${e.alpha("#fff",e.Un(5))})`},inputProps:{ref:p,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:t=>t.spacing(1.25),paddingBottom:t=>t.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:t=>t.spacing(1)},value:o.replaceText??"",onChange:t=>{l(n=>{const s={...n};return s.replaceText=t.target.value,s})},onKeyDown:t=>A(t,!0),onContextMenu:t=>{t.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.Ik,{onSelectToggle:t=>{j(!0,!0)},touchRippleRef:S,label:"Replace",shortcut:{key:"Enter"},icon:e.xe(e.jsxRuntimeExports.jsx(e.IE,{})),disabled:!o.findText}),e.jsxRuntimeExports.jsx(e.Ik,{onSelectToggle:t=>{j(!0,!0,!0)},touchRippleRef:w,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.gn.Ctrl,e.gn.Alt]},icon:e.xe(e.jsxRuntimeExports.jsx(e.bz,{})),disabled:!o.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:y,timeout:V,onExit:()=>{r.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:t=>t.spacing(.5),marginTop:t=>t.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.$t,{orientation:"horizontal",sx:{marginBottom:t=>t.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:M>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:t=>t.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(T,{label:"Within",value:o.scope,options:F,onSelect:t=>{l(n=>{const s={...n};return s.scope=t,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Search",value:o.findOptions.orientation!==e.F.Orientation.Column,options:Z,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.orientation=t?e.F.Orientation.Row:e.F.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(T,{label:"Look in",value:c&&o.findOptions.fields?.[0]===e.Fe.Content.Values?e.Fe.Content.Formulas:o.findOptions.fields?.[0],options:c?W:H,onSelect:t=>{l(n=>{const s={...n};return s.findOptions.fields=[t],s})}})]})]})})]})})});exports.FindReplaceWindow=U,exports.ScopeOptions=F,exports.default=U;