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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/browser/cjs/BClFnd-voK5qaz1I.cjs +88 -0
  2. package/browser/cjs/{Cf902jiI4KmAo0xm.cjs → BEJFcqVMDMKOvs11.cjs} +1 -1
  3. package/browser/cjs/BF-38Z7Z0FZOPl192.cjs +1 -0
  4. package/browser/cjs/{BREMLtxkQhtNSVra.cjs → BF14ZEAnaqxXroSj.cjs} +1 -1
  5. package/browser/cjs/{Ca4DwcXOTqVuUOVq2.cjs → BFdq8CHyR6FQvmQA2.cjs} +1 -1
  6. package/browser/cjs/{DMNRMppC1tGKEiCa2.cjs → BKXFdLiztqEHIjQ_2.cjs} +1 -1
  7. package/browser/cjs/{Bf__CHuG3Xml-c51.cjs → BbEwESVyRYXzMlW7.cjs} +2 -2
  8. package/browser/cjs/BjgiE9MBDkKiRL6q.cjs +3 -0
  9. package/browser/cjs/Byl4bQWpLnjthChn2.cjs +7 -0
  10. package/browser/cjs/BzsAbsb35hYT3xUc.cjs +5 -0
  11. package/browser/cjs/{DOkSIS6STTVNDKfk.cjs → C0hGnOYkvrwxaGrw.cjs} +1 -1
  12. package/browser/cjs/{CFnnvEHNOFcAUaHE.cjs → C7GpcB_YgM-RLa2P.cjs} +1 -1
  13. package/browser/cjs/C8GZf3UAOhfisYCs.cjs +1 -0
  14. package/browser/cjs/{BhZ21zg_gpygQ79x2.cjs → C9L-xibuJ434Mqqq2.cjs} +1 -1
  15. package/browser/cjs/CEXs4eRDOv4EjbSw2.cjs +1 -0
  16. package/browser/cjs/{CJGPlP_eqUiNvS8J2.cjs → CEpXnHhrczUmIwMa2.cjs} +1 -1
  17. package/browser/cjs/{0udzrkQg8Nf9nRbI.cjs → CLXzYSmhCHV5LQh7.cjs} +1 -1
  18. package/browser/cjs/{CFSMFEE8YXmRYGPL.cjs → CN-dCAHVcxuMSyFz.cjs} +1 -1
  19. package/browser/cjs/CZfNBCd62H_Jpkhl.cjs +12 -0
  20. package/browser/cjs/{CUCXS7BrMsSnSXVr.cjs → Ck7Tc5npWk73wrF3.cjs} +2 -2
  21. package/browser/cjs/{BFDhFIqPaIRivcO3.cjs → CnjaTz8HJXStwuH8.cjs} +1 -1
  22. package/browser/cjs/CoiPEZabJyiXxLta.cjs +1 -0
  23. package/browser/cjs/{pb5LnC0Ye1NBoRvg.cjs → Cu0UCwSpRK4OnCuP.cjs} +1 -1
  24. package/browser/cjs/{C1nECuaXDUkYlVQY2.cjs → D-o-mlG9tYSuZrvy2.cjs} +1 -1
  25. package/browser/cjs/DAA0zpvkrMOLDPxr.cjs +1 -0
  26. package/browser/cjs/{Bf2M1sdVR89d3yxg.cjs → DAXgAEDtRrsWAePT.cjs} +1 -1
  27. package/browser/cjs/{BHgdQUCqHS6ORa7c.cjs → DMp9wql2kbZKAbGe.cjs} +1 -1
  28. package/browser/cjs/{B37bgauMls6bQwyP.cjs → DQTBgNqDHInvxrwS.cjs} +1 -1
  29. package/browser/cjs/DcHxh5QxfVitzdhv.cjs +1 -0
  30. package/browser/cjs/{CctPhNbQyX8s8ExI.cjs → DgGGzl7jq3i7Cqfi.cjs} +1 -1
  31. package/browser/cjs/{CcLfDX6uHge33mwb2.cjs → Dkgu60euhL6wPoYa2.cjs} +1 -1
  32. package/browser/cjs/DsgqbxMOVQmAFSDy2.cjs +1 -0
  33. package/browser/cjs/{1KM7qHlz__nQ218X2.cjs → DtaFdoK4CppKRF6F2.cjs} +1 -1
  34. package/browser/cjs/Dtc_8P-koQRmNT2s.cjs +33 -0
  35. package/browser/cjs/{BOLM1QOvxUKhYbK5.cjs → FUM_3mQlC-6WPjkT.cjs} +1 -1
  36. package/browser/cjs/IbciPMJP2Pam3ERm.cjs +1 -0
  37. package/browser/cjs/{DCoIIJyPtSyIsTJb.cjs → J7LQgueGGNUE9emR.cjs} +1 -1
  38. package/browser/cjs/{Dl_WSCZ-dmkNHosq.cjs → M19oMY91yZxf2WAR.cjs} +1 -1
  39. package/browser/cjs/NzAMMcPT7SETmqPg.cjs +2 -0
  40. package/browser/cjs/{DtgmpiVT0_CaM-eU2.cjs → QK9BfdSZPLmyRpGi2.cjs} +1 -1
  41. package/browser/cjs/{VRIZX6-JADRk2Iao.cjs → X1LnR885SNQaK5HZ.cjs} +1 -1
  42. package/browser/cjs/{CLb55xtEE2qOnXPJ2.cjs → Y78-VwYSNffwXRVz2.cjs} +1 -1
  43. package/browser/cjs/bpcQTcfzGVBK-rfT2.cjs +1 -0
  44. package/browser/cjs/index.cjs +2 -2
  45. package/browser/cjs/{hI9m9CzcSN-spUI2.cjs → iyvcAhhnDFxkR8tW.cjs} +1 -1
  46. package/browser/cjs/jIxFDc3EQDDXisAC2.cjs +1 -0
  47. package/browser/cjs/{BqJIWrtud1IdCny_.cjs → kqP-W5qRIy-d-ChZ.cjs} +1 -1
  48. package/browser/cjs/{CwBld2h5K_-uk804.cjs → mXzhcays1ok40iiU.cjs} +1 -1
  49. package/browser/cjs/{udZZuwSKdGYCjFsn.cjs → n4ZQ0-3uSrEsInbg.cjs} +1 -1
  50. package/browser/cjs/{BC9dJX0j0S8cLlfd.cjs → sFD2bsTPq558FCMx.cjs} +1 -1
  51. package/browser/cjs/{COpCKLHQ5jF_IoiS2.cjs → stXrcKZOIHl0fq5U2.cjs} +1 -1
  52. package/browser/cjs/{KzrnzN7NeOPdB-Ic.cjs → zEytED4Eleo5DVvS.cjs} +1 -1
  53. package/browser/esm/{DBVG6J7cidK5K5QE.mjs → -9NsA_4pZqcEQBX7.mjs} +6 -6
  54. package/browser/esm/{CMBLrQ2K32IKaZHu.mjs → 5LJ1sC7IPn109Ien.mjs} +2 -2
  55. package/browser/esm/{GjOmlUOFqz90L-9x2.mjs → 6A8iYjFWJzx5PaTP2.mjs} +8 -8
  56. package/{cdn/assets/COgR28nGHeL59WLY.js → browser/esm/B-dSKzg5shPDd733.mjs} +1 -1
  57. package/{cdn/assets/MIcNDPtZ2tOqEJLi.js → browser/esm/B3tC7wY_kUGXf5sb2.mjs} +1 -1
  58. package/browser/esm/{CZVi5-MceLzKtZCX2.mjs → B4fSPDN923nqCDVE2.mjs} +1 -1
  59. package/browser/esm/{qxXoiVui214rfZng2.mjs → B6bX01HNxwBooBTX2.mjs} +15 -15
  60. package/browser/esm/{B9yaWiEn9khUlCmT.mjs → B9t9fF8FNCLomgK_.mjs} +12 -8
  61. package/browser/esm/{D0OOkDRea_6_jbt2.mjs → BBhB25AlKEzdoI0V.mjs} +1 -1
  62. package/{cdn/assets/Ds-v1MKCCCRK5y__.js → browser/esm/BGAXiHOiX_PZ1ww12.mjs} +1 -1
  63. package/{cdn/assets/BsGIsDAUk9bSNC2-.js → browser/esm/BGWyNjrM55ce-D1o2.mjs} +1 -1
  64. package/browser/esm/{Bi2jbQd8mecebnRM2.mjs → BJQfvwvEke-uN0_02.mjs} +12 -4
  65. package/browser/esm/{BVGcECvfrJsTA5kD.mjs → BOMct7uvqiNJIS63.mjs} +2 -2
  66. package/{cdn/assets/BkgfJjCizaRuC_N5.js → browser/esm/BPAEbeXV75XIAS4n2.mjs} +1 -1
  67. package/{cdn/assets/D5F6MTHIhDIafUlO.js → browser/esm/BPwpFe7c1-F62aAU.mjs} +2 -2
  68. package/{cdn/assets/7R7r4iHAxN8rnOmW2.js → browser/esm/BQt5lpPjssz4Lvhs.mjs} +2 -2
  69. package/{cdn/assets/9XJnug1pfQreKXZr.js → browser/esm/BRBHACVjnV1_6VLQ2.mjs} +1 -1
  70. package/browser/esm/BT2mYkpZGrhWovkv2.mjs +238 -0
  71. package/browser/esm/{9LhOHxxuP2jO-YDv.mjs → BUKNpzG26V0YaAzW.mjs} +12 -12
  72. package/browser/esm/{BfmngO7uzIcK9Lux2.mjs → BZSAb1WGbwagUKGv2.mjs} +5 -5
  73. package/browser/esm/{BFIwPtz-TW4VvaZR.mjs → BZkd8LNLgEd5WQXO2.mjs} +1 -1
  74. package/{cdn/assets/Ccj-Gq_hyRtb93R-.js → browser/esm/B_U_UpQXdbjNRthb.mjs} +1 -1
  75. package/browser/esm/{Ba0_2fGhHSS7kV2l2.mjs → BaIe3fLfPLw3FbYP2.mjs} +1 -1
  76. package/browser/esm/{B27wXIrrKNvUzMGE.mjs → Bc2Dp6W4U_22cv7c.mjs} +1 -1
  77. package/{cdn/assets/DwGeIZ6nCjk9UiXk.js → browser/esm/Bce8ZTUCpXr5Y_zl.mjs} +1 -1
  78. package/browser/esm/{ioECgEEk-HCEo_qL.mjs → BetL7yI63lEdQ0gM.mjs} +1 -1
  79. package/browser/esm/{DJl3zpaAG7xtX-vB.mjs → BgNWvKfVoVgVVDB4.mjs} +13 -13
  80. package/browser/esm/{CZDNrQuttGG8SW_a2.mjs → BgwHVPZp494SgQ0d2.mjs} +7 -7
  81. package/browser/esm/{DRU8HlvNdJ-IdDad2.mjs → Bj3gyDL2ZJUDcxt72.mjs} +8 -8
  82. package/{cdn/assets/DavD7unX6vAvDq492.js → browser/esm/BjYIAiuzZbD-dk822.mjs} +1 -1
  83. package/{cdn/assets/Cl5KKGUmrf4e7lB3.js → browser/esm/Bjx-9lUaScF5-Hki2.mjs} +1 -1
  84. package/browser/esm/{ejd62mg_zHpVGhbH.mjs → BkBT2LB95lonIiBu.mjs} +7 -7
  85. package/{cdn/assets/_fGcdybbKg6_ekOp.js → browser/esm/BmTSjuGI87QqMA-a.mjs} +2 -2
  86. package/browser/esm/{BmNqTvvRVjF_c1qz.mjs → BqMvXD8dX4ksYjnj.mjs} +3 -3
  87. package/{cdn/assets/BJkZVLqBoBngX2V-.js → browser/esm/BrUe0MnOhxzeOngn2.mjs} +1 -1
  88. package/browser/esm/{D8iYbJIpITf1DL9N.mjs → BsP1iPcd49wYIIoP.mjs} +3 -3
  89. package/browser/esm/{Dnk-x1RHZ-HCYKGy2.mjs → BxecIrskOMQZB-Xc.mjs} +1 -1
  90. package/browser/esm/{B9epCKVFFaq_fX4j.mjs → ByJMrAYRARLc7uZQ2.mjs} +1 -1
  91. package/browser/esm/{Dr0aqIJxcsRdzQox2.mjs → Bz3-FDGVU67Izdnv2.mjs} +7 -7
  92. package/browser/esm/{DzujlnEzr0M92mNz.mjs → BzktrYJH7SQ9GyUI.mjs} +1 -1
  93. package/browser/esm/{CbGZtQlImYkXEGhI.mjs → C3dXBjR3SrDCdJlm.mjs} +6 -6
  94. package/browser/esm/{CTZpbsb07-ieZ8Sv.mjs → C4vqrW3EmJDy1otX.mjs} +1 -1
  95. package/browser/esm/{DqJYCOxMI0h7olt5.mjs → C7xBBqvPqat9oEft.mjs} +1 -1
  96. package/browser/esm/{D2fjpIsYf8xbJ3qt2.mjs → CBC_MJL6Bwk7bzQz.mjs} +1 -1
  97. package/browser/esm/{ytk4-EolaWr77_nC.mjs → CBuulf8RrSItPZJi.mjs} +2 -2
  98. package/browser/esm/{BnFl2afy78teEcaD.mjs → CElACTFuqPAnCAMJ.mjs} +4 -4
  99. package/browser/esm/{Btdn9KXWaFikV2VI.mjs → CFVzVz9BCRBowBea.mjs} +3 -3
  100. package/browser/esm/{ZFZ3X4ek1OFa4xKm.mjs → CFtsbobCiLpZIzCh.mjs} +3 -3
  101. package/browser/esm/{GzFeH6oCN6eWnXbX.mjs → CHmSnCPoww1StSta.mjs} +4 -4
  102. package/browser/esm/{DvFh-0k-PvKrKwkt.mjs → CJ-lOo2cXlcYrg2P.mjs} +5 -5
  103. package/browser/esm/{DL-6XEhXlHkvgtF_2.mjs → CJGlwQusOCSy9ZAb2.mjs} +1 -1
  104. package/browser/esm/{B6mzT3jt8PsKgBWH2.mjs → CRsnKeHAnKrWvuG52.mjs} +1271 -1233
  105. package/browser/esm/{uwB2_ERsYGldq4on2.mjs → CTwLETvNO4KeXbkK2.mjs} +1 -1
  106. package/{cdn/assets/BVRLpEysZKAgHCqC.js → browser/esm/CXDtDYyREwoFwtMJ2.mjs} +1 -1
  107. package/browser/esm/{AS-KiFBez1nwB_vC.mjs → CXlA71yGA1Hqvp_S.mjs} +5 -5
  108. package/browser/esm/{DafUQqzTsegjuTX92.mjs → CY4ANhbzXqZMJPnL2.mjs} +7 -7
  109. package/browser/esm/{DbmQdZUcujE_ICGk.mjs → Ca6NSkWoi9DvRJjQ.mjs} +3 -3
  110. package/{cdn/assets/zsqoPH22vSCRd7nP.js → browser/esm/CbJ_xQftC08KrH3E2.mjs} +1 -1
  111. package/{cdn/assets/BIklj1nwWIcZCmKp.js → browser/esm/Cd8G1nX1dKzp-mho2.mjs} +1 -1
  112. package/{cdn/assets/Dwplym5bjb2VhwM82.js → browser/esm/CfjG7gHJ4oN60Clj.mjs} +3 -3
  113. package/{cdn/assets/ClIlIFc_63tI2r9S.js → browser/esm/CmYCYFWjq9KP6xw72.mjs} +1 -1
  114. package/browser/esm/{CQhIZf112hMPFsjD2.mjs → CpEgh9EOkeMvwAuj.mjs} +1 -1
  115. package/{cdn/assets/D-YuVmmS-kKcV9xr2.js → browser/esm/CsKCqLuggHhYC93k2.mjs} +1 -1
  116. package/{cdn/assets/D_olfPNNH0l8JrFu.js → browser/esm/CxKAnYBWCYMkUpnr.mjs} +234 -228
  117. package/browser/esm/{DnS-xX8jkMERhPbF.mjs → Cye91DfKIFwRdDpF.mjs} +8 -8
  118. package/{cdn/assets/HA0CYoHHAU5VgVW5.js → browser/esm/D2Ls6urWeByV5W-B2.mjs} +1 -1
  119. package/browser/esm/{DeY3vEbV4T2WgYP22.mjs → D4aK0uTRJQpM6392.mjs} +1 -1
  120. package/{cdn/assets/BCcFKm-VY0gZ0TzZ.js → browser/esm/D5BuXc-kVnr6Xiae.mjs} +1 -1
  121. package/browser/esm/{Bp1kaqNxSV0Hskwb.mjs → D8zyGG6yt4CsyA8K.mjs} +7 -7
  122. package/{cdn/assets/DUVV-c3N8XuG8lyr.js → browser/esm/DENx9Ts-f8adXw3Y2.mjs} +1 -1
  123. package/browser/esm/{BVLamiPGpKQKiyPW2.mjs → DER7-kADXFnTmK-32.mjs} +13 -13
  124. package/browser/esm/{CshVZ7dBZzXK1qdP.mjs → DFQGftDcmDwUGxV8.mjs} +5 -5
  125. package/browser/esm/{C8KBkOocNYDNWBDu.mjs → DGfzktq0BrIwcb8j.mjs} +2 -2
  126. package/browser/esm/{B-cVGeAqeE1MJbcg2.mjs → DHQcJqD-EtJ0Efug2.mjs} +9 -9
  127. package/browser/esm/{DyDgU8THo8GBGQ4M.mjs → DJSXXWTUJGbXqLLx.mjs} +1 -1
  128. package/browser/esm/{me8l7609yOrUhpBU2.mjs → DJk14sSSnSHiEXZ72.mjs} +1 -1
  129. package/{cdn/assets/Wy-cTg0gDeXuKv0a.js → browser/esm/DLArQtAbWAarI8od2.mjs} +1 -1
  130. package/{cdn/assets/CwRqY3jy0pkU72Ty.js → browser/esm/DM4g0nYgYXgI44dL2.mjs} +1 -1
  131. package/browser/esm/{BfkghIcy-zOKLz4c.mjs → DOIVDuyf7YyJZjcD.mjs} +2 -2
  132. package/{cdn/assets/DcTAnKNgB4UiSyH-2.js → browser/esm/DOsKUeLPwFIdzQv32.mjs} +1 -1
  133. package/{cdn/assets/B609gZLpNve9hsr-.js → browser/esm/DRAYZ0SGlbCLkftR2.mjs} +1 -1
  134. package/browser/esm/{DMXx0lIMiLsQgbVK.mjs → DSWdYe7SDB5cYWo5.mjs} +5 -5
  135. package/browser/esm/{BZ6ssyp3xvgxb4Ux2.mjs → D_8B8jIlshd3eTIO2.mjs} +11 -11
  136. package/{cdn/assets/TikP0KAVISVw72_42.js → browser/esm/DdaO25i-WWFSh1W0.mjs} +321 -313
  137. package/{cdn/assets/BwbtHh-oXpG5mLZu2.js → browser/esm/DdtDlBp6KJZjL28o.mjs} +1119 -1046
  138. package/browser/esm/{DpjPEgS5W70lK0GU.mjs → DhW7Cqyuxk7D6zsW.mjs} +12 -12
  139. package/browser/esm/{B3N4rAHBBKghSNf-.mjs → DhgwMDb052opCiAA.mjs} +1895 -1513
  140. package/{cdn/assets/CKGUrocJnCQ7uGt72.js → browser/esm/DimkHq0_x-d4uNdV.mjs} +4716 -3854
  141. package/{cdn/assets/CpD0Rq1ei0UW4wvV2.js → browser/esm/DjS4iUli-T3uuUfK.mjs} +1 -1
  142. package/{cdn/assets/q1AmoBDraQE-T8im2.js → browser/esm/DmqS0kz7jvlOw3qr.mjs} +2 -2
  143. package/browser/esm/{BJhMeXHgj2izJPad.mjs → DnCkPg9-xb3RvxD-.mjs} +7 -7
  144. package/browser/esm/{Z4L_LGr5jeXjCPo6.mjs → DnMUizHKSRwWpO_7.mjs} +1 -1
  145. package/{cdn/assets/CDVkQjbphikzy5cP.js → browser/esm/DrKUGkrCTKZHu8XC.mjs} +1 -1
  146. package/browser/esm/{CtPuA7JjziKZTOy4.mjs → DtkqR-Hu7K4agnCs.mjs} +1 -1
  147. package/browser/esm/{tEoFD7IKo7vDcL80.mjs → DuJ_gK9f35IbKDd6.mjs} +846 -812
  148. package/browser/esm/{CTpri2fSv5dZbUwJ.mjs → Duo6t8_BzIiBDrFm.mjs} +4086 -3710
  149. package/browser/esm/{DJoktru8Ln1idAEk2.mjs → Dwko6HB2zePBBeBu2.mjs} +7 -7
  150. package/browser/esm/{CCH2N2D6f4m3sxHV.mjs → DxxlSejA2S6YUPWD.mjs} +242 -224
  151. package/browser/esm/{CukE7coIERV0PmeU2.mjs → DygUxASTETZM60uN2.mjs} +6 -6
  152. package/browser/esm/{C0Cbiq1ZKs0s-oUn.mjs → Eszk9OugmYOhaS2s.mjs} +2 -2
  153. package/browser/esm/{CVtQ8m0S6nnXk7XH.mjs → FAHIw2t7_M_rvRio.mjs} +6 -6
  154. package/browser/esm/{39GslBYZKZUJpjcX.mjs → FVJ1akngxeMiYwPa.mjs} +1 -1
  155. package/browser/esm/{DYhGe1HslNmi3MWF.mjs → HFqcMD9nTL0jdLxT.mjs} +1 -1
  156. package/browser/esm/{COZ775SOX8hXz68T2.mjs → L6LjzOx1G9Idjtxa2.mjs} +1 -1
  157. package/{cdn/assets/BJahzXLdJMKJrGJ82.js → browser/esm/MHuhAgQAA8zcnWkd.mjs} +1 -1
  158. package/browser/esm/{CH-EdTSDEYE7IaBC.mjs → N-koparnupMSl92y.mjs} +665 -603
  159. package/browser/esm/{0HCb-Mkw8Otpj9B6.mjs → O982fBwJ80FSdhad.mjs} +43 -43
  160. package/browser/esm/{BrmKrgxwVxzOs8v9.mjs → PAu9erpoOTNzgNbN.mjs} +2 -2
  161. package/{cdn/assets/BXzrl80_N9hn_3462.js → browser/esm/PzCXbVRf1jOHVOAw.mjs} +1 -1
  162. package/browser/esm/{C5wklWg-nVHGfhda.mjs → XBb7Mxqf0beXaSJt.mjs} +6 -6
  163. package/browser/esm/{TJB9Rw8_wY-D-aKa2.mjs → Ykh10IaXTKA2XWot.mjs} +1 -1
  164. package/browser/esm/{CTdaEmBnApCaYU--.mjs → esX6dx06TUUL-cRt.mjs} +1 -1
  165. package/{cdn/assets/D4e9Z6yAYtli_UZy.js → browser/esm/evPbHV86yom22yGf2.mjs} +1150 -1087
  166. package/{cdn/assets/CTsLj1vEfSqm_tm4.js → browser/esm/g8dDbkwbYjhKWJM22.mjs} +1 -1
  167. package/browser/esm/{IPVHjbNIjyMsOxUR.mjs → hsy1zALC1oNNm5Sf.mjs} +1 -1
  168. package/browser/esm/index.mjs +6 -6
  169. package/browser/esm/{BXOm0hdx068QsENe.mjs → ohVj-y1gCC9PEHJI.mjs} +3 -3
  170. package/browser/esm/{BwYNDge9HsfAlKEk.mjs → pFBVGSvmImMMDMuJ.mjs} +5 -5
  171. package/browser/esm/{BKY2gKXOB637hih-.mjs → s4trFf5sOSGNEzr3.mjs} +6 -6
  172. package/cdn/assets/{CMBLrQ2K32IKaZHu.js → 5LJ1sC7IPn109Ien.js} +2 -2
  173. package/cdn/assets/{CyhnDYQf3_cdp52w2.js → 6L6HfOFw1xzxXtf22.js} +216 -198
  174. package/{browser/esm/COgR28nGHeL59WLY.mjs → cdn/assets/B-dSKzg5shPDd733.js} +1 -1
  175. package/cdn/assets/{CXULuRUQ4TAsm84q.js → B0N6rTGGJN2DZPaf.js} +2 -2
  176. package/cdn/assets/{Dp_KsQdcEefYydgO2.js → B2BvBxjz3Kfii_Gn2.js} +1532 -1494
  177. package/cdn/assets/{CWdwxTP6ZBP_KJE42.js → B3ZyfwskutLZMYfl2.js} +7 -7
  178. package/{browser/esm/MIcNDPtZ2tOqEJLi.mjs → cdn/assets/B3tC7wY_kUGXf5sb.js} +1 -1
  179. package/{browser/esm/CkRTvOlXWFrTaFLB.mjs → cdn/assets/B4492m5zRjz4JWIo2.js} +1119 -1046
  180. package/cdn/assets/{CZVi5-MceLzKtZCX.js → B4fSPDN923nqCDVE.js} +1 -1
  181. package/{browser/esm/DCILZE5X4dLAM7Qa.mjs → cdn/assets/B6Y_HasaiihQLVYz2.js} +321 -313
  182. package/cdn/assets/{olHQykNiRoLYpdJB.js → B8ok93z6wOu1Mo5H.js} +5 -5
  183. package/cdn/assets/{B9HUtdLQ29C5hAM2.js → BF9yh58xfvR0KbSo.js} +2 -2
  184. package/{browser/esm/Ds-v1MKCCCRK5y__2.mjs → cdn/assets/BGAXiHOiX_PZ1ww1.js} +1 -1
  185. package/{browser/esm/BsGIsDAUk9bSNC2-2.mjs → cdn/assets/BGWyNjrM55ce-D1o.js} +1 -1
  186. package/cdn/assets/{nzKpfea1MNkFBMak.js → BIPjogMyMmLRly43.js} +7 -7
  187. package/{browser/esm/gd127f9DAewQX3YF.mjs → cdn/assets/BO2NRW9sjHGE9tg-2.js} +2 -2
  188. package/cdn/assets/{DfzSY0wpTYYTWIY2.js → BOTU30yJHbaNehFS.js} +8 -8
  189. package/{browser/esm/BkgfJjCizaRuC_N52.mjs → cdn/assets/BPAEbeXV75XIAS4n.js} +1 -1
  190. package/{browser/esm/9XJnug1pfQreKXZr2.mjs → cdn/assets/BRBHACVjnV1_6VLQ.js} +1 -1
  191. package/cdn/assets/{BQvxcrhV7qxXjTHq.js → BZXvEddjoz4C8y4w.js} +2 -2
  192. package/cdn/assets/{BFIwPtz-TW4VvaZR2.js → BZkd8LNLgEd5WQXO.js} +1 -1
  193. package/{browser/esm/Ccj-Gq_hyRtb93R-.mjs → cdn/assets/B_U_UpQXdbjNRthb.js} +1 -1
  194. package/cdn/assets/{Ba0_2fGhHSS7kV2l.js → BaIe3fLfPLw3FbYP2.js} +1 -1
  195. package/cdn/assets/{B27wXIrrKNvUzMGE2.js → Bc2Dp6W4U_22cv7c2.js} +1 -1
  196. package/{browser/esm/DwGeIZ6nCjk9UiXk2.mjs → cdn/assets/Bce8ZTUCpXr5Y_zl2.js} +1 -1
  197. package/cdn/assets/{s_afm7GAx-6Ktr_x.js → BdhFhDEa7Xed6dFE.js} +17330 -16955
  198. package/cdn/assets/{B102zq0Z2de_ly2m.js → BdmCBWTVHb7KuHxO2.js} +672 -610
  199. package/cdn/assets/{ioECgEEk-HCEo_qL2.js → BetL7yI63lEdQ0gM2.js} +1 -1
  200. package/cdn/assets/{CTzZ6Xzw63GKixmU2.js → Bfd3T36ocASPZddR.js} +846 -812
  201. package/cdn/assets/{w9gI9mzOHGtRSOFe.js → Bh4hZt6639QZusIG.js} +2 -2
  202. package/cdn/assets/{DtFr2Mm_KqU6PZfY.js → Bj8bWbLg1IY965tK.js} +8 -8
  203. package/{browser/esm/CtCW25b0E8FaH1jL.mjs → cdn/assets/BjN8kU7URKZwGlmk2.js} +3 -3
  204. package/{browser/esm/DavD7unX6vAvDq49.mjs → cdn/assets/BjYIAiuzZbD-dk82.js} +1 -1
  205. package/{browser/esm/Cl5KKGUmrf4e7lB32.mjs → cdn/assets/Bjx-9lUaScF5-Hki.js} +1 -1
  206. package/{browser/esm/BZDhc9cFdvb2DZp52.mjs → cdn/assets/BouCHi6QnBrUDYkx.js} +1150 -1087
  207. package/{browser/esm/BJkZVLqBoBngX2V-2.mjs → cdn/assets/BrUe0MnOhxzeOngn.js} +1 -1
  208. package/cdn/assets/{Dnk-x1RHZ-HCYKGy.js → BxecIrskOMQZB-Xc.js} +1 -1
  209. package/cdn/assets/{B9epCKVFFaq_fX4j.js → ByJMrAYRARLc7uZQ.js} +1 -1
  210. package/cdn/assets/{CurA0H2pTTmFWY4N.js → BynqRVXFRplO7XgC.js} +2 -2
  211. package/{browser/esm/CpD0Rq1ei0UW4wvV.mjs → cdn/assets/BzktrYJH7SQ9GyUI2.js} +1 -1
  212. package/cdn/assets/{CTZpbsb07-ieZ8Sv.js → C4vqrW3EmJDy1otX.js} +1 -1
  213. package/cdn/assets/{DqJYCOxMI0h7olt52.js → C7xBBqvPqat9oEft2.js} +1 -1
  214. package/cdn/assets/{D2fjpIsYf8xbJ3qt.js → CBC_MJL6Bwk7bzQz2.js} +1 -1
  215. package/cdn/assets/{CzQUeHmA3XvLXm-s2.js → CDqMmEdh_CPaFCCi2.js} +16 -12
  216. package/cdn/assets/{BvONQrMoKCUSnkqN.js → CIgn8uIPaadIJP4a2.js} +10 -10
  217. package/cdn/assets/{DL-6XEhXlHkvgtF_.js → CJGlwQusOCSy9ZAb.js} +1 -1
  218. package/cdn/assets/{Boe-L-sc0zC0Cw5N.js → CLhSKL0Xdm8miSTy.js} +3 -3
  219. package/cdn/assets/{ByJlomQcLV_4oZGw2.js → CSkSOhGT8E29E2Nh2.js} +4 -4
  220. package/cdn/assets/{uwB2_ERsYGldq4on.js → CTwLETvNO4KeXbkK.js} +1 -1
  221. package/{browser/esm/BVRLpEysZKAgHCqC.mjs → cdn/assets/CXDtDYyREwoFwtMJ.js} +1 -1
  222. package/{browser/esm/CySaHP1TkAtt7IqW.mjs → cdn/assets/CXrcgTVB77CopjOJ.js} +2 -2
  223. package/cdn/assets/{Cge4sxB_4OwAQwod.js → CY7qR8ENX314HrrD.js} +3 -3
  224. package/cdn/assets/{CqFZWOO-31j7rHdf.js → Cb71rZAQvCk3wnfp.js} +6 -6
  225. package/{browser/esm/zsqoPH22vSCRd7nP2.mjs → cdn/assets/CbJ_xQftC08KrH3E.js} +1 -1
  226. package/cdn/assets/{C8cUmy4K0YRcXOBu2.js → CblzazoiTtSuaAkj.js} +9 -9
  227. package/{browser/esm/BIklj1nwWIcZCmKp2.mjs → cdn/assets/Cd8G1nX1dKzp-mho.js} +1 -1
  228. package/{browser/esm/B2pyobtSQ_9fn__o.mjs → cdn/assets/CdPxVRKpCOqCDHI8.js} +234 -228
  229. package/cdn/assets/{xH_Bg7r0fryoCvSl2.js → CgsQuAbp76UOAPHm2.js} +48 -48
  230. package/cdn/assets/{ko_gqiF0zCGAHO1l2.js → CimYGZTVXcjbjrBU2.js} +13 -13
  231. package/{browser/esm/ClIlIFc_63tI2r9S2.mjs → cdn/assets/CmYCYFWjq9KP6xw7.js} +1 -1
  232. package/cdn/assets/{DzRXZ_mhd60oh-A52.js → CnfGgjuCEyX-PYs_2.js} +12 -12
  233. package/cdn/assets/{CQhIZf112hMPFsjD.js → CpEgh9EOkeMvwAuj.js} +1 -1
  234. package/{browser/esm/D-YuVmmS-kKcV9xr.mjs → cdn/assets/CsKCqLuggHhYC93k.js} +1 -1
  235. package/cdn/assets/{CbWjq5gAF4Empxh12.js → CuIUyLNDoHvYMJaQ2.js} +14 -14
  236. package/{browser/esm/DD_-Q_s0aq0ehCRj.mjs → cdn/assets/D-tQc4bi3FzGVnFg.js} +2 -2
  237. package/{browser/esm/HA0CYoHHAU5VgVW5.mjs → cdn/assets/D2Ls6urWeByV5W-B.js} +1 -1
  238. package/cdn/assets/{DeY3vEbV4T2WgYP2.js → D4aK0uTRJQpM63922.js} +1 -1
  239. package/cdn/assets/{CVuIbopxUvt0-2rL.js → D57KcDfTbBzf_NGr.js} +7 -7
  240. package/{browser/esm/BCcFKm-VY0gZ0TzZ.mjs → cdn/assets/D5BuXc-kVnr6Xiae2.js} +1 -1
  241. package/cdn/assets/{dL4ou82v-pjouw0s2.js → DEFEOS3OuA23llF92.js} +12 -12
  242. package/{browser/esm/DUVV-c3N8XuG8lyr2.mjs → cdn/assets/DENx9Ts-f8adXw3Y.js} +1 -1
  243. package/cdn/assets/{WMPhjIQfI4mQp3Bg.js → DEyeWdXLwDRo2yYf2.js} +8 -8
  244. package/cdn/assets/{HfJJBylzZ4Z4VNp82.js → DGWhm91XZlY1GWHe2.js} +6 -6
  245. package/cdn/assets/{bY52psG3lmpa706j2.js → DJHOKENCVOJMx3aE2.js} +9 -9
  246. package/cdn/assets/{DyDgU8THo8GBGQ4M.js → DJSXXWTUJGbXqLLx.js} +1 -1
  247. package/cdn/assets/{me8l7609yOrUhpBU.js → DJk14sSSnSHiEXZ7.js} +1 -1
  248. package/{browser/esm/Wy-cTg0gDeXuKv0a2.mjs → cdn/assets/DLArQtAbWAarI8od.js} +1 -1
  249. package/{browser/esm/CwRqY3jy0pkU72Ty2.mjs → cdn/assets/DM4g0nYgYXgI44dL.js} +1 -1
  250. package/{browser/esm/DcTAnKNgB4UiSyH-2.mjs → cdn/assets/DOsKUeLPwFIdzQv32.js} +1 -1
  251. package/cdn/assets/{B0iMXJrxCR1TmwMa2.js → DP9sLYfGGWMDI7hL2.js} +8 -8
  252. package/cdn/assets/{kaSysgj5TE-xQXsG2.js → DQhvG3cP0HPB6giA2.js} +5 -5
  253. package/{browser/esm/B609gZLpNve9hsr-2.mjs → cdn/assets/DRAYZ0SGlbCLkftR.js} +1 -1
  254. package/cdn/assets/{DXnM0BURZgjm8R2W.js → DW2yQm-sEcHogX7E.js} +8 -8
  255. package/{browser/esm/BHdUUWliTWsGcyUW.mjs → cdn/assets/DY9zG4TdF0FAs_QP2.js} +2 -2
  256. package/cdn/assets/{CiIadd7oAsvq2iR9.js → DaX0_AkJxkaUnNT7.js} +7 -7
  257. package/cdn/assets/{CkqsTJkl1cuZl14R.js → DeFts-aGqB-RDuV1.js} +6 -6
  258. package/cdn/assets/{TGZuqw2NN_OSIJO0.js → Dgt8kua8CYlMRfdw.js} +2 -2
  259. package/cdn/assets/{BXRMXZjJExEHTMfL2.js → Dhq9e6LCpmlIkFod.js} +72 -72
  260. package/cdn/assets/{DWX7iaXMf0PrhOuh.js → DiKc6jzGM1isrN02.js} +3 -3
  261. package/cdn/assets/DjS4iUli-T3uuUfK.js +24 -0
  262. package/cdn/assets/DjS4iUli-T3uuUfK2.js +24 -0
  263. package/cdn/assets/{DZn5mtzClpE29qV5.js → DjfBSoaKM-vtbeqT.js} +2 -2
  264. package/cdn/assets/{r4hni7MWaP9SUvzC.js → DlLXCXDokJ72EW-E.js} +7 -7
  265. package/cdn/assets/{Z4L_LGr5jeXjCPo62.js → DnMUizHKSRwWpO_72.js} +1 -1
  266. package/cdn/assets/{Dctsk-QW8KKUje0b2.js → DoJfPxuL3zziG4p62.js} +13 -13
  267. package/cdn/assets/{CvC5oy9uXPzktYaz2.js → DpNYiOK112bFC3KK2.js} +11 -3
  268. package/cdn/assets/{SHgLeVOmAOO6qQOR2.js → Dq7WxMef5CTJ47QI2.js} +7 -7
  269. package/cdn/assets/{C6v7rU3plIdoUWre2.js → Dr1U0I01_KIa9vgR2.js} +8 -8
  270. package/{browser/esm/CDVkQjbphikzy5cP2.mjs → cdn/assets/DrKUGkrCTKZHu8XC.js} +1 -1
  271. package/cdn/assets/{CtPuA7JjziKZTOy42.js → DtkqR-Hu7K4agnCs2.js} +1 -1
  272. package/cdn/assets/{DacWhkcqwjK3VnAA2.js → Dy5Z2XIqS7-0tdjc2.js} +41 -41
  273. package/cdn/assets/{39GslBYZKZUJpjcX.js → FVJ1akngxeMiYwPa.js} +1 -1
  274. package/cdn/assets/{DYhGe1HslNmi3MWF2.js → HFqcMD9nTL0jdLxT2.js} +1 -1
  275. package/cdn/assets/{Cl2Y6toZDsktHGlZ.js → HeznPoDlSj26Q4lq.js} +2403 -2022
  276. package/cdn/assets/JL1xk8XqkuTOA_as2.js +239 -0
  277. package/cdn/assets/{BOSnQONqTqkqjHEU.js → KJzdwvEWwCwAXuo4.js} +6 -6
  278. package/cdn/assets/{COZ775SOX8hXz68T.js → L6LjzOx1G9Idjtxa.js} +1 -1
  279. package/{browser/esm/BJahzXLdJMKJrGJ8.mjs → cdn/assets/MHuhAgQAA8zcnWkd2.js} +1 -1
  280. package/{browser/esm/BDJXGdb3hQGrna00.mjs → cdn/assets/NZO3-fDBtqhmCsbB2.js} +4716 -3854
  281. package/{browser/esm/BXzrl80_N9hn_346.mjs → cdn/assets/PzCXbVRf1jOHVOAw.js} +1 -1
  282. package/cdn/assets/{Dm-vUbnccwQ63uHt.js → Wb48SedqaKMZnxym.js} +4 -4
  283. package/cdn/assets/{Dungsxp8KcjLsV23.js → Wsgx1I_j1chJ6hwn.js} +7 -7
  284. package/cdn/assets/{Dzxg4kLxKyMklPNe2.js → XSUr59k0gaFIS1Qf2.js} +3 -3
  285. package/cdn/assets/{TJB9Rw8_wY-D-aKa.js → Ykh10IaXTKA2XWot2.js} +1 -1
  286. package/cdn/assets/{CTdaEmBnApCaYU--2.js → esX6dx06TUUL-cRt.js} +1 -1
  287. package/{browser/esm/CTsLj1vEfSqm_tm42.mjs → cdn/assets/g8dDbkwbYjhKWJM2.js} +1 -1
  288. package/cdn/assets/{C5yCm-TSfx74xL002.js → hClmI7sWeaBbHo3W2.js} +12 -12
  289. package/cdn/assets/{IPVHjbNIjyMsOxUR2.js → hsy1zALC1oNNm5Sf.js} +1 -1
  290. package/cdn/assets/{BwJlIoU5gbBMo6Q5.js → llvXNxZaCMnYqvSm.js} +3 -3
  291. package/cdn/assets/{DMBv9-cZDNgrEPnj.js → omgRvCRxe7suvog8.js} +105 -105
  292. package/cdn/assets/{nBpkSj6rxz09lHp42.js → xMskoOI2CK9-AmBF2.js} +7 -7
  293. package/cdn/assets/{BO2RVHzXl9yxZmKM.js → zrS_ERBQML_OXJ4J.js} +3 -3
  294. package/cdn/index.js +2 -2
  295. package/package.json +3 -3
  296. package/browser/cjs/3xD-77z5V9IlNXjn2.cjs +0 -1
  297. package/browser/cjs/BH_9BSdzWI3sYvEo2.cjs +0 -1
  298. package/browser/cjs/BeYzZkmTef6nGcoR.cjs +0 -2
  299. package/browser/cjs/BtuU_zhIvl9orhXJ2.cjs +0 -1
  300. package/browser/cjs/BxP_CBFuJxlFVfJP2.cjs +0 -1
  301. package/browser/cjs/CBXWKzJggj62dtpP.cjs +0 -1
  302. package/browser/cjs/CVvPoEKURol1Aftd.cjs +0 -1
  303. package/browser/cjs/Cdi9twdv4KfAl5I72.cjs +0 -7
  304. package/browser/cjs/Crk724Yv2awixZFL.cjs +0 -33
  305. package/browser/cjs/DE8xPZdgqnIs7vdp.cjs +0 -86
  306. package/browser/cjs/Di-65J92p03pfERi.cjs +0 -5
  307. package/browser/cjs/LObFxO4TDyRQ2l05.cjs +0 -12
  308. package/browser/cjs/X5Grge615whs1q_I2.cjs +0 -1
  309. package/browser/cjs/Y37Q7YjNKfaPg9qC.cjs +0 -1
  310. package/browser/cjs/dJ3N_yPCcdiUsFNY.cjs +0 -3
  311. package/browser/cjs/jQhVJbABYXmAnYFf.cjs +0 -1
  312. package/browser/cjs/jgba8pT4LamzxlS8.cjs +0 -1
  313. package/browser/esm/EHwbgKRgADVAwQbs2.mjs +0 -193
  314. package/cdn/assets/COnOkTReK4TBuBx52.js +0 -194
  315. package/cdn/assets/D0OOkDRea_6_jbt2.js +0 -24
  316. package/cdn/assets/D0OOkDRea_6_jbt22.js +0 -24
  317. /package/browser/cjs/{BWDfauDHqB6U_2ka.cjs → BWDfauDHqB6U_2ka2.cjs} +0 -0
  318. /package/browser/cjs/{C2uDl8VIJqh58YF_.cjs → C2uDl8VIJqh58YF_2.cjs} +0 -0
  319. /package/browser/cjs/{CJYewYJ5Z3iojl7J2.cjs → CJYewYJ5Z3iojl7J.cjs} +0 -0
  320. /package/browser/cjs/{CV4KQsHluMqo1I2Q.cjs → CV4KQsHluMqo1I2Q2.cjs} +0 -0
  321. /package/browser/cjs/{CW-b31_-r-_raT8Y2.cjs → CW-b31_-r-_raT8Y.cjs} +0 -0
  322. /package/browser/cjs/{CXlzsh_WHCOsErJ1.cjs → CXlzsh_WHCOsErJ12.cjs} +0 -0
  323. /package/browser/cjs/{Clu7XiAsCB48GDXN2.cjs → Clu7XiAsCB48GDXN.cjs} +0 -0
  324. /package/browser/cjs/{CnZfa45XxA-9Jhmp2.cjs → CnZfa45XxA-9Jhmp.cjs} +0 -0
  325. /package/browser/cjs/{CpJJh4UnFl1_qFui2.cjs → CpJJh4UnFl1_qFui.cjs} +0 -0
  326. /package/browser/cjs/{CrZlUtdX1h2RUnCP2.cjs → CrZlUtdX1h2RUnCP.cjs} +0 -0
  327. /package/browser/cjs/{D8-KovdJ0LjxqCe22.cjs → D8-KovdJ0LjxqCe2.cjs} +0 -0
  328. /package/browser/cjs/{DCIlWcGDrp-5PDoA.cjs → DCIlWcGDrp-5PDoA2.cjs} +0 -0
  329. /package/browser/cjs/{h3dw1jAp2J5Pu4p3.cjs → h3dw1jAp2J5Pu4p32.cjs} +0 -0
  330. /package/browser/cjs/{z_rZE1OHFPpdGBh4.cjs → z_rZE1OHFPpdGBh42.cjs} +0 -0
