@sheetxl/studio-vanilla 0.7.28-beta.2 → 0.7.28-beta.4

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 (330) hide show
  1. package/browser/cjs/BClFnd-voK5qaz1I.cjs +88 -0
  2. package/browser/cjs/{Cf902jiI4KmAo0xm.cjs → BEJFcqVMDMKOvs11.cjs} +1 -1
  3. package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +1 -0
  4. package/browser/cjs/{BREMLtxkQhtNSVra.cjs → BF14ZEAnaqxXroSj.cjs} +1 -1
  5. package/browser/cjs/{Ca4DwcXOTqVuUOVq2.cjs → BFdq8CHyR6FQvmQA2.cjs} +1 -1
  6. package/browser/cjs/{DMNRMppC1tGKEiCa2.cjs → BKXFdLiztqEHIjQ_2.cjs} +1 -1
  7. package/browser/cjs/{Bf__CHuG3Xml-c51.cjs → BbEwESVyRYXzMlW7.cjs} +2 -2
  8. package/browser/cjs/BjgiE9MBDkKiRL6q.cjs +3 -0
  9. package/browser/cjs/Byl4bQWpLnjthChn2.cjs +7 -0
  10. package/browser/cjs/BzsAbsb35hYT3xUc.cjs +5 -0
  11. package/browser/cjs/{DOkSIS6STTVNDKfk.cjs → C0hGnOYkvrwxaGrw.cjs} +1 -1
  12. package/browser/cjs/{CFnnvEHNOFcAUaHE.cjs → C7GpcB_YgM-RLa2P.cjs} +1 -1
  13. package/browser/cjs/C8GZf3UAOhfisYCs.cjs +1 -0
  14. package/browser/cjs/{BhZ21zg_gpygQ79x2.cjs → C9L-xibuJ434Mqqq2.cjs} +1 -1
  15. package/browser/cjs/CEXs4eRDOv4EjbSw2.cjs +1 -0
  16. package/browser/cjs/{CJGPlP_eqUiNvS8J2.cjs → CEpXnHhrczUmIwMa2.cjs} +1 -1
  17. package/browser/cjs/{0udzrkQg8Nf9nRbI.cjs → CLXzYSmhCHV5LQh7.cjs} +1 -1
  18. package/browser/cjs/{CFSMFEE8YXmRYGPL.cjs → CN-dCAHVcxuMSyFz.cjs} +1 -1
  19. package/browser/cjs/CZfNBCd62H_Jpkhl.cjs +12 -0
  20. package/browser/cjs/{CUCXS7BrMsSnSXVr.cjs → Ck7Tc5npWk73wrF3.cjs} +2 -2
  21. package/browser/cjs/{BFDhFIqPaIRivcO3.cjs → CnjaTz8HJXStwuH8.cjs} +1 -1
  22. package/browser/cjs/CoiPEZabJyiXxLta.cjs +1 -0
  23. package/browser/cjs/{pb5LnC0Ye1NBoRvg.cjs → Cu0UCwSpRK4OnCuP.cjs} +1 -1
  24. package/browser/cjs/{C1nECuaXDUkYlVQY2.cjs → D-o-mlG9tYSuZrvy2.cjs} +1 -1
  25. package/browser/cjs/DAA0zpvkrMOLDPxr.cjs +1 -0
  26. package/browser/cjs/{Bf2M1sdVR89d3yxg.cjs → DAXgAEDtRrsWAePT.cjs} +1 -1
  27. package/browser/cjs/{BHgdQUCqHS6ORa7c.cjs → DMp9wql2kbZKAbGe.cjs} +1 -1
  28. package/browser/cjs/{B37bgauMls6bQwyP.cjs → DQTBgNqDHInvxrwS.cjs} +1 -1
  29. package/browser/cjs/DcHxh5QxfVitzdhv.cjs +1 -0
  30. package/browser/cjs/{CctPhNbQyX8s8ExI.cjs → DgGGzl7jq3i7Cqfi.cjs} +1 -1
  31. package/browser/cjs/{CcLfDX6uHge33mwb2.cjs → Dkgu60euhL6wPoYa2.cjs} +1 -1
  32. package/browser/cjs/DsgqbxMOVQmAFSDy2.cjs +1 -0
  33. package/browser/cjs/{1KM7qHlz__nQ218X2.cjs → DtaFdoK4CppKRF6F2.cjs} +1 -1
  34. package/browser/cjs/Dtc_8P-koQRmNT2s.cjs +33 -0
  35. package/browser/cjs/{BOLM1QOvxUKhYbK5.cjs → FUM_3mQlC-6WPjkT.cjs} +1 -1
  36. package/browser/cjs/IbciPMJP2Pam3ERm.cjs +1 -0
  37. package/browser/cjs/{DCoIIJyPtSyIsTJb.cjs → J7LQgueGGNUE9emR.cjs} +1 -1
  38. package/browser/cjs/{Dl_WSCZ-dmkNHosq.cjs → M19oMY91yZxf2WAR.cjs} +1 -1
  39. package/browser/cjs/NzAMMcPT7SETmqPg.cjs +2 -0
  40. package/browser/cjs/{DtgmpiVT0_CaM-eU2.cjs → QK9BfdSZPLmyRpGi2.cjs} +1 -1
  41. package/browser/cjs/{VRIZX6-JADRk2Iao.cjs → X1LnR885SNQaK5HZ.cjs} +1 -1
  42. package/browser/cjs/{CLb55xtEE2qOnXPJ2.cjs → Y78-VwYSNffwXRVz2.cjs} +1 -1
  43. package/browser/cjs/bpcQTcfzGVBK-rfT2.cjs +1 -0
  44. package/browser/cjs/index.cjs +2 -2
  45. package/browser/cjs/{hI9m9CzcSN-spUI2.cjs → iyvcAhhnDFxkR8tW.cjs} +1 -1
  46. package/browser/cjs/jIxFDc3EQDDXisAC2.cjs +1 -0
  47. package/browser/cjs/{BqJIWrtud1IdCny_.cjs → kqP-W5qRIy-d-ChZ.cjs} +1 -1
  48. package/browser/cjs/{CwBld2h5K_-uk804.cjs → mXzhcays1ok40iiU.cjs} +1 -1
  49. package/browser/cjs/{udZZuwSKdGYCjFsn.cjs → n4ZQ0-3uSrEsInbg.cjs} +1 -1
  50. package/browser/cjs/{BC9dJX0j0S8cLlfd.cjs → sFD2bsTPq558FCMx.cjs} +1 -1
  51. package/browser/cjs/{COpCKLHQ5jF_IoiS2.cjs → stXrcKZOIHl0fq5U2.cjs} +1 -1
  52. package/browser/cjs/{KzrnzN7NeOPdB-Ic.cjs → zEytED4Eleo5DVvS.cjs} +1 -1
  53. package/browser/esm/{DBVG6J7cidK5K5QE.mjs → -9NsA_4pZqcEQBX7.mjs} +6 -6
  54. package/browser/esm/{CMBLrQ2K32IKaZHu.mjs → 5LJ1sC7IPn109Ien.mjs} +2 -2
  55. package/browser/esm/{GjOmlUOFqz90L-9x2.mjs → 6A8iYjFWJzx5PaTP2.mjs} +8 -8
  56. package/{cdn/assets/COgR28nGHeL59WLY.js → browser/esm/B-dSKzg5shPDd733.mjs} +1 -1
  57. package/{cdn/assets/MIcNDPtZ2tOqEJLi.js → browser/esm/B3tC7wY_kUGXf5sb2.mjs} +1 -1
  58. package/browser/esm/{CZVi5-MceLzKtZCX2.mjs → B4fSPDN923nqCDVE2.mjs} +1 -1
  59. package/browser/esm/{qxXoiVui214rfZng2.mjs → B6bX01HNxwBooBTX2.mjs} +15 -15
  60. package/browser/esm/{B9yaWiEn9khUlCmT.mjs → B9t9fF8FNCLomgK_.mjs} +12 -8
  61. package/browser/esm/{D0OOkDRea_6_jbt2.mjs → BBhB25AlKEzdoI0V.mjs} +1 -1
  62. package/{cdn/assets/Ds-v1MKCCCRK5y__.js → browser/esm/BGAXiHOiX_PZ1ww12.mjs} +1 -1
  63. package/{cdn/assets/BsGIsDAUk9bSNC2-.js → browser/esm/BGWyNjrM55ce-D1o2.mjs} +1 -1
  64. package/browser/esm/{Bi2jbQd8mecebnRM2.mjs → BJQfvwvEke-uN0_02.mjs} +12 -4
  65. package/browser/esm/{BVGcECvfrJsTA5kD.mjs → BOMct7uvqiNJIS63.mjs} +2 -2
  66. package/{cdn/assets/BkgfJjCizaRuC_N5.js → browser/esm/BPAEbeXV75XIAS4n2.mjs} +1 -1
  67. package/{cdn/assets/D5F6MTHIhDIafUlO.js → browser/esm/BPwpFe7c1-F62aAU.mjs} +2 -2
  68. package/{cdn/assets/7R7r4iHAxN8rnOmW2.js → browser/esm/BQt5lpPjssz4Lvhs.mjs} +2 -2
  69. package/{cdn/assets/9XJnug1pfQreKXZr.js → browser/esm/BRBHACVjnV1_6VLQ2.mjs} +1 -1
  70. package/browser/esm/BT2mYkpZGrhWovkv2.mjs +238 -0
  71. package/browser/esm/{9LhOHxxuP2jO-YDv.mjs → BUKNpzG26V0YaAzW.mjs} +12 -12
  72. package/browser/esm/{BfmngO7uzIcK9Lux2.mjs → BZSAb1WGbwagUKGv2.mjs} +5 -5
  73. package/browser/esm/{BFIwPtz-TW4VvaZR.mjs → BZkd8LNLgEd5WQXO2.mjs} +1 -1
  74. package/{cdn/assets/Ccj-Gq_hyRtb93R-.js → browser/esm/B_U_UpQXdbjNRthb.mjs} +1 -1
  75. package/browser/esm/{Ba0_2fGhHSS7kV2l2.mjs → BaIe3fLfPLw3FbYP2.mjs} +1 -1
  76. package/browser/esm/{B27wXIrrKNvUzMGE.mjs → Bc2Dp6W4U_22cv7c.mjs} +1 -1
  77. package/{cdn/assets/DwGeIZ6nCjk9UiXk.js → browser/esm/Bce8ZTUCpXr5Y_zl.mjs} +1 -1
  78. package/browser/esm/{ioECgEEk-HCEo_qL.mjs → BetL7yI63lEdQ0gM.mjs} +1 -1
  79. package/browser/esm/{DJl3zpaAG7xtX-vB.mjs → BgNWvKfVoVgVVDB4.mjs} +13 -13
  80. package/browser/esm/{CZDNrQuttGG8SW_a2.mjs → BgwHVPZp494SgQ0d2.mjs} +7 -7
  81. package/browser/esm/{DRU8HlvNdJ-IdDad2.mjs → Bj3gyDL2ZJUDcxt72.mjs} +8 -8
  82. package/{cdn/assets/DavD7unX6vAvDq492.js → browser/esm/BjYIAiuzZbD-dk822.mjs} +1 -1
  83. package/{cdn/assets/Cl5KKGUmrf4e7lB3.js → browser/esm/Bjx-9lUaScF5-Hki2.mjs} +1 -1
  84. package/browser/esm/{ejd62mg_zHpVGhbH.mjs → BkBT2LB95lonIiBu.mjs} +7 -7
  85. package/{cdn/assets/_fGcdybbKg6_ekOp.js → browser/esm/BmTSjuGI87QqMA-a.mjs} +2 -2
  86. package/browser/esm/{BmNqTvvRVjF_c1qz.mjs → BqMvXD8dX4ksYjnj.mjs} +3 -3
  87. package/{cdn/assets/BJkZVLqBoBngX2V-.js → browser/esm/BrUe0MnOhxzeOngn2.mjs} +1 -1
  88. package/browser/esm/{D8iYbJIpITf1DL9N.mjs → BsP1iPcd49wYIIoP.mjs} +3 -3
  89. package/browser/esm/{Dnk-x1RHZ-HCYKGy2.mjs → BxecIrskOMQZB-Xc.mjs} +1 -1
  90. package/browser/esm/{B9epCKVFFaq_fX4j.mjs → ByJMrAYRARLc7uZQ2.mjs} +1 -1
  91. package/browser/esm/{Dr0aqIJxcsRdzQox2.mjs → Bz3-FDGVU67Izdnv2.mjs} +7 -7
  92. package/browser/esm/{DzujlnEzr0M92mNz.mjs → BzktrYJH7SQ9GyUI.mjs} +1 -1
  93. package/browser/esm/{CbGZtQlImYkXEGhI.mjs → C3dXBjR3SrDCdJlm.mjs} +6 -6
  94. package/browser/esm/{CTZpbsb07-ieZ8Sv.mjs → C4vqrW3EmJDy1otX.mjs} +1 -1
  95. package/browser/esm/{DqJYCOxMI0h7olt5.mjs → C7xBBqvPqat9oEft.mjs} +1 -1
  96. package/browser/esm/{D2fjpIsYf8xbJ3qt2.mjs → CBC_MJL6Bwk7bzQz.mjs} +1 -1
  97. package/browser/esm/{ytk4-EolaWr77_nC.mjs → CBuulf8RrSItPZJi.mjs} +2 -2
  98. package/browser/esm/{BnFl2afy78teEcaD.mjs → CElACTFuqPAnCAMJ.mjs} +4 -4
  99. package/browser/esm/{Btdn9KXWaFikV2VI.mjs → CFVzVz9BCRBowBea.mjs} +3 -3
  100. package/browser/esm/{ZFZ3X4ek1OFa4xKm.mjs → CFtsbobCiLpZIzCh.mjs} +3 -3
  101. package/browser/esm/{GzFeH6oCN6eWnXbX.mjs → CHmSnCPoww1StSta.mjs} +4 -4
  102. package/browser/esm/{DvFh-0k-PvKrKwkt.mjs → CJ-lOo2cXlcYrg2P.mjs} +5 -5
  103. package/browser/esm/{DL-6XEhXlHkvgtF_2.mjs → CJGlwQusOCSy9ZAb2.mjs} +1 -1
  104. package/browser/esm/{B6mzT3jt8PsKgBWH2.mjs → CRsnKeHAnKrWvuG52.mjs} +1271 -1233
  105. package/browser/esm/{uwB2_ERsYGldq4on2.mjs → CTwLETvNO4KeXbkK2.mjs} +1 -1
  106. package/{cdn/assets/BVRLpEysZKAgHCqC.js → browser/esm/CXDtDYyREwoFwtMJ2.mjs} +1 -1
  107. package/browser/esm/{AS-KiFBez1nwB_vC.mjs → CXlA71yGA1Hqvp_S.mjs} +5 -5
  108. package/browser/esm/{DafUQqzTsegjuTX92.mjs → CY4ANhbzXqZMJPnL2.mjs} +7 -7
  109. package/browser/esm/{DbmQdZUcujE_ICGk.mjs → Ca6NSkWoi9DvRJjQ.mjs} +3 -3
  110. package/{cdn/assets/zsqoPH22vSCRd7nP.js → browser/esm/CbJ_xQftC08KrH3E2.mjs} +1 -1
  111. package/{cdn/assets/BIklj1nwWIcZCmKp.js → browser/esm/Cd8G1nX1dKzp-mho2.mjs} +1 -1
  112. package/{cdn/assets/Dwplym5bjb2VhwM82.js → browser/esm/CfjG7gHJ4oN60Clj.mjs} +3 -3
  113. package/{cdn/assets/ClIlIFc_63tI2r9S.js → browser/esm/CmYCYFWjq9KP6xw72.mjs} +1 -1
  114. package/browser/esm/{CQhIZf112hMPFsjD2.mjs → CpEgh9EOkeMvwAuj.mjs} +1 -1
  115. package/{cdn/assets/D-YuVmmS-kKcV9xr2.js → browser/esm/CsKCqLuggHhYC93k2.mjs} +1 -1
  116. package/{cdn/assets/D_olfPNNH0l8JrFu.js → browser/esm/CxKAnYBWCYMkUpnr.mjs} +234 -228
  117. package/browser/esm/{DnS-xX8jkMERhPbF.mjs → Cye91DfKIFwRdDpF.mjs} +8 -8
  118. package/{cdn/assets/HA0CYoHHAU5VgVW5.js → browser/esm/D2Ls6urWeByV5W-B2.mjs} +1 -1
  119. package/browser/esm/{DeY3vEbV4T2WgYP22.mjs → D4aK0uTRJQpM6392.mjs} +1 -1
  120. package/{cdn/assets/BCcFKm-VY0gZ0TzZ.js → browser/esm/D5BuXc-kVnr6Xiae.mjs} +1 -1
  121. package/browser/esm/{Bp1kaqNxSV0Hskwb.mjs → D8zyGG6yt4CsyA8K.mjs} +7 -7
  122. package/{cdn/assets/DUVV-c3N8XuG8lyr.js → browser/esm/DENx9Ts-f8adXw3Y2.mjs} +1 -1
  123. package/browser/esm/{BVLamiPGpKQKiyPW2.mjs → DER7-kADXFnTmK-32.mjs} +13 -13
  124. package/browser/esm/{CshVZ7dBZzXK1qdP.mjs → DFQGftDcmDwUGxV8.mjs} +5 -5
  125. package/browser/esm/{C8KBkOocNYDNWBDu.mjs → DGfzktq0BrIwcb8j.mjs} +2 -2
  126. package/browser/esm/{B-cVGeAqeE1MJbcg2.mjs → DHQcJqD-EtJ0Efug2.mjs} +9 -9
  127. package/browser/esm/{DyDgU8THo8GBGQ4M.mjs → DJSXXWTUJGbXqLLx.mjs} +1 -1
  128. package/browser/esm/{me8l7609yOrUhpBU2.mjs → DJk14sSSnSHiEXZ72.mjs} +1 -1
  129. package/{cdn/assets/Wy-cTg0gDeXuKv0a.js → browser/esm/DLArQtAbWAarI8od2.mjs} +1 -1
  130. package/{cdn/assets/CwRqY3jy0pkU72Ty.js → browser/esm/DM4g0nYgYXgI44dL2.mjs} +1 -1
  131. package/browser/esm/{BfkghIcy-zOKLz4c.mjs → DOIVDuyf7YyJZjcD.mjs} +2 -2
  132. package/{cdn/assets/DcTAnKNgB4UiSyH-2.js → browser/esm/DOsKUeLPwFIdzQv32.mjs} +1 -1
  133. package/{cdn/assets/B609gZLpNve9hsr-.js → browser/esm/DRAYZ0SGlbCLkftR2.mjs} +1 -1
  134. package/browser/esm/{DMXx0lIMiLsQgbVK.mjs → DSWdYe7SDB5cYWo5.mjs} +5 -5
  135. package/browser/esm/{BZ6ssyp3xvgxb4Ux2.mjs → D_8B8jIlshd3eTIO2.mjs} +11 -11
  136. package/{cdn/assets/TikP0KAVISVw72_42.js → browser/esm/DdaO25i-WWFSh1W0.mjs} +321 -313
  137. package/{cdn/assets/BwbtHh-oXpG5mLZu2.js → browser/esm/DdtDlBp6KJZjL28o.mjs} +1119 -1046
  138. package/browser/esm/{DpjPEgS5W70lK0GU.mjs → DhW7Cqyuxk7D6zsW.mjs} +12 -12
  139. package/browser/esm/{B3N4rAHBBKghSNf-.mjs → DhgwMDb052opCiAA.mjs} +1895 -1513
  140. package/{cdn/assets/CKGUrocJnCQ7uGt72.js → browser/esm/DimkHq0_x-d4uNdV.mjs} +4716 -3854
  141. package/{cdn/assets/CpD0Rq1ei0UW4wvV2.js → browser/esm/DjS4iUli-T3uuUfK.mjs} +1 -1
  142. package/{cdn/assets/q1AmoBDraQE-T8im2.js → browser/esm/DmqS0kz7jvlOw3qr.mjs} +2 -2
  143. package/browser/esm/{BJhMeXHgj2izJPad.mjs → DnCkPg9-xb3RvxD-.mjs} +7 -7
  144. package/browser/esm/{Z4L_LGr5jeXjCPo6.mjs → DnMUizHKSRwWpO_7.mjs} +1 -1
  145. package/{cdn/assets/CDVkQjbphikzy5cP.js → browser/esm/DrKUGkrCTKZHu8XC.mjs} +1 -1
  146. package/browser/esm/{CtPuA7JjziKZTOy4.mjs → DtkqR-Hu7K4agnCs.mjs} +1 -1
  147. package/browser/esm/{tEoFD7IKo7vDcL80.mjs → DuJ_gK9f35IbKDd6.mjs} +846 -812
  148. package/browser/esm/{CTpri2fSv5dZbUwJ.mjs → Duo6t8_BzIiBDrFm.mjs} +4086 -3710
  149. package/browser/esm/{DJoktru8Ln1idAEk2.mjs → Dwko6HB2zePBBeBu2.mjs} +7 -7
  150. package/browser/esm/{CCH2N2D6f4m3sxHV.mjs → DxxlSejA2S6YUPWD.mjs} +242 -224
  151. package/browser/esm/{CukE7coIERV0PmeU2.mjs → DygUxASTETZM60uN2.mjs} +6 -6
  152. package/browser/esm/{C0Cbiq1ZKs0s-oUn.mjs → Eszk9OugmYOhaS2s.mjs} +2 -2
  153. package/browser/esm/{CVtQ8m0S6nnXk7XH.mjs → FAHIw2t7_M_rvRio.mjs} +6 -6
  154. package/browser/esm/{39GslBYZKZUJpjcX.mjs → FVJ1akngxeMiYwPa.mjs} +1 -1
  155. package/browser/esm/{DYhGe1HslNmi3MWF.mjs → HFqcMD9nTL0jdLxT.mjs} +1 -1
  156. package/browser/esm/{COZ775SOX8hXz68T2.mjs → L6LjzOx1G9Idjtxa2.mjs} +1 -1
  157. package/{cdn/assets/BJahzXLdJMKJrGJ82.js → browser/esm/MHuhAgQAA8zcnWkd.mjs} +1 -1
  158. package/browser/esm/{CH-EdTSDEYE7IaBC.mjs → N-koparnupMSl92y.mjs} +665 -603
  159. package/browser/esm/{0HCb-Mkw8Otpj9B6.mjs → O982fBwJ80FSdhad.mjs} +43 -43
  160. package/browser/esm/{BrmKrgxwVxzOs8v9.mjs → PAu9erpoOTNzgNbN.mjs} +2 -2
  161. package/{cdn/assets/BXzrl80_N9hn_3462.js → browser/esm/PzCXbVRf1jOHVOAw.mjs} +1 -1
  162. package/browser/esm/{C5wklWg-nVHGfhda.mjs → XBb7Mxqf0beXaSJt.mjs} +6 -6
  163. package/browser/esm/{TJB9Rw8_wY-D-aKa2.mjs → Ykh10IaXTKA2XWot.mjs} +1 -1
  164. package/browser/esm/{CTdaEmBnApCaYU--.mjs → esX6dx06TUUL-cRt.mjs} +1 -1
  165. package/{cdn/assets/D4e9Z6yAYtli_UZy.js → browser/esm/evPbHV86yom22yGf2.mjs} +1150 -1087
  166. package/{cdn/assets/CTsLj1vEfSqm_tm4.js → browser/esm/g8dDbkwbYjhKWJM22.mjs} +1 -1
  167. package/browser/esm/{IPVHjbNIjyMsOxUR.mjs → hsy1zALC1oNNm5Sf.mjs} +1 -1
  168. package/browser/esm/index.mjs +6 -6
  169. package/browser/esm/{BXOm0hdx068QsENe.mjs → ohVj-y1gCC9PEHJI.mjs} +3 -3
  170. package/browser/esm/{BwYNDge9HsfAlKEk.mjs → pFBVGSvmImMMDMuJ.mjs} +5 -5
  171. package/browser/esm/{BKY2gKXOB637hih-.mjs → s4trFf5sOSGNEzr3.mjs} +6 -6
  172. package/cdn/assets/{CMBLrQ2K32IKaZHu.js → 5LJ1sC7IPn109Ien.js} +2 -2
  173. package/cdn/assets/{CyhnDYQf3_cdp52w2.js → 6L6HfOFw1xzxXtf22.js} +216 -198
  174. package/{browser/esm/COgR28nGHeL59WLY.mjs → cdn/assets/B-dSKzg5shPDd733.js} +1 -1
  175. package/cdn/assets/{CXULuRUQ4TAsm84q.js → B0N6rTGGJN2DZPaf.js} +2 -2
  176. package/cdn/assets/{Dp_KsQdcEefYydgO2.js → B2BvBxjz3Kfii_Gn2.js} +1532 -1494
  177. package/cdn/assets/{CWdwxTP6ZBP_KJE42.js → B3ZyfwskutLZMYfl2.js} +7 -7
  178. package/{browser/esm/MIcNDPtZ2tOqEJLi.mjs → cdn/assets/B3tC7wY_kUGXf5sb.js} +1 -1
  179. package/{browser/esm/CkRTvOlXWFrTaFLB.mjs → cdn/assets/B4492m5zRjz4JWIo2.js} +1119 -1046
  180. package/cdn/assets/{CZVi5-MceLzKtZCX.js → B4fSPDN923nqCDVE.js} +1 -1
  181. package/{browser/esm/DCILZE5X4dLAM7Qa.mjs → cdn/assets/B6Y_HasaiihQLVYz2.js} +321 -313
  182. package/cdn/assets/{olHQykNiRoLYpdJB.js → B8ok93z6wOu1Mo5H.js} +5 -5
  183. package/cdn/assets/{B9HUtdLQ29C5hAM2.js → BF9yh58xfvR0KbSo.js} +2 -2
  184. package/{browser/esm/Ds-v1MKCCCRK5y__2.mjs → cdn/assets/BGAXiHOiX_PZ1ww1.js} +1 -1
  185. package/{browser/esm/BsGIsDAUk9bSNC2-2.mjs → cdn/assets/BGWyNjrM55ce-D1o.js} +1 -1
  186. package/cdn/assets/{nzKpfea1MNkFBMak.js → BIPjogMyMmLRly43.js} +7 -7
  187. package/{browser/esm/gd127f9DAewQX3YF.mjs → cdn/assets/BO2NRW9sjHGE9tg-2.js} +2 -2
  188. package/cdn/assets/{DfzSY0wpTYYTWIY2.js → BOTU30yJHbaNehFS.js} +8 -8
  189. package/{browser/esm/BkgfJjCizaRuC_N52.mjs → cdn/assets/BPAEbeXV75XIAS4n.js} +1 -1
  190. package/{browser/esm/9XJnug1pfQreKXZr2.mjs → cdn/assets/BRBHACVjnV1_6VLQ.js} +1 -1
  191. package/cdn/assets/{BQvxcrhV7qxXjTHq.js → BZXvEddjoz4C8y4w.js} +2 -2
  192. package/cdn/assets/{BFIwPtz-TW4VvaZR2.js → BZkd8LNLgEd5WQXO.js} +1 -1
  193. package/{browser/esm/Ccj-Gq_hyRtb93R-.mjs → cdn/assets/B_U_UpQXdbjNRthb.js} +1 -1
  194. package/cdn/assets/{Ba0_2fGhHSS7kV2l.js → BaIe3fLfPLw3FbYP2.js} +1 -1
  195. package/cdn/assets/{B27wXIrrKNvUzMGE2.js → Bc2Dp6W4U_22cv7c2.js} +1 -1
  196. package/{browser/esm/DwGeIZ6nCjk9UiXk2.mjs → cdn/assets/Bce8ZTUCpXr5Y_zl2.js} +1 -1
  197. package/cdn/assets/{s_afm7GAx-6Ktr_x.js → BdhFhDEa7Xed6dFE.js} +17330 -16955
  198. package/cdn/assets/{B102zq0Z2de_ly2m.js → BdmCBWTVHb7KuHxO2.js} +672 -610
  199. package/cdn/assets/{ioECgEEk-HCEo_qL2.js → BetL7yI63lEdQ0gM2.js} +1 -1
  200. package/cdn/assets/{CTzZ6Xzw63GKixmU2.js → Bfd3T36ocASPZddR.js} +846 -812
  201. package/cdn/assets/{w9gI9mzOHGtRSOFe.js → Bh4hZt6639QZusIG.js} +2 -2
  202. package/cdn/assets/{DtFr2Mm_KqU6PZfY.js → Bj8bWbLg1IY965tK.js} +8 -8
  203. package/{browser/esm/CtCW25b0E8FaH1jL.mjs → cdn/assets/BjN8kU7URKZwGlmk2.js} +3 -3
  204. package/{browser/esm/DavD7unX6vAvDq49.mjs → cdn/assets/BjYIAiuzZbD-dk82.js} +1 -1
  205. package/{browser/esm/Cl5KKGUmrf4e7lB32.mjs → cdn/assets/Bjx-9lUaScF5-Hki.js} +1 -1
  206. package/{browser/esm/BZDhc9cFdvb2DZp52.mjs → cdn/assets/BouCHi6QnBrUDYkx.js} +1150 -1087
  207. package/{browser/esm/BJkZVLqBoBngX2V-2.mjs → cdn/assets/BrUe0MnOhxzeOngn.js} +1 -1
  208. package/cdn/assets/{Dnk-x1RHZ-HCYKGy.js → BxecIrskOMQZB-Xc.js} +1 -1
  209. package/cdn/assets/{B9epCKVFFaq_fX4j.js → ByJMrAYRARLc7uZQ.js} +1 -1
  210. package/cdn/assets/{CurA0H2pTTmFWY4N.js → BynqRVXFRplO7XgC.js} +2 -2
  211. package/{browser/esm/CpD0Rq1ei0UW4wvV.mjs → cdn/assets/BzktrYJH7SQ9GyUI2.js} +1 -1
  212. package/cdn/assets/{CTZpbsb07-ieZ8Sv.js → C4vqrW3EmJDy1otX.js} +1 -1
  213. package/cdn/assets/{DqJYCOxMI0h7olt52.js → C7xBBqvPqat9oEft2.js} +1 -1
  214. package/cdn/assets/{D2fjpIsYf8xbJ3qt.js → CBC_MJL6Bwk7bzQz2.js} +1 -1
  215. package/cdn/assets/{CzQUeHmA3XvLXm-s2.js → CDqMmEdh_CPaFCCi2.js} +16 -12
  216. package/cdn/assets/{BvONQrMoKCUSnkqN.js → CIgn8uIPaadIJP4a2.js} +10 -10
  217. package/cdn/assets/{DL-6XEhXlHkvgtF_.js → CJGlwQusOCSy9ZAb.js} +1 -1
  218. package/cdn/assets/{Boe-L-sc0zC0Cw5N.js → CLhSKL0Xdm8miSTy.js} +3 -3
  219. package/cdn/assets/{ByJlomQcLV_4oZGw2.js → CSkSOhGT8E29E2Nh2.js} +4 -4
  220. package/cdn/assets/{uwB2_ERsYGldq4on.js → CTwLETvNO4KeXbkK.js} +1 -1
  221. package/{browser/esm/BVRLpEysZKAgHCqC.mjs → cdn/assets/CXDtDYyREwoFwtMJ.js} +1 -1
  222. package/{browser/esm/CySaHP1TkAtt7IqW.mjs → cdn/assets/CXrcgTVB77CopjOJ.js} +2 -2
  223. package/cdn/assets/{Cge4sxB_4OwAQwod.js → CY7qR8ENX314HrrD.js} +3 -3
  224. package/cdn/assets/{CqFZWOO-31j7rHdf.js → Cb71rZAQvCk3wnfp.js} +6 -6
  225. package/{browser/esm/zsqoPH22vSCRd7nP2.mjs → cdn/assets/CbJ_xQftC08KrH3E.js} +1 -1
  226. package/cdn/assets/{C8cUmy4K0YRcXOBu2.js → CblzazoiTtSuaAkj.js} +9 -9
  227. package/{browser/esm/BIklj1nwWIcZCmKp2.mjs → cdn/assets/Cd8G1nX1dKzp-mho.js} +1 -1
  228. package/{browser/esm/B2pyobtSQ_9fn__o.mjs → cdn/assets/CdPxVRKpCOqCDHI8.js} +234 -228
  229. package/cdn/assets/{xH_Bg7r0fryoCvSl2.js → CgsQuAbp76UOAPHm2.js} +48 -48
  230. package/cdn/assets/{ko_gqiF0zCGAHO1l2.js → CimYGZTVXcjbjrBU2.js} +13 -13
  231. package/{browser/esm/ClIlIFc_63tI2r9S2.mjs → cdn/assets/CmYCYFWjq9KP6xw7.js} +1 -1
  232. package/cdn/assets/{DzRXZ_mhd60oh-A52.js → CnfGgjuCEyX-PYs_2.js} +12 -12
  233. package/cdn/assets/{CQhIZf112hMPFsjD.js → CpEgh9EOkeMvwAuj.js} +1 -1
  234. package/{browser/esm/D-YuVmmS-kKcV9xr.mjs → cdn/assets/CsKCqLuggHhYC93k.js} +1 -1
  235. package/cdn/assets/{CbWjq5gAF4Empxh12.js → CuIUyLNDoHvYMJaQ2.js} +14 -14
  236. package/{browser/esm/DD_-Q_s0aq0ehCRj.mjs → cdn/assets/D-tQc4bi3FzGVnFg.js} +2 -2
  237. package/{browser/esm/HA0CYoHHAU5VgVW5.mjs → cdn/assets/D2Ls6urWeByV5W-B.js} +1 -1
  238. package/cdn/assets/{DeY3vEbV4T2WgYP2.js → D4aK0uTRJQpM63922.js} +1 -1
  239. package/cdn/assets/{CVuIbopxUvt0-2rL.js → D57KcDfTbBzf_NGr.js} +7 -7
  240. package/{browser/esm/BCcFKm-VY0gZ0TzZ.mjs → cdn/assets/D5BuXc-kVnr6Xiae2.js} +1 -1
  241. package/cdn/assets/{dL4ou82v-pjouw0s2.js → DEFEOS3OuA23llF92.js} +12 -12
  242. package/{browser/esm/DUVV-c3N8XuG8lyr2.mjs → cdn/assets/DENx9Ts-f8adXw3Y.js} +1 -1
  243. package/cdn/assets/{WMPhjIQfI4mQp3Bg.js → DEyeWdXLwDRo2yYf2.js} +8 -8
  244. package/cdn/assets/{HfJJBylzZ4Z4VNp82.js → DGWhm91XZlY1GWHe2.js} +6 -6
  245. package/cdn/assets/{bY52psG3lmpa706j2.js → DJHOKENCVOJMx3aE2.js} +9 -9
  246. package/cdn/assets/{DyDgU8THo8GBGQ4M.js → DJSXXWTUJGbXqLLx.js} +1 -1
  247. package/cdn/assets/{me8l7609yOrUhpBU.js → DJk14sSSnSHiEXZ7.js} +1 -1
  248. package/{browser/esm/Wy-cTg0gDeXuKv0a2.mjs → cdn/assets/DLArQtAbWAarI8od.js} +1 -1
  249. package/{browser/esm/CwRqY3jy0pkU72Ty2.mjs → cdn/assets/DM4g0nYgYXgI44dL.js} +1 -1
  250. package/{browser/esm/DcTAnKNgB4UiSyH-2.mjs → cdn/assets/DOsKUeLPwFIdzQv32.js} +1 -1
  251. package/cdn/assets/{B0iMXJrxCR1TmwMa2.js → DP9sLYfGGWMDI7hL2.js} +8 -8
  252. package/cdn/assets/{kaSysgj5TE-xQXsG2.js → DQhvG3cP0HPB6giA2.js} +5 -5
  253. package/{browser/esm/B609gZLpNve9hsr-2.mjs → cdn/assets/DRAYZ0SGlbCLkftR.js} +1 -1
  254. package/cdn/assets/{DXnM0BURZgjm8R2W.js → DW2yQm-sEcHogX7E.js} +8 -8
  255. package/{browser/esm/BHdUUWliTWsGcyUW.mjs → cdn/assets/DY9zG4TdF0FAs_QP2.js} +2 -2
  256. package/cdn/assets/{CiIadd7oAsvq2iR9.js → DaX0_AkJxkaUnNT7.js} +7 -7
  257. package/cdn/assets/{CkqsTJkl1cuZl14R.js → DeFts-aGqB-RDuV1.js} +6 -6
  258. package/cdn/assets/{TGZuqw2NN_OSIJO0.js → Dgt8kua8CYlMRfdw.js} +2 -2
  259. package/cdn/assets/{BXRMXZjJExEHTMfL2.js → Dhq9e6LCpmlIkFod.js} +72 -72
  260. package/cdn/assets/{DWX7iaXMf0PrhOuh.js → DiKc6jzGM1isrN02.js} +3 -3
  261. package/cdn/assets/DjS4iUli-T3uuUfK.js +24 -0
  262. package/cdn/assets/DjS4iUli-T3uuUfK2.js +24 -0
  263. package/cdn/assets/{DZn5mtzClpE29qV5.js → DjfBSoaKM-vtbeqT.js} +2 -2
  264. package/cdn/assets/{r4hni7MWaP9SUvzC.js → DlLXCXDokJ72EW-E.js} +7 -7
  265. package/cdn/assets/{Z4L_LGr5jeXjCPo62.js → DnMUizHKSRwWpO_72.js} +1 -1
  266. package/cdn/assets/{Dctsk-QW8KKUje0b2.js → DoJfPxuL3zziG4p62.js} +13 -13
  267. package/cdn/assets/{CvC5oy9uXPzktYaz2.js → DpNYiOK112bFC3KK2.js} +11 -3
  268. package/cdn/assets/{SHgLeVOmAOO6qQOR2.js → Dq7WxMef5CTJ47QI2.js} +7 -7
  269. package/cdn/assets/{C6v7rU3plIdoUWre2.js → Dr1U0I01_KIa9vgR2.js} +8 -8
  270. package/{browser/esm/CDVkQjbphikzy5cP2.mjs → cdn/assets/DrKUGkrCTKZHu8XC.js} +1 -1
  271. package/cdn/assets/{CtPuA7JjziKZTOy42.js → DtkqR-Hu7K4agnCs2.js} +1 -1
  272. package/cdn/assets/{DacWhkcqwjK3VnAA2.js → Dy5Z2XIqS7-0tdjc2.js} +41 -41
  273. package/cdn/assets/{39GslBYZKZUJpjcX.js → FVJ1akngxeMiYwPa.js} +1 -1
  274. package/cdn/assets/{DYhGe1HslNmi3MWF2.js → HFqcMD9nTL0jdLxT2.js} +1 -1
  275. package/cdn/assets/{Cl2Y6toZDsktHGlZ.js → HeznPoDlSj26Q4lq.js} +2403 -2022
  276. package/cdn/assets/JL1xk8XqkuTOA_as2.js +239 -0
  277. package/cdn/assets/{BOSnQONqTqkqjHEU.js → KJzdwvEWwCwAXuo4.js} +6 -6
  278. package/cdn/assets/{COZ775SOX8hXz68T.js → L6LjzOx1G9Idjtxa.js} +1 -1
  279. package/{browser/esm/BJahzXLdJMKJrGJ8.mjs → cdn/assets/MHuhAgQAA8zcnWkd2.js} +1 -1
  280. package/{browser/esm/BDJXGdb3hQGrna00.mjs → cdn/assets/NZO3-fDBtqhmCsbB2.js} +4716 -3854
  281. package/{browser/esm/BXzrl80_N9hn_346.mjs → cdn/assets/PzCXbVRf1jOHVOAw.js} +1 -1
  282. package/cdn/assets/{Dm-vUbnccwQ63uHt.js → Wb48SedqaKMZnxym.js} +4 -4
  283. package/cdn/assets/{Dungsxp8KcjLsV23.js → Wsgx1I_j1chJ6hwn.js} +7 -7
  284. package/cdn/assets/{Dzxg4kLxKyMklPNe2.js → XSUr59k0gaFIS1Qf2.js} +3 -3
  285. package/cdn/assets/{TJB9Rw8_wY-D-aKa.js → Ykh10IaXTKA2XWot2.js} +1 -1
  286. package/cdn/assets/{CTdaEmBnApCaYU--2.js → esX6dx06TUUL-cRt.js} +1 -1
  287. package/{browser/esm/CTsLj1vEfSqm_tm42.mjs → cdn/assets/g8dDbkwbYjhKWJM2.js} +1 -1
  288. package/cdn/assets/{C5yCm-TSfx74xL002.js → hClmI7sWeaBbHo3W2.js} +12 -12
  289. package/cdn/assets/{IPVHjbNIjyMsOxUR2.js → hsy1zALC1oNNm5Sf.js} +1 -1
  290. package/cdn/assets/{BwJlIoU5gbBMo6Q5.js → llvXNxZaCMnYqvSm.js} +3 -3
  291. package/cdn/assets/{DMBv9-cZDNgrEPnj.js → omgRvCRxe7suvog8.js} +105 -105
  292. package/cdn/assets/{nBpkSj6rxz09lHp42.js → xMskoOI2CK9-AmBF2.js} +7 -7
  293. package/cdn/assets/{BO2RVHzXl9yxZmKM.js → zrS_ERBQML_OXJ4J.js} +3 -3
  294. package/cdn/index.js +2 -2
  295. package/package.json +3 -3
  296. package/browser/cjs/3xD-77z5V9IlNXjn2.cjs +0 -1
  297. package/browser/cjs/BH_9BSdzWI3sYvEo2.cjs +0 -1
  298. package/browser/cjs/BeYzZkmTef6nGcoR.cjs +0 -2
  299. package/browser/cjs/BtuU_zhIvl9orhXJ2.cjs +0 -1
  300. package/browser/cjs/BxP_CBFuJxlFVfJP2.cjs +0 -1
  301. package/browser/cjs/CBXWKzJggj62dtpP.cjs +0 -1
  302. package/browser/cjs/CVvPoEKURol1Aftd.cjs +0 -1
  303. package/browser/cjs/Cdi9twdv4KfAl5I72.cjs +0 -7
  304. package/browser/cjs/Crk724Yv2awixZFL.cjs +0 -33
  305. package/browser/cjs/DE8xPZdgqnIs7vdp.cjs +0 -86
  306. package/browser/cjs/Di-65J92p03pfERi.cjs +0 -5
  307. package/browser/cjs/LObFxO4TDyRQ2l05.cjs +0 -12
  308. package/browser/cjs/X5Grge615whs1q_I2.cjs +0 -1
  309. package/browser/cjs/Y37Q7YjNKfaPg9qC.cjs +0 -1
  310. package/browser/cjs/dJ3N_yPCcdiUsFNY.cjs +0 -3
  311. package/browser/cjs/jQhVJbABYXmAnYFf.cjs +0 -1
  312. package/browser/cjs/jgba8pT4LamzxlS8.cjs +0 -1
  313. package/browser/esm/EHwbgKRgADVAwQbs2.mjs +0 -193
  314. package/cdn/assets/COnOkTReK4TBuBx52.js +0 -194
  315. package/cdn/assets/D0OOkDRea_6_jbt2.js +0 -24
  316. package/cdn/assets/D0OOkDRea_6_jbt22.js +0 -24
  317. /package/browser/cjs/{BWDfauDHqB6U_2ka.cjs → BWDfauDHqB6U_2ka2.cjs} +0 -0
  318. /package/browser/cjs/{C2uDl8VIJqh58YF_.cjs → C2uDl8VIJqh58YF_2.cjs} +0 -0
  319. /package/browser/cjs/{CJYewYJ5Z3iojl7J2.cjs → CJYewYJ5Z3iojl7J.cjs} +0 -0
  320. /package/browser/cjs/{CV4KQsHluMqo1I2Q.cjs → CV4KQsHluMqo1I2Q2.cjs} +0 -0
  321. /package/browser/cjs/{CW-b31_-r-_raT8Y2.cjs → CW-b31_-r-_raT8Y.cjs} +0 -0
  322. /package/browser/cjs/{CXlzsh_WHCOsErJ1.cjs → CXlzsh_WHCOsErJ12.cjs} +0 -0
  323. /package/browser/cjs/{Clu7XiAsCB48GDXN2.cjs → Clu7XiAsCB48GDXN.cjs} +0 -0
  324. /package/browser/cjs/{CnZfa45XxA-9Jhmp2.cjs → CnZfa45XxA-9Jhmp.cjs} +0 -0
  325. /package/browser/cjs/{CpJJh4UnFl1_qFui2.cjs → CpJJh4UnFl1_qFui.cjs} +0 -0
  326. /package/browser/cjs/{CrZlUtdX1h2RUnCP2.cjs → CrZlUtdX1h2RUnCP.cjs} +0 -0
  327. /package/browser/cjs/{D8-KovdJ0LjxqCe22.cjs → D8-KovdJ0LjxqCe2.cjs} +0 -0
  328. /package/browser/cjs/{DCIlWcGDrp-5PDoA.cjs → DCIlWcGDrp-5PDoA2.cjs} +0 -0
  329. /package/browser/cjs/{h3dw1jAp2J5Pu4p3.cjs → h3dw1jAp2J5Pu4p32.cjs} +0 -0
  330. /package/browser/cjs/{z_rZE1OHFPpdGBh4.cjs → z_rZE1OHFPpdGBh42.cjs} +0 -0
