@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,17 +1,17 @@
1
1
  "use strict";/**
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.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const i=new Error(r.message);i.stack=r.stack,r.cause&&(i.cause=r.cause),o.reject(i)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
7
- * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.4
6
+ */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let c=class{constructor(e){this._worker=null,this._nextId=1,this._pendingRequests=new Map,this._workerFactory=e}start(){if(typeof Worker>"u")throw new Error("Web Workers are not supported in this environment.");return this._worker||(this._worker=this._workerFactory(),this._worker.onmessage=e=>{const{id:n,result:t,error:r}=e.data,o=this._pendingRequests.get(n);if(o)if(this._pendingRequests.delete(n),r){const a=new Error(r.message);a.stack=r.stack,r.cause&&(a.cause=r.cause),o.reject(a)}else o.resolve(t)},this._worker.onerror=e=>{console.error("Worker error:",e),this._pendingRequests.forEach(n=>{n.reject(new Error(`Worker failed: ${e.message}`))}),this._pendingRequests.clear(),this._worker=null}),Promise.resolve()}execute(e){if(!this._worker)throw new Error("Worker is not initialized. Call start() first.");const n=this._nextId++;return new Promise((t,r)=>{this._pendingRequests.set(n,{resolve:t,reject:r}),this._worker.postMessage({id:n,params:e})})}terminate(){this._worker&&(this._worker.terminate(),this._worker=null)}};class u{constructor(n){this._onExecute=n}execute(n){return this._onExecute(n)}start(){return Promise.resolve()}terminate(){}}const s=`/**
7
+ * @license @sheetxl/primitives - Primitives - Base types for SheetXL functions. - v0.7.6
8
8
  *
9
9
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
10
10
  * License: The license can be found at https://www.sheetxl.com/license.
11
11
  */
12
12
  const W = { Number: "n", String: "s", Boolean: "b", Error: "e", Null: "z" };
13
- var Re, ae, d;
14
- (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) => {
13
+ var Re, ie, d;
14
+ (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) => {
15
15
  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!" };
16
16
  class t extends Error {
17
17
  constructor(c, h, fe, B) {
@@ -40,7 +40,7 @@ var Re, ae, d;
40
40
  }
41
41
  }
42
42
  e.Known = t;
43
- class r extends t {
43
+ class n extends t {
44
44
  constructor(c, h) {
45
45
  super(e.Code.Parse, e.Label.Parse, c, h);
46
46
  }
@@ -52,8 +52,8 @@ var Re, ae, d;
52
52
  return { line: c?.line ?? 1, column: c?.column ?? 1, offset: c?.offset ?? 0, length: c?.length ?? 0 };
53
53
  }
54
54
  }
55
- e.Parse = r;
56
- class n extends t {
55
+ e.Parse = n;
56
+ class r extends t {
57
57
  constructor(c, h) {
58
58
  super(e.Code.Null, e.Label.Null, c, h);
59
59
  }
@@ -61,7 +61,7 @@ var Re, ae, d;
61
61
  this.code = e.Code.Null;
62
62
  }
63
63
  }
64
- e.Null = n;
64
+ e.Null = r;
65
65
  class o extends t {
66
66
  constructor(c, h) {
67
67
  super(e.Code.Div0, e.Label.Div0, c, h);
@@ -71,7 +71,7 @@ var Re, ae, d;
71
71
  }
72
72
  }
73
73
  e.Div0 = o;
74
- class i extends t {
74
+ class a extends t {
75
75
  constructor(c, h) {
76
76
  super(e.Code.Value, e.Label.Value, c, h);
77
77
  }
@@ -79,8 +79,8 @@ var Re, ae, d;
79
79
  this.code = e.Code.Value;
80
80
  }
81
81
  }
82
- e.Value = i;
83
- class a extends t {
82
+ e.Value = a;
83
+ class i extends t {
84
84
  constructor(c, h) {
85
85
  super(e.Code.Ref, e.Label.Ref, c, h);
86
86
  }
@@ -88,7 +88,7 @@ var Re, ae, d;
88
88
  this.code = e.Code.Ref;
89
89
  }
90
90
  }
91
- e.Ref = a;
91
+ e.Ref = i;
92
92
  class l extends t {
93
93
  constructor(c, h) {
94
94
  super(e.Code.Name, e.Label.Name, c, h);
@@ -209,86 +209,84 @@ var Re, ae, d;
209
209
  })(d || (d = {}));
210
210
  const _ = {};
211
211
  _[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;
212
- const rt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), nt = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), ke = Object.keys(_);
212
+ const nt = /* @__PURE__ */ new Map(), Te = /* @__PURE__ */ new Map(), rt = /* @__PURE__ */ new Map(), ot = /* @__PURE__ */ new Map(), ke = Object.keys(_);
213
213
  for (let e = 0; e < ke.length; e++) {
214
- const t = ke[e], r = _[t];
215
- nt.set(d.Label[t], r), ot.set(d.Code[t], r);
216
- const n = new r();
217
- rt.set(n.getLabel(), n), Te.set(n.getCode(), n);
214
+ const t = ke[e], n = _[t];
215
+ rt.set(d.Label[t], n), ot.set(d.Code[t], n);
216
+ const r = new n();
217
+ nt.set(r.getLabel(), r), Te.set(r.getCode(), r);
218
218
  }
219
219
  const xt = Te.get(d.Code.Unknown);
220
220
  var T;
221
- (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) => {
222
- let n;
223
- return n = typeof e == "string" ? nt.get(e) : ot.get(e), n || (n = T.Unknown), new n(t, r);
221
+ (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) => {
222
+ let r;
223
+ return r = typeof e == "string" ? rt.get(e) : ot.get(e), r || (r = T.Unknown), new r(t, n);
224
224
  }, T.getBuiltInById = (e) => Te.get(e) || xt;
225
225
  /**
226
- * @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.4
226
+ * @license @sheetxl/utils - Utils - Utilities used by most SheetXL components. - v0.7.6
227
227
  *
228
228
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
229
229
  * License: The license can be found at https://www.sheetxl.com/license.
230
230
  */
231
- 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 });
232
- Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: Tt, EmptyRect: vt, EmptyTopLeft: Ct }, Symbol.toStringTag, { value: "Module" }));
233
- 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) => {
231
+ 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) => {
234
232
  if (e === t) return !0;
235
233
  if (!e || !t || e.length !== t.length) return !1;
236
- for (let r = 0; r < e.length; r++) if (!Se(e[r], t[r])) return !1;
234
+ for (let n = 0; n < e.length; n++) if (!Se(e[n], t[n])) return !1;
237
235
  return !0;
238
- }, me = (e, t, r) => {
236
+ }, me = (e, t, n) => {
239
237
  if (!e && !t) return null;
240
- if (!e) return r ? t : { ...t };
241
- if (!t) return r ? e : { ...e };
242
- 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);
243
- let l = r;
244
- return l ? (l.colStart = n, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: n, rowStart: o, colEnd: i, rowEnd: a }, l;
238
+ if (!e) return n ? t : { ...t };
239
+ if (!t) return n ? e : { ...e };
240
+ 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);
241
+ let l = n;
242
+ return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
245
243
  }, De = (e, t) => {
246
244
  if (!t || t.length === 0) return e;
247
- const r = { ...e };
248
- for (let n = 0; n < t.length; n++) {
249
- const o = t[n];
250
- 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));
245
+ const n = { ...e };
246
+ for (let r = 0; r < t.length; r++) {
247
+ const o = t[r];
248
+ 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));
251
249
  }
252
- return r;
253
- }, Rt = [null, null], kt = (e, t, r) => {
250
+ return n;
251
+ }, Ot = [null, null], It = (e, t, n) => {
254
252
  if (e[0].value === e[1].value) return t;
255
253
  };
256
- function Ue(e, t = 2, r, n = j.Row, o) {
257
- let i = [...e];
258
- if (t <= 0 || e.length <= 1) return i;
259
- let a = n === j.Column, l = 0, u = !1;
254
+ function Ue(e, t = 2, n, r = j.Row, o) {
255
+ let a = [...e];
256
+ if (t <= 0 || e.length <= 1) return a;
257
+ let i = r === j.Column, l = 0, u = !1;
260
258
  do {
261
- const p = i.sort(lt(a ? j.Row : j.Column));
262
- i = [], i.push(p[0]);
259
+ const p = a.sort(lt(i ? j.Row : j.Column));
260
+ a = [], a.push(p[0]);
263
261
  const w = p.length;
264
262
  let g = 0, f = p[0], y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
265
263
  for (let U = 1; U < w; U++) {
266
264
  const I = p[U];
267
265
  let J = !1;
268
- 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) {
269
- let E = { colStart: y, rowStart: x, colEnd: a ? I.colEnd : A, rowEnd: a ? D : I.rowEnd };
270
- if (f.value !== void 0 && (E.value = f.value), r) {
266
+ 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) {
267
+ let E = { colStart: y, rowStart: x, colEnd: i ? I.colEnd : A, rowEnd: i ? D : I.rowEnd };
268
+ if (f.value !== void 0 && (E.value = f.value), n) {
271
269
  const c = o ?? [null, null];
272
- c[0] = f, c[1] = I, E = r(c, E, n);
270
+ c[0] = f, c[1] = I, E = n(c, E, r);
273
271
  }
274
272
  if (E) {
275
- i[g] = E, u = !0, f = E, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
273
+ a[g] = E, u = !0, f = E, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
276
274
  continue;
277
275
  }
278
276
  }
279
- i[++g] = I, f = I, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
277
+ a[++g] = I, f = I, y = f.colStart, x = f.rowStart, A = f.colEnd, D = f.rowEnd;
280
278
  }
281
- l++, a = !a, l === 1 && (u = !0);
282
- } while (l < t && u && i.length > 1);
283
- return i;
279
+ l++, i = !i, l === 1 && (u = !0);
280
+ } while (l < t && u && a.length > 1);
281
+ return a;
284
282
  }
285
- Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange: Ot, cellToRange: (e, t) => {
283
+ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: Ct, EmptyRange: vt, cellToRange: (e, t) => {
286
284
  if (!e) return null;
287
- let r = t;
288
- 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;
289
- }, 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) => {
290
- const r = [];
291
- let n, o, i = Number.MIN_SAFE_INTEGER, a = Number.MIN_SAFE_INTEGER;
285
+ let n = t;
286
+ 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;
287
+ }, 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) => {
288
+ const n = [];
289
+ let r, o, a = Number.MIN_SAFE_INTEGER, i = Number.MIN_SAFE_INTEGER;
292
290
  return { append: (l, u, p) => {
293
291
  let w = !0;
294
292
  const g = p !== void 0;
@@ -296,44 +294,46 @@ Object.freeze(Object.defineProperty({ __proto__: null, EmptyCell: _t, EmptyRange
296
294
  const x = e ? e(o, p, t) : o === p ? p : void 0;
297
295
  x === void 0 ? w = !1 : p = x;
298
296
  }
299
- if (w && u === a + 1 && l === i) return t ? n.rowEnd = u : n.colEnd = u, a = u, void (o = p);
300
- n && r.push(n);
297
+ if (w && u === i + 1 && l === a) return t ? r.rowEnd = u : r.colEnd = u, i = u, void (o = p);
298
+ r && n.push(r);
301
299
  const f = t ? l : u, y = t ? u : l;
302
- n = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (n.value = p), i = l, a = u, o = p;
303
- }, done: (l) => (n && (r.push(n), n = null), l ? Ue(r, 3, l === !0 ? kt : l, t ? j.Column : j.Row, Rt) : r) };
304
- }, 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) => {
300
+ r = { colStart: f, rowStart: y, colEnd: f, rowEnd: y }, g && (r.value = p), a = l, i = u, o = p;
301
+ }, done: (l) => (r && (n.push(r), r = null), l ? Ue(n, 3, l === !0 ? It : l, t ? j.Column : j.Row, Ot) : n) };
302
+ }, 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) => {
305
303
  if (!t || t.length === 0) return e;
306
- let r = e, n = null;
307
- for (; !Se(r, n); ) n = r, r = De(n, t);
308
- return r;
304
+ let n = e, r = null;
305
+ for (; !Se(n, r); ) r = n, n = De(r, t);
306
+ return n;
309
307
  }, indexOfCoords: (e, t) => {
310
- const r = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
311
- for (let n = t.length - 1; n >= 0; n--) if (xe(r, t[n])) return n;
308
+ const n = { colStart: e.colIndex, rowStart: e.rowIndex, colEnd: e.colIndex, rowEnd: e.rowIndex };
309
+ for (let r = t.length - 1; r >= 0; r--) if (xe(n, t[r])) return r;
312
310
  return -1;
313
- }, intersectRanges: (e, t, r) => {
314
- if (!e) return r ? t : { ...t };
315
- if (!t) return r ? e : { ...e };
311
+ }, intersectRanges: (e, t, n) => {
312
+ if (!e) return n ? t : { ...t };
313
+ if (!t) return n ? e : { ...e };
316
314
  if (!e && !t || e.rowStart > t.rowEnd || e.rowEnd < t.rowStart || e.colStart > t.colEnd || e.colEnd < t.colStart) return null;
317
- 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);
318
- let l = r;
319
- return l ? (l.colStart = n, l.rowStart = o, l.colEnd = i, l.rowEnd = a) : l = { colStart: n, rowStart: o, colEnd: i, rowEnd: a }, l;
315
+ 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);
316
+ let l = n;
317
+ return l ? (l.colStart = r, l.rowStart = o, l.colEnd = a, l.rowEnd = i) : l = { colStart: r, rowStart: o, colEnd: a, rowEnd: i }, l;
320
318
  }, isCellWithinRange: (e, t) => {
321
319
  if (!e || !t) return !1;
322
- const r = e.rowIndex;
323
- if (r < t.rowStart || r > t.rowEnd) return !1;
324
- const n = e.colIndex;
325
- return !(n < t.colStart || n > t.colEnd);
326
- }, 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) => {
320
+ const n = e.rowIndex;
321
+ if (n < t.rowStart || n > t.rowEnd) return !1;
322
+ const r = e.colIndex;
323
+ return !(r < t.colStart || r > t.colEnd);
324
+ }, 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) => {
327
325
  if (!e || e.length === 0) return null;
328
326
  if (e.length === 1 && !t) return e[0];
329
- let n = e[0];
330
- for (let o = 1; o < e.length; o++) n = me(n, e[o], r);
331
- return t && (n = me(n, t, r)), n;
327
+ let r = e[0];
328
+ for (let o = 1; o < e.length; o++) r = me(r, e[o], n);
329
+ return t && (r = me(r, t, n)), r;
332
330
  } }, Symbol.toStringTag, { value: "Module" }));
331
+ 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 });
332
+ Object.freeze(Object.defineProperty({ __proto__: null, EmptyBounds: kt, EmptyRect: Rt, EmptyTopLeft: Nt }, Symbol.toStringTag, { value: "Module" }));
333
333
  function Lt(e) {
334
334
  const t = Object.prototype.toString.call(e);
335
- return t === "[object RegExp]" || t === "[object Date]" || (function(r) {
336
- return r.$$typeof === At;
335
+ return t === "[object RegExp]" || t === "[object Date]" || (function(n) {
336
+ return n.$$typeof === At;
337
337
  })(e);
338
338
  }
339
339
  const At = typeof Symbol == "function" && Symbol.for ? Symbol.for("react.element") : 60103;
@@ -342,19 +342,19 @@ function Mt(e) {
342
342
  return !!t && typeof t == "object";
343
343
  })(e) && !Lt(e);
344
344
  }
345
- function ne(e, t) {
346
- return t.clone !== !1 && t.isMergeableObject(e) ? Y((r = e, Array.isArray(r) ? [] : {}), e, t) : e;
347
- var r;
345
+ function re(e, t) {
346
+ return t.clone !== !1 && t.isMergeableObject(e) ? Y((n = e, Array.isArray(n) ? [] : {}), e, t) : e;
347
+ var n;
348
348
  }
349
- function jt(e, t, r) {
350
- return e.concat(t).map(function(n) {
351
- return ne(n, r);
349
+ function jt(e, t, n) {
350
+ return e.concat(t).map(function(r) {
351
+ return re(r, n);
352
352
  });
353
353
  }
354
354
  function Be(e) {
355
355
  return Object.keys(e).concat((function(t) {
356
- return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(r) {
357
- return Object.propertyIsEnumerable.call(t, r);
356
+ return Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(t).filter(function(n) {
357
+ return Object.propertyIsEnumerable.call(t, n);
358
358
  }) : [];
359
359
  })(e));
360
360
  }
@@ -365,45 +365,45 @@ function $e(e, t) {
365
365
  return !1;
366
366
  }
367
367
  }
368
- function Pt(e, t, r) {
369
- const n = {};
370
- return r.isMergeableObject(e) && Be(e).forEach(function(o) {
371
- n[o] = ne(e[o], r);
368
+ function Pt(e, t, n) {
369
+ const r = {};
370
+ return n.isMergeableObject(e) && Be(e).forEach(function(o) {
371
+ r[o] = re(e[o], n);
372
372
  }), Be(t).forEach(function(o) {
373
- (function(i, a) {
374
- return $e(i, a) && !(Object.hasOwnProperty.call(i, a) && Object.propertyIsEnumerable.call(i, a));
375
- })(e, o) || ($e(e, o) && r.isMergeableObject(t[o]) ? n[o] = (function(i, a) {
376
- if (!a.customMerge) return Y;
377
- const l = a.customMerge(i);
373
+ (function(a, i) {
374
+ return $e(a, i) && !(Object.hasOwnProperty.call(a, i) && Object.propertyIsEnumerable.call(a, i));
375
+ })(e, o) || ($e(e, o) && n.isMergeableObject(t[o]) ? r[o] = (function(a, i) {
376
+ if (!i.customMerge) return Y;
377
+ const l = i.customMerge(a);
378
378
  return typeof l == "function" ? l : Y;
379
- })(o, r)(e[o], t[o], r) : n[o] = ne(t[o], r));
380
- }), n;
379
+ })(o, n)(e[o], t[o], n) : r[o] = re(t[o], n));
380
+ }), r;
381
381
  }
382
- function Y(e, t, r) {
383
- (r = r || {}).arrayMerge = r.arrayMerge || jt, r.isMergeableObject = r.isMergeableObject || Mt, r.cloneUnlessOtherwiseSpecified = ne;
384
- const n = Array.isArray(t);
385
- return n === Array.isArray(e) ? n ? r.arrayMerge(e, t, r) : Pt(e, t, r) : ne(t, r);
382
+ function Y(e, t, n) {
383
+ (n = n || {}).arrayMerge = n.arrayMerge || jt, n.isMergeableObject = n.isMergeableObject || Mt, n.cloneUnlessOtherwiseSpecified = re;
384
+ const r = Array.isArray(t);
385
+ return r === Array.isArray(e) ? r ? n.arrayMerge(e, t, n) : Pt(e, t, n) : re(t, n);
386
386
  }
387
387
  Y.all = function(e, t) {
388
388
  if (!Array.isArray(e)) throw new Error("first argument should be an array");
389
- return e.reduce(function(r, n) {
390
- return Y(r, n, t);
389
+ return e.reduce(function(n, r) {
390
+ return Y(n, r, t);
391
391
  }, {});
392
392
  };
393
393
  const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () => "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
394
394
  let t = 16 * Math.random() | 0;
395
395
  return (e === "x" ? t : 3 & t | 8).toString(16);
396
- }), 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) {
396
+ }), 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) {
397
397
  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];
398
- }), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !st(e, t)) || !!e.isEqual?.(t), ut = (e, t, r = Bt) => {
398
+ }), Object.keys(e).length === 0 ? null : e), Bt = (e, t) => !(e !== t && !st(e, t)) || !!e.isEqual?.(t), ut = (e, t, n = Bt) => {
399
399
  if (e == null || e === t) return null;
400
- if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return r(e, t) ? null : e;
401
- const n = Object.keys(e);
402
- if (n.length === 0) return null;
400
+ if (!e || typeof e != "object" || Array.isArray(e) || e.isImmutable?.()) return n(e, t) ? null : e;
401
+ const r = Object.keys(e);
402
+ if (r.length === 0) return null;
403
403
  let o = !1;
404
- for (let i = 0; i < n.length; i++) {
405
- const a = n[i];
406
- ut(e[a], t?.[a], r) === null && (o = !0, delete e[a]);
404
+ for (let a = 0; a < r.length; a++) {
405
+ const i = r[a];
406
+ ut(e[i], t?.[i], n) === null && (o = !0, delete e[i]);
407
407
  }
408
408
  return o && Object.keys(e).length === 0 ? null : void 0;
409
409
  }, 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 = () => {
@@ -414,9 +414,9 @@ const Ft = Object.freeze([]), Dt = Object.freeze({}), ze = (e) => e, de = () =>
414
414
  function dt() {
415
415
  return typeof process < "u" && process.release?.name === "node" || (typeof process < "u" && process.browser, !1);
416
416
  }
417
- 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) {
418
- const n = e.slice();
419
- return n.splice(r < 0 ? n.length + r : r, 0, n.splice(t, 1)[0]), n;
417
+ 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) {
418
+ const r = e.slice();
419
+ return r.splice(n < 0 ? r.length + n : n, 0, r.splice(t, 1)[0]), r;
420
420
  }, asNumber: (e) => {
421
421
  const t = Ut(e);
422
422
  return Number.isFinite(t) ? t : 0;
@@ -428,330 +428,330 @@ const We = (e, t = !1) => (document.hasFocus() || t) && (e === document.activeEl
428
428
  setTimeout(() => {
429
429
  Function("console.log.apply(console, arguments)").apply(null, e), t();
430
430
  });
431
- }), debounce: function(e, t = 300, r = !1) {
432
- let n, o, i, a, l = 0;
431
+ }), debounce: function(e, t = 300, n = !1) {
432
+ let r, o, a, i, l = 0;
433
433
  function u() {
434
434
  let w = Date.now() - l;
435
- w < t && w >= 0 ? n = setTimeout(u, t - w) : (n = null, r || (a = e.apply(i, o), i = o = null));
435
+ w < t && w >= 0 ? r = setTimeout(u, t - w) : (r = null, n || (i = e.apply(a, o), a = o = null));
436
436
  }
437
437
  t == null && (t = 100);
438
438
  const p = function() {
439
- i = globalThis, o = arguments, l = Date.now();
440
- var w = r && !n;
441
- return n || (n = setTimeout(u, t)), w && (a = e.apply(i, o), i = o = null), a;
439
+ a = globalThis, o = arguments, l = Date.now();
440
+ var w = n && !r;
441
+ return r || (r = setTimeout(u, t)), w && (i = e.apply(a, o), a = o = null), i;
442
442
  };
443
443
  return p.clear = function() {
444
- n && (clearTimeout(n), n = null);
444
+ r && (clearTimeout(r), r = null);
445
445
  }, p.flush = function() {
446
- n && (a = e.apply(i, o), i = o = null, clearTimeout(n), n = null);
446
+ r && (i = e.apply(a, o), a = o = null, clearTimeout(r), r = null);
447
447
  }, p;
448
- }, deepEqual: function e(t, r) {
449
- if (t === r) return !0;
450
- if (t && r && typeof t == "object" && typeof r == "object") {
451
- if (t.constructor !== r.constructor) return !1;
452
- let n, o, i;
448
+ }, deepEqual: function e(t, n) {
449
+ if (t === n) return !0;
450
+ if (t && n && typeof t == "object" && typeof n == "object") {
451
+ if (t.constructor !== n.constructor) return !1;
452
+ let r, o, a;
453
453
  if (Array.isArray(t)) {
454
- if (n = t.length, n != r.length) return !1;
455
- for (o = n; o-- !== 0; ) if (!e(t[o], r[o])) return !1;
454
+ if (r = t.length, r != n.length) return !1;
455
+ for (o = r; o-- !== 0; ) if (!e(t[o], n[o])) return !1;
456
456
  return !0;
457
457
  }
458
- if (t instanceof Map && r instanceof Map) {
459
- if (t.size !== r.size) return !1;
460
- for (o of t.entries()) if (!r.has(o[0])) return !1;
461
- for (o of t.entries()) if (!e(o[1], r.get(o[0]))) return !1;
458
+ if (t instanceof Map && n instanceof Map) {
459
+ if (t.size !== n.size) return !1;
460
+ for (o of t.entries()) if (!n.has(o[0])) return !1;
461
+ for (o of t.entries()) if (!e(o[1], n.get(o[0]))) return !1;
462
462
  return !0;
463
463
  }
464
- if (t instanceof Set && r instanceof Set) {
465
- if (t.size !== r.size) return !1;
466
- for (o of t.entries()) if (!r.has(o[0])) return !1;
464
+ if (t instanceof Set && n instanceof Set) {
465
+ if (t.size !== n.size) return !1;
466
+ for (o of t.entries()) if (!n.has(o[0])) return !1;
467
467
  return !0;
468
468
  }
469
- if (ArrayBuffer.isView(t) && ArrayBuffer.isView(r)) {
470
- if (n = t.length, n != r.length) return !1;
471
- for (o = n; o-- !== 0; ) if (t[o] !== r[o]) return !1;
469
+ if (ArrayBuffer.isView(t) && ArrayBuffer.isView(n)) {
470
+ if (r = t.length, r != n.length) return !1;
471
+ for (o = r; o-- !== 0; ) if (t[o] !== n[o]) return !1;
472
472
  return !0;
473
473
  }
474
- if (t.constructor === RegExp) return t.source === r.source && t.flags === r.flags;
475
- if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === r.valueOf();
476
- if (t.toString !== Object.prototype.toString) return t.toString() === r.toString();
477
- if (i = Object.keys(t), n = i.length, n !== Object.keys(r).length) return !1;
478
- for (o = n; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(r, i[o])) return !1;
479
- for (o = n; o-- !== 0; ) {
480
- let a = i[o];
481
- if ((a !== "_owner" || !t.$$typeof) && !e(t[a], r[a])) return !1;
474
+ if (t.constructor === RegExp) return t.source === n.source && t.flags === n.flags;
475
+ if (t.valueOf !== Object.prototype.valueOf) return t.valueOf() === n.valueOf();
476
+ if (t.toString !== Object.prototype.toString) return t.toString() === n.toString();
477
+ if (a = Object.keys(t), r = a.length, r !== Object.keys(n).length) return !1;
478
+ for (o = r; o-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(n, a[o])) return !1;
479
+ for (o = r; o-- !== 0; ) {
480
+ let i = a[o];
481
+ if ((i !== "_owner" || !t.$$typeof) && !e(t[i], n[i])) return !1;
482
482
  }
483
483
  return !0;
484
484
  }
485
- return t != t && r != r;
485
+ return t != t && n != n;
486
486
  }, deepFreeze: function e(t) {
487
- return Object.freeze(t), Object.keys(t).forEach((r) => {
488
- typeof t[r] != "object" || t[r] === null || Object.isFrozen(t[r]) || e(t[r]);
487
+ return Object.freeze(t), Object.keys(t).forEach((n) => {
488
+ typeof t[n] != "object" || t[n] === null || Object.isFrozen(t[n]) || e(t[n]);
489
489
  }), t;
490
490
  }, deepMerge: Y, diffValues: (e, t) => {
491
- const r = {}, n = Object.keys(t), o = n.length;
492
- for (let i = 0; i < o; i++) {
493
- const a = n[i];
494
- e[a] !== t[a] && (e[a] === void 0 ? r[a] = t[a] : r[a] = e[a]);
495
- }
496
- return Object.keys(r).length === 0 ? null : r;
497
- }, findEqualOrGreater: function(e, t, r = ze) {
498
- let n = 0, o = e.length - 1;
499
- for (; n <= o; ) {
500
- let i = Math.floor((n + o) / 2), a = r(e[i]);
501
- if (a === t) return i;
502
- a < t ? n = i + 1 : o = i - 1;
491
+ const n = {}, r = Object.keys(t), o = r.length;
492
+ for (let a = 0; a < o; a++) {
493
+ const i = r[a];
494
+ e[i] !== t[i] && (e[i] === void 0 ? n[i] = t[i] : n[i] = e[i]);
495
+ }
496
+ return Object.keys(n).length === 0 ? null : n;
497
+ }, findEqualOrGreater: function(e, t, n = ze) {
498
+ let r = 0, o = e.length - 1;
499
+ for (; r <= o; ) {
500
+ let a = Math.floor((r + o) / 2), i = n(e[a]);
501
+ if (i === t) return a;
502
+ i < t ? r = a + 1 : o = a - 1;
503
503
  }
504
- return n;
505
- }, findEqualOrLesser: function(e, t, r = ze) {
506
- let n = e.length - 1, o = 0;
507
- for (; n >= o; ) {
508
- let i = Math.floor((n + o) / 2), a = r(e[i]);
509
- if (a === t) return i;
510
- a > t ? n = i - 1 : o = i + 1;
504
+ return r;
505
+ }, findEqualOrLesser: function(e, t, n = ze) {
506
+ let r = e.length - 1, o = 0;
507
+ for (; r >= o; ) {
508
+ let a = Math.floor((r + o) / 2), i = n(e[a]);
509
+ if (i === t) return a;
510
+ i > t ? r = a - 1 : o = a + 1;
511
511
  }
512
- return n;
513
- }, findNextStep: (e, t = !0, r = 15, n = 10, o = 400) => {
514
- const i = Math.max(e - n, 0) + (t ? 1 : -1);
515
- return Math.min(o, Math[t ? "ceil" : "floor"](i / r) * r + n);
512
+ return r;
513
+ }, findNextStep: (e, t = !0, n = 15, r = 10, o = 400) => {
514
+ const a = Math.max(e - r, 0) + (t ? 1 : -1);
515
+ return Math.min(o, Math[t ? "ceil" : "floor"](a / n) * n + r);
516
516
  }, getDPI: () => {
517
517
  let e = 1;
518
518
  return typeof window == "object" && (e = window.devicePixelRatio || 1), e;
519
519
  }, getFromPath: (e, t) => {
520
- const r = t.split(".");
521
- let n = e;
522
- for (let o = 0; o < r.length; o++) {
523
- const i = r[o];
524
- if (!n) return null;
525
- let a = n[i];
526
- if (typeof a == "function" && (a = a.bind(n)()), !a || !re(a)) return a;
527
- n = a;
528
- }
529
- return n ?? null;
520
+ const n = t.split(".");
521
+ let r = e;
522
+ for (let o = 0; o < n.length; o++) {
523
+ const a = n[o];
524
+ if (!r) return null;
525
+ let i = r[a];
526
+ if (typeof i == "function" && (i = i.bind(r)()), !i || !ne(i)) return i;
527
+ r = i;
528
+ }
529
+ return r ?? null;
530
530
  }, 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) => {
531
531
  if (e === t) return !0;
532
532
  if (e && !t || t && !e) return !1;
533
- const r = Object.keys(e);
534
- if (r.length !== Object.keys(t).length) return !1;
535
- for (let n = 0; n < r.length; n++) if (e[r[n]] !== t[r[n]]) return !1;
533
+ const n = Object.keys(e);
534
+ if (n.length !== Object.keys(t).length) return !1;
535
+ for (let r = 0; r < n.length; r++) if (e[n[r]] !== t[n[r]]) return !1;
536
536
  return !0;
537
537
  }, isNode: dt, isNullOrUndefined: Ve, isNumeric: (e) => {
538
538
  const t = 1 * e;
539
539
  return Number.isFinite(t) && typeof t == "number";
540
- }, 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) => {
540
+ }, 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) => {
541
541
  const t = e.length;
542
- if (t > 0 && e[t - 1] !== void 0 && !re(e[t - 1])) return e[t - 1];
543
- let r = e[0] || {};
544
- for (let n = 1; n < t; n++) r = Y(r, e[n] || {}, { arrayMerge: (o, i) => [...i] });
545
- return r;
542
+ if (t > 0 && e[t - 1] !== void 0 && !ne(e[t - 1])) return e[t - 1];
543
+ let n = e[0] || {};
544
+ for (let r = 1; r < t; r++) n = Y(n, e[r] || {}, { arrayMerge: (o, a) => [...a] });
545
+ return n;
546
546
  }, nextTick: (e) => {
547
547
  typeof window < "u" && typeof window.requestAnimationFrame == "function" ? window.requestAnimationFrame(() => {
548
548
  e();
549
549
  }) : (typeof setImmediate == "function" ? setImmediate : setTimeout)(() => {
550
550
  e();
551
551
  });
552
- }, openFileDialog: (e = "*.*") => new Promise((t, r) => {
553
- if (!Ge) return void r("Unable to open dialog with no dom.");
554
- const n = document.createElement("input");
555
- n.type = "file", n.accept = e;
556
- let o = null, i = !1;
552
+ }, openFileDialog: (e = "*.*") => new Promise((t, n) => {
553
+ if (!Ge) return void n("Unable to open dialog with no dom.");
554
+ const r = document.createElement("input");
555
+ r.type = "file", r.accept = e;
556
+ let o = null, a = !1;
557
557
  globalThis.addEventListener?.("focus", () => {
558
558
  setTimeout(() => {
559
- o || i || (i = !0, t(null));
559
+ o || a || (a = !0, t(null));
560
560
  }, 1e3);
561
- }, { once: !0, passive: !0 }), n.onchange = () => {
562
- if (o = n.files[0], o) {
563
- if (i) return void console.warn("File open detected after faux cancel.", o);
561
+ }, { once: !0, passive: !0 }), r.onchange = () => {
562
+ if (o = r.files[0], o) {
563
+ if (a) return void console.warn("File open detected after faux cancel.", o);
564
564
  t(o);
565
565
  }
566
- }, n.autofocus = !0, n.click();
566
+ }, r.autofocus = !0, r.click();
567
567
  }), rafThrottle: (e) => {
568
- let t, r = !1, n = function() {
569
- r = !1, e(t);
568
+ let t, n = !1, r = function() {
569
+ n = !1, e(t);
570
570
  };
571
571
  return function(o) {
572
- t = o, t && t.persist && t.persist(), r || (r = !0, requestAnimationFrame(n));
572
+ t = o, t && t.persist && t.persist(), n || (n = !0, requestAnimationFrame(r));
573
573
  };
574
574
  }, removeEmptyProperties: ct, removeEqualValues: ut, removeListenerAll: (e) => {
575
575
  if (!e) return [];
576
576
  for (let t = 0; t < e.length; t++) e[t] && e[t]();
577
577
  return [];
578
578
  }, requestTimeout: (e, t) => {
579
- const r = Ke(), n = { id: requestAnimationFrame(function o() {
580
- Ke() - r >= t ? e.call(null) : n.id = requestAnimationFrame(o);
579
+ const n = Ke(), r = { id: requestAnimationFrame(function o() {
580
+ Ke() - n >= t ? e.call(null) : r.id = requestAnimationFrame(o);
581
581
  }) };
582
- return n;
582
+ return r;
583
583
  }, roundAccurately: (e, t = 0) => {
584
584
  if (e == null || !isFinite(e)) return null;
585
- const r = 10 ** t;
586
- return Number(Math.round(e * r) / r);
587
- }, setToPath: (e, t, r) => {
588
- const n = t.split(".");
585
+ const n = 10 ** t;
586
+ return Number(Math.round(e * n) / n);
587
+ }, setToPath: (e, t, n) => {
588
+ const r = t.split(".");
589
589
  let o = e;
590
590
  if (!o) throw new Error("Can not set path to a null path.");
591
- for (let i = 0; o && i < n.length - 1; i++) {
592
- const a = n[i];
593
- let l = o[a];
594
- if (l == null && (l = {}, o[a] = l), !re(l)) throw new Error("Can not set path to a non object path.");
591
+ for (let a = 0; o && a < r.length - 1; a++) {
592
+ const i = r[a];
593
+ let l = o[i];
594
+ if (l == null && (l = {}, o[i] = l), !ne(l)) throw new Error("Can not set path to a non object path.");
595
595
  o = l;
596
596
  }
597
- 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.\`);
598
- return o[n[n.length - 1]] = r, e;
597
+ 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.\`);
598
+ return o[r[r.length - 1]] = n, e;
599
599
  }, splitNumber: (e) => {
600
600
  let t = Math.abs(e);
601
601
  if (isNaN(t) || !isFinite(e)) return null;
602
- let r = 0 | t, n = t - r, o = 0, i = 0, a = 1;
603
- if (n > 5e-8) for (; i < 8 && Math.abs(o / a - n) > 5e-8; ) i++, a *= 10, o = Math.round(n * a);
604
- return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(r + 1)), fpLength: i };
605
- }, subtractRect: (e, t, r = !1) => {
602
+ let n = 0 | t, r = t - n, o = 0, a = 0, i = 1;
603
+ if (r > 5e-8) for (; a < 8 && Math.abs(o / i - r) > 5e-8; ) a++, i *= 10, o = Math.round(r * i);
604
+ return { ip: Math.trunc(e), fp: o, ipLength: Math.ceil(Math.log10(n + 1)), fpLength: a };
605
+ }, subtractRect: (e, t, n = !1) => {
606
606
  if (!t) return [e];
607
607
  if (!qe(e, t)) return [];
608
- const n = [];
608
+ const r = [];
609
609
  let o = e;
610
- const i = () => {
611
- t.top > o.top && t.top < o.bottom && (n.push({ ...o, bottom: t.top }), o = { ...o, top: t.top });
612
- }, a = () => {
613
- t.bottom > o.top && t.bottom < o.bottom && (n.push({ ...o, top: t.bottom }), o = { ...o, bottom: t.bottom });
610
+ const a = () => {
611
+ t.top > o.top && t.top < o.bottom && (r.push({ ...o, bottom: t.top }), o = { ...o, top: t.top });
612
+ }, i = () => {
613
+ t.bottom > o.top && t.bottom < o.bottom && (r.push({ ...o, top: t.bottom }), o = { ...o, bottom: t.bottom });
614
614
  }, l = () => {
615
- t.right > o.left && t.right < o.right && (n.push({ ...o, left: t.right }), o = { ...o, right: t.right });
615
+ t.right > o.left && t.right < o.right && (r.push({ ...o, left: t.right }), o = { ...o, right: t.right });
616
616
  }, u = () => {
617
- t.left > o.left && t.left < o.right && (n.push({ ...o, right: t.left }), o = { ...o, left: t.left });
617
+ t.left > o.left && t.left < o.right && (r.push({ ...o, right: t.left }), o = { ...o, left: t.left });
618
618
  };
619
- return r ? (u(), l(), i(), a()) : (i(), a(), l(), u()), n;
619
+ return n ? (u(), l(), a(), i()) : (a(), i(), l(), u()), r;
620
620
  }, textToKey: (e) => e.replace(/[^a-zA-Z0-9]/g, "").toLowerCase(), throttle: function(e, t) {
621
- let r = null;
622
- return (...n) => {
621
+ let n = null;
622
+ return (...r) => {
623
623
  const o = Date.now();
624
- (!r || o - r >= t) && (r = o, e(...n));
624
+ (!n || o - n >= t) && (n = o, e(...r));
625
625
  };
626
626
  }, toSafeJSON: function e(t) {
627
627
  if (t === null || typeof t != "object") return t;
628
628
  if (typeof t.toJSON == "function") return t.toJSON();
629
- if (Array.isArray(t)) return t.map((n) => e(n));
629
+ if (Array.isArray(t)) return t.map((r) => e(r));
630
630
  if (typeof t.toString == "function" && t.toString !== Object.prototype.toString) return t.toString();
631
- const r = {};
632
- for (const n in t) t.hasOwnProperty(n) && (r[n] = e(t[n]));
633
- return r;
631
+ const n = {};
632
+ for (const r in t) t.hasOwnProperty(r) && (n[r] = e(t[r]));
633
+ return n;
634
634
  }, transpose: (e) => {
635
635
  if (!e) return e;
636
- const t = e.length, r = e[0].length, n = [];
637
- for (let o = 0; o < r; o++) n[o] = Array(t);
638
- for (let o = 0; o < t; o++) for (let i = 0; i < r; i++) n[i][o] = e[o][i];
639
- return n;
636
+ const t = e.length, n = e[0].length, r = [];
637
+ for (let o = 0; o < n; o++) r[o] = Array(t);
638
+ for (let o = 0; o < t; o++) for (let a = 0; a < n; a++) r[a][o] = e[o][a];
639
+ return r;
640
640
  }, uuidV4: de, validEnumValue: (e, t) => {
641
641
  if (!Object.values(e).includes(t)) throw new Error(\`Invalid type: \${t ?? "null"}. Must be one of: \${Object.values(t).join(", ")}.\`);
642
- }, whenFocus: async (e, t = !1) => new Promise((r) => {
643
- We(e, t) ? r(!0) : e.addEventListener("focusin", () => {
644
- r(!0);
642
+ }, whenFocus: async (e, t = !1) => new Promise((n) => {
643
+ We(e, t) ? n(!0) : e.addEventListener("focusin", () => {
644
+ n(!0);
645
645
  }, { once: !0 }), e.focus();
646
646
  }) }, Symbol.toStringTag, { value: "Module" }));
647
647
  Object.freeze(Object.defineProperty({ __proto__: null, MESSAGE_ERROR_INVALID_ARG: (e) => \`Invalid argument: '\${e}'.\` }, Symbol.toStringTag, { value: "Module" }));
648
648
  const ft = (e) => {
649
- const t = new Uint8Array(e), r = t.byteLength;
650
- let n = "";
651
- for (let o = 0; o < r; o++) n += String.fromCharCode(t[o]);
652
- if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(n);
653
- if (typeof Buffer < "u") return Buffer.from(n, "binary").toString("base64");
649
+ const t = new Uint8Array(e), n = t.byteLength;
650
+ let r = "";
651
+ for (let o = 0; o < n; o++) r += String.fromCharCode(t[o]);
652
+ if (typeof window < "u" && typeof globalThis.btoa == "function") return globalThis.btoa(r);
653
+ if (typeof Buffer < "u") return Buffer.from(r, "binary").toString("base64");
654
654
  throw new Error("Unsupported environment");
655
- }, Ce = (e) => new Promise((t, r) => {
655
+ }, Ce = (e) => new Promise((t, n) => {
656
656
  if (e) if (typeof FileReader < "u") {
657
- const n = new FileReader();
658
- n.onload = () => {
659
- t(n.result);
660
- }, n.onerror = () => {
661
- r(n.error);
662
- }, n.readAsText(e);
657
+ const r = new FileReader();
658
+ r.onload = () => {
659
+ t(r.result);
660
+ }, r.onerror = () => {
661
+ n(r.error);
662
+ }, r.readAsText(e);
663
663
  } else if (typeof Buffer < "u") {
664
- const n = (o) => Buffer.from(o).toString("utf-8");
664
+ const r = (o) => Buffer.from(o).toString("utf-8");
665
665
  e.arrayBuffer().then((o) => {
666
- t(n(o));
666
+ t(r(o));
667
667
  }).catch((o) => {
668
- r(o);
668
+ n(o);
669
669
  });
670
- } else r(new Error("Unsupported environment"));
670
+ } else n(new Error("Unsupported environment"));
671
671
  else t("");
672
672
  });
673
673
  Object.freeze(Object.defineProperty({ __proto__: null, DEFAULT_MIME_TYPE: "*/*", arrayBufferToBase64: ft, base64ToArrayBuffer: (e) => {
674
- 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);
675
- for (let o = 0; o < r; o++) n[o] = t.charCodeAt(o);
676
- return n.buffer;
674
+ 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);
675
+ for (let o = 0; o < n; o++) r[o] = t.charCodeAt(o);
676
+ return r.buffer;
677
677
  }, blobToString: Ce }, Symbol.toStringTag, { value: "Module" }));
678
- const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) => new Promise(async (t, r) => {
679
- let n = null;
678
+ const pt = "data:image/png;base64,", ht = "Unable to resolve image.", Ye = (e) => new Promise(async (t, n) => {
679
+ let r = null;
680
680
  try {
681
- n = new Image(), n.src = e, n.addEventListener("load", function() {
682
- t({ width: n.naturalWidth, height: n.naturalHeight });
683
- }, { once: !0 }), n.addEventListener("error", function() {
684
- URL.revokeObjectURL(e), r("Invalid Image");
685
- }, { once: !0 }), await n.decode("sync");
681
+ r = new Image(), r.src = e, r.addEventListener("load", function() {
682
+ t({ width: r.naturalWidth, height: r.naturalHeight });
683
+ }, { once: !0 }), r.addEventListener("error", function() {
684
+ URL.revokeObjectURL(e), n("Invalid Image");
685
+ }, { once: !0 }), await r.decode("sync");
686
686
  } catch {
687
- n?.src && URL.revokeObjectURL(n.src);
687
+ r?.src && URL.revokeObjectURL(r.src);
688
688
  }
689
- n || r(ht);
689
+ r || n(ht);
690
690
  }), we = "image/svg+xml";
691
- Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt, getImageDataUrl: (e, t = 1) => new Promise(async (r, n) => {
691
+ Object.freeze(Object.defineProperty({ __proto__: null, DATA_URL_PNG_PREFIX: pt, getImageDataUrl: (e, t = 1) => new Promise(async (n, r) => {
692
692
  let o = null;
693
693
  try {
694
694
  o = new Image(), o.src = e, o.addEventListener("load", function() {
695
695
  try {
696
- const i = document.createElement("canvas");
697
- i.width = o.naturalWidth, i.height = o.naturalHeight, i.getContext("2d").drawImage(o, 0, 0);
698
- const a = i.toDataURL("image/png", t);
699
- r({ elemImg: o, dataUrl: a });
700
- } catch (i) {
701
- URL.revokeObjectURL(e), n(i);
696
+ const a = document.createElement("canvas");
697
+ a.width = o.naturalWidth, a.height = o.naturalHeight, a.getContext("2d").drawImage(o, 0, 0);
698
+ const i = a.toDataURL("image/png", t);
699
+ n({ elemImg: o, dataUrl: i });
700
+ } catch (a) {
701
+ URL.revokeObjectURL(e), r(a);
702
702
  }
703
703
  }, { once: !0 }), o.addEventListener("error", function() {
704
- URL.revokeObjectURL(e), n("Invalid Image");
704
+ URL.revokeObjectURL(e), r("Invalid Image");
705
705
  }, { once: !0 }), await o.decode("sync");
706
706
  } catch {
707
707
  o?.src && URL.revokeObjectURL(o.src);
708
708
  }
709
- o || n(ht);
709
+ o || r(ht);
710
710
  }), loadImageDetails: async (e, t = null) => {
711
- let r = null;
712
- const n = async () => {
711
+ let n = null;
712
+ const r = async () => {
713
713
  try {
714
- const i = t ?? "image/*", a = URL.createObjectURL(new Blob([e], { type: i })), l = await Ye(a);
715
- r = { mimeType: i, naturalDimensions: l, asUrl: a };
714
+ const a = t ?? "image/*", i = URL.createObjectURL(new Blob([e], { type: a })), l = await Ye(i);
715
+ n = { mimeType: a, naturalSize: l, asUrl: i };
716
716
  } catch {
717
717
  }
718
718
  }, o = async () => {
719
719
  try {
720
- const i = new TextDecoder().decode(e), a = URL.createObjectURL(new Blob([i], { type: we })), l = await Ye(a);
721
- r = { mimeType: t ?? we, naturalDimensions: l, asUrl: a, asSVGText: i };
720
+ const a = new TextDecoder().decode(e), i = URL.createObjectURL(new Blob([a], { type: we })), l = await Ye(i);
721
+ n = { mimeType: t ?? we, naturalSize: l, asUrl: i, asSVGText: a };
722
722
  } catch {
723
723
  }
724
724
  };
725
- if (t === we ? await o() : t.startsWith("image/") ? await n() : (await n(), r || await o()), !r) throw new Error("Failed to load image");
726
- return r;
725
+ if (t === we ? await o() : t.startsWith("image/") ? await r() : (await r(), n || await o()), !n) throw new Error("Failed to load image");
726
+ return n;
727
727
  } }, Symbol.toStringTag, { value: "Module" }));
728
728
  var Je, He;
729
- (He = Je || (Je = {})).resolveTypedUpdates = (e, t, r, n) => {
729
+ (He = Je || (Je = {})).resolveTypedUpdates = (e, t, n, r) => {
730
730
  if (e === null) return e;
731
- if (e === void 0) return n;
731
+ if (e === void 0) return r;
732
732
  let o = e;
733
733
  if (t?.shorthand) {
734
- const u = t?.shorthand(e, r);
734
+ const u = t?.shorthand(e, n);
735
735
  u !== void 0 && (o = u);
736
736
  }
737
737
  if (o !== null && t?.getSubType) {
738
738
  const u = t.getSubType(o);
739
739
  u && (t = u);
740
740
  }
741
- const i = t?.properties, a = t?.arrayType ?? !1;
741
+ const a = t?.properties, i = t?.arrayType ?? !1;
742
742
  let l = o;
743
- if (t && t.merge && l && n) l = t.merge(l, n, r);
744
- else if (!a && i) {
745
- const u = Object.keys({ ...o, ...n });
743
+ if (t && t.merge && l && r) l = t.merge(l, r, n);
744
+ else if (!i && a) {
745
+ const u = Object.keys({ ...o, ...r });
746
746
  l = null;
747
747
  const p = u.length;
748
748
  for (let w = 0; w < p; w++) {
749
749
  const g = u[w];
750
750
  let f, y = o[g];
751
751
  if (y !== void 0) {
752
- const x = i[g];
753
- f = x ? (0, He.resolveTypedUpdates)(y, x, r, n?.[g]) : y;
754
- } else f = n?.[g];
752
+ const x = a[g];
753
+ f = x ? (0, He.resolveTypedUpdates)(y, x, n, r?.[g]) : y;
754
+ } else f = r?.[g];
755
755
  f != null && (l = l ?? {}, l[g] = f);
756
756
  }
757
757
  }
@@ -768,21 +768,21 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
768
768
  document.hasFocus() ? e() : globalThis.addEventListener?.("focus", () => {
769
769
  e();
770
770
  }, { once: !0 }), document.activeElement.focus?.();
771
- }), be = async (e, t, r) => {
772
- if (oe() === k.Safari) return await r(new Error(mt.Safari));
771
+ }), be = async (e, t, n) => {
772
+ if (oe() === k.Safari) return await n(new Error(mt.Safari));
773
773
  try {
774
- const n = async (a) => {
774
+ const r = async (i) => {
775
775
  try {
776
- return await a();
776
+ return await i();
777
777
  } catch (l) {
778
778
  if (l.message?.includes("Document is not focused")) return !1;
779
779
  throw l;
780
780
  }
781
781
  }, o = await globalThis?.navigator?.permissions?.query({ name: e, allowWithoutGesture: !0, allowWithoutSanitization: !0 });
782
- let i = !1;
783
- if (o.state === "prompt" && (i = await n(t)), i || o.state !== "granted" || (i = await t()), !i) return await r(new Error(o.state));
784
- } catch (n) {
785
- return n.message === "No valid data on clipboard" || n.name === "DataError" ? void 0 : await r(n);
782
+ let a = !1;
783
+ if (o.state === "prompt" && (a = await r(t)), a || o.state !== "granted" || (a = await t()), !a) return await n(new Error(o.state));
784
+ } catch (r) {
785
+ return r.message === "No valid data on clipboard" || r.name === "DataError" ? void 0 : await n(r);
786
786
  }
787
787
  }, wt = async (e) => {
788
788
  try {
@@ -792,77 +792,77 @@ Please use Chrome or Edge if external copy and paste is required.\`, Perms: ye,
792
792
  return await e.read();
793
793
  }, zt = async (e, t) => {
794
794
  if (!e) return null;
795
- const r = await wt(e);
796
- let n = !1;
797
- for (let o = 0; !n && r && o < r.length; o++) if (n = r[o].types.includes(t), n)
798
- return await r[o].getType(t);
799
- return n ? void 0 : null;
795
+ const n = await wt(e);
796
+ let r = !1;
797
+ for (let o = 0; !r && n && o < n.length; o++) if (r = n[o].types.includes(t), r)
798
+ return await n[o].getType(t);
799
+ return r ? void 0 : null;
800
800
  };
801
801
  if (!globalThis.ClipboardItem) {
802
- const e = (r, n) => new Blob([n], { type: r });
802
+ const e = (n, r) => new Blob([r], { type: n });
803
803
  class t {
804
- constructor(n, o) {
805
- this._items = {}, this._types = Object.keys(n);
806
- const i = {}, a = Object.keys(n);
807
- for (let l = 0; l < a.length; l++) {
808
- const u = a[l];
809
- let p = n[u];
810
- i[u] = typeof p == "string" ? e(u, p) : p;
804
+ constructor(r, o) {
805
+ this._items = {}, this._types = Object.keys(r);
806
+ const a = {}, i = Object.keys(r);
807
+ for (let l = 0; l < i.length; l++) {
808
+ const u = i[l];
809
+ let p = r[u];
810
+ a[u] = typeof p == "string" ? e(u, p) : p;
811
811
  }
812
- this._items = i, this._presentationStyle = o?.presentationStyle ?? "unspecified";
812
+ this._items = a, this._presentationStyle = o?.presentationStyle ?? "unspecified";
813
813
  }
814
814
  get types() {
815
815
  return this._types;
816
816
  }
817
- getType(n) {
818
- return Promise.resolve(this._items[n]);
817
+ getType(r) {
818
+ return Promise.resolve(this._items[r]);
819
819
  }
820
- supports(n) {
820
+ supports(r) {
821
821
  return !0;
822
822
  }
823
823
  }
824
824
  globalThis.ClipboardItem = t;
825
825
  }
826
- const ve = async (e, t = S.html) => new Promise(async (r, n) => {
826
+ const ve = async (e, t = S.html) => new Promise(async (n, r) => {
827
827
  try {
828
828
  const o = await zt(e, t);
829
829
  if (o) {
830
- const i = new FileReader();
831
- i.onload = () => {
832
- r(i.result);
833
- }, i.onerror = () => {
834
- r("");
835
- }, i.readAsText(o);
836
- } else r("");
830
+ const a = new FileReader();
831
+ a.onload = () => {
832
+ n(a.result);
833
+ }, a.onerror = () => {
834
+ n("");
835
+ }, a.readAsText(o);
836
+ } else n("");
837
837
  } catch (o) {
838
- n(o);
838
+ r(o);
839
839
  }
840
840
  }), Ze = async (e, t = S.html) => {
841
- const r = await ve(e, t);
842
- if (!r) return null;
843
- let n = null;
841
+ const n = await ve(e, t);
842
+ if (!n) return null;
843
+ let r = null;
844
844
  try {
845
- n = new DOMParser().parseFromString(r, S.html);
845
+ r = new DOMParser().parseFromString(n, S.html);
846
846
  } catch {
847
847
  console.warn("Can't parse html from clipboard.");
848
848
  }
849
- return n;
849
+ return r;
850
850
  }, Kt = async (e) => {
851
851
  e && await e.writeText("");
852
- }, ie = "clipboard-uuid", Q = "web text/uuid", Qe = (e) => \`<div style="display:none" \${ie}="\${e}"/>\`, Vt = (e, t) => {
853
- let r = null;
852
+ }, ae = "clipboard-uuid", Q = "web text/uuid", Qe = (e) => \`<div style="display:none" \${ae}="\${e}"/>\`, Vt = (e, t) => {
853
+ let n = null;
854
854
  try {
855
- const n = new DOMParser().parseFromString(t, S.html);
856
- n.body.firstElementChild.setAttribute(ie, e), r = n.getElementsByTagName("body")[0].innerHTML;
857
- } catch (n) {
858
- console.warn("Can't embed uuid.", n);
855
+ const r = new DOMParser().parseFromString(t, S.html);
856
+ r.body.firstElementChild.setAttribute(ae, e), n = r.getElementsByTagName("body")[0].innerHTML;
857
+ } catch (r) {
858
+ console.warn("Can't embed uuid.", r);
859
859
  }
860
- return r;
860
+ return n;
861
861
  }, et = (e, t) => {
862
862
  if (!t || !e) return !1;
863
863
  try {
864
- const r = t.querySelectorAll(\`[\${ie}="\${e}"]\`);
865
- if (r && r.length === 1) return !0;
864
+ const n = t.querySelectorAll(\`[\${ae}="\${e}"]\`);
865
+ if (n && n.length === 1) return !0;
866
866
  if (t.querySelector("parsererror")) throw new Error("We are unable to parse node");
867
867
  return !1;
868
868
  } catch {
@@ -884,8 +884,8 @@ class tt {
884
884
  await ge();
885
885
  const t = await ve(this._nativeClipboard, Q);
886
886
  if (!this._state || t && t === this._state.uuid) return !0;
887
- const r = await Ze(this._nativeClipboard, S.html);
888
- return !this._state || (et(this._state.uuid, r) || this.clear(), !0);
887
+ const n = await Ze(this._nativeClipboard, S.html);
888
+ return !this._state || (et(this._state.uuid, n) || this.clear(), !0);
889
889
  }, async (t) => {
890
890
  t?.message === "denied" || t.message?.includes("Document is not focused") || oe() === k.Safari || console.warn("Unable to detect clipboard changes: ", t);
891
891
  });
@@ -896,7 +896,7 @@ class tt {
896
896
  t._checkForChanges();
897
897
  }, this._onBlur = () => {
898
898
  globalThis.addEventListener?.("focus", t._onFocus, { once: !0 });
899
- }, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (r) => {
899
+ }, globalThis.addEventListener?.("blur", this._onBlur), this._nativeClipboard.addEventListener("clipboardchange", (n) => {
900
900
  t._checkForChanges();
901
901
  }));
902
902
  }
@@ -905,13 +905,13 @@ class tt {
905
905
  const t = this;
906
906
  return await be("clipboard-read", async () => {
907
907
  if (await ge(), this._state?.uuid) {
908
- const r = await ve(this._nativeClipboard, Q);
909
- if (r && r === t._state.uuid) return !0;
910
- const n = await Ze(this._nativeClipboard, S.html);
911
- if (et(t._state?.uuid, n)) return !0;
908
+ const n = await ve(this._nativeClipboard, Q);
909
+ if (n && n === t._state.uuid) return !0;
910
+ const r = await Ze(this._nativeClipboard, S.html);
911
+ if (et(t._state?.uuid, r)) return !0;
912
912
  }
913
913
  return t._state = { items: await wt(this._nativeClipboard), uuid: null, ref: null }, this.dispatchEvent(new Event("clipboardread")), !0;
914
- }, async (r) => {
914
+ }, async (n) => {
915
915
  this.dispatchEvent(new Event("clipboarderrorread"));
916
916
  }), this._state?.items ?? [];
917
917
  }
@@ -920,15 +920,15 @@ class tt {
920
920
  }
921
921
  async _write(t) {
922
922
  if (!this._nativeClipboard) return this._state = t, this.dispatchEvent(new Event("clipboardwrite")), this.dispatchEvent(new Event("clipboardchange")), null;
923
- const r = this, n = [], o = t.uuid;
924
- let i = t.items ?? [];
925
- const a = () => {
926
- r._state = { uuid: o, ref: t.ref, items: n }, r.dispatchEvent(new Event("clipboardwrite")), r.dispatchEvent(new Event("clipboardchange"));
923
+ const n = this, r = [], o = t.uuid;
924
+ let a = t.items ?? [];
925
+ const i = () => {
926
+ n._state = { uuid: o, ref: t.ref, items: r }, n.dispatchEvent(new Event("clipboardwrite")), n.dispatchEvent(new Event("clipboardchange"));
927
927
  };
928
928
  await be("clipboard-write", async () => {
929
- 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 }) })));
930
- for (let l = 0; l < Math.min(1, i.length); l++) {
931
- const u = i[l];
929
+ 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 }) })));
930
+ for (let l = 0; l < Math.min(1, a.length); l++) {
931
+ const u = a[l];
932
932
  let p = u.types.indexOf(S.html), w = null;
933
933
  if (p !== -1) {
934
934
  const y = await u.getType(S.html);
@@ -938,12 +938,12 @@ class tt {
938
938
  const y = await u.getType(S.plain);
939
939
  if (y) {
940
940
  let x = null;
941
- typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await Ce(y), x && (w = \`<div \${ie}="\${o}">\${x}</div>\`);
941
+ typeof y == "string" ? (console.warn("text as string", y), x = y) : x = await Ce(y), x && (w = \`<div \${ae}="\${o}">\${x}</div>\`);
942
942
  }
943
943
  }
944
944
  if (!w && u.types.includes(S.png)) {
945
945
  const y = await u.getType(S.png), x = ft(await y.arrayBuffer());
946
- w = \`<div \${ie}="\${o}"><img src="\${pt + x}"/></div>\`;
946
+ w = \`<div \${ae}="\${o}"><img src="\${pt + x}"/></div>\`;
947
947
  }
948
948
  !w && o && (w = Qe(o));
949
949
  const g = new Blob([w ?? ""], { type: S.html }), f = {};
@@ -951,42 +951,42 @@ class tt {
951
951
  const x = u.types[y];
952
952
  f[x] = y === p ? g : u.getType(x);
953
953
  }
954
- w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), n.push(new ClipboardItem(f));
954
+ w && p === -1 && (f[S.html] = g), o && (f[Q] = new Blob([o], { type: Q })), r.push(new ClipboardItem(f));
955
955
  }
956
956
  try {
957
- n && n.length !== 0 ? await this._nativeClipboard.write(n) : await Kt(this._nativeClipboard);
957
+ r && r.length !== 0 ? await this._nativeClipboard.write(r) : await Kt(this._nativeClipboard);
958
958
  } catch (l) {
959
959
  l.message?.includes("Document is not focused") || console.warn("Unable to write to native clipboard: ", l);
960
960
  }
961
- return a(), !0;
961
+ return i(), !0;
962
962
  }, async (l) => {
963
- this.dispatchEvent(new Event("clipboarderrorwrite")), a();
963
+ this.dispatchEvent(new Event("clipboarderrorwrite")), i();
964
964
  });
965
965
  }
966
966
  async writeReference(t) {
967
967
  if (!t) return void this.clear();
968
- let r = null;
969
- const n = {};
968
+ let n = null;
969
+ const r = {};
970
970
  try {
971
- const i = await t.toText?.() ?? null;
972
- i && (n[S.plain] = new Blob([i ?? ""], { type: S.plain }));
973
- } catch (i) {
974
- r = i;
971
+ const a = await t.toText?.() ?? null;
972
+ a && (r[S.plain] = new Blob([a ?? ""], { type: S.plain }));
973
+ } catch (a) {
974
+ n = a;
975
975
  }
976
976
  try {
977
- const i = await t.toHtml?.() ?? null;
978
- i && (n[S.html] = new Blob([i], { type: S.html }));
979
- } catch (i) {
980
- r = i, console.warn("export to html", i);
977
+ const a = await t.toHtml?.() ?? null;
978
+ a && (r[S.html] = new Blob([a], { type: S.html }));
979
+ } catch (a) {
980
+ n = a, console.warn("export to html", a);
981
981
  }
982
982
  try {
983
- const i = await t.toImage?.() ?? null;
984
- i && (n[S.png] = i);
985
- } catch (i) {
986
- r = i, console.warn("export to png", i);
983
+ const a = await t.toImage?.() ?? null;
984
+ a && (r[S.png] = a);
985
+ } catch (a) {
986
+ n = a, console.warn("export to png", a);
987
987
  }
988
- const o = this._write({ uuid: de(), ref: t, items: Object.keys(n).length > 0 ? [new ClipboardItem(n)] : null });
989
- if (r) throw r;
988
+ const o = this._write({ uuid: de(), ref: t, items: Object.keys(r).length > 0 ? [new ClipboardItem(r)] : null });
989
+ if (n) throw n;
990
990
  return o;
991
991
  }
992
992
  clear(t = !1) {
@@ -996,45 +996,45 @@ class tt {
996
996
  return await this.read(), this._state?.ref ?? null;
997
997
  }
998
998
  readText() {
999
- return new Promise(async (t, r) => {
1000
- const n = await this.read();
999
+ return new Promise(async (t, n) => {
1000
+ const r = await this.read();
1001
1001
  let o = null;
1002
- for (let a = 0; !o && n && a < n.length; a++) n[a].types.includes(S.plain) && (o = await n[a].getType(S.plain));
1002
+ for (let i = 0; !o && r && i < r.length; i++) r[i].types.includes(S.plain) && (o = await r[i].getType(S.plain));
1003
1003
  if (!o) return void t("");
1004
- const i = new FileReader();
1005
- i.onload = () => {
1006
- t(i.result);
1007
- }, i.readAsText(o), i.onerror = (a) => {
1008
- r(a);
1004
+ const a = new FileReader();
1005
+ a.onload = () => {
1006
+ t(a.result);
1007
+ }, a.readAsText(o), a.onerror = (i) => {
1008
+ n(i);
1009
1009
  };
1010
1010
  });
1011
1011
  }
1012
1012
  async writeText(t) {
1013
- const r = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
1014
- return this._write({ uuid: de(), items: r, ref: null });
1013
+ const n = [new ClipboardItem({ [S.plain]: new Blob([t], { type: S.plain }) })];
1014
+ return this._write({ uuid: de(), items: n, ref: null });
1015
1015
  }
1016
- addEventListener(t, r, n = {}) {
1017
- const o = n?.capture ? this._listenersCapture : this._listeners;
1018
- let i = o.get(t);
1019
- i || (i = /* @__PURE__ */ new Map(), o.set(t, i)), i.set(r, typeof n == "boolean" ? {} : n);
1016
+ addEventListener(t, n, r = {}) {
1017
+ const o = r?.capture ? this._listenersCapture : this._listeners;
1018
+ let a = o.get(t);
1019
+ a || (a = /* @__PURE__ */ new Map(), o.set(t, a)), a.set(n, typeof r == "boolean" ? {} : r);
1020
1020
  }
1021
1021
  dispatchEvent(t) {
1022
1022
  if (!t) return;
1023
- const r = (n) => {
1024
- const o = n.get(t.type);
1025
- o && o.forEach((i, a) => {
1023
+ const n = (r) => {
1024
+ const o = r.get(t.type);
1025
+ o && o.forEach((a, i) => {
1026
1026
  try {
1027
- typeof a == "function" ? a(t) : a.handleEvent && a.handleEvent(t), i.once && o.delete(a);
1027
+ typeof i == "function" ? i(t) : i.handleEvent && i.handleEvent(t), a.once && o.delete(i);
1028
1028
  } catch (l) {
1029
1029
  console.warn(l);
1030
1030
  }
1031
1031
  });
1032
1032
  };
1033
- return r(this._listenersCapture), r(this._listeners), !0;
1033
+ return n(this._listenersCapture), n(this._listeners), !0;
1034
1034
  }
1035
- removeEventListener(t, r, n) {
1036
- const o = n?.capture ? this._listenersCapture : this._listeners, i = o.get(t);
1037
- i && (i.delete(r), i.size === 0 && o.delete(t));
1035
+ removeEventListener(t, n, r) {
1036
+ const o = r?.capture ? this._listenersCapture : this._listeners, a = o.get(t);
1037
+ a && (a.delete(n), a.size === 0 && o.delete(t));
1038
1038
  }
1039
1039
  close() {
1040
1040
  globalThis.removeEventListener?.("focus", this._onFocus), globalThis.removeEventListener?.("blur", this._onBlur);
@@ -1053,16 +1053,16 @@ async function Gt() {
1053
1053
  return ee;
1054
1054
  }
1055
1055
  let e, t;
1056
- le = new Promise((r, n) => {
1057
- e = r, t = n;
1056
+ le = new Promise((n, r) => {
1057
+ e = n, t = r;
1058
1058
  });
1059
1059
  try {
1060
- const { initialize: r } = await Promise.resolve().then(function() {
1061
- return or;
1060
+ const { initialize: n } = await Promise.resolve().then(function() {
1061
+ return on;
1062
1062
  });
1063
- return ee = await r(), e(), ee;
1064
- } catch (r) {
1065
- throw console.error("Failed to import or initialize esbuild:", r), le = null, t(r), r;
1063
+ return ee = await n(), e(), ee;
1064
+ } catch (n) {
1065
+ throw console.error("Failed to import or initialize esbuild:", n), le = null, t(n), n;
1066
1066
  }
1067
1067
  }
1068
1068
  const Wt = {
@@ -1071,21 +1071,21 @@ const Wt = {
1071
1071
  target: "esnext"
1072
1072
  }
1073
1073
  };
1074
- async function Yt(e, t, r = "/script.js", n = qt) {
1074
+ async function Yt(e, t, n = "/script.js", r = qt) {
1075
1075
  try {
1076
- const o = await Gt(), i = "@sheetxl/primitives", a = \`
1077
- export const FormulaContext = globalThis.\${n}?.FormulaContext;
1078
- export const ScalarType = globalThis.\${n}?.ScalarType;
1079
- export const Observable = globalThis.\${n}?.Observable;
1080
- export const IRange = globalThis.\${n}?.IRange;
1081
- export const FormulaError = globalThis.\${n}?.FormulaError;
1076
+ const o = await Gt(), a = "@sheetxl/primitives", i = \`
1077
+ export const FormulaContext = globalThis.\${r}?.FormulaContext;
1078
+ export const ScalarType = globalThis.\${r}?.ScalarType;
1079
+ export const Observable = globalThis.\${r}?.Observable;
1080
+ export const IRange = globalThis.\${r}?.IRange;
1081
+ export const FormulaError = globalThis.\${r}?.FormulaError;
1082
1082
  // Add more exports as needed
1083
1083
  \`, l = {
1084
1084
  // ESBuild.Plugin = {
1085
1085
  name: "sheetxl-esbuild-in-memory",
1086
1086
  setup(p) {
1087
1087
  const w = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
1088
- p.onResolve({ filter: new RegExp(\`^(\${r.replace("/", "\\\\/")}|\${i})$\`) }, (g) => ({
1088
+ p.onResolve({ filter: new RegExp(\`^(\${n.replace("/", "\\\\/")}|\${a})$\`) }, (g) => ({
1089
1089
  path: g.path,
1090
1090
  namespace: w
1091
1091
  })), p.onResolve({ filter: /.*/ }, (g) => {
@@ -1093,10 +1093,10 @@ async function Yt(e, t, r = "/script.js", n = qt) {
1093
1093
  return console.warn(\`esbuild: Treating import "\${g.path}" as external.\`), { path: g.path, external: !0 };
1094
1094
  }), p.onLoad({ filter: /.*/, namespace: w }, (g) => {
1095
1095
  let f;
1096
- if (g.path === r)
1096
+ if (g.path === n)
1097
1097
  f = t;
1098
- else if (g.path === i)
1099
- f = a;
1098
+ else if (g.path === a)
1099
+ f = i;
1100
1100
  else
1101
1101
  return {
1102
1102
  errors: [{ text: \`Cannot load unknown path in \${w}: \${g.path}\` }]
@@ -1109,7 +1109,7 @@ async function Yt(e, t, r = "/script.js", n = qt) {
1109
1109
  });
1110
1110
  }
1111
1111
  }, u = await o.build({
1112
- entryPoints: [r],
1112
+ entryPoints: [n],
1113
1113
  // Use the virtual entry point
1114
1114
  bundle: !0,
1115
1115
  // IMPORTANT: Enable bundling
@@ -1166,9 +1166,9 @@ interface Promise<T> {
1166
1166
  ["ICellRange", "range"],
1167
1167
  ["IFormulaContext", "context"]
1168
1168
  ]), _e = (e, t) => {
1169
- Array.from(t.keys()).forEach((n) => {
1170
- const o = t.get(n);
1171
- t.set(\`\${e}.\${n}\`, o);
1169
+ Array.from(t.keys()).forEach((r) => {
1170
+ const o = t.get(r);
1171
+ t.set(\`\${e}.\${r}\`, o);
1172
1172
  });
1173
1173
  }, Zt = /* @__PURE__ */ new Map([
1174
1174
  ["Scalar", "*"],
@@ -1181,7 +1181,7 @@ interface Promise<T> {
1181
1181
  _e(Oe, yt);
1182
1182
  _e(Oe, gt);
1183
1183
  _e(Oe, Qt);
1184
- const er = /* @__PURE__ */ new Map([
1184
+ const en = /* @__PURE__ */ new Map([
1185
1185
  ["Promise", () => ({ async: !0 })],
1186
1186
  // ['PromiseLike', (): Partial<IFunction.ReturnTypeJSON> => {
1187
1187
  // return { async: true };
@@ -1189,12 +1189,12 @@ const er = /* @__PURE__ */ new Map([
1189
1189
  ["Observable", () => ({ stream: !0 })]
1190
1190
  ]);
1191
1191
  let se = null;
1192
- async function tr() {
1192
+ async function tn() {
1193
1193
  if (se)
1194
1194
  return se;
1195
1195
  try {
1196
1196
  return await (await Promise.resolve().then(function() {
1197
- return ar;
1197
+ return ln;
1198
1198
  })).initialize();
1199
1199
  } catch (e) {
1200
1200
  throw se = null, e;
@@ -1202,14 +1202,14 @@ async function tr() {
1202
1202
  se = null;
1203
1203
  }
1204
1204
  }
1205
- async function rr(e) {
1205
+ async function nn(e) {
1206
1206
  const t = e?.source ?? null;
1207
1207
  if (!t) return null;
1208
- const r = (e.disableBundle || e.declarationsOnly) ?? !1, n = [
1208
+ const n = (e.disableBundle || e.declarationsOnly) ?? !1, r = [
1209
1209
  Xt(),
1210
1210
  //import('typescript'), // when bundled, but node check causes issues. We could bundle replace isNode but felt hacky
1211
- tr()
1212
- ], o = await Promise.all(n), i = o[0], a = o[1];
1211
+ tn()
1212
+ ], o = await Promise.all(r), a = o[0], i = o[1];
1213
1213
  let l = "", u = null;
1214
1214
  const p = [], w = {
1215
1215
  allowJs: !0,
@@ -1225,14 +1225,14 @@ async function rr(e) {
1225
1225
  //"esNext",
1226
1226
  noResolve: !0,
1227
1227
  emitDeclarationOnly: !1,
1228
- target: a.ScriptTarget.ES2020
1228
+ target: i.ScriptTarget.ES2020
1229
1229
  // lib: ['webworker', 'es2020', 'esnext.asynciterable'], // Use the webworker lib instead of dom
1230
1230
  }, g = "script", f = \`\${g}.ts\`, y = "lib.d.ts", x = "global.d.ts", A = {
1231
1231
  [f]: t,
1232
1232
  [y]: Jt,
1233
- [x]: i
1233
+ [x]: a
1234
1234
  }, D = {
1235
- getSourceFile: (s, m, L, P) => a.createSourceFile(s, A[s], a.ScriptTarget.Latest, !0),
1235
+ getSourceFile: (s, m, L, P) => i.createSourceFile(s, A[s], i.ScriptTarget.Latest, !0),
1236
1236
  fileExists: (s) => A[s] !== void 0,
1237
1237
  readFile: (s) => A[s],
1238
1238
  writeFile: (s, m) => {
@@ -1245,38 +1245,38 @@ async function rr(e) {
1245
1245
  getDefaultLibFileName: (s) => y,
1246
1246
  getNewLine: () => \`
1247
1247
  \`
1248
- }, U = a.createProgram([f, x], w, D), I = U.getTypeChecker(), J = U.getSourceFile(f), E = U.emit();
1248
+ }, U = i.createProgram([f, x], w, D), I = U.getTypeChecker(), J = U.getSourceFile(f), E = U.emit();
1249
1249
  E.diagnostics.length > 0 && console.warn(E.diagnostics), l = A[\`\${g}.js\`];
1250
1250
  const c = (s, m, L, P) => {
1251
1251
  if (!s) {
1252
1252
  $(s, new Error(\`Type is not defined for '\${m?.name ?? "return"}'.\`));
1253
1253
  return;
1254
1254
  }
1255
- if (s.kind === a.SyntaxKind.NumberKeyword)
1255
+ if (s.kind === i.SyntaxKind.NumberKeyword)
1256
1256
  m.scalar = W.Number;
1257
- else if (s.kind === a.SyntaxKind.StringKeyword)
1257
+ else if (s.kind === i.SyntaxKind.StringKeyword)
1258
1258
  m.scalar = W.String;
1259
- else if (s.kind === a.SyntaxKind.BooleanKeyword)
1259
+ else if (s.kind === i.SyntaxKind.BooleanKeyword)
1260
1260
  m.scalar = W.Boolean;
1261
- else if (s.kind === a.SyntaxKind.UndefinedKeyword || s.kind === a.SyntaxKind.NullKeyword || s.kind === a.SyntaxKind.VoidKeyword) {
1261
+ else if (s.kind === i.SyntaxKind.UndefinedKeyword || s.kind === i.SyntaxKind.NullKeyword || s.kind === i.SyntaxKind.VoidKeyword) {
1262
1262
  if (P) {
1263
1263
  $(s, new Error(\`'undefined' is not a valid type for input: '\${s?.parent?.name?.escapedText}'.\`));
1264
1264
  return;
1265
1265
  }
1266
1266
  m.scalar = W.Null;
1267
- } else if (s.kind === a.SyntaxKind.BigIntKeyword)
1267
+ } else if (s.kind === i.SyntaxKind.BigIntKeyword)
1268
1268
  m.scalar = W.Number;
1269
- else if (s.kind === a.SyntaxKind.AnyKeyword)
1269
+ else if (s.kind === i.SyntaxKind.AnyKeyword)
1270
1270
  m.scalar = W.Null;
1271
- else if (s.kind === a.SyntaxKind.ArrayType) {
1271
+ else if (s.kind === i.SyntaxKind.ArrayType) {
1272
1272
  const M = s.elementType;
1273
1273
  if (!M) {
1274
1274
  $(s, new Error(\`'Array' must be typed: '\${s?.parent?.name?.escapedText}'.\`));
1275
1275
  return;
1276
1276
  }
1277
1277
  m.arrayDepth = (m.arrayDepth ?? 0) + 1, c(M, m, L, P);
1278
- } else if (s.kind !== a.SyntaxKind.TupleType) {
1279
- if (s.kind === a.SyntaxKind.TypeReference) {
1278
+ } else if (s.kind !== i.SyntaxKind.TupleType) {
1279
+ if (s.kind === i.SyntaxKind.TypeReference) {
1280
1280
  const M = s.typeName?.getText?.() ?? null, K = yt.get(M);
1281
1281
  let V = !1;
1282
1282
  K && (m.range = K, V = !0);
@@ -1286,7 +1286,7 @@ async function rr(e) {
1286
1286
  if (R)
1287
1287
  return R;
1288
1288
  } else {
1289
- const R = er.get(M);
1289
+ const R = en.get(M);
1290
1290
  if (R) {
1291
1291
  const b = { ...m, ...R() };
1292
1292
  let N = 0;
@@ -1311,11 +1311,11 @@ async function rr(e) {
1311
1311
  }
1312
1312
  }
1313
1313
  }
1314
- }, h = (s) => (a.getCombinedModifierFlags(s) & a.ModifierFlags.Export) !== 0, fe = (s) => (a.getCombinedModifierFlags(s) & a.ModifierFlags.Default) !== 0, B = [], $ = (s, m) => {
1314
+ }, h = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Export) !== 0, fe = (s) => (i.getCombinedModifierFlags(s) & i.ModifierFlags.Default) !== 0, B = [], $ = (s, m) => {
1315
1315
  B.push(m);
1316
1316
  };
1317
- if (a.forEachChild(J, (s) => {
1318
- if (h(s) && a.isFunctionDeclaration(s)) {
1317
+ if (i.forEachChild(J, (s) => {
1318
+ if (h(s) && i.isFunctionDeclaration(s)) {
1319
1319
  const m = {}, L = {
1320
1320
  parameters: {}
1321
1321
  }, P = s?.name?.getText();
@@ -1348,7 +1348,7 @@ async function rr(e) {
1348
1348
  let v;
1349
1349
  if (z && (N.optional = !0, b.initializer))
1350
1350
  try {
1351
- 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?.();
1351
+ 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?.();
1352
1352
  } catch (O) {
1353
1353
  console.warn(\`Couldn't extract default value for parameter '\${N.name}'\`, O);
1354
1354
  }
@@ -1397,10 +1397,10 @@ async function rr(e) {
1397
1397
  if (z.typeExpression && z.typeExpression.type)
1398
1398
  try {
1399
1399
  const Z = z.typeExpression.type;
1400
- if (Z.kind === a.SyntaxKind.UnionType) {
1400
+ if (Z.kind === i.SyntaxKind.UnionType) {
1401
1401
  const te = [];
1402
1402
  F.enums = te, Z.types.forEach((pe) => {
1403
- if (pe.kind === a.SyntaxKind.LiteralType) {
1403
+ if (pe.kind === i.SyntaxKind.LiteralType) {
1404
1404
  const he = pe.literal.text;
1405
1405
  he && te.push(he);
1406
1406
  }
@@ -1433,7 +1433,7 @@ async function rr(e) {
1433
1433
  throw new Error("No exported functions.");
1434
1434
  const bt = \`\${$t.uuidV4()}-script\`;
1435
1435
  try {
1436
- !r && B.length === 0 && (l = await Yt(a, l, g));
1436
+ !n && B.length === 0 && (l = await Yt(i, l, g));
1437
1437
  } catch {
1438
1438
  console.warn("Error bundling script");
1439
1439
  }
@@ -1449,60 +1449,60 @@ async function rr(e) {
1449
1449
  return u && (Ie.autoRun = u), Ie;
1450
1450
  }
1451
1451
  self.addEventListener("message", async (e) => {
1452
- const { id: t, params: r } = e.data;
1452
+ const { id: t, params: n } = e.data;
1453
1453
  try {
1454
- const n = await rr(r);
1455
- self.postMessage({ id: t, result: n, error: null });
1456
- } catch (n) {
1454
+ const r = await nn(n);
1455
+ self.postMessage({ id: t, result: r, error: null });
1456
+ } catch (r) {
1457
1457
  self.postMessage({
1458
1458
  id: t,
1459
1459
  result: null,
1460
1460
  error: {
1461
- message: n.message,
1462
- stack: n.stack,
1463
- cause: n.cause
1461
+ message: r.message,
1462
+ stack: r.stack,
1463
+ cause: r.cause
1464
1464
  }
1465
1465
  });
1466
1466
  }
1467
1467
  });
1468
1468
  let ce = null;
1469
- async function nr() {
1469
+ async function rn() {
1470
1470
  return ce || (ce = new Promise(async (e, t) => {
1471
1471
  try {
1472
- const r = "0.20.2", n = \`https://esm.sh/esbuild-wasm@\${r}\`, o = \`https://esm.sh/esbuild-wasm@\${r}/esbuild.wasm\`, a = (await import(
1472
+ const n = "0.20.2", r = \`https://esm.sh/esbuild-wasm@\${n}\`, o = \`https://esm.sh/esbuild-wasm@\${n}/esbuild.wasm\`, i = (await import(
1473
1473
  /* webpackIgnore: true */
1474
1474
  /* @vite-ignore */
1475
- n
1475
+ r
1476
1476
  )).default;
1477
- await a.initialize({
1477
+ await i.initialize({
1478
1478
  wasmURL: o,
1479
1479
  // Provide the specific WASM URL
1480
1480
  worker: !1
1481
1481
  // Keep processing on the current thread
1482
- }), e(a);
1483
- } catch (r) {
1484
- console.error("Error initializing esbuild:", r), t(r);
1482
+ }), e(i);
1483
+ } catch (n) {
1484
+ console.error("Error initializing esbuild:", n), t(n);
1485
1485
  }
1486
1486
  }), ce);
1487
1487
  }
1488
- var or = /* @__PURE__ */ Object.freeze({
1488
+ var on = /* @__PURE__ */ Object.freeze({
1489
1489
  __proto__: null,
1490
- initialize: nr
1490
+ initialize: rn
1491
1491
  });
1492
1492
  let ue = null;
1493
- async function ir() {
1493
+ async function an() {
1494
1494
  return ue || (ue = new Promise(async (e, t) => {
1495
- let r = null;
1495
+ let n = null;
1496
1496
  try {
1497
- r = await import("https://esm.sh/typescript@5.7.2");
1498
- } catch (n) {
1499
- console.error("Error initializing Browser TypeScript module:", n);
1497
+ n = await import("https://esm.sh/typescript@5.7.2");
1498
+ } catch (r) {
1499
+ console.error("Error initializing Browser TypeScript module:", r);
1500
1500
  }
1501
- r || console.log("use script fallback"), e(r);
1501
+ n || console.log("use script fallback"), e(n);
1502
1502
  }), ue);
1503
1503
  }
1504
- var ar = /* @__PURE__ */ Object.freeze({
1504
+ var ln = /* @__PURE__ */ Object.freeze({
1505
1505
  __proto__: null,
1506
- initialize: ir
1506
+ initialize: an
1507
1507
  });
1508
- `,a=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=a&&(self.URL||self.webkitURL).createObjectURL(a),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./CTT_jzhLio55PSMa.cjs")),n=new u(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(typeof process<"u"&&process.versions?.node&&typeof Worker>"u")return await l();if(typeof Worker<"u"){const e=new c(()=>new d);try{return await e.start(),e}catch(n){console.error("Failed to start TypescriptCompiler worker reverting to fallback:",n)}}return await l()};
1508
+ `,i=typeof self<"u"&&self.Blob&&new Blob(["URL.revokeObjectURL(import.meta.url);",s],{type:"text/javascript;charset=utf-8"});function d(e){let n;try{if(n=i&&(self.URL||self.webkitURL).createObjectURL(i),!n)throw"";const t=new Worker(n,{type:"module",name:e?.name});return t.addEventListener("error",()=>{(self.URL||self.webkitURL).revokeObjectURL(n)}),t}catch{return new Worker("data:text/javascript;charset=utf-8,"+encodeURIComponent(s),{type:"module",name:e?.name})}}const l=async()=>{const{compileModule:e}=await Promise.resolve().then(()=>require("./BiHqOGcXJWRP3FQy.cjs")),n=new u(t=>e(t));return await n.start(),n};exports.createCompilerWorker=async function(){if(typeof process<"u"&&process.versions?.node&&typeof Worker>"u")return await l();if(typeof Worker<"u"){const e=new c(()=>new d);try{return await e.start(),e}catch(n){console.error("Failed to start TypescriptCompiler worker reverting to fallback:",n)}}return await l()};