@sheetxl/studio-vanilla 0.7.4 → 0.7.6

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 (196) hide show
  1. package/README.md +9 -5
  2. package/browser/cjs/B7wz5PktsGQNKYoq.cjs +6 -0
  3. package/browser/cjs/{dGtOlClU3aLzqX9G.cjs → BCp8EKu-fnWiHBVn.cjs} +1 -1
  4. package/browser/cjs/{B4foheVEUqSBFEkt.cjs → BDDGDj16_JM9JSNw.cjs} +1 -1
  5. package/browser/cjs/{ChIk2dRWK_RpFnZl.cjs → BExG5buAzGxZlmJw.cjs} +4 -4
  6. package/browser/cjs/{C7GKCVS4tFPkLsu7.cjs → BFooBtpsd0cC8qDG.cjs} +1 -1
  7. package/browser/cjs/{A4yAgzK3Yi1hFoyF.cjs → BVMvTKkVRG3ARblV.cjs} +1 -1
  8. package/browser/cjs/{D3tIyPRHWxjXZjiu.cjs → BVjaiAwC49wwDMDI.cjs} +487 -487
  9. package/browser/cjs/{JZZCpLEpsC2LCYHH.cjs → BXZgVqL7XkYsoi33.cjs} +2 -2
  10. package/browser/cjs/{D4llH4xbqGzmuVYe.cjs → BYG2IVD2Gqh-q7h2.cjs} +1 -1
  11. package/browser/cjs/{De082R33Q24Czdd2.cjs → Bdri1EOZVClr_s5d.cjs} +3 -3
  12. package/browser/cjs/{8ORcPDrnyLtyRBC5.cjs → BgE8ast3JVnmh0C3.cjs} +8 -8
  13. package/browser/cjs/BiHqOGcXJWRP3FQy.cjs +32 -0
  14. package/browser/cjs/{DEzEcMfZx0I-QgJj.cjs → Bk3M_kByuRSgE2I7.cjs} +1 -1
  15. package/browser/cjs/{q1y9tq62y47f7mxy.cjs → BkGg_LJgjZj1NXHZ.cjs} +1 -1
  16. package/browser/cjs/BtkQmDedsmbw95Pc.cjs +6 -0
  17. package/browser/cjs/{Xzq847s6zAFUFWcq.cjs → BuBu8hoBcG1L5gWU.cjs} +1 -1
  18. package/browser/cjs/Bv5i7awWQ7wuK-N1.cjs +6 -0
  19. package/browser/cjs/{BeOgEB1ihIJx02Af.cjs → BzgLQhJ2sqEZCsrb.cjs} +1 -1
  20. package/browser/cjs/{B0Z0aRvslQ-luY7V.cjs → C2AUpeG75-dSdAU8.cjs} +2 -2
  21. package/browser/cjs/{DsWfniauN1Pu2Go3.cjs → C4IJ8og_7pYXOaaa.cjs} +1 -1
  22. package/browser/cjs/CA1KKidNd07a0DJH.cjs +11 -0
  23. package/browser/cjs/CEt7dvaTwfePj4ER.cjs +326 -0
  24. package/browser/cjs/{DAJLF0E4eUH-LX9t.cjs → CR_3znwknfRYUQjJ.cjs} +2 -2
  25. package/browser/cjs/{B13vFaAy_2-LVET-.cjs → CSyKzMKdjLhLe40I.cjs} +1 -1
  26. package/browser/cjs/{BgSDdeTv_xCIgBGD.cjs → CUpgKTIV0yg_QYHZ.cjs} +3 -3
  27. package/browser/cjs/{CAiDHxx6Gd0WmW60.cjs → CXoepqRJNlPbIb0L.cjs} +2 -2
  28. package/browser/cjs/{B47DWuTo-MqQ3jZz.cjs → CbvWAZQhSUzqCg17.cjs} +1 -1
  29. package/browser/cjs/{B3C8eQFrLaL-fvH-.cjs → CcpKk964zuH4DpgM.cjs} +23 -23
  30. package/browser/cjs/{B2LQcZ92fWIJv2Gz.cjs → CkA2FSMaiJvL4xnW.cjs} +1 -1
  31. package/browser/cjs/Ck_CXORzAURg_vBX.cjs +6 -0
  32. package/browser/cjs/{DHdO6HcI4UB6Ks3h.cjs → Cr07exWoIE8PUEEj.cjs} +2 -2
  33. package/browser/cjs/{D6RF346wXtLKkoJ-.cjs → CvfHD9dwIrbEr7hM.cjs} +2 -2
  34. package/browser/cjs/{BNPrWaUmde-C-8Vx.cjs → CwW8vJh2IPnMize_.cjs} +1 -1
  35. package/browser/cjs/{Bzqv14cPgkvKImRH.cjs → D10iC-iUoXqxQ9CM.cjs} +1 -1
  36. package/browser/cjs/{ipGL9YCfyze4LbQj.cjs → D3LgtUzW8PLgmpsZ.cjs} +1 -1
  37. package/browser/cjs/{8gwQqoquag37n7A4.cjs → DNQbFZZOmDP_rJEI.cjs} +1 -1
  38. package/browser/cjs/{DVATnEUJxTQMsLOO.cjs → DQmdNFzWR-h9wYSi.cjs} +1 -1
  39. package/browser/cjs/{ByA09xUI5G9YbxMz.cjs → DSJLyqI4SU0MEH4t.cjs} +1 -1
  40. package/browser/cjs/{C23bIG7E2r_Q0RAj.cjs → DT7rBrGhpA-qvk1s.cjs} +2 -2
  41. package/browser/cjs/{D0ApB39VH979ZUCx.cjs → DVN-SKDgVS0saY0w.cjs} +1 -1
  42. package/browser/cjs/{DFAQXO44wRvSlwCZ.cjs → DbMWszNm4m-5OHJM.cjs} +1 -1
  43. package/browser/cjs/{9YNUOzk1ChRHaQ0A.cjs → DlekR-mM3nwaCQEe.cjs} +1 -1
  44. package/browser/cjs/{DQrZ7_9M-BH9Zqhw.cjs → DpTEicgZ3kB8YiOW.cjs} +2 -2
  45. package/browser/cjs/{CwsdwMi5Xs8b4Yhg.cjs → DxV-3v_QDuTNlIGN.cjs} +1 -1
  46. package/browser/cjs/{pI4yZSOoBjkftfKX.cjs → DxeyIaJ9kTqsgZRQ.cjs} +1 -1
  47. package/browser/cjs/DzZiFk2M690x2Na1.cjs +6 -0
  48. package/browser/cjs/{DnirKDgaxys3R_a-.cjs → DzhZxaJEM_tDkpp3.cjs} +1 -1
  49. package/browser/cjs/{KuiK9SKQWvWBM3--.cjs → FNnpnCx0BZnP5O_r.cjs} +1 -1
  50. package/browser/cjs/{BlswEA5cHtxUqfLX.cjs → IvtzDl_wnrZdNyGU.cjs} +2 -2
  51. package/browser/cjs/{BprNr_E9PJXMBdn3.cjs → KsrjGYui6AhDRqb2.cjs} +1 -1
  52. package/browser/cjs/{BrKvmHqdJp6qNOFB.cjs → L04N6OHKBL9HtaR6.cjs} +1 -1
  53. package/browser/cjs/{oGzYb3Ra2l_2M4Fe.cjs → LBIRCj-htZFg3vYw.cjs} +2 -2
  54. package/browser/cjs/{D6Gix9vU3zy6x0wx.cjs → h58md3Y3c_TrQFVs.cjs} +1 -1
  55. package/browser/cjs/index.cjs +2 -2
  56. package/browser/cjs/{v9zKXidk5AvKGkz7.cjs → n8FQtLqAFmSMvjE4.cjs} +1 -1
  57. package/browser/cjs/{CWOIza8vwfNX5KIr.cjs → ogfsvA_pd4h9pATi.cjs} +1 -1
  58. package/browser/cjs/{D6pv0GOQycMcOyhu.cjs → tRdYhB45JaC-A2GK.cjs} +1 -1
  59. package/browser/cjs/{CBNecyEra54crLep.cjs → vboT_zkA4ebu7qb6.cjs} +2 -2
  60. package/browser/cjs/{D80cB8tOFfQNF4oS.cjs → xadQkBVply50Pfsy.cjs} +2 -2
  61. package/{cdn/assets/Bgcy7JI6AzSoovcw.js → browser/esm/1oqbqwBb8fBG-SRu.mjs} +1 -1
  62. package/{cdn/assets/BkjhtLKdZkaleH6j.js → browser/esm/2Q2-3kHAmqNdLDwx.mjs} +1 -1
  63. package/browser/esm/{CKOpVcqPaB2s4dTb.mjs → 95UgFJTU5KLLCYf1.mjs} +1 -1
  64. package/{cdn/assets/DhT-2pf586yDvyqZ.js → browser/esm/B-ODKhdttBS8vm_N.mjs} +1 -1
  65. package/browser/esm/B234kPv37vM5M_fj.mjs +147 -0
  66. package/browser/esm/{m7fz1VY0WrHhVE1u.mjs → B2xZE9bUnQFNq8II.mjs} +1 -1
  67. package/browser/esm/{ee5ZMqTpvvsprimB.mjs → B2zSi60WxtMoZe1R.mjs} +6 -6
  68. package/browser/esm/{CUq15BKQ0G25o03H.mjs → B6jSw9o_80cFla40.mjs} +16 -16
  69. package/browser/esm/{CrqJMWWEjzFZ-_Pk.mjs → BACzy7WLUtqbx_4H.mjs} +1 -1
  70. package/browser/esm/{BTM0pYbZvfLqBj6Z.mjs → BBklcrb4gMwawbW0.mjs} +2 -2
  71. package/browser/esm/{NohZsi_dnB1kc2oI.mjs → BNtLK4CbKRlPzlKT.mjs} +1 -1
  72. package/{cdn/assets/BfH0870g7ogWyWTa.js → browser/esm/BQEH9vzW6MLoEQpS.mjs} +1 -1
  73. package/{cdn/assets/JgQgURqWEwvTv_wi.js → browser/esm/B_8aGF2Dt1micWZg.mjs} +1 -1
  74. package/browser/esm/{CHOlVNulci003tpR.mjs → B_x9S07WXHgD87c0.mjs} +4 -4
  75. package/browser/esm/{J_m4I2bQAeYSJPWS.mjs → Bab--HPvvqz_dgfE.mjs} +1 -1
  76. package/browser/esm/{Ce3pCanMx2TnvT0I.mjs → BdviOCLagnd001u0.mjs} +7 -7
  77. package/browser/esm/{DRVrzDz7nVU_faHO.mjs → BgY1Ko1OPI79IwRW.mjs} +490 -490
  78. package/browser/esm/{CR9jsRCQsHJO01J4.mjs → BkUCD0Hn_pXVY8BG.mjs} +19 -19
  79. package/{cdn/assets/DYqsn4bTq8tt9z2d.js → browser/esm/BoXZxgubGIYbaajd.mjs} +1 -1
  80. package/{cdn/assets/C4aAJQZlcVwK7Bv7.js → browser/esm/BpD67geWfh3vSqJb.mjs} +1 -1
  81. package/browser/esm/{BsryTthQuZrS1w0h.mjs → BrFqlosk1B5lJ1wT.mjs} +3 -3
  82. package/{cdn/assets/ji2x5yzvwhn2JiFp.js → browser/esm/C7IRTn7ZcC4A4N9E.mjs} +1 -1
  83. package/browser/esm/{P5B5SOdOUaZr99nj.mjs → CE_I19FK1G8gpXuH.mjs} +6 -6
  84. package/browser/esm/{uYFnTWRHS-M71aW3.mjs → CGT3S9MzdRk9rFZa.mjs} +48 -48
  85. package/browser/esm/{B7wG8K-M9ldv3InT.mjs → CIyDrXxc2D-28-mW.mjs} +1 -1
  86. package/{cdn/assets/YFMiozbFWZjo74Td.js → browser/esm/CNtcjn_Cn7cQOWP5.mjs} +1 -1
  87. package/{cdn/assets/_N4vH5kWapbfarDc.js → browser/esm/CQ7RZs6ggMhy9TKv.mjs} +1 -1
  88. package/{cdn/assets/Cb1GBW9E5GfRvhuS.js → browser/esm/CXwDT0Rc1CeP5C6C.mjs} +1 -1
  89. package/browser/esm/{Bioh6T6jynIt2aBf.mjs → Cck1ZCX3140-xMNV.mjs} +6 -6
  90. package/browser/esm/{C3ZYwFCm4zV0PV7L.mjs → CdWkJs6rYnFmetuJ.mjs} +1 -1
  91. package/browser/esm/{BVvwFIl1xvigNZTj.mjs → Cf3RGVsf9qqF9dVB.mjs} +1 -1
  92. package/browser/esm/{CFey64nL6K_JDHyo.mjs → CrM-2l9BMnS0Lkh1.mjs} +1 -1
  93. package/browser/esm/{DswWgS_zGnCjt804.mjs → CuTudjzephfkt36F.mjs} +5 -5
  94. package/browser/esm/{B3ECMs0QjPnXbJEw.mjs → Cx11CBX88voKcCgb.mjs} +12 -12
  95. package/browser/esm/{BzCCXyLxR1Tx_PQ6.mjs → D2h5jM12-ZC4VX_T.mjs} +53 -53
  96. package/browser/esm/{BzXLeceeaODxxlsN.mjs → D3h1wZvV9AHRqaZq.mjs} +4 -4
  97. package/browser/esm/{CbiCECqtZzDk6jeR.mjs → D8NWmHOvxbnTKXqJ.mjs} +6 -6
  98. package/browser/esm/{0egw9xufQUK5XQZ5.mjs → D8xKI9bNALrDO0EI.mjs} +1 -1
  99. package/{cdn/assets/B9wr_AwSb0JtPoMv.js → browser/esm/DCyiJ8jlUG-B76Tb.mjs} +1 -1
  100. package/browser/esm/{C2sR98LOxBBkEECx.mjs → DDCRVmkZtcoY5u7P.mjs} +1 -1
  101. package/browser/esm/{CSU3ycILp620z_i8.mjs → DElt69us9iAn7_Ww.mjs} +2 -2
  102. package/browser/esm/{CqxLzaP5z64d6Lx4.mjs → DMKVMuMh4XJ4LGTp.mjs} +1 -1
  103. package/{cdn/assets/CfEvt84zrQGwFpt2.js → browser/esm/DVTFDA3Ssz9_4NcI.mjs} +1 -1
  104. package/{cdn/assets/DK5o4bmDWZoxlyie.js → browser/esm/DWvwKL3aLkiqeSo1.mjs} +8 -8
  105. package/{cdn/assets/CzgyRT7Dh3AVKcWl.js → browser/esm/DZUm1u-H4bx3eAew.mjs} +1 -1
  106. package/browser/esm/{VzlXiTXfqwuLrkgg.mjs → Dfx2_yQe2iRmxaeg.mjs} +1 -1
  107. package/browser/esm/{DvaoVWL-VdS7k_i3.mjs → DpfLzruLjqt5WaT4.mjs} +11 -11
  108. package/browser/esm/{C4dAWyoYzg5AFxSE.mjs → DsdO4-Dxa2PoruYq.mjs} +13 -13
  109. package/browser/esm/DwDbdg2MYgA3Tnfe.mjs +11 -0
  110. package/{cdn/assets/BeENppGCoF_AwA6g.js → browser/esm/FMJGVl5BuwTspvXB.mjs} +2 -2
  111. package/{cdn/assets/BDSX8FAyHcAmsE-T.js → browser/esm/Gye5i_y6LTkSeZWV.mjs} +1 -1
  112. package/browser/esm/{BrGzSkrQVV-CCVui.mjs → T7q0269_QPB8lCOv.mjs} +1 -1
  113. package/{cdn/assets/D4aEzWRsHbRiDZQf.js → browser/esm/Yx74P2tuzTl_vWeR.mjs} +20410 -19852
  114. package/browser/esm/{DjtYK-s8g6tP0TRw.mjs → ftYo_nnqtr7QkIOP.mjs} +2 -2
  115. package/browser/esm/index.mjs +2 -2
  116. package/{cdn/assets/DKrP22W3r6dc2ll8.js → browser/esm/pOUm75Y0UEeP9DxX.mjs} +1 -1
  117. package/{cdn/assets/wrn_BUWuBI2ou-lE.js → browser/esm/ymbdHoeF6JmtSeHf.mjs} +1 -1
  118. package/browser/esm/{C1TJTYVoSUvCsI72.mjs → yvf7TZWzRux6eb-r.mjs} +2 -2
  119. package/browser/esm/{6dkX2k_H0PA_iz5X.mjs → zd-Kc5cLey9IZ283.mjs} +1 -1
  120. package/cdn/assets/{D6gMyvRPXwYEpaiW.js → -ZtRkphm8qlj8ebp.js} +1 -1
  121. package/{browser/esm/Bgcy7JI6AzSoovcw.mjs → cdn/assets/1oqbqwBb8fBG-SRu.js} +1 -1
  122. package/{browser/esm/BkjhtLKdZkaleH6j.mjs → cdn/assets/2Q2-3kHAmqNdLDwx.js} +1 -1
  123. package/cdn/assets/{CdoIc8OarIB8C5y3.js → 3tDFtZFz8w76rYBA.js} +18 -18
  124. package/cdn/assets/{CvTBNZMoY5-DwtAb.js → 5dKHsl0r2V-JmyNP.js} +2 -2
  125. package/cdn/assets/{BZpRwfavZD9rO_v8.js → 8lSvXDLbx-eV1Nz0.js} +490 -490
  126. package/cdn/assets/{CKOpVcqPaB2s4dTb.js → 95UgFJTU5KLLCYf1.js} +1 -1
  127. package/{browser/esm/DhT-2pf586yDvyqZ.mjs → cdn/assets/B-ODKhdttBS8vm_N.js} +1 -1
  128. package/cdn/assets/{m7fz1VY0WrHhVE1u.js → B2xZE9bUnQFNq8II.js} +1 -1
  129. package/cdn/assets/{CrqJMWWEjzFZ-_Pk.js → BACzy7WLUtqbx_4H.js} +1 -1
  130. package/cdn/assets/{gRJ4OcAtWEBEGLJD.js → BCA5bMx1egW3eRmp.js} +14 -14
  131. package/cdn/assets/{DTHfoEyAv88YJtid.js → BH4LGqC8Z4Iqh7XS.js} +2 -2
  132. package/cdn/assets/{NohZsi_dnB1kc2oI.js → BNtLK4CbKRlPzlKT.js} +1 -1
  133. package/{browser/esm/BfH0870g7ogWyWTa.mjs → cdn/assets/BQEH9vzW6MLoEQpS.js} +1 -1
  134. package/cdn/assets/{TAuxEP6K9MOe8hvY.js → BXHEwZhPbMaOdb_Z.js} +3 -3
  135. package/cdn/assets/{DuVOZ5CVHDzuF-Wf.js → BXs2QdxsuX2lw_x3.js} +73 -73
  136. package/{browser/esm/JgQgURqWEwvTv_wi.mjs → cdn/assets/B_8aGF2Dt1micWZg.js} +1 -1
  137. package/cdn/assets/{J_m4I2bQAeYSJPWS.js → Bab--HPvvqz_dgfE.js} +1 -1
  138. package/{browser/esm/DYqsn4bTq8tt9z2d.mjs → cdn/assets/BoXZxgubGIYbaajd.js} +1 -1
  139. package/{browser/esm/C4aAJQZlcVwK7Bv7.mjs → cdn/assets/BpD67geWfh3vSqJb.js} +1 -1
  140. package/cdn/assets/{jeiAiNavXwDjx5bH.js → BqOHcOxJPktjB8oL.js} +12 -12
  141. package/{browser/esm/Z1fSZhtHNjC6OoN6.mjs → cdn/assets/Bqca9Nkofzm6UFZ1.js} +20260 -20050
  142. package/cdn/assets/{DAMni_kLlITX8qAW.js → BtXsNo8KL5XLE7xA.js} +50 -50
  143. package/cdn/assets/{CxFPsh5ojrvYoLqP.js → ByTOIrEYNeA_wpXy.js} +80 -80
  144. package/cdn/assets/{IQp8evg14s1_pMGI.js → C2wV3vQ-5dEezy7R.js} +3 -3
  145. package/cdn/assets/{BZ1FXLdV7kLoj8S2.js → C3urWNCGtWeKM42K.js} +4 -4
  146. package/cdn/assets/{Bp1BVz04Xy4W95PB.js → C75SpXwjYmdo6WC6.js} +10 -10
  147. package/{browser/esm/ji2x5yzvwhn2JiFp.mjs → cdn/assets/C7IRTn7ZcC4A4N9E.js} +1 -1
  148. package/cdn/assets/{DZSQDf-SlYIAnwqI.js → CHESIwo-YlB-g6gr.js} +2 -2
  149. package/cdn/assets/{B7wG8K-M9ldv3InT.js → CIyDrXxc2D-28-mW.js} +1 -1
  150. package/{browser/esm/YFMiozbFWZjo74Td.mjs → cdn/assets/CNtcjn_Cn7cQOWP5.js} +1 -1
  151. package/{browser/esm/_N4vH5kWapbfarDc.mjs → cdn/assets/CQ7RZs6ggMhy9TKv.js} +1 -1
  152. package/{browser/esm/Cb1GBW9E5GfRvhuS.mjs → cdn/assets/CXwDT0Rc1CeP5C6C.js} +1 -1
  153. package/cdn/assets/{C3ZYwFCm4zV0PV7L.js → CdWkJs6rYnFmetuJ.js} +1 -1
  154. package/cdn/assets/{BVvwFIl1xvigNZTj.js → Cf3RGVsf9qqF9dVB.js} +1 -1
  155. package/cdn/assets/{McZLFG7PefCrtXxD.js → Cn0K1aSWZCVlK66V.js} +1 -1
  156. package/cdn/assets/{mgzh0Oj545G9VFmY.js → CnLv6xBX-8QXgr8C.js} +7 -7
  157. package/cdn/assets/{CFey64nL6K_JDHyo.js → CrM-2l9BMnS0Lkh1.js} +1 -1
  158. package/cdn/assets/{CaHwS8usPT5gIFuY.js → Cwd_PFnZO3GB10Ib.js} +10 -10
  159. package/cdn/assets/{CR-xAI2miMYh-gdy.js → D6Bd-wh8DUctiTBq.js} +4 -4
  160. package/cdn/assets/{0egw9xufQUK5XQZ5.js → D8xKI9bNALrDO0EI.js} +1 -1
  161. package/{browser/esm/B9wr_AwSb0JtPoMv.mjs → cdn/assets/DCyiJ8jlUG-B76Tb.js} +1 -1
  162. package/cdn/assets/{C2sR98LOxBBkEECx.js → DDCRVmkZtcoY5u7P.js} +1 -1
  163. package/cdn/assets/{BqbxC6sS2OoaM51Y.js → DNDzb50fYztOU6sL.js} +2 -2
  164. package/cdn/assets/{ddSl0Ga-rXVB9Yci.js → DPUzShmQFsZiAy1y.js} +14 -14
  165. package/cdn/assets/{UGRaW68kY1lQin4c.js → DVE11KnTbk8UCl2L.js} +4 -4
  166. package/{browser/esm/CfEvt84zrQGwFpt2.mjs → cdn/assets/DVTFDA3Ssz9_4NcI.js} +1 -1
  167. package/{browser/esm/CzgyRT7Dh3AVKcWl.mjs → cdn/assets/DZUm1u-H4bx3eAew.js} +1 -1
  168. package/cdn/assets/DZwStU2_wQO6T5Ug.js +12 -0
  169. package/cdn/assets/{Bv7E-FgORAWOkyiV.js → DfsGU1WZFPDvuEF7.js} +2 -2
  170. package/cdn/assets/{VzlXiTXfqwuLrkgg.js → Dfx2_yQe2iRmxaeg.js} +1 -1
  171. package/{browser/esm/UQSXr-cpRWqp8Ktj.mjs → cdn/assets/DnoVwExJraUmPO4h.js} +2 -2
  172. package/cdn/assets/{DWxb-keKnWDZ32ov.js → Dqv_r2crwVb5hDRt.js} +2 -2
  173. package/cdn/assets/{DMOM_dk7px3Id2fD.js → DtDieGCmD7tfP-IC.js} +21 -21
  174. package/{browser/esm/B4U-HbDDW978wKeB.mjs → cdn/assets/F9FRh_1TEIanjKfd.js} +20 -20
  175. package/{browser/esm/BDSX8FAyHcAmsE-T.mjs → cdn/assets/Gye5i_y6LTkSeZWV.js} +1 -1
  176. package/cdn/assets/JUjq8dsNEwlP2TmD.js +149 -0
  177. package/cdn/assets/{tbqH71TvrNeRjwAy.js → L4iwFaFUwrc5iENg.js} +3 -3
  178. package/cdn/assets/{pv07rmyN2zy5KZrb.js → RgzmLUjP4Fyf4q1K.js} +2 -2
  179. package/cdn/assets/{BrGzSkrQVV-CCVui.js → T7q0269_QPB8lCOv.js} +1 -1
  180. package/cdn/assets/{BFfLoUaapPcM_eb0.js → eIefNRuHeizv4VyQ.js} +10 -10
  181. package/cdn/assets/{B4MTgKmMZcXoDlYG.js → ij04ZtjSyJ1O2CRc.js} +2 -2
  182. package/{browser/esm/DKrP22W3r6dc2ll8.mjs → cdn/assets/pOUm75Y0UEeP9DxX.js} +1 -1
  183. package/{browser/esm/wrn_BUWuBI2ou-lE.mjs → cdn/assets/ymbdHoeF6JmtSeHf.js} +1 -1
  184. package/cdn/assets/{6dkX2k_H0PA_iz5X.js → zd-Kc5cLey9IZ283.js} +1 -1
  185. package/cdn/index.js +2 -2
  186. package/cdn/loader.js +1 -1
  187. package/package.json +16 -5
  188. package/browser/cjs/B7MW5qdFHlXONQ6l.cjs +0 -6
  189. package/browser/cjs/CTT_jzhLio55PSMa.cjs +0 -32
  190. package/browser/cjs/Cd4lc7sbp3kKfIbA.cjs +0 -6
  191. package/browser/cjs/Cfr9LxunC2fgJtM2.cjs +0 -11
  192. package/browser/cjs/DH59epfNQumKG6UO.cjs +0 -6
  193. package/browser/cjs/Dg0Zl23k4ZwHK5Nt.cjs +0 -6
  194. package/browser/cjs/MD9O1VNhhdH5RoiA.cjs +0 -330
  195. package/browser/esm/ChrPZQnuQU-qVVa1.mjs +0 -147
  196. package/cdn/assets/BHyn4CasWPQ92Eud.js +0 -149
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.4
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.6
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -13,8 +13,8 @@ let c = class {
13
13
  return this._worker || (this._worker = this._workerFactory(), this._worker.onmessage = (e) => {
14
14
  const { id: n, result: t, error: r } = e.data, o = this._pendingRequests.get(n);
15
15
  if (o) if (this._pendingRequests.delete(n), r) {
16
- const i = new Error(r.message);
17
- i.stack = r.stack, r.cause && (i.cause = r.cause), o.reject(i);
16
+ const a = new Error(r.message);
17
+ a.stack = r.stack, r.cause && (a.cause = r.cause), o.reject(a);
18
18
  } else o.resolve(t);
19
19
  }, this._worker.onerror = (e) => {
20
20
  console.error("Worker error:", e), this._pendingRequests.forEach((n) => {
@@ -47,14 +47,14 @@ class u {
47
47
  }
48
48
  }
49
49
  const s = `/**
50
- * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.4
50
+ * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.6
51
51
  *
52
52
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
53
53
  * License: The license can be found at https://www.sheetxl.com/license.
54
54
  */
55
55
  const W = { Number: "n", String: "s", Boolean: "b", Error: "e", Null: "z" };
56
- var Re, ae, d;
57
- (ae = Re || (Re = {})).Orientation = { Column: "column", Row: "row" }, ae.Orientations = { ...ae.Orientation, Both: "both" }, ae.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e) => {
56
+ var Re, ie, d;
57
+ (ie = Re || (Re = {})).Orientation = { Column: "column", Row: "row" }, ie.Orientations = { ...ie.Orientation, Both: "both" }, ie.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e) => {
58
58
  e.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, e.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
59
59
  class t extends Error {
60
60
  constructor(c, h, fe, B) {
@@ -83,7 +83,7 @@ var Re, ae, d;
83
83
  }
84
84
  }
85
85
  e.Known = t;
86
- class r extends t {
86
+ class n extends t {
87
87
  constructor(c, h) {
88
88
  super(e.Code.Parse, e.Label.Parse, c, h);
89
89
  }
@@ -95,8 +95,8 @@ var Re, ae, d;
95
95
  return { line: c?.line ?? 1, column: c?.column ?? 1, offset: c?.offset ?? 0, length: c?.length ?? 0 };
96
96
  }
97
97
  }
98
- e.Parse = r;
99
- class n extends t {
98
+ e.Parse = n;
99
+ class r extends t {
100
100
  constructor(c, h) {
101
101
  super(e.Code.Null, e.Label.Null, c, h);
102
102
  }
@@ -104,7 +104,7 @@ var Re, ae, d;
104
104
  this.code = e.Code.Null;
105
105
  }
106
106
  }
107
- e.Null = n;
107
+ e.Null = r;
108
108
  class o extends t {
109
109
  constructor(c, h) {
110
110
  super(e.Code.Div0, e.Label.Div0, c, h);
@@ -114,7 +114,7 @@ var Re, ae, d;
114
114
  }
115
115
  }
116
116
  e.Div0 = o;
117
- class i extends t {
117
+ class a extends t {
118
118
  constructor(c, h) {
119
119
  super(e.Code.Value, e.Label.Value, c, h);
120
120
  }
@@ -122,8 +122,8 @@ var Re, ae, d;
122
122
  this.code = e.Code.Value;
123
123
  }
124
124
  }
125
- e.Value = i;
126
- class a extends t {
125
+ e.Value = a;
126
+ class i extends t {
127
127
  constructor(c, h) {
128
128
  super(e.Code.Ref, e.Label.Ref, c, h);
129
129
  }
@@ -131,7 +131,7 @@ var Re, ae, d;
131
131
  this.code = e.Code.Ref;
132
132
  }
133
133
  }
134
- e.Ref = a;
134
+ e.Ref = i;
135
135
  class l extends t {
136
136
  constructor(c, h) {
137
137
  super(e.Code.Name, e.Label.Name, c, h);
@@ -252,86 +252,84 @@ var Re, ae, d;
252
252
  })(d || (d = {}));
253
253
  const _ = {};
254
254
  _[d.Code.Parse] = d.Parse, _[d.Code.Null] = d.Null, _[d.Code.Div0] = d.Div0, _[d.Code.Value] = d.Value, _[d.Code.Ref] = d.Ref, _[d.Code.Name] = d.Name, _[d.Code.Num] = d.Num, _[d.Code.NA] = d.NA, _[d.Code.GettingData] = d.GettingData, _[d.Code.Spill] = d.Spill, _[d.Code.Connect] = d.Connect, _[d.Code.Blocked] = d.Blocked, _[d.Code.Unknown] = d.Unknown, _[d.Code.Field] = d.Field, _[d.Code.Calc] = d.Calc, _[d.Code.Busy] = d.Busy, _[d.Code.Python] = d.Python, _[d.Code.Timeout] = d.Timeout;
255
- const rt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), nt = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), ke = Object.keys(_);
255
+ const nt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), ke = Object.keys(_);
256
256
  for (let e = 0; e < ke.length; e++) {
257
- const t = ke[e], r = _[t];
258
- nt.set(d.Label[t], r), ot.set(d.Code[t], r);
259
- const n = new r();
260
- rt.set(n.getLabel(), n), Te.set(n.getCode(), n);
257
+ const t = ke[e], n = _[t];
258
+ rt.set(d.Label[t], n), ot.set(d.Code[t], n);
259
+ const r = new n();
260
+ nt.set(r.getLabel(), r), Te.set(r.getCode(), r);
261
261
  }
262
262
  const xt = Te.get(d.Code.Unknown);
263
263
  var T;
264
- (T = d || (d = {})).BuiltIn = { Parse: new T.Parse(), Null: new T.Null(), Div0: new T.Div0(), Value: new T.Value(), Ref: new T.Ref(), Name: new T.Name(), Num: new T.Num(), NA: new T.NA(), GettingData: new T.GettingData(), Spill: new T.Spill(), Connect: new T.Connect(), Blocked: new T.Blocked(), Unknown: new T.Unknown(), Field: new T.Field(), Calc: new T.Calc(), Busy: new T.Busy(), Python: new T.Python(), Timeout: new T.Timeout() }, T.getBuiltInByLabel = (e) => rt.get(e), T.newTypedError = (e, t, r) => {
265
- let n;
266
- return n = typeof e == "string" ? nt.get(e) : ot.get(e), n || (n = T.Unknown), new n(t, r);
264
+ (T = d || (d = {})).BuiltIn = { Parse: new T.Parse(), Null: new T.Null(), Div0: new T.Div0(), Value: new T.Value(), Ref: new T.Ref(), Name: new T.Name(), Num: new T.Num(), NA: new T.NA(), GettingData: new T.GettingData(), Spill: new T.Spill(), Connect: new T.Connect(), Blocked: new T.Blocked(), Unknown: new T.Unknown(), Field: new T.Field(), Calc: new T.Calc(), Busy: new T.Busy(), Python: new T.Python(), Timeout: new T.Timeout() }, T.getBuiltInByLabel = (e) => nt.get(e), T.newTypedError = (e, t, n) => {
265
+ let r;
266
+ return r = typeof e == "string" ? rt.get(e) : ot.get(e), r || (r = T.Unknown), new r(t, n);
267
267
  }, T.getBuiltInById = (e) => Te.get(e) || xt;
268
268
  /**
269
- * @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.4
269
+ * @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.6
270
270
  *
271
271
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
272
272
  * License: The license can be found at https://www.sheetxl.com/license.
273
273
  */
274
- const S = { html: "text/html", plain: "text/plain", png: "image/png" }, Ct = Object.freeze({ left: 0, top: 0 }), vt = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), Tt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 });
275
- Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: Tt, EmptyRect: vt, EmptyTopLeft: Ct }, Symbol.toStringTag, { value: "Module" }));
276
- const j = { Column: "column", Row: "row" }, _t = Object.freeze({ colIndex: 0, rowIndex: 0 }), Ot = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), it = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, at = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, It = (e, t) => e.rowEnd === t.rowEnd ? t.colEnd - e.colEnd : t.rowEnd - e.rowEnd, Nt = (e, t) => e.colEnd === t.colEnd ? t.rowEnd - e.rowEnd : t.colEnd - e.colEnd, Le = (e, t) => e.colIndex === t.colIndex ? e.rowIndex - t.rowIndex : e.colIndex - t.colIndex, Ae = (e, t) => e.rowIndex === t.rowIndex ? e.colIndex - t.colIndex : e.rowIndex - t.rowIndex, Me = (e, t) => e.rowIndex === t.rowIndex ? t.colIndex - e.colIndex : t.rowIndex - e.rowIndex, je = (e, t) => e.colIndex === t.colIndex ? t.rowIndex - e.rowIndex : t.colIndex - e.colIndex, lt = (e = j.Row, t = !1) => t ? e !== j.Column ? It : Nt : e !== j.Column ? at : it, Pe = (e, t) => e === t || !(!e || !t) && e.rowIndex === t.rowIndex && e.colIndex === t.colIndex, Se = (e, t) => e === t || !(!e || !t) && e.rowStart === t.rowStart && e.rowEnd === t.rowEnd && e.colStart === t.colStart && e.colEnd === t.colEnd, xe = (e, t) => !(!e || !t) && !(e.colStart > t.colEnd || t.colStart > e.colEnd) && !(e.rowStart > t.rowEnd || t.rowStart > e.rowEnd), Fe = (e, t) => {
274
+ const j = { Column: "column", Row: "row" }, Ct = Object.freeze({ colIndex: 0, rowIndex: 0 }), vt = Object.freeze({ colStart: 0, rowStart: 0, colEnd: 0, rowEnd: 0 }), at = (e, t) => e.colStart === t.colStart ? e.rowStart - t.rowStart : e.colStart - t.colStart, it = (e, t) => e.rowStart === t.rowStart ? e.colStart - t.colStart : e.rowStart - t.rowStart, Tt = (e, t) => e.rowEnd === t.rowEnd ? t.colEnd - e.colEnd : t.rowEnd - e.rowEnd, _t = (e, t) => e.colEnd === t.colEnd ? t.rowEnd - e.rowEnd : t.colEnd - e.colEnd, Le = (e, t) => e.colIndex === t.colIndex ? e.rowIndex - t.rowIndex : e.colIndex - t.colIndex, Ae = (e, t) => e.rowIndex === t.rowIndex ? e.colIndex - t.colIndex : e.rowIndex - t.rowIndex, Me = (e, t) => e.rowIndex === t.rowIndex ? t.colIndex - e.colIndex : t.rowIndex - e.rowIndex, je = (e, t) => e.colIndex === t.colIndex ? t.rowIndex - e.rowIndex : t.colIndex - e.colIndex, lt = (e = j.Row, t = !1) => t ? e !== j.Column ? Tt : _t : e !== j.Column ? it : at, Pe = (e, t) => e === t || !(!e || !t) && e.rowIndex === t.rowIndex && e.colIndex === t.colIndex, Se = (e, t) => e === t || !(!e || !t) && e.rowStart === t.rowStart && e.rowEnd === t.rowEnd && e.colStart === t.colStart && e.colEnd === t.colEnd, xe = (e, t) => !(!e || !t) && !(e.colStart > t.colEnd || t.colStart > e.colEnd) && !(e.rowStart > t.rowEnd || t.rowStart > e.rowEnd), Fe = (e, t) => {
277
275
  if (e === t) return !0;
278
276
  if (!e || !t || e.length !== t.length) return !1;
279
- for (let r = 0; r < e.length; r++) if (!Se(e[r], t[r])) return !1;
277
+ for (let n = 0; n < e.length; n++) if (!Se(e[n], t[n])) return !1;
280
278
  return !0;
281
- }, me = (e, t, r) => {
279
+ }, me = (e, t, n) => {
282
280
  if (!e && !t) return null;
283
- if (!e) return r ? t : { ...t };
284
- if (!t) return r ? e : { ...e };
285
- const n = Math.min(e.colStart, t.colStart), o = Math.min(e.rowStart, t.rowStart), i = Math.max(e.colEnd, t.colEnd), a = Math.max(e.rowEnd, t.rowEnd);
286
- let l = r;
287
- return l ? (l.colStart = n, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: n, rowStart: o, colEnd: i, rowEnd: a }, l;
281
+ if (!e) return n ? t : { ...t };
282
+ if (!t) return n ? e : { ...e };
283
+ const r = Math.min(e.colStart, t.colStart), o = Math.min(e.rowStart, t.rowStart), a = Math.max(e.colEnd, t.colEnd), i = Math.max(e.rowEnd, t.rowEnd);
284
+ let l = n;
285
+ return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
288
286
  }, De = (e, t) => {
289
287
  if (!t || t.length === 0) return e;
290
- const r = { ...e };
291
- for (let n = 0; n < t.length; n++) {
292
- const o = t[n];
293
- xe(r, o) && (r.rowStart = Math.min(r.rowStart, o.rowStart), r.colStart = Math.min(r.colStart, o.colStart), r.rowEnd = Math.max(r.rowEnd, o.rowEnd), r.colEnd = Math.max(r.colEnd, o.colEnd));
288
+ const n = { ...e };
289
+ for (let r = 0; r < t.length; r++) {
290
+ const o = t[r];
291
+ xe(n, o) && (n.rowStart = Math.min(n.rowStart, o.rowStart), n.colStart = Math.min(n.colStart, o.colStart), n.rowEnd = Math.max(n.rowEnd, o.rowEnd), n.colEnd = Math.max(n.colEnd, o.colEnd));
294
292
  }
295
- return r;
296
- }, Rt = [null, null], kt = (e, t, r) => {
293
+ return n;
294
+ }, Ot = [null, null], It = (e, t, n) => {
297
295
  if (e[0].value === e[1].value) return t;
298
296
  };
299
- function Ue(e, t = 2, r, n = j.Row, o) {
300
- let i = [...e];
301
- if (t <= 0 || e.length <= 1) return i;
302
- let a = n === j.Column, l = 0, u = !1;
297
+ function Ue(e, t = 2, n, r = j.Row, o) {
298
+ let a = [...e];
299
+ if (t <= 0 || e.length <= 1) return a;
300
+ let i = r === j.Column, l = 0, u = !1;
303
301
  do {
304
- const p = i.sort(lt(a ? j.Row : j.Column));
305
- i = [], i.push(p[0]);
302
+ const p = a.sort(lt(i ? j.Row : j.Column));
303
+ a = [], a.push(p[0]);
306
304
  const w = p.length;
307
305
  let g = 0, f = p[0], y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
308
306
  for (let U = 1; U < w; U++) {
309
307
  const I = p[U];
310
308
  let J = !1;
311
- if (J = a ? f && x === I.rowStart && D === I.rowEnd && A + 1 === I.colStart : f && y === I.colStart && A === I.colEnd && D + 1 === I.rowStart, J) {
312
- let E = { colStart: y, rowStart: x, colEnd: a ? I.colEnd : A, rowEnd: a ? D : I.rowEnd };
313
- if (f.value !== void 0 && (E.value = f.value), r) {
309
+ if (J = i ? f && x === I.rowStart && D === I.rowEnd && A + 1 === I.colStart : f && y === I.colStart && A === I.colEnd && D + 1 === I.rowStart, J) {
310
+ let E = { colStart: y, rowStart: x, colEnd: i ? I.colEnd : A, rowEnd: i ? D : I.rowEnd };
311
+ if (f.value !== void 0 && (E.value = f.value), n) {
314
312
  const c = o ?? [null, null];
315
- c[0] = f, c[1] = I, E = r(c, E, n);
313
+ c[0] = f, c[1] = I, E = n(c, E, r);
316
314
  }
317
315
  if (E) {
318
- i[g] = E, u = !0, f = E, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
316
+ a[g] = E, u = !0, f = E, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
319
317
  continue;
320
318
  }
321
319
  }
322
- i[++g] = I, f = I, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
320
+ a[++g] = I, f = I, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
323
321
  }
324
- l++, a = !a, l === 1 && (u = !0);
325
- } while (l < t && u && i.length > 1);
326
- return i;
322
+ l++, i = !i, l === 1 && (u = !0);
323
+ } while (l < t && u && a.length > 1);
324
+ return a;
327
325
  }
328
- Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange: Ot, cellToRange: (e, t) => {
326
+ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: Ct, EmptyRange: vt, cellToRange: (e, t) => {
329
327
  if (!e) return null;
330
- let r = t;
331
- return r || (r = { ...e }, delete r.colIndex, delete r.rowIndex), r.colStart = e.colIndex ?? 0, r.rowStart = e.rowIndex ?? 0, r.colEnd = e.colIndex ?? 0, r.rowEnd = e.rowIndex ?? 0, r;
332
- }, columnFirstCellComparator: Le, columnFirstRangeComparator: it, createCellComparator: (e = j.Row, t = !1) => t ? e !== j.Column ? Me : je : e !== j.Column ? Ae : Le, createConflatingRanges: (e, t = !1) => {
333
- const r = [];
334
- let n, o, i = Number.MIN_SAFE_INTEGER, a = Number.MIN_SAFE_INTEGER;
328
+ let n = t;
329
+ return n || (n = { ...e }, delete n.colIndex, delete n.rowIndex), n.colStart = e.colIndex ?? 0, n.rowStart = e.rowIndex ?? 0, n.colEnd = e.colIndex ?? 0, n.rowEnd = e.rowIndex ?? 0, n;
330
+ }, columnFirstCellComparator: Le, columnFirstRangeComparator: at, createCellComparator: (e = j.Row, t = !1) => t ? e !== j.Column ? Me : je : e !== j.Column ? Ae : Le, createConflatingRanges: (e, t = !1) => {
331
+ const n = [];
332
+ let r, o, a = Number.MIN_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
335
333
  return { append: (l, u, p) => {
336
334
  let w = !0;
337
335
  const g = p !== void 0;
@@ -339,44 +337,46 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange
339
337
  const x = e ? e(o, p, t) : o === p ? p : void 0;
340
338
  x === void 0 ? w = !1 : p = x;
341
339
  }
342
- if (w && u === a + 1 && l === i) return t ? n.rowEnd = u : n.colEnd = u, a = u, void (o = p);
343
- n && r.push(n);
340
+ if (w && u === i + 1 && l === a) return t ? r.rowEnd = u : r.colEnd = u, i = u, void (o = p);
341
+ r && n.push(r);
344
342
  const f = t ? l : u, y = t ? u : l;
345
- n = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (n.value = p), i = l, a = u, o = p;
346
- }, done: (l) => (n && (r.push(n), n = null), l ? Ue(r, 3, l === !0 ? kt : l, t ? j.Column : j.Row, Rt) : r) };
347
- }, createRangeComparator: lt, defaultRange: (e, t, r) => e ? r ? (r.colStart = e.colStart ?? t.colStart, r.rowStart = e.rowStart ?? t.rowStart, r.colEnd = e.colEnd ?? t.colEnd, r.rowEnd = e.rowEnd ?? t.rowEnd, r) : { colStart: e.colStart ?? t.colStart, rowStart: e.rowStart ?? t.rowStart, colEnd: e.colEnd ?? t.colEnd, rowEnd: e.rowEnd ?? t.rowEnd } : t, extendRangeToIntersectingRanges: De, extendRangeToUnionRanges: (e, t) => {
343
+ r = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (r.value = p), a = l, i = u, o = p;
344
+ }, done: (l) => (r && (n.push(r), r = null), l ? Ue(n, 3, l === !0 ? It : l, t ? j.Column : j.Row, Ot) : n) };
345
+ }, createRangeComparator: lt, defaultRange: (e, t, n) => e ? n ? (n.colStart = e.colStart ?? t.colStart, n.rowStart = e.rowStart ?? t.rowStart, n.colEnd = e.colEnd ?? t.colEnd, n.rowEnd = e.rowEnd ?? t.rowEnd, n) : { colStart: e.colStart ?? t.colStart, rowStart: e.rowStart ?? t.rowStart, colEnd: e.colEnd ?? t.colEnd, rowEnd: e.rowEnd ?? t.rowEnd } : t, extendRangeToIntersectingRanges: De, extendRangeToUnionRanges: (e, t) => {
348
346
  if (!t || t.length === 0) return e;
349
- let r = e, n = null;
350
- for (; !Se(r, n); ) n = r, r = De(n, t);
351
- return r;
347
+ let n = e, r = null;
348
+ for (; !Se(n, r); ) r = n, n = De(r, t);
349
+ return n;
352
350
  }, indexOfCoords: (e, t) => {
353
- const r = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
354
- for (let n = t.length - 1; n >= 0; n--) if (xe(r, t[n])) return n;
351
+ const n = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
352
+ for (let r = t.length - 1; r >= 0; r--) if (xe(n, t[r])) return r;
355
353
  return -1;
356
- }, intersectRanges: (e, t, r) => {
357
- if (!e) return r ? t : { ...t };
358
- if (!t) return r ? e : { ...e };
354
+ }, intersectRanges: (e, t, n) => {
355
+ if (!e) return n ? t : { ...t };
356
+ if (!t) return n ? e : { ...e };
359
357
  if (!e && !t || e.rowStart > t.rowEnd || e.rowEnd < t.rowStart || e.colStart > t.colEnd || e.colEnd < t.colStart) return null;
360
- const n = Math.max(e.colStart, t.colStart), o = Math.max(e.rowStart, t.rowStart), i = Math.min(e.colEnd, t.colEnd), a = Math.min(e.rowEnd, t.rowEnd);
361
- let l = r;
362
- return l ? (l.colStart = n, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: n, rowStart: o, colEnd: i, rowEnd: a }, l;
358
+ const r = Math.max(e.colStart, t.colStart), o = Math.max(e.rowStart, t.rowStart), a = Math.min(e.colEnd, t.colEnd), i = Math.min(e.rowEnd, t.rowEnd);
359
+ let l = n;
360
+ return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
363
361
  }, isCellWithinRange: (e, t) => {
364
362
  if (!e || !t) return !1;
365
- const r = e.rowIndex;
366
- if (r < t.rowStart || r > t.rowEnd) return !1;
367
- const n = e.colIndex;
368
- return !(n < t.colStart || n > t.colEnd);
369
- }, isEqualCells: Pe, isEqualRanges: Se, isEqualRangesArrays: Fe, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Pe(e.cell, t.cell) && Fe(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: xe, isSingleCell: (e) => !!e && e.rowEnd === e.rowStart && e.colStart === e.colEnd, isValidRange: (e) => !!e && !(typeof e.colStart != "number" || e.colStart < 0) && !(typeof e.colEnd != "number" || e.colEnd < e.colStart) && !(typeof e.rowStart != "number" || e.rowStart < 0) && !(typeof e.rowEnd != "number" || e.rowEnd < e.rowStart), mergeRangedValues: Ue, reverseColumnFirstCellComparator: je, reverseRowFirstCellComparator: Me, rowFirstCellComparator: Ae, rowFirstRangeComparator: at, sanitizeRange: (e) => e ? { colStart: e.colIndex ?? e.colStart ?? 0, rowStart: e.rowIndex ?? e.rowStart ?? 0, colEnd: e.colIndex ?? e.colEnd ?? 0, rowEnd: e.rowIndex ?? e.rowEnd ?? 0 } : null, translateRange: (e, t = -e.rowStart, r = -e.colStart, n) => n ? (n.colStart = e.colStart + r, n.rowStart = e.rowStart + t, n.colEnd = e.colEnd + r, n.rowEnd = e.rowEnd + t, n) : { colStart: e.colStart + r, rowStart: e.rowStart + t, colEnd: e.colEnd + r, rowEnd: e.rowEnd + t }, unionRanges: me, unionRangesArrays: (e, t, r) => {
363
+ const n = e.rowIndex;
364
+ if (n < t.rowStart || n > t.rowEnd) return !1;
365
+ const r = e.colIndex;
366
+ return !(r < t.colStart || r > t.colEnd);
367
+ }, isEqualCells: Pe, isEqualRanges: Se, isEqualRangesArrays: Fe, isEqualSelectionCoords: (e, t) => e === t || !(!e || !t) && e.rangeIndex === t.rangeIndex && !!Pe(e.cell, t.cell) && Fe(e.ranges, t.ranges), isRangeWithinRange: (e, t) => !(e.rowStart < t.rowStart || e.rowEnd > t.rowEnd) && !(e.colStart < t.colStart || e.colEnd > t.colEnd), isRangesIntersect: xe, isSingleCell: (e) => !!e && e.rowEnd === e.rowStart && e.colStart === e.colEnd, isValidRange: (e) => !!e && !(typeof e.colStart != "number" || e.colStart < 0) && !(typeof e.colEnd != "number" || e.colEnd < e.colStart) && !(typeof e.rowStart != "number" || e.rowStart < 0) && !(typeof e.rowEnd != "number" || e.rowEnd < e.rowStart), mergeRangedValues: Ue, reverseColumnFirstCellComparator: je, reverseRowFirstCellComparator: Me, rowFirstCellComparator: Ae, rowFirstRangeComparator: it, sanitizeRange: (e) => e ? { colStart: e.colIndex ?? e.colStart ?? 0, rowStart: e.rowIndex ?? e.rowStart ?? 0, colEnd: e.colIndex ?? e.colEnd ?? 0, rowEnd: e.rowIndex ?? e.rowEnd ?? 0 } : null, translateRange: (e, t = -e.rowStart, n = -e.colStart, r) => r ? (r.colStart = e.colStart + n, r.rowStart = e.rowStart + t, r.colEnd = e.colEnd + n, r.rowEnd = e.rowEnd + t, r) : { colStart: e.colStart + n, rowStart: e.rowStart + t, colEnd: e.colEnd + n, rowEnd: e.rowEnd + t }, unionRanges: me, unionRangesArrays: (e, t, n) => {
370
368
  if (!e || e.length === 0) return null;
371
369
  if (e.length === 1 && !t) return e[0];
372
- let n = e[0];
373
- for (let o = 1; o < e.length; o++) n = me(n, e[o], r);
374
- return t && (n = me(n, t, r)), n;
370
+ let r = e[0];
371
+ for (let o = 1; o < e.length; o++) r = me(r, e[o], n);
372
+ return t && (r = me(r, t, n)), r;
375
373
  } }, Symbol.toStringTag, { value: "Module" }));
374
+ const S = { html: "text/html", plain: "text/plain", png: "image/png" }, Nt = Object.freeze({ left: 0, top: 0 }), Rt = Object.freeze({ left: 0, top: 0, bottom: 0, right: 0 }), kt = Object.freeze({ x: 0, y: 0, width: 0, height: 0 });
375
+ Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: kt, EmptyRect: Rt, EmptyTopLeft: Nt }, Symbol.toStringTag, { value: "Module" }));
376
376
  function Lt(e) {
377
377
  const t = Object.prototype.toString.call(e);
378
- return t === "[object RegExp]" || t === "[object Date]" || (function(r) {
379
- return r.$$typeof === At;
378
+ return t === "[object RegExp]" || t === "[object Date]" || (function(n) {
379
+ return n.$$typeof === At;
380
380
  })(e);
381
381
  }
382
382
  const At = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
@@ -385,19 +385,19 @@ function Mt(e) {
385
385
  return !!t && typeof t == "object";
386
386
  })(e) && !Lt(e);
387
387
  }
388
- function ne(e, t) {
389
- return t.clone !== !1 && t.isMergeableObject(e) ? Y((r = e, Array.isArray(r) ? [] : {}), e, t) : e;
390
- var r;
388
+ function re(e, t) {
389
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
390
+ var n;
391
391
  }
392
- function jt(e, t, r) {
393
- return e.concat(t).map(function(n) {
394
- return ne(n, r);
392
+ function jt(e, t, n) {
393
+ return e.concat(t).map(function(r) {
394
+ return re(r, n);
395
395
  });
396
396
  }
397
397
  function Be(e) {
398
398
  return Object.keys(e).concat((function(t) {
399
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
400
- return Object.propertyIsEnumerable.call(t, r);
399
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
400
+ return Object.propertyIsEnumerable.call(t, n);
401
401
  }) : [];
402
402
  })(e));
403
403
  }
@@ -408,45 +408,45 @@ function $e(e, t) {
408
408
  return !1;
409
409
  }
410
410
  }
411
- function Pt(e, t, r) {
412
- const n = {};
413
- return r.isMergeableObject(e) && Be(e).forEach(function(o) {
414
- n[o] = ne(e[o], r);
411
+ function Pt(e, t, n) {
412
+ const r = {};
413
+ return n.isMergeableObject(e) && Be(e).forEach(function(o) {
414
+ r[o] = re(e[o], n);
415
415
  }), Be(t).forEach(function(o) {
416
- (function(i, a) {
417
- return $e(i, a) && !(Object.hasOwnProperty.call(i, a) && Object.propertyIsEnumerable.call(i, a));
418
- })(e, o) || ($e(e, o) && r.isMergeableObject(t[o]) ? n[o] = (function(i, a) {
419
- if (!a.customMerge) return Y;
420
- const l = a.customMerge(i);
416
+ (function(a, i) {
417
+ return $e(a, i) && !(Object.hasOwnProperty.call(a, i) && Object.propertyIsEnumerable.call(a, i));
418
+ })(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(a, i) {
419
+ if (!i.customMerge) return Y;
420
+ const l = i.customMerge(a);
421
421
  return typeof l == "function" ? l : Y;
422
- })(o, r)(e[o], t[o], r) : n[o] = ne(t[o], r));
423
- }), n;
422
+ })(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
423
+ }), r;
424
424
  }
425
- function Y(e, t, r) {
426
- (r = r || {}).arrayMerge = r.arrayMerge || jt, r.isMergeableObject = r.isMergeableObject || Mt, r.cloneUnlessOtherwiseSpecified = ne;
427
- const n = Array.isArray(t);
428
- return n === Array.isArray(e) ? n ? r.arrayMerge(e, t, r) : Pt(e, t, r) : ne(t, r);
425
+ function Y(e, t, n) {
426
+ (n = n || {}).arrayMerge = n.arrayMerge || jt, n.isMergeableObject = n.isMergeableObject || Mt, n.cloneUnlessOtherwiseSpecified = re;
427
+ const r = Array.isArray(t);
428
+ return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Pt(e, t, n) : re(t, n);
429
429
  }
430
430
  Y.all = function(e, t) {
431
431
  if (!Array.isArray(e)) throw new Error("first argument should be an array");
432
- return e.reduce(function(r, n) {
433
- return Y(r, n, t);
432
+ return e.reduce(function(n, r) {
433
+ return Y(n, r, t);
434
434
  }, {});
435
435
  };
436
436
  const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
437
437
  let t = 16 * Math.random() | 0;
438
438
  return (e === "x" ? t : 3 & t | 8).toString(16);
439
- }), Ut = (e) => 1 * e, st = (e, t) => e === t || !(!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) && e.every((r, n) => r === t[n]), re = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, ct = (e) => typeof e != "object" || Array.isArray(e) || e === null ? e : (Object.keys(e).forEach(function(t) {
439
+ }), Ut = (e) => 1 * e, st = (e, t) => e === t || !(!Array.isArray(e) || !Array.isArray(t) || e.length !== t.length) && e.every((n, r) => n === t[r]), ne = (e) => typeof e == "object" && !Array.isArray(e) && e !== null, ct = (e) => typeof e != "object" || Array.isArray(e) || e === null ? e : (Object.keys(e).forEach(function(t) {
440
440
  e[t] && typeof e[t] == "object" ? ct(e[t]) : e[t] !== null && e[t] !== void 0 || delete e[t], typeof e[t] == "object" && Object.keys(e[t]).length === 0 && delete e[t];
441
- }), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !st(e, t)) || !!e.isEqual?.(t), ut = (e, t, r = Bt) => {
441
+ }), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !st(e, t)) || !!e.isEqual?.(t), ut = (e, t, n = Bt) => {
442
442
  if (e == null || e === t) return null;
443
- if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return r(e, t) ? null : e;
444
- const n = Object.keys(e);
445
- if (n.length === 0) return null;
443
+ if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return n(e, t) ? null : e;
444
+ const r = Object.keys(e);
445
+ if (r.length === 0) return null;
446
446
  let o = !1;
447
- for (let i = 0; i < n.length; i++) {
448
- const a = n[i];
449
- ut(e[a], t?.[a], r) === null && (o = !0, delete e[a]);
447
+ for (let a = 0; a < r.length; a++) {
448
+ const i = r[a];
449
+ ut(e[i], t?.[i], n) === null && (o = !0, delete e[i]);
450
450
  }
451
451
  return o && Object.keys(e).length === 0 ? null : void 0;
452
452
  }, Ke = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now(), Ve = (e) => e == null, qe = (e, t) => !(t.left > e.right || t.right < e.left || t.top > e.bottom || t.bottom < e.top), Ge = !(typeof window > "u" || !window.document || !window.document.createElement), k = { Windows: "windows", MacOS: "macos", IOS: "ios", Linux: "linux", Android: "android", Safari: "safari", Firefox: "firefox", Node: "node", Unknown: "unknown" }, oe = () => {
@@ -457,9 +457,9 @@ const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () =>
457
457
  function dt() {
458
458
  return typeof process < "u" && process.release?.name === "node" || (typeof process < "u" && process.browser, !1);
459
459
  }
460
- const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), $t = Object.freeze(Object.defineProperty({ __proto__: null, EmptyArray: Ft, EmptyObject: Dt, OSType: k, arrayMove: function(e, t, r) {
461
- const n = e.slice();
462
- return n.splice(r < 0 ? n.length + r : r, 0, n.splice(t, 1)[0]), n;
460
+ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeElement || e?.contains(document.activeElement)), $t = Object.freeze(Object.defineProperty({ __proto__: null, EmptyArray: Ft, EmptyObject: Dt, OSType: k, arrayMove: function(e, t, n) {
461
+ const r = e.slice();
462
+ return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
463
463
  }, asNumber: (e) => {
464
464
  const t = Ut(e);
465
465
  return Number.isFinite(t) ? t : 0;
@@ -471,330 +471,330 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
471
471
  setTimeout(() => {
472
472
  Function("console.log.apply(console, arguments)").apply(null, e), t();
473
473
  });
474
- }), debounce: function(e, t = 300, r = !1) {
475
- let n, o, i, a, l = 0;
474
+ }), debounce: function(e, t = 300, n = !1) {
475
+ let r, o, a, i, l = 0;
476
476
  function u() {
477
477
  let w = Date.now() - l;
478
- w < t && w >= 0 ? n = setTimeout(u, t - w) : (n = null, r || (a = e.apply(i, o), i = o = null));
478
+ w < t && w >= 0 ? r = setTimeout(u, t - w) : (r = null, n || (i = e.apply(a, o), a = o = null));
479
479
  }
480
480
  t == null && (t = 100);
481
481
  const p = function() {
482
- i = globalThis, o = arguments, l = Date.now();
483
- var w = r && !n;
484
- return n || (n = setTimeout(u, t)), w && (a = e.apply(i, o), i = o = null), a;
482
+ a = globalThis, o = arguments, l = Date.now();
483
+ var w = n && !r;
484
+ return r || (r = setTimeout(u, t)), w && (i = e.apply(a, o), a = o = null), i;
485
485
  };
486
486
  return p.clear = function() {
487
- n && (clearTimeout(n), n = null);
487
+ r && (clearTimeout(r), r = null);
488
488
  }, p.flush = function() {
489
- n && (a = e.apply(i, o), i = o = null, clearTimeout(n), n = null);
489
+ r && (i = e.apply(a, o), a = o = null, clearTimeout(r), r = null);
490
490
  }, p;
491
- }, deepEqual: function e(t, r) {
492
- if (t === r) return !0;
493
- if (t && r && typeof t == "object" && typeof r == "object") {
494
- if (t.constructor !== r.constructor) return !1;
495
- let n, o, i;
491
+ }, deepEqual: function e(t, n) {
492
+ if (t === n) return !0;
493
+ if (t && n && typeof t == "object" && typeof n == "object") {
494
+ if (t.constructor !== n.constructor) return !1;
495
+ let r, o, a;
496
496
  if (Array.isArray(t)) {
497
- if (n = t.length, n != r.length) return !1;
498
- for (o = n; o-- !== 0; ) if (!e(t[o], r[o])) return !1;
497
+ if (r = t.length, r != n.length) return !1;
498
+ for (o = r; o-- !== 0; ) if (!e(t[o], n[o])) return !1;
499
499
  return !0;
500
500
  }
501
- if (t instanceof Map && r instanceof Map) {
502
- if (t.size !== r.size) return !1;
503
- for (o of t.entries()) if (!r.has(o[0])) return !1;
504
- for (o of t.entries()) if (!e(o[1], r.get(o[0]))) return !1;
501
+ if (t instanceof Map && n instanceof Map) {
502
+ if (t.size !== n.size) return !1;
503
+ for (o of t.entries()) if (!n.has(o[0])) return !1;
504
+ for (o of t.entries()) if (!e(o[1], n.get(o[0]))) return !1;
505
505
  return !0;
506
506
  }
507
- if (t instanceof Set && r instanceof Set) {
508
- if (t.size !== r.size) return !1;
509
- for (o of t.entries()) if (!r.has(o[0])) return !1;
507
+ if (t instanceof Set && n instanceof Set) {
508
+ if (t.size !== n.size) return !1;
509
+ for (o of t.entries()) if (!n.has(o[0])) return !1;
510
510
  return !0;
511
511
  }
512
- if (ArrayBuffer.isView(t) && ArrayBuffer.isView(r)) {
513
- if (n = t.length, n != r.length) return !1;
514
- for (o = n; o-- !== 0; ) if (t[o] !== r[o]) return !1;
512
+ if (ArrayBuffer.isView(t) && ArrayBuffer.isView(n)) {
513
+ if (r = t.length, r != n.length) return !1;
514
+ for (o = r; o-- !== 0; ) if (t[o] !== n[o]) return !1;
515
515
  return !0;
516
516
  }
517
- if (t.constructor === RegExp) return t.source === r.source && t.flags === r.flags;
518
- if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === r.valueOf();
519
- if (t.toString !== Object.prototype.toString) return t.toString() === r.toString();
520
- if (i = Object.keys(t), n = i.length, n !== Object.keys(r).length) return !1;
521
- for (o = n; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(r, i[o])) return !1;
522
- for (o = n; o-- !== 0; ) {
523
- let a = i[o];
524
- if ((a !== "_owner" || !t.$$typeof) && !e(t[a], r[a])) return !1;
517
+ if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags;
518
+ if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf();
519
+ if (t.toString !== Object.prototype.toString) return t.toString() === n.toString();
520
+ if (a = Object.keys(t), r = a.length, r !== Object.keys(n).length) return !1;
521
+ for (o = r; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(n, a[o])) return !1;
522
+ for (o = r; o-- !== 0; ) {
523
+ let i = a[o];
524
+ if ((i !== "_owner" || !t.$$typeof) && !e(t[i], n[i])) return !1;
525
525
  }
526
526
  return !0;
527
527
  }
528
- return t != t && r != r;
528
+ return t != t && n != n;
529
529
  }, deepFreeze: function e(t) {
530
- return Object.freeze(t), Object.keys(t).forEach((r) => {
531
- typeof t[r] != "object" || t[r] === null || Object.isFrozen(t[r]) || e(t[r]);
530
+ return Object.freeze(t), Object.keys(t).forEach((n) => {
531
+ typeof t[n] != "object" || t[n] === null || Object.isFrozen(t[n]) || e(t[n]);
532
532
  }), t;
533
533
  }, deepMerge: Y, diffValues: (e, t) => {
534
- const r = {}, n = Object.keys(t), o = n.length;
535
- for (let i = 0; i < o; i++) {
536
- const a = n[i];
537
- e[a] !== t[a] && (e[a] === void 0 ? r[a] = t[a] : r[a] = e[a]);
538
- }
539
- return Object.keys(r).length === 0 ? null : r;
540
- }, findEqualOrGreater: function(e, t, r = ze) {
541
- let n = 0, o = e.length - 1;
542
- for (; n <= o; ) {
543
- let i = Math.floor((n + o) / 2), a = r(e[i]);
544
- if (a === t) return i;
545
- a < t ? n = i + 1 : o = i - 1;
534
+ const n = {}, r = Object.keys(t), o = r.length;
535
+ for (let a = 0; a < o; a++) {
536
+ const i = r[a];
537
+ e[i] !== t[i] && (e[i] === void 0 ? n[i] = t[i] : n[i] = e[i]);
538
+ }
539
+ return Object.keys(n).length === 0 ? null : n;
540
+ }, findEqualOrGreater: function(e, t, n = ze) {
541
+ let r = 0, o = e.length - 1;
542
+ for (; r <= o; ) {
543
+ let a = Math.floor((r + o) / 2), i = n(e[a]);
544
+ if (i === t) return a;
545
+ i < t ? r = a + 1 : o = a - 1;
546
546
  }
547
- return n;
548
- }, findEqualOrLesser: function(e, t, r = ze) {
549
- let n = e.length - 1, o = 0;
550
- for (; n >= o; ) {
551
- let i = Math.floor((n + o) / 2), a = r(e[i]);
552
- if (a === t) return i;
553
- a > t ? n = i - 1 : o = i + 1;
547
+ return r;
548
+ }, findEqualOrLesser: function(e, t, n = ze) {
549
+ let r = e.length - 1, o = 0;
550
+ for (; r >= o; ) {
551
+ let a = Math.floor((r + o) / 2), i = n(e[a]);
552
+ if (i === t) return a;
553
+ i > t ? r = a - 1 : o = a + 1;
554
554
  }
555
- return n;
556
- }, findNextStep: (e, t = !0, r = 15, n = 10, o = 400) => {
557
- const i = Math.max(e - n, 0) + (t ? 1 : -1);
558
- return Math.min(o, Math[t ? "ceil" : "floor"](i / r) * r + n);
555
+ return r;
556
+ }, findNextStep: (e, t = !0, n = 15, r = 10, o = 400) => {
557
+ const a = Math.max(e - r, 0) + (t ? 1 : -1);
558
+ return Math.min(o, Math[t ? "ceil" : "floor"](a / n) * n + r);
559
559
  }, getDPI: () => {
560
560
  let e = 1;
561
561
  return typeof window == "object" && (e = window.devicePixelRatio || 1), e;
562
562
  }, getFromPath: (e, t) => {
563
- const r = t.split(".");
564
- let n = e;
565
- for (let o = 0; o < r.length; o++) {
566
- const i = r[o];
567
- if (!n) return null;
568
- let a = n[i];
569
- if (typeof a == "function" && (a = a.bind(n)()), !a || !re(a)) return a;
570
- n = a;
571
- }
572
- return n ?? null;
563
+ const n = t.split(".");
564
+ let r = e;
565
+ for (let o = 0; o < n.length; o++) {
566
+ const a = n[o];
567
+ if (!r) return null;
568
+ let i = r[a];
569
+ if (typeof i == "function" && (i = i.bind(r)()), !i || !ne(i)) return i;
570
+ r = i;
571
+ }
572
+ return r ?? null;
573
573
  }, getOS: oe, hasFocus: We, isDefined: (e) => e != null, isEmpty: (e) => e == null || e === "", isEqualArrays: st, isEqualBounds: (e, t) => e === t || !(e && !t || t && !e) && e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, isEqualObjectKeys: (e, t) => {
574
574
  if (e === t) return !0;
575
575
  if (e && !t || t && !e) return !1;
576
- const r = Object.keys(e);
577
- if (r.length !== Object.keys(t).length) return !1;
578
- for (let n = 0; n < r.length; n++) if (e[r[n]] !== t[r[n]]) return !1;
576
+ const n = Object.keys(e);
577
+ if (n.length !== Object.keys(t).length) return !1;
578
+ for (let r = 0; r < n.length; r++) if (e[n[r]] !== t[n[r]]) return !1;
579
579
  return !0;
580
580
  }, isNode: dt, isNullOrUndefined: Ve, isNumeric: (e) => {
581
581
  const t = 1 * e;
582
582
  return Number.isFinite(t) && typeof t == "number";
583
- }, isObject: re, isPromiseLike: (e) => !!e && typeof e.then == "function", isRectInsideRect: (e, t) => e.top >= t.top && e.bottom <= t.bottom && e.left >= t.left && e.right <= t.right, isRectIntersect: qe, mergeContentful: (...e) => {
583
+ }, isObject: ne, isPromiseLike: (e) => !!e && typeof e.then == "function", isRectInsideRect: (e, t) => e.top >= t.top && e.bottom <= t.bottom && e.left >= t.left && e.right <= t.right, isRectIntersect: qe, mergeContentful: (...e) => {
584
584
  const t = e.length;
585
- if (t > 0 && e[t - 1] !== void 0 && !re(e[t - 1])) return e[t - 1];
586
- let r = e[0] || {};
587
- for (let n = 1; n < t; n++) r = Y(r, e[n] || {}, { arrayMerge: (o, i) => [...i] });
588
- return r;
585
+ if (t > 0 && e[t - 1] !== void 0 && !ne(e[t - 1])) return e[t - 1];
586
+ let n = e[0] || {};
587
+ for (let r = 1; r < t; r++) n = Y(n, e[r] || {}, { arrayMerge: (o, a) => [...a] });
588
+ return n;
589
589
  }, nextTick: (e) => {
590
590
  typeof window < "u" && typeof window.requestAnimationFrame == "function" ? window.requestAnimationFrame(() => {
591
591
  e();
592
592
  }) : (typeof setImmediate == "function" ? setImmediate : setTimeout)(() => {
593
593
  e();
594
594
  });
595
- }, openFileDialog: (e = "*.*") => new Promise((t, r) => {
596
- if (!Ge) return void r("Unable to open dialog with no dom.");
597
- const n = document.createElement("input");
598
- n.type = "file", n.accept = e;
599
- let o = null, i = !1;
595
+ }, openFileDialog: (e = "*.*") => new Promise((t, n) => {
596
+ if (!Ge) return void n("Unable to open dialog with no dom.");
597
+ const r = document.createElement("input");
598
+ r.type = "file", r.accept = e;
599
+ let o = null, a = !1;
600
600
  globalThis.addEventListener?.("focus", () => {
601
601
  setTimeout(() => {
602
- o || i || (i = !0, t(null));
602
+ o || a || (a = !0, t(null));
603
603
  }, 1e3);
604
- }, { once: !0, passive: !0 }), n.onchange = () => {
605
- if (o = n.files[0], o) {
606
- if (i) return void console.warn("File open detected after faux cancel.", o);
604
+ }, { once: !0, passive: !0 }), r.onchange = () => {
605
+ if (o = r.files[0], o) {
606
+ if (a) return void console.warn("File open detected after faux cancel.", o);
607
607
  t(o);
608
608
  }
609
- }, n.autofocus = !0, n.click();
609
+ }, r.autofocus = !0, r.click();
610
610
  }), rafThrottle: (e) => {
611
- let t, r = !1, n = function() {
612
- r = !1, e(t);
611
+ let t, n = !1, r = function() {
612
+ n = !1, e(t);
613
613
  };
614
614
  return function(o) {
615
- t = o, t && t.persist && t.persist(), r || (r = !0, requestAnimationFrame(n));
615
+ t = o, t && t.persist && t.persist(), n || (n = !0, requestAnimationFrame(r));
616
616
  };
617
617
  }, removeEmptyProperties: ct, removeEqualValues: ut, removeListenerAll: (e) => {
618
618
  if (!e) return [];
619
619
  for (let t = 0; t < e.length; t++) e[t] && e[t]();
620
620
  return [];
621
621
  }, requestTimeout: (e, t) => {
622
- const r = Ke(), n = { id: requestAnimationFrame(function o() {
623
- Ke() - r >= t ? e.call(null) : n.id = requestAnimationFrame(o);
622
+ const n = Ke(), r = { id: requestAnimationFrame(function o() {
623
+ Ke() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
624
624
  }) };
625
- return n;
625
+ return r;
626
626
  }, roundAccurately: (e, t = 0) => {
627
627
  if (e == null || !isFinite(e)) return null;
628
- const r = 10 ** t;
629
- return Number(Math.round(e * r) / r);
630
- }, setToPath: (e, t, r) => {
631
- const n = t.split(".");
628
+ const n = 10 ** t;
629
+ return Number(Math.round(e * n) / n);
630
+ }, setToPath: (e, t, n) => {
631
+ const r = t.split(".");
632
632
  let o = e;
633
633
  if (!o) throw new Error("Can not set path to a null path.");
634
- for (let i = 0; o && i < n.length - 1; i++) {
635
- const a = n[i];
636
- let l = o[a];
637
- if (l == null && (l = {}, o[a] = l), !re(l)) throw new Error("Can not set path to a non object path.");
634
+ for (let a = 0; o && a < r.length - 1; a++) {
635
+ const i = r[a];
636
+ let l = o[i];
637
+ if (l == null && (l = {}, o[i] = l), !ne(l)) throw new Error("Can not set path to a non object path.");
638
638
  o = l;
639
639
  }
640
- if (typeof r != "number" && typeof r != "boolean" && typeof r != "string" && !re(r)) throw new Error(\`Can not set path to \${r} that is not a a supported primitive.\`);
641
- return o[n[n.length - 1]] = r, e;
640
+ if (typeof n != "number" && typeof n != "boolean" && typeof n != "string" && !ne(n)) throw new Error(\`Can not set path to \${n} that is not a a supported primitive.\`);
641
+ return o[r[r.length - 1]] = n, e;
642
642
  }, splitNumber: (e) => {
643
643
  let t = Math.abs(e);
644
644
  if (isNaN(t) || !isFinite(e)) return null;
645
- let r = 0 | t, n = t - r, o = 0, i = 0, a = 1;
646
- if (n > 5e-8) for (; i < 8 && Math.abs(o / a - n) > 5e-8; ) i++, a *= 10, o = Math.round(n * a);
647
- return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(r + 1)), fpLength: i };
648
- }, subtractRect: (e, t, r = !1) => {
645
+ let n = 0 | t, r = t - n, o = 0, a = 0, i = 1;
646
+ if (r > 5e-8) for (; a < 8 && Math.abs(o / i - r) > 5e-8; ) a++, i *= 10, o = Math.round(r * i);
647
+ return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(n + 1)), fpLength: a };
648
+ }, subtractRect: (e, t, n = !1) => {
649
649
  if (!t) return [e];
650
650
  if (!qe(e, t)) return [];
651
- const n = [];
651
+ const r = [];
652
652
  let o = e;
653
- const i = () => {
654
- t.top > o.top && t.top < o.bottom && (n.push({ ...o, bottom: t.top }), o = { ...o, top: t.top });
655
- }, a = () => {
656
- t.bottom > o.top && t.bottom < o.bottom && (n.push({ ...o, top: t.bottom }), o = { ...o, bottom: t.bottom });
653
+ const a = () => {
654
+ t.top > o.top && t.top < o.bottom && (r.push({ ...o, bottom: t.top }), o = { ...o, top: t.top });
655
+ }, i = () => {
656
+ t.bottom > o.top && t.bottom < o.bottom && (r.push({ ...o, top: t.bottom }), o = { ...o, bottom: t.bottom });
657
657
  }, l = () => {
658
- t.right > o.left && t.right < o.right && (n.push({ ...o, left: t.right }), o = { ...o, right: t.right });
658
+ t.right > o.left && t.right < o.right && (r.push({ ...o, left: t.right }), o = { ...o, right: t.right });
659
659
  }, u = () => {
660
- t.left > o.left && t.left < o.right && (n.push({ ...o, right: t.left }), o = { ...o, left: t.left });
660
+ t.left > o.left && t.left < o.right && (r.push({ ...o, right: t.left }), o = { ...o, left: t.left });
661
661
  };
662
- return r ? (u(), l(), i(), a()) : (i(), a(), l(), u()), n;
662
+ return n ? (u(), l(), a(), i()) : (a(), i(), l(), u()), r;
663
663
  }, textToKey: (e) => e.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), throttle: function(e, t) {
664
- let r = null;
665
- return (...n) => {
664
+ let n = null;
665
+ return (...r) => {
666
666
  const o = Date.now();
667
- (!r || o - r >= t) && (r = o, e(...n));
667
+ (!n || o - n >= t) && (n = o, e(...r));
668
668
  };
669
669
  }, toSafeJSON: function e(t) {
670
670
  if (t === null || typeof t != "object") return t;
671
671
  if (typeof t.toJSON == "function") return t.toJSON();
672
- if (Array.isArray(t)) return t.map((n) => e(n));
672
+ if (Array.isArray(t)) return t.map((r) => e(r));
673
673
  if (typeof t.toString == "function" && t.toString !== Object.prototype.toString) return t.toString();
674
- const r = {};
675
- for (const n in t) t.hasOwnProperty(n) && (r[n] = e(t[n]));
676
- return r;
674
+ const n = {};
675
+ for (const r in t) t.hasOwnProperty(r) && (n[r] = e(t[r]));
676
+ return n;
677
677
  }, transpose: (e) => {
678
678
  if (!e) return e;
679
- const t = e.length, r = e[0].length, n = [];
680
- for (let o = 0; o < r; o++) n[o] = Array(t);
681
- for (let o = 0; o < t; o++) for (let i = 0; i < r; i++) n[i][o] = e[o][i];
682
- return n;
679
+ const t = e.length, n = e[0].length, r = [];
680
+ for (let o = 0; o < n; o++) r[o] = Array(t);
681
+ for (let o = 0; o < t; o++) for (let a = 0; a < n; a++) r[a][o] = e[o][a];
682
+ return r;
683
683
  }, uuidV4: de, validEnumValue: (e, t) => {
684
684
  if (!Object.values(e).includes(t)) throw new Error(\`Invalid type: \${t ?? "null"}. Must be one of: \${Object.values(t).join(", ")}.\`);
685
- }, whenFocus: async (e, t = !1) => new Promise((r) => {
686
- We(e, t) ? r(!0) : e.addEventListener("focusin", () => {
687
- r(!0);
685
+ }, whenFocus: async (e, t = !1) => new Promise((n) => {
686
+ We(e, t) ? n(!0) : e.addEventListener("focusin", () => {
687
+ n(!0);
688
688
  }, { once: !0 }), e.focus();
689
689
  }) }, Symbol.toStringTag, { value: "Module" }));
690
690
  Object.freeze(Object.defineProperty({ __proto__: null, MESSAGE_ERROR_INVALID_ARG: (e) => \`Invalid argument: '\${e}'.\` }, Symbol.toStringTag, { value: "Module" }));
691
691
  const ft = (e) => {
692
- const t = new Uint8Array(e), r = t.byteLength;
693
- let n = "";
694
- for (let o = 0; o < r; o++) n += String.fromCharCode(t[o]);
695
- if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(n);
696
- if (typeof Buffer < "u") return Buffer.from(n, "binary").toString("base64");
692
+ const t = new Uint8Array(e), n = t.byteLength;
693
+ let r = "";
694
+ for (let o = 0; o < n; o++) r += String.fromCharCode(t[o]);
695
+ if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(r);
696
+ if (typeof Buffer < "u") return Buffer.from(r, "binary").toString("base64");
697
697
  throw new Error("Unsupported environment");
698
- }, Ce = (e) => new Promise((t, r) => {
698
+ }, Ce = (e) => new Promise((t, n) => {
699
699
  if (e) if (typeof FileReader < "u") {
700
- const n = new FileReader();
701
- n.onload = () => {
702
- t(n.result);
703
- }, n.onerror = () => {
704
- r(n.error);
705
- }, n.readAsText(e);
700
+ const r = new FileReader();
701
+ r.onload = () => {
702
+ t(r.result);
703
+ }, r.onerror = () => {
704
+ n(r.error);
705
+ }, r.readAsText(e);
706
706
  } else if (typeof Buffer < "u") {
707
- const n = (o) => Buffer.from(o).toString("utf-8");
707
+ const r = (o) => Buffer.from(o).toString("utf-8");
708
708
  e.arrayBuffer().then((o) => {
709
- t(n(o));
709
+ t(r(o));
710
710
  }).catch((o) => {
711
- r(o);
711
+ n(o);
712
712
  });
713
- } else r(new Error("Unsupported environment"));
713
+ } else n(new Error("Unsupported environment"));
714
714
  else t("");
715
715
  });
716
716
  Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64: ft, base64ToArrayBuffer: (e) => {
717
- const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"), r = t.length, n = new Uint8Array(r);
718
- for (let o = 0; o < r; o++) n[o] = t.charCodeAt(o);
719
- return n.buffer;
717
+ const t = typeof window < "u" && typeof globalThis.atob == "function" ? globalThis.atob(e) : Buffer.from(e, "base64").toString("binary"), n = t.length, r = new Uint8Array(n);
718
+ for (let o = 0; o < n; o++) r[o] = t.charCodeAt(o);
719
+ return r.buffer;
720
720
  }, blobToString: Ce }, Symbol.toStringTag, { value: "Module" }));
721
- const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) => new Promise(async (t, r) => {
722
- let n = null;
721
+ const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) => new Promise(async (t, n) => {
722
+ let r = null;
723
723
  try {
724
- n = new Image(), n.src = e, n.addEventListener("load", function() {
725
- t({ width: n.naturalWidth, height: n.naturalHeight });
726
- }, { once: !0 }), n.addEventListener("error", function() {
727
- URL.revokeObjectURL(e), r("Invalid Image");
728
- }, { once: !0 }), await n.decode("sync");
724
+ r = new Image(), r.src = e, r.addEventListener("load", function() {
725
+ t({ width: r.naturalWidth, height: r.naturalHeight });
726
+ }, { once: !0 }), r.addEventListener("error", function() {
727
+ URL.revokeObjectURL(e), n("Invalid Image");
728
+ }, { once: !0 }), await r.decode("sync");
729
729
  } catch {
730
- n?.src && URL.revokeObjectURL(n.src);
730
+ r?.src && URL.revokeObjectURL(r.src);
731
731
  }
732
- n || r(ht);
732
+ r || n(ht);
733
733
  }), we = "image/svg+xml";
734
- Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt, getImageDataUrl: (e, t = 1) => new Promise(async (r, n) => {
734
+ Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt, getImageDataUrl: (e, t = 1) => new Promise(async (n, r) => {
735
735
  let o = null;
736
736
  try {
737
737
  o = new Image(), o.src = e, o.addEventListener("load", function() {
738
738
  try {
739
- const i = document.createElement("canvas");
740
- i.width = o.naturalWidth, i.height = o.naturalHeight, i.getContext("2d").drawImage(o, 0, 0);
741
- const a = i.toDataURL("image/png", t);
742
- r({ elemImg: o, dataUrl: a });
743
- } catch (i) {
744
- URL.revokeObjectURL(e), n(i);
739
+ const a = document.createElement("canvas");
740
+ a.width = o.naturalWidth, a.height = o.naturalHeight, a.getContext("2d").drawImage(o, 0, 0);
741
+ const i = a.toDataURL("image/png", t);
742
+ n({ elemImg: o, dataUrl: i });
743
+ } catch (a) {
744
+ URL.revokeObjectURL(e), r(a);
745
745
  }
746
746
  }, { once: !0 }), o.addEventListener("error", function() {
747
- URL.revokeObjectURL(e), n("Invalid Image");
747
+ URL.revokeObjectURL(e), r("Invalid Image");
748
748
  }, { once: !0 }), await o.decode("sync");
749
749
  } catch {
750
750
  o?.src && URL.revokeObjectURL(o.src);
751
751
  }
752
- o || n(ht);
752
+ o || r(ht);
753
753
  }), loadImageDetails: async (e, t = null) => {
754
- let r = null;
755
- const n = async () => {
754
+ let n = null;
755
+ const r = async () => {
756
756
  try {
757
- const i = t ?? "image/*", a = URL.createObjectURL(new Blob([e], { type: i })), l = await Ye(a);
758
- r = { mimeType: i, naturalDimensions: l, asUrl: a };
757
+ const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await Ye(i);
758
+ n = { mimeType: a, naturalSize: l, asUrl: i };
759
759
  } catch {
760
760
  }
761
761
  }, o = async () => {
762
762
  try {
763
- const i = new TextDecoder().decode(e), a = URL.createObjectURL(new Blob([i], { type: we })), l = await Ye(a);
764
- r = { mimeType: t ?? we, naturalDimensions: l, asUrl: a, asSVGText: i };
763
+ const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type: we })), l = await Ye(i);
764
+ n = { mimeType: t ?? we, naturalSize: l, asUrl: i, asSVGText: a };
765
765
  } catch {
766
766
  }
767
767
  };
768
- if (t === we ? await o() : t.startsWith("image/") ? await n() : (await n(), r || await o()), !r) throw new Error("Failed to load image");
769
- return r;
768
+ if (t === we ? await o() : t.startsWith("image/") ? await r() : (await r(), n || await o()), !n) throw new Error("Failed to load image");
769
+ return n;
770
770
  } }, Symbol.toStringTag, { value: "Module" }));
771
771
  var Je, He;
772
- (He = Je || (Je = {})).resolveTypedUpdates = (e, t, r, n) => {
772
+ (He = Je || (Je = {})).resolveTypedUpdates = (e, t, n, r) => {
773
773
  if (e === null) return e;
774
- if (e === void 0) return n;
774
+ if (e === void 0) return r;
775
775
  let o = e;
776
776
  if (t?.shorthand) {
777
- const u = t?.shorthand(e, r);
777
+ const u = t?.shorthand(e, n);
778
778
  u !== void 0 && (o = u);
779
779
  }
780
780
  if (o !== null && t?.getSubType) {
781
781
  const u = t.getSubType(o);
782
782
  u && (t = u);
783
783
  }
784
- const i = t?.properties, a = t?.arrayType ?? !1;
784
+ const a = t?.properties, i = t?.arrayType ?? !1;
785
785
  let l = o;
786
- if (t && t.merge && l && n) l = t.merge(l, n, r);
787
- else if (!a && i) {
788
- const u = Object.keys({ ...o, ...n });
786
+ if (t && t.merge && l && r) l = t.merge(l, r, n);
787
+ else if (!i && a) {
788
+ const u = Object.keys({ ...o, ...r });
789
789
  l = null;
790
790
  const p = u.length;
791
791
  for (let w = 0; w < p; w++) {
792
792
  const g = u[w];
793
793
  let f, y = o[g];
794
794
  if (y !== void 0) {
795
- const x = i[g];
796
- f = x ? (0, He.resolveTypedUpdates)(y, x, r, n?.[g]) : y;
797
- } else f = n?.[g];
795
+ const x = a[g];
796
+ f = x ? (0, He.resolveTypedUpdates)(y, x, n, r?.[g]) : y;
797
+ } else f = r?.[g];
798
798
  f != null && (l = l ?? {}, l[g] = f);
799
799
  }
800
800
  }
@@ -811,21 +811,21 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
811
811
  document.hasFocus() ? e() : globalThis.addEventListener?.("focus", () => {
812
812
  e();
813
813
  }, { once: !0 }), document.activeElement.focus?.();
814
- }), be = async (e, t, r) => {
815
- if (oe() === k.Safari) return await r(new Error(mt.Safari));
814
+ }), be = async (e, t, n) => {
815
+ if (oe() === k.Safari) return await n(new Error(mt.Safari));
816
816
  try {
817
- const n = async (a) => {
817
+ const r = async (i) => {
818
818
  try {
819
- return await a();
819
+ return await i();
820
820
  } catch (l) {
821
821
  if (l.message?.includes("Document is not focused")) return !1;
822
822
  throw l;
823
823
  }
824
824
  }, o = await globalThis?.navigator?.permissions?.query({ name: e, allowWithoutGesture: !0, allowWithoutSanitization: !0 });
825
- let i = !1;
826
- if (o.state === "prompt" && (i = await n(t)), i || o.state !== "granted" || (i = await t()), !i) return await r(new Error(o.state));
827
- } catch (n) {
828
- return n.message === "No valid data on clipboard" || n.name === "DataError" ? void 0 : await r(n);
825
+ let a = !1;
826
+ if (o.state === "prompt" && (a = await r(t)), a || o.state !== "granted" || (a = await t()), !a) return await n(new Error(o.state));
827
+ } catch (r) {
828
+ return r.message === "No valid data on clipboard" || r.name === "DataError" ? void 0 : await n(r);
829
829
  }
830
830
  }, wt = async (e) => {
831
831
  try {
@@ -835,77 +835,77 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
835
835
  return await e.read();
836
836
  }, zt = async (e, t) => {
837
837
  if (!e) return null;
838
- const r = await wt(e);
839
- let n = !1;
840
- for (let o = 0; !n && r && o < r.length; o++) if (n = r[o].types.includes(t), n)
841
- return await r[o].getType(t);
842
- return n ? void 0 : null;
838
+ const n = await wt(e);
839
+ let r = !1;
840
+ for (let o = 0; !r && n && o < n.length; o++) if (r = n[o].types.includes(t), r)
841
+ return await n[o].getType(t);
842
+ return r ? void 0 : null;
843
843
  };
844
844
  if (!globalThis.ClipboardItem) {
845
- const e = (r, n) => new Blob([n], { type: r });
845
+ const e = (n, r) => new Blob([r], { type: n });
846
846
  class t {
847
- constructor(n, o) {
848
- this._items = {}, this._types = Object.keys(n);
849
- const i = {}, a = Object.keys(n);
850
- for (let l = 0; l < a.length; l++) {
851
- const u = a[l];
852
- let p = n[u];
853
- i[u] = typeof p == "string" ? e(u, p) : p;
847
+ constructor(r, o) {
848
+ this._items = {}, this._types = Object.keys(r);
849
+ const a = {}, i = Object.keys(r);
850
+ for (let l = 0; l < i.length; l++) {
851
+ const u = i[l];
852
+ let p = r[u];
853
+ a[u] = typeof p == "string" ? e(u, p) : p;
854
854
  }
855
- this._items = i, this._presentationStyle = o?.presentationStyle ?? "unspecified";
855
+ this._items = a, this._presentationStyle = o?.presentationStyle ?? "unspecified";
856
856
  }
857
857
  get types() {
858
858
  return this._types;
859
859
  }
860
- getType(n) {
861
- return Promise.resolve(this._items[n]);
860
+ getType(r) {
861
+ return Promise.resolve(this._items[r]);
862
862
  }
863
- supports(n) {
863
+ supports(r) {
864
864
  return !0;
865
865
  }
866
866
  }
867
867
  globalThis.ClipboardItem = t;
868
868
  }
869
- const ve = async (e, t = S.html) => new Promise(async (r, n) => {
869
+ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
870
870
  try {
871
871
  const o = await zt(e, t);
872
872
  if (o) {
873
- const i = new FileReader();
874
- i.onload = () => {
875
- r(i.result);
876
- }, i.onerror = () => {
877
- r("");
878
- }, i.readAsText(o);
879
- } else r("");
873
+ const a = new FileReader();
874
+ a.onload = () => {
875
+ n(a.result);
876
+ }, a.onerror = () => {
877
+ n("");
878
+ }, a.readAsText(o);
879
+ } else n("");
880
880
  } catch (o) {
881
- n(o);
881
+ r(o);
882
882
  }
883
883
  }), Ze = async (e, t = S.html) => {
884
- const r = await ve(e, t);
885
- if (!r) return null;
886
- let n = null;
884
+ const n = await ve(e, t);
885
+ if (!n) return null;
886
+ let r = null;
887
887
  try {
888
- n = new DOMParser().parseFromString(r, S.html);
888
+ r = new DOMParser().parseFromString(n, S.html);
889
889
  } catch {
890
890
  console.warn("Can't parse html from clipboard.");
891
891
  }
892
- return n;
892
+ return r;
893
893
  }, Kt = async (e) => {
894
894
  e && await e.writeText("");
895
- }, ie = "clipboard-uuid", Q = "web text/uuid", Qe = (e) => \`<div style="display:none" \${ie}="\${e}"/>\`, Vt = (e, t) => {
896
- let r = null;
895
+ }, ae = "clipboard-uuid", Q = "web text/uuid", Qe = (e) => \`<div style="display:none" \${ae}="\${e}"/>\`, Vt = (e, t) => {
896
+ let n = null;
897
897
  try {
898
- const n = new DOMParser().parseFromString(t, S.html);
899
- n.body.firstElementChild.setAttribute(ie, e), r = n.getElementsByTagName("body")[0].innerHTML;
900
- } catch (n) {
901
- console.warn("Can't embed uuid.", n);
898
+ const r = new DOMParser().parseFromString(t, S.html);
899
+ r.body.firstElementChild.setAttribute(ae, e), n = r.getElementsByTagName("body")[0].innerHTML;
900
+ } catch (r) {
901
+ console.warn("Can't embed uuid.", r);
902
902
  }
903
- return r;
903
+ return n;
904
904
  }, et = (e, t) => {
905
905
  if (!t || !e) return !1;
906
906
  try {
907
- const r = t.querySelectorAll(\`[\${ie}="\${e}"]\`);
908
- if (r && r.length === 1) return !0;
907
+ const n = t.querySelectorAll(\`[\${ae}="\${e}"]\`);
908
+ if (n && n.length === 1) return !0;
909
909
  if (t.querySelector("parsererror")) throw new Error("We are unable to parse node");
910
910
  return !1;
911
911
  } catch {
@@ -927,8 +927,8 @@ class tt {
927
927
  await ge();
928
928
  const t = await ve(this._nativeClipboard, Q);
929
929
  if (!this._state || t && t === this._state.uuid) return !0;
930
- const r = await Ze(this._nativeClipboard, S.html);
931
- return !this._state || (et(this._state.uuid, r) || this.clear(), !0);
930
+ const n = await Ze(this._nativeClipboard, S.html);
931
+ return !this._state || (et(this._state.uuid, n) || this.clear(), !0);
932
932
  }, async (t) => {
933
933
  t?.message === "denied" || t.message?.includes("Document is not focused") || oe() === k.Safari || console.warn("Unable to detect clipboard changes: ", t);
934
934
  });
@@ -939,7 +939,7 @@ class tt {
939
939
  t._checkForChanges();
940
940
  }, this._onBlur = () => {
941
941
  globalThis.addEventListener?.("focus", t._onFocus, { once: !0 });
942
- }, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (r) => {
942
+ }, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (n) => {
943
943
  t._checkForChanges();
944
944
  }));
945
945
  }
@@ -948,13 +948,13 @@ class tt {
948
948
  const t = this;
949
949
  return await be("clipboard-read", async () => {
950
950
  if (await ge(), this._state?.uuid) {
951
- const r = await ve(this._nativeClipboard, Q);
952
- if (r && r === t._state.uuid) return !0;
953
- const n = await Ze(this._nativeClipboard, S.html);
954
- if (et(t._state?.uuid, n)) return !0;
951
+ const n = await ve(this._nativeClipboard, Q);
952
+ if (n && n === t._state.uuid) return !0;
953
+ const r = await Ze(this._nativeClipboard, S.html);
954
+ if (et(t._state?.uuid, r)) return !0;
955
955
  }
956
956
  return t._state = { items: await wt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), !0;
957
- }, async (r) => {
957
+ }, async (n) => {
958
958
  this.dispatchEvent(new Event("clipboarderrorread"));
959
959
  }), this._state?.items ?? [];
960
960
  }
@@ -963,15 +963,15 @@ class tt {
963
963
  }
964
964
  async _write(t) {
965
965
  if (!this._nativeClipboard) return this._state = t, this.dispatchEvent(new Event("clipboardwrite")), this.dispatchEvent(new Event("clipboardchange")), null;
966
- const r = this, n = [], o = t.uuid;
967
- let i = t.items ?? [];
968
- const a = () => {
969
- r._state = { uuid: o, ref: t.ref, items: n }, r.dispatchEvent(new Event("clipboardwrite")), r.dispatchEvent(new Event("clipboardchange"));
966
+ const n = this, r = [], o = t.uuid;
967
+ let a = t.items ?? [];
968
+ const i = () => {
969
+ n._state = { uuid: o, ref: t.ref, items: r }, n.dispatchEvent(new Event("clipboardwrite")), n.dispatchEvent(new Event("clipboardchange"));
970
970
  };
971
971
  await be("clipboard-write", async () => {
972
- await ge(), o && i.length === 0 && (i.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), i.push(new ClipboardItem({ [S.html]: new Blob([Qe(o)], { type: S.html }) })));
973
- for (let l = 0; l < Math.min(1, i.length); l++) {
974
- const u = i[l];
972
+ await ge(), o && a.length === 0 && (a.push(new ClipboardItem({ [Q]: new Blob([o], { type: Q }) })), a.push(new ClipboardItem({ [S.html]: new Blob([Qe(o)], { type: S.html }) })));
973
+ for (let l = 0; l < Math.min(1, a.length); l++) {
974
+ const u = a[l];
975
975
  let p = u.types.indexOf(S.html), w = null;
976
976
  if (p !== -1) {
977
977
  const y = await u.getType(S.html);
@@ -981,12 +981,12 @@ class tt {
981
981
  const y = await u.getType(S.plain);
982
982
  if (y) {
983
983
  let x = null;
984
- typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await Ce(y), x && (w = \`<div \${ie}="\${o}">\${x}</div>\`);
984
+ typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await Ce(y), x && (w = \`<div \${ae}="\${o}">\${x}</div>\`);
985
985
  }
986
986
  }
987
987
  if (!w && u.types.includes(S.png)) {
988
988
  const y = await u.getType(S.png), x = ft(await y.arrayBuffer());
989
- w = \`<div \${ie}="\${o}"><img src="\${pt + x}"/></div>\`;
989
+ w = \`<div \${ae}="\${o}"><img src="\${pt + x}"/></div>\`;
990
990
  }
991
991
  !w && o && (w = Qe(o));
992
992
  const g = new Blob([w ?? ""], { type: S.html }), f = {};
@@ -994,42 +994,42 @@ class tt {
994
994
  const x = u.types[y];
995
995
  f[x] = y === p ? g : u.getType(x);
996
996
  }
997
- w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), n.push(new ClipboardItem(f));
997
+ w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), r.push(new ClipboardItem(f));
998
998
  }
999
999
  try {
1000
- n && n.length !== 0 ? await this._nativeClipboard.write(n) : await Kt(this._nativeClipboard);
1000
+ r && r.length !== 0 ? await this._nativeClipboard.write(r) : await Kt(this._nativeClipboard);
1001
1001
  } catch (l) {
1002
1002
  l.message?.includes("Document is not focused") || console.warn("Unable to write to native clipboard: ", l);
1003
1003
  }
1004
- return a(), !0;
1004
+ return i(), !0;
1005
1005
  }, async (l) => {
1006
- this.dispatchEvent(new Event("clipboarderrorwrite")), a();
1006
+ this.dispatchEvent(new Event("clipboarderrorwrite")), i();
1007
1007
  });
1008
1008
  }
1009
1009
  async writeReference(t) {
1010
1010
  if (!t) return void this.clear();
1011
- let r = null;
1012
- const n = {};
1011
+ let n = null;
1012
+ const r = {};
1013
1013
  try {
1014
- const i = await t.toText?.() ?? null;
1015
- i && (n[S.plain] = new Blob([i ?? ""], { type: S.plain }));
1016
- } catch (i) {
1017
- r = i;
1014
+ const a = await t.toText?.() ?? null;
1015
+ a && (r[S.plain] = new Blob([a ?? ""], { type: S.plain }));
1016
+ } catch (a) {
1017
+ n = a;
1018
1018
  }
1019
1019
  try {
1020
- const i = await t.toHtml?.() ?? null;
1021
- i && (n[S.html] = new Blob([i], { type: S.html }));
1022
- } catch (i) {
1023
- r = i, console.warn("export to html", i);
1020
+ const a = await t.toHtml?.() ?? null;
1021
+ a && (r[S.html] = new Blob([a], { type: S.html }));
1022
+ } catch (a) {
1023
+ n = a, console.warn("export to html", a);
1024
1024
  }
1025
1025
  try {
1026
- const i = await t.toImage?.() ?? null;
1027
- i && (n[S.png] = i);
1028
- } catch (i) {
1029
- r = i, console.warn("export to png", i);
1026
+ const a = await t.toImage?.() ?? null;
1027
+ a && (r[S.png] = a);
1028
+ } catch (a) {
1029
+ n = a, console.warn("export to png", a);
1030
1030
  }
1031
- const o = this._write({ uuid: de(), ref: t, items: Object.keys(n).length > 0 ? [new ClipboardItem(n)] : null });
1032
- if (r) throw r;
1031
+ const o = this._write({ uuid: de(), ref: t, items: Object.keys(r).length > 0 ? [new ClipboardItem(r)] : null });
1032
+ if (n) throw n;
1033
1033
  return o;
1034
1034
  }
1035
1035
  clear(t = !1) {
@@ -1039,45 +1039,45 @@ class tt {
1039
1039
  return await this.read(), this._state?.ref ?? null;
1040
1040
  }
1041
1041
  readText() {
1042
- return new Promise(async (t, r) => {
1043
- const n = await this.read();
1042
+ return new Promise(async (t, n) => {
1043
+ const r = await this.read();
1044
1044
  let o = null;
1045
- for (let a = 0; !o && n && a < n.length; a++) n[a].types.includes(S.plain) && (o = await n[a].getType(S.plain));
1045
+ for (let i = 0; !o && r && i < r.length; i++) r[i].types.includes(S.plain) && (o = await r[i].getType(S.plain));
1046
1046
  if (!o) return void t("");
1047
- const i = new FileReader();
1048
- i.onload = () => {
1049
- t(i.result);
1050
- }, i.readAsText(o), i.onerror = (a) => {
1051
- r(a);
1047
+ const a = new FileReader();
1048
+ a.onload = () => {
1049
+ t(a.result);
1050
+ }, a.readAsText(o), a.onerror = (i) => {
1051
+ n(i);
1052
1052
  };
1053
1053
  });
1054
1054
  }
1055
1055
  async writeText(t) {
1056
- const r = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
1057
- return this._write({ uuid: de(), items: r, ref: null });
1056
+ const n = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
1057
+ return this._write({ uuid: de(), items: n, ref: null });
1058
1058
  }
1059
- addEventListener(t, r, n = {}) {
1060
- const o = n?.capture ? this._listenersCapture : this._listeners;
1061
- let i = o.get(t);
1062
- i || (i = /* @__PURE__ */ new Map(), o.set(t, i)), i.set(r, typeof n == "boolean" ? {} : n);
1059
+ addEventListener(t, n, r = {}) {
1060
+ const o = r?.capture ? this._listenersCapture : this._listeners;
1061
+ let a = o.get(t);
1062
+ a || (a = /* @__PURE__ */ new Map(), o.set(t, a)), a.set(n, typeof r == "boolean" ? {} : r);
1063
1063
  }
1064
1064
  dispatchEvent(t) {
1065
1065
  if (!t) return;
1066
- const r = (n) => {
1067
- const o = n.get(t.type);
1068
- o && o.forEach((i, a) => {
1066
+ const n = (r) => {
1067
+ const o = r.get(t.type);
1068
+ o && o.forEach((a, i) => {
1069
1069
  try {
1070
- typeof a == "function" ? a(t) : a.handleEvent && a.handleEvent(t), i.once && o.delete(a);
1070
+ typeof i == "function" ? i(t) : i.handleEvent && i.handleEvent(t), a.once && o.delete(i);
1071
1071
  } catch (l) {
1072
1072
  console.warn(l);
1073
1073
  }
1074
1074
  });
1075
1075
  };
1076
- return r(this._listenersCapture), r(this._listeners), !0;
1076
+ return n(this._listenersCapture), n(this._listeners), !0;
1077
1077
  }
1078
- removeEventListener(t, r, n) {
1079
- const o = n?.capture ? this._listenersCapture : this._listeners, i = o.get(t);
1080
- i && (i.delete(r), i.size === 0 && o.delete(t));
1078
+ removeEventListener(t, n, r) {
1079
+ const o = r?.capture ? this._listenersCapture : this._listeners, a = o.get(t);
1080
+ a && (a.delete(n), a.size === 0 && o.delete(t));
1081
1081
  }
1082
1082
  close() {
1083
1083
  globalThis.removeEventListener?.("focus", this._onFocus), globalThis.removeEventListener?.("blur", this._onBlur);
@@ -1096,16 +1096,16 @@ async function Gt() {
1096
1096
  return ee;
1097
1097
  }
1098
1098
  let e, t;
1099
- le = new Promise((r, n) => {
1100
- e = r, t = n;
1099
+ le = new Promise((n, r) => {
1100
+ e = n, t = r;
1101
1101
  });
1102
1102
  try {
1103
- const { initialize: r } = await Promise.resolve().then(function() {
1104
- return or;
1103
+ const { initialize: n } = await Promise.resolve().then(function() {
1104
+ return on;
1105
1105
  });
1106
- return ee = await r(), e(), ee;
1107
- } catch (r) {
1108
- throw console.error("Failed to import or initialize esbuild:", r), le = null, t(r), r;
1106
+ return ee = await n(), e(), ee;
1107
+ } catch (n) {
1108
+ throw console.error("Failed to import or initialize esbuild:", n), le = null, t(n), n;
1109
1109
  }
1110
1110
  }
1111
1111
  const Wt = {
@@ -1114,21 +1114,21 @@ const Wt = {
1114
1114
  target: "esnext"
1115
1115
  }
1116
1116
  };
1117
- async function Yt(e, t, r = "/script.js", n = qt) {
1117
+ async function Yt(e, t, n = "/script.js", r = qt) {
1118
1118
  try {
1119
- const o = await Gt(), i = "@sheetxl/primitives", a = \`
1120
- export const FormulaContext = globalThis.\${n}?.FormulaContext;
1121
- export const ScalarType = globalThis.\${n}?.ScalarType;
1122
- export const Observable = globalThis.\${n}?.Observable;
1123
- export const IRange = globalThis.\${n}?.IRange;
1124
- export const FormulaError = globalThis.\${n}?.FormulaError;
1119
+ const o = await Gt(), a = "@sheetxl/primitives", i = \`
1120
+ export const FormulaContext = globalThis.\${r}?.FormulaContext;
1121
+ export const ScalarType = globalThis.\${r}?.ScalarType;
1122
+ export const Observable = globalThis.\${r}?.Observable;
1123
+ export const IRange = globalThis.\${r}?.IRange;
1124
+ export const FormulaError = globalThis.\${r}?.FormulaError;
1125
1125
  // Add more exports as needed
1126
1126
  \`, l = {
1127
1127
  // ESBuild.Plugin = {
1128
1128
  name: "sheetxl-esbuild-in-memory",
1129
1129
  setup(p) {
1130
1130
  const w = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
1131
- p.onResolve({ filter: new RegExp(\`^(\${r.replace("/", "\\\\/")}|\${i})$\`) }, (g) => ({
1131
+ p.onResolve({ filter: new RegExp(\`^(\${n.replace("/", "\\\\/")}|\${a})$\`) }, (g) => ({
1132
1132
  path: g.path,
1133
1133
  namespace: w
1134
1134
  })), p.onResolve({ filter: /.*/ }, (g) => {
@@ -1136,10 +1136,10 @@ async function Yt(e, t, r = "/script.js", n = qt) {
1136
1136
  return console.warn(\`esbuild: Treating import "\${g.path}" as external.\`), { path: g.path, external: !0 };
1137
1137
  }), p.onLoad({ filter: /.*/, namespace: w }, (g) => {
1138
1138
  let f;
1139
- if (g.path === r)
1139
+ if (g.path === n)
1140
1140
  f = t;
1141
- else if (g.path === i)
1142
- f = a;
1141
+ else if (g.path === a)
1142
+ f = i;
1143
1143
  else
1144
1144
  return {
1145
1145
  errors: [{ text: \`Cannot load unknown path in \${w}: \${g.path}\` }]
@@ -1152,7 +1152,7 @@ async function Yt(e, t, r = "/script.js", n = qt) {
1152
1152
  });
1153
1153
  }
1154
1154
  }, u = await o.build({
1155
- entryPoints: [r],
1155
+ entryPoints: [n],
1156
1156
  // Use the virtual entry point
1157
1157
  bundle: !0,
1158
1158
  // IMPORTANT: Enable bundling
@@ -1209,9 +1209,9 @@ interface Promise<T> {
1209
1209
  ["ICellRange", "range"],
1210
1210
  ["IFormulaContext", "context"]
1211
1211
  ]), _e = (e, t) => {
1212
- Array.from(t.keys()).forEach((n) => {
1213
- const o = t.get(n);
1214
- t.set(\`\${e}.\${n}\`, o);
1212
+ Array.from(t.keys()).forEach((r) => {
1213
+ const o = t.get(r);
1214
+ t.set(\`\${e}.\${r}\`, o);
1215
1215
  });
1216
1216
  }, Zt = /* @__PURE__ */ new Map([
1217
1217
  ["Scalar", "*"],
@@ -1224,7 +1224,7 @@ interface Promise<T> {
1224
1224
  _e(Oe, yt);
1225
1225
  _e(Oe, gt);
1226
1226
  _e(Oe, Qt);
1227
- const er = /* @__PURE__ */ new Map([
1227
+ const en = /* @__PURE__ */ new Map([
1228
1228
  ["Promise", () => ({ async: !0 })],
1229
1229
  // ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
1230
1230
  // return { async: true };
@@ -1232,12 +1232,12 @@ const er = /* @__PURE__ */ new Map([
1232
1232
  ["Observable", () => ({ stream: !0 })]
1233
1233
  ]);
1234
1234
  let se = null;
1235
- async function tr() {
1235
+ async function tn() {
1236
1236
  if (se)
1237
1237
  return se;
1238
1238
  try {
1239
1239
  return await (await Promise.resolve().then(function() {
1240
- return ar;
1240
+ return ln;
1241
1241
  })).initialize();
1242
1242
  } catch (e) {
1243
1243
  throw se = null, e;
@@ -1245,14 +1245,14 @@ async function tr() {
1245
1245
  se = null;
1246
1246
  }
1247
1247
  }
1248
- async function rr(e) {
1248
+ async function nn(e) {
1249
1249
  const t = e?.source ?? null;
1250
1250
  if (!t) return null;
1251
- const r = (e.disableBundle || e.declarationsOnly) ?? !1, n = [
1251
+ const n = (e.disableBundle || e.declarationsOnly) ?? !1, r = [
1252
1252
  Xt(),
1253
1253
  //import('typescript'), // when bundled, but node check causes issues. We could bundle replace isNode but felt hacky
1254
- tr()
1255
- ], o = await Promise.all(n), i = o[0], a = o[1];
1254
+ tn()
1255
+ ], o = await Promise.all(r), a = o[0], i = o[1];
1256
1256
  let l = "", u = null;
1257
1257
  const p = [], w = {
1258
1258
  allowJs: !0,
@@ -1268,14 +1268,14 @@ async function rr(e) {
1268
1268
  //"esNext",
1269
1269
  noResolve: !0,
1270
1270
  emitDeclarationOnly: !1,
1271
- target: a.ScriptTarget.ES2020
1271
+ target: i.ScriptTarget.ES2020
1272
1272
  // lib: ['webworker', 'es2020', 'esnext.asynciterable'], // Use the webworker lib instead of dom
1273
1273
  }, g = "script", f = \`\${g}.ts\`, y = "lib.d.ts", x = "global.d.ts", A = {
1274
1274
  [f]: t,
1275
1275
  [y]: Jt,
1276
- [x]: i
1276
+ [x]: a
1277
1277
  }, D = {
1278
- getSourceFile: (s, m, L, P) => a.createSourceFile(s, A[s], a.ScriptTarget.Latest, !0),
1278
+ getSourceFile: (s, m, L, P) => i.createSourceFile(s, A[s], i.ScriptTarget.Latest, !0),
1279
1279
  fileExists: (s) => A[s] !== void 0,
1280
1280
  readFile: (s) => A[s],
1281
1281
  writeFile: (s, m) => {
@@ -1288,38 +1288,38 @@ async function rr(e) {
1288
1288
  getDefaultLibFileName: (s) => y,
1289
1289
  getNewLine: () => \`
1290
1290
  \`
1291
- }, U = a.createProgram([f, x], w, D), I = U.getTypeChecker(), J = U.getSourceFile(f), E = U.emit();
1291
+ }, U = i.createProgram([f, x], w, D), I = U.getTypeChecker(), J = U.getSourceFile(f), E = U.emit();
1292
1292
  E.diagnostics.length > 0 && console.warn(E.diagnostics), l = A[\`\${g}.js\`];
1293
1293
  const c = (s, m, L, P) => {
1294
1294
  if (!s) {
1295
1295
  $(s, new Error(\`Type is not defined for '\${m?.name ?? "return"}'.\`));
1296
1296
  return;
1297
1297
  }
1298
- if (s.kind === a.SyntaxKind.NumberKeyword)
1298
+ if (s.kind === i.SyntaxKind.NumberKeyword)
1299
1299
  m.scalar = W.Number;
1300
- else if (s.kind === a.SyntaxKind.StringKeyword)
1300
+ else if (s.kind === i.SyntaxKind.StringKeyword)
1301
1301
  m.scalar = W.String;
1302
- else if (s.kind === a.SyntaxKind.BooleanKeyword)
1302
+ else if (s.kind === i.SyntaxKind.BooleanKeyword)
1303
1303
  m.scalar = W.Boolean;
1304
- else if (s.kind === a.SyntaxKind.UndefinedKeyword || s.kind === a.SyntaxKind.NullKeyword || s.kind === a.SyntaxKind.VoidKeyword) {
1304
+ else if (s.kind === i.SyntaxKind.UndefinedKeyword || s.kind === i.SyntaxKind.NullKeyword || s.kind === i.SyntaxKind.VoidKeyword) {
1305
1305
  if (P) {
1306
1306
  $(s, new Error(\`'undefined' is not a valid type for input: '\${s?.parent?.name?.escapedText}'.\`));
1307
1307
  return;
1308
1308
  }
1309
1309
  m.scalar = W.Null;
1310
- } else if (s.kind === a.SyntaxKind.BigIntKeyword)
1310
+ } else if (s.kind === i.SyntaxKind.BigIntKeyword)
1311
1311
  m.scalar = W.Number;
1312
- else if (s.kind === a.SyntaxKind.AnyKeyword)
1312
+ else if (s.kind === i.SyntaxKind.AnyKeyword)
1313
1313
  m.scalar = W.Null;
1314
- else if (s.kind === a.SyntaxKind.ArrayType) {
1314
+ else if (s.kind === i.SyntaxKind.ArrayType) {
1315
1315
  const M = s.elementType;
1316
1316
  if (!M) {
1317
1317
  $(s, new Error(\`'Array' must be typed: '\${s?.parent?.name?.escapedText}'.\`));
1318
1318
  return;
1319
1319
  }
1320
1320
  m.arrayDepth = (m.arrayDepth ?? 0) + 1, c(M, m, L, P);
1321
- } else if (s.kind !== a.SyntaxKind.TupleType) {
1322
- if (s.kind === a.SyntaxKind.TypeReference) {
1321
+ } else if (s.kind !== i.SyntaxKind.TupleType) {
1322
+ if (s.kind === i.SyntaxKind.TypeReference) {
1323
1323
  const M = s.typeName?.getText?.() ?? null, K = yt.get(M);
1324
1324
  let V = !1;
1325
1325
  K && (m.range = K, V = !0);
@@ -1329,7 +1329,7 @@ async function rr(e) {
1329
1329
  if (R)
1330
1330
  return R;
1331
1331
  } else {
1332
- const R = er.get(M);
1332
+ const R = en.get(M);
1333
1333
  if (R) {
1334
1334
  const b = { ...m, ...R() };
1335
1335
  let N = 0;
@@ -1354,11 +1354,11 @@ async function rr(e) {
1354
1354
  }
1355
1355
  }
1356
1356
  }
1357
- }, h = (s) => (a.getCombinedModifierFlags(s) & a.ModifierFlags.Export) !== 0, fe = (s) => (a.getCombinedModifierFlags(s) & a.ModifierFlags.Default) !== 0, B = [], $ = (s, m) => {
1357
+ }, h = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Export) !== 0, fe = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Default) !== 0, B = [], $ = (s, m) => {
1358
1358
  B.push(m);
1359
1359
  };
1360
- if (a.forEachChild(J, (s) => {
1361
- if (h(s) && a.isFunctionDeclaration(s)) {
1360
+ if (i.forEachChild(J, (s) => {
1361
+ if (h(s) && i.isFunctionDeclaration(s)) {
1362
1362
  const m = {}, L = {
1363
1363
  parameters: {}
1364
1364
  }, P = s?.name?.getText();
@@ -1391,7 +1391,7 @@ async function rr(e) {
1391
1391
  let v;
1392
1392
  if (z && (N.optional = !0, b.initializer))
1393
1393
  try {
1394
- b.initializer.kind === a.SyntaxKind.StringLiteral ? v = b.initializer.text : b.initializer.kind === a.SyntaxKind.NumericLiteral ? v = parseFloat(b.initializer.text) : b.initializer.kind === a.SyntaxKind.TrueKeyword || b.initializer.kind === a.SyntaxKind.FalseKeyword ? v = b.initializer.kind === a.SyntaxKind.TrueKeyword : b.initializer.kind === a.SyntaxKind.NullKeyword ? v = null : b.initializer.kind === a.SyntaxKind.ObjectLiteralExpression || b.initializer.kind === a.SyntaxKind.ArrayLiteralExpression ? v = b.initializer.getText() : v = b.initializer.getText?.();
1394
+ b.initializer.kind === i.SyntaxKind.StringLiteral ? v = b.initializer.text : b.initializer.kind === i.SyntaxKind.NumericLiteral ? v = parseFloat(b.initializer.text) : b.initializer.kind === i.SyntaxKind.TrueKeyword || b.initializer.kind === i.SyntaxKind.FalseKeyword ? v = b.initializer.kind === i.SyntaxKind.TrueKeyword : b.initializer.kind === i.SyntaxKind.NullKeyword ? v = null : b.initializer.kind === i.SyntaxKind.ObjectLiteralExpression || b.initializer.kind === i.SyntaxKind.ArrayLiteralExpression ? v = b.initializer.getText() : v = b.initializer.getText?.();
1395
1395
  } catch (O) {
1396
1396
  console.warn(\`Couldn't extract default value for parameter '\${N.name}'\`, O);
1397
1397
  }
@@ -1440,10 +1440,10 @@ async function rr(e) {
1440
1440
  if (z.typeExpression && z.typeExpression.type)
1441
1441
  try {
1442
1442
  const Z = z.typeExpression.type;
1443
- if (Z.kind === a.SyntaxKind.UnionType) {
1443
+ if (Z.kind === i.SyntaxKind.UnionType) {
1444
1444
  const te = [];
1445
1445
  F.enums = te, Z.types.forEach((pe) => {
1446
- if (pe.kind === a.SyntaxKind.LiteralType) {
1446
+ if (pe.kind === i.SyntaxKind.LiteralType) {
1447
1447
  const he = pe.literal.text;
1448
1448
  he && te.push(he);
1449
1449
  }
@@ -1476,7 +1476,7 @@ async function rr(e) {
1476
1476
  throw new Error("No exported functions.");
1477
1477
  const bt = \`\${$t.uuidV4()}-script\`;
1478
1478
  try {
1479
- !r && B.length === 0 && (l = await Yt(a, l, g));
1479
+ !n && B.length === 0 && (l = await Yt(i, l, g));
1480
1480
  } catch {
1481
1481
  console.warn("Error bundling script");
1482
1482
  }
@@ -1492,67 +1492,67 @@ async function rr(e) {
1492
1492
  return u && (Ie.autoRun = u), Ie;
1493
1493
  }
1494
1494
  self.addEventListener("message", async (e) => {
1495
- const { id: t, params: r } = e.data;
1495
+ const { id: t, params: n } = e.data;
1496
1496
  try {
1497
- const n = await rr(r);
1498
- self.postMessage({ id: t, result: n, error: null });
1499
- } catch (n) {
1497
+ const r = await nn(n);
1498
+ self.postMessage({ id: t, result: r, error: null });
1499
+ } catch (r) {
1500
1500
  self.postMessage({
1501
1501
  id: t,
1502
1502
  result: null,
1503
1503
  error: {
1504
- message: n.message,
1505
- stack: n.stack,
1506
- cause: n.cause
1504
+ message: r.message,
1505
+ stack: r.stack,
1506
+ cause: r.cause
1507
1507
  }
1508
1508
  });
1509
1509
  }
1510
1510
  });
1511
1511
  let ce = null;
1512
- async function nr() {
1512
+ async function rn() {
1513
1513
  return ce || (ce = new Promise(async (e, t) => {
1514
1514
  try {
1515
- const r = "0.20.2", n = \`https://esm.sh/esbuild-wasm@\${r}\`, o = \`https://esm.sh/esbuild-wasm@\${r}/esbuild.wasm\`, a = (await import(
1515
+ const n = "0.20.2", r = \`https://esm.sh/esbuild-wasm@\${n}\`, o = \`https://esm.sh/esbuild-wasm@\${n}/esbuild.wasm\`, i = (await import(
1516
1516
  /* webpackIgnore: true */
1517
1517
  /* @vite-ignore */
1518
- n
1518
+ r
1519
1519
  )).default;
1520
- await a.initialize({
1520
+ await i.initialize({
1521
1521
  wasmURL: o,
1522
1522
  // Provide the specific WASM URL
1523
1523
  worker: !1
1524
1524
  // Keep processing on the current thread
1525
- }), e(a);
1526
- } catch (r) {
1527
- console.error("Error initializing esbuild:", r), t(r);
1525
+ }), e(i);
1526
+ } catch (n) {
1527
+ console.error("Error initializing esbuild:", n), t(n);
1528
1528
  }
1529
1529
  }), ce);
1530
1530
  }
1531
- var or = /* @__PURE__ */ Object.freeze({
1531
+ var on = /* @__PURE__ */ Object.freeze({
1532
1532
  __proto__: null,
1533
- initialize: nr
1533
+ initialize: rn
1534
1534
  });
1535
1535
  let ue = null;
1536
- async function ir() {
1536
+ async function an() {
1537
1537
  return ue || (ue = new Promise(async (e, t) => {
1538
- let r = null;
1538
+ let n = null;
1539
1539
  try {
1540
- r = await import("https://esm.sh/typescript@5.7.2");
1541
- } catch (n) {
1542
- console.error("Error initializing Browser TypeScript module:", n);
1540
+ n = await import("https://esm.sh/typescript@5.7.2");
1541
+ } catch (r) {
1542
+ console.error("Error initializing Browser TypeScript module:", r);
1543
1543
  }
1544
- r || console.log("use script fallback"), e(r);
1544
+ n || console.log("use script fallback"), e(n);
1545
1545
  }), ue);
1546
1546
  }
1547
- var ar = /* @__PURE__ */ Object.freeze({
1547
+ var ln = /* @__PURE__ */ Object.freeze({
1548
1548
  __proto__: null,
1549
- initialize: ir
1549
+ initialize: an
1550
1550
  });
1551
- `, a = typeof self < "u" && self.Blob && new Blob(["URL.revokeObjectURL(import.meta.url);", s], { type: "text/javascript;charset=utf-8" });
1551
+ `, i = typeof self < "u" && self.Blob && new Blob(["URL.revokeObjectURL(import.meta.url);", s], { type: "text/javascript;charset=utf-8" });
1552
1552
  function d(e) {
1553
1553
  let n;
1554
1554
  try {
1555
- if (n = a && (self.URL || self.webkitURL).createObjectURL(a), !n) throw "";
1555
+ if (n = i && (self.URL || self.webkitURL).createObjectURL(i), !n) throw "";
1556
1556
  const t = new Worker(n, { type: "module", name: e?.name });
1557
1557
  return t.addEventListener("error", () => {
1558
1558
  (self.URL || self.webkitURL).revokeObjectURL(n);
@@ -1574,7 +1574,7 @@ async function p() {
1574
1574
  return await l();
1575
1575
  }
1576
1576
  const l = async () => {
1577
- const { compileModule: e } = await import("./CHOlVNulci003tpR.mjs"), n = new u((t) => e(t));
1577
+ const { compileModule: e } = await import("./B_x9S07WXHgD87c0.mjs"), n = new u((t) => e(t));
1578
1578
  return await n.start(), n;
1579
1579
  };
1580
1580
  export {