@sheetxl/studio-vanilla 0.8.0-beta.10 → 0.8.0-beta.12

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 (484) hide show
  1. package/browser/esm/-uhPvS_bULnsjqVB.mjs +42 -0
  2. package/{cdn/assets/CBdNC7BOfc5TewHU.js → browser/esm/0YsENrFzj1ssAX9X.mjs} +1 -1
  3. package/browser/esm/{UTZcodQydbuMfCOS.mjs → 1wWPvtsW8DO6CafH.mjs} +1 -1
  4. package/{cdn/assets/BWo1N4YbK_zGU0nu.js → browser/esm/2FB6h8pTc_l_B6QZ.mjs} +1 -1
  5. package/browser/esm/{ClJvUf8aR8vNC_3Z.mjs → 30UYToote05ZLTtr.mjs} +3 -3
  6. package/browser/esm/{CnWNviK4qlX2GVl6.mjs → 41b1AdCV6QfkOX6l.mjs} +12 -13
  7. package/browser/esm/{BBjgqNlHm-ssbSAG.mjs → 4HrBEVQGdmXVxVf1.mjs} +1 -1
  8. package/browser/esm/{pKc_RPdZPLAgvNDh.mjs → 7eHYbjATYWtDW-AI.mjs} +2 -2
  9. package/browser/esm/{DNCqTF9EbT-U1TdV.mjs → A3koQh6ZccdaHPzY.mjs} +3 -3
  10. package/browser/esm/{BThOwSja2ra4xejQ.mjs → B1mhVM8eRIyuL-VB.mjs} +1587 -1456
  11. package/browser/esm/{rY-dC3WB558TIbum.mjs → B34vCv1wwb2Fh4ml.mjs} +4 -4
  12. package/browser/esm/{_MPToH4oMe4rhTdZ.mjs → B4UdS-Kh0oOnw3V5.mjs} +3 -3
  13. package/browser/esm/{CCd192S7yVpc6iOe.mjs → B5sj4wVSU_Gnsoij.mjs} +17 -16
  14. package/{cdn/assets/BAH_cWcQEIBKWnl6.js → browser/esm/B8-nLKLPjZ7pIJdE.mjs} +48 -37
  15. package/browser/esm/{BVJUL2HhoedhbwVy.mjs → B8yozzawr3e-MiZS.mjs} +12 -11
  16. package/browser/esm/BCB8nt_33nVNFVTT.mjs +199 -0
  17. package/browser/esm/BFHtja51jzj6fA8G.mjs +193 -0
  18. package/browser/esm/{C5EKgE9Owsc_juw-.mjs → BFNrFZtdVve-yU4e.mjs} +1 -1
  19. package/browser/esm/{ZbGPiRN9j0629JJQ.mjs → BFlPNsdaR2vXjM1-.mjs} +2 -2
  20. package/browser/esm/{PtGiIWFBYP-ujLmf.mjs → BFp4JZFwKkq3wPHv.mjs} +1 -1
  21. package/browser/esm/{kVBPUUnVyZfb8pf3.mjs → BGr-y2dCzvyaUCy_.mjs} +41 -41
  22. package/{cdn/assets/_t0Mx-mUFVtmVNkU.js → browser/esm/BHy_akSib7chMKWg.mjs} +1 -1
  23. package/browser/esm/BIX8xNwuEM4TocmY.mjs +131 -0
  24. package/browser/esm/{ByUcqyCNfqi5Mm7w.mjs → BJjL3rPHHyI2VT5N.mjs} +1 -1
  25. package/browser/esm/{sDVzjXC1mS5rucF5.mjs → BKXXOCxg9jVDeZfx.mjs} +639 -758
  26. package/browser/esm/{DxwprgjYhcmfDbXH.mjs → BNXqFlCmhhuJanX6.mjs} +19 -19
  27. package/browser/esm/BPNL7vh8nmg0q7RW.mjs +281 -0
  28. package/browser/esm/BSdjvRtT06k7pqHv.mjs +422 -0
  29. package/browser/esm/{FO1Jezau486fH4kN.mjs → BSzeqNbK-wYbCwiv.mjs} +1 -1
  30. package/browser/esm/{DLhK_oSGg71ry6-m.mjs → BVHz28PPZYw-4V5f.mjs} +45 -45
  31. package/{cdn/assets/CwqRA5h1u92Cyit-.js → browser/esm/BVV0zPpEupxaFfVv.mjs} +2 -2
  32. package/browser/esm/{DG3BfxRsbjey-B7E.mjs → BXiTuaDcF2kDzTB0.mjs} +2 -2
  33. package/browser/esm/{B7iV5qzlmJlM2nQv.mjs → BZWVm5Tz9V78n97U.mjs} +2 -2
  34. package/browser/esm/{BMlPFJ1glExv-70Z.mjs → BZbqsj8CH_yl3myW.mjs} +1 -1
  35. package/browser/esm/{x6GcENwqoUVbd60j.mjs → B_oYpGQQp9ELbGXT.mjs} +1 -1
  36. package/browser/esm/BdK6G62ymmr00Ghb.mjs +104 -0
  37. package/browser/esm/Bdqs1vuxUIzfBU03.mjs +101 -0
  38. package/browser/esm/{vGKTE7yjY8y-XnsW.mjs → Bfefutdeq9eAruVm.mjs} +2 -2
  39. package/browser/esm/{Dwxz0s23ra1tRtsH.mjs → BikqeuAc1ownJULP.mjs} +3 -2
  40. package/{cdn/assets/BSCja5yvevmKZPBB.js → browser/esm/Bj-ggr3Qgt0J39xx.mjs} +1 -1
  41. package/browser/esm/Bkg2ukKnA4m4qbgG.mjs +181 -0
  42. package/browser/esm/BmmbYyO6_Vr_L5NJ.mjs +9990 -0
  43. package/browser/esm/{CaS8_J5HfBRk5_Nw.mjs → Bn-CqbXsrYIajb_W.mjs} +33 -33
  44. package/{cdn/assets/DxcRLd7wmBGDgJsA.js → browser/esm/BoFEETlY0hZb0PRp.mjs} +1 -1
  45. package/browser/esm/{D2aQPiGg0ZoMYzuf.mjs → BoYTs2k2yWAKW5LM.mjs} +5 -5
  46. package/browser/esm/BqPEItNoP2iZ2lkz.mjs +163 -0
  47. package/browser/esm/Bs9KvD8n3018Rkew.mjs +281 -0
  48. package/browser/esm/Bsy5EeZ_mwI_CkSO.mjs +86 -0
  49. package/browser/esm/{_zRV52yhE4gPf3XI.mjs → BuQYmB0EDLYZ7vEk.mjs} +46 -46
  50. package/{cdn/assets/gpQ4FdJMbIScKnS_.js → browser/esm/BukdAMyKW6rq3Unk.mjs} +8 -8
  51. package/browser/esm/BvcoyRz135FDHoTf.mjs +392 -0
  52. package/browser/esm/{BRfat1fV3oGLwvin.mjs → Bw4fe7a608CgkbOH.mjs} +13 -13
  53. package/browser/esm/{Dy44qJVkwNseMG-3.mjs → BxE8BJ1tb5HybBNO.mjs} +1 -1
  54. package/{cdn/assets/DfESVLC8CAi8m8A7.js → browser/esm/BxIfM-Ty_Y8PvQFM.mjs} +1 -1
  55. package/{cdn/assets/DWgp4t9N9u0eWthH.js → browser/esm/ByREbsIyjgFePvoo.mjs} +1 -1
  56. package/browser/esm/{ZxsFYopF0_WWqw4Q.mjs → Bz4k83C83NmszjPX.mjs} +1 -1
  57. package/browser/esm/C07dijMoobBfewot.mjs +298 -0
  58. package/browser/esm/{Bi5-feQLtwpV6Ai8.mjs → C1KeUfpnO7aNynxZ.mjs} +5 -5
  59. package/browser/esm/{DAprxR00V9qvNLL2.mjs → C1utJcalKxjNT3Gr.mjs} +1944 -1812
  60. package/browser/esm/{djM9mJznx8GzVq51.mjs → C6SaFrr0KAAAdu5x.mjs} +14 -14
  61. package/browser/esm/{CSEMxasVyGCekxKf.mjs → C6axT8aFQqaiuRgS.mjs} +1 -1
  62. package/browser/esm/{BeMLfv6hWo15VCIL.mjs → C8daZgnuV1jUOiO9.mjs} +52 -52
  63. package/browser/esm/{BaEZmurTZnX_yfKD.mjs → CADJznHV1GZ-1Cy0.mjs} +341 -386
  64. package/browser/esm/{BlPn_DXaEXOPxMxC.mjs → CAFDldpwa2ZDlh3u.mjs} +1 -1
  65. package/browser/esm/CAIREtREYTvydXO6.mjs +30 -0
  66. package/browser/esm/{mZ92wNrHVpYdli1U.mjs → CAQSV7_d1zCSeBZC.mjs} +20 -20
  67. package/browser/esm/CASTsylgIqgqFwk2.mjs +1443 -0
  68. package/browser/esm/{DoS1sE431fEhdOQb.mjs → CCdxM0LTBnAIrkEU.mjs} +4 -4
  69. package/browser/esm/CDreRSyWs9eXZR9O.mjs +23468 -0
  70. package/browser/esm/CE8E_UvKufBd3-Vt.mjs +569 -0
  71. package/browser/esm/CEIE_OT8nrKGkqjg.mjs +1390 -0
  72. package/browser/esm/CEvmiZ2C2QopD1yx.mjs +322 -0
  73. package/browser/esm/{CDsuiN--qdALFyql.mjs → CFqf8Tjk5MUKtniB.mjs} +2 -2
  74. package/{cdn/assets/CTdFZ_I-41Vr6Dy4.js → browser/esm/CGXU95J36TlX8lDH.mjs} +1 -1
  75. package/browser/esm/{SNze-adFJwKuGSQW.mjs → CHSMmjtqQs2IqcYo.mjs} +1 -1
  76. package/browser/esm/{DjdkGy-EI1kSo226.mjs → CImdnjQtd2Yn7uXl.mjs} +1 -1
  77. package/browser/esm/{aUREGNA8H7p4BpMK.mjs → CL0vZohrUAp3Bhj3.mjs} +3 -3
  78. package/{cdn/assets/B0Wjc3lwtjKMwnvn.js → browser/esm/CLUYMovkh-bwvZJ0.mjs} +1 -1
  79. package/browser/esm/CLrTsOW_jOs09qSP.mjs +86 -0
  80. package/browser/esm/CNcLDXQDQECQxvtA.mjs +141 -0
  81. package/browser/esm/{sxxbiJiCMOW2Eivd.mjs → COPR5sXYEAeM73Ep.mjs} +8518 -6392
  82. package/browser/esm/COh0UZopdYUbHVON.mjs +1648 -0
  83. package/{cdn/assets/J3hutJxqQiHENpIe.js → browser/esm/CPhsbNkI0TuotSlv.mjs} +123 -120
  84. package/browser/esm/{cwuYkcKwsKkPe3gG.mjs → CQFPbvY6xwLpTjbF.mjs} +2 -2
  85. package/{cdn/assets/BwOxnbR61WFJwy0A.js → browser/esm/CRDxpPkzVM-9K8qp.mjs} +1 -1
  86. package/browser/esm/{LAbUYeLiPG8z9cmA.mjs → CS6fe9pkg0OdRzns.mjs} +48 -48
  87. package/browser/esm/{CvWGtHslTdesJik-.mjs → CSyQPhbn_NN6at59.mjs} +10 -9
  88. package/browser/esm/{DAE3Kv0Vs0VuBecT.mjs → CUXpeET-vxHGYwKn.mjs} +1 -1
  89. package/{cdn/assets/VCiu_neIjCTg2NUa.js → browser/esm/CW9UkULY0jchroYa.mjs} +486 -487
  90. package/{cdn/assets/BPrHgyAsm2Htx15h.js → browser/esm/CWOJrduWjvqg69sM.mjs} +1 -1
  91. package/browser/esm/CX1VWdQjKSXDMfs9.mjs +1240 -0
  92. package/browser/esm/{DGcvio2uhlrsE3ZY.mjs → CZP3O5VDZVpsmWVP.mjs} +10 -10
  93. package/browser/esm/{By3a43qwWICwXRmw.mjs → CdDn85jCBS6ljPJV.mjs} +3162 -2130
  94. package/browser/esm/{DLqc11Pf8vaE4Q5B.mjs → Cf_c9xyOrFxlsKq6.mjs} +1 -1
  95. package/browser/esm/{f1OJemsiZnbwnds-.mjs → CfgJaRI3Iz3K-TwG.mjs} +15 -15
  96. package/browser/esm/{BAdRecWK1maKGOZd.mjs → ChSr970S44fUscYr.mjs} +1 -1
  97. package/browser/esm/{B00ixdmb8-O5ijEp.mjs → CiGcHB-RQCGm-yoH.mjs} +1 -1
  98. package/browser/esm/CiL1ItKLy_bO7Vxj.mjs +1552 -0
  99. package/browser/esm/{CMxbiQ5J79M3n1tk.mjs → Cif0315haNLmyMj-.mjs} +723 -373
  100. package/browser/esm/Cjb4nzJvvuN1770o.mjs +9632 -0
  101. package/browser/esm/{DrI_S0A9TQvriTua.mjs → Cjj81VfZROKYtV3v.mjs} +1 -1
  102. package/browser/esm/{CTI-mCJbJzitJZwj.mjs → Ck-YCK18HOJsHw_I.mjs} +1 -1
  103. package/browser/esm/Cl8aWyu9oSfXhYSR.mjs +323 -0
  104. package/browser/esm/{px-aQ8dMjiWag_pV.mjs → ClFYlhnkBAxJCKn6.mjs} +1 -1
  105. package/browser/esm/{ErIXJFPDFXwGEL8V.mjs → ClQWS65BOnsz_YeL.mjs} +2 -2
  106. package/browser/esm/{BxhKgo_rPQ2d12HT.mjs → ClhxJ7aAVlYxWbAt.mjs} +4 -4
  107. package/{cdn/assets/CVcCUfSRsiZ1-6hs.js → browser/esm/CnROzMriBlKuLOfF.mjs} +1 -1
  108. package/browser/esm/{DeUXRggj8Oz9ru_i.mjs → CnzNEpCntiBfW9x5.mjs} +1 -1
  109. package/browser/esm/{ycmpAs4kQfeh78Pa.mjs → CoqGjnCpY3LxqR0v.mjs} +1 -1
  110. package/browser/esm/Cq8VN3vpOLOO-bA5.mjs +160 -0
  111. package/browser/esm/{CVxlfyE-gnJM8hOz.mjs → CrIHwDDOUDcx5WSM.mjs} +18 -18
  112. package/browser/esm/CtYy8KL3L1_bf81k.mjs +8416 -0
  113. package/browser/esm/CupZAF0s99q3CQd5.mjs +200 -0
  114. package/browser/esm/{qYca4mdySLkACfo1.mjs → CutcHdJ4BMcr7Yev.mjs} +1 -1
  115. package/browser/esm/{BCWTI3jdTPG37r8W.mjs → CuuWjNFFRxXfbQnD.mjs} +3 -3
  116. package/{cdn/assets/DVpi1vC8ixXvUQG_.js → browser/esm/Cxk1E_D7BKR7Crmt.mjs} +1 -1
  117. package/browser/esm/{DQEjvIGMgEkiaP6J.mjs → CyTOT4NnE9dWtJIT.mjs} +1 -1
  118. package/{cdn/assets/BNsqqoZY7a4N1wWC.js → browser/esm/D1-rdRh8N55p4-Be.mjs} +328 -110
  119. package/browser/esm/{C4VT6lNbpaDXCpBb.mjs → D29bSsh1Lz8891Rs.mjs} +2 -2
  120. package/browser/esm/{DnyZmrwPxShyeUjm.mjs → D3wUli_CzQR9jT6L.mjs} +118 -269
  121. package/browser/esm/{DSviq1TNoiIAGW7W.mjs → D5kDtvIsPIJuJZSx.mjs} +1 -1
  122. package/browser/esm/D5znyg42EULLErlX.mjs +89 -0
  123. package/browser/esm/{ByqhqEMBLrnkaPKE.mjs → D7cf_Sx-iAIIVwe-.mjs} +31 -29
  124. package/browser/esm/{DaMKWQQTgIF08cT7.mjs → D8hdsSDxM_AQvffB.mjs} +21 -21
  125. package/browser/esm/D9ukH57ON841L8l9.mjs +232 -0
  126. package/browser/esm/DAAcSj6LxLO-O2io.mjs +195 -0
  127. package/browser/esm/{rkTVQiYG3wd8oPom.mjs → DAOjpr33PSwrKpc0.mjs} +3 -3
  128. package/browser/esm/{Dme0qpRinBnhzp53.mjs → DDw_9YBEaF76ezn9.mjs} +163 -162
  129. package/{cdn/assets/lqknEt3DTma5Juxs.js → browser/esm/DEtgba3E0qoHN6kX.mjs} +1 -1
  130. package/{cdn/assets/BhkeuRcx8RlLCQ5E.js → browser/esm/DEvc6BS99hZ9e4Nf.mjs} +1 -1
  131. package/browser/esm/{DqBj-9o7UdXu4qhb.mjs → DFbfNcr6j1gD5R0e.mjs} +1 -1
  132. package/browser/esm/DGmXLEMWMnQeqrl0.mjs +1723 -0
  133. package/browser/esm/{Cpza4AeltEVHASij.mjs → DHDlrgx5YyzbhqKA.mjs} +3 -3
  134. package/browser/esm/DIk6ek73xbGQ4xfD.mjs +7 -0
  135. package/browser/esm/{CtZPEkaldpJpoGtW.mjs → DJpfJorMrLhI9gOT.mjs} +1311 -1305
  136. package/browser/esm/{Dv8aQFTTaQBJKDDk.mjs → DLMAXayirBhfpTF4.mjs} +1 -1
  137. package/browser/esm/{CHMqT9DzYKTxPfP6.mjs → DLmLaWoLePonCiIs.mjs} +1 -1
  138. package/{cdn/assets/DQIRFXG4MveFkK3I.js → browser/esm/DN3iFnh1WSc7HR3p.mjs} +1 -1
  139. package/{cdn/assets/DXo8mR6t5HGsmTcu.js → browser/esm/DOJmeQHkbmz7giHc.mjs} +1 -1
  140. package/browser/esm/DP2a0oPlz27NpeSK.mjs +5117 -0
  141. package/browser/esm/DPfiS_S7rRs2M9Cu.mjs +7 -0
  142. package/browser/esm/DQ82Eg2cUZQyNA4P.mjs +521 -0
  143. package/browser/esm/{BN2d5U1nw7pRtOrn.mjs → DQM2LZ7Kj3QqfQQQ.mjs} +1 -1
  144. package/browser/esm/DSGiFB7hgRaKj-cD.mjs +7 -0
  145. package/browser/esm/{Db6Tvr45TS9J5Qsb.mjs → DTMNj2-Tz6uVTsgT.mjs} +34 -32
  146. package/browser/esm/{CWJzHmEgahdOfNjH.mjs → DTOHItHWueMl2jTm.mjs} +1 -1
  147. package/browser/esm/{D7DWH3-5fBNx8jtc.mjs → DTqURSvX1bHPWFue.mjs} +2 -2
  148. package/{cdn/assets/W1d6GQyySAHrtjEu.js → browser/esm/DWiPD9nqIDk253BM.mjs} +1804 -1016
  149. package/browser/esm/DXdI4tKe6B5dN40W.mjs +3106 -0
  150. package/browser/esm/DXou7Fhas1K3cubZ.mjs +7 -0
  151. package/{cdn/assets/BoFx07POTorOb5g-.js → browser/esm/Dac2pa3EUXg26xcV.mjs} +2534 -1724
  152. package/browser/esm/DasqwTiX41sYA-Z5.mjs +496 -0
  153. package/browser/esm/{DTn9oYyiIYgyijAk.mjs → Dbp-4nVzRBTazDLP.mjs} +42 -41
  154. package/browser/esm/DcEZ6cwiDjpacXxO.mjs +86 -0
  155. package/browser/esm/{CZOJogyZqMfUxcXj.mjs → DccxaAgL5rauj9rq.mjs} +1 -1
  156. package/{cdn/assets/C3r_9RqlWrEmlXZ1.js → browser/esm/DchNCIMGQQc9yEcv.mjs} +1 -1
  157. package/browser/esm/{CqoHxlGpZ3yzPj5V.mjs → Df7AbwG1nXGuHhch.mjs} +12 -12
  158. package/browser/esm/DhmmOd1KzvzI8TQB.mjs +12820 -0
  159. package/browser/esm/DmdChrGkm5oufbRE.mjs +57594 -0
  160. package/browser/esm/{B3Ii8x6RquHW1jMc.mjs → DmhXiZKFYiX4Qwqd.mjs} +10 -10
  161. package/browser/esm/DmxkMii2he30NfJu.mjs +8315 -0
  162. package/browser/esm/{DGuynZFJ9tqziqQs.mjs → DnFo-URDJaN2rhB9.mjs} +15 -15
  163. package/browser/esm/Do8jxgfFz8I1GsZA.mjs +89 -0
  164. package/browser/esm/DonP1tI3OXvxTqS_.mjs +213 -0
  165. package/browser/esm/Dr4kKrXEju3xH3h6.mjs +367 -0
  166. package/{cdn/assets/BsTFy_iJXJYmaO3Z.js → browser/esm/Du726HNvoVYMKBbH.mjs} +136 -144
  167. package/{cdn/assets/DONxZZT2Iwu7psS5.js → browser/esm/DuWZI1YgqBc4D0Wk.mjs} +6 -5
  168. package/browser/esm/DwhJsbgOZVQE9ZPT.mjs +210 -0
  169. package/browser/esm/Dx5lr1OiCVdVCwxl.mjs +9 -0
  170. package/browser/esm/DxVYvgAm5kxHC0F6.mjs +310 -0
  171. package/{cdn/assets/anQDUZhHMDPi1eha.js → browser/esm/DyHtw6zo0efVZUoT.mjs} +168 -162
  172. package/browser/esm/DyanYbYqqcmiADCL.mjs +1298 -0
  173. package/browser/esm/{CQuv-nk5jtXUfu7C.mjs → FvGpi7liPpu6KLv8.mjs} +2 -2
  174. package/browser/esm/HI2Ksbl0-etNK-w-.mjs +36 -0
  175. package/{cdn/assets/CQOyeq_-pg3CM-uA.js → browser/esm/Hl08NtZ1eAIRJ5OF.mjs} +1 -1
  176. package/browser/esm/{-LoBx7J6imeqaxCq.mjs → IHk5INXMVCzM8mcG.mjs} +81 -81
  177. package/browser/esm/{D0r2MPlWLnStWJNW.mjs → IogRavGG6hfOXNQU.mjs} +127 -117
  178. package/browser/esm/{CRAzVh3CaAa16avf.mjs → JvhO1o6YbI5ppwQ0.mjs} +47 -46
  179. package/browser/esm/{BtGmrIqU9W1L8zfZ.mjs → K83ea52GGB2voaRd.mjs} +1 -1
  180. package/{cdn/assets/H-JnJQMcZQbpvjdb.js → browser/esm/KHZcJAKLztwlFOCX.mjs} +1 -1
  181. package/browser/esm/{DJqj66SnUcx0QmSN.mjs → MH5L1dIGBq_LYgJQ.mjs} +1 -1
  182. package/browser/esm/Ovh5ic9JtH6cyxub.mjs +256 -0
  183. package/browser/esm/Ow0yLNSbuT3WBj7H.mjs +262 -0
  184. package/browser/esm/{BsUrrzAgfyAdcCJW.mjs → PRhdAO5xkLnZQvlu.mjs} +2 -2
  185. package/{cdn/assets/RfHd1JATBlcsfLPv.js → browser/esm/QPsDtDrq66DM_Jgr.mjs} +1 -1
  186. package/browser/esm/RDCRv0dAc6JkDyGp.mjs +2265 -0
  187. package/browser/esm/S_MFnyIZkCY_IGVg.mjs +95 -0
  188. package/browser/esm/T-NlR9otpSbQQkLg.mjs +1702 -0
  189. package/browser/esm/{C-0viTjg1dT2F-sk.mjs → TMjhDpsh4dAyEK9h.mjs} +2 -2
  190. package/{cdn/assets/Dc2ZwgbIEgYWwAsF.js → browser/esm/Yqn8laB5RV0kueLN.mjs} +1 -1
  191. package/{cdn/assets/DjtXfgbmXjUAoG0y.js → browser/esm/ZO6hi53k1jfq_DU2.mjs} +1 -1
  192. package/{cdn/assets/J9i3r1fU0H10b2hX.js → browser/esm/ZbJ95fcT_MlmJnVS.mjs} +1 -1
  193. package/{cdn/assets/i0P63Wd0RRlgJotb.js → browser/esm/_7u2a1HvX3quwuxr.mjs} +1 -1
  194. package/browser/esm/{DvWCBuY0jAL-RmJV.mjs → _9nyq5XWoIo-JhAp.mjs} +626 -595
  195. package/browser/esm/_LInZdm_bLSAlTs_.mjs +6149 -0
  196. package/browser/esm/{DRm1R4uVOkaMfXNI.mjs → acJyiuSRKv5sM-Ti.mjs} +13 -7
  197. package/browser/esm/bruq8xlrMhamz8NL.mjs +390 -0
  198. package/browser/esm/dt7TM5WM9kIfxkSp.mjs +3853 -0
  199. package/browser/esm/{CfltjY8hY-RPwwpd.mjs → ed053aDmYbCrCagn.mjs} +7 -7
  200. package/browser/esm/{CxCipDFamYSOctBo.mjs → gjyNCBbdz-gEETZG.mjs} +47 -45
  201. package/browser/esm/index.mjs +49 -645
  202. package/browser/esm/{D-KZpU6HMaP4VUva.mjs → k_OJDj5JL9UFeBxP.mjs} +45 -45
  203. package/browser/esm/k_pfnr7cFrRmfgMa.mjs +12 -0
  204. package/browser/esm/{Cy00y9b9j17Txyv1.mjs → luSDFTDDahiW2BkV.mjs} +1 -1
  205. package/browser/esm/m57Z_Zg2K9WPtv--.mjs +60 -0
  206. package/browser/esm/{C9NyIoUahFiyRCxP.mjs → mmNCqaa6lU6cygSY.mjs} +1 -1
  207. package/browser/esm/{iC69oOND5T8khIWf.mjs → n2-EbZF2IGbi-IOd.mjs} +6 -6
  208. package/browser/esm/n3-ex6JlSC4JH_g3.mjs +780 -0
  209. package/{cdn/assets/CFvKDDbrL3wpXnQH.js → browser/esm/sSoL-JlTRttZ1-fW.mjs} +1 -1
  210. package/browser/esm/{VwGokBaawZfZiV2X.mjs → wA7bEwDV1UUss-PV.mjs} +1 -1
  211. package/browser/esm/{DSf-Db1h8rlW2A6n.mjs → wSauAivL_wCxM6Ga.mjs} +5 -5
  212. package/{cdn/assets/pc49xtHdprXZLW2X.js → browser/esm/xZUqtJfNziRMVyQ7.mjs} +1 -1
  213. package/browser/esm/{DNaPo7BQu6hr1fWq.mjs → ypqwC2WOP09mA_DM.mjs} +1 -1
  214. package/cdn/assets/-ONZeuKryrnW6SqH.js +7 -0
  215. package/cdn/assets/-uhPvS_bULnsjqVB.js +42 -0
  216. package/cdn/assets/02n1f3j11O2nHvBs.js +12820 -0
  217. package/{browser/esm/CBdNC7BOfc5TewHU.mjs → cdn/assets/0YsENrFzj1ssAX9X.js} +1 -1
  218. package/cdn/assets/1FbtXPZOekXDPfdd.js +8 -0
  219. package/cdn/assets/{UTZcodQydbuMfCOS.js → 1wWPvtsW8DO6CafH.js} +1 -1
  220. package/{browser/esm/BWo1N4YbK_zGU0nu.mjs → cdn/assets/2FB6h8pTc_l_B6QZ.js} +1 -1
  221. package/cdn/assets/4F0v3wQNJ-MSB1Z9.js +220 -0
  222. package/cdn/assets/{BBjgqNlHm-ssbSAG.js → 4HrBEVQGdmXVxVf1.js} +1 -1
  223. package/cdn/assets/4uQOx5zyAS8XS4V9.js +570 -0
  224. package/cdn/assets/5rqFRBFU7lnnjNt9.js +201 -0
  225. package/cdn/assets/6b6s5IgeVwRY9P2V.js +367 -0
  226. package/cdn/assets/8xJqIpI3i63EGuLs.js +522 -0
  227. package/cdn/assets/9p5WDkFicYKTatuq.js +7 -0
  228. package/cdn/assets/B-TEQ5laJQKfikUa.js +193 -0
  229. package/cdn/assets/B2OGndaMH7WCvuMK.js +96 -0
  230. package/cdn/assets/{wM7DzeOpoEGBVDBe.js → B3AsVCTRSPU1ivoY.js} +2 -2
  231. package/cdn/assets/B3BU0-K9s4221y_E.js +199 -0
  232. package/cdn/assets/{BzbP4jaN13wC9aSi.js → B5znT6l0E-uRlPxA.js} +37 -37
  233. package/cdn/assets/{CMVTwWHsRgyfSEDM.js → B6OFPBPyKNkonkt9.js} +67 -65
  234. package/cdn/assets/B6bTGjqGJ3hSb6pB.js +8 -0
  235. package/cdn/assets/B6h2EKukHEqfcsPq.js +324 -0
  236. package/{browser/esm/BAH_cWcQEIBKWnl6.mjs → cdn/assets/B8-nLKLPjZ7pIJdE.js} +48 -37
  237. package/cdn/assets/BAhj7LTdgVDdLIKM.js +19 -0
  238. package/cdn/assets/{C7fu6LrSMBlHqwUy.js → BDihhtyza6JVj9NA.js} +4 -4
  239. package/cdn/assets/{C5EKgE9Owsc_juw-.js → BFNrFZtdVve-yU4e.js} +1 -1
  240. package/cdn/assets/{PtGiIWFBYP-ujLmf.js → BFp4JZFwKkq3wPHv.js} +1 -1
  241. package/{browser/esm/_t0Mx-mUFVtmVNkU.mjs → cdn/assets/BHy_akSib7chMKWg.js} +1 -1
  242. package/cdn/assets/{ByUcqyCNfqi5Mm7w.js → BJjL3rPHHyI2VT5N.js} +1 -1
  243. package/cdn/assets/BKjJbAprthCpiw7j.js +161 -0
  244. package/cdn/assets/BOHADYkBeL7j5Ho7.js +73 -0
  245. package/cdn/assets/BQn64Kmc0TqWvQiu.js +23468 -0
  246. package/cdn/assets/BSW3wcvLJdkMerg-.js +106 -0
  247. package/cdn/assets/{FO1Jezau486fH4kN.js → BSzeqNbK-wYbCwiv.js} +1 -1
  248. package/cdn/assets/BT_kLzJXjQJNGh3-.js +100 -0
  249. package/{browser/esm/D-55MlIn7Wo_hdjI.mjs → cdn/assets/BXGRt1EwLc3igx5S.js} +328 -110
  250. package/cdn/assets/{BMlPFJ1glExv-70Z.js → BZbqsj8CH_yl3myW.js} +1 -1
  251. package/cdn/assets/{x6GcENwqoUVbd60j.js → B_oYpGQQp9ELbGXT.js} +1 -1
  252. package/cdn/assets/Be4tcI4SKU9TMyEs.js +393 -0
  253. package/cdn/assets/BikqeuAc1ownJULP.js +8 -0
  254. package/{browser/esm/BSCja5yvevmKZPBB.mjs → cdn/assets/Bj-ggr3Qgt0J39xx.js} +1 -1
  255. package/cdn/assets/{BpZ7P0CO148rR4zW.js → BjtBV7ztQseHdo8M.js} +20 -20
  256. package/cdn/assets/BlTY4-ozlyDyATkO.js +298 -0
  257. package/cdn/assets/BnQT4TCx14FYGPY3.js +9990 -0
  258. package/cdn/assets/{DZRm4H75lnEtOG8e.js → Bnj3M_FtbBvXs6S0.js} +48 -46
  259. package/{browser/esm/DxcRLd7wmBGDgJsA.mjs → cdn/assets/BoFEETlY0hZb0PRp.js} +1 -1
  260. package/cdn/assets/BpAcFe7In_tm1ABk.js +89 -0
  261. package/cdn/assets/{CFBgmXap8kmumhoz.js → Bq7qR2iV54cQ01_R.js} +127 -117
  262. package/{browser/esm/D2coM-dNrlLpnUu5.mjs → cdn/assets/BqM-W_oFdjeyu8N4.js} +670 -669
  263. package/cdn/assets/Bqig7R2_wU0MB4ED.js +90 -0
  264. package/cdn/assets/{DHH_uKVzQ_kRYO2N.js → BsqHMd3dlKhcIxe_.js} +18 -18
  265. package/cdn/assets/{CakrxSS_RXtKmcUX.js → BtkcL_9ZfETfOGfP.js} +98 -97
  266. package/cdn/assets/{ENtt4kmaU9mJfVEp.js → Bu13LK_GiwLEhVKN.js} +10 -10
  267. package/cdn/assets/{Dy44qJVkwNseMG-3.js → BxE8BJ1tb5HybBNO.js} +1 -1
  268. package/{browser/esm/DfESVLC8CAi8m8A7.mjs → cdn/assets/BxIfM-Ty_Y8PvQFM.js} +1 -1
  269. package/{browser/esm/DWgp4t9N9u0eWthH.mjs → cdn/assets/ByREbsIyjgFePvoo.js} +1 -1
  270. package/cdn/assets/{ZxsFYopF0_WWqw4Q.js → Bz4k83C83NmszjPX.js} +1 -1
  271. package/cdn/assets/{De2z8LdHaWRFiR5T.js → BzBqhomOXJGtdxGv.js} +2 -2
  272. package/cdn/assets/C-U3gssGyd3ntzi3.js +8 -0
  273. package/cdn/assets/C-XZlxDIT5yzdwLJ.js +1724 -0
  274. package/cdn/assets/C0gMuR6xw09uB9Y1.js +46 -0
  275. package/cdn/assets/{w5IQWbJETgHhqMsY.js → C3Qtch7pRtEQgfRY.js} +33 -33
  276. package/cdn/assets/C3xbTjAw1VI9Lxza.js +516 -0
  277. package/{browser/esm/8-jmVNNbOHuXFdVQ.mjs → cdn/assets/C4ou3rMjNo5m8Y1t.js} +123 -120
  278. package/cdn/assets/C5rqIz-t0kclqYgG.js +86 -0
  279. package/cdn/assets/{CSEMxasVyGCekxKf.js → C6axT8aFQqaiuRgS.js} +1 -1
  280. package/cdn/assets/{0vqRTRN0wEzWao1c.js → C6xvp_PZBhXeoGRc.js} +84 -83
  281. package/cdn/assets/C9KQwh85fRQ8P7ia.js +7 -0
  282. package/cdn/assets/C9pNgF73kPC5SCj_.js +8416 -0
  283. package/cdn/assets/{BlPn_DXaEXOPxMxC.js → CAFDldpwa2ZDlh3u.js} +1 -1
  284. package/cdn/assets/CAIREtREYTvydXO6.js +30 -0
  285. package/cdn/assets/{DYvBgX17ZerZSHEJ.js → CB-MJyGrzQbmJE0g.js} +31 -31
  286. package/cdn/assets/{CIyaijfp6itgRpFM.js → CCos0hQMhVcaGwU0.js} +2 -2
  287. package/cdn/assets/CE-_DaE-8Sg4AM0v.js +183 -0
  288. package/cdn/assets/CFJ9wCSJYOoE1Lrz.js +1241 -0
  289. package/cdn/assets/CFJvtyImIjxJOno7.js +5117 -0
  290. package/{browser/esm/CTdFZ_I-41Vr6Dy4.mjs → cdn/assets/CGXU95J36TlX8lDH.js} +1 -1
  291. package/cdn/assets/CH9Ow0HqnUv_0K73.js +521 -0
  292. package/cdn/assets/{SNze-adFJwKuGSQW.js → CHSMmjtqQs2IqcYo.js} +1 -1
  293. package/cdn/assets/{DjdkGy-EI1kSo226.js → CImdnjQtd2Yn7uXl.js} +1 -1
  294. package/cdn/assets/{BvlfKrfrDhE9Jw4d.js → CIvOEYio4yfOR385.js} +2 -2
  295. package/{browser/esm/B0Wjc3lwtjKMwnvn.mjs → cdn/assets/CLUYMovkh-bwvZJ0.js} +1 -1
  296. package/cdn/assets/{BI6afPOpgNYkzIWv.js → CN4pF75weR3buzng.js} +2110 -1978
  297. package/cdn/assets/CNs9_C1xX4prXnCq.js +7 -0
  298. package/cdn/assets/CNx0AfRRVuznb3yg.js +1649 -0
  299. package/cdn/assets/{BeQ95CzwR65il0CK.js → CPGIT9PYUuWdSglk.js} +2 -3
  300. package/{browser/esm/BwOxnbR61WFJwy0A.mjs → cdn/assets/CRDxpPkzVM-9K8qp.js} +1 -1
  301. package/cdn/assets/CTmLSM7UhiKOIhgu.js +17 -0
  302. package/cdn/assets/{DAE3Kv0Vs0VuBecT.js → CUXpeET-vxHGYwKn.js} +1 -1
  303. package/cdn/assets/{DQjxp9lDP9DzP8ah.js → CVfeHUreAF1C9r7W.js} +45 -45
  304. package/{browser/esm/BPrHgyAsm2Htx15h.mjs → cdn/assets/CWOJrduWjvqg69sM.js} +1 -1
  305. package/cdn/assets/CX8Y07KdGzyOeCSo.js +1702 -0
  306. package/cdn/assets/CZG3fjfebhJvUipF.js +57594 -0
  307. package/{browser/esm/DEvZj68igS7Q8SZE.mjs → cdn/assets/CaQrZOnzyAelKzTt.js} +136 -144
  308. package/cdn/assets/CaayvSy_I7jjv7au.js +2230 -0
  309. package/cdn/assets/{aHTKr1ijZ6bRi3Zg.js → CbwxkvJm8JO4Ke8x.js} +4 -4
  310. package/cdn/assets/{B27vTQlxbHhSQJx8.js → Cc-jOsunTu0-Mla_.js} +8607 -6480
  311. package/cdn/assets/CcP8kT3MgwQ3vUnF.js +1299 -0
  312. package/cdn/assets/{CsrTRThObSryov1b.js → CcqUWXYGGj-psA9H.js} +2 -2
  313. package/cdn/assets/Cd2x-3RBbJNq0TuA.js +323 -0
  314. package/cdn/assets/{dn69mDhY7Xcc91kF.js → CeiY_ZCBlUsmH2rY.js} +20 -20
  315. package/cdn/assets/{ZSYS1J3uR7UQuHwZ.js → CgATW0IINhudprWa.js} +10 -10
  316. package/cdn/assets/CgovQHyOZcnsM53I.js +233 -0
  317. package/cdn/assets/{BAdRecWK1maKGOZd.js → ChSr970S44fUscYr.js} +1 -1
  318. package/cdn/assets/{B00ixdmb8-O5ijEp.js → CiGcHB-RQCGm-yoH.js} +1 -1
  319. package/cdn/assets/{CMxbiQ5J79M3n1tk.js → Cif0315haNLmyMj-.js} +723 -373
  320. package/cdn/assets/{DrI_S0A9TQvriTua.js → Cjj81VfZROKYtV3v.js} +1 -1
  321. package/cdn/assets/{CTI-mCJbJzitJZwj.js → Ck-YCK18HOJsHw_I.js} +1 -1
  322. package/cdn/assets/{px-aQ8dMjiWag_pV.js → ClFYlhnkBAxJCKn6.js} +1 -1
  323. package/cdn/assets/{Bsn-tUx172sEG2kR.js → CnOJpT4PcPuybSUB.js} +20 -20
  324. package/{browser/esm/CVcCUfSRsiZ1-6hs.mjs → cdn/assets/CnROzMriBlKuLOfF.js} +1 -1
  325. package/cdn/assets/{DeUXRggj8Oz9ru_i.js → CnzNEpCntiBfW9x5.js} +1 -1
  326. package/cdn/assets/{ycmpAs4kQfeh78Pa.js → CoqGjnCpY3LxqR0v.js} +1 -1
  327. package/cdn/assets/CqP5OkILMJUsRGxp.js +3853 -0
  328. package/cdn/assets/{BB4MW8sSYEXjPvvf.js → CtDb6Ft4ZQbglyKk.js} +5 -5
  329. package/cdn/assets/{qYca4mdySLkACfo1.js → CutcHdJ4BMcr7Yev.js} +1 -1
  330. package/cdn/assets/CwPsCkeHan5zXDyX.js +237 -0
  331. package/cdn/assets/{ChAKLV5zrGAHAof2.js → CxRXaI0C0QO5eGia.js} +50 -48
  332. package/{browser/esm/DVpi1vC8ixXvUQG_.mjs → cdn/assets/Cxk1E_D7BKR7Crmt.js} +1 -1
  333. package/cdn/assets/{DQEjvIGMgEkiaP6J.js → CyTOT4NnE9dWtJIT.js} +1 -1
  334. package/cdn/assets/{D-bNmX0QsA8SuT0m.js → D1zBLjB3GS_6EGzy.js} +33 -33
  335. package/cdn/assets/D2fdIQmCPlCrPRXy.js +781 -0
  336. package/cdn/assets/D3CTFn_17sHwswO5.js +182 -0
  337. package/cdn/assets/D4AbJuK7-E0JtxAo.js +257 -0
  338. package/cdn/assets/D4DsR2aIqjajGOKK.js +263 -0
  339. package/cdn/assets/D4jpK0BUd-tNqESg.js +7 -0
  340. package/cdn/assets/{DSviq1TNoiIAGW7W.js → D5kDtvIsPIJuJZSx.js} +1 -1
  341. package/cdn/assets/{DSXJHEORGmMQX_Mb.js → D6fWK15zTZFsgt1T.js} +12 -12
  342. package/cdn/assets/{D8DghdqjOtBzO2Wx.js → D7C_fe_jEfPhZh6v.js} +4 -4
  343. package/cdn/assets/{DicTo_3G-KZyWDiE.js → D7fpa_b5jL9kNuLc.js} +300 -345
  344. package/cdn/assets/{7i4WSxDsu2ApJJ2_.js → D9FLXw0Q3bpjVuQZ.js} +3 -3
  345. package/cdn/assets/DAlTqWR4DtigzJIp.js +86 -0
  346. package/cdn/assets/{Ba8taVvLslFcKS72.js → DBPCyXdxHLluh0T4.js} +27 -26
  347. package/cdn/assets/{Cv5PLuhEmh5IDHjb.js → DC0uSA4tHtqtV6Qf.js} +12 -12
  348. package/{browser/esm/lqknEt3DTma5Juxs.mjs → cdn/assets/DEtgba3E0qoHN6kX.js} +1 -1
  349. package/{browser/esm/BhkeuRcx8RlLCQ5E.mjs → cdn/assets/DEvc6BS99hZ9e4Nf.js} +1 -1
  350. package/cdn/assets/{DqBj-9o7UdXu4qhb.js → DFbfNcr6j1gD5R0e.js} +1 -1
  351. package/cdn/assets/{D-yz3V2UC54rwctD.js → DI0oF6zUpOe1dvtl.js} +2 -2
  352. package/cdn/assets/DKFKYAh8TvZ6nbQP.js +9633 -0
  353. package/cdn/assets/DKr4Z7Jlm9q1oByS.js +311 -0
  354. package/cdn/assets/DLGHrXPNZh3ZMjhS.js +196 -0
  355. package/cdn/assets/DLIywttw-YbpYzR9.js +1552 -0
  356. package/cdn/assets/{Dv8aQFTTaQBJKDDk.js → DLMAXayirBhfpTF4.js} +1 -1
  357. package/cdn/assets/DLb7DkSaAdwiJNw-.js +9 -0
  358. package/cdn/assets/{C9NyIoUahFiyRCxP.js → DLmLaWoLePonCiIs.js} +1 -1
  359. package/{browser/esm/DQIRFXG4MveFkK3I.mjs → cdn/assets/DN3iFnh1WSc7HR3p.js} +1 -1
  360. package/{browser/esm/DXo8mR6t5HGsmTcu.mjs → cdn/assets/DOJmeQHkbmz7giHc.js} +1 -1
  361. package/cdn/assets/{BN2d5U1nw7pRtOrn.js → DQM2LZ7Kj3QqfQQQ.js} +1 -1
  362. package/cdn/assets/DQwz3i9TNDHAmLmN.js +132 -0
  363. package/cdn/assets/{CWJzHmEgahdOfNjH.js → DTOHItHWueMl2jTm.js} +1 -1
  364. package/cdn/assets/{CCvBdPu7W2ZF6A9J.js → DTRBOYo39pUPMTpT.js} +9 -9
  365. package/{browser/esm/ztqpWR65YYMZ3EPk.mjs → cdn/assets/DVyIyNBrlUT9W9cY.js} +175 -167
  366. package/cdn/assets/{mK8HcIZyXkOTvL6E.js → DWcAYH0eBaOj-dU4.js} +7 -7
  367. package/cdn/assets/{CbTN0q6XnYGJqyEp.js → DX-iRDnwn8uZZIqp.js} +1372 -1366
  368. package/cdn/assets/DYeaE2TSAJ9-suNW.js +282 -0
  369. package/cdn/assets/{Bgbi7BFR3rN5qj51.js → DZiWWhATAOxJQZ_N.js} +22 -22
  370. package/cdn/assets/{CZOJogyZqMfUxcXj.js → DccxaAgL5rauj9rq.js} +1 -1
  371. package/{browser/esm/C3r_9RqlWrEmlXZ1.mjs → cdn/assets/DchNCIMGQQc9yEcv.js} +1 -1
  372. package/cdn/assets/{hg8WYI0Yy4WPPPoP.js → DdWtfDWDB6Yst5LZ.js} +11 -11
  373. package/cdn/assets/Dg-qsGzlATZbZ35c.js +164 -0
  374. package/cdn/assets/{BelX6bvQPsGuo-x3.js → DhUBLuQYjgwdF5EH.js} +2 -2
  375. package/cdn/assets/DiOOfu_7X2Cpk8QF.js +391 -0
  376. package/cdn/assets/{B3NWCYKXucbHhOix.js → DkZqI9EyJ9BaBNL_.js} +26 -26
  377. package/cdn/assets/{AjMG7Fb9r4Fk7Hsf.js → Dki3Mapev78nd9Kc.js} +18 -17
  378. package/{browser/esm/DlOVZD0OiAjouS6-.mjs → cdn/assets/DlbmuJxdMXIYpB6E.js} +1804 -1016
  379. package/cdn/assets/DqELE8YlqkR-PGLI.js +142 -0
  380. package/{browser/esm/M7RYrx20B_Yl_euJ.mjs → cdn/assets/Drbnn1LTgJDjS6Ha.js} +8 -8
  381. package/cdn/assets/Drfd0-JZwPXCnj5c.js +1391 -0
  382. package/cdn/assets/DsJVOPJWQSCx_2gE.js +8315 -0
  383. package/cdn/assets/DvcqASECnv0ZHrzg.js +214 -0
  384. package/cdn/assets/DwFQgKd9J_B2KTpR.js +240 -0
  385. package/cdn/assets/DwhJsbgOZVQE9ZPT.js +210 -0
  386. package/cdn/assets/DxJKKoj07ez4Cc1M.js +639 -0
  387. package/cdn/assets/{G5z0uVlyF6CLw_PA.js → DzdTkjOza0KfOVpJ.js} +2 -2
  388. package/cdn/assets/Dzno9raiwXxce_BQ.js +1306 -0
  389. package/cdn/assets/{DckmFyHxGX4Y1gOq.js → EQ9ocVP26wjlV0h8.js} +18 -17
  390. package/cdn/assets/{DxisV9_27l_WU-nk.js → FTUIrcTvIeHG6nzk.js} +5 -5
  391. package/cdn/assets/FfjEOAnadcVqxSUP.js +2265 -0
  392. package/cdn/assets/HEszSqNhIYK5QTuZ.js +61 -0
  393. package/cdn/assets/HI2Ksbl0-etNK-w-.js +36 -0
  394. package/{browser/esm/CQOyeq_-pg3CM-uA.mjs → cdn/assets/Hl08NtZ1eAIRJ5OF.js} +1 -1
  395. package/cdn/assets/IrI1Fo83qAWTNhz5.js +6149 -0
  396. package/cdn/assets/{CDAYVaQYywqaxg4O.js → JQaNzWKHZyWyQOJ0.js} +2 -2
  397. package/cdn/assets/{BtGmrIqU9W1L8zfZ.js → K83ea52GGB2voaRd.js} +1 -1
  398. package/{browser/esm/H-JnJQMcZQbpvjdb.mjs → cdn/assets/KHZcJAKLztwlFOCX.js} +1 -1
  399. package/cdn/assets/{DJqj66SnUcx0QmSN.js → MH5L1dIGBq_LYgJQ.js} +1 -1
  400. package/{browser/esm/BtdRr6IbtO6Gypsk.mjs → cdn/assets/MuXX7448MHFePqr9.js} +6 -5
  401. package/cdn/assets/{C0CeCYdLWLjySEFe.js → NV0lQG1Z_LlIL1xk.js} +15 -15
  402. package/cdn/assets/{Cw7AJWd0S2sjRmr6.js → OABpLvY7siKUyNIa.js} +1602 -1471
  403. package/cdn/assets/OSXSr855wNqulmp_.js +423 -0
  404. package/{browser/esm/RfHd1JATBlcsfLPv.mjs → cdn/assets/QPsDtDrq66DM_Jgr.js} +1 -1
  405. package/cdn/assets/{C32co-XulWTkEKrW.js → RaTCqgWoqpOqPZQk.js} +2 -2
  406. package/cdn/assets/{C-0viTjg1dT2F-sk.js → TMjhDpsh4dAyEK9h.js} +2 -2
  407. package/cdn/assets/TONCxYiGe47Rjhga.js +86 -0
  408. package/{browser/esm/CWoPWWRwMgkGPFFP.mjs → cdn/assets/TVEs01pqc117KeGZ.js} +2534 -1724
  409. package/cdn/assets/{BIsbcP5RXRU2XPfx.js → UXg8wCm37AcKqC56.js} +2 -2
  410. package/{browser/esm/Dc2ZwgbIEgYWwAsF.mjs → cdn/assets/Yqn8laB5RV0kueLN.js} +1 -1
  411. package/cdn/assets/{CSIZpJClc66_20kP.js → Z1o8piRdmQD2oQWI.js} +118 -269
  412. package/{browser/esm/DjtXfgbmXjUAoG0y.mjs → cdn/assets/ZO6hi53k1jfq_DU2.js} +1 -1
  413. package/{browser/esm/J9i3r1fU0H10b2hX.mjs → cdn/assets/ZbJ95fcT_MlmJnVS.js} +1 -1
  414. package/{browser/esm/i0P63Wd0RRlgJotb.mjs → cdn/assets/_7u2a1HvX3quwuxr.js} +1 -1
  415. package/cdn/assets/{DRm1R4uVOkaMfXNI.js → acJyiuSRKv5sM-Ti.js} +13 -7
  416. package/cdn/assets/bmjrEH7i8TNBt6SP.js +281 -0
  417. package/cdn/assets/c2U2dLzVvNTpyyqC.js +497 -0
  418. package/cdn/assets/gKmKdkfbYQQWehPu.js +3108 -0
  419. package/cdn/assets/{D32D_biNXRCZ24vG.js → iROLGMv0365VtzWw.js} +46 -46
  420. package/cdn/assets/k_pfnr7cFrRmfgMa.js +12 -0
  421. package/cdn/assets/{Cy00y9b9j17Txyv1.js → luSDFTDDahiW2BkV.js} +1 -1
  422. package/cdn/assets/{CHMqT9DzYKTxPfP6.js → mmNCqaa6lU6cygSY.js} +1 -1
  423. package/cdn/assets/{D_pMOq6FdH4RSBLc.js → nQBuuL7ZHzDHpWHk.js} +754 -723
  424. package/cdn/assets/oQqrFmjkSYpR-YkT.js +8 -0
  425. package/cdn/assets/{Dp-GJXOMz_b8qAxD.js → qdrySZxuftgjgcvV.js} +2 -2
  426. package/cdn/assets/{C6INLvBy8kdzFpsX.js → sLmN3zWQq7lARToC.js} +639 -758
  427. package/{browser/esm/CFvKDDbrL3wpXnQH.mjs → cdn/assets/sSoL-JlTRttZ1-fW.js} +1 -1
  428. package/cdn/assets/v7jTlODG1H-cGQs0.js +278 -0
  429. package/cdn/assets/{VwGokBaawZfZiV2X.js → wA7bEwDV1UUss-PV.js} +1 -1
  430. package/cdn/assets/{Cfg4Dtndwurxv9LM.js → wK0g9YTrJa8xbPXn.js} +8 -8
  431. package/cdn/assets/wQOPOdvl3X5fq9Sd.js +104 -0
  432. package/{browser/esm/pc49xtHdprXZLW2X.mjs → cdn/assets/xZUqtJfNziRMVyQ7.js} +1 -1
  433. package/cdn/assets/{BuYS_ZjSlcvWZ1JC.js → yeI_qudcEuAsSDGK.js} +3162 -2130
  434. package/cdn/assets/{DNaPo7BQu6hr1fWq.js → ypqwC2WOP09mA_DM.js} +1 -1
  435. package/cdn/index.js +27 -17
  436. package/package.json +3 -3
  437. package/types/src/sheetxl.d.ts +1 -0
  438. package/browser/esm/BNIInlJQbJjH8B6G.mjs +0 -84250
  439. package/browser/esm/B_HB4y7AA88Z775Z.mjs +0 -91
  440. package/browser/esm/CdeXXPCp5cCYvGyD.mjs +0 -14
  441. package/browser/esm/Chr_TXM-48IsK8Va.mjs +0 -155
  442. package/browser/esm/Clx8vvGDOTWK_M2l.mjs +0 -484
  443. package/browser/esm/Cw-4uoMuq_m7ziA3.mjs +0 -36
  444. package/browser/esm/D-9f1NKcpuYSgond.mjs +0 -412
  445. package/browser/esm/D7CGuQcwpkiuesEI.mjs +0 -229
  446. package/browser/esm/D7kkzIFPqKBK94kO.mjs +0 -17952
  447. package/browser/esm/D88StfSjZJi5E8Xb.mjs +0 -5153
  448. package/browser/esm/D8exjrado9TJrBp-.mjs +0 -1946
  449. package/browser/esm/DGCOPbZbEmt0x9z0.mjs +0 -155
  450. package/browser/esm/DZRmBfjn2TgOTu5e.mjs +0 -3604
  451. package/browser/esm/D_7BWdsu8yejhUxy.mjs +0 -2353
  452. package/browser/esm/D_thhK0vSez8Yfle.mjs +0 -798
  453. package/browser/esm/Dv2z0548SZRGTN3l.mjs +0 -149
  454. package/browser/esm/DyeY6XwMQ_XNUHiW.mjs +0 -89
  455. package/browser/esm/FjNOhkR7-JAIaRP6.mjs +0 -19
  456. package/browser/esm/RLU85PsAYtKPUf6N.mjs +0 -71
  457. package/browser/esm/WMYR09ZOR8JbZEnx.mjs +0 -4748
  458. package/browser/esm/r2Az2Yc4_qj2-sn0.mjs +0 -398
  459. package/cdn/assets/514mXPTuNvdNgw35.js +0 -412
  460. package/cdn/assets/7Sg0ht_ZCMJkPurt.js +0 -516
  461. package/cdn/assets/B_3Musz0q2MSZ5H-.js +0 -799
  462. package/cdn/assets/BgyY4zVPZSXljoCZ.js +0 -14
  463. package/cdn/assets/BlIZ30huelIxNo6S.js +0 -91
  464. package/cdn/assets/BxqXOiOyI_XiOmvN.js +0 -156
  465. package/cdn/assets/CEYyp6Qrr_IopxpL.js +0 -22597
  466. package/cdn/assets/CILUMtSddGz7WXEv.js +0 -240
  467. package/cdn/assets/CL6Tgu_rUO6G-fyq.js +0 -2352
  468. package/cdn/assets/COMOqucXq7X1vi0P.js +0 -230
  469. package/cdn/assets/CRXSrbGNABtzf532.js +0 -399
  470. package/cdn/assets/CTvPIYWTcjwlJeEA.js +0 -237
  471. package/cdn/assets/CU5cKipVT1X8Xz7F.js +0 -156
  472. package/cdn/assets/Cw-4uoMuq_m7ziA3.js +0 -36
  473. package/cdn/assets/DCnWyVXikb_8Dat3.js +0 -61
  474. package/cdn/assets/DHugYwX4_ZyqGn-C.js +0 -1947
  475. package/cdn/assets/DOHh3pUXxMM09UY5.js +0 -3604
  476. package/cdn/assets/DlpgIJxNq2V4gdDq.js +0 -74
  477. package/cdn/assets/DuAbY54w5gJpQgss.js +0 -84250
  478. package/cdn/assets/DviEoeWW0EvDg1hr.js +0 -149
  479. package/cdn/assets/FjNOhkR7-JAIaRP6.js +0 -19
  480. package/cdn/assets/PzWqv-oXxEuzKdaT.js +0 -484
  481. package/cdn/assets/QJ4AkDD269D1MzmI.js +0 -89
  482. package/cdn/assets/fm3mUdTDo-STB36M.js +0 -4749
  483. package/cdn/assets/lWY3TbG2NDscy9He.js +0 -72
  484. package/cdn/assets/xlXDq-qoj7eOE6_T.js +0 -5153
@@ -1,27 +1,27 @@
1
1
  /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.10
2
+ * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.8.0-beta.12
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import { C as e, P as t, V as n, q as r, u as i } from "./CMxbiQ5J79M3n1tk.js";
8
- import { W as a, m as o } from "./BoFx07POTorOb5g-.js";
9
- import { i as s, l as c } from "./BAH_cWcQEIBKWnl6.js";
10
- import { $ as l, K as u, Ut as d, _t as f, it as p, s as m, zt as h } from "./DuAbY54w5gJpQgss.js";
11
- import { m as g, r as _ } from "./DOHh3pUXxMM09UY5.js";
12
- import { $ as v, A as y, At as b, B as ee, Dt as x, I as te, J as ne, K as re, Kt as S, L as ie, Mt as ae, N as oe, Nt as se, O as ce, Ot as le, R as C, Rt as w, S as T, Tt as E, Ut as ue, V as D, W as O, Wt as de, X as fe, Y as k, _ as A, bt as pe, c as j, ct as me, d as M, ft as he, gt as N, h as ge, ht as _e, j as ve, m as ye, mt as P, nn as F, nt as I, ot as L, r as R, rn as be, ut as xe, xt as Se, z as Ce } from "./BuYS_ZjSlcvWZ1JC.js";
13
- var we = {
7
+ import { $ as e, C as t, G as n, K as r, U as i, g as a, n as o } from "./Cif0315haNLmyMj-.mjs";
8
+ import { d as s, g as c } from "./Dac2pa3EUXg26xcV.mjs";
9
+ import { a as l, l as u } from "./B8-nLKLPjZ7pIJdE.mjs";
10
+ import { B as d, Ci as f, Hr as p, Tn as m, Wi as ee, br as h, cr as g, j as _, nn as v } from "./DmdChrGkm5oufbRE.mjs";
11
+ import { _ as te, s as y, t as ne } from "./dt7TM5WM9kIfxkSp.mjs";
12
+ import { $n as b, A as re, At as x, B as S, Bt as ie, D as C, Dn as ae, Dt as oe, Gn as se, Gt as ce, I as le, It as ue, J as de, K as fe, Kt as pe, Ln as w, Mn as T, O as E, On as me, Q as he, Qn as D, Qt as ge, Rt as O, St as k, Tt as A, Un as _e, Ut as ve, Vn as ye, Wn as be, X as xe, Xn as j, Xt as M, Y as N, Yn as P, Yt as Se, Z as Ce, Zt as we, _ as F, _t as Te, an as Ee, at as De, bn as I, c as Oe, dn as ke, f as Ae, gn as je, in as L, l as Me, lt as Ne, m as Pe, mn as Fe, mt as Ie, n as Le, nt as Re, ot as ze, p as Be, pn as R, pt as Ve, r as He, rn as Ue, rr as z, s as B, tn as We, tr as V, u as H, v as Ge, vn as Ke, xn as qe, xt as Je, yn as Ye, yt as Xe, z as Ze, zn as Qe, zt as $e } from "./CdDn85jCBS6ljPJV.mjs";
13
+ var et = {
14
14
  ascending: "ascending",
15
15
  descending: "descending",
16
16
  natural: "dataSource"
17
17
  };
18
- function Te(e, t) {
18
+ function tt(e, t) {
19
19
  if (!t) return null;
20
20
  for (let n = 0; n < e.length; n++) if (e[n].id !== void 0 && String(e[n].id) === t) return e[n];
21
21
  let n = Number(t);
22
22
  return Number.isInteger(n) && n >= 1 && n <= e.length ? e[n - 1] : null;
23
23
  }
24
- function Ee(e, t, n) {
24
+ function nt(e, t, n) {
25
25
  let r = {
26
26
  ...t,
27
27
  source: n
@@ -31,77 +31,28 @@ function Ee(e, t, n) {
31
31
  t > 0 && t !== 27 && (r.rowHeight = t);
32
32
  }
33
33
  e.style && e.style !== "SlicerStyleLight1" && (r.style = e.style);
34
- let i = e.sortOrder ? we[e.sortOrder] : void 0;
34
+ let i = e.sortOrder ? et[e.sortOrder] : void 0;
35
35
  return i && i !== "ascending" && (r.sortOrder = i), e.crossFilter && e.crossFilter !== "showItemsWithDataAtTop" && (r.crossFilter = e.crossFilter), e.lockedPosition && (r.lockedPosition = !0), !1 === e.customListSort && (r.disabledCustomListSort = !0), e.cacheName && (r.cacheName = e.cacheName), e.startItem && (r.startItem = e.startItem), e.level !== void 0 && (r.level = e.level), e.uid && (r.uid = e.uid), r;
36
36
  }
37
- var De = (e, t, n) => {
38
- let r = `Unable to read '${e}': ${t?.message ?? t}`;
39
- n?.onWarning ? n.onWarning(r, e) : console.warn(r);
40
- }, z = (e, n, r, i, a = null) => {
41
- if (!e) return null;
42
- let o = e;
43
- o.startsWith("/") && (o = o.substring(1));
44
- let s = a?.parsedRefs?.get(e);
45
- if (s !== void 0) return s;
46
- let c = n(o);
47
- if (!c) return null;
48
- let l = c.content;
49
- try {
50
- let n = new TextDecoder().decode(l), o = r.parseFromString(n, "text/xml"), s = i.transform(o, e, a ?? t.EmptyObject);
51
- return a?.parsedRefs?.set(e, s), s;
52
- } catch (t) {
53
- De(e, t, a);
37
+ var U = (e, t) => {
38
+ let n = [], r = e?.childNodes, i = r?.length ?? 0;
39
+ for (let e = 0; e < i; e++) {
40
+ let i = r.item(e);
41
+ i.nodeType !== 1 || t && i.localName !== t || n.push(i);
42
+ }
43
+ return n;
44
+ }, rt = (e) => U(e, "k").map((e) => [e.getAttribute("n") ?? "", e.getAttribute("t") || null]), it = (e) => U(e, "v").map((e) => ({
45
+ t: e.getAttribute("t") || null,
46
+ text: e.textContent ?? ""
47
+ })), at = (e) => {
48
+ let t = /* @__PURE__ */ new Map();
49
+ for (let n of U(e, "key")) {
50
+ let e = /* @__PURE__ */ new Map();
51
+ for (let t of U(n, "flag")) e.set(t.getAttribute("name") ?? "", t.getAttribute("value") ?? "");
52
+ t.set(n.getAttribute("name") ?? "", e);
54
53
  }
55
- return null;
56
- }, Oe = (e, t, n, r, i = null) => {
57
- if (!e) return null;
58
- let a = z(e, t, n, r, i);
59
- if (!a) return null;
60
- let o = /* @__PURE__ */ new Map(), s = Object.keys(a), c = s.length;
61
- for (let e = 0; e < c; e++) {
62
- let t = s[e], n = a[t];
63
- o.set(t, n);
64
- }
65
- return o;
66
- }, B = (e, t, n, r, i, a = null) => {
67
- let o = /* @__PURE__ */ new Map(), s = t[e], c = s ? s.length : 0;
68
- for (let e = 0; e < c; e++) {
69
- let t = s[e];
70
- if (!t) continue;
71
- let c = t;
72
- c.startsWith("/") && (c = c.substring(1));
73
- let l = z(c, n, r, i, a);
74
- o.set(c, l);
75
- }
76
- return o;
77
- }, ke = (e) => {
78
- let t = e.split(/\/+/);
79
- return t.reduce((e, t, n) => (t === "." ? e.splice(n, 1) : t === ".." && e.splice(n - 1, 2), e), t).join("/");
80
- }, Ae = Object.freeze([
81
- "lt1",
82
- "dk1",
83
- "lt2",
84
- "dk2",
85
- "accent1",
86
- "accent2",
87
- "accent3",
88
- "accent4",
89
- "accent5",
90
- "accent6",
91
- "hlink",
92
- "folHlink"
93
- ]), V = (e, t = "auto") => {
94
- let n, r = e("auto");
95
- r === void 0 || r !== "1" && r !== "true" || (n = t);
96
- let i = e("indexed");
97
- i && (n = i === "64" ? "auto" : `index${i}`);
98
- let a = e("rgb");
99
- a && (n = a.toLowerCase(), a.length !== 8 || a.startsWith("FF") || (n = "FF" + a.substring(2, a.length)));
100
- let s = e("theme");
101
- s && (n = Ae[Number(s)]);
102
- let c = e("tint");
103
- if (c && (n += ` ${o.AdjustmentType.ETint} ${parseFloat(c)}`), n) return n;
104
- }, je = (e) => e && e.replace(/^\{([\s\S]+)\}$/, "$1"), Me = /* @__PURE__ */ new Uint8Array(), H = class e {
54
+ return t;
55
+ }, ot = /* @__PURE__ */ new Uint8Array(), st = class e {
105
56
  constructor(e, t, n) {
106
57
  this.buffers = /* @__PURE__ */ new Map(), this.zip = e, this.entries = t, this.rawBuffer = n;
107
58
  }
@@ -109,7 +60,7 @@ var De = (e, t, n) => {
109
60
  return e.startsWith("/") ? e.slice(1) : e;
110
61
  }
111
62
  static async create(t) {
112
- let n = t instanceof Blob ? Me : t instanceof Uint8Array ? t : new Uint8Array(t), r = t instanceof Blob ? new y(t) : new I(n), i = new ve(r), a = /* @__PURE__ */ new Map();
63
+ let n = t instanceof Blob ? ot : t instanceof Uint8Array ? t : new Uint8Array(t), r = t instanceof Blob ? new je(t) : new Ee(n), i = new C(r), a = /* @__PURE__ */ new Map();
113
64
  for (let e of await i.getEntries()) e.directory || a.set(e.filename, e);
114
65
  return new e(i, a, n);
115
66
  }
@@ -127,12 +78,12 @@ var De = (e, t, n) => {
127
78
  if (r) return r;
128
79
  let i = this.entries.get(n);
129
80
  if (!i) return null;
130
- let a = await i.getData(new v());
81
+ let a = await i.getData(new Qe());
131
82
  return this.buffers.set(n, a), a;
132
83
  }
133
84
  async prefetch(e) {
134
85
  let t = [];
135
- for (let [n, r] of this.entries) !this.buffers.has(n) && e(n, r) && t.push(r.getData(new v()).then((e) => {
86
+ for (let [n, r] of this.entries) !this.buffers.has(n) && e(n, r) && t.push(r.getData(new Qe()).then((e) => {
136
87
  this.buffers.set(n, e);
137
88
  }));
138
89
  await Promise.all(t);
@@ -175,18 +126,18 @@ var De = (e, t, n) => {
175
126
  async close() {
176
127
  await this.zip.close();
177
128
  }
178
- }, U = class {
129
+ }, ct = class {
179
130
  constructor(e) {
180
- this._sink = e, this._samples = [], this._t0 = Ne(), this._tPrev = this._t0, this._heapPrev = Pe();
131
+ this._sink = e, this._samples = [], this._t0 = lt(), this._tPrev = this._t0, this._heapPrev = ut();
181
132
  }
182
133
  mark(e) {
183
- let t = Ne(), n = Pe(), r = {
134
+ let t = lt(), n = ut(), r = {
184
135
  label: e,
185
136
  tMs: t - this._t0,
186
137
  dtMs: t - this._tPrev,
187
138
  heapBytes: n,
188
139
  dHeapBytes: n !== void 0 && this._heapPrev !== void 0 ? n - this._heapPrev : void 0,
189
- rssBytes: Fe()
140
+ rssBytes: dt()
190
141
  };
191
142
  this._tPrev = t, this._heapPrev = n, this._samples.push(r), this._sink?.(r);
192
143
  }
@@ -198,91 +149,91 @@ var De = (e, t, n) => {
198
149
  phase: e.label,
199
150
  tMs: Math.round(e.tMs),
200
151
  dtMs: Math.round(e.dtMs),
201
- heapMB: e.heapBytes === void 0 ? "—" : Ie(e.heapBytes / 1048576),
202
- dHeapMB: e.dHeapBytes === void 0 ? "—" : Ie(e.dHeapBytes / 1048576),
203
- rssMB: e.rssBytes === void 0 ? "—" : Ie(e.rssBytes / 1048576)
152
+ heapMB: e.heapBytes === void 0 ? "—" : ft(e.heapBytes / 1048576),
153
+ dHeapMB: e.dHeapBytes === void 0 ? "—" : ft(e.dHeapBytes / 1048576),
154
+ rssMB: e.rssBytes === void 0 ? "—" : ft(e.rssBytes / 1048576)
204
155
  }));
205
156
  }
206
- }, Ne = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
207
- function Pe() {
157
+ }, lt = typeof performance == "object" && typeof performance.now == "function" ? () => performance.now() : () => Date.now();
158
+ function ut() {
208
159
  let e = typeof performance == "object" ? performance.memory : void 0;
209
160
  if (e && typeof e.usedJSHeapSize == "number") return e.usedJSHeapSize;
210
161
  let t = globalThis.process;
211
162
  return typeof t == "object" && typeof t.memoryUsage == "function" ? t.memoryUsage().heapUsed : void 0;
212
163
  }
213
- function Fe() {
164
+ function dt() {
214
165
  let e = globalThis.process;
215
166
  if (typeof e == "object" && typeof e.memoryUsage == "function") return e.memoryUsage().rss;
216
167
  }
217
- function Ie(e) {
168
+ function ft(e) {
218
169
  return Math.round(10 * e) / 10;
219
170
  }
220
- var Le = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Re = `-${Le}.0-9·̀-ͯ‿-⁀`, ze = (RegExp(`^[${Le}]$`, "u"), RegExp(`^[${Re}]$`, "u"), RegExp(`^[${Le}][${Re}]*$`, "u")), Be = (RegExp(`^[${Re}]+$`, "u"), [
171
+ var pt = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", mt = `-${pt}.0-9·̀-ͯ‿-⁀`, ht = (RegExp(`^[${pt}]$`, "u"), RegExp(`^[${mt}]$`, "u"), RegExp(`^[${pt}][${mt}]*$`, "u")), gt = (RegExp(`^[${mt}]+$`, "u"), [
221
172
  32,
222
173
  10,
223
174
  13,
224
175
  9
225
176
  ]);
226
- function Ve(e) {
177
+ function _t(e) {
227
178
  return e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 58 || e === 95 || e === 8204 || e === 8205 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 767 || e >= 880 && e <= 893 || e >= 895 && e <= 8191 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
228
179
  }
229
- var He = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ue = `-${He}.0-9·̀-ͯ‿-⁀`;
230
- RegExp(`^[${He}]$`, "u"), RegExp(`^[${Ue}]$`, "u"), RegExp(`^[${He}][${Ue}]*$`, "u"), RegExp(`^[${Ue}]+$`, "u");
231
- var We = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", Ge = `-${We}.0-9·̀-ͯ‿-⁀`, Ke = (RegExp(`^[${We}]$`, "u"), RegExp(`^[${Ge}]$`, "u"), RegExp(`^[${We}][${Ge}]*$`, "u"));
232
- function qe(e) {
180
+ var W = ":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", vt = `-${W}.0-9·̀-ͯ‿-⁀`;
181
+ RegExp(`^[${W}]$`, "u"), RegExp(`^[${vt}]$`, "u"), RegExp(`^[${W}][${vt}]*$`, "u"), RegExp(`^[${vt}]+$`, "u");
182
+ var yt = "A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿", bt = `-${yt}.0-9·̀-ͯ‿-⁀`, xt = (RegExp(`^[${yt}]$`, "u"), RegExp(`^[${bt}]$`, "u"), RegExp(`^[${yt}][${bt}]*$`, "u"));
183
+ function St(e) {
233
184
  return e >= 65 && e <= 90 || e === 95 || e >= 97 && e <= 122 || e >= 192 && e <= 214 || e >= 216 && e <= 246 || e >= 248 && e <= 767 || e >= 880 && e <= 893 || e >= 895 && e <= 8191 || e >= 8204 && e <= 8205 || e >= 8304 && e <= 8591 || e >= 11264 && e <= 12271 || e >= 12289 && e <= 55295 || e >= 63744 && e <= 64975 || e >= 65008 && e <= 65533 || e >= 65536 && e <= 983039;
234
185
  }
235
- var Je, W = function(e) {
186
+ var Ct, G = function(e) {
236
187
  return e === 32 || e === 10 || e === 13 || e === 9;
237
- }, Ye = function(e) {
188
+ }, wt = function(e) {
238
189
  return e >= 32 && e <= 55295 || e === 10 || e === 13 || e === 9 || e >= 57344 && e <= 65533 || e >= 65536 && e <= 1114111;
239
- }, Xe = Ve, Ze = function(e) {
240
- return Ve(e) || e >= 48 && e <= 57 || e === 45 || e === 46 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
241
- }, Qe = Be, $e = ze, et = function(e) {
190
+ }, K = _t, Tt = function(e) {
191
+ return _t(e) || e >= 48 && e <= 57 || e === 45 || e === 46 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
192
+ }, Et = gt, Dt = ht, Ot = function(e) {
242
193
  return e >= 1 && e <= 55295 || e >= 57344 && e <= 65533 || e >= 65536 && e <= 1114111;
243
- }, tt = qe, G = function(e) {
244
- return qe(e) || e === 45 || e === 46 || e >= 48 && e <= 57 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
245
- }, nt = Ke, rt = "http://www.w3.org/XML/1998/namespace", it = "http://www.w3.org/2000/xmlns/", at = {
194
+ }, kt = St, At = function(e) {
195
+ return St(e) || e === 45 || e === 46 || e >= 48 && e <= 57 || e === 183 || e >= 768 && e <= 879 || e >= 8255 && e <= 8256;
196
+ }, jt = xt, Mt = "http://www.w3.org/XML/1998/namespace", Nt = "http://www.w3.org/2000/xmlns/", Pt = {
246
197
  __proto__: null,
247
- xml: rt,
248
- xmlns: it
249
- }, ot = {
198
+ xml: Mt,
199
+ xmlns: Nt
200
+ }, Ft = {
250
201
  __proto__: null,
251
202
  amp: "&",
252
203
  gt: ">",
253
204
  lt: "<",
254
205
  quot: "\"",
255
206
  apos: "'"
256
- }, K = -1, st = -2, q = 13, ct = 33, lt = 10, ut = 60, dt = 61, J = 62, Y = 63, ft = 93, pt = (e) => e === 34 || e === 39, mt = [34, 39], ht = [
257
- ...mt,
207
+ }, q = -1, It = -2, J = 13, Lt = 33, Rt = 10, zt = 60, Bt = 61, Y = 62, X = 63, Vt = 93, Ht = (e) => e === 34 || e === 39, Ut = [34, 39], Wt = [
208
+ ...Ut,
258
209
  91,
259
- J
260
- ], gt = [
261
- ...mt,
262
- ut,
263
- ft
264
- ], _t = [
265
- dt,
210
+ Y
211
+ ], Gt = [
212
+ ...Ut,
213
+ zt,
214
+ Vt
215
+ ], Kt = [
216
+ Bt,
217
+ X,
218
+ ...Et
219
+ ], qt = [
220
+ ...Et,
266
221
  Y,
267
- ...Qe
268
- ], vt = [
269
- ...Qe,
270
- J,
271
222
  38,
272
- ut
223
+ zt
273
224
  ];
274
- function yt(e, t, n) {
225
+ function Jt(e, t, n) {
275
226
  switch (t) {
276
227
  case "xml":
277
- n !== rt && e.fail(`xml prefix must be bound to ${rt}.`);
228
+ n !== Mt && e.fail(`xml prefix must be bound to ${Mt}.`);
278
229
  break;
279
- case "xmlns": n !== it && e.fail(`xmlns prefix must be bound to ${it}.`);
230
+ case "xmlns": n !== Nt && e.fail(`xmlns prefix must be bound to ${Nt}.`);
280
231
  }
281
232
  switch (n) {
282
- case it:
283
- e.fail(t === "" ? `the default namespace may not be set to ${n}.` : `may not assign a prefix (even "xmlns") to the URI ${it}.`);
233
+ case Nt:
234
+ e.fail(t === "" ? `the default namespace may not be set to ${n}.` : `may not assign a prefix (even "xmlns") to the URI ${Nt}.`);
284
235
  break;
285
- case rt: switch (t) {
236
+ case Mt: switch (t) {
286
237
  case "xml": break;
287
238
  case "":
288
239
  e.fail(`the default namespace may not be set to ${n}.`);
@@ -291,7 +242,7 @@ function yt(e, t, n) {
291
242
  }
292
243
  }
293
244
  }
294
- var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
245
+ var Yt, Xt = (e) => jt.test(e), Zt = (e) => Dt.test(e), Qt = {
295
246
  xmldecl: "xmlDeclHandler",
296
247
  text: "textHandler",
297
248
  processinginstruction: "piHandler",
@@ -305,7 +256,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
305
256
  error: "errorHandler",
306
257
  end: "endHandler",
307
258
  ready: "readyHandler"
308
- }, wt = class {
259
+ }, $t = class {
309
260
  get closed() {
310
261
  return this._closed;
311
262
  }
@@ -313,15 +264,15 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
313
264
  this.i = 0, this.prevI = 0, this.opt = e ?? {}, this.fragmentOpt = !!this.opt.fragment;
314
265
  let t = this.xmlnsOpt = !!this.opt.xmlns;
315
266
  if (this.trackPosition = !1 !== this.opt.position, this.fileName = this.opt.fileName, t) {
316
- this.nameStartCheck = tt, this.nameCheck = G, this.isName = xt, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = {
267
+ this.nameStartCheck = kt, this.nameCheck = At, this.isName = Xt, this.processAttribs = this.processAttribsNS, this.pushAttrib = this.pushAttribNS, this.ns = {
317
268
  __proto__: null,
318
- ...at
269
+ ...Pt
319
270
  };
320
271
  let e = this.opt.additionalNamespaces;
321
272
  e != null && (function(e, t) {
322
- for (let n of Object.keys(t)) yt(e, n, t[n]);
273
+ for (let n of Object.keys(t)) Jt(e, n, t[n]);
323
274
  }(this, e), Object.assign(this.ns, e));
324
- } else this.nameStartCheck = Xe, this.nameCheck = Ze, this.isName = St, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
275
+ } else this.nameStartCheck = K, this.nameCheck = Tt, this.isName = Zt, this.processAttribs = this.processAttribsPlain, this.pushAttrib = this.pushAttribPlain;
325
276
  this.stateTable = [
326
277
  this.sBegin,
327
278
  this.sBeginWhitespace,
@@ -373,7 +324,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
373
324
  _init() {
374
325
  this.openWakaBang = "", this.text = "", this.name = "", this.piTarget = "", this.entity = "", this.q = null, this.tags = [], this.tag = null, this.topNS = null, this.chunk = "", this.chunkPosition = 0, this.i = 0, this.prevI = 0, this.carriedFromPrevious = void 0, this.forbiddenState = 0, this.attribList = [];
375
326
  let { fragmentOpt: e } = this;
376
- this.state = e ? q : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = e, this.xmlDeclPossible = !e, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
327
+ this.state = e ? J : 0, this.reportedTextBeforeRoot = this.reportedTextAfterRoot = this.closedRoot = this.sawRoot = e, this.xmlDeclPossible = !e, this.xmlDeclExpects = ["version"], this.entityReturnState = void 0;
377
328
  let { defaultXMLVersion: t } = this.opt;
378
329
  if (t === void 0) {
379
330
  if (!0 === this.opt.forceXMLVersion) throw Error("forceXMLVersion set but defaultXMLVersion is not set");
@@ -383,7 +334,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
383
334
  version: void 0,
384
335
  encoding: void 0,
385
336
  standalone: void 0
386
- }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(ot), this.readyHandler?.();
337
+ }, this.line = 1, this.column = 0, this.ENTITIES = Object.create(Ft), this.readyHandler?.();
387
338
  }
388
339
  get position() {
389
340
  return this.chunkPosition + this.i;
@@ -392,10 +343,10 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
392
343
  return this.position - this.positionAtNewLine;
393
344
  }
394
345
  on(e, t) {
395
- this[Ct[e]] = t;
346
+ this[Qt[e]] = t;
396
347
  }
397
348
  off(e) {
398
- this[Ct[e]] = void 0;
349
+ this[Qt[e]] = void 0;
399
350
  }
400
351
  makeError(e) {
401
352
  let t = this.fileName ?? "";
@@ -421,13 +372,13 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
421
372
  }
422
373
  getCode10() {
423
374
  let e = this.chunk, t = this.i;
424
- if (this.prevI = t, this.i++, t >= e.length) return K;
375
+ if (this.prevI = t, this.i++, t >= e.length) return q;
425
376
  let n = e.charCodeAt(t);
426
377
  if (this.column++, n < 55296) {
427
378
  if (n >= 32 || n === 9) return n;
428
379
  switch (n) {
429
- case lt: return this.line++, this.column = 0, this.positionAtNewLine = this.position, lt;
430
- case 13: return e.charCodeAt(t + 1) === lt && (this.i = t + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, st;
380
+ case Rt: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Rt;
381
+ case 13: return e.charCodeAt(t + 1) === Rt && (this.i = t + 2), this.line++, this.column = 0, this.positionAtNewLine = this.position, It;
431
382
  default: return this.fail("disallowed character."), n;
432
383
  }
433
384
  }
@@ -437,18 +388,18 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
437
388
  }
438
389
  getCode11() {
439
390
  let { chunk: e, i: t } = this;
440
- if (this.prevI = t, this.i = t + 1, t >= e.length) return K;
391
+ if (this.prevI = t, this.i = t + 1, t >= e.length) return q;
441
392
  let n = e.charCodeAt(t);
442
393
  if (this.column++, n < 55296) {
443
394
  if (n > 31 && n < 127 || n > 159 && n !== 8232 || n === 9) return n;
444
395
  switch (n) {
445
- case lt: return this.line++, this.column = 0, this.positionAtNewLine = this.position, lt;
396
+ case Rt: return this.line++, this.column = 0, this.positionAtNewLine = this.position, Rt;
446
397
  case 13: {
447
398
  let n = e.charCodeAt(t + 1);
448
- n !== lt && n !== 133 || (this.i = t + 2);
399
+ n !== Rt && n !== 133 || (this.i = t + 2);
449
400
  }
450
401
  case 133:
451
- case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position, st;
402
+ case 8232: return this.line++, this.column = 0, this.positionAtNewLine = this.position, It;
452
403
  default: return this.fail("disallowed character."), n;
453
404
  }
454
405
  }
@@ -458,7 +409,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
458
409
  }
459
410
  getCodeNorm() {
460
411
  let e = this.getCode();
461
- return e === st ? lt : e;
412
+ return e === It ? Rt : e;
462
413
  }
463
414
  unGet() {
464
415
  this.i = this.prevI, this.column--;
@@ -466,8 +417,8 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
466
417
  captureTo(e) {
467
418
  let { i: t } = this, { chunk: n } = this;
468
419
  for (;;) {
469
- let r = this.getCode(), i = r === st, a = i ? lt : r;
470
- if (a === K || e.includes(a)) return this.text += n.slice(t, this.prevI), a;
420
+ let r = this.getCode(), i = r === It, a = i ? Rt : r;
421
+ if (a === q || e.includes(a)) return this.text += n.slice(t, this.prevI), a;
471
422
  i && (this.text += `${n.slice(t, this.prevI)}\n`, t = this.i);
472
423
  }
473
424
  }
@@ -476,10 +427,10 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
476
427
  for (;;) {
477
428
  let r = this.getCode();
478
429
  switch (r) {
479
- case st:
480
- this.text += `${n.slice(t, this.prevI)}\n`, t = this.i, r = lt;
430
+ case It:
431
+ this.text += `${n.slice(t, this.prevI)}\n`, t = this.i, r = Rt;
481
432
  break;
482
- case K: return this.text += n.slice(t), !1;
433
+ case q: return this.text += n.slice(t), !1;
483
434
  }
484
435
  if (r === e) return this.text += n.slice(t, this.prevI), !0;
485
436
  }
@@ -488,18 +439,18 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
488
439
  let { chunk: e, i: t } = this;
489
440
  for (;;) {
490
441
  let n = this.getCode();
491
- if (n === K) return this.name += e.slice(t), K;
492
- if (!Ze(n)) return this.name += e.slice(t, this.prevI), n === st ? lt : n;
442
+ if (n === q) return this.name += e.slice(t), q;
443
+ if (!Tt(n)) return this.name += e.slice(t, this.prevI), n === It ? Rt : n;
493
444
  }
494
445
  }
495
446
  skipSpaces() {
496
447
  for (;;) {
497
448
  let e = this.getCodeNorm();
498
- if (e === K || !W(e)) return e;
449
+ if (e === q || !G(e)) return e;
499
450
  }
500
451
  }
501
452
  setXMLVersion(e) {
502
- this.currentXMLVersion = e, e === "1.0" ? (this.isChar = Ye, this.getCode = this.getCode10) : (this.isChar = et, this.getCode = this.getCode11);
453
+ this.currentXMLVersion = e, e === "1.0" ? (this.isChar = wt, this.getCode = this.getCode10) : (this.isChar = Ot, this.getCode = this.getCode11);
503
454
  }
504
455
  sBegin() {
505
456
  this.chunk.charCodeAt(0) === 65279 && (this.i++, this.column++), this.state = 1;
@@ -507,21 +458,21 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
507
458
  sBeginWhitespace() {
508
459
  let e = this.i, t = this.skipSpaces();
509
460
  switch (this.prevI !== e && (this.xmlDeclPossible = !1), t) {
510
- case ut:
461
+ case zt:
511
462
  if (this.state = 15, this.text.length !== 0) throw Error("no-empty text at start");
512
463
  break;
513
- case K: break;
514
- default: this.unGet(), this.state = q, this.xmlDeclPossible = !1;
464
+ case q: break;
465
+ default: this.unGet(), this.state = J, this.xmlDeclPossible = !1;
515
466
  }
516
467
  }
517
468
  sDoctype() {
518
- let e = this.captureTo(ht);
469
+ let e = this.captureTo(Wt);
519
470
  switch (e) {
520
- case J:
521
- this.doctypeHandler?.(this.text), this.text = "", this.state = q, this.doctype = !0;
471
+ case Y:
472
+ this.doctypeHandler?.(this.text), this.text = "", this.state = J, this.doctype = !0;
522
473
  break;
523
- case K: break;
524
- default: this.text += String.fromCodePoint(e), e === 91 ? this.state = 4 : pt(e) && (this.state = 3, this.q = e);
474
+ case q: break;
475
+ default: this.text += String.fromCodePoint(e), e === 91 ? this.state = 4 : Ht(e) && (this.state = 3, this.q = e);
525
476
  }
526
477
  }
527
478
  sDoctypeQuote() {
@@ -529,8 +480,8 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
529
480
  this.captureToChar(e) && (this.text += String.fromCodePoint(e), this.q = null, this.state = 2);
530
481
  }
531
482
  sDTD() {
532
- let e = this.captureTo(gt);
533
- e !== K && (this.text += String.fromCodePoint(e), e === ft ? this.state = 2 : e === ut ? this.state = 6 : pt(e) && (this.state = 5, this.q = e));
483
+ let e = this.captureTo(Gt);
484
+ e !== q && (this.text += String.fromCodePoint(e), e === Vt ? this.state = 2 : e === zt ? this.state = 6 : Ht(e) && (this.state = 5, this.q = e));
534
485
  }
535
486
  sDTDQuoted() {
536
487
  let e = this.q;
@@ -542,7 +493,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
542
493
  case 33:
543
494
  this.state = 7, this.openWakaBang = "";
544
495
  break;
545
- case Y:
496
+ case X:
546
497
  this.state = 11;
547
498
  break;
548
499
  default: this.state = 4;
@@ -561,14 +512,14 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
561
512
  }
562
513
  sDTDCommentEnded() {
563
514
  let e = this.getCodeNorm();
564
- this.text += String.fromCodePoint(e), e === J ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
515
+ this.text += String.fromCodePoint(e), e === Y ? this.state = 4 : (this.fail("malformed comment."), this.state = 8);
565
516
  }
566
517
  sDTDPI() {
567
- this.captureToChar(Y) && (this.text += "?", this.state = 12);
518
+ this.captureToChar(X) && (this.text += "?", this.state = 12);
568
519
  }
569
520
  sDTDPIEnding() {
570
521
  let e = this.getCodeNorm();
571
- this.text += String.fromCodePoint(e), e === J && (this.state = 4);
522
+ this.text += String.fromCodePoint(e), e === Y && (this.state = 4);
572
523
  }
573
524
  sText() {
574
525
  this.tags.length === 0 ? this.handleTextOutsideRoot() : this.handleTextInRoot();
@@ -576,22 +527,22 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
576
527
  sEntity() {
577
528
  let { i: e } = this, { chunk: t } = this;
578
529
  t: for (;;) switch (this.getCode()) {
579
- case st:
530
+ case It:
580
531
  this.entity += `${t.slice(e, this.prevI)}\n`, e = this.i;
581
532
  break;
582
533
  case 59: {
583
534
  let n, { entityReturnState: r } = this, i = this.entity + t.slice(e, this.prevI);
584
- this.state = r, i === "" ? (this.fail("empty entity name."), n = "&;") : (n = this.parseEntity(i), this.entity = ""), r === q && this.textHandler === void 0 || (this.text += n);
535
+ this.state = r, i === "" ? (this.fail("empty entity name."), n = "&;") : (n = this.parseEntity(i), this.entity = ""), r === J && this.textHandler === void 0 || (this.text += n);
585
536
  break t;
586
537
  }
587
- case K:
538
+ case q:
588
539
  this.entity += t.slice(e);
589
540
  break t;
590
541
  }
591
542
  }
592
543
  sOpenWaka() {
593
544
  let e = this.getCode();
594
- if (Xe(e)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
545
+ if (K(e)) this.state = 34, this.unGet(), this.xmlDeclPossible = !1;
595
546
  else switch (e) {
596
547
  case 47:
597
548
  this.state = 43, this.xmlDeclPossible = !1;
@@ -599,10 +550,10 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
599
550
  case 33:
600
551
  this.state = 16, this.openWakaBang = "", this.xmlDeclPossible = !1;
601
552
  break;
602
- case Y:
553
+ case X:
603
554
  this.state = 23;
604
555
  break;
605
- default: this.fail("disallowed character in tag name"), this.state = q, this.xmlDeclPossible = !1;
556
+ default: this.fail("disallowed character in tag name"), this.state = J, this.xmlDeclPossible = !1;
606
557
  }
607
558
  }
608
559
  sOpenWakaBang() {
@@ -628,22 +579,22 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
628
579
  }
629
580
  sCommentEnded() {
630
581
  let e = this.getCodeNorm();
631
- e === J ? this.state = q : (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(e)}`, this.state = 17);
582
+ e === Y ? this.state = J : (this.fail("malformed comment."), this.text += `--${String.fromCodePoint(e)}`, this.state = 17);
632
583
  }
633
584
  sCData() {
634
- this.captureToChar(ft) && (this.state = 21);
585
+ this.captureToChar(Vt) && (this.state = 21);
635
586
  }
636
587
  sCDataEnding() {
637
588
  let e = this.getCodeNorm();
638
- e === ft ? this.state = 22 : (this.text += `]${String.fromCodePoint(e)}`, this.state = 20);
589
+ e === Vt ? this.state = 22 : (this.text += `]${String.fromCodePoint(e)}`, this.state = 20);
639
590
  }
640
591
  sCDataEnding2() {
641
592
  let e = this.getCodeNorm();
642
593
  switch (e) {
643
- case J:
644
- this.cdataHandler?.(this.text), this.text = "", this.state = q;
594
+ case Y:
595
+ this.cdataHandler?.(this.text), this.text = "", this.state = J;
645
596
  break;
646
- case ft:
597
+ case Vt:
647
598
  this.text += "]";
648
599
  break;
649
600
  default: this.text += `]]${String.fromCodePoint(e)}`, this.state = 20;
@@ -651,17 +602,17 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
651
602
  }
652
603
  sPIFirstChar() {
653
604
  let e = this.getCodeNorm();
654
- this.nameStartCheck(e) ? (this.piTarget += String.fromCodePoint(e), this.state = 24) : e === Y || W(e) ? (this.fail("processing instruction without a target."), this.state = e === Y ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(e), this.state = 24);
605
+ this.nameStartCheck(e) ? (this.piTarget += String.fromCodePoint(e), this.state = 24) : e === X || G(e) ? (this.fail("processing instruction without a target."), this.state = e === X ? 26 : 25) : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(e), this.state = 24);
655
606
  }
656
607
  sPIRest() {
657
608
  let { chunk: e, i: t } = this;
658
609
  for (;;) {
659
610
  let n = this.getCodeNorm();
660
- if (n === K) return void (this.piTarget += e.slice(t));
611
+ if (n === q) return void (this.piTarget += e.slice(t));
661
612
  if (!this.nameCheck(n)) {
662
613
  this.piTarget += e.slice(t, this.prevI);
663
- let r = n === Y;
664
- r || W(n) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = r ? ct : 27) : this.state = r ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(n));
614
+ let r = n === X;
615
+ r || G(n) ? this.piTarget === "xml" ? (this.xmlDeclPossible || this.fail("an XML declaration must be at the start of the document."), this.state = r ? Lt : 27) : this.state = r ? 26 : 25 : (this.fail("disallowed character in processing instruction name."), this.piTarget += String.fromCodePoint(n));
665
616
  break;
666
617
  }
667
618
  }
@@ -669,28 +620,28 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
669
620
  sPIBody() {
670
621
  if (this.text.length === 0) {
671
622
  let e = this.getCodeNorm();
672
- e === Y ? this.state = 26 : W(e) || (this.text = String.fromCodePoint(e));
673
- } else this.captureToChar(Y) && (this.state = 26);
623
+ e === X ? this.state = 26 : G(e) || (this.text = String.fromCodePoint(e));
624
+ } else this.captureToChar(X) && (this.state = 26);
674
625
  }
675
626
  sPIEnding() {
676
627
  let e = this.getCodeNorm();
677
- if (e === J) {
628
+ if (e === Y) {
678
629
  let { piTarget: e } = this;
679
630
  e.toLowerCase() === "xml" && this.fail("the XML declaration must appear at the start of the document."), this.piHandler?.({
680
631
  target: e,
681
632
  body: this.text
682
- }), this.piTarget = this.text = "", this.state = q;
683
- } else e === Y ? this.text += "?" : (this.text += `?${String.fromCodePoint(e)}`, this.state = 25);
633
+ }), this.piTarget = this.text = "", this.state = J;
634
+ } else e === X ? this.text += "?" : (this.text += `?${String.fromCodePoint(e)}`, this.state = 25);
684
635
  this.xmlDeclPossible = !1;
685
636
  }
686
637
  sXMLDeclNameStart() {
687
638
  let e = this.skipSpaces();
688
- e === Y ? this.state = ct : e !== K && (this.state = 28, this.name = String.fromCodePoint(e));
639
+ e === X ? this.state = Lt : e !== q && (this.state = 28, this.name = String.fromCodePoint(e));
689
640
  }
690
641
  sXMLDeclName() {
691
- let e = this.captureTo(_t);
692
- if (e === Y) return this.state = ct, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
693
- if (W(e) || e === dt) {
642
+ let e = this.captureTo(Kt);
643
+ if (e === X) return this.state = Lt, this.name += this.text, this.text = "", void this.fail("XML declaration is incomplete.");
644
+ if (G(e) || e === Bt) {
694
645
  if (this.name += this.text, this.text = "", !this.xmlDeclExpects.includes(this.name)) switch (this.name.length) {
695
646
  case 0:
696
647
  this.fail("did not expect any more name/value pairs.");
@@ -700,23 +651,23 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
700
651
  break;
701
652
  default: this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`);
702
653
  }
703
- this.state = e === dt ? 30 : 29;
654
+ this.state = e === Bt ? 30 : 29;
704
655
  }
705
656
  }
706
657
  sXMLDeclEq() {
707
658
  let e = this.getCodeNorm();
708
- if (e === Y) return this.state = ct, void this.fail("XML declaration is incomplete.");
709
- W(e) || (e !== dt && this.fail("value required."), this.state = 30);
659
+ if (e === X) return this.state = Lt, void this.fail("XML declaration is incomplete.");
660
+ G(e) || (e !== Bt && this.fail("value required."), this.state = 30);
710
661
  }
711
662
  sXMLDeclValueStart() {
712
663
  let e = this.getCodeNorm();
713
- if (e === Y) return this.state = ct, void this.fail("XML declaration is incomplete.");
714
- W(e) || (pt(e) ? this.q = e : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
664
+ if (e === X) return this.state = Lt, void this.fail("XML declaration is incomplete.");
665
+ G(e) || (Ht(e) ? this.q = e : (this.fail("value must be quoted."), this.q = 32), this.state = 31);
715
666
  }
716
667
  sXMLDeclValue() {
717
- let e = this.captureTo([this.q, Y]);
718
- if (e === Y) return this.state = ct, this.text = "", void this.fail("XML declaration is incomplete.");
719
- if (e === K) return;
668
+ let e = this.captureTo([this.q, X]);
669
+ if (e === X) return this.state = Lt, this.text = "", void this.fail("XML declaration is incomplete.");
670
+ if (e === q) return;
720
671
  let t = this.text;
721
672
  switch (this.text = "", this.name) {
722
673
  case "version": {
@@ -734,52 +685,52 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
734
685
  }
735
686
  sXMLDeclSeparator() {
736
687
  let e = this.getCodeNorm();
737
- e === Y ? this.state = ct : (W(e) || (this.fail("whitespace required."), this.unGet()), this.state = 27);
688
+ e === X ? this.state = Lt : (G(e) || (this.fail("whitespace required."), this.unGet()), this.state = 27);
738
689
  }
739
690
  sXMLDeclEnding() {
740
- this.getCodeNorm() === J ? (this.piTarget === "xml" ? this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version.") : this.fail("processing instructions are not allowed before root."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = q) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
691
+ this.getCodeNorm() === Y ? (this.piTarget === "xml" ? this.name !== "version" && this.xmlDeclExpects.includes("version") && this.fail("XML declaration must contain a version.") : this.fail("processing instructions are not allowed before root."), this.xmlDeclHandler?.(this.xmlDecl), this.name = "", this.piTarget = this.text = "", this.state = J) : this.fail("The character ? is disallowed anywhere in XML declarations."), this.xmlDeclPossible = !1;
741
692
  }
742
693
  sOpenTag() {
743
694
  let e = this.captureNameChars();
744
- if (e === K) return;
695
+ if (e === q) return;
745
696
  let t = this.tag = {
746
697
  name: this.name,
747
698
  attributes: Object.create(null)
748
699
  };
749
700
  switch (this.name = "", this.xmlnsOpt && (this.topNS = t.ns = Object.create(null)), this.openTagStartHandler?.(t), this.sawRoot = !0, !this.fragmentOpt && this.closedRoot && this.fail("documents may contain only one root."), e) {
750
- case J:
701
+ case Y:
751
702
  this.openTag();
752
703
  break;
753
704
  case 47:
754
705
  this.state = 35;
755
706
  break;
756
- default: W(e) || this.fail("disallowed character in tag name."), this.state = 36;
707
+ default: G(e) || this.fail("disallowed character in tag name."), this.state = 36;
757
708
  }
758
709
  }
759
710
  sOpenTagSlash() {
760
- this.getCode() === J ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
711
+ this.getCode() === Y ? this.openSelfClosingTag() : (this.fail("forward-slash in opening tag not followed by >."), this.state = 36);
761
712
  }
762
713
  sAttrib() {
763
714
  let e = this.skipSpaces();
764
- e !== K && (Xe(e) ? (this.unGet(), this.state = 37) : e === J ? this.openTag() : e === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
715
+ e !== q && (K(e) ? (this.unGet(), this.state = 37) : e === Y ? this.openTag() : e === 47 ? this.state = 35 : this.fail("disallowed character in attribute name."));
765
716
  }
766
717
  sAttribName() {
767
718
  let e = this.captureNameChars();
768
- e === dt ? this.state = 39 : W(e) ? this.state = 38 : e === J ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : e !== K && this.fail("disallowed character in attribute name.");
719
+ e === Bt ? this.state = 39 : G(e) ? this.state = 38 : e === Y ? (this.fail("attribute without value."), this.pushAttrib(this.name, this.name), this.name = this.text = "", this.openTag()) : e !== q && this.fail("disallowed character in attribute name.");
769
720
  }
770
721
  sAttribNameSawWhite() {
771
722
  let e = this.skipSpaces();
772
723
  switch (e) {
773
- case K: return;
774
- case dt:
724
+ case q: return;
725
+ case Bt:
775
726
  this.state = 39;
776
727
  break;
777
- default: this.fail("attribute without value."), this.text = "", this.name = "", e === J ? this.openTag() : Xe(e) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
728
+ default: this.fail("attribute without value."), this.text = "", this.name = "", e === Y ? this.openTag() : K(e) ? (this.unGet(), this.state = 37) : (this.fail("disallowed character in attribute name."), this.state = 36);
778
729
  }
779
730
  }
780
731
  sAttribValue() {
781
732
  let e = this.getCodeNorm();
782
- pt(e) ? (this.q = e, this.state = 40) : W(e) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
733
+ Ht(e) ? (this.q = e, this.state = 40) : G(e) || (this.fail("unquoted attribute value."), this.state = 42, this.unGet());
783
734
  }
784
735
  sAttribValueQuoted() {
785
736
  let { q: e, chunk: t } = this, { i: n } = this;
@@ -790,53 +741,53 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
790
741
  case 38:
791
742
  this.text += t.slice(n, this.prevI), this.state = 14, this.entityReturnState = 40;
792
743
  return;
793
- case lt:
794
- case st:
744
+ case Rt:
745
+ case It:
795
746
  case 9:
796
747
  this.text += `${t.slice(n, this.prevI)} `, n = this.i;
797
748
  break;
798
- case ut:
749
+ case zt:
799
750
  this.text += t.slice(n, this.prevI), this.fail("disallowed character.");
800
751
  return;
801
- case K:
752
+ case q:
802
753
  this.text += t.slice(n);
803
754
  return;
804
755
  }
805
756
  }
806
757
  sAttribValueClosed() {
807
758
  let e = this.getCodeNorm();
808
- W(e) ? this.state = 36 : e === J ? this.openTag() : e === 47 ? this.state = 35 : Xe(e) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
759
+ G(e) ? this.state = 36 : e === Y ? this.openTag() : e === 47 ? this.state = 35 : K(e) ? (this.fail("no whitespace between attributes."), this.unGet(), this.state = 37) : this.fail("disallowed character in attribute name.");
809
760
  }
810
761
  sAttribValueUnquoted() {
811
- let e = this.captureTo(vt);
762
+ let e = this.captureTo(qt);
812
763
  switch (e) {
813
764
  case 38:
814
765
  this.state = 14, this.entityReturnState = 42;
815
766
  break;
816
- case ut:
767
+ case zt:
817
768
  this.fail("disallowed character.");
818
769
  break;
819
- case K: break;
820
- default: this.text.includes("]]>") && this.fail("the string \"]]>\" is disallowed in char data."), this.pushAttrib(this.name, this.text), this.name = this.text = "", e === J ? this.openTag() : this.state = 36;
770
+ case q: break;
771
+ default: this.text.includes("]]>") && this.fail("the string \"]]>\" is disallowed in char data."), this.pushAttrib(this.name, this.text), this.name = this.text = "", e === Y ? this.openTag() : this.state = 36;
821
772
  }
822
773
  }
823
774
  sCloseTag() {
824
775
  let e = this.captureNameChars();
825
- e === J ? this.closeTag() : W(e) ? this.state = 44 : e !== K && this.fail("disallowed character in closing tag.");
776
+ e === Y ? this.closeTag() : G(e) ? this.state = 44 : e !== q && this.fail("disallowed character in closing tag.");
826
777
  }
827
778
  sCloseTagSawWhite() {
828
779
  switch (this.skipSpaces()) {
829
- case J:
780
+ case Y:
830
781
  this.closeTag();
831
782
  break;
832
- case K: break;
783
+ case q: break;
833
784
  default: this.fail("disallowed character in closing tag.");
834
785
  }
835
786
  }
836
787
  handleTextInRoot() {
837
788
  let { i: e, forbiddenState: t } = this, { chunk: n, textHandler: r } = this;
838
789
  t: for (;;) switch (this.getCode()) {
839
- case ut:
790
+ case zt:
840
791
  if (this.state = 15, r !== void 0) {
841
792
  let { text: t } = this, i = n.slice(e, this.prevI);
842
793
  t.length === 0 ? i.length !== 0 && r(i) : (r(t + i), this.text = "");
@@ -844,9 +795,9 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
844
795
  t = 0;
845
796
  break t;
846
797
  case 38:
847
- this.state = 14, this.entityReturnState = q, r !== void 0 && (this.text += n.slice(e, this.prevI)), t = 0;
798
+ this.state = 14, this.entityReturnState = J, r !== void 0 && (this.text += n.slice(e, this.prevI)), t = 0;
848
799
  break t;
849
- case ft:
800
+ case Vt:
850
801
  switch (t) {
851
802
  case 0:
852
803
  t = 1;
@@ -858,13 +809,13 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
858
809
  default: throw Error("impossible state");
859
810
  }
860
811
  break;
861
- case J:
812
+ case Y:
862
813
  t === 2 && this.fail("the string \"]]>\" is disallowed in char data."), t = 0;
863
814
  break;
864
- case st:
815
+ case It:
865
816
  r !== void 0 && (this.text += `${n.slice(e, this.prevI)}\n`), e = this.i, t = 0;
866
817
  break;
867
- case K:
818
+ case q:
868
819
  r !== void 0 && (this.text += n.slice(e));
869
820
  break t;
870
821
  default: t = 0;
@@ -876,22 +827,22 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
876
827
  t: for (;;) {
877
828
  let i = this.getCode();
878
829
  switch (i) {
879
- case ut:
830
+ case zt:
880
831
  if (this.state = 15, n !== void 0) {
881
832
  let { text: r } = this, i = t.slice(e, this.prevI);
882
833
  r.length === 0 ? i.length !== 0 && n(i) : (n(r + i), this.text = "");
883
834
  }
884
835
  break t;
885
836
  case 38:
886
- this.state = 14, this.entityReturnState = q, n !== void 0 && (this.text += t.slice(e, this.prevI)), r = !0;
837
+ this.state = 14, this.entityReturnState = J, n !== void 0 && (this.text += t.slice(e, this.prevI)), r = !0;
887
838
  break t;
888
- case st:
839
+ case It:
889
840
  n !== void 0 && (this.text += `${t.slice(e, this.prevI)}\n`), e = this.i;
890
841
  break;
891
- case K:
842
+ case q:
892
843
  n !== void 0 && (this.text += t.slice(e));
893
844
  break t;
894
- default: W(i) || (r = !0);
845
+ default: G(i) || (r = !0);
895
846
  }
896
847
  }
897
848
  r && (this.sawRoot || this.reportedTextBeforeRoot || (this.fail("text data outside of root node."), this.reportedTextBeforeRoot = !0), this.closedRoot && !this.reportedTextAfterRoot && (this.fail("text data outside of root node."), this.reportedTextAfterRoot = !0));
@@ -905,10 +856,10 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
905
856
  };
906
857
  if (this.attribList.push(i), this.attributeHandler?.(i), n === "xmlns") {
907
858
  let e = t.trim();
908
- this.currentXMLVersion === "1.0" && e === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[r] = e, yt(this, r, e);
859
+ this.currentXMLVersion === "1.0" && e === "" && this.fail("invalid attempt to undefine prefix in XML 1.0"), this.topNS[r] = e, Jt(this, r, e);
909
860
  } else if (e === "xmlns") {
910
861
  let e = t.trim();
911
- this.topNS[""] = e, yt(this, "", e);
862
+ this.topNS[""] = e, Jt(this, "", e);
912
863
  }
913
864
  }
914
865
  pushAttribPlain(e, t) {
@@ -925,7 +876,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
925
876
  let t = e.pop();
926
877
  this.fail(`unclosed tag: ${t.name}`);
927
878
  }
928
- this.state !== 0 && this.state !== q && this.fail("unexpected end.");
879
+ this.state !== 0 && this.state !== J && this.fail("unexpected end.");
929
880
  let { text: t } = this;
930
881
  return t.length !== 0 && (this.textHandler?.(t), this.text = ""), this._closed = !0, this.endHandler?.(), this._init(), this;
931
882
  }
@@ -960,7 +911,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
960
911
  let { attributes: n } = t, r = /* @__PURE__ */ new Set();
961
912
  for (let t of e) {
962
913
  let e, i, { name: a, prefix: o, local: s } = t;
963
- o === "" ? (e = a === "xmlns" ? it : "", i = a) : (e = this.resolve(o), e === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`), e = o), i = `{${e}}${s}`), r.has(i) && this.fail(`duplicate attribute: ${i}.`), r.add(i), t.uri = e, n[a] = t;
914
+ o === "" ? (e = a === "xmlns" ? Nt : "", i = a) : (e = this.resolve(o), e === void 0 && (this.fail(`unbound namespace prefix: ${JSON.stringify(o)}.`), e = o), i = `{${e}}${s}`), r.has(i) && this.fail(`duplicate attribute: ${i}.`), r.add(i), t.uri = e, n[a] = t;
964
915
  }
965
916
  this.attribList = [];
966
917
  }
@@ -972,16 +923,16 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
972
923
  openTag() {
973
924
  this.processAttribs();
974
925
  let { tags: e } = this, t = this.tag;
975
- t.isSelfClosing = !1, this.openTagHandler?.(t), e.push(t), this.state = q, this.name = "";
926
+ t.isSelfClosing = !1, this.openTagHandler?.(t), e.push(t), this.state = J, this.name = "";
976
927
  }
977
928
  openSelfClosingTag() {
978
929
  this.processAttribs();
979
930
  let { tags: e } = this, t = this.tag;
980
- t.isSelfClosing = !0, this.openTagHandler?.(t), this.closeTagHandler?.(t), (this.tag = e[e.length - 1] ?? null) === null && (this.closedRoot = !0), this.state = q, this.name = "";
931
+ t.isSelfClosing = !0, this.openTagHandler?.(t), this.closeTagHandler?.(t), (this.tag = e[e.length - 1] ?? null) === null && (this.closedRoot = !0), this.state = J, this.name = "";
981
932
  }
982
933
  closeTag() {
983
934
  let { tags: e, name: t } = this;
984
- if (this.state = q, this.name = "", t === "") return this.fail("weird empty close tag."), void (this.text += "</>");
935
+ if (this.state = J, this.name = "", t === "") return this.fail("weird empty close tag."), void (this.text += "</>");
985
936
  let n = this.closeTagHandler, r = e.length;
986
937
  for (; r-- > 0;) {
987
938
  let r = this.tag = e.pop();
@@ -998,21 +949,21 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
998
949
  let t = NaN;
999
950
  return e[1] === "x" && /^#x[0-9a-f]+$/i.test(e) ? t = parseInt(e.slice(2), 16) : /^#[0-9]+$/.test(e) && (t = parseInt(e.slice(1), 10)), this.isChar(t) ? String.fromCodePoint(t) : (this.fail("malformed character entity."), `&${e};`);
1000
951
  }
1001
- }, Tt = /&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g, Et = {
952
+ }, en = /&(#x[0-9a-fA-F]+|#[0-9]+|amp|lt|gt|quot|apos);/g, tn = {
1002
953
  amp: "&",
1003
954
  lt: "<",
1004
955
  gt: ">",
1005
956
  quot: "\"",
1006
957
  apos: "'"
1007
- }, Dt = (e, t) => {
1008
- let n = Et[t];
958
+ }, nn = (e, t) => {
959
+ let n = tn[t];
1009
960
  if (n !== void 0) return n;
1010
961
  let r = t.charCodeAt(1) === 120 ? parseInt(t.slice(2), 16) : parseInt(t.slice(1), 10);
1011
962
  return r > 0 && r <= 1114111 ? String.fromCodePoint(r) : e;
1012
- }, Ot = (e) => {
963
+ }, rn = (e) => {
1013
964
  let t = e;
1014
- return t.indexOf("\r") !== -1 && (t = t.replace(/\r\n?/g, "\n")), t.indexOf("&") !== -1 && (t = t.replace(Tt, Dt)), t;
1015
- }, kt = (e) => {
965
+ return t.indexOf("\r") !== -1 && (t = t.replace(/\r\n?/g, "\n")), t.indexOf("&") !== -1 && (t = t.replace(en, nn)), t;
966
+ }, an = (e) => {
1016
967
  let t = e, n = t.length;
1017
968
  for (let e = 0; e < n; e++) {
1018
969
  let n = t.charCodeAt(e);
@@ -1021,8 +972,8 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1021
972
  break;
1022
973
  }
1023
974
  }
1024
- return t.indexOf("&") !== -1 && (t = t.replace(Tt, Dt)), t;
1025
- }, At = (e) => e === 32 || e === 9 || e === 10 || e === 13, jt = class e {
975
+ return t.indexOf("&") !== -1 && (t = t.replace(en, nn)), t;
976
+ }, on = (e) => e === 32 || e === 9 || e === 10 || e === 13, sn = class e {
1026
977
  constructor() {
1027
978
  this._openTagHandler = void 0, this._closeTagHandler = void 0, this._textHandler = void 0, this._cdataHandler = void 0, this._errorHandler = void 0, this._endHandler = void 0, this._scanners = null, this._carry = "", this._text = "", this._tags = [], this._sawRoot = !1, this._closed = !1;
1028
979
  }
@@ -1033,7 +984,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1033
984
  this.NOT_HANDLED = -2;
1034
985
  }
1035
986
  static decodeText(e) {
1036
- return Ot(e);
987
+ return rn(e);
1037
988
  }
1038
989
  on(e, t) {
1039
990
  switch (e) {
@@ -1099,7 +1050,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1099
1050
  if (e.length === 0) return;
1100
1051
  this._text = "";
1101
1052
  let t = this._textHandler;
1102
- t !== void 0 && this._tags.length !== 0 && t(Ot(e));
1053
+ t !== void 0 && this._tags.length !== 0 && t(rn(e));
1103
1054
  }
1104
1055
  _markup(t, n, r) {
1105
1056
  if (n + 1 >= r) return -1;
@@ -1138,7 +1089,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1138
1089
  let i = n + 1 + o.name.length;
1139
1090
  if (i >= r) return -1;
1140
1091
  let a = t.charCodeAt(i);
1141
- if (a === 62 || a === 47 || At(a)) {
1092
+ if (a === 62 || a === 47 || on(a)) {
1142
1093
  this._flushText();
1143
1094
  let i = o.scan(t, n, r);
1144
1095
  if (i !== e.NOT_HANDLED) {
@@ -1156,11 +1107,11 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1156
1107
  }
1157
1108
  _openTag(e, t, n) {
1158
1109
  let r = t + 1, i = 0;
1159
- for (; r < n && (i = e.charCodeAt(r), i !== 62 && i !== 47 && !At(i));) r++;
1110
+ for (; r < n && (i = e.charCodeAt(r), i !== 62 && i !== 47 && !on(i));) r++;
1160
1111
  if (r >= n) return -1;
1161
1112
  let a = e.slice(t + 1, r), o = {}, s = !1;
1162
1113
  for (;;) {
1163
- for (; r < n && At(i = e.charCodeAt(r));) r++;
1114
+ for (; r < n && on(i = e.charCodeAt(r));) r++;
1164
1115
  if (r >= n) return -1;
1165
1116
  if (i === 62) {
1166
1117
  r++;
@@ -1176,16 +1127,16 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1176
1127
  break;
1177
1128
  }
1178
1129
  let t = r;
1179
- for (; r < n && (i = e.charCodeAt(r), i !== 61 && i !== 62 && i !== 47 && !At(i));) r++;
1130
+ for (; r < n && (i = e.charCodeAt(r), i !== 61 && i !== 62 && i !== 47 && !on(i));) r++;
1180
1131
  if (r >= n) return -1;
1181
1132
  let a = e.slice(t, r);
1182
- for (; r < n && At(i = e.charCodeAt(r));) r++;
1133
+ for (; r < n && on(i = e.charCodeAt(r));) r++;
1183
1134
  if (r >= n) return -1;
1184
1135
  if (i !== 61) {
1185
1136
  this.fail("attribute without value.");
1186
1137
  continue;
1187
1138
  }
1188
- for (r++; r < n && At(i = e.charCodeAt(r));) r++;
1139
+ for (r++; r < n && on(i = e.charCodeAt(r));) r++;
1189
1140
  if (r >= n) return -1;
1190
1141
  if (i !== 34 && i !== 39) {
1191
1142
  this.fail("unquoted attribute value.");
@@ -1193,7 +1144,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1193
1144
  }
1194
1145
  let c = e.indexOf(i === 34 ? "\"" : "'", r + 1);
1195
1146
  if (c === -1) return -1;
1196
- a !== "__proto__" && (o[a] = kt(e.slice(r + 1, c))), r = c + 1;
1147
+ a !== "__proto__" && (o[a] = an(e.slice(r + 1, c))), r = c + 1;
1197
1148
  }
1198
1149
  this._flushText(), this._sawRoot = !0;
1199
1150
  let c = {
@@ -1214,7 +1165,7 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1214
1165
  this.fail(`unmatched closing tag: ${e}.`);
1215
1166
  }
1216
1167
  };
1217
- (bt = Je ||= {}).Events = {
1168
+ (Yt = Ct ||= {}).Events = {
1218
1169
  XmlDecl: "xmldecl",
1219
1170
  Text: "text",
1220
1171
  ProcessingInstruction: "processinginstruction",
@@ -1228,9 +1179,9 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1228
1179
  Error: "error",
1229
1180
  End: "end",
1230
1181
  Ready: "ready"
1231
- }, bt.parseStream = async (e, t, n) => {
1182
+ }, Yt.parseStream = async (e, t, n) => {
1232
1183
  if (n?.lean) return (async (e, t) => {
1233
- let n, r = new jt();
1184
+ let n, r = new sn();
1234
1185
  t.elementScanners && r.setElementScanners(t.elementScanners), t.onOpenTag && r.on("opentag", t.onOpenTag), t.onCloseTag && r.on("closetag", t.onCloseTag), t.onText && r.on("text", t.onText), t.onError && r.on("error", t.onError);
1235
1186
  let i = t.onEnd;
1236
1187
  for (i && r.on("end", () => {
@@ -1242,13 +1193,13 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1242
1193
  }
1243
1194
  return r.close(), n;
1244
1195
  })(e, t);
1245
- let r, i = new wt({
1196
+ let r, i = new $t({
1246
1197
  position: !1,
1247
1198
  ...n
1248
1199
  });
1249
- t.onOpenTagStart && i.on(Je.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && i.on(Je.Events.OpenTag, t.onOpenTag), t.onCloseTag && i.on(Je.Events.CloseTag, t.onCloseTag), t.onAttribute && i.on(Je.Events.Attribute, t.onAttribute), t.onText && i.on(Je.Events.Text, t.onText), t.onError && i.on(Je.Events.Error, t.onError);
1200
+ t.onOpenTagStart && i.on(Ct.Events.OpenTagStart, t.onOpenTagStart), t.onOpenTag && i.on(Ct.Events.OpenTag, t.onOpenTag), t.onCloseTag && i.on(Ct.Events.CloseTag, t.onCloseTag), t.onAttribute && i.on(Ct.Events.Attribute, t.onAttribute), t.onText && i.on(Ct.Events.Text, t.onText), t.onError && i.on(Ct.Events.Error, t.onError);
1250
1201
  let a = t.onEnd;
1251
- for (a && i.on(Je.Events.End, () => {
1202
+ for (a && i.on(Ct.Events.End, () => {
1252
1203
  r = a();
1253
1204
  });;) {
1254
1205
  let { value: t, done: n } = await e.read();
@@ -1257,13 +1208,13 @@ var bt, xt = (e) => nt.test(e), St = (e) => $e.test(e), Ct = {
1257
1208
  }
1258
1209
  return i.close(), r;
1259
1210
  };
1260
- var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e && e !== "0" && e !== "off" && e !== "false" && null, Z = (e) => {
1211
+ var Z = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e && e !== "0" && e !== "off" && e !== "false" && null, Q = (e) => {
1261
1212
  let t = parseInt(e);
1262
1213
  return isNaN(t) ? null : t;
1263
- }, Q = (e) => {
1214
+ }, cn = (e) => {
1264
1215
  let t = parseFloat(e);
1265
1216
  return isNaN(t) ? null : t;
1266
- }, $ = null, Mt = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Nt = (e) => Mt(e).replace(/"/g, "&quot;"), Pt = class {
1217
+ }, $ = null, ln = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), un = (e) => ln(e).replace(/"/g, "&quot;"), dn = class {
1267
1218
  constructor() {
1268
1219
  this._registeredVisitors = /* @__PURE__ */ new Map();
1269
1220
  }
@@ -1275,7 +1226,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1275
1226
  key: null,
1276
1227
  source: e,
1277
1228
  parent: null
1278
- }, f = null, p = !1, m = null, h = null, g = null, _ = (e, t) => {
1229
+ }, f = null, p = !1, m = null, ee = null, h = null, g = (e, t) => {
1279
1230
  let n = c.attributes[e];
1280
1231
  if (t) {
1281
1232
  if (Array.isArray(t)) {
@@ -1284,7 +1235,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1284
1235
  } else if (n == null || (n = t(n), n == null)) return;
1285
1236
  }
1286
1237
  return n;
1287
- }, v = {
1238
+ }, _ = {
1288
1239
  getSource: () => f?.source ?? null,
1289
1240
  setSource: (e) => {
1290
1241
  f.source = e;
@@ -1293,8 +1244,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1293
1244
  f.key = e;
1294
1245
  },
1295
1246
  getFrom: () => c,
1296
- getAttribute: (e, t) => _(e, t) ?? null,
1297
- hasAttribute: (e) => v.getAttribute(e) !== null,
1247
+ getAttribute: (e, t) => g(e, t) ?? null,
1248
+ hasAttribute: (e) => _.getAttribute(e) !== null,
1298
1249
  getParent: () => {
1299
1250
  let e = u[u.length - 2];
1300
1251
  return e.parent ?? e.source;
@@ -1304,14 +1255,14 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1304
1255
  for (let n = 0; n < t; n++) e.push(a[n].local);
1305
1256
  return e.join("\\");
1306
1257
  },
1307
- parseAttribute: _,
1308
- getRawXml: () => g,
1258
+ parseAttribute: g,
1259
+ getRawXml: () => h,
1309
1260
  copyToObject: (e, t, n, r) => {
1310
- let i = _(r ?? t, n);
1261
+ let i = g(r ?? t, n);
1311
1262
  i !== void 0 && (e[t] = i);
1312
1263
  },
1313
1264
  copyTo: (e, t, n) => {
1314
- let r = _(n ?? e, t);
1265
+ let r = g(n ?? e, t);
1315
1266
  r !== void 0 && (f.source[e] = r);
1316
1267
  },
1317
1268
  warn: (e, t) => {
@@ -1325,7 +1276,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1325
1276
  let t = e.attributes ?? {}, n = `<${e.name}`;
1326
1277
  for (let e in t) {
1327
1278
  let r = t[e];
1328
- n += ` ${e}="${Nt(typeof r == "string" ? r : r?.value ?? "")}"`;
1279
+ n += ` ${e}="${un(typeof r == "string" ? r : r?.value ?? "")}"`;
1329
1280
  }
1330
1281
  return n + ">";
1331
1282
  })(e)), o = {
@@ -1333,53 +1284,53 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1333
1284
  tag: e,
1334
1285
  destination: null
1335
1286
  }, a.push(o), s = t, void (c = e);
1336
- let g = (i.length > 0 ? i[i.length - 1] : r).get(t);
1287
+ let h = (i.length > 0 ? i[i.length - 1] : r).get(t);
1337
1288
  if (o = {
1338
1289
  local: t,
1339
- visitor: g,
1290
+ visitor: h,
1340
1291
  tag: e,
1341
1292
  destination: null
1342
1293
  }, p) return a.push(o), s = t, void (c = e);
1343
1294
  l = o?.visitor ?? null, s = t, c = e;
1344
- let _ = !!g && g.to === null;
1345
- if (g && !_ && g.scope) {
1346
- let e = g.scope(v);
1347
- e === null ? _ = !0 : e && (i.push(e), o.pushedScope = !0);
1295
+ let g = !!h && h.to === null;
1296
+ if (h && !g && h.scope) {
1297
+ let e = h.scope(_);
1298
+ e === null ? g = !0 : e && (i.push(e), o.pushedScope = !0);
1348
1299
  }
1349
- g && (a.length === 0 ? (f = d, o.destination = f, o.pushedDestination = !0, u.push(f)) : _ ? (f = null, o.destination = null) : g.transparent ? o.destination = f : (f = {
1300
+ h && (a.length === 0 ? (f = d, o.destination = f, o.pushedDestination = !0, u.push(f)) : g ? (f = null, o.destination = null) : h.transparent ? o.destination = f : (f = {
1350
1301
  key: null,
1351
1302
  source: {},
1352
1303
  parent: null
1353
- }, o.destination = f, o.pushedDestination = !0, u.push(f))), a.push(o), p = _;
1354
- let y = l?.openTag?.(v);
1355
- y !== void 0 && (f.parent = y), g?.raw && !_ && (m = [], h = o);
1304
+ }, o.destination = f, o.pushedDestination = !0, u.push(f))), a.push(o), p = g;
1305
+ let v = l?.openTag?.(_);
1306
+ v !== void 0 && (f.parent = v), h?.raw && !g && (m = [], ee = o);
1356
1307
  },
1357
1308
  onCloseTag: (e) => {
1358
1309
  let t = e.name, r = t.indexOf(":");
1359
1310
  if (r !== -1 && (t = t.slice(r + 1)), t !== s) throw Error(`mismatch open/close tag: '${t}'/'${s}'`);
1360
- let _ = !1;
1311
+ let g = !1;
1361
1312
  if (m) {
1362
- if (a[a.length - 1] !== h) return m.push(`</${e.name}>`), a.pop(), o = a[a.length - 1] ?? null, s = o?.local ?? null, void (c = o?.tag ?? null);
1363
- g = m.join(""), m = null, h = null, _ = !0;
1313
+ if (a[a.length - 1] !== ee) return m.push(`</${e.name}>`), a.pop(), o = a[a.length - 1] ?? null, s = o?.local ?? null, void (c = o?.tag ?? null);
1314
+ h = m.join(""), m = null, ee = null, g = !0;
1364
1315
  }
1365
- p || l?.closeTag?.(v), _ && (g = null);
1366
- let y = a.pop() ?? null;
1367
- o = a[a.length - 1] ?? null, y?.pushedScope && i.pop();
1368
- let b = y?.destination;
1369
- if (b && y.pushedDestination) {
1316
+ p || l?.closeTag?.(_), g && (h = null);
1317
+ let v = a.pop() ?? null;
1318
+ o = a[a.length - 1] ?? null, v?.pushedScope && i.pop();
1319
+ let te = v?.destination;
1320
+ if (te && v.pushedDestination) {
1370
1321
  u.pop(), f = u[u.length - 1] ?? d;
1371
- let e = y.visitor;
1372
- e && e.to && b.source !== void 0 && (Array.isArray(e.to) ? f.source.push ? f.source.push(b.source) : n?.(`Unable to parse array for ${e.from} at ${v.getPath()}`) : b.key ? f.source[b.key] = b.source : typeof e.to == "string" && (f.source[e.to] = b.source));
1373
- } else b || (f = u[u.length - 1] ?? d);
1322
+ let e = v.visitor;
1323
+ e && e.to && te.source !== void 0 && (Array.isArray(e.to) ? f.source.push ? f.source.push(te.source) : n?.(`Unable to parse array for ${e.from} at ${_.getPath()}`) : te.key ? f.source[te.key] = te.source : typeof e.to == "string" && (f.source[e.to] = te.source));
1324
+ } else te || (f = u[u.length - 1] ?? d);
1374
1325
  s = o?.local ?? null, c = o?.tag ?? null, l = o?.visitor ?? null, p = !o?.destination;
1375
1326
  },
1376
1327
  onText: (e) => {
1377
- m ? m.push(Mt(e)) : l?.text?.(e, v);
1328
+ m ? m.push(ln(e)) : l?.text?.(e, _);
1378
1329
  },
1379
1330
  onEnd: t
1380
1331
  };
1381
1332
  }
1382
- }, Ft = `IFERROR(${ae}(`, It = Ft.toUpperCase(), Lt = x.toUpperCase(), Rt = { kind: "none" }, zt = { kind: "spilled" }, Bt = (e, t) => {
1333
+ }, fn = `IFERROR(${z}(`, pn = fn.toUpperCase(), mn = B.toUpperCase(), hn = { kind: "none" }, gn = { kind: "spilled" }, _n = (e, t) => {
1383
1334
  if (e.charCodeAt(t) !== 34) return null;
1384
1335
  let n = "", r = t + 1;
1385
1336
  for (; r < e.length;) if (e.charCodeAt(r) === 34) {
@@ -1390,12 +1341,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1390
1341
  n += "\"", r += 2;
1391
1342
  } else n += e[r], r++;
1392
1343
  return null;
1393
- }, Vt = (e) => {
1344
+ }, vn = (e) => {
1394
1345
  let t = [], n = 0;
1395
1346
  for (; n < e.length;) {
1396
1347
  let r = e.charCodeAt(n);
1397
1348
  if (r === 34) {
1398
- let t = Bt(e, n);
1349
+ let t = _n(e, n);
1399
1350
  if (t === null) break;
1400
1351
  n = t.end;
1401
1352
  continue;
@@ -1413,7 +1364,196 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1413
1364
  e.charCodeAt(i) === 40 && t.push(e.slice(n, i).toUpperCase().replace(/^_XLFN\./, "").replace(/^_XLWS\./, "")), n = i;
1414
1365
  }
1415
1366
  return t;
1416
- }, Ht = (e) => {
1367
+ }, yn = /^\s*TABLE\s*\(([^()]*)\)\s*$/i, bn = /^\s*(\$?)([A-Za-z]{1,3})(\$?)(\d{1,7})\s*$/, xn = (e) => {
1368
+ let t = bn.exec(e);
1369
+ if (!t) return null;
1370
+ let n = h.fastStringToCol(t[2]), r = parseInt(t[4], 10) - 1;
1371
+ return n < 0 || r < 0 ? null : {
1372
+ row: r,
1373
+ col: n,
1374
+ colAbsolute: t[1] === "$",
1375
+ rowAbsolute: t[3] === "$"
1376
+ };
1377
+ }, Sn = (e) => h.cellToString({
1378
+ rowIndex: e.row,
1379
+ colIndex: e.col
1380
+ }), Cn = (e, t) => {
1381
+ let n = yn.exec(e);
1382
+ if (!n) return null;
1383
+ let r = n[1].split(",");
1384
+ if (r.length !== 3 && r.length !== 5) return null;
1385
+ let i = [];
1386
+ for (let e = 0; e < r.length; e++) {
1387
+ let t = xn(r[e]);
1388
+ if (!t) return null;
1389
+ i.push(t);
1390
+ }
1391
+ let a = t.rowStart, o = t.colStart, s = (e) => e.colAbsolute && !e.rowAbsolute && e.col === o - 1 && e.row === a, c = (e) => e.rowAbsolute && !e.colAbsolute && e.row === a - 1 && e.col === o, l = {
1392
+ rowStart: a,
1393
+ colStart: o,
1394
+ rowEnd: t.rowEnd,
1395
+ colEnd: t.colEnd
1396
+ }, u = i[0];
1397
+ if (i.length === 3) {
1398
+ let [, e, t] = i;
1399
+ return s(t) && c(u) ? {
1400
+ ref: l,
1401
+ columnInput: Sn(e)
1402
+ } : c(t) && s(u) ? {
1403
+ ref: l,
1404
+ rowInput: Sn(e)
1405
+ } : null;
1406
+ }
1407
+ if (!u.rowAbsolute || !u.colAbsolute || u.row !== a - 1 || u.col !== o - 1) return null;
1408
+ let [, d, f, p, m] = i;
1409
+ return s(f) && c(m) ? {
1410
+ ref: l,
1411
+ rowInput: Sn(p),
1412
+ columnInput: Sn(d)
1413
+ } : c(f) && s(m) ? {
1414
+ ref: l,
1415
+ rowInput: Sn(d),
1416
+ columnInput: Sn(p)
1417
+ } : null;
1418
+ }, wn = /^(?:(\d{4})-(\d{2})-(\d{2}))?T?(?:(\d{2}):(\d{2})(?::(\d{2})(\.\d+)?)?)?(?:Z|[+-]\d{2}:?\d{2})?$/, Tn = /^PT(?:(\d+(?:\.\d+)?)H)?(?:(\d+(?:\.\d+)?)M)?(?:(\d+(?:\.\d+)?)S)?$/, En = (e, t, n) => {
1419
+ let r = Math.floor((14 - t) / 12), i = e + 4800 - r, a = t + 12 * r - 3;
1420
+ return n + Math.floor((153 * a + 2) / 5) + 365 * i + Math.floor(i / 4) - Math.floor(i / 100) + Math.floor(i / 400) - 32045;
1421
+ }, Dn = En(1899, 12, 30), On = (e) => {
1422
+ let t = e.indexOf(":");
1423
+ return t === -1 ? e : e.slice(t + 1);
1424
+ }, kn = class {
1425
+ constructor() {
1426
+ this._runs = null, this._text = "", this._font = null, this._inRun = !1, this._inRPr = !1;
1427
+ }
1428
+ reset() {
1429
+ this._runs = null, this._inRun = !1, this._inRPr = !1;
1430
+ }
1431
+ onOpenTag(e, t) {
1432
+ e === "r" ? (this._inRun = !0, this._text = "", this._font = null, this._runs ??= []) : e === "rPr" ? this._inRun && (this._inRPr = !0) : this._inRPr && function(e, t, n) {
1433
+ switch (e) {
1434
+ case "b":
1435
+ n.weight = Mn(t) ? 700 : 400;
1436
+ break;
1437
+ case "i":
1438
+ n.style = Mn(t) ? s.Style.Italic : s.Style.Normal;
1439
+ break;
1440
+ case "strike":
1441
+ n.strike = ue(Mn(t));
1442
+ break;
1443
+ case "outline":
1444
+ n.outline = Mn(t);
1445
+ break;
1446
+ case "shadow":
1447
+ n.shadow = Mn(t);
1448
+ break;
1449
+ case "condense":
1450
+ case "extend": {
1451
+ let r = Ye(e, Mn(t));
1452
+ r !== void 0 && (n.letterSpacing = r);
1453
+ break;
1454
+ }
1455
+ case "u":
1456
+ n.underline = M(t.val);
1457
+ break;
1458
+ case "vertAlign": {
1459
+ let e = L(t.val);
1460
+ e !== void 0 && (n.baseline = e);
1461
+ break;
1462
+ }
1463
+ case "sz": {
1464
+ let e = parseFloat(t.val ?? "");
1465
+ isNaN(e) || (n.size = e);
1466
+ break;
1467
+ }
1468
+ case "rFont": {
1469
+ let e = t.val;
1470
+ e && (n.family = e);
1471
+ break;
1472
+ }
1473
+ case "family": {
1474
+ let e = jn[t.val ?? ""];
1475
+ e && (n.fallbacks = [e]);
1476
+ break;
1477
+ }
1478
+ case "charset": {
1479
+ let e = parseInt(t.val ?? "", 10);
1480
+ isNaN(e) || (n.charset = e);
1481
+ break;
1482
+ }
1483
+ case "scheme":
1484
+ me(n, t.val);
1485
+ break;
1486
+ case "color": {
1487
+ let e = t.rgb;
1488
+ if (e && t.theme === void 0) {
1489
+ n.color = "#" + (e.length === 8 ? e.substring(2) : e).toUpperCase();
1490
+ break;
1491
+ }
1492
+ let r = P((e) => t[e]);
1493
+ r && (n.color = r);
1494
+ break;
1495
+ }
1496
+ }
1497
+ }(e, t, this._font ??= {});
1498
+ }
1499
+ onText(e) {
1500
+ this._inRun && (this._text += e);
1501
+ }
1502
+ onCloseTag(e) {
1503
+ if (e === "rPr") this._inRPr = !1, this._font ??= {};
1504
+ else if (e === "r" && this._inRun) {
1505
+ let e = Ue(this._text), t = this._font;
1506
+ this._runs.push(t ? {
1507
+ text: e,
1508
+ font: t
1509
+ } : { text: e }), this._inRun = !1;
1510
+ }
1511
+ }
1512
+ take() {
1513
+ let e = this._runs;
1514
+ if (this.reset(), !e) return null;
1515
+ for (let t = 0; t < e.length; t++) if (e[t].font) return e;
1516
+ return null;
1517
+ }
1518
+ };
1519
+ function An(e, t) {
1520
+ let n = {
1521
+ family: "Calibri",
1522
+ size: 11,
1523
+ ...t,
1524
+ weight: 400,
1525
+ style: s.Style.Normal,
1526
+ underline: s.UnderlineStyle.None,
1527
+ strike: s.StrikeStyle.None,
1528
+ baseline: 0
1529
+ }, r = Array(e.length);
1530
+ for (let t = 0; t < e.length; t++) {
1531
+ let i = e[t];
1532
+ if (!i.font) {
1533
+ r[t] = i;
1534
+ continue;
1535
+ }
1536
+ let a = {
1537
+ ...n,
1538
+ ...i.font
1539
+ };
1540
+ r[t] = {
1541
+ text: i.text,
1542
+ font: a
1543
+ };
1544
+ }
1545
+ return r;
1546
+ }
1547
+ var jn = {
1548
+ 1: "serif",
1549
+ 2: "sans-serif",
1550
+ 3: "monospace",
1551
+ 4: "cursive",
1552
+ 5: "fantasy"
1553
+ }, Mn = (e) => {
1554
+ let t = e.val;
1555
+ return t === void 0 || t === "1" || t === "true";
1556
+ }, Nn = (e) => {
1417
1557
  let t = (t) => {
1418
1558
  if (e) return RegExp(`<(?:[\\w.-]+:)?${t}\\b[^>]*>([^<]*)<`).exec(e)?.[1];
1419
1559
  }, n = (e) => {
@@ -1423,16 +1563,19 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1423
1563
  return {
1424
1564
  c: n(t("col")),
1425
1565
  r: n(t("row")),
1426
- x: P(t("colOff") ?? "0") ?? 0,
1427
- y: P(t("rowOff") ?? "0") ?? 0
1566
+ x: S(t("colOff") ?? "0") ?? 0,
1567
+ y: S(t("rowOff") ?? "0") ?? 0
1428
1568
  };
1429
- }, Ut = "formulaDialect", Wt = (e, t, n, r, i, a, o, s) => {
1430
- let c = new Pt(), u = s?.get("parseInlineDxf"), d = s?.get(Ut), f = (e) => d && e ? d.readDetached(e) : e, g = new p.TransposedBuilder(), _ = null;
1569
+ }, Pn = "formulaDialect", Fn = "date1904", In = "richStrings", Ln = "defaultFont", Rn = (e, t, n, r, i, a, o, s) => {
1570
+ let c = new dn(), l = (e) => {
1571
+ let t = e.getAttribute("dxfId", Q);
1572
+ return t === null ? void 0 : r?.get(t) || (a?.(`A color filter or sort names a format that does not exist (dxfId '${t}').`), {});
1573
+ }, f = !1, m = s?.get("parseInlineDxf"), ee = s?.get(Pn), _ = (e) => ee && e ? ee.readDetached(e) : e, te = new g.TransposedBuilder(), y = null, ne = "topLeft";
1431
1574
  c.registerVisitor({
1432
1575
  from: "autoFilter",
1433
1576
  to: "autoTable",
1434
1577
  openTag: (e) => {
1435
- let t = e.getAttribute("ref"), n = m.fastStringToRange(t);
1578
+ let t = e.getAttribute("ref"), n = h.fastStringToRange(t);
1436
1579
  e.getSource().r = n, e.getSource().v = {};
1437
1580
  },
1438
1581
  closeTag: (e) => {
@@ -1453,7 +1596,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1453
1596
  let r = {
1454
1597
  r: n,
1455
1598
  conditionals: t.conditionals
1456
- }, i = e.getAttribute("pivot", X);
1599
+ }, i = e.getAttribute("pivot", Z);
1457
1600
  i !== null && (r.pivot = i), e.setSource(r);
1458
1601
  }
1459
1602
  }), c.registerVisitor({
@@ -1467,24 +1610,24 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1467
1610
  r: t.r,
1468
1611
  v: null,
1469
1612
  rule: n
1470
- }), e.copyToObject(n, "type", $), e.copyToObject(n, "priority", Z), e.copyToObject(n, "stopIfTrue", X);
1471
- let i = e.getAttribute("dxfId", Z);
1613
+ }), e.copyToObject(n, "type", $), e.copyToObject(n, "priority", Q), e.copyToObject(n, "stopIfTrue", Z);
1614
+ let i = e.getAttribute("dxfId", Q);
1472
1615
  if (i !== null) {
1473
1616
  let t = r?.get(i);
1474
1617
  t ||= (a?.(`Unable to load conditional color. Invalid dxfI: '${i}' at '${e.getPath()}'.`), {}), n.style = t;
1475
1618
  }
1476
- e.copyToObject(n, "aboveAverage", X), e.copyToObject(n, "equalAverage", X), e.copyToObject(n, "stdDev", Z), e.copyToObject(n, "bottom", X), e.copyToObject(n, "percent", X), e.copyToObject(n, "rank", Z), e.copyToObject(n, "operator", $), e.copyToObject(n, "text", $), e.copyToObject(n, "timePeriod", $);
1619
+ e.copyToObject(n, "aboveAverage", Z), e.copyToObject(n, "equalAverage", Z), e.copyToObject(n, "stdDev", Q), e.copyToObject(n, "bottom", Z), e.copyToObject(n, "percent", Z), e.copyToObject(n, "rank", Q), e.copyToObject(n, "operator", $), e.copyToObject(n, "text", $), e.copyToObject(n, "timePeriod", $);
1477
1620
  },
1478
1621
  closeTag: (e) => {
1479
1622
  let t = e.getParent();
1480
1623
  if (!t?.r) return;
1481
1624
  let n = t.conditionals[t.conditionals.length - 1], r = n?.rule;
1482
1625
  if (!r) return;
1483
- let i = {}, o = le(r, a);
1626
+ let i = {}, o = R(r, a);
1484
1627
  o && (i.condition = o), r.style && (i.style = r.style), r.scale && (i.scale = r.scale), r.stopIfTrue && (i.stopIfTrue = !0), r.pivot && (i.pivot = !0), n.v = i, n.priority = r.priority, r.x14Id && (n.x14Id = r.x14Id), delete n.rule;
1485
1628
  }
1486
1629
  });
1487
- let v = (e) => {
1630
+ let x = (e) => {
1488
1631
  let t = e.conditions ?? [], n = [];
1489
1632
  for (let e = 0; e < t.length; e++) {
1490
1633
  let r = t[e], i = {};
@@ -1497,10 +1640,10 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1497
1640
  to: {},
1498
1641
  openTag: (e) => {},
1499
1642
  closeTag: (e) => {
1500
- let t = e.getSource(), n = t.colors ?? [], r = v(t);
1643
+ let t = e.getSource(), n = t.colors ?? [], r = x(t);
1501
1644
  for (let e = 0; e < r.length; e++) r[e].color = n[e];
1502
1645
  e.getParent().scale = {
1503
- type: h.ScaleType.ColorScale,
1646
+ type: d.ScaleType.ColorScale,
1504
1647
  stops: r
1505
1648
  };
1506
1649
  }
@@ -1508,12 +1651,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1508
1651
  from: "dataBar",
1509
1652
  to: {},
1510
1653
  openTag: (e) => {
1511
- e.copyTo("maxLength", Z), e.copyTo("minLength", Z), e.copyTo("showValue", X);
1654
+ e.copyTo("maxLength", Q), e.copyTo("minLength", Q), e.copyTo("showValue", Z);
1512
1655
  },
1513
1656
  closeTag: (e) => {
1514
1657
  let t = e.getSource(), n = {
1515
- type: h.ScaleType.DataBar,
1516
- stops: v(t)
1658
+ type: d.ScaleType.DataBar,
1659
+ stops: x(t)
1517
1660
  }, r = t.colors?.[0];
1518
1661
  r && (n.color = r), t.minLength !== void 0 && (n.minLength = t.minLength), t.maxLength !== void 0 && (n.maxLength = t.maxLength), t.showValue !== void 0 && (n.showValue = t.showValue), e.getParent().scale = n;
1519
1662
  }
@@ -1521,12 +1664,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1521
1664
  from: "iconSet",
1522
1665
  to: {},
1523
1666
  openTag: (e) => {
1524
- e.copyTo("iconSet", $), e.copyTo("reverse", X), e.copyTo("showValue", X);
1667
+ e.copyTo("iconSet", $), e.copyTo("reverse", Z), e.copyTo("showValue", Z);
1525
1668
  },
1526
1669
  closeTag: (e) => {
1527
1670
  let t = e.getSource(), n = {
1528
- type: h.ScaleType.IconSet,
1529
- stops: v(t)
1671
+ type: d.ScaleType.IconSet,
1672
+ stops: x(t)
1530
1673
  };
1531
1674
  t.iconSet !== void 0 && (n.iconSet = t.iconSet), t.reverse !== void 0 && (n.reverse = t.reverse), t.showValue !== void 0 && (n.showValue = t.showValue), e.getParent().scale = n;
1532
1675
  }
@@ -1535,7 +1678,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1535
1678
  to: {},
1536
1679
  text: (e, t) => {
1537
1680
  let n = t.getParent(), r = n.formulas;
1538
- r || (r = [], n.formulas = r), r.push(f(e));
1681
+ r || (r = [], n.formulas = r), r.push(_(e));
1539
1682
  }
1540
1683
  }), c.registerVisitor({
1541
1684
  from: "cfvo",
@@ -1544,11 +1687,11 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1544
1687
  let t = e.getParent();
1545
1688
  t.conditions ||= [];
1546
1689
  let n = e.getSource();
1547
- if (t.conditions.push(n), e.copyTo("type", $), n.type === h.ColorStopType.Formula) {
1690
+ if (t.conditions.push(n), e.copyTo("type", $), n.type === d.ColorStopType.Formula) {
1548
1691
  let t = e.getAttribute("val");
1549
- t != null && (n.value = f(String(t)));
1550
- } else e.copyTo("value", Q, "val");
1551
- !1 === e.getAttribute("gte", X) && (n.exclusive = !0);
1692
+ t != null && (n.value = _(String(t)));
1693
+ } else e.copyTo("value", cn, "val");
1694
+ !1 === e.getAttribute("gte", Z) && (n.exclusive = !0);
1552
1695
  }
1553
1696
  }), c.registerVisitor({
1554
1697
  from: "color",
@@ -1556,7 +1699,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1556
1699
  openTag: (e) => {
1557
1700
  let t = e.getParent();
1558
1701
  t.colors ||= [];
1559
- let n = V((t) => e.getAttribute(t));
1702
+ let n = P((t) => e.getAttribute(t));
1560
1703
  t.colors.push(n);
1561
1704
  }
1562
1705
  }), c.registerVisitor({
@@ -1568,11 +1711,11 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1568
1711
  let i = t.filter;
1569
1712
  i || (i = { conditions: [] }, t.filter = i);
1570
1713
  let a = i.conditions;
1571
- if (a || (a = [], i.conditions = a), a.push(r), e.getAttribute("hiddenButton", X) && t) {
1714
+ if (a || (a = [], i.conditions = a), a.push(r), e.getAttribute("hiddenButton", Z) && t) {
1572
1715
  let e = t.hiddenButtons;
1573
1716
  e || (e = [], t.hiddenButtons = e), e.push(n);
1574
1717
  }
1575
- if (e.getAttribute("showButton", X) && t) {
1718
+ if (e.getAttribute("showButton", Z) && t) {
1576
1719
  let e = t.showButtons;
1577
1720
  e || (e = [], t.showButtons = e), e.push(n);
1578
1721
  }
@@ -1582,67 +1725,69 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1582
1725
  from: "colorFilter",
1583
1726
  openTag: (e) => {
1584
1727
  let t = e.getParent(), n = {};
1585
- t.operator = l.BuiltInOperatorNames.Color, t.param = n, e.copyToObject(n, "cellColor", X), e.copyToObject(n, "styleId", Z, "dxfId");
1728
+ t.operator = v.BuiltInOperatorNames.Color, t.param = n, e.copyToObject(n, "cellColor", Z);
1729
+ let r = l(e);
1730
+ r && (n.style = r);
1586
1731
  }
1587
1732
  }), c.registerVisitor({
1588
1733
  from: "iconFilter",
1589
1734
  openTag: (e) => {
1590
1735
  let t = e.getParent(), n = {};
1591
- t.operator = l.BuiltInOperatorNames.Icon, t.param = n, e.copyToObject(n, "iconId", Z), e.copyToObject(n, "iconSet", $);
1736
+ t.operator = v.BuiltInOperatorNames.Icon, t.param = n, e.copyToObject(n, "iconId", Q), e.copyToObject(n, "iconSet", $);
1592
1737
  }
1593
1738
  }), c.registerVisitor({
1594
1739
  from: "top10",
1595
1740
  openTag: (e) => {
1596
1741
  let t = e.getParent(), n = {};
1597
- t.operator = l.BuiltInOperatorNames.TopN, t.param = n, e.copyToObject(n, "filterVal", Q), e.copyToObject(n, "percent", X), e.copyToObject(n, "top", X), e.copyToObject(n, "limit", Q, "val");
1742
+ t.operator = v.BuiltInOperatorNames.TopN, t.param = n, e.copyToObject(n, "filterVal", cn), e.copyToObject(n, "percent", Z), e.copyToObject(n, "top", Z), e.copyToObject(n, "limit", cn, "val");
1598
1743
  }
1599
1744
  }), c.registerVisitor({
1600
1745
  from: "dynamicFilter",
1601
1746
  openTag: (e) => {
1602
- let t = e.getParent(), n = me(e.getAttribute("type"));
1747
+ let t = e.getParent(), n = oe(e.getAttribute("type"));
1603
1748
  t.operator = n.operator, t.param = n.param;
1604
1749
  }
1605
1750
  });
1606
- let y = {
1751
+ let S = {
1607
1752
  from: "filters",
1608
1753
  to: {},
1609
1754
  openTag: (e) => {
1610
1755
  let t = e.getParent(), n = {};
1611
- return t.selector = l.BuiltInSelectorNames.Display, t.operator = l.BuiltInOperatorNames.InSet, t.param = n, e.copyToObject(n, "blank", X), e.copyToObject(n, "calendarType", $), n;
1756
+ return t.selector = v.BuiltInSelectorNames.Display, t.operator = v.BuiltInOperatorNames.InSet, t.param = n, e.copyToObject(n, "blank", Z), e.copyToObject(n, "calendarType", $), n;
1612
1757
  }
1613
1758
  };
1614
- c.registerVisitor(y);
1615
- let b = {
1759
+ c.registerVisitor(S);
1760
+ let C = {
1616
1761
  from: "filter",
1617
1762
  openTag: (e) => {
1618
1763
  let t = e.getParent(), n = t.items;
1619
1764
  n || (n = [], t.items = n), n.push(e.getAttribute("val", $));
1620
1765
  }
1621
1766
  };
1622
- c.registerVisitor(b);
1623
- let ee = {
1767
+ c.registerVisitor(C);
1768
+ let ue = {
1624
1769
  from: "dateGroupItem",
1625
1770
  to: {},
1626
1771
  openTag: (e) => {
1627
1772
  let t = e.getParent(), n = t.dateGroups;
1628
- n || (n = [], t.dateGroups = n), n.push(e.getSource()), e.copyTo("group", $, "dateTimeGrouping"), e.copyTo("day", Z), e.copyTo("hour", Z), e.copyTo("minute", Z), e.copyTo("month", Z), e.copyTo("second", Z), e.copyTo("year", Z);
1773
+ n || (n = [], t.dateGroups = n), n.push(e.getSource()), e.copyTo("group", $, "dateTimeGrouping"), e.copyTo("day", Q), e.copyTo("hour", Q), e.copyTo("minute", Q), e.copyTo("month", Q), e.copyTo("second", Q), e.copyTo("year", Q);
1629
1774
  }
1630
1775
  };
1631
- c.registerVisitor(ee);
1632
- let x = /* @__PURE__ */ new Map();
1633
- x.set("filterColumn", {
1776
+ c.registerVisitor(ue);
1777
+ let de = /* @__PURE__ */ new Map();
1778
+ de.set("filterColumn", {
1634
1779
  from: "filterColumn",
1635
1780
  transparent: !0
1636
- }), x.set("filters", y), x.set("filter", b), x.set("dateGroupItem", ee), c.registerVisitor({
1781
+ }), de.set("filters", S), de.set("filter", C), de.set("dateGroupItem", ue), c.registerVisitor({
1637
1782
  from: "customFilters",
1638
1783
  openTag: (e) => {
1639
1784
  let t = e.getParent(), n = e.getAttribute("and"), r = n === "and" || n === "1", i = [];
1640
- return t.operator = r ? l.BuiltInOperatorNames.And : l.BuiltInOperatorNames.Or, t.param = i, e.setSource(t), i;
1785
+ return t.operator = r ? v.BuiltInOperatorNames.And : v.BuiltInOperatorNames.Or, t.param = i, e.setSource(t), i;
1641
1786
  },
1642
1787
  closeTag: (e) => {
1643
1788
  let t = e.getSource(), n = t?.param;
1644
1789
  if (!t || !n) return;
1645
- let r = n.length === 1 ? n[0] : j(t);
1790
+ let r = n.length === 1 ? n[0] : Ae(t);
1646
1791
  r !== t && (t.operator = r.operator, t.param = r.param);
1647
1792
  }
1648
1793
  }), c.registerVisitor({
@@ -1650,18 +1795,31 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1650
1795
  openTag: (e) => {
1651
1796
  let t, n = e.getParent();
1652
1797
  Array.isArray(n) ? (t = {}, n.push(t)) : t = n;
1653
- let r = ie({
1798
+ let r = Ce({
1654
1799
  operator: e.getAttribute("operator"),
1655
1800
  val: e.getAttribute("val")
1656
1801
  }, (t) => e.warn(t));
1657
1802
  r && (t.operator = r.operator, t.param = r.param);
1658
1803
  }
1659
- }), c.registerVisitor({
1804
+ });
1805
+ let fe = {}, pe = null;
1806
+ c.registerVisitor({
1660
1807
  from: "sortState",
1661
1808
  to: {},
1662
1809
  openTag: (e) => {
1663
1810
  let t = e.getParent(), n = t.v;
1664
- n && (n.sort = {}, e.setSource(t));
1811
+ if (!n) return;
1812
+ let r = {};
1813
+ fe = {};
1814
+ let i = e.getAttribute("caseSensitive", Z);
1815
+ i != null && (fe.collatorOptions = i ? p.CaseSensitiveOptions : p.CaseInsensitiveOptions);
1816
+ let a = e.getAttribute("sortMethod");
1817
+ a !== "stroke" && a !== "pinYin" || (fe.collatorOptions = {
1818
+ ...fe.collatorOptions,
1819
+ collation: a === "stroke" ? "stroke" : "pinyin"
1820
+ }), e.getAttribute("columnSort", Z) && (r.axis = u.Axis.Column);
1821
+ let o = e.getAttribute("ref"), s = t.r;
1822
+ pe = o && s ? h.fastStringToRange(o) : null, pe && (r.extent = { range: ie(s, pe) }), n.sort = r, e.setSource(t);
1665
1823
  }
1666
1824
  }), c.registerVisitor({
1667
1825
  from: "sortCondition",
@@ -1673,33 +1831,42 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1673
1831
  if (!r) return;
1674
1832
  let i = r.sorts;
1675
1833
  i || (i = [], r.sorts = i);
1676
- let a = e.getAttribute("ref"), o = 0;
1834
+ let a = e.getAttribute("ref"), o = 0, s = null;
1677
1835
  if (a) {
1678
- let e = m.fastStringToRange(a, qt).colStart, n = t.r, r = n.colStart;
1679
- o = n ? e - r : e;
1836
+ let e = h.fastStringToRange(a, Hn), n = e.colStart, r = t.r, i = r.colStart;
1837
+ o = r ? n - i : n, r && pe && (s = ke(r, pe, e));
1680
1838
  }
1681
- let s = {};
1682
- e.copyToObject(s, "sortOn", $, "sortBy"), e.copyToObject(s, "dxfId", $, "sortBy"), e.copyToObject(s, "iconSet", $), e.copyToObject(s, "customList", $), s.reverse = e.getAttribute("descending", X) ?? !1;
1683
- let c = {
1839
+ r.extent && (r.extent.sorts ??= []).push(s);
1840
+ let c = { ...fe }, u = Ze(e.getAttribute("sortBy"));
1841
+ u && (c.sortOn = u);
1842
+ let d = l(e);
1843
+ d && (c.style = d), e.copyToObject(c, "iconSet", $), e.copyToObject(c, "customList", $), c.reverse = e.getAttribute("descending", Z) ?? !1;
1844
+ let f = {
1684
1845
  index: o,
1685
- criteria: s
1846
+ criteria: c
1686
1847
  };
1687
- i.push(c);
1848
+ i.push(f);
1688
1849
  }
1689
1850
  });
1690
- let te = (e) => {
1691
- _ = e.getSource(), e.copyTo("topLeft", $, "topLeftCell");
1692
- let t = N(e.getAttribute("defaultGridColor")), n = e.getAttribute("colorId");
1693
- n === null || t || (e.getSource().gridLineColor = "index" + parseFloat(n)), e.copyTo("showZeros", X), e.copyTo("showFormulas", X), e.copyTo("zoomScale", Z), e.copyTo("showRowHeaders", X, "showRowColHeaders"), e.copyTo("showColumnHeaders", X, "showRowColHeaders"), e.copyTo("showRowGridlines", X, "showGridLines"), e.copyTo("showColumnGridlines", X, "showGridLines"), e.copyTo("rightToLeft", X), e.copyTo("showOutlineSymbols", X);
1851
+ let me = (e) => {
1852
+ y = e.getSource(), ne = "topLeft", e.copyTo("topLeft", $, "topLeftCell");
1853
+ let t = re(e.getAttribute("defaultGridColor")), n = e.getAttribute("colorId");
1854
+ n === null || t || (e.getSource().gridLineColor = "index" + parseFloat(n)), e.copyTo("showZeros", Z), e.copyTo("showFormulas", Z), e.copyTo("zoomScale", Q), e.copyTo("viewMode", $, "view");
1855
+ let r = {};
1856
+ for (let [t, n] of j) {
1857
+ let i = e.getAttribute(n, Q);
1858
+ i && (r[t] = Math.min(400, Math.max(10, i)));
1859
+ }
1860
+ Object.keys(r).length > 0 && (e.getSource().zoomScales = r), e.copyTo("showRuler", Z), e.copyTo("showWhitespace", Z, "showWhiteSpace"), e.copyTo("windowProtection", Z), e.copyTo("showRowHeaders", Z, "showRowColHeaders"), e.copyTo("showColumnHeaders", Z, "showRowColHeaders"), e.copyTo("showRowGridlines", Z, "showGridLines"), e.copyTo("showColumnGridlines", Z, "showGridLines"), e.copyTo("rightToLeft", Z), e.copyTo("showOutlineSymbols", Z);
1694
1861
  };
1695
1862
  c.registerVisitor({
1696
1863
  from: "sheetView",
1697
1864
  to: "view",
1698
1865
  openTag: (e) => {
1699
- te(e);
1866
+ me(e);
1700
1867
  },
1701
1868
  closeTag: () => {
1702
- _ = null;
1869
+ y = null;
1703
1870
  }
1704
1871
  }), c.registerVisitor({
1705
1872
  from: "customSheetViews",
@@ -1711,40 +1878,53 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1711
1878
  from: "customSheetView",
1712
1879
  to: [],
1713
1880
  openTag: (e) => {
1714
- te(e);
1881
+ he = !0, me(e);
1715
1882
  },
1716
1883
  closeTag: () => {
1717
- _ = null;
1884
+ he = !1, y = null;
1718
1885
  }
1719
1886
  }), c.registerVisitor({
1720
1887
  from: "selection",
1721
- to: "selection",
1888
+ to: null,
1722
1889
  openTag: (e) => {
1723
- if (!_) return;
1724
- e.copyTo("cell", $, "activeCell"), e.copyTo("rangeIndex", Z, "activeCellId");
1725
- let t = e.getAttribute("activeCell"), n = e.getAttribute("sqref");
1726
- n && n !== t && (e.getSource().ranges = n.trim().split(/\s+/));
1890
+ if (!y) return;
1891
+ let t = e.getAttribute("activeCell")?.replace(/\$/g, ""), n = e.getAttribute("sqref")?.replace(/\$/g, ""), r = e.getAttribute("pane") ?? "topLeft";
1892
+ if (r !== ne) {
1893
+ let e = y.freezePanes;
1894
+ if (e && t) {
1895
+ let i = { activeCell: t };
1896
+ n && n !== t && (i.sqref = n), (e.paneSelections ??= {})[r] = i;
1897
+ }
1898
+ return;
1899
+ }
1900
+ let i = {};
1901
+ t && (i.cell = t);
1902
+ let a = e.getAttribute("activeCellId", Q);
1903
+ a !== null && (i.rangeIndex = a), n && n !== t && (i.ranges = n.trim().split(/\s+/)), y.selection = i;
1727
1904
  }
1728
1905
  }), c.registerVisitor({
1729
1906
  from: "pane",
1730
1907
  to: null,
1731
1908
  openTag: (e) => {
1732
- if (_ && e.getAttribute("state") === "frozen") {
1909
+ if (!y) return;
1910
+ ne = e.getAttribute("activePane") ?? "topLeft";
1911
+ let t = e.getAttribute("state");
1912
+ if (t === "frozen" || t === "frozenSplit") {
1733
1913
  let t = {};
1734
- _.freezePanes = t, e.copyToObject(t, "topLeft", $, "topLeftCell");
1735
- let n = (_.topLeft ? m.fastStringToCell(_.topLeft) : void 0) ?? {
1914
+ y.freezePanes = t, e.copyToObject(t, "topLeft", $, "topLeftCell");
1915
+ let n = (y.topLeft ? h.fastStringToCell(y.topLeft) : void 0) ?? {
1736
1916
  colIndex: 0,
1737
1917
  rowIndex: 0
1738
1918
  }, r = {
1739
1919
  colIndex: 0,
1740
1920
  rowIndex: 0
1741
1921
  };
1742
- e.copyToObject(r, "colIndex", Z, "xSplit"), e.copyToObject(r, "rowIndex", Z, "ySplit");
1922
+ e.copyToObject(r, "colIndex", Q, "xSplit"), e.copyToObject(r, "rowIndex", Q, "ySplit");
1743
1923
  let i = {
1744
1924
  colIndex: n.colIndex + r.colIndex,
1745
1925
  rowIndex: n.rowIndex + r.rowIndex
1746
1926
  };
1747
- t.coords = m.cellToString(i);
1927
+ t.coords = h.cellToString(i);
1748
1928
  }
1749
1929
  }
1750
1930
  }), c.registerVisitor({
@@ -1752,19 +1932,27 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1752
1932
  transparent: !0,
1753
1933
  openTag: (t) => {
1754
1934
  let n = t.getAttribute("codeName");
1755
- n && (e.codeName = n), !1 === t.getAttribute("enableFormatConditionsCalculation", X) && (e.conditionalFormatCalculation = !1);
1935
+ n && (e.codeName = n), !1 === t.getAttribute("enableFormatConditionsCalculation", Z) && (e.conditionalFormatCalculation = !1), !0 === t.getAttribute("transitionEvaluation", Z) && (e.transitionFormulaEvaluation = !0), !0 === t.getAttribute("transitionEntry", Z) && (e.transitionFormulaEntry = !0), !1 === t.getAttribute("published", Z) && (e.excludeFromPublishing = !0);
1936
+ let r = {};
1937
+ !0 === t.getAttribute("syncHorizontal", Z) && (r.horizontal = !0), !0 === t.getAttribute("syncVertical", Z) && (r.vertical = !0);
1938
+ let i = t.getAttribute("syncRef");
1939
+ i && (r.anchor = i), Object.keys(r).length > 0 && (e.syncScroll = r);
1756
1940
  }
1757
1941
  }), c.registerVisitor({
1758
1942
  from: "tabColor",
1759
1943
  to: null,
1760
1944
  openTag: (t) => {
1761
- let n = V((e) => t.getAttribute(e));
1945
+ let n = P((e) => t.getAttribute(e));
1762
1946
  n && (e.tabColor = n);
1763
1947
  }
1764
- }), c.registerVisitor({
1948
+ });
1949
+ let he = !1, D = () => e.pageLayout ??= {};
1950
+ c.registerVisitor({
1765
1951
  from: "pageSetUpPr",
1766
- to: "pageSetUpPr",
1767
- openTag: (e) => {}
1952
+ to: null,
1953
+ openTag: (e) => {
1954
+ !0 === e.getAttribute("fitToPage", Z) && (D().fitToPage = !0), !1 === e.getAttribute("autoPageBreaks", Z) && (D().hideAutoPageBreaks = !0);
1955
+ }
1768
1956
  }), c.registerVisitor({
1769
1957
  from: "outlinePr",
1770
1958
  to: null,
@@ -1780,26 +1968,114 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1780
1968
  }
1781
1969
  }), c.registerVisitor({
1782
1970
  from: "pageMargins",
1783
- to: "pageMargins",
1971
+ to: null,
1784
1972
  openTag: (e) => {
1785
- e.copyTo("bottom", Q), e.copyTo("footer", Q), e.copyTo("header", Q), e.copyTo("left", Q), e.copyTo("right", Q), e.copyTo("top", Q), e.copyTo("bottom", Q);
1973
+ if (he) return;
1974
+ let t = (t, n) => e.getAttribute(t, cn) ?? n, n = {
1975
+ left: t("left", .7),
1976
+ right: t("right", .7),
1977
+ top: t("top", .75),
1978
+ bottom: t("bottom", .75),
1979
+ header: t("header", .3),
1980
+ footer: t("footer", .3)
1981
+ };
1982
+ n.left === .7 && n.right === .7 && n.top === .75 && n.bottom === .75 && n.header === .3 && n.footer === .3 || (D().margins = n);
1786
1983
  }
1787
1984
  }), c.registerVisitor({
1788
1985
  from: "pageSetup",
1789
- to: "pageSetup",
1986
+ to: null,
1790
1987
  openTag: (e) => {
1791
- e.copyTo("blackAndWhite", X), e.copyTo("cellComments"), e.copyTo("copies", Z), e.copyTo("draft", X), e.copyTo("errors"), e.copyTo("firstPageNumber", Z), e.copyTo("fitToHeight", Z), e.copyTo("fitToWidth", Z), e.copyTo("horizontalDpi", Z), e.copyTo("orientation"), e.copyTo("pageOrder"), e.copyTo("paperSize", Z), e.copyTo("scale", Z), e.copyTo("useFirstPageNumber", X), e.copyTo("usePrinterDefaults", X), e.copyTo("verticalDpi", Z);
1988
+ if (he) return;
1989
+ let n = D(), r = (t) => e.getAttribute(t, Q) ?? void 0, i = (t) => e.getAttribute(t, Z), a = e.getAttribute("orientation");
1990
+ a !== "landscape" && a !== "portrait" || (n.orientation = a);
1991
+ for (let e of [
1992
+ "paperSize",
1993
+ "scale",
1994
+ "fitToWidth",
1995
+ "fitToHeight",
1996
+ "firstPageNumber",
1997
+ "horizontalDpi",
1998
+ "verticalDpi",
1999
+ "copies"
2000
+ ]) {
2001
+ let t = r(e);
2002
+ t !== void 0 && (n[e] = t);
2003
+ }
2004
+ let o = e.getAttribute("paperHeight");
2005
+ o && (n.paperHeight = o);
2006
+ let s = e.getAttribute("paperWidth");
2007
+ s && (n.paperWidth = s), e.getAttribute("pageOrder") === "overThenDown" && (n.printOrder = "overThenDown"), !0 === i("blackAndWhite") && (n.blackAndWhite = !0), !0 === i("draft") && (n.draftMode = !0), !0 === i("useFirstPageNumber") && (n.useFirstPageNumber = !0), !1 === i("usePrinterDefaults") && (n.ignorePrinterDefaults = !0);
2008
+ let c = e.getAttribute("cellComments"), l = N.find(([e]) => e === c)?.[1];
2009
+ l && (n.printComments = l);
2010
+ let u = e.getAttribute("errors"), d = H.find(([e]) => e === u)?.[1];
2011
+ d && (n.printErrors = d);
2012
+ let f = e.getAttribute("r:id"), p = f ? t(f, "part") : null;
2013
+ p && (n.printerSettings = p);
1792
2014
  }
1793
2015
  }), c.registerVisitor({
1794
2016
  from: "printOptions",
1795
- to: "printOptions",
2017
+ to: null,
2018
+ openTag: (e) => {
2019
+ if (he) return;
2020
+ let t = (t) => !0 === e.getAttribute(t, Z);
2021
+ t("horizontalCentered") && (D().centerHorizontally = !0), t("verticalCentered") && (D().centerVertically = !0), t("gridLines") && (D().printGridlines = !0), t("headings") && (D().printHeadings = !0);
2022
+ }
2023
+ }), c.registerVisitor({
2024
+ from: "headerFooter",
2025
+ to: {},
2026
+ openTag: (e) => {
2027
+ if (he) return;
2028
+ let t = {}, n = (t) => e.getAttribute(t, Z);
2029
+ !0 === n("differentOddEven") && (t.differentOddEven = !0), !0 === n("differentFirst") && (t.differentFirst = !0), !1 === n("scaleWithDoc") && (t.ignoreSheetScale = !0), !1 === n("alignWithMargins") && (t.ignoreSheetMargins = !0), Object.keys(t).length > 0 && (D().headerFooter = t);
2030
+ }
2031
+ });
2032
+ for (let e of se) c.registerVisitor({
2033
+ from: e,
2034
+ to: {},
2035
+ text: (t, n) => {
2036
+ if (he) return;
2037
+ let r = D(), i = r.headerFooter ??= {};
2038
+ i[e] = (i[e] ?? "") + Ue(t);
2039
+ }
2040
+ });
2041
+ let ge = "rowBreaks";
2042
+ for (let [e, t] of [["rowBreaks", "rowBreaks"], ["colBreaks", "columnBreaks"]]) c.registerVisitor({
2043
+ from: e,
2044
+ to: {},
2045
+ openTag: () => {
2046
+ ge = t;
2047
+ }
2048
+ });
2049
+ c.registerVisitor({
2050
+ from: "brk",
2051
+ to: null,
1796
2052
  openTag: (e) => {
1797
- e.copyTo("gridLines", X), e.copyTo("gridLinesSet", X), e.copyTo("headings", X), e.copyTo("horizontalCentered", X), e.copyTo("verticalCentered", X);
2053
+ if (he) return;
2054
+ let t = e.getAttribute("id", Q);
2055
+ if (t == null) return;
2056
+ let n = { index: t }, r = e.getAttribute("min", Q);
2057
+ r != null && (n.min = r);
2058
+ let i = e.getAttribute("max", Q);
2059
+ i != null && (n.max = i), !0 !== e.getAttribute("man", Z) && (n.automatic = !0), !0 === e.getAttribute("pt", Z) && (n.pivot = !0);
2060
+ let a = D();
2061
+ (a[ge] ??= []).push(n);
1798
2062
  }
1799
2063
  }), c.registerVisitor({
1800
- from: "headerFoot",
1801
- to: "headerFoot",
1802
- openTag: (e) => {}
2064
+ from: "ignoredErrors",
2065
+ transparent: !0
2066
+ }), c.registerVisitor({
2067
+ from: "ignoredError",
2068
+ to: null,
2069
+ openTag: (t) => {
2070
+ let n = t.getAttribute("sqref");
2071
+ if (!n) return;
2072
+ let r = [];
2073
+ for (let e of le) !0 === t.getAttribute(e, Z) && r.push(e);
2074
+ if (r.length !== 0) for (let t of n.trim().split(/\s+/)) (e.ignoredErrors ??= []).push({
2075
+ r: t,
2076
+ v: r
2077
+ });
2078
+ }
1803
2079
  }), c.registerVisitor({
1804
2080
  from: "mergeCells",
1805
2081
  to: "merges",
@@ -1809,11 +2085,20 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1809
2085
  }), c.registerVisitor({
1810
2086
  from: "dataValidations",
1811
2087
  to: "validations",
1812
- openTag: (e) => {
1813
- e.setSource([]);
2088
+ openTag: (t) => {
2089
+ t.setSource([]);
2090
+ let n = {};
2091
+ !0 === t.getAttribute("disablePrompts", Z) && (n.disablePrompts = !0);
2092
+ let r = t.getAttribute("xWindow", Q);
2093
+ r !== null && (n.windowX = r);
2094
+ let i = t.getAttribute("yWindow", Q);
2095
+ i !== null && (n.windowY = i), Object.keys(n).length > 0 && (e.validationSettings = {
2096
+ ...e.validationSettings,
2097
+ ...n
2098
+ });
1814
2099
  }
1815
2100
  });
1816
- let S = {
2101
+ let A = {
1817
2102
  from: "dataValidation",
1818
2103
  to: [],
1819
2104
  openTag: (e) => {
@@ -1827,28 +2112,28 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1827
2112
  operator: e.getAttribute("operator") ?? void 0
1828
2113
  }
1829
2114
  };
1830
- !0 === e.getAttribute("showDropDown", X) && (n.hideDropdown = !0), e.copyToObject(n, "alert", $, "error"), e.copyToObject(n, "alertTitle", $, "errorTitle"), e.copyToObject(n, "showAlertMessage", X, "showErrorMessage"), n.alertStyle = e.getAttribute("errorStyle") ?? "stop", e.copyToObject(n, "imeMode"), e.copyToObject(n, "prompt"), e.copyToObject(n, "promptTitle"), e.copyToObject(n, "showPromptMessage", X, "showInputMessage"), e.setSource(r);
2115
+ !0 === e.getAttribute("showDropDown", Z) && (n.hideDropdown = !0), e.copyToObject(n, "alert", $, "error"), e.copyToObject(n, "alertTitle", $, "errorTitle"), e.copyToObject(n, "showAlertMessage", Z, "showErrorMessage"), n.alertStyle = e.getAttribute("errorStyle") ?? "stop", e.copyToObject(n, "imeMode"), e.copyToObject(n, "prompt"), e.copyToObject(n, "promptTitle"), e.copyToObject(n, "showPromptMessage", Z, "showInputMessage"), e.setSource(r);
1831
2116
  },
1832
2117
  closeTag: (e) => {
1833
2118
  let t = e.getSource();
1834
2119
  if (!t?.rule) return;
1835
- let n = k(t.rule, a);
1836
- n && (e.getAttribute("allowBlank", X) && (n.includeBlanks = !0), t.v.condition = n), delete t.rule;
2120
+ let n = E(t.rule, a);
2121
+ n && (e.getAttribute("allowBlank", Z) && (n.includeBlanks = !0), t.v.condition = n), delete t.rule;
1837
2122
  }
1838
2123
  };
1839
- c.registerVisitor(S), c.registerVisitor({
2124
+ c.registerVisitor(A), c.registerVisitor({
1840
2125
  from: "formula1",
1841
2126
  to: {},
1842
2127
  text: (e, t) => {
1843
2128
  let n = t.getParent().rule;
1844
- n?.type && (n.formula1 = re(f(e), n.type));
2129
+ n?.type && (n.formula1 = De(_(e), n.type));
1845
2130
  }
1846
2131
  }), c.registerVisitor({
1847
2132
  from: "formula2",
1848
2133
  to: {},
1849
2134
  text: (e, t) => {
1850
2135
  let n = t.getParent().rule;
1851
- n?.type && (n.formula2 = re(f(e), n.type));
2136
+ n?.type && (n.formula2 = De(_(e), n.type));
1852
2137
  }
1853
2138
  }), c.registerVisitor({
1854
2139
  from: "picture",
@@ -1860,7 +2145,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1860
2145
  e.getSource().resId = r;
1861
2146
  }
1862
2147
  });
1863
- let ae = {
2148
+ let ve = {
1864
2149
  from: "slicer",
1865
2150
  to: {},
1866
2151
  openTag: (e) => {
@@ -1872,8 +2157,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1872
2157
  for (let e of a) i.slicers[e] = r[e];
1873
2158
  }
1874
2159
  };
1875
- c.registerVisitor(ae);
1876
- let se = (e, t) => ({
2160
+ c.registerVisitor(ve);
2161
+ let be = (e, t) => ({
1877
2162
  from: e,
1878
2163
  to: {},
1879
2164
  openTag: (e) => {
@@ -1885,8 +2170,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1885
2170
  closeTag: (e) => {
1886
2171
  t(String(e.getSource() ?? ""), e);
1887
2172
  }
1888
- }), ce = /* @__PURE__ */ new Map();
1889
- ce.set("dataValidations", {
2173
+ }), xe = /* @__PURE__ */ new Map();
2174
+ xe.set("dataValidations", {
1890
2175
  from: "dataValidations",
1891
2176
  to: "validations",
1892
2177
  openTag: (e) => {
@@ -1896,15 +2181,15 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1896
2181
  closeTag: (e) => {
1897
2182
  (e.getSource()?.length ?? 0) === 0 && e.setSource(void 0);
1898
2183
  }
1899
- }), ce.set("dataValidation", {
1900
- ...S,
2184
+ }), xe.set("dataValidation", {
2185
+ ...A,
1901
2186
  closeTag: (e) => {
1902
- S.closeTag(e);
2187
+ A.closeTag(e);
1903
2188
  let t = e.getSource();
1904
2189
  t && !t.r && (e.warn("x14 dataValidation with no xm:sqref was dropped."), e.setSource(void 0));
1905
2190
  }
1906
2191
  });
1907
- let C = (e) => ({
2192
+ let M = (e) => ({
1908
2193
  from: e,
1909
2194
  to: {},
1910
2195
  openTag: (t) => {
@@ -1914,18 +2199,18 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1914
2199
  });
1915
2200
  }
1916
2201
  });
1917
- ce.set("formula1", C("formula1")), ce.set("formula2", C("formula2")), ce.set("f", se("f", (e, t) => {
2202
+ xe.set("formula1", M("formula1")), xe.set("formula2", M("formula2")), xe.set("f", be("f", (e, t) => {
1918
2203
  let n = t.getParent(), r = n?.rule;
1919
- r && (r[n.key] = re(f(e), r.type));
1920
- })), ce.set("sqref", se("sqref", (e, t) => {
2204
+ r && (r[n.key] = De(_(e), r.type));
2205
+ })), xe.set("sqref", be("sqref", (e, t) => {
1921
2206
  let n = t.getParent(), r = e.trim();
1922
2207
  n && r && (n.r = r.split(/\s+/).join(","));
1923
2208
  }));
1924
- let w = /* @__PURE__ */ new Map(), T = [], D = /* @__PURE__ */ new Map();
1925
- D.set("conditionalFormattings", {
2209
+ let Se = /* @__PURE__ */ new Map(), we = [], F = /* @__PURE__ */ new Map();
2210
+ F.set("conditionalFormattings", {
1926
2211
  from: "conditionalFormattings",
1927
2212
  transparent: !0
1928
- }), D.set("conditionalFormatting", {
2213
+ }), F.set("conditionalFormatting", {
1929
2214
  from: "conditionalFormatting",
1930
2215
  to: {},
1931
2216
  openTag: (e) => {
@@ -1935,85 +2220,85 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
1935
2220
  let t = e.getSource(), n = t?.rules ?? [];
1936
2221
  for (let e = 0; e < n.length; e++) {
1937
2222
  let r = n[e];
1938
- r.sqref = t.sqref, r.id ? w.set(r.id, r) : T.push(r);
2223
+ r.sqref = t.sqref, r.id ? Se.set(r.id, r) : we.push(r);
1939
2224
  }
1940
2225
  }
1941
- }), D.set("cfRule", {
2226
+ }), F.set("cfRule", {
1942
2227
  from: "cfRule",
1943
2228
  to: {},
1944
2229
  openTag: (e) => {
1945
- e.copyTo("id", $), e.copyTo("type", $), e.copyTo("priority", Z), e.copyTo("stopIfTrue", X), e.copyTo("operator", $), e.copyTo("text", $), e.copyTo("timePeriod", $), e.copyTo("aboveAverage", X), e.copyTo("equalAverage", X), e.copyTo("stdDev", Z), e.copyTo("bottom", X), e.copyTo("percent", X), e.copyTo("rank", Z);
2230
+ e.copyTo("id", $), e.copyTo("type", $), e.copyTo("priority", Q), e.copyTo("stopIfTrue", Z), e.copyTo("operator", $), e.copyTo("text", $), e.copyTo("timePeriod", $), e.copyTo("aboveAverage", Z), e.copyTo("equalAverage", Z), e.copyTo("stdDev", Q), e.copyTo("bottom", Z), e.copyTo("percent", Z), e.copyTo("rank", Q);
1946
2231
  },
1947
2232
  closeTag: (e) => {
1948
2233
  let t = e.getSource();
1949
2234
  t && e.getParent()?.rules?.push(t);
1950
2235
  }
1951
- }), D.set("sqref", se("sqref", (e, t) => {
2236
+ }), F.set("sqref", be("sqref", (e, t) => {
1952
2237
  let n = t.getParent(), r = e.trim();
1953
2238
  n && r && (n.sqref = r);
1954
- })), D.set("dataBar", {
2239
+ })), F.set("dataBar", {
1955
2240
  from: "dataBar",
1956
2241
  to: {},
1957
2242
  openTag: (e) => {
1958
- e.copyTo("minLength", Z), e.copyTo("maxLength", Z), e.copyTo("gradient", X), e.copyTo("border", X), e.copyTo("direction", $), e.copyTo("axisPosition", $), e.copyTo("negativeBarColorSameAsPositive", X), e.copyTo("negativeBarBorderColorSameAsPositive", X);
2243
+ e.copyTo("minLength", Q), e.copyTo("maxLength", Q), e.copyTo("gradient", Z), e.copyTo("border", Z), e.copyTo("direction", $), e.copyTo("axisPosition", $), e.copyTo("negativeBarColorSameAsPositive", Z), e.copyTo("negativeBarBorderColorSameAsPositive", Z);
1959
2244
  },
1960
2245
  closeTag: (e) => {
1961
2246
  e.getParent().dataBar = e.getSource();
1962
2247
  }
1963
- }), D.set("iconSet", {
2248
+ }), F.set("iconSet", {
1964
2249
  from: "iconSet",
1965
2250
  to: {},
1966
2251
  openTag: (e) => {
1967
- e.copyTo("iconSet", $), e.copyTo("custom", X), e.copyTo("reverse", X), e.copyTo("showValue", X);
2252
+ e.copyTo("iconSet", $), e.copyTo("custom", Z), e.copyTo("reverse", Z), e.copyTo("showValue", Z);
1968
2253
  },
1969
2254
  closeTag: (e) => {
1970
2255
  e.getParent().iconSet = e.getSource();
1971
2256
  }
1972
2257
  });
1973
- let de = /* @__PURE__ */ new Map();
1974
- de.set("f", se("f", (e, t) => {
2258
+ let Te = /* @__PURE__ */ new Map();
2259
+ Te.set("f", be("f", (e, t) => {
1975
2260
  let n = t.getParent();
1976
2261
  if (!n) return;
1977
2262
  let r = e.trim(), i = Number(r);
1978
- n.value = r.length > 0 && Number.isFinite(i) ? i : f(e);
1979
- })), D.set("cfvo", {
2263
+ n.value = r.length > 0 && Number.isFinite(i) ? i : _(e);
2264
+ })), F.set("cfvo", {
1980
2265
  from: "cfvo",
1981
2266
  to: {},
1982
- scope: () => de,
2267
+ scope: () => Te,
1983
2268
  openTag: (e) => {
1984
2269
  let t = e.getParent();
1985
2270
  t.conditions ||= [];
1986
2271
  let n = e.getSource();
1987
- t.conditions.push(n), e.copyTo("type", $), !1 === e.getAttribute("gte", X) && (n.exclusive = !0);
2272
+ t.conditions.push(n), e.copyTo("type", $), !1 === e.getAttribute("gte", Z) && (n.exclusive = !0);
1988
2273
  }
1989
- }), D.set("f", se("f", (e, t) => {
2274
+ }), F.set("f", be("f", (e, t) => {
1990
2275
  let n = t.getParent();
1991
- n && (n.formulas ??= []).push(f(e));
1992
- })), D.set("dxf", {
2276
+ n && (n.formulas ??= []).push(_(e));
2277
+ })), F.set("dxf", {
1993
2278
  from: "dxf",
1994
2279
  to: {},
1995
2280
  raw: !0,
1996
2281
  closeTag: (e) => {
1997
- if (!u) return;
2282
+ if (!m) return;
1998
2283
  let t = e.getParent();
1999
2284
  if (!t) return;
2000
- let n = u(e.getRawXml() ?? "");
2285
+ let n = m(e.getRawXml() ?? "");
2001
2286
  n && (t.style = n);
2002
2287
  }
2003
2288
  });
2004
- let fe = (e) => ({
2289
+ let Ee = (e) => ({
2005
2290
  from: e,
2006
2291
  to: {},
2007
2292
  openTag: (t) => {
2008
- let n = V((e) => t.getAttribute(e));
2293
+ let n = P((e) => t.getAttribute(e));
2009
2294
  n && (t.getParent()[e] = n);
2010
2295
  }
2011
2296
  });
2012
- D.set("borderColor", fe("borderColor")), D.set("negativeFillColor", fe("negativeFillColor")), D.set("negativeBorderColor", fe("negativeBorderColor")), D.set("axisColor", fe("axisColor")), D.set("cfIcon", {
2297
+ F.set("borderColor", Ee("borderColor")), F.set("negativeFillColor", Ee("negativeFillColor")), F.set("negativeBorderColor", Ee("negativeBorderColor")), F.set("axisColor", Ee("axisColor")), F.set("cfIcon", {
2013
2298
  from: "cfIcon",
2014
2299
  to: {},
2015
2300
  openTag: (e) => {
2016
- let t = e.getAttribute("iconSet"), n = e.getAttribute("iconId", Z);
2301
+ let t = e.getAttribute("iconSet"), n = e.getAttribute("iconId", Q);
2017
2302
  if (t === null || n === null) return;
2018
2303
  let r = e.getParent();
2019
2304
  r.icons ||= [], r.icons.push({
@@ -2022,25 +2307,25 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2022
2307
  });
2023
2308
  }
2024
2309
  });
2025
- let pe = /* @__PURE__ */ new Map();
2026
- pe.set("id", se("id", (e, t) => {
2310
+ let Oe = /* @__PURE__ */ new Map();
2311
+ Oe.set("id", be("id", (e, t) => {
2027
2312
  let n = t.getParent(), r = e.trim();
2028
2313
  n && r && (n.x14Id = r);
2029
2314
  }));
2030
- let _e = /* @__PURE__ */ new Map();
2031
- _e.set("slicerList", {
2315
+ let je = /* @__PURE__ */ new Map();
2316
+ je.set("slicerList", {
2032
2317
  from: "slicerList",
2033
2318
  transparent: !0
2034
- }), _e.set("slicer", ae);
2035
- let ve = /* @__PURE__ */ new Map([
2036
- [E(L), ce],
2037
- [E(ue), D],
2038
- [E(be), D],
2039
- [E(xe), pe],
2040
- [E(Ce), _e],
2041
- [E(M), _e],
2042
- [E(A), x]
2043
- ]), P = /* @__PURE__ */ new Set();
2319
+ }), je.set("slicer", ve);
2320
+ let L = /* @__PURE__ */ new Map([
2321
+ [I(w), xe],
2322
+ [I(Fe), F],
2323
+ [I(ae), F],
2324
+ [I(We), Oe],
2325
+ [I(Ke), je],
2326
+ [I(T), je],
2327
+ [I(ye), de]
2328
+ ]), Me = /* @__PURE__ */ new Set();
2044
2329
  c.registerVisitor({
2045
2330
  from: "extLst",
2046
2331
  transparent: !0
@@ -2048,11 +2333,11 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2048
2333
  from: "ext",
2049
2334
  transparent: !0,
2050
2335
  scope: (e) => {
2051
- let t = e.getAttribute("uri"), n = E(t), r = ve.get(n);
2336
+ let t = e.getAttribute("uri"), n = I(t), r = L.get(n);
2052
2337
  if (r) return r;
2053
- if (!oe.has(n) && !P.has(n)) {
2054
- P.add(n);
2055
- let r = ye[n];
2338
+ if (!ce.has(n) && !Me.has(n)) {
2339
+ Me.add(n);
2340
+ let r = O[n];
2056
2341
  e.warn(r ? `Extension content '${r}' (${t}) is not read; it will be lost on resave.` : `Unknown extension content (uri ${t}) is not read; it will be lost on resave.`);
2057
2342
  }
2058
2343
  return null;
@@ -2082,11 +2367,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2082
2367
  i.endsWith("\\") && (i = i.substring(0, i.length - 1));
2083
2368
  let a = e.getAttribute("location");
2084
2369
  if (a && (i += "#" + a), !i) return void e.warn("A hyperlink has no address; it was dropped.", { onceKey: "xlsx.sheet.hyperlink.address" });
2085
- let o, s = e.getAttribute("tooltip");
2086
- o = s ? {
2087
- address: i,
2088
- screenTip: s
2089
- } : i, e.setSource({
2370
+ let o, s = e.getAttribute("tooltip"), c = e.getAttribute("display");
2371
+ s || c ? (o = { address: i }, s && (o.screenTip = s), c && (o.display = c)) : o = i, e.setSource({
2090
2372
  r,
2091
2373
  v: o
2092
2374
  });
@@ -2113,19 +2395,19 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2113
2395
  e.setSource(t(e.getAttribute("r:id"), "legacyDrawing") ?? void 0);
2114
2396
  }
2115
2397
  });
2116
- let F = null, I = !1, R = /* @__PURE__ */ new Map(), Se = {
2398
+ let Ne = null, Pe = !1, Ie = /* @__PURE__ */ new Map(), Le = {
2117
2399
  from: "Fallback",
2118
2400
  to: null
2119
- }, we = {
2401
+ }, Re = {
2120
2402
  from: "Choice",
2121
2403
  transparent: !0
2122
2404
  };
2123
- R.set("Fallback", Se), R.set("Choice", we), R.set("control", {
2405
+ Ie.set("Fallback", Le), Ie.set("Choice", Re), Ie.set("control", {
2124
2406
  from: "control",
2125
2407
  transparent: !0,
2126
2408
  openTag: (e) => {
2127
2409
  let n = e.getAttribute("name"), r = e.getAttribute("r:id"), i = r ? t(r, "formControl") : null;
2128
- if (!i) return e.warn(`The form control '${n ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (F = null);
2410
+ if (!i) return e.warn(`The form control '${n ?? ""}' has no properties and was not read.`, { onceKey: "xlsx.sheet.control.noProperties" }), void (Ne = null);
2129
2411
  let a = i.json, o = parseInt(e.getAttribute("shapeId") ?? "", 10);
2130
2412
  isNaN(o) || (a.shapeId = o);
2131
2413
  let s = {
@@ -2148,60 +2430,60 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2148
2430
  json: a
2149
2431
  }
2150
2432
  };
2151
- n && (s.content.name = n), F = {
2433
+ n && (s.content.name = n), Ne = {
2152
2434
  movable: s,
2153
2435
  control: a
2154
2436
  };
2155
2437
  },
2156
2438
  closeTag: () => {
2157
- F &&= (e.movables ||= [], e.movables.push(F.movable), null);
2439
+ Ne &&= (e.movables ||= [], e.movables.push(Ne.movable), null);
2158
2440
  }
2159
- }), R.set("controlPr", {
2441
+ }), Ie.set("controlPr", {
2160
2442
  from: "controlPr",
2161
2443
  transparent: !0,
2162
2444
  raw: !0,
2163
2445
  openTag: (e) => {
2164
- if (!F) return;
2446
+ if (!Ne) return;
2165
2447
  let t = e.getFrom().attributes ?? {}, n = {};
2166
2448
  for (let e in t) {
2167
2449
  let r = t[e];
2168
2450
  n[e] = typeof r == "string" ? r : r?.value ?? "";
2169
2451
  }
2170
- ne(n, F.control);
2452
+ _e(n, Ne.control);
2171
2453
  },
2172
2454
  closeTag: (e) => {
2173
- if (!F) return;
2455
+ if (!Ne) return;
2174
2456
  let t = ((e) => {
2175
2457
  let t = /<(?:[\w.-]+:)?anchor\b([^>]*)>([\s\S]*?)<\/(?:[\w.-]+:)?anchor>/.exec(e);
2176
2458
  if (!t) return null;
2177
2459
  let n = t[2], r = (e) => RegExp(`<(?:[\\w.-]+:)?${e}\\b[^>]*>([\\s\\S]*?)<\\/(?:[\\w.-]+:)?${e}>`).exec(n)?.[1], i = t[1], a = /\bmoveWithCells="(?:1|true)"/.test(i), o = /\bsizeWithCells="(?:1|true)"/.test(i);
2178
2460
  return {
2179
2461
  anchor: {
2180
- tl: Ht(r("from")),
2181
- br: Ht(r("to"))
2462
+ tl: Nn(r("from")),
2463
+ br: Nn(r("to"))
2182
2464
  },
2183
2465
  anchorType: a ? o ? "twoCell" : "oneCell" : "absolute",
2184
2466
  rest: (e.slice(0, t.index) + e.slice(t.index + t[0].length)).trim()
2185
2467
  };
2186
2468
  })(e.getRawXml() ?? "");
2187
- t ? (F.movable.anchor = t.anchor, t.anchorType !== "twoCell" && (F.movable.anchorType = t.anchorType), t.rest && (F.control.xml = t.rest)) : I || (I = !0, e.warn("A form control has no anchor; it is placed at the top left of the sheet."));
2469
+ t ? (Ne.movable.anchor = t.anchor, t.anchorType !== "twoCell" && (Ne.movable.anchorType = t.anchorType), t.rest && (Ne.control.xml = t.rest)) : Pe || (Pe = !0, e.warn("A form control has no anchor; it is placed at the top left of the sheet."));
2188
2470
  }
2189
2471
  });
2190
- let Te = {
2472
+ let ze = {
2191
2473
  from: "controls",
2192
2474
  transparent: !0,
2193
- scope: () => R
2475
+ scope: () => Ie
2194
2476
  };
2195
- c.registerVisitor(Te);
2196
- let Ee = /* @__PURE__ */ new Map([
2197
- ["Choice", we],
2198
- ["Fallback", Se],
2199
- ["controls", Te]
2477
+ c.registerVisitor(ze);
2478
+ let Be = /* @__PURE__ */ new Map([
2479
+ ["Choice", Re],
2480
+ ["Fallback", Le],
2481
+ ["controls", ze]
2200
2482
  ]);
2201
2483
  c.registerVisitor({
2202
2484
  from: "AlternateContent",
2203
2485
  transparent: !0,
2204
- scope: () => Ee
2486
+ scope: () => Be
2205
2487
  }), c.registerVisitor({
2206
2488
  from: "tableParts",
2207
2489
  to: "tables",
@@ -2218,26 +2500,26 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2218
2500
  r ? e.setSource(r) : e.warn("A table part is missing; the table was not imported.", { onceKey: "xlsx.sheet.table.missing" });
2219
2501
  }
2220
2502
  });
2221
- let De = (e, t) => {
2222
- t.conditions?.length && (e.stops = v(t)), t.minLength !== void 0 && (e.minLength = t.minLength), t.maxLength !== void 0 && (e.maxLength = t.maxLength), (t.gradient ?? 1) && (e.gradient = !0), t.border && t.borderColor && (e.borderColor = t.borderColor), !t.negativeBarColorSameAsPositive && t.negativeFillColor && (e.negativeFillColor = t.negativeFillColor), !(t.negativeBarBorderColorSameAsPositive ?? 1) && t.negativeBorderColor && (e.negativeBorderColor = t.negativeBorderColor), t.axisColor && (e.axisColor = t.axisColor), t.axisPosition !== "middle" && t.axisPosition !== "none" || (e.axisPosition = t.axisPosition), t.direction !== "leftToRight" && t.direction !== "rightToLeft" || (e.direction = t.direction);
2223
- }, z = (e, t) => {
2224
- t.conditions?.length && (e.stops = v(t)), t.iconSet && t.iconSet !== e.iconSet && (e.iconSet = t.iconSet), t.icons?.length && (e.icon = t.icons), t.reverse !== void 0 && (e.reverse = t.reverse), t.showValue !== void 0 && (e.showValue = t.showValue);
2225
- }, Oe = (e) => {
2503
+ let Ve = (e, t) => {
2504
+ t.conditions?.length && (e.stops = x(t)), t.minLength !== void 0 && (e.minLength = t.minLength), t.maxLength !== void 0 && (e.maxLength = t.maxLength), (t.gradient ?? 1) && (e.gradient = !0), t.border && t.borderColor && (e.borderColor = t.borderColor), !t.negativeBarColorSameAsPositive && t.negativeFillColor && (e.negativeFillColor = t.negativeFillColor), !(t.negativeBarBorderColorSameAsPositive ?? 1) && t.negativeBorderColor && (e.negativeBorderColor = t.negativeBorderColor), t.axisColor && (e.axisColor = t.axisColor), t.axisPosition !== "middle" && t.axisPosition !== "none" || (e.axisPosition = t.axisPosition), t.direction !== "leftToRight" && t.direction !== "rightToLeft" || (e.direction = t.direction);
2505
+ }, He = (e, t) => {
2506
+ t.conditions?.length && (e.stops = x(t)), t.iconSet && t.iconSet !== e.iconSet && (e.iconSet = t.iconSet), t.icons?.length && (e.icon = t.icons), t.reverse !== void 0 && (e.reverse = t.reverse), t.showValue !== void 0 && (e.showValue = t.showValue);
2507
+ }, z = (e) => {
2226
2508
  if (!e.sqref) return null;
2227
2509
  let t = e.sqref.split(/\s+/).join(",");
2228
2510
  if (e.type === "iconSet") {
2229
2511
  if (!e.iconSet) return null;
2230
2512
  let n = {
2231
- type: h.ScaleType.IconSet,
2513
+ type: d.ScaleType.IconSet,
2232
2514
  stops: []
2233
2515
  };
2234
- return z(n, e.iconSet), {
2516
+ return He(n, e.iconSet), {
2235
2517
  r: t,
2236
2518
  v: { scale: n },
2237
2519
  priority: e.priority
2238
2520
  };
2239
2521
  }
2240
- let n = le(e, a);
2522
+ let n = R(e, a);
2241
2523
  if (!n) return null;
2242
2524
  let r = { condition: n };
2243
2525
  return e.style && (r.style = e.style), e.stopIfTrue && (r.stopIfTrue = !0), {
@@ -2256,15 +2538,15 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2256
2538
  let t = n[e], r = t.x14Id;
2257
2539
  if (!r) continue;
2258
2540
  delete t.x14Id;
2259
- let i = w.get(r);
2541
+ let i = Se.get(r);
2260
2542
  if (!i) continue;
2261
- w.delete(r);
2543
+ Se.delete(r);
2262
2544
  let a = t.v?.scale;
2263
- i.dataBar && a?.type === h.ScaleType.DataBar ? De(a, i.dataBar) : i.iconSet && a?.type === h.ScaleType.IconSet && z(a, i.iconSet);
2545
+ i.dataBar && a?.type === d.ScaleType.DataBar ? Ve(a, i.dataBar) : i.iconSet && a?.type === d.ScaleType.IconSet && He(a, i.iconSet);
2264
2546
  }
2265
- let r = [...w.values(), ...T], i = /* @__PURE__ */ new Set(), o = 0;
2547
+ let r = [...Se.values(), ...we], i = /* @__PURE__ */ new Set(), o = 0;
2266
2548
  for (let e = 0; e < r.length; e++) {
2267
- let a = Oe(r[e]);
2549
+ let a = z(r[e]);
2268
2550
  a ? (n || (n = [], t.conditionals = n), n.push(a)) : (i.add(r[e].type ?? "unknown"), o++);
2269
2551
  }
2270
2552
  if (o > 0) {
@@ -2302,13 +2584,13 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2302
2584
  to: "protection",
2303
2585
  openTag: (e) => {
2304
2586
  let t = e.getSource();
2305
- for (let n of O) {
2587
+ for (let n of k) {
2306
2588
  let r = e.hasAttribute(n.attribute) ? e.getAttribute(n.attribute) : null;
2307
- t[n.key] = ge(n, r);
2589
+ t[n.key] = b(n, r);
2308
2590
  }
2309
2591
  if (t.sheet) return;
2310
2592
  let n = {};
2311
- e.copyToObject(n, "hash", $, "hashValue"), e.copyToObject(n, "algorithm", $, "algorithmName"), e.copyToObject(n, "salt", $, "saltValue"), e.copyToObject(n, "spinCount", Z), Object.keys(n).length > 0 && (e.getSource().password = n);
2593
+ e.copyToObject(n, "hash", $, "hashValue"), e.copyToObject(n, "algorithm", $, "algorithmName"), e.copyToObject(n, "salt", $, "saltValue"), e.copyToObject(n, "spinCount", Q), e.copyToObject(n, "legacyHash", $, "password"), Object.keys(n).length > 0 && (e.getSource().password = n);
2312
2594
  }
2313
2595
  }), c.registerVisitor({
2314
2596
  from: "protectedRanges",
@@ -2328,7 +2610,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2328
2610
  };
2329
2611
  e.copyToObject(n, "name"), e.copyToObject(n, "securityDescriptor");
2330
2612
  let i = {};
2331
- e.copyToObject(i, "hash", $, "hashValue"), e.copyToObject(i, "algorithm", $, "algorithmName"), e.copyToObject(i, "salt", $, "saltValue"), e.copyToObject(i, "spinCount", Z), Object.keys(i).length > 0 && (n.password = i), e.setSource(r);
2613
+ e.copyToObject(i, "hash", $, "hashValue"), e.copyToObject(i, "algorithm", $, "algorithmName"), e.copyToObject(i, "salt", $, "saltValue"), e.copyToObject(i, "spinCount", Q), e.copyToObject(i, "legacyHash", $, "password"), Object.keys(i).length > 0 && (n.password = i), e.setSource(r);
2332
2614
  },
2333
2615
  closeTag: (e) => {
2334
2616
  let t = e.getSource();
@@ -2338,9 +2620,11 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2338
2620
  from: "sheetFormatPr",
2339
2621
  to: "sheetFormatPr",
2340
2622
  openTag: (t) => {
2341
- t.copyToObject(e, "defaultColSize", Q, "defaultColWidth");
2623
+ t.copyToObject(e, "defaultColSize", cn, "defaultColWidth");
2342
2624
  let n = t.getAttribute("customHeight");
2343
- n !== "1" && n !== "true" || t.copyToObject(e, "defaultRowSize", Q, "defaultRowHeight");
2625
+ n !== "1" && n !== "true" || t.copyToObject(e, "defaultRowSize", cn, "defaultRowHeight");
2626
+ let r = t.getAttribute("baseColWidth", Q);
2627
+ r && r !== 8 && (e.baseColSize = r), f = !!t.getAttribute("zeroHeight", Z);
2344
2628
  }
2345
2629
  }), c.registerVisitor({
2346
2630
  from: "cols",
@@ -2353,9 +2637,9 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2353
2637
  to: [],
2354
2638
  openTag: (e) => {
2355
2639
  let t = e.getSource(), n = e.getAttribute("min"), r = e.getAttribute("max"), i = n === void 0 ? 0 : parseInt(n) - 1, a = r === void 0 ? i : parseInt(r) - 1;
2356
- t.r = m.runToString(i, a, !0);
2640
+ t.r = h.runToString(i, a, !0);
2357
2641
  let o = {};
2358
- t.v = o, e.copyToObject(o, "sz", Q, "width"), e.copyToObject(o, "csz", X, "customWidth"), e.copyToObject(o, "h", X, "hidden"), e.copyToObject(o, "l", Z, "outlineLevel"), e.copyToObject(o, "cl", X, "collapsed"), e.copyToObject(o, "s", Z, "style");
2642
+ t.v = o, e.copyToObject(o, "sz", cn, "width"), e.copyToObject(o, "csz", Z, "customWidth"), e.copyToObject(o, "h", Z, "hidden"), e.copyToObject(o, "l", Q, "outlineLevel"), e.copyToObject(o, "cl", Z, "collapsed"), e.getAttribute("bestFit", Z) && (o.bf = !0), e.copyToObject(o, "s", Q, "style");
2359
2643
  }
2360
2644
  }), c.registerVisitor({
2361
2645
  from: "oleObjects",
@@ -2364,31 +2648,39 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2364
2648
  e.warn("'OLE Objects' are not supported.");
2365
2649
  }
2366
2650
  });
2367
- let B = !1, ke = !1, Ae = 0, je = "", Me = (e) => {
2651
+ let B = !1, V = !1, Ge = 0, qe = "", Je = "", Ye = (e) => {
2368
2652
  let t = e.indexOf(":");
2369
2653
  return t === -1 ? e : e.slice(t + 1);
2370
- };
2371
- return Jt(g, e, c.createEventHandler(e, i, a), a, o, {
2654
+ }, Xe = new kn();
2655
+ return Wn(te, e, c.createEventHandler(e, i, a), a, o, {
2372
2656
  onOpenTag: (e) => {
2373
2657
  B = !0;
2374
- let t = Me(e.name);
2375
- t === "t" || t === "v" ? Ae === 0 && (ke = !0) : t !== "rPh" && t !== "phoneticPr" || Ae++;
2658
+ let t = Ye(e.name);
2659
+ t === "t" || t === "v" ? Ge === 0 && (V = !0) : t === "rPh" || t === "phoneticPr" ? Ge++ : Ge === 0 && Xe.onOpenTag(t, e.attributes);
2376
2660
  },
2377
2661
  onText: (e) => {
2378
- ke && (je += e);
2662
+ V && (qe += e, Xe.onText(e));
2379
2663
  },
2380
2664
  onCloseTag: (e) => {
2381
- let t = Me(e.name);
2382
- t === "t" || t === "v" ? ke = !1 : t !== "rPh" && t !== "phoneticPr" || Ae > 0 && Ae--;
2665
+ let t = Ye(e.name);
2666
+ t === "t" || t === "v" ? V = !1 : t === "rPh" || t === "phoneticPr" ? Ge > 0 && Ge-- : Xe.onCloseTag(t);
2383
2667
  },
2384
2668
  onEnd: () => {
2385
2669
  if (!B) return;
2386
- let e = n(he(je));
2387
- return B = !1, ke = !1, Ae = 0, je = "", e;
2670
+ let e = Xe.take();
2671
+ B = !1, V = !1, Ge = 0;
2672
+ let t = Ue(qe);
2673
+ return qe = "", Je = t, e ? {
2674
+ t: "r",
2675
+ v: {
2676
+ type: "richText",
2677
+ data: { runs: An(e, s?.get(Ln)) }
2678
+ }
2679
+ } : n(t);
2388
2680
  },
2389
2681
  onError: (e) => {}
2390
- }, s);
2391
- }, Gt = class {
2682
+ }, s, n, () => f, () => Je);
2683
+ }, zn = class {
2392
2684
  static {
2393
2685
  this.Collapsed = 1;
2394
2686
  }
@@ -2419,237 +2711,333 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2419
2711
  static {
2420
2712
  this.Spans = 512;
2421
2713
  }
2422
- static {
2423
- this.ThickBot = 1024;
2424
- }
2425
- static {
2426
- this.ThickTop = 2048;
2427
- }
2428
- }, Kt = (e, t, n) => {
2714
+ }, Bn = (e, t, n) => {
2429
2715
  if (e[0].value[0] === e[1].value[0]) return t;
2430
- }, qt = {
2716
+ }, Vn = /^\s*TABLE\s*\(/i, Hn = {
2431
2717
  colStart: 0,
2432
2718
  colEnd: 0,
2433
2719
  rowStart: 0,
2434
2720
  rowEnd: 0
2435
- }, Jt = (n, r, i, a, o, l, u) => {
2436
- let d = !1, f = !1, p = [], h = !1, g = null, _ = null, v = null, y = null, b = null, ee = null, x = u?.get("richData") ?? t.EmptyArray, te = u?.get("dummyWrapped") ?? null, ne = m.normalizeA1ToR1C1, re = e.createConflatingRanges(), S = /* @__PURE__ */ new Map(), ie = [], ae = !1, oe = !1, se = null, ce = !1, le = e.createConflatingRanges(), C = !1, w = -1, T = -1, E = null, ue = null, D = null, O = [], de = null, fe = -2, k = 0, A = "", pe = "", j = "", me = "", M = "", he = "", N = "", ge = "", _e = "", ve = "", ye = "", P = "", F = "", I = "", L = !0, R = null, be = !1, xe = !1, Se = !1, Ce = null, we = 0, Te = (e) => {
2721
+ }, Un = (e) => e === "1" || e === "true", Wn = (e, r, i, a, o, s, c, d, f, p) => {
2722
+ let ee, g = !1, _ = [], v = c?.get(In), te = c?.get(Ln), y = /* @__PURE__ */ new Map(), ne = !1, b = [], re = !1, x = null, S = null, ie = null, C = null, ae = null, oe = null, se = c?.get("richData") ?? n.EmptyArray, ce = c?.get("dummyWrapped") ?? null, le = h.normalizeA1ToR1C1, ue = t.createConflatingRanges(), de = /* @__PURE__ */ new Map(), fe = [], pe = [], w = !1, T = !1, E = null, me = (e) => {
2723
+ let t = c?.get("metadata")?.values;
2724
+ if (!t) return;
2725
+ let n = parseInt(e, 10);
2726
+ if (!Number.isFinite(n) || n < 1) return;
2727
+ let r = t[n - 1]?.get("XLRICHVALUE");
2728
+ return r?.richValueIndex === void 0 ? void 0 : se[r.richValueIndex];
2729
+ }, he = !1, D = t.createConflatingRanges(), ge = !1, O = -1, k = -1, A = null, _e = null, ve = (e) => ({
2730
+ t: "r",
2731
+ v: {
2732
+ type: "hyperlink",
2733
+ data: {
2734
+ address: ee,
2735
+ friendly: e
2736
+ }
2737
+ }
2738
+ }), ye = null, be = [], xe = null, j = -2, M = 0, N = "", P = "", Se = "", Ce = "", we = "", F = "", Te = "", Ee = "", De = "", I = "", Oe = "", ke = "", Ae = "", je = "", L = !0, Me = null, Ne = !1, Pe = !1, Fe = !1, Ie = null, Le = 0, Re = (e) => {
2437
2739
  let t = e.name, n = t.indexOf(":");
2438
- if (n !== -1 && (t = t.slice(n + 1)), we++, we % 196608 == 0 && o?.(we), ue) {
2740
+ if (n !== -1 && (t = t.slice(n + 1)), Le++, Le % 196608 == 0 && o?.(Le), _e) {
2439
2741
  let n = e.attributes;
2440
2742
  switch (t) {
2441
2743
  case "v":
2442
- f = !0;
2744
+ ne = !0;
2443
2745
  break;
2444
2746
  case "f":
2445
- switch (h = !0, n.t ?? null) {
2747
+ switch (re = !0, n.t ?? null) {
2446
2748
  case null:
2447
2749
  case "normal": break;
2448
2750
  case "shared":
2449
2751
  let e = n.si;
2450
- _ = n.ref, g = e;
2752
+ S = n.ref, x = e;
2451
2753
  break;
2452
2754
  case "array":
2453
- _ = n.ref, se = _;
2755
+ S = n.ref, E = S;
2454
2756
  break;
2455
- case "dataTable": _ = n.ref, h = !0;
2757
+ case "dataTable": {
2758
+ let e = ((e, t, n) => {
2759
+ let r = e.r1, i = Un(e.del1);
2760
+ if (!r && !i) return null;
2761
+ let a = e.ref ?? h.cellToString({
2762
+ rowIndex: t,
2763
+ colIndex: n
2764
+ }), o = h.fastStringToRange(a);
2765
+ if (!o) return null;
2766
+ let s = { ref: {
2767
+ rowStart: o.rowStart,
2768
+ colStart: o.colStart,
2769
+ rowEnd: o.rowEnd,
2770
+ colEnd: o.colEnd
2771
+ } }, c = Un(e.dt2D);
2772
+ if (c || Un(e.dtr) ? (r && (s.rowInput = r), i && (s.rowInputDeleted = !0)) : (r && (s.columnInput = r), i && (s.columnInputDeleted = !0)), c) {
2773
+ let t = e.r2;
2774
+ t && (s.columnInput = t), Un(e.del2) && (s.columnInputDeleted = !0);
2775
+ }
2776
+ return s;
2777
+ })(n, O, k);
2778
+ e && (pe.push(e), Un(n.ca) && D.append(O, k));
2779
+ return;
2780
+ }
2456
2781
  }
2457
2782
  let e = n.ca;
2458
- e !== void 0 && (ce = e === "1");
2783
+ e !== void 0 && (he = e === "1");
2459
2784
  break;
2460
2785
  case "is":
2461
- C = !0;
2786
+ ge = !0;
2462
2787
  return;
2463
2788
  }
2464
- C && !h && l?.onOpenTag?.(e);
2465
- } else if (d) {
2789
+ ge && !re && s?.onOpenTag?.(e);
2790
+ } else if (g) {
2466
2791
  if (t === "c") {
2467
- ue = e;
2792
+ _e = e, ee = void 0;
2468
2793
  let t = e.attributes, n = t.r;
2469
- T = m.fastStringToCol(n);
2794
+ k = n === void 0 ? k + 1 : h.fastStringToCol(n);
2470
2795
  let r = t.t;
2471
- r === void 0 ? D = null : (D = r, D === "str" && (C = !0));
2796
+ r === void 0 ? ye = null : (ye = r, ye === "str" && (ge = !0));
2472
2797
  let i = t.s;
2473
- i === void 0 && (Ce !== null || Se) && (i = "0"), i !== void 0 && (i = parseInt(i), R && R.value === i && R.colEnd + 1 === T ? R.colEnd = T : (R = {
2474
- colStart: T,
2475
- rowStart: w,
2476
- colEnd: T,
2477
- rowEnd: w,
2798
+ i === void 0 && (Ie !== null || Fe) && (i = "0"), i !== void 0 && (i = parseInt(i), Me && Me.value === i && Me.colEnd + 1 === k ? Me.colEnd = k : (Me = {
2799
+ colStart: k,
2800
+ rowStart: O,
2801
+ colEnd: k,
2802
+ rowEnd: O,
2478
2803
  value: i
2479
- }, p.push(R))), se = null, oe = !1;
2804
+ }, b.push(Me))), E = null, T = !1;
2480
2805
  let a = t.cm;
2481
- ae = a !== void 0 && ((e) => {
2482
- let t = u?.get("metadata")?.cells;
2806
+ w = a !== void 0 && ((e) => {
2807
+ let t = c?.get("metadata")?.cells;
2483
2808
  if (!t) return !1;
2484
2809
  let n = parseInt(e, 10);
2485
2810
  return !(!Number.isFinite(n) || n < 1) && !0 === t[n - 1]?.get("XLDAPR")?.fDynamic;
2486
2811
  })(a);
2487
2812
  let o = t.vm;
2488
2813
  if (o !== void 0) {
2489
- let e = x[parseInt(o) - 1];
2490
- if (s.isError(e)) {
2814
+ let e = me(o);
2815
+ if (l.isError(e)) {
2491
2816
  let t = e.getCode();
2492
- E = {
2817
+ A = {
2493
2818
  t: "e",
2494
2819
  v: t
2495
- }, ae && t === s.Code.Spill && (oe = !0);
2820
+ }, w && t === l.Code.Spill && (T = !0);
2496
2821
  }
2497
2822
  }
2498
2823
  }
2499
2824
  } else {
2500
- if (xe && t === "row") {
2501
- d = !0;
2825
+ if (Pe && t === "row") {
2826
+ g = !0;
2502
2827
  let t = e.attributes.r;
2503
- if (w = parseInt(t) - 1, k = 0, pe = e.attributes.customHeight, pe !== void 0 && (k |= Gt.CustomHeight), pe !== _e && (L = !0, _e = pe), A = e.attributes.ht, A !== void 0 && (k |= Gt.Ht), A !== ge && (L = !0, ge = A), j = e.attributes.hidden, j !== void 0 && (k |= Gt.Hidden), j !== ve && (L = !0, ve = j), M = e.attributes.s, M !== void 0 && (k |= Gt.S), M !== P && (L = !0, P = M), me = e.attributes.customFormat, me !== void 0 && (k |= Gt.CustomFormat), me !== ye && (L = !0, ye = me), he = e.attributes.outlineLevel, he !== void 0 && (k |= Gt.OutlineLevel), he !== F && (L = !0, F = he), N = e.attributes.collapsed, N !== void 0 && (k |= Gt.Collapsed), N !== I && (L = !0, I = N), k !== 0) {
2504
- if (fe + 1 !== w || L) {
2505
- let e = pe !== void 0 && (pe === "1" || pe === "true"), t = me !== void 0 && (me === "1" || me === "true");
2506
- Ce = t && M !== void 0 ? M : null, t && Ce === null && (Ce = "0"), de = {
2507
- min: w,
2508
- max: w,
2828
+ if (O = t === void 0 ? O + 1 : parseInt(t) - 1, k = -1, f?.()) {
2829
+ let e = _[_.length - 1];
2830
+ e && e.max + 1 === O ? e.max = O : _.push({
2831
+ min: O,
2832
+ max: O
2833
+ });
2834
+ }
2835
+ if (M = 0, P = e.attributes.customHeight, P !== void 0 && (M |= zn.CustomHeight), P !== De && (L = !0, De = P), N = e.attributes.ht, N !== void 0 && (M |= zn.Ht), N !== Ee && (L = !0, Ee = N), Se = e.attributes.hidden, Se !== void 0 && (M |= zn.Hidden), Se !== I && (L = !0, I = Se), we = e.attributes.s, we !== void 0 && (M |= zn.S), we !== ke && (L = !0, ke = we), Ce = e.attributes.customFormat, Ce !== void 0 && (M |= zn.CustomFormat), Ce !== Oe && (L = !0, Oe = Ce), F = e.attributes.outlineLevel, F !== void 0 && (M |= zn.OutlineLevel), F !== Ae && (L = !0, Ae = F), Te = e.attributes.collapsed, Te !== void 0 && (M |= zn.Collapsed), Te !== je && (L = !0, je = Te), M !== 0) {
2836
+ if (j + 1 !== O || L) {
2837
+ let e = P !== void 0 && (P === "1" || P === "true"), t = Ce !== void 0 && (Ce === "1" || Ce === "true");
2838
+ Ie = t && we !== void 0 ? we : null, t && Ie === null && (Ie = "0"), xe = {
2839
+ min: O,
2840
+ max: O,
2509
2841
  value: {
2510
- sz: A === void 0 ? -1 : parseFloat(A),
2842
+ sz: N === void 0 ? -1 : parseFloat(N),
2511
2843
  csz: e,
2512
- h: j !== void 0 && (j === "1" || j === "true"),
2513
- s: Ce === null ? void 0 : Ce === "0" ? 0 : parseInt(Ce),
2514
- l: he === void 0 || he === "0" ? 0 : parseInt(he),
2515
- cl: N !== void 0 && (N === "1" || N === "true")
2844
+ h: Se !== void 0 && (Se === "1" || Se === "true"),
2845
+ s: Ie === null ? void 0 : Ie === "0" ? 0 : parseInt(Ie),
2846
+ l: F === void 0 || F === "0" ? 0 : parseInt(F),
2847
+ cl: Te !== void 0 && (Te === "1" || Te === "true")
2516
2848
  }
2517
- }, O.push(de);
2518
- } else de.max = w;
2849
+ }, be.push(xe);
2850
+ } else xe.max = O;
2519
2851
  }
2520
- fe = w, L = !1;
2852
+ j = O, L = !1;
2521
2853
  return;
2522
2854
  }
2523
- if (t === "sheetData" && (xe = !0), !be && t === "sheetData") {
2524
- be = !0;
2855
+ if (t === "sheetData" && (Pe = !0), !Ne && t === "sheetData") {
2856
+ Ne = !0;
2525
2857
  let e = r.cols, t = e ? e.length : 0;
2526
- for (let n = 0; !Se && n < t; n++) e[n].v.s && (Se = !0);
2858
+ for (let n = 0; !Fe && n < t; n++) e[n].v.s && (Fe = !0);
2527
2859
  }
2528
2860
  i?.onOpenTag?.(e);
2529
2861
  }
2530
- }, Ee = (e) => {
2531
- let t = e.name;
2532
- if (t === "sheetData" && (xe = !1), !h || t !== "c" && t !== "f" || (g && (y = S.get(g) ?? null), y && (re.append(w, T, y), ce && le.append(w, T)), se !== null && ie.push([se, ae ? oe ? "error" : "dynamic" : "fixed"]), h = !1, y = null, g = null, _ = null, f = !1, ce = !1, se = null, ae = !1, oe = !1), ue) {
2533
- let r = t.indexOf(":");
2534
- if (r !== -1 && (t = t.slice(r + 1)), C) {
2535
- if (t === "is" || t === "v") {
2536
- let e = l?.onEnd?.();
2537
- e != null && n.pushAt(w, T, "" + e);
2538
- } else t !== "f" && l?.onCloseTag?.(e);
2539
- }
2540
- f &&= !1, t === "c" && (ue = null, C = !1);
2862
+ }, ze = (t) => {
2863
+ let n = t.name;
2864
+ if (n === "sheetData" && (Pe = !1), !re || n !== "c" && n !== "f" || (x && (C = de.get(x) ?? null), C && (ee = ((e) => {
2865
+ if (e.length < 11 || (32 | e.charCodeAt(0)) != 104 || !/^HYPERLINK\(/i.test(e)) return;
2866
+ let t = 1, n = !1, r = 10;
2867
+ for (; r < e.length && t > 0; r++) {
2868
+ let i = e.charCodeAt(r);
2869
+ n ? i === 34 && (e.charCodeAt(r + 1) === 34 ? r++ : n = !1) : i === 34 ? n = !0 : i === 40 ? t++ : i === 41 && t--;
2870
+ }
2871
+ if (t !== 0 || e.slice(r).trim().length > 0) return;
2872
+ let i = /^HYPERLINK\(\s*"((?:[^"]|"")*)"\s*[,)]/i.exec(e);
2873
+ return i ? i[1].replace(/""/g, "\"") : null;
2874
+ })(C[2]), ue.append(O, k, C), he && D.append(O, k)), E !== null && fe.push([E, w ? T ? "error" : "dynamic" : "fixed"]), re = !1, C = null, x = null, S = null, ne = !1, he = !1, E = null, w = !1, T = !1), _e) {
2875
+ let r = n.indexOf(":");
2876
+ if (r !== -1 && (n = n.slice(r + 1)), ge) {
2877
+ if (n === "is" || n === "v") {
2878
+ let t = s?.onEnd?.();
2879
+ t != null && e.pushAt(O, k, ee !== void 0 && typeof t == "number" ? ve(p?.() ?? "") : typeof t == "number" ? "" + t : t);
2880
+ } else n !== "f" && s?.onCloseTag?.(t);
2881
+ }
2882
+ ne &&= !1, n === "c" && (_e = null, ge = !1);
2541
2883
  } else {
2542
- if (d) return d = !1, void (R = null);
2543
- i?.onCloseTag?.(e);
2884
+ if (g) return g = !1, void (Me = null);
2885
+ i?.onCloseTag?.(t);
2544
2886
  }
2545
- }, De = (e) => {
2546
- let t = e.trim();
2547
- if (f) {
2548
- switch (E = null, D) {
2887
+ }, Be = (t) => {
2888
+ let n = t.trim();
2889
+ if (ne) {
2890
+ switch (A = null, ye) {
2549
2891
  case null:
2550
2892
  case "n":
2551
- E = parseFloat(t);
2893
+ A = parseFloat(n);
2552
2894
  break;
2553
2895
  case "b":
2554
- E = t === "1" || t === "true";
2896
+ A = n === "1" || n === "true";
2555
2897
  break;
2556
- case "s":
2557
- E = t;
2898
+ case "s": {
2899
+ let e = parseInt(n, 10), t = y.get(e);
2900
+ if (t === void 0) {
2901
+ let n = v?.get(e);
2902
+ t = n ? An(n, te) : null, y.set(e, t);
2903
+ }
2904
+ A = t ? {
2905
+ t: "r",
2906
+ v: {
2907
+ type: "richText",
2908
+ data: { runs: t }
2909
+ }
2910
+ } : n;
2558
2911
  break;
2912
+ }
2913
+ case "d": {
2914
+ let e = ((e, t = !1) => {
2915
+ if (!e) return null;
2916
+ let n = Tn.exec(e);
2917
+ if (n) {
2918
+ let [, e, t, r] = n;
2919
+ return e === void 0 && t === void 0 && r === void 0 ? null : (3600 * parseFloat(e ?? "0") + 60 * parseFloat(t ?? "0") + parseFloat(r ?? "0")) / 86400;
2920
+ }
2921
+ let r = wn.exec(e);
2922
+ if (!r) return null;
2923
+ let [, i, a, o, s, c, l, u] = r;
2924
+ if (i === void 0 && s === void 0) return null;
2925
+ let d = 0;
2926
+ if (i !== void 0) {
2927
+ let e = parseInt(i, 10), n = parseInt(a, 10), r = parseInt(o, 10);
2928
+ if (n < 1 || n > 12 || r < 1 || r > 31) return null;
2929
+ let s = En(e, n, r) - Dn;
2930
+ if (d = s <= 60 ? s - 1 : s, t && (d -= 1462), d < 0) return null;
2931
+ }
2932
+ return s !== void 0 && (d += (3600 * parseInt(s, 10) + 60 * parseInt(c, 10) + (l === void 0 ? 0 : parseInt(l, 10)) + (u === void 0 ? 0 : parseFloat(u))) / 86400), d;
2933
+ })(n, !0 === c?.get(Fn));
2934
+ e === null ? d && (a?.(`Date '${n}' in cell ${h.cellToString({
2935
+ colIndex: k,
2936
+ rowIndex: O
2937
+ })} is not a date this workbook can hold; kept as text.`, void 0, "xlsx.cell.isoDateText"), A = "" + d(n)) : A = e;
2938
+ break;
2939
+ }
2559
2940
  case "e":
2560
- if (t === "#VALUE!") {
2561
- let e = ue.attributes.vm;
2941
+ if (n === "#VALUE!") {
2942
+ let e = _e.attributes.vm;
2562
2943
  if (e !== void 0) {
2563
- let t = x[parseInt(e) - 1];
2564
- if (s.isError(t)) {
2565
- E = {
2944
+ let t = me(e);
2945
+ if (l.isError(t)) {
2946
+ A = {
2566
2947
  t: "e",
2567
2948
  v: t.getCode()
2568
2949
  };
2569
2950
  break;
2570
2951
  }
2952
+ if (m.isJSON(t)) {
2953
+ A = {
2954
+ t: "r",
2955
+ v: t
2956
+ };
2957
+ break;
2958
+ }
2571
2959
  }
2572
2960
  }
2573
- let e = s.getBuiltInByLabel(t);
2574
- e ? E = {
2961
+ let e = l.getBuiltInByLabel(n);
2962
+ e ? A = {
2575
2963
  t: "e",
2576
2964
  v: e.getCode()
2577
- } : (E = t, a?.(`Unknown formula error '${t}' in cell ${m.cellToString({
2578
- colIndex: T,
2579
- rowIndex: w
2965
+ } : (A = n, a?.(`Unknown formula error '${n}' in cell ${h.cellToString({
2966
+ colIndex: k,
2967
+ rowIndex: O
2580
2968
  })}`));
2581
2969
  break;
2582
2970
  case "str":
2583
- case "inlineStr": C = !0;
2971
+ case "inlineStr": ge = !0;
2584
2972
  }
2585
- E !== null && n.pushAt(w, T, E);
2973
+ A !== null && e.pushAt(O, k, ee === void 0 || typeof A != "number" && typeof A != "boolean" ? A : ve(A));
2586
2974
  }
2587
- if (g) {
2588
- if (b === g) y = ee;
2975
+ if (x) {
2976
+ if (ae === x) C = oe;
2589
2977
  else {
2590
- if (y = S.get(g) ?? null, !y) {
2978
+ if (C = de.get(x) ?? null, !C) {
2591
2979
  let e = [];
2592
- v = ne(t, w, T, e), y = [
2593
- v,
2980
+ ie = le(n, O, k, e), C = [
2981
+ ie,
2594
2982
  e,
2595
- t
2596
- ], S.set(g, y);
2983
+ n
2984
+ ], de.set(x, C);
2597
2985
  }
2598
- b = g, ee = y;
2986
+ ae = x, oe = C;
2599
2987
  }
2600
- g = null;
2988
+ x = null;
2601
2989
  }
2602
- if (h) {
2603
- if (te !== null) {
2990
+ if (re) {
2991
+ if (ce !== null) {
2604
2992
  let e = ((e) => {
2605
- if (e.length < Ft.length || e.slice(0, Ft.length).toUpperCase() !== It) return Rt;
2606
- let t = Bt(e, Ft.length);
2607
- if (t === null || e.charCodeAt(t.end) !== 41 || e.charCodeAt(t.end + 1) !== 44 || e.charCodeAt(e.length - 1) !== 41) return Rt;
2993
+ if (e.length < fn.length || e.slice(0, fn.length).toUpperCase() !== pn) return hn;
2994
+ let t = _n(e, fn.length);
2995
+ if (t === null || e.charCodeAt(t.end) !== 41 || e.charCodeAt(t.end + 1) !== 44 || e.charCodeAt(e.length - 1) !== 41) return hn;
2608
2996
  let n = t.value;
2609
- return n.toUpperCase() === Lt ? zt : n.length === 0 ? Rt : {
2997
+ return n.toUpperCase() === mn ? gn : n.length === 0 ? hn : {
2610
2998
  kind: "formula",
2611
2999
  formula: n
2612
3000
  };
2613
- })(t);
2614
- e.kind !== "none" && te.push({
3001
+ })(n);
3002
+ e.kind !== "none" && ce.push({
2615
3003
  sheet: r,
2616
- rowIndex: w,
2617
- colIndex: T,
3004
+ rowIndex: O,
3005
+ colIndex: k,
2618
3006
  formula: e.kind === "formula" ? e.formula : null
2619
3007
  });
2620
3008
  }
2621
3009
  let e = [];
2622
- v = ne(t, w, T, e), y = [
2623
- v,
3010
+ ie = le(n, O, k, e), C = [
3011
+ ie,
2624
3012
  e,
2625
- t
3013
+ n
2626
3014
  ];
2627
3015
  }
2628
- C ? l?.onText?.(e) : d || i?.onText?.(t);
2629
- }, z = {
3016
+ ge ? s?.onText?.(t) : g || i?.onText?.(n);
3017
+ }, R = {
2630
3018
  r: void 0,
2631
3019
  t: void 0,
2632
3020
  s: void 0,
2633
3021
  cm: void 0,
2634
3022
  vm: void 0
2635
- }, Oe = {
3023
+ }, Ve = {
2636
3024
  name: "c",
2637
- attributes: z,
3025
+ attributes: R,
2638
3026
  isSelfClosing: !1
2639
- }, B = {
3027
+ }, He = {
2640
3028
  t: void 0,
2641
3029
  si: void 0,
2642
3030
  ref: void 0,
2643
3031
  ca: void 0
2644
- }, ke = {
3032
+ }, Ue = {
2645
3033
  name: "f",
2646
- attributes: B,
3034
+ attributes: He,
2647
3035
  isSelfClosing: !1
2648
- }, Ae = {
3036
+ }, z = {
2649
3037
  name: "v",
2650
3038
  attributes: {},
2651
3039
  isSelfClosing: !1
2652
- }, V = {
3040
+ }, B = {
2653
3041
  r: void 0,
2654
3042
  s: void 0,
2655
3043
  ht: void 0,
@@ -2658,23 +3046,23 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2658
3046
  customHeight: void 0,
2659
3047
  customFormat: void 0,
2660
3048
  outlineLevel: void 0
2661
- }, je = {
3049
+ }, We = {
2662
3050
  name: "row",
2663
- attributes: V,
3051
+ attributes: B,
2664
3052
  isSelfClosing: !1
2665
- }, Me = jt.NEED_MORE, H = jt.NOT_HANDLED, U = jt.decodeText, Ne = !1, Pe = (e, t, n, r) => {
3053
+ }, V = sn.NEED_MORE, H = sn.NOT_HANDLED, Ge = sn.decodeText, Ke = !1, Je = (e, t, n, r) => {
2666
3054
  for (;;) {
2667
3055
  let i = 0;
2668
3056
  for (; t < n && ((i = e.charCodeAt(t)) === 32 || i === 9 || i === 10 || i === 13);) t++;
2669
- if (t >= n) return Me;
2670
- if (i === 62) return Ne = !1, t + 1;
2671
- if (i === 47) return t + 1 >= n ? Me : e.charCodeAt(t + 1) === 62 ? (Ne = !0, t + 2) : H;
3057
+ if (t >= n) return V;
3058
+ if (i === 62) return Ke = !1, t + 1;
3059
+ if (i === 47) return t + 1 >= n ? V : e.charCodeAt(t + 1) === 62 ? (Ke = !0, t + 2) : H;
2672
3060
  let a = t;
2673
3061
  for (; t < n && (i = e.charCodeAt(t)) !== 61;) {
2674
3062
  if (i === 62 || i === 47 || i === 32 || i === 9 || i === 10 || i === 13) return H;
2675
3063
  t++;
2676
3064
  }
2677
- if (t + 1 >= n) return Me;
3065
+ if (t + 1 >= n) return V;
2678
3066
  let o = t - a, s = e.charCodeAt(t + 1);
2679
3067
  if (s !== 34 && s !== 39) return H;
2680
3068
  let c = t + 2, l = c;
@@ -2682,95 +3070,150 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2682
3070
  if (i === 38 || i < 32) return H;
2683
3071
  l++;
2684
3072
  }
2685
- if (l >= n) return Me;
3073
+ if (l >= n) return V;
2686
3074
  t = l + 1;
2687
3075
  let u = e.charCodeAt(a);
2688
3076
  if (r === 2) switch (o) {
2689
3077
  case 1:
2690
- u === 114 ? V.r = e.slice(c, l) : u === 115 && (V.s = e.slice(c, l));
3078
+ u === 114 ? B.r = e.slice(c, l) : u === 115 && (B.s = e.slice(c, l));
2691
3079
  break;
2692
3080
  case 2:
2693
- e.startsWith("ht", a) && (V.ht = e.slice(c, l));
3081
+ e.startsWith("ht", a) && (B.ht = e.slice(c, l));
2694
3082
  break;
2695
3083
  case 6:
2696
- e.startsWith("hidden", a) && (V.hidden = e.slice(c, l));
3084
+ e.startsWith("hidden", a) && (B.hidden = e.slice(c, l));
2697
3085
  break;
2698
3086
  case 9:
2699
- e.startsWith("collapsed", a) && (V.collapsed = e.slice(c, l));
3087
+ e.startsWith("collapsed", a) && (B.collapsed = e.slice(c, l));
2700
3088
  break;
2701
- case 12: e.startsWith("customHeight", a) ? V.customHeight = e.slice(c, l) : e.startsWith("customFormat", a) ? V.customFormat = e.slice(c, l) : e.startsWith("outlineLevel", a) && (V.outlineLevel = e.slice(c, l));
3089
+ case 12: e.startsWith("customHeight", a) ? B.customHeight = e.slice(c, l) : e.startsWith("customFormat", a) ? B.customFormat = e.slice(c, l) : e.startsWith("outlineLevel", a) && (B.outlineLevel = e.slice(c, l));
2702
3090
  }
2703
- else if (r === 0) o === 1 ? u === 114 ? z.r = e.slice(c, l) : u === 116 ? z.t = e.slice(c, l) : u === 115 && (z.s = e.slice(c, l)) : o === 2 && e.charCodeAt(a + 1) === 109 && (u === 99 ? z.cm = e.slice(c, l) : u === 118 && (z.vm = e.slice(c, l)));
2704
- else if (o === 1) u === 116 && (B.t = e.slice(c, l));
3091
+ else if (r === 0) o === 1 ? u === 114 ? R.r = e.slice(c, l) : u === 116 ? R.t = e.slice(c, l) : u === 115 && (R.s = e.slice(c, l)) : o === 2 && e.charCodeAt(a + 1) === 109 && (u === 99 ? R.cm = e.slice(c, l) : u === 118 && (R.vm = e.slice(c, l)));
3092
+ else if (o === 1) u === 116 && (He.t = e.slice(c, l));
2705
3093
  else if (o === 2) {
2706
3094
  let t = e.charCodeAt(a + 1);
2707
- u === 115 && t === 105 ? B.si = e.slice(c, l) : u === 99 && t === 97 && (B.ca = e.slice(c, l));
2708
- } else o === 3 && e.startsWith("ref", a) && (B.ref = e.slice(c, l));
3095
+ u === 115 && t === 105 ? He.si = e.slice(c, l) : u === 99 && t === 97 && (He.ca = e.slice(c, l));
3096
+ } else o === 3 && e.startsWith("ref", a) && (He.ref = e.slice(c, l));
2709
3097
  }
2710
- }, Fe = (e, t, n) => e.charCodeAt(t + 1) === 47 && e.charCodeAt(t + 2) === n && e.charCodeAt(t + 3) === 62;
3098
+ }, Ye = (e, t, n) => e.charCodeAt(t + 1) === 47 && e.charCodeAt(t + 2) === n && e.charCodeAt(t + 3) === 62;
2711
3099
  return {
2712
3100
  ...i,
2713
3101
  onEnd: () => {
2714
- O.length > 0 && (r.rows = m.runsToRefs(O, !1));
2715
- let t = re.done(Kt), a = t.length;
2716
- if (a > 0) {
3102
+ if (f?.()) {
3103
+ let e = 0, t = [], n = (e, t) => ({
3104
+ min: e,
3105
+ max: t,
3106
+ value: {
3107
+ sz: -1,
3108
+ csz: !1,
3109
+ h: !0,
3110
+ s: void 0,
3111
+ l: 0,
3112
+ cl: !1
3113
+ }
3114
+ });
3115
+ for (let r of _) r.min > e && t.push(n(e, r.min - 1)), e = Math.max(e, r.max + 1);
3116
+ e <= 1048575 && t.push(n(e, 1048575)), t.length > 0 && (be.push(...t), be.sort((e, t) => e.min - t.min));
3117
+ }
3118
+ be.length > 0 && (r.rows = h.runsToRefs(be, !1));
3119
+ let n = ue.done(Bn);
3120
+ n = ((e, t) => {
3121
+ let n = null;
3122
+ for (let t = 0; t < e.length; t++) {
3123
+ let r = e[t];
3124
+ if (!Vn.test(r.value[2])) continue;
3125
+ n ??= /* @__PURE__ */ new Map();
3126
+ let i = r.value[0], a = n.get(i);
3127
+ a ? a.push(r) : n.set(i, [r]);
3128
+ }
3129
+ if (n === null) return e;
3130
+ let r = /* @__PURE__ */ new Set();
3131
+ for (let e of n.values()) {
3132
+ let n = e[0], i = {
3133
+ rowStart: n.rowStart,
3134
+ colStart: n.colStart,
3135
+ rowEnd: n.rowEnd,
3136
+ colEnd: n.colEnd
3137
+ }, a = 0;
3138
+ for (let t = 0; t < e.length; t++) {
3139
+ let n = e[t];
3140
+ n.rowStart < i.rowStart && (i.rowStart = n.rowStart), n.colStart < i.colStart && (i.colStart = n.colStart), n.rowEnd > i.rowEnd && (i.rowEnd = n.rowEnd), n.colEnd > i.colEnd && (i.colEnd = n.colEnd), a += (n.rowEnd - n.rowStart + 1) * (n.colEnd - n.colStart + 1);
3141
+ }
3142
+ if (a !== (i.rowEnd - i.rowStart + 1) * (i.colEnd - i.colStart + 1)) continue;
3143
+ let o = Cn(h.resolveRelativeToA1(n.value[1], i.rowStart, i.colStart), i);
3144
+ if (o) {
3145
+ t.push(o);
3146
+ for (let t = 0; t < e.length; t++) r.add(e[t]);
3147
+ }
3148
+ }
3149
+ return r.size === 0 ? e : e.filter((e) => !r.has(e));
3150
+ })(n, pe);
3151
+ let a = n.length;
3152
+ if (a > 0 || pe.length > 0) {
2717
3153
  let e = Array(a);
2718
- for (let n = 0; n < a; n++) {
2719
- let r = t[n], i = m.rangeToString(r), a = r.value[1], o = m.resolveRelativeToA1(a, r.rowStart, r.colStart);
2720
- e[n] = [i, o];
3154
+ for (let t = 0; t < a; t++) {
3155
+ let r = n[t], i = h.rangeToString(r), a = r.value[1], o = h.resolveRelativeToA1(a, r.rowStart, r.colStart);
3156
+ e[t] = [i, o];
3157
+ }
3158
+ for (let t = 0; t < pe.length; t++) {
3159
+ let n = pe[t], r = n.ref;
3160
+ e.push([h.cellToString({
3161
+ rowIndex: r.rowStart,
3162
+ colIndex: r.colStart
3163
+ }), qe(n)]), fe.push([h.rangeToString(r), "dynamic"]);
2721
3164
  }
2722
3165
  r.formulas = e;
2723
3166
  }
2724
- let o = le.done(!0), s = o.length;
3167
+ let o = D.done(!0), s = o.length;
2725
3168
  if (s > 0) {
2726
3169
  let e = Array(s);
2727
3170
  for (let t = 0; t < s; t++) {
2728
- let n = o[t], r = m.rangeToString(n);
3171
+ let n = o[t], r = h.rangeToString(n);
2729
3172
  e[t] = r;
2730
3173
  }
2731
3174
  r.volatile = e;
2732
3175
  }
2733
- ie.length > 0 && (r.formulaArray = [...ie]);
2734
- let l = p.length;
2735
- if (l > 0) {
2736
- p.sort(e.createRangeComparator(c.Axis.Column));
2737
- let t = p[0], n = t.colStart, i = t.colEnd, a = t.rowEnd, o = t.value, s = [];
2738
- s.push(t);
2739
- let u = null;
2740
- for (let e = 1; e < l; e++) u = p[e], o !== u.value || n !== u.colStart || i !== u.colEnd || a + 1 !== u.rowEnd ? (s.push(u), t = u, n = t.colStart, i = t.colEnd, a = t.rowEnd, o = t.value) : (a = u.rowEnd, t.rowEnd = a);
3176
+ fe.length > 0 && (r.formulaArray = [...fe]);
3177
+ let c = b.length;
3178
+ if (c > 0) {
3179
+ b.sort(t.createRangeComparator(u.Axis.Column));
3180
+ let e = b[0], n = e.colStart, i = e.colEnd, a = e.rowEnd, o = e.value, s = [];
3181
+ s.push(e);
3182
+ let l = null;
3183
+ for (let t = 1; t < c; t++) l = b[t], o !== l.value || n !== l.colStart || i !== l.colEnd || a + 1 !== l.rowEnd ? (s.push(l), e = l, n = e.colStart, i = e.colEnd, a = e.rowEnd, o = e.value) : (a = l.rowEnd, e.rowEnd = a);
2741
3184
  let d = s.length, f = Array(d);
2742
3185
  for (let e = 0; e < d; e++) {
2743
- let t = s[e], n = m.rangeToString(t);
3186
+ let t = s[e], n = h.rangeToString(t);
2744
3187
  f[e] = [n, t.value];
2745
3188
  }
2746
3189
  r.directStyles = f;
2747
3190
  }
2748
- let u = n.build();
2749
- u && (r.data = u.tuples), i?.onEnd?.();
3191
+ let l = e.build();
3192
+ l && (r.data = l.tuples), i?.onEnd?.();
2750
3193
  },
2751
- onOpenTag: Te,
2752
- onCloseTag: Ee,
2753
- onText: De,
3194
+ onOpenTag: Re,
3195
+ onCloseTag: ze,
3196
+ onText: Be,
2754
3197
  elementScanners: [{
2755
3198
  name: "c",
2756
3199
  scan: (e, t, n) => {
2757
- if (!d || ue !== null) return H;
2758
- z.r = z.t = z.s = z.cm = z.vm = void 0;
2759
- let r = Pe(e, t + 2, n, 0);
3200
+ if (!g || _e !== null) return H;
3201
+ R.r = R.t = R.s = R.cm = R.vm = void 0;
3202
+ let r = Je(e, t + 2, n, 0);
2760
3203
  if (r < 0) return r;
2761
- let i = z.t;
2762
- if (z.r === void 0 || i === "str" || i === "inlineStr") return H;
3204
+ let i = R.t;
3205
+ if (R.r === void 0 || i === "str" || i === "inlineStr") return H;
2763
3206
  let a = !1, o = -1, s = -1, c = -1, l = -1, u = r;
2764
- if (!Ne) for (B.t = B.si = B.ref = B.ca = void 0;;) {
3207
+ if (!Ke) for (He.t = He.si = He.ref = He.ca = void 0;;) {
2765
3208
  let t = e.indexOf("<", r);
2766
- if (t === -1 || t + 3 >= n) return Me;
3209
+ if (t === -1 || t + 3 >= n) return V;
2767
3210
  for (let n = r; n < t; n++) {
2768
3211
  let t = e.charCodeAt(n);
2769
3212
  if (t !== 32 && t !== 9 && t !== 10 && t !== 13) return H;
2770
3213
  }
2771
3214
  let i = e.charCodeAt(t + 1), d = e.charCodeAt(t + 2);
2772
3215
  if (i === 47) {
2773
- if (!Fe(e, t, 99)) return H;
3216
+ if (!Ye(e, t, 99)) return H;
2774
3217
  u = t + 4;
2775
3218
  break;
2776
3219
  }
@@ -2778,60 +3221,221 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2778
3221
  if (i !== 118 || d !== 62 || c !== -1) return H;
2779
3222
  {
2780
3223
  let i = e.indexOf("<", t + 3);
2781
- if (i === -1 || i + 3 >= n) return Me;
2782
- if (!Fe(e, i, 118)) return H;
3224
+ if (i === -1 || i + 3 >= n) return V;
3225
+ if (!Ye(e, i, 118)) return H;
2783
3226
  c = t + 3, l = i, r = i + 4;
2784
3227
  }
2785
3228
  } else {
2786
- if (a = !0, r = Pe(e, t + 2, n, 1), r < 0) return r;
2787
- if (Ne) continue;
3229
+ if (a = !0, r = Je(e, t + 2, n, 1), r < 0) return r;
3230
+ if (He.t === "dataTable") return H;
3231
+ if (Ke) continue;
2788
3232
  let i = e.indexOf("<", r);
2789
- if (i === -1 || i + 3 >= n) return Me;
2790
- if (!Fe(e, i, 102)) return H;
3233
+ if (i === -1 || i + 3 >= n) return V;
3234
+ if (!Ye(e, i, 102)) return H;
2791
3235
  o = r, s = i, r = i + 4;
2792
3236
  }
2793
3237
  }
2794
- return Te(Oe), a && (Te(ke), s > o && De(U(e.slice(o, s))), Ee(ke)), c !== -1 && (Te(Ae), l > c && De(U(e.slice(c, l))), Ee(Ae)), Ee(Oe), u;
3238
+ return Re(Ve), a && (Re(Ue), s > o && Be(Ge(e.slice(o, s))), ze(Ue)), c !== -1 && (Re(z), l > c && Be(Ge(e.slice(c, l))), ze(z)), ze(Ve), u;
2795
3239
  }
2796
3240
  }, {
2797
3241
  name: "row",
2798
- openTag: je,
3242
+ openTag: We,
2799
3243
  scan: (e, t, n) => {
2800
- if (!xe || d || ue !== null) return H;
2801
- V.r = V.s = V.ht = V.hidden = V.collapsed = V.customHeight = V.customFormat = V.outlineLevel = void 0;
2802
- let r = Pe(e, t + 4, n, 2);
2803
- return r < 0 ? r : Ne || V.r === void 0 ? H : (Te(je), r);
3244
+ if (!Pe || g || _e !== null) return H;
3245
+ B.r = B.s = B.ht = B.hidden = B.collapsed = B.customHeight = B.customFormat = B.outlineLevel = void 0;
3246
+ let r = Je(e, t + 4, n, 2);
3247
+ return r < 0 ? r : Ke || B.r === void 0 ? H : (Re(We), r);
2804
3248
  }
2805
3249
  }]
2806
3250
  };
2807
- }, Yt = "hiddenXfs", Xt = (e) => (Array.isArray(e) ? e[1] : e?.v)?.s, Zt = (e) => {
3251
+ }, Gn = /* @__PURE__ */ new Map([
3252
+ ["urn:schemas-microsoft-com:vml", "v"],
3253
+ ["urn:schemas-microsoft-com:office:office", "o"],
3254
+ ["urn:schemas-microsoft-com:office:excel", "x"]
3255
+ ]), Kn = [...Gn].map(([e, t]) => ` xmlns:${t}="${e}"`).join(""), qn = /<(\/?)([A-Za-z_][\w.-]*(?::[\w.-]+)?)((?:[^>"']|"[^"]*"|'[^']*')*?)(\/?)>/g, Jn = /(\s+)([A-Za-z_][\w.-]*(?::[\w.-]+)?)(\s*=\s*)("[^"]*"|'[^']*')/g, Yn = /\sxmlns(?::([\w.-]+))?\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
3256
+ function Xn(e) {
3257
+ if (!e || !((e) => {
3258
+ let t;
3259
+ for (Yn.lastIndex = 0; (t = Yn.exec(e)) !== null;) {
3260
+ let e = Gn.get(t[2] ?? t[3] ?? "");
3261
+ if (e && e !== (t[1] ?? "")) return !0;
3262
+ }
3263
+ return !1;
3264
+ })(e)) return e;
3265
+ let t = [], n = (e, n, r) => {
3266
+ let i = e.indexOf(":");
3267
+ if (i === -1 && r) return null;
3268
+ let a = i === -1 ? "" : e.substring(0, i);
3269
+ if (a === "xmlns") return null;
3270
+ let o = ((e, n) => {
3271
+ let r = n?.get(e);
3272
+ if (r !== void 0) return r;
3273
+ for (let n = t.length - 1; n >= 0; n--) {
3274
+ let r = t[n].bindings.get(e);
3275
+ if (r !== void 0) return r;
3276
+ }
3277
+ })(a, n), s = o === void 0 ? void 0 : Gn.get(o);
3278
+ return s ? `${s}:${i === -1 ? e : e.substring(i + 1)}` : null;
3279
+ }, r = !1, i = !1, a = e.replace(qn, (e, a, o, s, c) => {
3280
+ if (a) {
3281
+ let r = t[t.length - 1], i = n(o, null, !1);
3282
+ return r && r.name === o && (r.nested > 0 ? r.nested-- : t.pop()), i ? `</${i}>` : e;
3283
+ }
3284
+ let l = ((e) => {
3285
+ let t, n = null;
3286
+ for (Yn.lastIndex = 0; (t = Yn.exec(e)) !== null;) (n ??= /* @__PURE__ */ new Map()).set(t[1] ?? "", t[2] ?? t[3] ?? "");
3287
+ return n;
3288
+ })(s);
3289
+ l?.forEach((e, t) => {
3290
+ let n = [...Gn].find(([, e]) => e === t)?.[0];
3291
+ n && n !== e && (r = !0);
3292
+ });
3293
+ let u = n(o, l, !1), d = s.replace(Jn, (e, t, r, i, a) => {
3294
+ if (r === "xmlns" || r.startsWith("xmlns:")) {
3295
+ let t = a.slice(1, -1);
3296
+ return Gn.has(t) ? "" : e;
3297
+ }
3298
+ let o = n(r, l, !0);
3299
+ return o ? `${t}${o}${i}${a}` : e;
3300
+ });
3301
+ if (i || (i = !0, d = d.replace(/\s+$/, "") + Kn), !c) {
3302
+ let e = t[t.length - 1];
3303
+ l ? t.push({
3304
+ name: o,
3305
+ bindings: l,
3306
+ nested: 0
3307
+ }) : e && e.name === o && e.nested++;
3308
+ }
3309
+ return `<${u ?? o}${d}${c}>`;
3310
+ });
3311
+ return r ? e : a;
3312
+ }
3313
+ var Zn = {
3314
+ creator: "author",
3315
+ category: "category",
3316
+ description: "comments",
3317
+ contentStatus: "contentStatus",
3318
+ created: "creationDate",
3319
+ keywords: "keywords",
3320
+ lastModifiedBy: "lastAuthor",
3321
+ modified: "lastModifiedDate",
3322
+ lastPrinted: "lastPrinted",
3323
+ revision: "revisionNumber",
3324
+ subject: "subject",
3325
+ title: "title"
3326
+ }, Qn = {
3327
+ Company: "company",
3328
+ Manager: "manager"
3329
+ }, $n = {
3330
+ lpwstr: y.Type.String,
3331
+ lpstr: y.Type.String,
3332
+ bstr: y.Type.String,
3333
+ i1: y.Type.Number,
3334
+ i2: y.Type.Number,
3335
+ i4: y.Type.Number,
3336
+ i8: y.Type.Number,
3337
+ int: y.Type.Number,
3338
+ ui1: y.Type.Number,
3339
+ ui2: y.Type.Number,
3340
+ ui4: y.Type.Number,
3341
+ ui8: y.Type.Number,
3342
+ uint: y.Type.Number,
3343
+ r4: y.Type.Float,
3344
+ r8: y.Type.Float,
3345
+ decimal: y.Type.Float,
3346
+ bool: y.Type.Boolean,
3347
+ filetime: y.Type.Date,
3348
+ date: y.Type.Date
3349
+ }, er = (e) => {
3350
+ let t = e.kind ? $n[e.kind] : void 0;
3351
+ if (!t) return null;
3352
+ let n, r = e.value.trim();
3353
+ if (t === y.Type.String) n = {
3354
+ key: e.key,
3355
+ type: t,
3356
+ value: e.value
3357
+ };
3358
+ else if (t === y.Type.Boolean) {
3359
+ if (r !== "true" && r !== "false" && r !== "1" && r !== "0") return null;
3360
+ n = {
3361
+ key: e.key,
3362
+ type: t,
3363
+ value: r === "true" || r === "1"
3364
+ };
3365
+ } else if (t === y.Type.Date) {
3366
+ let i = new Date(r);
3367
+ if (!r || isNaN(i.getTime())) return null;
3368
+ n = {
3369
+ key: e.key,
3370
+ type: t,
3371
+ value: i.toISOString()
3372
+ };
3373
+ } else {
3374
+ let i = Number(r);
3375
+ if (!r || !Number.isFinite(i)) return null;
3376
+ let a = t === y.Type.Number && i >= -2147483648 && i <= 2147483647;
3377
+ n = {
3378
+ key: e.key,
3379
+ type: a ? t : y.Type.Float,
3380
+ value: i
3381
+ };
3382
+ }
3383
+ return e.linkTarget && (n.linkTarget = e.linkTarget), n;
3384
+ }, tr = "hiddenXfs", nr = (e) => (Array.isArray(e) ? e[1] : e?.v)?.s, rr = (e) => {
2808
3385
  if (!e || e.length === 0) return !1;
2809
- let t = m.refsToRuns(e, !0), n = 0;
3386
+ let t = h.refsToRuns(e, !0), n = 0;
2810
3387
  for (let e of t) {
2811
3388
  if (e.min > n || e.value?.s === void 0) return !1;
2812
3389
  n = Math.max(n, e.max + 1);
2813
3390
  }
2814
- return n > C;
2815
- }, Qt = (e, t) => {
3391
+ return n > Pe;
3392
+ }, ir = (e, t) => {
2816
3393
  e.protection = {
2817
3394
  ...e.protection,
2818
3395
  showFormulas: t
2819
3396
  };
2820
- }, $t = (e) => {
2821
- let t = e.indexOf(":");
2822
- return t === -1 ? e : e.slice(t + 1);
2823
- }, en = {
3397
+ }, ar = "xfComplements", or = (e, t) => {
3398
+ if (typeof e == "string") return void t.push(e);
3399
+ let n = Array.isArray(e) ? e : [e];
3400
+ for (let e = 0; e < n.length; e++) {
3401
+ let r = h.rangeToString(n[e]);
3402
+ r && t.push(r);
3403
+ }
3404
+ }, sr = (e) => {
3405
+ let t = Array.isArray(e) ? e[1] : e.v;
3406
+ if (!t || !("s" in t)) return;
3407
+ let n = t.s;
3408
+ return delete t.s, n;
3409
+ }, cr = (e, t, n, r) => {
3410
+ if (!e) return;
3411
+ let i, a = t ? 2 : 1, o = t ? n.rowStart : n.colStart, s = t ? n.rowEnd : n.colEnd, c = -1;
3412
+ for (let n of e) {
3413
+ let e = h.refToRun(n, t), l = sr(n);
3414
+ e && l !== void 0 ? l !== c || (t ? i.colEnd : i.rowEnd) + 1 !== e.min ? (i = {
3415
+ colStart: t ? e.min : o,
3416
+ rowStart: t ? o : e.min,
3417
+ colEnd: t ? e.max : s,
3418
+ rowEnd: t ? s : e.max,
3419
+ value: {
3420
+ kind: a,
3421
+ index: l
3422
+ }
3423
+ }, c = l, r.push(i)) : t ? i.colEnd = e.max : i.rowEnd = e.max : c = -1;
3424
+ }
3425
+ }, lr = {
2824
3426
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml": "workbooks",
2825
3427
  "application/vnd.ms-excel.sheet.macroEnabled.main+xml": "workbooks",
2826
3428
  "application/vnd.ms-excel.sheet.binary.macroEnabled.main": "workbooks",
2827
3429
  "application/vnd.ms-excel.addin.macroEnabled.main+xml": "workbooks",
2828
3430
  "application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml": "workbooks",
3431
+ "application/vnd.ms-excel.template.macroEnabled.main+xml": "workbooks",
2829
3432
  "application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml": "sheets",
2830
3433
  "application/vnd.ms-excel.worksheet": "sheets",
2831
3434
  "application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml": "charts",
2832
3435
  "application/vnd.ms-excel.chartsheet": "charts",
2833
3436
  "application/vnd.ms-excel.macrosheet+xml": "macros",
2834
3437
  "application/vnd.ms-excel.macrosheet": "macros",
3438
+ "application/vnd.ms-excel.intlmacrosheet+xml": "macros",
2835
3439
  "application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml": "dialogs",
2836
3440
  "application/vnd.ms-excel.dialogsheet": "dialogs",
2837
3441
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml": "strs",
@@ -2847,50 +3451,67 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2847
3451
  "application/vnd.ms-excel.person+xml": "people",
2848
3452
  "application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml": "metadata",
2849
3453
  "application/vnd.ms-excel.sheetMetadata": "metadata",
3454
+ "application/vnd.ms-excel.featurepropertybag+xml": "featurePropertyBag",
2850
3455
  "application/vnd.ms-excel.externalLink": "links",
2851
3456
  "application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml": "links",
2852
3457
  "application/vnd.openxmlformats-officedocument.theme+xml": "themes"
2853
- }, tn = S({ readXLSX: () => on }), nn = (e) => e.startsWith("/") ? e.slice(1) : e, rn = /^xl\/(worksheets|chartsheets)\/[^/]+\.xml$/i, an = (e) => typeof e == "string" ? e : (e?.runs ?? []).map((e) => e.text ?? "").join(""), on = async (e, o) => {
2854
- let { password: s, onVBA: c, profile: l, calcOnLoad: p = "auto", createWorkbookOptions: h = {}, ...v } = o ?? {}, y = !!h.origin && typeof h.origin != "string", x = l ? new U(typeof l == "function" ? l : void 0) : null, ne = [], re = (e, t, n) => {
2855
- ne.push([
3458
+ }, ur = ge({ readXLSX: () => hr }), dr = (e) => e.startsWith("/") ? e.slice(1) : e, fr = [
3459
+ 208,
3460
+ 207,
3461
+ 17,
3462
+ 224,
3463
+ 161,
3464
+ 177,
3465
+ 26,
3466
+ 225
3467
+ ], pr = /^xl\/worksheets\/[^/]+\.xml$/i, mr = (e) => typeof e == "string" ? e : (e?.runs ?? []).map((e) => e.text ?? "").join(""), hr = async (t, s) => {
3468
+ let { password: l, onVBA: u, profile: d, calcOnLoad: p = "auto", createWorkbookOptions: m = {}, ...g } = s ?? {};
3469
+ await _.load();
3470
+ let v = !!m.origin && typeof m.origin != "string", y = d ? new ct(typeof d == "function" ? d : void 0) : null, b = [], re = (e, t, n) => {
3471
+ b.push([
2856
3472
  e,
2857
3473
  t ?? "",
2858
3474
  n
2859
3475
  ]);
2860
- }, S = { onWarning: re }, ie = o?.progress, ae = ie?.onProgress ? ie.onProgress.bind(ie) : void 0, oe = e.byteLength, le = 0, C = 0, E = ae ? (e) => {
2861
- if (le <= 0) return;
2862
- C += e;
2863
- let t = Math.min(oe, Math.round(C / le * oe));
2864
- ae(t, oe);
2865
- } : void 0, ue = import("./C6INLvBy8kdzFpsX.js"), O = null;
3476
+ }, S = { onWarning: re }, ie = s?.progress, C = ie?.onProgress ? ie.onProgress.bind(ie) : void 0, ae = t.byteLength, oe = 0, se = 0, ce = C ? (e) => {
3477
+ if (oe <= 0) return;
3478
+ se += e;
3479
+ let t = Math.min(ae, Math.round(se / oe * ae));
3480
+ C(t, ae);
3481
+ } : void 0, le = import("./BKXXOCxg9jVDeZfx.mjs"), ue = null;
2866
3482
  try {
2867
- O = new DOMParser();
3483
+ ue = new DOMParser();
2868
3484
  } catch {}
2869
- let k = null;
3485
+ let w = null;
2870
3486
  try {
2871
- k = new XMLSerializer();
3487
+ w = new XMLSerializer();
2872
3488
  } catch {}
2873
- let A, j, me, M = null;
2874
- O || (M = import("./CsrTRThObSryov1b.js").then((e) => D(e.default, 1)));
3489
+ let T, E, me, ge = null;
3490
+ ue || (ge = import("./DTqURSvX1bHPWFue.mjs").then((e) => A(e.default, 1)));
2875
3491
  try {
2876
- let [e, t] = await Promise.all([M, ue]);
2877
- A = new t.DOMTransformer(), j = O ?? new e.DOMParser(), me = k ?? new e.XMLSerializer();
3492
+ let [e, t] = await Promise.all([ge, le]);
3493
+ T = new t.DOMTransformer(), E = ue ?? new e.DOMParser(), me = w ?? new e.XMLSerializer();
2878
3494
  } catch (e) {
2879
3495
  throw Error("Unable to load XLSX parser.", { cause: e });
2880
3496
  }
2881
- let N, ge = (e) => me.serializeToString(e);
3497
+ let O, k = (e) => me.serializeToString(e);
3498
+ if (((e) => {
3499
+ if (e.byteLength < fr.length) return !1;
3500
+ let t = new Uint8Array(e, 0, fr.length);
3501
+ return fr.every((e, n) => t[n] === e);
3502
+ })(t)) throw new a("This is an Excel 97-2003 workbook (.xls), which cannot be read. Save it as '.xlsx' and try again.");
2882
3503
  try {
2883
- N = await H.create(e);
3504
+ O = await st.create(t);
2884
3505
  } catch (e) {
2885
- throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.", { cause: e });
3506
+ throw new a("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.", { cause: e });
2886
3507
  }
2887
- x?.mark("zip-open");
3508
+ y?.mark("zip-open");
2888
3509
  try {
2889
- if (!N.has("[Content_Types].xml")) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
2890
- let e = (e) => {
2891
- let t = N.getEntry(e);
3510
+ if (!O.has("[Content_Types].xml")) throw new a("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
3511
+ let t = (e) => {
3512
+ let t = O.getEntry(e);
2892
3513
  return t ? { content: t } : void 0;
2893
- }, r = {
3514
+ }, o = {
2894
3515
  workbooks: [],
2895
3516
  sheets: [],
2896
3517
  charts: [],
@@ -2907,6 +3528,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2907
3528
  styles: [],
2908
3529
  metadata: [],
2909
3530
  people: [],
3531
+ featurePropertyBag: [],
2910
3532
  overrides: {},
2911
3533
  sst: "",
2912
3534
  style: "",
@@ -2923,7 +3545,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2923
3545
  let t = r.ContentType, n = r.PartName;
2924
3546
  if (!t || !n) return;
2925
3547
  e.overrides[n.startsWith("/") ? n.slice(1) : n] = t;
2926
- let i = en[t], a = i ? e[i] : void 0;
3548
+ let i = lr[t], a = i ? e[i] : void 0;
2927
3549
  Array.isArray(a) && a.push(n);
2928
3550
  } else if (n === "Default") {
2929
3551
  let t = r.Extension, n = r.ContentType;
@@ -2935,90 +3557,89 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
2935
3557
  },
2936
3558
  onError: (e) => {
2937
3559
  ((e) => {
2938
- ne.push([e, "[Content_Types].xml"]);
3560
+ b.push([e, "[Content_Types].xml"]);
2939
3561
  })(`Error parsing content types: ${e?.message ?? e}`);
2940
3562
  }
2941
- }))(r), t = await N.getTextStream("[Content_Types].xml");
3563
+ }))(o), t = await O.getTextStream("[Content_Types].xml");
2942
3564
  if (!t) throw Error("Error parsing content types: '[Content_Types].xml'");
2943
3565
  try {
2944
- await Je.parseStream(t, e, { xmlns: !1 });
3566
+ await Ct.parseStream(t, e, { xmlns: !1 });
2945
3567
  } catch (e) {
2946
3568
  throw Error("Error parsing content types: '[Content_Types].xml'", { cause: e });
2947
3569
  }
2948
- y && await N.getBuffer("[Content_Types].xml");
2949
- }
2950
- x?.mark("content-types");
2951
- let o = r.sst, s = /* @__PURE__ */ new Set();
2952
- for (let e of r.sheets) s.add(nn(e));
2953
- o && s.add(nn(o));
2954
- for (let e of s) le += N.uncompressedSize(e);
2955
- if (await N.prefetch((e) => !s.has(e) && !rn.test(e)), x?.mark("prefetch-side-parts"), r.workbooks.length === 0) {
2956
- let t = Oe("_rels/.rels", e, j, A, S);
2957
- if (t) {
2958
- for (let e of t.values()) if (e.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" && e.target) {
2959
- r.workbooks.push(e.target);
3570
+ v && await O.getBuffer("[Content_Types].xml");
3571
+ }
3572
+ y?.mark("content-types");
3573
+ let s = o.sst, l = /* @__PURE__ */ new Set();
3574
+ for (let e of o.sheets) l.add(dr(e));
3575
+ s && l.add(dr(s));
3576
+ for (let e of l) oe += O.uncompressedSize(e);
3577
+ if (await O.prefetch((e) => !l.has(e) && !pr.test(e)), y?.mark("prefetch-side-parts"), o.workbooks.length === 0) {
3578
+ let e = x("_rels/.rels", t, E, T, S);
3579
+ if (e) {
3580
+ for (let t of e.values()) if (t.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" && t.target) {
3581
+ o.workbooks.push(t.target);
2960
3582
  break;
2961
3583
  }
2962
3584
  }
2963
3585
  }
2964
- if (r.workbooks.length === 0) throw new i("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
2965
- r.richstructure = ["/xl/richData/rdrichvaluestructure.xml"], r.richdata = ["/xl/richData/rdrichvalue.xml"];
2966
- let v = h?.resources ?? new f(), C = v.beginPersist(), ue = {}, D = /* @__PURE__ */ new Set(), O = /* @__PURE__ */ new Map();
2967
- O.set("richTypes", []), O.set("parseInlineDxf", (e) => {
3586
+ if (o.workbooks.length === 0) throw new a("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");
3587
+ let g = m?.resources ?? new f(), se = g.beginPersist(), le = {}, ue = /* @__PURE__ */ new Set(), w = /* @__PURE__ */ new Map();
3588
+ w.set("parseInlineDxf", (e) => {
2968
3589
  if (!e) return;
2969
- let t = j.parseFromString(`<dxf xmlns:x14="${Se}" xmlns:xm="${pe}">${e}</dxf>`, "text/xml")?.documentElement;
3590
+ let t = E.parseFromString(`<dxf xmlns:x14="${He}" xmlns:xm="${ve}">${e}</dxf>`, "text/xml")?.documentElement;
2970
3591
  if (!t) return;
2971
- let n = A.parseDxf(t, "", S);
3592
+ let n = T.parseDxf(t, "", S);
2972
3593
  return Object.keys(n).length > 0 ? n : void 0;
2973
3594
  });
2974
- let k = [];
2975
- O.set("dummyWrapped", k);
2976
- let me = B("metadata", r, e, j, A, S).entries().next()?.value?.[1]?.metadata;
2977
- me && O.set("metadata", me), O.set(Ut, ce());
2978
- let M = /* @__PURE__ */ new Map(), ve = [], ye = /* @__PURE__ */ new Set(), P = (e) => {
2979
- ye.add(nn(e));
2980
- }, I = (t, n = M) => {
2981
- let r = t.lastIndexOf("/"), i = t.substring(0, r + 1) + "_rels/" + t.substring(r + 1, t.length) + ".rels", a = n.get(i);
2982
- return a || (a = Oe(i, e, j, A, U), n.set(i, a)), a;
2983
- }, L = (t, n, r, i = M) => {
2984
- let a = I(n, i).get(t), o = a?.target;
3595
+ let me = [];
3596
+ w.set("dummyWrapped", me);
3597
+ let ge = D("metadata", o, t, E, T, S).entries().next()?.value?.[1]?.metadata;
3598
+ ge && w.set("metadata", ge), w.set(Pn, pe());
3599
+ let A = /* @__PURE__ */ new Map(), _e = [], ye = /* @__PURE__ */ new Set(), j = (e) => {
3600
+ ye.add(dr(e));
3601
+ }, M = (e, n = A) => {
3602
+ let r = e.lastIndexOf("/"), i = e.substring(0, r + 1) + "_rels/" + e.substring(r + 1, e.length) + ".rels", a = n.get(i);
3603
+ return a || (a = x(i, t, E, T, z), n.set(i, a)), a;
3604
+ }, N = (e, n, r, i = A) => {
3605
+ let a = M(n, i).get(e), o = a?.target;
2985
3606
  if (!o) return null;
2986
3607
  if (a.targetMode === "External") {
2987
3608
  if (!r) return a.target;
2988
- let e = v.add({ source: { external: a.target } });
2989
- return e.addReference(ue), D.add(e), C.toResourceId(e);
3609
+ let e = g.add({ source: { external: a.target } });
3610
+ return e.addReference(le), ue.add(e), se.toResourceId(e);
2990
3611
  }
2991
3612
  let s = n.lastIndexOf("/"), c = n.substring(0, s + 1);
2992
- o.startsWith("/") || (o = c + o), o = ke(o);
2993
- let l = A?.getVisitorParamsState().get("dxfs"), u = i.get(o);
3613
+ o.startsWith("/") || (o = c + o), o = he(o);
3614
+ let l = T?.getVisitorParamsState().get("dxfs"), u = i.get(o);
2994
3615
  if (!u) {
2995
3616
  if (a.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
2996
3617
  let e = {};
2997
- u = e, ve.push((async () => {
2998
- let t = Wt(e, (e, t) => t === "legacyDrawing" ? Ce(e, o) : t === "formControl" ? we(e, o) : t === "part" ? Ae(e, o) : L(e, o, t === "resource") ?? null, Le, l, () => {}, (e, t, n) => {
3618
+ u = e, _e.push((async () => {
3619
+ let t = Rn(e, (e, t) => t === "legacyDrawing" ? Ee(e, o) : t === "formControl" ? De(e, o) : t === "part" ? I(e, o) : N(e, o, t === "resource") ?? null, Ye, l, () => {}, (e, t, n) => {
2999
3620
  re(e, t ? `${t} (${o})` : o, n);
3000
- }, void 0, O), n = await N.getTextStream(o, E);
3621
+ }, void 0, w), n = await O.getTextStream(o, ce);
3001
3622
  if (n) try {
3002
- await Je.parseStream(n, t, {
3623
+ await Ct.parseStream(n, t, {
3003
3624
  xmlns: !1,
3004
3625
  lean: !0
3005
3626
  });
3006
3627
  } catch (e) {
3007
3628
  throw Error(`Error parsing sheet: '${o}'`, { cause: e });
3008
3629
  }
3009
- let r = I(o, i);
3630
+ let r = M(o, i);
3010
3631
  if (r) {
3011
- xe(e, o, r, i), T(e), F(e);
3632
+ Ce(e, o, r, i), xe(e), Ne(e);
3012
3633
  let t = [];
3013
3634
  r.forEach((e, n) => {
3014
3635
  if (e.type !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable") return;
3015
- let r = Ae(n, o, e.type, (e) => e !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition");
3636
+ let r = I(n, o, e.type, (e) => e !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition");
3016
3637
  if (!r?.xml) return;
3017
3638
  let i = /<pivotTableDefinition\b[^>]*>/.exec(r.xml)?.[0] ?? "", a = parseInt(/\scacheId="(\d+)"/.exec(i)?.[1] ?? "", 10);
3018
- if (isNaN(a)) return void ne.push([`Pivot table '${r.name}' names no cache and was dropped.`, o]);
3639
+ if (isNaN(a)) return void b.push([`Pivot table '${r.name}' names no cache and was dropped.`, o]);
3019
3640
  let s = /\sname="([^"]*)"/.exec(i)?.[1];
3020
3641
  t.push({
3021
- ...s ? { name: fe(s) } : {},
3642
+ ...s ? { name: Se(s) } : {},
3022
3643
  cacheId: a,
3023
3644
  part: r
3024
3645
  });
@@ -3026,12 +3647,12 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3026
3647
  }
3027
3648
  })());
3028
3649
  } else if (a.type === "http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink") {
3029
- let t = z(o, e, j, A, U);
3030
- if (t && Object.keys(t).length !== 0) {
3031
- let e = t, n = e.__bookRelId, r = e.__absoluteUrlRelId;
3032
- delete e.__bookRelId, delete e.__absoluteUrlRelId;
3650
+ let e = V(o, t, E, T, z);
3651
+ if (e && Object.keys(e).length !== 0) {
3652
+ let t = e, n = t.__bookRelId, r = t.__absoluteUrlRelId;
3653
+ delete t.__bookRelId, delete t.__absoluteUrlRelId;
3033
3654
  let a = [];
3034
- I(o, i)?.forEach((e, t) => {
3655
+ M(o, i)?.forEach((e, t) => {
3035
3656
  if (e.targetMode === "External" && e.type && e.target) {
3036
3657
  let i = {
3037
3658
  type: e.type,
@@ -3039,47 +3660,32 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3039
3660
  };
3040
3661
  t === n ? i.role = "book" : t === r && (i.role = "absoluteUrl"), a.push(i);
3041
3662
  }
3042
- }), a.sort((e, t) => (e.role === "book" ? 0 : 1) - (t.role === "book" ? 0 : 1)), e.sources = a, P(o), u = e;
3663
+ }), a.sort((e, t) => (e.role === "book" ? 0 : 1) - (t.role === "book" ? 0 : 1)), t.sources = a, j(o), u = t;
3043
3664
  } else u = null;
3044
- } else u = r ? ((e, t, n, r = null) => {
3045
- if (!e) return null;
3046
- let i = e;
3047
- i.startsWith("/") && (i = i.substring(1));
3048
- let a = r?.parsedRefs?.get(e);
3049
- if (a !== void 0) return a;
3050
- let o = t(i);
3051
- if (!o) return null;
3052
- let s = o.content;
3053
- try {
3054
- n && (s = n(s, e));
3055
- } catch (t) {
3056
- De(e, t, r);
3057
- }
3058
- return r?.parsedRefs?.set(e, s), s;
3059
- })(o, e, (e, t) => {
3060
- let n = v.add({ source: { buffer: e } });
3061
- return n.addReference(ue), D.add(n), C.toResourceId(n);
3062
- }, U) : z(o, e, j, A, U);
3665
+ } else u = r ? be(o, t, (e, t) => {
3666
+ let n = g.add({ source: { buffer: e } });
3667
+ return n.addReference(le), ue.add(n), se.toResourceId(n);
3668
+ }, z) : V(o, t, E, T, z);
3063
3669
  }
3064
3670
  return u;
3065
- }, be = (e, t) => {
3671
+ }, P = (e, t) => {
3066
3672
  if (!e) return null;
3067
- let n = I(t, M)?.get(e);
3673
+ let n = M(t, A)?.get(e);
3068
3674
  if (!n?.target || n.targetMode === "External") return null;
3069
3675
  let r = n.target;
3070
- return r.startsWith("/") || (r = t.substring(0, t.lastIndexOf("/") + 1) + r), ke(r);
3071
- }, xe = (e, n, r, i) => {
3676
+ return r.startsWith("/") || (r = t.substring(0, t.lastIndexOf("/") + 1) + r), he(r);
3677
+ }, Ce = (e, t, r, i) => {
3072
3678
  let a = [], o = /* @__PURE__ */ new Map(), s = [];
3073
- r.forEach((e, t) => {
3679
+ r.forEach((e, n) => {
3074
3680
  if (e.type !== "http://schemas.microsoft.com/office/2017/10/relationships/threadedComment") return;
3075
- let r = L(t, n, !1, i)?.comments;
3681
+ let r = N(n, t, !1, i)?.comments;
3076
3682
  if (!r) return;
3077
3683
  for (let e = 0; e < r.length; e++) {
3078
3684
  let t = r[e];
3079
3685
  if (!t?.v?.id) continue;
3080
3686
  let { parentId: n, done: i, content: c, ...l } = t.v, u = {
3081
3687
  ...l,
3082
- content: an(c)
3688
+ content: mr(c)
3083
3689
  };
3084
3690
  n ? s.push({
3085
3691
  parentId: n,
@@ -3089,8 +3695,8 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3089
3695
  v: u
3090
3696
  }));
3091
3697
  }
3092
- let c = be(t, n);
3093
- c && P(c);
3698
+ let c = P(n, t);
3699
+ c && j(c);
3094
3700
  });
3095
3701
  for (let e = 0; e < s.length; e++) {
3096
3702
  let { parentId: t, json: n } = s[e], r = o.get(t);
@@ -3099,38 +3705,38 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3099
3705
  let c = [];
3100
3706
  if (r.forEach((e, r) => {
3101
3707
  if (e.type !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments") return;
3102
- let a = L(r, n, !1, i), s = a?.comments;
3708
+ let a = N(r, t, !1, i), s = a?.comments;
3103
3709
  if (!s) return;
3104
3710
  let l = a?.authors;
3105
3711
  for (let e = 0; e < s.length; e++) {
3106
- let n = s[e];
3107
- if (!n?.r) continue;
3108
- let r = l && n.v.authorId !== void 0 ? l[n.v.authorId] : void 0;
3712
+ let t = s[e];
3713
+ if (!t?.r) continue;
3714
+ let r = l && t.v.authorId !== void 0 ? l[t.v.authorId] : void 0;
3109
3715
  if (r && r.startsWith("tc=")) {
3110
- if (o.has(je(r.substring(3)))) continue;
3716
+ if (o.has(Re(r.substring(3)))) continue;
3111
3717
  r = void 0;
3112
3718
  }
3113
3719
  let i = {
3114
- id: t.uuidV4().toUpperCase(),
3720
+ id: n.uuidV4().toUpperCase(),
3115
3721
  asNote: !0,
3116
- content: n.v.content ?? ""
3117
- }, a = r ? H({ displayName: r }) : void 0;
3722
+ content: t.v.content ?? ""
3723
+ }, a = r ? R({ displayName: r }) : void 0;
3118
3724
  a && (i.personId = a.id), c.push({
3119
- r: n.r,
3725
+ r: t.r,
3120
3726
  v: i
3121
3727
  });
3122
3728
  }
3123
- let u = be(r, n);
3124
- u && P(u);
3729
+ let u = P(r, t);
3730
+ u && j(u);
3125
3731
  }), a.length === 0 && c.length === 0) return;
3126
3732
  let l = [...a, ...c], u = e.legacyDrawing;
3127
3733
  if (u?.xml) {
3128
- let { rest: t, notes: n } = _e(u.xml);
3734
+ let { rest: t, notes: n } = fe(u.xml);
3129
3735
  if (n.length > 0) {
3130
3736
  let r = /* @__PURE__ */ new Map();
3131
3737
  for (let e = 0; e < n.length; e++) {
3132
3738
  let t = n[e];
3133
- r.set(m.cellToString({
3739
+ r.set(h.cellToString({
3134
3740
  rowIndex: t.row,
3135
3741
  colIndex: t.col
3136
3742
  }), t);
@@ -3138,7 +3744,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3138
3744
  for (let e = 0; e < l.length; e++) {
3139
3745
  let t = l[e], n = r.get(String(t.r).toUpperCase());
3140
3746
  if (!n || (r.delete(String(t.r).toUpperCase()), !t.v.asNote)) continue;
3141
- let i = de(n.xml), a = {};
3747
+ let i = Ie(n.xml), a = {};
3142
3748
  if (i.anchor) {
3143
3749
  let [e, t, r, o, s, c, l, u] = i.anchor;
3144
3750
  a.anchor = {
@@ -3155,61 +3761,61 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3155
3761
  y: u
3156
3762
  }
3157
3763
  };
3158
- }
3159
- i.xml && (a.xml = i.xml), (a.anchor || a.xml) && (t.v.box = a), i.visible && (t.v.shown = !0), i.alt && (t.v.description = i.alt);
3764
+ } else i.bounds && (a.bounds = i.bounds);
3765
+ i.style.fill && (a.fill = i.style.fill), i.style.stroke && (a.stroke = i.style.stroke), i.xml && (a.xml = i.xml), (a.anchor || a.bounds || a.fill || a.stroke || a.xml) && (t.v.box = a), i.visible && (t.v.shown = !0), i.alt && (t.v.description = i.alt);
3160
3766
  }
3161
3767
  let i = [];
3162
3768
  r.forEach((e) => {
3163
3769
  i.push(e.xml);
3164
3770
  });
3165
- let a = ee(t, i);
3771
+ let a = Le(t, i);
3166
3772
  a ? u.xml = a : delete e.legacyDrawing;
3167
3773
  }
3168
3774
  }
3169
3775
  e.comments = l;
3170
- }, Ce = (t, n) => {
3171
- let r = be(t, n);
3776
+ }, Ee = (e, n) => {
3777
+ let r = P(e, n);
3172
3778
  if (!r) return null;
3173
- let i = e(nn(r));
3779
+ let i = t(dr(r));
3174
3780
  if (!i) return null;
3175
- let a = { xml: new TextDecoder("utf-8").decode(i.content) }, o = [];
3176
- return I(r, M)?.forEach((e, t) => {
3781
+ let a = { xml: Xn(new TextDecoder("utf-8").decode(i.content)) }, o = [];
3782
+ return M(r, A)?.forEach((e, t) => {
3177
3783
  if (e.type !== "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image") return;
3178
- let n = L(t, r, !0);
3784
+ let n = N(t, r, !0);
3179
3785
  typeof n == "number" && o.push({
3180
3786
  id: t,
3181
3787
  resId: n
3182
3788
  });
3183
- }), o.length > 0 && (a.images = o), P(r), a;
3184
- }, we = (t, n) => {
3185
- let r = be(t, n);
3789
+ }), o.length > 0 && (a.images = o), j(r), a;
3790
+ }, De = (e, n) => {
3791
+ let r = P(e, n);
3186
3792
  if (!r) return null;
3187
- let i = z(r, e, j, A, U)?.formControl ?? null;
3188
- return i && P(r), i;
3189
- }, Ae = (t, n, i, a, o = /* @__PURE__ */ new Set()) => {
3190
- let s = be(t, n);
3191
- if (!s || o.has(s)) return null;
3192
- let c = i ?? I(n, M)?.get(t)?.type;
3793
+ let i = V(r, t, E, T, z)?.formControl ?? null;
3794
+ return i && j(r), i;
3795
+ }, I = (e, n, r, i, a = /* @__PURE__ */ new Set()) => {
3796
+ let s = P(e, n);
3797
+ if (!s || a.has(s)) return null;
3798
+ let c = r ?? M(n, A)?.get(e)?.type;
3193
3799
  if (!c) return null;
3194
- let l = e(nn(s));
3800
+ let l = t(dr(s));
3195
3801
  if (!l) return null;
3196
- o.add(s);
3197
- let u = s.substring(s.lastIndexOf("/") + 1), d = r.overrides[nn(s)] ?? r.defaults[u.substring(u.lastIndexOf(".") + 1).toLowerCase()], f = {
3198
- id: t,
3802
+ a.add(s);
3803
+ let u = s.substring(s.lastIndexOf("/") + 1), d = o.overrides[dr(s)] ?? o.defaults[u.substring(u.lastIndexOf(".") + 1).toLowerCase()], f = {
3804
+ id: e,
3199
3805
  type: c,
3200
3806
  name: u
3201
3807
  };
3202
3808
  if (d && (f.contentType = d), ((e, t) => e ? e.endsWith("+xml") || e === "application/xml" : /\.(xml|rels|vml)$/i.test(t))(d, u)) f.xml = new TextDecoder("utf-8").decode(l.content);
3203
3809
  else {
3204
- let e = L(t, n, !0);
3205
- if (typeof e != "number") return null;
3206
- f.resId = e;
3810
+ let t = N(e, n, !0);
3811
+ if (typeof t != "number") return null;
3812
+ f.resId = t;
3207
3813
  }
3208
3814
  let p = [];
3209
- return I(s, M)?.forEach((e, t) => {
3210
- if (!e?.type || a && !a(e.type)) return;
3815
+ return M(s, A)?.forEach((e, t) => {
3816
+ if (!e?.type || i && !i(e.type)) return;
3211
3817
  if (e.targetMode === "External") {
3212
- let n = L(t, s, !0);
3818
+ let n = N(t, s, !0);
3213
3819
  typeof n == "number" && p.push({
3214
3820
  id: t,
3215
3821
  type: e.type,
@@ -3217,99 +3823,184 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3217
3823
  });
3218
3824
  return;
3219
3825
  }
3220
- let n = Ae(t, s, e.type, a, o);
3826
+ let n = I(t, s, e.type, i, a);
3221
3827
  n && p.push(n);
3222
- }), p.length > 0 && (f.parts = p), P(s), f;
3223
- };
3224
- B("coreprops", r, e, j, A, S), B("extprops", r, e, j, A, S);
3225
- let V = new g(), Me = B("people", r, e, j, A, S);
3226
- if (Me.size > 0) {
3227
- let [e, t] = Me.entries().next().value;
3228
- V.fromJSON(t?.persons), P(e);
3229
- }
3230
- let H = (e) => {
3231
- if (e) return V.add(e).toJSON();
3232
- }, U = {
3233
- paramMap: O,
3234
- getRefs: I,
3235
- getRef: L,
3236
- parsedRefs: M,
3237
- readEmbeddedPart: (e, t) => Ae(e, t),
3238
- addPerson: H,
3239
- serializeElement: ge,
3828
+ }), p.length > 0 && (f.parts = p), j(s), f;
3829
+ }, ke = D("coreprops", o, t, E, T, S), Ae = D("extprops", o, t, E, T, S), je = D("custprops", o, t, E, T, S);
3830
+ je.forEach((e, t) => {
3831
+ e?.custom && j(t);
3832
+ });
3833
+ let L = new te(), Fe = D("people", o, t, E, T, S);
3834
+ if (Fe.size > 0) {
3835
+ let [e, t] = Fe.entries().next().value;
3836
+ L.fromJSON(t?.persons), j(e);
3837
+ }
3838
+ let R = (e) => {
3839
+ if (e) return L.add(e).toJSON();
3840
+ }, z = {
3841
+ paramMap: w,
3842
+ getRefs: M,
3843
+ getRef: N,
3844
+ parsedRefs: A,
3845
+ readEmbeddedPart: (e, t) => I(e, t),
3846
+ addPerson: R,
3847
+ serializeElement: k,
3240
3848
  onWarning: re
3241
- }, Ne = [];
3242
- if (o) {
3243
- let e = await N.getTextStream(o, E);
3849
+ }, B = [], We = /* @__PURE__ */ new Map();
3850
+ if (w.set(In, We), s) {
3851
+ let e = await O.getTextStream(s, ce);
3244
3852
  if (e) {
3245
- let t = (() => {
3246
- let e = !1, t = !1, n = 0, r = "";
3853
+ let t = ((e, t) => {
3854
+ let n = !1, r = !1, i = 0, a = "", o = new kn();
3247
3855
  return {
3248
- onOpenTag: (i) => {
3249
- let a = $t(i.name);
3250
- a === "t" ? e && n === 0 && (t = !0) : a === "si" ? (e = !0, r = "", n = 0) : a !== "rPh" && a !== "phoneticPr" || n++;
3856
+ onOpenTag: (e) => {
3857
+ let t = On(e.name);
3858
+ t === "t" ? n && i === 0 && (r = !0) : t === "si" ? (n = !0, a = "", o.reset(), i = 0) : t === "rPh" || t === "phoneticPr" ? i++ : n && i === 0 && o.onOpenTag(t, e.attributes);
3251
3859
  },
3252
3860
  onText: (e) => {
3253
- t && (r += e);
3861
+ r && (a += e, o.onText(e));
3254
3862
  },
3255
- onCloseTag: (i) => {
3256
- let a = $t(i.name);
3257
- a === "t" ? t = !1 : a === "si" ? (((e) => {
3258
- Ne.push(e);
3259
- })(he(r)), e = !1, r = "") : a !== "rPh" && a !== "phoneticPr" || n > 0 && n--;
3863
+ onCloseTag: (e) => {
3864
+ let t = On(e.name);
3865
+ t === "t" ? r = !1 : t === "si" ? (((e, t) => {
3866
+ t && We.set(B.length, t), B.push(e);
3867
+ })(Ue(a), o.take() ?? void 0), n = !1, a = "") : t === "rPh" || t === "phoneticPr" ? i > 0 && i-- : o.onCloseTag(t);
3260
3868
  },
3261
3869
  onError: (e) => {
3262
- ((e) => {
3263
- re(e, o);
3264
- })(`Error parsing shared strings: ${e?.message ?? e}`);
3870
+ t?.(`Error parsing shared strings: ${e?.message ?? e}`);
3265
3871
  }
3266
3872
  };
3267
- })();
3873
+ })(0, (e) => {
3874
+ re(e, s);
3875
+ });
3268
3876
  try {
3269
- await Je.parseStream(e, t, { xmlns: !1 });
3877
+ await Ct.parseStream(e, t, { xmlns: !1 });
3270
3878
  } catch (e) {
3271
- throw Error(`Error parsing shared strings: '${o}'`, { cause: e });
3879
+ throw Error(`Error parsing shared strings: '${s}'`, { cause: e });
3272
3880
  }
3273
3881
  }
3274
3882
  }
3275
- x?.mark("shared-strings");
3276
- let Pe = Ne.length, Fe = /* @__PURE__ */ new Map(), Ie = Pe, Le = (e) => {
3277
- let t = Fe.get(e);
3883
+ y?.mark("shared-strings");
3884
+ let H = B.length, Ke = /* @__PURE__ */ new Map(), qe = H, Ye = (e) => {
3885
+ let t = Ke.get(e);
3278
3886
  if (t !== void 0) return t;
3279
- let n = Ie;
3280
- return Fe.set(e, Ie++), Ne.push(e), n;
3281
- }, Re = [];
3282
- r.slicersCache = Re;
3283
- let ze = N.getNames(), Be = ze.length;
3284
- for (let e = 0; e < Be; e++) {
3285
- let t = ze[e];
3286
- t && t.startsWith("xl/slicerCache") && Re.push(`/${t}`);
3287
- }
3288
- let Ve = B("slicersCache", r, e, j, A, U), He = /* @__PURE__ */ new Map();
3289
- Ve.forEach((e, t) => {
3290
- e?.cacheName && (e.cachePath = t, He.set(e.cacheName, e));
3291
- }), O.set("slicerCaches", He);
3292
- let Ue = [];
3293
- r.slicers = Ue;
3294
- for (let e = 0; e < Be; e++) {
3295
- let t = ze[e];
3296
- t && t.startsWith("xl/slicers/") && t.endsWith(".xml") && Ue.push(`/${t}`);
3297
- }
3298
- B("richstructure", r, e, j, A, U), B("richdata", r, e, j, A, U);
3299
- let We = B("themes", r, e, j, A, U), Ge = null;
3300
- if (We && We.entries) {
3301
- let e = We.entries().next();
3302
- e?.value?.[1] && (Ge = e.value[1]);
3303
- }
3304
- let Ke = new u(Ge), qe = B("styles", r, e, j, A, U).entries().next()?.value?.[1];
3305
- qe &&= JSON.parse(n.JSONStableStringify(qe));
3306
- let W = B("workbooks", r, e, j, A, U);
3307
- x?.mark("side-parts-json"), await Promise.all(ve);
3887
+ let n = qe;
3888
+ return Ke.set(e, qe++), B.push(e), n;
3889
+ }, Ze = [];
3890
+ o.slicersCache = Ze;
3891
+ let Qe = O.getNames(), et = Qe.length;
3892
+ for (let e = 0; e < et; e++) {
3893
+ let t = Qe[e];
3894
+ t && t.startsWith("xl/slicerCache") && Ze.push(`/${t}`);
3895
+ }
3896
+ let ot = D("slicersCache", o, t, E, T, z), st = /* @__PURE__ */ new Map();
3897
+ ot.forEach((e, t) => {
3898
+ e?.cacheName && (e.cachePath = t, st.set(e.cacheName, e));
3899
+ }), w.set("slicerCaches", st);
3900
+ let ct = [];
3901
+ o.slicers = ct;
3902
+ for (let e = 0; e < et; e++) {
3903
+ let t = Qe[e];
3904
+ t && t.startsWith("xl/slicers/") && t.endsWith(".xml") && ct.push(`/${t}`);
3905
+ }
3906
+ let lt = {
3907
+ getFile: t,
3908
+ domParser: E,
3909
+ getAddress: (e, t) => {
3910
+ let n = N(t, e, !1);
3911
+ return typeof n == "string" ? n : null;
3912
+ },
3913
+ getBytes: (e, n) => {
3914
+ let r = P(n, e), i = r ? t(r.substring(1))?.content : void 0;
3915
+ return i ? i.slice().buffer : null;
3916
+ },
3917
+ addFetched: (e, t) => {
3918
+ let n = g.add({
3919
+ source: { buffer: e },
3920
+ fetchedFrom: t
3921
+ });
3922
+ return n.addReference(le), ue.add(n), se.toResourceId(n);
3923
+ },
3924
+ markAbsorbed: j
3925
+ }, ut = /* @__PURE__ */ new Map();
3926
+ for (let e of we.getAll()) ut.set(e.structure, e.beginRead(lt));
3927
+ let dt = ((e, t) => {
3928
+ let n = (n) => {
3929
+ let r = e(n);
3930
+ return r ? t.parseFromString(new TextDecoder().decode(r.content), "text/xml").documentElement ?? null : null;
3931
+ }, r = U(n("xl/richData/rdrichvaluestructure.xml"), "s").map((e) => ({
3932
+ t: e.getAttribute("t") ?? "",
3933
+ keys: rt(e)
3934
+ })), i = U(n("xl/richData/rdrichvalue.xml"), "rv").map((e) => {
3935
+ let t = U(e, "fb")[0];
3936
+ return {
3937
+ s: parseInt(e.getAttribute("s") ?? "-1", 10),
3938
+ values: U(e, "v").map((e) => e.textContent ?? ""),
3939
+ fb: t ? t.textContent ?? "" : null
3940
+ };
3941
+ }), a = U(n("xl/richData/rdarray.xml"), "a").map((e) => {
3942
+ let t = it(e), n = parseInt(e.getAttribute("r") ?? "", 10), r = parseInt(e.getAttribute("c") ?? "", 10), i = n > 0 ? n : t.length;
3943
+ return {
3944
+ rows: i,
3945
+ columns: r > 0 ? r : Math.max(1, Math.ceil(t.length / Math.max(1, i))),
3946
+ items: t
3947
+ };
3948
+ }), o = U(n("xl/richData/rdsupportingpropertybagstructure.xml"), "s").map(rt), s = n("xl/richData/rdsupportingpropertybag.xml"), c = U(U(s, "spbArrays")[0], "a").map(it), l = U(U(s, "spbData")[0], "spb").map((e) => ({
3949
+ s: parseInt(e.getAttribute("s") ?? "-1", 10),
3950
+ values: U(e, "v").map((e) => e.textContent ?? "")
3951
+ })), u = n("xl/richData/rdRichValueTypes.xml"), d = at(U(U(u, "global")[0], "keyFlags")[0]), f = /* @__PURE__ */ new Map();
3952
+ for (let e of U(U(u, "types")[0], "type")) f.set(e.getAttribute("name") ?? "", at(U(e, "keyFlags")[0]));
3953
+ let p = n("xl/richData/richStyles.xml"), m = U(U(p, "dxfs")[0], "dxf").map((e) => U(e, "numFmt")[0]?.getAttribute("formatCode") ?? null), ee = U(U(p, "richProperties")[0], "rPr").map((e) => e.getAttribute("n") ?? "");
3954
+ return {
3955
+ structures: r,
3956
+ values: i,
3957
+ arrays: a,
3958
+ bagStructures: o,
3959
+ bagArrays: c,
3960
+ bags: l,
3961
+ globalKeyFlags: d,
3962
+ typeKeyFlags: f,
3963
+ richStyles: U(U(p, "richStyles")[0], "rSty").map((e) => {
3964
+ let t = /* @__PURE__ */ new Map();
3965
+ for (let n of U(e, "rpv")) {
3966
+ let e = ee[parseInt(n.getAttribute("i") ?? "-1", 10)];
3967
+ e && t.set(e, n.textContent ?? "");
3968
+ }
3969
+ let n = parseInt(e.getAttribute("dxfid") ?? "", 10);
3970
+ return {
3971
+ numberFormat: t.get("NumberFormat") ?? (n >= 0 ? m[n] ?? null : null),
3972
+ isTitle: t.get("IsTitleField") === "1",
3973
+ isHero: t.get("IsHeroField") === "1"
3974
+ };
3975
+ })
3976
+ };
3977
+ })(t, E), ft = Ve(dt, ut, (e) => {
3978
+ re(e, "/xl/richData/rdrichvalue.xml");
3979
+ });
3980
+ w.set("richData", dt.values.map((e, t) => ft.cellValue(t)));
3981
+ for (let e = 0; e < et; e++) {
3982
+ let t = Qe[e];
3983
+ t.startsWith("xl/richData/") && !t.includes("/_rels/") && j(t);
3984
+ }
3985
+ let pt = D("themes", o, t, E, T, z), mt = null;
3986
+ if (pt && pt.entries) {
3987
+ let e = pt.entries().next();
3988
+ e?.value?.[1] && (mt = e.value[1]);
3989
+ }
3990
+ let ht = new ee(mt), gt = D("styles", o, t, E, T, z).entries().next()?.value?.[1];
3991
+ gt &&= JSON.parse(i.JSONStableStringify(gt));
3992
+ let _t = D("workbooks", o, t, E, T, z);
3993
+ w.set(Fn, !0 === _t.entries().next().value?.[1]?.date1904), y?.mark("side-parts-json"), await Promise.all(_e);
3308
3994
  {
3309
- let e = W.entries().next().value?.[1], t = ce(e?.names), n = e?.sheets ?? [];
3995
+ let e = _t.entries().next().value?.[1], t = pe(e?.names), n = e?.sheets ?? [];
3310
3996
  for (let e = 0; e < n.length; e++) {
3311
- let r = n[e]?.sheet;
3312
- r && se(r, t);
3997
+ let r = n[e], i = ze(r);
3998
+ if (r?.kind === "macro" && i?.part.xml) {
3999
+ i.part.xml = Xe(i.part.xml, B);
4000
+ continue;
4001
+ }
4002
+ let a = Oe(r);
4003
+ a && Je(a, t);
3313
4004
  }
3314
4005
  let r = e?.names;
3315
4006
  if (r) for (let e = 0; e < r.length; e++) {
@@ -3317,29 +4008,52 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3317
4008
  typeof n == "string" && (r[e].ref = t.readDetached(n));
3318
4009
  }
3319
4010
  }
3320
- ae && le > 0 && (ae(oe, oe), await new Promise((e) => setTimeout(e, 0))), x?.mark("sheets");
3321
- let Ye = {
3322
- ...W.entries().next().value?.[1],
3323
- styles: qe,
3324
- theme: Ke.toJSON()
3325
- };
3326
- ((e, t) => {
4011
+ C && oe > 0 && (C(ae, ae), await new Promise((e) => setTimeout(e, 0))), y?.mark("sheets");
4012
+ let W = {
4013
+ ..._t.entries().next().value?.[1],
4014
+ styles: gt,
4015
+ theme: ht.toJSON()
4016
+ }, vt = ((e, t, n, r) => {
4017
+ let i = {}, a = (e, t) => {
4018
+ if (e) for (let { key: n, value: r } of e) {
4019
+ let e = t[n];
4020
+ if (e && r) {
4021
+ if (e === "revisionNumber") {
4022
+ let e = parseInt(r, 10);
4023
+ Number.isFinite(e) && (i.revisionNumber = e);
4024
+ } else i[e] = r;
4025
+ }
4026
+ }
4027
+ };
4028
+ if (a(e, Zn), a(t, Qn), n) {
4029
+ let e = [];
4030
+ for (let t of n) {
4031
+ let n = er(t);
4032
+ n ? e.push(n) : r?.(`The custom document property '${t.key}' holds a value of a kind that is not read (${t.kind ? "vt:" + t.kind : "none"}); it was dropped.`, "xlsx.docProps.custom.kind");
4033
+ }
4034
+ e.length > 0 && (i.custom = e);
4035
+ }
4036
+ return Object.keys(i).length > 0 ? i : void 0;
4037
+ })(ke.values().next().value?.properties, Ae.values().next().value?.properties, je.values().next().value?.custom, (e, t) => {
4038
+ re(e, "docProps/custom.xml", t);
4039
+ });
4040
+ vt && (W.properties = vt), ((e, t) => {
3327
4041
  if (!t || t.size === 0) return;
3328
4042
  let n = e.styles;
3329
4043
  if (!n) return;
3330
4044
  let r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set();
3331
4045
  for (let n of e.sheets ?? []) {
3332
- let e = n?.sheet;
4046
+ let e = Oe(n);
3333
4047
  if (!e) continue;
3334
4048
  let a = /* @__PURE__ */ new Set();
3335
- Zt(e.cols) || a.add(0);
4049
+ rr(e.cols) || a.add(0);
3336
4050
  for (let t of e.directStyles ?? []) a.add(Array.isArray(t) ? t[1] : t.v);
3337
4051
  for (let t of e.rows ?? []) {
3338
- let e = Xt(t);
4052
+ let e = nr(t);
3339
4053
  e !== void 0 && a.add(e);
3340
4054
  }
3341
4055
  for (let t of e.cols ?? []) {
3342
- let e = Xt(t);
4056
+ let e = nr(t);
3343
4057
  e !== void 0 && a.add(e);
3344
4058
  }
3345
4059
  let o = !1;
@@ -3356,104 +4070,178 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3356
4070
  }
3357
4071
  }
3358
4072
  if (r.size === 0) return;
3359
- let o = n.direct ??= [];
3360
- for (let e of r) e !== 0 && Qt(o[e] ?? (o[e] = {}), !0);
3361
- for (let e of i) e !== 0 && Qt(o[e] ?? (o[e] = {}), !1);
4073
+ let a = n.direct ??= [];
4074
+ for (let e of r) e !== 0 && ir(a[e] ?? (a[e] = {}), !0);
4075
+ for (let e of i) e !== 0 && ir(a[e] ?? (a[e] = {}), !1);
3362
4076
  if (r.has(0)) {
3363
- let e = n.named ??= [], t = a.BuiltInName.Normal.toLowerCase(), r = e.find((e) => e.name?.toLowerCase() === t);
4077
+ let e = n.named ??= [], t = c.BuiltInName.Normal.toLowerCase(), r = e.find((e) => e.name?.toLowerCase() === t);
3364
4078
  r || (r = {
3365
- name: a.BuiltInName.Normal,
4079
+ name: c.BuiltInName.Normal,
3366
4080
  style: {}
3367
- }, e.push(r)), Qt(r.style, !0);
4081
+ }, e.push(r)), ir(r.style, !0);
4082
+ }
4083
+ })(W, w.get(tr)), ((t) => {
4084
+ let n = {
4085
+ colStart: 0,
4086
+ rowStart: 0,
4087
+ colEnd: Pe,
4088
+ rowEnd: Ge
4089
+ };
4090
+ for (let i of t.sheets ?? []) {
4091
+ let t = Oe(i);
4092
+ if (!t) continue;
4093
+ let a = [];
4094
+ if (cr(t.cols, !0, n, a), cr(t.rows, !1, n, a), a.length === 0) continue;
4095
+ let o = [];
4096
+ for (let [e, n] of t.directStyles ?? []) o.push({
4097
+ ...h.fastStringToRange(e),
4098
+ value: {
4099
+ kind: 0,
4100
+ index: n
4101
+ }
4102
+ });
4103
+ o.push(...a);
4104
+ let s = [], c = new e.IteratorInstance(o, { axis: r.Column });
4105
+ for (let e = c.next(); !e.done; e = c.next()) {
4106
+ let t, r = e.value.overlaps;
4107
+ if (r.length === 1) {
4108
+ if (t = r[0].value, t.index === 0) continue;
4109
+ } else {
4110
+ let e, n, i;
4111
+ for (let t = 0; !e && t < r.length; t++) {
4112
+ let a = r[t].value;
4113
+ a.kind === 0 ? e = a : a.kind === 1 ? n = a : i = a;
4114
+ }
4115
+ t = e ?? n ?? i;
4116
+ }
4117
+ s.push([h.rangeToString(e.value.range, n), t.index]);
4118
+ }
4119
+ s.length > 0 ? t.directStyles = s : delete t.directStyles;
3368
4120
  }
3369
- })(Ye, O.get(Yt));
4121
+ })(W);
4122
+ {
4123
+ let e = w.get(ar);
4124
+ e && ((e, t, n) => {
4125
+ if (!t || t.size === 0 || !n) return;
4126
+ let r = (e) => {
4127
+ if (e === void 0 || e === 0) return null;
4128
+ let r = t.get(e);
4129
+ return r === void 0 ? null : n.controls[r] ?? null;
4130
+ };
4131
+ for (let t of e.sheets ?? []) {
4132
+ let e = Oe(t);
4133
+ if (!e) continue;
4134
+ let n = /* @__PURE__ */ new Map();
4135
+ for (let t of e.directStyles ?? []) {
4136
+ let e = Array.isArray(t) ? t[0] : t.r, i = r(Array.isArray(t) ? t[1] : t.v);
4137
+ if (!i) continue;
4138
+ let a = JSON.stringify(i), o = n.get(a);
4139
+ o || (o = {
4140
+ control: i,
4141
+ addresses: []
4142
+ }, n.set(a, o)), or(e, o.addresses);
4143
+ }
4144
+ if (n.size === 0) continue;
4145
+ let i = [...e.cellControls ?? []];
4146
+ for (let { control: e, addresses: t } of n.values()) i.push({
4147
+ r: t.join(","),
4148
+ v: e
4149
+ });
4150
+ e.cellControls = i;
4151
+ }
4152
+ })(W, e, D("featurePropertyBag", o, t, E, T, z).values().next().value?.featurePropertyBag);
4153
+ }
3370
4154
  {
3371
- let t = /* @__PURE__ */ new Map();
3372
- B("slicers", r, e, j, A, U).forEach((e, n) => {
3373
- e?.slicers && t.set(n, e.slicers);
4155
+ let e = /* @__PURE__ */ new Map();
4156
+ D("slicers", o, t, E, T, z).forEach((t, n) => {
4157
+ t?.slicers && e.set(n, t.slicers);
3374
4158
  }), function(e, t) {
3375
4159
  let n = e.sheets ?? [], r = /* @__PURE__ */ new Map();
3376
4160
  for (let e = 0; e < n.length; e++) {
3377
- let t = n[e]?.sheet?.tables ?? [];
3378
- for (let e = 0; e < t.length; e++) {
3379
- let n = t[e], i = Array.isArray(n) ? n[1] : n?.v;
3380
- if (!i?.id) continue;
3381
- let a = (i.columns ?? []).map((e) => typeof e == "string" ? { name: e } : e);
3382
- r.set(String(i.id), {
3383
- name: i.name ?? "",
4161
+ let t = n[e], i = Oe(t)?.tables ?? [];
4162
+ for (let e = 0; e < i.length; e++) {
4163
+ let t = i[e], n = Array.isArray(t) ? t[1] : t?.v;
4164
+ if (!n?.id) continue;
4165
+ let a = (n.columns ?? []).map((e) => typeof e == "string" ? { name: e } : e);
4166
+ r.set(String(n.id), {
4167
+ name: n.name ?? "",
3384
4168
  columns: a
3385
4169
  });
3386
4170
  }
3387
4171
  }
3388
4172
  let i = /* @__PURE__ */ new Set();
3389
4173
  for (let e = 0; e < n.length; e++) {
3390
- let a = n[e]?.sheet;
3391
- if (!a) continue;
3392
- let o = a.slicers, s = a.movables;
3393
- if (o && s) for (let e = s.length - 1; e >= 0; e--) {
3394
- let n = s[e].content;
4174
+ let a = n[e], o = Oe(a);
4175
+ if (!o) continue;
4176
+ let s = o.slicers, c = o.movables;
4177
+ if (s && c) for (let e = c.length - 1; e >= 0; e--) {
4178
+ let n = c[e].content;
3395
4179
  if (n?.type !== "slicer" || n.json?.source) continue;
3396
- let a = n.name ?? "", c = o[a];
3397
- if (!c?.tableId) continue;
3398
- let l = r.get(String(c.tableId)), u = l ? Te(l.columns, c.columnId) : null;
3399
- l && u ? (n.json = Ee(c, n.json, d.structuredReference(l.name, u.name)), i.add(a), c.cachePath && t.markAbsorbed(c.cachePath)) : (t.warn("A slicer names no table; it was not imported.", "xlsx.slicer.cacheDefinition"), s.splice(e, 1));
4180
+ let a = n.name ?? "", o = s[a];
4181
+ if (!o?.tableId) continue;
4182
+ let l = r.get(String(o.tableId)), u = l ? tt(l.columns, o.columnId) : null;
4183
+ l && u ? (n.json = nt(o, n.json, _.structuredReference(l.name, u.name)), i.add(a), o.cachePath && t.markAbsorbed(o.cachePath)) : (t.warn("A slicer names no table; it was not imported.", "xlsx.slicer.cacheDefinition"), c.splice(e, 1));
3400
4184
  }
3401
- delete a.slicers;
4185
+ delete o.slicers;
3402
4186
  }
3403
4187
  t.slicerParts.forEach((e, n) => {
3404
4188
  let r = Object.keys(e);
3405
4189
  r.length > 0 && r.every((e) => i.has(e)) && t.markAbsorbed(n);
3406
4190
  });
3407
- }(Ye, {
4191
+ }(W, {
3408
4192
  warn: (e, t) => {
3409
4193
  re(e, "xl/slicers", t);
3410
4194
  },
3411
- markAbsorbed: P,
3412
- slicerParts: t
4195
+ markAbsorbed: j,
4196
+ slicerParts: e
3413
4197
  });
3414
4198
  }
3415
- Ye.calc = {
3416
- ...Ye.calc ?? {},
4199
+ W.calc = {
4200
+ ...W.calc ?? {},
3417
4201
  legacyIntersect: !0
3418
- }, Ne.length > 0 && (Ye.strings = Ne);
3419
- let Xe = V.toJSON();
3420
- Xe && Xe.length > 0 && (Ye.people = Xe);
3421
- let Ze = N.getEntry("xl/vbaProject.bin");
3422
- if (Ze) try {
3423
- let { VBAProject: e } = await import("./CDAYVaQYywqaxg4O.js"), t = e.extract(Ze);
4202
+ }, B.length > 0 && (W.strings = B);
4203
+ let yt = L.toJSON();
4204
+ yt && yt.length > 0 && (W.people = yt);
4205
+ let bt = O.getEntry("xl/vbaProject.bin");
4206
+ if (bt) try {
4207
+ let { VBAProject: e } = await import("./PRhdAO5xkLnZQvlu.mjs"), t = e.extract(bt);
3424
4208
  if (t) {
3425
4209
  let n = /* @__PURE__ */ new Map();
3426
- for (let e of Ye.sheets ?? []) {
3427
- let t = e?.sheet?.codeName;
3428
- t && n.set(t, e.sheet);
4210
+ for (let e of W.sheets ?? []) {
4211
+ let t = Oe(e), r = t?.codeName;
4212
+ r && n.set(r, t);
3429
4213
  }
3430
4214
  for (let r of t.modules) {
3431
4215
  let t = { language: "vba" }, { header: i, body: a } = e.splitAttributes(r.code);
3432
4216
  a && (t.source = a), i && (t.sourceHeader = i);
3433
4217
  let o = r.type === "document" ? n.get(r.name) : void 0;
3434
4218
  o || r.type !== "document" || (t.scope = "workbook");
3435
- let s = o ? o.modules ??= {} : Ye.modules ??= {};
4219
+ let s = o ? o.modules ??= {} : W.modules ??= {};
3436
4220
  s[r.name] || (s[r.name] = t);
3437
4221
  }
3438
- c?.(t);
3439
- } else ne.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
4222
+ u?.(t);
4223
+ } else b.push(["Unable to parse VBA project.", "xl/vbaProject.bin"]);
3440
4224
  } catch (e) {
3441
- ne.push([`Error extracting VBA: ${e?.message ?? e}`, "xl/vbaProject.bin"]);
4225
+ b.push([`Error extracting VBA: ${e?.message ?? e}`, "xl/vbaProject.bin"]);
3442
4226
  }
3443
- let Qe = O.get("calcId"), $e = Qe === void 0 || !(Number(Qe) >= 191029), et = h.calcOnLoad ?? (p === "auto" && $e ? "full" : p), tt = {
3444
- ...h,
3445
- calcOnLoad: et,
3446
- resources: v,
3447
- json: Ye
4227
+ let xt = w.get("calcId"), St = xt === void 0 || !(Number(xt) >= 191029), G = m.calcOnLoad ?? (p === "auto" && St ? "full" : p), wt = {
4228
+ ...m,
4229
+ calcOnLoad: G,
4230
+ resources: g,
4231
+ json: W
3448
4232
  };
3449
- tt.disableLoadAutoFit === void 0 && (tt.disableLoadAutoFit = !1), x?.mark("json-assembled");
3450
- let G = new _(tt);
3451
- if (x?.mark("workbook-constructed"), k.length > 0 && et !== "none") {
3452
- await G.whenCalculationReady();
3453
- let e = /* @__PURE__ */ new Map(), t = Ye.sheets ?? [], n = G.getSheets().getItems();
4233
+ if (wt.disableLoadAutoFit === void 0) {
4234
+ let e = w.get(Te);
4235
+ wt.disableLoadAutoFit = !!e?.declared && e.normalIsThemeFont && await $e(e.faces);
4236
+ }
4237
+ y?.mark("json-assembled");
4238
+ let K = new ne(wt);
4239
+ if (y?.mark("workbook-constructed"), me.length > 0 && G !== "none") {
4240
+ await K.whenCalculationReady();
4241
+ let e = /* @__PURE__ */ new Map(), t = W.sheets ?? [], n = K.getSheets({ visibility: "veryHidden" });
3454
4242
  for (let r = 0; r < t.length; r++) {
3455
- let i = t[r]?.sheet, a = n[r];
3456
- i && a && e.set(i, a);
4243
+ let i = t[r], a = n[r], o = Oe(i);
4244
+ o && a?.isIWorksheet && e.set(o, a);
3457
4245
  }
3458
4246
  ((e, t, n) => {
3459
4247
  if (t.length === 0) return;
@@ -3472,7 +4260,7 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3472
4260
  for (let e of t) e.formula === null && o.add(i(e.rowIndex, e.colIndex));
3473
4261
  for (let e of t) {
3474
4262
  if (e.formula === null) continue;
3475
- let t = Vt(e.formula), n = !0;
4263
+ let t = vn(e.formula), n = !0;
3476
4264
  for (let e of t) if (!a(e)) {
3477
4265
  n = !1;
3478
4266
  break;
@@ -3505,19 +4293,19 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3505
4293
  }).setValue("=" + e.formula);
3506
4294
  }
3507
4295
  }
3508
- })(G, k, e);
4296
+ })(K, me, e);
3509
4297
  }
3510
- if (D.forEach((e) => {
3511
- e.deleteReference(ue);
3512
- }), C.endPersist(), y) {
3513
- w(G);
4298
+ if (ue.forEach((e) => {
4299
+ e.deleteReference(le);
4300
+ }), se.endPersist(), v) {
4301
+ Be(K);
3514
4302
  let e = /* @__PURE__ */ new Map(), t = 0;
3515
- for (let n of N.getNames()) {
3516
- let r = N.getEntry(n);
4303
+ for (let n of O.getNames()) {
4304
+ let r = O.getEntry(n);
3517
4305
  if (!r) continue;
3518
- let i = N.getRawEntry(n), a = i ? {
4306
+ let i = O.getRawEntry(n), a = i ? {
3519
4307
  data: r,
3520
- uncompressedSize: N.uncompressedSize(n),
4308
+ uncompressedSize: O.uncompressedSize(n),
3521
4309
  raw: {
3522
4310
  compressedData: i.data,
3523
4311
  compressionMethod: i.compressionMethod,
@@ -3525,39 +4313,39 @@ var X = (e) => !0 === e || e === "1" || e === "on" || e === "true" || !1 !== e &
3525
4313
  }
3526
4314
  } : {
3527
4315
  data: r,
3528
- uncompressedSize: N.uncompressedSize(n)
4316
+ uncompressedSize: O.uncompressedSize(n)
3529
4317
  };
3530
4318
  e.set(n, a), t += r.byteLength;
3531
4319
  }
3532
- if (t > 67108864) ne.push([`Source package too large to retain (${t} bytes, limit ${te}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
4320
+ if (t > 67108864) b.push([`Source package too large to retain (${t} bytes, limit ${de}); unmodeled parts will be dropped on save.`, "SourcePackage"]);
3533
4321
  else if (e.size > 0) {
3534
- let t = new R(e, ye);
3535
- b(G, t);
3536
- let n = G.getSheets().getItems(), r = G.getTransactions().addListener({ onCommitEnd: (e) => {
4322
+ let t = new Me(e, ye);
4323
+ F(K, t);
4324
+ let n = K.getWorksheets().getItems(), r = K.getTransactions().addListener({ onCommitEnd: (e) => {
3537
4325
  let n = e.getOperation()?.name;
3538
4326
  n !== "insertCells" && n !== "deleteCells" || t.markStructuralChange();
3539
- } }), i = G.addListeners({ onSheetsChange: () => {
3540
- let e = G.getSheets().getItems();
4327
+ } }), i = K.addListeners({ onSheetsChange: () => {
4328
+ let e = K.getWorksheets().getItems();
3541
4329
  (e.length !== n.length || e.some((e, t) => e !== n[t])) && t.markStructuralChange(), n = e;
3542
4330
  } });
3543
- G.addListeners({ onClose: () => {
3544
- r(), i(), w(G);
4331
+ K.addListeners({ onClose: () => {
4332
+ r(), i(), Be(K);
3545
4333
  } });
3546
4334
  }
3547
4335
  }
3548
- if (ne.length && ie?.onWarning) {
4336
+ if (b.length && ie?.onWarning) {
3549
4337
  let e = /* @__PURE__ */ new Set();
3550
- for (let t of ne) {
4338
+ for (let t of b) {
3551
4339
  let [n, r, i] = t, a = i ?? n;
3552
4340
  e.has(a) || (e.add(a), ie.onWarning(n, r));
3553
4341
  }
3554
4342
  }
3555
- return x && !0 === l && console.table(x.toTable()), G;
4343
+ return y && !0 === d && console.table(y.toTable()), await K.whenFontsReady(), K;
3556
4344
  } catch (e) {
3557
4345
  let t = "Unable to parse XLSX.";
3558
- throw e instanceof r && (t = "Unable to open XLSX. There are too many rows or columns."), Error(t, { cause: e });
4346
+ throw e instanceof o && (t = "Unable to open XLSX. There are too many rows or columns."), Error(t, { cause: e });
3559
4347
  } finally {
3560
- await N.close().catch(() => {});
4348
+ await O.close().catch(() => {});
3561
4349
  }
3562
4350
  };
3563
- export { je as i, Yt as n, V as r, tn as t };
4351
+ export { ar as a, tr as i, Ln as n, ur as r, hr as t };