@sheetxl/studio-vanilla 0.4.11 → 0.4.13

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 (205) hide show
  1. package/browser/cjs/{DFspSkki779xN-Ey.cjs → -DkdmW3XP1ICRY25.cjs} +2 -2
  2. package/browser/cjs/B-KQs1Bf48nEucW7.cjs +7 -0
  3. package/browser/cjs/B1xnY7pDnbnNzknG.cjs +7 -0
  4. package/browser/cjs/B6A5w_aWHkigBc6j.cjs +7 -0
  5. package/browser/cjs/B9jxuOg1CXcmbi9J.cjs +110 -0
  6. package/browser/cjs/BAYjkr4LmsWRLoPr.cjs +7 -0
  7. package/browser/cjs/{DFtyXc7YFh9dIp74.cjs → BG2uV2RpxrfZyCuV.cjs} +1 -1
  8. package/browser/cjs/{DiBy6-IxLscyMW2y.cjs → BGCPG4Ip5ZijUQwi.cjs} +2 -2
  9. package/browser/cjs/BHTlBOQH-tPGoKgo.cjs +7 -0
  10. package/browser/cjs/BLBNzBvRVl9VLynf.cjs +7 -0
  11. package/browser/cjs/BLh6E7ER8mrM6vc_.cjs +7 -0
  12. package/browser/cjs/{CuTW2Pt-L5n-hNxV.cjs → BMaq_2S3IFrE5XeJ.cjs} +1 -1
  13. package/browser/cjs/BO7Pbclmywy-QCSV.cjs +13 -0
  14. package/browser/cjs/BPlthbyKkqCDjgxO.cjs +7 -0
  15. package/browser/cjs/BUGo0mXtBfFOmQXV.cjs +7 -0
  16. package/browser/cjs/BdHdXCz_K1djQgI4.cjs +7 -0
  17. package/browser/cjs/BfNkb1jDZkJf3wRA.cjs +7 -0
  18. package/browser/cjs/BfdQd2UEOlOc5iF3.cjs +7 -0
  19. package/browser/cjs/Bi9KvObgq_kJ_pjC.cjs +7 -0
  20. package/browser/cjs/BjPpJjnABDd3_WOZ.cjs +7 -0
  21. package/browser/cjs/BsSNzyN8kOGCKzso.cjs +7 -0
  22. package/browser/cjs/BtCcoaKKb8ZDnliG.cjs +7 -0
  23. package/browser/cjs/{DrlS1oz9Nea8Pm3j.cjs → BwHquG4sSd7OJjxz.cjs} +2 -2
  24. package/browser/cjs/{CjZbhk41S1qO_74G.cjs → BywNBbTVRYbgRbNI.cjs} +1 -1
  25. package/browser/cjs/C04Qr5P8uyQ6Vcml.cjs +7 -0
  26. package/browser/cjs/C42ZEPRmW9Wcd7tI.cjs +7 -0
  27. package/browser/cjs/{T4SHYo66xDT3l9JN.cjs → CBpt1PBR1VfBegko.cjs} +2 -2
  28. package/browser/cjs/CED8Az5C8GWF7pUT.cjs +7 -0
  29. package/browser/cjs/{BPTHTRDvNOVkUJGa.cjs → CbD4Wa5QLTdRCYcz.cjs} +2 -2
  30. package/browser/cjs/{C5FXOMLhAu_KTjVe.cjs → CbILz9Skl6lWf6yR.cjs} +1 -1
  31. package/browser/cjs/CoFQQqIzuvS9PM77.cjs +7 -0
  32. package/browser/cjs/{BlSFY6zLlebuejdV.cjs → CpDNo2Lhwr5ZHECs.cjs} +2 -2
  33. package/browser/cjs/{D3iOk-Q2tRdUeTcn.cjs → CsamfGfFsItvSgo_.cjs} +1 -1
  34. package/browser/cjs/Cx3kn5gBsQ-1bORi.cjs +7 -0
  35. package/browser/cjs/CxLvGnG44-qNI36G.cjs +7 -0
  36. package/browser/cjs/D-xyWit7jxctQCpR.cjs +7 -0
  37. package/browser/cjs/D4XQsK7d7DRctaOO.cjs +7 -0
  38. package/browser/cjs/D9rVEA1BdB0JZwhE.cjs +7 -0
  39. package/browser/cjs/DES2NmIRVZg-HXgs.cjs +7 -0
  40. package/browser/cjs/{BshvMtUxTJHj3JQN.cjs → DFxeLNhACFIHb0nv.cjs} +2 -2
  41. package/browser/cjs/DIv1SrLYeyVwcaxE.cjs +7 -0
  42. package/browser/cjs/DJ6L43osbaMzEV5K.cjs +7 -0
  43. package/browser/cjs/DMjLN_HDktNzzUB8.cjs +7 -0
  44. package/browser/cjs/DVPfPZCFjmYu3xyn.cjs +7 -0
  45. package/browser/cjs/DhSlaiQXxEOVtZkA.cjs +7 -0
  46. package/browser/cjs/{Dx-jp_LJxWbAScyA.cjs → Dh_dFnagz7dMZlGh.cjs} +1 -1
  47. package/browser/cjs/DpF6vgGka2d-RKkb.cjs +10 -0
  48. package/browser/cjs/{C7EZCTczsC-gkRcq.cjs → DtY0Jzlwnr_YKnV4.cjs} +2 -2
  49. package/browser/cjs/DwyyFI1Ix0uc0Qoz.cjs +7 -0
  50. package/browser/cjs/Dy5_viRzFls9rOzN.cjs +7 -0
  51. package/browser/cjs/GkINjQ8Te3GKi2mx.cjs +7 -0
  52. package/browser/cjs/aN3KCqswA1SdJIMq.cjs +7 -0
  53. package/browser/cjs/{BuWtGFX0HiBezGjw.cjs → hLJbgylpETByV4wc.cjs} +2 -2
  54. package/browser/cjs/index.cjs +2 -2
  55. package/browser/cjs/qumqKlVHFx89iLeu.cjs +7 -0
  56. package/browser/cjs/{BAyEOOtO-9sHQQRW.cjs → rKZjTYQ0WpTriIv6.cjs} +2 -2
  57. package/browser/cjs/xjKotAOVt3JH36U7.cjs +7 -0
  58. package/browser/cjs/ymbPxio09Fw7I2BW.cjs +7 -0
  59. package/browser/esm/2P5dQT7wZToOh-n9.mjs +7 -0
  60. package/browser/esm/4GgcUVhUmQmiv9Ha.mjs +110 -0
  61. package/browser/esm/7_x68v6PpvRDox_Z.mjs +7 -0
  62. package/browser/esm/9icgSuuzXq6mlgM8.mjs +7 -0
  63. package/browser/esm/B354iAatN9y9AIIP.mjs +7 -0
  64. package/browser/esm/B5EVyoxm3aSlAnxN.mjs +7 -0
  65. package/browser/esm/BD8rE7MUxuHXsdcf.mjs +7 -0
  66. package/browser/esm/BGFWI1a1PmU8_hCE.mjs +7 -0
  67. package/browser/esm/BI6JAQCQx1V0F2aC.mjs +7 -0
  68. package/browser/esm/BIYg30d_9HaluFFz.mjs +7 -0
  69. package/browser/esm/BKL-uyBp_OE47lXd.mjs +7 -0
  70. package/browser/esm/BMwJCtLAYUW8wExX.mjs +13 -0
  71. package/browser/esm/BNOfK-lGWF2S8vQE.mjs +7 -0
  72. package/browser/esm/Ba433v6lQUMtECiY.mjs +7 -0
  73. package/browser/esm/BbZWfDW2LUyjqUDy.mjs +7 -0
  74. package/browser/esm/C238uBmZN1XXqMUb.mjs +7 -0
  75. package/browser/esm/C34whwRkHO0lhq4-.mjs +7 -0
  76. package/browser/esm/C6FEpAqSZoW5Hgte.mjs +7 -0
  77. package/browser/esm/COlW5ULL29SUKN1Z.mjs +7 -0
  78. package/browser/esm/CRyxOj2xPj9qe9LK.mjs +7 -0
  79. package/browser/esm/CVeyOpbAhaBhDRye.mjs +7 -0
  80. package/browser/esm/CVyVvtlJuCTn4MDh.mjs +7 -0
  81. package/browser/esm/CapeIfjWq-_BHMlE.mjs +7 -0
  82. package/browser/esm/CcQqGNgK2CsgNtuD.mjs +7 -0
  83. package/browser/esm/CdZSxrk3k1Lx6G8W.mjs +7 -0
  84. package/browser/esm/CdchvB_wAbv_6Whw.mjs +7 -0
  85. package/browser/esm/{Cc_VWd0wF5-39LsI.mjs → Cf8eDl3Tu5NAWWwG.mjs} +1 -1
  86. package/browser/esm/{BXUGsC1Mo3FP8vnW.mjs → Cfq9tttQlsKvfaCr.mjs} +2 -2
  87. package/browser/esm/{BDVJ7eOPpW5FnEAP.mjs → ClR6uLJoM-xKVYEc.mjs} +1 -1
  88. package/browser/esm/Cnl_e-EYkZ3CLbi2.mjs +7 -0
  89. package/browser/esm/CtRS2ZCPF7IH_mXe.mjs +7 -0
  90. package/browser/esm/{BUSR_OK5Qi6hRPfw.mjs → CuV-bwi1vcXAqFUY.mjs} +1 -1
  91. package/browser/esm/CwVE0qelO_xgf-l1.mjs +7 -0
  92. package/browser/esm/{CFFC0SNc24a0Dxnh.mjs → D1Dzlta8ZVy08ng6.mjs} +2 -2
  93. package/browser/esm/D1TjRQiHLWhpl-dl.mjs +7 -0
  94. package/browser/esm/D8BJ-y3ulgO_ezrj.mjs +10 -0
  95. package/browser/esm/{BlGoi1_x9rUMpWMd.mjs → DTDXNEbHVnnZONNL.mjs} +1 -1
  96. package/browser/esm/DTWfi8Dl-c2s5moT.mjs +7 -0
  97. package/browser/esm/DYVBXcu1r5KRLB-1.mjs +7 -0
  98. package/browser/esm/{BGpv6Kq7eBlJy43T.mjs → DZjWyWMvr2XHQrBg.mjs} +1 -1
  99. package/browser/esm/DhHK4QmASvgAq9Xy.mjs +7 -0
  100. package/browser/esm/{PS0cqYnlMVEGOQpI.mjs → DoFV2S6Su86IN5Ul.mjs} +2 -2
  101. package/browser/esm/Dq3ybkgattcCsF_4.mjs +7 -0
  102. package/browser/esm/DqWoZ4TjweoJWX3o.mjs +7 -0
  103. package/browser/esm/DtXxHirBm16ldE1l.mjs +7 -0
  104. package/browser/esm/DtuWZG6c_8vKRSdr.mjs +7 -0
  105. package/browser/esm/FBG8XXdIMd9PfUIo.mjs +7 -0
  106. package/browser/esm/Nh7JiwvF01PblHQ0.mjs +7 -0
  107. package/browser/esm/PVYiH9vBQM6rqXI4.mjs +7 -0
  108. package/browser/esm/U5-LDZQ0qkJ2Y-p8.mjs +7 -0
  109. package/browser/esm/XhQDWZu47oe6bwHh.mjs +7 -0
  110. package/browser/esm/_BjU6TtI-mQfFpfy.mjs +7 -0
  111. package/browser/esm/{Cq8D_M0jeHLcnRjg.mjs → gOUfyCw957TzcbNB.mjs} +1 -1
  112. package/browser/esm/index.mjs +2 -2
  113. package/browser/esm/lmkbfs9sNc7f0oe5.mjs +7 -0
  114. package/browser/esm/{tFhROdVSw9KLQfUN.mjs → naa0kcRwxHEYGaQB.mjs} +2 -2
  115. package/browser/esm/qxOkQutRxmAi1vRh.mjs +7 -0
  116. package/browser/esm/tMSro0g2GM5BBTIH.mjs +7 -0
  117. package/cdn/assets/0e9wDKSn4SFxSmP5.js +27 -0
  118. package/cdn/assets/0j_nQmV1Bb0lJ6sB.js +472 -0
  119. package/cdn/assets/2mxiQm6dELsqQoX7.js +5624 -0
  120. package/cdn/assets/5XdpCWQ6AcxZ6oY1.js +10 -0
  121. package/cdn/assets/6JtXguBKwGj6dqfy.js +1577 -0
  122. package/cdn/assets/8U2WVdbZHYCBnd9L.js +23 -0
  123. package/cdn/assets/9-cIcj6CRJx5HTn9.js +10 -0
  124. package/cdn/assets/B-kFRtzNNkf4_SiP.js +1701 -0
  125. package/cdn/assets/B1Iys8a964LGNZKf.js +10 -0
  126. package/cdn/assets/B2RAJJJFkcaWUfUW.js +21 -0
  127. package/cdn/assets/BAzGoI9gE2G3F3on.js +637 -0
  128. package/cdn/assets/BBJxLS-wB_nXRnI2.js +10 -0
  129. package/cdn/assets/BDE7FUo2oiivrvBL.js +43 -0
  130. package/cdn/assets/BL6TUDSeou6wPejW.js +10 -0
  131. package/cdn/assets/BLqaorJ5Wl-1YOoy.js +3875 -0
  132. package/cdn/assets/BMiA9p1uOrwnooVT.js +10 -0
  133. package/cdn/assets/BNh9nSR83reiVMKt.js +90 -0
  134. package/cdn/assets/BQON-ToGsIBPrPkM.js +1371 -0
  135. package/cdn/assets/BUwNyHytF9St68tJ.js +10 -0
  136. package/cdn/assets/BVYDmdUGWvMG5gNK.js +241 -0
  137. package/cdn/assets/B_2bXmyji3Dr7LRM.js +50224 -0
  138. package/cdn/assets/BciokME96sykArSM.js +10 -0
  139. package/cdn/assets/BgnlshX157Ob6RLs.js +21 -0
  140. package/cdn/assets/BlYoycYtR-sUp0iC.js +27 -0
  141. package/cdn/assets/Bsa9-Itkf_SdDBM9.js +6481 -0
  142. package/cdn/assets/BwpBFv8Ks2ka07ch.js +10 -0
  143. package/cdn/assets/BxblmHGC7YxZcuak.js +10 -0
  144. package/cdn/assets/C-Z8wvIy20kJ7R-k.js +10 -0
  145. package/cdn/assets/C3EFzvmp0DcC_HAx.js +10 -0
  146. package/cdn/assets/C4vStn7wNlvrxdsp.js +10 -0
  147. package/cdn/assets/C5q0qaKi2eeDgoO8.js +10 -0
  148. package/cdn/assets/C9eQW5GKgPRmKKgJ.js +29 -0
  149. package/cdn/assets/CHTspRZD2v_dU_eV.js +22 -0
  150. package/cdn/assets/CKA4s2hlzSnrdWSD.js +10 -0
  151. package/cdn/assets/CMBDD1Mjde6UL5ep.js +84 -0
  152. package/cdn/assets/CR01MBraUPYPpwy4.js +36 -0
  153. package/cdn/assets/CT0d1P-Aav62lUvV.js +10 -0
  154. package/cdn/assets/CV8UjJPDVplXjK1E.js +49 -0
  155. package/cdn/assets/CrLrvmlJhYpNpXqR.js +10 -0
  156. package/cdn/assets/CsorxCiOoe7qX9j1.js +10 -0
  157. package/cdn/assets/CuNqTH3P8mCglRiz.js +10 -0
  158. package/cdn/assets/CwdMjMPFdIs8SAV0.js +1358 -0
  159. package/cdn/assets/D-5VYBO5_VEh6fEW.js +24 -0
  160. package/cdn/assets/DD3csu4pddGtMp3n.js +1468 -0
  161. package/cdn/assets/DFHruAftzuzBZ71r.js +393 -0
  162. package/cdn/assets/DHydjLSnijEgtpyU.js +10 -0
  163. package/cdn/assets/DPQqTIMsRLhMxPIy.js +820 -0
  164. package/cdn/assets/DUtu7r6CzW4dtW3E.js +50 -0
  165. package/cdn/assets/DXHirQMr483hJBil.js +58 -0
  166. package/cdn/assets/DXtbonLk2ESfF4Dh.js +10 -0
  167. package/cdn/assets/Dr5X-ng9wbwUWVr4.js +41 -0
  168. package/cdn/assets/DvFNLgeMJ9LdQROu.js +149 -0
  169. package/cdn/assets/Dvj7UEckqOBrgs9i.js +3947 -0
  170. package/cdn/assets/F6zW9Vj410C4yRVG.js +424 -0
  171. package/cdn/assets/Gz4u4ewyWfB-Pf-a.js +1703 -0
  172. package/cdn/assets/KDGtuIzSpkf1vsmH.js +10 -0
  173. package/cdn/assets/KtKlo5mM4kTTfFgi.js +46 -0
  174. package/cdn/assets/N3pWBoccPrTedAw-.js +12 -0
  175. package/cdn/assets/NTINjW8JjyZudT8s.js +13449 -0
  176. package/cdn/assets/R9RwlorPWfftoboH.js +2373 -0
  177. package/cdn/assets/Xwyp21e7L5fTeb_y.js +423 -0
  178. package/cdn/assets/XysyS9rk9tFdbzZh.js +2183 -0
  179. package/cdn/assets/f3_QXO8z0p-q4nJo.js +46 -0
  180. package/cdn/assets/quOP5QFyTT9soNIl.js +12 -0
  181. package/cdn/index.js +41 -37
  182. package/cdn/loader.js +1 -1
  183. package/package.json +3 -5
  184. package/browser/cjs/B0rdyyttE2Aibsag.cjs +0 -7
  185. package/browser/cjs/B2e7dDI-zKoqXpIW.cjs +0 -107
  186. package/browser/cjs/BplA5pDzOJpfTZuA.cjs +0 -7
  187. package/browser/cjs/CFcjX5-nVsgzdZ4F.cjs +0 -7
  188. package/browser/cjs/Db_Ew1r6yOMYylvA.cjs +0 -7
  189. package/browser/cjs/DgBn3aW39yjgm0X_.cjs +0 -7
  190. package/browser/cjs/SzxJv7OUs5ojl8gx.cjs +0 -7
  191. package/browser/cjs/vfUix5Di0Ro8tEID.cjs +0 -7
  192. package/browser/esm/B5kkStdEkTczERyM.mjs +0 -7
  193. package/browser/esm/B905wKzTtod-jbsD.mjs +0 -7
  194. package/browser/esm/BALnKy2Fp7fyk-lc.mjs +0 -7
  195. package/browser/esm/Bo_ZPRrOQrqOVHAF.mjs +0 -7
  196. package/browser/esm/BuURCm92KsyGHG9e.mjs +0 -7
  197. package/browser/esm/CGZ5MX7afzMxDkCe.mjs +0 -7
  198. package/browser/esm/CzmNwV9tfFYUp_gS.mjs +0 -7
  199. package/browser/esm/De6RPxc4p_jXLlT5.mjs +0 -7
  200. package/browser/esm/DlVZFM9ZR5jGyG0_.mjs +0 -7
  201. package/browser/esm/DqXxZP6yKF4U1YfY.mjs +0 -7
  202. package/browser/esm/DtmE60AvstK9u0Ta.mjs +0 -107
  203. package/browser/esm/Dz2OVgq3kxi1TkfX.mjs +0 -7
  204. package/browser/esm/QBGUD1XS5_pysBLL.mjs +0 -7
  205. package/browser/esm/uGDCdtqxjqRCo4Xn.mjs +0 -7
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeScriptCompiler=class{constructor(r={}){this.workerWrapper=null}async getWorkerWrapper(){if(this.workerWrapper)return this.workerWrapper;const{createCompilerWorker:r}=await Promise.resolve().then(()=>require("./CxLvGnG44-qNI36G.cjs"));return this.workerWrapper=await r(),this.workerWrapper}async compileModule(r){try{return(await this.getWorkerWrapper()).execute(r)}catch(r){throw console.error("Failed to compile using worker:",r),r}}terminate(){this.workerWrapper?.terminate(),this.workerWrapper=null}};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";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"}}}};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={CELL:{s:"Returns information about the cell.",p:{infoType:{d:"The type of information to return."},reference:{}}},"ERROR.TYPE":{s:"Returns a number matching an error value",p:{errorVal:{d:"is the error value for which you want the identifying number, and can be an actual error value or a reference to a cell containing an error value."}}},INFO:{s:"Returns information about the current operating system.",p:{typeText:{d:"The type of information to return"}}},ISBLANK:{s:"Checks whether a reference is to an empty cell, and returns TRUE or FALSE",p:{value:{d:"is the cell or a name that refers to the cell you want to test"}}},ISERR:{s:"Checks whether a value is an error other than #N/A, and returns TRUE or FALSE",p:{value:{d:"is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value"}}},ISERROR:{s:"Checks whether a value is an error, and returns TRUE or FALSE",p:{value:{d:"is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value"}}},ISEVEN:{s:"Returns TRUE if the number is even",p:{number:{d:"is the value to test"}}},ISFORMULA:{s:"Checks whether a reference is to a cell containing a formula, and returns TRUE or FALSE",p:{reference:{d:"is a reference to the cell you want to test. Reference can be a cell reference, a formula, or name that refers to a cell"}}},ISLOGICAL:{s:"Checks whether a value is a logical value (TRUE or FALSE), and returns TRUE or FALSE",p:{value:{d:"is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value"}}},ISNA:{s:"Checks whether a value is #N/A, and returns TRUE or FALSE",p:{value:{d:"is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value"}}},ISNONTEXT:{s:"Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE",p:{value:{d:"is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value"}}},ISNUMBER:{s:"Checks whether a value is not text (blank cells are not text), and returns TRUE or FALSE",p:{value:{d:"is the value you want tested: a cell; a formula; or a name referring to a cell, formula, or value"}}},ISODD:{s:"Returns TRUE if the number is odd",p:{number:{d:"is the value to test"}}},ISOMITTED:{s:"Checks whether the value is omitted, and returns TRUE or FALSE",p:{argument:{d:"is the value you want to test, such as a LAMBDA parameter"}}},ISREF:{s:"Checks whether a value is a reference, and returns TRUE or FALSE",p:{value:{d:"is the value you want to test. Value can refer to a cell, a formula, or a name that refers to a cell, formula, or value"}}},ISTEXT:{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"}}},N:{s:"Converts non-number value to a number, dates to serial numbers, TRUE to 1, anything else to 0 (zero)",p:{value:{d:"is the value to convert"}}},NA:{s:"Returns the #N/A error value",p:{}},SHEET:{s:"Returns the sheet number of the referenced sheet",p:{value:{d:"is the name of a sheet or a reference that you want the sheet number of. If omitted the number of the sheet containing the function is returned"}}},SHEETS:{s:"Returns the number of sheets in a reference",p:{reference:{d:"is a reference for which you want to know the number of sheets it contains. If omitted the number of sheets in the workbook containing the function is returned"}}},TYPE:{s:"Returns an integer representing the data type of a value: number = 1; text = 2; logical value = 4; error value = 16; array = 64; compound data = 128",p:{value:{d:"is the value to check"}}}};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let e=null;const t={reactUrl:"https://esm.sh/react@19.1.0",reactJsxTransform:"https://esm.sh/react@19.1.0/jsx-runtime",reactDomUrl:"https://esm.sh/react-dom@19.1.0",reactDomUrlClient:"https://esm.sh/react-dom@19.1.0/client"};exports.resolveDependencies=r=>(r={...r,...t},e||(e=(async()=>{const e=r.reactUrl,t=r.reactDomUrl,s=r.reactDomUrlClient,o=r.reactJsxTransform;if(document.querySelector('script[type="importmap"]'))console.warn("SheetXL: Import map already exists. Skipping injection.");else{const r=document.createElement("script");r.type="importmap",r.textContent=JSON.stringify({imports:{react:e,"react/jsx-runtime":o,"react-dom":t,"react-dom/client":s}}),document.head.appendChild(r)}await new Promise(e=>setTimeout(e,0));const n=await Promise.all([Promise.resolve().then(()=>require("./B9jxuOg1CXcmbi9J.cjs")).then(e=>e.React),Promise.resolve().then(()=>require("./B9jxuOg1CXcmbi9J.cjs")).then(e=>e.ReactJSXTransform),Promise.resolve().then(()=>require("./B9jxuOg1CXcmbi9J.cjs")).then(e=>e.index),Promise.resolve().then(()=>require("./B9jxuOg1CXcmbi9J.cjs")).then(e=>e.ReactDOMClient),Promise.resolve().then(()=>require("./B9jxuOg1CXcmbi9J.cjs")).then(e=>e.StudioMUI)]);return{React:n[0],ReactJSXTransform:n[1],ReactDOM:n[2],ReactDOMClient:n[3],StudioMUI:n[4]}})(),e));
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.default={AVEDEV:{s:"Returns the average of the absolute deviations of data points from their mean. Arguments can be numbers or names, arrays, or references that contain numbers",p:{number:{d:"number1,number2,... are 1 to 255 arguments for which you want the average of the absolute deviations"}}},AVERAGE:{s:"Returns the average (arithmetic mean) of its arguments, which can be numbers or names, arrays, or references that contain numbers",p:{number:{d:"number1,number2,... are 1 to 255 numeric arguments for which you want the average"}}},AVERAGEA:{s:"Returns the average (arithmetic mean) of its arguments, evaluating text and FALSE in arguments as 0; TRUE evaluates as 1. Arguments can be numbers, names, arrays, or references",p:{value:{d:"value1,value2,... are 1 to 255 arguments for which you want the average"}}},AVERAGEIF:{s:"Finds average(arithmetic mean) for the cells specified by a given condition or criteria",p:{range:{d:"is the range of cells you want evaluated"},criteria:{d:"is the condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average"},averageRange:{d:"are the actual cells to be used to find the average. If omitted, the cells in range are used"}},h:"Unimplemented"},AVERAGEIFS:{s:"Finds average(arithmetic mean) for the cells specified by a given set of conditions or criteria",p:{averageRange:{d:"are the actual cells to be used to find the average."},criteriaRange:{d:"criteria_range1,criteria_range2,... is the range of cells you want evaluated for the particular condition"},criteria:{d:"criteria1,criteria2,... is the condition or criteria in the form of a number, expression, or text that defines which cells will be used to find the average"}},h:"Unimplemented"},COUNT:{s:"Counts the number of cells in a range that contain numbers",p:{number:{d:"value1,value2,... are 1 to 255 arguments that can contain or refer to a variety of different types of data, but only numbers are counted"}}},COUNTA:{s:"Counts the number of cells in a range that are not empty",p:{value:{d:"value1,value2,... are 1 to 255 arguments representing the values and cells you want to count. Values can be any type of information"}}},COUNTBLANK:{s:"Counts the number of empty cells in a specified range of cells",p:{range:{d:"is the range from which you want to count the empty cells"}},h:"Unimplemented"},COUNTIF:{s:"Counts the number of cells within a range that meet the given condition",p:{range:{d:"is the range of cells from which you want to count nonblank cells"},criteria:{d:"is the condition in the form of a number, expression, or text that defines which cells will be counted"}},h:"Unimplemented"},COUNTIFS:{s:"Counts the number of cells specified by a given set of conditions or criteria",p:{criteriaRange:{d:"criteria_range1,criteria_range2,... is the range of cells you want evaluated for the particular condition"},criteria:{d:"criteria1,criteria2,... is the condition in the form of a number, expression, or text that defines which cells will be counted"}},h:"Unimplemented"},LARGE:{s:"Returns the k-th largest value in a data set. For example, the fifth largest number.",p:{array:{d:"is the array or range of data for which you want to determine the k-th largest value."},k:{d:"is the position (from the largest) in the array or cell range of the value to return."}}},MAX:{s:"Returns the largest value in a set of values. Ignores logical values and text",p:{number:{d:"number1,number2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the maximum"}}},MAXA:{s:"Returns the largest value in a set of values. Does not ignore logical values and text",p:{value:{d:"value1,value2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the maximum"}}},MAXIFS:{s:"Returns the maximum value among cells specified by a given set of conditions or criteria",p:{maxRange:{d:"the cells in which to determine the maximum value"},criteriaRange:{d:"criteria_range1,criteria_range2,... is the range of cells you want to evaluate for the particular condition"},criteria:{d:"criteria1,criteria2,... is the condition or criteria in the form of a number, expression, or text that defines which cells will be included when determining the maximum value"}},h:"Unimplemented"},MEDIAN:{s:"Returns the median, or the number in the middle of the set of given numbers",p:{number:{d:"number1,number2,... are 1 to 255 numbers or names, arrays, or references that contain numbers for which you want the median"}}},MIN:{s:"Returns the smallest number in a set of values. Ignores logical values and text",p:{number:{d:"number1,number2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the minimum"}}},MINA:{s:"Returns the smallest value in a set of values. Does not ignore logical values and text",p:{value:{d:"value1,value2,... are 1 to 255 numbers, empty cells, logical values, or text numbers for which you want the minimum"}}},MINIFS:{s:"Returns the minimum value among cells specified by a given set of conditions or criteria",p:{maxRange:{d:"is the range of cells to evaluate for the minimum value"},criteriaRange:{d:"is the range of cells to evaluate against the criteria"},criteria:{d:"is the criteria to evaluate against the criteria range"}},h:"Unimplemented"},PERMUT:{s:"Returns the number of permutations for a given number of objects that can be selected from the total objects",p:{number:{d:"is the total number of objects"},numberChoosen:{d:"is the number of objects in each permutation"}},h:"Unimplemented"},PERMUTATIONA:{s:"Returns the number of permutations for a given number of objects (with repetitions) that can be selected from the total objects",p:{number:{d:"is the total number of objects"},numberChoosen:{d:"is the number of objects in each permutation"}},h:"Unimplemented"},SMALL:{s:"Returns the k-th smallest value in a data set. For example, the fifth smallest number",p:{array:{d:"is an array or range of numerical data for which you want to determine the k-th smallest value"},k:{d:"is the position (from the smallest) in the array or range of the value to return"}}}};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";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"}};
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
+ *
4
+ * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
+ * License: The license can be found at https://www.sheetxl.com/license.
6
+ */
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B9jxuOg1CXcmbi9J.cjs"),t=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"),n=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m20 12-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8z"}),"ArrowDownward"),s=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),o=e.createSvgIcon(e.jsxRuntimeExports.jsx("path",{d:"m4 12 1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8z"}),"ArrowUpward"),i=e.reactExports.memo(t=>{const{label:n,value:s,options:o,onSelect:i,tabIndex:r=0,...l}=t,[a,c]=e.reactExports.useState(()=>x(s,o));e.reactExports.useEffect(()=>{c(x(s,o))},[s,o]);const p=e.go(e=>{c(e.target.value),i?.(o[e.target.value])},[i,o]),u=e.reactExports.useMemo(()=>Object.keys(o).map(t=>e.jsxRuntimeExports.jsx(e.MenuItem,{value:t,children:t},t)),[o]);return e.jsxRuntimeExports.jsxs(e.FormControl,{sx:{minWidth:135},size:"small",children:[e.jsxRuntimeExports.jsx(e.InputLabel,{children:n}),e.jsxRuntimeExports.jsx(e.Select,{inputProps:{tabIndex:r},value:a,label:n,onChange:p,sx:{backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},...l,children:u})]})}),r={Workbook:"workbook",Sheet:"sheet"},l={enter:140,exit:140},a={Formulas:e.Gd.Content.Formulas,Values:e.Gd.Content.Values,Notes:e.Gd.Content.Notes,Comments:e.Gd.Content.Comments},c={...a};delete c.Values;const p={"By Rows":!0,"By Columns":!1},x=(e,t)=>{const n=Object.keys(t);for(let s=0;s<n.length;s++){const o=n[s];if(t[o]===e)return o}},u=e.reactExports.memo(x=>{const{replace:u=!1,findText:d,replaceText:f,findOptions:m,replaceOptions:g,title:j,onHide:h,onFindOrReplace:E,...R}=x,O=e.reactExports.useRef(null),C=e.reactExports.useRef(null),y=e.reactExports.useRef(null),b=e.reactExports.useRef(null),v=e.reactExports.useRef(null),T=e.reactExports.useRef(null),k=(e,t)=>{t&&(t.start(e,{center:!1}),setTimeout(()=>t.stop(e),180))},[S,w]=e.reactExports.useState(!1),[I,F]=e.reactExports.useState(!1),[B,L]=e.reactExports.useState(u),[D,P]=e.reactExports.useState(!1),[A,G]=e.reactExports.useState(!1),[M,K]=e.reactExports.useState({findText:null,replaceText:null,replace:u,replaceOptions:{},findOptions:{matchCase:!1,matchEntireCell:!1,useRegex:!1,orientation:e.e.Orientation.Row,fields:[e.Gd.Content.Formulas]},scope:r.Sheet}),V=e.go(async(t,n,s,o)=>{if(!E)return;const i={...M};i.replaceOptions={...i.replaceOptions},i.findOptions={...i.findOptions},i.replaceOptions.maxCount=s?void 0:1,i.replace=n,n&&M.findOptions.fields?.[0]===e.Gd.Content.Values&&(i.findOptions.fields=[e.Gd.Content.Formulas]),i.findOptions.reverse=!t;const r=await E({autoFocus:o,...i});P(0===r)},[M,E]);e.reactExports.useEffect(()=>{P(!1)},[M,I,B]);const z=e.go((t,n)=>{if(t.keyCode===e.io.Enter){if(!M.findText)return;let e=!0,s=!1;t.shiftKey&&(e=!1),n?(t.ctrlKey&&t.altKey&&(s=!0),k(t,s?T.current:v.current)):k(t,e?b.current:y.current),V(e,n,s,!1)}},[M]),H=e.reactExports.useRef(null);e.reactExports.useLayoutEffect(()=>{K(t=>{const n={...t};n.findText=d&&d.length>0?d:t.findText??"",w(!0),void 0!==f&&(n.replaceText=f),m&&(n.findOptions={...n.findOptions,...m}),n.replaceText||(n.replaceText=""),n.replaceOptions&&(n.replaceOptions={...n.replaceOptions}),g&&(n.replaceOptions={...n.replaceOptions,...g}),M.findOptions.fields?.[0]||(M.findOptions.fields=[e.Gd.Content.Formulas]);const s=!(!g&&void 0===f);return s&&L(s),n}),A||H.current?.focus()},[d,f,m,g]),e.reactExports.useEffect(()=>{B?(M.findOptions.fields[0],e.Gd.Content.Values):w(!0)},[B]),e.reactExports.useEffect(()=>{if(S&&O.current&&M.findText===O.current.value)return O.current===document.activeElement||O.current.contains(document.activeElement)?(O.current?.select(),void w(!1)):void O.current.addEventListener("focus",()=>{O.current?.select(),w(!1)},{once:!0})},[S,M]);const[$,{width:N}]=e._I();return e.jsxRuntimeExports.jsx(e.Vg,{ref:H,title:j??(B?"Find & Replace":"Find"),initialPosition:{y:"35"},autoFocusSel:".input",onHide:h,onFocus:()=>G(!0),onBlur:()=>{G(!1),P(!1)},PaperProps:{elevation:A?3:1},...R,children:e.jsxRuntimeExports.jsxs(e.DialogContent,{dividers:!0,ref:$,sx:{display:"flex",flexDirection:"column",paddingLeft:e=>e.spacing(1.5),paddingRight:e=>e.spacing(1.5)},onKeyDown:e=>{if("h"===e.key&&e.ctrlKey)L(!0),O.current?.contains(document.activeElement)&&C.current?.focus();else if("f"===e.key&&e.ctrlKey)O.current?.focus();else if("c"===e.key&&e.altKey)K(e=>{const t={...e};return t.findOptions.matchCase=!e.findOptions.matchCase,t});else if("e"===e.key&&e.altKey)K(e=>{const t={...e};return t.findOptions.matchEntireCell=!e.findOptions.matchEntireCell,t});else{if("r"!==e.key||!e.altKey)return;K(e=>{const t={...e};return t.findOptions.useRegex=!e.findOptions.useRegex,t})}e.preventDefault()},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",gap:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"start",gap:e=>e.spacing(.25),paddingTop:"3px"},children:[e.jsxRuntimeExports.jsx(e.sm,{selected:I,onSelectToggle:e=>{F(e)},preventFocus:!0,label:"Toggle Additional Options",icon:e.kc(e.jsxRuntimeExports.jsx(e.zh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:B,onSelectToggle:e=>{L(e)},preventFocus:!0,label:"Toggle Replace",icon:e.kc(e.jsxRuntimeExports.jsx(e.Ph,{})),shortcut:{key:B?"F":"H",modifiers:[e.ro.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:e=>e.spacing(1),minWidth:N>460?"20em":void 0,backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{draggable:!1,ref:O,className:"input",autoFocus:!0,spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.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.sm,{selected:M.findOptions.matchCase,onSelectToggle:e=>{K(t=>{const n={...t};return n.findOptions.matchCase=e,n})},label:"Match Case",shortcut:{key:"C",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Fh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:M.findOptions.matchEntireCell,onSelectToggle:e=>{K(t=>{const n={...t};return n.findOptions.matchEntireCell=e,n})},label:"Match Entire Cell",shortcut:{key:"E",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Nh,{}))}),e.jsxRuntimeExports.jsx(e.sm,{selected:M.findOptions.useRegex,onSelectToggle:e=>{K(t=>{const n={...t};return n.findOptions.useRegex=e,n})},label:"Use Regular Expression",shortcut:{key:"R",modifiers:[e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Bh,{}))})]})})},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1),"& .MuiOutlinedInput-notchedOutline":{borderColor:e=>D?`${e.palette.error.main} !important`:void 0},"& .MuiInputLabel-outlined":{color:e=>D?`${e.palette.error.main} !important`:void 0}},value:M.findText??"",onChange:e=>{K(t=>{const n={...t};return n.findText=e.target.value,n})},onKeyDown:e=>z(e,!1),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{selected:M.findOptions.reverse,onSelectToggle:e=>{V(!1,!1)},touchRippleRef:y,label:"",shortcut:{key:"Enter",modifiers:[e.ro.Shift]},icon:e.kc(M.findOptions.orientation!==e.e.Orientation.Column?e.jsxRuntimeExports.jsx(t,{}):e.jsxRuntimeExports.jsx(o,{})),disabled:!M.findText}),e.jsxRuntimeExports.jsx(e.sm,{selected:!M.findOptions.reverse,onSelectToggle:e=>{V(!0,!1)},touchRippleRef:b,label:"Next Match",shortcut:{key:"Enter"},icon:e.kc(M.findOptions.orientation!==e.e.Orientation.Column?e.jsxRuntimeExports.jsx(s,{}):e.jsxRuntimeExports.jsx(n,{})),disabled:!M.findText})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:B,timeout:l,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:"row",alignItems:"center",marginTop:e=>e.spacing(2)},children:[e.jsxRuntimeExports.jsx(e.TextField,{label:"Replace",InputLabelProps:{shrink:!0},InputProps:{sx:{paddingRight:e=>e.spacing(1),backgroundImage:`linear-gradient(${e.alpha("#fff",e.hx(5))}, ${e.alpha("#fff",e.hx(5))})`},inputProps:{ref:C,className:"input",spellCheck:!1,autoComplete:"off",sx:{paddingTop:e=>e.spacing(1.25),paddingBottom:e=>e.spacing(.75)}}},sx:{flex:"1 1 100%",marginRight:e=>e.spacing(1)},value:M.replaceText??"",onChange:e=>{K(t=>{const n={...t};return n.replaceText=e.target.value,n})},onKeyDown:e=>z(e,!0),onContextMenu:e=>{e.stopPropagation()}}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{V(!0,!0)},touchRippleRef:v,label:"Replace",shortcut:{key:"Enter"},icon:e.kc(e.jsxRuntimeExports.jsx(e.Vh,{})),disabled:!M.findText}),e.jsxRuntimeExports.jsx(e.sm,{onSelectToggle:e=>{V(!0,!0,!0)},touchRippleRef:T,label:"Replace All",shortcut:{key:"Enter",modifiers:[e.ro.Ctrl,e.ro.Alt]},icon:e.kc(e.jsxRuntimeExports.jsx(e.Hh,{})),disabled:!M.findText})]})})]})]}),e.jsxRuntimeExports.jsx(e.Collapse,{in:I,timeout:l,onExit:()=>{O.current?.focus()},children:e.jsxRuntimeExports.jsxs(e.Box,{sx:{minHeight:"10px",flex:"1 1 100%",display:"flex",flexDirection:"column",gap:e=>e.spacing(.5),marginTop:e=>e.spacing(1)},children:[e.jsxRuntimeExports.jsx(e.Mp,{orientation:"horizontal",sx:{marginBottom:e=>e.spacing(1.5)}}),e.jsxRuntimeExports.jsxs(e.Box,{sx:{display:"flex",flexDirection:N>=413?"row":"column",justifyContent:"space-evenly",alignItems:"center",rowGap:e=>e.spacing(2)},tabIndex:-1,children:[e.jsxRuntimeExports.jsx(i,{label:"Within",value:M.scope,options:r,onSelect:e=>{K(t=>{const n={...t};return n.scope=e,n})}}),e.jsxRuntimeExports.jsx(i,{label:"Search",value:M.findOptions.orientation!==e.e.Orientation.Column,options:p,onSelect:t=>{K(n=>{const s={...n};return s.findOptions.orientation=t?e.e.Orientation.Row:e.e.Orientation.Column,s})}}),e.jsxRuntimeExports.jsx(i,{label:"Look in",value:B&&M.findOptions.fields?.[0]===e.Gd.Content.Values?e.Gd.Content.Formulas:M.findOptions.fields?.[0],options:B?c:a,onSelect:e=>{K(t=>{const n={...t};return n.findOptions.fields=[e],n})}})]})]})})]})})});exports.FindReplaceWindow=u,exports.ScopeOptions=r,exports.default=u;
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B2e7dDI-zKoqXpIW.cjs");function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach(function(r){t(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),c=0;c<e;c++)n[c]=arguments[c];return t.apply(r,[].concat(o,n))}}}function l(e){return{}.toString.call(e).includes("Object")}function s(e){return"function"==typeof e}var f=a(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),d=function(e,t){return l(t)||f("changeType"),Object.keys(t).some(function(t){return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n);var r,n})&&f("changeField"),t};function p(e,t){return s(t)?t(e.current):t}function g(e,t){return e.current=u(u({},e.current),t),t}function h(e,t,r){return s(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])}),r}var y,m={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},v=(y=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=y.length?y.apply(this,n):function(){for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return e.apply(t,[].concat(n,o))}})(m);function b(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],b(e[r],t[r]))}),n(n({},e),t)}var E={type:"cancelation",msg:"operation is manually canceled"};function w(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(E):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var O,j=function(e){if(Array.isArray(e))return e}(O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(e){var t;e||f("initialIsRequired"),l(e)||f("initialType"),t=e,Object.keys(t).length||f("initialContent")})(e),function(e){s(e)||l(e)||f("handlerType"),l(e)&&Object.values(e).some(function(e){return!s(e)})&&f("handlersType")}(t);var r={current:e},n=a(h)(r,t),o=a(g)(r),c=a(d)(e),i=a(p)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return function(e){s(e)||f("selectorType")}(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(n,o,c,i)(e)}]}({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(t.push(c.value),2!==t.length);r=!0);}catch(e){n=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw o}}return t}}(O)||function(e){if(e){if("string"==typeof e)return o(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,2):void 0}}(O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),x=j[0],M=j[1];function P(e){return document.body.appendChild(e)}function S(e){var t,r,n=x(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function R(){var e=x(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){k(t),e.resolve(t)},function(t){e.reject(t)})}function k(e){x().monaco||M({monaco:e})}var T=new Promise(function(e,t){return M({resolve:e,reject:t})}),I={config:function(e){var t=function(e){var t;return e||v("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||v("configType"),e.urls?(console.warn(m.deprecation),{paths:{vs:e.urls.monacoBase}}):e}(e),r=t.monaco,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["monaco"]);M(function(e){return{config:b(e.config,n),monaco:r}})},init:function(){var e=x(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(M({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),w(T);if(window.monaco&&window.monaco.editor)return k(window.monaco),e.resolve(window.monaco),w(T);!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(P,S)(R)}return w(T)},__getMonacoInstance:function(){return x(function(e){return e.monaco})}},C={display:"flex",position:"relative",textAlign:"initial"},z={width:"100%"},A={display:"none"},D={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},V=function({children:t}){return e.z.createElement("div",{style:D.container},t)},L=e.reactExports.memo(function({width:t,height:r,isEditorReady:n,loading:o,_ref:c,className:i,wrapperProps:u}){return e.z.createElement("section",{style:{...C,width:t,height:r},...u},!n&&e.z.createElement(V,null,o),e.z.createElement("div",{ref:c,style:{...z,...!n&&A},className:i}))}),q=function(t){e.reactExports.useEffect(t,[])},_=function(t,r,n=!0){let o=e.reactExports.useRef(!0);e.reactExports.useEffect(o.current||!n?()=>{o.current=!1}:t,r)};function N(){}function F(e,t,r,n){return function(e,t){return e.editor.getModel(U(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?U(e,n):void 0)}(e,t,r,n)}function U(e,t){return e.Uri.parse(t)}var B=e.reactExports.memo(function({original:t,modified:r,language:n,originalLanguage:o,modifiedLanguage:c,originalModelPath:i,modifiedModelPath:u,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:s="light",loading:f="Loading...",options:d={},height:p="100%",width:g="100%",className:h,wrapperProps:y={},beforeMount:m=N,onMount:v=N}){let[b,E]=e.reactExports.useState(!1),[w,O]=e.reactExports.useState(!0),j=e.reactExports.useRef(null),x=e.reactExports.useRef(null),M=e.reactExports.useRef(null),P=e.reactExports.useRef(v),S=e.reactExports.useRef(m),R=e.reactExports.useRef(!1);q(()=>{let e=I.init();return e.then(e=>(x.current=e)&&O(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>j.current?function(){let e=j.current?.getModel();a||e?.original?.dispose(),l||e?.modified?.dispose(),j.current?.dispose()}():e.cancel()}),_(()=>{if(j.current&&x.current){let e=j.current.getOriginalEditor(),r=F(x.current,t||"",o||n||"text",i||"");r!==e.getModel()&&e.setModel(r)}},[i],b),_(()=>{if(j.current&&x.current){let e=j.current.getModifiedEditor(),t=F(x.current,r||"",c||n||"text",u||"");t!==e.getModel()&&e.setModel(t)}},[u],b),_(()=>{let e=j.current.getModifiedEditor();e.getOption(x.current.editor.EditorOption.readOnly)?e.setValue(r||""):r!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[r],b),_(()=>{j.current?.getModel()?.original.setValue(t||"")},[t],b),_(()=>{let{original:e,modified:t}=j.current.getModel();x.current.editor.setModelLanguage(e,o||n||"text"),x.current.editor.setModelLanguage(t,c||n||"text")},[n,o,c],b),_(()=>{x.current?.editor.setTheme(s)},[s],b),_(()=>{j.current?.updateOptions(d)},[d],b);let k=e.reactExports.useCallback(()=>{if(!x.current)return;S.current(x.current);let e=F(x.current,t||"",o||n||"text",i||""),a=F(x.current,r||"",c||n||"text",u||"");j.current?.setModel({original:e,modified:a})},[n,r,c,t,o,i,u]),T=e.reactExports.useCallback(()=>{!R.current&&M.current&&(j.current=x.current.editor.createDiffEditor(M.current,{automaticLayout:!0,...d}),k(),x.current?.editor.setTheme(s),E(!0),R.current=!0)},[d,s,k]);return e.reactExports.useEffect(()=>{b&&P.current(j.current,x.current)},[b]),e.reactExports.useEffect(()=>{!w&&!b&&T()},[w,b,T]),e.z.createElement(L,{width:g,height:p,isEditorReady:b,loading:f,_ref:M,className:h,wrapperProps:y})}),Y=new Map,$=e.reactExports.memo(function({defaultValue:t,defaultLanguage:r,defaultPath:n,value:o,language:c,path:i,theme:u="light",line:a,loading:l="Loading...",options:s={},overrideServices:f={},saveViewState:d=!0,keepCurrentModel:p=!1,width:g="100%",height:h="100%",className:y,wrapperProps:m={},beforeMount:v=N,onMount:b=N,onChange:E,onValidate:w=N}){let[O,j]=e.reactExports.useState(!1),[x,M]=e.reactExports.useState(!0),P=e.reactExports.useRef(null),S=e.reactExports.useRef(null),R=e.reactExports.useRef(null),k=e.reactExports.useRef(b),T=e.reactExports.useRef(v),C=e.reactExports.useRef(),z=e.reactExports.useRef(o),A=function(t){let r=e.reactExports.useRef();return e.reactExports.useEffect(()=>{r.current=t},[t]),r.current}(i),D=e.reactExports.useRef(!1),V=e.reactExports.useRef(!1);q(()=>{let e=I.init();return e.then(e=>(P.current=e)&&M(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>S.current?(C.current?.dispose(),p?d&&Y.set(i,S.current.saveViewState()):S.current.getModel()?.dispose(),void S.current.dispose()):e.cancel()}),_(()=>{let e=F(P.current,t||o||"",r||c||"",i||n||"");e!==S.current?.getModel()&&(d&&Y.set(A,S.current?.saveViewState()),S.current?.setModel(e),d&&S.current?.restoreViewState(Y.get(i)))},[i],O),_(()=>{S.current?.updateOptions(s)},[s],O),_(()=>{!S.current||void 0===o||(S.current.getOption(P.current.editor.EditorOption.readOnly)?S.current.setValue(o):o!==S.current.getValue()&&(V.current=!0,S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),S.current.pushUndoStop(),V.current=!1))},[o],O),_(()=>{let e=S.current?.getModel();e&&c&&P.current?.editor.setModelLanguage(e,c)},[c],O),_(()=>{void 0!==a&&S.current?.revealLine(a)},[a],O),_(()=>{P.current?.editor.setTheme(u)},[u],O);let U=e.reactExports.useCallback(()=>{if(R.current&&P.current&&!D.current){T.current(P.current);let e=i||n,l=F(P.current,o||t||"",r||c||"",e||"");S.current=P.current?.editor.create(R.current,{model:l,automaticLayout:!0,...s},f),d&&S.current.restoreViewState(Y.get(e)),P.current.editor.setTheme(u),void 0!==a&&S.current.revealLine(a),j(!0),D.current=!0}},[t,r,n,o,c,i,s,f,d,u,a]);return e.reactExports.useEffect(()=>{O&&k.current(S.current,P.current)},[O]),e.reactExports.useEffect(()=>{!x&&!O&&U()},[x,O,U]),z.current=o,e.reactExports.useEffect(()=>{O&&E&&(C.current?.dispose(),C.current=S.current?.onDidChangeModelContent(e=>{V.current||E(S.current.getValue(),e)}))},[O,E]),e.reactExports.useEffect(()=>{if(O){let e=P.current.editor.onDidChangeMarkers(e=>{let t=S.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=P.current.editor.getModelMarkers({resource:t});w?.(e)}});return()=>{e?.dispose()}}return()=>{}},[O,w]),e.z.createElement(L,{width:g,height:h,isEditorReady:O,loading:l,_ref:R,className:y,wrapperProps:m})}),G=$;exports.DiffEditor=B,exports.Editor=$,exports.default=G,exports.loader=I,exports.useMonaco=function(){let[t,r]=e.reactExports.useState(I.__getMonacoInstance());return q(()=>{let e;return t||(e=I.init(),e.then(e=>{r(e)})),()=>e?.cancel()}),t};
7
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./B9jxuOg1CXcmbi9J.cjs");function t(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach(function(r){t(e,r,o[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach(function(t){c(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function a(e){return function t(){for(var r=this,n=arguments.length,o=new Array(n),c=0;c<n;c++)o[c]=arguments[c];return o.length>=e.length?e.apply(this,o):function(){for(var e=arguments.length,n=new Array(e),c=0;c<e;c++)n[c]=arguments[c];return t.apply(r,[].concat(o,n))}}}function l(e){return{}.toString.call(e).includes("Object")}function s(e){return"function"==typeof e}var f=a(function(e,t){throw new Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),d=function(e,t){return l(t)||f("changeType"),Object.keys(t).some(function(t){return r=e,n=t,!Object.prototype.hasOwnProperty.call(r,n);var r,n})&&f("changeField"),t};function p(e,t){return s(t)?t(e.current):t}function g(e,t){return e.current=u(u({},e.current),t),t}function h(e,t,r){return s(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null===(n=t[r])||void 0===n?void 0:n.call(t,e.current[r])}),r}var y,m={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},v=(y=function(e,t){throw new Error(e[t]||e.default)},function e(){for(var t=this,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length>=y.length?y.apply(this,n):function(){for(var r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];return e.apply(t,[].concat(n,o))}})(m);function b(e,t){return Object.keys(t).forEach(function(r){t[r]instanceof Object&&e[r]&&Object.assign(t[r],b(e[r],t[r]))}),n(n({},e),t)}var E={type:"cancelation",msg:"operation is manually canceled"};function w(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(E):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var O,j=function(e){if(Array.isArray(e))return e}(O=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(function(e){var t;e||f("initialIsRequired"),l(e)||f("initialType"),t=e,Object.keys(t).length||f("initialContent")})(e),function(e){s(e)||l(e)||f("handlerType"),l(e)&&Object.values(e).some(function(e){return!s(e)})&&f("handlersType")}(t);var r={current:e},n=a(h)(r,t),o=a(g)(r),c=a(d)(e),i=a(p)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return function(e){s(e)||f("selectorType")}(e),e(r.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(n,o,c,i)(e)}]}({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var t=[],r=!0,n=!1,o=void 0;try{for(var c,i=e[Symbol.iterator]();!(r=(c=i.next()).done)&&(t.push(c.value),2!==t.length);r=!0);}catch(e){n=!0,o=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw o}}return t}}(O)||function(e){if(e){if("string"==typeof e)return o(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?o(e,2):void 0}}(O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),x=j[0],M=j[1];function P(e){return document.body.appendChild(e)}function S(e){var t,r,n=x(function(e){return{config:e.config,reject:e.reject}}),o=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return o.onload=function(){return e()},o.onerror=n.reject,o}function R(){var e=x(function(e){return{config:e.config,resolve:e.resolve,reject:e.reject}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(t){k(t),e.resolve(t)},function(t){e.reject(t)})}function k(e){x().monaco||M({monaco:e})}var T=new Promise(function(e,t){return M({resolve:e,reject:t})}),I={config:function(e){var t=function(e){var t;return e||v("configIsRequired"),t=e,{}.toString.call(t).includes("Object")||v("configType"),e.urls?(console.warn(m.deprecation),{paths:{vs:e.urls.monacoBase}}):e}(e),r=t.monaco,n=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},c=Object.keys(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(n=0;n<c.length;n++)r=c[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(t,["monaco"]);M(function(e){return{config:b(e.config,n),monaco:r}})},init:function(){var e=x(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(M({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),w(T);if(window.monaco&&window.monaco.editor)return k(window.monaco),e.resolve(window.monaco),w(T);!function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}}(P,S)(R)}return w(T)},__getMonacoInstance:function(){return x(function(e){return e.monaco})}},C={display:"flex",position:"relative",textAlign:"initial"},z={width:"100%"},A={display:"none"},D={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},V=function({children:t}){return e.z.createElement("div",{style:D.container},t)},L=e.reactExports.memo(function({width:t,height:r,isEditorReady:n,loading:o,_ref:c,className:i,wrapperProps:u}){return e.z.createElement("section",{style:{...C,width:t,height:r},...u},!n&&e.z.createElement(V,null,o),e.z.createElement("div",{ref:c,style:{...z,...!n&&A},className:i}))}),q=function(t){e.reactExports.useEffect(t,[])},_=function(t,r,n=!0){let o=e.reactExports.useRef(!0);e.reactExports.useEffect(o.current||!n?()=>{o.current=!1}:t,r)};function N(){}function F(e,t,r,n){return function(e,t){return e.editor.getModel(U(e,t))}(e,n)||function(e,t,r,n){return e.editor.createModel(t,r,n?U(e,n):void 0)}(e,t,r,n)}function U(e,t){return e.Uri.parse(t)}var B=e.reactExports.memo(function({original:t,modified:r,language:n,originalLanguage:o,modifiedLanguage:c,originalModelPath:i,modifiedModelPath:u,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:l=!1,theme:s="light",loading:f="Loading...",options:d={},height:p="100%",width:g="100%",className:h,wrapperProps:y={},beforeMount:m=N,onMount:v=N}){let[b,E]=e.reactExports.useState(!1),[w,O]=e.reactExports.useState(!0),j=e.reactExports.useRef(null),x=e.reactExports.useRef(null),M=e.reactExports.useRef(null),P=e.reactExports.useRef(v),S=e.reactExports.useRef(m),R=e.reactExports.useRef(!1);q(()=>{let e=I.init();return e.then(e=>(x.current=e)&&O(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>j.current?function(){let e=j.current?.getModel();a||e?.original?.dispose(),l||e?.modified?.dispose(),j.current?.dispose()}():e.cancel()}),_(()=>{if(j.current&&x.current){let e=j.current.getOriginalEditor(),r=F(x.current,t||"",o||n||"text",i||"");r!==e.getModel()&&e.setModel(r)}},[i],b),_(()=>{if(j.current&&x.current){let e=j.current.getModifiedEditor(),t=F(x.current,r||"",c||n||"text",u||"");t!==e.getModel()&&e.setModel(t)}},[u],b),_(()=>{let e=j.current.getModifiedEditor();e.getOption(x.current.editor.EditorOption.readOnly)?e.setValue(r||""):r!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:!0}]),e.pushUndoStop())},[r],b),_(()=>{j.current?.getModel()?.original.setValue(t||"")},[t],b),_(()=>{let{original:e,modified:t}=j.current.getModel();x.current.editor.setModelLanguage(e,o||n||"text"),x.current.editor.setModelLanguage(t,c||n||"text")},[n,o,c],b),_(()=>{x.current?.editor.setTheme(s)},[s],b),_(()=>{j.current?.updateOptions(d)},[d],b);let k=e.reactExports.useCallback(()=>{if(!x.current)return;S.current(x.current);let e=F(x.current,t||"",o||n||"text",i||""),a=F(x.current,r||"",c||n||"text",u||"");j.current?.setModel({original:e,modified:a})},[n,r,c,t,o,i,u]),T=e.reactExports.useCallback(()=>{!R.current&&M.current&&(j.current=x.current.editor.createDiffEditor(M.current,{automaticLayout:!0,...d}),k(),x.current?.editor.setTheme(s),E(!0),R.current=!0)},[d,s,k]);return e.reactExports.useEffect(()=>{b&&P.current(j.current,x.current)},[b]),e.reactExports.useEffect(()=>{!w&&!b&&T()},[w,b,T]),e.z.createElement(L,{width:g,height:p,isEditorReady:b,loading:f,_ref:M,className:h,wrapperProps:y})}),Y=new Map,$=e.reactExports.memo(function({defaultValue:t,defaultLanguage:r,defaultPath:n,value:o,language:c,path:i,theme:u="light",line:a,loading:l="Loading...",options:s={},overrideServices:f={},saveViewState:d=!0,keepCurrentModel:p=!1,width:g="100%",height:h="100%",className:y,wrapperProps:m={},beforeMount:v=N,onMount:b=N,onChange:E,onValidate:w=N}){let[O,j]=e.reactExports.useState(!1),[x,M]=e.reactExports.useState(!0),P=e.reactExports.useRef(null),S=e.reactExports.useRef(null),R=e.reactExports.useRef(null),k=e.reactExports.useRef(b),T=e.reactExports.useRef(v),C=e.reactExports.useRef(),z=e.reactExports.useRef(o),A=function(t){let r=e.reactExports.useRef();return e.reactExports.useEffect(()=>{r.current=t},[t]),r.current}(i),D=e.reactExports.useRef(!1),V=e.reactExports.useRef(!1);q(()=>{let e=I.init();return e.then(e=>(P.current=e)&&M(!1)).catch(e=>"cancelation"!==e?.type&&console.error("Monaco initialization: error:",e)),()=>S.current?(C.current?.dispose(),p?d&&Y.set(i,S.current.saveViewState()):S.current.getModel()?.dispose(),void S.current.dispose()):e.cancel()}),_(()=>{let e=F(P.current,t||o||"",r||c||"",i||n||"");e!==S.current?.getModel()&&(d&&Y.set(A,S.current?.saveViewState()),S.current?.setModel(e),d&&S.current?.restoreViewState(Y.get(i)))},[i],O),_(()=>{S.current?.updateOptions(s)},[s],O),_(()=>{!S.current||void 0===o||(S.current.getOption(P.current.editor.EditorOption.readOnly)?S.current.setValue(o):o!==S.current.getValue()&&(V.current=!0,S.current.executeEdits("",[{range:S.current.getModel().getFullModelRange(),text:o,forceMoveMarkers:!0}]),S.current.pushUndoStop(),V.current=!1))},[o],O),_(()=>{let e=S.current?.getModel();e&&c&&P.current?.editor.setModelLanguage(e,c)},[c],O),_(()=>{void 0!==a&&S.current?.revealLine(a)},[a],O),_(()=>{P.current?.editor.setTheme(u)},[u],O);let U=e.reactExports.useCallback(()=>{if(R.current&&P.current&&!D.current){T.current(P.current);let e=i||n,l=F(P.current,o||t||"",r||c||"",e||"");S.current=P.current?.editor.create(R.current,{model:l,automaticLayout:!0,...s},f),d&&S.current.restoreViewState(Y.get(e)),P.current.editor.setTheme(u),void 0!==a&&S.current.revealLine(a),j(!0),D.current=!0}},[t,r,n,o,c,i,s,f,d,u,a]);return e.reactExports.useEffect(()=>{O&&k.current(S.current,P.current)},[O]),e.reactExports.useEffect(()=>{!x&&!O&&U()},[x,O,U]),z.current=o,e.reactExports.useEffect(()=>{O&&E&&(C.current?.dispose(),C.current=S.current?.onDidChangeModelContent(e=>{V.current||E(S.current.getValue(),e)}))},[O,E]),e.reactExports.useEffect(()=>{if(O){let e=P.current.editor.onDidChangeMarkers(e=>{let t=S.current.getModel()?.uri;if(t&&e.find(e=>e.path===t.path)){let e=P.current.editor.getModelMarkers({resource:t});w?.(e)}});return()=>{e?.dispose()}}return()=>{}},[O,w]),e.z.createElement(L,{width:g,height:h,isEditorReady:O,loading:l,_ref:R,className:y,wrapperProps:m})}),G=$;exports.DiffEditor=B,exports.Editor=$,exports.default=G,exports.loader=I,exports.useMonaco=function(){let[t,r]=e.reactExports.useState(I.__getMonacoInstance());return q(()=>{let e;return t||(e=I.init(),e.then(e=>{r(e)})),()=>e?.cancel()}),t};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.11
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.