@@ -1,17 +1,17 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.2
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.4
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { A as e, C as t, F as n, O as r, P as i, T as a, V as o, _ as s, d as c, l, m as u, r as d, s as f, t as p, v as m } from "./ioECgEEk-HCEo_qL.mjs";
8
- import { r as h } from "./D0OOkDRea_6_jbt2.mjs";
9
- import { a as g, n as _ } from "./DqJYCOxMI0h7olt5.mjs";
10
- import { At as v, C as y, D as b, Dt as ee, E as x, Et as te, G as ne, H as S, Ht as re, I as ie, It as ae, K as oe, M as se, Mt as C, O as ce, S as w, St as le, T as ue, U as T, Ut as de, W as fe, Wt as E, Y as D, Yt as pe, Z as me, Zt as O, _ as he, a as ge, at as k, c as _e, d as ve, dn as ye, fn as be, ft as xe, g as Se, gt as Ce, h as A, ht as we, i as Te, in as Ee, k as De, kt as Oe, l as ke, ln as j, m as Ae, mt as je, nn as Me, nt as Ne, on as Pe, ot as Fe, p as Ie, pt as Le, rn as Re, s as ze, sn as Be, st as Ve, tn as He, tt as M, v as Ue, wt as We, xt as N, y as P, yt as F, z as I, zt as Ge } from "./BDJXGdb3hQGrna00.mjs";
11
- import { r as Ke } from "./CtCW25b0E8FaH1jL.mjs";
12
- var qe;
13
- qe ||= {};
14
- var Je = class extends u {
7
+ import { A as e, C as t, F as n, O as r, P as i, T as a, V as o, _ as s, d as c, l, m as u, r as d, s as f, t as p, v as m } from "./BetL7yI63lEdQ0gM2.js";
8
+ import { r as h } from "./BzktrYJH7SQ9GyUI2.js";
9
+ import { a as g, n as _ } from "./C7xBBqvPqat9oEft2.js";
10
+ import { $ as v, $t as y, B as b, Bt as x, C as S, Ct as C, D as w, Dt as ee, E as T, Et as E, F as te, Ft as ne, Gt as D, H as re, J as ie, Kt as ae, L as O, Lt as oe, Nt as se, O as ce, P as le, Q as k, Qt as ue, S as de, St as fe, Tt as A, Ut as j, Wt as pe, X as me, Xt as he, Y as ge, Zt as _e, at as M, cn as ve, ct as ye, dn as N, dt as be, en as P, fn as F, ft as xe, g as I, gt as L, i as Se, in as Ce, j as R, kt as we, lt as Te, mt as Ee, nn as De, nt as Oe, on as ke, ot as Ae, p as je, pn as Me, s as Ne, sn as Pe, st as Fe, tt as Ie, u as Le, vt as Re, w as ze, wt as Be, x as Ve, yt as He, zt as Ue } from "./NZO3-fDBtqhmCsbB2.js";
11
+ import { r as We } from "./BjN8kU7URKZwGlmk2.js";
12
+ var Ge;
13
+ Ge ||= {};
14
+ var Ke = class extends u {
15
15
  constructor(e, t = 50) {
16
16
  super(t), this._transactions = e, this._floorId = e ? e.getCurrentCommit(!1).getId() : null, this._removeListener = e?.addListener({ onCommitChange: () => this._notifyOnStackChange() });
17
17
  }
@@ -104,9 +104,9 @@ var Je = class extends u {
104
104
  close() {
105
105
  this._removeListener?.();
106
106
  }
107
- }, Ye = class {
107
+ }, qe = class {
108
108
  constructor(e, t) {
109
- this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new F(this);
109
+ this._dirty = !1, this._store = e, this._savedCommitId = e.getCurrentCommit()?.getId() ?? null, this._emitter = new A(this);
110
110
  let n = this;
111
111
  this._removeStoreListener = e.addListener({
112
112
  onCommitEnd() {
@@ -141,9 +141,9 @@ var Je = class extends u {
141
141
  close() {
142
142
  this._removeStoreListener?.(), this._removeCommitListener?.(), this._emitter.close();
143
143
  }
144
- }, L = class e {
144
+ }, z = class e {
145
145
  constructor(t, n = {}) {
146
- this._password = null, this._emitter = new F(this), this._path = t ?? null, this._name = n.name ?? null, this._format = n.format ?? null, this._size = n.size ?? null, this._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
146
+ this._password = null, this._emitter = new A(this), this._path = t ?? null, this._name = n.name ?? null, this._format = n.format ?? null, this._size = n.size ?? null, this._canWrite = n.canWrite ?? e._defaultCanWrite(this._path), this._encryption = n.encryption ?? null;
147
147
  }
148
148
  static _defaultCanWrite(e) {
149
149
  return !!e && !/^(https?:|data:|blob:)/i.test(e);
@@ -154,7 +154,7 @@ var Je = class extends u {
154
154
  getName() {
155
155
  if (this._name !== null && this._name !== void 0) return this._name;
156
156
  let e = this._cleanPath();
157
- return e && k(e) || null;
157
+ return e && L(e) || null;
158
158
  }
159
159
  getPath() {
160
160
  return this._path;
@@ -165,7 +165,7 @@ var Je = class extends u {
165
165
  getExtension() {
166
166
  let e = this._cleanPath();
167
167
  if (!e) return null;
168
- let t = N(e);
168
+ let t = E(e);
169
169
  return t ? t.toLowerCase() : null;
170
170
  }
171
171
  getEncryption() {
@@ -212,7 +212,7 @@ var Je = class extends u {
212
212
  ];
213
213
  return `${t} ${(n / 1024 ** r).toFixed(2)}${i[Math.min(r, i.length - 1)]}`;
214
214
  }
215
- }, Xe = class {
215
+ }, Je = class {
216
216
  constructor() {
217
217
  this._defaultStringSourceType = "filepath";
218
218
  }
@@ -228,10 +228,10 @@ var Je = class extends u {
228
228
  }
229
229
  switch (a) {
230
230
  case "file": {
231
- let e = r, t = e?.name, n = t ? `${k(t)}` : "";
231
+ let e = r, t = e?.name, n = t ? `${L(t)}` : "";
232
232
  o = await e.arrayBuffer(), s = {
233
233
  format: i,
234
- ext: N(t),
234
+ ext: E(t),
235
235
  name: n,
236
236
  absolutePath: t,
237
237
  size: e.size,
@@ -270,7 +270,7 @@ var Je = class extends u {
270
270
  e = i.input, t = i.init, n = i.timeout;
271
271
  }
272
272
  }
273
- let a = n || 3e4, c = new AbortController(), l = setTimeout(() => c.abort(), a), u = typeof e == "string" ? e : e.toString(), d = N(u);
273
+ let a = n || 3e4, c = new AbortController(), l = setTimeout(() => c.abort(), a), u = typeof e == "string" ? e : e.toString(), d = E(u);
274
274
  try {
275
275
  let n = await fetch(e, {
276
276
  ...t,
@@ -282,7 +282,7 @@ var Je = class extends u {
282
282
  o = r, s = {
283
283
  format: i,
284
284
  ext: d,
285
- name: k(u, !0),
285
+ name: L(u, !0),
286
286
  absolutePath: u
287
287
  };
288
288
  } catch (e) {
@@ -339,7 +339,7 @@ var Je = class extends u {
339
339
  let t = e instanceof ArrayBuffer || Object.prototype.toString.call(e) === "[object ArrayBuffer]", r = ArrayBuffer.isView(e), i = n.isNodeBuffer(e);
340
340
  return t || r || i ? "buffer" : typeof ReadableStream < "u" && e instanceof ReadableStream || Object.prototype.toString.call(e) === "[object ReadableStream]" || e && typeof e.getReader == "function" && e.locked !== void 0 ? "stream" : null;
341
341
  }
342
- }, Ze = class extends Xe {
342
+ }, Ye = class extends Je {
343
343
  constructor(e, t) {
344
344
  super(), this._getWriteFormats = e, this._getReadFormats = t, this._defaultStringSourceType = "fetch", this._handleCache = /* @__PURE__ */ new WeakMap(), this._pendingOpenHandle = null;
345
345
  }
@@ -354,7 +354,7 @@ var Je = class extends u {
354
354
  let e = await this._getReadFormats?.() ?? [];
355
355
  if (typeof globalThis.showOpenFilePicker == "function") try {
356
356
  let t = function(e) {
357
- let t = R(e);
357
+ let t = Xe(e);
358
358
  if (t.length <= 1) return t;
359
359
  let n = /* @__PURE__ */ new Set(), r = {};
360
360
  for (let e of t) for (let [t, i] of Object.entries(e.accept)) for (let e of i) n.has(e) || (n.add(e), (r[t] ??= []).push(e));
@@ -374,7 +374,7 @@ var Je = class extends u {
374
374
  async onWorkbookRead(e) {
375
375
  if (this._pendingOpenHandle) {
376
376
  let t = e.getOrigin?.();
377
- t && (this._handleCache.set(t, this._pendingOpenHandle), t instanceof L && t.update({ canWrite: !0 })), this._pendingOpenHandle = null;
377
+ t && (this._handleCache.set(t, this._pendingOpenHandle), t instanceof z && t.update({ canWrite: !0 })), this._pendingOpenHandle = null;
378
378
  }
379
379
  }
380
380
  async filePathToFile(e) {
@@ -403,10 +403,10 @@ var Je = class extends u {
403
403
  }
404
404
  c ||= await globalThis.showSaveFilePicker({
405
405
  suggestedName: n,
406
- types: R(o)
406
+ types: Xe(o)
407
407
  });
408
- let e = Qe(c.name ?? n), a = o.find((t) => t.exts.some((t) => t.toLowerCase() === e)) ?? r, s = await i(a.key), u = new Blob([z(s)], { type: a.mimeType || "application/octet-stream" }), d = await c.createWritable();
409
- return await d.write(u), await d.close(), this._handleCache.set(t, c), t instanceof L && t.update({
408
+ let e = Qe(c.name ?? n), a = o.find((t) => t.exts.some((t) => t.toLowerCase() === e)) ?? r, s = await i(a.key), u = new Blob([Ze(s)], { type: a.mimeType || "application/octet-stream" }), d = await c.createWritable();
409
+ return await d.write(u), await d.close(), this._handleCache.set(t, c), t instanceof z && t.update({
410
410
  size: u.size,
411
411
  ...l ? null : {
412
412
  path: c.name ?? n,
@@ -418,11 +418,11 @@ var Je = class extends u {
418
418
  } catch (e) {
419
419
  if (e?.name === "AbortError") return null;
420
420
  }
421
- let u = await i(r.key), d = new Blob([z(u)], { type: r.mimeType || "application/octet-stream" }), f = t.getPath(), p = f ? f.split(/[/\\]/).pop() : null, m = p && Qe(p) ? p : n;
421
+ let u = await i(r.key), d = new Blob([Ze(u)], { type: r.mimeType || "application/octet-stream" }), f = t.getPath(), p = f ? f.split(/[/\\]/).pop() : null, m = p && Qe(p) ? p : n;
422
422
  return function(e, t) {
423
423
  let n = URL.createObjectURL(e), r = document.createElement("a");
424
424
  r.style.display = "none", r.href = n, r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(n);
425
- }(d, m), t instanceof L && t.update({
425
+ }(d, m), t instanceof z && t.update({
426
426
  size: d.size,
427
427
  ...t.getPath() === m ? null : {
428
428
  path: m,
@@ -433,7 +433,7 @@ var Je = class extends u {
433
433
  }), t;
434
434
  }
435
435
  };
436
- function R(e) {
436
+ function Xe(e) {
437
437
  return e.map((e) => {
438
438
  let t = e.mimeType && e.mimeType.includes("/") ? e.mimeType : "application/octet-stream";
439
439
  return {
@@ -442,7 +442,7 @@ function R(e) {
442
442
  };
443
443
  });
444
444
  }
445
- function z(e) {
445
+ function Ze(e) {
446
446
  if (typeof SharedArrayBuffer < "u" && e instanceof SharedArrayBuffer) {
447
447
  let t = new ArrayBuffer(e.byteLength);
448
448
  return new Uint8Array(t).set(new Uint8Array(e)), t;
@@ -476,7 +476,7 @@ var $e = class {
476
476
  return !0;
477
477
  }
478
478
  }, et = h({
479
- findBestMatch: () => it,
479
+ findBestMatch: () => at,
480
480
  getFontList: () => rt,
481
481
  setFontList: () => U
482
482
  }), tt = [
@@ -496,7 +496,7 @@ var $e = class {
496
496
  "Trebuchet MS",
497
497
  "Verdana"
498
498
  ], B = /* @__PURE__ */ new Map();
499
- B.set(S.GenericName.Serif, ["Tahoma"]), B.set(S.GenericName.SanSerif, ["Calibri"]), B.set(S.GenericName.MonoSpace, ["Courier New"]), B.set(S.GenericName.Cursive, ["Comic Sans MS"]), B.set(S.GenericName.Fantasy, ["Luminari"]), B.set(S.GenericName.UISystem, ["Arial"]), B.set(S.GenericName.UISerif, ["Tahoma"]), B.set(S.GenericName.UISanSerif, ["Arial"]), B.set(S.GenericName.UIMonoSpace, ["Courier New"]), B.set(S.GenericName.UIRounded, ["Arial"]), B.set(S.GenericName.Math, []), B.set(S.GenericName.Emoji, []), B.set(S.GenericName.Fangsong, []);
499
+ B.set(k.GenericName.Serif, ["Tahoma"]), B.set(k.GenericName.SanSerif, ["Calibri"]), B.set(k.GenericName.MonoSpace, ["Courier New"]), B.set(k.GenericName.Cursive, ["Comic Sans MS"]), B.set(k.GenericName.Fantasy, ["Luminari"]), B.set(k.GenericName.UISystem, ["Arial"]), B.set(k.GenericName.UISerif, ["Tahoma"]), B.set(k.GenericName.UISanSerif, ["Arial"]), B.set(k.GenericName.UIMonoSpace, ["Courier New"]), B.set(k.GenericName.UIRounded, ["Arial"]), B.set(k.GenericName.Math, []), B.set(k.GenericName.Emoji, []), B.set(k.GenericName.Fangsong, []);
500
500
  var V = /* @__PURE__ */ new Map(), H = [];
501
501
  U(tt);
502
502
  var nt = eval;
@@ -521,9 +521,9 @@ function U(e) {
521
521
  function rt() {
522
522
  return H;
523
523
  }
524
- var W, G, K, q, J = /* @__PURE__ */ new Map();
525
- function it(e, t) {
526
- let n = J.get(e);
524
+ var W, G, K, it, q = /* @__PURE__ */ new Map();
525
+ function at(e, t) {
526
+ let n = q.get(e);
527
527
  if (n) return n.fontRef === null ? null : n;
528
528
  let r = [e];
529
529
  t?.fallbacks && (r = r.concat(t.fallbacks));
@@ -535,15 +535,15 @@ function it(e, t) {
535
535
  if (e) for (let t = 0; !i && t < e.length; t++) i = V.get(e[t]);
536
536
  }
537
537
  }
538
- return i ? J.set(e, i) : J.set(e, {
538
+ return i ? q.set(e, i) : q.set(e, {
539
539
  fontRef: null,
540
540
  loaded: !1
541
541
  }), i;
542
542
  }
543
- var at = h({
544
- DefaultFontSizes: () => ot,
545
- findNextFontSize: () => st
546
- }), ot = Object.freeze([
543
+ var ot = h({
544
+ DefaultFontSizes: () => st,
545
+ findNextFontSize: () => ct
546
+ }), st = Object.freeze([
547
547
  8,
548
548
  9,
549
549
  10,
@@ -562,7 +562,7 @@ var at = h({
562
562
  48,
563
563
  72
564
564
  ]);
565
- function st(t, n = !0, r = ot) {
565
+ function ct(t, n = !0, r = st) {
566
566
  if (!r || r.length === 0) return t;
567
567
  if (t === void 0) return r[0];
568
568
  if (n && t >= r[r.length - 1] || !n && t <= r[0]) return t;
@@ -609,7 +609,7 @@ function st(t, n = !0, r = ot) {
609
609
  SysDashDot: "sysDashDot",
610
610
  SysDashDotDot: "sysDashDotDot",
611
611
  SysDot: "sysDot"
612
- }, (q ||= {}).Type = {
612
+ }, (it ||= {}).Type = {
613
613
  OuterShadow: "outerShadow",
614
614
  InnerShadow: "innerShadow",
615
615
  PresetShadow: "presetShadow",
@@ -617,53 +617,53 @@ function st(t, n = !0, r = ot) {
617
617
  SoftEdge: "softEdge",
618
618
  Reflection: "reflection"
619
619
  };
620
- var ct, lt, ut, dt, Y = me.BuiltInName, ft = {
621
- [Y.Normal]: m("style.builtin.normal"),
622
- [Y.Comma]: m("style.builtin.comma"),
623
- [Y.Currency]: m("style.builtin.currency"),
624
- [Y.Percent]: m("style.builtin.percent"),
625
- [Y.Comma0]: m("style.builtin.comma0"),
626
- [Y.Currency0]: m("style.builtin.currency0"),
627
- [Y.Hyperlink]: m("style.builtin.hyperlink"),
628
- [Y.FollowedHyperlink]: m("style.builtin.followedHyperlink"),
629
- [Y.Note]: m("style.builtin.note"),
630
- [Y.WarningText]: m("style.builtin.warningText"),
631
- [Y.Title]: m("style.builtin.title"),
632
- [Y.Input]: m("style.builtin.input"),
633
- [Y.Output]: m("style.builtin.output"),
634
- [Y.Calculation]: m("style.builtin.calculation"),
635
- [Y.CheckCell]: m("style.builtin.checkCell"),
636
- [Y.LinkedCell]: m("style.builtin.linkedCell"),
637
- [Y.Total]: m("style.builtin.total"),
638
- [Y.Good]: m("style.builtin.good"),
639
- [Y.Bad]: m("style.builtin.bad"),
640
- [Y.Neutral]: m("style.builtin.neutral"),
641
- [Y.ExplanatoryText]: m("style.builtin.explanatoryText")
642
- }, pt = m("style.builtin.heading"), mt = m("style.builtin.accent"), ht = m("style.builtin.accentTint"), gt = /^Heading ([1-4])$/, _t = /^Accent([1-6])$/, vt = /^(20|40|60)% - Accent([1-6])$/;
643
- function yt(e) {
644
- let t = ft[e];
620
+ var lt, ut, dt, ft, J = Fe.BuiltInName, pt = {
621
+ [J.Normal]: m("style.builtin.normal"),
622
+ [J.Comma]: m("style.builtin.comma"),
623
+ [J.Currency]: m("style.builtin.currency"),
624
+ [J.Percent]: m("style.builtin.percent"),
625
+ [J.Comma0]: m("style.builtin.comma0"),
626
+ [J.Currency0]: m("style.builtin.currency0"),
627
+ [J.Hyperlink]: m("style.builtin.hyperlink"),
628
+ [J.FollowedHyperlink]: m("style.builtin.followedHyperlink"),
629
+ [J.Note]: m("style.builtin.note"),
630
+ [J.WarningText]: m("style.builtin.warningText"),
631
+ [J.Title]: m("style.builtin.title"),
632
+ [J.Input]: m("style.builtin.input"),
633
+ [J.Output]: m("style.builtin.output"),
634
+ [J.Calculation]: m("style.builtin.calculation"),
635
+ [J.CheckCell]: m("style.builtin.checkCell"),
636
+ [J.LinkedCell]: m("style.builtin.linkedCell"),
637
+ [J.Total]: m("style.builtin.total"),
638
+ [J.Good]: m("style.builtin.good"),
639
+ [J.Bad]: m("style.builtin.bad"),
640
+ [J.Neutral]: m("style.builtin.neutral"),
641
+ [J.ExplanatoryText]: m("style.builtin.explanatoryText")
642
+ }, mt = m("style.builtin.heading"), ht = m("style.builtin.accent"), gt = m("style.builtin.accentTint"), _t = /^Heading ([1-4])$/, vt = /^Accent([1-6])$/, yt = /^(20|40|60)% - Accent([1-6])$/;
643
+ function bt(e) {
644
+ let t = pt[e];
645
645
  if (t) return { key: t };
646
- let n = gt.exec(e);
646
+ let n = _t.exec(e);
647
647
  return n ? {
648
- key: pt,
649
- params: { n: +n[1] }
650
- } : (n = _t.exec(e), n ? {
651
648
  key: mt,
652
649
  params: { n: +n[1] }
653
650
  } : (n = vt.exec(e), n ? {
654
651
  key: ht,
652
+ params: { n: +n[1] }
653
+ } : (n = yt.exec(e), n ? {
654
+ key: gt,
655
655
  params: {
656
656
  pct: +n[1],
657
657
  n: +n[2]
658
658
  }
659
659
  } : null));
660
660
  }
661
- var bt = (e, t, n, r, i) => {
661
+ var xt = (e, t, n, r, i) => {
662
662
  let a = JSON.parse(JSON.stringify(e.definition));
663
663
  a.adjs ||= [];
664
664
  let o = "", c = 0, l = 0;
665
- t > 0 ? (l = t, c = 100 - t, o = s("op.lighterPercent", { percent: t })) : t < 0 && (c = 100 + t, o = s("op.darkerPercent", { percent: -t })), c && a.adjs.push({ [P.AdjustmentType.LumMod]: c }), l && a.adjs.push({ [P.AdjustmentType.LumOff]: l });
666
- let u = new y({
665
+ t > 0 ? (l = t, c = 100 - t, o = s("op.lighterPercent", { percent: t })) : t < 0 && (c = 100 + t, o = s("op.darkerPercent", { percent: -t })), c && a.adjs.push({ [T.AdjustmentType.LumMod]: c }), l && a.adjs.push({ [T.AdjustmentType.LumOff]: l });
666
+ let u = new j({
667
667
  val: a.val,
668
668
  adjs: a.adjs
669
669
  }, n), d = u.toString();
@@ -674,11 +674,11 @@ var bt = (e, t, n, r, i) => {
674
674
  definition: a
675
675
  };
676
676
  };
677
- function xt(e) {
677
+ function St(e) {
678
678
  let t, n = e.trim();
679
679
  if (!n) return;
680
680
  try {
681
- let e = Ke.shared().tokenize(n, !1);
681
+ let e = We.shared().tokenize(n, !1);
682
682
  if (e.errors.length > 0) return;
683
683
  t = e.tokens;
684
684
  } catch {
@@ -696,24 +696,24 @@ function xt(e) {
696
696
  case "NumberToken":
697
697
  case "ScientificDigit":
698
698
  case "DigitToken": {
699
- let e = de(o).value;
699
+ let e = te(o).value;
700
700
  return r === 0 ? e : r * e;
701
701
  }
702
- case "StringToken": return r === 0 ? ae(o).value : void 0;
703
- case "BooleanToken": return r === 0 ? Fe(o).value : void 0;
702
+ case "StringToken": return r === 0 ? ge(o).value : void 0;
703
+ case "BooleanToken": return r === 0 ? Ie(o).value : void 0;
704
704
  case "LiteralError":
705
- case "RefError": return r === 0 ? Re(o).value : void 0;
705
+ case "RefError": return r === 0 ? S(o).value : void 0;
706
706
  default: return;
707
707
  }
708
708
  } catch {
709
709
  return;
710
710
  }
711
711
  }
712
- function St(e, t) {
713
- let n = Ct(e), r = Ct(t);
712
+ function Ct(e, t) {
713
+ let n = wt(e), r = wt(t);
714
714
  return n === r ? e === t ? 0 : typeof e == "number" && typeof t == "number" ? e < t ? -1 : 1 : typeof e == "string" && typeof t == "string" ? e < t ? -1 : +(e > t) : typeof e == "boolean" ? e ? 1 : -1 : g.isError(e) && g.isError(t) ? e.getCode() - t.getCode() : 0 : n - r;
715
715
  }
716
- function Ct(e) {
716
+ function wt(e) {
717
717
  if (e === null) return 0;
718
718
  switch (typeof e) {
719
719
  case "number": return 1;
@@ -722,14 +722,14 @@ function Ct(e) {
722
722
  default: return g.isError(e) ? 4 : 5;
723
723
  }
724
724
  }
725
- (ct ||= {}).buildPalette = function(e, t, n, r) {
725
+ (lt ||= {}).buildPalette = function(e, t, n, r) {
726
726
  let i = [];
727
727
  for (let a = 0; a < e.length; a++) {
728
728
  let o = [];
729
729
  i.push(o);
730
730
  let s = (i) => {
731
- for (let s = 0; s < i.length; s++) o.push(bt(e[a], i[s], t, n, r));
732
- }, c = new y({
731
+ for (let s = 0; s < i.length; s++) o.push(xt(e[a], i[s], t, n, r));
732
+ }, c = new j({
733
733
  val: e[a].definition.val,
734
734
  adjs: e[a].definition.adjs
735
735
  }, t).toHSLA().lum;
@@ -766,8 +766,8 @@ function Ct(e) {
766
766
  ]);
767
767
  }
768
768
  return i;
769
- }, lt ||= {}, ut ||= {}, dt ||= {};
770
- var wt = class {
769
+ }, ut ||= {}, dt ||= {}, ft ||= {};
770
+ var Tt = class {
771
771
  constructor(e) {
772
772
  this._children = e;
773
773
  }
@@ -801,17 +801,17 @@ var wt = class {
801
801
  }
802
802
  e = new Be(function(e) {
803
803
  let t = e.length;
804
- if (t === 0) return Tt;
804
+ if (t === 0) return Et;
805
805
  if (t === 1) return e[0];
806
806
  let n = e[0];
807
- for (let r = 1; r < t; r++) n = Et(n, e[r]);
807
+ for (let r = 1; r < t; r++) n = Dt(n, e[r]);
808
808
  return Object.freeze(n);
809
809
  }(r)), this._sortedNumbers = e;
810
810
  }
811
811
  return e;
812
812
  }
813
813
  getRanked(e) {
814
- return le(this._children, e, St)[Symbol.iterator]();
814
+ return ne(this._children, e, Ct)[Symbol.iterator]();
815
815
  }
816
816
  getFrequencies(e) {
817
817
  if (e) return this._mergeFrequencies(e);
@@ -819,7 +819,7 @@ var wt = class {
819
819
  return t || (t = this._mergeFrequencies(), this._frequencies = t), t;
820
820
  }
821
821
  _mergeFrequencies(e) {
822
- let t = e?.keyFn ?? Ee, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
822
+ let t = e?.keyFn ?? ce, n = e?.limit, r = /* @__PURE__ */ new Map(), i = this._children, a = i.length, o = 0, s = 0, c = !1;
823
823
  for (let l = 0; l < a; l++) {
824
824
  let a = i[l].getFrequencies(e);
825
825
  o += a.getVisitedCount(), s += a.getTotalCount(), c ||= a.isTruncated();
@@ -832,7 +832,7 @@ var wt = class {
832
832
  }) : c = !0, d = u.next();
833
833
  }
834
834
  }
835
- return ve.fromGroups(r, t, e, St, o, s, c);
835
+ return ae.fromGroups(r, t, e, Ct, o, s, c);
836
836
  }
837
837
  getTypedCounts(e) {
838
838
  let t = this._typedCounts;
@@ -882,17 +882,17 @@ var wt = class {
882
882
  let a = n.numericalCount;
883
883
  a <= 0 || (r.numericalCount += a, r.sum += n.sum, r.sumSq += n.varP * a + n.sum * n.sum / a, (r.min === void 0 || n.min < r.min) && (r.min = n.min), (r.max === void 0 || n.max > r.max) && (r.max = n.max));
884
884
  }
885
- return ee(r);
885
+ return Ee(r);
886
886
  }
887
- }, Tt = Object.freeze([]);
888
- function Et(e, t) {
887
+ }, Et = Object.freeze([]);
888
+ function Dt(e, t) {
889
889
  let n = e.length, r = t.length, i = Array(n + r), a = 0, o = 0, s = 0;
890
890
  for (; a < n && o < r;) i[s++] = e[a] <= t[o] ? e[a++] : t[o++];
891
891
  for (; a < n;) i[s++] = e[a++];
892
892
  for (; o < r;) i[s++] = t[o++];
893
893
  return i;
894
894
  }
895
- var Dt = class {
895
+ var Ot = class {
896
896
  constructor(e) {
897
897
  this.isIExternalBook = !0, this._json = e;
898
898
  }
@@ -911,9 +911,9 @@ var Dt = class {
911
911
  toJSON() {
912
912
  return this._json;
913
913
  }
914
- }, Ot = class {
914
+ }, kt = class {
915
915
  constructor(e) {
916
- this.isIExternalBookCollection = !0, this._items = (e?.json ?? []).map((e) => e ? new Dt(e) : null);
916
+ this.isIExternalBookCollection = !0, this._items = (e?.json ?? []).map((e) => e ? new Ot(e) : null);
917
917
  }
918
918
  [Symbol.iterator]() {
919
919
  return this.getItems()[Symbol.iterator]();
@@ -935,13 +935,13 @@ var Dt = class {
935
935
  toJSON() {
936
936
  return this._items.length === 0 ? null : this._items.map((e) => e?.toJSON() ?? null);
937
937
  }
938
- }, kt = class {
938
+ }, At = class {
939
939
  constructor(e) {
940
940
  this._closed = !1, this._options = { ...e };
941
941
  let t = this;
942
- this._transactions = this._options.transactions ?? new we({ transient: !0 }), this._stateId = this._transactions.create(), this._transactionsRemoveListener = this._transactions.addStateListener(this._stateId, { onAfterStateChange(e, n, r) {
942
+ this._transactions = this._options.transactions ?? new fe({ transient: !0 }), this._stateId = this._transactions.create(), this._transactionsRemoveListener = this._transactions.addStateListener(this._stateId, { onAfterStateChange(e, n, r) {
943
943
  t._emitter.notify("onCollectionChange");
944
- } }), this._emitter = new F(this, this._transactions), this._initState(e?.initial);
944
+ } }), this._emitter = new A(this, this._transactions), this._initState(e?.initial);
945
945
  }
946
946
  add(e, t, n) {
947
947
  let r = this;
@@ -1044,9 +1044,9 @@ var Dt = class {
1044
1044
  get isFunctionCollection() {
1045
1045
  return !0;
1046
1046
  }
1047
- }, At = class {
1047
+ }, jt = class {
1048
1048
  constructor(e) {
1049
- this._options = e, this._emitter = new F(this), this._initState();
1049
+ this._options = e, this._emitter = new A(this), this._initState();
1050
1050
  }
1051
1051
  _initState() {}
1052
1052
  getModules() {
@@ -1064,17 +1064,17 @@ var Dt = class {
1064
1064
  }
1065
1065
  }
1066
1066
  async createModule(e) {
1067
- let t = await (await import("./BJhMeXHgj2izJPad.mjs").then((e) => e.t)).ScriptCompiler.compile({
1067
+ let t = await (await import("./B3ZyfwskutLZMYfl2.js").then((e) => e.t)).ScriptCompiler.compile({
1068
1068
  builtInNames: this._builtInNames(),
1069
1069
  ...e
1070
1070
  });
1071
- return t.module ? await A("scripts", t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1071
+ return t.module ? await P("scripts", t.module, e?.declarationsOnly ?? !1, t.diagnostics) : null;
1072
1072
  }
1073
1073
  addModule(e, t, n) {
1074
1074
  this._modules.add(e, t, n);
1075
1075
  }
1076
1076
  async addModuleFromJSON(e, t, n) {
1077
- let r = await A(e, t);
1077
+ let r = await P(e, t);
1078
1078
  return this.addModule(e, r, n), r;
1079
1079
  }
1080
1080
  executeMacro(e, t, n) {
@@ -1090,7 +1090,7 @@ var Dt = class {
1090
1090
  }
1091
1091
  async run(e, t) {
1092
1092
  try {
1093
- let n = typeof e == "string" ? await this.createModule({ source: e }) : await A("scripts", e), r = typeof e == "string" ? e : e?.source ?? "";
1093
+ let n = typeof e == "string" ? await this.createModule({ source: e }) : await P("scripts", e), r = typeof e == "string" ? e : e?.source ?? "";
1094
1094
  return await this._runModule(n, r, t);
1095
1095
  } catch (e) {
1096
1096
  return {
@@ -1172,7 +1172,7 @@ var Dt = class {
1172
1172
  }
1173
1173
  if (!r || r.length === 0) return e.EmptyArray;
1174
1174
  let s = t?.text ? t.text.trim().toUpperCase() : null;
1175
- return s && n.length > 1 && Te(r, s), i !== void 0 && r.length > i ? r.slice(0, i) : r;
1175
+ return s && n.length > 1 && ye(r, s), i !== void 0 && r.length > i ? r.slice(0, i) : r;
1176
1176
  }
1177
1177
  async getFunctionCategories(t) {
1178
1178
  await this._emitter.notify("onBeforeSearch", { async: !0 });
@@ -1215,13 +1215,13 @@ var Dt = class {
1215
1215
  for (let t = 0; t < e.length; t++) {
1216
1216
  let i = e[t], a = n[i];
1217
1217
  try {
1218
- r[i] = await A(i, a);
1218
+ r[i] = await P(i, a);
1219
1219
  } catch (e) {
1220
1220
  o.error(`Could not load script '${i}'; it will be unavailable.`, e);
1221
1221
  }
1222
1222
  }
1223
1223
  }
1224
- let i = this, a = new kt({
1224
+ let i = this, a = new At({
1225
1225
  transactions: this._options?.transactions,
1226
1226
  initial: r,
1227
1227
  onRemove: (e, t) => {
@@ -1257,9 +1257,9 @@ var Dt = class {
1257
1257
  if (!e) throw Error("Scripts is initializing.");
1258
1258
  return e.toJSON();
1259
1259
  }
1260
- }, jt = class {
1260
+ }, Mt = class {
1261
1261
  constructor(e, t, n, r) {
1262
- this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? l.EmptyCell, this._sheet = new O({
1262
+ this._mergedReading = [], this._colsReading = [], this._rowsReading = [], this._styles = n, this._topLeft = t ?? l.EmptyCell, this._sheet = new D({
1263
1263
  runtime: e,
1264
1264
  styles: this._styles,
1265
1265
  container: {
@@ -1279,28 +1279,28 @@ var Dt = class {
1279
1279
  e.includes(r) && delete i[r];
1280
1280
  }
1281
1281
  }
1282
- let a = v(i.fontFamily);
1282
+ let a = Te(i.fontFamily);
1283
1283
  r.font = {}, a && (r.font.family = a.family, r.font.fallbacks = a.fallbacks, r.font.size = a.size), r.font.size = i.fontSize, r.font.weight = i.fontWeight, r.font.style = i.fontStyle, r.font.color = i.color;
1284
- let o = se(i.textDecoration);
1285
- r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = Se(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = te(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = j.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = j.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = j.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = S.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = S.VerticalAlignment.Sub : r.alignment.vertical = Ge(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = j.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = i.whiteSpace === "no-wrap" || i.whiteSpace === "nowrap" ? j.Overflow.Visible : j.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = j.Overflow.Shrink);
1284
+ let o = y(i.textDecoration);
1285
+ r.font.underline = o.underline, r.font.strike = o.strike, i.textUnderlineStyle && (r.font.underline = Ue(i.textUnderlineStyle)), r.alignment = {}, i?.textAlign && (r.alignment.horizontal = me(i.textAlign)), i?.textAlign && !r.alignment.horizontal && i?.textAlign !== "general" && (i.textAlign === "center-across" ? r.alignment.horizontal = N.HorizontalAlignment.CenterContinuous : i.textAlign === "fill" ? r.alignment.horizontal = N.HorizontalAlignment.Fill : i.textAlign === "121" || i.textAlign === "010" ? (r.alignment.horizontal = N.HorizontalAlignment.Distributed, r.alignment.justifyLastLine = i.textAlign === "121") : console.warn("unknown text-align", i.textAlign)), i.verticalAlign && (i.verticalAlign.toLowerCase() === "super" ? r.font.verticalAlign = k.VerticalAlignment.Super : i.verticalAlign.toLowerCase() === "sup" ? r.font.verticalAlign = k.VerticalAlignment.Sub : r.alignment.vertical = Le(i.verticalAlign), r.alignment.vertical || (i.verticalAlign === "121" ? r.alignment.vertical = N.VerticalAlignment.Distributed : console.warn("unknown vertical-align", i.verticalAlign))), i.msoCharIndentCount && (r.alignment.indent = i.msoCharIndentCount), i.whiteSpace && (r.alignment.overflow = i.whiteSpace === "no-wrap" || i.whiteSpace === "nowrap" ? N.Overflow.Visible : N.Overflow.Wrap), i.msoTextControl === "shrinktofit" && (r.alignment.overflow = N.Overflow.Shrink);
1286
1286
  let s = null;
1287
1287
  if (i.background ? s = i.background : i.backgroundColor && (s = i.backgroundColor), s && (r.fill = { color: s }), i.msoPattern) {
1288
- let e = Ie(i.msoPattern);
1289
- e && (e.patternType === M.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== M.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1288
+ let e = w(i.msoPattern);
1289
+ e && (e.patternType === be.BuiltInSheetPattern.Solid ? r.fill = { color: e.foreground } : e.patternType !== be.BuiltInSheetPattern.None && (s && (e.background = s), r.fill = e));
1290
1290
  }
1291
- i.msoRotate !== void 0 && (r.alignment.rotation = ce(i.msoRotate));
1291
+ i.msoRotate !== void 0 && (r.alignment.rotation = xe(i.msoRotate));
1292
1292
  let c = (e, t) => {
1293
1293
  e && (r.border ||= {}, r.border[e] = t);
1294
1294
  };
1295
1295
  i.border && i.border !== "none" && (c("top", i.border), c("left", i.border), c("right", i.border), c("bottom", i.border)), i.borderTop && c("top", i.borderTop), i.borderLeft && c("left", i.borderLeft), i.borderRight && c("right", i.borderRight), i.borderBottom && c("bottom", i.borderBottom), i.msoDiagonalUp && c("diagonalUp", i.msoDiagonalUp), i.msoDiagonalDown && c("diagonalDown", i.msoDiagonalDown);
1296
1296
  let l = r.numberFormat;
1297
- i.msoNumberFormat && (l = _e(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = D.Styles.lookupStyle(r.numberFormat).formatType === D.Type.Number ? null : D.Type.Number : l === "Percent" && (l = D.Styles.lookupStyle(r.numberFormat).formatType === D.Type.Percentage ? null : D.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1297
+ i.msoNumberFormat && (l = he(i.msoNumberFormat), l.includes("\\") ? l = null : l === "Fixed" ? l = M.Styles.lookupStyle(r.numberFormat).formatType === M.Type.Number ? null : M.Type.Number : l === "Percent" && (l = M.Styles.lookupStyle(r.numberFormat).formatType === M.Type.Percentage ? null : M.Type.Percentage)), l && (r.numberFormat = l), e.style = this._styles.normalize(r), n && Object.keys(e.style).length === 0 && delete e.style;
1298
1298
  }
1299
1299
  onCell(e, t, n, r, i) {
1300
1300
  let a = r(i), o = { value: t === void 0 ? n ?? "" : t };
1301
1301
  if (typeof o.value == "string" && o.value.length === 0 && (o.value = void 0), a && this.applyCSSStyle(o, a), i?.tagName.toUpperCase() === "TD") {
1302
1302
  let e = o.style, t = e?.font ?? {};
1303
- (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = !0), i.querySelectorAll("sub").length > 0 && (t.verticalAlign = S.VerticalAlignment.Sub), i.querySelectorAll("sup").length > 0 && (t.verticalAlign = S.VerticalAlignment.Super), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = S.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = S.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, o.style = e), e.font ||= t);
1303
+ (i.querySelectorAll("s").length > 0 || i.querySelectorAll("strike").length > 0) && (t.strike = !0), i.querySelectorAll("sub").length > 0 && (t.verticalAlign = k.VerticalAlignment.Sub), i.querySelectorAll("sup").length > 0 && (t.verticalAlign = k.VerticalAlignment.Super), (i.querySelectorAll("b").length > 0 || i.querySelectorAll("strong").length > 0) && (t.weight = 700), i.querySelectorAll("i").length > 0 && (t.style = k.Style.Italic), i.querySelectorAll("u").length > 0 && (t.underline = k.UnderlineStyle.Single), Object.keys(t).length > 0 && (e || (e = {}, o.style = e), e.font ||= t);
1304
1304
  let n = i.querySelectorAll("a");
1305
1305
  if (n.length > 0) {
1306
1306
  let e = n[0].getAttribute("href");
@@ -1347,8 +1347,8 @@ var Dt = class {
1347
1347
  let i = n(r);
1348
1348
  if (i.msoHeightSource !== "userset" || !r) return;
1349
1349
  let a = r.getAttribute("height") ?? i.height, o = null;
1350
- if (a && (o = I(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1351
- let t = r.cells[e], i = I(t.getAttribute("height") ?? n(t).height, this._styles.getNormal().getFont().getSize(), "px");
1350
+ if (a && (o = v(a, this._styles.getNormal().getFont().getSize(), "px")), o === null) for (let e = 0; e < r.cells.length; e++) {
1351
+ let t = r.cells[e], i = v(t.getAttribute("height") ?? n(t).height, this._styles.getNormal().getFont().getSize(), "px");
1352
1352
  i !== null && (o = Math.max(i, o ?? 0));
1353
1353
  }
1354
1354
  o !== null && this._rowsReading.push({
@@ -1356,19 +1356,19 @@ var Dt = class {
1356
1356
  min: this._topLeft.rowIndex + e,
1357
1357
  max: this._topLeft.rowIndex + e + t - 1
1358
1358
  },
1359
- update: { size: o * S.getDeviceScale() }
1359
+ update: { size: o * k.getDeviceScale() }
1360
1360
  });
1361
1361
  }
1362
1362
  onColumn(e, t, n, r) {
1363
1363
  let i = n(r);
1364
1364
  if (i.msoWidthSource !== "userset" || !r) return;
1365
1365
  let a = r.getAttribute("width") ?? i.width, o = null;
1366
- a && (o = I(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1366
+ a && (o = v(a, this._styles.getNormal().getFont().getSize(), "px")), o !== null && this._colsReading.push({
1367
1367
  address: {
1368
1368
  min: this._topLeft.colIndex + e,
1369
1369
  max: this._topLeft.colIndex + e + t - 1
1370
1370
  },
1371
- update: { size: o * S.getDeviceScale() }
1371
+ update: { size: o * k.getDeviceScale() }
1372
1372
  });
1373
1373
  }
1374
1374
  onDone() {
@@ -1379,7 +1379,7 @@ var Dt = class {
1379
1379
  sheet() {
1380
1380
  return this._sheet;
1381
1381
  }
1382
- }, Mt = class {
1382
+ }, Nt = class {
1383
1383
  constructor(e) {
1384
1384
  if (!e) throw new r("snapshot is required.");
1385
1385
  this._snapshot = e;
@@ -1411,7 +1411,7 @@ var Dt = class {
1411
1411
  get isClipboardItem() {
1412
1412
  return !0;
1413
1413
  }
1414
- }, Nt = class {
1414
+ }, Pt = class {
1415
1415
  constructor(e, t, n, i, a) {
1416
1416
  if (this._parsed = void 0, this._runtime = e, !t) throw new r("nativeItems are required.");
1417
1417
  this._topLeft = n ?? l.EmptyCell, this._native = t, this._markOptions = Object.freeze(i ?? {}), this._styles = a;
@@ -1462,10 +1462,10 @@ var Dt = class {
1462
1462
  console.warn("Discovered text as html table but could could not parse.");
1463
1463
  }
1464
1464
  try {
1465
- let r = new jt(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text");
1465
+ let r = new Mt(this._runtime, this._topLeft, this._styles, n ? "HTML" : "Text");
1466
1466
  await r.sheet().getCalculation().ready(), await r.sheet().getCalculation().stop();
1467
- let i, a = await Promise.resolve(t ? De(t) : [[]]);
1468
- if (Oe(n, a, r) ? (e = r.sheet(), i = e.getUsedRange()) : n = null, i) return this._parsed = {
1467
+ let i, a = await Promise.resolve(t ? ue(t) : [[]]);
1468
+ if (we(n, a, r) ? (e = r.sheet(), i = e.getUsedRange()) : n = null, i) return this._parsed = {
1469
1469
  copyTo: async (e, t) => (await e.copyFrom(i, t))?.getCoords() ?? null,
1470
1470
  getCoords: () => i.getCoords(),
1471
1471
  getSource: () => e,
@@ -1492,7 +1492,7 @@ var Dt = class {
1492
1492
  get isClipboardItem() {
1493
1493
  return !0;
1494
1494
  }
1495
- }, X = {
1495
+ }, Y = {
1496
1496
  showFormulaBar: !0,
1497
1497
  showTabs: !0,
1498
1498
  tabRatio: 600,
@@ -1500,9 +1500,9 @@ var Dt = class {
1500
1500
  showVerticalScrollbar: !0,
1501
1501
  showStatusBar: !0,
1502
1502
  activeSheetId: 0
1503
- }, Pt = class {
1503
+ }, Ft = class {
1504
1504
  constructor(e) {
1505
- this._emitter = new F(this), this._state = { ...X }, e?.json && this._fromJSON(e?.json);
1505
+ this._emitter = new A(this), this._state = { ...Y }, e?.json && this._fromJSON(e?.json);
1506
1506
  }
1507
1507
  isShowFormulaBar() {
1508
1508
  return this._state.showFormulaBar;
@@ -1554,7 +1554,7 @@ var Dt = class {
1554
1554
  let e = {}, t = Object.keys(this._state), n = t.length;
1555
1555
  for (let r = 0; r < n; r++) {
1556
1556
  let n = t[r], i = this._state[n];
1557
- i != null && i !== X[n] && (e[n] = i);
1557
+ i != null && i !== Y[n] && (e[n] = i);
1558
1558
  }
1559
1559
  return Object.keys(e).length === 0 && (e = null), e;
1560
1560
  }
@@ -1564,7 +1564,7 @@ var Dt = class {
1564
1564
  }
1565
1565
  update(e, t = !0) {
1566
1566
  this._state = {
1567
- ...X,
1567
+ ...Y,
1568
1568
  ...this._state,
1569
1569
  ...e
1570
1570
  }, t && this._emitter.notify("onViewChange");
@@ -1576,13 +1576,13 @@ var Dt = class {
1576
1576
  let e = this.toJSON();
1577
1577
  return e ? JSON.stringify(e) : "DefaultWorkbookView";
1578
1578
  }
1579
- }, Ft = Object.freeze({
1579
+ }, It = Object.freeze({
1580
1580
  structure: !1,
1581
1581
  windows: !1,
1582
1582
  revision: !1,
1583
1583
  password: null,
1584
1584
  revisionsPassword: null
1585
- }), It = class extends ze {
1585
+ }), Lt = class extends _e {
1586
1586
  isWindowsAllowed() {
1587
1587
  return this._isPropertyAllowed("windows");
1588
1588
  }
@@ -1605,7 +1605,7 @@ var Dt = class {
1605
1605
  let n = Object.keys(t), r = n.length;
1606
1606
  for (let i = 0; i < r; i++) {
1607
1607
  let r = n[i], a = t[r];
1608
- a != null && a !== Ft[r] && (e[r] = a);
1608
+ a != null && a !== It[r] && (e[r] = a);
1609
1609
  }
1610
1610
  }
1611
1611
  return super._toJSON(e);
@@ -1614,10 +1614,10 @@ var Dt = class {
1614
1614
  return "[WorkbookProtection]";
1615
1615
  }
1616
1616
  };
1617
- function Z(e) {
1617
+ function X(e) {
1618
1618
  return s("error.workbook.invalidSheetKey", { key: e });
1619
1619
  }
1620
- var Lt, Rt, zt = class {
1620
+ var Rt, zt, Bt = class {
1621
1621
  constructor(e, t) {
1622
1622
  this._add = e, this._get = t;
1623
1623
  }
@@ -1636,25 +1636,25 @@ var Lt, Rt, zt = class {
1636
1636
  getCount() {
1637
1637
  return this._get().length;
1638
1638
  }
1639
- }, Q = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), Bt = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
1640
- function Vt(e) {
1639
+ }, Z = /* @__PURE__ */ new RegExp(/[\\/\\*?:[\]]+/), Vt = /* @__PURE__ */ new RegExp(/\(((\d+)(?!.*\d))\)$/, "g");
1640
+ function Ht(e) {
1641
1641
  let t = s(m("workbook.defaultSheetName"), { n: e + 1 });
1642
1642
  return t === "workbook.defaultSheetName" ? `Sheet${e + 1}` : t;
1643
1643
  }
1644
- function Ht(e, t) {
1644
+ function Q(e, t) {
1645
1645
  return {
1646
- ...ie,
1646
+ ...Se,
1647
1647
  getSheet: () => null,
1648
- toString: () => x(e, t)
1648
+ toString: () => O(e, t)
1649
1649
  };
1650
1650
  }
1651
1651
  function Ut(e, t = !1) {
1652
1652
  if (!e) throw Error(s("error.workbook.sheetNameBlank"));
1653
- if (Q.test(e)) {
1653
+ if (Z.test(e)) {
1654
1654
  if (!t) throw Error(function(e) {
1655
1655
  return e ? s("error.workbook.sheetNameInvalidCharsNamed", { sheetName: e }) : s("error.workbook.sheetNameInvalidChars");
1656
1656
  }(e));
1657
- e = e.replace(Q, "");
1657
+ e = e.replace(Z, "");
1658
1658
  }
1659
1659
  if (e.length === 0) throw Error(s("error.workbook.sheetNameBlank"));
1660
1660
  let n = e.length;
@@ -1668,7 +1668,7 @@ function Ut(e, t = !1) {
1668
1668
  }
1669
1669
  return e;
1670
1670
  }
1671
- var Wt, $ = class e extends ke {
1671
+ var Wt, $ = class e extends ee {
1672
1672
  constructor(e, t, n, r) {
1673
1673
  super(e, t, r), this._workbook = n;
1674
1674
  }
@@ -1679,23 +1679,23 @@ var Wt, $ = class e extends ke {
1679
1679
  let r = this._options;
1680
1680
  return n && (r = {
1681
1681
  ...this._options,
1682
- getOptions: C(this._options?.getOptions, n)
1682
+ getOptions: x(this._options?.getOptions, n)
1683
1683
  }), new e(t, this._internal, this._workbook, r);
1684
1684
  }
1685
1685
  _createRange(e, t) {
1686
- let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, w.Visibility.VeryHidden) : null;
1686
+ let n = e ? { ...e } : null, r = n ? this._workbook._getSheetRef(n.scope, R.Visibility.VeryHidden) : null;
1687
1687
  if (!r) {
1688
1688
  let e = this._workbook.getSelectedSheet();
1689
- return delete n?.scope, Ht(n, n ? {
1690
- scope: Me,
1689
+ return delete n?.scope, Q(n, n ? {
1690
+ scope: Pe,
1691
1691
  ...e.getEntireRange().getCoords()
1692
1692
  } : null);
1693
1693
  }
1694
1694
  let i = this._options;
1695
1695
  return t && (i = {
1696
1696
  ...this._options,
1697
- getOptions: C(this._options.getOptions, t)
1698
- }), new Gt(e, T(r.sheet), this._workbook, i);
1697
+ getOptions: x(this._options.getOptions, t)
1698
+ }), new Gt(e, I(r.sheet), this._workbook, i);
1699
1699
  }
1700
1700
  async select(e) {
1701
1701
  let t = [], n = null, r = this.getCoords();
@@ -1719,15 +1719,15 @@ var Wt, $ = class e extends ke {
1719
1719
  }
1720
1720
  getAddress(e) {
1721
1721
  let t = this._internal.getSheet(), n = t.getEntireRange().getCoords();
1722
- return be(this.getCoords(), {
1722
+ return Me(this.getCoords(), {
1723
1723
  ...n,
1724
1724
  scope: t.getName()
1725
- }, x, Ae, e);
1725
+ }, O, je, e);
1726
1726
  }
1727
1727
  toString() {
1728
1728
  return this.getAddress();
1729
1729
  }
1730
- }, Gt = class e extends ye {
1730
+ }, Gt = class e extends oe {
1731
1731
  constructor(e, t, n, r) {
1732
1732
  super(e, t, r), this._workbook = n;
1733
1733
  }
@@ -1735,17 +1735,17 @@ var Wt, $ = class e extends ke {
1735
1735
  let n = this._options;
1736
1736
  return t && (n = {
1737
1737
  ...this._options,
1738
- getOptions: C(this._options?.getOptions, t)
1738
+ getOptions: x(this._options?.getOptions, t)
1739
1739
  }), new $(e, this._internal, this._workbook, n);
1740
1740
  }
1741
1741
  _createRange(t, n) {
1742
1742
  let r = this._internal;
1743
- if (!t) return E(r.getSheet(), r.getSheet().getEntireCoords());
1744
- if (r.validateCoords(t), r.getSheet().isClosed()) return E(null, r.getSheet().getEntireCoords(), t);
1743
+ if (!t) return F(r.getSheet(), r.getSheet().getEntireCoords());
1744
+ if (r.validateCoords(t), r.getSheet().isClosed()) return F(null, r.getSheet().getEntireCoords(), t);
1745
1745
  let i = this._options;
1746
1746
  return n && (i = {
1747
1747
  ...this._options,
1748
- getOptions: C(this._options?.getOptions, n)
1748
+ getOptions: x(this._options?.getOptions, n)
1749
1749
  }), new e(t, this._internal, this._workbook, i);
1750
1750
  }
1751
1751
  addListener(e, t) {
@@ -1758,7 +1758,7 @@ var Wt, $ = class e extends ke {
1758
1758
  }
1759
1759
  getAddress(e) {
1760
1760
  let t = this._internal.getSheet(), n = t?.getEntireRange().getCoords() ?? null;
1761
- return x(this.getCoords(), {
1761
+ return O(this.getCoords(), {
1762
1762
  ...n,
1763
1763
  scope: t.getName()
1764
1764
  });
@@ -1770,24 +1770,24 @@ var Wt, $ = class e extends ke {
1770
1770
  constructor(t) {
1771
1771
  this._lastTransactionUUID = null, this._closed = !1, this._listenerOrigin = null, this._lastOriginName = null, this._initializing = !0, this._isDate1904 = !1, this._locale = null, this._localeOverrides = null;
1772
1772
  let n = typeof t == "string" ? { origin: t } : { ...t }, r = n.origin;
1773
- this._origin = typeof r == "string" ? new L(null, { name: r }) : r ?? new L(null), delete n.origin, this._lastOriginName = this._origin.getName(), this._listenerOrigin = this._origin.addListeners({ onChange: () => {
1773
+ this._origin = typeof r == "string" ? new z(null, { name: r }) : r ?? new z(null), delete n.origin, this._lastOriginName = this._origin.getName(), this._listenerOrigin = this._origin.addListeners({ onChange: () => {
1774
1774
  if (this._closed) return;
1775
1775
  let e = this._origin.getName();
1776
1776
  e !== this._lastOriginName && (this._lastOriginName = e, this._emitter.notify("onNameChange"));
1777
1777
  } });
1778
1778
  let i = n.json;
1779
- delete n.json, this._transactions = n.transactions ?? new we(), this._id = this._transactions.create(), this._ownTransactions = !n.transactions, this._emitter = new F(this, this._transactions), this._runtime = n.runtime ?? new Pe("Workbook Runtime", {
1779
+ delete n.json, this._transactions = n.transactions ?? new fe(), this._id = this._transactions.create(), this._ownTransactions = !n.transactions, this._emitter = new A(this, this._transactions), this._runtime = n.runtime ?? new ve("Workbook Runtime", {
1780
1780
  isDate1904: () => this._isDate1904,
1781
- getLocale: () => this._locale ?? Le() ?? He(),
1781
+ getLocale: () => this._locale ?? He() ?? ke(),
1782
1782
  getLocaleOverrides: () => this._localeOverrides
1783
1783
  }), this._listenerLanguage = c.addChangeListener(() => {
1784
1784
  this._locale !== null || this._closed || this._notifyAllChange();
1785
1785
  });
1786
1786
  let a = this, o = this._beginCommit({ description: m(i ? "op.openWorkbook" : "op.newWorkbook") });
1787
1787
  try {
1788
- this._strings = n.strings ?? new Ce(), this._ownStrings = !n.strings, this._externalBooks = new Ot({ json: i?.externalBooks }), this._resources = n.resources ?? new pe(), this._ownResources = !n.resources, this._createSheetName = n.createSheetNameCallback ?? Vt;
1788
+ this._strings = n.strings ?? new se(), this._ownStrings = !n.strings, this._externalBooks = new kt({ json: i?.externalBooks }), this._resources = n.resources ?? new b(), this._ownResources = !n.resources, this._createSheetName = n.createSheetNameCallback ?? Ht;
1789
1789
  let t = n.createSheetCallback;
1790
- t ||= (e) => new O(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (e, n, r, i, o) => {
1790
+ t ||= (e) => new D(e), this._sheetOnNameChange = /* @__PURE__ */ new Map(), this._sheetOnVisibilityChange = /* @__PURE__ */ new Map(), this._sheetOnIndexChange = /* @__PURE__ */ new Map(), this._createSheet = (e, n, r, i, o) => {
1791
1791
  let s = null, c = {
1792
1792
  runtime: a._runtime,
1793
1793
  readonly: a._options.readonly ?? !1,
@@ -1807,7 +1807,7 @@ var Wt, $ = class e extends ke {
1807
1807
  s = t, a._addSheetRef({
1808
1808
  name: n,
1809
1809
  id: e,
1810
- visibility: r ?? w.Visibility.Visible,
1810
+ visibility: r ?? R.Visibility.Visible,
1811
1811
  sheet: t
1812
1812
  }, i);
1813
1813
  },
@@ -1823,7 +1823,7 @@ var Wt, $ = class e extends ke {
1823
1823
  },
1824
1824
  getVisibility: () => {
1825
1825
  let e = a._getSheetRef(s);
1826
- return e ? e.visibility : w.Visibility.Visible;
1826
+ return e ? e.visibility : R.Visibility.Visible;
1827
1827
  },
1828
1828
  setVisibility: (e, t) => {
1829
1829
  a._setSheetVisibility(s, e, t);
@@ -1834,10 +1834,10 @@ var Wt, $ = class e extends ke {
1834
1834
  duplicate: () => a._duplicateSheet(s),
1835
1835
  getIndex: () => {
1836
1836
  let e = a._getSheetRef(s);
1837
- return e ? a._getOffsetForId(e.id, a._getSheetRefs(w.Visibility.VeryHidden)) : i;
1837
+ return e ? a._getOffsetForId(e.id, a._getSheetRefs(R.Visibility.VeryHidden)) : i;
1838
1838
  },
1839
1839
  setIndex: (e, t) => {
1840
- let n = a._getSheetRef(s, w.Visibility.VeryHidden);
1840
+ let n = a._getSheetRef(s, R.Visibility.VeryHidden);
1841
1841
  return !!n && (a._moveSheet(n, e, t), !0);
1842
1842
  },
1843
1843
  setIndexCallback: (t) => {
@@ -1851,10 +1851,10 @@ var Wt, $ = class e extends ke {
1851
1851
  }
1852
1852
  };
1853
1853
  return o && (c.json = o), s = t(c, n, i, r), s;
1854
- }, this._namedTableSource = new je({
1854
+ }, this._namedTableSource = new Ae({
1855
1855
  getSheets: () => a._sheets ? a.getSheets().getItems() : e.EmptyArray,
1856
1856
  addSheetsListener: (e, t) => a.addListeners({ onSheetsChange: e }, t)
1857
- }), this._names = n.names ?? new ge({
1857
+ }), this._names = n.names ?? new C({
1858
1858
  addressToRanges: (e) => a.getRanges(e),
1859
1859
  getCurrentScope: () => a.getSelectedSheet().getName(),
1860
1860
  isReadOnly: () => a._options.readonly ?? !1,
@@ -1863,6 +1863,7 @@ var Wt, $ = class e extends ke {
1863
1863
  }), this._ownNames = !n.names, this._calculation = n.calculation ?? new Ne({
1864
1864
  runtime: a._runtime,
1865
1865
  functions: n.functions,
1866
+ json: i?.calc,
1866
1867
  getActiveCell: () => {
1867
1868
  let e = a.getSelectedSheet(), t = e?.getSelectedRange()?.getCoords();
1868
1869
  return t ? {
@@ -1877,9 +1878,9 @@ var Wt, $ = class e extends ke {
1877
1878
  getSheetIndex: (e) => {
1878
1879
  if (e === void 0) {
1879
1880
  let e = a.getSelectedSheet();
1880
- return e ? this._getSheetRefs(w.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
1881
+ return e ? this._getSheetRefs(R.Visibility.VeryHidden).findIndex((t) => t.sheet === e) : -1;
1881
1882
  }
1882
- let t = this._getSheetRefs(w.Visibility.VeryHidden);
1883
+ let t = this._getSheetRefs(R.Visibility.VeryHidden);
1883
1884
  e = e.toLowerCase();
1884
1885
  let n = t.length;
1885
1886
  for (let r = 0; r < n; r++) if (t[r].name.toLowerCase() === e) return r;
@@ -1889,7 +1890,7 @@ var Wt, $ = class e extends ke {
1889
1890
  if (!t || t.length === 0) return -1;
1890
1891
  let n = t[0].getRanges?.()?.getCoords()?.[0]?.scope;
1891
1892
  if (!n) return -1;
1892
- let r = this._getSheetRefs(w.Visibility.VeryHidden);
1893
+ let r = this._getSheetRefs(R.Visibility.VeryHidden);
1893
1894
  n = n.toLowerCase();
1894
1895
  let i = r.length;
1895
1896
  for (let e = 0; e < i; e++) if (r[e].name.toLowerCase() === n) return e;
@@ -1898,9 +1899,9 @@ var Wt, $ = class e extends ke {
1898
1899
  }
1899
1900
  return -1;
1900
1901
  },
1901
- getSheetCount: () => a.getSheets().getItems({ visibility: w.Visibility.VeryHidden }).length,
1902
+ getSheetCount: () => a.getSheets().getItems({ visibility: R.Visibility.VeryHidden }).length,
1902
1903
  getSheetById: (e) => {
1903
- let t = a.getSheets().getItems({ visibility: w.Visibility.VeryHidden }), n = t.length;
1904
+ let t = a.getSheets().getItems({ visibility: R.Visibility.VeryHidden }), n = t.length;
1904
1905
  for (let r = 0; r < n; r++) if (t[r].getId() === e) return t[r];
1905
1906
  return null;
1906
1907
  },
@@ -1920,7 +1921,7 @@ var Wt, $ = class e extends ke {
1920
1921
  let r = async () => {
1921
1922
  this._ownCalculation && await this._calculation.start(), await this._scripts.start(), this._starting = null;
1922
1923
  };
1923
- this._starting = r(), this._starting?.catch(() => {}), i ? this._fromJSON(i) : (this._initState(), this._addSheet(!1)), this._sheets = new zt((e) => a._addSheetOptions(e), (t, n) => {
1924
+ this._starting = r(), this._starting?.catch(() => {}), i ? this._fromJSON(i) : (this._initState(), this._addSheet(!1)), this._sheets = new Bt((e) => a._addSheetOptions(e), (t, n) => {
1924
1925
  if (t) {
1925
1926
  let r = this._getSheetRef(t, n);
1926
1927
  return r ? [r.sheet] : e.EmptyArray;
@@ -1936,7 +1937,7 @@ var Wt, $ = class e extends ke {
1936
1937
  let e = this._getSheetRefs();
1937
1938
  for (let t = (e ? e.length : 0) - 1; t >= 0; t--);
1938
1939
  let t = this._options;
1939
- this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new We().getDefaultTheme(), this._styles = t?.styles ?? new oe(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Pt()), this._listenerProtection?.(), this._protection = new It(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
1940
+ this._isDate1904 = t.runtime?.isDate1904() ?? !1, this._locale = null, this._localeOverrides = null, this._theme = t.theme ?? new ze().getDefaultTheme(), this._styles = t?.styles ?? new De(this._theme), this._ownStyles = !t.styles, this._styles.getTheme() || this._styles.setTheme(this.getTheme()), this._activeSheetOffset = 0, this.setView(new Ft()), this._listenerProtection?.(), this._protection = new Lt(void 0, this._options.readonly ?? !1), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
1940
1941
  n._emitter.notify("onProtectionChange");
1941
1942
  } });
1942
1943
  let n = this;
@@ -2060,14 +2061,14 @@ var Wt, $ = class e extends ke {
2060
2061
  let e = this._getSheetRef(this.getSelectedSheetIndex());
2061
2062
  return e ? e?.sheet : null;
2062
2063
  }
2063
- getSheet(e, n = w.Visibility.Visible) {
2064
+ getSheet(e, n = R.Visibility.Visible) {
2064
2065
  if (e === void 0) return this.getSelectedSheet();
2065
2066
  if (!e) throw Error(s("error.workbook.sheetNameNotProvided"));
2066
2067
  let r = this._getSheetRef(e, n);
2067
2068
  if (!r) throw new t(s("error.workbook.sheetNameNotFound", { sheetName: e }));
2068
2069
  return r.sheet;
2069
2070
  }
2070
- getSheetAt(e, n = w.Visibility.Visible) {
2071
+ getSheetAt(e, n = R.Visibility.Visible) {
2071
2072
  let r = this._getSheetRef(e, n);
2072
2073
  if (!r) throw new t(function(e) {
2073
2074
  return s("error.workbook.sheetIndexNotFound", { index: e });
@@ -2080,18 +2081,18 @@ var Wt, $ = class e extends ke {
2080
2081
  addSheet(e) {
2081
2082
  return this.getSheets().add(e);
2082
2083
  }
2083
- _getSheets(e = w.Visibility.Visible) {
2084
+ _getSheets(e = R.Visibility.Visible) {
2084
2085
  let t = this._getSheetRefs(e), n = [], r = t.length;
2085
2086
  for (let e = 0; e < r; e++) n.push(t[e].sheet);
2086
2087
  return n;
2087
2088
  }
2088
- _getSheetRefs(t = w.Visibility.Visible) {
2089
+ _getSheetRefs(t = R.Visibility.Visible) {
2089
2090
  let n = this._getState();
2090
- return n ? t === w.Visibility.Visible ? n.sheetRefsVisible : t === w.Visibility.Hidden ? n.sheetRefsVisibleAndHidden : t === w.Visibility.VeryHidden ? n.sheetRefsAll : e.EmptyArray : [];
2091
+ return n ? t === R.Visibility.Visible ? n.sheetRefsVisible : t === R.Visibility.Hidden ? n.sheetRefsVisibleAndHidden : t === R.Visibility.VeryHidden ? n.sheetRefsAll : e.EmptyArray : [];
2091
2092
  }
2092
- _getSheetRef(e, t = w.Visibility.Visible) {
2093
+ _getSheetRef(e, t = R.Visibility.Visible) {
2093
2094
  let n = null;
2094
- return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof O ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2095
+ return typeof e == "number" ? this._getSheetRefs(t)[e] : (typeof e == "string" ? n = this._getState().refsByLowerCaseName.get(e.toLowerCase()) : e instanceof D ? n = this._getState().refsByInstance.get(e) : e?.id !== void 0 && (n = this._getState().refsById.get(e.id)), n);
2095
2096
  }
2096
2097
  _validateNewSheetName(e, t = !0) {
2097
2098
  if (e == null) return e;
@@ -2105,7 +2106,7 @@ var Wt, $ = class e extends ke {
2105
2106
  try {
2106
2107
  if (t(e)) return e;
2107
2108
  } catch {}
2108
- let n, r, i = Bt.exec(e);
2109
+ let n, r, i = Vt.exec(e);
2109
2110
  for (i === null ? (n = e + " ", r = 1) : (n = e.substring(0, i.index), r = parseFloat(i[1])); r < 256;) {
2110
2111
  r++;
2111
2112
  let e = "(" + r + ")", i = n.substring(0, 31 - e.length) + e;
@@ -2120,7 +2121,7 @@ var Wt, $ = class e extends ke {
2120
2121
  }
2121
2122
  }
2122
2123
  isValidSheetNameCharacter(e) {
2123
- return !Q.test(e);
2124
+ return !Z.test(e);
2124
2125
  }
2125
2126
  _addSheetOptions(e) {
2126
2127
  if (this._closed) throw Error(s("error.workbook.modelClosed"));
@@ -2173,7 +2174,7 @@ var Wt, $ = class e extends ke {
2173
2174
  }
2174
2175
  _addSheet(e, t = null, n = null) {
2175
2176
  t = this._nextSheetName(t);
2176
- let r = this._getState(), i = this._createSheet(r.lastId, t, w.Visibility.Visible, n, null);
2177
+ let r = this._getState(), i = this._createSheet(r.lastId, t, R.Visibility.Visible, n, null);
2177
2178
  if (!i) throw new f(s("error.workbook.sheetNameBlank"));
2178
2179
  return e && this._emitter.notify("onSheetsChange"), i;
2179
2180
  }
@@ -2181,7 +2182,7 @@ var Wt, $ = class e extends ke {
2181
2182
  if (this._closed) throw Error(s("error.workbook.modelClosed"));
2182
2183
  if (!this._initializing && !this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2183
2184
  let t = e, n = [], r = [], i = t.length;
2184
- for (let e = 0; e < i; e++) t[e].visibility === w.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === w.Visibility.Hidden && r.push(t[e]);
2185
+ for (let e = 0; e < i; e++) t[e].visibility === R.Visibility.Visible ? (n.push(t[e]), r.push(t[e])) : t[e].visibility === R.Visibility.Hidden && r.push(t[e]);
2185
2186
  this._updateState({
2186
2187
  sheetRefsAll: t,
2187
2188
  sheetRefsVisible: n,
@@ -2212,7 +2213,7 @@ var Wt, $ = class e extends ke {
2212
2213
  m._validateDeleteSheet(e);
2213
2214
  },
2214
2215
  onDelete(e) {
2215
- let t = m._getSheetRef(e, w.Visibility.VeryHidden);
2216
+ let t = m._getSheetRef(e, R.Visibility.VeryHidden);
2216
2217
  if (!t) return;
2217
2218
  let n = m._beginCommit({ description: s("op.deleteSheet", { name: t.name }) });
2218
2219
  try {
@@ -2278,7 +2279,7 @@ var Wt, $ = class e extends ke {
2278
2279
  let n = this._view.getActiveSheetId();
2279
2280
  n ??= (this._view.setActiveSheetId(t), t);
2280
2281
  let r = e.refsById.get(n);
2281
- r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === w.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2282
+ r || (this._view.setActiveSheetId(t), r = e.refsById.get(t), n = t), r.visibility === R.Visibility.Visible && (this._activeSheetOffset = this._getOffsetForId(n, e.sheetRefsVisible));
2282
2283
  }
2283
2284
  _validateDeleteSheet(e) {
2284
2285
  if (this._closed) throw Error(s("error.workbook.modelClosed"));
@@ -2323,7 +2324,7 @@ var Wt, $ = class e extends ke {
2323
2324
  }
2324
2325
  if (!p && c && a === i && (f.done || !u || !f.done && m(f.value.getCoords(), u) >= 0) && (p = !0), p) {
2325
2326
  let e = f;
2326
- return f = he, e;
2327
+ return f = Ve, e;
2327
2328
  }
2328
2329
  let s = f;
2329
2330
  return f = d.next(), s;
@@ -2335,7 +2336,7 @@ var Wt, $ = class e extends ke {
2335
2336
  } };
2336
2337
  }
2337
2338
  replace(e, t, n) {
2338
- let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, c = !n?.maxCount, l = "", u = typeof t == "string" ? xe(t) : null, d = n?.description ?? m("op.replace"), f = this._transactions.beginCommit({ description: d });
2339
+ let r = 0, i = null, a = typeof t == "function", o = n?.maxCount ?? 2 ** 53 - 1, c = !n?.maxCount, l = "", u = typeof t == "string" ? Re(t) : null, d = n?.description ?? m("op.replace"), f = this._transactions.beginCommit({ description: d });
2339
2340
  try {
2340
2341
  let d = null, p = null, h = e.next();
2341
2342
  for (; !h.done && r < o;) {
@@ -2385,7 +2386,7 @@ var Wt, $ = class e extends ke {
2385
2386
  if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2386
2387
  let t = this._getSheetRefs(), n = this.getSelectedSheetIndex(), r = null;
2387
2388
  if (e) {
2388
- if (r = this._getSheetRef(e), !r) throw new f(Z(r));
2389
+ if (r = this._getSheetRef(e), !r) throw new f(X(r));
2389
2390
  } else r = t[n];
2390
2391
  if (!r) return null;
2391
2392
  let i = r.sheet, a = this._strings.beginPersist(), o = this.getResources().beginPersist(), c = this.getStyles().beginPersist(), l = null, u = this.beginCommit(s("op.duplicateNamed", { name: i.getName() }));
@@ -2400,20 +2401,20 @@ var Wt, $ = class e extends ke {
2400
2401
  return l;
2401
2402
  }
2402
2403
  _createRange(e, t) {
2403
- let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, w.Visibility.VeryHidden) : null;
2404
+ let n = e ? { ...e } : null, r = n ? this._getSheetRef(n.scope, R.Visibility.VeryHidden) : null;
2404
2405
  if (!r) {
2405
2406
  let e = this.getSelectedSheet();
2406
- return e ? (delete n?.scope, Ht(n, n ? {
2407
- scope: Me,
2407
+ return e ? (delete n?.scope, Q(n, n ? {
2408
+ scope: Pe,
2408
2409
  ...e.getEntireRange().getCoords()
2409
2410
  } : null)) : void console.warn(s("error.workbook.noVisibleRefs"));
2410
2411
  }
2411
2412
  let i = r.sheet, a = null;
2412
- return t && (a = { getOptions: t }), new Gt(e, T(i), this, a);
2413
+ return t && (a = { getOptions: t }), new Gt(e, I(i), this, a);
2413
2414
  }
2414
2415
  _createRanges(e, t) {
2415
2416
  let n = this.getSelectedSheet(), r = null;
2416
- return t && (r = { getOptions: t }), new $(e, T(n), this, r);
2417
+ return t && (r = { getOptions: t }), new $(e, I(n), this, r);
2417
2418
  }
2418
2419
  getRange(e, n) {
2419
2420
  if (e === void 0) return this.getSelectedRange(n);
@@ -2422,7 +2423,7 @@ var Wt, $ = class e extends ke {
2422
2423
  if (t.length !== 1) throw new f(s("error.address.singleRangeOnlyAlt"));
2423
2424
  return this._createRange(t[0], n);
2424
2425
  } catch (n) {
2425
- throw n instanceof t ? new t(n.message) : new f(n.message ?? fe(e));
2426
+ throw n instanceof t ? new t(n.message) : new f(n.message ?? Ce(e));
2426
2427
  }
2427
2428
  }
2428
2429
  getCell(e) {
@@ -2433,25 +2434,25 @@ var Wt, $ = class e extends ke {
2433
2434
  }
2434
2435
  getRanges(e, t) {
2435
2436
  let n = this._rangesAddressToCoords(e);
2436
- if (n.length === 0) throw new f(fe(e));
2437
+ if (n.length === 0) throw new f(Ce(e));
2437
2438
  return this._createRanges(n, t);
2438
2439
  }
2439
2440
  _createGraphRanges(e, t) {
2440
2441
  let n = [];
2441
2442
  for (let e = 0; e < t.length; e++) {
2442
- let r = t[e], i = (r.sheetName ? this._getSheetRef(r.sheetName, w.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2443
- i && n.push(new ne(r, T(i), null));
2443
+ let r = t[e], i = (r.sheetName ? this._getSheetRef(r.sheetName, R.Visibility.VeryHidden) : null)?.sheet ?? this.getSelectedSheet();
2444
+ i && n.push(new pe(r, I(i), null));
2444
2445
  }
2445
2446
  for (let t = 0; t < e.length; t++) n.push(e[t]);
2446
- return n.length === 0 ? null : new $(n, T(this.getSelectedSheet()), this, null);
2447
+ return n.length === 0 ? null : new $(n, I(this.getSelectedSheet()), this, null);
2447
2448
  }
2448
2449
  getStats(e) {
2449
2450
  if (this._closed) throw Error(s("error.workbook.modelClosed"));
2450
- let t = this._getSheets(w.Visibility.VeryHidden), n = t.length;
2451
+ let t = this._getSheets(R.Visibility.VeryHidden), n = t.length;
2451
2452
  if (n === 1) return t[0].getStats(e);
2452
2453
  let r = Array(n);
2453
2454
  for (let i = 0; i < n; i++) r[i] = t[i].getStats(e);
2454
- return new wt(r);
2455
+ return new Tt(r);
2455
2456
  }
2456
2457
  _activeRangeCoords() {
2457
2458
  let e = this.getSelectedSheet(), t = e.getSelection().getRanges().getCoords(), n = e.getName(), r = t.length, i = Array(r);
@@ -2476,7 +2477,7 @@ var Wt, $ = class e extends ke {
2476
2477
  getSelectedCell() {
2477
2478
  return this.getSelectedSheet().getSelectedCell();
2478
2479
  }
2479
- _rangesAddressToCoords(e, t = !0, n = w.Visibility.Hidden) {
2480
+ _rangesAddressToCoords(e, t = !0, n = R.Visibility.Hidden) {
2480
2481
  if (!e) throw new f(s("error.address.noAddress"));
2481
2482
  let r = this.getSelectedSheet(), i = { ...r?.getEntireRange().getCoords() }, a = r?.getName();
2482
2483
  if (a && (i.scope = a), typeof e == "string") {
@@ -2486,7 +2487,7 @@ var Wt, $ = class e extends ke {
2486
2487
  t === "r" ? r.rowStart = r.rowEnd = n.rowIndex : r.colStart = r.colEnd = n.colIndex, e = r;
2487
2488
  }
2488
2489
  }
2489
- let o = this, c = Ue(e, i, ue, (e) => {
2490
+ let o = this, c = de(e, i, le, (e) => {
2490
2491
  if (!t) return null;
2491
2492
  if (typeof e == "string") {
2492
2493
  let t = o.getNames().getByName(e)?.getRanges?.();
@@ -2497,7 +2498,7 @@ var Wt, $ = class e extends ke {
2497
2498
  for (let e = 0; e < l; e++) this._validateCoords(c[e], n);
2498
2499
  return c;
2499
2500
  }
2500
- _validateCoords(e, n = w.Visibility.Visible, r = s("error.sheet.oobRange")) {
2501
+ _validateCoords(e, n = R.Visibility.Visible, r = s("error.sheet.oobRange")) {
2501
2502
  if (e === null) return;
2502
2503
  let i = this.getSheet(e.scope, n).getEntireRange().getCoords();
2503
2504
  if (!l.isRangeWithinRange(e, i)) throw new t(r);
@@ -2524,7 +2525,7 @@ var Wt, $ = class e extends ke {
2524
2525
  if (this._closed) throw Error(s("error.workbook.modelClosed"));
2525
2526
  if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2526
2527
  let r = this._getSheetRef(e);
2527
- if (!r) throw new f(Z(e));
2528
+ if (!r) throw new f(X(e));
2528
2529
  if (t === r.name) return r.sheet;
2529
2530
  if ((t = this._validateNewSheetName(t)) == null) throw new f(s("error.workbook.sheetNameNotProvided"));
2530
2531
  let i = Object.freeze({
@@ -2541,23 +2542,23 @@ var Wt, $ = class e extends ke {
2541
2542
  }
2542
2543
  return a;
2543
2544
  }
2544
- _setSheetVisibility(e, t = w.Visibility.Visible, n) {
2545
+ _setSheetVisibility(e, t = R.Visibility.Visible, n) {
2545
2546
  if (this._closed) throw Error(s("error.workbook.modelClosed"));
2546
2547
  if (!this.getProtection().isStructureAllowed()) throw new f(s("error.workbook.protection"));
2547
- let r = this._getSheetRef(e, w.Visibility.VeryHidden);
2548
+ let r = this._getSheetRef(e, R.Visibility.VeryHidden);
2548
2549
  if (!r) return null;
2549
2550
  if (t === r.visibility) return;
2550
2551
  let i = null, a = "";
2551
- t === w.Visibility.Visible ? a = m("op.unhideSheet") : t === w.Visibility.Hidden ? a = m("op.hideSheet") : t === w.Visibility.VeryHidden && (a = m("op.veryHideSheet"));
2552
+ t === R.Visibility.Visible ? a = m("op.unhideSheet") : t === R.Visibility.Hidden ? a = m("op.hideSheet") : t === R.Visibility.VeryHidden && (a = m("op.veryHideSheet"));
2552
2553
  let o = this.beginCommit(a);
2553
2554
  try {
2554
2555
  let e = this._getState().sheetRefsVisible;
2555
- if (t !== w.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new f(s("error.workbook.sheetOne"));
2556
+ if (t !== R.Visibility.Visible && e.length === 1 && e[0].id === r.id) throw new f(s("error.workbook.sheetOne"));
2556
2557
  let a = {
2557
2558
  ...r,
2558
2559
  visibility: t
2559
2560
  }, c = -1;
2560
- t !== w.Visibility.Visible && (c = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, a).sheet, t !== w.Visibility.Visible && this._adjustRemoveSelectionIfRequired(c, r.id), this._adjustSheetNamesIfRequired(), o.commit(n);
2561
+ t !== R.Visibility.Visible && (c = this._getOffsetForId(r.id, e)), i = this._updateSheetRef(r, a).sheet, t !== R.Visibility.Visible && this._adjustRemoveSelectionIfRequired(c, r.id), this._adjustSheetNamesIfRequired(), o.commit(n);
2561
2562
  } catch (e) {
2562
2563
  throw o.rollback(), e;
2563
2564
  }
@@ -2596,9 +2597,9 @@ var Wt, $ = class e extends ke {
2596
2597
  _setSelectedSheet(e) {
2597
2598
  if (this._closed) throw Error(s("error.workbook.modelClosed"));
2598
2599
  let t = this._getSheetRef(e);
2599
- if (!t) throw new f(Z(e));
2600
+ if (!t) throw new f(X(e));
2600
2601
  let n = null;
2601
- return t.visibility !== w.Visibility.Visible && this._setSheetVisibility(t, w.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
2602
+ return t.visibility !== R.Visibility.Visible && this._setSheetVisibility(t, R.Visibility.Visible), this._view.setActiveSheetId(t.id), n = t.sheet, n;
2602
2603
  }
2603
2604
  getProtection() {
2604
2605
  return this._protection;
@@ -2674,12 +2675,12 @@ var Wt, $ = class e extends ke {
2674
2675
  o !== null && (o = Math.min(Math.max(0, o), a - 1));
2675
2676
  let s = null, c = null, l = -1;
2676
2677
  for (let e = 0; e < a; e++) {
2677
- let t = i[e], n = t.visibility || w.Visibility.Visible, r = e;
2678
- c = r, n === w.Visibility.Visible ? (l++, s === null && (s = r)) : o !== null && o === r && (o = null), this._createSheet(r, t.name, n, l, t.sheet);
2678
+ let t = i[e], n = t.visibility || R.Visibility.Visible, r = e;
2679
+ c = r, n === R.Visibility.Visible ? (l++, s === null && (s = r)) : o !== null && o === r && (o = null), this._createSheet(r, t.name, n, l, t.sheet);
2679
2680
  }
2680
- this._updateState({ lastId: c }), e.view.activeSheetId = o ?? s, this.setView(new Pt({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
2681
+ this._updateState({ lastId: c }), e.view.activeSheetId = o ?? s, this.setView(new Ft({ json: e.view })), this._adjustSheetNamesIfRequired(), this._listenerProtection?.();
2681
2682
  let u = this;
2682
- this._protection = new It(e?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2683
+ this._protection = new Lt(e?.protection, this._options?.readonly), this._listenerProtection = this._protection.addListeners({ onChange: (e) => {
2683
2684
  u._emitter.notify("onProtectionChange", { source: e });
2684
2685
  } }), e.scripts && (this._scripts = this._createScripts(e.scripts)), this._emitter.notify("onLoad");
2685
2686
  } finally {
@@ -2688,14 +2689,14 @@ var Wt, $ = class e extends ke {
2688
2689
  }
2689
2690
  _createScripts(e) {
2690
2691
  let t = this;
2691
- return new At({
2692
+ return new jt({
2692
2693
  transactions: this._transactions,
2693
2694
  json: e,
2694
2695
  workbook: t,
2695
2696
  getBuiltInFunctions: () => t._calculation?.getFunctions(),
2696
2697
  onAdd: (e, n) => {
2697
2698
  let r = t._calculation;
2698
- r.getStatus() !== b.Status.Off && r.start().then(async () => {
2699
+ r.getStatus() !== ie.Status.Off && r.start().then(async () => {
2699
2700
  let e = n.getFunctions().getItems({ type: "formula" }), t = e.length;
2700
2701
  for (let n = 0; n < t; n++) {
2701
2702
  let t = e[n];
@@ -2731,7 +2732,7 @@ var Wt, $ = class e extends ke {
2731
2732
  name: r.name,
2732
2733
  sheet: a
2733
2734
  };
2734
- r.visibility === w.Visibility.Visible ? l === null && (l = i) : o.visibility = r.visibility, r.id === s && (c = i), t.sheets.push(o);
2735
+ r.visibility === R.Visibility.Visible ? l === null && (l = i) : o.visibility = r.visibility, r.id === s && (c = i), t.sheets.push(o);
2735
2736
  }
2736
2737
  if (!n) {
2737
2738
  let e = o.toJSON();
@@ -2739,17 +2740,19 @@ var Wt, $ = class e extends ke {
2739
2740
  }
2740
2741
  let m = this.getProtection().toJSON();
2741
2742
  m && (t.protection = m);
2742
- let h = await i.toJSONAsync();
2743
- h && h.length > 0 && (t.strings = h);
2744
- let g = this._externalBooks.toJSON();
2745
- if (g && (t.externalBooks = g), !r) {
2743
+ let h = this._calculation.toJSON();
2744
+ Object.keys(h).length > 0 && (t.calc = h);
2745
+ let g = await i.toJSONAsync();
2746
+ g && g.length > 0 && (t.strings = g);
2747
+ let _ = this._externalBooks.toJSON();
2748
+ if (_ && (t.externalBooks = _), !r) {
2746
2749
  let e = await a.toJSONAsync();
2747
2750
  e && e.length > 0 && (t.resources = e);
2748
2751
  }
2749
- let _ = this._calculation.getNamedFormulas().toJSON();
2750
- _ && _.length > 0 && (t.names = _);
2751
- let v = this._view.toJSON();
2752
- v && (c === l ? delete v.activeSheetId : v.activeSheetId = c, Object.keys(v).length > 0 && (t.view = v));
2752
+ let v = this._calculation.getNamedFormulas().toJSON();
2753
+ v && v.length > 0 && (t.names = v);
2754
+ let y = this._view.toJSON();
2755
+ y && (c === l ? delete y.activeSheetId : y.activeSheetId = c, Object.keys(y).length > 0 && (t.view = y));
2753
2756
  } finally {
2754
2757
  o.endPersist(), r || a.endPersist(), i.endPersist();
2755
2758
  }
@@ -2894,7 +2897,7 @@ var Wt, $ = class e extends ke {
2894
2897
  }
2895
2898
  }, Yt = (e) => !!e && typeof e == "object" && typeof e.getPath == "function" && typeof e.canWrite == "function", Xt = new class {
2896
2899
  constructor() {
2897
- this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new F(this), this._registry = new Jt(), this._defaultStore = new Ze(() => this.getWriteFormats(), () => this.getReadFormats());
2900
+ this._setInstalled = /* @__PURE__ */ new WeakSet(), this._backingStore = null, this._emitter = new A(this), this._registry = new Jt(), this._defaultStore = new Ye(() => this.getWriteFormats(), () => this.getReadFormats());
2898
2901
  }
2899
2902
  getBackingStore() {
2900
2903
  return this._backingStore ?? this._defaultStore;
@@ -2929,7 +2932,7 @@ var Wt, $ = class e extends ke {
2929
2932
  return this._registry.getWriteFormats(e);
2930
2933
  }
2931
2934
  getOrigin(e) {
2932
- return new L(e);
2935
+ return new z(e);
2933
2936
  }
2934
2937
  async read(e) {
2935
2938
  let t = null;
@@ -2953,56 +2956,56 @@ var Wt, $ = class e extends ke {
2953
2956
  search: i,
2954
2957
  ext: a
2955
2958
  }))[0];
2956
- if (!o) throw Error(`No read format available for '${i ?? a}' input.`);
2957
- let s = n?.typedCreateWorkbookOptions, c = s ? Object.keys(s).find((e) => e.toLowerCase() === o.key.toLowerCase()) : void 0, l = {
2959
+ if (!o) throw new f(s("error.io.readFormatUnavailable", { format: i ?? a }));
2960
+ let c = n?.typedCreateWorkbookOptions, l = c ? Object.keys(c).find((e) => e.toLowerCase() === o.key.toLowerCase()) : void 0, u = {
2958
2961
  ...n,
2959
- ...c === void 0 ? void 0 : s[c]
2962
+ ...l === void 0 ? void 0 : c[l]
2960
2963
  };
2961
- delete l.typedCreateWorkbookOptions, delete l.source;
2962
- let u = r ?? new L(t.absolutePath ?? null, {
2964
+ delete u.typedCreateWorkbookOptions, delete u.source;
2965
+ let d = r ?? new z(t.absolutePath ?? null, {
2963
2966
  name: t.name ?? null,
2964
2967
  format: o.key,
2965
2968
  size: t.size ?? null,
2966
2969
  canWrite: t.canWrite ?? !1
2967
2970
  });
2968
- r instanceof L && r.update({
2971
+ r instanceof z && r.update({
2969
2972
  format: o.key,
2970
2973
  size: t.size ?? null
2971
- }), l.createWorkbookOptions = {
2972
- ...l.createWorkbookOptions || {},
2973
- origin: u
2974
- }, l.readonly !== void 0 && (l.createWorkbookOptions = {
2975
- readonly: l.readonly,
2976
- ...l.createWorkbookOptions
2977
- }, delete l.readonly), l.calcOnly && (l.createWorkbookOptions = {
2974
+ }), u.createWorkbookOptions = {
2975
+ ...u.createWorkbookOptions || {},
2976
+ origin: d
2977
+ }, u.readonly !== void 0 && (u.createWorkbookOptions = {
2978
+ readonly: u.readonly,
2979
+ ...u.createWorkbookOptions
2980
+ }, delete u.readonly), u.calcOnly && (u.createWorkbookOptions = {
2978
2981
  disableLoadAutoFit: !0,
2979
- ...l.createWorkbookOptions
2982
+ ...u.createWorkbookOptions
2980
2983
  });
2981
- let d = await this._decrypt(e, u, l);
2982
- if (d === null) return null;
2983
- e = d.bytes;
2984
- let f = l?.progress?.onStart?.bind(l.progress);
2985
- f && await Promise.resolve(f(u, t.size));
2984
+ let p = await this._decrypt(e, d, u);
2985
+ if (p === null) return null;
2986
+ e = p.bytes;
2987
+ let m = u?.progress?.onStart?.bind(u.progress);
2988
+ m && await Promise.resolve(m(d, t.size));
2986
2989
  try {
2987
- let t = await this._readArrayBuffer(e, o, l);
2988
- return d.password !== null && u.setPassword(d.password), l?.progress?.onComplete?.(u), this._emitter.notify("onRead", {
2990
+ let t = await this._readArrayBuffer(e, o, u);
2991
+ return p.password !== null && d.setPassword(p.password), u?.progress?.onComplete?.(d), this._emitter.notify("onRead", {
2989
2992
  params: {
2990
2993
  workbook: t,
2991
- origin: u
2994
+ origin: d
2992
2995
  },
2993
2996
  transactional: !1
2994
2997
  }), t;
2995
2998
  } catch (e) {
2996
- throw l?.progress?.onError?.(e), l?.progress?.onComplete?.(null), e;
2999
+ throw u?.progress?.onError?.(e), u?.progress?.onComplete?.(null), e;
2997
3000
  }
2998
3001
  }
2999
3002
  async _decrypt(e, t, n) {
3000
3003
  let r = await this._registry.detectEncryption(e);
3001
- if (t instanceof L && t.update({ encryption: r ? r.key : null }), !r) return {
3004
+ if (t instanceof z && t.update({ encryption: r ? r.key : null }), !r) return {
3002
3005
  bytes: e,
3003
3006
  password: null
3004
3007
  };
3005
- let o = null, s = async (t) => {
3008
+ let o = null, c = async (t) => {
3006
3009
  try {
3007
3010
  return o = await r.decode(e, t), !0;
3008
3011
  } catch (e) {
@@ -3010,27 +3013,30 @@ var Wt, $ = class e extends ke {
3010
3013
  return !1;
3011
3014
  }
3012
3015
  };
3013
- if (n?.password && await s(n.password)) return {
3016
+ if (n?.password && await c(n.password)) return {
3014
3017
  bytes: o,
3015
3018
  password: n.password
3016
3019
  };
3017
- if (!n?.onPassword) throw new a(`'${t.getName() ?? "This file"}' is encrypted. Supply options.password or options.onPassword to open it.`);
3018
- let c = await Promise.resolve(n.onPassword({
3020
+ if (!n?.onPassword) {
3021
+ let e = t.getName();
3022
+ throw new a(e ? s("error.io.passwordRequired", { name: e }) : s("error.io.passwordRequiredUnnamed"));
3023
+ }
3024
+ let l = await Promise.resolve(n.onPassword({
3019
3025
  origin: t,
3020
3026
  encryption: r.key,
3021
- validate: s
3027
+ validate: c
3022
3028
  }));
3023
- if (c == null) return null;
3024
- if (o !== null || await s(c)) return {
3029
+ if (l == null) return null;
3030
+ if (o !== null || await c(l)) return {
3025
3031
  bytes: o,
3026
- password: c
3032
+ password: l
3027
3033
  };
3028
- throw new i();
3034
+ throw new i(s("error.io.passwordIncorrect"));
3029
3035
  }
3030
3036
  async writeArrayBuffer(e, t) {
3031
3037
  if (!t?.format) throw Error("A format must be specified to write to an ArrayBuffer (e.g. { format: 'xlsx' }).");
3032
3038
  let n = (await this._registry.getWriteFormats({ search: t.format }))[0];
3033
- if (!n) throw Error(`No write format available for '${t.format}'.`);
3039
+ if (!n) throw new f(s("error.io.writeFormatUnavailable", { format: t.format }));
3034
3040
  return this._writeArrayBuffer(e, n, t);
3035
3041
  }
3036
3042
  async write(e, t, n) {
@@ -3038,58 +3044,61 @@ var Wt, $ = class e extends ke {
3038
3044
  if (!e.isIWorkbook) throw Error("Invalid workbook model provided. Must be an instance of IWorkbook.");
3039
3045
  let r = n, i = null;
3040
3046
  typeof t == "string" ? i = this.getOrigin(t) : Yt(t) ? i = t : t && (r = t);
3041
- let o, s = !i, c = i ?? e.getOrigin(), l = c.getFormat();
3042
- if ((r?.format || l) && (o = (await this._registry.getWriteFormats({ search: r?.format ?? l ?? void 0 }))[0]), o || c.getPath() && c.canWrite() && c.getExtension() || (o = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !o) throw Error("Unable to determine a write format. Specify options.format, or a destination with a known extension.");
3047
+ let o, c = !i, l = i ?? e.getOrigin(), u = l.getFormat();
3048
+ if ((r?.format || u) && (o = (await this._registry.getWriteFormats({ search: r?.format ?? u ?? void 0 }))[0]), o || l.getPath() && l.canWrite() && l.getExtension() || (o = (await this._registry.getWriteFormats({ ext: "sxl" }))[0] ?? (await this._registry.getWriteFormats())[0]), !o) throw new f(s("error.io.writeFormatUnresolved"));
3043
3049
  if (i && typeof t == "string") {
3044
3050
  let e = i.getPath();
3045
- e && !N(e) && i.update?.({ path: `${e}.${o.exts[0]}` });
3051
+ e && !E(e) && i.update?.({ path: `${e}.${o.exts[0]}` });
3046
3052
  }
3047
- let u = c.getEncryption(), d = e.getOrigin?.(), f = (c instanceof L ? c.getPassword() : null) ?? (d instanceof L ? d.getPassword() : null), p = c.isEncrypted() || (d?.isEncrypted() ?? !1), m = r?.password === void 0 ? f ?? (p ? void 0 : null) : r.password, h = null;
3048
- if (m === void 0) {
3049
- if (p) throw new a(`'${c.getName() ?? "This file"}' is encrypted. Supply options.password to re-encrypt it, or options.password = null to write it without a password.`);
3050
- } else if (m !== null && (h = await this._registry.getEncryption(u), !h)) throw Error("No encryption support is installed, so this workbook cannot be password protected.");
3051
- let g = `${c.getName() ?? "workbook"}.${o.exts[0]}`, _ = r?.progress, v = !1, y = this, b = null, ee = {
3053
+ let d = l.getEncryption(), p = e.getOrigin?.(), m = (l instanceof z ? l.getPassword() : null) ?? (p instanceof z ? p.getPassword() : null), h = l.isEncrypted() || (p?.isEncrypted() ?? !1), g = r?.password === void 0 ? m ?? (h ? void 0 : null) : r.password, _ = null;
3054
+ if (g === void 0) {
3055
+ if (h) {
3056
+ let e = l.getName();
3057
+ throw new a(e ? s("error.io.passwordRequiredSave", { name: e }) : s("error.io.passwordRequiredSaveUnnamed"));
3058
+ }
3059
+ } else if (g !== null && (_ = await this._registry.getEncryption(d), !_)) throw new f(s("error.io.encryptionUnavailable"));
3060
+ let v = `${l.getName() ?? s("workbook.defaultName")}.${o.exts[0]}`, y = r?.progress, b = !1, x = this, S = null, C = {
3052
3061
  workbook: e,
3053
3062
  format: o,
3054
- origin: c,
3055
- suggestedName: g,
3063
+ origin: l,
3064
+ suggestedName: v,
3056
3065
  prompt: r?.prompt,
3057
3066
  async encode(t) {
3058
3067
  await (async () => {
3059
- v || (v = !0, _?.onStart && await Promise.resolve(_.onStart(c)));
3060
- })(), b = e.getTransactions?.()?.getCurrentCommit() ?? b;
3061
- let n = t ? (await y._registry.getWriteFormats({ search: t }))[0] ?? o : o, i = await y._writeArrayBuffer(e, n, r);
3062
- return h ? h.encode(i, m) : i;
3068
+ b || (b = !0, y?.onStart && await Promise.resolve(y.onStart(l)));
3069
+ })(), S = e.getTransactions?.()?.getCurrentCommit() ?? S;
3070
+ let n = t ? (await x._registry.getWriteFormats({ search: t }))[0] ?? o : o, i = await x._writeArrayBuffer(e, n, r);
3071
+ return _ ? _.encode(i, g) : i;
3063
3072
  }
3064
- }, x = null;
3073
+ }, w = null;
3065
3074
  try {
3066
3075
  let t = this.getBackingStore();
3067
3076
  if (!t.write) throw Error("The active backing store is read-only (no write implementation).");
3068
- if (x = await t.write(ee), x) {
3069
- m !== void 0 && x instanceof L && (x.setPassword(m), x.update({ encryption: h ? h.key : null }));
3070
- let t = b ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
3077
+ if (w = await t.write(C), w) {
3078
+ g !== void 0 && w instanceof z && (w.setPassword(g), w.update({ encryption: _ ? _.key : null }));
3079
+ let t = S ?? e.getTransactions?.()?.getCurrentCommit() ?? null;
3071
3080
  this._emitter.notify("onWrite", {
3072
3081
  params: {
3073
3082
  workbook: e,
3074
- origin: x,
3083
+ origin: w,
3075
3084
  commitId: t?.getId() ?? null,
3076
- save: s
3085
+ save: c
3077
3086
  },
3078
3087
  transactional: !1
3079
3088
  });
3080
3089
  }
3081
- _?.onComplete && await Promise.resolve(_.onComplete(x));
3090
+ y?.onComplete && await Promise.resolve(y.onComplete(w));
3082
3091
  } catch (e) {
3083
3092
  let t = e instanceof Error ? e : Error(String(e));
3084
- throw _?.onError && await Promise.resolve(_.onError(t)), _?.onComplete && await Promise.resolve(_.onComplete(null)), Error("Unable to write workbook.", { cause: e });
3093
+ throw y?.onError && await Promise.resolve(y.onError(t)), y?.onComplete && await Promise.resolve(y.onComplete(null)), t instanceof f ? t : Error(s("error.io.writeFailed", { reason: t.message }), { cause: e });
3085
3094
  }
3086
- return x;
3095
+ return w;
3087
3096
  }
3088
3097
  async writeAs(e, t, n) {
3089
3098
  if (!t) throw Error("A target must be provided for writeAs (use write(workbook) for a plain save).");
3090
3099
  let r = e?.getOrigin?.();
3091
- if (!(r instanceof L)) return this.write(e, t, n);
3092
- let i = typeof t == "string" ? t : t.getPath(), a = i && N(i)?.toLowerCase() || null, o = a ? (await this._registry.getWriteFormats({ search: a }))[0]?.key ?? a : null, s = {
3100
+ if (!(r instanceof z)) return this.write(e, t, n);
3101
+ let i = typeof t == "string" ? t : t.getPath(), a = i && E(i)?.toLowerCase() || null, o = a ? (await this._registry.getWriteFormats({ search: a }))[0]?.key ?? a : null, s = {
3093
3102
  path: r.getPath(),
3094
3103
  name: r.getName(),
3095
3104
  format: r.getFormat(),
@@ -3110,7 +3119,7 @@ var Wt, $ = class e extends ke {
3110
3119
  return c;
3111
3120
  }
3112
3121
  _stripExtension(e) {
3113
- let t = N(e);
3122
+ let t = E(e);
3114
3123
  return t ? e.slice(0, e.length - t.length - 1) : e;
3115
3124
  }
3116
3125
  _baseName(e) {
@@ -3119,28 +3128,27 @@ var Wt, $ = class e extends ke {
3119
3128
  return this._stripExtension(n) || null;
3120
3129
  }
3121
3130
  async _writeArrayBuffer(e, t, n) {
3122
- if (!t) throw Error(`Invalid write type for '${t}'.`);
3123
- try {
3124
- let r = t.handler;
3125
- if (!r) throw Error(`Unable to resolve handler for type: ${t.description ?? t}.`);
3126
- return r(e, {
3127
- ...n,
3128
- format: t.key
3129
- });
3130
- } catch (e) {
3131
- throw Error(`Unable to load handler for '${t}.'`, { cause: e });
3132
- }
3131
+ if (!t) throw Error("A write format must be provided.");
3132
+ let r = t.handler;
3133
+ if (!r) throw Error(`Unable to resolve a write handler for '${t.key}'.`);
3134
+ return r(e, {
3135
+ ...n,
3136
+ format: t.key
3137
+ });
3133
3138
  }
3134
3139
  async _readArrayBuffer(e, t, n) {
3135
3140
  if (!e) throw Error("ArrayBuffer must be specified.");
3136
3141
  if (!t) throw Error("format must be specified.");
3137
3142
  if (e.byteLength === 0) return new Kt(n?.createWorkbookOptions);
3138
3143
  let r, i = t.handler;
3139
- if (!i) throw Error(`Unable to resolve handler for format type: ${t?.description ?? t}.`);
3144
+ if (!i) throw Error(`Unable to resolve a read handler for '${t.key}'.`);
3140
3145
  try {
3141
3146
  r = await i(e, n);
3142
3147
  } catch (e) {
3143
- throw Error(`Unable to read ${t.description ?? t.key} — ${e?.message ?? String(e)}`, { cause: e });
3148
+ throw e instanceof f ? e : new f(s("error.io.readFailed", {
3149
+ format: t.description ?? t.key,
3150
+ reason: e?.message ?? String(e)
3151
+ }), { cause: e });
3144
3152
  }
3145
3153
  return r;
3146
3154
  }
@@ -3154,13 +3162,13 @@ var Wt, $ = class e extends ke {
3154
3162
  ].map((e) => ({
3155
3163
  suffix: e,
3156
3164
  place: (e, t) => t ? `${t}/${e}` : e
3157
- })), Lt ||= {}, Rt ||= {};
3165
+ })), Rt ||= {}, zt ||= {};
3158
3166
  var Zt = h({ nowWithPrecision: () => Qt });
3159
3167
  function Qt(e = 6e4) {
3160
3168
  return new Date(Math.floor(Date.now() / e) * e);
3161
3169
  }
3162
3170
  Wt ||= {};
3163
- var $t = class extends Ve {
3171
+ var $t = class extends Oe {
3164
3172
  constructor(e) {
3165
3173
  super(e);
3166
3174
  }
@@ -3177,4 +3185,4 @@ var $t = class extends Ve {
3177
3185
  }, super._initializeOptions(e);
3178
3186
  }
3179
3187
  };
3180
- export { Je as _, yt as a, at as c, ct as d, Nt as f, xt as g, et as h, G as i, Ye as l, Kt as m, W as n, q as o, Mt as p, $t as r, Xt as s, Zt as t, L as u };
3188
+ export { Ke as _, bt as a, ot as c, lt as d, Pt as f, St as g, et as h, G as i, qe as l, Kt as m, W as n, it as o, Nt as p, $t as r, Xt as s, Zt as t, z as u };