@@ -1 +0,0 @@
1
- const e=require("./BnccBYHCCq9TGFx4.cjs"),t=require("./DDPxHIqx8aIbqTRE.cjs"),n=require("./Crk724Yv2awixZFL.cjs"),r=require("./dJ3N_yPCcdiUsFNY.cjs"),i=require("./CHMgm0vAbEBS1mVW.cjs"),a=require("./BqJIWrtud1IdCny_.cjs"),o=require("./BeYzZkmTef6nGcoR.cjs");var s=new Uint8Array,c=class e{constructor(e,t,n){this.buffers=new Map,this.zip=e,this.entries=t,this.rawBuffer=n}static normalize(e){return e.startsWith(`/`)?e.slice(1):e}static async create(t){let n=t instanceof Blob?s:t instanceof Uint8Array?t:new Uint8Array(t),r=new o.L(t instanceof Blob?new o.u(t):new o.c(n)),i=new Map;for(let e of await r.getEntries())e.directory||i.set(e.filename,e);return new e(r,i,n)}getNames(){return[...this.entries.keys()]}has(t){return this.entries.has(e.normalize(t))}uncompressedSize(t){return this.entries.get(e.normalize(t))?.uncompressedSize??0}async getBuffer(t){let n=e.normalize(t),r=this.buffers.get(n);if(r)return r;let i=this.entries.get(n);if(!i)return null;let a=await i.getData(new o.m);return this.buffers.set(n,a),a}async prefetch(e){let t=[];for(let[n,r]of this.entries)!this.buffers.has(n)&&e(n,r)&&t.push(r.getData(new o.m).then(e=>{this.buffers.set(n,e)}));await Promise.all(t)}getEntry(t){return this.buffers.get(e.normalize(t))??null}async getTextStream(t,n){let r=this.entries.get(e.normalize(t));if(!r)return null;let i=new TransformStream;r.getData(i.writable).catch(()=>{});let a=i.readable.getReader(),o=new TextDecoder(`utf-8`);return new ReadableStream({async pull(e){let{value:t,done:r}=await a.read();if(r){let t=o.decode();t&&e.enqueue(t),e.close();return}n?.(t.byteLength);let i=o.decode(t,{stream:!0});i&&e.enqueue(i)}}).getReader()}getRawEntry(t){let n=this.entries.get(e.normalize(t));if(!n||n.encrypted)return null;let r=n.offset;if(r+30>this.rawBuffer.byteLength)return null;let i=new DataView(this.rawBuffer.buffer,this.rawBuffer.byteOffset+r,30);if(i.getUint32(0,!0)!==67324752)return null;let a=r+30+i.getUint16(26,!0)+i.getUint16(28,!0),o=a+n.compressedSize;return o>this.rawBuffer.byteLength?null:{data:this.rawBuffer.subarray(a,o),compressionMethod:n.compressionMethod,signature:n.signature}}async close(){await this.zip.close()}},l=class{constructor(e){this._sink=e,this._samples=[],this._t0=u(),this._tPrev=this._t0,this._heapPrev=d()}mark(e){let t=u(),n=d(),r={label:e,tMs:t-this._t0,dtMs:t-this._tPrev,heapBytes:n,dHeapBytes:n!==void 0&&this._heapPrev!==void 0?n-this._heapPrev:void 0,rssBytes:f()};this._tPrev=t,this._heapPrev=n,this._samples.push(r),this._sink?.(r)}samples(){return this._samples}toTable(){return this._samples.map(e=>({phase:e.label,tMs:Math.round(e.tMs),dtMs:Math.round(e.dtMs),heapMB:e.heapBytes===void 0?`—`:p(e.heapBytes/1048576),dHeapMB:e.dHeapBytes===void 0?`—`:p(e.dHeapBytes/1048576),rssMB:e.rssBytes===void 0?`—`:p(e.rssBytes/1048576)}))}},u=typeof performance==`object`&&typeof performance.now==`function`?()=>performance.now():()=>Date.now();function d(){let e=typeof performance==`object`?performance.memory:void 0;if(e&&typeof e.usedJSHeapSize==`number`)return e.usedJSHeapSize;let t=globalThis.process;return typeof t==`object`&&typeof t.memoryUsage==`function`?t.memoryUsage().heapUsed:void 0}function f(){let e=globalThis.process;if(typeof e==`object`&&typeof e.memoryUsage==`function`)return e.memoryUsage().rss}function p(e){return Math.round(10*e)/10}var m=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,h=`-${m}.0-9·̀-ͯ‿-⁀`,g=(RegExp(`^[${m}]$`,`u`),RegExp(`^[${h}]$`,`u`),RegExp(`^[${m}][${h}]*$`,`u`)),_=(RegExp(`^[${h}]+$`,`u`),[32,10,13,9]);function v(e){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}var y=`:A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,b=`-${y}.0-9·̀-ͯ‿-⁀`;RegExp(`^[${y}]$`,`u`),RegExp(`^[${b}]$`,`u`),RegExp(`^[${y}][${b}]*$`,`u`),RegExp(`^[${b}]+$`,`u`);var x=`A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿`,ee=`-${x}.0-9·̀-ͯ‿-⁀`,S=(RegExp(`^[${x}]$`,`u`),RegExp(`^[${ee}]$`,`u`),RegExp(`^[${x}][${ee}]*$`,`u`));function te(e){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}var C,w,T=function(e){return e===32||e===10||e===13||e===9},E=function(e){return e>=32&&e<=55295||e===10||e===13||e===9||e>=57344&&e<=65533||e>=65536&&e<=1114111},D=v,O=function(e){return v(e)||e>=48&&e<=57||e===45||e===46||e===183||e>=768&&e<=879||e>=8255&&e<=8256},k=_,A=g,j=function(e){return e>=1&&e<=55295||e>=57344&&e<=65533||e>=65536&&e<=1114111},M=te,N=function(e){return te(e)||e===45||e===46||e>=48&&e<=57||e===183||e>=768&&e<=879||e>=8255&&e<=8256},P=S,F=`http://www.w3.org/XML/1998/namespace`,I=`http://www.w3.org/2000/xmlns/`,ne={__proto__:null,xml:F,xmlns:I},L={__proto__:null,amp:`&`,gt:`>`,lt:`<`,quot:`"`,apos:`'`},R=-1,z=-2,B=13,V=33,H=10,U=60,W=61,G=62,K=63,re=93,ie=e=>e===34||e===39,ae=[34,39],oe=[...ae,91,G],se=[...ae,U,re],q=[W,K,...k],J=[...k,G,38,U];function ce(e,t,n){switch(t){case`xml`:n!==F&&e.fail(`xml prefix must be bound to ${F}.`);break;case`xmlns`:n!==I&&e.fail(`xmlns prefix must be bound to ${I}.`)}switch(n){case I:e.fail(t===``?`the default namespace may not be set to ${n}.`:`may not assign a prefix (even "xmlns") to the URI ${I}.`);break;case F:switch(t){case`xml`:break;case``:e.fail(`the default namespace may not be set to ${n}.`);break;default:e.fail(`may not assign the xml namespace to another prefix.`)}}}var le=e=>P.test(e),ue=e=>A.test(e),de={xmldecl:`xmlDeclHandler`,text:`textHandler`,processinginstruction:`piHandler`,doctype:`doctypeHandler`,comment:`commentHandler`,opentagstart:`openTagStartHandler`,attribute:`attributeHandler`,opentag:`openTagHandler`,closetag:`closeTagHandler`,cdata:`cdataHandler`,error:`errorHandler`,end:`endHandler`,ready:`readyHandler`},Y=class{get closed(){return this._closed}constructor(e){this.i=0,this.prevI=0,this.opt=e??{},this.fragmentOpt=!!this.opt.fragment;let t=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=!1!==this.opt.position,this.fileName=this.opt.fileName,t){this.nameStartCheck=M,this.nameCheck=N,this.isName=le,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...ne};let e=this.opt.additionalNamespaces;e!=null&&(function(e,t){for(let n of Object.keys(t))ce(e,n,t[n])}(this,e),Object.assign(this.ns,e))}else this.nameStartCheck=D,this.nameCheck=O,this.isName=ue,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}_init(){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=[];let{fragmentOpt:e}=this;this.state=e?B:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=e,this.xmlDeclPossible=!e,this.xmlDeclExpects=[`version`],this.entityReturnState=void 0;let{defaultXMLVersion:t}=this.opt;if(t===void 0){if(!0===this.opt.forceXMLVersion)throw Error(`forceXMLVersion set but defaultXMLVersion is not set`);t=`1.0`}this.setXMLVersion(t),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(L),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(e,t){this[de[e]]=t}off(e){this[de[e]]=void 0}makeError(e){let t=this.fileName??``;return this.trackPosition&&(t.length>0&&(t+=`:`),t+=`${this.line}:${this.column}`),t.length>0&&(t+=`: `),Error(t+e)}fail(e){let t=this.makeError(e),n=this.errorHandler;if(n===void 0)throw t;return n(t),this}write(e){if(this.closed)return this.fail(`cannot write after close.`);let t=!1;e===null?(t=!0,e=``):typeof e==`object`&&(e=e.toString()),this.carriedFromPrevious!==void 0&&(e=`${this.carriedFromPrevious}${e}`,this.carriedFromPrevious=void 0);let n=e.length,r=e.charCodeAt(n-1);!t&&(r===13||r>=55296&&r<=56319)&&(this.carriedFromPrevious=e[n-1],n--,e=e.slice(0,n));let{stateTable:i}=this;for(this.chunk=e,this.i=0;this.i<n;)i[this.state].call(this);return this.chunkPosition+=n,t?this.end():this}close(){return this.write(null)}getCode10(){let e=this.chunk,t=this.i;if(this.prevI=t,this.i++,t>=e.length)return R;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>=32||n===9)return n;switch(n){case H:return this.line++,this.column=0,this.positionAtNewLine=this.position,H;case 13:return e.charCodeAt(t+1)===H&&(this.i=t+2),this.line++,this.column=0,this.positionAtNewLine=this.position,z;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCode11(){let{chunk:e,i:t}=this;if(this.prevI=t,this.i=t+1,t>=e.length)return R;let n=e.charCodeAt(t);if(this.column++,n<55296){if(n>31&&n<127||n>159&&n!==8232||n===9)return n;switch(n){case H:return this.line++,this.column=0,this.positionAtNewLine=this.position,H;case 13:{let n=e.charCodeAt(t+1);n!==H&&n!==133||(this.i=t+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,z;default:return this.fail(`disallowed character.`),n}}if(n>56319)return n>=57344&&n<=65533||this.fail(`disallowed character.`),n;let r=65536+1024*(n-55296)+(e.charCodeAt(t+1)-56320);return this.i=t+2,r>1114111&&this.fail(`disallowed character.`),r}getCodeNorm(){let e=this.getCode();return e===z?H:e}unGet(){this.i=this.prevI,this.column--}captureTo(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode(),i=r===z,a=i?H:r;if(a===R||e.includes(a))return this.text+=n.slice(t,this.prevI),a;i&&(this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i)}}captureToChar(e){let{i:t}=this,{chunk:n}=this;for(;;){let r=this.getCode();switch(r){case z:this.text+=`${n.slice(t,this.prevI)}\n`,t=this.i,r=H;break;case R:return this.text+=n.slice(t),!1}if(r===e)return this.text+=n.slice(t,this.prevI),!0}}captureNameChars(){let{chunk:e,i:t}=this;for(;;){let n=this.getCode();if(n===R)return this.name+=e.slice(t),R;if(!O(n))return this.name+=e.slice(t,this.prevI),n===z?H:n}}skipSpaces(){for(;;){let e=this.getCodeNorm();if(e===R||!T(e))return e}}setXMLVersion(e){this.currentXMLVersion=e,e===`1.0`?(this.isChar=E,this.getCode=this.getCode10):(this.isChar=j,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){let e=this.i,t=this.skipSpaces();switch(this.prevI!==e&&(this.xmlDeclPossible=!1),t){case U:if(this.state=15,this.text.length!==0)throw Error(`no-empty text at start`);break;case R:break;default:this.unGet(),this.state=B,this.xmlDeclPossible=!1}}sDoctype(){let e=this.captureTo(oe);switch(e){case G:this.doctypeHandler?.(this.text),this.text=``,this.state=B,this.doctype=!0;break;case R:break;default:this.text+=String.fromCodePoint(e),e===91?this.state=4:ie(e)&&(this.state=3,this.q=e)}}sDoctypeQuote(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.q=null,this.state=2)}sDTD(){let e=this.captureTo(se);e!==R&&(this.text+=String.fromCodePoint(e),e===re?this.state=2:e===U?this.state=6:ie(e)&&(this.state=5,this.q=e))}sDTDQuoted(){let e=this.q;this.captureToChar(e)&&(this.text+=String.fromCodePoint(e),this.state=4,this.q=null)}sDTDOpenWaka(){let e=this.getCodeNorm();switch(this.text+=String.fromCodePoint(e),e){case 33:this.state=7,this.openWakaBang=``;break;case K:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){let e=String.fromCodePoint(this.getCodeNorm()),t=this.openWakaBang+=e;this.text+=e,t!==`-`&&(this.state=t===`--`?8:4,this.openWakaBang=``)}sDTDComment(){this.captureToChar(45)&&(this.text+=`-`,this.state=9)}sDTDCommentEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),this.state=e===45?10:8}sDTDCommentEnded(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===G?this.state=4:(this.fail(`malformed comment.`),this.state=8)}sDTDPI(){this.captureToChar(K)&&(this.text+=`?`,this.state=12)}sDTDPIEnding(){let e=this.getCodeNorm();this.text+=String.fromCodePoint(e),e===G&&(this.state=4)}sText(){this.tags.length===0?this.handleTextOutsideRoot():this.handleTextInRoot()}sEntity(){let{i:e}=this,{chunk:t}=this;t:for(;;)switch(this.getCode()){case z:this.entity+=`${t.slice(e,this.prevI)}\n`,e=this.i;break;case 59:{let n,{entityReturnState:r}=this,i=this.entity+t.slice(e,this.prevI);this.state=r,i===``?(this.fail(`empty entity name.`),n=`&;`):(n=this.parseEntity(i),this.entity=``),r===B&&this.textHandler===void 0||(this.text+=n);break t}case R:this.entity+=t.slice(e);break t}}sOpenWaka(){let e=this.getCode();if(D(e))this.state=34,this.unGet(),this.xmlDeclPossible=!1;else switch(e){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang=``,this.xmlDeclPossible=!1;break;case K:this.state=23;break;default:this.fail(`disallowed character in tag name`),this.state=B,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case`[CDATA[`: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),this.state=20,this.openWakaBang=``;break;case`--`:this.state=17,this.openWakaBang=``;break;case`DOCTYPE`:this.state=2,(this.doctype||this.sawRoot)&&this.fail(`inappropriately located doctype declaration.`),this.openWakaBang=``;break;default:this.openWakaBang.length>=7&&this.fail(`incorrect syntax.`)}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){let e=this.getCodeNorm();e===45?(this.state=19,this.commentHandler?.(this.text),this.text=``):(this.text+=`-${String.fromCodePoint(e)}`,this.state=17)}sCommentEnded(){let e=this.getCodeNorm();e===G?this.state=B:(this.fail(`malformed comment.`),this.text+=`--${String.fromCodePoint(e)}`,this.state=17)}sCData(){this.captureToChar(re)&&(this.state=21)}sCDataEnding(){let e=this.getCodeNorm();e===re?this.state=22:(this.text+=`]${String.fromCodePoint(e)}`,this.state=20)}sCDataEnding2(){let e=this.getCodeNorm();switch(e){case G:this.cdataHandler?.(this.text),this.text=``,this.state=B;break;case re:this.text+=`]`;break;default:this.text+=`]]${String.fromCodePoint(e)}`,this.state=20}}sPIFirstChar(){let e=this.getCodeNorm();this.nameStartCheck(e)?(this.piTarget+=String.fromCodePoint(e),this.state=24):e===K||T(e)?(this.fail(`processing instruction without a target.`),this.state=e===K?26:25):(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(e),this.state=24)}sPIRest(){let{chunk:e,i:t}=this;for(;;){let n=this.getCodeNorm();if(n===R)return void(this.piTarget+=e.slice(t));if(!this.nameCheck(n)){this.piTarget+=e.slice(t,this.prevI);let r=n===K;r||T(n)?this.piTarget===`xml`?(this.xmlDeclPossible||this.fail(`an XML declaration must be at the start of the document.`),this.state=r?V:27):this.state=r?26:25:(this.fail(`disallowed character in processing instruction name.`),this.piTarget+=String.fromCodePoint(n));break}}}sPIBody(){if(this.text.length===0){let e=this.getCodeNorm();e===K?this.state=26:T(e)||(this.text=String.fromCodePoint(e))}else this.captureToChar(K)&&(this.state=26)}sPIEnding(){let e=this.getCodeNorm();if(e===G){let{piTarget:e}=this;e.toLowerCase()===`xml`&&this.fail(`the XML declaration must appear at the start of the document.`),this.piHandler?.({target:e,body:this.text}),this.piTarget=this.text=``,this.state=B}else e===K?this.text+=`?`:(this.text+=`?${String.fromCodePoint(e)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){let e=this.skipSpaces();e===K?this.state=V:e!==R&&(this.state=28,this.name=String.fromCodePoint(e))}sXMLDeclName(){let e=this.captureTo(q);if(e===K)return this.state=V,this.name+=this.text,this.text=``,void this.fail(`XML declaration is incomplete.`);if(T(e)||e===W){if(this.name+=this.text,this.text=``,!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail(`did not expect any more name/value pairs.`);break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(`, `)}`)}this.state=e===W?30:29}}sXMLDeclEq(){let e=this.getCodeNorm();if(e===K)return this.state=V,void this.fail(`XML declaration is incomplete.`);T(e)||(e!==W&&this.fail(`value required.`),this.state=30)}sXMLDeclValueStart(){let e=this.getCodeNorm();if(e===K)return this.state=V,void this.fail(`XML declaration is incomplete.`);T(e)||(ie(e)?this.q=e:(this.fail(`value must be quoted.`),this.q=32),this.state=31)}sXMLDeclValue(){let e=this.captureTo([this.q,K]);if(e===K)return this.state=V,this.text=``,void this.fail(`XML declaration is incomplete.`);if(e===R)return;let t=this.text;switch(this.text=``,this.name){case`version`:{this.xmlDeclExpects=[`encoding`,`standalone`];let e=t;this.xmlDecl.version=e,/^1\.[0-9]+$/.test(e)?this.opt.forceXMLVersion||this.setXMLVersion(e):this.fail(`version number must match /^1\\.[0-9]+$/.`);break}case`encoding`:/^[A-Za-z][A-Za-z0-9._-]*$/.test(t)||this.fail(`encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/.`),this.xmlDeclExpects=[`standalone`],this.xmlDecl.encoding=t;break;case`standalone`:t!==`yes`&&t!==`no`&&this.fail(`standalone value must match "yes" or "no".`),this.xmlDeclExpects=[],this.xmlDecl.standalone=t}this.name=``,this.state=32}sXMLDeclSeparator(){let e=this.getCodeNorm();e===K?this.state=V:(T(e)||(this.fail(`whitespace required.`),this.unGet()),this.state=27)}sXMLDeclEnding(){this.getCodeNorm()===G?(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=B):this.fail(`The character ? is disallowed anywhere in XML declarations.`),this.xmlDeclPossible=!1}sOpenTag(){let e=this.captureNameChars();if(e===R)return;let t=this.tag={name:this.name,attributes:Object.create(null)};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){case G:this.openTag();break;case 47:this.state=35;break;default:T(e)||this.fail(`disallowed character in tag name.`),this.state=36}}sOpenTagSlash(){this.getCode()===G?this.openSelfClosingTag():(this.fail(`forward-slash in opening tag not followed by >.`),this.state=36)}sAttrib(){let e=this.skipSpaces();e!==R&&(D(e)?(this.unGet(),this.state=37):e===G?this.openTag():e===47?this.state=35:this.fail(`disallowed character in attribute name.`))}sAttribName(){let e=this.captureNameChars();e===W?this.state=39:T(e)?this.state=38:e===G?(this.fail(`attribute without value.`),this.pushAttrib(this.name,this.name),this.name=this.text=``,this.openTag()):e!==R&&this.fail(`disallowed character in attribute name.`)}sAttribNameSawWhite(){let e=this.skipSpaces();switch(e){case R:return;case W:this.state=39;break;default:this.fail(`attribute without value.`),this.text=``,this.name=``,e===G?this.openTag():D(e)?(this.unGet(),this.state=37):(this.fail(`disallowed character in attribute name.`),this.state=36)}}sAttribValue(){let e=this.getCodeNorm();ie(e)?(this.q=e,this.state=40):T(e)||(this.fail(`unquoted attribute value.`),this.state=42,this.unGet())}sAttribValueQuoted(){let{q:e,chunk:t}=this,{i:n}=this;for(;;)switch(this.getCode()){case e:this.pushAttrib(this.name,this.text+t.slice(n,this.prevI)),this.name=this.text=``,this.q=null,this.state=41;return;case 38:this.text+=t.slice(n,this.prevI),this.state=14,this.entityReturnState=40;return;case H:case z:case 9:this.text+=`${t.slice(n,this.prevI)} `,n=this.i;break;case U:this.text+=t.slice(n,this.prevI),this.fail(`disallowed character.`);return;case R:this.text+=t.slice(n);return}}sAttribValueClosed(){let e=this.getCodeNorm();T(e)?this.state=36:e===G?this.openTag():e===47?this.state=35:D(e)?(this.fail(`no whitespace between attributes.`),this.unGet(),this.state=37):this.fail(`disallowed character in attribute name.`)}sAttribValueUnquoted(){let e=this.captureTo(J);switch(e){case 38:this.state=14,this.entityReturnState=42;break;case U:this.fail(`disallowed character.`);break;case R:break;default:this.text.includes(`]]>`)&&this.fail(`the string "]]>" is disallowed in char data.`),this.pushAttrib(this.name,this.text),this.name=this.text=``,e===G?this.openTag():this.state=36}}sCloseTag(){let e=this.captureNameChars();e===G?this.closeTag():T(e)?this.state=44:e!==R&&this.fail(`disallowed character in closing tag.`)}sCloseTagSawWhite(){switch(this.skipSpaces()){case G:this.closeTag();break;case R:break;default:this.fail(`disallowed character in closing tag.`)}}handleTextInRoot(){let{i:e,forbiddenState:t}=this,{chunk:n,textHandler:r}=this;t:for(;;)switch(this.getCode()){case U:if(this.state=15,r!==void 0){let{text:t}=this,i=n.slice(e,this.prevI);t.length===0?i.length!==0&&r(i):(r(t+i),this.text=``)}t=0;break t;case 38:this.state=14,this.entityReturnState=B,r!==void 0&&(this.text+=n.slice(e,this.prevI)),t=0;break t;case re:switch(t){case 0:t=1;break;case 1:t=2;break;case 2:break;default:throw Error(`impossible state`)}break;case G:t===2&&this.fail(`the string "]]>" is disallowed in char data.`),t=0;break;case z:r!==void 0&&(this.text+=`${n.slice(e,this.prevI)}\n`),e=this.i,t=0;break;case R:r!==void 0&&(this.text+=n.slice(e));break t;default:t=0}this.forbiddenState=t}handleTextOutsideRoot(){let{i:e}=this,{chunk:t,textHandler:n}=this,r=!1;t:for(;;){let i=this.getCode();switch(i){case U:if(this.state=15,n!==void 0){let{text:r}=this,i=t.slice(e,this.prevI);r.length===0?i.length!==0&&n(i):(n(r+i),this.text=``)}break t;case 38:this.state=14,this.entityReturnState=B,n!==void 0&&(this.text+=t.slice(e,this.prevI)),r=!0;break t;case z:n!==void 0&&(this.text+=`${t.slice(e,this.prevI)}\n`),e=this.i;break;case R:n!==void 0&&(this.text+=t.slice(e));break t;default:T(i)||(r=!0)}}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))}pushAttribNS(e,t){let{prefix:n,local:r}=this.qName(e),i={name:e,prefix:n,local:r,value:t};if(this.attribList.push(i),this.attributeHandler?.(i),n===`xmlns`){let e=t.trim();this.currentXMLVersion===`1.0`&&e===``&&this.fail(`invalid attempt to undefine prefix in XML 1.0`),this.topNS[r]=e,ce(this,r,e)}else if(e===`xmlns`){let e=t.trim();this.topNS[``]=e,ce(this,``,e)}}pushAttribPlain(e,t){let n={name:e,value:t};this.attribList.push(n),this.attributeHandler?.(n)}end(){this.sawRoot||this.fail(`document must contain a root element.`);let{tags:e}=this;for(;e.length>0;){let t=e.pop();this.fail(`unclosed tag: ${t.name}`)}this.state!==0&&this.state!==B&&this.fail(`unexpected end.`);let{text:t}=this;return t.length!==0&&(this.textHandler?.(t),this.text=``),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(e){let t=this.topNS[e];if(t!==void 0)return t;let{tags:n}=this;for(let r=n.length-1;r>=0;r--)if(t=n[r].ns[e],t!==void 0)return t;return t=this.ns[e],t===void 0?this.opt.resolvePrefix?.(e):t}qName(e){let t=e.indexOf(`:`);if(t===-1)return{prefix:``,local:e};let n=e.slice(t+1),r=e.slice(0,t);return(r===``||n===``||n.includes(`:`))&&this.fail(`malformed name: ${e}.`),{prefix:r,local:n}}processAttribsNS(){let{attribList:e}=this,t=this.tag;{let{prefix:e,local:n}=this.qName(t.name);t.prefix=e,t.local=n;let r=t.uri=this.resolve(e)??``;e!==``&&(e===`xmlns`&&this.fail(`tags may not have "xmlns" as prefix.`),r===``&&(this.fail(`unbound namespace prefix: ${JSON.stringify(e)}.`),t.uri=e))}if(e.length===0)return;let{attributes:n}=t,r=new Set;for(let t of e){let e,i,{name:a,prefix:o,local:s}=t;o===``?(e=a===`xmlns`?I:``,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}this.attribList=[]}processAttribsPlain(){let{attribList:e}=this,t=this.tag.attributes;for(let{name:n,value:r}of e)t[n]!==void 0&&this.fail(`duplicate attribute: ${n}.`),t[n]=r;this.attribList=[]}openTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!1,this.openTagHandler?.(t),e.push(t),this.state=B,this.name=``}openSelfClosingTag(){this.processAttribs();let{tags:e}=this,t=this.tag;t.isSelfClosing=!0,this.openTagHandler?.(t),this.closeTagHandler?.(t),(this.tag=e[e.length-1]??null)===null&&(this.closedRoot=!0),this.state=B,this.name=``}closeTag(){let{tags:e,name:t}=this;if(this.state=B,this.name=``,t===``)return this.fail(`weird empty close tag.`),void(this.text+=`</>`);let n=this.closeTagHandler,r=e.length;for(;r-->0;){let r=this.tag=e.pop();if(this.topNS=r.ns,n?.(r),r.name===t)break;this.fail(`unexpected close tag: ${t}.`)}r===0?this.closedRoot=!0:r<0&&(this.fail(`unmatched closing tag: ${t}.`),this.text+=`</${t}>`)}parseEntity(e){if(e[0]!==`#`){let t=this.ENTITIES[e];return t===void 0?(this.fail(this.isName(e)?`undefined entity.`:`disallowed character in entity name.`),`&${e};`):t}let t=NaN;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};`)}};(w=C||={}).Events={XmlDecl:`xmldecl`,Text:`text`,ProcessingInstruction:`processinginstruction`,Doctype:`doctype`,Comment:`comment`,OpenTagStart:`opentagstart`,Attribute:`attribute`,OpenTag:`opentag`,CloseTag:`closetag`,CDdata:`cdata`,Error:`error`,End:`end`,Ready:`ready`},w.parseStream=async(e,t,n)=>{let r,i=new Y({position:!1,...n});t.onOpenTagStart&&i.on(C.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&i.on(C.Events.OpenTag,t.onOpenTag),t.onCloseTag&&i.on(C.Events.CloseTag,t.onCloseTag),t.onAttribute&&i.on(C.Events.Attribute,t.onAttribute),t.onText&&i.on(C.Events.Text,t.onText),t.onError&&i.on(C.Events.Error,t.onError);let a=t.onEnd;for(a&&i.on(C.Events.End,()=>{r=a()});;){let{value:t,done:n}=await e.read();if(n)break;i.write(t)}return i.close(),r};var X=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null,Z=e=>{let t=parseInt(e);return isNaN(t)?null:t},Q=e=>{let t=parseFloat(e);return isNaN(t)?null:t},$=null,fe=class{constructor(){this._registeredVisitors=new Map}registerVisitor(e){this._registeredVisitors.set(e.from,e)}createEventHandler(e,t,n){let r=this._registeredVisitors,i=[],a=[],o=null,s=null,c=null,l=null,u=[],d={key:null,source:e,parent:null},f=null,p=!1,m=(e,t)=>{let n=c.attributes[e];if(t){if(Array.isArray(t)){let e=t.length;for(let r=0;r<e;r++)if(n==null||(n=t[r](n),n==null))return}else if(n==null||(n=t(n),n==null))return}return n},h={getSource:()=>f?.source??null,setSource:e=>{f.source=e},setKey:e=>{f.key=e},getFrom:()=>c,getAttribute:(e,t)=>m(e,t)??null,hasAttribute:e=>h.getAttribute(e)!==null,getParent:()=>{let e=u[u.length-2];return e.parent??e.source},getPath:()=>{let e=[],t=a.length;for(let n=0;n<t;n++)e.push(a[n].local);return e.join(`\\`)},parseAttribute:m,copyToObject:(e,t,n,r)=>{let i=m(r??t,n);i!==void 0&&(e[t]=i)},copyTo:(e,t,n)=>{let r=m(n??e,t);r!==void 0&&(f.source[e]=r)},warn:e=>{n?n?.(e):console.warn(e)}};return{onOpenTag:e=>{let t=e.name,n=t.indexOf(`:`);n!==-1&&(t=t.slice(n+1));let m=(i.length>0?i[i.length-1]:r).get(t);if(o={local:t,visitor:m,tag:e,destination:null},p)return a.push(o),s=t,void(c=e);l=o?.visitor??null,s=t,c=e;let g=!!m&&m.to===null;if(m&&!g&&m.scope){let e=m.scope(h);e===null?g=!0:e&&(i.push(e),o.pushedScope=!0)}m&&(a.length===0?(f=d,o.destination=f,o.pushedDestination=!0,u.push(f)):g?(f=null,o.destination=null):m.transparent?o.destination=f:(f={key:null,source:{},parent:null},o.destination=f,o.pushedDestination=!0,u.push(f))),a.push(o),p=g;let _=l?.openTag?.(h);_!==void 0&&(f.parent=_)},onCloseTag:e=>{let t=e.name,r=t.indexOf(`:`);if(r!==-1&&(t=t.slice(r+1)),t!==s)throw Error(`mismatch open/close tag: '${t}'/'${s}'`);p||l?.closeTag?.(h);let m=a.pop()??null;o=a[a.length-1]??null,m?.pushedScope&&i.pop();let g=m?.destination;if(g&&m.pushedDestination){u.pop(),f=u[u.length-1]??d;let e=m.visitor;e&&e.to&&g.source!==void 0&&(Array.isArray(e.to)?f.source.push?f.source.push(g.source):n?.(`Unable to parse array for ${e.from} at ${h.getPath()}`):g.key?f.source[g.key]=g.source:typeof e.to==`string`&&(f.source[e.to]=g.source))}s=o?.local??null,c=o?.tag??null,l=o?.visitor??null,p=!o?.destination},onText:e=>{l?.text?.(e,h)},onEnd:t}}},pe=`IFERROR(${o.h}(`,me=pe.toUpperCase(),he=o.x.toUpperCase(),ge={kind:`none`},_e={kind:`spilled`},ve=(e,t)=>{if(e.charCodeAt(t)!==34)return null;let n=``,r=t+1;for(;r<e.length;)if(e.charCodeAt(r)===34){if(e.charCodeAt(r+1)!==34)return{value:n,end:r+1};n+=`"`,r+=2}else n+=e[r],r++;return null},ye=e=>{let t=[],n=0;for(;n<e.length;){let r=e.charCodeAt(n);if(r===34){let t=ve(e,n);if(t===null)break;n=t.end;continue}if(!(r>=65&&r<=90||r>=97&&r<=122||r===95)){n++;continue}let i=n+1;for(;i<e.length;){let t=e.charCodeAt(i);if(!(t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===95||t===46))break;i++}e.charCodeAt(i)===40&&t.push(e.slice(n,i).toUpperCase().replace(/^_XLFN\./,``).replace(/^_XLWS\./,``)),n=i}return t},be=e=>{let t=0,n=0;for(let r=0;r<e.length;r++){let i=e[r];if(i!==`"`&&i!==`'`){if(i===`[`)n++;else if(i===`]`)n>0&&n--;else if(n===0){if(i===`(`)t++;else if(i===`)`&&(t--,t<0))return!1}}else{for(r++;r<e.length;){if(e[r]===i){if(e[r+1]===i){r+=2;continue}break}r++}if(r>=e.length)return!1}}return t===0&&n===0},xe=class{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}},Se=(e,t,n)=>{if(e[0].value[0]===e[1].value[0])return t},Ce={colStart:0,colEnd:0,rowStart:0,rowEnd:0},we=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)},Te={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.macroEnabled.main+xml":`workbooks`,"application/vnd.ms-excel.sheet.binary.macroEnabled.main":`workbooks`,"application/vnd.ms-excel.addin.macroEnabled.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":`workbooks`,"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":`sheets`,"application/vnd.ms-excel.worksheet":`sheets`,"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":`charts`,"application/vnd.ms-excel.chartsheet":`charts`,"application/vnd.ms-excel.macrosheet+xml":`macros`,"application/vnd.ms-excel.macrosheet":`macros`,"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":`dialogs`,"application/vnd.ms-excel.dialogsheet":`dialogs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":`strs`,"application/vnd.ms-excel.sharedStrings":`strs`,"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":`styles`,"application/vnd.ms-excel.styles":`styles`,"application/vnd.openxmlformats-package.core-properties+xml":`coreprops`,"application/vnd.openxmlformats-officedocument.custom-properties+xml":`custprops`,"application/vnd.openxmlformats-officedocument.extended-properties+xml":`extprops`,"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":`comments`,"application/vnd.ms-excel.comments":`comments`,"application/vnd.ms-excel.threadedcomments+xml":`threadedcomments`,"application/vnd.ms-excel.person+xml":`people`,"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":`metadata`,"application/vnd.ms-excel.sheetMetadata":`metadata`,"application/vnd.ms-excel.externalLink":`links`,"application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":`links`,"application/vnd.openxmlformats-officedocument.theme+xml":`themes`},Ee=e=>e.startsWith(`/`)?e.slice(1):e,De=/^xl\/(worksheets|chartsheets)\/[^/]+\.xml$/i;exports.readXLSX=async(s,u)=>{let{password:d,onVBA:f,profile:p,createWorkbookOptions:m={},...h}=u??{},g=m.origin&&typeof m.origin!=`string`?m.origin:null,_=p?new l(typeof p==`function`?p:void 0):null,v=[],y=u?.progress,b=y?.onProgress?y.onProgress.bind(y):void 0,x=s.byteLength,ee=0,S=0,te=b?e=>{if(ee<=0)return;S+=e;let t=Math.min(x,Math.round(S/ee*x));b(t,x)}:void 0,w=Promise.resolve().then(()=>require("./jQhVJbABYXmAnYFf.cjs")),T=null;try{T=new DOMParser}catch{}let E=null;try{E=new XMLSerializer}catch{}let D,O,k,A=null;T||(A=Promise.resolve().then(()=>require("./DLYEQZzAGuSAmJsp.cjs")).then(e=>i.t(e.default,1)));try{let[e,t]=await Promise.all([A,w]);D=new t.DOMTransformer,O=T??new e.DOMParser,k=E??new e.XMLSerializer}catch(e){throw Error(`Unable to load XLSX parser.`,{cause:e})}let j,M=e=>k.serializeToString(e);try{j=await c.create(s)}catch(t){throw new e.s(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`,{cause:t})}_?.mark(`zip-open`);try{if(!j.has(`[Content_Types].xml`))throw new e.s(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);let i=e=>{let t=j.getEntry(e);return t?{content:t}:void 0},s={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],metadata:[],people:[],sst:``,style:``,defaults:{}};{let e=(e=>({onOpenTag:t=>{let n=(e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)})(t.name),r=t.attributes;if(n===`Override`){let t=r.ContentType,n=r.PartName;if(!t||!n)return;let i=Te[t],a=i?e[i]:void 0;Array.isArray(a)&&a.push(n)}else if(n===`Default`){let t=r.Extension,n=r.ContentType;t&&(e.defaults[t.toLowerCase()]=n)}},onEnd:()=>{e.sst=e.strs.length>0?e.strs[0]:``,e.style=e.styles.length>0?e.styles[0]:``},onError:e=>{(e=>{v.push([e,`[Content_Types].xml`])})(`Error parsing content types: ${e?.message??e}`)}}))(s),t=await j.getTextStream(`[Content_Types].xml`);if(!t)throw Error(`Error parsing content types: '[Content_Types].xml'`);try{await C.parseStream(t,e,{xmlns:!1})}catch(e){throw Error(`Error parsing content types: '[Content_Types].xml'`,{cause:e})}g&&await j.getBuffer(`[Content_Types].xml`)}_?.mark(`content-types`);let c=s.sst,l=new Set;for(let e of s.sheets)l.add(Ee(e));c&&l.add(Ee(c));for(let e of l)ee+=j.uncompressedSize(e);if(await j.prefetch(e=>!l.has(e)&&!De.test(e)),_?.mark(`prefetch-side-parts`),s.workbooks.length===0){let e=a.n(`_rels/.rels`,i,O,D);if(e){for(let t of e.values())if(t.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`&&t.target){s.workbooks.push(t.target);break}}}if(s.workbooks.length===0)throw new e.s(`Unable to parse as an Excel document. Try to save as '.xlsx' and try again.`);s.richstructure=[`/xl/richData/rdrichvaluestructure.xml`],s.richdata=[`/xl/richData/rdrichvalue.xml`];let u=m?.resources??new n.Yt,d=u.beginPersist(),h={},S=new Set,w=new Map;w.set(`richTypes`,[]);let T=[];w.set(`dummyWrapped`,T);let E=a.c(`metadata`,s,i,O,D).entries().next()?.value?.[1]?.metadata;E&&w.set(`metadata`,E);let k=new Map,A=[],N=(e,t=k)=>{let n=e.lastIndexOf(`/`),r=e.substring(0,n+1)+`_rels/`+e.substring(n+1,e.length)+`.rels`,o=t.get(r);return o||(o=a.n(r,i,O,D,z),t.set(r,o)),o},P=(r,s,c,l=k)=>{let f=N(s,l).get(r),p=f?.target;if(!p)return null;if(f.targetMode===`External`){if(!c)return f.target;let e=u.add({source:{external:f.target}});return e.addReference(h),S.add(e),d.toResourceId(e)}let m=s.lastIndexOf(`/`),g=s.substring(0,m+1);p.startsWith(`/`)||(p=g+p),p=a.u(p);let _=D?.getVisitorParamsState().get(`dxfs`),y=l.get(p);if(!y)if(f.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`){let r={};y=r,A.push((async()=>{let i=((r,i,s,c,l,u,d,f)=>{let p=new fe,m=new n.r.TransposedBuilder,h=null;p.registerVisitor({from:`autoFilter`,to:`autoTable`,openTag:e=>{let t=e.getAttribute(`ref`),r=n.X.fastStringToRange(t);e.getSource().r=r,e.getSource().v={}},closeTag:e=>{let t=e.getSource(),n=t.v,r=n.hiddenButtons;if(Array.isArray(r)){let e=r.length,i=t.r,a=i.colEnd-i.colStart+1;e===0?n.hiddenButtons=!1:e===a&&(n.hiddenButtons=!0)}}}),p.registerVisitor({from:`conditionalFormatting`,to:{},openTag:e=>{let t=e.getParent();t.conditionals||=[];let n=e.getAttribute(`sqref`);n&&=n.trim().split(/\s+/).join(`,`);let r={r:n,conditionals:t.conditionals},i=e.getAttribute(`pivot`,X);i!==null&&(r.pivot=i),e.setSource(r)}}),p.registerVisitor({from:`cfRule`,to:{},openTag:e=>{let t=e.getParent();if(!t?.r)return;let n=e.getSource()??{};t.pivot!==void 0&&(n.pivot=t.pivot),t.conditionals.push({r:t.r,v:null,rule:n}),e.copyToObject(n,`type`,$),e.copyToObject(n,`priority`,Z),e.copyToObject(n,`stopIfTrue`,X);let r=e.getAttribute(`dxfId`,Z);if(r!==null){let t=c?.get(r);t||=(u?.(`Unable to load conditional color. Invalid dxfI: '${r}' at '${e.getPath()}'.`),{}),n.style=t}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`,$)},closeTag:e=>{let t=e.getParent();if(!t?.r)return;let n=t.conditionals[t.conditionals.length-1],r=n?.rule;if(!r)return;let i={},a=o.i(r,u);a&&(i.condition=a),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}});let g=e=>{let t=e.conditions??[],n=[];for(let e=0;e<t.length;e++){let r=t[e],i={};r.type&&(i.type=r.type),r.value!==void 0&&(i.value=r.value),r.exclusive&&(i.exclusive=!0),n.push(i)}return n};p.registerVisitor({from:`colorScale`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),r=t.colors??[],i=g(t);for(let e=0;e<i.length;e++)i[e].color=r[e];e.getParent().scale={type:n.ct.ScaleType.ColorScale,stops:i}}}),p.registerVisitor({from:`dataBar`,to:{},openTag:e=>{e.copyTo(`maxLength`,Z),e.copyTo(`minLength`,Z),e.copyTo(`showValue`,X)},closeTag:e=>{let t=e.getSource(),r={type:n.ct.ScaleType.DataBar,stops:g(t)},i=t.colors?.[0];i&&(r.color=i),t.minLength!==void 0&&(r.minLength=t.minLength),t.maxLength!==void 0&&(r.maxLength=t.maxLength),t.showValue!==void 0&&(r.showValue=t.showValue),e.getParent().scale=r}}),p.registerVisitor({from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,$),e.copyTo(`reverse`,X),e.copyTo(`showValue`,X)},closeTag:e=>{let t=e.getSource(),r={type:n.ct.ScaleType.IconSet,stops:g(t)};t.iconSet!==void 0&&(r.iconSet=t.iconSet),t.reverse!==void 0&&(r.reverse=t.reverse),t.showValue!==void 0&&(r.showValue=t.showValue),e.getParent().scale=r}}),p.registerVisitor({from:`formula`,to:{},text:(e,t)=>{let n=t.getParent(),r=n.formulas;r||(r=[],n.formulas=r),r.push(e)}}),p.registerVisitor({from:`cfvo`,to:{},openTag:e=>{let t=e.getParent();t.conditions||=[];let r=e.getSource();t.conditions.push(r),e.copyTo(`type`,$),r.type===n.ct.ColorStopType.Formula?e.copyTo(`value`,$,`val`):e.copyTo(`value`,Q,`val`),!1===e.getAttribute(`gte`,X)&&(r.exclusive=!0)}}),p.registerVisitor({from:`color`,to:{},openTag:e=>{let t=e.getParent();t.colors||=[];let n=a.o(t=>e.getAttribute(t));t.colors.push(n)}}),p.registerVisitor({from:`filterColumn`,to:{},openTag:e=>{let t=e.getParent().v,n=parseInt(e.getAttribute(`colId`)),r=e.getSource();r.index=n;let i=t.filter;i||(i={conditions:[]},t.filter=i);let a=i.conditions;if(a||(a=[],i.conditions=a),a.push(r),e.getAttribute(`hiddenButton`,X)&&t){let e=t.hiddenButtons;e||(e=[],t.hiddenButtons=e),e.push(n)}if(e.getAttribute(`showButton`,X)&&t){let e=t.showButtons;e||(e=[],t.showButtons=e),e.push(n)}return r}}),p.registerVisitor({from:`colorFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.F.BuiltInOperatorNames.Color,t.param=r,e.copyToObject(r,`cellColor`),e.copyToObject(r,`styleId`,Z,`dxfId`)}}),p.registerVisitor({from:`iconFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.F.BuiltInOperatorNames.Icon,t.param=r,e.copyToObject(r,`iconId`,Z),e.copyToObject(r,`iconSet`,$)}}),p.registerVisitor({from:`top10`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.F.BuiltInOperatorNames.TopN,t.param=r,e.copyToObject(r,`filterVal`,Q),e.copyToObject(r,`percent`,X),e.copyToObject(r,`top`,X),e.copyToObject(r,`limit`,Q,`val`)}}),p.registerVisitor({from:`dynamicFilter`,openTag:e=>{let t=e.getParent(),r={};t.operator=n.F.BuiltInOperatorNames.TimePeriod,t.param=r;let i=e.getAttribute(`type`);Object.values(n.F.AverageType).includes(i)?(t.operator=n.F.BuiltInOperatorNames.Average,e.copyToObject(r,`stdDevs`,Z,`val`)):e.copyToObject(r,`anchorDate`,Z,`val`),e.copyToObject(r,`operator`,$,`type`),e.copyToObject(r,`maxVal`,Q,`maxVal`)}}),p.registerVisitor({from:`filters`,to:{},openTag:e=>{let t=e.getParent(),r={};return t.operator=n.F.BuiltInOperatorNames.InSet,t.param=r,e.copyToObject(r,`blank`,X),e.copyToObject(r,`calendarType`,$),r}}),p.registerVisitor({from:`filter`,openTag:e=>{let t=e.getParent(),n=t.items;n||(n=[],t.items=n),n.push(e.getAttribute(`val`,$))}}),p.registerVisitor({from:`dateGroupItem`,to:{},openTag:e=>{let t=e.getParent(),n=t.dateGroups;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)}}),p.registerVisitor({from:`customFilters`,openTag:e=>{let t=e.getParent(),r=e.getAttribute(`and`),i=r===`and`||r===`1`;e.getAttribute(`val`);let a=[];return t.operator=i?n.F.BuiltInOperatorNames.And:n.F.BuiltInOperatorNames.Or,t.param={conditions:a},e.setSource(t),a},closeTag:e=>{e.getSource().param.conditions.length}}),p.registerVisitor({from:`customFilter`,openTag:e=>{let t,n=e.getParent();Array.isArray(n)?(t={},n.push(t)):t=n,e.copyToObject(t,`operator`),e.copyToObject(t,`param`,$,`val`)}}),p.registerVisitor({from:`sortState`,to:{},openTag:e=>{let t=e.getParent(),n=t.v;n&&(n.sort={},e.setSource(t))}}),p.registerVisitor({from:`sortCondition`,to:{},openTag:e=>{let t=e.getParent(),r=t.v;if(!r)return;let i=r.sort;if(!i)return;let a=i.sorts;a||(a=[],i.sorts=a);let o=e.getAttribute(`ref`),s=0;if(o){let e=n.X.fastStringToRange(o,Ce).colStart,r=t.r,i=r.colStart;s=r?e-i:e}let c={};e.copyToObject(c,`sortOn`,$,`sortBy`),e.copyToObject(c,`dxfId`,$,`sortBy`),e.copyToObject(c,`iconSet`,$),e.copyToObject(c,`customList`,$),c.reverse=e.getAttribute(`descending`,X)??!1;let l={index:s,criteria:c};a.push(l)}}),p.registerVisitor({from:`AlternateContent`,to:null});let _=e=>{h=e.getSource(),e.copyTo(`topLeft`,$,`topLeftCell`);let t=a.p(e.getAttribute(`defaultGridColor`)),n=e.getAttribute(`colorId`);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)};p.registerVisitor({from:`sheetView`,to:`view`,openTag:e=>{_(e)},closeTag:()=>{h=null}}),p.registerVisitor({from:`customSheetViews`,to:`customSheetViews`,openTag:e=>{e.setSource([])}}),p.registerVisitor({from:`customSheetView`,to:[],openTag:e=>{_(e)},closeTag:()=>{h=null}}),p.registerVisitor({from:`selection`,to:`selection`,openTag:e=>{if(!h)return;e.copyTo(`cell`,$,`activeCell`),e.copyTo(`rangeIndex`,Z,`activeCellId`);let t=e.getAttribute(`activeCell`),n=e.getAttribute(`sqref`);n&&n!==t&&(e.getSource().ranges=n.trim().split(/\s+/))}}),p.registerVisitor({from:`pane`,to:null,openTag:e=>{if(h&&e.getAttribute(`state`)===`frozen`){let t={};h.freezePanes=t,e.copyToObject(t,`topLeft`,$,`topLeftCell`);let r=(h.topLeft?n.X.fastStringToCell(h.topLeft):void 0)??{colIndex:0,rowIndex:0},i={colIndex:0,rowIndex:0};e.copyToObject(i,`colIndex`,Z,`xSplit`),e.copyToObject(i,`rowIndex`,Z,`ySplit`);let a={colIndex:r.colIndex+i.colIndex,rowIndex:r.rowIndex+i.rowIndex};t.coords=n.X.cellToString(a)}}}),p.registerVisitor({from:`tabColor`,to:null,openTag:e=>{let t=a.o(t=>e.getAttribute(t));t&&(r.tabColor=t)}}),p.registerVisitor({from:`pageSetUpPr`,to:`pageSetUpPr`,openTag:e=>{}}),p.registerVisitor({from:`outlinePr`,to:`outlinePr`,openTag:e=>{}}),p.registerVisitor({from:`pageMargins`,to:`pageMargins`,openTag:e=>{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)}}),p.registerVisitor({from:`pageSetup`,to:`pageSetup`,openTag:e=>{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)}}),p.registerVisitor({from:`printOptions`,to:`printOptions`,openTag:e=>{e.copyTo(`gridLines`,X),e.copyTo(`gridLinesSet`,X),e.copyTo(`headings`,X),e.copyTo(`horizontalCentered`,X),e.copyTo(`verticalCentered`,X)}}),p.registerVisitor({from:`headerFoot`,to:`headerFoot`,openTag:e=>{}}),p.registerVisitor({from:`mergeCells`,to:`merges`,openTag:e=>{e.setSource([])}}),p.registerVisitor({from:`dataValidations`,to:`validations`,openTag:e=>{e.setSource([])}});let v={from:`dataValidation`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n,rule:{type:e.getAttribute(`type`)??void 0,operator:e.getAttribute(`operator`)??void 0}};!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)},closeTag:e=>{let t=e.getSource();if(!t?.rule)return;let n=o.r(t.rule,u);n&&(e.getAttribute(`allowBlank`,X)&&(n.includeBlanks=!0),t.v.condition=n),delete t.rule}};p.registerVisitor(v),p.registerVisitor({from:`formula1`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula1=o.S(e,n.type))}}),p.registerVisitor({from:`formula2`,to:{},text:(e,t)=>{let n=t.getParent().rule;n?.type&&(n.formula2=o.S(e,n.type))}}),p.registerVisitor({from:`picture`,to:`picture`,openTag:e=>{let t=e.getAttribute(`r:id`);if(!t)return void console.warn(`no rId found for picture`,e.getPath());let n=i(t,!0);e.getSource().resId=n}});let y={from:`slicer`,to:{},openTag:e=>{let t=e.getAttribute(`r:id`);if(!t)return void console.warn(`no rId found for picture`,e.getPath());let n=i(t)?.slicers,r=e.getParent();r.slicers||={};let a=Object.keys(n);for(let e of a)r.slicers[e]=n[e]}};p.registerVisitor(y);let b=(e,t)=>({from:e,to:{},openTag:e=>{e.setSource(``)},text:(e,t)=>{t.setSource((t.getSource()??``)+e)},closeTag:e=>{t(String(e.getSource()??``),e)}}),x=new Map;x.set(`dataValidations`,{from:`dataValidations`,to:`validations`,openTag:e=>{let t=e.getParent();e.setSource(t.validations??[])},closeTag:e=>{(e.getSource()?.length??0)===0&&e.setSource(void 0)}}),x.set(`dataValidation`,{...v,closeTag:e=>{v.closeTag(e);let t=e.getSource();t&&!t.r&&(e.warn(`x14 dataValidation with no xm:sqref was dropped.`),e.setSource(void 0))}});let ee=e=>({from:e,to:{},openTag:t=>{t.setSource({rule:t.getParent()?.rule,key:e})}});x.set(`formula1`,ee(`formula1`)),x.set(`formula2`,ee(`formula2`)),x.set(`f`,b(`f`,(e,t)=>{let n=t.getParent(),r=n?.rule;r&&(r[n.key]=o.S(e,r.type))})),x.set(`sqref`,b(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.r=r.split(/\s+/).join(`,`))}));let S=new Map,te=[],C=new Map;C.set(`conditionalFormattings`,{from:`conditionalFormattings`,transparent:!0}),C.set(`conditionalFormatting`,{from:`conditionalFormatting`,to:{},openTag:e=>{e.setSource({rules:[]})},closeTag:e=>{let t=e.getSource(),n=t?.rules??[];for(let e=0;e<n.length;e++){let r=n[e];r.sqref=t.sqref,r.id?S.set(r.id,r):te.push(r)}}}),C.set(`cfRule`,{from:`cfRule`,to:{},openTag:e=>{e.copyTo(`id`,$),e.copyTo(`type`,$),e.copyTo(`priority`,Z)},closeTag:e=>{let t=e.getSource();t&&e.getParent()?.rules?.push(t)}}),C.set(`sqref`,b(`sqref`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.sqref=r)})),C.set(`dataBar`,{from:`dataBar`,to:{},openTag:e=>{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)},closeTag:e=>{e.getParent().dataBar=e.getSource()}}),C.set(`iconSet`,{from:`iconSet`,to:{},openTag:e=>{e.copyTo(`iconSet`,$),e.copyTo(`custom`,X),e.copyTo(`reverse`,X),e.copyTo(`showValue`,X)},closeTag:e=>{e.getParent().iconSet=e.getSource()}}),C.set(`cfvo`,{from:`cfvo`,to:{},openTag:e=>{let t=e.getParent();t.conditions||=[];let n=e.getSource();t.conditions.push(n),e.copyTo(`type`,$),!1===e.getAttribute(`gte`,X)&&(n.exclusive=!0)}}),C.set(`f`,b(`f`,(e,t)=>{let n=t.getParent();if(!n)return;let r=e.trim(),i=Number(r);n.value=r.length>0&&Number.isFinite(i)?i:e}));let w=e=>({from:e,to:{},openTag:t=>{let n=a.o(e=>t.getAttribute(e));n&&(t.getParent()[e]=n)}});C.set(`borderColor`,w(`borderColor`)),C.set(`negativeFillColor`,w(`negativeFillColor`)),C.set(`negativeBorderColor`,w(`negativeBorderColor`)),C.set(`axisColor`,w(`axisColor`)),C.set(`cfIcon`,{from:`cfIcon`,to:{},openTag:e=>{let t=e.getAttribute(`iconSet`),n=e.getAttribute(`iconId`,Z);if(t===null||n===null)return;let r=e.getParent();r.icons||=[],r.icons.push({set:t,id:n})}});let T=new Map;T.set(`id`,b(`id`,(e,t)=>{let n=t.getParent(),r=e.trim();n&&r&&(n.x14Id=r)}));let E=new Map;E.set(`slicerList`,{from:`slicerList`,transparent:!0}),E.set(`slicer`,y);let D=new Map([[o.t(o.s),x],[o.t(o.p),C],[o.t(o.H),C],[o.t(o.f),T],[o.t(o.M),E],[o.t(o.j),E]]),O=new Set;p.registerVisitor({from:`extLst`,transparent:!0}),p.registerVisitor({from:`ext`,transparent:!0,scope:e=>{let t=e.getAttribute(`uri`),n=o.t(t),r=D.get(n);if(r)return r;if(!o.b.has(n)&&!O.has(n)){O.add(n);let r=o.N[n];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.`)}return null}}),p.registerVisitor({from:`mergeCell`,to:[],openTag:e=>{let t=e.getAttribute(`ref`);e.setSource(t)}}),p.registerVisitor({from:`hyperlinks`,to:`hyperlinks`,openTag:e=>{e.setSource([])}}),p.registerVisitor({from:`hyperlink`,to:[],openTag:e=>{let t=e.getAttribute(`r:id`),n=e.getAttribute(`ref`);if(!n)return void console.warn(`No ref found for hyperlink`);e.setKey(n);let r=t?i(t):``;if(typeof r!=`string`)return void console.warn(`Invalid address `,r);r.endsWith(`\\`)&&(r=r.substring(0,r.length-1));let a=e.getAttribute(`location`);if(a&&(r+=`#`+a),!r)return void console.warn(`No address found for hyperlink. r:id`,t);let o,s=e.getAttribute(`tooltip`);o=s?{address:r,screenTip:s}:r,e.setSource({r:n,v:o})}}),p.registerVisitor({from:`drawing`,to:`movables`,openTag:e=>{let t=e.getAttribute(`r:id`);if(!t)return;let n=i(t);n?e.setSource(n.movables):console.warn(`no drawing found for rId`,t)}}),p.registerVisitor({from:`tableParts`,to:`tables`,openTag:e=>{e.setSource([])}}),p.registerVisitor({from:`tablePart`,to:[],openTag:e=>{let t=e.getAttribute(`r:id`);if(!t)return;let n=i(t);n?e.setSource(n):console.warn(`no table found for rId`,t)}});let k=(e,t)=>{t.conditions?.length&&(e.stops=g(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)},A=(e,t)=>{t.conditions?.length&&(e.stops=g(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)},j=e=>{if(e.type!==`iconSet`||!e.iconSet||!e.sqref)return null;let t={type:n.ct.ScaleType.IconSet,stops:[]};return A(t,e.iconSet),{r:e.sqref.split(/\s+/).join(`,`),v:{scale:t},priority:e.priority}};p.registerVisitor({from:`worksheet`,to:{},openTag:e=>{},closeTag:e=>{let t=e.getSource(),r=t?.conditionals;if(r)for(let e=0;e<r.length;e++){let t=r[e],i=t.x14Id;if(!i)continue;delete t.x14Id;let a=S.get(i);if(!a)continue;S.delete(i);let o=t.v?.scale;a.dataBar&&o?.type===n.ct.ScaleType.DataBar?k(o,a.dataBar):a.iconSet&&o?.type===n.ct.ScaleType.IconSet&&A(o,a.iconSet)}let i=[...S.values(),...te];for(let e=0;e<i.length;e++){let n=j(i[e]);n?(r||(r=[],t.conditionals=r),r.push(n)):u?.(`x14-only conditional formatting rule (type '${i[e].type??`unknown`}') is not read and will be lost on resave.`)}if(r){r.length>1&&r.sort((e,t)=>(e.priority??1/0)-(t.priority??1/0));for(let e=0;e<r.length;e++)delete r[e].priority}}}),p.registerVisitor({from:`customProperties`,to:`customProperties`,openTag:e=>{e.setSource([])},closeTag:e=>{let t=e.getSource();t.length>0&&(e.getParent().customProperties=t)}}),p.registerVisitor({from:`customPr`,to:{},openTag:e=>{let t=e.getParent();e.copyTo(`name`);let n=e.getAttribute(`r:id`);if(!n)return void console.warn(`no rId found for customProperties`,e.getPath());let r=i(n,!0),a=e.getSource();a.resId=r,t.push(a)}}),p.registerVisitor({from:`sheetProtection`,to:`protection`,openTag:e=>{let t=!1;if(e.hasAttribute(`sheet`)&&X(e.getAttribute(`sheet`))&&(t=!0),!t)return void e.setSource(void 0);let n=e=>!0===e||e===`1`||e===`on`||e===`true`||!1!==e&&e!==`0`&&e!==`off`&&e!==`false`&&null;e.copyTo(`autoTable`,n),e.copyTo(`deleteColumns`,n),e.copyTo(`formatCells`,n),e.copyTo(`formatColumns`,n),e.copyTo(`formatRows`,n),e.copyTo(`insertColumns`,n),e.copyTo(`insertHyperlinks`,n),e.copyTo(`insertRows`,n),e.copyTo(`objects`,n),e.copyTo(`pivotTables`,n),e.copyTo(`scenarios`,n),e.copyTo(`selectLockedCells`,n),e.copyTo(`selectUnlockedCells`,n),e.copyTo(`sort`,n);let r={};e.copyToObject(r,`hash`,$,`hashValue`),e.copyToObject(r,`algorithm`,$,`algorithmName`),e.copyToObject(r,`salt`,$,`saltValue`),e.copyToObject(r,`spinCount`,Z),Object.keys(r).length>0&&(e.getSource().password=r)}}),p.registerVisitor({from:`protectedRanges`,to:`protectedRanges`,openTag:e=>{e.setSource([])}}),p.registerVisitor({from:`protectedRange`,to:[],openTag:e=>{let t=e.getAttribute(`sqref`);t&&=t.trim().split(/\s+/).join(`,`);let n={},r={r:t,v:n};e.copyToObject(n,`name`),e.copyToObject(n,`securityDescriptor`);let i={};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)},closeTag:e=>{let t=e.getSource();t?.r&&t.v.name||e.setSource(void 0)}}),p.registerVisitor({from:`sheetFormatPr`,to:`sheetFormatPr`,openTag:e=>{e.copyToObject(r,`defaultColSize`,Q,`defaultColWidth`),e.copyToObject(r,`outlineLevelCol`,Z,`outlineLevelCol`);let t=e.getAttribute(`customHeight`);t!==`1`&&t!==`true`||e.copyToObject(r,`defaultRowSize`,Q,`defaultRowHeight`),e.copyToObject(r,`outlineLevelRow`,Z,`outlineLevelRow`)}}),p.registerVisitor({from:`cols`,to:`cols`,openTag:e=>{e.setSource([])}}),p.registerVisitor({from:`col`,to:[],openTag:e=>{let t=e.getSource(),r=e.getAttribute(`min`),i=e.getAttribute(`max`),a=r===void 0?0:parseInt(r)-1,o=i===void 0?a:parseInt(i)-1;t.r=n.X.runToString(a,o,!0);let s={};t.v=s,e.copyToObject(s,`sz`,Q,`width`),e.copyToObject(s,`csz`,X,`customWidth`),e.copyToObject(s,`h`,X,`hidden`),e.copyToObject(s,`l`,Z,`outlineLevel`),e.copyToObject(s,`s`,Z,`style`)}}),p.registerVisitor({from:`oleObjects`,to:null,openTag:e=>{e.warn(`'OLE Objects' are not supported.`)}});let M=!1,N=!1,P=0,F=``,I=e=>{let t=e.indexOf(`:`);return t===-1?e:e.slice(t+1)};return((r,i,a,o,s,c,l)=>{let u=!1,d=!1,f=[],p=!1,m=null,h=null,g=null,_=null,v=null,y=null,b=l?.get(`richData`)??e.A.EmptyArray,x=l?.get(`dummyWrapped`)??null,ee=n.X.normalizeA1ToR1C1,S=e.l.createConflatingRanges(),te=new Map,C=[],w=!1,T=!1,E=null,D=!1,O=e.l.createConflatingRanges(),k=!1,A=-1,j=-1,M=null,N=null,P=null,F=[],I=null,ne=-2,L=0,R=``,z=``,B=``,V=``,H=``,U=``,W=``,G=``,K=``,re=``,ie=``,ae=``,oe=``,se=``,q=!0,J=null,ce=!1,le=!1,ue=null,de=0;return{...a,onEnd:()=>{F.length>0&&(i.rows=n.X.runsToRefs(F,!1));let o=S.done(Se),s=o.length;if(s>0){let e=new Set;for(let t=0;t<C.length;t++)e.add(C[t][0].split(`:`)[0]);let t=Array(s);for(let r=0;r<s;r++){let i=o[r],a=n.X.rangeToString(i),s=i.value[1],c=n.X.resolveRelativeToA1(s,i.rowStart,i.colStart);c&&!e.has(a.split(`:`)[0])&&be(c)&&(c=`__sxl.INTERSECT(${c})`),t[r]=[a,c]}i.formulas=t}let c=O.done(!0),l=c.length;if(l>0){let e=Array(l);for(let t=0;t<l;t++){let r=c[t];e[t]=n.X.rangeToString(r)}i.volatile=e}C.length>0&&(i.formulaArray=[...C]);let u=f.length;if(u>0){f.sort(e.l.createRangeComparator(t.l.Axis.Column));let r=f[0],a=r.colStart,o=r.colEnd,s=r.rowEnd,c=r.value,l=[];l.push(r);let d=null;for(let e=1;e<u;e++)d=f[e],c!==d.value||a!==d.colStart||o!==d.colEnd||s+1!==d.rowEnd?(l.push(d),r=d,a=r.colStart,o=r.colEnd,s=r.rowEnd,c=r.value):(s=d.rowEnd,r.rowEnd=s);let p=l.length,m=Array(p);for(let e=0;e<p;e++){let t=l[e];m[e]=[n.X.rangeToString(t),t.value]}i.directStyles=m}let d=r.build();d&&(i.data=d.tuples),a?.onEnd?.()},onOpenTag:e=>{let r=e.name,o=r.indexOf(`:`);if(o!==-1&&(r=r.slice(o+1)),de++,de%196608==0&&s?.(de),N){let t=e.attributes;switch(r){case`v`:d=!0;break;case`f`:switch(p=!0,t.t??null){case null:case`normal`:break;case`shared`:let e=t.si;h=t.ref,m=e;break;case`array`:h=t.ref,E=h;break;case`datatable`:h=t.ref,p=!0}let e=t.ca;e!==void 0&&(D=e===`1`);break;case`is`:k=!0;return}k&&!p&&c?.onOpenTag?.(e);return}if(u){if(r===`c`){N=e;let r=e.attributes,i=r.r;j=n.X.fastStringToCol(i);let a=r.t;a===void 0?P=null:(P=a,P===`str`&&(k=!0));let o=r.s;o===void 0&&(ue!==null||le)&&(o=`0`),o!==void 0&&(o=parseInt(o),J&&J.value===o&&J.colEnd+1===j?J.colEnd=j:(J={colStart:j,rowStart:A,colEnd:j,rowEnd:A,value:o},f.push(J))),E=null,T=!1;let s=r.cm;w=s!==void 0&&(e=>{let t=l?.get(`metadata`)?.cells;if(!t)return!1;let n=parseInt(e,10);return!(!Number.isFinite(n)||n<1)&&!0===t[n-1]?.get(`XLDAPR`)?.fDynamic})(s);let c=r.vm;if(c!==void 0){let e=b[parseInt(c)-1];if(t.a.isError(e)){let n=e.getCode();M={t:`e`,v:n},w&&n===t.a.Code.Spill&&(T=!0)}}}}else{if(r===`row`){u=!0;let t=e.attributes.r;if(A=parseInt(t)-1,L=0,z=e.attributes.customHeight,z!==void 0&&(L|=xe.CustomHeight),z!==K&&(q=!0,K=z),R=e.attributes.ht,R!==void 0&&(L|=xe.Ht),R!==G&&(q=!0,G=R),B=e.attributes.hidden,B!==void 0&&(L|=xe.Hidden),B!==re&&(q=!0,re=B),H=e.attributes.s,H!==void 0&&(L|=xe.S),H!==ae&&(q=!0,ae=H),V=e.attributes.customFormat,V!==void 0&&(L|=xe.CustomFormat),V!==ie&&(q=!0,ie=V),U=e.attributes.outlineLevel,U!==void 0&&(L|=xe.OutlineLevel),U!==oe&&(q=!0,oe=U),W=e.attributes.collapsed,W!==void 0&&(L|=xe.Collapsed),W!==se&&(q=!0,se=W),L!==0)if(ne+1!==A||q){let e=z!==void 0&&(z===`1`||z===`true`),t=V!==void 0&&(V===`1`||V===`true`);ue=t&&H!==void 0?H:null,t&&ue===null&&(ue=`0`),I={min:A,max:A,value:{sz:R===void 0?-1:parseFloat(R),csz:e,h:B!==void 0&&(B===`1`||B===`true`),s:ue===null?void 0:ue===`0`?0:parseInt(ue),l:U===void 0||U===`0`?0:parseInt(U),cl:W!==void 0&&(W===`1`||W===`true`)}},F.push(I)}else I.max=A;ne=A,q=!1;return}if(!ce&&r===`sheetData`){ce=!0;let e=i.cols,t=e?e.length:0;for(let n=0;!le&&n<t;n++)e[n].v.s&&(le=!0)}a?.onOpenTag?.(e)}},onCloseTag:e=>{let t=e.name;if(!p||t!==`c`&&t!==`f`||(m&&(_=te.get(m)??null),_&&(S.append(A,j,_),D&&O.append(A,j)),E!==null&&C.push([E,w?T?`dynamicSpillError`:`dynamic`:`static`]),p=!1,_=null,m=null,h=null,d=!1,D=!1,E=null,w=!1,T=!1),N){let n=t.indexOf(`:`);if(n!==-1&&(t=t.slice(n+1)),k)if(t===`is`||t===`v`){let e=c?.onEnd?.();e!=null&&r.pushAt(A,j,``+e)}else t!==`f`&&c?.onCloseTag?.(e);d&&=!1,t===`c`&&(N=null,k=!1);return}if(u)return u=!1,void(J=null);a?.onCloseTag?.(e)},onText:e=>{let s=e.trim();if(d){switch(M=null,P){case null:case`n`:M=parseFloat(s);break;case`b`:M=s===`1`||s===`true`;break;case`s`:M=s;break;case`e`:if(s===`#VALUE!`){let e=N.attributes.vm;if(e!==void 0){let n=b[parseInt(e)-1];if(t.a.isError(n)){M={t:`e`,v:n.getCode()};break}}}let e=t.a.getBuiltInByLabel(s);e?M={t:`e`,v:e.getCode()}:(M=s,o?.(`Unknown formula error '${s}' in cell ${n.X.cellToString({colIndex:j,rowIndex:A})}`));break;case`str`:case`inlineStr`:k=!0}M!==null&&r.pushAt(A,j,M)}if(m){if(v===m)_=y;else{if(_=te.get(m)??null,!_){let e=[];g=ee(s,A,j,e),_=[g,e,s],te.set(m,_)}v=m,y=_}m=null}if(p){if(x!==null){let e=(e=>{if(e.length<pe.length||e.slice(0,pe.length).toUpperCase()!==me)return ge;let t=ve(e,pe.length);if(t===null||e.charCodeAt(t.end)!==41||e.charCodeAt(t.end+1)!==44||e.charCodeAt(e.length-1)!==41)return ge;let n=t.value;return n.toUpperCase()===he?_e:n.length===0?ge:{kind:`formula`,formula:n}})(s);e.kind!==`none`&&x.push({sheet:i,rowIndex:A,colIndex:j,formula:e.kind===`formula`?e.formula:null})}let e=[];g=ee(s,A,j,e),_=[g,e,s]}k?c?.onText?.(e):u||a?.onText?.(s)}}})(m,r,p.createEventHandler(r,()=>{},u),u,void 0,{onOpenTag:e=>{M=!0;let t=I(e.name);t===`t`||t===`v`?P===0&&(N=!0):t!==`rPh`&&t!==`phoneticPr`||P++},onText:e=>{N&&(F+=e)},onCloseTag:e=>{let t=I(e.name);t===`t`||t===`v`?N=!1:t!==`rPh`&&t!==`phoneticPr`||P>0&&P--},onEnd:()=>{if(!M)return;let e=s(o.O(F));return M=!1,N=!1,P=0,F=``,e},onError:e=>{}},f)})(r,(e,t=!1)=>P(e,p,t)??null,W,_,0,(e,t)=>{let n=t?`${t} (${p})`:p;v.push([e,n])},0,w),s=await j.getTextStream(p,te);if(s)try{await C.parseStream(s,i,{xmlns:!1})}catch(e){throw console.warn(`Error parsing sheet: '${p}'`,e),Error(`Error parsing sheet: '${p}'`,{cause:e})}let c,u=N(p,l),d=new Map;if(u){let t;if(u.forEach((e,t)=>{e.type===`http://schemas.microsoft.com/office/2017/10/relationships/threadedComment`&&(c=P(t,p,!1,l)?.comments,c&&c.forEach(e=>{let t=e.v;d.set(t.id,e)}))}),u.forEach((e,n)=>{e.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`&&(t=P(n,p,!1,l))}),t||c){let n=c??[],i=t?.authors,o=t?.comments,s=o?o.length:0;if(o)for(let t=0;t<s;t++){let r=o[t];if(!r)continue;let s=r.v,c=i&&s.personId!==void 0?i[s.personId]:s.personId;if(c&&c.startsWith(`tc=`)&&(c=a.d(c.substring(3)),d.has(c)))continue;let l=R({displayName:c}),u={id:e.A.uuidV4(),personId:l.id,done:!1,asNote:!0,content:s.content};n.push({r:r.r,v:u})}r.comments=n}}})())}else if(f.type===`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink`){let e=a.a(p,i,O,D,z);if(e&&Object.keys(e).length!==0){let t=e,n=[];N(p,l)?.forEach(e=>{e.targetMode===`External`&&e.type&&e.target&&n.push({type:e.type,target:e.target})}),t.identity=n,y=t}else y=null}else y=c?a.l(p,i,(e,t)=>{let n=u.add({source:{buffer:e}});return n.addReference(h),S.add(n),d.toResourceId(n)},z):a.a(p,i,O,D,z);return y};a.c(`coreprops`,s,i,O,D),a.c(`extprops`,s,i,O,D);let F=new Map,I=new Map,ne=a.c(`people`,s,i,O,D),L=null;if(ne.size>0&&(L=ne.entries().next()?.value?.[1]?.persons,L)){let e=L.length;for(let t=0;t<e;t++){let e=L[t];F.set(e.id,e),e.displayName!==void 0&&I.set(e.displayName,e)}}let R=t=>{if(!t)return;if(t.id&&F.has(t.id))return F.get(t.id);let n=t.displayName;if(!t.id){if(n){let e=I.get(n);if(e)return e}t.id=e.A.uuidV4()}let r=F.get(t.id);if(r)return r;let i=t;return F.set(t.id,i),n&&I.set(n,i),L||=[],L.push(i),i},z={paramMap:w,getRefs:N,getRef:P,parsedRefs:k,addPerson:R,serializeElement:M},B=[];if(c){let e=await j.getTextStream(c,te);if(e){let t=(()=>{let e=!1,t=!1,n=0,r=``;return{onOpenTag:i=>{let a=we(i.name);a===`t`?e&&n===0&&(t=!0):a===`si`?(e=!0,r=``,n=0):a!==`rPh`&&a!==`phoneticPr`||n++},onText:e=>{t&&(r+=e)},onCloseTag:i=>{let a=we(i.name);a===`t`?t=!1:a===`si`?((e=>{B.push(e)})(o.O(r)),e=!1,r=``):a!==`rPh`&&a!==`phoneticPr`||n>0&&n--},onError:e=>{(e=>{v.push([e,c])})(`Error parsing shared strings: ${e?.message??e}`)}}})();try{await C.parseStream(e,t,{xmlns:!1})}catch(e){throw console.warn(`Error parsing shared strings: '${c}'`,e),Error(`Error parsing shared strings: '${c}'`,{cause:e})}}}_?.mark(`shared-strings`);let V=B.length,H=new Map,U=V,W=e=>{let t=H.get(e);if(t!==void 0)return t;let n=U;return H.set(e,U++),B.push(e),n},G=[];s.slicersCache=G;let K=j.getNames(),re=K.length;for(let e=0;e<re;e++){let t=K[e];t&&t.startsWith(`xl/slicerCache`)&&G.push(`/${t}`)}let ie=a.c(`slicersCache`,s,i,O,D,z),ae=new Map;ie.forEach(e=>{let t=e.name;delete e.name,ae.set(t,e)}),w.set(`slicerCaches`,ae),a.c(`richstructure`,s,i,O,D,z),a.c(`richdata`,s,i,O,D,z);let oe=a.c(`themes`,s,i,O,D,z),se=null;if(oe&&oe.entries){let e=oe.entries().next();e?.value?.[1]&&(se=e.value[1])}let q=new n.Ht(se),J=a.c(`styles`,s,i,O,D,z).entries().next()?.value?.[1];J&&=JSON.parse(e.F.JSONStableStringify(J));let ce=a.c(`workbooks`,s,i,O,D,z);_?.mark(`side-parts-json`),await Promise.all(A),b&&ee>0&&(b(x,x),await new Promise(e=>setTimeout(e,0))),_?.mark(`sheets`);let le={...ce.entries().next().value?.[1],styles:J,theme:q.toJSON()};if(B.length>0&&(le.strings=B),L&&L.length>0&&(le.people=L),f){let e=j.getEntry(`xl/vbaProject.bin`);if(e)try{let{VBAProject:t}=await Promise.resolve().then(()=>require("./DG-AY_xO8RKHtEBE.cjs")),n=t.extract(e);n?(f?.(n),le.vba=n):v.push([`Unable to parse VBA project.`,`xl/vbaProject.bin`])}catch(e){v.push([`Error extracting VBA: ${e?.message??e}`,`xl/vbaProject.bin`])}}let ue=null,de={...m,resources:u,json:le,formulaTransform:o.z(()=>ue?.getCalculation())};de.disableLoadAutoFit===void 0&&(de.disableLoadAutoFit=!1),_?.mark(`json-assembled`);let Y=new r.m(de);if(ue=Y,_?.mark(`workbook-constructed`),T.length>0){await Y.whenCalculationReady();let e=new Map,t=le.sheets??[],n=Y.getSheets().getItems();for(let r=0;r<t.length;r++){let i=t[r]?.sheet,a=n[r];i&&a&&e.set(i,a)}((e,t,n)=>{if(t.length===0)return;let r=e.getCalculation().getFunctions(),i=new Map,a=e=>{let t=i.get(e);return t===void 0&&(t=r.getByName(e)!==null,i.set(e,t)),t},o=new Map;for(let e of t){let t=o.get(e.sheet);t||(t=[],o.set(e.sheet,t)),t.push(e)}for(let[e,t]of o){let r=n.get(e);if(!r)continue;let i=(e,t)=>`${e},${t}`,o=new Set;for(let e of t)e.formula===null&&o.add(i(e.rowIndex,e.colIndex));for(let e of t){if(e.formula===null)continue;let t=ye(e.formula),n=!0;for(let e of t)if(!a(e)){n=!1;break}if(!n)continue;let s=[],c=[[e.rowIndex,e.colIndex]],l=new Set([i(e.rowIndex,e.colIndex)]);for(;c.length>0;){let[e,t]=c.pop(),n=[[e+1,t],[e-1,t],[e,t+1],[e,t-1]];for(let[e,t]of n){let n=i(e,t);!l.has(n)&&o.has(n)&&(l.add(n),s.push([e,t]),c.push([e,t]))}}for(let[e,t]of s)o.delete(i(e,t)),r.getRange({rowStart:e,colStart:t,rowEnd:e,colEnd:t}).clear();r.getRange({rowStart:e.rowIndex,colStart:e.colIndex,rowEnd:e.rowIndex,colEnd:e.colIndex}).setValue(`=`+e.formula)}}})(Y,T,e)}if(S.forEach(e=>{e.deleteReference(h)}),d.endPersist(),g){o.a(g);let e=new Map,t=0;for(let n of j.getNames()){let r=j.getEntry(n);if(!r)continue;let i=j.getRawEntry(n),a=i?{data:r,uncompressedSize:j.uncompressedSize(n),raw:{compressedData:i.data,compressionMethod:i.compressionMethod,signature:i.signature}}:{data:r,uncompressedSize:j.uncompressedSize(n)};e.set(n,a),t+=r.byteLength}if(t>67108864)v.push([`Source package too large to retain (${t} bytes, limit ${o.n}); unmodeled parts will be dropped on save.`,`SourcePackage`]);else if(e.size>0){let t=new o.R(e);o.v(g,t);let n=Y.getSheets().getItems(),r=Y.getTransactions().addListener({onCommitEnd:e=>{let n=e.getOperation()?.name;n!==`insertCells`&&n!==`deleteCells`||t.markStructuralChange()}}),i=Y.addListeners({onSheetsChange:()=>{let e=Y.getSheets().getItems();(e.length!==n.length||e.some((e,t)=>e!==n[t]))&&t.markStructuralChange(),n=e}});Y.addListeners({onClose:()=>{r(),i(),o.a(g)}})}}if(v.length&&y?.onWarning)for(let e of v){let[t,n]=e;y.onWarning(t,n)}return _&&!0===p&&console.table(_.toTable()),Y}catch(t){let n=`Unable to parse XLSX.`;throw t instanceof e.C&&(n=`Unable to open XLSX. There are too many rows or columns.`),Error(n,{cause:t})}finally{await j.close().catch(()=>{})}};
@@ -1,193 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.2
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import { r as e } from "./Ccj-Gq_hyRtb93R-.mjs";
8
- import { i as t, r as n } from "./C8KBkOocNYDNWBDu.mjs";
9
- import { Xt as r, t as i, tt as a } from "./DvFh-0k-PvKrKwkt.mjs";
10
- import { i as o } from "./C5wklWg-nVHGfhda.mjs";
11
- import { h as s, p as c, t as l } from "./DMXx0lIMiLsQgbVK.mjs";
12
- import { t as u } from "./B3N4rAHBBKghSNf-.mjs";
13
- import { t as d } from "./BKY2gKXOB637hih-.mjs";
14
- import { t as f } from "./Bp1kaqNxSV0Hskwb.mjs";
15
- import { r as ee } from "./CTpri2fSv5dZbUwJ.mjs";
16
- import { r as p } from "./9LhOHxxuP2jO-YDv.mjs";
17
- var m = e(t(), 1), h = e(n(), 1), g = ["Ok", "Cancel"], _ = { paddingTop: (e) => e.spacing(1.5) }, v = (0, m.memo)((e) => {
18
- let { initialValue: t = null, context: n, onInput: v, onOption: y, onValidateOption: b, onDone: x, options: S = g, defaultOption: C = S?.[0], cancelOption: w = "Cancel", sx: T, ...E } = e, D = r(), O = (0, m.useMemo)(() => (t ?? n?.()?.getHyperlink()) !== null, []), k = (0, m.useMemo)(() => {
19
- let e = null, r = null;
20
- t && (typeof t == "string" ? r = t : e = t);
21
- let i = e ? null : n?.()?.getHyperlink();
22
- return {
23
- address: r ?? e?.address ?? i?.getAddress() ?? "",
24
- textToDisplay: e?.textToDisplay ?? i?.getTextToDisplay() ?? ""
25
- };
26
- }, [t, n]), A = k.address.startsWith("#"), [j, M] = (0, m.useState)(A ? "document" : "url"), [N, P] = (0, m.useState)(A ? "" : k.address), [F, I] = (0, m.useState)(() => A && k.address.substring(1) || null), [L, R] = (0, m.useState)(A ? k.address.substring(1) : ""), [z, B] = (0, m.useState)(null), [V, H] = (0, m.useState)(() => {
27
- let e = n?.().getText({ useFormattingCategory: !0 }) ?? k.textToDisplay;
28
- return e === k.address ? "" : e;
29
- }), [U, W] = (0, m.useState)(!1), G = (0, m.useId)(), K = (0, m.useRef)(null), q = (0, m.useRef)(null), J = a(() => {
30
- K.current?.querySelector("input.autoFocus")?.focus(), q.current?.engage();
31
- }, []), Y = (0, m.useRef)(j);
32
- (0, m.useEffect)(() => {
33
- Y.current !== j && (Y.current = j, J());
34
- }, [j]);
35
- let X = (0, m.useMemo)(() => {
36
- let e = n?.()?.getSheet()?.getName();
37
- return e ? { scope: e } : void 0;
38
- }, [n]), Z = ee().getMode()?.mode === "point", Q = a((e) => {
39
- H(e.target.value);
40
- }, []), $ = a(() => {
41
- if (j === "document") {
42
- if (typeof F == "string") {
43
- let e = F.trim();
44
- return e ? `#${e}` : null;
45
- }
46
- let e = F?.getReferences()?.getAddress();
47
- return e ? `#${e}` : null;
48
- }
49
- return N === "" ? null : N;
50
- }, [
51
- j,
52
- F,
53
- N
54
- ]), te = a(async (e) => {
55
- let t = e === w;
56
- if (!t) {
57
- let e = $(), t = e?.startsWith("#") ? e.substring(1) : e;
58
- v?.({
59
- address: e,
60
- textToDisplay: (V === "" ? t : V) ?? null
61
- });
62
- }
63
- y?.(e, t, e === C), x?.();
64
- }, [
65
- $,
66
- V,
67
- v,
68
- x,
69
- y,
70
- C,
71
- w
72
- ]), ne = a(async (e) => !1 !== await Promise.resolve(b?.(e)) && (j !== "document" || !z), [
73
- b,
74
- j,
75
- z
76
- ]), re = j === "document" ? L : N;
77
- return (0, h.jsx)(o, {
78
- title: D(O ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
79
- options: S,
80
- onDone: x,
81
- onOption: (e) => te(e),
82
- onValidateOption: ne,
83
- defaultOption: C,
84
- cancelOption: w,
85
- autoFocusSel: ".autoFocus",
86
- suspendModal: Z,
87
- sx: {
88
- width: "480px",
89
- ...T
90
- },
91
- ...E,
92
- children: (0, h.jsxs)(i, {
93
- ref: K,
94
- sx: {
95
- paddingTop: (e) => e.spacing(1),
96
- paddingBottom: (e) => e.spacing(0),
97
- rowGap: (e) => e.spacing(1),
98
- display: "flex",
99
- flexDirection: "column"
100
- },
101
- children: [
102
- (0, h.jsxs)(s, {
103
- sx: {
104
- minWidth: 135,
105
- width: "100%"
106
- },
107
- size: "small",
108
- children: [(0, h.jsx)(c, {
109
- id: G,
110
- children: D("hyperlink.linkTo")
111
- }), (0, h.jsxs)(l, {
112
- labelId: G,
113
- value: j,
114
- label: D("hyperlink.linkTo"),
115
- MenuProps: {
116
- disableRestoreFocus: !0,
117
- slotProps: { transition: { onExited: J } },
118
- container: () => document.fullscreenElement
119
- },
120
- onChange: (e) => {
121
- M(e.target.value);
122
- },
123
- children: [(0, h.jsx)(f, {
124
- value: "url",
125
- children: D("hyperlink.typeWebPage")
126
- }), (0, h.jsx)(f, {
127
- value: "document",
128
- children: D("hyperlink.typeInDocument")
129
- })]
130
- })]
131
- }),
132
- j === "document" ? (0, h.jsx)(p, {
133
- sx: _,
134
- grammar: "reference",
135
- apiRef: q,
136
- classNameInput: "autoFocus",
137
- label: D("hyperlink.reference"),
138
- value: F,
139
- allowMulti: !1,
140
- home: X,
141
- onChangeInput: (e) => I(e),
142
- onChangeText: (e) => R(e),
143
- onChangeError: (e) => B(e),
144
- onFocus: (e) => {
145
- U || e.target?.select?.(), W(!0);
146
- }
147
- }) : (0, h.jsx)(u, {
148
- sx: _,
149
- label: D("hyperlink.address"),
150
- defaultInput: D("hyperlink.addressPlaceholder"),
151
- value: N,
152
- onChangeInput: (e) => P(e),
153
- onFocus: (e) => {
154
- U || e.target?.select?.(), W(!0);
155
- }
156
- }),
157
- (0, h.jsx)(s, {
158
- sx: {
159
- paddingTop: (e) => e.spacing(1.5),
160
- minWidth: 135,
161
- width: "100%"
162
- },
163
- size: "small",
164
- children: (0, h.jsx)(d, {
165
- label: D("hyperlink.displayText"),
166
- placeholder: re,
167
- onFocus: () => {
168
- W(!0);
169
- },
170
- sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
171
- slotProps: {
172
- inputLabel: { shrink: !0 },
173
- htmlInput: {
174
- spellCheck: !1,
175
- autoComplete: "off",
176
- sx: {
177
- paddingTop: (e) => e.spacing(1.25),
178
- paddingBottom: (e) => e.spacing(.75)
179
- }
180
- }
181
- },
182
- value: V,
183
- onChange: Q,
184
- onContextMenu: (e) => {
185
- e.stopPropagation();
186
- }
187
- })
188
- })
189
- ]
190
- })
191
- });
192
- });
193
- export { v as HyperlinkDialog, v as default };
@@ -1,194 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.2
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- import { r as e } from "./Ccj-Gq_hyRtb93R-.js";
8
- import { t } from "./CurA0H2pTTmFWY4N.js";
9
- import { t as n } from "./CXULuRUQ4TAsm84q.js";
10
- import { Xt as r, t as i, tt as a } from "./DXnM0BURZgjm8R2W.js";
11
- import { i as o } from "./DtFr2Mm_KqU6PZfY.js";
12
- import { h as s, p as c, t as l } from "./BOSnQONqTqkqjHEU.js";
13
- import { k as u } from "./Cl2Y6toZDsktHGlZ.js";
14
- import { t as d } from "./r4hni7MWaP9SUvzC.js";
15
- import { t as f } from "./DfzSY0wpTYYTWIY2.js";
16
- import { r as ee } from "./s_afm7GAx-6Ktr_x.js";
17
- import { r as p } from "./BXRMXZjJExEHTMfL2.js";
18
- var m = e(t(), 1), h = n(), g = ["Ok", "Cancel"], _ = { paddingTop: (e) => e.spacing(1.5) }, v = (0, m.memo)((e) => {
19
- let { initialValue: t = null, context: n, onInput: v, onOption: y, onValidateOption: b, onDone: x, options: S = g, defaultOption: C = S?.[0], cancelOption: w = "Cancel", sx: T, ...E } = e, D = r(), O = (0, m.useMemo)(() => (t ?? n?.()?.getHyperlink()) !== null, []), k = (0, m.useMemo)(() => {
20
- let e = null, r = null;
21
- t && (typeof t == "string" ? r = t : e = t);
22
- let i = e ? null : n?.()?.getHyperlink();
23
- return {
24
- address: r ?? e?.address ?? i?.getAddress() ?? "",
25
- textToDisplay: e?.textToDisplay ?? i?.getTextToDisplay() ?? ""
26
- };
27
- }, [t, n]), A = k.address.startsWith("#"), [j, M] = (0, m.useState)(A ? "document" : "url"), [N, P] = (0, m.useState)(A ? "" : k.address), [F, I] = (0, m.useState)(() => A && k.address.substring(1) || null), [L, R] = (0, m.useState)(A ? k.address.substring(1) : ""), [z, B] = (0, m.useState)(null), [V, H] = (0, m.useState)(() => {
28
- let e = n?.().getText({ useFormattingCategory: !0 }) ?? k.textToDisplay;
29
- return e === k.address ? "" : e;
30
- }), [U, W] = (0, m.useState)(!1), G = (0, m.useId)(), K = (0, m.useRef)(null), q = (0, m.useRef)(null), J = a(() => {
31
- K.current?.querySelector("input.autoFocus")?.focus(), q.current?.engage();
32
- }, []), Y = (0, m.useRef)(j);
33
- (0, m.useEffect)(() => {
34
- Y.current !== j && (Y.current = j, J());
35
- }, [j]);
36
- let X = (0, m.useMemo)(() => {
37
- let e = n?.()?.getSheet()?.getName();
38
- return e ? { scope: e } : void 0;
39
- }, [n]), Z = ee().getMode()?.mode === "point", Q = a((e) => {
40
- H(e.target.value);
41
- }, []), $ = a(() => {
42
- if (j === "document") {
43
- if (typeof F == "string") {
44
- let e = F.trim();
45
- return e ? `#${e}` : null;
46
- }
47
- let e = F?.getReferences()?.getAddress();
48
- return e ? `#${e}` : null;
49
- }
50
- return N === "" ? null : N;
51
- }, [
52
- j,
53
- F,
54
- N
55
- ]), te = a(async (e) => {
56
- let t = e === w;
57
- if (!t) {
58
- let e = $(), t = e?.startsWith("#") ? e.substring(1) : e;
59
- v?.({
60
- address: e,
61
- textToDisplay: (V === "" ? t : V) ?? null
62
- });
63
- }
64
- y?.(e, t, e === C), x?.();
65
- }, [
66
- $,
67
- V,
68
- v,
69
- x,
70
- y,
71
- C,
72
- w
73
- ]), ne = a(async (e) => !1 !== await Promise.resolve(b?.(e)) && (j !== "document" || !z), [
74
- b,
75
- j,
76
- z
77
- ]), re = j === "document" ? L : N;
78
- return (0, h.jsx)(o, {
79
- title: D(O ? "hyperlink.titleEdit" : "hyperlink.titleInsert"),
80
- options: S,
81
- onDone: x,
82
- onOption: (e) => te(e),
83
- onValidateOption: ne,
84
- defaultOption: C,
85
- cancelOption: w,
86
- autoFocusSel: ".autoFocus",
87
- suspendModal: Z,
88
- sx: {
89
- width: "480px",
90
- ...T
91
- },
92
- ...E,
93
- children: (0, h.jsxs)(i, {
94
- ref: K,
95
- sx: {
96
- paddingTop: (e) => e.spacing(1),
97
- paddingBottom: (e) => e.spacing(0),
98
- rowGap: (e) => e.spacing(1),
99
- display: "flex",
100
- flexDirection: "column"
101
- },
102
- children: [
103
- (0, h.jsxs)(s, {
104
- sx: {
105
- minWidth: 135,
106
- width: "100%"
107
- },
108
- size: "small",
109
- children: [(0, h.jsx)(c, {
110
- id: G,
111
- children: D("hyperlink.linkTo")
112
- }), (0, h.jsxs)(l, {
113
- labelId: G,
114
- value: j,
115
- label: D("hyperlink.linkTo"),
116
- MenuProps: {
117
- disableRestoreFocus: !0,
118
- slotProps: { transition: { onExited: J } },
119
- container: () => document.fullscreenElement
120
- },
121
- onChange: (e) => {
122
- M(e.target.value);
123
- },
124
- children: [(0, h.jsx)(f, {
125
- value: "url",
126
- children: D("hyperlink.typeWebPage")
127
- }), (0, h.jsx)(f, {
128
- value: "document",
129
- children: D("hyperlink.typeInDocument")
130
- })]
131
- })]
132
- }),
133
- j === "document" ? (0, h.jsx)(p, {
134
- sx: _,
135
- grammar: "reference",
136
- apiRef: q,
137
- classNameInput: "autoFocus",
138
- label: D("hyperlink.reference"),
139
- value: F,
140
- allowMulti: !1,
141
- home: X,
142
- onChangeInput: (e) => I(e),
143
- onChangeText: (e) => R(e),
144
- onChangeError: (e) => B(e),
145
- onFocus: (e) => {
146
- U || e.target?.select?.(), W(!0);
147
- }
148
- }) : (0, h.jsx)(u, {
149
- sx: _,
150
- label: D("hyperlink.address"),
151
- defaultInput: D("hyperlink.addressPlaceholder"),
152
- value: N,
153
- onChangeInput: (e) => P(e),
154
- onFocus: (e) => {
155
- U || e.target?.select?.(), W(!0);
156
- }
157
- }),
158
- (0, h.jsx)(s, {
159
- sx: {
160
- paddingTop: (e) => e.spacing(1.5),
161
- minWidth: 135,
162
- width: "100%"
163
- },
164
- size: "small",
165
- children: (0, h.jsx)(d, {
166
- label: D("hyperlink.displayText"),
167
- placeholder: re,
168
- onFocus: () => {
169
- W(!0);
170
- },
171
- sx: { "& .MuiFormHelperText-root": { marginTop: (e) => e.spacing(.5) } },
172
- slotProps: {
173
- inputLabel: { shrink: !0 },
174
- htmlInput: {
175
- spellCheck: !1,
176
- autoComplete: "off",
177
- sx: {
178
- paddingTop: (e) => e.spacing(1.25),
179
- paddingBottom: (e) => e.spacing(.75)
180
- }
181
- }
182
- },
183
- value: V,
184
- onChange: Q,
185
- onContextMenu: (e) => {
186
- e.stopPropagation();
187
- }
188
- })
189
- })
190
- ]
191
- })
192
- });
193
- });
194
- export { v as HyperlinkDialog, v as default };
@@ -1,24 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.2
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
8
- let r = {};
9
- for (var i in e) t(r, i, {
10
- get: e[i],
11
- enumerable: !0
12
- });
13
- return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
14
- }, c = (o, s, c) => (c = o == null ? {} : e(i(o)), ((e, i, o, s) => {
15
- if (i && typeof i == "object" || typeof i == "function") for (var c, l = r(i), u = 0, d = l.length; u < d; u++) c = l[u], a.call(e, c) || c === void 0 || t(e, c, {
16
- get: ((e) => i[e]).bind(null, c),
17
- enumerable: !(s = n(i, c)) || s.enumerable
18
- });
19
- return e;
20
- })(!s && o && o.__esModule ? c : t(c, "default", {
21
- value: o,
22
- enumerable: !0
23
- }), o));
24
- export { o as n, s as r, c as t };
@@ -1,24 +0,0 @@
1
- /**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.7.28-beta.2
3
- *
4
- * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */
7
- var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, n) => {
8
- let r = {};
9
- for (var i in e) t(r, i, {
10
- get: e[i],
11
- enumerable: !0
12
- });
13
- return n || t(r, Symbol.toStringTag, { value: "Module" }), r;
14
- }, c = (o, s, c) => (c = o == null ? {} : e(i(o)), ((e, i, o, s) => {
15
- if (i && typeof i == "object" || typeof i == "function") for (var c, l = r(i), u = 0, d = l.length; u < d; u++) c = l[u], a.call(e, c) || c === void 0 || t(e, c, {
16
- get: ((e) => i[e]).bind(null, c),
17
- enumerable: !(s = n(i, c)) || s.enumerable
18
- });
19
- return e;
20
- })(!s && o && o.__esModule ? c : t(c, "default", {
21
- value: o,
22
- enumerable: !0
23
- }), o));
24
- export { o as n, s as r, c as t };